/* URALFACE — «ШВЕЙЦАРСКИЙ ЖУРНАЛ»: светлый модернизм, жёсткая модульная
   сетка с видимыми линиями, крупный гротеск капсом, один сигнальный акцент
   (киноварь), моно-индексы, всё плоско — тени почти нет.

   Тёмная тема — чернильная (вторичная). Мобильная вёрстка — база. */

/* ============================================================
   ТОКЕНЫ
   ============================================================ */

:root {
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --mono: 'JetBrains Mono', 'Courier New', monospace;

    --fs-tag: 10.5px;
    --fs-micro: 11px;
    --fs-btn: 11.5px;
    --fs-label: 12px;
    --fs-small: 13px;

    --container-w: 1320px;
    --header-h: 56px;

    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-14: 56px;
    --sp-18: 72px;
    --sp-24: 96px;

    /* швейцарская геометрия: острые углы */
    --radius-btn: 0px;
    --radius-field: 0px;

    --t-fast: 0.25s ease;
    --t-med: 0.35s ease;
    --t-slow: 0.7s ease;
    --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

    --measure: 66ch;
}

/* день-конструктив — базовая тема (text 15.2, muted 5.7, киноварь 5.1) */
:root,
[data-theme="light"] {
    --bg: #F6F6F3;
    --panel: #EFEFEA;
    --surface: #FFFFFF;
    --ink: #1A1915;
    --text: #201F1A;
    --muted: #63625B;
    --ink-rgb: 26, 25, 21;
    --accent: #C0391B;
    --accent-strong: #A82C12;
    --accent-rgb: 192, 57, 27;
    --on-accent: #F7F6F2;
    --line: #D9D7CF;
    --line-strong: #1A1915;
    --hover: #ECECE6;
    --zone: #141310;
    --zone-text: #F7F6F2;
    --zone-muted: #A9A79E;
    --zone-line: rgba(247, 246, 242, 0.18);
    --ok-bg: #E9F0E3;
    --ok-bd: #C6D6BC;
    --err-bg: #F4E4DC;
    --err-bd: #DDB8A9;
    --scroll-thumb: #C9C7BD;
    --shadow: none;
    color-scheme: light;
}

/* чернильная тема — вторичная (text 15.4, muted 6.2, киноварь 5.2) */
[data-theme="dark"] {
    --bg: #161512;
    --panel: #1D1C18;
    --surface: #1F1E1A;
    --ink: #EDECE6;
    --text: #E6E4DD;
    --muted: #99978E;
    --ink-rgb: 237, 236, 230;
    --accent: #E85A33;
    --accent-strong: #F07A57;
    --accent-rgb: 232, 90, 51;
    --on-accent: #161512;
    --line: #33312B;
    --line-strong: #EDECE6;
    --hover: #232219;
    --zone: #101009;
    --zone-text: #EDECE6;
    --zone-muted: #99978E;
    --zone-line: rgba(237, 236, 230, 0.18);
    --ok-bg: #232A1E;
    --ok-bd: #42523A;
    --err-bg: #33201A;
    --err-bd: #6B4433;
    --scroll-thumb: #3A3830;
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
}

/* совместимость с panel.css (панель всегда светлая) */
:root {
    --light: #EDEAE4;
    --light-muted: #B5AFA4;
    --dark-bg: #221E19;
    --dark-text: #EDEAE4;
    --dark-muted: #B5AFA4;
}

/* размер читательского текста: 3 шага */
html.uf-fs-l { --reading: 1.15; }
html.uf-fs-xl { --reading: 1.3; }

/* ============================================================
   БАЗА
   ============================================================ */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--on-accent); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.icon { width: 26px; height: 26px; }

.container { max-width: var(--container-w); margin: 0 auto; padding-inline: var(--sp-4); }

/* ============================================================
   АТОМЫ
   ============================================================ */

.kicker {
    font-family: var(--mono);
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 var(--sp-2);
}
.kicker.light, .meta.light { color: var(--zone-muted); }
.kicker a:hover { color: var(--accent-strong); }
.kicker.light a:hover { color: var(--zone-text); }
.kicker a { display: inline-block; padding: 6px 4px; margin: -6px -4px; }

.meta {
    font-family: var(--mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin: var(--sp-1) 0 0;
}

.tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: var(--fs-tag);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 3px 10px;
    margin-bottom: var(--sp-2);
}

mark {
    background: rgba(var(--accent-rgb), 0.18);
    color: var(--accent-strong);
    padding: 0 3px;
}

/* ============================================================
   ШАПКА: фиксированная планка с волосяной линией
   ============================================================ */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--line-strong);
}
/* смысловые зоны: издание (лого+дата) → навигация → сервис → меню */
.topbar-inner {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    height: var(--header-h);
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 var(--sp-4);
}
.topbar-brand-zone {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    margin-right: auto;
    min-width: 0;
}
.topbar-date {
    margin: 0;
    padding-left: var(--sp-5);
    border-left: 1px solid var(--line);
    font-family: var(--mono);
    font-size: var(--fs-label);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}
