/*
Theme Name: dds_abrikosov-sons.ru
Theme URI: https://abrikosov-sons.ru/
Author: Дмитрий Воронцов
Description: Тема информационного медицинского вестника: асимметричный минимализм, холодная фиолетовая палитра, лента новостей здравоохранения.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: abrvest
*/

:root {
    --bg: #F4F2F9;
    --bg-alt: #E9E4F0;
    --head-bg: #2C1E3F;
    --foot-bg: #1A1228;
    --side-bg: #FCFBFF;
    --ink: #1E1826;
    --accent: #B27BDF;
    --accent-2: #6D4C99;
    --muted: #8C83A3;
    --line: #D6CEE6;
    --line-soft: #E0D7EB;
    --sans: "Inter", "Manrope", "Helvetica Neue", Arial, sans-serif;
    --serif: "Lora", "Merriweather", Georgia, "Times New Roman", serif;
    --mono: "IBM Plex Mono", "Consolas", "Courier New", monospace;
}

/* --- скрытие через атрибут hidden --- */
.cookie-banner[hidden] { display: none !important; }
[hidden] { display: none !important; }

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(to right, rgba(30, 24, 38, 0.03) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(to bottom, rgba(30, 24, 38, 0.03) 0 1px, transparent 1px 40px);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.72;
    -webkit-text-size-adjust: 100%;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.16;
    color: var(--ink);
    margin: 0 0 0.6em;
}

p { margin: 0 0 1.05em; }

a { color: var(--accent-2); }

.entry a,
.card-excerpt a,
.widget-text a {
    color: var(--accent-2);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}
.entry a:hover,
.card-excerpt a:hover,
.widget-text a:hover {
    text-decoration-style: solid;
    color: var(--accent-2);
    background: rgba(178, 123, 223, 0.12);
}

/* --- кнопки --- */
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.94rem;
    letter-spacing: 0.02em;
    padding: 0.68em 1.5em;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent-2);
    text-decoration: none;
    cursor: pointer;
    border-radius: 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%);
    transition: background-color 0.15s linear, color 0.15s linear, transform 0.1s linear;
}
.btn:hover, .btn:focus {
    background: var(--accent);
    color: #FFFFFF;
    transform: translateY(2px);
    box-shadow: none;
}
.btn-solid {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
}
.btn-solid:hover, .btn-solid:focus {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #FFFFFF;
}
.btn-small { font-size: 0.85rem; padding: 0.5em 1.1em; }

/* --- медицинская полоса --- */
.spectrum { display: block; width: 100%; }
.spectrum span { display: block; width: 100%; }
.spectrum-1 { height: 2px; background: #D9C7EE; }
.spectrum-2 { height: 5px; background: var(--accent); }
.spectrum-3 { height: 3px; background: var(--accent-2); }
.spectrum-4 { height: 7px; background: #3A2757; }

/* --- шапка --- */
.site-top {
    background: var(--head-bg);
    color: #F1EAF9;
    padding: 1.6rem 0 1.2rem;
    position: static;
}
.top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.2rem;
}
.brand { flex: 1 1 320px; min-width: 0; }
.brand-link {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
}
.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo { display: block; max-height: 62px; width: auto; }
.brand-text { display: block; min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    max-width: 46ch;
}
.brand-desc {
    display: block;
    margin-top: 0.5rem;
    font-family: var(--serif);
    font-size: 0.82rem;
    line-height: 1.55;
    color: #B9A9D2;
    max-width: 62ch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: 2px solid var(--accent);
    color: #F1EAF9;
    font-family: var(--sans);
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
}
.nav-toggle-bar { display: block; width: 18px; height: 2px; background: var(--accent); }
.nav-toggle-label { font-weight: 600; }

.site-nav { flex: 0 1 auto; }
.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
    margin: 0.4rem 0 0;
    padding: 0;
}
.nav-list a {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: #E4D8F5;
    text-decoration: none;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}
.nav-list a:hover,
.nav-list .current-menu-item > a {
    color: #FFFFFF;
    border-bottom-color: var(--accent);
}
.nav-list .sub-menu {
    list-style: none;
    margin: 0.3rem 0 0;
    padding: 0 0 0 0.8rem;
    border-left: 2px solid var(--accent-2);
}

