/*
Theme Name: dds_eu-res.ru
Theme URI: https://eu-res.ru/
Author: Андрей Белов
Description: Тёмная тема в швейцарском стиле для информационного портала о методах диагностики.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: eures
*/

:root {
    --bg: #121417;
    --bg-alt: #1A1D21;
    --bg-head: #0E1013;
    --bg-foot: #0A0C0E;
    --bg-side: #16191D;
    --text: #E8EAED;
    --accent: #00C9B7;
    --accent-2: #7B8CDE;
    --muted: #8A9199;
    --line: #2A2F35;
    --dot: #1E2227;
    --font-head: "Montserrat", "Futura", "Century Gothic", "Trebuchet MS", system-ui, sans-serif;
    --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
}

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

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(var(--dot) 1px, transparent 1px),
        radial-gradient(var(--dot) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
    background-attachment: fixed;
}

body::after {
    content: "";
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 320px;
    height: 320px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%2300C9B7' stroke-width='3'%3E%3Cpath d='M46 14h22v26H46z'/%3E%3Cpath d='M57 40v22'/%3E%3Ccircle cx='57' cy='72' r='10'/%3E%3Cpath d='M30 96h60'/%3E%3Cpath d='M38 96c0-14 8-22 19-24'/%3E%3Cpath d='M86 30c14 10 16 34 2 46'/%3E%3Cpath d='M30 104h60v6H30z'/%3E%3C/svg%3E");
}

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

.site-main { position: relative; z-index: 1; padding-bottom: 4rem; }

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

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

.entry-content a,
.widget a,
.crumbs a,
.comment-text a {
    text-decoration: underline;
    text-decoration-color: rgba(0, 201, 183, 0.3);
    text-underline-offset: 3px;
}

.entry-content a:hover,
.widget a:hover,
.crumbs a:hover,
.comment-text a:hover {
    text-decoration-color: rgba(0, 201, 183, 1);
    color: #2FE3D2;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--text);
    line-height: 1.22;
    letter-spacing: -0.01em;
    margin: 2rem 0 1rem;
}

h1 { font-size: 3.2rem; margin-top: 0; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.18rem; }

p { margin: 0 0 1.1rem; }

.entry-content h2:not(.section-title)::before,
.entry-content h3::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 0.6rem;
    vertical-align: baseline;
}

.section-title {
    font-size: 1.9rem;
    border-left: 2px solid var(--accent);
    padding-left: 1.1rem;
    margin: 0 0 1.4rem;
}

.section-kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

.lead { font-size: 1.1rem; color: #C6CBD1; }
.muted { color: var(--muted); }

/* --- кнопки --- */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.78rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #0B1113;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(0, 201, 183, 0.35);
}

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

.btn-outline:hover {
    background: rgba(0, 201, 183, 0.08);
    box-shadow: 0 0 18px rgba(0, 201, 183, 0.25);
}

/* --- верхняя полоса, шапка --- */
.topline {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.site-head {
    background: rgba(14, 16, 19, 0.92);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 3;
}

.head-inner {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 1.2rem 0;
    flex-wrap: wrap;
}

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

.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo { display: block; max-height: 56px; width: auto; }

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.brand-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted);
    margin-top: 0.25rem;
}

.nav-toggle {
    display: none;
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 0.55rem 1rem;
    cursor: pointer;
}

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

.main-nav a {
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--text);
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
}

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

/* --- хлебные крошки --- */
.crumbs-wrap { padding: 1.3rem 0 0; position: relative; z-index: 1; }

.crumbs {
    font-size: 0.85rem;
    color: var(--muted);
}

.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--accent); margin: 0 0.35rem; }

/* --- раскладки --- */
.wrap { padding-top: 2.2rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    align-items: start;
}

.layout-single { display: block; }

.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

/* --- сайдбар и виджеты --- */
.sidebar {
    min-width: 0;
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.6rem 1.4rem;
}