.topbar-links { display: none; gap: var(--sp-5); }
.topbar-links a {
    font-family: var(--mono);
    font-size: var(--fs-micro);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 6px 0;
    white-space: nowrap;
    transition: color var(--t-fast);
}
.topbar-links a:hover { color: var(--accent); }
.topbar-sep { width: 1px; height: 22px; background: var(--line); flex: none; }
@media (max-width: 1279.98px) {
    .topbar-date { display: none; }
}
@media (max-width: 899.98px) {
    .topbar-sep { display: none; }
}
@media (min-width: 900px) {
    .topbar-links { display: flex; }
}
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); }
.brand-logo { height: 30px; width: auto; }
/* логотип белый по исходнику: на светлой шапке и в светлом меню — чёрный */
.topbar .brand-logo, .nav-overlay .brand-logo { filter: invert(1); }
[data-theme="dark"] .topbar .brand-logo,
[data-theme="dark"] .nav-overlay .brand-logo { filter: none; }
.brand-sub {
    font-family: var(--mono);
    font-size: var(--fs-tag);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}

.topbar-right { display: flex; align-items: center; gap: var(--sp-3); }

.topbar-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: color var(--t-fast);
}
.topbar-search .icon { width: 20px; height: 20px; }
.topbar-search:hover { color: var(--accent); }

.topbar-theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: var(--sp-1);
    cursor: pointer;
    color: var(--muted);
    transition: color var(--t-fast), transform var(--t-med);
}
.topbar-theme .icon { width: 20px; height: 20px; }
.topbar-theme:hover { color: var(--accent); transform: rotate(20deg); }
.topbar-theme .icon-sun-wrap { display: none; }
.topbar-theme .icon-moon-wrap { display: flex; }
.topbar-theme span { display: flex; }
[data-theme="dark"] .topbar-theme .icon-sun-wrap { display: flex; }
[data-theme="dark"] .topbar-theme .icon-moon-wrap { display: none; }

/* размер текста: кнопка + мини-меню */
.fs-menu-wrap { position: relative; }
.topbar-fs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    padding: var(--sp-1) 2px;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    transition: color var(--t-fast);
}
html.uf-fs-l .topbar-fs,
html.uf-fs-xl .topbar-fs { color: var(--accent); }
.topbar-fs:hover, .topbar-fs[aria-expanded="true"] { color: var(--accent); }
.fs-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    padding: 6px;
    z-index: 120;
}
.fs-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    width: 100%;
    background: transparent;
    border: 0;
    padding: 9px 12px;
    font: inherit;
    font-size: var(--fs-small);
    color: var(--muted);
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
}
.fs-menu button:hover { background: var(--hover); color: var(--ink); }
.fs-menu button:focus-visible { outline-offset: -3px; }
.fs-menu button[aria-checked="true"] { color: var(--ink); }
.fs-menu button[aria-checked="true"]::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
}

/* кнопка меню: квадрат с линиями */
.burger-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    font-family: var(--mono);
    font-size: var(--fs-micro);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    transition: background var(--t-fast), color var(--t-fast);
}
.burger-btn .icon { width: 16px; height: 16px; }
.burger-btn:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 419.98px) {
    .burger-btn span { display: none; }
    .burger-btn { padding: 8px 10px; }
    .brand-sub { display: none; }
}

/* ============================================================
   ПОЛНОЭКРАННОЕ МЕНЮ: лист-указатель на бумаге
   ============================================================ */

.nav-overlay[hidden] { display: none; }
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* раскрытие: лист проявляется, пункты выходят каскадом */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s;
}
.nav-overlay-main > *,
.nav-overlay-side {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.nav-overlay.is-open .nav-overlay-main > *,
.nav-overlay.is-open .nav-overlay-side { opacity: 1; transform: none; }
.nav-overlay.is-open .nav-overlay-main > *:nth-child(1) { transition-delay: 0.05s; }
.nav-overlay.is-open .nav-overlay-main > *:nth-child(2) { transition-delay: 0.09s; }
.nav-overlay.is-open .nav-overlay-main > *:nth-child(3) { transition-delay: 0.13s; }
.nav-overlay.is-open .nav-overlay-main > *:nth-child(4) { transition-delay: 0.17s; }
.nav-overlay.is-open .nav-overlay-main > *:nth-child(5) { transition-delay: 0.21s; }
.nav-overlay.is-open .nav-overlay-main > *:nth-child(6) { transition-delay: 0.25s; }
.nav-overlay.is-open .nav-overlay-main > *:nth-child(7) { transition-delay: 0.29s; }
.nav-overlay.is-open .nav-overlay-main > *:nth-child(n + 8),
.nav-overlay.is-open .nav-overlay-side { transition-delay: 0.34s; }
.nav-overlay .brand { color: var(--ink); }
/* в листе меню логотип крупнее шапочного */
.nav-overlay .brand-logo { height: 46px; }
@media (max-width: 639.98px) {
    .nav-overlay .brand-logo { height: 38px; }
}
.nav-overlay-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-4) var(--sp-5);
    border-bottom: 1px solid var(--line-strong);
}
.nav-overlay-date {
    margin-left: auto;
    margin-right: var(--sp-4);
    font-family: var(--mono);
    font-size: var(--fs-label);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.nav-overlay-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
}
.nav-overlay-close .icon { width: 18px; height: 18px; }
.nav-overlay-close:hover { background: var(--ink); color: var(--bg); }
.nav-overlay-body {
    flex: 1;
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: var(--sp-8) var(--sp-5) var(--sp-14);
    display: flex;
    flex-direction: column;
    gap: var(--sp-8);
    justify-content: center;
    align-items: stretch;
}
.nav-overlay-main {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    counter-reset: nav;
}
.nav-overlay-item {
    font-family: var(--serif);
    font-size: clamp(24px, 4.2vw, 38px);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.1;
    color: var(--ink);
    display: flex;
    align-items: baseline;
    gap: var(--sp-4);
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--line);
    transition: color var(--t-fast), padding-left var(--t-fast);
    counter-increment: nav;
}
.nav-overlay-item::before {
    content: counter(nav, decimal-leading-zero);
    font-family: var(--mono);
    font-size: var(--fs-label);
    color: var(--accent);
    letter-spacing: 0.1em;
    min-width: 2.2em;
}
.nav-overlay-item small {
    margin-left: auto;
    font-family: var(--mono);
    font-size: var(--fs-label);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.nav-overlay-item:hover { color: var(--accent); padding-left: var(--sp-2); }
.nav-overlay-group {
    font-family: var(--mono);
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    padding-top: var(--sp-5);
}
.nav-overlay-subs { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-6); }

