/*
Theme Name: dds_dvizhenie39.ru
Theme URI: https://dvizhenie39.ru/
Author: Антон Горелов
Description: «Градостроительный контур» — тема для информационно-образовательной платформы о развитии городов и территорий. Швейцарская модульная сетка, чертёжные метафоры, холодная стально-синяя гамма с бирюзовым акцентом.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gkontur
*/

/* ---------- Токены ---------- */
:root {
    --bg: #F4F7FA;
    --bg-alt: #E8EEF4;
    --ink: #1A2B3C;
    --night: #0F2438;
    --teal: #00A6A6;
    --teal-deep: #007F7F;
    --coral: #FF6B4A;
    --mute: #6B7F94;
    --line: #D0DCE8;
    --white: #FFFFFF;
    --f-head: "Oswald", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --f-body: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Скрываемые элементы (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }
.primary-nav[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(208, 220, 232, .3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(208, 220, 232, .3) 1px, transparent 1px);
    background-size: 24px 24px;
    position: relative;
}
body::after {
    content: "";
    position: fixed;
    right: -140px;
    bottom: -140px;
    width: 520px;
    height: 520px;
    opacity: .04;
    pointer-events: none;
    z-index: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%230F2438' stroke-width='2'%3E%3Ccircle cx='100' cy='100' r='96'/%3E%3Ccircle cx='100' cy='100' r='76'/%3E%3Ccircle cx='100' cy='100' r='56'/%3E%3Ccircle cx='100' cy='100' r='36'/%3E%3Ccircle cx='100' cy='100' r='14'/%3E%3Cpath d='M100 4V196M4 100H196M32 32L168 168M168 32L32 168'/%3E%3C/svg%3E") no-repeat center / contain;
}
.site-main { position: relative; z-index: 1; }

img, svg, video { max-width: 100%; }
img { height: auto; display: block; }

p { margin: 0 0 1.1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
    margin: 1.6em 0 .6em;
    letter-spacing: -.005em;
}
h1 { font-size: 2.3rem; letter-spacing: -.02em; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }
h1, h2, h3, h4, p, li, td, th, dd, dt, blockquote, figcaption {
    overflow-wrap: break-word;
    hyphens: auto;
}

a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--mute);
    text-underline-offset: 3px;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
}

/* Анимированное подчёркивание в тексте записей */
.entry-content a, .page-sub a, .remark-text a {
    text-decoration-color: var(--mute);
    background-image: linear-gradient(var(--teal), var(--teal));
    background-repeat: no-repeat;
    background-size: 0 2px;
    background-position: 0 100%;
    transition: background-size .3s ease, color .2s;
}
.entry-content a:hover, .page-sub a:hover, .remark-text a:hover {
    color: var(--teal-deep);
    text-decoration-color: transparent;
    background-size: 100% 2px;
}

ul, ol { padding-left: 1.4em; margin: 0 0 1.2em; }
blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.5rem;
    border-left: 4px solid var(--teal);
    background: var(--bg-alt);
    font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; border: 1px solid var(--line); font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-family: var(--f-head); font-weight: 500; letter-spacing: .03em; }
