/*
Theme Name: dds_vejia.ru
Theme URI: https://vejia.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: vejia
*/

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

/* ---------- Токены ---------- */
:root {
    --bg: #F7F9FC;
    --bg-alt: #EDF2F7;
    --bg-head: #FFFFFF;
    --bg-foot: #1A2A3A;
    --bg-side: #F0F4F8;
    --ink: #1C2A38;
    --indigo: #3A5A8C;
    --teal: #5FB3B3;
    --muted: #7A8A9A;
    --line: #DCE3EC;
    --font-head: "Inter", "Noto Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --font-body: "Source Sans 3", "Source Sans Pro", "Work Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body::after {
    content: "";
    position: fixed;
    right: -40px;
    bottom: -30px;
    width: 340px;
    height: 340px;
    pointer-events: none;
    z-index: 0;
    opacity: .04;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%233A5A8C' d='M30 180C30 90 90 25 180 20c-4 92-62 155-150 160z'/%3E%3Cpath fill='none' stroke='%23F7F9FC' stroke-width='3' d='M34 176L150 52M70 136l-4-34M98 106l-3-38M126 78l-2-28M70 136l36-2M98 106l38-2M126 78l30-1'/%3E%3C/svg%3E") no-repeat center / contain;
}
.site-main, .masthead, .colophon { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; }
a { color: var(--indigo); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}
p { margin: 0 0 1.1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    font-weight: 500;
    letter-spacing: .02em;
    line-height: 1.25;
    margin: 1.6em 0 .6em;
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: 2.1rem; line-height: 1.2; font-weight: 400; letter-spacing: .03em; margin-top: 0; }
h2 { font-size: 1.6rem; position: relative; padding-left: 18px; }
h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .52em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
}
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p, li, td, th, dd, blockquote, .card-title, .brand-name, .brand-desc { overflow-wrap: break-word; hyphens: auto; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; border: 1px solid var(--line); }
th, td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-family: var(--font-head); font-weight: 500; }

blockquote {
    margin: 1.8em 0;
    padding: 1.2em 1.6em;
    border-left: 2px solid var(--indigo);
    background: var(--bg-alt);
    font-style: italic;
}
blockquote p:last-child { margin-bottom: 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;
    background: var(--indigo);
    color: #fff;
    padding: .6rem 1rem;
    border-radius: 2px;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Подпись портала (полоса сверху) ---------- */
.signature { display: flex; gap: 8px; height: 3px; position: relative; z-index: 2; }
.signature-a { flex: 0 0 64%; background: var(--indigo); }
.signature-b { flex: 1 1 auto; background: var(--teal); }

/* ---------- Анимированное подчёркивание ссылок ---------- */
.entry-content a, .crumbs a, .sidebar a, .colophon a, .card-title a, .card-more, .page-lead a, .note-text a, .entry-tags a, .cookie-text a, .form-note a {
    background-image: linear-gradient(var(--teal), var(--teal));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .35s var(--ease), color .2s;
}
.entry-content a:hover, .crumbs a:hover, .sidebar a:hover, .colophon a:hover, .card-title a:hover, .card-more:hover, .page-lead a:hover, .note-text a:hover, .entry-tags a:hover, .cookie-text a:hover, .form-note a:hover {
    background-size: 100% 1px;
}

/* ---------- Кнопки ---------- */
.btn, input[type="submit"] {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1.3;
    padding: .8em 1.6em;
    border: 1px solid var(--indigo);
    border-radius: 2px;
    background: var(--indigo);
    color: #fff;
    cursor: pointer;
    text-align: center;
    white-space: normal;
    transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s, transform .3s var(--ease);
}
.btn:hover, input[type="submit"]:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
    transform: translateX(2px);
}
.btn--ghost { background: transparent; color: var(--indigo); }
.btn--ghost:hover { color: #fff; }
.btn--light { background: transparent; border-color: #fff; color: #fff; }
.btn--light:hover { background: var(--teal); border-color: var(--teal); }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}

/* ---------- Шапка ---------- */
.masthead { background: var(--bg-head); border-bottom: 1px solid var(--line); }
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 1rem; color: var(--ink); min-width: 0; flex: 1 1 420px; }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo { display: block; width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--font-head);
    font-size: .98rem;
    font-weight: 500;
    letter-spacing: .02em;
    line-height: 1.35;
    color: var(--ink);
}
.brand-desc {
    font-size: .82rem;
    line-height: 1.45;
    color: var(--muted);
    margin-top: .2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    background: transparent;
    border: 1px solid var(--indigo);
    border-radius: 2px;
    padding: .5rem .9rem;
    color: var(--indigo);
    font-family: var(--font-head);
    font-size: .9rem;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    position: relative;
    transition: transform .25s var(--ease);
}
.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; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.primary-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 2rem; }
.primary-menu a {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .95rem;
    letter-spacing: .04em;
    color: var(--ink);
    padding: .4rem 0;
    background-image: linear-gradient(var(--teal), var(--teal));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .35s var(--ease), color .2s;
}
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--indigo); background-size: 100% 1px; }

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

