/*
Theme Name: dds_arctikacentr.ru
Theme URI: https://arctikacentr.ru/
Author: Ольга Северцева
Description: Журнальная тема в холодной арктической гамме для информационно-образовательного портала о профессиях и обучении в сфере моды и дизайна.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arkcen
*/

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

/* ---------- Токены ---------- */
:root {
    --bg: #F4F6F8;
    --steel: #E4EAF0;
    --head: #0F1B2D;
    --foot: #0A1420;
    --side: #EDF1F5;
    --ink: #14202E;
    --accent: #3E7BFA;
    --accent-dark: #2A5FD1;
    --ice: #7FD1E8;
    --muted: #6B7C93;
    --line: #CDD6E0;
    --serif: 'Prata', 'Didot', 'Bodoni 72', 'Georgia', 'Times New Roman', serif;
    --sans: 'Golos Text', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --shadow: 0 6px 24px rgba(15, 27, 45, 0.08);
    --shadow-up: 0 14px 34px rgba(15, 27, 45, 0.14);
}

/* ---------- База ---------- */
*, *::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(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(45deg, rgba(62, 123, 250, 0.03) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(-45deg, rgba(62, 123, 250, 0.03) 0 1px, transparent 1px 24px);
    position: relative;
}

body::after {
    content: "";
    position: fixed;
    right: 2vw;
    bottom: 2vh;
    width: 240px;
    height: 360px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 240' fill='none' stroke='%237FD1E8' stroke-width='1.2'%3E%3Cpath d='M80 4 L104 120 L80 236 L56 120 Z'/%3E%3Cpath d='M80 4 V236'/%3E%3Cpath d='M56 120 H104'/%3E%3Cpath d='M80 40 L66 26 M80 40 L94 26 M80 200 L66 214 M80 200 L94 214'/%3E%3Cpath d='M30 70 L130 170 M130 70 L30 170'/%3E%3C/svg%3E") no-repeat center / contain;
}

.masthead, .signature-bar, .site-main, .colophon { position: relative; z-index: 1; }

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

p, li, dd, blockquote, figcaption, td, th, .card-title, .topic-name, .brand-name {
    overflow-wrap: break-word;
    hyphens: auto;
}

p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--ink);
    margin: 1.6em 0 0.6em;
    overflow-wrap: break-word;
}

h1 { font-size: 2.3rem; margin-top: 0; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

h2, h3 {
    border-left: 3px solid var(--ice);
    padding-left: 14px;
}

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

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.entry-content a, .widget a, .crumbs a, .card-title a, .card-more, .page-lead a, .note-text a, .form-note a {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.3s ease, color 0.2s ease;
}

.entry-content a:hover, .widget a:hover, .crumbs a:hover, .card-title a:hover, .card-more:hover, .page-lead a:hover, .note-text a:hover, .form-note a:hover {
    background-size: 100% 1px;
}

table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid var(--line); }
th, td { border: 1px solid var(--line); padding: 0.6em 0.8em; text-align: start; vertical-align: top; }
th { background: var(--steel); font-weight: 600; }

blockquote {
    margin: 1.6em 0;
    padding: 1.4rem 1.6rem;
    background: var(--steel);
    border-left: 3px solid var(--accent);
    font-family: var(--serif);
    font-size: 1.2rem;
}
blockquote p:last-child { margin-bottom: 0; }

pre {
    overflow-x: auto;
    padding: 1rem 1.2rem;
    background: var(--head);
    color: var(--steel);
    border-radius: 2px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.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;
    padding: 0.6rem 1rem;
    background: var(--accent);
    color: #fff;
    border-radius: 2px;
}
.skip-link:focus { top: 1rem; }

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

.front-shell { width: min(85%, 1240px); }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    font-family: var(--sans);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    border-radius: 2px;
    border: 1.5px solid var(--accent);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 27, 45, 0.18);
}

.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-line { background: transparent; color: var(--accent); }
.btn-line:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-line-light { color: #F4F6F8; border-color: var(--ice); }
.btn-line-light:hover { color: #fff; }

/* ---------- Шапка ---------- */
.masthead {
    background: var(--head);
    color: var(--steel);
}

.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.3rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1 1 auto;
    color: inherit;
}

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

.brand-text { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; max-width: 640px; }

.brand-name {
    font-family: var(--serif);
    font-size: 1.02rem;
    line-height: 1.35;
    color: #F4F6F8;
}

.brand-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #93A3B8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.primary-nav { flex: 0 0 auto; }

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.8rem;
}

