/*
Theme Name: dds_dudoanxshcm.com
Theme URI: https://dudoanxshcm.com/
Author: Алексей Гусев
Description: Тема для информационно-аналитического портала о жилье с банкротных торгов. Лабораторный минимализм, холодная палитра, строгая типографика.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: chsdel
*/

/* =========================================================
   1. Переменные
   ========================================================= */
:root {
    --bg:          #F4F7FC;
    --bg-alt:      #E8EEF5;
    --deep:        #0B1A2F;
    --ink:         #1E293B;
    --accent:      #E63946;
    --accent-2:    #2A9D8F;
    --muted:       #64748B;
    --line:        #CBD5E1;
    --white:       #FFFFFF;
    --font-head:   "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-body:   "PT Serif", "Merriweather", Georgia, "Times New Roman", serif;
}

/* =========================================================
   2. Служебные правила скрытия (до основных стилей — см. A11)
   ========================================================= */
[hidden] { display: none !important; }
.cookie-banner[hidden] { display: none !important; }
.faq-answer[hidden] { display: none !important; }

/* =========================================================
   3. База
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(0deg, rgba(11, 26, 47, .04) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(90deg, rgba(11, 26, 47, .04) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(0deg, rgba(42, 157, 143, .10) 0 2px, transparent 2px 200px),
        repeating-linear-gradient(90deg, rgba(42, 157, 143, .10) 0 2px, transparent 2px 200px);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--deep);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.14;
    margin: 0 0 .7em;
}

h1 { font-size: 2.3rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; font-weight: 700; }

p { margin: 0 0 1.15em; }

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
a:hover, a:focus { text-decoration-style: solid; }

.shell { width: min(92%, 1180px); margin-inline: auto; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: .6rem 1rem;
    z-index: 999;
}
.skip-link:focus { left: 0; }

/* Списки — маркер «слепок ключа» (шестигранная головка) */
.entry-content ul,
.section-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1.3em;
}
.entry-content ul li,
.section-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: .7em;
}
.entry-content ul li::before,
.section-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .58em;
    width: 13px;
    height: 14px;
    background: var(--accent-2);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.entry-content ul li::after,
.section-list li::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 1.02em;
    width: 8px;
    height: 3px;
    background: var(--accent-2);
}
.entry-content ol { padding-left: 1.3rem; }
.entry-content ol li { margin-bottom: .7em; }

blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent-2);
    border-radius: 4px;
    font-size: 1.05rem;
}
blockquote p:last-child { margin-bottom: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem;
    font-size: .95rem;
}
table, th, td { border: 1px solid var(--line); }
th, td { padding: .7rem .85rem; text-align: left; }
th { background: var(--bg-alt); font-family: var(--font-head); font-weight: 700; color: var(--deep); }

code, pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: var(--bg-alt);
    font-size: .9em;
}
pre { padding: 1rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }

/* =========================================================
   4. Кнопки (штампы)
   ========================================================= */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .02em;
    padding: .8rem 1.6rem;
    border-radius: 4px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform .08s linear, box-shadow .08s linear, background-color .12s linear, color .12s linear;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(2px);
    box-shadow: 0 4px 0 0 #A32831;
    text-decoration: none;
    color: #fff;
}
.btn-ghost {
    background: transparent;
    color: var(--accent-2);
    border-color: var(--accent-2);
}
.btn-ghost:hover,
.btn-ghost:focus {
    transform: translateY(2px);
    box-shadow: 0 4px 0 0 #1E6E64;
    text-decoration: none;
    color: var(--accent-2);
}
.btn-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
}
.btn-light:hover,
.btn-light:focus {
    transform: translateY(2px);
    box-shadow: 0 4px 0 0 rgba(255, 255, 255, .3);
    color: #fff;
    text-decoration: none;
}

/* =========================================================
   5. Шапка
   ========================================================= */