/* ---------- Раскладки ---------- */
.page-wrap { padding-bottom: 5rem; }
.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.layout-with-sidebar .content-area, .layout-with-sidebar .sidebar { min-width: 0; }
.page-head { padding: 2.5rem 0 1.5rem; }
.page-title { font-size: 2.4rem; margin-bottom: .4em; }
.page-lead { color: var(--muted); max-width: 62ch; margin: 0; }

@media (min-width: 960px) {
    .layout-with-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
        column-gap: 6%;
        align-items: start;
    }
}

/* ---------- Сайдбар ---------- */
.sidebar { background: var(--bg-side); padding: 2rem 1.8rem; border-radius: 4px; margin-top: 2.5rem; color: var(--ink); }
.sidebar .widget { margin-bottom: 2.2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    letter-spacing: .06em;
    color: var(--ink);
    padding-top: .9rem;
    position: relative;
}
.sidebar .widget-title::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 1px; background: var(--indigo); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--indigo); }
.sidebar .post-date, .sidebar .rss-date { display: block; font-size: .82rem; color: var(--muted); }
.sidebar p { color: var(--ink); }
.sidebar .search-box { flex-direction: column; }

/* ---------- Главная: секции ---------- */
.front-sec { padding: 6.5rem 0; }
.front-sec--plain { background: var(--bg); }
.front-sec--alt { background-color: var(--bg-alt); }
.front-sec--lined {
    background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 39px, rgba(220, 227, 236, .3) 39px, rgba(220, 227, 236, .3) 40px);
}
.sec-head { max-width: 640px; margin-bottom: 3.5rem; }
.sec-head::before { content: ""; display: block; width: 40px; height: 1px; background: var(--indigo); margin-bottom: 1.4rem; }
.sec-head--shift { margin-left: 18%; }
.sec-title { font-size: 2rem; margin: 0 0 .5em; font-weight: 400; }
.sec-lead { color: var(--muted); margin: 0; }
.sec-foot { margin-top: 3rem; }
.empty-note { color: var(--muted); }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: #1A2A3A;
    color: #fff;
    min-height: 560px;
    display: flex;
    align-items: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(26, 42, 58, .88) 0%, rgba(58, 90, 140, .62) 55%, rgba(26, 42, 58, .3) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 6rem 0; }
.hero-title {
    color: #fff;
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 300;
    letter-spacing: .04em;
    max-width: 17em;
    margin: 0;
}
.hero-rule { display: block; width: 64px; height: 1px; background: rgba(255, 255, 255, .7); margin: 2rem 0; }
.hero-lead { max-width: 36em; color: rgba(255, 255, 255, .88); font-size: 1.12rem; margin: 0 0 2.4rem; }

/* Шаги */
.steps { list-style: none; margin: 0; padding: 0; max-width: 920px; }
.step {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 2rem;
    padding: 2.4rem 0;
    border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step:nth-child(even) { margin-left: 10%; }
.step-num {
    font-family: var(--font-head);
    font-size: 4.2rem;
    font-weight: 300;
    line-height: 1;
    color: var(--indigo);
}
.step-text { min-width: 0; }
.step-title { margin: .2rem 0 .6rem; font-size: 1.3rem; }
.step-text p { margin: 0; color: #3B4A5A; }

/* Карточки */
.cards { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) {
    .cards--two, .cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color .3s var(--ease);
}
.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.4rem;
    bottom: 1.4rem;
    width: 2px;
    background: var(--indigo);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .35s var(--ease);
    z-index: 1;
}
.card:hover { border-color: var(--teal); }
.card:hover::before { transform: scaleY(1); }
.card.sticky { border-color: var(--indigo); }
.card-thumb { width: 60%; padding: 1.4rem 0 0 1.4rem; }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 2px;
    background: var(--bg-alt);
}
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.3rem 1.4rem 1.5rem; min-width: 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .82rem; color: var(--muted); margin-bottom: .6rem; }
.card-cat { color: var(--indigo); }
.card-title { font-size: 1.15rem; margin: 0 0 .7rem; line-height: 1.35; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--indigo); }
.card-excerpt { color: #4A5868; font-size: .98rem; flex: 1; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-more {
    align-self: flex-start;
    margin-top: .8rem;
    font-family: var(--font-head);
    font-size: .88rem;
    letter-spacing: .04em;
    color: var(--indigo);
}

