/* Молодёжь46 — generated from design-system/tokens.json by scripts/build-tokens.mjs. Не править руками. */
@font-face { font-family: "Coolvetica Compressed"; src: url("../fonts/coolvetica-compressed-rg.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Coolvetica"; src: url("../fonts/coolvetica-rg.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-cyrillic.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; 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 {
  color-scheme: light;
  --ground: #f1f1f1;
  --surface: #ffffff;
  --surface-inverse: #1d1d1d;
  --line: #e3e3e3;
  --ink: #1d1d1d;
  --ink-muted: #5a5a5a;
  --ink-inverse: #ffffff;
  --orange: #ff6a00;
  --on-orange: #1d1d1d;
  --purple: #9630ad;
  --on-purple: #ffffff;
  --red: #fa370c;
  --on-red: #1d1d1d;
  --yellow: #f6cb26;
  --on-yellow: #1d1d1d;
  --green: #21e67f;
  --on-green: #1d1d1d;
  --brand-black: #1d1d1d;
  --brand-white: #ffffff;
  --brand-gray: #f1f1f1;
  --focus-ring: #1d1d1d;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;
  --radius-xl: 48px;
  --radius-full: 999px;
  --control-l: 56px;
  --control-m: 44px;
  --container: 1280px;
  --font-display: "Coolvetica Compressed", "Arial Narrow", sans-serif;
  --font-heading: "Coolvetica", "Inter", sans-serif;
  --font-condensed: "Coolvetica Condensed", "Coolvetica", sans-serif;
  --font-crammed: "Coolvetica Crammed", "Coolvetica", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}


/* Молодёжь46 — компоненты. Все значения берутся из tokens.css; классы с префиксом m46-. */

.m46-root { background: var(--ground); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.2; -webkit-font-smoothing: antialiased; }
.m46-display { font-family: var(--font-display); font-weight: 400; line-height: .8; text-transform: uppercase; letter-spacing: 0; text-wrap: balance; margin: 0; }
.m46-subtitle { font-family: var(--font-heading); font-weight: 400; line-height: 1; margin: 0; }

/* ---------- Button ---------- */
.m46-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3); box-sizing: border-box; height: var(--control-m); padding: 0 var(--space-5); border: 2px solid transparent; border-radius: var(--radius-m); font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }
.m46-btn--l { height: var(--control-l); padding: 0 var(--space-6); font-size: 18px; }
.m46-btn--block { display: flex; width: 100%; }
.m46-btn--primary { background: var(--orange); color: var(--on-orange); }
.m46-btn--primary:hover { background: var(--surface-inverse); color: var(--ink-inverse); }
.m46-btn--dark { background: var(--surface-inverse); color: var(--ink-inverse); }
.m46-btn--dark:hover { background: var(--orange); color: var(--on-orange); }
.m46-btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.m46-btn--outline:hover { background: var(--ink); color: var(--ground); }
.m46-btn--on-brand { background: var(--brand-white); color: var(--brand-black); }
.m46-btn--on-brand:hover { background: var(--brand-black); color: var(--brand-white); }
.m46-btn:active { transform: translateY(1px); }
.m46-btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.m46-btn[disabled], .m46-btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.m46-btn__arrow { font-weight: 500; transition: transform .15s ease; }
.m46-btn:hover .m46-btn__arrow { transform: translateX(3px); }