.site-header {
    background: var(--deep);
    color: #fff;
    border-bottom: 3px solid var(--accent);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: .95rem;
    min-width: 0;
    text-decoration: none;
    color: #fff;
    max-width: 62%;
}
.brand:hover { text-decoration: none; }
.brand-logo { display: block; width: 52px; height: 52px; flex: 0 0 auto; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.02rem;
    line-height: 1.35;
    letter-spacing: .01em;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-tagline {
    display: block;
    font-size: .8rem;
    line-height: 1.45;
    color: #9FB2C9;
    margin-top: .25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .4);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .9rem;
    padding: .55rem .95rem;
    border-radius: 4px;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}
.main-nav a {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .95rem;
    color: #DDE6F1;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: #fff;
    border-bottom-color: var(--accent);
    text-decoration: none;
}

/* =========================================================
   6. Каркас страницы
   ========================================================= */
.site-main { padding: 2.6rem 0 3.5rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 2.6rem;
    align-items: start;
}
.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.content-area { min-width: 0; }

.breadcrumbs {
    font-family: var(--font-head);
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid var(--line);
}
.breadcrumbs a { color: var(--muted); text-decoration-color: var(--line); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--accent-2); margin: 0 .35rem; }

.page-title {
    font-size: 2.3rem;
    margin-bottom: 1.4rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent-2);
}

.entry-content h2,
.entry-content h3 {
    position: relative;
    padding-left: 1rem;
    margin-top: 1.9rem;
}
.entry-content h2::before,
.entry-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: .12em;
    bottom: .18em;
    width: 4px;
    background: var(--accent-2);
}
.entry-content img { border-radius: 4px; display: block; }
.entry-content > *:last-child { margin-bottom: 0; }

.entry-meta {
    font-family: var(--font-head);
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.entry-meta a { color: var(--muted); }

.entry-thumb {
    margin-bottom: 1.6rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
}
.entry-thumb img { display: block; width: 100%; height: auto; }

/* =========================================================
   7. Карточки записей
   ========================================================= */
.card-list { display: block; }

.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform .12s linear, border-color .12s linear;
}
.card:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.card-inner { display: flex; flex-direction: row; min-height: 0; }

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
}
.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;
}

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
}
.card-title {
    font-size: 1.22rem;
    margin: 0 0 .55rem;
    line-height: 1.25;
}
.card-title a { color: var(--deep); text-decoration: none; }
.card-title a:hover { color: var(--accent); text-decoration: none; }

.card-meta {
    font-family: var(--font-head);
    font-size: .78rem;
    color: var(--muted);
    margin-bottom: .7rem;
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
}

.card-excerpt { font-size: .96rem; color: #34435A; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-excerpt > *:last-child { margin-bottom: 0; }

.card-more {
    margin-top: auto;
    padding-top: 1rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
    color: var(--accent);
    align-self: flex-start;
    border-bottom: 2px dotted var(--accent);
}
.card-more:hover { border-bottom-style: solid; text-decoration: none; }

/* =========================================================
   8. Сайдбар и виджеты
   ========================================================= */
.sidebar { min-width: 0; }
.sidebar .widget {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.3rem 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--ink);
}
.sidebar .widget-title {
    font-size: 1.02rem;
    color: var(--deep);
    margin: 0 0 1rem;
    padding-left: .8rem;
    border-left: 4px solid var(--accent-2);
}
.sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar .widget li {
    padding: .5rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: .95rem;
    color: var(--ink);
}
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget a { color: var(--deep); text-decoration-color: var(--line); }
.sidebar .widget a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.sidebar .widget .post-date,
.sidebar .widget .rss-date { display: block; color: var(--muted); font-size: .78rem; font-family: var(--font-head); }
.sidebar .widget p { color: var(--ink); font-size: .95rem; }

/* =========================================================
   9. Подвал
   ========================================================= */
