/* Билет Самолёт Отпуск — design layer from the Claude Design mockup (Bilet Samolet Otpusk.dc.html). */
:root {
    --paper: #F5F2EB;
    --card: #FFFDF8;
    --sand: #ECE6DA;
    --ink: #1B2230;
    --text: #262D3A;
    --muted: #4A515E;
    --muted2: #5E6573;
    --line: #DCD5C7;
    --line2: #CFC7B7;
    --line3: #D2CABA;
    --signal: #D9622B;
    --signal-dark: #B54B1A;
    --night: #141A24;
    --night2: #1F2734;
    --night-line: #2C3546;
    --board: #F2B84B;
    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
    --gutter: clamp(16px, 4vw, 40px);
    --header-h: 73px;
    --anchor: calc(var(--header-h) + 24px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.da-site {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--signal-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 3px;
}
h1, h2, h3, h4 { color: inherit; text-wrap: balance; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }
p { text-wrap: pretty; }
button { font: inherit; cursor: pointer; }
.shell {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 100;
    background: var(--ink); color: var(--paper); padding: 12px 16px;
}
.skip-link:focus { left: 12px; color: var(--paper); }

/* Shared type */
.label, .kicker, .meta-mono {
    font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
}
.label { color: var(--muted2); }
.label.on-dark { color: #8A93A3; }
.kicker { color: var(--signal-dark); font-size: 10.5px; display: inline-block; align-self: flex-start; }
a.kicker { display: inline-flex; align-items: center; min-height: 44px; margin: -14px 0; }
.kicker.muted { color: var(--muted2); }
.meta { margin: 0; font-size: 13px; color: var(--muted2); }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.more-link {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
    font-size: 14px; font-weight: 600; color: var(--ink);
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.more-link:hover { color: var(--signal-dark); }
.block-title {
    font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.5vw, 72px);
    line-height: .95; letter-spacing: -0.005em; margin: 0;
}

/* Logo: three stops on one line, the last one orange */
.logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); flex: none; }
.mark {
    display: inline-grid; grid-template-columns: .75em auto; column-gap: .6em; row-gap: .1em; align-items: center;
    position: relative; font-family: var(--sans); font-weight: 700; line-height: 1; letter-spacing: -0.02em;
    font-size: 15px; color: var(--ink);
}
.mark-line { position: absolute; left: .315em; top: .5em; bottom: .6em; width: .12em; background: currentColor; }
.mark-ring { width: .75em; height: .75em; border-radius: 50%; border: .12em solid currentColor; background: var(--paper); position: relative; }
.mark-dot { width: .42em; height: .42em; border-radius: 50%; background: currentColor; justify-self: center; position: relative; }
.mark-sun { width: .75em; height: .75em; border-radius: 50%; background: var(--signal); position: relative; }
.mark-italic { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.28em; letter-spacing: 0; color: var(--signal-dark); line-height: .8; }
.mark.on-dark { font-size: 22px; color: #F5F2EB; }
.mark.on-dark .mark-ring { background: var(--night); }
.mark.on-dark .mark-italic { color: #F2A06E; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.main-nav { display: flex; align-items: center; gap: 2px; height: 100%; min-width: 0; }
.nav-link {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 11px;
    font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.nav-link.is-active { color: var(--signal-dark); box-shadow: inset 0 -2px 0 var(--signal); }
.nav-fresh { font-weight: 600; }
.more { height: 100%; display: flex; align-items: center; }
.more summary {
    list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 40px;
    margin-left: 10px; padding: 9px 16px 9px 18px; border-radius: 999px;
    background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer;
}
.more summary::-webkit-details-marker { display: none; }
.more summary:hover { background: #2A3344; }
.caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.more[open] .caret { transform: translateY(1px) rotate(-135deg); }
/* Anchored to the sticky header box, full width like the mockup. */
.more-panel {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 41;
    background: var(--card); border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px rgba(27, 34, 48, .35);
}
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 28px; padding-top: 36px; padding-bottom: 40px; }
.more-group { display: flex; flex-direction: column; gap: 10px; }
.more-mid { display: none; }
.more-name {
    display: block; padding: 8px 0 10px; border-bottom: 1px solid var(--ink);
    font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1;
}
.more-group p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.menu-toggle {
    display: none; align-items: center; gap: 10px; height: 44px; padding: 0 18px; flex: none;
    background: none; border: 1px solid var(--ink); border-radius: 999px;
    font-size: 14px; font-weight: 500; color: var(--ink); position: relative; z-index: 42;
}
.burger { display: flex; flex-direction: column; gap: 4px; }
.burger span { width: 16px; height: 1.5px; background: var(--ink); transition: transform .2s; }
.menu-toggle[aria-expanded="true"] .burger span:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
.mobile-menu {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 39;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: var(--paper); border-top: 1px solid var(--line); padding: 8px 0 60px;
}
.mobile-menu[hidden] { display: none; }
.sheet-link {
    display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif); font-size: clamp(26px, 7vw, 32px); font-weight: 600; line-height: 1.05;
}
.sheet-fresh .dot { width: 12px; height: 12px; }

/* Home: lead story */
.hero { padding-top: 28px; padding-bottom: 72px; }
.topline {
    display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding-bottom: 22px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted2);
}
.hero-grid { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 56px); }
.hero-main { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-shot { position: relative; display: block; aspect-ratio: 16 / 10; max-height: calc(100vh - 380px); min-height: 240px; overflow: hidden; background: #252D3D; }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; }
.flag {
    display: inline-block; align-self: flex-start; background: var(--signal); color: var(--ink);
    font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px;
}
.hero-shot .flag { position: absolute; top: 14px; left: 14px; }
.hero-main.no-img { border-top: 1px solid var(--ink); padding-top: 22px; }
.hero-copy { display: flex; flex-direction: column; gap: 14px; max-width: 860px; }
.hero-copy .kicker { font-size: 11.5px; }
.hero-title { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4.4vw, 62px); line-height: .98; letter-spacing: -0.01em; margin: 0; }
.no-img .hero-title { font-size: clamp(40px, 5.4vw, 76px); }
.hero-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); margin: 0; max-width: 640px; }
.hero-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; }
.label-rule {
    margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--ink);
    font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted2);
}
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.side-num { font-family: var(--serif); font-style: italic; font-size: 40px; line-height: .8; color: var(--signal); }
.side-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.side-title { font-size: 18px; font-weight: 600; line-height: 1.34; letter-spacing: -0.01em; }
.chips { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px;
    border: 1px solid var(--ink); border-radius: 999px; font-size: 13.5px;
}
.chip:hover { background: var(--ink); color: var(--paper); }