/* ---------- Tag ---------- */
.m46-tag { display: inline-flex; align-items: center; gap: var(--space-2); height: 32px; padding: 0 14px; border-radius: var(--radius-full); font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; background: var(--surface); color: var(--ink); }
.m46-tag--orange { background: var(--orange); color: var(--on-orange); }
.m46-tag--purple { background: var(--purple); color: var(--on-purple); }
.m46-tag--red { background: var(--red); color: var(--on-red); }
.m46-tag--yellow { background: var(--yellow); color: var(--on-yellow); }
.m46-tag--green { background: var(--green); color: var(--on-green); }
.m46-tag--outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- BentoCard ---------- */
.m46-bento { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.m46-card { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; box-sizing: border-box; padding: var(--space-6); border-radius: var(--radius-l); background: var(--surface); color: var(--ink); }
.m46-card__label { font-family: var(--font-body); font-size: 15px; font-weight: 500; line-height: 1.2; margin: 0; }
.m46-card__label::before { content: "↓"; margin-right: var(--space-2); }
.m46-card__label--plain::before { content: none; }
.m46-card__title { font-family: var(--font-body); font-size: 32px; font-weight: 500; line-height: 1.1; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.m46-card__text { font-size: 18px; line-height: 1.2; margin: 0; color: var(--ink-muted); }
.m46-card--inverse { background: var(--surface-inverse); color: var(--ink-inverse); }
.m46-card--inverse .m46-card__text { color: var(--ink-inverse); }
.m46-card--orange { background: var(--orange); color: var(--on-orange); }
.m46-card--orange .m46-card__text { color: var(--on-orange); }
.m46-card--center { align-items: center; text-align: center; }
@media (max-width: 640px) { .m46-card { padding: var(--space-5); border-radius: var(--radius-m); } .m46-card__title { font-size: 24px; } }

/* ---------- ChannelCard ---------- */
.m46-channels { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.m46-channel { display: flex; flex-direction: column; gap: var(--space-5); box-sizing: border-box; min-width: 0; padding: var(--space-6); border-radius: var(--radius-l); background: var(--surface); color: var(--ink); }
.m46-channel__head { display: flex; align-items: center; gap: var(--space-3); }
.m46-channel__avatar { flex: none; width: 56px; height: 56px; border-radius: var(--radius-full); background: var(--brand-white); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; overflow: hidden; }
.m46-channel__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m46-channel__avatar--initials { background: var(--surface-inverse); color: var(--ink-inverse); box-shadow: none; font-family: var(--font-display); font-size: 26px; text-transform: uppercase; }
.m46-channel__org { min-width: 0; }
.m46-channel__name { font-family: var(--font-heading); font-size: 24px; font-weight: 400; line-height: 1; margin: 0; }
.m46-channel__platform { margin: var(--space-1) 0 0; font-size: 15px; font-weight: 500; color: var(--ink-muted); }
.m46-channel__text { margin: 0; font-size: 18px; line-height: 1.2; }
.m46-channel__points { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); font-size: 15px; line-height: 1.2; }
.m46-channel__points li::before { content: "→"; margin-right: var(--space-2); color: var(--ink-muted); }
.m46-channel__cta { margin-top: auto; }
.m46-channel--featured { background: var(--orange); color: var(--on-orange); }
.m46-channel--featured .m46-channel__platform, .m46-channel--featured .m46-channel__points li::before { color: var(--on-orange); }
.m46-channel--featured .m46-btn--primary { background: var(--brand-black); color: var(--brand-white); }
.m46-channel--featured .m46-btn--primary:hover { background: var(--brand-white); color: var(--brand-black); }
.m46-channel--featured .m46-btn:focus-visible { outline-color: var(--brand-black); }

/* ---------- PostBubble ---------- */
.m46-post { max-width: 420px; box-sizing: border-box; padding: var(--space-3) var(--space-4) var(--space-2); border-radius: var(--radius-m) var(--radius-m) var(--radius-m) 6px; background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.3; }
.m46-post p { margin: 0 0 var(--space-2); }
.m46-post strong { font-weight: 600; }
.m46-post__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-2); }
.m46-post__reaction { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--radius-full); background: var(--ground); font-size: 13px; font-weight: 600; }
.m46-post__meta { display: inline-flex; gap: var(--space-3); font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* ---------- SpeakerPlate ---------- */
.m46-speaker { display: inline-flex; flex-direction: column; gap: var(--space-2); max-width: 240px; box-sizing: border-box; padding: var(--space-4); border-radius: var(--radius-m); background: var(--orange); color: var(--brand-white); }
.m46-speaker__name { font-family: var(--font-heading); font-size: 28px; font-weight: 400; line-height: 1; margin: 0; }
.m46-speaker__role { font-family: var(--font-body); font-size: 13.5px; font-weight: 600; line-height: 1.2; margin: 0; }
.m46-speaker--ui { color: var(--on-orange); }

/* ---------- EventPoster (4:5, 1080 × 1350) ---------- */
.m46-poster { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 540px; aspect-ratio: 4 / 5; box-sizing: border-box; overflow: hidden; container-type: inline-size; padding: 5cqw 5cqw 9cqw; background: var(--brand-black); color: var(--brand-white); font-family: var(--font-body); }
.m46-poster--light { background: var(--brand-gray); color: var(--brand-black); }
.m46-poster__kicker { display: flex; align-items: center; justify-content: center; gap: 2cqw; font-family: var(--font-heading); font-size: 4.4cqw; font-weight: 400; color: var(--orange); margin: 0; }
.m46-poster__kicker img { height: 6cqw; width: auto; }
.m46-poster__title { margin: 2.5cqw 0 0; font-family: var(--font-display); font-weight: 400; font-size: 10.5cqw; line-height: .8; text-transform: uppercase; text-align: center; text-wrap: balance; color: var(--orange); }
.m46-poster__row { display: flex; justify-content: space-between; gap: 3cqw; margin-top: 2.5cqw; font-size: 3cqw; font-weight: 600; line-height: 1.2; }
.m46-poster__stage { position: relative; flex: 1; min-height: 0; margin-top: 4cqw; }
.m46-poster__shape { position: absolute; inset: 0; background: currentColor; opacity: 1; -webkit-mask: var(--m46-shape) center / contain no-repeat; mask: var(--m46-shape) center / contain no-repeat; }
.m46-poster__photo { position: absolute; left: 28%; right: 18%; top: 14%; bottom: 0; display: grid; place-items: center; border-radius: var(--radius-m) var(--radius-m) 0 0; background: var(--brand-gray); color: var(--brand-black); font-size: 2.8cqw; text-align: center; padding: 4cqw 3cqw 4cqw 10cqw; box-sizing: border-box; }
.m46-poster--light .m46-poster__photo { background: var(--brand-black); color: var(--brand-white); }
.m46-poster__photo:has(img) { background: none; padding: 0; }
.m46-poster__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.m46-poster__sq { position: absolute; width: 7.5cqw; aspect-ratio: 1; }
.m46-poster .m46-speaker { position: absolute; left: 0; top: 40%; max-width: 34cqw; padding: 3cqw; border-radius: 3cqw; }
.m46-poster .m46-speaker__name { font-size: 5.6cqw; }
.m46-poster .m46-speaker__role { font-size: 2.4cqw; }
.m46-poster__foot { position: absolute; left: 5cqw; right: 5cqw; bottom: 3cqw; display: flex; justify-content: space-between; font-size: 2.4cqw; font-weight: 600; opacity: .8; }

/* ---------- SloganRibbon ---------- */
.m46-ribbon { display: flex; align-items: center; gap: var(--space-4); overflow: hidden; box-sizing: border-box; padding: var(--space-3) var(--space-5); background: var(--orange); color: var(--brand-white); }
.m46-ribbon--black { background: var(--brand-black); }
.m46-ribbon--green { background: var(--green); }
.m46-ribbon__track { display: flex; align-items: center; gap: var(--space-5); flex: none; }
.m46-ribbon__item { display: inline-flex; align-items: center; gap: var(--space-3); white-space: nowrap; font-family: var(--font-display); font-size: 40px; line-height: .9; text-transform: uppercase; }
.m46-ribbon__item img { height: .9em; width: auto; }
.m46-ribbon--marquee .m46-ribbon__track { animation: m46-marquee 28s linear infinite; }
@keyframes m46-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-100% - var(--space-5))); } }
@media (prefers-reduced-motion: reduce) { .m46-ribbon--marquee .m46-ribbon__track { animation: none; } }

