/*
 * 32CARS — site.css v1.2.0, design A «Журнал» (22.10.2026).
 * Light magazine: white ground, large Onest headlines, Golos Text for reading, blue of the logo as the accent.
 * Spacing on a 4/8 px grid. One file, no frameworks.
 *
 *  00 tokens · 01 fonts · 02 base · 03 ads · 04 top bar & masthead · 05 home · 06 feed
 *  07 rail · 08 list pages · 09 story · 10 rich text · 11 footer · 12 cookie, to-top, errors
 *  13 ≤1135 · 14 ≤1023 · 15 ≤767
 */

/* ── 00 tokens ───────────────────────────────────────────────────────────── */
:root {
    --ink: #16181A;            /* headlines, rules, footer */
    --text: #24282C;           /* reading text */
    --lead: #3D4247;           /* leads */
    --muted: #5B6168;          /* secondary text — 6.3:1 on white */
    --meta: #6B7178;           /* times and dates — 5.0:1 */
    --line: #E6E8EA;           /* hairlines */
    --line-2: #D5D9DD;         /* pills */
    --soft: #F4F5F6;           /* ad band, quiet panels */
    --paper: #FFFFFF;
    --blue: #1F98CE;           /* logo blue — large marks and rules only */
    --blue-text: #00739A;      /* blue for small text — 5.4:1 on white */
    --blue-soft: #E6F4FA;
    --foot-text: #C5CAD0;
    --foot-meta: #9AA0A6;

    --f-head: "Onest", Arial, sans-serif;
    --f-text: "Golos Text", Arial, sans-serif;

    --wrap: 1200px;            /* outer width; content = wrap − 2 × gutter = 1120 */
    --gutter: 40px;
    --rail: 300px;
    --col-gap: 56px;           /* main ↔ rail; the rail edge is the same line on every page */
    --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 40px; --s8: 48px; --s9: 56px; --s10: 64px;
}

/* ── 01 fonts (variable, SIL OFL 1.1 — static/fonts/OFL-*.txt) ───────────── */
@font-face {
    font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
    src: url("../fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap;
    src: url("../fonts/golos-text-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── 02 base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/24px var(--f-text);
    -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .12s ease; }
a:hover { color: var(--blue-text); }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.kicker {
    display: flex; flex-wrap: wrap; gap: 0 var(--s3);
    color: var(--blue-text);
    font: 600 12px/16px var(--f-text);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.kicker a { color: inherit; }
.kicker a:hover { color: var(--ink); }
.kicker__sep { color: #9AA0A6; }

.block-title {
    padding-top: var(--s3);
    border-top: 3px solid var(--ink);
    font: 700 20px/28px var(--f-head);
}
.block-title--blue { border-top-color: var(--blue); }
.block-note { margin-top: var(--s1); color: var(--muted); font-size: 14px; line-height: 20px; }

.btn-wide {
    display: flex; align-items: center; justify-content: center;
    height: 52px; margin-top: var(--s4);
    border: 1px solid var(--ink);
    font: 600 16px/24px var(--f-head);
}
.btn-wide:hover { background: var(--ink); color: var(--paper); }

.pill {
    display: inline-flex; align-items: center;
    height: 32px; padding: 0 14px;
    border: 1px solid var(--line-2); border-radius: 16px;
    font-size: 14px; line-height: 20px;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill--dark { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 600; }
.pill--dark:hover { background: var(--blue-text); border-color: var(--blue-text); color: var(--paper); }

/* ── 03 ads ──────────────────────────────────────────────────────────────── */
.ad-band { background: var(--soft); padding: var(--s4) var(--s5); display: flex; justify-content: center; }
.ad-band .ad { width: 728px; max-width: 100%; min-height: 90px; }
.ad { position: relative; }
.ad--rail { width: var(--rail); min-height: 600px; }
.ad--feed { margin: var(--s2) 0; min-height: 120px; }
.ad--story { min-height: 250px; }

/* ── 04 top bar & masthead ───────────────────────────────────────────────── */
.topline {
    display: flex; align-items: center; justify-content: space-between;
    height: 40px;
    border-bottom: 1px solid var(--line);
    color: var(--muted); font-size: 13px; line-height: 20px;
}
.topline__links { display: flex; align-items: center; gap: var(--s5); }
.topline__links a { color: var(--muted); }
.topline__links a:hover { color: var(--ink); }
.age {
    display: inline-block; padding: 0 6px;
    border: 1px solid #C9CDD2; border-radius: 4px;
    color: var(--ink); font-weight: 600; font-size: 13px; line-height: 20px;
}

.masthead {
    display: flex; align-items: center; gap: var(--s8);
    height: 96px;
    border-bottom: 1px solid var(--ink);
}
.masthead__logo img { width: 139px; height: 64px; }
.menu { flex: 1 1 auto; min-width: 0; }
.menu__list { display: flex; gap: var(--s6); list-style: none; }
.menu__link {
    display: block;
    padding: 36px 0 33px;
    border-bottom: 3px solid transparent;
    font: 600 17px/24px var(--f-head);
}
.menu__link.is-active { border-bottom-color: var(--blue); color: var(--ink); }
.search-btn {
    flex: 0 0 44px; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 22px;
}
.search-btn:hover { border-color: var(--ink); color: var(--ink); }
.search-btn svg { width: 20px; height: 20px; }
.masthead__age { display: none; }

/* ── 05 home ─────────────────────────────────────────────────────────────── */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--rail);
    gap: var(--col-gap);
    padding: var(--s7) 0 var(--s8);
    border-bottom: 1px solid var(--line);
}
.lead { display: flex; flex-direction: column; gap: var(--s4); }
.lead__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); margin-bottom: var(--s2); }
.lead__media img { width: 100%; height: 100%; object-fit: cover; }
.lead__title { font: 800 44px/52px var(--f-head); letter-spacing: -.01em; }
.lead--text { align-self: center; }                 /* no cover: the text sits in the middle of the column */
.lead--text .lead__title { font-size: 52px; line-height: 60px; }
.lead__text { color: var(--lead); font-size: 19px; line-height: 30px; }
.lead__time { color: var(--meta); font-size: 13px; line-height: 20px; }

.top { list-style: none; margin-top: var(--s2); }
.top__item a {
    display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s3);
    padding: var(--s4) 0;
    border-bottom: 1px solid var(--line);
}
.top__n { color: var(--blue); font: 800 28px/28px var(--f-head); }
.top__body { display: flex; flex-direction: column; gap: 6px; }
.top__title { font: 600 17px/23px var(--f-head); }
.top__time { color: var(--meta); font-size: 13px; line-height: 16px; }

.columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--rail);
    gap: var(--col-gap);
    align-items: start;
    padding: var(--s7) 0 var(--s10);
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s2); }
.section-head h2 { font: 800 28px/36px var(--f-head); }
.section-head a { color: var(--blue-text); font-weight: 600; font-size: 15px; }
.section-head a:hover { color: var(--ink); }

/* ── 06 feed ─────────────────────────────────────────────────────────────── */
.item {
    display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s5);
    padding: var(--s5) 0;
    border-top: 1px solid var(--line);
}
.item__when { display: flex; flex-direction: column; gap: 2px; }
.item__time { font: 700 15px/24px var(--f-head); }
.item__day { color: var(--meta); font-size: 12px; line-height: 16px; }
.item__body { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.item__title { font: 700 22px/29px var(--f-head); }
.item__lead { color: var(--muted); font-size: 16px; line-height: 24px; }
.feed-end { border-top: 1px solid var(--line); }
.empty { padding: var(--s5) 0; border-top: 1px solid var(--line); color: var(--muted); }

/* ── 07 rail ─────────────────────────────────────────────────────────────── */
.rail { display: flex; flex-direction: column; gap: var(--s7); }
.rail__sticky { position: sticky; top: var(--s4); }
.rail-list { list-style: none; margin-top: var(--s2); }
.rail-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font: 600 16px/22px var(--f-head); }
.rail-list__time { display: block; margin-bottom: var(--s1); color: var(--meta); font: 400 13px/16px var(--f-text); }
.tags { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin-top: var(--s4); }

/* ── 08 list pages ───────────────────────────────────────────────────────── */
.page-head { padding: var(--s7) 0 var(--s6); border-bottom: 1px solid var(--line); }
.page-head h1 { font: 800 40px/48px var(--f-head); letter-spacing: -.01em; }
.page-head p { max-width: 720px; margin-top: var(--s3); color: var(--muted); font-size: 17px; line-height: 26px; }
.page-head .kicker { margin-bottom: var(--s3); }
.columns--list { padding-top: 0; }
/* the page head already draws the rule above the feed: the first story carries no rule of its own */
.columns--list .item:first-of-type, .columns--list .empty { border-top: 0; }

