/*
Theme Name: dds_mobile-frameworks-comparison-chart.com
Author: Алексей Гриднев
Description: Аналитическая тема для портала-агрегатора сравнения жилых комплексов. Холодная палитра, координатная сетка, строгая типографика.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: urbmet
*/

/* ============================ 1. База ============================ */

:root {
    --bg-page: #F1F4F9;
    --bg-plate: #FFFFFF;
    --bg-deep: #0B1729;
    --bg-side: #E8EDF4;
    --ink: #1E293B;
    --ink-mute: #64748B;
    --accent: #0066FF;
    --accent-2: #00B4D8;
    --line: #E2E8F0;
    --line-dash: #CBD5E1;
    --shell: min(92%, 1180px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg-page);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='320' viewBox='0 0 420 320'%3E%3Cg fill='%230066FF' fill-opacity='0.04'%3E%3Cpolygon points='20,180 130,150 150,240 40,270'/%3E%3Cpolygon points='170,120 260,100 285,190 190,215'/%3E%3Cpolygon points='300,170 400,145 415,250 315,275'/%3E%3Cpolygon points='95,40 205,15 220,90 110,115'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(0deg, rgba(30,41,59,0.05) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(90deg, rgba(30,41,59,0.05) 0 1px, transparent 1px 40px);
    background-repeat: no-repeat, repeat, repeat;
    background-position: right -40px bottom -30px, 0 0, 0 0;
    background-attachment: fixed, scroll, scroll;
    color: var(--ink);
    font-family: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

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

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

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

a:hover,
a:focus { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    font-family: "Manrope", "Inter", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.18;
    margin: 0 0 0.7em;
    font-weight: 700;
    letter-spacing: -0.015em;
}

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

p { margin: 0 0 1.15em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }

blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-plate);
    border-left: 4px solid var(--accent);
    color: var(--ink);
}

code, pre { font-family: "JetBrains Mono", "Roboto Mono", Consolas, monospace; }

pre {
    overflow-x: auto;
    padding: 1rem 1.2rem;
    background: var(--bg-deep);
    color: #E2E8F0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.4rem;
    background: var(--bg-plate);
}

table, th, td { border: 1px solid var(--line-dash); }

th, td { padding: 0.6rem 0.8rem; text-align: left; }

th { background: var(--bg-side); font-weight: 700; }

/* Строгие «сухие» буллеты */
.entry-body ul,
.side-block ul,
.foot-block ul { list-style: none; padding-left: 0; }

.entry-body ul > li,
.side-block ul > li,
.foot-block ul > li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.45rem;
}

.entry-body ul > li::before,
.side-block ul > li::before,
.foot-block ul > li::before {
    content: "|";
    position: absolute;
    left: 0.35rem;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

.entry-body ol { padding-left: 1.4rem; }

/* ============================ 2. Кнопки ============================ */

.btn,
.btn-ghost {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background-color .18s ease, opacity .18s ease, color .18s ease;
    border: 1px solid var(--accent);
    cursor: pointer;
}

.btn {
    background: var(--accent);
    color: #FFFFFF;
}

.btn:hover,
.btn:focus {
    background: #0052CC;
    opacity: 0.92;
    text-decoration: none;
    color: #FFFFFF;
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: rgba(0, 102, 255, 0.08);
    text-decoration: none;
}

/* ============================ 3. Шапка ============================ */

.site-top {
    background: var(--bg-deep);
    color: #FFFFFF;
    border-bottom: 3px solid var(--accent);
}

.top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 0;
    flex-wrap: wrap;
}

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

.brand-logo { display: block; width: auto; max-height: 54px; }

.brand-mark { display: block; flex: 0 0 46px; }

.brand-text { min-width: 0; }

.brand-name {
    display: block;
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    color: #FFFFFF;
    max-width: 460px;
}