/* --- основная область --- */
.site-main { display: block; padding: 2.2rem 0 3.2rem; }

.crumbs {
    font-family: var(--sans);
    font-size: 0.84rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}
.crumbs a { color: var(--accent-2); text-decoration: none; border-bottom: 1px dotted var(--accent); }
.crumbs a:hover { border-bottom-style: solid; }
.crumbs .sep { color: var(--accent); padding: 0 0.25rem; }

.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; }

.page-head {
    font-size: 3.2rem;
    margin-bottom: 0.5em;
    padding-left: 1rem;
    border-left: 6px solid var(--accent);
}
.page-head::first-letter { color: var(--accent); }

.archive-note { color: var(--muted); margin-bottom: 1.6rem; }
.empty-note { color: var(--muted); }

/* --- заголовки секций --- */
.sec-title {
    position: relative;
    font-size: 1.9rem;
    padding-left: 1.1rem;
    margin-top: -0.35rem;
    border-left: 6px solid var(--accent);
    text-align: left;
}
.sec-title::first-letter { color: var(--accent); }
.sec-lead { color: var(--muted); max-width: 68ch; margin-bottom: 2rem; }

/* --- главная --- */
.front-flow {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.hero {
    position: relative;
    overflow: hidden;
    background: var(--head-bg);
    color: #F3EDF9;
    padding: 3.4rem 2.4rem;
    margin-bottom: 3.6rem;
}
.hero-art {
    position: absolute;
    top: -10%;
    right: 2%;
    width: 260px;
    height: 320px;
    opacity: 0.16;
    pointer-events: none;
}
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-body { position: relative; max-width: 62ch; min-width: 0; }
.hero-date {
    font-family: var(--mono);
    font-size: 0.86rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}
.hero-title {
    font-size: 3.2rem;
    color: #FFFFFF;
    margin-bottom: 0.55em;
}
.hero-title::first-letter { color: var(--accent); }
.hero-lead { color: #C8BADC; font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.hero .btn { border-color: var(--accent); color: #F3EDF9; }
.hero .btn-solid { color: #FFFFFF; }

.front-section {
    position: relative;
    padding: 3rem 2.2rem;
    margin-bottom: 3.2rem;
    background-repeat: no-repeat;
    background-position: right 1.2rem top 1.4rem;
    background-size: 190px auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='150' viewBox='0 0 190 150'%3E%3Cg fill='none' stroke='%23B27BDF' stroke-width='4' opacity='0.07'%3E%3Cpath d='M20 40 L60 20 L100 45 L140 25 L175 55'/%3E%3Cpath d='M25 110 L65 130 L105 100 L150 120'/%3E%3Ccircle cx='20' cy='40' r='9'/%3E%3Ccircle cx='60' cy='20' r='9'/%3E%3Ccircle cx='100' cy='45' r='9'/%3E%3Ccircle cx='140' cy='25' r='9'/%3E%3Ccircle cx='65' cy='130' r='9'/%3E%3Ccircle cx='105' cy='100' r='9'/%3E%3C/g%3E%3C/svg%3E");
}
.section-alt { background-color: var(--bg-alt); }

.wave-line {
    height: 20px;
    margin-bottom: 1.6rem;
    background-repeat: repeat-x;
    background-position: left center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='20' viewBox='0 0 120 20'%3E%3Cpath d='M0 10 Q 15 0 30 10 T 60 10 T 90 10 T 120 10' fill='none' stroke='%23E0D7EB' stroke-width='2' stroke-dasharray='5 4'/%3E%3C/svg%3E");
}

/* хронология */
.chrono {
    list-style: none;
    margin: 0;
    padding: 0 0 0 2.2rem;
    border-left: 6px solid var(--accent-2);
}
.chrono-node {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.6rem;
    padding-bottom: 2.2rem;
}
.chrono-node:last-child { padding-bottom: 0; }
.chrono-node::before {
    content: "";
    position: absolute;
    left: -2.2rem;
    top: 0.55rem;
    width: 14px;
    height: 14px;
    margin-left: -10px;
    background: var(--accent);
}
.chrono-time {
    flex: 0 0 auto;
    font-family: var(--mono);
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    color: var(--accent-2);
    padding-top: 0.2rem;
}
.chrono-body { flex: 1 1 320px; min-width: 0; }
.chrono-body h3 { font-size: 1.12rem; margin-bottom: 0.35em; }
.chrono-body p { margin: 0; color: #3B3348; }

/* статистика */
.stats-frame {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
    border: 1px solid var(--line);
    padding: 2rem 1.8rem;
    background: linear-gradient(150deg, #F4F2F9 0%, #E9E4F0 100%);
}
.stat-cell { min-width: 0; }
.stat-num {
    display: block;
    font-family: var(--sans);
    font-weight: 800;
    font-size: 3.6rem;
    line-height: 1;
    color: var(--accent-2);
    letter-spacing: -0.04em;
}
.stat-rule {
    display: block;
    height: 0;
    border-top: 1px dashed var(--accent);
    margin: 0.8rem 0;
}
.stat-label { display: block; font-size: 0.9rem; color: #4A4159; line-height: 1.55; }

.brace-quote {
    position: relative;
    margin: 2.4rem 0 0;
    padding: 1.4rem 1.6rem 1.4rem 4.2rem;
    background: #FCFBFF;
    border: 1px solid var(--line);
}
.brace-quote::before {
    content: "{";
    position: absolute;
    left: 1.1rem;
    top: 0.2rem;
    font-family: var(--sans);
    font-size: 4.4rem;
    line-height: 1;
    color: var(--accent);
}
.brace-quote p { margin: 0; font-size: 1.12rem; font-style: italic; color: #33294A; }

/* карта тем */
.topic-mosaic {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.topic-tile {
    display: block;
    min-width: 0;
    padding: 1.4rem 1.4rem 1.5rem;
    border: 2px solid var(--line);
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    transition: background-color 0.15s linear, color 0.15s linear, transform 0.1s linear, border-color 0.15s linear;
}
.topic-wide { grid-column: span 2; }
.topic-ico { display: block; width: 32px; height: 32px; color: var(--accent-2); margin-bottom: 0.9rem; }
.topic-ico svg { width: 100%; height: 100%; display: block; }
.topic-name { display: block; font-family: var(--sans); font-weight: 700; font-size: 1.06rem; }
.topic-note { display: block; margin-top: 0.5rem; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.topic-tile:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    transform: translateY(2px);
}
.topic-tile:hover .topic-ico,
.topic-tile:hover .topic-note { color: #F4EBFC; }

.front-more { margin-top: 1.8rem; }

/* --- карточки записей --- */
.card-stack { display: block; }
.card {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 1.4rem 1.2rem 1.4rem 1.6rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid var(--line);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    transition: background-color 0.15s linear;
}
.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--accent);
    transition: width 0.15s linear;
}
.card:hover { background: #FCFBFF; }
.card:hover::before { width: 5px; }
.card-row { display: flex; gap: 1.2rem; align-items: flex-start; }
.card-thumb-wrap {
    flex: 0 0 80px;
    width: 80px;
    overflow: hidden;
}
.card-thumb-wrap a { display: block; }
.card-thumb-wrap img {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: cover;
    filter: grayscale(1) sepia(0.4) hue-rotate(230deg) saturate(1.6);
    transition: filter 0.2s linear;
}
.card:hover .card-thumb-wrap img { filter: none; }
.card-body { flex: 1; min-width: 0; }
.card-title { font-size: 1.28rem; margin-bottom: 0.3em; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent-2); }
.card-excerpt { color: #3B3348; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { margin: 0.9rem 0 0; }

.post-meta {
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.7rem;
}
.post-meta a { color: var(--accent-2); text-decoration: none; border-bottom: 1px dotted var(--accent); }
.post-meta a:hover { border-bottom-style: solid; }
.meta-dot { color: var(--accent); }

/* --- запись и страница --- */
.single-thumb { margin: 0 0 1.8rem; }
.single-thumb img { display: block; width: 100%; height: auto; }
.entry { font-size: 1.03rem; }
.entry h2 { font-size: 1.7rem; margin: 1.9em 0 0.6em; padding-left: 0.9rem; border-left: 6px solid var(--accent); }
.entry h2::first-letter { color: var(--accent); }
.entry h3 { font-size: 1.32rem; margin: 1.6em 0 0.5em; }
.entry ul, .entry ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry li { margin-bottom: 0.5em; }
.entry blockquote {
    position: relative;
    margin: 1.8em 0;
    padding: 1.2rem 1.4rem 1.2rem 3.8rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    font-style: italic;
}
.entry blockquote::before {
    content: "{";
    position: absolute;
    left: 1rem;
    top: 0.1rem;
    font-family: var(--sans);
    font-size: 3.6rem;
    line-height: 1;
    color: var(--accent);
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry img { display: block; height: auto; }
.entry figure { margin: 1.6em 0; }
.entry figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 0.5rem; }
.entry code {
    font-family: var(--mono);
    font-size: 0.9em;
    background: var(--bg-alt);
    padding: 0.1em 0.35em;
}
.entry pre {
    background: var(--head-bg);
    color: #EBE1F7;
    padding: 1.1rem;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 0.88rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6em 0;
    border: 1px solid var(--line);
}
th, td {
    border: 1px solid var(--line);
    padding: 0.7rem 0.9rem;
    text-align: left;
}
th { background: var(--bg-alt); font-family: var(--sans); font-size: 0.92rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.tag-chip {
    font-family: var(--sans);
    font-size: 0.82rem;
    padding: 0.3em 0.8em;
    border: 1px solid var(--line);
    color: var(--accent-2);
    text-decoration: none;
}
.tag-chip:hover { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }

.post-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin: 2.4rem 0;
    padding: 1.2rem 1.4rem;
    background: #FCFBFF;
    border: 1px solid var(--line);
    font-family: var(--sans);
    font-size: 0.92rem;
}
.post-switch a { color: var(--accent-2); text-decoration: none; }
.post-switch a:hover { color: var(--accent); }
.switch-prev, .switch-next { min-width: 0; flex: 1 1 240px; }
.switch-next { text-align: right; }

.page-links { font-family: var(--sans); margin-top: 1.4rem; }

/* --- пагинация --- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.6rem 0 0;
}
.pager .page-numbers {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.94rem;
    font-weight: 600;
    padding: 0.45em 0.95em;
    border: 2px solid var(--line);
    color: var(--accent-2);
    text-decoration: none;
    background: transparent;
}
.pager a.page-numbers:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #FFFFFF;
}
.pager .page-numbers.current {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #FFFFFF;
}
.pager .page-numbers.dots { border-color: transparent; }

.comments-area { margin-top: 3rem; }
.comments-head { font-size: 1.5rem; padding-left: 0.9rem; border-left: 6px solid var(--accent); }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding-left: 1.6rem; border-left: 2px solid var(--line); }
.comment-item { margin-bottom: 1.4rem; }
.comment-body { padding: 1.1rem 1.3rem; background: #FCFBFF; border: 1px solid var(--line); }
.comment-head { font-family: var(--sans); font-size: 0.9rem; margin-bottom: 0.5rem; }
.comment-author { font-weight: 700; }
.comment-head time { color: var(--muted); margin-left: 0.5rem; font-family: var(--mono); font-size: 0.8rem; }
.comment-actions { font-family: var(--sans); font-size: 0.86rem; }
.comment-actions a { color: var(--accent-2); }

.comment-form label,
.comment-form p { font-family: var(--sans); font-size: 0.92rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line);
    background: #FFFFFF;
    font-family: var(--serif);
    font-size: 0.98rem;
    color: var(--ink);
    border-radius: 0;
}
.comment-form .submit {
    font-family: var(--sans);
    font-weight: 600;
    padding: 0.68em 1.5em;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
    border-radius: 0;
}
.comment-form .submit:hover { background: var(--accent-2); border-color: var(--accent-2); }
.comment-reply-title { font-size: 1.3rem; }

/* --- форма поиска --- */
.search-form { margin: 1.6rem 0; }
.search-label { display: block; font-family: var(--sans); font-size: 0.88rem; margin-bottom: 0.4rem; }
.search-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.search-input {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--line);
    background: #FFFFFF;
    font-family: var(--serif);
    font-size: 0.98rem;
    color: var(--ink);
    border-radius: 0;
}
.search-submit { flex: 0 0 auto; }

/* --- сайдбар --- */
.sidebar {
    min-width: 0;
    background: var(--side-bg);
    border: 1px solid var(--line);
    padding: 1.6rem 1.4rem;
    color: var(--ink);
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-size: 1.1rem;
    color: var(--ink);
    padding-left: 0.8rem;
    border-left: 6px solid var(--accent);
    margin-bottom: 1rem;
}
.sidebar .widget-title::first-letter { color: var(--accent); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.5rem 0; border-bottom: 1px solid var(--line-soft); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--accent-2); text-decoration: none; border-bottom: 1px dotted var(--accent); }
.sidebar a:hover { border-bottom-style: solid; color: var(--ink); }
.sidebar .post-date { display: block; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.sidebar p { font-size: 0.95rem; color: #3B3348; }

/* --- подвал --- */
.site-bottom {
    background: var(--foot-bg);
    color: #D5CBE6;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}
.foot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.foot-col { min-width: 0; }
.site-bottom .widget-title {
    font-size: 1.02rem;
    color: #FFFFFF;
    padding-left: 0.8rem;
    border-left: 6px solid var(--accent);
    margin-bottom: 1rem;
}
.site-bottom .widget-title::first-letter { color: var(--accent); }
.site-bottom p, .site-bottom li, .site-bottom .textwidget {
    color: #C2B6D6;
    font-size: 0.93rem;
}
.site-bottom ul { list-style: none; margin: 0; padding: 0; }
.site-bottom li { padding: 0.4rem 0; border-bottom: 1px solid rgba(178, 123, 223, 0.22); }
.site-bottom li:last-child { border-bottom: 0; }
.site-bottom a {
    color: #E3D6F5;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}
.site-bottom a:hover { color: #FFFFFF; text-decoration-style: solid; }
.foot-line {
    height: 0;
    border-top: 1px solid rgba(178, 123, 223, 0.3);
    margin: 2.4rem 0 1.2rem;
}
.copyright {
    font-family: var(--sans);
    font-size: 0.86rem;
    color: #9E92B4;
    margin: 0;
}

/* --- cookie --- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.6rem;
    background: var(--head-bg);
    border-top: 3px solid var(--accent);
    color: #E7DCF6;
}
.cookie-text { margin: 0; font-size: 0.9rem; flex: 1 1 320px; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* --- адаптив --- */
@media (max-width: 960px) {
    body { font-size: 16px; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .page-head { font-size: 2.4rem; }
    .hero-title { font-size: 2.4rem; }
    .stats-frame { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-wide { grid-column: span 2; }
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .front-flow { width: 100%; }
    .layout-single .content-area { width: 100%; }
    .hero-art { width: 190px; height: 240px; opacity: 0.12; }
}

@media (max-width: 600px) {
    .site-top { padding: 1.2rem 0 1rem; }
    .nav-toggle { display: inline-flex; }
    .site-nav { flex: 1 1 100%; }
    .site-nav:not(.is-open) .nav-list { display: none; }
    .nav-list { flex-direction: column; gap: 0; margin-top: 0.8rem; }
    .nav-list > li { border-bottom: 1px solid rgba(178, 123, 223, 0.25); }
    .nav-list a { display: block; padding: 0.65rem 0; }
    .page-head { font-size: 1.95rem; padding-left: 0.75rem; }
    .sec-title { font-size: 1.5rem; padding-left: 0.75rem; }
    .hero { padding: 2.2rem 1.4rem; }
    .hero-title { font-size: 1.95rem; }
    .hero-art { display: none; }
    .front-section { padding: 2rem 1.3rem; }
    .stats-frame { grid-template-columns: minmax(0, 1fr); padding: 1.5rem 1.3rem; }
    .stat-num { font-size: 2.9rem; }
    .brace-quote { padding: 1.2rem 1.2rem 1.2rem 3.2rem; }
    .topic-mosaic { grid-template-columns: minmax(0, 1fr); }
    .topic-wide { grid-column: span 1; }
    .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .card { padding: 1.1rem 0.9rem 1.1rem 1.1rem; }
    .card-row { gap: 0.9rem; }
    .card-thumb-wrap { flex: 0 0 64px; width: 64px; position: static; }
    .card-thumb-wrap a { position: static; }
    .card-thumb-wrap img { width: 64px; height: 64px; }
    .card-title { font-size: 1.12rem; }
    .chrono { padding-left: 1.5rem; }
    .chrono-node::before { left: -1.5rem; }
    .cookie-banner { padding: 0.9rem 1.1rem; }
}
