/*
Theme Name: dds_saratovinnovations.ru
Theme URI: https://saratovinnovations.ru/
Author: Артём Ларионов
Author URI: https://saratovinnovations.ru/
Description: Информационно-практический сайт о частном строительстве и загородной недвижимости. Фокус на ИЖС, разрешительной документации, спорах с застройщиками и защите интересов собственников.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dds-saratovinnovations
Tags: blog, news, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, right-sidebar, two-columns
*/

/* ============ RESET / БАЗА ============ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1E1E1E;
    background: #FFFFFF;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #2C4C6B;
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover {
    color: #B6482C;
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    color: #1E1E1E;
    line-height: 1.3;
    margin: 1.4em 0 0.6em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
    margin: 0 0 1em;
}

blockquote {
    margin: 1.4em 0;
    padding: 1em 1.4em;
    border-left: 4px solid #B6482C;
    background: #F8F7F4;
    font-style: italic;
    color: #3A404A;
}

code, pre, .mono {
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 0.94em;
}

pre {
    background: #F8F7F4;
    padding: 1em;
    overflow-x: auto;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0 1.4em;
    border: 1px solid #D1D1D1;
}

th, td {
    padding: 0.7em 0.9em;
    border: 1px solid #D1D1D1;
    text-align: left;
}

th {
    background: #F8F7F4;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

hr {
    border: none;
    height: 1px;
    background: #D1D1D1;
    margin: 2em 0;
}

/* ============ РАЗМЕТКА ============ */

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main-area {
    flex: 1;
    padding: 38px 0 60px;
}

.layout-grid {
    display: grid;
    grid-template-columns: 67% 27%;
    gap: 6%;
}

.layout-grid.no-sidebar {
    grid-template-columns: 85%;
    justify-content: center;
}

/* ============ ШАПКА ============ */

.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E4E2DD;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 260px;
}

.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.brand-svg {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #1E1E1E;
    text-decoration: none;
    line-height: 1.25;
}

.brand-title:hover {
    color: #B6482C;
    text-decoration: none;
}

.brand-tag {
    font-size: 0.82rem;
    color: #3A404A;
    line-height: 1.35;
}

/* Главное меню */

.main-nav {
    flex-shrink: 0;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1E1E1E;
    padding: 10px 14px;
    display: block;
    border-radius: 4px;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    color: #B6482C;
    background: #F8F7F4;
    text-decoration: none;
}

.main-nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFFFFF;
    border: 1px solid #E4E2DD;
    min-width: 200px;
    display: none;
    flex-direction: column;
    padding: 6px 0;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.main-nav li:hover > ul,
.main-nav li:focus-within > ul {
    display: flex;
}

.main-nav ul ul a {
    padding: 8px 14px;
    border-radius: 0;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #D1D1D1;
    color: #1E1E1E;
    padding: 8px 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    border-radius: 4px;
}

.nav-toggle:hover {
    border-color: #B6482C;
    color: #B6482C;
}

/* Ленточная навигация по этапам ИЖС */

.stages-ribbon {
    background: #F8F7F4;
    border-top: 1px solid #E4E2DD;
    border-bottom: 1px solid #E4E2DD;
}

