/*
Theme Name: dds_videoxqaioto.com
Author: Артём Звягинцев
Description: Информационная тема для обзорного проекта об AI-сервисах для рынка недвижимости. Швейцарская сетка, холодная стальная палитра, строгая типографика.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: aiestate
*/

/* ============ 1. ПЕРЕМЕННЫЕ ============ */
:root {
    --bg: #F4F6F8;
    --bg-alt: #E4E9EF;
    --head-bg: #1B2A4A;
    --foot-bg: #0F1A2E;
    --side-bg: #FFFFFF;
    --ink: #1B2A4A;
    --accent: #2F6FED;
    --accent2: #00B8A9;
    --accent2-dark: #00A698;
    --muted: #6B7A90;
    --line: #D0D8E4;
    --grid-step: 8px;
    --font-head: "Inter Tight", "Archivo", "Arial Narrow", Arial, Helvetica, sans-serif;
    --font-body: "Inter", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(to right, var(--bg-alt) 1px, transparent 1px),
        linear-gradient(to bottom, var(--bg-alt) 1px, transparent 1px);
    background-size: 24px 24px;
}

body::after {
    content: "";
    position: fixed;
    right: 0;
    bottom: 0;
    width: 380px;
    height: 330px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 260'%3E%3Cg fill='none' stroke='%232F6FED' stroke-width='2'%3E%3Cpath d='M30 40L150 20 270 60M30 40L150 130M150 20L150 130M270 60L150 130M30 220L150 130M150 240L150 130M270 200L150 130M30 220L150 240M150 240L270 200M30 40L30 220M270 60L270 200'/%3E%3C/g%3E%3Cg fill='%232F6FED'%3E%3Ccircle cx='30' cy='40' r='8'/%3E%3Ccircle cx='150' cy='20' r='8'/%3E%3Ccircle cx='270' cy='60' r='8'/%3E%3Ccircle cx='150' cy='130' r='13'/%3E%3Ccircle cx='30' cy='220' r='8'/%3E%3Ccircle cx='150' cy='240' r='8'/%3E%3Ccircle cx='270' cy='200' r='8'/%3E%3C/g%3E%3C/svg%3E");
}

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

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

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

p { margin: 0 0 1.1em; }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .18s ease, text-decoration-thickness .18s ease; }
a:hover { color: var(--accent2); text-decoration-thickness: 2px; }

ul, ol { padding-left: 1.3em; }
blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.6rem;
    border-left: 4px solid var(--accent2);
    background: #FFFFFF;
    color: var(--ink);
}
blockquote p:last-child { margin-bottom: 0; }

code, pre { font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; background: var(--bg-alt); }
pre { padding: 1rem 1.2rem; overflow-x: auto; }

table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; background: #FFFFFF; }
table, th, td { border: 1px solid var(--line); }
th, td { padding: 0.65rem 0.9rem; text-align: left; }
th { background: var(--bg-alt); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.04em; }

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

/* ============ 3. КОНТЕЙНЕРЫ ============ */
.shell { width: min(92%, 1180px); margin-inline: auto; }
.fs-wrap { width: min(85%, 1180px); margin-inline: auto; }

.site-head, .site-main, .site-foot, .topline { position: relative; z-index: 1; }

.site-main { padding: calc(var(--grid-step) * 7) 0 calc(var(--grid-step) * 9); }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}
.layout-single { display: block; }
.layout-single > .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }

/* ============ 4. ВЕРХНЯЯ ПОЛОСА И ШАПКА ============ */
.topline {
    display: flex;
    height: 3px;
}
.topline span { display: block; height: 3px; }
.topline span:nth-child(1) { flex: 2; background: var(--head-bg); }
.topline span:nth-child(2) { flex: 1; background: var(--accent2); }
.topline span:nth-child(3) { flex: 3; background: var(--accent); }

.site-head {
    background: var(--head-bg);
    color: #FFFFFF;
    padding: calc(var(--grid-step) * 3) 0;
}
.head-inner {
    display: flex;
    align-items: center;
    gap: calc(var(--grid-step) * 4);
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: calc(var(--grid-step) * 2);
    min-width: 0;
    flex: 1 1 320px;
    text-decoration: none;
    color: #FFFFFF;
}
.brand:hover { color: #FFFFFF; text-decoration: none; }
.brand-logo { display: block; width: 52px; height: 52px; flex: 0 0 auto; }
img.brand-logo { width: auto; max-height: 56px; }
.brand-text { min-width: 0; }
.brand-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}
.brand-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #A8B6C9;
}

