/*
Theme Name: dds_ttr250.ru
Theme URI: https://ttr250.ru/
Author: Артём Звягинцев
Description: Тема для информационного портала об обучении автомеханике и мотоделу. Индустриальный брутализм: холодная стальная палитра, жёсткие рамки, чертёжная сетка.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
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: ttrmech
*/

/* ============ ПЕРЕМЕННЫЕ ============ */
:root {
    --bg: #F4F5F7;
    --bg-alt: #E8EAED;
    --dark: #121417;
    --ink: #1E2024;
    --acc: #0057B3;
    --acc2: #D32F2F;
    --muted: #6B7280;
    --line: #D1D5DB;
    --white: #FFFFFF;
    --font-head: "Inter", "Manrope", "Arial Narrow", Arial, sans-serif;
    --font-body: "IBM Plex Sans", "Roboto", "Segoe UI", Arial, sans-serif;
    --font-mono: "IBM Plex Mono", "Consolas", "Courier New", monospace;
}

/* ============ БАЗА ============ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%23000000' stroke-opacity='0.045' stroke-width='3'%3E%3Ccircle cx='120' cy='120' r='92'/%3E%3Ccircle cx='120' cy='120' r='40'/%3E%3Cpath d='M120 12v34M120 194v34M12 120h34M194 120h34M44 44l24 24M172 172l24 24M196 44l-24 24M68 172l-24 24'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(0deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 40px);
    background-repeat: no-repeat, repeat, repeat;
    background-position: right -40px bottom -40px, 0 0, 0 0;
    background-attachment: fixed, scroll, scroll;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
}

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

p { margin: 0 0 1.1em; }

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

.entry-content a,
.card-excerpt a,
.widget a,
.crumbs a {
    background-image: linear-gradient(var(--acc), var(--acc));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 3px;
}
.entry-content a:hover,
.card-excerpt a:hover,
.crumbs a:hover { background-size: 100% 3px; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 0.7em;
}

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

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

.site-main { padding: 34px 0 70px; }

.rule {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0;
}

.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ============ РАСКЛАДКИ ============ */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 40px;
    align-items: start;
}
.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.content-area { min-width: 0; }
.front-wrap {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

/* ============ ШАПКА ============ */
.site-top { background: var(--dark); }
.top-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 22px 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1 1 340px;
}
.brand-mark { width: 56px; height: 56px; flex: none; }
.brand-logo { width: auto; max-height: 62px; flex: none; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    max-width: 46ch;
}
.brand-name:hover { color: #7FB3E8; }
.brand-desc {
    margin: 6px 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #9AA3AE;
    max-width: 62ch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #FFFFFF;
    border: 2px solid var(--acc);
    border-radius: 0;
    padding: 10px 16px;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
}
.nav-toggle-bar {
    width: 20px; height: 2px;
    background: currentColor;
    box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor;
}
.nav-toggle:hover { background: var(--acc); }

.site-nav { flex: 0 1 auto; }
.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
}
.nav-list li { position: relative; }
.nav-list a {
    display: block;
    padding: 10px 14px;
    color: #E8EAED;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 2px solid transparent;
}
.nav-list a:hover,
.nav-list .current-menu-item > a {
    border-color: var(--acc);
    color: #FFFFFF;
}
.nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #1B1E23;
    border: 2px solid var(--acc);
}

.tech-stripe {
    height: 4px;
    background: linear-gradient(90deg,
        var(--acc) 0 50%,
        var(--dark) 50% 80%,
        var(--acc2) 80% 100%);
}

/* ============ КНОПКИ ============ */
.btn,
.search-submit,
.comment-form input[type="submit"],
.wp-block-button__link {
    display: inline-block;
    border-radius: 0;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 13px 24px;
    cursor: pointer;
    background: transparent;
    border: 2px solid var(--acc);
    color: var(--acc);
    background-image: none;
}
.btn-solid,
.search-submit,
.comment-form input[type="submit"] {
    background: var(--acc);
    color: #FFFFFF;
    border-color: var(--acc);
}
.btn-solid:hover,
.search-submit:hover,
.comment-form input[type="submit"]:hover {
    background: transparent;
    color: var(--acc);
    transform: translateY(2px);
}
.btn-ghost:hover {
    background: var(--acc);
    color: #FFFFFF;
    transform: translateY(2px);
}

/* ============ ХЛЕБНЫЕ КРОШКИ ============ */
.crumbs {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    padding: 0 0 22px;
}
.crumbs a { color: var(--acc); }
.crumbs .sep { color: var(--acc2); margin: 0 4px; }

