/*
Theme Name: dds_rejting-letnih-shin.ru
Author: Алексей Захаров
Description: Тема «Асфальт и Неон» для образовательного портала об автомобильных шинах: тёмный брутализм с электрик-бирюзовым и сигнальным оранжевым акцентами.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: asfneon
*/

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

/* ---------- Токены ---------- */
:root {
    --bg: #121212;
    --bg-alt: #1E1E1E;
    --bg-deep: #0A0A0A;
    --bg-side: #181818;
    --text: #E8E8E8;
    --muted: #888888;
    --neon: #00E5FF;
    --signal: #FF3D00;
    --line: #333333;
    --mono: "Roboto Mono", "Consolas", "Liberation Mono", "Courier New", monospace;
    --sans: "Inter", "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, rgba(26, 26, 26, .5) 0 2px, transparent 2px 20px);
    overflow-wrap: break-word;
}
body::after {
    content: "";
    position: fixed;
    right: -70px;
    bottom: -70px;
    width: 340px;
    height: 340px;
    pointer-events: none;
    z-index: 50;
    opacity: .1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%2300E5FF' stroke-width='1'%3E%3Ccircle cx='100' cy='100' r='96'/%3E%3Ccircle cx='100' cy='100' r='84'/%3E%3Ccircle cx='100' cy='100' r='56'/%3E%3Ccircle cx='100' cy='100' r='50'/%3E%3Ccircle cx='100' cy='100' r='14'/%3E%3Cg id='t'%3E%3Cpath d='M100 4v12M92 5l2 11M108 5l-2 11'/%3E%3C/g%3E%3Cuse href='%23t' transform='rotate(30 100 100)'/%3E%3Cuse href='%23t' transform='rotate(60 100 100)'/%3E%3Cuse href='%23t' transform='rotate(90 100 100)'/%3E%3Cuse href='%23t' transform='rotate(120 100 100)'/%3E%3Cuse href='%23t' transform='rotate(150 100 100)'/%3E%3Cuse href='%23t' transform='rotate(180 100 100)'/%3E%3Cuse href='%23t' transform='rotate(210 100 100)'/%3E%3Cuse href='%23t' transform='rotate(240 100 100)'/%3E%3Cuse href='%23t' transform='rotate(270 100 100)'/%3E%3Cuse href='%23t' transform='rotate(300 100 100)'/%3E%3Cuse href='%23t' transform='rotate(330 100 100)'/%3E%3Cpath d='M100 50v36M100 114v36M50 100h36M114 100h36M65 65l25 25M110 110l25 25M135 65l-25 25M90 110l-25 25'/%3E%3C/svg%3E") no-repeat center / contain;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--neon); text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--mono);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    margin: 1.6em 0 .7em;
    letter-spacing: -.01em;
    hyphens: auto;
}
h1 { font-size: clamp(2rem, 6vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); position: relative; padding-left: 20px; }
h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: -10px;
    bottom: -10px;
    width: 6px;
    background: var(--signal);
}
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
ul, ol { padding-left: 1.4em; margin: 0 0 1.1em; }
hr { border: 0; height: 4px; background: var(--neon); margin: 2.5rem 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; border: 2px solid var(--line); }
th, td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-family: var(--mono); font-size: .92rem; }
code, pre, kbd { font-family: var(--mono); font-size: .92em; }
pre { overflow-x: auto; background: var(--bg-deep); border: 2px solid var(--line); padding: 1rem 1.2rem; }
blockquote {
    margin: 1.8em 0;
    padding: 1.2rem 1.5rem;
    background: var(--bg-alt);
    border-left: 6px solid var(--neon);
    font-size: 1.1rem;
}
blockquote p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--neon); color: var(--bg); }

.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: 1rem;
    top: -100px;
    z-index: 200;
    background: var(--neon);
    color: var(--bg);
    padding: .6rem 1rem;
    font-family: var(--mono);
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Анимированное подчёркивание ссылок ---------- */
.entry-content a,
.archive-desc a,
.widget a,
.breadcrumbs a,
.card-title a,
.cookie-text a,
.comment-body a,
.entry-tags a,
.page-lead a {
    color: var(--neon);
    background-image: linear-gradient(var(--signal), var(--signal));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: background-size .3s ease;
}
.entry-content a:hover,
.archive-desc a:hover,
.widget a:hover,
.breadcrumbs a:hover,
.card-title a:hover,
.cookie-text a:hover,
.comment-body a:hover,
.entry-tags a:hover,
.page-lead a:hover { background-size: 100% 2px; }