.nav-list a {
    display: inline-block;
    padding: 0.35rem 0;
    color: var(--steel);
    font-weight: 500;
    font-size: 0.98rem;
    background-image: linear-gradient(var(--ice), var(--ice));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.3s ease, color 0.2s ease;
}

.nav-list a:hover,
.nav-list .current-menu-item > a { color: #fff; background-size: 100% 1px; }

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    background: transparent;
    color: var(--steel);
    border: 1.5px solid rgba(127, 209, 232, 0.5);
    border-radius: 2px;
    font: 500 0.9rem var(--sans);
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    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; }

.signature-bar {
    height: 3px;
    background: linear-gradient(90deg, #3E7BFA, #7FD1E8);
}

/* ---------- Хлебные крошки ---------- */
.crumbs {
    padding: 1.6rem 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}
.crumbs a { color: var(--accent); }
.crumbs-sep { margin: 0 0.35rem; color: var(--ice); }

/* ---------- Раскладки ---------- */
.page-wrap { padding-bottom: 6rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
    padding-top: 2.2rem;
}

.layout-single {
    display: block;
    padding-top: 2.2rem;
}

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

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

.page-head { margin-bottom: 2.4rem; }

.page-title {
    font-size: 3.2rem;
    line-height: 1.1;
    margin: 0 0 0.5rem;
}

.page-lead { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin: 0; }

.empty-note { color: var(--muted); }

/* ---------- Сайдбар и виджеты ---------- */
.sidebar {
    min-width: 0;
    background: var(--side);
    padding: 1.8rem 1.6rem;
    border-radius: 4px;
    color: var(--ink);
}

.widget { margin-bottom: 2rem; }
.widget:last-child { margin-bottom: 0; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }

.widget-title {
    font-size: 1.2rem;
    margin: 0 0 1rem;
}

.sidebar .widget-title { color: var(--ink); }
.sidebar .widget,
.sidebar .widget p { color: var(--ink); }
.sidebar .widget a { color: var(--accent); }
.sidebar .post-date, .sidebar .rss-date { color: var(--muted); font-size: 0.85rem; display: block; }

.sidebar .search-form { flex-direction: column; }

/* ---------- Карточки ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.card-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border-radius: 4px;
    border: 1px solid transparent;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-up);
    border-color: var(--ice);
}

.card-thumb { display: block; background: var(--steel); }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.8rem;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.8rem;
}

.card-pin { color: var(--accent); font-weight: 600; }

.card-title {
    font-size: 1.28rem;
    line-height: 1.3;
    margin: 0 0 0.7rem;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }

.card-excerpt { color: #3A4A5E; font-size: 0.97rem; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more {
    align-self: flex-start;
    margin-top: 0.8rem;
    font-weight: 600;
    font-size: 0.92rem;
}

/* ---------- Теги ---------- */
.tag-chip {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--steel);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.5;
    border-radius: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.tag-chip:hover { background: var(--accent); color: #fff; }

/* ---------- Запись ---------- */
.entry-head { margin-bottom: 1.8rem; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem;
    align-items: center;
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 1rem;
}
.entry-title { font-size: 3.2rem; line-height: 1.1; margin: 0; }

.entry-cover { margin: 0 0 2.2rem; }
.entry-cover img { display: block; width: 100%; border-radius: 4px; }

.entry-content { font-size: 1.08rem; }
.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: 0.4em; }
.entry-content li::marker { color: var(--accent); }
.entry-content img { display: block; border-radius: 4px; }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 0.5rem; }

.entry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.4rem; }

.page-links { margin-top: 1.6rem; font-weight: 600; }