.site-footer {
    background: var(--deep);
    color: #C7D4E4;
    border-top: 3px solid var(--accent);
    padding: 3rem 0 1.6rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
}
.site-footer .widget { margin-bottom: 1.4rem; color: #C7D4E4; }
.site-footer .widget-title {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 .9rem;
    padding-left: .75rem;
    border-left: 4px solid var(--accent-2);
}
.site-footer .widget p { color: #C7D4E4; font-size: .93rem; }
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget li {
    padding: .38rem 0;
    font-size: .93rem;
    color: #C7D4E4;
}
.site-footer .widget a {
    color: #DDE6F1;
    text-decoration-color: rgba(230, 57, 70, .8);
}
.site-footer .widget a:hover { color: #fff; text-decoration-style: solid; }
.site-footer .widget .post-date { color: #8FA3BC; font-size: .78rem; font-family: var(--font-head); display: block; }

.site-copy {
    margin-top: 1.8rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-family: var(--font-head);
    font-size: .82rem;
    color: #8FA3BC;
}

/* =========================================================
   10. Пагинация
   ========================================================= */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2.2rem 0 .5rem;
}
.pager .page-numbers {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .9rem;
    padding: .55rem .95rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    color: var(--deep);
    text-decoration: none;
    transition: transform .08s linear, box-shadow .08s linear;
}
.pager a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(2px);
    box-shadow: 0 3px 0 0 var(--line);
    text-decoration: none;
}
.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* =========================================================
   11. Главная страница
   ========================================================= */
.front-section { padding: 3.2rem 0; }
.front-section.is-alt { background: var(--bg-alt); }

.section-divider {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0;
    position: relative;
    height: 0;
}
.section-divider::after {
    content: "♦";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
    background: var(--bg);
    color: var(--accent-2);
    font-size: .8rem;
    padding: 0 .6rem;
    line-height: 1;
}
.section-divider.on-alt::after { background: var(--bg-alt); }
.front-section > .section-divider { margin-bottom: 2.6rem; }

.section-head { margin-bottom: 2rem; }
.section-title {
    font-size: 1.9rem;
    margin: 0 0 .6rem;
    padding-left: 1rem;
    position: relative;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .14em;
    height: .8em;
    width: 4px;
    background: var(--accent-2);
}
.section-lead {
    color: var(--muted);
    max-width: 720px;
    margin: 0;
    font-size: 1.02rem;
}

/* --- Hero --- */
.hero {
    background: var(--deep);
    color: #fff;
    padding: 4.2rem 0 4.4rem;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 460px;
    height: 380px;
    opacity: .05;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 460 380'%3E%3Cpath d='M20 370V150L150 60l130 90v220zM280 370V190l160-70v250z' fill='none' stroke='%23ffffff' stroke-width='6'/%3E%3Cpath d='M60 370v-90h60v90zM170 370v-90h60v90zM320 370v-70h60v70z' fill='none' stroke='%23ffffff' stroke-width='6'/%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-kicker {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 1rem;
}
.hero-title {
    font-size: 4.2rem;
    line-height: 1.02;
    color: #fff;
    margin: 0 0 1.2rem;
    letter-spacing: -.03em;
}
.hero-text {
    color: #C7D4E4;
    font-size: 1.06rem;
    max-width: 560px;
    margin-bottom: 1.9rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-art { min-width: 0; }
.hero-art svg { display: block; width: 100%; height: auto; }

/* --- Статистика --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}
.stat-cell {
    padding: 1.2rem 1.4rem;
    border-right: 1px dashed var(--line);
    min-width: 0;
}
.stat-cell:last-child { border-right: none; }
.stat-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 3.2rem;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -.03em;
}
.stat-label {
    font-family: var(--font-head);
    font-size: .84rem;
    color: var(--muted);
    margin-top: .6rem;
    line-height: 1.4;
}

/* --- Сетка карточек лотов --- */
.lot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}
.lot {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .12s linear, border-color .12s linear;
}
.lot:hover { border-color: var(--accent); transform: translateX(-4px); }
.lot-head {
    font-family: var(--font-head);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: .8rem 1.2rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg-alt);
}
.lot-thumb { display: block; }
.lot-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.lot-body { padding: 1.2rem 1.3rem 1.4rem; flex: 1; min-width: 0; }
.lot-title { font-size: 1.1rem; margin: 0 0 .5rem; }
.lot-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -.03em;
    margin: .4rem 0 .3rem;
}
.lot-note { font-size: .93rem; color: var(--muted); margin: 0; }
.badge-audit {
    position: absolute;
    top: 16px;
    right: -34px;
    width: 132px;
    transform: rotate(45deg);
    background: var(--accent-2);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .14em;
    text-align: center;
    padding: .3rem 0;
    z-index: 2;
}