.nav-toggle {
    display: none;
    border: 1px solid rgba(255, 255, 255, .35);
    background: transparent;
    color: #FFFFFF;
    font-family: var(--font-head);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 16px;
    border-radius: 2px;
    cursor: pointer;
}

.main-nav[hidden] { display: none !important; }
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--grid-step) * 3);
}
.main-nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--accent2); border-bottom-color: var(--accent2); }
.main-nav .current-menu-item > a { border-bottom-color: var(--accent); }

/* ============ 5. КНОПКИ ============ */
.btn, .comment-form .submit, .search-form button {
    display: inline-block;
    border-radius: 2px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 13px 26px;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}
.btn:hover, .comment-form .submit:hover, .search-form button:hover {
    background: var(--accent2);
    border-color: var(--accent2);
    color: #FFFFFF;
    transform: translateX(4px);
    text-decoration: none;
}
.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-ghost:hover { background: var(--accent2); border-color: var(--accent2); color: #FFFFFF; }
.btn-teal { background: var(--accent2); border-color: var(--accent2); }
.btn-teal:hover { background: var(--accent); border-color: var(--accent); }

/* ============ 6. ЗАГОЛОВКИ СЕКЦИЙ ============ */
.sec-title {
    position: relative;
    padding-left: 22px;
    text-transform: uppercase;
    font-size: 1.85rem;
    letter-spacing: 0.01em;
    margin-bottom: calc(var(--grid-step) * 4);
}
.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.12em;
    width: 4px;
    height: 2.3em;
    background: var(--accent);
}
.sec-even .sec-title::before { background: var(--accent2); }
.entry-content h2 {
    position: relative;
    padding-left: 20px;
    margin-top: 1.8rem;
}
.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.12em;
    width: 4px;
    height: 2.3em;
    background: var(--accent);
}
.entry-content h3 { margin-top: 1.6rem; }

/* ============ 7. ГЛАВНАЯ: СЕКЦИИ ============ */
.front-section { padding: calc(var(--grid-step) * 10) 0; }
.front-section.sec-alt { background: var(--bg-alt); }

/* 7.1 Hero */
.fs-hero {
    background: var(--head-bg);
    color: #FFFFFF;
    padding: calc(var(--grid-step) * 12) 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: calc(var(--grid-step) * 6);
    align-items: center;
}
.hero-kicker {
    font-family: var(--font-head);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent2);
    margin-bottom: calc(var(--grid-step) * 2);
}
.fs-hero h1 { color: #FFFFFF; margin-bottom: calc(var(--grid-step) * 3); text-transform: uppercase; }
.hero-sub { color: #AFBDD0; font-size: 1.05rem; margin-bottom: calc(var(--grid-step) * 4); }
.hero-copy { min-width: 0; }
.hero-art { min-width: 0; }
.hero-art svg { display: block; width: 100%; height: auto; }

/* 7.2 Статистика */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat-cell {
    padding: 0 calc(var(--grid-step) * 3);
    border-left: 1px solid var(--line);
    min-width: 0;
}
.stat-cell:first-child { border-left: none; padding-left: 0; }
.stat-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.03em;
}
.stat-cap {
    margin-top: calc(var(--grid-step) * 1.5);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

/* 7.3 Сетка карточек-иконок */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: calc(var(--grid-step) * 3);
}
.icon-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: calc(var(--grid-step) * 4) calc(var(--grid-step) * 3.5);
    min-width: 0;
    transition: border-color .18s ease;
}
.icon-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--accent2);
    opacity: 0;
    transition: opacity .18s ease;
}
.icon-card:hover { border-color: var(--accent); }
.icon-card:hover::before { opacity: 1; }
.icon-card svg { display: block; width: 44px; height: 44px; margin-bottom: calc(var(--grid-step) * 2.5); }
.icon-card h3 { font-size: 1.05rem; text-transform: uppercase; margin-bottom: 0.5em; }
.icon-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* 7.4 Цитата */
.fs-quote {
    background: var(--head-bg);
    color: #FFFFFF;
    padding: calc(var(--grid-step) * 9) calc(var(--grid-step) * 6);
    border-left: 4px solid var(--accent2);
    border-radius: 2px;
}
.fs-quote .quote-text {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.9rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 0 0 calc(var(--grid-step) * 3);
}
.fs-quote .quote-author {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #8FA0B6;
    margin: 0;
}

