/*
Theme Name: dds_telecom-tech.ru
Author: Алексей Кузнецов
Description: Тема образовательно-информационного портала о профессиях и обучении в сфере информационной безопасности, интернет-права и телеком-сетей.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: tlct
*/

/* ---------- Скрытие по атрибуту hidden (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Токены ---------- */
:root {
    --bg: #F4F8FC;
    --bg-alt: #E6EFF7;
    --head: #0B1F33;
    --foot: #081726;
    --aside: #EDF3F9;
    --ink: #13293D;
    --accent: #1E7FE0;
    --mint: #28C2A0;
    --muted: #5C7186;
    --line: #D7E3EE;
    --dash: #B9CBDB;
    --white: #FFFFFF;
    --f-head: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --f-body: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius-card: 14px;
    --radius-btn: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 420'%3E%3Cg opacity='0.06'%3E%3Cg fill='none' stroke='%230B1F33' stroke-width='10' stroke-linecap='round'%3E%3Cpath d='M420 120C300 120 260 200 300 260s-40 140-160 160'/%3E%3Cpath d='M420 150C320 150 290 215 325 270s-30 130-130 150'/%3E%3Cpath d='M420 180C340 180 320 230 350 280s-20 110-100 140'/%3E%3C/g%3E%3Cg fill='%230B1F33'%3E%3Ccircle cx='300' cy='260' r='22'/%3E%3Crect x='330' y='330' width='60' height='44' rx='8'/%3E%3Ccircle cx='345' cy='352' r='6' fill='%23F4F8FC'/%3E%3Ccircle cx='365' cy='352' r='6' fill='%23F4F8FC'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(rgba(215, 227, 238, .4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(215, 227, 238, .4) 1px, transparent 1px);
    background-size: 380px 380px, 24px 24px, 24px 24px;
    background-position: right -30px bottom -30px, 0 0, 0 0;
    background-repeat: no-repeat, repeat, repeat;
    background-attachment: fixed, scroll, scroll;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    color: var(--head);
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 1.6em 0 .6em;
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.1em; overflow-wrap: break-word; hyphens: auto; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 2px;
}

