/*
Theme Name: dds_freebacklinks.ru
Author: Дмитрий Вересков
Description: Тема «Лаборатория чистых ссылок» для образовательного портала об аудите ссылочного профиля и цифровой гигиене сайта.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: fblab
*/

:root {
    --bg: #F4F7FA;
    --bg-alt: #E8EEF4;
    --ink: #1A2B3C;
    --navy: #0B1D33;
    --teal: #00B8D4;
    --teal-dark: #00A6BF;
    --indigo: #3D5AFE;
    --muted: #6B7F94;
    --line: #D0DCE8;
    --steel: #B0C4D8;
    --radius-btn: 8px;
    --radius-card: 12px;
    --font-head: "Inter Tight", "Space Grotesk", "Segoe UI", Arial, sans-serif;
    --font-body: "Inter", "Manrope", "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    position: relative;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, rgba(11, 29, 51, 0.02) 0 1px, transparent 1px 14px);
}
body::before {
    content: "";
    position: fixed;
    top: -160px;
    right: -160px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: #00B8D4;
    opacity: 0.05;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}
body::after {
    content: "";
    position: fixed;
    left: 12px;
    bottom: 12px;
    width: 340px;
    height: 120px;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 120'%3E%3Cg fill='none' stroke='%230B1D33' stroke-width='10'%3E%3Crect x='10' y='40' width='90' height='40' rx='20'/%3E%3Crect x='80' y='40' width='90' height='40' rx='20'/%3E%3Crect x='150' y='40' width='90' height='40' rx='20'/%3E%3Crect x='220' y='40' width='90' height='40' rx='20'/%3E%3C/g%3E%3C/svg%3E") no-repeat left bottom / contain;
}
img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.2;
    margin: 1.4em 0 0.6em;
    letter-spacing: -0.01em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; position: relative; padding-left: 20px; }
h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
}
h3 { font-size: 1.3rem; }
a { color: var(--indigo); text-decoration: none; }
ul, ol { padding-left: 1.3em; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; border: 1px solid var(--line); }
th, td { border: 1px solid var(--line); padding: 0.6em 0.8em; text-align: left; }
th { background: var(--bg-alt); font-family: var(--font-head); }
blockquote {
    margin: 1.5em 0;
    padding: 1.2em 1.5em;
    border-left: 4px solid var(--teal);
    background: rgba(232, 238, 244, 0.85);
    border-radius: 0 8px 8px 0;
}
blockquote p:last-child { margin-bottom: 0; }
pre { overflow-x: auto; background: var(--navy); color: #E8EEF4; padding: 1em 1.2em; border-radius: 8px; }
code { font-size: 0.92em; }
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Анимированное подчёркивание ссылок */
.entry-content a,
.card-excerpt a,
.breadcrumbs a,
.widget a,
.card-more,
.comment-body a,
.archive-desc a,
.post-nav a {
    color: var(--indigo);
    background-image: linear-gradient(var(--teal), var(--teal));
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0 2px;
    padding-bottom: 1px;
    transition: background-size 0.3s ease, color 0.2s ease;
}
.entry-content a:hover,
.card-excerpt a:hover,
.breadcrumbs a:hover,
.widget a:hover,
.card-more:hover,
.comment-body a:hover,
.archive-desc a:hover,
.post-nav a:hover { background-size: 100% 2px; }

/* ---------- Контейнер ---------- */
.shell { width: min(92%, 1180px); margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.2;
    padding: 0.85em 1.5em;
    border-radius: var(--radius-btn);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 184, 212, 0.2); }