/* ---------- ContactList ---------- */
.m46-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); font-family: var(--font-body); font-size: 16px; font-weight: 500; line-height: 1.2; }
.m46-contacts li { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.m46-contacts svg { flex: none; width: 20px; height: 20px; fill: currentColor; }
.m46-contacts a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.m46-contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.m46-contacts a:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

/* молодежь46.рф — раскладка страницы. Цвета, шрифты, отступы — только из tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-width: 320px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--space-8)); margin-inline: auto; padding-inline: var(--space-4); }
@media (min-width: 768px) { .wrap { padding-inline: var(--space-8); } }

.skip { position: absolute; left: var(--space-4); top: -100px; z-index: 50; padding: var(--space-3) var(--space-4); border-radius: var(--radius-s); background: var(--surface-inverse); color: var(--ink-inverse); }
.skip:focus { top: var(--space-3); }

/* ---------- орнаменты (CSS mask, цвет = currentColor) ---------- */
.orn { position: absolute; display: block; background: currentColor; pointer-events: none; -webkit-mask: var(--orn) center / contain no-repeat; mask: var(--orn) center / contain no-repeat; }
.orn--star { --orn: url("/assets/img/m46-ornament-star.svg"); }
.orn--wheat, .orn--grain { --orn: url("/assets/img/m46-ornament-wheat-ear.svg"); }
.orn--berries { --orn: url("/assets/img/m46-ornament-berries-a.svg"); }
.orn--curl { --orn: url("/assets/img/m46-ornament-curl-b.svg"); }
.orn--sprout { --orn: url("/assets/img/m46-ornament-sprout.svg"); }
.orn--pinwheel { --orn: url("/assets/img/m46-ornament-pinwheel-a.svg"); }
.orn--rhombus { --orn: url("/assets/img/m46-ornament-rhombus-cross.svg"); }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--ground); padding-top: env(safe-area-inset-top, 0px); }
.top__in { display: flex; align-items: center; gap: var(--space-5); padding-block: var(--space-3); }
.top__logo img { height: 40px; width: auto; }
.top__nav { display: none; gap: var(--space-5); margin-left: auto; font-size: 15px; font-weight: 500; }
.top__nav a { text-decoration: none; }
.top__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top__cta { margin-left: auto; }
@media (min-width: 900px) { .top__nav { display: flex; } .top__cta { margin-left: 0; } }