.brand-name:hover { text-decoration: none; color: #FFFFFF; }

.brand-desc {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #94A9C4;
    max-width: 460px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    color: #FFFFFF;
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

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

.main-nav a {
    color: #DCE5F2;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus {
    color: #FFFFFF;
    text-decoration: none;
    border-bottom-color: var(--accent);
}

.main-nav .current-menu-item > a {
    color: #FFFFFF;
    border-bottom-color: var(--accent-2);
}

/* ============================ 4. Каркас страницы ============================ */

.site-main { padding: 2.4rem 0 3.5rem; }

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 3%;
    align-items: start;
}

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

.sidebar {
    min-width: 0;
    background: var(--bg-side);
    padding: 1.5rem 1.4rem;
    border-top: 3px solid var(--accent);
}

.side-block { margin-bottom: 1.8rem; }

.side-block:last-child { margin-bottom: 0; }

.side-block-title {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0B1729;
    margin-bottom: 0.9rem;
    padding-bottom: 0.6rem;
    position: relative;
}

.side-block-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.sidebar,
.sidebar p,
.sidebar li { color: #1E293B; }

.sidebar a { color: #0B4FBF; }

.sidebar a:hover { color: var(--accent); }

.sidebar .post-date,
.sidebar .rss-date { color: #4A5A70; font-size: 0.82rem; }

/* Хлебные крошки */

.trail {
    font-size: 0.83rem;
    color: var(--ink-mute);
    margin-bottom: 1.4rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--line);
}

.trail a { color: var(--ink-mute); }

.trail a:hover { color: var(--accent); }

.trail-sep { color: var(--line-dash); margin: 0 0.35rem; }

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

.sec-title {
    position: relative;
    padding-bottom: 0.85rem;
    margin-bottom: 1.6rem;
}

.sec-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background: var(--accent);
}

.page-head { margin-bottom: 1.8rem; }

.page-head .page-title { font-size: 2.4rem; }

/* ============================ 5. Карточки записей ============================ */

.card-grid { display: block; }

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-plate);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    margin-bottom: 2.2rem;
    box-shadow: 0 8px 0 -2px var(--line);
    transition: box-shadow .18s ease;
}

.card:hover { box-shadow: 2px 10px 0 -2px #CBD5E1; }

.card-inner {
    display: flex;
    flex: 1;
    align-items: stretch;
}

.card-thumb-wrap {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
    background: var(--bg-side);
    min-height: 210px;
}

.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.25) contrast(1.05);
}

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

.card-title {
    font-size: 1.3rem;
    margin: 0 0 0.6rem;
    padding-right: 1.4rem;
}

.card-title a { color: var(--ink); }

.card-title a:hover { color: var(--accent); text-decoration: none; }

.card-excerpt { color: #3A4A5F; font-size: 0.95rem; }

.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-foot { margin-top: auto; padding-top: 1rem; }

.post-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.78rem;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.7rem;
    font-family: "JetBrains Mono", "Roboto Mono", Consolas, monospace;
}

.post-meta a { color: var(--ink-mute); }

.post-meta a:hover { color: var(--accent); }

.depth-mark {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 4px;
    height: 4px;
    display: block;
}

.depth-full { background: #16A34A; }
.depth-base { background: #EAB308; }
.depth-raw  { background: #94A3B8; }

/* ============================ 6. Пагинация ============================ */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.5rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--line-dash);
    border-radius: 4px;
    background: var(--bg-plate);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: "JetBrains Mono", "Roboto Mono", Consolas, monospace;
}

.pager a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* ============================ 7. Главная ============================ */

.front-wrap {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

.front-section + .front-section { border-top: 1px solid var(--line); }

.sec-split {
    width: 80%;
    margin: 0;
    border: 0;
    border-top: 2px dashed var(--line-dash);
}

/* 7.1 Hero */

.fs-hero {
    background: var(--bg-deep);
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 40px);
    color: #FFFFFF;
    padding: 3.4rem 2.4rem;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.fs-hero::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 320px;
    height: 240px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='240' viewBox='0 0 320 240'%3E%3Cg fill='none' stroke='%230066FF' stroke-width='2' opacity='0.45'%3E%3Crect x='20' y='90' width='70' height='130'/%3E%3Crect x='105' y='40' width='60' height='180'/%3E%3Crect x='180' y='110' width='55' height='110'/%3E%3Crect x='248' y='60' width='52' height='160'/%3E%3Cline x1='0' y1='222' x2='320' y2='222'/%3E%3C/g%3E%3C/svg%3E") no-repeat;
    pointer-events: none;
}

.fs-hero h1 {
    color: #FFFFFF;
    max-width: 18ch;
    position: relative;
    z-index: 2;
}

.fs-hero h1 .hl { color: var(--accent); }

.fs-hero-lead {
    max-width: 62ch;
    color: #C4D2E4;
    font-size: 1.05rem;
    position: relative;
    z-index: 2;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
    margin-top: 2.2rem;
    position: relative;
    z-index: 2;
}

.hero-metric {
    background: rgba(255, 255, 255, 0.92);
    padding: 1.3rem 1.3rem;
    min-width: 0;
}

.hero-metric b {
    display: block;
    font-family: "JetBrains Mono", "Roboto Mono", Consolas, monospace;
    font-size: 2.1rem;
    line-height: 1.1;
    color: var(--bg-deep);
}

.hero-metric span {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-mute);
}