/* Home: season board (dark) */
.board { background: var(--night); color: #EDE9E0; }
.board > .shell { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.board-intro { display: flex; flex-direction: column; gap: 12px; }
.board-intro p { margin: 0; color: #A9B0BD; max-width: 520px; font-size: 15px; }
.seasons { display: flex; gap: 4px; background: var(--night2); padding: 4px; border-radius: 999px; max-width: 100%; }
.seasons button {
    border: 0; border-radius: 999px; min-height: 40px; padding: 8px 18px;
    font-size: 14px; font-weight: 500; background: transparent; color: #EDE9E0;
}
.seasons button:hover { color: var(--board); }
.seasons button[aria-selected="true"] { background: var(--board); color: var(--night); font-weight: 600; }
.board-cols, .board-row { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.board-cols {
    border-bottom: 1px solid var(--night-line); padding-bottom: 10px;
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #6E7787;
}
.board-row { align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--night-line); }
.board-cols span:nth-child(1), .b-place { flex: 1.4 1 220px; }
.board-cols span:nth-child(2), .b-when { flex: .7 1 110px; }
.board-cols span:nth-child(3), .b-why { flex: 1.4 1 220px; }
.board-cols span:nth-child(4), .b-how { flex: 1 1 180px; }
.b-place { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.01em; color: #F5F2EB; }
.b-when { font-family: var(--mono); font-size: 14px; color: var(--board); text-transform: uppercase; letter-spacing: .04em; }
.b-why { font-size: 15px; color: #C9CED7; }
.b-how { font-family: var(--mono); font-size: 12.5px; color: #8A93A3; }

/* Home: rubric blocks */
.block { padding-top: clamp(56px, 8vw, 104px); }
.block-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
    border-top: 1px solid var(--ink); padding-top: 18px; margin-bottom: 36px;
}
.block-head > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lead-grid { display: flex; flex-wrap: wrap; gap: 40px 32px; }
.lead-big { flex: 1.6 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.lead-shot { display: block; aspect-ratio: 4 / 3; max-height: 70vh; overflow: hidden; background: var(--sand); }
.lead-shot img { width: 100%; height: 100%; object-fit: cover; }
.lead-title { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.6vw, 46px); line-height: 1; margin: 0; }
.lead-big.no-img .lead-title { font-size: clamp(34px, 4.4vw, 58px); }
.lead-text { margin: 0; color: var(--muted); max-width: 560px; }
.lead-rest { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; }
.lead-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.lead-row.has-img { grid-template-columns: minmax(0, 1fr) 120px; }
.lead-row-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lead-row-title { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.lead-row-title a, .card-title a { display: block; }
.lead-row-shot { display: block; aspect-ratio: 1; overflow: hidden; }
.lead-row-shot img { width: 100%; height: 100%; object-fit: cover; }
.road-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 2px; background: var(--line); border: 2px solid var(--line); }
.road-col { background: var(--sand); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.road-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.road-name { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(32px, 3.2vw, 44px); line-height: .95; }
.road-count { flex: none; font-family: var(--mono); font-size: 11px; color: var(--muted2); white-space: nowrap; }
.road-note { margin: 0; font-size: 15px; color: var(--muted); }
.road-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.road-list a {
    display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line3);
    font-size: 15.5px; font-weight: 500; line-height: 1.3;
}
.road-list .arrow { color: var(--signal); flex: none; }
.road-more {
    margin-top: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; align-self: flex-start;
    font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--signal-dark);
}
.tips { display: flex; flex-wrap: wrap; gap: 40px clamp(32px, 6vw, 96px); border-top: 1px solid var(--ink); padding-top: 18px; }
.tips-intro { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.tips-intro p { margin: 0; color: var(--muted); max-width: 380px; }
.tips-list { flex: 2 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.tips-list li { display: grid; grid-template-columns: clamp(52px, 7vw, 84px) minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.tip-num { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5vw, 60px); line-height: .85; color: var(--signal); }
.tip-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tip-title { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; line-height: 1.34; letter-spacing: -0.01em; }
.tip-lead { font-size: 15px; color: var(--muted); max-width: 620px; }
.column {
    padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px);
    display: flex; flex-direction: column; gap: 28px; align-items: center; text-align: center;
}
.sun { width: 14px; height: 14px; border-radius: 50%; background: var(--signal); }
.column-quote {
    margin: 0; max-width: 1000px; font-family: var(--serif); font-style: italic; font-weight: 500;
    font-size: clamp(30px, 4.4vw, 58px); line-height: 1.08; text-wrap: balance;
}

/* Cards (rubric grid, «За границей», search, related) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 48px 28px; }
.card-grid.four { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px 28px; }
.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card.no-img { border-top: 1px solid var(--ink); padding-top: 18px; }
.card-shot { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.r34 .card-shot { aspect-ratio: 3 / 4; }
.card-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-shot img { transform: scale(1.03); }
.card-title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.22; letter-spacing: -0.01em; }
.card-lead { margin: 0; font-size: 15px; color: var(--muted); }

/* Rubric, search, 404 */
.crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: -12px 0;
    font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted2);
}
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted2); }
.crumbs a:hover { color: var(--signal-dark); }
.crumbs span:last-child { color: var(--ink); }
.cat-head { padding-top: 28px; }
.cat-head-grid {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px;
    padding: clamp(28px, 5vw, 56px) 0 32px; border-bottom: 1px solid var(--ink);
}
.cat-title { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 9vw, 132px); line-height: .86; letter-spacing: -0.02em; margin: 0; max-width: 100%; }
.cat-title-s { font-size: clamp(40px, 6vw, 88px); line-height: .92; }
.cat-side { max-width: 380px; display: flex; flex-direction: column; gap: 12px; }
.cat-desc { margin: 0; font-size: 17px; color: var(--muted); }
.cat-count { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--signal-dark); }
.cat-head .search-form { margin-top: 28px; }
.cat-list { padding-bottom: 24px; }
.feat { display: flex; flex-wrap: wrap; gap: 28px clamp(28px, 4vw, 56px); padding: 36px 0 48px; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.feat-shot { flex: 1.3 1 420px; min-width: 0; display: block; aspect-ratio: 16 / 10; max-height: 70vh; overflow: hidden; background: var(--sand); }
.feat-shot img { width: 100%; height: 100%; object-fit: cover; }
.feat-copy { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.feat-copy .kicker { font-size: 11px; }
.feat-title { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.4vw, 58px); line-height: .98; margin: 0; }
.feat.no-img .feat-copy { max-width: 940px; }
.feat-lead { margin: 0; color: var(--muted); font-size: 17px; }
.cat-list > .card-grid { padding-top: 8px; }
.empty { padding: 40px 0; font-size: 17px; color: var(--muted); }
.pagination { padding: 64px 0 24px; }
.nav-links { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-numbers {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 6px;
    border-radius: 999px; border: 1px solid var(--line); font-family: var(--mono); font-size: 14px; color: var(--ink);
}
.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.page-numbers.dots { border: 0; min-width: 24px; color: var(--muted2); }
.other-rubs { display: flex; flex-direction: column; gap: 12px; padding-bottom: clamp(56px, 7vw, 88px); }
.other-rubs .label { border-top: 1px solid var(--ink); padding-top: 24px; margin-top: 40px; }
.other-list { display: flex; flex-wrap: wrap; gap: 0 28px; }
.other-list a { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-weight: 500; line-height: 1.2; padding: 4px 0; }
.search-form { display: flex; max-width: 640px; }
.search-form input {
    flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border: 1px solid var(--ink); border-right: 0; border-radius: 999px 0 0 999px;
    background: var(--card); color: var(--ink); font: 16px var(--sans);
}
.search-form button { min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 0 999px 999px 0; background: var(--ink); color: var(--paper); font-weight: 500; }
.search-form button:hover { background: var(--signal-dark); border-color: var(--signal-dark); }

/* Article */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 3px; width: 0; background: var(--signal); }
.article-head { padding-top: 28px; }
.article-intro { max-width: 980px; padding: clamp(28px, 5vw, 64px) 0 clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 22px; }
.article-title { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 88px); line-height: .96; letter-spacing: -0.015em; margin: 0; }
.article-lead { margin: 0; font-size: clamp(17px, 1.8vw, 21px); color: var(--muted); max-width: 680px; }
.article-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13.5px; color: var(--muted2); }
.article-meta span { white-space: nowrap; }
.article-cover { margin-top: 0; margin-bottom: 0; }
.article-cover img { width: 100%; aspect-ratio: 21 / 10; min-height: 240px; max-height: calc(100vh - 160px); object-fit: cover; }
.article-cover figcaption { padding-top: 12px; font-size: 13px; color: var(--muted2); max-width: 70ch; }
.article-layout {
    display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 56px; align-items: start; justify-content: start;
    padding-top: clamp(40px, 6vw, 72px);
}
.article-layout.no-toc { grid-template-columns: minmax(0, 720px); }
.toc-side { position: sticky; top: calc(var(--header-h) + 31px); max-height: calc(100vh - var(--header-h) - 56px); overflow: auto; min-width: 0; scrollbar-width: thin; }
.admin-bar .toc-side { top: calc(var(--header-h) + 63px); }
.toc summary {
    list-style: none; display: flex; align-items: center; justify-content: space-between; pointer-events: none;
    padding-bottom: 10px; border-bottom: 1px solid var(--ink);
    font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted2);
}
.toc summary::-webkit-details-marker { display: none; }
.toc-sign { display: none; font-family: var(--sans); font-size: 24px; line-height: 1; color: var(--ink); transition: transform .2s; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc li a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.35; }
.toc li a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--signal-dark); padding-top: 2px; }
.toc li a.is-current { color: var(--signal-dark); font-weight: 600; }
.toc-more { margin: 12px 0 0; font-size: 13px; color: var(--muted2); }
.article-body { min-width: 0; font-size: 18px; line-height: 1.7; color: var(--text); }
.article-body p, .page-body p { margin: 0 0 20px; }
.article-body a, .page-body a { color: var(--signal-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body a:hover, .page-body a:hover { color: var(--ink); }
.article-body h2, .page-body h2 {
    font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.05; color: var(--ink);
    margin: 52px 0 18px; scroll-margin-top: var(--anchor);
}
.article-body > h2:first-child, .facts + h2 { margin-top: 0; }
.article-body h3, .page-body h3 { font-size: 21px; font-weight: 600; line-height: 1.25; color: var(--ink); margin: 36px 0 12px; scroll-margin-top: var(--anchor); }
.article-body h4 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 28px 0 10px; }
.article-body ul, .article-body ol, .page-body ul, .page-body ol { margin: 0 0 24px; padding-left: 1.3em; }
.article-body li, .page-body li { margin-bottom: 8px; }
.article-body ul li::marker, .page-body ul li::marker { color: var(--signal); }
.article-body ol li::marker { color: var(--signal-dark); font-family: var(--mono); font-size: .8em; }
.article-body blockquote {
    margin: 40px 0; padding: 0; font-family: var(--serif); font-style: italic; font-weight: 500;
    font-size: clamp(26px, 3vw, 36px); line-height: 1.15; color: var(--ink);
}
.article-body blockquote p { margin: 0 0 12px; }
.article-body blockquote::before { content: '«'; color: var(--signal); }
.article-body blockquote::after { content: '»'; color: var(--signal); }
.article-body blockquote p:last-child { display: inline; }
.article-body img { height: auto; }
.article-body figure { margin: 36px 0; max-width: 100%; }
.article-body figcaption, .wp-caption-text { font-size: 13px; color: var(--muted2); margin-top: 10px; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.article-body strong { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 0 0 28px; max-width: 100%; background: var(--card); border: 1px solid var(--line); }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; line-height: 1.45; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th, .table-wrap tr:first-child th { background: var(--ink); color: var(--paper); font-weight: 600; }
.facts { background: var(--sand); padding: clamp(22px, 3vw, 32px); margin-bottom: 44px; }
.box-title {
    display: flex; align-items: center; gap: 10px; margin: 0 0 18px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 20px 28px; margin: 0; }
.facts-grid div { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line2); padding-top: 10px; }
.facts-grid dt { font-size: 12.5px; color: var(--muted2); line-height: 1.3; }
.facts-grid dd { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--ink); }
.article-body .tags a { display: inline-flex; align-items: center; min-height: 36px; font-size: 13.5px; border: 1px solid var(--line2); border-radius: 999px; padding: 4px 13px; color: var(--ink); text-decoration: none; }
.byline { display: flex; gap: 16px; align-items: center; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.tags + .byline { border-top: 0; margin-top: 12px; }
.byline-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); flex: none; display: flex; align-items: center; justify-content: center; }
.byline-mark span { width: 14px; height: 14px; border-radius: 50%; background: var(--signal); }
.byline-copy { display: flex; flex-direction: column; line-height: 1.4; }
.byline-name { font-weight: 600; font-size: 16px; color: var(--ink); }
.byline-note { font-size: 14px; color: var(--muted2); }
.related { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }

/* Pages: About, Privacy */
.page-head { padding-top: 28px; padding-bottom: clamp(28px, 4vw, 48px); }
.page-title { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 7vw, 96px); line-height: .92; letter-spacing: -0.015em; margin: clamp(28px, 5vw, 56px) 0 16px; }
.page-body { padding-bottom: clamp(56px, 7vw, 96px); font-size: 17px; line-height: 1.7; color: var(--text); }
.page-body > * { max-width: 1000px; }
.about-row { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 12px 40px; border-top: 1px solid var(--ink); padding: 24px 0 8px; }
.about-row h2 { margin: 0; font-size: clamp(26px, 2.6vw, 32px); }
.about-text { max-width: 680px; }
.about-hero { padding-top: 28px; }
.about-grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px clamp(32px, 5vw, 72px); padding-bottom: clamp(36px, 5vw, 64px); }
.about-grid .page-title { flex: 1.4 1 520px; min-width: 0; margin-bottom: 0; }
.about-intro { flex: 1 1 320px; min-width: 0; color: var(--muted); }
.about-intro p { margin: 0 0 14px; }
.about-lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink); }
.about-topics { padding-top: 0; padding-bottom: clamp(56px, 8vw, 104px); }
.topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); border-top: 1px solid var(--line2); border-left: 1px solid var(--line2); }
.topics-grid a { background: var(--sand); border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.topics-grid a:hover { background: var(--card); color: var(--ink); }
.topic-name { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 32px; line-height: 1; }
.topic-desc { font-size: 15px; color: var(--muted); }
.about-not-grid { display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 6vw, 96px); }
.about-not-grid h2 { flex: 1 1 300px; }
.about-not-grid ul { flex: 2 1 480px; list-style: none; margin: 0; padding: 0; }
.about-not-grid li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--night-line); font-size: clamp(18px, 2vw, 22px); color: #F5F2EB; }
.about-not-grid li::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); }

