/*
 * Годно Ньюс — site.css 1.0.0, design «Яркие разделы» (written from scratch, no frameworks).
 * Tokens first; every section has three colours: --c (fills, dots), --ci (small text, ≥4.5:1 on white,
 * on the page background and on its own tint), --ct (tint). Spacing is a multiple of 4 px.
 * Grid: content 1120 (wrapper 1200 with 40 px padding; ≤1135 — 24; phone — 16), rail 300, gap 56 (≤1135 — 48).
 */

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations"), url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
    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;
}

:root {
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --bg: #F3F2EF;          /* page */
    --card: #FFFFFF;
    --ink: #16171B;         /* text, header, footer */
    --ink-2: #44464C;       /* leads */
    --muted: #5E6066;       /* dates, captions: 5.6:1 on --bg */
    --line: #E4E2DC;
    --dark: #16171B;
    --dark-2: #2A2B31;
    --dark-line: #2E3036;
    --on-dark: #F3F2EF;
    --on-dark-2: #C9CACE;
    --on-dark-3: #9C9EA4;
    --gold: #D0A825;        /* the ring of the logo: fills only */
    --gold-ink: #7A5C00;    /* gold for small text */

    --r: 16px;
    --r-s: 10px;
    --pill: 999px;

    --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
    --s8: 32px; --s10: 40px; --s12: 48px; --s14: 56px;

    --wrap: 1200px;
    --pad: 40px;
    --rail: 300px;
    --gap: 56px;
    --card-pad: 48px;       /* side padding of story cards: figures bleed by the same amount */

    --c: var(--gold); --ci: var(--gold-ink); --ct: #F5EDD3;
}