.btn-fill { background: var(--teal); color: #FFFFFF; border-color: var(--teal); }
.btn-fill:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #FFFFFF; }
.btn-line { background: transparent; color: #0093A9; border-color: var(--teal); }
.btn-line:hover { background: rgba(0, 184, 212, 0.1); color: #007F92; }
.btn-line-light { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.btn-line-light:hover { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; }

/* ---------- Шапка ---------- */
.status-strip { height: 3px; background: linear-gradient(90deg, #00B8D4, #3D5AFE); }
.site-header { background: var(--navy); color: #E8EEF4; }
.masthead {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
}
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-logo { display: block; width: 52px; height: 52px; object-fit: contain; }
.brand-text { flex: 1 1 auto; min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
    color: #FFFFFF;
}
.brand-name:hover { color: var(--teal); }
.brand-desc {
    margin: 4px 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--steel);
    display: none;
}
.nav-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #FFFFFF;
    border: 1.5px solid rgba(176, 196, 216, 0.5);
    border-radius: var(--radius-btn);
    padding: 0.5em 0.9em;
    font: 600 0.9rem var(--font-head);
    cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--teal);
    position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.navbar { border-top: 1px solid rgba(176, 196, 216, 0.14); }
.main-nav { display: none; }
.main-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 8px 0; }
.nav-list a {
    display: block;
    padding: 10px 0;
    color: #E8EEF4;
    font-family: var(--font-head);
    font-weight: 500;
    position: relative;
}
.nav-list a:hover,
.nav-list .current-menu-item > a { color: var(--teal); }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    font-size: 0.88rem;
    color: var(--muted);
    padding: 22px 0 6px;
}
.breadcrumbs .sep { color: var(--steel); margin: 0 4px; }
.breadcrumbs .current { color: var(--ink); }

/* ---------- Раскладки ---------- */
.page-wrap { padding-bottom: 80px; }
.layout-single { display: block; }
.layout-single .content-area { margin-left: auto; margin-right: auto; }
.layout-with-sidebar { display: block; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 28px; }
.page-title { margin: 0.4em 0 0.3em; font-size: 2rem; }
.page-lead, .archive-desc { color: var(--muted); max-width: 720px; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    margin-top: 40px;
    align-self: start;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 24px 22px;
    color: var(--ink);
}
.sidebar .widget { margin-bottom: 28px; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    margin: 0 0 14px;
    font-size: 1.1rem;
    color: var(--ink);
    border-left: 4px solid var(--teal);
    padding-left: 12px;
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--indigo); }
.sidebar .post-date { display: block; font-size: 0.8rem; color: var(--muted); }
.sidebar .textwidget { color: var(--ink); }

/* ---------- Карточки ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(11, 29, 51, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 184, 212, 0.15);
    border-color: var(--teal);
}
.card-thumb { overflow: hidden; background: var(--bg-alt); }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 20px 22px 22px;
}
.card-tags, .entry-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag-chip {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.3;
    padding: 4px 9px;
    border-radius: 4px;
    background: rgba(0, 184, 212, 0.1);
    color: #00B8D4;
    transition: background-color 0.2s ease;
}
.tag-chip:hover { background: rgba(0, 184, 212, 0.2); color: #0093A9; }
.card-title { margin: 0 0 6px; font-size: 1.18rem; line-height: 1.3; overflow-wrap: anywhere; }
.card-title a { color: var(--ink); transition: color 0.2s ease; }
.card-title a:hover { color: var(--indigo); }
.card-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; }
.card-excerpt { color: #3A4D60; font-size: 0.95rem; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt img, .card-excerpt figure, .card-excerpt iframe { display: none; }
.card-more { align-self: flex-start; margin-top: 8px; font-weight: 600; font-family: var(--font-head); }

/* ---------- Запись и страница ---------- */
.entry-head { margin-bottom: 20px; }
.entry-meta { color: var(--muted); font-size: 0.88rem; }
.entry-thumb { margin: 0 0 28px; }
.entry-thumb img { display: block; width: 100%; border-radius: var(--radius-card); }
.entry-content { overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { border-radius: 8px; }
.entry-content ul li::marker { color: var(--teal); }
.entry-tags { margin-top: 28px; }
.page-links { margin-top: 20px; font-weight: 600; }
.post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    margin: 40px 0;
    padding: 18px 0;
    border-top: 1px dashed var(--steel);
    border-bottom: 1px dashed var(--steel);
}
.post-nav > div { min-width: 0; max-width: 48%; }
.post-nav-next { text-align: right; margin-left: auto; }

/* ---------- Пагинация (type => plain) ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 44px;
}
.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 9px 13px;
    text-align: center;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.pager a.page-numbers:hover {
    transform: translateY(-2px);
    border-color: var(--teal);
    box-shadow: 0 6px 18px rgba(0, 184, 212, 0.2);
}
.pager .page-numbers.current { background: var(--indigo); border-color: var(--indigo); color: #FFFFFF; }
.pager .page-numbers.dots { background: none; border: 0; min-width: 0; }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: 8px; margin: 18px 0; max-width: 560px; }
.search-field {
    flex: 1;
    min-width: 0;
    padding: 0.8em 1em;
    font: inherit;
    color: var(--ink);
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
}
.search-field:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.empty-note { color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { text-align: left; padding-top: 20px; }
.notfound-code {
    margin: 0;
    font: 700 5.5rem/1 var(--font-head);
    color: transparent;
    -webkit-text-stroke: 2px var(--teal);
}

/* ---------- Комментарии ---------- */
.comments { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 14px;
}
.comment-meta { font-size: 0.85rem; color: var(--muted); }
.comment-author .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7em 0.9em;
    font: inherit;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    background: #FFFFFF;
}
.comment-form .submit {
    font: 600 0.98rem var(--font-head);
    padding: 0.85em 1.5em;
    border-radius: var(--radius-btn);
    border: 0;
    background: var(--teal);
    color: #FFFFFF;
    cursor: pointer;
}
.comment-form .submit:hover { background: var(--teal-dark); }

/* ---------- Главная: секции ---------- */
.front-section { position: relative; padding: 80px 0; overflow: hidden; }
.front-wrap { position: relative; z-index: 2; }
.front-section + .front-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(92%, 1180px);
    transform: translateX(-50%);
    border-top: 1px dashed var(--steel);
    z-index: 1;
}
.front-section + .front-section::after {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: var(--teal);
    z-index: 1;
}
.sec-title {
    font-size: 1.9rem;
    margin: 0 0 40px 12px;
    padding-left: 38px;
    border-left: 4px solid var(--teal);
}
.sec-title::before { left: 16px; }