/* 7.2 Таймлайн */

.timeline {
    position: relative;
    margin: 0;
    padding: 0 0 0 0;
    list-style: none;
}

.tl-row {
    display: grid;
    grid-template-columns: 150px 28px minmax(0, 1fr);
    gap: 0 1.2rem;
    align-items: start;
    padding-bottom: 2.2rem;
}

.tl-stage {
    text-align: right;
    font-family: "JetBrains Mono", "Roboto Mono", Consolas, monospace;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: var(--ink-mute);
    text-transform: uppercase;
    padding-top: 0.15rem;
}

.tl-axis {
    position: relative;
    justify-self: center;
    width: 2px;
    background: var(--accent-2);
    align-self: stretch;
}

.tl-row:last-child .tl-axis { background: linear-gradient(var(--accent-2) 55%, transparent 55%); }

.tl-dot {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-page);
    border: 3px solid var(--accent-2);
}

.tl-row.is-active .tl-dot {
    background: var(--accent);
    border-color: var(--accent);
}

.tl-text { min-width: 0; }

.tl-text h3 { margin-bottom: 0.35rem; font-size: 1.15rem; }

.tl-text p { margin: 0; color: #3A4A5F; font-size: 0.95rem; }

/* 7.3 Сетка критериев */

.crit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.crit-cell {
    background: var(--bg-plate);
    padding: 1.8rem 1.5rem;
    min-width: 0;
}

.crit-icon { display: block; margin-bottom: 1rem; color: var(--bg-deep); }

.crit-cell h3 {
    font-size: 1.05rem;
    margin: 0 0 0.55rem;
    padding-bottom: 0.55rem;
    position: relative;
}

.crit-cell h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width .2s ease;
}

.crit-cell:hover h3::after { width: 48px; }

.crit-cell p { margin: 0; font-size: 0.9rem; color: #3A4A5F; }

/* 7.4 Статистика */

.stats-plate {
    background: var(--bg-plate);
    background-image:
        repeating-linear-gradient(0deg, rgba(30,41,59,0.08) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(90deg, rgba(30,41,59,0.08) 0 1px, transparent 1px 40px);
    padding: 2.6rem 2.2rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.stat-cell { min-width: 0; border-left: 3px solid var(--accent); padding-left: 1.1rem; }

.stat-num {
    display: block;
    font-family: "JetBrains Mono", "Roboto Mono", Consolas, monospace;
    font-size: 2.6rem;
    line-height: 1.05;
    font-weight: 700;
    color: var(--bg-deep);
}

.stat-cap {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.82rem;
    color: var(--ink-mute);
    line-height: 1.45;
}

/* 7.5 Лента последних записей на главной */

.front-feed .card { margin-bottom: 1.8rem; }

.front-more { margin-top: 0.5rem; }

/* ============================ 8. Запись и страница ============================ */

.entry {
    background: var(--bg-plate);
    padding: 2.2rem 2.2rem 2.4rem;
    box-shadow: 0 8px 0 -2px var(--line);
}

.entry-title { font-size: 2.5rem; margin-bottom: 0.8rem; }

.entry-thumb { margin: 1.2rem 0 1.6rem; }

.entry-thumb img { display: block; width: 100%; height: auto; }

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

.entry-body h2 {
    font-size: 1.65rem;
    margin-top: 2rem;
    padding-bottom: 0.6rem;
    position: relative;
}

.entry-body h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background: var(--accent);
}

.entry-body h3 { margin-top: 1.6rem; }

.entry-body img { display: block; height: auto; }

.tag-row {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 2px dashed var(--line-dash);
    font-size: 0.85rem;
    color: var(--ink-mute);
}

.tag-row a {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--line-dash);
    border-radius: 4px;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.8rem;
    font-size: 0.9rem;
}

/* ============================ 9. Комментарии ============================ */

.comments-zone {
    margin-top: 2.5rem;
    background: var(--bg-plate);
    padding: 2rem 2.2rem;
    box-shadow: 0 8px 0 -2px var(--line);
}

.comments-zone .comment-list { list-style: none; margin: 0 0 1.8rem; padding: 0; }

.comments-zone .comment-list ol.children { list-style: none; padding-left: 1.5rem; }

.note {
    border-top: 1px solid var(--line);
    padding: 1.1rem 0;
}

.note-head {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.note-author { font-weight: 700; }

.note-date {
    font-size: 0.78rem;
    color: var(--ink-mute);
    font-family: "JetBrains Mono", "Roboto Mono", Consolas, monospace;
}

.note-reply { font-size: 0.85rem; }

.comment-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line-dash);
    border-radius: 4px;
    background: #FFFFFF;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
}

