/*
Theme Name: dds_okeana-club.ru
Author: Елена Ковалева
Description: Информационная тема для образовательной платформы по безопасному детскому плаванию. Дизайн-концепция «Глубинная навигация» — морской брутализм с картографией и латунными акцентами.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: okeana
*/

:root {
    --bg:        #0B151E;
    --bg-alt:    #11232E;
    --footer:    #060C12;
    --sidebar:   #0D1A24;
    --sidebar-b: #1F3A4A;
    --text:      #E8F0F8;
    --gold:      #E8A23D;
    --teal:      #4B9B9B;
    --muted:     #6A8B9F;
    --line:      #2D4B5C;
    --line-dk:   #1A2F3D;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle, rgba(75,155,155,0.12) 1px, transparent 1.6px),
        linear-gradient(rgba(45,75,92,0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45,75,92,0.055) 1px, transparent 1px);
    background-size: 64px 64px, 64px 64px, 64px 64px;
    color: var(--text);
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Полупрозрачный компас в правом нижнем углу */
body::after {
    content: "";
    position: fixed;
    right: -60px;
    bottom: -60px;
    width: 420px;
    height: 420px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23E8F0F8' stroke-width='2'%3E%3Ccircle cx='100' cy='100' r='92'/%3E%3Ccircle cx='100' cy='100' r='70'/%3E%3Ccircle cx='100' cy='100' r='8'/%3E%3C/g%3E%3Cg fill='%23E8F0F8'%3E%3Cpolygon points='100,12 112,100 100,100'/%3E%3Cpolygon points='100,188 88,100 100,100'/%3E%3Cpolygon points='188,100 100,88 100,100'/%3E%3Cpolygon points='12,100 100,112 100,100'/%3E%3C/g%3E%3C/svg%3E");
}

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

a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; text-decoration-style: double; }

p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    line-height: 1.15;
    margin: 0 0 0.6em;
}
h1 { font-size: 4.5rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }

/* Контейнер ширины — единственный источник */
.shell { width: min(92%, 1180px); margin-inline: auto; position: relative; z-index: 1; }
.shell-wide { width: 85%; max-width: 1320px; margin-inline: auto; position: relative; z-index: 1; }

.site { position: relative; z-index: 1; }

/* Заголовок секции с чертой-репером и точкой */
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 1.6rem; }
.section-head::before { content: ""; width: 46px; height: 2px; background: var(--teal); flex: 0 0 auto; }
.section-head h2 { margin: 0; }
.section-head::after { content: ""; width: 9px; height: 9px; background: var(--gold); border-radius: 50%; flex: 0 0 auto; }

/* ------------------------------ Кнопки --------------------------------- */
.btn {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.85em 1.6em;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
    background: var(--gold);
    color: var(--bg);
    border: 2px solid var(--gold);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}
.btn-primary:hover {
    background: #fff;
    color: var(--gold);
    border-color: #fff;
    transform: translateY(2px);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
    text-decoration: none;
}
.btn-ghost {
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
}
.btn-ghost:hover {
    background: var(--teal);
    color: var(--bg);
    transform: translateY(2px);
    text-decoration: none;
}

/* ------------------------------ Шапка ---------------------------------- */
.site-header {
    position: relative;
    background: rgba(11,21,30,0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    z-index: 5;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; }
.brand-svg { width: 52px; height: 52px; flex: 0 0 auto; }
.brand-text { min-width: 0; }
.brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
    display: block;
    max-width: 44ch;
}
.brand-desc { font-size: 0.82rem; color: var(--muted); margin-top: 3px; max-width: 52ch; line-height: 1.4; }

.main-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid transparent;
    transition: border-color 0.15s, color 0.15s;
}
.main-nav a:hover { color: var(--gold); border-color: var(--line); text-decoration: none; }
.main-nav .current-menu-item > a { color: var(--gold); border-color: var(--line); }

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--teal);
    color: var(--teal);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 2px;
    cursor: pointer;
}

/* ------------------------------ Раскладка ------------------------------ */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 42px;
    padding: 48px 0 90px;
}
.layout-single { padding: 48px 0 90px; }
.layout-single .content-area { width: 100%; }
.content-area { min-width: 0; }

.sidebar {
    min-width: 0;
    background: var(--sidebar);
    border: 1px solid var(--sidebar-b);
    padding: 26px 24px;
    align-self: start;
}