/* ---------- первый экран ---------- */
.hero { padding-top: var(--space-2); }
.hero__grid { display: grid; gap: var(--space-2); }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.hero__main { gap: var(--space-6); padding: var(--space-6) var(--space-5); }
@media (min-width: 768px) { .hero__main { padding: var(--space-7); } }
.hero__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(72px, 13vw, 168px); line-height: .8; text-transform: uppercase; text-wrap: balance; margin-top: var(--space-2); }
.hero__lead { font-size: 20px; line-height: 1.25; max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 559px) { .hero__actions .m46-btn { width: 100%; white-space: normal; text-align: center; height: auto; min-height: var(--control-l); padding-block: var(--space-3); } }

.hero__side { position: relative; overflow: hidden; min-height: 360px; justify-content: space-between; padding: var(--space-6); }
.hero__mark { position: relative; width: 88px; height: auto; }
.hero__orn1 { width: 300px; height: 300px; right: -90px; top: -70px; color: var(--brand-black); }
.hero__orn2 { width: 120px; height: 190px; right: 28px; bottom: 150px; color: var(--brand-white); transform: rotate(18deg); }
.hero__stat { position: relative; display: grid; gap: var(--space-3); }
.hero__num { font-family: var(--font-display); font-size: clamp(80px, 9vw, 120px); line-height: .8; }
.hero__cap { font-size: 16px; line-height: 1.25; font-weight: 500; max-width: 28ch; }

/* ---------- лента-слоган ---------- */
.ribbon { margin-top: var(--space-7); }

/* ---------- секции ---------- */
.section { padding-top: var(--space-9); }
@media (max-width: 767px) { .section { padding-top: var(--space-8); } }
.section__head { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-5); }
.section__head--row > div:first-child { display: grid; gap: var(--space-3); }
.section__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(52px, 8vw, 96px); line-height: .8; text-transform: uppercase; text-wrap: balance; }
.section__lead { font-size: 20px; line-height: 1.25; color: var(--ink-muted); max-width: 48ch; }