.comment-form textarea { min-height: 150px; }

.comment-form .submit {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #FFFFFF;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .18s ease;
}

.comment-form .submit:hover { background: #0052CC; }

/* ============================ 10. Поиск и 404 ============================ */

.search-line { display: flex; gap: 0.5rem; }

.search-line input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line-dash);
    border-radius: 4px;
    background: #FFFFFF;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
}

.search-line button {
    padding: 0.65rem 1.2rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #FFFFFF;
    font-weight: 700;
    cursor: pointer;
}

.search-line button:hover { background: #0052CC; }

.err-plate {
    background: var(--bg-plate);
    padding: 2.4rem 2.2rem;
    box-shadow: 0 8px 0 -2px var(--line);
}

.err-code {
    font-family: "JetBrains Mono", "Roboto Mono", Consolas, monospace;
    font-size: 4.5rem;
    line-height: 1;
    color: var(--accent);
    margin: 0 0 0.6rem;
}

.err-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.4rem; }

.nothing-found {
    background: var(--bg-plate);
    padding: 1.8rem 2rem;
    box-shadow: 0 8px 0 -2px var(--line);
}

/* ============================ 11. Подвал ============================ */

.site-foot {
    background: var(--bg-deep);
    color: #C4D2E4;
    border-top: 3px solid var(--accent);
    padding: 3rem 0 1.6rem;
}

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

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

.foot-block { margin-bottom: 1.6rem; }

.foot-block-title {
    font-size: 1rem;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding-bottom: 0.55rem;
    margin-bottom: 0.9rem;
    position: relative;
}

.foot-block-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-2);
}

.site-foot p,
.site-foot li,
.site-foot .foot-block { color: #C4D2E4; font-size: 0.92rem; }

.site-foot a { color: #9CC4FF; }

.site-foot a:hover { color: #FFFFFF; }

.site-foot ul { list-style: none; padding-left: 0; margin: 0; }

.site-foot .foot-block ul > li::before { color: var(--accent-2); }

.site-foot .post-date { color: #8FA3BC; }

.foot-bottom {
    margin-top: 2.2rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
    color: #8FA3BC;
}

/* ============================ 12. Cookie-баннер ============================ */

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    background: #0B1729;
    color: #DCE5F2;
    border-top: 3px solid var(--accent);
    padding: 1.1rem 1.6rem;
    font-size: 0.88rem;
}

.cookie-banner p { margin: 0; max-width: 80ch; }

.cookie-banner a { color: #9CC4FF; }

.cookie-accept {
    flex: 0 0 auto;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background-color .18s ease;
}

.cookie-accept:hover { background: #0052CC; }

/* ============================ 13. Адаптив ============================ */

@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    h2 { font-size: 1.7rem; }

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

    .layout-single,
    .front-wrap { width: 100%; }

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

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

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

    .card-thumb-wrap { flex: 0 0 34%; }
}

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

    h1 { font-size: 2rem; }
    h2 { font-size: 1.45rem; }

    .top-inner { padding: 1rem 0; }

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

    .main-nav {
        flex-basis: 100%;
        display: none;
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding-top: 0.8rem;
    }

    .main-nav li { border-top: 1px solid rgba(255, 255, 255, 0.12); }

    .main-nav a { display: block; padding: 0.7rem 0; }

    .brand-desc { display: none; }

    .card-inner { flex-direction: column; }

    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
        min-height: 0;
    }

    .card-thumb-wrap a { position: static; }

    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .card-body { padding: 1.2rem 1.2rem; }

    .front-section.fs-hero { padding: 2.2rem 1.4rem; }

    .hero-metrics { grid-template-columns: minmax(0, 1fr); }

    .front-section { padding: 2.2rem 0; }

    .tl-row {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 0 0.9rem;
    }

    .tl-stage {
        grid-column: 1 / -1;
        text-align: left;
        margin-bottom: 0.4rem;
        padding-left: 2.2rem;
    }

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

    .stats-row { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }

    .stats-plate { padding: 1.8rem 1.4rem; }

    .entry,
    .comments-zone,
    .err-plate { padding: 1.5rem 1.3rem; }

    .entry-title { font-size: 1.8rem; }

    .foot-cols { grid-template-columns: minmax(0, 1fr); }

    .cookie-banner { padding: 1rem 1.2rem; }
}