/* section colours */
.s-home      { --c: #2F6DB5; --ci: #2B63A5; --ct: #DCE7F4; }
.s-food      { --c: #C8501E; --ci: #A54219; --ct: #F7E1D5; }
.s-garden    { --c: #2E8540; --ci: #266E35; --ct: #D5E8D2; }
.s-beauty    { --c: #B83D78; --ci: #A5376C; --ct: #F4DCE8; }
.s-lifestyle { --c: #6B4FBF; --ci: #684BBE; --ct: #E6E0F6; }
.s-all       { --c: #D0A825; --ci: #7A5C00; --ct: #F5EDD3; }

@media (max-width: 1135px) { :root { --pad: 24px; --gap: 48px; } }
@media (max-width: 767px)  { :root { --pad: 16px; --card-pad: 16px; } }

/* ── base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--s4); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 500 16px/1.5 var(--font);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.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 { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ── header ── */
.ad-band { display: flex; justify-content: center; padding: var(--s4) var(--pad); background: var(--bg); }
.ad-band .ad { width: 728px; max-width: 100%; min-height: 90px; }
.head { background: var(--dark); color: var(--on-dark); }
.head__in { display: flex; align-items: center; gap: var(--s10); height: 76px; }
.head__logo { flex: 0 0 auto; display: block; border-radius: 6px; }
.head__logo img { width: 190px; height: 28px; }
.menu { flex: 1 1 auto; min-width: 0; }
.menu__list { display: flex; gap: 6px; list-style: none; }
.menu__link {
    display: flex; align-items: center; gap: var(--s2);
    height: 40px; padding: 0 14px; border-radius: var(--pill);
    font-weight: 700; font-size: 15px; white-space: nowrap; color: var(--on-dark);
}
.menu__link::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: 0 0 auto; }
.menu__link:hover { background: var(--dark-2); }
.menu__link.is-active { background: var(--c); color: #FFFFFF; }
.menu__link.is-active::before { display: none; }
.head__search {
    flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: auto; border-radius: var(--pill); background: var(--dark-2); color: #FFFFFF;
}
.head__search:hover { background: #3A3B42; }
.head__search svg { width: 20px; height: 20px; }

@media (max-width: 1135px) {
    .head__in { gap: var(--s6); }
    .menu__link { padding: 0 var(--s3); font-size: 14px; }
}
/* tablets and phones: logo + search, the menu is a scrolling row under them */
@media (max-width: 1099px) {
    .head__in { flex-wrap: wrap; height: auto; gap: 0; padding-top: var(--s2); }
    .head__logo { margin: var(--s2) 0; }
    .head__search { order: 2; }
    .menu { order: 3; flex: 0 0 calc(100% + 2 * var(--pad)); margin: 0 calc(-1 * var(--pad)); overflow-x: auto; scrollbar-width: none; }
    .menu::-webkit-scrollbar { display: none; }
    .menu__list { padding: var(--s2) var(--pad) var(--s3); width: max-content; }
    .menu__link { height: 36px; }
}
@media (max-width: 767px) {
    .ad-band { display: none; }
    .head__logo img { width: 163px; height: 24px; }
}

/* ── shared pieces ── */
.card { background: var(--card); border-radius: var(--r); overflow: hidden; }
.kicker {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px;
    font-size: 12px; line-height: 16px; font-weight: 800; color: var(--ci);
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); align-self: center; margin-right: 2px; }
.kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }
.meta { font-size: 13px; color: var(--muted); }

/* cover: a 16:9 box in the section tint; without a photo the tint shows the ring of the logo */
.media { position: relative; aspect-ratio: 16 / 9; background: var(--ct); overflow: hidden; }
.media picture, .media img { width: 100%; height: 100%; }
.media img { object-fit: cover; }
.media:empty::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1;
    transform: translate(-50%, -50%); border-radius: 50%; border: max(6px, 1.4vw) solid var(--c); opacity: .22;
}

.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); margin-bottom: var(--s4); }
.sec-head h2 { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.sec-head a { font-weight: 800; font-size: 14px; color: var(--ci); white-space: nowrap; }
.sec-head a:hover { text-decoration: underline; text-underline-offset: 3px; }

.pills { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; }
.pill {
    display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: var(--pill);
    background: var(--bg); font-size: 14px; line-height: 1.3; font-weight: 700;
}
.pill:hover { background: var(--ct); }
.pill--dark { background: var(--ink); color: #FFFFFF; }
.pill--dark:hover { background: var(--dark-2); }

.btn {
    display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--s6);
    border: 0; border-radius: var(--pill); background: var(--dark); color: #FFFFFF; font-weight: 800; font-size: 15px;
}
.btn:hover { background: var(--dark-2); }
.btn--wide { margin-top: var(--s6); width: 100%; }

.ad { position: relative; display: flex; justify-content: center; }
.ad > * { max-width: 100%; }

/* ── two columns: content + rail; the rail edge is one line on every page ── */
.columns { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail); gap: var(--gap); align-items: start; }
.rail { display: flex; flex-direction: column; gap: var(--s6); min-width: 0; }
.ad--rail { width: var(--rail); min-height: 600px; }
.rail__sticky { position: sticky; top: var(--s4); }
@media (max-width: 1023px) {
    .columns { grid-template-columns: minmax(0, 1fr); }
    .rail .ad--rail { margin: 0 auto; }
    .rail__sticky { position: static; }
}

.box { padding: 22px; border-radius: var(--r); background: var(--card); }
.box__title { margin-bottom: 14px; font-size: 20px; line-height: 1.25; font-weight: 800; }
.box--dark { background: var(--dark); color: var(--on-dark); }
.box--dark .box__title { color: #FFFFFF; margin-bottom: var(--s2); }
.counts { list-style: none; }
.counts a { display: flex; justify-content: space-between; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--dark-line); font-weight: 700; }
.counts li:last-child a { border-bottom: 0; padding-bottom: 0; }
.counts a:hover span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.counts__n { color: var(--gold); font-variant-numeric: tabular-nums; }
.fresh { list-style: none; }
.fresh li + li { border-top: 1px solid var(--line); }
.fresh a { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s3) 0; font-size: 15px; line-height: 1.35; font-weight: 700; }
.fresh li:first-child a { padding-top: 0; }
.fresh li:last-child a { padding-bottom: 0; }
.fresh a:hover .fresh__title { color: var(--ci); }
.fresh .kicker { font-size: 11px; }

/* ── cards ── */
/* row: picture left, text right (home feed, lists) */
.row { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.row .media { aspect-ratio: auto; height: 100%; min-height: 140px; }
.row__body { display: flex; flex-direction: column; justify-content: center; gap: var(--s2); padding: 18px 22px; min-width: 0; }
.row__title { font-size: 19px; line-height: 1.3; font-weight: 800; }
.row__lead { font-size: 15px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row:hover .row__title, .tile-card:hover .tile-card__title, .lead:hover .lead__title, .mini:hover .mini__title { color: var(--ci); }
.feed { display: flex; flex-direction: column; gap: var(--s4); }
.ad--feed { min-height: 120px; }
.empty { padding: var(--s8); border-radius: var(--r); background: var(--card); color: var(--ink-2); }

/* tile card: picture on top (home hero side, section blocks) */
.tile-card { display: flex; flex-direction: column; }
.tile-card__body { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4) var(--s5) var(--s5); }
.tile-card__title { font-size: 17px; line-height: 1.3; font-weight: 800; }

/* mini: small square-ish picture + title («Читайте также») */
.mini { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--s3); align-items: center; padding: 10px; }
.mini .media { aspect-ratio: 4 / 3; border-radius: var(--r-s); }
.mini__title { font-size: 15px; line-height: 1.3; font-weight: 800; }

@media (max-width: 767px) {
    .row { grid-template-columns: 112px minmax(0, 1fr); }
    .row .media { min-height: 100px; }
    .row__body { padding: var(--s3) 14px; gap: 6px; }
    .row__title { font-size: 16px; }
    .row__lead { display: none; }
    .row .meta { font-size: 12px; }
    .feed { gap: var(--s3); }
    .ad--feed { min-height: 250px; }
}

/* ── home ── */
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s6); margin-top: var(--s8); }
.lead { display: flex; flex-direction: column; }
.lead__body { flex: 1 0 auto; display: flex; flex-direction: column; gap: var(--s3); padding: var(--s6) 28px 28px; }
.lead__title { font-size: 34px; line-height: 1.18; font-weight: 800; letter-spacing: -0.015em; }
.lead__text { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: var(--s6); }
.hero__side .tile-card { height: 100%; }
.hero__side .media { aspect-ratio: 2 / 1; }
.hero__side .tile-card__title { font-size: 18px; }

