/*
Theme Name: dds_vladivostokskaiakrepost.rf
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: vkrep
*/

/* ===== Служебные правила [hidden] — до основных блоков ===== */
.cookie-banner[hidden] { display: none !important; }

/* ===== Токены ===== */
:root {
    --c-bg: #F4F6F8;
    --c-bg-alt: #E3E9EF;
    --c-head: #1B2A38;
    --c-foot: #14202B;
    --c-side: #EDF1F5;
    --c-text: #16222E;
    --c-brick: #C0392B;
    --c-sea: #2E7D8F;
    --c-muted: #6B7A88;
    --c-line: #CBD5DD;
    --f-head: "Oswald", "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", sans-serif;
    --f-body: "Fira Sans", "PT Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --f-mono: "PT Mono", "Consolas", "Liberation Mono", "Courier New", monospace;
    --shadow-plate: 4px 4px 0 rgba(27, 42, 56, .18);
    --shadow-plate-up: 7px 7px 0 rgba(27, 42, 56, .26);
    --hatch: repeating-linear-gradient(45deg, rgba(227, 233, 239, .045) 0 1px, transparent 1px 11px);
}

/* ===== База ===== */
*, *::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;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    overflow-x: hidden;
    overflow-wrap: break-word;
}
p { margin: 0 0 1.1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 500;
    line-height: 1.2;
    margin: 1.6em 0 .6em;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-text);
    hyphens: auto;
    overflow-wrap: break-word;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