/* ---------- Кнопки ---------- */
.btn,
.comment-form .submit,
.search-submit {
    display: inline-block;
    font-family: var(--mono);
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.3;
    padding: .8rem 1.4rem;
    border: 3px solid var(--neon);
    border-radius: 0;
    background: transparent;
    color: var(--neon);
    cursor: pointer;
    text-align: center;
    transition: background-color .15s, color .15s, transform .15s;
}
.btn:hover,
.comment-form .submit:hover,
.search-submit:hover {
    background: var(--neon);
    color: var(--bg);
    transform: translate(3px, 3px);
}
.btn-alt { border-color: var(--text); color: var(--text); }
.btn-alt:hover { background: var(--text); color: var(--bg); }

/* ---------- Верхняя полоса ---------- */
.topline {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-deep);
    padding: .45rem 0;
    position: relative;
    z-index: 1;
}
.topline::before,
.topline::after {
    content: "";
    flex: 1 1 0;
    height: 4px;
    background: var(--neon);
}
.topline span {
    font-family: var(--mono);
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .22em;
    color: var(--neon);
    white-space: nowrap;
}

/* ---------- Шапка ---------- */
.site-header {
    position: relative;
    z-index: 2;
    background: var(--bg-deep);
    border-bottom: 2px solid var(--neon);
    box-shadow: 0 2px 14px rgba(0, 229, 255, .35);
}
.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text);
    flex: 1 1 320px;
    min-width: 0;
}
.brand-mark { flex: 0 0 56px; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.brand-name {
    font-family: var(--mono);
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.3;
    max-width: 60ch;
}
.brand-desc {
    font-size: .8rem;
    line-height: 1.45;
    color: var(--muted);
    max-width: 75ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: transparent;
    color: var(--neon);
    border: 3px solid var(--neon);
    padding: .5rem .9rem;
    font-family: var(--mono);
    font-weight: 700;
    cursor: pointer;
}
.nav-toggle-bars {
    width: 20px;
    height: 14px;
    background: repeating-linear-gradient(to bottom, var(--neon) 0 2px, transparent 2px 6px);
}
.primary-nav { flex: 1 0 100%; display: none; }
.primary-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 2px solid var(--line); }
.nav-list a {
    display: block;
    padding: .8rem 0;
    font-family: var(--mono);
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--line);
}
.nav-list a:hover { color: var(--neon); }
.nav-list .current-menu-item > a { color: var(--neon); }

@media (min-width: 960px) {
    .nav-toggle { display: none; }
    .primary-nav { display: block; flex: 0 1 auto; }
    .nav-list { flex-direction: row; flex-wrap: wrap; gap: .3rem 1.6rem; border: 0; }
    .nav-list a { padding: .3rem 0; border-bottom: 3px solid transparent; }
    .nav-list a:hover,
    .nav-list .current-menu-item > a { border-bottom-color: var(--signal); }
}

/* ---------- Основная область ---------- */
.site-main { position: relative; z-index: 1; }
.page-wrap { padding: 2rem 0 4rem; }
.breadcrumbs {
    font-family: var(--mono);
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 1.8rem;
}
.breadcrumbs .sep { color: var(--signal); margin: 0 .35rem; }
.breadcrumbs span:last-child { color: var(--text); }

.layout-single .content-area { width: 100%; }
.content-area, .sidebar { min-width: 0; }
@media (min-width: 960px) {
    .layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
    .layout-with-sidebar {
        display: grid;
        grid-template-columns: 67% 27%;
        justify-content: space-between;
        align-items: start;
    }
}