/* Цифры */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: .5rem 2rem; border-left: 1px solid var(--line); min-width: 0; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-num {
    display: block;
    font-family: var(--font-head);
    font-size: 4rem;
    font-weight: 300;
    line-height: 1;
    color: var(--indigo);
    margin-bottom: 1rem;
}
.fact-label { display: block; color: var(--muted); font-size: .96rem; line-height: 1.5; }

/* Рубрикатор */
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.topic {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    min-width: 0;
    padding: 2.2rem 2rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: transparent;
    color: var(--ink);
    transition: border-color .3s var(--ease);
}
.topic-icon { display: block; color: var(--indigo); margin-bottom: 1rem; transition: color .3s var(--ease); }
.topic-name { font-family: var(--font-head); font-size: 1.12rem; font-weight: 500; letter-spacing: .02em; }
.topic-note { color: var(--muted); font-size: .94rem; line-height: 1.5; }
.topic:hover { border-color: var(--teal); }
.topic:hover .topic-icon { color: var(--teal); }

/* ---------- Запись и страница ---------- */
.entry-head { padding: 2.5rem 0 1.4rem; }
.entry-title { font-size: 2.8rem; line-height: 1.2; font-weight: 400; margin-bottom: .5em; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .9rem; color: var(--muted); }
.entry-cat { color: var(--indigo); }
.entry-thumb { margin: 0 0 2rem; }
.entry-thumb img { display: block; width: 100%; height: auto; border-radius: 4px; }
.entry-content { max-width: 72ch; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--teal); }
.entry-content img { display: block; border-radius: 4px; }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption { font-size: .88rem; color: var(--muted); margin-top: .5em; }
.entry-content pre { overflow-x: auto; background: var(--bg-alt); padding: 1em 1.2em; border-radius: 4px; }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.entry-content .wp-block-table { overflow-x: auto; }
.page-links { margin-top: 1.5em; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 2rem; font-size: .92rem; }

/* ---------- Пагинация (type => plain) ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; align-items: center; }
.pager .page-numbers {
    display: inline-block;
    min-width: 2.6rem;
    padding: .55rem .9rem;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 2px;
    font-family: var(--font-head);
    font-size: .9rem;
    color: var(--indigo);
    background: #fff;
    transition: border-color .25s, background-color .25s, color .25s, transform .25s var(--ease);
}
.pager a.page-numbers:hover { border-color: var(--teal); background: var(--teal); color: #fff; transform: translateX(2px); }
.pager .page-numbers.current { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.pager .page-numbers.dots { border: 0; background: none; min-width: 0; padding: .55rem .3rem; color: var(--muted); }

/* ---------- Поиск ---------- */
.search-box { display: flex; gap: .5rem; flex-wrap: wrap; max-width: 520px; }
.search-input {
    flex: 1 1 220px;
    min-width: 0;
    padding: .75em 1em;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}
.search-input:focus { border-color: var(--teal); outline: none; }
.empty-block { padding: 1rem 0; }

/* ---------- 404 ---------- */
.lost { padding: 3rem 0 1rem; }
.lost-code { font-family: var(--font-head); font-size: 7rem; font-weight: 200; line-height: 1; color: var(--indigo); margin: 0 0 1.5rem; letter-spacing: .08em; }
.lost .page-lead { margin-bottom: 2rem; }
.lost-home { margin-top: 2rem; }