/* боковая колонка разворота: превью свежего номера + каналы */
.nav-overlay-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-4);
    align-self: center;
}
.nav-overlay-teaser {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    width: 100%;
    max-width: 380px;
}
.nt-photo {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--line);
}
.nt-photo img { width: 100%; height: 100%; object-fit: cover; }
.nt-body { display: flex; flex-direction: column; gap: var(--sp-1); }
.nt-title {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    transition: color var(--t-fast);
}
.nav-overlay-teaser:hover .nt-title { color: var(--accent); }
.nav-overlay-side .nav-overlay-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-1);
    border-top: 0;
    padding-top: 0;
}
@media (min-width: 1024px) {
    .nav-overlay-body { flex-direction: row; gap: var(--sp-14); }
    .nav-overlay-main { flex: 1 1 60%; }
    .nav-overlay-side {
        flex: 0 0 340px;
        border-left: 1px solid var(--line-strong);
        padding-left: var(--sp-10);
        align-self: stretch;
        justify-content: center;
    }
}
.nav-overlay-sub {
    font-family: var(--mono);
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    padding: 5px 0;
    transition: color var(--t-fast);
}
.nav-overlay-sub:hover { color: var(--accent); }
.nav-overlay-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2) var(--sp-5);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--line-strong);
}
.nav-overlay-meta a,
.nav-overlay-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--mono);
    font-size: var(--fs-label);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 6px 2px;
    transition: color var(--t-fast);
}
.nav-overlay-meta a:hover { color: var(--accent); }
.nav-overlay-meta .icon, .nav-overlay-phone .icon { width: 16px; height: 16px; }

/* ============================================================
   ГЕРОЙ: сплит «текст слева — фото справа», слайдер сохранён
   ============================================================ */

.hero {
    position: relative;
    margin-top: var(--header-h);
    /* первый блок всегда занимает ровно один экран (с учётом шапки);
       svh — стабильная высота на телефонах с адресной строкой */
    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
    display: flex;
    flex-direction: column; /* трек сверху растягивается, панель управления с полосой — внизу */
    overflow: hidden;
    touch-action: pan-y;
    border-bottom: 1px solid var(--line-strong);
}
.hero-track {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    transition: transform 0.65s var(--ease-out);
    will-change: transform;
}
.hero-slide { flex: 0 0 100%; position: relative; display: flex; }
.hero-slide > .hero-grid { flex: 1 1 auto; }
.hero-controls { flex: 0 0 auto; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: var(--container-w);
    margin: 0 auto;
}
.hero-media {
    position: relative;
    overflow: hidden;
    max-height: 60vh;
    border-bottom: 1px solid var(--line);
}
.hero-media img {
    width: 100%;
    height: 100%;
    max-height: 60vh;
    object-fit: cover;
    object-position: 50% 50%;
}
.hero-copy {
    padding: var(--sp-6) var(--sp-4);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
    will-change: transform;
}
.hero-title {
    font-family: var(--serif);
    font-size: clamp(36px, 6.4vw, 80px);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.02;
    max-width: 15ch;
    margin: 0;
    color: var(--ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}
.hero-title a:hover { color: var(--accent); }
.hero-lead {
    max-width: 48ch;
    font-size: calc(16px * var(--reading, 1));
    color: var(--muted);
    margin: 0;
}
.hero .kicker { margin: 0; }

/* управление слайдером: конструктивная полоса под героем */
.hero-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding-block: var(--sp-3);
    border-top: 1px solid var(--line);
    position: relative;
}
.hero-arrows { display: flex; gap: var(--sp-2); }
.hero-status { display: flex; align-items: center; gap: var(--sp-5); }
.hero-counter {
    font-family: var(--mono);
    font-size: var(--fs-label);
    letter-spacing: 0.14em;
    color: var(--muted);
}
.hero-counter b { color: var(--accent); font-weight: 500; }
.hero-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: var(--line);
    overflow: hidden;
}
.hero-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent);
}
.hero-progress span.is-running { animation: hero-run 8s linear both; }
.hero-progress.is-paused span { animation-play-state: paused; }
@keyframes hero-run { from { width: 0; } to { width: 100%; } }
.hero-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.hero-arrow .icon { width: 18px; height: 18px; }
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hero-dots { display: flex; gap: var(--sp-2); }
.hero-dot {
    position: relative;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}
.hero-dot::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1.5px solid var(--muted);
    transition: background var(--t-med), border-color var(--t-med);
}
.hero-dot:hover::before { border-color: var(--accent); }
.hero-dot.is-on::before { background: var(--accent); border-color: var(--accent); }
.hero-dot.is-on { width: 34px; }

/* ============================================================
   КНОПКИ: острые, инверсия на hover
   ============================================================ */