.sidebar .widget { margin-bottom: 1.8rem; }
.sidebar .widget:last-child { margin-bottom: 0; }

.widget-title {
    font-size: 1.05rem;
    margin: 0 0 1rem;
    padding-left: 0.8rem;
    border-left: 2px solid var(--accent);
    color: var(--text);
}

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li { color: #C6CBD1; }

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

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    padding: 0.55rem 0 0.55rem 0.9rem;
    border-bottom: 1px dashed rgba(42, 47, 53, 0.9);
    position: relative;
    font-size: 0.95rem;
}

.widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.12rem;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}

.widget li:last-child { border-bottom: none; }
.widget .post-date,
.widget .rss-date { color: var(--muted); font-size: 0.82rem; }

.widget select {
    width: 100%;
    padding: 0.5rem;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 8px;
}

/* --- карточки записей --- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 201, 183, 0.4);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card-thumb { display: block; overflow: hidden; }

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-thumb-empty {
    display: block;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(rgba(0, 201, 183, 0.18) 1px, transparent 1px) 0 0 / 14px 14px,
        linear-gradient(135deg, #171B20, #10141A);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.3rem 1.4rem;
    min-width: 0;
}

.card-title {
    font-size: 1.12rem;
    margin: 0.7rem 0 0.6rem;
}

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

.card-excerpt { color: #B7BDC4; font-size: 0.94rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-foot {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-foot .post-date { color: var(--muted); font-size: 0.82rem; }

.card-more {
    font-family: var(--font-head);
    font-size: 0.88rem;
    color: var(--accent);
    border-bottom: 1px solid rgba(0, 201, 183, 0.3);
}

.card-more:hover { border-bottom-color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.chip {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(0, 201, 183, 0.55);
    border-radius: 4px;
    color: var(--accent);
    background: transparent;
    transition: background .18s ease, color .18s ease;
}

.chip:hover { background: var(--accent); color: #0B1113; }

/* --- пагинация --- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.6rem 0 0;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font-head);
    font-size: 0.92rem;
    background: var(--bg-alt);
}

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

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

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* --- главная --- */
.front { padding-top: 2.4rem; }

.front-inner { width: 85%; margin-left: auto; margin-right: auto; }

.front-section { margin-bottom: 3.2rem; }

.divider {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 0 0 3.2rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-image: repeating-linear-gradient(90deg, rgba(0, 201, 183, 0.35) 0 6px, transparent 6px 14px);
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.4rem;
    align-items: center;
    padding: 3.2rem 2.4rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background:
        radial-gradient(rgba(0, 201, 183, 0.06) 1px, transparent 1px) 0 0 / 18px 18px,
        linear-gradient(135deg, #0E1013 0%, #1A1D21 100%);
}

.hero h1 { font-size: 3.2rem; margin-bottom: 1rem; }
.hero p { color: var(--muted); font-size: 1.08rem; max-width: 46ch; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.hero-media { min-width: 0; }
.hero-media img { display: block; width: 100%; height: auto; }

/* Шаги */
.fs-steps {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 2.6rem 2.2rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
    position: relative;
    margin-top: 1.8rem;
}

.steps::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 22px;
    height: 1px;
    background-image: repeating-linear-gradient(90deg, rgba(0, 201, 183, 0.4) 0 5px, transparent 5px 12px);
}

.step { position: relative; min-width: 0; }

.step-num {
    display: inline-block;
    position: relative;
    font-family: var(--font-mono);
    font-size: 1.6rem;
    color: var(--accent);
    background: var(--bg-alt);
    padding-right: 0.7rem;
    line-height: 1.6;
}

.step h3 { font-size: 1.08rem; margin: 0.5rem 0 0.45rem; }
.step p { font-size: 0.93rem; color: var(--muted); margin: 0; }

/* Статистика */
.fs-stats {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 2.6rem 2.2rem;
}

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

.stat {
    min-width: 0;
    padding: 0 1.2rem;
    border-left: 1px solid var(--line);
    text-align: center;
}

.stat:first-child { border-left: none; }

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}