pre { overflow-x: auto; background: var(--night); color: #E8EEF4; padding: 1rem 1.2rem; font-size: .9rem; }
code { background: var(--bg-alt); padding: .1em .35em; font-size: .92em; }
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px dashed var(--teal); width: 33%; margin: 2.5em 0; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    left: 1rem;
    top: -60px;
    z-index: 100;
    background: var(--teal);
    color: var(--white);
    padding: .6rem 1rem;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Контейнер ---------- */
.shell { width: min(85%, 1240px); margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    font-family: var(--f-head);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.3;
    padding: .8rem 1.6rem;
    border-radius: 2px;
    border: 2px solid var(--teal);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s, color .18s;
    max-width: 100%;
    white-space: normal;
    text-align: center;
}
.btn:hover { transform: translate(2px, -2px); }
.btn-fill { background: var(--teal); color: var(--white); }
.btn-fill:hover { box-shadow: -4px 4px 0 var(--night); color: var(--white); }
.btn-line { background: transparent; color: var(--teal-deep); }
.btn-line:hover { box-shadow: -4px 4px 0 var(--teal); color: var(--teal-deep); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost-light:hover { box-shadow: -4px 4px 0 var(--teal); color: var(--white); }

/* ---------- Верхняя полоса и шапка ---------- */
.topline { height: 4px; background: linear-gradient(90deg, var(--teal), var(--coral)); }
.masthead { background: var(--night); color: #E8EEF4; position: relative; z-index: 5; }
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #E8EEF4;
    text-decoration: none;
    flex: 1 1 520px;
    min-width: 0;
}
.brand-mark { flex: 0 0 auto; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--f-head);
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .01em;
    color: var(--white);
}
.brand-desc {
    font-size: .8rem;
    line-height: 1.45;
    color: #9FB2C6;
    margin-top: .3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.primary-nav { flex: 0 1 auto; min-width: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; }
.nav-list li { position: relative; }
.nav-list a {
    font-family: var(--f-head);
    font-size: .95rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #E8EEF4;
    text-decoration: none;
    display: inline-block;
    padding: .35rem 0;
    background-image: linear-gradient(var(--teal), var(--teal));
    background-repeat: no-repeat;
    background-size: 0 2px;
    background-position: 0 100%;
    transition: background-size .25s ease, color .2s;
}
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--white); background-size: 100% 2px; }
.nav-list .sub-menu { list-style: none; margin: 0; padding: .5rem 0; }
.nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    background: transparent;
    color: var(--white);
    border: 1px solid #3A5470;
    border-radius: 2px;
    padding: .55rem .9rem;
    font-family: var(--f-head);
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--teal);
    position: relative;
    content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle-bars::after { position: absolute; top: 6px; left: 0; }

/* ---------- Хлебные крошки ---------- */
.page-wrap { padding: 2.2rem 0 5rem; }
.crumbs { font-size: .88rem; color: var(--mute); margin-bottom: 2rem; }
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--teal-deep); text-decoration-color: var(--teal); }
.crumbs span:last-child { color: var(--ink); }
.crumbs-sep { color: var(--teal); padding: 0 .25rem; }

/* ---------- Раскладки ---------- */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    align-items: start;
}
.layout-single { display: block; }
.layout-single > .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }

.page-head { margin-bottom: 2.4rem; }
.page-title {
    font-size: 2.6rem;
    letter-spacing: -.02em;
    margin: 0 0 .5rem;
    text-transform: uppercase;
}
.page-sub { color: var(--mute); max-width: 62ch; margin: 0; }
.empty-note { color: var(--mute); font-style: italic; }
.empty-block { padding: 2rem 2rem; border: 1px dashed var(--line); background: var(--white); }

/* ---------- Заголовки секций ---------- */
.sec-title {
    position: relative;
    margin: 0 0 1rem;
    padding-left: 2.1rem;
    font-size: 1.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    line-height: 1.25;
}
.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .12em;
    bottom: .12em;
    width: 4px;
    background: var(--teal);
}
.sec-title::after {
    content: "";
    position: absolute;
    left: 1rem;
    top: calc(.62em - 3px);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    transition: transform .3s ease;
}
.fs:hover .sec-title::after { transform: scale(1.7); }
.sec-lead { color: var(--mute); max-width: 60ch; margin: 0 0 3rem 2.1rem; }

/* H2 в тексте — точка у базовой линии */
.entry-content h2 { position: relative; padding-left: 1rem; }
.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    transition: transform .3s ease;
}
.entry-content h2:hover::before { transform: scale(1.6); }