/* Footer */
.site-footer { background: var(--night); color: #C9CED7; }
.site-footer > .shell { padding-top: clamp(48px, 6vw, 80px); padding-bottom: 32px; display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 5vw, 80px); justify-content: space-between; align-items: flex-start; }
.footer-brand { flex: 1 1 260px; max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.footer-logo { display: inline-flex; min-height: 44px; align-self: flex-start; }
.footer-brand p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #A9B0BD; }
.footer-nav { display: flex; flex-direction: column; gap: 0; }
.footer-nav a { display: block; padding: 10px 0; min-height: 44px; font-size: 15px; color: #C9CED7; }
.footer-nav a:hover { color: #F5F2EB; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--night-line); padding-top: 22px; font-size: 12.5px; color: #8A93A3; }

/* Clearfy cookie notice, restyled to the palette and a 44 px target */
#clearfy-cookie.clearfy-cookie {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
    max-width: 560px; margin: 0; padding: 0;
    background: var(--night); color: #EDE9E0; border: 0; border-radius: 0; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
    font: 400 14px/1.5 var(--sans);
}
#clearfy-cookie.clearfy-cookie-hide { display: none; }
#clearfy-cookie .clearfy-cookie-container {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
    padding: 16px 20px; max-width: none; margin: 0; text-align: left;
}
#clearfy-cookie .clearfy-cookie-accept {
    min-height: 44px; min-width: 88px; padding: 0 20px; margin: 0;
    background: var(--board); color: var(--night); border: 0; border-radius: 999px;
    font: 600 15px var(--sans); cursor: pointer;
}
#clearfy-cookie .clearfy-cookie-accept:hover { background: #F5F2EB; }
@media (min-width: 1200px) {
    #clearfy-cookie.clearfy-cookie { left: auto; right: 16px; max-width: 340px; }
}