.page-head { margin-bottom: 2rem; }
.page-title { margin-top: 0; }
@media (min-width: 960px) {
    h1, .page-title { font-size: 3.5rem; }
    .layout-with-sidebar .page-title { font-size: 2.8rem; }
}
.page-lead, .archive-desc { color: var(--muted); max-width: 70ch; }
.entry-meta, .card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem 1rem;
    font-family: var(--mono);
    font-size: .8rem;
    color: var(--muted);
}
.card-cat {
    color: var(--signal);
    border: 1px solid var(--signal);
    padding: 0 .45rem;
    line-height: 1.6;
}
.card-cat:hover { background: var(--signal); color: var(--bg); }

.entry-thumb { margin: 0 0 2rem; border: 2px solid var(--line); }
.entry-thumb img { width: 100%; height: auto; }
.entry-content { max-width: 72ch; hyphens: auto; }
.layout-single .entry-content { margin-inline: 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { height: auto; }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.entry-content ul li::marker { color: var(--neon); }
.entry-content ol li::marker { color: var(--neon); font-family: var(--mono); }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 2rem; font-family: var(--mono); font-size: .85rem; }
.page-links { font-family: var(--mono); margin-top: 1.5rem; }

.post-nav {
    display: grid;
    gap: 1rem;
    margin: 3rem 0;
}
@media (min-width: 600px) { .post-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 1rem 1.2rem;
    border: 2px solid var(--line);
    background: var(--bg-side);
    color: var(--text);
    min-width: 0;
}
.post-nav-link span { font-family: var(--mono); font-size: .8rem; color: var(--neon); }
.post-nav-link.next { text-align: right; grid-column: -2; }
.post-nav-link:hover { border-color: var(--neon); }

/* ---------- Карточки ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 2.2rem 2rem;
    padding: 0 10px 10px 0;
}
@media (min-width: 960px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-side);
    border: 2px solid var(--line);
    box-shadow: 6px 6px 0 var(--neon);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 10px 10px 0 var(--neon);
    border-color: var(--neon);
}
.card-thumb { display: block; overflow: hidden; border-bottom: 2px solid var(--line); }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
    transition: filter .35s ease;
}
.card:hover .card-thumb img { filter: none; }
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: 1.2rem 1.3rem 1.4rem;
    min-width: 0;
}
.card-title { font-size: 1.12rem; margin: .5rem 0 .6rem; hyphens: auto; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--neon); }
.card-excerpt { flex: 1; color: #BDBDBD; font-size: .95rem; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-more {
    align-self: flex-start;
    margin-top: .8rem;
    font-family: var(--mono);
    font-weight: 700;
    font-size: .88rem;
    color: var(--neon);
    border-bottom: 2px solid var(--signal);
}
.card-more:hover { color: var(--signal); }

.empty-state {
    padding: 1.8rem 2rem;
    border: 2px dashed var(--line);
    background: var(--bg-side);
}

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 3rem;
    font-family: var(--mono);
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.8rem;
    height: 2.8rem;
    padding: 0 .8rem;
    border: 2px solid var(--line);
    color: var(--text);
    font-weight: 700;
    transition: border-color .15s, color .15s;
}
.pager a.page-numbers:hover { border-color: var(--neon); color: var(--neon); }
.pager .page-numbers.current { background: var(--neon); border-color: var(--neon); color: var(--bg); }
.pager .page-numbers.dots { border: 0; min-width: auto; padding: 0 .3rem; color: var(--muted); }

/* ---------- Сайдбар ---------- */
.sidebar {
    margin-top: 3rem;
    background: var(--bg-side);
    border-left: 4px solid var(--neon);
    padding: 1.6rem 1.5rem;
    color: var(--text);
}
@media (min-width: 960px) { .sidebar { margin-top: 0; } }
.sidebar .widget + .widget { margin-top: 2rem; }
.widget-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--neon);
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--line);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .55rem 0; border-bottom: 1px solid #2A2A2A; }
.widget li:last-child { border-bottom: 0; }
.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li { color: var(--text); }
.sidebar .widget a { color: var(--neon); }
.sidebar .post-date { display: block; color: var(--muted); font-size: .8rem; }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: .5rem; margin: 1.2rem 0; }
.search-field {
    flex: 1;
    min-width: 0;
    padding: .75rem 1rem;
    background: var(--bg-deep);
    color: var(--text);
    border: 3px solid var(--line);
    border-radius: 0;
    font: inherit;
}
.search-field:focus { border-color: var(--neon); outline: none; }