.entry-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin: 3.4rem 0 0;
}
.entry-nav-link {
    display: block;
    padding: 1.2rem 1.4rem;
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: 4px;
    color: var(--ink);
    font-family: var(--serif);
    border: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.entry-nav-link span { display: block; font-family: var(--sans); font-size: 0.82rem; color: var(--muted); margin-bottom: 0.3rem; }
.entry-nav-link:hover { border-color: var(--ice); }
.entry-nav-next { grid-column: 2; text-align: end; }

/* ---------- Пагинация (type => plain) ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 3.2rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.85rem;
    border: 1.5px solid var(--line);
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.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: #fff; }
.pager .page-numbers.dots { border: 0; background: none; min-width: 24px; padding: 0; }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: 0.5rem; max-width: 560px; }
.search-field {
    flex: 1;
    min-width: 0;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 2px;
    background: #fff;
    font: inherit;
    color: var(--ink);
}
.search-field:focus { border-color: var(--accent); }

/* ---------- 404 ---------- */
.lost { padding: 2rem 0 1rem; }
.lost-code {
    display: block;
    font-family: var(--serif);
    font-size: 7rem;
    line-height: 1;
    color: var(--ice);
    margin-bottom: 1rem;
}
.lost .page-lead { margin-bottom: 1.6rem; }
.lost-home { margin-top: 2rem; }

/* ---------- Комментарии ---------- */
.discussion { margin-top: 4rem; }
.discussion-title { font-size: 1.7rem; }
.note-list, .note-list .children { list-style: none; margin: 0; padding: 0; }
.note-list .children { padding-left: 2rem; }
.note-body {
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: 4px;
    padding: 1.3rem 1.5rem;
    margin-bottom: 1.2rem;
}
.note-head { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 0.7rem; }
.note-head img { border-radius: 2px; display: block; }
.note-author { display: block; }
.note-date { font-size: 0.82rem; color: var(--muted); }
.note-wait { color: var(--muted); font-style: italic; }
.note-reply a { font-weight: 600; font-size: 0.9rem; }

.comment-respond { margin-top: 2.4rem; }
.comment-reply-title { font-size: 1.5rem; }
.comment-reply-title small { margin-left: 1rem; font-family: var(--sans); font-size: 0.85rem; }
.comment-form label { display: block; font-weight: 500; margin-bottom: 0.35rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid var(--line);
    border-radius: 2px;
    background: #fff;
    font: inherit;
    color: var(--ink);
}
.comment-form-cookies-consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; font-size: 0.9rem; }
.form-note { color: var(--muted); font-size: 0.9rem; }
.req { color: var(--accent); }
.comment-form .submit {
    padding: 0.85rem 1.8rem;
    background: var(--accent);
    color: #fff;
    border: 1.5px solid var(--accent);
    border-radius: 2px;
    font: 600 0.98rem var(--sans);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.comment-form .submit:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15, 27, 45, 0.18); }

/* ---------- Главная: общие секции ---------- */
.band { padding: 120px 0; }
.band-light { background-color: var(--bg); }
.band-steel { background-color: var(--steel); }