/* ============ ЗАГОЛОВКИ СЕКЦИЙ ============ */
.sec-title,
.page-head,
.entry-head,
.comments-head,
.widget-title {
    border-left: 4px solid var(--acc);
    padding-left: 16px;
    text-transform: uppercase;
}
.sec-title { font-size: 1.9rem; margin-bottom: 0.5em; }
.page-head { font-size: 2.6rem; margin-bottom: 0.7em; }
.entry-head { font-size: 2.6rem; margin-bottom: 0.4em; }
.sec-lead {
    color: var(--muted);
    max-width: 74ch;
    margin: 0 0 1.8em;
}

/* ============ ГЛАВНАЯ: СЕКЦИИ ============ */
.fs { padding: 70px 0; }
.fs-hero { padding-top: 44px; }

/* HERO */
.fs-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 40px;
    align-items: center;
    background: var(--dark);
    padding: 54px 46px;
    margin-top: 10px;
}
.hero-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7FB3E8;
    margin-bottom: 18px;
}
.hero-title {
    color: #FFFFFF;
    font-size: 3.5rem;
    margin-bottom: 0.4em;
}
.hero-sub {
    color: #B4BCC6;
    font-size: 1.02rem;
    max-width: 56ch;
    margin-bottom: 1.8em;
}
.fs-hero .btn {
    border-color: var(--acc2);
    background: var(--acc2);
    color: #FFFFFF;
}
.fs-hero .btn:hover { background: transparent; color: #FFFFFF; }
.hero-art img { display: block; width: 100%; height: auto; }

/* ТАЙМЛАЙН */
.tline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 30px;
    border-left: 3px solid var(--line);
}
.tline-item {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;
    padding: 0 0 34px 22px;
}
.tline-item:last-child { padding-bottom: 0; }
.tline-item::before {
    content: "";
    position: absolute;
    left: -42px;
    top: 4px;
    width: 18px;
    height: 18px;
    background: var(--acc);
    border: 3px solid var(--bg);
    outline: 2px solid var(--acc);
}
.tline-stage {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--acc2);
    padding-top: 3px;
}
.tline-body { min-width: 0; }
.tline-body h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 0.4em;
}
.tline-body p { margin: 0; color: #3A3F47; }

/* СТАТИСТИКА */
.fs-stats {
    background: var(--bg-alt);
    padding: 54px 42px;
    border: 2px solid var(--line);
}
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}
.stat-cell {
    min-width: 0;
    padding: 0 24px;
    border-left: 1px solid var(--line);
}
.stat-cell:first-child { border-left: 0; padding-left: 0; }
.stat-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 3.1rem;
    font-weight: 700;
    line-height: 1;
    color: var(--acc);
    margin-bottom: 12px;
}
.stat-cell:nth-child(2) .stat-num,
.stat-cell:nth-child(4) .stat-num { color: var(--acc2); }
.stat-cap {
    display: block;
    font-size: 0.86rem;
    line-height: 1.5;
    color: #3A3F47;
}

/* КАРТА ТЕМ */
.map-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.map-tile {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 26px;
    border: 2px solid var(--line);
    border-radius: 0;
    background: var(--white);
    padding: 26px 22px;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    min-height: 160px;
    background-image: none;
}
.map-tile svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: var(--acc);
    stroke-width: 2.2;
    stroke-linecap: square;
    stroke-linejoin: miter;
}
.map-tile:hover {
    background: var(--acc);
    color: #FFFFFF;
    border-color: var(--acc);
}
.map-tile:hover svg { stroke: #FFFFFF; }

.empty-note {
    border: 2px solid var(--line);
    background: var(--white);
    padding: 22px 24px;
    margin: 0;
}

/* ============ КАРТОЧКИ ЗАПИСЕЙ ============ */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 40px;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    border: 2px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    position: relative;
}
.card:hover {
    background: var(--white);
    border-left: 4px solid var(--acc);
}
.card-thumb-wrap {
    flex: 0 0 auto;
    width: 100%;
    position: static;
    overflow: hidden;
}
.card-thumb-wrap a { display: block; }
.card-thumb-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-body {
    flex: 1;
    min-width: 0;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.card-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}
.card-pin { color: var(--acc2); }
.card-title {
    font-size: 1.35rem;
    text-transform: uppercase;
    margin-bottom: 0.5em;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--acc); }