.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s10); list-style: none; }
.tile {
    display: flex; flex-direction: column; justify-content: space-between; gap: var(--s3);
    height: 128px; padding: 18px var(--s5); border-radius: var(--r); background: var(--ct);
}
.tile:hover { box-shadow: inset 0 0 0 2px var(--c); }
.tile__icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--r-s); background: var(--c); color: #FFFFFF; }
.tile__icon svg { width: 20px; height: 20px; }
.tile__name { display: block; font-size: 18px; line-height: 1.25; font-weight: 800; }
.tile__count { display: block; font-size: 13px; color: var(--ink-2); }

.home-feed { margin-top: var(--s10); }
.home-secs { display: flex; flex-direction: column; gap: var(--s12); margin-top: var(--s14); }
.home-sec__head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.home-sec__head h2 { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
.home-sec__head h2 a:hover { color: var(--ci); }
.home-sec__head .tile__icon { width: 32px; height: 32px; }
.home-sec__all { margin-left: auto; font-weight: 800; font-size: 14px; color: var(--ci); white-space: nowrap; }
.home-sec__all:hover { text-decoration: underline; text-underline-offset: 3px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); list-style: none; }
.grid4 > li { display: flex; }
.grid4 .tile-card { flex: 1; }

@media (max-width: 1023px) {
    .hero { grid-template-columns: minmax(0, 1fr); }
    .hero__side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
    .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .hero { margin-top: var(--s4); gap: var(--s3); }
    .hero__side { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
    .hero__side .media { aspect-ratio: 16 / 9; }
    .lead__body { padding: var(--s4) var(--s4) var(--s5); gap: 10px; }
    .lead__title { font-size: 24px; line-height: 1.2; }
    .lead__text { font-size: 16px; }
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s8); }
    .tiles li:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .tile { height: 96px; padding: 14px var(--s4); flex-direction: row; align-items: center; justify-content: flex-start; }
    .tile__name { font-size: 16px; }
    .home-feed { margin-top: var(--s8); }
    .sec-head h2, .home-sec__head h2 { font-size: 22px; }
    .home-secs { gap: var(--s10); margin-top: var(--s10); }
    .grid4 { gap: var(--s3); }
    .tile-card__body { padding: var(--s3) var(--s3) 14px; }
    .tile-card__title { font-size: 15px; }
}