/* Hero */
.fs-hero { background: var(--navy); color: #FFFFFF; padding: 110px 0 120px; }
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}
.fs-hero .shell { position: relative; z-index: 2; }
.fs-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 29, 51, 0.92) 0%, rgba(11, 29, 51, 0.7) 55%, rgba(11, 29, 51, 0.35) 100%);
    z-index: 1;
}
.hero-title, .hero-kicker { max-width: 820px; }
.hero-kicker {
    display: inline-block;
    margin: 0 0 18px;
    padding: 6px 12px;
    font: 600 0.8rem var(--font-head);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
    background: rgba(0, 184, 212, 0.1);
    border: 1px solid rgba(0, 184, 212, 0.35);
    border-radius: 4px;
}
.hero-title { color: #FFFFFF; font-size: 2.3rem; margin: 0 0 18px; line-height: 1.1; }
.hero-sub { color: var(--steel); font-size: 1.1rem; max-width: 620px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-shield {
    position: absolute;
    right: 4%;
    bottom: 24px;
    width: 150px;
    height: auto;
    opacity: 0.1;
    z-index: 2;
    pointer-events: none;
}

/* Статистика */
.fs-stats {
    background-color: var(--bg-alt);
    background-image:
        radial-gradient(rgba(0, 184, 212, 0.05) 2px, transparent 2px),
        linear-gradient(rgba(11, 29, 51, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 29, 51, 0.03) 1px, transparent 1px);
    background-size: 22px 22px, 28px 28px, 28px 28px;
}
.stats-row {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 30px;
}
.stat {
    min-width: 0;
    padding: 6px 18px;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.stat:nth-child(odd) { border-left: 0; }
.stat-num {
    font: 700 2.4rem/1 var(--font-head);
    color: var(--teal);
    letter-spacing: -0.02em;
}
.stat-cap { color: var(--muted); font-size: 0.95rem; line-height: 1.4; }

/* Последние записи */
.fs-latest {
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(11, 29, 51, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 29, 51, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
}
.latest-more { margin: 36px 0 0; }

/* Шаги */
.fs-steps {
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(11, 29, 51, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 29, 51, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
}
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    max-width: 820px;
}
.steps::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: var(--teal);
}
.step { position: relative; padding-left: 60px; margin-bottom: 40px; }
.step:last-child { margin-bottom: 0; }
.step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--teal);
    color: #FFFFFF;
    font: 700 0.95rem/32px var(--font-head);
    text-align: center;
    box-shadow: 0 0 0 5px var(--bg);
}
.step-title {
    position: relative;
    margin: 0 0 8px;
    padding-left: 18px;
    font-size: 1.4rem;
    line-height: 32px;
}
.step-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--indigo);
}
.step-text { color: var(--muted); margin: 0; padding-left: 18px; }