/* ---------- Комментарии ---------- */
.talk { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line); max-width: 72ch; }
.talk-title { margin-top: 0; }
.talk-list, .talk-list .children { list-style: none; margin: 0; padding: 0; }
.talk-list .children { padding-left: 2rem; border-left: 1px solid var(--line); }
.note-body { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.note-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .7rem; }
.note-avatar { display: block; border-radius: 50%; }
.note-who { display: flex; flex-direction: column; }
.note-author { font-family: var(--font-head); font-weight: 500; }
.note-date { font-size: .82rem; color: var(--muted); }
.note-wait { color: var(--muted); font-style: italic; }
.note-reply a { font-size: .88rem; font-family: var(--font-head); }
.comment-respond { margin-top: 2.5rem; }
.comment-reply-title { font-size: 1.4rem; }
.comment-reply-title small { display: block; font-size: .85rem; margin-top: .4rem; }
.comment-form label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: .75em 1em;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    font: inherit;
    color: var(--ink);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--teal); outline: none; }
.comment-form-cookies-consent label { display: inline; }
.form-note { font-size: .9rem; color: var(--muted); }
.req { color: var(--indigo); }
.talk-closed { color: var(--muted); }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1.5rem 0; }

/* ---------- Подвал ---------- */
.colophon { background: var(--bg-foot); color: #C5D0DC; padding: 5rem 0 2rem; margin-top: 0; }
.colophon-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
.colophon-col { min-width: 0; }
.colophon .widget { margin-bottom: 2rem; }
.colophon .widget-title { color: #FFFFFF; font-size: 1rem; letter-spacing: .06em; margin: 0 0 1.1rem; padding-top: .9rem; position: relative; }
.colophon .widget-title::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 1px; background: var(--teal); }
.colophon p, .colophon .textwidget { color: #C5D0DC; font-size: .96rem; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { padding: .3rem 0; }
.colophon a { color: #9FD6D6; }
.colophon a:hover { color: #FFFFFF; }
.colophon .post-date { color: #8FA0B2; font-size: .82rem; display: block; }
.colophon-copy { margin: 3rem 0 0; padding-top: 1.6rem; border-top: 1px solid rgba(220, 227, 236, .14); font-size: .88rem; color: #8FA0B2; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 880px;
    margin: 0 auto;
    padding: 1.2rem 1.6rem;
    background: #FFFFFF;
    color: var(--ink);
    border: 1px solid var(--line);
    border-left: 2px solid var(--indigo);
    border-radius: 4px;
}
.cookie-text { margin: 0; font-size: .92rem; line-height: 1.55; min-width: 0; flex: 1; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 959px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav { flex: 1 0 100%; display: none; }
    .primary-nav.is-open { display: block; }
    .primary-menu { flex-direction: column; gap: 0; border-top: 1px solid var(--line); padding-top: .5rem; }
    .primary-menu a { padding: .7rem 0; }
    .brand { flex: 1 1 0; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
    .fact:nth-child(3) { border-left: 0; padding-left: 0; }
    .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
    .colophon-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-single .content-area { width: 100%; }
    .sec-head--shift { margin-left: 8%; }
    .hero-title { font-size: 2.3rem; }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    h1, .page-title, .entry-title { font-size: 1.8rem; }
    .sec-title { font-size: 1.6rem; }
    .front-sec { padding: 4rem 0; }
    .front .shell { width: 92%; }
    .hero { min-height: 480px; }
    .hero-inner { padding: 4rem 0; }
    .hero-title { font-size: 1.9rem; }
    .brand-desc { display: none; }
    .brand-logo { width: 40px; height: 40px; }
    .step { grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; padding: 1.8rem 0; }
    .step:nth-child(even) { margin-left: 0; }
    .step-num { font-size: 2.6rem; }
    .facts { grid-template-columns: minmax(0, 1fr); }
    .fact, .fact:nth-child(3) { border-left: 0; padding: 1.2rem 0; border-top: 1px solid var(--line); }
    .fact:first-child { border-top: 0; }
    .fact-num { font-size: 3rem; }
    .topics { grid-template-columns: minmax(0, 1fr); }
    .topic { padding: 1.6rem 1.4rem; }
    .sec-head--shift { margin-left: 0; }
    .card-thumb { width: 70%; padding: 1.1rem 0 0 1.1rem; }
    .card-body { padding: 1.1rem 1.1rem 1.3rem; }
    .sidebar { padding: 1.6rem 1.3rem; }
    .colophon-cols { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1.1rem 1.2rem; gap: 1rem; }
    .lost-code { font-size: 4.5rem; }
    body::after { width: 200px; height: 200px; }
}