/* --- FAQ --- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: transparent;
    border: 0;
    padding: 1.3rem .4rem;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--deep);
}
.faq-q .faq-idx {
    color: var(--accent-2);
    font-size: .95rem;
    font-weight: 800;
    padding-top: .18rem;
    flex: 0 0 auto;
}
.faq-q .faq-text { flex: 1; min-width: 0; color: #33445C; }
.faq-q[aria-expanded="true"] .faq-text { color: var(--deep); }
.faq-q .faq-sign {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 1.3rem;
    line-height: 1;
    padding-top: .1rem;
}
.faq-answer {
    display: block;
    padding: 0 .4rem 1.4rem 3rem;
    border-top: 1px solid var(--accent-2);
    margin-top: -1px;
}
.faq-answer p { margin: 1rem 0 0; color: #34435A; font-size: .99rem; }

/* --- Последние записи на главной --- */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}
.latest-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    transition: transform .12s linear, border-color .12s linear;
}
.latest-card:hover { border-color: var(--accent); transform: translateX(4px); }
.latest-thumb { display: block; }
.latest-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.latest-body { flex: 1; min-width: 0; padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; }
.latest-title { font-size: 1.1rem; margin: 0 0 .5rem; line-height: 1.28; }
.latest-title a { color: var(--deep); text-decoration: none; }
.latest-title a:hover { color: var(--accent); }
.latest-meta { font-family: var(--font-head); font-size: .77rem; color: var(--muted); margin-bottom: .6rem; }
.latest-excerpt { font-size: .94rem; color: #34435A; }
.latest-excerpt p { margin: 0 0 .5em; background: none; }
.latest-more {
    margin-top: auto;
    padding-top: .9rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .86rem;
    color: var(--accent);
    text-decoration: none;
    align-self: flex-start;
    border-bottom: 2px dotted var(--accent);
}
.latest-more:hover { border-bottom-style: solid; text-decoration: none; }

.section-foot { margin-top: 2rem; }

.empty-note {
    background: var(--white);
    border: 1px dashed var(--line);
    border-radius: 4px;
    padding: 1.6rem 1.7rem;
    color: var(--muted);
    margin: 0;
}

/* --- CTA (диагональная штриховка) --- */
.fs-cta {
    background-color: var(--deep);
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 12px);
    color: #fff;
    padding: 2.6rem 2.2rem;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    margin-top: 2.4rem;
}
.fs-cta h2 { color: #fff; margin: 0 0 .5rem; font-size: 1.5rem; }
.fs-cta p { color: #C7D4E4; margin: 0; max-width: 640px; }
.fs-cta-text { min-width: 0; }

/* =========================================================
   12. Формы (поиск, комментарии)
   ========================================================= */
.search-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.search-form .search-field {
    flex: 1 1 200px;
    min-width: 0;
    padding: .7rem .9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--ink);
}
.search-form .search-field:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.search-form .search-submit {
    padding: .7rem 1.3rem;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: transform .08s linear, box-shadow .08s linear;
}
.search-form .search-submit:hover { transform: translateY(2px); box-shadow: 0 4px 0 0 #A32831; }

.comments-area {
    margin-top: 2.6rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--line);
}
.comments-title { font-size: 1.4rem; margin-bottom: 1.4rem; padding-left: 1rem; border-left: 4px solid var(--accent-2); }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0 1.6rem; padding: 0; }
.comment-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.2rem 1.3rem;
    margin-bottom: 1rem;
}
.comment-head { display: flex; flex-wrap: wrap; gap: .9rem; align-items: baseline; margin-bottom: .6rem; }
.comment-author { font-family: var(--font-head); font-weight: 700; color: var(--deep); }
.comment-date { font-family: var(--font-head); font-size: .78rem; color: var(--muted); }
.comment-text p { margin: 0 0 .7em; }
.comment-reply a {
    font-family: var(--font-head);
    font-size: .84rem;
    font-weight: 700;
}
.comment-hold { color: var(--muted); font-size: .9rem; }