.btn-ghost {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--ink);
    font-size: var(--fs-btn);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.btn-solid {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: var(--fs-btn);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: background var(--t-fast), color var(--t-fast);
}
.btn-solid:hover { background: var(--accent-strong); color: var(--on-accent); }

.btn-main {
    font: inherit;
    font-size: var(--fs-btn);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 12px 30px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    border: 0;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast);
}
.btn-main:hover { background: var(--accent-strong); }

/* ============================================================
   СЕКЦИИ: видимый каркас
   ============================================================ */

.section { padding-block: var(--sp-14) var(--sp-4); }

.section-head {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
    margin-bottom: var(--sp-8);
    padding-bottom: var(--sp-4);
    border-bottom: 1px solid var(--line-strong);
}
.section-head :is(h1, h2) {
    font-family: var(--serif);
    font-size: clamp(28px, 3.4vw, 46px);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.04;
    margin: 0;
    color: var(--ink);
}
.section-head .kicker { margin: 0; }

.see-all {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    font-family: var(--mono);
    font-size: var(--fs-micro);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color var(--t-fast);
}
.see-all:hover { color: var(--accent); }
.see-all.light { color: var(--zone-muted); }
.see-all.light:hover { color: var(--zone-text); }
.see-all .arr { display: inline-block; margin-left: 6px; transition: transform 0.3s ease; }
a:hover .see-all .arr, .see-all:hover .arr { transform: translateX(5px); }

/* ============================================================
   ИНДЕКС «СВЕЖИЙ НОМЕР»
   ============================================================ */

.index-list { display: flex; flex-direction: column; }
.index-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-2) var(--sp-4);
    padding: var(--sp-5) 0;
    border-top: 1px solid var(--line);
    align-items: center;
}
.index-row:last-child { border-bottom: 1px solid var(--line); }
.index-num {
    font-family: var(--mono);
    font-size: var(--fs-label);
    color: var(--accent);
}
.index-title {
    font-family: var(--serif);
    font-size: clamp(21px, 2.6vw, 32px);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.1;
    margin: var(--sp-1) 0 0;
    color: var(--ink);
    transition: color var(--t-fast);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.index-row:hover .index-title { color: var(--accent); }
.index-meta { margin-top: var(--sp-1); }
.index-thumb {
    grid-row: 1;
    width: 96px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    justify-self: end;
    perspective: 500px;
    border: 1px solid var(--line);
}
.index-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease-out); }
.index-row:hover .index-thumb img { transform: rotateY(-12deg) rotateX(5deg) scale(1.06); }

/* ============================================================
   ФИЧА: асимметрия, фото с внутренним параллаксом
   ============================================================ */

.feature {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
    border: 1px solid var(--line);
}
/* грид-дети с aspect-ratio не сжимаются ниже min-content — разрешаем */
.feature > *, .article-grid > *, .rubric-grid > *, .tilt-grid > * { min-width: 0; }
.feature-frame {
    position: relative;
    width: 100%;
    align-self: start;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}
.feature-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(var(--drift, 0px)) scale(1.08);
}
.feature-body {
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
    justify-content: center;
}
.feature-title {
    font-family: var(--serif);
    font-size: clamp(28px, 3.4vw, 46px);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.04;
    margin: var(--sp-1) 0 0;
    color: var(--ink);
    transition: color var(--t-fast);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.feature:hover .feature-title { color: var(--accent); }
.feature-lead {
    font-size: calc(16px * var(--reading, 1));
    line-height: 1.7;
    color: var(--muted);
    max-width: 48ch;
    margin: 0;
}

/* ============================================================
   TILT-КАРТОЧКИ (интервью): плоские листы с рамкой
   ============================================================ */

.tilt-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
.tilt-card { perspective: 800px; display: block; }
.tilt-card-inner {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    height: 100%;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.2s ease-out, border-color var(--t-fast);
}
.tilt-card:hover .tilt-card-inner { border-color: var(--accent); }
.tilt-photo { aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line); }
.tilt-photo img { width: 100%; height: 100%; object-fit: cover; }
.tilt-caption { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.tilt-caption h3 {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.18;
    margin: var(--sp-1) 0 0;
    color: var(--ink);
    transition: color var(--t-fast);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.tilt-card:hover h3 { color: var(--accent); }
.tilt-caption .tilt-lead { font-size: calc(14px * var(--reading, 1)); color: var(--muted); margin: 0; }

/* ============================================================
   СЕТКА КАРТОЧЕК
   ============================================================ */

.article-grid, .rubric-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-5);
}
.article-card { display: flex; flex-direction: column; }
.article-card:hover h3 { color: var(--accent); }
.article-photo {
    aspect-ratio: 4 / 3;
    max-height: 60vh;
    overflow: hidden;
    margin-bottom: var(--sp-3);
    background: var(--panel);
    border: 1px solid var(--line);
}
.article-photo img { width: 100%; height: 100%; object-fit: cover; }
.article-card h3 {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.22;
    margin: var(--sp-1) 0 0;
    color: var(--ink);
    transition: color var(--t-fast);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.article-author { font-size: var(--fs-small); color: var(--muted); margin: var(--sp-1) 0 0; }

/* ============================================================
   КОЛОФОН: чёрная плашка
   ============================================================ */

.colophon-block {
    position: relative;
    margin-top: var(--sp-18);
    background: var(--zone);
    color: var(--zone-muted);
    overflow: hidden;
}
.colophon-mark {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 480px;
    background: url('/assets/img/logo-mark.png') center / contain no-repeat;
    opacity: 0.05;
    pointer-events: none;
}
.colophon-inner {
    position: relative;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: var(--sp-18) var(--sp-4);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-10);
}
.colophon-title {
    font-family: var(--sans);
    font-size: clamp(30px, 4.4vw, 60px);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    line-height: 1.0;
    color: var(--zone-text);
    margin: var(--sp-2) 0 var(--sp-4);
    max-width: 16ch;
}
.colophon-note { max-width: 44ch; margin: 0 0 var(--sp-5); }
.colophon-channels { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); }
.colophon-channels a {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    border: 1px solid var(--zone-line);
    border-radius: 999px;
    padding: 9px 18px;
    font-family: var(--mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--zone-muted);
    transition: color var(--t-fast), border-color var(--t-fast);
}
.colophon-channels a .icon { width: 16px; height: 16px; }
.colophon-channels a:hover { color: var(--zone-text); border-color: var(--zone-text); }