/* ---------- Секции главной ---------- */
.fs { padding: 5.5rem 0; background: var(--bg); position: relative; }
.fs-alt { background-color: var(--bg-alt); }
.fs-hatch {
    background-image:
        repeating-linear-gradient(45deg, rgba(15, 36, 56, .05) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(-45deg, rgba(15, 36, 56, .05) 0 1px, transparent 1px 22px);
}
.fs > .shell::before {
    content: "";
    display: block;
    width: 33.333%;
    border-top: 1px dashed var(--teal);
    margin-bottom: 3rem;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--night);
    color: var(--white);
    min-height: 560px;
    display: flex;
    align-items: center;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(.6);
}
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(15, 36, 56, .94) 0%, rgba(15, 36, 56, .78) 48%, rgba(15, 36, 56, .35) 100%);
    z-index: 1;
}
.hero-inner { position: relative; z-index: 2; padding: 6rem 0; }
.hero-copy { max-width: 720px; min-width: 0; }
.hero-kicker { font-size: .95rem; color: #9FDCDC; margin: 0 0 1.2rem; letter-spacing: .02em; }
.hero-title {
    font-size: 3.2rem;
    line-height: 1.08;
    letter-spacing: -.025em;
    font-weight: 600;
    margin: 0;
    color: var(--white);
}
.hero-rule { display: block; width: 96px; height: 2px; background: var(--teal); margin: 1.8rem 0; }
.hero-lead { font-size: 1.12rem; color: #D5E0EB; max-width: 58ch; margin: 0 0 2.2rem; }

/* Статистика */
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat {
    padding: .5rem 1.8rem 0;
    border-left: 1px dashed var(--mute);
    min-width: 0;
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num {
    display: block;
    font-family: var(--f-head);
    font-size: 4.4rem;
    font-weight: 600;
    line-height: 1;
    color: var(--teal);
    letter-spacing: -.03em;
    margin-bottom: .9rem;
}
.stat-cap { display: block; font-size: .95rem; line-height: 1.55; color: var(--mute); }

/* Карточки */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    min-width: 0;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--teal); border-color: var(--teal); }
.card-thumb { border-bottom: 1px solid var(--line); }
.card-thumb a { display: block; }
.card-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 0; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.4rem 1.5rem 1.6rem; min-width: 0; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font-size: .82rem; color: var(--mute); margin-bottom: .8rem; }
.card-pin { color: var(--coral); font-weight: 600; }
.card-title { font-size: 1.28rem; margin: 0 0 .7rem; line-height: 1.3; }
.card-title a { text-decoration: none; color: var(--ink); transition: color .2s; }
.card:hover .card-title a { color: var(--teal-deep); }
.card-excerpt { color: #3A4C5E; font-size: .97rem; line-height: 1.65; flex: 1; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-more {
    align-self: flex-start;
    margin-top: .8rem;
    font-family: var(--f-head);
    font-size: .88rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--teal-deep);
    text-decoration: none;
    border-bottom: 1px solid var(--mute);
    padding-bottom: 2px;
    transition: border-color .2s;
}
.card-more:hover { border-color: var(--teal); }
.latest-more { margin-top: 2.6rem; }