/* 7.5 Последние записи на главной */
.front-latest .cards-grid { margin-bottom: calc(var(--grid-step) * 4); }
.latest-more { text-align: left; }

/* ============ 8. КАРТОЧКИ ЗАПИСЕЙ ============ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(var(--grid-step) * 3);
}
.cards-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(var(--grid-step) * 3);
}
.layout-with-sidebar .cards-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    min-width: 0;
    transition: border-color .18s ease;
}
.card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--accent2);
    opacity: 0;
    transition: opacity .18s ease;
    z-index: 2;
}
.card:hover { border-color: var(--accent); }
.card:hover::before { opacity: 1; }

.card-thumb { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0;
}
.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, rgba(47, 111, 237, .12) 0 1px, transparent 1px 10px);
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: calc(var(--grid-step) * 3);
    min-width: 0;
}
.card-meta {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: calc(var(--grid-step) * 1.5);
}
.card-title {
    font-size: 1.15rem;
    line-height: 1.25;
    margin: 0 0 calc(var(--grid-step) * 1.5);
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { font-size: 0.93rem; color: #46566E; margin-bottom: calc(var(--grid-step) * 2.5); }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
}
.card-more:hover { border-bottom-color: var(--accent2); }

/* ============ 9. КОНТЕНТ, ХЛЕБНЫЕ КРОШКИ ============ */
.breadcrumbs {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: calc(var(--grid-step) * 4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 8px; color: var(--accent2); }

.page-head { margin-bottom: calc(var(--grid-step) * 5); }
.page-head h1 { font-size: 2.6rem; text-transform: uppercase; margin-bottom: 0; }
.page-head .entry-meta {
    margin-top: calc(var(--grid-step) * 2);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.accent-plate {
    background-color: var(--accent2);
    background-image: repeating-linear-gradient(45deg, var(--accent2-dark) 0 1px, transparent 1px 11px);
    color: var(--head-bg);
    padding: calc(var(--grid-step) * 5) calc(var(--grid-step) * 5);
    border-radius: 2px;
    margin-bottom: calc(var(--grid-step) * 5);
}
.accent-plate h1 { color: var(--head-bg); margin-bottom: 0.3em; }
.accent-plate p { margin: 0; color: #0B2F2C; font-size: 0.98rem; }

.entry-thumb { margin-bottom: calc(var(--grid-step) * 4); }
.entry-thumb img { display: block; width: 100%; border-radius: 2px; }
.entry-content { font-size: 1.02rem; }
.entry-content img { border-radius: 2px; }
.entry-content ul li, .entry-content ol li { margin-bottom: 0.4em; }

.post-tags {
    margin-top: calc(var(--grid-step) * 4);
    padding-top: calc(var(--grid-step) * 3);
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
}

/* ============ 10. САЙДБАР ============ */
.sidebar {
    background: var(--side-bg);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: calc(var(--grid-step) * 4) calc(var(--grid-step) * 3.5);
    min-width: 0;
    color: var(--ink);
}
.sidebar .widget + .widget { margin-top: calc(var(--grid-step) * 5); }
.sidebar .widget-title {
    position: relative;
    padding-left: 16px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: calc(var(--grid-step) * 2.5);
    color: var(--ink);
}
.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0; top: 0.15em;
    width: 3px; height: 1.2em;
    background: var(--accent);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 8px 0; border-bottom: 1px solid var(--bg-alt); }
.sidebar li:last-child { border-bottom: none; }
.sidebar a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.sidebar a:hover { color: var(--accent); text-decoration: underline; }
.sidebar .post-date { display: block; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.06em; }
.sidebar p { color: #46566E; font-size: 0.93rem; }

/* ============ 11. ПОИСК ============ */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 14px;
}
.search-form input[type="search"]:focus { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ============ 12. ПАГИНАЦИЯ ============ */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: calc(var(--grid-step) * 6);
}
.pagination .page-numbers {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    padding: 10px 16px;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.pagination a.page-numbers:hover { background: var(--accent2); border-color: var(--accent2); color: #FFFFFF; }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* ============ 13. КОММЕНТАРИИ ============ */
.comments-area {
    margin-top: calc(var(--grid-step) * 7);
    padding-top: calc(var(--grid-step) * 5);
    border-top: 1px solid var(--line);
}
.comments-area h2, .comments-area h3 { font-size: 1.4rem; text-transform: uppercase; }
.comment-list { list-style: none; margin: 0 0 calc(var(--grid-step) * 5); padding: 0; }
.comment-list ul.children { list-style: none; padding-left: calc(var(--grid-step) * 4); }
.comment-body {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: calc(var(--grid-step) * 3);
    margin-bottom: calc(var(--grid-step) * 2);
}
.comment-author-name { font-family: var(--font-head); font-weight: 700; }
.comment-date { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 12px 14px;
    color: var(--ink);
}
.comment-form label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.comment-form p { margin-bottom: 1rem; }

/* ============ 14. 404 ============ */
.error-box { text-align: left; }
.error-box .error-code {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 6rem;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.05em;
}
.error-actions { margin-top: calc(var(--grid-step) * 4); }

/* ============ 15. ПОДВАЛ ============ */
.site-foot {
    background: var(--foot-bg);
    color: #C3CEDD;
    padding: calc(var(--grid-step) * 9) 0 calc(var(--grid-step) * 4);
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(var(--grid-step) * 5);
}
.foot-col { min-width: 0; }
.site-foot .widget-title {
    position: relative;
    padding-left: 16px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FFFFFF;
    margin-bottom: calc(var(--grid-step) * 2.5);
}
.site-foot .widget-title::before {
    content: "";
    position: absolute;
    left: 0; top: 0.15em;
    width: 3px; height: 1.2em;
    background: var(--accent2);
}
.site-foot p, .site-foot li { color: #C3CEDD; font-size: 0.92rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.site-foot li:last-child { border-bottom: none; }
.site-foot a { color: #E2E9F2; text-decoration: none; }
.site-foot a:hover { color: var(--accent2); text-decoration: underline; }
.site-foot .post-date { display: block; font-size: 0.75rem; color: #8B9AAF; }
.foot-bottom {
    margin-top: calc(var(--grid-step) * 7);
    padding-top: calc(var(--grid-step) * 3);
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 0.8rem;
    color: #8B9AAF;
    letter-spacing: 0.04em;
}

/* ============ 16. COOKIE-БАННЕР ============ */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--grid-step) * 3);
    flex-wrap: wrap;
    background: var(--head-bg);
    color: #DDE5EF;
    border-top: 3px solid var(--accent2);
    padding: calc(var(--grid-step) * 2.5) calc(var(--grid-step) * 4);
    font-size: 0.88rem;
}
.cookie-banner p { margin: 0; min-width: 0; }
.cookie-banner a { color: var(--accent2); }

/* ============ 17. АДАПТИВ ============ */
@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .page-head h1 { font-size: 2rem; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-art { order: -1; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: calc(var(--grid-step) * 5); }
    .layout-single > .content-area { width: 100%; }
    .fs-wrap { width: 92%; }
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-toggle { display: inline-block; order: 3; margin-left: auto; }
    .main-nav { flex: 1 0 100%; order: 4; }
    .main-nav[hidden] { display: none !important; }
    .main-nav ul { flex-direction: column; gap: 0; margin-top: calc(var(--grid-step) * 2); }
    .main-nav li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
    .main-nav a { display: block; padding: 12px 0; border-bottom: none; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.5rem; }
    .sec-title { font-size: 1.35rem; }
    .front-section { padding: calc(var(--grid-step) * 6) 0; }
    .fs-hero { padding: calc(var(--grid-step) * 7) 0; }
    .site-main { padding: calc(var(--grid-step) * 4) 0 calc(var(--grid-step) * 6); }
    .cards-grid, .cards-list { grid-template-columns: minmax(0, 1fr); }
    .icon-grid { grid-template-columns: minmax(0, 1fr); }
    .foot-cols { grid-template-columns: minmax(0, 1fr); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--grid-step) * 3); }
    .stat-cell { border-left: none; padding-left: 0; }
    .stat-num { font-size: 2.2rem; }
    .fs-quote { padding: calc(var(--grid-step) * 4) calc(var(--grid-step) * 3); }
    .fs-quote .quote-text { font-size: 1.35rem; }
    .accent-plate { padding: calc(var(--grid-step) * 3) calc(var(--grid-step) * 2.5); }
    .error-box .error-code { font-size: 4rem; }
    .cookie-banner { padding: calc(var(--grid-step) * 2) calc(var(--grid-step) * 2.5); }
    body::after { width: 220px; height: 190px; }
}