/* ============================================================
   ПОДВАЛ
   ============================================================ */

.footer { background: var(--zone); color: var(--zone-muted); padding: var(--sp-10) 0 var(--sp-6); }
.footer-grid {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 var(--sp-4);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    align-items: center;
}
.footer-brand { display: inline-flex; align-items: center; gap: var(--sp-3); }
.footer-logo { height: 28px; width: auto; }
.footer-tag {
    font-family: var(--mono);
    font-size: var(--fs-tag);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--zone-muted);
}
.footer-col { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.footer-col a {
    font-family: var(--mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--zone-muted);
    padding: 6px 0;
    transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--zone-text); }
.footer-col a .icon { width: 15px; height: 15px; }
.footer-bottom {
    max-width: var(--container-w);
    margin: var(--sp-6) auto 0;
    padding: var(--sp-4) var(--sp-4) 0;
    border-top: 1px solid var(--zone-line);
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    text-align: center;
    font-family: var(--mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.footer-phone { font-size: var(--fs-small); padding: 5px 0; }
.footer-dev {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    color: var(--zone-muted);
    transition: color var(--t-fast);
}
.footer-dev:hover { color: var(--zone-text); }
.footer-dev .icon { width: 15px; height: 15px; }

/* ============================================================
   КНОПКА «НАВЕРХ», ПРОГРЕСС
   ============================================================ */

.up-btn {
    position: fixed;
    right: var(--sp-4);
    bottom: var(--sp-4);
    width: 46px;
    height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    translate: 0 12px;
    transition: opacity var(--t-med), translate var(--t-med), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.up-btn.show { opacity: 1; pointer-events: auto; translate: 0 0; }
.up-btn:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.up-btn .icon { width: 18px; height: 18px; }

.read-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    z-index: 150;
    transition: width 0.1s linear;
}

/* ============================================================
   СТРАНИЦЫ
   ============================================================ */

.page { padding: calc(var(--header-h) + var(--sp-14)) 0 var(--sp-24); }

.narrow { max-width: 760px; }

.page-title {
    font-family: var(--serif);
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.04;
    margin: 0 0 var(--sp-3);
    color: var(--ink);
}

/* водяной знак (страница «О журнале») */
.page-mark-host { position: relative; overflow: hidden; }
.page-mark {
    position: absolute;
    top: var(--sp-8);
    right: -110px;
    width: 440px;
    height: 460px;
    background: url('/assets/img/logo-mark.png') center / contain no-repeat;
    opacity: 0.04;
    pointer-events: none;
}
[data-theme="dark"] .page-mark { filter: invert(1); opacity: 0.05; }
.page-mark-host > *:not(.page-mark) { position: relative; }
@media (max-width: 1279.98px) {
    .page-mark { display: none; }
}

/* ---------- статья ---------- */

.article-wrap { max-width: var(--container-w); margin: 0 auto; padding: 0 var(--sp-4); }
.article { max-width: 780px; margin: 0 auto; }

.article-toc { font-family: var(--sans); }
.article-toc summary {
    cursor: pointer;
    font-family: var(--mono);
    font-size: var(--fs-btn);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
.article-toc summary::-webkit-details-marker { display: none; }
.article-toc summary::after { content: '+'; font-family: var(--mono); color: var(--accent); }
.article-toc[open] summary::after { content: '−'; }
.article-toc ol {
    list-style: none;
    counter-reset: toc;
    padding: 0;
    margin: var(--sp-3) 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}
.article-toc li { counter-increment: toc; }
.article-toc a {
    display: flex;
    gap: var(--sp-3);
    font-size: var(--fs-small);
    line-height: 1.45;
    color: var(--muted);
    transition: color var(--t-fast);
}
.article-toc a::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--mono);
    font-size: var(--fs-label);
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    padding-bottom: 1px;
    min-width: 2em;
    transition: color var(--t-fast), border-color var(--t-fast);
}
.article-toc a:hover, .article-toc a.is-on { color: var(--accent); }
.article-toc a:hover::before, .article-toc a.is-on::before { color: var(--accent); border-color: var(--accent); }
.article-body h2 { scroll-margin-top: 80px; }

@media (max-width: 1279.98px) {
    .article-toc {
        max-width: 780px;
        margin: 0 auto var(--sp-6);
        background: var(--surface);
        border: 1px solid var(--line);
        padding: var(--sp-4) var(--sp-5);
    }
}
@media (min-width: 1280px) {
    .article-toc { position: absolute; left: calc(50% + 440px); top: var(--sp-14); width: 250px; }
    .article-toc summary { pointer-events: none; }
    .article-toc ol { position: sticky; top: 90px; }
}

.article-back { margin: 0 0 var(--sp-5); }
.article-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: var(--fs-tag);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.article-back a::before { content: '\2190'; color: var(--accent); }
.article-back a:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.article-title {
    font-family: var(--serif);
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.04;
    margin: var(--sp-1) 0 var(--sp-3);
    color: var(--ink);
}
.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-5);
    font-family: var(--mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line-strong);
    padding: var(--sp-3) 0 var(--sp-4);
    margin-bottom: var(--sp-5);
}