.stages-ribbon-inner {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.stage-item {
    flex: 1 1 0;
    min-width: 120px;
    padding: 14px 10px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #3A404A;
    border-bottom: 3px solid transparent;
    position: relative;
    white-space: nowrap;
    display: block;
}

.stage-item::after {
    content: "→";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    color: #CF9F4A;
    font-size: 0.9rem;
    pointer-events: none;
}

.stage-item:last-child::after {
    content: "";
}

.stage-item:hover {
    color: #B6482C;
    background: #FFFFFF;
    text-decoration: none;
    border-bottom-color: #B6482C;
}

.stage-item.is-active {
    color: #B6482C;
    border-bottom-color: #B6482C;
    background: #FFFFFF;
}

.stage-icon {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

/* ============ ХЛЕБНЫЕ КРОШКИ ============ */

.crumbs {
    font-size: 0.86rem;
    color: #3A404A;
    padding: 14px 0;
    border-bottom: 1px solid #F1EEE8;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
}

.crumbs a {
    color: #2C4C6B;
}

.crumbs a:hover {
    color: #B6482C;
}

.crumbs-sep {
    margin: 0 6px;
    color: #B6482C;
}

.crumbs-current {
    color: #1E1E1E;
}

/* ============ КНОПКИ ============ */

.btn,
button.btn,
input[type="submit"].btn,
a.btn {
    display: inline-block;
    background: #2C4C6B;
    color: #FFFFFF;
    padding: 12px 28px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.18s ease;
}

.btn:hover,
button.btn:hover,
input[type="submit"].btn:hover,
a.btn:hover {
    background: #B6482C;
    color: #FFFFFF;
    text-decoration: none;
}

.btn-ghost {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid #D1D1D1;
    background: transparent;
    color: #2C4C6B;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-ghost:hover {
    border-color: #2C4C6B;
    color: #2C4C6B;
    text-decoration: underline;
}

.btn-legal {
    display: inline-block;
    padding: 10px 20px 10px 24px;
    background: transparent;
    color: #2C4C6B;
    border-left: 3px solid #B6482C;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.18s ease;
}

.btn-legal:hover {
    color: #B6482C;
    background: #F8F7F4;
    text-decoration: none;
}

.btn-close {
    background: transparent;
    border: 1px solid #D1D1D1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.1rem;
    color: #3A404A;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}

.btn-close:hover {
    border-color: #B6482C;
    color: #B6482C;
}

/* ============ ФОРМЫ ============ */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
textarea,
select {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #D1D1D1;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1E1E1E;
    background: #FFFFFF;
    transition: border-color 0.18s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2C4C6B;
}

label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1E1E1E;
    margin-bottom: 4px;
    display: inline-block;
}

.searchform {
    display: flex;
    gap: 8px;
    max-width: 480px;
}

.searchform input[type="search"] {
    flex: 1;
}

/* ============ КАРТОЧКИ ЗАПИСЕЙ (сетка) ============ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

/* Правило A8: flex-колонка + flex:1 на body */
.card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E4E2DD;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    border-color: #CF9F4A;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #F8F7F4;
    transition: opacity 0.2s ease;
}

.card:hover .card-thumb {
    opacity: 0.88;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 20px 20px;
}

.card-meta {
    font-size: 0.8rem;
    color: #3A404A;
    font-family: 'Inter', sans-serif;
    margin-bottom: 8px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.card-meta a {
    color: #2C4C6B;
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0 0 10px;
    line-height: 1.35;
}

.card-title a {
    color: #1E1E1E;
}

.card-title a:hover {
    color: #B6482C;
    text-decoration: none;
}

.card-excerpt {
    flex: 1;
    font-size: 0.95rem;
    color: #3A404A;
    margin-bottom: 14px;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-excerpt p:last-child {
    margin-bottom: 0;
}

.card-readmore {
    align-self: flex-start;
}

/* Горизонтальная карточка — используем position: absolute (правило A10) */
.card-horizontal {
    display: flex;
    flex-direction: row;
    background: #FFFFFF;
    border: 1px solid #E4E2DD;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-horizontal:hover {
    border-color: #CF9F4A;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: #F8F7F4;
}

.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
}

.card-horizontal:hover .card-thumb-wrap img {
    opacity: 0.88;
}

.card-horizontal .card-body {
    flex: 1;
    padding: 20px 24px;
}

/* ============ ЗАПИСЬ / СТРАНИЦА ============ */

.entry {
    margin-bottom: 2em;
}

.entry-header {
    margin-bottom: 1.4em;
}

.entry-title {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.4em;
}

.entry-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: #3A404A;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid #F1EEE8;
}

.entry-thumb {
    margin: 0 0 1.4em;
}

.entry-thumb img {
    width: 100%;
    border-radius: 6px;
    display: block;
}

.entry-content {
    font-size: 1rem;
    line-height: 1.8;
}

.entry-content img {
    display: block;
    margin: 1em 0;
    border-radius: 4px;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.4em;
    margin: 0 0 1em;
}

.entry-content li {
    margin-bottom: 0.35em;
}

.entry-footer {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #F1EEE8;
    font-size: 0.9rem;
    color: #3A404A;
    font-family: 'Inter', sans-serif;
}

.entry-tags a {
    display: inline-block;
    padding: 3px 10px;
    background: #F8F7F4;
    border-radius: 3px;
    margin: 0 4px 4px 0;
    font-size: 0.82rem;
}

.entry-tags a:hover {
    background: #B6482C;
    color: #FFFFFF;
    text-decoration: none;
}

/* Блок-расследование */
.investigation {
    background: #EFF2F6;
    border-left: 4px solid #2C4C6B;
    padding: 22px 28px 22px 56px;
    margin: 1.8em 0;
    position: relative;
    font-family: 'Merriweather', serif;
    color: #1E1E1E;
}

.investigation::before {
    content: "\201C";
    position: absolute;
    left: 16px;
    top: 4px;
    font-size: 3.6rem;
    color: #2C4C6B;
    line-height: 1;
    font-family: Georgia, serif;
}

.investigation-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #2C4C6B;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

/* Документ-карточки */
.doc-card {
    background: #FFFFFF;
    border: 1px solid #D1D1D1;
    border-radius: 4px;
    padding: 18px 20px 18px 56px;
    margin: 1em 0;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.doc-card::before {
    content: "📎";
    position: absolute;
    left: 18px;
    top: 16px;
    font-size: 1.5rem;
    line-height: 1;
}

.doc-card-title {
    font-weight: 700;
    color: #1E1E1E;
    margin: 0 0 4px;
    font-size: 1rem;
}

.doc-card-status {
    font-size: 0.82rem;
    font-family: 'Roboto Mono', monospace;
    margin-bottom: 8px;
}

.doc-card-status.is-active {
    color: #6F8F5E;
}

.doc-card-status.is-expired {
    color: #C74B3E;
}

/* Срочные изменения */
.urgent-law {
    border: 1px solid #C74B3E;
    background: #FFF6F5;
    padding: 16px 18px;
    border-radius: 4px;
    margin: 1em 0;
    position: relative;
}

.urgent-law-label {
    display: inline-block;
    background: #C74B3E;
    color: #FFFFFF;
    padding: 2px 10px;
    font-size: 0.74rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 8px;
}

/* ============ САЙДБАР ============ */

.sidebar {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.widget {
    margin-bottom: 2em;
    padding-bottom: 1.4em;
    border-bottom: 1px solid #F1EEE8;
}

.widget:last-child {
    border-bottom: none;
}

.widget-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1E1E1E;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #B6482C;
    display: inline-block;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 6px 0;
    border-bottom: 1px dashed #F1EEE8;
    font-size: 0.92rem;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #2C4C6B;
}

.widget a:hover {
    color: #B6482C;
}

/* ============ ПАГИНАЦИЯ ============ */

.pagination {
    margin: 32px 0 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #D1D1D1;
    color: #2C4C6B;
    background: #FFFFFF;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.18s ease;
}

.pagination .page-numbers:hover {
    border-color: #B6482C;
    color: #B6482C;
}

.pagination .page-numbers.current {
    background: #2C4C6B;
    color: #FFFFFF;
    border-color: #2C4C6B;
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* ============ ГЛАВНАЯ (ДАШБОРД) ============ */

.front-main {
    padding: 28px 0 60px;
}

.section {
    margin: 0 0 52px;
}

.section-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E4E2DD;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.section-heading small {
    font-size: 0.85rem;
    font-weight: 400;
    color: #3A404A;
}

/* Блок 1: Поиск-дашборд */
.hero-search {
    background: #F8F7F4;
    padding: 40px 32px;
    border-radius: 8px;
    border-left: 5px solid #B6482C;
}

.hero-search h1 {
    margin-top: 0;
    font-size: 1.75rem;
}

.hero-search p {
    color: #3A404A;
    font-size: 1.02rem;
    margin-bottom: 1.4em;
}

.hero-search .searchform {
    max-width: 640px;
}

/* Блок 2: Три колонки */
.triple-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.triple-col {
    background: #FFFFFF;
    border: 1px solid #E4E2DD;
    border-radius: 6px;
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
}

.triple-col-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.triple-col h3 {
    font-family: 'Inter', sans-serif;
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.triple-col p {
    color: #3A404A;
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 14px;
}

/* Блок 3: Вопрос-ответ */
.qna-block {
    background: #EFF2F6;
    padding: 36px 32px;
    border-radius: 8px;
  
    gap: 28px;
    align-items: start;
}

.qna-block h2 {
    font-family: 'Inter', sans-serif;
    margin-top: 0;
}

.qna-block .searchform {
    max-width: none;
    display: block;
}

.qna-block textarea {
    min-height: 96px;
    resize: vertical;
    margin-bottom: 10px;
}

.qna-block input[type="email"] {
    margin-bottom: 10px;
}

/* Блок 4: Истории подписчиков */
.stories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.story {
    background: #FFFFFF;
    border: 1px solid #E4E2DD;
    padding: 20px 22px;
    border-radius: 6px;
    border-top: 3px solid #6F8F5E;
}

.story-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.78rem;
    color: #6F8F5E;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.story h4 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.story p {
    font-size: 0.93rem;
    color: #3A404A;
    margin: 0;
}

/* ============ ПОДВАЛ ============ */

.site-footer {
    background: #1E1E1E;
    color: #D6D3CD;
    padding: 46px 0 24px;
    margin-top: 40px;
    font-size: 0.92rem;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col .widget-title {
    color: #FFFFFF;
    border-bottom-color: #B6482C;
}

.footer-col {
    font-family: 'Inter', sans-serif;
}

.footer-col a {
    color: #CF9F4A;
}

.footer-col a:hover {
    color: #FFFFFF;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    padding: 5px 0;
    border-bottom: 1px dashed #3A404A;
}

.footer-col li:last-child {
    border-bottom: none;
}

.site-copy {
    border-top: 1px solid #3A404A;
    padding-top: 18px;
    text-align: center;
    color: #8A857C;
    font-size: 0.86rem;
    font-family: 'Inter', sans-serif;
}

/* ============ COOKIE-БАННЕР ============ */

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    background: #1E1E1E;
    color: #FFFFFF;
    padding: 16px 20px;
    border-radius: 6px;
    display: none;
    align-items: center;
    gap: 16px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.cookie-banner.is-visible {
    display: flex;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 240px;
}

.cookie-banner .btn {
    flex-shrink: 0;
    padding: 8px 22px;
}

/* ============ КОММЕНТАРИИ ============ */

.comments-area {
    margin-top: 2.4em;
    padding-top: 1.4em;
    border-top: 1px solid #E4E2DD;
}

.comments-title {
    font-family: 'Inter', sans-serif;
    margin-bottom: 1em;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2em;
}

.comment-list li {
    margin: 0 0 1em;
}

.comment-body {
    background: #F8F7F4;
    padding: 14px 18px;
    border-radius: 4px;
    border-left: 3px solid #2C4C6B;
}

.comment-author {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1E1E1E;
    margin-right: 8px;
}

.comment-date {
    font-size: 0.82rem;
    color: #3A404A;
    font-family: 'Inter', sans-serif;
}

.comment-content {
    margin-top: 8px;
    font-size: 0.95rem;
}

.children {
    list-style: none;
    padding-left: 24px;
    margin-top: 1em;
}

.comment-respond {
    margin-top: 1em;
}

.comment-form p {
    margin-bottom: 12px;
}

.comment-form label {
    display: block;
    margin-bottom: 4px;
}

/* ============ МОБИЛЬНОЕ ПРИЛИПАЮЩЕЕ МЕНЮ ============ */

.mobile-sticky {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFFFF;
    border-top: 1px solid #E4E2DD;
    z-index: 900;
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
}

.mobile-sticky ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

.mobile-sticky li {
    flex: 1;
    text-align: center;
}

.mobile-sticky a {
    display: block;
    padding: 8px 2px;
    color: #3A404A;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
}

.mobile-sticky a:hover {
    color: #B6482C;
    text-decoration: none;
}

.mobile-sticky .icon {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 2px;
}

/* ============ 404 ============ */

.error-404 {
    text-align: center;
    padding: 40px 20px 60px;
}

.error-404 h1 {
    font-size: 5rem;
    margin-bottom: 0.2em;
    color: #B6482C;
}

.error-404 p {
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto 1.4em;
}

.error-404 .searchform {
    max-width: 480px;
    margin: 0 auto 1.4em;
}

/* ============ АДАПТИВ ============ */

@media (max-width: 960px) {
    .layout-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .triple-columns {
        grid-template-columns: 1fr;
    }

   
    .footer-cols {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stories {
        grid-template-columns: 1fr;
    }

    .entry-title {
        font-size: 1.55rem;
    }

    .hero-search {
        padding: 28px 22px;
    }
}

@media (max-width: 600px) {
    body {
        padding-bottom: 64px;
    }

    h1 { font-size: 1.65rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.15rem; }

    .brand-tag {
        display: none;
    }

    .nav-toggle {
        display: inline-block;
    }

    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .main-nav.is-open ul {
        display: flex;
    }

    .main-nav ul ul {
        position: static;
        border: none;
        box-shadow: none;
        padding-left: 16px;
    }

    .main-nav a {
        padding: 10px 0;
        border-bottom: 1px solid #F1EEE8;
        border-radius: 0;
    }

    .main-nav a:hover,
    .main-nav .current-menu-item > a {
        background: transparent;
    }

    .stages-ribbon-inner {
        flex-direction: column;
    }

    .stage-item {
        text-align: left;
        padding: 10px 14px;
        border-bottom: 1px solid #E4E2DD;
    }

    .stage-item::after {
        content: "";
    }

    .stage-icon {
        display: inline-block;
        margin-right: 8px;
        margin-bottom: 0;
    }

    .mobile-sticky {
        display: block;
    }

    /* Сброс абсолютного позиционирования — правило A10 */
    .card-horizontal {
        flex-direction: column;
    }

    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }

    .card-thumb-wrap a {
        position: static;
    }

    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .cookie-banner {
        left: 8px;
        right: 8px;
        bottom: 70px;
        padding: 12px 14px;
    }

    .searchform {
        flex-direction: column;
    }

    .searchform .btn {
        width: 100%;
    }
}

/* ============ СТИЛИ КЛАССИЧЕСКИХ WP-ЭЛЕМЕНТОВ ============ */

.wp-caption {
    max-width: 100%;
    margin: 1em 0;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: #3A404A;
    text-align: center;
    padding: 6px 0;
    font-family: 'Inter', sans-serif;
}

.alignleft  { float: left;  margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.sticky { }
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert-success {
    background: #EEF4E8;
    border-left: 4px solid #6F8F5E;
    padding: 12px 16px;
    margin: 1em 0;
}

.alert-warning {
    background: #FFF6F5;
    border-left: 4px solid #C74B3E;
    padding: 12px 16px;
    margin: 1em 0;
}

.alert-info {
    background: #EFF2F6;
    border-left: 4px solid #2C4C6B;
    padding: 12px 16px;
    margin: 1em 0;
}