/* Метки рубрик */
.rubric-tag {
    display: inline-block;
    font-family: var(--f-head);
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.3;
    padding: .28rem .55rem;
    border-radius: 0;
    color: var(--white);
    background: var(--teal-deep);
}
.rubric-tag.tone-1 { background: #3E5C78; }
.rubric-tag.tone-2 { background: #3F4C9E; }
.rubric-tag.tone-3 { background: #1F78B4; }
.rubric-tag:hover { background: var(--coral); color: var(--white); }

/* Шаги */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    position: relative;
    counter-reset: none;
}
.steps::before {
    content: "";
    position: absolute;
    left: 2rem;
    right: 2rem;
    top: 2.4rem;
    border-top: 1px dashed var(--teal);
}
.step { position: relative; min-width: 0; }
.step-num {
    display: inline-block;
    font-family: var(--f-head);
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--teal);
    background: var(--bg-alt);
    padding: 0 .9rem 0 0;
    position: relative;
}
.step-title { font-size: 1.2rem; margin: 1.1rem 0 .5rem; }
.step-text { color: #3A4C5E; font-size: .97rem; margin: 0; }

/* Карта тем */
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.topic {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.8rem 1.7rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0;
    text-decoration: none;
    color: var(--ink);
    min-width: 0;
    transition: background-color .2s, border-color .2s, color .2s;
}
.topic-ico {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: var(--teal);
    stroke-width: 2;
    stroke-linecap: square;
    margin-bottom: .6rem;
    transition: stroke .2s;
}
.topic-name { font-family: var(--f-head); font-size: 1.2rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3; }
.topic-note { font-size: .92rem; color: var(--mute); transition: color .2s; }
.topic:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.topic:hover .topic-ico { stroke: var(--white); }
.topic:hover .topic-note { color: var(--white); }

/* ---------- Запись и страница ---------- */
.entry { min-width: 0; }
.entry-head { margin-bottom: 1.8rem; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-size: .88rem; color: var(--mute); margin-bottom: 1rem; }
.entry-title { font-size: 2.6rem; line-height: 1.12; letter-spacing: -.02em; margin: 0; }
.entry-cover { margin: 0 0 2rem; border: 1px solid var(--line); }
.entry-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { display: block; }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption, .wp-caption-text { font-size: .86rem; color: var(--mute); margin-top: .5rem; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.entry-tags a { font-size: .85rem; padding: .25rem .6rem; border: 1px solid var(--line); background: var(--white); text-decoration: none; color: var(--mute); }
.entry-tags a:hover { border-color: var(--teal); color: var(--teal-deep); }
.page-links { margin-top: 1.5rem; }

.entry-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin: 3rem 0; }
.entry-nav-link {
    display: block;
    padding: 1.2rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    font-family: var(--f-head);
    font-size: 1.05rem;
    line-height: 1.35;
    transition: transform .2s, box-shadow .2s;
    min-width: 0;
}
.entry-nav-link span { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: .4rem; }
.entry-nav-link:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--teal); }
.entry-nav-next { grid-column: 2; text-align: right; }

/* ---------- Сайдбар ---------- */
.sidebar {
    background: var(--white);
    padding: 1.8rem 1.6rem;
    box-shadow: 0 10px 30px rgba(15, 36, 56, .07);
    border-top: 4px solid var(--teal);
    color: var(--ink);
    min-width: 0;
}
.sidebar .wdg + .wdg { margin-top: 2rem; }
.sidebar .wdg-title {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin: 0 0 1rem;
    color: var(--ink);
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: .65rem 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); text-decoration: none; }
.sidebar a:hover { color: var(--teal-deep); }
.sidebar .post-date { display: block; font-size: .8rem; color: var(--mute); }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.7rem;
    height: 2.7rem;
    padding: 0 .9rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--white);
    font-family: var(--f-head);
    font-size: .95rem;
    letter-spacing: .05em;
    color: var(--ink);
    text-decoration: none;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.pager a.page-numbers:hover { transform: translate(2px, -2px); box-shadow: -3px 3px 0 var(--teal); border-color: var(--teal); }
.pager .page-numbers.current { background: var(--teal); border-color: var(--teal); color: var(--white); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 .3rem; }

/* ---------- Поиск ---------- */
.seek { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.5rem 0; }
.seek-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: .78rem 1rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--white);
    font: inherit;
    color: var(--ink);
}
.seek-field:focus { border-color: var(--teal); }

/* ---------- 404 ---------- */
.lost { padding: 2rem 0 3rem; }
.lost-code {
    display: block;
    font-family: var(--f-head);
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--teal);
    margin-bottom: 1rem;
}
.lost-home { margin-top: 1.5rem; }

/* ---------- Комментарии ---------- */
.remarks { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px dashed var(--teal); }
.remarks-title, .comment-reply-title { font-size: 1.4rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 1.5rem; }
.remark-list, .remark-list .children { list-style: none; margin: 0; padding: 0; }
.remark-list .children { margin-left: 2rem; }
.remark-body { background: var(--white); border: 1px solid var(--line); padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.remark-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.remark-ava { border-radius: 0; display: block; }
.remark-author { display: block; font-weight: 600; }
.remark-date { display: block; font-size: .82rem; color: var(--mute); }
.remark-wait { color: var(--coral); font-size: .9rem; }
.remark-reply a { font-size: .85rem; color: var(--teal-deep); }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .9rem; margin-bottom: .3rem; }
.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: 2px;
    background: var(--white);
    font: inherit;
    color: var(--ink);
}
.comment-form .comment-form-cookies-consent label { display: inline; }
.form-note { font-size: .88rem; color: var(--mute); }