.band-ink {
    background-color: var(--head);
    background-image:
        repeating-linear-gradient(45deg, rgba(127, 209, 232, 0.05) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(-45deg, rgba(127, 209, 232, 0.05) 0 1px, transparent 1px 24px);
    color: var(--steel);
}

.section-title {
    font-size: 2.4rem;
    line-height: 1.15;
    margin: 0 0 1rem;
    border-left: 2px solid var(--ice);
    padding-left: 16px;
    max-width: 22ch;
}

.band-ink .section-title { color: #F4F6F8; }

.section-intro { color: var(--muted); max-width: 58ch; margin: 0 0 3.4rem; font-size: 1.08rem; }
.band .section-title + .card-grid,
.band .section-title + .facts { margin-top: 3rem; }

.band-foot { margin-top: 3rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(480px, 78vh, 760px);
    display: flex;
    align-items: center;
    background: var(--head);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(15, 27, 45, 0.94) 0%, rgba(15, 27, 45, 0.78) 45%, rgba(15, 27, 45, 0.35) 100%);
}

.hero-inner {
    position: relative;
    padding: 7rem 0;
}

.hero-title {
    font-size: 3.2rem;
    line-height: 1.08;
    color: #F4F6F8;
    max-width: 15ch;
    margin: 0 0 1.6rem;
}

.hero-lead {
    color: #C9D4E0;
    font-size: 1.15rem;
    max-width: 52ch;
    margin: 0 0 2.6rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- Таймлайн ---------- */
.chrono {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.chrono::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 1px);
    width: 2px;
    background: var(--accent);
}

.chrono-item {
    position: relative;
    width: 50%;
    min-width: 0;
    padding-bottom: 3rem;
}
.chrono-item:last-child { padding-bottom: 0; }

.chrono-left { padding-right: 56px; }
.chrono-right { margin-left: 50%; padding-left: 56px; }

.chrono-dot {
    position: absolute;
    top: 0.6rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--steel);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.chrono-dot svg { display: block; }
.chrono-left .chrono-dot { right: -23px; }
.chrono-right .chrono-dot { left: -23px; }

.chrono-card {
    background: var(--bg);
    padding: 1.6rem 1.8rem;
    border-radius: 4px;
    min-width: 0;
}

.chrono-label {
    display: block;
    font-family: var(--serif);
    font-size: 1.9rem;
    line-height: 1.1;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.chrono-title { font-size: 1.3rem; margin: 0 0 0.6rem; }
.chrono-card p { margin: 0; color: #33445A; }

/* ---------- Статистика ---------- */
.facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fact {
    padding: 0.4rem 2rem;
    border-left: 1px solid rgba(127, 209, 232, 0.3);
    min-width: 0;
}
.fact:first-child { border-left: 0; padding-left: 0; }

.fact-num {
    display: block;
    font-family: var(--serif);
    font-size: 4.4rem;
    line-height: 1;
    color: var(--ice);
    margin-bottom: 1rem;
}

.fact-text { display: block; font-size: 0.92rem; line-height: 1.55; color: var(--steel); }

/* ---------- Карта тем ---------- */
.topics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.topic {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    min-width: 0;
    padding: 2rem 1.8rem;
    background: var(--side);
    border: 1px solid var(--ice);
    border-radius: 4px;
    color: var(--ink);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.topic-icon { display: block; color: var(--accent); transition: color 0.25s ease; }

.topic-name { font-weight: 600; font-size: 1.12rem; line-height: 1.3; }

.topic:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.topic:hover .topic-icon { color: #fff; }

/* ---------- Подвал ---------- */
.colophon {
    background: var(--foot);
    color: #B9C6D6;
    padding: 4.5rem 0 0;
}

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

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

.colophon .widget-title { color: #F4F6F8; border-left-color: var(--ice); }
.colophon .widget,
.colophon .widget p { color: #B9C6D6; font-size: 0.95rem; }
.colophon .widget a { color: var(--ice); }
.colophon .widget a:hover { color: #fff; }
.colophon .widget li { border-bottom-color: rgba(127, 209, 232, 0.15); }
.colophon .post-date { color: #8394A9; }

.colophon-base {
    margin-top: 3.5rem;
    padding: 1.6rem 0 2rem;
    border-top: 1px solid rgba(127, 209, 232, 0.15);
    font-size: 0.86rem;
    color: #8394A9;
}
.colophon-base p { margin: 0; }

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 50;
    max-width: 920px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.2rem 1.5rem;
    background: var(--head);
    color: var(--steel);
    border-top: 3px solid var(--ice);
    border-radius: 2px;
    box-shadow: 0 16px 40px rgba(10, 20, 32, 0.35);
}
.cookie-text { margin: 0; font-size: 0.92rem; flex: 1; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }

    .masthead-row { flex-wrap: wrap; gap: 1rem; }

    .primary-nav {
        flex: 1 0 100%;
        display: none;
    }
    .primary-nav.is-open { display: block; }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0 0.3rem;
        border-top: 1px solid rgba(127, 209, 232, 0.2);
    }
    .nav-list a { padding: 0.7rem 0; }

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
    .layout-single > .content-area { width: 100%; }

    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .front-shell { width: min(92%, 1240px); }

    .band { padding: 88px 0; }

    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.6rem; }
    .fact:nth-child(3) { border-left: 0; padding-left: 0; }

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

    .colophon-grid { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }

    .chrono::before { left: 22px; }
    .chrono-item, .chrono-left, .chrono-right {
        width: 100%;
        margin-left: 0;
        padding-left: 72px;
        padding-right: 0;
    }
    .chrono-left .chrono-dot, .chrono-right .chrono-dot { left: 0; right: auto; }
}

@media (min-width: 961px) {
    .layout-single .card-grid-two { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }

    h1, .page-title, .entry-title { font-size: 2.2rem; }
    h2 { font-size: 1.55rem; }
    .section-title { font-size: 1.85rem; }
    .hero-title { font-size: 2.35rem; }

    .brand-svg { width: 42px; height: 42px; }
    .brand-name { font-size: 0.9rem; }
    .brand-desc { display: none; }

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

    .band { padding: 64px 0; }
    .hero-inner { padding: 4.5rem 0; }

    .facts { grid-template-columns: minmax(0, 1fr); }
    .fact, .fact:nth-child(3) { border-left: 0; padding: 0 0 1.6rem; border-bottom: 1px solid rgba(127, 209, 232, 0.3); }
    .fact:last-child { border-bottom: 0; padding-bottom: 0; }
    .fact-num { font-size: 3.4rem; }

    .topics { grid-template-columns: minmax(0, 1fr); }
    .topic { padding: 1.5rem 1.4rem; flex-direction: row; align-items: center; gap: 1rem; }

    .chrono-card { padding: 1.3rem 1.3rem; }
    .chrono-label { font-size: 1.5rem; }

    .sidebar { padding: 1.5rem 1.3rem; }

    .entry-nav { grid-template-columns: minmax(0, 1fr); }
    .entry-nav-next { grid-column: auto; }

    .search-form { flex-direction: column; }

    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1.1rem 1.2rem; }

    .note-list .children { padding-left: 1rem; }

    body::after { width: 140px; height: 210px; }
}