.card-excerpt { margin-bottom: 18px; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { margin-top: auto; padding: 10px 18px; }

/* ============ ЗАПИСЬ / СТРАНИЦА ============ */
.entry-meta {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    gap: 16px;
    margin-bottom: 26px;
}
.entry-cat { color: var(--acc); }
.entry-cover { margin-bottom: 30px; border: 2px solid var(--line); }
.entry-cover img { display: block; width: 100%; height: auto; }
.entry-content h2 { font-size: 1.7rem; text-transform: uppercase; border-left: 4px solid var(--acc2); padding-left: 14px; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.4em; }
.entry-content ul,
.entry-content ol { padding-left: 0; margin: 0 0 1.3em; }
.entry-content ul { list-style: none; }
.entry-content ul li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 0.55em;
}
.entry-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.28em;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230057B3' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Ccircle cx='12' cy='12' r='2.4'/%3E%3Cpath d='M12 1v3M12 20v3M1 12h3M20 12h3M4 4l2.2 2.2M17.8 17.8L20 20M20 4l-2.2 2.2M6.2 17.8 4 20'/%3E%3C/svg%3E");
}
.entry-content ol { list-style: decimal; padding-left: 22px; }
.entry-content ol li { margin-bottom: 0.55em; }
.entry-content ol li::marker { font-family: var(--font-mono); color: var(--acc); font-weight: 700; }

.entry-content blockquote,
.wp-block-quote {
    border: 1px solid var(--line);
    background: var(--white);
    margin: 1.8em 0;
    padding: 26px 28px;
}
.entry-content blockquote > *:first-child,
.wp-block-quote > *:first-child { margin-top: 0; }
.entry-content blockquote > *:last-child,
.wp-block-quote > *:last-child { margin-bottom: 0; }
.entry-content blockquote p,
.wp-block-quote p {
    border-left: 3px solid var(--acc);
    padding-left: 18px;
    margin-left: 8px;
    font-size: 1.05rem;
}

.entry-content img { display: block; height: auto; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 0.84rem; color: var(--muted); }

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}
.entry-tags a {
    display: inline-block;
    border: 2px solid var(--line);
    padding: 7px 14px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    text-transform: uppercase;
    color: var(--ink);
}
.entry-tags a:hover { border-color: var(--acc); color: var(--acc); }

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 42px 0;
}
.post-nav-item {
    min-width: 0;
    border: 2px solid var(--line);
    background: var(--white);
    padding: 18px 20px;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 700;
}
.post-nav-item span {
    display: block;
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 6px;
}
.post-nav-item:hover { border-color: var(--acc); color: var(--acc); }
.post-nav-item.next { text-align: right; }

.page-links { font-family: var(--font-mono); margin-top: 1.4em; }

/* ============ ТАБЛИЦЫ ============ */
.entry-content table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    border: 2px solid var(--ink);
    margin: 1.6em 0;
    font-size: 0.94rem;
}
.entry-content th,
.entry-content td,
.wp-block-table th,
.wp-block-table td {
    border: 1px solid var(--line);
    padding: 10px 14px;
    text-align: left;
}
.entry-content th {
    background: var(--bg-alt);
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
}

/* ============ САЙДБАР ============ */
.sidebar {
    min-width: 0;
    background: var(--white);
    border: 2px solid var(--line);
    padding: 26px 24px;
    color: var(--ink);
}
.sidebar .widget + .widget { margin-top: 34px; }
.sidebar .widget-title {
    font-size: 1.05rem;
    color: var(--ink);
    border-left-color: var(--acc2);
    padding-left: 12px;
    margin-bottom: 0.9em;
}
.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); }
.sidebar a:hover { color: var(--acc); }
.sidebar .post-date { display: block; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); }
.sidebar p { color: var(--ink); }

/* ============ ФОРМЫ ============ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
    width: 100%;
    max-width: 100%;
    border: 2px solid var(--line);
    border-radius: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 11px 14px;
}
input:focus, textarea:focus { outline: 2px solid var(--acc); border-color: var(--acc); }

.search-form {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin: 18px 0;
}
.search-form .search-field { flex: 1 1 auto; min-width: 0; }
.search-submit { flex: none; }

/* ============ КОММЕНТАРИИ ============ */
.comments-block { margin-top: 54px; }
.comments-head { font-size: 1.6rem; }
.comment-list { list-style: none; margin: 0 0 34px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 26px; margin-top: 16px; }
.comment-item {
    border: 2px solid var(--line);
    background: var(--white);
    padding: 20px 22px;
    margin-bottom: 16px;
}
.comment-head {
    display: flex;
    gap: 14px;
    align-items: baseline;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.comment-author { color: var(--acc); font-weight: 700; }
.comment-date { color: var(--muted); }
.comment-wait { color: var(--acc2); font-size: 0.88rem; }
.comment-actions a {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
}
.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.84rem;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.comment-form p { margin-bottom: 16px; }
.comment-reply-title { font-family: var(--font-head); font-size: 1.4rem; text-transform: uppercase; }
.comments-closed { color: var(--muted); }

/* ============ ПАГИНАЦИЯ ============ */
.pager,
.comments-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 34px 0 0;
}
.pager .page-numbers,
.comments-pagination .page-numbers {
    display: inline-block;
    border: 2px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 9px 15px;
    border-radius: 0;
}
.pager a.page-numbers:hover,
.comments-pagination a.page-numbers:hover {
    border-color: var(--acc);
    color: var(--acc);
}
.pager .page-numbers.current,
.comments-pagination .page-numbers.current {
    background: var(--acc);
    border-color: var(--acc);
    color: #FFFFFF;
}
.pager .page-numbers.dots,
.comments-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* ============ 404 ============ */
.err-block {
    border: 2px solid var(--line);
    background: var(--white);
    padding: 46px 40px;
}
.err-code {
    display: block;
    font-family: var(--font-mono);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--acc2);
    margin-bottom: 18px;
}