/* ------------------------------ Виджеты -------------------------------- */
.widget { margin-bottom: 28px; }
.widget:last-child { margin-bottom: 0; }
.widget-title {
    font-size: 1.1rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--line);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid var(--line-dk); }
.widget li:last-child { border-bottom: none; }

/* Сайдбар: светло-голубой текст на тёмном фоне */
.sidebar .widget, .sidebar .widget a { color: var(--text); }
.sidebar .widget a { text-decoration: none; }
.sidebar .widget a:hover { color: var(--gold); }
.sidebar .post-date, .sidebar .rss-date { color: var(--muted); font-size: 0.82rem; }

/* ------------------------------ Хлебные крошки ------------------------- */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 16px 0;
    border-bottom: 1px solid var(--line-dk);
}
.breadcrumbs a { color: var(--teal); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { color: var(--line); margin: 0 4px; }

/* ------------------------------ Карточки ------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.6);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 4px 8px 0 rgba(0,0,0,0.6);
    border-color: var(--teal);
}
.card-thumb { display: block; border-bottom: 1px solid var(--line); }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    filter: grayscale(0.5) saturate(0.7) brightness(0.92) hue-rotate(160deg);
}
.card-thumb.placeholder {
    aspect-ratio: 16 / 10;
    background:
        repeating-linear-gradient(45deg, rgba(75,155,155,0.10) 0 2px, transparent 2px 14px),
        var(--sidebar);
    display: flex; align-items: center; justify-content: center;
}
.card-thumb.placeholder svg { width: 64px; height: 64px; opacity: 0.5; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 22px 22px 24px; }
.card-title { font-size: 1.25rem; margin: 0 0 10px; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--gold); }
.card-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; font-family: 'JetBrains Mono', monospace; }
.card-excerpt { color: #cdd9e4; font-size: 0.95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    padding-top: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
}
.card-more a { color: var(--gold); text-decoration: none; }
.card-more a:hover { text-decoration: underline; text-decoration-style: double; }

/* ------------------------------ Пагинация ------------------------------ */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 46px; }
.pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 12px;
    border: 1px solid var(--line);
    color: var(--text);
    font-family: 'Montserrat', sans-serif; font-weight: 600;
    text-decoration: none;
    background: var(--bg-alt);
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.pagination a.page-numbers:hover { border-color: var(--teal); color: var(--gold); }
.pagination .page-numbers.current { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.pagination .page-numbers.dots { border: none; background: none; }

/* ------------------------------ Записи --------------------------------- */
.entry { padding: 8px 0 20px; }
.entry-title { font-size: 2.6rem; margin: 20px 0 12px; }
.entry-meta { font-family: 'JetBrains Mono', monospace; color: var(--muted); font-size: 0.85rem; margin-bottom: 24px; }
.entry-thumb { margin: 0 0 28px; border: 1px solid var(--line); }
.entry-thumb img { display: block; width: 100%; }
.entry-content { font-size: 1.05rem; }
.entry-content h2 { font-size: 1.8rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.4em; }
.entry-content a { color: var(--gold); }
.entry-content img { border: 1px solid var(--line); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content blockquote {
    border-left: 6px solid var(--teal);
    margin: 1.6em 0;
    padding: 18px 24px;
    background: var(--bg-alt);
    color: #d6e2ec;
}

/* ------------------------------ Таблицы -------------------------------- */
.entry-content table { border-collapse: collapse; width: 100%; margin: 1.4em 0; }
.entry-content table, .entry-content th, .entry-content td { border: 1px solid var(--line); }
.entry-content th, .entry-content td { padding: 10px 14px; text-align: left; }
.entry-content th { background: var(--bg-alt); color: var(--gold); font-family: 'Montserrat', sans-serif; }

/* ------------------------------ Форма поиска --------------------------- */
.search-form { display: flex; gap: 0; max-width: 460px; }
.search-form .search-field {
    flex: 1; min-width: 0;
    background: var(--sidebar);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: inherit;
}
.search-form .search-field::placeholder { color: var(--muted); }
.search-form .search-submit {
    background: var(--gold); color: var(--bg);
    border: 1px solid var(--gold);
    font-family: 'Montserrat', sans-serif; font-weight: 700;
    padding: 0 18px; cursor: pointer;
}
.search-form .search-submit:hover { background: #fff; color: var(--gold); }
.sidebar .search-form { max-width: 100%; }

/* ------------------------------ Комментарии ---------------------------- */
.comments-area { margin-top: 56px; padding-top: 40px; border-top: 2px solid var(--line); }
.comments-title { font-size: 1.6rem; margin-bottom: 24px; }
.comment-list { list-style: none; margin: 0 0 34px; padding: 0; }
.comment-list ul.children { list-style: none; margin: 16px 0 0 26px; padding-left: 20px; border-left: 2px solid var(--line-dk); }
.comment-body { background: var(--bg-alt); border: 1px solid var(--line); padding: 18px 20px; margin-bottom: 18px; }
.comment-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.comment-author { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--gold); }
.comment-date { color: var(--muted); font-size: 0.8rem; font-family: 'JetBrains Mono', monospace; }
.comment-await { color: var(--teal); font-size: 0.85rem; }
.comment-reply a { font-size: 0.85rem; font-family: 'Montserrat', sans-serif; font-weight: 600; color: var(--teal); text-decoration: none; }
.comment-reply a:hover { color: var(--gold); }

.comment-respond { background: var(--sidebar); border: 1px solid var(--sidebar-b); padding: 26px 24px; }
.comment-respond .comment-reply-title { font-size: 1.3rem; margin-bottom: 8px; }
.comment-form label { display: block; font-size: 0.85rem; color: var(--muted); margin: 12px 0 6px; font-family: 'Montserrat', sans-serif; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
    padding: 11px 13px; font-family: inherit; font-size: 0.95rem;
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form .form-submit .submit {
    margin-top: 16px; background: var(--gold); color: var(--bg);
    border: 2px solid var(--gold); border-radius: 2px;
    font-family: 'Montserrat', sans-serif; font-weight: 700;
    padding: 11px 26px; cursor: pointer; box-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}
.comment-form .form-submit .submit:hover { background: #fff; color: var(--gold); border-color: #fff; }

/* ------------------------------ Подвал --------------------------------- */
.site-footer { background: var(--footer); border-top: 1px solid var(--line); margin-top: 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 56px 0 40px; }
.footer-col { min-width: 0; }
.footer-col .widget-title { color: var(--gold); border-color: var(--line); }
.footer-col, .footer-col a, .footer-col .widget { color: #b9c9d6; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--gold); }
.footer-col li { border-bottom: 1px solid rgba(45,75,92,0.4); }
.footer-bottom { border-top: 1px solid var(--line-dk); padding: 20px 0; font-size: 0.82rem; color: var(--muted); text-align: center; }

/* ------------------------------ Cookie --------------------------------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: rgba(6,12,18,0.96);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--gold);
    padding: 16px 0;
}
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cookie-inner p { margin: 0; font-size: 0.9rem; color: #cdd9e4; }
.cookie-inner a { color: var(--gold); }
.cookie-accept {
    background: var(--gold); color: var(--bg); border: 2px solid var(--gold); border-radius: 2px;
    font-family: 'Montserrat', sans-serif; font-weight: 700; padding: 10px 24px; cursor: pointer;
    white-space: nowrap; box-shadow: 4px 4px 0 rgba(0,0,0,0.5); transition: transform 0.12s, background 0.15s, color 0.15s;
}
.cookie-accept:hover { background: #fff; color: var(--gold); border-color: #fff; transform: translateY(2px); box-shadow: 2px 2px 0 rgba(0,0,0,0.5); }

/* ------------------------------ Декор-полоса --------------------------- */
.deco-strip {
    height: 20px;
    background:
        repeating-linear-gradient(45deg, var(--gold) 0 1px, transparent 1px 11px),
        repeating-linear-gradient(-45deg, var(--gold) 0 1px, transparent 1px 11px),
        var(--line-dk);
    opacity: 0.9;
}

/* ============================ ГЛАВНАЯ ================================== */
.front-section { padding: 90px 0; }
.front-section.alt { background: var(--bg-alt); }
.front-section.map-bg {
    background-color: var(--bg-alt);
    background-image:
        radial-gradient(circle, rgba(75,155,155,0.16) 1px, transparent 1.6px),
        linear-gradient(rgba(45,75,92,0.13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45,75,92,0.13) 1px, transparent 1px);
    background-size: 54px 54px, 54px 54px, 54px 54px;
}

/* Блок 1 — Hero */
.hero {
    position: relative;
    padding: 120px 0 130px;
    overflow: hidden;
}
.hero-inner { max-width: 860px; }
.hero-kicker {
    font-family: 'JetBrains Mono', monospace;
    color: var(--teal); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.8rem; margin-bottom: 18px;
}
.hero h1 { font-size: 4.5rem; margin: 0 0 22px; }
.hero-lead { font-size: 1.25rem; color: #d6e2ec; max-width: 640px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note {
    margin-top: 54px;
    max-width: 560px;
    background: rgba(11,21,30,0.55);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    padding: 18px 22px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #c4d3df;
}
.hero-note strong { color: var(--gold); }

/* Блок 2 — Статистика */
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 10px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat-num { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 3.4rem; color: var(--gold); line-height: 1; }
.stat-label { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }

/* Блок последних записей */
.latest-section { padding: 90px 0; }
.latest-foot { margin-top: 40px; }

/* Блок 3 — Таймлайн стандартов */
.timeline { position: relative; max-width: 900px; margin-inline: auto; padding: 10px 0; }
.timeline::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
    width: 4px; margin-left: -2px; background: var(--teal);
}
.tl-step { position: relative; width: 50%; padding: 0 44px 46px; }
.tl-step:nth-child(odd) { left: 0; text-align: right; }
.tl-step:nth-child(even) { left: 50%; text-align: left; }
.tl-card {
    background: var(--bg-alt); border: 1px solid var(--line); padding: 22px 24px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.5); position: relative;
}
.tl-card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.tl-card p { margin: 0; color: #c4d3df; font-size: 0.95rem; }
.tl-buoy {
    position: absolute; top: 14px;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--gold); font-size: 1.2rem;
    z-index: 2;
}
.tl-step:nth-child(odd) .tl-buoy { right: -67px; }
.tl-step:nth-child(even) .tl-buoy { left: -67px; }

/* Блок 4 — Рубрикатор (сонары) */
.sonar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.sonar {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 2px solid var(--line);
    color: var(--text);
    text-decoration: none;
    padding: 24px;
    transition: background 0.16s, color 0.16s, border-color 0.16s, transform 0.16s;
}
.sonar:hover { background: var(--teal); color: var(--bg); border-color: var(--teal); transform: translateY(-4px); text-decoration: none; }
.sonar svg { width: 42px; height: 42px; margin-bottom: 14px; }
.sonar:hover svg { filter: none; }
.sonar-title { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.15rem; }
.sonar-sub { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.sonar:hover .sonar-sub { color: rgba(11,21,30,0.75); }

/* CTA (при необходимости) */
.fs-cta {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-left: 6px solid var(--gold);
    padding: 40px 44px;
    display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.fs-cta h2 { margin: 0 0 6px; }
.fs-cta p { margin: 0; color: #c4d3df; max-width: 60ch; }

/* Скошенный угол для ключевых карточек */
.clip-corner { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%); }

/* ------------------------------ 404 ------------------------------------ */
.err-404 { padding: 70px 0 100px; text-align: center; }
.err-404 .code { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 6rem; color: var(--gold); line-height: 1; }
.err-404 .search-form { margin: 26px auto 0; }
.page-intro { padding-top: 28px; }
.page-title { font-size: 2.6rem; margin: 18px 0 24px; }

/* ============================ АДАПТИВ ================================= */
@media (max-width: 960px) {
    h1, .hero h1 { font-size: 3rem; }
    h2 { font-size: 1.8rem; }
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 40px; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .sonar-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
    .stat:nth-child(3) { border-left: none; padding-left: 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1, .hero h1 { font-size: 2.3rem; }
    .entry-title { font-size: 2rem; }
    .front-section, .hero, .latest-section { padding: 56px 0; }
    .hero { padding: 70px 0 76px; }
    .shell-wide { width: 92%; }

    .nav-toggle { display: inline-block; }
    .main-nav { flex-basis: 100%; }
    .main-nav ul { display: none; flex-direction: column; gap: 4px; margin-top: 12px; }
    .main-nav.open ul { display: flex; }
    .main-nav a { display: block; }

    .footer-cols { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 28px; }
    .sonar-grid { grid-template-columns: 1fr; }
    .sonar { aspect-ratio: auto; border-radius: 14px; padding: 30px; }

    .stats-row { grid-template-columns: 1fr; }
    .stat { border-left: none; padding: 8px 0; border-top: 1px solid var(--line); }
    .stat:first-child { border-top: none; }

    /* Таймлайн в одну колонку */
    .timeline::before { left: 20px; }
    .tl-step { width: 100%; left: 0 !important; text-align: left !important; padding: 0 0 34px 58px; }
    .tl-step .tl-buoy { left: -2px !important; right: auto !important; }

    .fs-cta { padding: 28px 22px; }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
}