/* кнопки «поделиться» */
.share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-3);
    margin-top: var(--sp-10);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--line-strong);
}
.share-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2);
    margin: -6px 0 var(--sp-5);
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 12px 26px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-size: var(--fs-btn);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), translate var(--t-fast);
}
.share-btn .icon { width: 17px; height: 17px; flex: none; }
.share-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); translate: 0 -2px; }
.share-copy.copied { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.share-sm { padding: 8px 14px; font-size: var(--fs-tag); letter-spacing: 0.14em; gap: 8px; }
.share-sm .icon { width: 15px; height: 15px; }

.article-lead {
    font-size: calc(20px * var(--reading, 1));
    line-height: 1.55;
    color: var(--ink);
    margin: 0 0 var(--sp-6);
    max-width: 40ch;
}
.article-cover {
    width: 100%;
    max-height: min(480px, 60vh);
    object-fit: cover;
    border: 1px solid var(--line);
    margin: 0 0 var(--sp-8);
}
.article-body { counter-reset: sec; font-size: calc(17px * var(--reading, 1)); line-height: 1.8; max-width: var(--measure); }
.article-body > p:first-of-type::first-letter {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 4.2em;
    float: left;
    line-height: 0.82;
    padding: 6px 12px 0 0;
    color: var(--accent);
}
.article-body h2 { counter-increment: sec; }
.article-body h2::before {
    content: counter(sec, decimal-leading-zero);
    display: block;
    font-family: var(--mono);
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: 0.24em;
    color: var(--accent);
    margin-bottom: var(--sp-1);
}
.article-body h2, .article-body h3, .article-body h4 {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 1.6em 0 0.5em;
    color: var(--ink);
}
.article-body h2 { font-size: 26px; }
.article-body h3 { font-size: 20px; }
.article-body img { margin: var(--sp-3) auto; border: 1px solid var(--line); width: auto; max-width: 100%; max-height: 60vh; }

/* врезка-цитата: единственный серифный момент */
.article-body blockquote {
    margin: 2em 0;
    padding: var(--sp-4) 0;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    font-family: var(--serif);
    font-style: italic;
    font-size: calc(24px * var(--reading, 1));
    line-height: 1.45;
    color: var(--ink);
}

.article-body a:not(.btn-ghost) {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(var(--accent-rgb), 0.45);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
.article-body a:not(.btn-ghost):hover { color: var(--accent-strong); text-decoration-color: var(--accent-strong); }

.read-also { max-width: 1080px; margin: var(--sp-18) auto 0; }

/* ---------- рубрики ---------- */

.rubric-hero { padding-top: calc(var(--header-h) + var(--sp-10)); }
.rubric-hero .section-head { border-bottom: 0; padding-bottom: 0; margin-bottom: var(--sp-8); }

.rubrics-rows { display: flex; flex-direction: column; }
.rubrics-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-5) 0;
    border-top: 1px solid var(--line);
    font-family: var(--serif);
    font-size: clamp(24px, 3.4vw, 42px);
    font-weight: 600;
    letter-spacing: 0;
    color: var(--ink);
    transition: color var(--t-fast), padding-left var(--t-fast);
}
.rubrics-row:last-child { border-bottom: 1px solid var(--line); }
.rubrics-row:hover { color: var(--accent); padding-left: var(--sp-3); }
.rubrics-row small {
    font-family: var(--mono);
    font-size: var(--fs-label);
    font-weight: 400;
    letter-spacing: 0.14em;
    color: var(--muted);
    white-space: nowrap;
}
@media (max-width: 479.98px) {
    .rubrics-row { flex-wrap: wrap; }
    .rubrics-row small { white-space: normal; }
}

/* ---------- поиск ---------- */