/* ---------- Подвал ---------- */
.colophon { background: var(--night); color: #C9D6E3; padding: 4.5rem 0 2rem; position: relative; z-index: 1; }
.colophon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
.colophon-col { min-width: 0; }
.colophon .wdg-title {
    color: var(--white);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin: 0 0 1.1rem;
    padding-left: .9rem;
    border-left: 4px solid var(--teal);
}
.colophon .wdg, .colophon p { color: #C9D6E3; font-size: .95rem; line-height: 1.7; }
.colophon a { color: #E8EEF4; text-decoration-color: #4E6884; }
.colophon a:hover { color: var(--teal); text-decoration-color: var(--teal); }
.colophon ul { list-style: none; padding: 0; margin: 0; }
.colophon li { padding: .3rem 0; }
.colophon .post-date { color: #8FA3B8; font-size: .82rem; }
.colophon-copy {
    margin: 3.5rem 0 0;
    padding-top: 1.6rem;
    border-top: 1px dashed #2E4A66;
    font-size: .88rem;
    color: #8FA3B8 !important;
}

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 50;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.2rem 1.5rem;
    background: var(--night);
    color: #E8EEF4;
    border-left: 4px solid var(--teal);
    box-shadow: 6px 6px 0 rgba(0, 166, 166, .35);
}
.cookie-text { margin: 0; font-size: .92rem; line-height: 1.55; flex: 1; min-width: 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .shell { width: 92%; }
    .nav-toggle { display: inline-flex; }
    .masthead-row { flex-wrap: wrap; }
    .brand { flex: 1 1 0; }
    .primary-nav { flex: 1 0 100%; display: none; }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0; padding: .6rem 0 .4rem; border-top: 1px solid #2E4A66; }
    .nav-list a { display: block; padding: .7rem 0; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
    .layout-single > .content-area { width: 100%; }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
    .stat:nth-child(3) { border-left: 0; padding-left: 0; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
    .steps::before { display: none; }
    .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .colophon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-title { font-size: 2.6rem; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .brand-desc { display: none; }
    .brand-logo { width: 44px; height: 44px; }
    .brand-name { font-size: .9rem; }
    .nav-toggle-label { display: none; }
    .fs { padding: 4rem 0; }
    .fs > .shell::before { margin-bottom: 2.2rem; width: 50%; }
    .hero { min-height: 480px; }
    .hero-inner { padding: 4rem 0; }
    .hero-title { font-size: 2rem; }
    .hero-lead { font-size: 1rem; }
    .sec-title { font-size: 1.4rem; letter-spacing: .06em; }
    .sec-lead { margin-left: 0; margin-bottom: 2.2rem; }
    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stat, .stat:nth-child(3) { border-left: 0; border-top: 1px dashed var(--mute); padding: 1.5rem 0 0; }
    .stat:first-child { border-top: 0; padding-top: 0; }
    .stat-num { font-size: 3.4rem; }
    .card-grid, .card-grid-2 { grid-template-columns: minmax(0, 1fr); }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .topics { grid-template-columns: minmax(0, 1fr); }
    .topic { padding: 1.4rem 1.3rem; }
    .page-title, .entry-title { font-size: 1.8rem; }
    .entry-nav { grid-template-columns: minmax(0, 1fr); }
    .entry-nav-next { grid-column: auto; }
    .colophon-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .sidebar { padding: 1.5rem 1.3rem; }
    .empty-block { padding: 1.5rem 1.3rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1.1rem 1.2rem; }
    .remark-list .children { margin-left: 1rem; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
    .lost-code { font-size: 5.5rem; }
}