.comment-respond {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.5rem 1.6rem;
}
.comment-reply-title { font-size: 1.2rem; margin-bottom: 1rem; }
.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 700;
    color: var(--deep);
    margin-bottom: .35rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: .95rem;
    background: var(--bg);
    color: var(--ink);
    margin-bottom: 1rem;
}
.comment-form textarea { min-height: 140px; }
.comment-form .submit {
    padding: .8rem 1.6rem;
    background: var(--accent);
    border: 2px solid var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: transform .08s linear, box-shadow .08s linear;
}
.comment-form .submit:hover { transform: translateY(2px); box-shadow: 0 4px 0 0 #A32831; }
.comment-form .comment-notes,
.comment-form .comment-form-cookies-consent { font-size: .87rem; color: var(--muted); }
.comment-form-cookies-consent input { margin-right: .4rem; }

/* =========================================================
   13. 404
   ========================================================= */
.error-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2.4rem 2.2rem;
}
.error-code {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 5rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: .6rem;
}
.error-box .search-form { margin: 1.6rem 0; }

/* =========================================================
   14. Cookie-баннер
   ========================================================= */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--deep);
    color: #DDE6F1;
    border-top: 3px solid var(--accent-2);
    padding: 1.1rem 1.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}
.cookie-banner p { margin: 0; font-size: .9rem; max-width: 760px; }
.cookie-banner a { color: #fff; }
.cookie-accept {
    padding: .65rem 1.5rem;
    background: var(--accent);
    border: 2px solid var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: transform .08s linear, box-shadow .08s linear;
}
.cookie-accept:hover { transform: translateY(2px); box-shadow: 0 4px 0 0 #A32831; }

/* =========================================================
   15. Адаптив
   ========================================================= */
@media (max-width: 960px) {
    body { font-size: 16px; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .layout-single { width: 100%; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .hero-title { font-size: 2.9rem; }
    .lot-grid,
    .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-cell:nth-child(2) { border-right: none; }
    .stat-cell:nth-child(1),
    .stat-cell:nth-child(2) { border-bottom: 1px dashed var(--line); padding-bottom: 1.5rem; }
    .stat-cell:nth-child(3),
    .stat-cell:nth-child(4) { padding-top: 1.5rem; }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .nav-toggle { display: inline-block; }
    .main-nav {
        flex-basis: 100%;
        display: none;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li { border-top: 1px solid rgba(255, 255, 255, .12); }
    .main-nav a { display: block; padding: .85rem 0; border-bottom: 0; }
    .brand { max-width: calc(100% - 130px); }
}

@media (max-width: 600px) {
    .site-main { padding: 1.8rem 0 2.6rem; }
    .hero { padding: 3rem 0 3.2rem; }
    .hero-title { font-size: 2.3rem; }
    .page-title { font-size: 1.75rem; }
    .section-title { font-size: 1.45rem; }
    .front-section { padding: 2.4rem 0; }
    .fs-cta { padding: 1.8rem 1.4rem; }
    .lot-grid,
    .latest-grid { grid-template-columns: minmax(0, 1fr); }
    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stat-cell {
        border-right: none;
        border-bottom: 1px dashed var(--line);
        padding: 1.1rem 0;
    }
    .stat-cell:last-child { border-bottom: none; }
    .stat-num { font-size: 2.6rem; }
    .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }

    .card-inner { 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;
    }
    .card-body { padding: 1.2rem 1.2rem 1.3rem; }
    .faq-answer { padding-left: 1rem; }
    .comment-list .children { margin-left: .8rem; }
    .cookie-banner { justify-content: flex-start; }
    .error-code { font-size: 3.6rem; }
}