.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: -60px;
    z-index: 100;
    background: var(--accent);
    color: var(--white);
    padding: .6rem 1rem;
    border-radius: var(--radius-btn);
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Полоса сверху и шапка ---------- */
.fiber-bar { height: 3px; background: linear-gradient(90deg, #1E7FE0, #28C2A0); }

.masthead { background: var(--head); color: #F4F8FC; }
.masthead-inner { display: block; padding: 1.1rem 0 0; }

.brand {
    display: flex;
    align-items: flex-start;
    gap: .95rem;
    text-decoration: none;
    color: #F4F8FC;
    min-width: 0;
}
.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo, .brand-svg { display: block; width: 48px; height: 48px; object-fit: contain; }
.brand-text { min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.brand-name {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: .98rem;
    line-height: 1.35;
    color: #F4F8FC;
    overflow-wrap: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-desc {
    display: none;
    font-size: .82rem;
    line-height: 1.45;
    color: #9FB3C8;
}
@media (min-width: 600px) {
    .brand-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}
@media (min-width: 960px) {
    .brand-name { font-size: 1.08rem; -webkit-line-clamp: 2; max-width: 980px; }
    .brand-desc { max-width: 980px; }
}

.topnav {
    margin-top: 1rem;
    border-top: 1px solid rgba(185, 203, 219, .18);
    position: relative;
}
.topnav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin: .7rem 0;
    padding: .5rem .9rem;
    background: transparent;
    color: #F4F8FC;
    border: 1px solid rgba(244, 248, 252, .35);
    border-radius: var(--radius-btn);
    font: 600 .95rem var(--f-head);
    cursor: pointer;
}
.topnav-bars, .topnav-bars::before, .topnav-bars::after {
    display: block;
    width: 18px; height: 2px;
    background: var(--mint);
    position: relative;
}
.topnav-bars::before, .topnav-bars::after { content: ""; position: absolute; left: 0; }
.topnav-bars::before { top: -6px; }
.topnav-bars::after { top: 6px; }

.topnav-list {
    list-style: none;
    margin: 0;
    padding: 0 0 .9rem;
    display: none;
}
.topnav-list.is-open { display: block; }
.topnav-list a {
    display: block;
    padding: .55rem 0;
    color: #E6EFF7;
    text-decoration: none;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid rgba(185, 203, 219, .12);
}
.topnav-list a:hover, .topnav-list .current-menu-item > a { color: var(--mint); }

@media (min-width: 960px) {
    .topnav-toggle { display: none; }
    .topnav-list, .topnav-list.is-open {
        display: flex;
        flex-wrap: wrap;
        gap: .2rem 2.2rem;
        padding: 0;
    }
    .topnav-list a {
        padding: .95rem 0 .85rem;
        border-bottom: 0;
        position: relative;
    }
    .topnav-list a::after {
        content: "";
        position: absolute;
        left: 0; right: 0; bottom: 0;
        height: 3px;
        background: var(--mint);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .25s ease;
    }
    .topnav-list a:hover::after, .topnav-list .current-menu-item > a::after { transform: scaleX(1); }
}

/* ---------- Кнопки и ссылки ---------- */
.btn {
    display: inline-block;
    padding: .78rem 1.4rem;
    border-radius: var(--radius-btn);
    border: 1px solid transparent;
    font: 600 1rem/1.3 var(--f-head);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    white-space: normal;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(30, 127, 224, .2); }
.btn-fill { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-fill:hover { background: var(--head); border-color: var(--accent); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--head); border-color: var(--head); color: var(--white); }
.btn-ghost-light { background: transparent; border-color: var(--accent); color: #7CB9F5; }
.btn-ghost-light:hover { background: #13314F; color: var(--white); }
.btn-mint { background: var(--mint); border-color: var(--mint); color: var(--head); }
.btn-mint:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

.text-link, .card-more, .entry-content a, .breadcrumbs a, .sidebar .widget a, .archive-desc a, .comments-zone a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(var(--mint), var(--mint));
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .3s ease, color .2s ease;
}
.text-link:hover, .card-more:hover, .entry-content a:hover, .breadcrumbs a:hover, .sidebar .widget a:hover, .archive-desc a:hover, .comments-zone a:hover {
    background-size: 100% 2px;
}

/* ---------- Заголовки секций ---------- */
.sec-title {
    position: relative;
    margin: 0 0 1.3rem;
    padding: 0 0 .75rem 50px;
    background: linear-gradient(var(--accent), var(--accent)) no-repeat 50px 100% / 48px 4px;
}
.sec-title::before {
    content: "";
    position: absolute;
    left: 0; top: .62em;
    width: 36px; height: 1px;
    background: linear-gradient(90deg, rgba(40, 194, 160, 0), #28C2A0);
}
.sec-title::after {
    content: "";
    position: absolute;
    left: 34px; top: calc(.62em - 4px);
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(40, 194, 160, .18);
}
.sec-intro { max-width: 62ch; color: var(--muted); margin: 0 0 2.2rem 50px; }

/* ---------- Секции главной ---------- */
.front-section { padding: 80px 0; }
@media (min-width: 960px) { .front-section { padding: 96px 0; } }
.zone-main { background: transparent; }
.zone-alt { background: var(--bg-alt); }

/* Hero */
.hero {
    position: relative;
    background-color: var(--head);
    background-image: repeating-linear-gradient(0deg, rgba(30, 127, 224, .1) 0 1px, transparent 1px 22px);
    color: #F4F8FC;
    padding: 64px 0 76px;
}
.hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E7FE0, #28C2A0);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.hero-copy { min-width: 0; }
.hero-title { color: #F4F8FC; margin: 0 0 1.1rem; max-width: 16ch; }
.hero-lead { color: #C9D6E3; font-size: 1.12rem; max-width: 58ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-art { margin: 0; min-width: 0; justify-self: center; width: min(100%, 520px); }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 560 / 460; }
@media (min-width: 960px) {
    .hero { padding: 96px 0 108px; }
    .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; }
}

/* Сетка направлений */
.dir-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
@media (min-width: 600px) { .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .dir-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dir-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 1.9rem 1.6rem 1.7rem;
    overflow: hidden;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.dir-card::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: var(--mint);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.dir-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 12px 28px rgba(11, 31, 51, .1); }
.dir-card:hover::before { transform: scaleX(1); }
.dir-icon { display: block; margin-bottom: 1.1rem; }
.dir-card h3 { margin: 0 0 .6rem; font-size: 1.18rem; }
.dir-card p { color: var(--muted); font-size: .98rem; flex: 1; }
.dir-card .text-link { align-self: flex-start; font-weight: 600; }

/* Разделитель-маршрут */
.route-line {
    position: relative;
    width: min(92%, 1240px);
    height: 16px;
    margin: -40px auto 56px;
    background:
        radial-gradient(circle, #1E7FE0 0 3px, transparent 3.5px) 0 50% / 64px 16px repeat-x,
        repeating-linear-gradient(90deg, #B9CBDB 0 6px, transparent 6px 12px) 0 50% / 100% 1px no-repeat;
}
.route-line::after {
    content: "";
    position: absolute;
    left: 50%; top: -14px;
    width: 2px; height: 44px;
    background: rgba(40, 194, 160, .35);
    transform: rotate(32deg);
    box-shadow: 0 0 0 5px var(--bg);
}
@media (min-width: 960px) { .route-line { width: min(85%, 1240px); margin-top: -48px; } }

/* Последние записи */
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.latest-more { margin: 2.4rem 0 0; }
.empty-note { color: var(--muted); }

/* Цифры */
.facts-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 0; }
@media (min-width: 960px) { .facts-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact {
    min-width: 0;
    position: relative;
    padding: .4rem 1.2rem .4rem 2rem;
    border-left: 1px dashed var(--dash);
}
.facts-row .fact:nth-child(odd) { border-left: 0; }
@media (min-width: 960px) {
    .facts-row .fact:nth-child(odd) { border-left: 1px dashed var(--dash); }
    .facts-row .fact:first-child { border-left: 0; }
}
.fact::before {
    content: "";
    position: absolute;
    left: .9rem; top: 1.45rem;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--mint);
}
.fact-num {
    display: block;
    font-family: var(--f-head);
    font-weight: 800;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--head);
}
.fact-cap { display: block; margin-top: .35rem; color: var(--muted); font-size: .98rem; line-height: 1.45; }

/* CTA */
.cta {
    position: relative;
    overflow: hidden;
    background-color: var(--head);
    background-image: radial-gradient(rgba(30, 127, 224, .12) 1.6px, transparent 2px);
    background-size: 18px 18px;
    color: #F4F8FC;
}
.cta-panel { position: relative; display: block; padding: 0 1rem; }
.cta-copy { position: relative; z-index: 1; max-width: 640px; min-width: 0; }
.cta-title { color: #F4F8FC; margin: 0 0 1rem; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.cta-text { color: #C9D6E3; margin-bottom: 1.8rem; }
.cta-fiber {
    position: absolute;
    right: -12%; top: 50%;
    width: 55%; height: 220px;
    transform: translateY(-50%);
    opacity: .35;
    pointer-events: none;
}
@media (min-width: 960px) {
    .cta-panel { padding: 0 1.5rem; }
    .cta-fiber { opacity: 1; right: -20%; width: 52%; }
}

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 2rem 0 4.5rem; }

.breadcrumbs {
    font-size: .92rem;
    color: var(--muted);
    margin: 0 0 1.8rem;
    overflow-wrap: break-word;
}
.breadcrumbs .sep { color: var(--dash); margin: 0 .25rem; }

.layout-single { display: block; }
.layout-single .content-area { width: 100%; margin-left: auto; margin-right: auto; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.content-area, .sidebar { min-width: 0; }
@media (min-width: 960px) {
    .layout-single .content-area { width: 85%; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; }
}

.page-title { margin: 0 0 .9rem; }
.page-head { margin-bottom: 2rem; }
.entry-head { margin-bottom: 1.6rem; }

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem .5rem;
    font-size: .88rem;
    color: var(--muted);
}
.tag-chip {
    display: inline-block;
    padding: .18rem .6rem;
    border-radius: 6px;
    background: var(--bg-alt);
    color: var(--accent);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.tag-chip:hover { background: var(--accent); color: var(--white); }

.entry-cover { margin: 0 0 2rem; }
.entry-cover img { display: block; width: 100%; height: auto; border-radius: var(--radius-card); }

.entry-content { overflow-wrap: break-word; hyphens: auto; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--mint); }
.entry-content img { display: block; border-radius: 10px; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: .88rem; color: var(--muted); margin-top: .5rem; }
.entry-content pre {
    overflow-x: auto;
    background: var(--head);
    color: #E6EFF7;
    padding: 1.1rem 1.3rem;
    border-radius: 10px;
    font-size: .92rem;
}
.entry-content code { font-size: .92em; background: var(--bg-alt); padding: .1em .35em; border-radius: 4px; }
.entry-content pre code { background: none; padding: 0; }

blockquote {
    margin: 1.8em 0;
    padding: 1.2rem 1.5rem;
    background: var(--aside);
    border-left: 4px solid var(--mint);
    border-radius: 0 10px 10px 0;
}
blockquote p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 1.6em 0; border: 1px solid var(--dash); font-size: .97rem; }
th, td { border: 1px solid var(--dash); padding: .6rem .8rem; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-family: var(--f-head); color: var(--head); }
.entry-content .wp-block-table { overflow-x: auto; }

.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px dashed var(--dash); }
.page-links { margin-top: 1.5rem; font-weight: 600; }

/* ---------- Карточки ---------- */
.card-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
@media (min-width: 600px) { .card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: 0 8px 24px rgba(11, 31, 51, .08);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    z-index: 2;
    background: var(--mint);
    opacity: 0;
    transition: opacity .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(11, 31, 51, .14); border-color: var(--accent); }
.card:hover::before { opacity: 1; }

.card-thumb { position: relative; overflow: hidden; background: var(--bg-alt); }
.card-thumb::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(11, 31, 51, .35), rgba(11, 31, 51, 0));
    pointer-events: none;
}
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }

.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.3rem 1.4rem 1.5rem; min-width: 0; }
.card-pin {
    align-self: flex-start;
    margin-bottom: .6rem;
    padding: .15rem .55rem;
    border-radius: 6px;
    background: var(--mint);
    color: var(--head);
    font: 700 .76rem/1.5 var(--f-head);
}
.card-title { margin: .7rem 0 .6rem; font-size: 1.2rem; line-height: 1.3; }
.card-title a { color: var(--head); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: #3A5068; font-size: .97rem; line-height: 1.6; margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { margin-top: auto; align-self: flex-start; font-weight: 600; font-family: var(--f-head); }

/* ---------- Сайдбар и виджеты ---------- */
.sidebar {
    align-self: start;
    background: var(--aside);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 1.6rem 1.5rem;
    color: var(--ink);
}
.sidebar .widget { margin-bottom: 2rem; color: var(--ink); }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    margin: 0 0 1rem;
    font-size: 1.08rem;
    color: var(--head);
    padding-left: 18px;
    position: relative;
}
.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0; top: .45em;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--mint);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dashed var(--dash); line-height: 1.45; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar .widget a { color: #16508F; }
.sidebar .post-date, .sidebar .rss-date { display: block; font-size: .82rem; color: var(--muted); }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.6rem; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: .5rem .85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    background: var(--white);
    color: var(--ink);
    font: 600 .95rem var(--f-head);
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pager a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--white); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: .5rem .2rem; }