/* ---------- направления ---------- */
.dirs { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.dir { position: relative; overflow: hidden; min-height: 210px; justify-content: space-between; }
.dir .m46-tag { align-self: flex-start; position: relative; z-index: 1; }
.dir:last-child .m46-tag { box-shadow: inset 0 0 0 1.5px var(--ink); }
.dir__text { position: relative; z-index: 1; font-size: 22px; font-weight: 500; line-height: 1.15; max-width: 22ch; }
.dir__orn { width: 150px; height: 150px; right: -36px; bottom: -36px; opacity: .9; }
.dir:nth-child(1) .dir__orn { color: var(--orange); }
.dir:nth-child(2) .dir__orn { color: var(--yellow); }
.dir:nth-child(3) .dir__orn { color: var(--green); }
.dir:nth-child(4) .dir__orn { color: var(--purple); }
.dir:nth-child(5) .dir__orn { color: var(--red); }
.dir:nth-child(6) .dir__orn { color: var(--line); }

/* ---------- каналы ---------- */
.progress { font-size: 15px; font-weight: 600; }
.m46-channel { position: relative; }
.m46-channel.is-opened::after { content: "Открыт ✓"; position: absolute; top: var(--space-5); right: var(--space-5); padding: 4px 10px; border-radius: var(--radius-full); background: var(--green); color: var(--on-green); font-size: 13px; font-weight: 600; }
.m46-channel--featured.is-opened::after { background: var(--brand-black); color: var(--brand-white); }

/* ---------- лента VK ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter { cursor: pointer; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.feed { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
.feed__empty { grid-column: 1 / -1; padding: var(--space-6); border-radius: var(--radius-l); background: var(--surface); color: var(--ink-muted); }
.feed__more { display: flex; justify-content: center; margin-top: var(--space-5); }

.post { display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius-l); background: var(--surface); overflow: hidden; }
.post__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--line); }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__badge { position: absolute; right: var(--space-3); bottom: var(--space-3); padding: 4px 10px; border-radius: var(--radius-full); background: var(--brand-black); color: var(--brand-white); font-size: 13px; font-weight: 600; }
.post__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); flex: 1; }
.post__src { display: flex; align-items: center; gap: var(--space-2); font-size: 14px; font-weight: 600; }
.post__src img { width: 28px; height: 28px; border-radius: var(--radius-full); box-shadow: inset 0 0 0 1px var(--line); background: var(--brand-white); }
.post__date { margin-left: auto; color: var(--ink-muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
.post__text { font-size: 15px; line-height: 1.35; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.post__text a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.post__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: auto; padding-top: var(--space-2); font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.post__more { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.post__more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- финал ---------- */
.final { position: relative; overflow: hidden; display: grid; justify-items: start; gap: var(--space-5); padding: var(--space-8) var(--space-5); border-radius: var(--radius-xl); background: var(--orange); color: var(--on-orange); }
@media (min-width: 768px) { .final { padding: var(--space-9) var(--space-8); } }
.final__orn { width: 420px; height: 420px; right: -110px; bottom: -150px; color: var(--brand-black); }
.final__title { position: relative; font-family: var(--font-display); font-weight: 400; font-size: clamp(64px, 11vw, 150px); line-height: .8; text-transform: uppercase; max-width: 920px; text-wrap: balance; }
.final__lead { position: relative; font-size: 20px; line-height: 1.25; font-weight: 500; max-width: 30ch; }
.final .m46-btn { position: relative; }
.final__links { position: relative; font-size: 15px; font-weight: 500; }
.final__links a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.final a:focus-visible { outline-color: var(--brand-black); }

/* ---------- подвал ---------- */
.foot { margin-top: var(--space-9); background: var(--surface-inverse); color: var(--ink-inverse); padding-block: var(--space-8) calc(var(--space-8) + env(safe-area-inset-bottom, 0px)); }
.foot__in { display: grid; gap: var(--space-6); }
.foot__logos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); }
.foot__logos > img { height: 44px; width: auto; }
.foot__dvorec { display: inline-flex; padding: var(--space-2) var(--space-3); border-radius: var(--radius-m); background: var(--brand-white); }
.foot__dvorec img { height: 40px; width: auto; }
.foot__orgs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: 15px; line-height: 1.3; }
.foot__orgs a { text-underline-offset: 3px; }
.foot__copy { font-size: 13.5px; font-weight: 600; opacity: .7; }
.foot a:focus-visible { outline-color: var(--orange); }

/* ---------- липкая кнопка (телефон) ---------- */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); background: var(--ground); box-shadow: 0 -1px 0 var(--line); }
@media (min-width: 768px) { .sticky { display: none !important; } }
@media (max-width: 767px) { body.has-sticky .foot { padding-bottom: calc(var(--space-8) + 88px); } }