.stat-label {
    display: block;
    font-size: 0.86rem;
    color: var(--muted);
    margin-top: 0.4rem;
}

.stats-note { color: #B7BDC4; margin: 0; font-size: 0.95rem; }

/* Рубрикатор */
.fs-topics {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 2.6rem 2.2rem;
}

.topics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 1.8rem;
}

.topic {
    display: block;
    min-width: 0;
    padding: 1.4rem 1.3rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(18, 20, 23, 0.6);
    color: var(--text);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.topic:hover {
    border-color: rgba(0, 201, 183, 0.5);
    box-shadow: 0 0 20px rgba(0, 201, 183, 0.18);
    transform: translateY(-2px);
}

.topic svg { display: block; margin-bottom: 0.9rem; }

.topic-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.topic-desc { display: block; font-size: 0.88rem; color: var(--muted); }

/* Последние записи на главной */
.fs-latest { padding: 0; }
.fs-latest .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.fs-latest .cards { margin-top: 1.6rem; }

/* --- записи и страницы --- */
.entry-head { margin-bottom: 1.6rem; }
.entry-title { font-size: 2.5rem; margin: 0.8rem 0 0.8rem; }
.entry-meta { color: var(--muted); font-size: 0.88rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.entry-thumb { margin: 0 0 1.8rem; }
.entry-thumb img { display: block; width: 100%; border-radius: 10px; }

.entry-content { font-size: 1.02rem; }
.entry-content img { border-radius: 8px; }

.entry-content ul,
.entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: 0.5rem; }

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.6rem 1.8rem;
    background: linear-gradient(135deg, #1A1D21, #121417);
    border-left: 3px solid var(--accent);
    color: #D3D8DE;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid var(--line);
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--line);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

.entry-content th { background: var(--bg-alt); font-family: var(--font-head); }

.entry-content pre {
    overflow-x: auto;
    background: #0E1013;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
}

.entry-content code { font-family: var(--font-mono); font-size: 0.92em; }

.entry-tags { margin-top: 2rem; }

.entry-tags a {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.22rem 0.6rem;
    border: 1px solid rgba(123, 140, 222, 0.55);
    border-radius: 4px;
    color: var(--accent-2);
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}

.entry-tags a:hover { background: var(--accent-2); color: #0B1113; }

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

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-top: 2.4rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
    font-size: 0.93rem;
}

/* --- комментарии --- */
.comments {
    margin-top: 3rem;
    padding: 2rem 1.9rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.comments h2 { font-size: 1.35rem; margin-top: 0; }

.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }

.comment-item { margin-bottom: 1.4rem; }

.comment-body {
    padding: 1.1rem 1.2rem;
    background: rgba(18, 20, 23, 0.7);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.comment-head {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.comment-author { font-family: var(--font-head); font-weight: 600; }
.comment-meta { color: var(--muted); font-size: 0.82rem; }
.comment-text { color: #C6CBD1; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-reply { margin-top: 0.6rem; font-size: 0.88rem; }
.comment-hold { color: var(--muted); font-size: 0.88rem; }

.comment-form label {
    display: block;
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea,
.search-form input[type="search"] {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: #0E1013;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

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

.comment-form input:focus,
.comment-form textarea:focus,
.search-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 201, 183, 0.15);
}

.comment-form p { margin-bottom: 1rem; }

.comment-form .submit,
.search-form button {
    font-family: var(--font-head);
    font-size: 0.93rem;
    font-weight: 600;
    padding: 0.7rem 1.4rem;
    background: var(--accent);
    color: #0B1113;
    border: 1px solid var(--accent);
    border-radius: 8px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.comment-form .submit:hover,
.search-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(0, 201, 183, 0.35);
}

/* --- форма поиска --- */
.search-form {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
}

.search-form label { flex: 1; min-width: 0; }

/* --- архивы, поиск, 404 --- */
.page-head { margin-bottom: 2rem; }
.page-head h1 { font-size: 2.4rem; margin-bottom: 0.6rem; }
.page-head p { color: var(--muted); margin: 0; }

.empty-note {
    padding: 2rem 1.8rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
}

.error-404 {
    width: 85%;
    margin: 0 auto;
    padding: 2.8rem 2.4rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 10px;
    text-align: center;
}

.error-404 .code {
    font-family: var(--font-mono);
    font-size: 4.4rem;
    color: var(--accent);
    line-height: 1;
}

.error-404 .search-form { max-width: 480px; margin: 1.6rem auto 1.4rem; }

/* --- подвал --- */
.site-foot {
    background: var(--bg-foot);
    border-top: 1px solid var(--line);
    padding: 3rem 0 1.6rem;
    position: relative;
    z-index: 1;
}

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

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

.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li { color: #B0B6BD; font-size: 0.93rem; }

.site-foot .widget-title { color: var(--text); font-size: 1rem; }
.site-foot .widget a { color: #D2D7DD; }
.site-foot .widget a:hover { color: var(--accent); }
.site-foot .widget li { border-bottom-color: #1C2025; }
.site-foot .widget .post-date { color: var(--muted); }

.foot-bottom {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid #1C2025;
    color: var(--muted);
    font-size: 0.86rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
}

.foot-bottom a { color: var(--muted); }
.foot-bottom a:hover { color: var(--accent); }

/* --- cookie-баннер --- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    padding: 1rem 1.6rem;
    background: rgba(10, 12, 14, 0.96);
    border-top: 1px solid var(--line);
    color: #C6CBD1;
    font-size: 0.9rem;
}

.cookie-banner .btn { padding: 0.55rem 1.2rem; font-size: 0.88rem; }

/* --- адаптив --- */
@media (max-width: 960px) {
    h1, .hero h1 { font-size: 2.3rem; }
    .entry-title { font-size: 2rem; }

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

    .layout-single .content-area,
    .front-inner,
    .error-404 { width: 100%; }

    .hero { grid-template-columns: minmax(0, 1fr); padding: 2.4rem 1.8rem; }
    .hero-media { order: -1; }

    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps::before { display: none; }

    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 0; }
    .stat:nth-child(3) { border-left: none; }

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

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1, .hero h1 { font-size: 1.95rem; }
    h2, .section-title { font-size: 1.5rem; }
    .entry-title { font-size: 1.7rem; }

    .head-inner { padding: 1rem 0; gap: 1rem; }
    .nav-toggle { display: inline-block; margin-left: auto; }

    .main-nav {
        flex: 1 1 100%;
        border-top: 1px solid var(--line);
        padding-top: 0.9rem;
    }

    .main-nav ul { flex-direction: column; gap: 0.85rem; }

    .brand-desc { display: none; }

    .hero { padding: 1.9rem 1.4rem; }
    .hero-actions .btn { width: 100%; text-align: center; }

    .fs-steps,
    .fs-stats,
    .fs-topics { padding: 1.9rem 1.4rem; }

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

    .stats { grid-template-columns: minmax(0, 1fr); }
    .stat { border-left: none; padding: 0.6rem 0; }

    .divider { gap: 1.4rem; margin-bottom: 2.4rem; }
    .front-section { margin-bottom: 2.4rem; }

    .sidebar { padding: 1.3rem 1.1rem; }
    .comments { padding: 1.5rem 1.2rem; }
    .error-404 { padding: 2rem 1.3rem; }
    .cookie-banner { padding: 0.9rem 1.1rem; gap: 0.9rem; }
    .search-form { flex-wrap: wrap; }
    .search-form label { flex: 1 1 100%; }
}

@media (min-width: 601px) {
    .main-nav,
    .main-nav[hidden] { display: block !important; }
}