/* ---------- Поиск ---------- */
.search-form { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.search-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: .75rem 1rem;
    border: 1px solid var(--dash);
    border-radius: var(--radius-btn);
    background: var(--white);
    color: var(--ink);
    font: inherit;
}
.search-field:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(30, 127, 224, .15); }

/* ---------- 404 ---------- */
.not-found { text-align: start; }
.nf-code {
    margin: 0;
    font: 800 clamp(5rem, 14vw, 9rem)/1 var(--f-head);
    color: transparent;
    -webkit-text-stroke: 2px var(--accent);
    letter-spacing: -0.04em;
}
.nf-home { margin-top: 1.6rem; }

/* ---------- Комментарии ---------- */
.comments-zone { margin-top: 3.2rem; padding-top: 2rem; border-top: 1px dashed var(--dash); }
.comments-title { margin-top: 0; }
.reply-list, .reply-list .children { list-style: none; margin: 0; padding: 0; }
.reply-list .children { padding-left: 1.6rem; border-left: 2px solid var(--line); margin-top: 1rem; }
.reply-item { margin-bottom: 1.2rem; }
.reply-body {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
}
.reply-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .7rem; }
.reply-head img { display: block; border-radius: 50%; }
.reply-who { display: flex; flex-direction: column; line-height: 1.3; }
.reply-who time { font-size: .82rem; color: var(--muted); }
.reply-wait { color: var(--muted); font-style: italic; }
.reply-link { font-size: .9rem; font-weight: 600; }