.pager { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin-top: var(--s6); }
.pager a, .pager span {
    display: flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 var(--s3);
    border: 1px solid var(--line-2);
    font: 600 15px/24px var(--f-head);
}
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.search { display: flex; gap: var(--s2); margin-top: var(--s5); max-width: 720px; }
.search__input {
    flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 var(--s4);
    border: 1px solid var(--line-2); border-radius: 0; background: var(--paper);
    font-size: 17px;
}
.search__input:focus { outline: none; border-color: var(--ink); }
.search__btn {
    flex: 0 0 auto; height: 52px; padding: 0 var(--s5);
    border: 0; background: var(--ink); color: var(--paper);
    font: 600 16px/24px var(--f-head); cursor: pointer;
}
.search__btn:hover { background: var(--blue-text); }

.author-head { display: flex; align-items: center; gap: var(--s5); }
.author-head__photo { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--soft); }
.author-head__role { margin-top: var(--s1); color: var(--muted); font-size: 16px; line-height: 24px; }

/* ── 09 story ────────────────────────────────────────────────────────────── */
.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--rail);
    gap: 80px;
    align-items: start;
    padding: var(--s8) 0 72px;
}
.story { max-width: 720px; }
.story + .story { margin-top: var(--s10); padding-top: var(--s8); border-top: 3px solid var(--ink); }
.story__title { margin: var(--s4) 0 var(--s5); font: 800 48px/56px var(--f-head); letter-spacing: -.015em; }
h2.story__title { font-size: 40px; line-height: 48px; }
.story__lead { margin-bottom: var(--s5); color: var(--lead); font-size: 21px; line-height: 32px; }
.story__figure { margin: 0 0 var(--s5); }
.story__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--soft); }
.credit { display: block; margin-top: var(--s2); color: var(--meta); font-size: 12px; line-height: 16px; text-align: right; }
.credit::before { content: "© "; }

.byline {
    display: flex; align-items: center; gap: var(--s4);
    padding: var(--s4) 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    color: var(--muted); font-size: 14px; line-height: 20px;
}
.avatar {
    flex: 0 0 40px; width: 40px; height: 40px; border-radius: 20px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    background: var(--blue-soft); color: var(--blue-text); font-weight: 600; font-size: 14px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--org img { width: 30px; height: 30px; object-fit: contain; }
.byline__who { display: flex; flex-direction: column; }
.byline__name { color: var(--ink); font-weight: 600; }
.share { margin-left: auto; display: flex; gap: var(--s2); }
.share__btn {
    width: 40px; height: 40px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-2); border-radius: 20px; background: var(--paper);
    color: var(--ink); font: 600 12px/1 var(--f-text); cursor: pointer;
}
.share__btn:hover { border-color: var(--ink); color: var(--ink); }
.share__btn svg { width: 18px; height: 18px; }
.share__btn[hidden] { display: none; }
.share__btn.is-done { border-color: var(--blue); color: var(--blue-text); }

