/*
Theme Name: dds_emaar-golfhillside.com
Author: Дмитрий Соколов
Description: Тема для экспертного портала-гида о премиальных жилых комплексах.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: ghills
*/

:root {
    --bg: #0B1220;
    --bg-alt: #111C2E;
    --bg-footer: #070D18;
    --bg-sidebar: #0F1A2B;
    --text: #E6EDF5;
    --muted: #7A8BA3;
    --gold: #C9A227;
    --gold-hot: #E0B83A;
    --blue: #4A90D9;
    --line: #1E3A5F;
    --grid: rgba(26, 42, 68, 0.15);
    --shadow: 0 10px 26px rgba(12, 28, 52, 0.45);
    --font-head: "Futura", "Century Gothic", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PT Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* -------------------------------------------------- база -------------- */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        linear-gradient(to right, var(--grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
    background-size: 46px 46px;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    z-index: 200;
}

body::after {
    content: "";
    position: fixed;
    right: 0;
    bottom: 0;
    width: 440px;
    height: 290px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 260'%3E%3Cg fill='none' stroke='%231E3A5F' stroke-width='3'%3E%3Cpath d='M10 210 C90 150 150 190 210 150 C260 118 320 130 390 100'/%3E%3Cpath d='M10 240 C100 200 160 230 230 200 C290 175 340 180 390 160'/%3E%3Cellipse cx='250' cy='150' rx='46' ry='14'/%3E%3Cpath d='M250 150 V60'/%3E%3Cpath d='M250 62 h44 l-16 14 16 14 h-44'/%3E%3C/g%3E%3C/svg%3E");
}

.site-header,
.site-main,
.site-footer { position: relative; z-index: 1; }

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

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

.shell-narrow { width: min(85%, 1180px); }

/* -------------------------------------------------- типографика ------- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 0.055em;
    line-height: 1.2;
    color: var(--text);
    margin: 0 0 0.7em;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

a { color: var(--blue); text-decoration: none; }

.entry-content a,
.crumbs a,
.widget a,
.card-link,
.comment-actions a {
    position: relative;
}

.entry-content a::after,
.widget a::after,
.card-link::after,
.crumbs a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease 0.15s;
}

.entry-content a:hover::after,
.widget a:hover::after,
.card-link:hover::after,
.crumbs a:hover::after { transform: scaleX(1); }

/* -------------------------------------------------- кнопки ------------ */

.btn {
    display: inline-block;
    padding: 0.72rem 1.6rem;
    border-radius: 4px;
    font-family: var(--font-head);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.btn-solid {
    background: var(--gold);
    color: #0B1220;
    border: 1.5px solid var(--gold);
}

.btn-solid:hover,
.btn-solid:focus {
    background: var(--gold-hot);
    border-color: var(--gold-hot);
    box-shadow: 0 0 16px rgba(201, 162, 39, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--gold-hot);
    border-color: var(--gold-hot);
    color: #0B1220;
    box-shadow: 0 0 16px rgba(201, 162, 39, 0.3);
}

/* -------------------------------------------------- шапка ------------- */

.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1.6rem 0 1.3rem;
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 320px;
}

.brand-mark { display: block; flex: 0 0 auto; }
.brand-logo { max-height: 56px; width: auto; display: block; }
.brand-logo-mark { display: block; }

.brand-text { min-width: 0; display: flex; flex-direction: column; }

.brand-name {
    font-family: var(--font-head);
    font-size: 1.02rem;
    letter-spacing: 0.06em;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: transparent;
    color: var(--gold);
    border: 1.5px solid var(--gold);
    border-radius: 4px;
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.nav-toggle-bar {
    width: 18px;
    height: 2px;
    background: var(--gold);
    box-shadow: 0 5px 0 var(--gold), 0 -5px 0 var(--gold);
}

.primary-nav { flex: 0 1 auto; }

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list a {
    font-family: var(--font-head);
    font-size: 0.95rem;
    letter-spacing: 0.07em;
    color: var(--text);
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease 0.1s;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.nav-list .sub-menu {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* -------------------------------------------------- макеты ------------ */

.site-main { padding-bottom: 3.5rem; }

.page-shell { padding-top: 2rem; }

.layout-single { display: block; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 2.4rem;
    align-items: start;
}

.content-area { min-width: 0; }

.crumbs {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    letter-spacing: 0.02em;
}

.crumbs a { color: var(--blue); }
.crumbs .sep { color: var(--line); margin: 0 0.35rem; }
.crumbs span:not(.sep) { color: var(--muted); }

.page-head { margin-bottom: 1.8rem; }
.page-title { font-size: 2.4rem; margin-bottom: 0.4rem; }
.entry-meta, .archive-desc { color: var(--muted); font-size: 0.9rem; }

.empty-note { color: var(--muted); }

/* -------------------------------------------------- секции главной ---- */

.front-section { padding: 4.2rem 0; }
.front-section + .front-section { border-top: 1px dashed var(--line); }

.fs-alt {
    background-color: var(--bg-alt);
    background-image:
        linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 60%),
        linear-gradient(to right, var(--grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
    background-size: 100% 100%, 46px 46px, 46px 46px;
}

.section-title {
    position: relative;
    padding-left: 2rem;
    font-size: 2rem;
    margin-bottom: 0.6rem;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    width: 2px;
    height: 1.15em;
    background: var(--gold);
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    bottom: 0.32em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
}

.section-lead {
    color: var(--muted);
    max-width: 62ch;
    margin-bottom: 2.2rem;
}

.section-more { margin-top: 2.2rem; }

/* hero */

.fs-hero { padding: 5rem 0 4.6rem; }

.hero-box {
    background: linear-gradient(160deg, rgba(17, 28, 46, 0.9) 0%, rgba(11, 18, 32, 0.9) 100%);
    border: 1px solid var(--line);
    padding: 3.2rem 2.8rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.hero-kicker {
    color: var(--gold);
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.hero-title {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 1.2rem;
}

.hero-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1em;
    bottom: 0.1em;
    width: 2px;
    background: var(--gold);
}

.hero-lead {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 64ch;
    margin-bottom: 1.9rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 0; }

/* таймлайн */

.stage-line {
    list-style: none;
    margin: 0;
    padding: 0 0 0 2.4rem;
    position: relative;
}

.stage-line::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 2px;
    background: var(--gold);
    opacity: 0.55;
}

.stage-item {
    position: relative;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    background: rgba(11, 18, 32, 0.6);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.1rem;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.stage-item:hover { border-color: var(--gold); transform: translateY(-3px); }

.stage-item::before {
    content: "";
    position: absolute;
    left: -2.4rem;
    top: 1.9rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--gold);
}

.stage-num {
    flex: 0 0 auto;
    font-family: var(--font-head);
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    color: var(--gold);
    line-height: 1.2;
}

.stage-body { min-width: 0; }
.stage-title { font-size: 1.2rem; margin-bottom: 0.4rem; }
.stage-text { color: var(--muted); margin: 0; }

/* статистика */

.fact-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(11, 18, 32, 0.55);
    padding: 2rem 1.6rem;
}

.fact-item {
    min-width: 0;
    padding: 0 1.3rem;
    text-align: center;
    border-right: 1px solid var(--line);
}

.fact-item:last-child { border-right: 0; }

.fact-value {
    display: block;
    font-family: var(--font-head);
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: 0.04em;
    color: var(--gold);
}

.fact-label {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.fact-note { margin: 1.4rem 0 0; color: var(--muted); font-size: 0.85rem; }

/* рубрикатор */

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
}

.topic-tile {
    display: block;
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.7rem 1.6rem;
    color: var(--text);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.topic-tile:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.topic-icon { display: block; margin-bottom: 0.9rem; }

.topic-title {
    display: block;
    font-family: var(--font-head);
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.topic-text { display: block; color: var(--muted); font-size: 0.92rem; }

/* -------------------------------------------------- карточки ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(12, 28, 52, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(12, 28, 52, 0.55);
    border-color: var(--gold);
}

.card-thumb { display: block; }
.card-thumb a { display: block; }

.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
    object-fit: cover;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.4rem 1.5rem;
    min-width: 0;
}

.card-title { font-size: 1.22rem; margin-bottom: 0.35rem; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--gold); }

.card-meta { color: var(--muted); font-size: 0.83rem; margin-bottom: 0.7rem; }

.card-excerpt { color: var(--muted); font-size: 0.95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-link {
    margin-top: auto;
    padding-top: 0.9rem;
    align-self: flex-start;
    font-family: var(--font-head);
    font-size: 0.86rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
}

/* -------------------------------------------------- контент ----------- */

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

.entry-content { font-size: 1.02rem; }

.entry-content h2 {
    position: relative;
    padding-left: 1.4rem;
    font-size: 1.7rem;
    margin-top: 2.2rem;
}

.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 2px;
    height: 1.1em;
    background: var(--gold);
}

.entry-content h3 { margin-top: 1.8rem; font-size: 1.3rem; }

.entry-content ul, .entry-content ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content ul li::marker { color: var(--gold); }
.entry-content ol li::marker { color: var(--gold); }

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.6rem 1.8rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--gold);
    border-radius: 0 6px 0 0;
    color: var(--text);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content img { border-radius: 6px; display: block; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid var(--line);
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--line);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

.entry-content th { background: var(--bg-alt); color: var(--text); }

.entry-content code, .entry-content pre {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
}

.entry-content code { padding: 0.1rem 0.35rem; }
.entry-content pre { padding: 1rem 1.2rem; overflow-x: auto; }

.entry-tags { margin-top: 1.8rem; font-size: 0.9rem; color: var(--muted); }
.entry-tags a { color: var(--blue); margin-right: 0.5rem; }

.page-links { margin-top: 1.4rem; color: var(--muted); }

.post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px dashed var(--line);
}

.post-nav-link { color: var(--blue); font-size: 0.95rem; max-width: 46%; }
.post-nav-next { margin-left: auto; text-align: right; }

.blog-intro { margin-bottom: 2rem; }

/* -------------------------------------------------- сайдбар ----------- */

.sidebar {
    min-width: 0;
    background: var(--bg-sidebar);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.6rem 1.5rem;
    color: var(--text);
}

.sidebar .widget { margin-bottom: 1.8rem; }
.sidebar .widget:last-child { margin-bottom: 0; }

.widget-title {
    position: relative;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-left: 1rem;
    margin-bottom: 0.9rem;
    color: var(--text);
}

.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25em;
    width: 2px;
    height: 1em;
    background: var(--gold);
}

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li { color: var(--text); }

.sidebar .widget a { color: var(--blue); }
.sidebar .widget a:hover { color: var(--gold-hot); }
.sidebar .widget .post-date,
.sidebar .widget .rss-date { color: var(--muted); font-size: 0.85rem; }

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

.widget li {
    padding: 0.45rem 0 0.45rem 1rem;
    position: relative;
    border-bottom: 1px dashed var(--line);
    font-size: 0.95rem;
}

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

.widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 4px;
    height: 4px;
    background: var(--gold);
}

/* -------------------------------------------------- пагинация --------- */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.4rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 0.5rem 0.85rem;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    font-family: var(--font-head);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.pager a.page-numbers:hover { border-color: var(--gold); color: var(--gold); }

.pager .page-numbers.current {
    background: var(--gold);
    border-color: var(--gold);
    color: #0B1220;
}

.pager .page-numbers.dots { border-color: transparent; color: var(--muted); }

/* -------------------------------------------------- поиск ------------- */

.search-form { margin: 1.4rem 0; }
.search-label { display: block; margin-bottom: 0.5rem; color: var(--muted); font-size: 0.9rem; }
.search-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.search-field {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.98rem;
}

.search-field:focus { outline: none; border-color: var(--gold); }
.search-submit { flex: 0 0 auto; }

/* -------------------------------------------------- комментарии ------- */

.comments-area {
    margin-top: 3rem;
    padding-top: 1.8rem;
    border-top: 1px dashed var(--line);
}

.comments-title { font-size: 1.5rem; }

.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding-left: 1.6rem; }

.comment-inner {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
}

.comment-head { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: baseline; margin-bottom: 0.5rem; }
.comment-author { font-family: var(--font-head); letter-spacing: 0.05em; color: var(--text); }
.comment-date { color: var(--muted); font-size: 0.85rem; }
.comment-hold { color: var(--gold); font-size: 0.9rem; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-actions { margin-top: 0.6rem; font-size: 0.88rem; }
.comments-closed { color: var(--muted); }

.comment-respond {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.6rem 1.7rem;
}

.comment-reply-title { font-size: 1.3rem; }

.comment-form label { display: block; margin-bottom: 0.4rem; color: var(--muted); font-size: 0.9rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.98rem;
}

.comment-form textarea { resize: vertical; }

.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--gold); }