.comment-respond { margin-top: 2rem; }
.comment-form label { display: block; font-weight: 600; font-size: .92rem; 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;
    border: 1px solid var(--dash);
    border-radius: var(--radius-btn);
    background: var(--white);
    color: var(--ink);
    font: inherit;
}
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form .submit {
    padding: .78rem 1.4rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius-btn);
    background: var(--accent);
    color: var(--white);
    font: 600 1rem var(--f-head);
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}
.comment-form .submit:hover { background: var(--head); transform: translateY(-2px); }
.comment-notes, .logged-in-as { font-size: .9rem; color: var(--muted); }

/* ---------- Подвал ---------- */
.basement {
    background: var(--foot);
    color: #C9D6E3;
    padding: 64px 0 28px;
    font-size: .97rem;
}
.basement-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
@media (min-width: 600px) { .basement-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .basement-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.basement-col { min-width: 0; }
.basement .widget { color: #C9D6E3; margin-bottom: 1.6rem; }
.basement .widget-title { color: #FFFFFF; font-size: 1.05rem; margin: 0 0 1rem; }
.basement .widget p, .basement .textwidget { color: #C9D6E3; }
.basement .widget a { color: #E6EFF7; text-decoration: none; }
.basement .widget a:hover { color: var(--mint); }
.basement ul { list-style: none; margin: 0; padding: 0; }
.basement li { padding: .32rem 0; }
.copyright {
    margin: 2.4rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(185, 203, 219, .16);
    font-size: .88rem;
    color: #8FA4B8;
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.4rem;
    max-width: 920px;
    margin-inline: auto;
    padding: 1.1rem 1.4rem;
    background: var(--head);
    color: #E6EFF7;
    border: 1px solid rgba(30, 127, 224, .45);
    border-radius: var(--radius-card);
    box-shadow: 0 14px 34px rgba(8, 23, 38, .35);
}
.cookie-text { margin: 0; flex: 1 1 320px; min-width: 0; font-size: .92rem; line-height: 1.5; color: #E6EFF7; }
.cookie-accept { flex: 0 0 auto; }

@media (max-width: 600px) {
    .sec-title { padding-left: 42px; background-position: 42px 100%; }
    .sec-title::before { width: 28px; }
    .sec-title::after { left: 26px; }
    .sec-intro { margin-left: 0; }
    .front-section { padding: 64px 0; }
    .fact { padding: .4rem .8rem .4rem 1.6rem; }
    .fact::before { left: .5rem; }
    .cta-panel { padding: 0 .4rem; }
    .cookie-banner { padding: 1rem 1.1rem; }
}