/* CTA */
.fs-cta {
    background-color: var(--navy);
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 16px);
    color: #FFFFFF;
    padding: 96px 0;
}
.cta-box {
    position: relative;
    padding: 2.4rem 2.2rem;
    text-align: center;
    border: 1px solid rgba(176, 196, 216, 0.18);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.03);
    background-image: radial-gradient(rgba(0, 184, 212, 0.05) 2px, transparent 2px);
    background-size: 20px 20px;
}
.cta-title { color: #FFFFFF; font-size: 1.8rem; margin: 0 auto 14px; padding-left: 0; max-width: 700px; }
.cta-title::before { display: none; }
.cta-sub { color: var(--steel); max-width: 620px; margin: 0 auto 28px; }
.cta-lens {
    position: absolute;
    top: 26px;
    left: 3%;
    width: 110px;
    height: 110px;
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
}
.cta-trace {
    position: absolute;
    right: 4%;
    bottom: 30px;
    width: 180px;
    border-top: 1px dashed var(--steel);
    opacity: 0.6;
    z-index: 1;
}
.cta-trace::after {
    content: "";
    position: absolute;
    right: -3px;
    top: -4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
}

/* ---------- Подвал ---------- */
.site-footer {
    background: var(--navy);
    background-image: radial-gradient(rgba(0, 184, 212, 0.05) 2px, transparent 2px);
    background-size: 22px 22px;
    color: #C8D6E4;
    padding: 64px 0 0;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #00B8D4, #3D5AFE) 1;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.footer-col { min-width: 0; }
.site-footer .widget { margin-bottom: 24px; color: #C8D6E4; }
.site-footer .widget-title {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin: 0 0 14px;
    padding-left: 12px;
    border-left: 4px solid var(--teal);
}
.site-footer .textwidget, .site-footer .textwidget p { color: #C8D6E4; }
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget li { padding: 6px 0; }
.site-footer .widget a { color: #7FE3F2; }
.site-footer .widget a:hover { color: #FFFFFF; }
.site-footer .post-date { color: var(--steel); font-size: 0.8rem; display: block; }
.footer-bottom {
    margin-top: 30px;
    padding: 20px 0 26px;
    border-top: 1px dashed rgba(176, 196, 216, 0.3);
    font-size: 0.86rem;
    color: var(--steel);
}
.footer-bottom p { margin: 0; }

/* ---------- Cookie ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding: 18px 20px;
    color: #E8EEF4;
    background: rgba(11, 29, 51, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 184, 212, 0.35);
    border-radius: var(--radius-card);
    box-shadow: 0 10px 30px rgba(11, 29, 51, 0.3);
}
.cookie-text { margin: 0; font-size: 0.9rem; line-height: 1.5; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- ≥600px ---------- */
@media (min-width: 600px) {
    .brand-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-title { font-size: 2.8rem; }
    .stat-num { font-size: 2.8rem; }
    .cookie-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        left: 50%;
        right: auto;
        width: min(92%, 900px);
        transform: translateX(-50%);
        padding: 18px 24px;
    }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- ≥960px ---------- */
@media (min-width: 960px) {
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2rem; }
    .page-title { font-size: 2.6rem; }
    .brand-logo { width: 60px; height: 60px; }
    .brand-name { font-size: 1.02rem; }
    .brand-text { max-width: 760px; }
    .nav-toggle { display: none; }
    .main-nav, .main-nav.is-open { display: block; }
    .nav-list { display: flex; flex-wrap: wrap; gap: 6px 34px; padding: 0; }
    .nav-list a { padding: 14px 0; }
    .nav-list a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 8px;
        height: 2px;
        width: 0;
        background: var(--teal);
        transition: width 0.3s ease;
    }
    .nav-list a:hover::after,
    .nav-list .current-menu-item > a::after { width: 100%; }

    .layout-single .content-area { width: 85%; }
    .layout-with-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
        column-gap: 6%;
        align-items: start;
    }
    .sidebar { margin-top: 0; }
    .front-wrap { width: 85%; margin-left: auto; margin-right: auto; }
    .cards-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-title { font-size: 3.2rem; }
    .fs-hero { padding: 140px 0 150px; }
    .hero-shield { width: 190px; }
    .stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .stat:nth-child(odd) { border-left: 1px solid var(--line); }
    .stat:first-child { border-left: 0; padding-left: 0; }
    .stat-num { font-size: 3.2rem; }
    .sec-title { font-size: 2.2rem; }
    .cta-box { padding: 3.2rem 3rem; }
    .cta-title { font-size: 2.4rem; }
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
}

/* ---------- Мобильные уточнения ---------- */
@media (max-width: 599px) {
    .front-section { padding: 60px 0; }
    .sec-title { font-size: 1.55rem; margin-left: 4px; margin-bottom: 28px; }
    .cta-box { padding: 1.8rem 1.4rem; }
    .cta-lens { width: 70px; height: 70px; }
    .hero-shield { width: 90px; }
    .search-form { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .post-nav > div { max-width: 100%; }
}