/* Header widths: 4 rubrics from 1240, 3 + «Ещё» from 1024, button below */
@media (max-width: 1239px) {
    .nav-last { display: none; }
    .more-mid { display: flex; }
}
@media (max-width: 1023px) {
    .main-nav { display: none; }
    .menu-toggle { display: inline-flex; }
}
@media (max-width: 959px) {
    .article-layout, .article-layout.no-toc { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .toc-side { position: static; max-height: none; overflow: visible; margin-bottom: 36px; }
    .toc { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
    .toc summary { pointer-events: auto; cursor: pointer; min-height: 52px; padding-bottom: 0; border-bottom: 0; font-size: 12px; color: var(--ink); }
    .toc-sign { display: inline; }
    .toc[open] .toc-sign { transform: rotate(45deg); }
    .toc ol { padding-bottom: 12px; }
    .toc li a { min-height: 44px; align-items: center; font-size: 15px; }
    .about-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .board-cols { display: none; }
    .board-row { padding: 16px 0; }
    .b-place, .b-when, .b-why, .b-how { flex-basis: 100%; }
    .seasons { width: 100%; }
    .seasons button { flex: 1; padding: 8px 6px; }
    .hero { padding-bottom: 56px; }
    .hero-shot { max-height: 56vh; }
    .article-body { font-size: 17px; }
    .lead-row.has-img { grid-template-columns: minmax(0, 1fr) 88px; }
    .other-list { gap: 0 20px; }
    .footer-bottom { flex-direction: column; }
}
@media (max-width: 479px) {
    .header-inner { gap: 12px; }
    .menu-toggle { padding: 0 14px; }
    .card-grid { gap: 36px; }
    .tips-list li { gap: 14px; }
    .page-numbers { min-width: 40px; height: 40px; }
    .page-numbers.prev, .page-numbers.next { min-width: 44px; height: 44px; }
}