/* ---------- 404 ---------- */
.notfound-code {
    font-family: var(--mono);
    font-weight: 700;
    font-size: clamp(5rem, 18vw, 10rem);
    line-height: 1;
    margin: 0 0 1rem;
    color: transparent;
    -webkit-text-stroke: 2px var(--neon);
}

/* ---------- Комментарии ---------- */
.comments { margin-top: 3.5rem; }
.comment-list, .comment-list .children { list-style: none; padding: 0; margin: 0; }
.comment-list .children { margin-left: 1.5rem; border-left: 2px solid var(--line); padding-left: 1rem; }
.comment-body { padding: 1.2rem 1.3rem; background: var(--bg-side); border: 2px solid var(--line); margin-bottom: 1.2rem; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: .6rem; }
.comment-head img { border: 2px solid var(--neon); }
.comment-author-name { font-family: var(--mono); font-weight: 700; }
.comment-date { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.comment-wait { color: var(--signal); font-size: .9rem; }
.comment-reply a { font-family: var(--mono); font-size: .85rem; }
.comment-respond { margin-top: 2rem; }
.comment-form label { display: block; font-family: var(--mono); font-size: .85rem; margin-bottom: .3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    background: var(--bg-deep);
    color: var(--text);
    border: 3px solid var(--line);
    border-radius: 0;
    font: inherit;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--neon); outline: none; }
.comment-form-cookies-consent label { display: inline; }
.comment-notes, .logged-in-as { color: var(--muted); font-size: .9rem; }

/* ---------- Главная: секции ---------- */
.fs { position: relative; padding: 4.5rem 0; }
.fs-steps { background-color: var(--bg-alt); }
.fs-latest { background-color: var(--bg); }
.fs-stats {
    background-color: var(--bg-alt);
    background-image: radial-gradient(rgba(0, 229, 255, .07) 1.2px, transparent 1.6px);
    background-size: 14px 14px;
}
.fs-cta { background-color: var(--bg); }

.sec-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 2.6rem;
}
.tread {
    flex: 0 0 44px;
    height: 14px;
    background: repeating-linear-gradient(to bottom, var(--neon) 0 2px, transparent 2px 6px);
}
.sec-title { margin: 0; padding-left: 16px; min-width: 0; }
.sec-title span {
    display: inline-block;
    background: var(--neon);
    color: var(--bg);
    padding: .5rem 2.4rem .55rem 1.2rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

/* Hero */
.fs-hero {
    padding: 0;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-deep);
    border-bottom: 4px solid var(--neon);
}
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fs-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 18, .7);
}
.hero-inner { position: relative; z-index: 1; padding: 5rem 0; }
.hero-title { margin: 0 0 1.2rem; max-width: 16ch; padding: 0; }
.hero-sub { max-width: 58ch; font-size: 1.15rem; color: #D0D0D0; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Шаги */
.steps {
    list-style: none;
    margin: 0;
    padding: 0 10px 10px 0;
    display: grid;
    gap: 2.5rem;
}
@media (min-width: 600px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; } }
.step {
    position: relative;
    min-width: 0;
    background: var(--bg-side);
    border: 2px solid var(--line);
    box-shadow: 6px 6px 0 var(--neon);
    padding: 1.6rem 1.4rem 1.4rem;
}
.step p { margin: 0; color: #C8C8C8; font-size: .95rem; }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--neon);
    color: var(--bg);
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.4rem;
}
.step-title { margin: 1rem 0 .6rem; font-size: 1.08rem; }
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 2.3rem;
    bottom: calc(-2.5rem - 2px);
    width: 6px;
    height: 2.5rem;
    background: radial-gradient(circle, var(--signal) 2px, transparent 2.5px) center top / 6px 9px repeat-y;
}
@media (min-width: 600px) {
    .step:not(:last-child)::after {
        left: auto;
        right: calc(-2.5rem - 2px);
        bottom: auto;
        top: 2.9rem;
        width: 2.5rem;
        height: 6px;
        background: radial-gradient(circle, var(--signal) 2px, transparent 2.5px) left center / 9px 6px repeat-x;
    }
    .step:nth-child(2n)::after { display: none; }
}
@media (min-width: 960px) {
    .step:nth-child(2n)::after { display: block; }
    .step:last-child::after { display: none; }
}