@media (min-width: 960px) { h1 { font-size: 3.2rem; } }
img { max-width: 100%; height: auto; }
a {
    color: var(--c-sea);
    text-decoration: underline dashed 1px;
    text-underline-offset: 3px;
    transition: color .2s ease, text-decoration-color .2s ease;
}
a:hover, a:focus-visible { color: var(--c-brick); text-decoration-style: solid; }
:focus-visible { outline: 2px solid var(--c-sea); outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; border: 1px solid var(--c-line); }
th, td { border: 1px solid var(--c-line); padding: .55em .8em; text-align: left; vertical-align: top; }
th { background: var(--c-bg-alt); font-weight: 600; }
blockquote {
    margin: 1.6em 0;
    padding: 1.1em 1.4em;
    border-left: 3px solid var(--c-sea);
    background: var(--c-bg-alt);
    border-radius: 2px;
}
blockquote p:last-child { margin-bottom: 0; }
pre { overflow-x: auto; background: var(--c-head); color: #E3E9EF; padding: 1em 1.2em; border-radius: 2px; font-family: var(--f-mono); }
code { font-family: var(--f-mono); font-size: .92em; }
hr { border: 0; border-top: 1px dashed var(--c-line); margin: 2em 0; }
.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 100;
    background: var(--c-brick); color: #fff; padding: .5em 1em; text-decoration: none;
}
.skip-link:focus { left: 8px; }

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    font-family: var(--f-head);
    font-size: .95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .1em;
    line-height: 1.3;
    padding: .78em 1.5em;
    border-radius: 2px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease, color .2s ease;
}
.btn:hover, .btn:focus-visible { transform: translate(2px, 2px); box-shadow: -3px -3px 0 rgba(22, 34, 46, .85); text-decoration: none; }
.btn-fill { background: var(--c-brick); color: #fff; border-color: var(--c-brick); }
.btn-fill:hover, .btn-fill:focus-visible { color: #fff; background: #A93226; }
.btn-line { background: transparent; color: var(--c-sea); border-color: var(--c-sea); }
.btn-line:hover, .btn-line:focus-visible { color: var(--c-text); background: rgba(46, 125, 143, .08); }
.btn-line-light { color: #E3E9EF; border-color: #6FB3C2; }
.btn-line-light:hover, .btn-line-light:focus-visible { color: #fff; background: rgba(46, 125, 143, .25); box-shadow: -3px -3px 0 rgba(0, 0, 0, .55); }

/* ===== Сигнальная полоса и шапка ===== */
.signal-strip {
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--c-brick) 0 48px, var(--c-sea) 48px 96px, #3A5267 96px 144px);
}
.masthead { background: var(--c-head); color: #E3E9EF; }
.masthead-inner {
    width: min(92%, 1320px);
    margin-inline: auto;
    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;
    text-decoration: none;
    color: inherit;
    flex: 1 1 520px;
    min-width: 0;
}
.brand:hover { color: inherit; }
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-svg, .brand-logo { display: block; width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: .3rem; min-width: 0; max-width: 760px; }
.brand-name {
    font-family: var(--f-body);
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.35;
    color: #F4F6F8;
}
.brand-desc { font-size: .8rem; line-height: 1.45; color: #9FB0BF; }
.nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    background: transparent;
    color: #E3E9EF;
    border: 1px solid #3E5468;
    border-radius: 2px;
    padding: .55em .9em;
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .85rem;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .2rem 1.6rem;
}
.primary-menu a {
    display: block;
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .95rem;
    color: #E3E9EF;
    text-decoration: none;
    padding: .35em 0;
    border-bottom: 2px solid transparent;
}
.primary-menu a:hover, .primary-menu a:focus-visible,
.primary-menu .current-menu-item > a { color: #fff; border-bottom-color: var(--c-brick); }

/* ===== Каркас страниц ===== */
.site-main {
    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='%232E7D8F' stroke-opacity='.07' stroke-width='2'%3E%3Cpath d='M20 250 L80 150 L160 150 L200 90 L240 150 L320 150 L380 250 Z'/%3E%3Cpath d='M60 250 L110 172 L180 172 L200 140 L220 172 L290 172 L340 250'/%3E%3Cpath d='M185 250 V214 H215 V250 M120 210 h22 v14 h-22 Z M258 210 h22 v14 h-22 Z'/%3E%3Cpath d='M200 90 V40 L232 52 L200 64'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right -30px bottom 10px;
    background-size: 440px auto;
}
.page-head { padding: 0 0 1.6rem; }
.page-title { margin: .4em 0 .3em; }
.page-lead { color: var(--c-muted); max-width: 760px; }
.crumbs {
    font-family: var(--f-mono);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--c-muted);
}
.crumbs a { color: var(--c-sea); }
.crumbs-sep { margin: 0 .35em; color: var(--c-brick); }
.crumbs-current { color: var(--c-text); }
.entry-meta, .card-meta {
    font-family: var(--f-mono);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--c-muted);
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 1rem;
}
.layout-with-sidebar {
    max-width: 1440px;
    margin-inline: auto;
    padding: 2.4rem 0 4rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3%;
}
.layout-with-sidebar .content-area { flex: 0 0 67%; min-width: 0; }
.layout-with-sidebar .sidebar { flex: 0 0 27%; min-width: 0; }
.layout-single { padding: 2.4rem 0 4rem; }
.layout-single .content-area { width: 85%; max-width: 1180px; margin-left: auto; margin-right: auto; min-width: 0; }

/* ===== Контент записи ===== */
.entry { background: #fff; border: 1px solid var(--c-line); border-radius: 2px; padding: 2rem 2.2rem; box-shadow: var(--shadow-plate); }
.entry-cover { margin: -2rem -2.2rem 1.8rem; }
.entry-cover img { display: block; width: 100%; height: auto; border-radius: 2px 2px 0 0; }
.entry-content { max-width: 74ch; hyphens: auto; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3, .card-title, .widget-title, .remarks-title, .route-title {
    position: relative;
    padding-left: 16px;
}
.entry-content h2::before, .entry-content h3::before, .card-title::before,
.widget-title::before, .remarks-title::before, .route-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5em;
    width: 6px;
    height: 6px;
    background: var(--c-brick);
}
.entry-content img { display: block; border-radius: 2px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--c-muted); margin-top: .4em; }
.entry-tags { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-family: var(--f-mono); font-size: .82rem; }
.empty-note { padding: 1.6rem 1.8rem; background: #fff; border: 1px dashed var(--c-line); border-radius: 2px; }

/* ===== Карточки ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.8rem;
}
.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 2px;
    box-shadow: var(--shadow-plate);
    overflow: hidden;
    min-width: 0;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-plate-up); border-color: var(--c-sea); }
.card-thumb { position: relative; overflow: hidden; background: var(--c-bg-alt); }
.card-thumb a { display: block; text-decoration: none; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.card-thumb::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(22, 34, 46, .45), rgba(22, 34, 46, 0));
    pointer-events: none;
}
.card-thumb-empty {
    display: flex !important;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    background: var(--c-bg-alt) repeating-linear-gradient(45deg, rgba(46, 125, 143, .08) 0 1px, transparent 1px 10px);
}
.card-thumb-empty svg { display: block; width: 40%; height: auto; }
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.4rem 1.4rem;
    min-width: 0;
}
.card-cat { color: var(--c-sea); }
.card-title { font-size: 1.15rem; margin: .7em 0 .6em; letter-spacing: .05em; }
.card-title a { color: var(--c-text); text-decoration: none; }
.card-title a:hover { color: var(--c-brick); }
.card-excerpt { font-size: .97rem; color: #33424F; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    align-self: flex-start;
    margin-top: .6rem;
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .85rem;
}

/* ===== Пагинация ===== */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2.6rem 0 0;
    font-family: var(--f-mono);
}
.pager .page-numbers {
    display: inline-block;
    min-width: 2.6em;
    padding: .55em .85em;
    text-align: center;
    border: 1px solid var(--c-line);
    border-radius: 2px;
    background: #fff;
    color: var(--c-text);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.pager a.page-numbers:hover { transform: translate(2px, 2px); box-shadow: -3px -3px 0 rgba(22, 34, 46, .85); border-color: var(--c-sea); color: var(--c-sea); }
.pager .page-numbers.current { background: var(--c-head); border-color: var(--c-head); color: #fff; }
.pager .page-numbers.dots { border: 0; background: none; min-width: 0; }

/* ===== Сайдбар и виджеты ===== */
.sidebar {
    background: var(--c-side);
    border: 1px solid var(--c-line);
    border-radius: 2px;
    padding: 1.6rem 1.5rem;
    color: var(--c-text);
}
.widget { margin-bottom: 2rem; }
.widget:last-child { margin-bottom: 0; }
.widget-title { font-size: 1.05rem; margin: 0 0 .9rem; letter-spacing: .1em; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .5em 0; border-bottom: 1px dashed var(--c-line); }
.widget li:last-child { border-bottom: 0; }
.sidebar .widget, .sidebar .widget p, .sidebar .widget li { color: var(--c-text); }
.sidebar .widget-title { color: var(--c-text); }
.sidebar .widget a { color: #22606E; }
.sidebar .widget a:hover { color: var(--c-brick); }
.sidebar .post-date, .sidebar .widget .rss-date { color: var(--c-muted); font-family: var(--f-mono); font-size: .75rem; display: block; }

/* ===== Поиск ===== */
.seek { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.seek-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: .72em .9em;
    font: inherit;
    border: 1px solid var(--c-line);
    border-radius: 2px;
    background: #fff;
    color: var(--c-text);
}
.seek-field:focus { outline: 2px solid var(--c-sea); outline-offset: 0; border-color: var(--c-sea); }

/* ===== 404 ===== */
.lost-code { font-family: var(--f-head); font-size: 5rem; line-height: 1; color: var(--c-brick); letter-spacing: .1em; margin: 0 0 .3em; }

/* ===== Комментарии ===== */
.remarks { margin-top: 2.4rem; background: #fff; border: 1px solid var(--c-line); border-radius: 2px; padding: 1.8rem 2rem; }
.remarks-title { margin-top: 0; font-size: 1.3rem; }
.remark-list, .remark-list .children { list-style: none; margin: 0; padding: 0; }
.remark-list .children { padding-left: 1.6rem; border-left: 2px solid var(--c-bg-alt); }
.remark-body { padding: 1rem 0; border-bottom: 1px dashed var(--c-line); }
.remark-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .5rem; }
.remark-avatar { display: block; border-radius: 2px; }
.remark-author { font-weight: 600; }
.remark-date { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c-muted); }
.remark-wait { color: var(--c-brick); font-size: .9rem; }
.remark-reply a { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; }
.comment-respond { margin-top: 1.6rem; }
.comment-reply-title { font-size: 1.2rem; }
.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: .65em .8em;
    font: inherit;
    border: 1px solid var(--c-line);
    border-radius: 2px;
    background: var(--c-bg);
    color: var(--c-text);
}
.comment-form-cookies-consent label { display: inline; }
.comment-form .submit {
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: .1em;
    background: var(--c-brick);
    color: #fff;
    border: 1px solid var(--c-brick);
    border-radius: 2px;
    padding: .78em 1.5em;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.comment-form .submit:hover { transform: translate(2px, 2px); box-shadow: -3px -3px 0 rgba(22, 34, 46, .85); }
.req { color: var(--c-brick); }

/* ===== Главная: общее ===== */
.fs { padding: 5.5rem 0; position: relative; }
.fs-wrap { width: 85%; max-width: 1320px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.fs-timeline { background: var(--c-bg); }
.fs-latest { background: var(--c-bg-alt); }
.fs-topics {
    background-color: var(--c-bg);
    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='%232E7D8F' stroke-opacity='.08' stroke-width='2'%3E%3Cpath d='M20 250 L80 150 L160 150 L200 90 L240 150 L320 150 L380 250 Z'/%3E%3Cpath d='M60 250 L110 172 L180 172 L200 140 L220 172 L290 172 L340 250'/%3E%3Cpath d='M185 250 V214 H215 V250'/%3E%3Cpath d='M200 90 V40 L232 52 L200 64'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right -40px bottom 0;
    background-size: 460px auto;
}
.sec-title {
    position: relative;
    font-size: 1.9rem;
    letter-spacing: .1em;
    margin: 0 0 1rem;
    padding-left: 56px;
}
.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 40px;
    height: 3px;
    background: var(--c-sea);
}
.sec-title-light { color: #F4F6F8; }
.sec-lead { color: var(--c-muted); max-width: 640px; margin: 0 0 2.6rem; padding-left: 56px; }
.fs-accent {
    background-color: var(--c-head);
    background-image: var(--hatch);
    color: #E3E9EF;
}
.fs-accent::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    border-top: 1px dashed var(--c-sea);
    opacity: .9;
}

/* ===== Hero ===== */
.fs-hero {
    padding: 0;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--c-head);
    color: #F4F6F8;
}
.fs-hero-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    display: block;
}
.fs-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(20, 32, 43, .94) 0%, rgba(20, 32, 43, .7) 38%, rgba(20, 32, 43, .2) 75%, rgba(20, 32, 43, .35) 100%),
        linear-gradient(to right, rgba(20, 32, 43, .55), rgba(20, 32, 43, 0) 60%);
}
.fs-hero-content { padding: 9rem 0 4.5rem; }
.fs-hero-title {
    position: relative;
    margin: 0 0 1.2rem;
    max-width: 16ch;
    padding-top: 1.1rem;
    color: #fff;
    letter-spacing: .08em;
    line-height: 1.08;
}
.fs-hero-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 3px;
    background: var(--c-brick);
}
.fs-hero-lead { max-width: 60ch; color: #C9D5DF; font-size: 1.08rem; margin-bottom: 2rem; }
.fs-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ===== Таймлайн ===== */
.route {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}
.route::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: var(--c-sea);
}
.route-stop {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
    align-items: start;
    margin-bottom: 2.2rem;
}
.route-stop:last-child { margin-bottom: 0; }
.route-node {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 16px;
    height: 16px;
    margin-top: 1.5rem;
    background: var(--c-bg);
    border: 3px solid var(--c-sea);
    position: relative;
    z-index: 1;
}
.route-stop:nth-child(odd) .route-card { grid-column: 1; grid-row: 1; }
.route-stop:nth-child(even) .route-card { grid-column: 3; grid-row: 1; }
.route-card {
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 2px;
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow-plate);
    min-width: 0;
}
.route-num {
    display: block;
    font-family: var(--f-mono);
    font-size: 1.6rem;
    letter-spacing: .14em;
    color: var(--c-brick);
    line-height: 1;
}
.route-title { font-size: 1.2rem; margin: .7em 0 .5em; }
.route-card p { margin: 0; color: #33424F; font-size: .98rem; }

/* ===== Последние записи ===== */
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fs-latest-more { margin: 2.4rem 0 0; }

/* ===== Статистика ===== */
.tally {
    list-style: none;
    margin: 2.4rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}
.tally-item { border-left: 1px solid rgba(203, 213, 221, .25); padding: .4rem 0 .4rem 1.4rem; min-width: 0; }
.tally-num {
    display: block;
    font-family: var(--f-head);
    font-size: 4rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .04em;
    color: var(--c-sea);
    text-shadow: 0 0 1px rgba(46, 125, 143, .4);
    text-transform: uppercase;
}
.tally-label { display: block; margin-top: .7rem; color: #9FB0BF; font-size: .95rem; line-height: 1.45; }

/* ===== Карта тем ===== */
.topic-map {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}
.topic-tile {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.8rem 1.6rem;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 2px;
    color: var(--c-text);
    text-decoration: none;
    min-width: 0;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.topic-icon { display: block; color: var(--c-sea); margin-bottom: .4rem; transition: color .2s ease; }
.topic-name { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .1em; font-size: 1.2rem; line-height: 1.25; }
.topic-note { color: var(--c-muted); font-size: .93rem; line-height: 1.45; transition: color .2s ease; }
.topic-tile:hover, .topic-tile:focus-visible {
    background: var(--c-sea);
    border-color: var(--c-sea);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-plate-up);
}
.topic-tile:hover .topic-icon, .topic-tile:focus-visible .topic-icon,
.topic-tile:hover .topic-note, .topic-tile:focus-visible .topic-note { color: #E3F2F5; }

/* ===== Подвал ===== */
.basement { background: var(--c-foot); color: #B7C4CF; padding: 3.6rem 0 1.6rem; }
.basement-inner { width: min(92%, 1320px); margin-inline: auto; }
.basement-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem; }
.basement-col { min-width: 0; }
.basement .widget, .basement .widget p, .basement .widget li { color: #B7C4CF; }
.basement .widget-title { color: #F4F6F8; }
.basement .widget a { color: #7FC4D2; }
.basement .widget a:hover { color: #E58A7F; }
.basement .widget li { border-bottom-color: rgba(203, 213, 221, .14); }
.basement .post-date { color: #8A9AA8; }
.basement-copy {
    margin: 3rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px dashed rgba(46, 125, 143, .5);
    font-family: var(--f-mono);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #8A9AA8;
}

/* ===== Cookie ===== */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.4rem;
    background: var(--c-head);
    color: #E3E9EF;
    border: 1px solid var(--c-sea);
    border-radius: 2px;
    box-shadow: 6px 6px 0 rgba(20, 32, 43, .35);
}
.cookie-text { margin: 0; font-size: .92rem; line-height: 1.5; flex: 1; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ===== Адаптив ===== */
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav { flex-basis: 100%; display: none; }
    .primary-nav.is-open { display: block; }
    .primary-menu { flex-direction: column; gap: 0; border-top: 1px solid #2E4256; padding-top: .6rem; }
    .primary-menu a { padding: .6em 0; }
    .layout-with-sidebar { display: block; width: 92%; }
    .layout-with-sidebar .sidebar { margin-top: 2.4rem; }
    .layout-single .content-area { width: 92%; }
    .fs-wrap { width: 92%; }
    .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .basement-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .route::before { left: 8px; margin-left: 0; background: var(--c-sea); }
    .route-stop { grid-template-columns: 18px minmax(0, 1fr); column-gap: 1.2rem; }
    .route-node { grid-column: 1; margin-top: 1.5rem; }
    .route-stop:nth-child(odd) .route-card, .route-stop:nth-child(even) .route-card { grid-column: 2; }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .brand { flex-basis: 70%; }
    .brand-desc { display: none; }
    .brand-svg, .brand-logo { width: 44px; height: 44px; }
    .fs { padding: 3.6rem 0; }
    .fs-hero { padding: 0; min-height: 520px; }
    .fs-hero-content { padding: 6rem 0 3rem; }
    .sec-title { font-size: 1.45rem; padding-left: 48px; }
    .sec-title::before { width: 34px; }
    .sec-lead { padding-left: 0; }
    .card-grid-3, .topic-map, .basement-cols { grid-template-columns: minmax(0, 1fr); }
    .tally-num { font-size: 3rem; }
    .entry { padding: 1.4rem 1.2rem; }
    .entry-cover { margin: -1.4rem -1.2rem 1.4rem; }
    .remarks { padding: 1.4rem 1.2rem; }
    .sidebar { padding: 1.4rem 1.2rem; }
    .route-card { padding: 1.2rem 1.2rem; }
    .topic-tile { padding: 1.4rem 1.3rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.2rem; }
    .site-main { background-size: 260px auto; }
}