.preferred {
    display: inline-flex; align-items: center;
    margin-top: var(--s5); min-height: 40px; padding: 10px var(--s4);
    border-radius: 20px; background: var(--blue-soft); color: #00607F;
    font-weight: 600; font-size: 14px; line-height: 20px;
}
.preferred:hover { background: #D3ECF6; color: #004F69; }

.story__ad { margin-top: var(--s6); }
.story__tags { margin-top: var(--s6); }
.dzen {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
    margin-top: var(--s7); padding: var(--s5) 28px;
    background: var(--ink); color: var(--paper);
}
.dzen__title { font: 700 20px/28px var(--f-head); }
.dzen__text { margin-top: var(--s1); color: var(--foot-text); font-size: 14px; line-height: 20px; }
.dzen__btn {
    flex: 0 0 auto; display: inline-flex; align-items: center;
    height: 44px; padding: 0 20px;
    background: var(--blue); color: var(--paper); font-weight: 600; font-size: 15px;
}
.dzen__btn:hover { background: #1786B8; color: var(--paper); }
.story__note { margin-top: var(--s5); color: var(--meta); font-size: 13px; line-height: 20px; }
.story__note a { color: var(--blue-text); }
.preview-note { margin-bottom: var(--s5); padding: var(--s3) var(--s4); background: #FFF4D6; color: #6B5200; font-size: 14px; line-height: 20px; }

.more { margin-top: var(--s9); }
.more__list { list-style: none; margin-top: var(--s2); }
.more__list a {
    display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s5);
    padding: 18px 0; border-bottom: 1px solid var(--line);
}
.more__title { font: 700 19px/26px var(--f-head); }
.next-loader { height: 1px; }

/* ── 10 rich text ────────────────────────────────────────────────────────── */
.rich { padding-top: var(--s6); color: var(--text); font-size: 18px; line-height: 30px; }
.rich > * + * { margin-top: var(--s5); }
.rich h2 { margin-top: var(--s7); color: var(--ink); font: 700 26px/34px var(--f-head); }
.rich h3 { margin-top: var(--s6); color: var(--ink); font: 700 22px/30px var(--f-head); }
.rich h4 { margin-top: var(--s5); color: var(--ink); font: 700 19px/26px var(--f-head); }
.rich h2 + *, .rich h3 + *, .rich h4 + * { margin-top: var(--s3); }
.rich a { color: var(--blue-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rich a:hover { color: var(--ink); }
.rich strong, .rich b { color: var(--ink); font-weight: 600; }
.rich ul, .rich ol { padding-left: var(--s5); }
.rich li + li { margin-top: var(--s2); }
.rich ul { list-style: none; }
.rich ul > li { position: relative; }
.rich ul > li::before { content: ""; position: absolute; left: -20px; top: 12px; width: 6px; height: 6px; background: var(--blue); }
.rich ol > li::marker { color: var(--blue-text); font-weight: 700; }
.rich blockquote {
    padding: var(--s1) 0 var(--s1) var(--s5);
    border-left: 4px solid var(--blue);
    color: var(--ink); font: 600 22px/32px var(--f-head);
}
.rich blockquote p + p { margin-top: var(--s3); }
.rich figure img { width: 100%; height: auto; }
.rich figcaption { margin-top: var(--s2); color: var(--meta); font-size: 12px; line-height: 16px; text-align: right; }
.rich figure.image figcaption::before { content: "© "; }
.rich table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.rich th, .rich td { padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rich th { border-bottom: 2px solid var(--ink); color: var(--ink); font-weight: 600; }
.rich iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.static .rich { max-width: 720px; }

.video { position: relative; margin-top: var(--s6); aspect-ratio: 16 / 9; background: #000; }
.video__btn, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.video__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video__play { position: absolute; top: 50%; left: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: #f00; }
.video__play::after { content: ""; position: absolute; top: 14px; left: 27px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }

/* ── 11 footer ───────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: var(--foot-text); }
.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    gap: var(--s7);
    padding-top: var(--s8); padding-bottom: var(--s6);
}
.footer__about { display: flex; flex-direction: column; gap: var(--s4); align-items: flex-start; }
.footer__about img { width: 122px; height: 56px; }
.footer__about p { max-width: 360px; font-size: 14px; line-height: 22px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; list-style: none; font-size: 14px; line-height: 20px; }
.footer__col-title { color: var(--paper); font-weight: 600; }
.footer__col a { color: var(--foot-text); }
.footer__col a:hover { color: var(--paper); }
.footer__bottom {
    display: flex; justify-content: space-between; gap: var(--s4);
    padding: 20px 0 var(--s6);
    border-top: 1px solid #2E3236;
    color: var(--foot-meta); font-size: 13px; line-height: 20px;
}

/* ── 12 cookie, to-top, errors ───────────────────────────────────────────── */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; background: var(--ink); color: var(--paper); }
.cookie.is-shown { display: block; }
.cookie__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding-top: var(--s4); padding-bottom: var(--s4); font-size: 14px; line-height: 20px; }
.cookie a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.cookie a:hover { color: var(--blue); }
.cookie__btn { flex: 0 0 auto; height: 44px; padding: 0 var(--s5); border: 0; background: var(--blue); color: var(--paper); font: 600 15px/24px var(--f-head); cursor: pointer; }
.cookie__btn:hover { background: #1786B8; }

.to-top {
    position: fixed; right: var(--s5); bottom: var(--s5); z-index: 40;
    width: 48px; height: 48px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--ink); border-radius: 24px; background: var(--paper); color: var(--ink);
    cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility .15s ease;
}
.to-top.is-shown { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--ink); color: var(--paper); }
.to-top svg { width: 20px; height: 20px; }
.cookie.is-shown ~ .to-top { bottom: 100px; }

.error-page { padding: var(--s10) 0 96px; }
.error-page__code { color: var(--blue); font: 800 96px/1 var(--f-head); }
.error-page h1 { margin-top: var(--s4); font: 800 40px/48px var(--f-head); }
.error-page p { margin-top: var(--s3); max-width: 640px; color: var(--muted); font-size: 18px; line-height: 28px; }
.error-page__links { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s6); }

/* ── 13 ≤1135: narrower gutter ───────────────────────────────────────────── */
@media (max-width: 1135px) {
    :root { --gutter: 24px; --col-gap: 48px; }
    .masthead { gap: var(--s6); }
    .menu__list { gap: var(--s5); }
    .story-grid { gap: var(--s8); }
}

/* ── 14 ≤1023: the rail goes under the content ───────────────────────────── */
@media (max-width: 1023px) {
    .hero { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
    .columns, .story-grid { grid-template-columns: minmax(0, 1fr); }
    .story { max-width: none; }
    .rail { flex-direction: row; flex-wrap: wrap; gap: var(--s6); }
    .rail > * { flex: 1 1 300px; }
    .rail .ad--rail { flex: 0 0 var(--rail); margin: 0 auto; }
    .rail__sticky { position: static; }
    .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer__about { grid-column: 1 / -1; }
}

/* ── 15 ≤767: phone ──────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    :root { --gutter: 16px; }
    .ad-band, .topline { display: none; }
    .masthead { height: 64px; gap: var(--s2); justify-content: space-between; }
    .masthead__logo img { width: 96px; height: 44px; }
    .masthead__age { display: inline-block; margin-left: auto; }
    .search-btn { border: 0; }
    .menu {
        order: 10; flex: 0 0 auto;
        position: absolute; left: 0; right: 0; top: 64px;
        overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--paper);
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .menu::-webkit-scrollbar { display: none; }
    .menu__list { gap: var(--s5); padding: 0 var(--gutter); white-space: nowrap; }
    .menu__link { padding: 14px 0 11px; font-size: 15px; line-height: 20px; }
    .site-top { position: relative; padding-bottom: 49px; }   /* menu row: 14 + 20 + 11 + 3 border + 1 rule */

    .hero { padding: var(--s5) 0 var(--s6); gap: var(--s6); }
    .lead__media { margin: 0 calc(-1 * var(--gutter)) var(--s1); }
    .lead__title, .lead--text .lead__title { font-size: 28px; line-height: 34px; }
    .lead__text { font-size: 16px; line-height: 24px; }
    .columns { padding: var(--s5) 0 var(--s8); gap: var(--s7); }
    .columns--list { padding-top: 0; }
    .section-head h2 { font-size: 22px; line-height: 28px; }
    .item { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 0; }
    .item__when { flex-direction: row; gap: var(--s2); align-items: baseline; }
    .item__time { font-size: 13px; line-height: 16px; }
    .item__title { font-size: 19px; line-height: 25px; }
    .item__lead { display: none; }
    .ad--feed { min-height: 250px; margin: var(--s4) 0; }
    .rail { flex-direction: column; }
    .rail > * { flex: 0 0 auto; }

    .page-head { padding: var(--s5) 0 var(--s5); }
    .page-head h1 { font-size: 28px; line-height: 34px; }
    .page-head p { font-size: 16px; line-height: 24px; }
    .author-head__photo { flex-basis: 72px; width: 72px; height: 72px; }

    .story-grid { padding: var(--s5) 0 var(--s8); }
    .story__title, h2.story__title { font-size: 30px; line-height: 36px; margin: var(--s3) 0 var(--s4); }
    .story__lead { font-size: 18px; line-height: 28px; margin-bottom: var(--s4); }
    .story__figure { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
    .story__figure .credit { padding: 0 var(--gutter); }
    .byline { flex-wrap: wrap; }
    .preferred { border-radius: 12px; }
    .share { margin-left: 0; width: 100%; }
    .rich { font-size: 17px; line-height: 28px; padding-top: var(--s5); }
    .rich h2 { font-size: 22px; line-height: 30px; }
    .rich blockquote { font-size: 19px; line-height: 28px; }
    .rich table { display: block; overflow-x: auto; }
    .dzen { flex-direction: column; align-items: flex-start; padding: 20px; }
    .more__list a { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .more__list .item__when { flex-direction: row; gap: var(--s2); align-items: baseline; }
    .more__list .item__time { font-size: 13px; line-height: 16px; }

    .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6) var(--s5); padding-top: var(--s6); }
    .footer__bottom { flex-direction: column; gap: var(--s1); }
    .cookie__in { flex-direction: column; align-items: stretch; text-align: left; }
    .to-top { right: var(--s4); bottom: var(--s4); }
    .error-page { padding: var(--s8) 0 var(--s10); }
    .error-page__code { font-size: 64px; }
    .error-page h1 { font-size: 28px; line-height: 34px; }
}