/* ── list pages ── */
.page-head { margin: var(--s8) 0 var(--s6); padding: 28px var(--s8); border-radius: var(--r); background: var(--ct); }
.page-head__kicker { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); font-size: 13px; font-weight: 800; color: var(--ci); }
.page-head__kicker .tile__icon { width: 28px; height: 28px; border-radius: 8px; }
.page-head__kicker .tile__icon svg { width: 16px; height: 16px; }
.page-head h1 { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.page-head p { max-width: 720px; margin-top: var(--s3); font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.page-head--plain { background: var(--card); }
.search { display: flex; gap: var(--s2); max-width: 720px; margin-top: var(--s5); }
.search__input {
    flex: 1; min-width: 0; height: 48px; padding: 0 var(--s5); border: 2px solid var(--line); border-radius: var(--pill);
    background: var(--card); font-size: 16px;
}
.search__input:focus { outline: none; border-color: var(--ink); }
.search .btn { min-height: 48px; }

.author-head { display: flex; align-items: center; gap: var(--s5); }
.author-head__photo { width: 96px; height: 96px; border-radius: 24px; object-fit: cover; flex: 0 0 auto; }
.author-head__role { margin-top: var(--s1); color: var(--ink-2); font-weight: 700; }
.author-bio { max-width: 720px; margin-top: var(--s4); font-size: 16px; line-height: 1.6; color: var(--ink-2); }

.pager { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s8); list-style: none; }
.pager a, .pager span {
    display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 var(--s3);
    border-radius: var(--pill); background: var(--card); font-weight: 800;
}
.pager a:hover { background: var(--ct); }
.pager .is-current { background: var(--ink); color: #FFFFFF; }

@media (max-width: 767px) {
    .page-head { margin: var(--s4) 0; padding: var(--s5) var(--s4); }
    .page-head h1 { font-size: 28px; line-height: 1.15; }
    .page-head p { font-size: 16px; }
    .author-head__photo { width: 72px; height: 72px; border-radius: 18px; }
}

/* ── story ── */
.story-col { padding-top: var(--s8); }
.story { display: flex; flex-direction: column; gap: var(--s6); }
.story + .story, .next-loader + .story { margin-top: var(--s12); }
.story__head { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s10) var(--card-pad) var(--s8); }
.story__head .kicker { font-size: 13px; }
.story__title { font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.story__lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.byline { display: flex; align-items: center; gap: var(--s3); }
.avatar {
    flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 12px; background: var(--ink); color: #FFFFFF; font-weight: 800; font-size: 14px; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline__who { display: flex; flex-direction: column; min-width: 0; }
.byline__name { font-weight: 800; font-size: 15px; }
.byline__name:hover { color: var(--ci); }
.byline .meta { font-size: 13px; }
.story__figure { margin: var(--s2) calc(-1 * var(--card-pad)) 0; }
.story__figure .media { aspect-ratio: 16 / 9; }
.credit, .rich figcaption { padding: var(--s2) var(--card-pad) 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; gap: var(--s2); }
.share__btn {
    display: flex; align-items: center; justify-content: center; gap: var(--s2); min-width: 64px; height: 44px; padding: 0 var(--s4);
    border: 0; border-radius: 12px; background: var(--bg); font-weight: 800; font-size: 14px; color: var(--ink);
}
.share__btn:hover { background: var(--ct); }
.share__btn svg { width: 18px; height: 18px; }
.share__btn.is-done { background: var(--ink); color: #FFFFFF; }
.share__btn[hidden] { display: none; }
.preferred { align-self: flex-start; font-size: 14px; font-weight: 700; color: var(--ci); text-decoration: underline; text-underline-offset: 3px; }

.ad--story { min-height: 250px; }
.story__body { padding: var(--s10) var(--card-pad) var(--s8); }
.preview-note { margin: var(--s8) 0 0; padding: var(--s4) var(--s5); border-radius: var(--r); background: #FFF1C2; font-weight: 700; }
.story-col .preview-note + .story { margin-top: var(--s4); }

/* text of a story and of the static pages */
.rich { font-size: 18px; line-height: 1.65; overflow-wrap: break-word; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0 0 var(--s5); }
.rich h2 { margin: var(--s10) 0 14px; font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; scroll-margin-top: var(--s4); }
.rich h3 { margin: var(--s8) 0 var(--s3); font-size: 21px; line-height: 1.3; font-weight: 800; scroll-margin-top: var(--s4); }
.rich h4 { margin: var(--s6) 0 var(--s2); font-size: 18px; font-weight: 800; }
.rich ul, .rich ol { margin: 0 0 var(--s5); padding-left: var(--s6); }
.rich li { margin-bottom: 6px; padding-left: var(--s1); }
.rich li::marker { color: var(--ci); font-weight: 800; }
.rich a { color: var(--ci); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rich a:hover { text-decoration-thickness: 2px; }
.rich strong, .rich b { font-weight: 800; }
.rich blockquote { margin: var(--s6) 0; padding: var(--s1) 0 var(--s1) var(--s5); border-left: 4px solid var(--c); font-weight: 600; }
.rich figure { margin: var(--s8) calc(-1 * var(--card-pad)); }
.rich figure img { width: 100%; }
.rich img { border-radius: 0; }
.rich hr { margin: var(--s8) 0; border: 0; border-top: 1px solid var(--line); }
.rich table { display: block; max-width: 100%; overflow-x: auto; margin: 0 0 var(--s5); border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.rich th, .rich td { padding: 10px var(--s3); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rich th { font-weight: 800; }
.rich iframe { max-width: 100%; border: 0; }

.video { position: relative; margin-top: var(--s6); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--ink); }
.video iframe, .video__btn { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__btn { padding: 0; background: none; }
.video__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--gold); }
.video__play::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--ink); }

.story__tags { margin-top: var(--s8); }
.dzen { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s5) var(--s6); border-radius: var(--r); background: var(--dark); color: var(--on-dark); }
.dzen__title { font-weight: 800; font-size: 17px; color: #FFFFFF; }
.dzen__text { font-size: 14px; color: var(--on-dark-2); }
.dzen__btn { flex: 0 0 auto; display: flex; align-items: center; height: 44px; padding: 0 var(--s5); border-radius: var(--pill); background: var(--gold); color: var(--ink); font-weight: 800; }
.dzen__btn:hover { background: #E0BA3A; }
.story__note { padding: 0 var(--s1); font-size: 13px; color: var(--muted); }
.story__note a { text-decoration: underline; text-underline-offset: 2px; }

.more { margin-top: var(--s12); }
.more__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); list-style: none; }
.more__list > li { display: flex; }
.more__list .mini { flex: 1; }

@media (max-width: 767px) {
    .story-col { padding-top: var(--s3); }
    .story { gap: var(--s3); }
    .story__head { padding: var(--s5) var(--card-pad) var(--s5); gap: 14px; }
    .story__title { font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; }
    .story__lead { font-size: 17px; }
    .share__btn { flex: 1 1 0; min-width: 0; padding: 0; }
    .ad--story { min-height: 300px; }
    .story__body { padding: 22px var(--card-pad) var(--s6); }
    .rich { font-size: 17px; line-height: 1.62; }
    .rich p { margin-bottom: var(--s4); }
    .rich h2 { margin-top: var(--s8); font-size: 21px; }
    .rich h3 { margin-top: 28px; font-size: 19px; }
    .rich figure { margin: var(--s6) calc(-1 * var(--card-pad)); }
    .dzen { flex-direction: column; align-items: flex-start; padding: var(--s5) var(--s4); }
    .more { margin-top: var(--s8); }
    .more__list { grid-template-columns: minmax(0, 1fr); }
}

/* ── static pages and errors ── */
.page-card { margin-top: var(--s8); padding: var(--s10) var(--card-pad) var(--s12); }
.page-card h1 { margin-bottom: var(--s6); font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.contacts { margin-top: var(--s8); padding: var(--s5) var(--s6); border-radius: var(--r); background: var(--bg); }
.error-page { margin: var(--s8) 0 0; padding: var(--s14) var(--card-pad); }
.error-page__code { font-size: 96px; line-height: 1; font-weight: 800; color: var(--gold-ink); letter-spacing: -0.03em; }
.error-page h1 { margin: var(--s4) 0 var(--s3); font-size: 40px; line-height: 1.15; font-weight: 800; }
.error-page p { max-width: 640px; font-size: 18px; color: var(--ink-2); }
.error-page .pills { margin-top: var(--s6); }
@media (max-width: 767px) {
    .page-card { margin-top: var(--s4); padding: var(--s6) var(--card-pad) var(--s8); }
    .page-card h1 { font-size: 28px; }
    .error-page { margin-top: var(--s4); padding: var(--s10) var(--card-pad); }
    .error-page__code { font-size: 64px; }
    .error-page h1 { font-size: 28px; }
}

/* ── footer ── */
.foot { margin-top: var(--s14); background: var(--dark); color: var(--on-dark-2); }
.foot__in { display: flex; flex-direction: column; gap: var(--s6); padding-top: 44px; padding-bottom: 36px; }
.foot__top { display: flex; justify-content: space-between; align-items: center; gap: var(--s6); }
.foot__logo img { width: 177px; height: 26px; }
.foot__tagline { font-size: 14px; text-align: right; }
.foot__tagline a { color: var(--on-dark); }
.foot__tagline a:hover, .foot a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); list-style: none; font-weight: 700; color: var(--on-dark); }
.foot__nav a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 32px; }
.foot__nav a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.foot__bottom { display: flex; justify-content: space-between; gap: var(--s3) var(--s6); flex-wrap: wrap; padding-top: var(--s5); border-top: 1px solid var(--dark-line); font-size: 13px; color: var(--on-dark-3); }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); list-style: none; }
.foot__links a { color: var(--on-dark-2); }
@media (max-width: 767px) {
    .foot { margin-top: var(--s10); }
    .foot__in { padding-top: var(--s8); padding-bottom: var(--s8); gap: var(--s5); }
    .foot__top { flex-direction: column; align-items: flex-start; gap: var(--s3); }
    .foot__tagline { text-align: left; }
    .foot__bottom { flex-direction: column-reverse; }
}