.narrow-search { max-width: 900px; }
.search-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    margin: var(--sp-4) 0 var(--sp-8);
}
.search-form input[type="search"] {
    flex: 1;
    font-family: var(--sans);
    font-size: 24px;
    font-weight: 500;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    padding: 12px 2px;
    outline: none;
    transition: border-color var(--t-fast);
}
.search-form input[type="search"]::placeholder { color: var(--muted); font-weight: 400; }
.search-form input[type="search"]:focus { border-bottom-color: var(--accent); }
.count-note { font-family: var(--mono); font-size: var(--fs-small); color: var(--muted); }
.search-chips { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 9px 20px 9px var(--sp-4);
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text);
    transition: border-color var(--t-fast), color var(--t-fast);
}
.chip .icon { width: 19px; height: 19px; color: var(--muted); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.search-results { display: flex; flex-direction: column; gap: var(--sp-4); }
.search-hit {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    background: var(--surface);
    border: 1px solid var(--line);
    padding: var(--sp-4);
    transition: border-color var(--t-fast), translate 0.3s ease;
}
.search-hit:hover { border-color: var(--accent); translate: 0 -2px; }
.search-hit img { width: 100%; height: 180px; object-fit: cover; flex-shrink: 0; }
.search-hit-body { min-width: 0; }
.search-hit h3 {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    margin: var(--sp-1) 0 var(--sp-1);
    color: var(--ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.search-lead { font-size: var(--fs-small); color: var(--muted); margin: 0; }
.search-empty { font-size: 15px; color: var(--muted); max-width: 60ch; }
.search-hint { font-size: var(--fs-small); color: var(--muted); }

/* ---------- контакты и формы ---------- */

.contact-cols { display: grid; grid-template-columns: 1fr; gap: var(--sp-10); align-items: start; }
.contact-lead {
    font-size: calc(17px * var(--reading, 1));
    line-height: 1.7;
    max-width: 60ch;
    margin: 0 0 var(--sp-6);
}
.contact-h {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.18;
    margin: var(--sp-8) 0 var(--sp-4);
    color: var(--ink);
}
.contact-cols .contact-h:first-child { margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: var(--sp-4) 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.contact-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 15px; }
.contact-list li a {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(var(--accent-rgb), 0.45);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
.contact-list li a:hover { color: var(--accent-strong); text-decoration-color: var(--accent-strong); }
.contact-list li a .icon { width: 20px; height: 20px; color: var(--muted); }
.contact-list li small { font-size: var(--fs-small); color: var(--muted); padding-left: 32px; }

.contact-routes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-5); }
.contact-routes b { display: block; font-size: 15px; font-weight: 500; margin-bottom: var(--sp-1); }
.contact-routes span { display: block; font-size: calc(14px * var(--reading, 1)); line-height: 1.65; color: var(--muted); max-width: 52ch; }

.contact-steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: flex; flex-direction: column; gap: var(--sp-4); }
.contact-steps li { counter-increment: step; position: relative; padding-left: 44px; font-size: calc(14px * var(--reading, 1)); line-height: 1.6; color: var(--muted); }
.contact-steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 1px;
    font-family: var(--mono);
    font-size: var(--fs-label);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--accent);
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 2px;
}
.contact-steps b { color: var(--text); font-weight: 500; }

.form-panel { scroll-margin-top: 80px; }
.form-panel {
    max-width: 560px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 8px 8px 0 0 var(--accent);
    overflow: hidden;
}
.form-panel-head {
    padding: var(--sp-5) var(--sp-6);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-3);
}
.form-panel-title {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
    color: var(--ink);
}
.form-panel-body { padding: var(--sp-6) var(--sp-6) var(--sp-6); }
.form-panel label {
    display: block;
    font-family: var(--mono);
    font-size: var(--fs-micro);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--sp-5);
}
.form-panel input,
.form-panel textarea {
    width: 100%;
    font: inherit;
    font-size: 17px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 16px;
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    margin-top: var(--sp-2);
}
.form-panel input::placeholder,
.form-panel textarea::placeholder { color: var(--muted); opacity: 0.7; }
.form-panel input:focus,
.form-panel textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}
.form-panel textarea {
    resize: vertical;
    min-height: 130px;
}
.form-panel .btn-main { width: 100%; padding-block: 14px; font-size: var(--fs-label); }
.notice-ok, .notice-err { padding: var(--sp-3) var(--sp-4); font-size: 14px; margin-bottom: var(--sp-4); border-radius: 12px; }
.notice-ok { background: var(--ok-bg); border: 1px solid var(--ok-bd); }
.notice-err { background: var(--err-bg); border: 1px solid var(--err-bd); }
.field-err { border-color: var(--accent) !important; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15) !important; }
.field-msg { display: block; font-style: normal; font-size: var(--fs-small); color: var(--accent); margin-top: 5px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* страница входа в панель */
.panel-login {
    max-width: 400px;
    margin: var(--sp-14) auto;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    padding: var(--sp-10) var(--sp-8);
}
.panel-login input {
    width: 100%;
    font: inherit;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--line-strong);
    padding: 11px 14px;
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    margin-top: var(--sp-1);
}
.panel-login input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15); }
.panel-login label {
    display: block;
    font-size: var(--fs-micro);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: var(--sp-5);
}

/* 404 */
.nf-title {
    font-family: var(--sans);
    font-size: clamp(80px, 18vw, 220px);
    font-weight: 500;
    line-height: 0.9;
    color: var(--accent);
    margin: 0 0 var(--sp-3);
}

/* ============================================================
   АНИМАЦИИ — двусторонние появления
   ============================================================ */

html.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
html.js .reveal.in-view {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
html.js .stagger > .reveal:nth-child(2) { transition-delay: 70ms; }
html.js .stagger > .reveal:nth-child(3) { transition-delay: 140ms; }
html.js .stagger > .reveal:nth-child(4) { transition-delay: 210ms; }
html.js .stagger > .reveal:nth-child(5) { transition-delay: 280ms; }
html.js .stagger > .reveal:nth-child(6) { transition-delay: 350ms; }

@keyframes fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}
@keyframes word-up {
    from { opacity: 0; transform: translateY(0.55em); }
    to   { opacity: 1; transform: none; }
}
.hero-title .w { display: inline-block; }
.hero-slide.is-active .kicker { animation: fade-up 0.7s 0.15s both; }
.hero-slide.is-active .hero-title .w {
    animation: word-up 0.6s calc(0.25s + var(--i) * 60ms) both var(--ease-out);
}
.hero-slide.is-active .hero-lead { animation: fade-up 0.8s 0.45s both; }
.hero-slide.is-active .btn-ghost { animation: fade-up 0.8s 0.62s both; }