/* Разделитель с гайкой */
.hexline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg);
}
.hexline::before,
.hexline::after {
    content: "";
    flex: 1 1 0;
    height: 4px;
    background: var(--neon);
}
.hexline svg { flex: 0 0 34px; margin: 0 .6rem; }

/* Дорожная разметка */
.roadmark {
    height: 14px;
    background: var(--bg) radial-gradient(circle, var(--signal) 2px, transparent 2.6px) center / 12px 14px repeat-x;
}

/* Последние записи */
.latest-more { margin: 3rem 0 0; text-align: center; }

/* Статистика */
.stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2.5rem 2rem;
}
@media (min-width: 600px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat {
    min-width: 0;
    padding-top: 1.2rem;
    border-top: 4px solid var(--line);
}
.stat:hover { border-top-color: var(--signal); }
.stat-num {
    display: block;
    font-family: var(--mono);
    font-weight: 700;
    font-size: clamp(2.6rem, 8vw, 4rem);
    line-height: 1;
    color: var(--neon);
    white-space: nowrap;
}
.stat-num small { font-size: .32em; margin-left: .3em; color: var(--text); font-weight: 500; }
.stat-label { display: block; margin-top: .9rem; color: var(--muted); font-size: .92rem; line-height: 1.5; }
@media (min-width: 960px) { .stat-num { font-size: 4rem; } }

/* CTA */
.cta-plate {
    position: relative;
    background: var(--neon);
    color: var(--bg);
    padding: 3.2rem 4rem;
    overflow: hidden;
}
.cta-plate::before,
.cta-plate::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    background: repeating-linear-gradient(45deg, var(--signal) 0 4px, transparent 4px 12px);
}
.cta-plate::before { left: 0; }
.cta-plate::after { right: 0; }
.cta-title { color: var(--bg); margin: 0 0 1rem; font-size: clamp(1.6rem, 4vw, 2.6rem); }
.cta-text { max-width: 60ch; font-size: 1.1rem; margin-bottom: 1.8rem; color: var(--bg); }
.btn-dark { border-color: var(--bg); color: var(--bg); }
.btn-dark:hover { background: var(--bg); color: var(--neon); }

/* ---------- Подвал ---------- */
.site-footer {
    position: relative;
    z-index: 1;
    background: var(--bg-deep);
    border-top: 2px solid var(--neon);
    color: var(--text);
}
.footer-grid {
    display: grid;
    gap: 2.5rem;
    padding: 3.5rem 0 2.5rem;
}
@media (min-width: 960px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.footer-col { min-width: 0; }
.site-footer .widget,
.site-footer .widget p,
.site-footer .widget li { color: #D6D6D6; font-size: .95rem; }
.site-footer .widget-title { color: var(--neon); border-bottom-color: #2A2A2A; }
.site-footer .widget a { color: var(--neon); }
.site-footer .widget li { border-bottom-color: #1C1C1C; }
.footer-bottom { border-top: 1px solid #222; padding: 1.2rem 0; }
.footer-bottom p { margin: 0; font-family: var(--mono); font-size: .8rem; color: var(--muted); }

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    max-width: 960px;
    margin-inline: auto;
    padding: 1rem 1.3rem;
    background: var(--bg-deep);
    color: var(--text);
    border: 2px solid var(--neon);
    box-shadow: 6px 6px 0 var(--signal);
}
.cookie-text { margin: 0; flex: 1 1 320px; font-size: .9rem; min-width: 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 600px) {
    .fs { padding: 3.2rem 0; }
    .fs-hero { min-height: 480px; padding: 0; }
    .hero-inner { padding: 3.5rem 0; }
    .sec-head { gap: 10px; }
    .tread { flex-basis: 28px; }
    .sec-title { font-size: 1.25rem; }
    .sec-title span { padding: .45rem 1.6rem .5rem .9rem; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
    .cta-plate { padding: 2.2rem 2.4rem; }
    .cta-plate::before, .cta-plate::after { width: 16px; }
    .brand-desc { -webkit-line-clamp: 3; }
    .search-form { flex-direction: column; }
    body::after { width: 220px; height: 220px; right: -50px; bottom: -50px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