/* ── cookie notice, «наверх» ── */
.cookie { position: fixed; left: var(--s4); right: var(--s4); bottom: var(--s4); z-index: 30; display: none; }
.cookie.is-shown { display: block; }
.cookie__in {
    display: flex; align-items: center; gap: var(--s4); max-width: 760px; margin: 0 auto; padding: var(--s4) var(--s5);
    border-radius: var(--r); background: var(--dark); color: var(--on-dark-2); box-shadow: 0 8px 32px rgba(22, 23, 27, .25);
}
.cookie p { font-size: 14px; line-height: 1.45; }
.cookie a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 2px; }
.cookie__btn { flex: 0 0 auto; height: 44px; padding: 0 var(--s5); border: 0; border-radius: var(--pill); background: var(--gold); color: var(--ink); font-weight: 800; }
.cookie__btn:hover { background: #E0BA3A; }
@media (max-width: 767px) {
    .cookie { left: var(--s2); right: var(--s2); bottom: var(--s2); }
    .cookie__in { flex-direction: column; align-items: stretch; padding: var(--s4); gap: var(--s3); }
}
.to-top {
    position: fixed; right: var(--s4); bottom: var(--s4); z-index: 20; display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--dark); color: #FFFFFF;
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.to-top.is-shown { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--dark-2); }
.to-top svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
@media (max-width: 1279px) { .to-top { right: var(--s3); bottom: var(--s3); } }