/* ---------- сетки без «сирот» ---------- */
@media (min-width: 768px) { .m46-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 600px) { .dirs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .dirs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feed { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .feed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .feed { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post__media { overflow: hidden; }
.post__media img { position: absolute; inset: 0; }
.dir__text { max-width: min(22ch, calc(100% - 84px)); }

/* ================= внутренние страницы (SEO) ================= */
.top__nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.menu { margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 10px 14px; border-radius: var(--radius-m); box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 600; font-size: 15px; }
.menu summary::-webkit-details-marker { display: none; }
.menu__list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; display: grid; min-width: 240px; padding: var(--space-3); border-radius: var(--radius-m); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.menu__list a { padding: 10px 12px; border-radius: var(--radius-s); text-decoration: none; font-weight: 500; }
.menu__list a:hover { background: var(--ground); }
.menu + .top__cta { margin-left: 0; }
@media (min-width: 900px) { .menu { display: none; } }
@media (max-width: 420px) { .top__cta { padding-inline: var(--space-4); } }

.crumbs { padding-block: var(--space-2) var(--space-3); font-size: 14px; color: var(--ink-muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "→"; margin-right: 6px; }
.crumbs a { text-underline-offset: 3px; }

.page-hero__card { position: relative; overflow: hidden; gap: var(--space-5); padding: var(--space-6) var(--space-5); }
@media (min-width: 768px) { .page-hero__card { padding: var(--space-7); } }
.page-hero__card > * { position: relative; z-index: 1; }
.page-hero__card .m46-tag { align-self: flex-start; }
.page-hero__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(56px, 10vw, 128px); line-height: .8; text-transform: uppercase; text-wrap: balance; max-width: 14ch; }
.page-hero__lead { font-size: 20px; line-height: 1.25; max-width: 44ch; }
.page-hero__orn { position: absolute !important; z-index: 0 !important; width: 260px; height: 260px; right: -60px; bottom: -70px; }
.page-hero__orn--orange { color: var(--orange); } .page-hero__orn--yellow { color: var(--yellow); } .page-hero__orn--green { color: var(--green); } .page-hero__orn--purple { color: var(--purple); }
@media (max-width: 767px) { .page-hero__orn { width: 160px; height: 160px; right: -50px; bottom: -50px; opacity: .5; } }

.prose-grid { display: grid; gap: var(--space-2); padding-top: var(--space-2); }
@media (min-width: 960px) { .prose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prose { gap: var(--space-4); font-size: 17px; line-height: 1.45; }
.prose h2 { font-family: var(--font-heading); font-weight: 400; font-size: 30px; line-height: 1; }
.prose p, .prose ul, .prose ol { margin: 0; max-width: 62ch; }
.prose a { text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: var(--space-2); }
.steps { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: var(--radius-full); background: var(--orange); color: var(--on-orange); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.ticks { list-style: none; padding-left: 0 !important; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: "→"; position: absolute; left: 0; color: var(--ink-muted); }
.cards-list { list-style: none; padding-left: 0 !important; }
.cards-list li { padding: var(--space-3) var(--space-4); border-radius: var(--radius-s); background: var(--ground); }
.facts dl { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: var(--space-2) var(--space-4); margin: 0; }
.facts dt { color: var(--ink-muted); font-size: 15px; }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 520px) { .facts dl { grid-template-columns: 1fr; } .facts dd { margin-bottom: var(--space-2); } }

.faq { display: grid; gap: var(--space-2); max-width: 900px; }
.faq__item { border-radius: var(--radius-m); background: var(--surface); }
.faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-5); font-size: 19px; font-weight: 600; line-height: 1.25; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 26px; line-height: .8; font-weight: 400; }
.faq__item[open] summary::after { content: "–"; }
.faq__a { padding: 0 var(--space-5) var(--space-5); font-size: 17px; line-height: 1.45; color: var(--ink-muted); max-width: 70ch; }

.dir--link { text-decoration: none; color: inherit; transition: transform .15s ease; }
.dir--link:hover { transform: translateY(-2px); }
.dir__go { position: absolute; right: var(--space-5); top: var(--space-5); font-size: 22px; font-weight: 500; z-index: 1; }

.feed__more { gap: var(--space-3); flex-wrap: wrap; }
.pager { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-top: var(--space-6); }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: var(--radius-m); background: var(--surface); text-decoration: none; font-weight: 600; }
.pager span { background: var(--ink); color: var(--ground); }

.article__card { gap: var(--space-5); max-width: 860px; margin-inline: auto; padding: var(--space-6) var(--space-5); }
@media (min-width: 768px) { .article__card { padding: var(--space-7); } }
.article__card .post__src img { width: 32px; height: 32px; }
.article__title { font-family: var(--font-heading); font-weight: 400; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.02; text-wrap: balance; }
.article__img { width: 100%; height: auto; border-radius: var(--radius-m); }
.article__text { font-size: 18px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; max-width: 68ch; }
.article__text a { text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article__src { font-size: 14px; color: var(--ink-muted); }
.article__nav { display: flex; justify-content: space-between; gap: var(--space-4); max-width: 860px; margin: var(--space-5) auto 0; font-size: 15px; font-weight: 500; }
.article__nav a { max-width: 45%; text-underline-offset: 3px; }

.foot__cols { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.foot__h { font-family: var(--font-heading); font-size: 22px; margin-bottom: var(--space-3); }
.foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: 15px; line-height: 1.3; }
.foot__list a { text-underline-offset: 3px; }