/* ============ ПОДВАЛ ============ */
.site-bottom {
    background: var(--dark);
    color: #C4CBD3;
    padding: 58px 0 30px;
    border-top: 4px solid var(--acc);
}
.foot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}
.foot-col { min-width: 0; }
.site-bottom .widget-title {
    color: #FFFFFF;
    font-size: 1.02rem;
    border-left-color: var(--acc2);
    padding-left: 12px;
    margin-bottom: 0.9em;
}
.site-bottom p,
.site-bottom li { color: #C4CBD3; }
.site-bottom a { color: #E8EAED; }
.site-bottom a:hover { color: #7FB3E8; }
.site-bottom ul { list-style: none; margin: 0; padding: 0; }
.site-bottom li { padding: 7px 0; border-bottom: 1px solid #262A30; }
.site-bottom li:last-child { border-bottom: 0; }
.site-bottom .post-date { color: #8A939D; font-family: var(--font-mono); font-size: 0.74rem; }
.copyright {
    margin: 44px 0 0;
    padding-top: 22px;
    border-top: 1px solid #262A30;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8A939D;
}

/* ============ COOKIE ============ */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: var(--dark);
    border-top: 4px solid var(--acc2);
    padding: 18px 26px;
}
.cookie-text {
    margin: 0;
    color: #C4CBD3;
    font-size: 0.88rem;
    max-width: 78ch;
    min-width: 0;
}
.cookie-accept { flex: none; }

/* ============ АДАПТИВ ============ */
@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .hero-title { font-size: 2.6rem; }
    .page-head, .entry-head { font-size: 2.1rem; }
    .layout-with-sidebar {
        display: block;
    }
    .layout-with-sidebar .sidebar { margin-top: 40px; }
    .layout-single, .front-wrap { width: 100%; }
    .fs-hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 40px 28px;
    }
    .fs-stats { padding: 40px 26px; }
    .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 0; }
    .stat-cell:nth-child(odd) { border-left: 0; padding-left: 0; }
    .map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-toggle { display: inline-flex; }
    .site-nav {
        flex: 1 1 100%;
        display: none;
    }
    .site-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-list a { border: 0; border-bottom: 1px solid #262A30; }
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.1rem; }
    .hero-title { font-size: 2.1rem; }
    .sec-title { font-size: 1.5rem; }
    .page-head, .entry-head { font-size: 1.8rem; }
    .fs { padding: 48px 0; }
    .fs-hero { padding: 30px 20px; }
    .fs-stats { padding: 30px 20px; }
    .err-block { padding: 30px 22px; }
    .card-body { padding: 20px 18px; }
    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-thumb-wrap a { position: static; }
    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .tline { padding-left: 20px; }
    .tline-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding-left: 16px;
    }
    .tline-item::before { left: -30px; }
    .stat-row { grid-template-columns: minmax(0, 1fr); }
    .stat-cell { border-left: 0; padding-left: 0; }
    .map-grid { grid-template-columns: minmax(0, 1fr); }
    .foot-grid { grid-template-columns: minmax(0, 1fr); }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav-item.next { text-align: left; }
    .search-form { flex-wrap: wrap; }
    .cookie-banner { padding: 16px 18px; }
}

@media (min-width: 601px) {
    .card-media { flex-direction: row; }
    .card-media .card-thumb-wrap {
        flex: 0 0 40%;
        width: auto;
        position: relative;
    }
    .card-media .card-thumb-wrap a {
        display: block;
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
    }
    .card-media .card-thumb-wrap img {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
        display: block;
    }
}