.comment-form .form-submit { margin-top: 1rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { color: var(--muted); }
.comment-form .comment-form-cookies-consent input { width: auto; }

.comment-navigation a, .comments-area .nav-links a { color: var(--blue); }

/* -------------------------------------------------- подвал ------------ */

.site-footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--line);
    padding: 3rem 0 1.6rem;
    color: var(--text);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.footer-col { min-width: 0; }

.site-footer .widget,
.site-footer .widget p,
.site-footer .widget li { color: var(--text); font-size: 0.95rem; }

.site-footer .widget a { color: var(--blue); }
.site-footer .widget a:hover { color: var(--gold-hot); }
.site-footer .widget-title { color: var(--text); }
.site-footer .widget li { border-bottom: 1px dashed var(--line); }

.footer-bottom {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--line);
}

.copyright { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* -------------------------------------------------- cookie ------------ */

.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.6rem;
    background: var(--bg-alt);
    border-top: 1px solid var(--gold);
    box-shadow: 0 -8px 24px rgba(5, 10, 20, 0.6);
}

.cookie-text { margin: 0; color: var(--text); font-size: 0.92rem; max-width: 74ch; }
.cookie-accept { flex: 0 0 auto; }

/* -------------------------------------------------- адаптив ----------- */

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .page-title { font-size: 2rem; }

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

    .primary-nav {
        flex: 1 1 100%;
        display: none;
    }

    .primary-nav.is-open { display: block; }

    .nav-list {
        flex-direction: column;
        gap: 0.2rem;
        padding-top: 0.8rem;
        border-top: 1px dashed var(--line);
    }

    .nav-list li { padding: 0.45rem 0; }

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2rem; }

    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .fact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
    .fact-item:nth-child(2) { border-right: 0; }

    body::after { width: 300px; height: 200px; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }

    h1 { font-size: 1.95rem; }
    h2 { font-size: 1.6rem; }
    .section-title { font-size: 1.55rem; }
    .page-title { font-size: 1.75rem; }

    .shell, .shell-narrow { width: 90%; }

    .front-section { padding: 3rem 0; }
    .fs-hero { padding: 3.2rem 0 3rem; }

    .hero-box { padding: 2rem 1.4rem; }
    .hero-lead { font-size: 1rem; }
    .hero-actions .btn { width: 100%; text-align: center; }

    .stage-line { padding-left: 1.8rem; }
    .stage-line::before { left: 4px; }
    .stage-item { padding: 1.2rem 1.2rem; flex-direction: column; gap: 0.5rem; }
    .stage-item::before { left: -1.8rem; top: 1.6rem; }

    .fact-row { grid-template-columns: minmax(0, 1fr); padding: 1.6rem 1.3rem; }
    .fact-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 1.2rem; }
    .fact-item:last-child { border-bottom: 0; padding-bottom: 0; }
    .fact-value { font-size: 2.4rem; }

    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .topic-tile { padding: 1.4rem 1.3rem; }

    .card-grid { grid-template-columns: minmax(0, 1fr); }
    .card-body { padding: 1.2rem 1.2rem 1.3rem; }

    .sidebar { padding: 1.4rem 1.2rem; }

    .entry-content blockquote { padding: 1.3rem 1.3rem; }
    .comment-inner { padding: 1.1rem 1.1rem; }
    .comment-respond { padding: 1.3rem 1.2rem; }

    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }

    .cookie-banner { padding: 1rem 1.2rem; }
    .cookie-accept { width: 100%; }

    .post-nav-link { max-width: 100%; }
    .post-nav-next { margin-left: 0; text-align: left; }

    body::after { display: none; }
}