/* плавная смена темы: класс на полсекунды при переключении (main.js) */
html.theme-anim,
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
    transition:
        background-color 0.45s ease,
        color 0.45s ease,
        border-color 0.45s ease,
        box-shadow 0.45s ease,
        fill 0.45s ease,
        stroke 0.45s ease,
        opacity 0.45s ease,
        filter 0.45s ease,
        transform 0.3s var(--ease-out) !important;
    transition-delay: 0s !important;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
    html.js .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (min-width: 680px) {
    .container, .topbar-inner, .footer-grid { padding-inline: var(--sp-6); }
    .article-wrap { padding-inline: var(--sp-6); }

    .hero-grid { grid-template-columns: 7fr 5fr; }
    .hero-copy { padding: var(--sp-8) var(--sp-6); border-right: 1px solid var(--line); }
    .hero-media { border-bottom: 0; }

    .index-row { grid-template-columns: 3.2em 1fr 96px; }
    .index-thumb { grid-row: auto; }
    .index-row .index-title { margin: 0; }

    .feature { grid-template-columns: 7fr 5fr; }
    .feature-frame { border-bottom: 0; border-right: 1px solid var(--line); }
    .feature-body { padding: var(--sp-8); }

    .tilt-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid, .rubric-grid { grid-template-columns: repeat(2, 1fr); }
    .search-form { flex-direction: row; align-items: flex-end; }
    .search-hit { flex-direction: row; padding: var(--sp-4) var(--sp-5); }
    .search-hit img { width: 132px; height: 100px; }
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
    .section-head { flex-direction: row; align-items: baseline; justify-content: space-between; gap: var(--sp-5); }
    .up-btn { right: var(--sp-5); bottom: var(--sp-5); }
    .colophon-inner { grid-template-columns: 1fr 1fr; gap: var(--sp-10); }
}

@media (min-width: 1024px) {
    :root { --header-h: 72px; }
    .brand-logo { height: 38px; }
    .hero { margin-top: var(--header-h); }
    .tilt-grid { grid-template-columns: repeat(3, 1fr); }
    .article-grid, .rubric-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr auto; }
    .contact-cols { grid-template-columns: 1fr 1fr; gap: var(--sp-14); }
    .article-body { font-size: calc(18px * var(--reading, 1)); }
    .read-also { max-width: none; }
}

@media (min-width: 1280px) {
    .index-row { grid-template-columns: 4em 1fr auto 120px; }
    .index-thumb { width: 120px; }
}

/* печать */
@page { margin: 18mm 16mm; }
@media print {
    .topbar, .nav-overlay, .footer, .up-btn, .share, .share-top, .read-also,
    .read-progress, .hero-arrow, .hero-dots, .article-toc, .fs-menu, .colophon-block {
        display: none !important;
    }
    html, body { background: #FFFFFF !important; color: #1A1915 !important; font-size: 11pt; }
    a { color: inherit !important; text-decoration: none !important; }
    .page { padding-top: 0 !important; }
    .hero { margin-top: 0 !important; }
    .article-wrap, .article { max-width: 100% !important; padding: 0 !important; }
    .article-body { max-width: none !important; font-size: 11pt !important; }
    .article-title { font-size: 20pt !important; }
    .article-lead { font-size: 13pt !important; }
    .article-cover { max-height: none !important; border: 0 !important; }
    .article-body img { border: 0 !important; }
    .article-body blockquote, .article-body img, .article-lead { page-break-inside: avoid; }
}

/* ---------- соответствие 152-ФЗ: согласие и куки-уведомление ---------- */

.consent-row { margin: 4px 0 18px; }
.consent-row .check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12.5px;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
    cursor: pointer;
}
.consent-row .check a { color: var(--accent); text-decoration: underline; }
.consent-row .check input { width: auto; margin-top: 3px; flex: 0 0 auto; accent-color: var(--accent); }

.cookie-note {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 70;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 14px 20px;
    font-size: 13px;
    color: var(--text);
    max-width: 720px;
}
.cookie-note[hidden] { display: none; }
.cookie-note a { color: var(--accent); text-decoration: underline; }
.cookie-note button {
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 9px 20px;
    border-radius: 999px;
    border: 0;
    background: var(--ink);
    color: var(--bg);
    cursor: pointer;
    flex: 0 0 auto;
}
.cookie-note button:hover { background: var(--accent); color: #fff; }

/* ---------- просмотры, случайная статья, топ, авторы ---------- */

.meta-views { display: inline-flex; align-items: center; gap: 5px; }
.meta-views .icon { width: 14px; height: 14px; opacity: 0.75; }
.author-link { color: inherit; border-bottom: 1px solid var(--line); }
.author-link:hover { color: var(--accent); border-color: var(--accent); }
.author-stat { margin: 0 0 28px; display: flex; align-items: center; gap: 6px; }

.btn-random {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color .25s, border-color .25s, background .25s;
}
.btn-random .icon { width: 15px; height: 15px; }
.btn-random:hover { color: var(--accent); border-color: var(--accent); }

.top-rows { display: flex; flex-direction: column; }
.top-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 4px;
    border-top: 1px solid var(--line);
    transition: padding-left .3s ease, background .25s;
}
.top-row:last-child { border-bottom: 1px solid var(--line); }
.top-title {
    font-family: var(--serif);
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.2;
    color: var(--text);
}
.top-views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}
.top-views .icon { width: 15px; height: 15px; opacity: 0.7; }
.top-row:hover { padding-left: 12px; }
.top-row:hover .top-title { color: var(--accent); }
.index-meta .icon { width: 13px; height: 13px; vertical-align: -2px; opacity: 0.75; }
