/* Дизайн-система «Квартал 5.2» — claude/03-dizain-sistema.md
   Генплан: страница — участок, блоки — кварталы, промежутки — улицы 14 px. */

@font-face {
  font-family: 'Sofia Sans';
  src: url('/fonts/sofia-sans-var.woff') format('woff');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  src: url('/fonts/sofia-sans-extra-condensed-700.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --street: #D9DBDC;
  --module: #F4F4F2;
  --ink: #1C1E20;
  --text-2: #5C6166;
  --text-3: #3E4247;
  --text-body: #2E3135;
  --res: #BFD6E6;
  --res-light: #DCE8F1;
  --com: #2B3550;
  --guide: #CFE3D6;
  --guide-hover: #DDEDE2;
  --line: #CACDCF;
  --line-2: #D3D5D6;
  --on-ink: #D9DCE0;
  --gap: 14px;
  --avenue: 72px;
  --r: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Sofia Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-cond: 'Sofia Sans Extra Condensed', 'Sofia Sans', 'Arial Narrow', sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 14px; }
body {
  margin: 0;
  background: var(--street);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  padding: var(--gap) 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
a { color: var(--com); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
b, strong { font-weight: 700; color: var(--ink); }
:focus-visible { outline: 2px solid var(--com); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .key:focus-visible, .chip:focus-visible { border-radius: 999px; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 14px; top: -100px; z-index: 50;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 14px; color: #fff; }

/* ---------- Сетка ---------- */
.wrap { max-width: 1340px; margin: 0 auto; padding: 0 var(--gap); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; }
.s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s9 { grid-column: span 9; } .s12 { grid-column: span 12; }
.section { padding-top: var(--avenue); }
.section--tight { padding-top: var(--gap); }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* ---------- Модули ---------- */
.m { background: var(--module); border-radius: var(--r); }
.m--res { background: var(--res); }
.m--res-light { background: var(--res-light); }
.m--com { background: var(--com); color: #fff; }
.m--guide { background: var(--guide); }
.m--ink { background: var(--ink); color: #fff; }

/* ---------- Типографика ---------- */
.cond {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.2;
}
.h1 {
  font-weight: 300;
  font-size: clamp(46px, 6.2vw, 84px);
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.h1--md { font-size: clamp(40px, 4.8vw, 66px); line-height: 1.02; }
.h2 {
  font-weight: 300;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h2--sm { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.04; }
.h3 { font-weight: 300; font-size: clamp(28px, 2.6vw, 34px); line-height: 1.06; letter-spacing: -.03em; }
.h4 { font-weight: 600; font-size: 21px; line-height: 1.3; letter-spacing: -.005em; }
.lead { font-size: 18.5px; line-height: 1.6; color: var(--text-body); }
.text { font-size: 16.5px; line-height: 1.6; color: var(--text-body); }
.muted { color: var(--text-2); }
.note { padding: 12px var(--gap) 0; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.note a { color: var(--com); }
.big { font-weight: 800; font-size: clamp(42px, 4.4vw, 58px); line-height: .95; letter-spacing: -.03em; white-space: nowrap; }
.big--md { font-size: clamp(40px, 3.8vw, 52px); }
.big--sm { font-size: clamp(36px, 3.2vw, 48px); line-height: 1; }
.big--xs { font-size: 42px; line-height: 1; }
.num-anim { transition: font-weight .9s var(--ease); }
.js .num-anim:not(.is-in) { font-weight: 300; }

.shead { padding: 8px var(--gap) 0; display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; max-width: 980px; }
.shead__lead { font-size: 17.5px; line-height: 1.6; color: var(--text-body); max-width: 70ch; }
.shead--side { margin-bottom: 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 16.5px; line-height: 1.2;
  padding: 17px 26px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--street { background: var(--street); color: var(--ink); font-weight: 600; }
.btn--light { background: var(--module); color: var(--ink); }
.btn--dark2 { background: #34373C; color: #fff; font-weight: 600; }
.btn:hover, .btn[open] { background: var(--com); color: #fff; }
.btn--sm { font-size: 15px; padding: 12px 20px; }
.btn--inline { display: inline-block; }
.btn--md { font-size: 15.5px; padding: 14px 22px; }
.btn--lg { font-size: 17px; padding: 18px 28px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.linklike {
  background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}

/* Круглая кнопка в гнезде */
.key {
  position: absolute; right: 10px; bottom: 10px; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none; font-size: 22px; line-height: 1;
  color: var(--module);
  background: linear-gradient(180deg, #34373C, var(--ink));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -2px 0 rgba(0,0,0,.3), 0 1px 0 #fff, 0 8px 16px -8px rgba(28,30,32,.7);
  transition: background .3s var(--ease), color .2s var(--ease), transform .12s var(--ease);
}
.key--top { bottom: auto; top: 10px; }
.key--light {
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #ECEEF0);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(28,30,32,.06), 0 8px 16px -8px rgba(0,0,0,.6);
}
.key:hover { color: var(--ink); background: linear-gradient(180deg, #D3E4F0, var(--res)); }
.key:active { transform: translateY(1px); }
.key__arr { display: inline-block; transition: transform .25s var(--ease); }
.notched:hover .key__arr, .key:focus-visible .key__arr { transform: rotate(45deg); }
.key--down:hover .key__arr, .notched:hover .key--down .key__arr { transform: translateY(2px); }

/* Карточка с гнездом (маска) */
.notched { position: relative; display: flex; }
.notched > .m { flex: 1; min-width: 0; }
.notch-b, .notch-t { --n: 84px; --f: 16px; --R: 30px; position: relative; }
.notch-b {
  border-radius: var(--r) var(--r) 0 var(--r);
  -webkit-mask:
    linear-gradient(#000 0 0) top left/100% calc(100% - var(--n) - var(--f)) no-repeat,
    linear-gradient(#000 0 0) top left/calc(100% - var(--n) - var(--f)) 100% no-repeat,
    linear-gradient(#000 0 0) right var(--f) bottom var(--n)/var(--n) var(--f) no-repeat,
    linear-gradient(#000 0 0) right var(--n) bottom var(--f)/var(--f) var(--n) no-repeat,
    radial-gradient(circle at 0 0, #000 calc(var(--f) - .5px), #0000 var(--f)) right 0 bottom var(--n)/var(--f) var(--f) no-repeat,
    radial-gradient(circle at 0 0, #000 calc(var(--f) - .5px), #0000 var(--f)) right var(--n) bottom 0/var(--f) var(--f) no-repeat,
    radial-gradient(circle at 100% 100%, #0000 calc(var(--R) - .5px), #000 var(--R)) right calc(var(--n) - var(--R)) bottom calc(var(--n) - var(--R))/var(--R) var(--R) no-repeat;
  mask:
    linear-gradient(#000 0 0) top left/100% calc(100% - var(--n) - var(--f)) no-repeat,
    linear-gradient(#000 0 0) top left/calc(100% - var(--n) - var(--f)) 100% no-repeat,
    linear-gradient(#000 0 0) right var(--f) bottom var(--n)/var(--n) var(--f) no-repeat,
    linear-gradient(#000 0 0) right var(--n) bottom var(--f)/var(--f) var(--n) no-repeat,
    radial-gradient(circle at 0 0, #000 calc(var(--f) - .5px), #0000 var(--f)) right 0 bottom var(--n)/var(--f) var(--f) no-repeat,
    radial-gradient(circle at 0 0, #000 calc(var(--f) - .5px), #0000 var(--f)) right var(--n) bottom 0/var(--f) var(--f) no-repeat,
    radial-gradient(circle at 100% 100%, #0000 calc(var(--R) - .5px), #000 var(--R)) right calc(var(--n) - var(--R)) bottom calc(var(--n) - var(--R))/var(--R) var(--R) no-repeat;
}
.notch-t {
  border-radius: var(--r) 0 var(--r) var(--r);
  -webkit-mask:
    linear-gradient(#000 0 0) bottom left/100% calc(100% - var(--n) - var(--f)) no-repeat,
    linear-gradient(#000 0 0) top left/calc(100% - var(--n) - var(--f)) 100% no-repeat,
    linear-gradient(#000 0 0) right var(--f) top var(--n)/var(--n) var(--f) no-repeat,
    linear-gradient(#000 0 0) right var(--n) top var(--f)/var(--f) var(--n) no-repeat,
    radial-gradient(circle at 0 100%, #000 calc(var(--f) - .5px), #0000 var(--f)) right 0 top var(--n)/var(--f) var(--f) no-repeat,
    radial-gradient(circle at 0 100%, #000 calc(var(--f) - .5px), #0000 var(--f)) right var(--n) top 0/var(--f) var(--f) no-repeat,
    radial-gradient(circle at 100% 0, #0000 calc(var(--R) - .5px), #000 var(--R)) right calc(var(--n) - var(--R)) top calc(var(--n) - var(--R))/var(--R) var(--R) no-repeat;
  mask:
    linear-gradient(#000 0 0) bottom left/100% calc(100% - var(--n) - var(--f)) no-repeat,
    linear-gradient(#000 0 0) top left/calc(100% - var(--n) - var(--f)) 100% no-repeat,
    linear-gradient(#000 0 0) right var(--f) top var(--n)/var(--n) var(--f) no-repeat,
    linear-gradient(#000 0 0) right var(--n) top var(--f)/var(--f) var(--n) no-repeat,
    radial-gradient(circle at 0 100%, #000 calc(var(--f) - .5px), #0000 var(--f)) right 0 top var(--n)/var(--f) var(--f) no-repeat,
    radial-gradient(circle at 0 100%, #000 calc(var(--f) - .5px), #0000 var(--f)) right var(--n) top 0/var(--f) var(--f) no-repeat,
    radial-gradient(circle at 100% 0, #0000 calc(var(--R) - .5px), #000 var(--R)) right calc(var(--n) - var(--R)) top calc(var(--n) - var(--R))/var(--R) var(--R) no-repeat;
}

/* Карточки */
.card { padding: 34px 30px 22px; display: flex; flex-direction: column; gap: 16px; }
.card--ink { background: var(--ink); color: #fff; padding: 34px 32px 22px; min-height: 420px; }
.card--ink .card__label { color: var(--res); }
.card--ink .card__text { color: var(--on-ink); }
.card__label { font-size: 15px; color: var(--text-2); }
.card__label--pad { padding-right: 72px; }
.card__title { font-weight: 300; font-size: 34px; line-height: 1.04; letter-spacing: -.03em; }
.card__title--xl { font-size: 40px; line-height: 1.02; }
.card__title--sm { font-size: 30px; line-height: 1.06; }
.card__text { font-size: 16px; line-height: 1.6; color: var(--text-body); }
.card--ink .card__text { font-size: 16.5px; }
.card__cta { margin-top: auto; align-self: flex-start; font-size: 16px; padding: 15px 24px; }
.card__more {
  margin-top: auto; align-self: flex-start; color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.35;
  padding: 12px 88px 12px 0;
}
.card--guide { background: var(--guide); padding: 28px; gap: 12px; }
.card--guide .card__label { font-size: 14px; color: var(--ink); }
.card--tall { min-height: 250px; }
.card__gtitle { font-weight: 400; font-size: 28px; line-height: 1.1; letter-spacing: -.02em; padding-right: 64px; }
.card__link { color: var(--ink); text-decoration: none; }
.card__link:hover { text-decoration: underline; color: var(--ink); }
.card__tool { margin-top: auto; font-size: 15px; line-height: 1.45; color: var(--ink); }
.card--soon { background: #E2EBE5; }
.card--soon .card__label { color: var(--text-3); }

/* Чип ссылки на гайд */
.chip {
  display: inline-block; text-decoration: none; color: var(--ink); background: var(--guide);
  border-radius: 6px 999px 999px 999px; padding: 5px 12px; font-size: 14px; line-height: 1.3;
  transition: background-color .2s var(--ease);
}
.chip:hover { color: var(--ink); background: var(--guide-hover); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  display: inline-block; text-decoration: none; color: var(--ink); background: var(--street);
  padding: 7px 14px; border-radius: 999px; font-size: 14.5px; line-height: 1.3;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.pill:hover { background: var(--com); color: #fff; }

/* ---------- Шапка ---------- */
.site-header { position: relative; z-index: 20; }
.topbar {
  background: var(--module); border-radius: var(--r);
  padding: 14px 14px 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topbar--joined { border-radius: var(--r) var(--r) var(--r) 0; }
.logo { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 19px; white-space: nowrap; }
.logo:hover { color: var(--ink); }
.nav { display: flex; gap: 4px; font-size: 15.5px; }
.nav__link { text-decoration: none; color: var(--text-3); padding: 9px 14px; border-radius: 999px; transition: background-color .2s var(--ease), color .2s var(--ease); }
.nav__link:hover { color: var(--ink); background: rgba(217,219,220,.6); }
.nav__link.is-active { color: var(--ink); background: var(--street); }
.nav__link.is-guides { background: var(--guide); }
.topbar__end { display: flex; align-items: center; gap: 8px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px;
  background: var(--module); border-radius: 22px; padding: 10px;
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 18px 40px -18px rgba(28,30,32,.45);
}
.menu__link { text-decoration: none; color: var(--ink); padding: 12px 14px; border-radius: 999px; font-size: 16px; }
.menu__link.is-active { background: var(--street); }
.menu__link:hover { background: var(--street); color: var(--ink); }

/* ---------- Первый экран: L-квартал ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.hero__left {
  position: relative; background: var(--module); border-radius: 0 0 var(--r) var(--r);
  padding: 56px 28px 40px; display: flex; flex-direction: column; gap: 26px;
}
.hero__fillet {
  position: absolute; top: 0; right: -42px; width: 42px; height: 42px;
  background: radial-gradient(circle at 100% 100%, #0000 41.5px, var(--module) 42px);
}
.hero__eyebrow { font-size: 16px; color: var(--text-3); }
.hero__sub { font-size: 18.5px; line-height: 1.6; max-width: 58ch; color: var(--text-body); }
.hero__note { font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.hero__right { padding: var(--gap) 0 0 var(--gap); display: flex; }
.hero__right > * { flex: 1; }
.portrait {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
  min-height: 420px; background: linear-gradient(180deg, #E9EEF2, #DCE3E9);
}
.portrait img { width: 100%; max-width: 560px; }
.hero .crumbs { margin-bottom: -6px; }

/* Боковая карточка первого экрана на внутренних страницах */
.aside-card { padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; justify-content: space-between; min-height: 320px; }
.aside-card__foot { display: flex; flex-direction: column; gap: 14px; }
.aside-card__label { font-size: 15px; }
.aside-card__big { font-weight: 800; font-size: clamp(40px, 3.8vw, 52px); line-height: .98; letter-spacing: -.03em; }
.aside-card__text { font-size: 15.5px; line-height: 1.5; }
.aside-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.aside-list li { display: flex; gap: 12px; align-items: baseline; font-size: 18px; line-height: 1.35; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.18); }
.aside-list li:first-child { border-top: 0; padding-top: 0; }
.aside-list .cond { font-size: 14px; min-width: 2ch; opacity: .8; }
.m--res .aside-list li, .m .aside-list li { border-top-color: rgba(28,30,32,.12); }
.m--com .aside-list li, .m--ink .aside-list li { border-top-color: rgba(255,255,255,.18); }

/* Хлебные крошки */
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14.5px; color: var(--text-2); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--com); }
.crumbs-row { padding-top: 20px; padding-left: calc(var(--gap) * 2); }

/* ---------- Цифры ---------- */
.stat { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 220px; }
.stat__label { font-size: 15px; color: var(--text-2); }
.m--res .stat__label, .m--com .stat__label { font-size: 16px; color: inherit; }
.stat__body { display: flex; flex-direction: column; gap: 8px; }
.stat__cap { font-size: 15px; line-height: 1.45; color: var(--text-2); }
.m--res .stat__cap { color: var(--ink); }
.m--com .stat__cap { color: var(--on-ink); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.stat-row { padding: 26px 28px; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.stat-row__cap { font-size: 15.5px; color: var(--text-2); }
.kpi { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.kpi__label { font-size: 13px; color: var(--com); }
.kpi__cap { font-size: 14.5px; color: var(--text-2); line-height: 1.4; }

/* ---------- Ситуации ---------- */
.sit-head { padding: 8px var(--gap) 0; }
.sit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.sit { padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.sit--wide { grid-column: 1 / -1; }
.sit__q { font-weight: 400; font-size: 22px; line-height: 1.3; letter-spacing: -.005em; }
.sit--wide .sit__q { font-size: 26px; line-height: 1.25; max-width: 34ch; }
.sit__start { font-size: 14.5px; color: var(--text-2); }
.sit__start a { color: var(--com); }

/* ---------- Шаги ---------- */
.step { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.step__n { font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -.02em; }
.step__n--sm { font-size: 44px; }
.step__tag { font-size: 14px; color: var(--text-2); }
.step__title { font-weight: 600; font-size: 22px; line-height: 1.3; }
.step__text { font-size: 16px; line-height: 1.6; color: var(--text-body); }

/* ---------- Таймлайн ---------- */
.tl-box { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.tl { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: var(--gap); }
.tl__item { border-radius: var(--r); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.tl__item b { font-weight: 700; font-size: 21px; line-height: 1.25; color: inherit; }
.tl__item .cond { font-size: 14px; }
.tl__item p { font-size: 15px; line-height: 1.5; }
.tl__z { grid-column: 1 / span 7; grid-row: 1; background: var(--res); }
.tl__n { grid-column: 5 / span 2; grid-row: 2; background: var(--res-light); padding: 18px; }
.tl__n b { font-size: 17px; line-height: 1.2; }
.tl__c { grid-column: 8 / span 3; grid-row: 1 / span 2; background: var(--com); color: #fff; }
.tl__c p { color: var(--on-ink); }
.tl__aside { grid-column: 1 / span 4; grid-row: 2; font-size: 14.5px; line-height: 1.5; color: var(--text-3); align-self: center; }
.tl__years { border-top: 1px solid var(--line-2); padding-top: 8px; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tl__item a { color: inherit; }

/* Этапы на странице «Опыт» */
.stage { padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 14px; }
.stage__meta { font-size: 14.5px; }
.stage__title { font-weight: 300; font-size: clamp(30px, 2.8vw, 38px); line-height: 1.04; letter-spacing: -.03em; }
.stage__role { font-weight: 600; font-size: 19px; line-height: 1.35; }
.stage__desc { font-size: 15.5px; line-height: 1.55; }
.stage__added { font-size: 16.5px; line-height: 1.55; padding-top: 14px; border-top: 1px solid rgba(28,30,32,.14); }
.m--com .stage__added { border-top-color: rgba(255,255,255,.2); }
.stage__added .cond { display: block; font-size: 13.5px; margin-bottom: 4px; }
.m--com .stage__desc, .m--com .stage__added, .m--com .more__body { color: var(--on-ink); }
.m--com b, .m--ink b { color: #fff; }
.more { margin-top: 4px; }
.more summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15.5px; padding: 12px 20px; border-radius: 999px;
  background: var(--street); color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.m--com .more summary { background: rgba(244,244,242,.14); color: #fff; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: '+'; font-size: 20px; line-height: 1; transition: transform .25s var(--ease); }
.more[open] summary::after { transform: rotate(45deg); }
.more summary:hover { background: var(--ink); color: #fff; }
.m--com .more summary:hover { background: var(--module); color: var(--ink); }
.more__body { padding-top: 18px; display: grid; gap: 18px; font-size: 16px; line-height: 1.6; color: var(--text-body); }
.more__body h4 { font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; margin-bottom: 6px; }
.more__body ul { padding-left: 20px; display: grid; gap: 6px; }
.parallel { font-size: 13.5px; }

/* Этапы опыта: цветной квартал-зона + модуль с текстом */
.stage-row { align-items: start; scroll-margin-top: 14px; }
.stage-zone { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.stage-zone--res { background: var(--res); }
.stage-zone--res-light { background: var(--res-light); }
.stage-zone--com { background: var(--com); color: #fff; }
.stage-zone--ink { background: var(--ink); color: #fff; }
.stage-zone .parallel { margin-top: auto; opacity: .8; }
.stage__desc { color: var(--text-body); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Списки и плитки ---------- */
.tile { padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.tile__label { font-size: 14px; color: var(--text-2); }
.tile__label.zone-com { color: var(--com); }
.tile__label.zone-res { color: #3C6A8A; }
.tile__title { font-weight: 600; font-size: 21px; line-height: 1.3; }
.tile__text { font-size: 16px; line-height: 1.6; color: var(--text-body); }
.tile--res { background: var(--res); }
.tile--res-light { background: var(--res-light); }
.checklist { list-style: none; padding: 0; display: grid; gap: var(--gap); }
.bullets { padding-left: 22px; display: grid; gap: 10px; font-size: 17px; line-height: 1.6; color: var(--text-body); }
.bullets li::marker { color: var(--com); }
.panel { padding: 34px 36px; }
.panel--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; }
.panel__title { font-weight: 400; font-size: 30px; line-height: 1.12; letter-spacing: -.025em; }
.olist { counter-reset: o; list-style: none; padding: 0; display: grid; gap: 12px; }
.olist li { counter-increment: o; display: grid; grid-template-columns: 40px 1fr; gap: 8px; font-size: 17px; line-height: 1.55; color: var(--text-body); padding-top: 12px; border-top: 1px solid var(--line-2); }
.olist li::before { content: counter(o); font-weight: 800; font-size: 22px; line-height: 1.2; color: var(--ink); }
.olist li:first-child { border-top: 0; padding-top: 0; }

/* Таблицы */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; line-height: 1.45; }
.tbl th {
  text-align: left; font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  font-size: 13.5px; color: var(--text-2); padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: bottom;
}
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--street); vertical-align: top; color: var(--text-body); }
.tbl td.lv { font-weight: 700; color: var(--ink); background: #EDEEEE; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl--wide { min-width: 880px; }
.tbl--fit { min-width: 560px; font-size: 16px; }
.tbl--fit td:first-child { color: var(--ink); }

/* ---------- Финальный блок ---------- */
.final { background: var(--ink); color: #fff; padding: 56px 42px; row-gap: 24px; align-items: end; }
.final--small { padding: 44px 42px; }
.final__text { display: flex; flex-direction: column; gap: 16px; }
.final__title { font-weight: 300; font-size: clamp(38px, 4.4vw, 58px); line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.final--small .final__title { font-size: clamp(30px, 3vw, 40px); }
.final__lead { font-size: 17.5px; line-height: 1.6; max-width: 60ch; color: var(--on-ink); }
.final__actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.final__handle { font-size: 15.5px; color: var(--on-ink); }
.final .btn--light:hover { background: var(--res); color: var(--ink); }

/* ---------- Гайд ---------- */
.guide-layout { align-items: start; }
.article { padding: 48px 56px 56px; }
.article__meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 14.5px; color: var(--text-2); }
.article .h1 { font-size: clamp(38px, 4.4vw, 60px); line-height: 1.02; margin: 22px 0; }
.article__services { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14.5px; color: var(--text-2); padding-bottom: 32px; border-bottom: 1px solid var(--street); margin-bottom: 32px; }
.prose { font-size: 18px; line-height: 1.7; color: var(--text-body); max-width: 68ch; }
.prose > * + * { margin-top: 18px; }
.prose .prose__lead { font-size: 22px; line-height: 1.55; color: var(--ink); }
.prose h2 { margin-top: 44px; font-weight: 400; font-size: 32px; line-height: 1.12; letter-spacing: -.025em; color: var(--ink); scroll-margin-top: 20px; }
.prose h3 { margin-top: 28px; font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--com); }
.prose code, .tbl code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; background: var(--street); padding: 1px 5px; border-radius: 5px; }
.prose ol li::marker { font-weight: 700; }
.inset { margin-top: 28px; background: var(--street); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.inset > p { padding: 14px 14px 0; font-size: 16.5px; line-height: 1.6; color: var(--text-body); }
.inset > p:last-child { padding: 0 14px 14px; }
.abv { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--gap); }
.abv > div { border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.abv span:first-child { font-size: 48px; line-height: 1; }
.abv span:last-child { font-size: 15px; line-height: 1.5; }
.toc-col { position: sticky; top: 14px; display: flex; flex-direction: column; gap: var(--gap); }
.toc { padding: 24px 18px 16px; display: flex; flex-direction: column; gap: 2px; }
.toc__title { font-size: 14px; color: var(--text-2); padding: 0 10px 10px; }
.toc a { text-decoration: none; color: var(--text-3); font-size: 15px; line-height: 1.4; padding: 9px 12px; border-radius: 6px 999px 999px 999px; transition: background-color .2s var(--ease), color .2s var(--ease); }
.toc a:hover { color: var(--ink); background: rgba(217,219,220,.6); }
.toc a.is-current { color: var(--ink); background: var(--street); }
.tool { background: var(--guide); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.tool__label { font-size: 14px; padding-right: 72px; }
.tool__title { font-weight: 400; font-size: 26px; line-height: 1.12; letter-spacing: -.02em; padding-right: 56px; }
.tool__text { font-size: 15.5px; line-height: 1.5; }
.tool .btn { align-self: flex-start; font-size: 15px; padding: 13px 20px; }
.tool__help { font-size: 14px; line-height: 1.45; }
.tool__help a { color: var(--ink); }
.tool--soon { background: #E2EBE5; }
.helps { background: var(--ink); color: #fff; padding: 44px 42px; row-gap: 22px; align-items: end; }
.helps h2 { font-weight: 300; font-size: 36px; letter-spacing: -.03em; line-height: 1.08; }
.helps p { font-size: 17px; line-height: 1.6; color: var(--on-ink); max-width: 66ch; }
.helps .actions { align-self: end; }
.stub-box { margin-top: 8px; display: flex; flex-direction: column; gap: 22px; }
.stub-box p { font-size: 20px; line-height: 1.55; color: var(--text-body); max-width: 52ch; }

/* Фильтр гайдов */
.filter { display: none; gap: 6px; flex-wrap: wrap; padding: 0 var(--gap); margin-bottom: 20px; }
.js .filter { display: flex; }
.filter button {
  font: inherit; font-size: 15px; border: 0; cursor: pointer; padding: 9px 16px; border-radius: 999px;
  background: var(--module); color: var(--text-3); transition: background-color .2s var(--ease), color .2s var(--ease);
}
.filter button:hover { color: var(--ink); background: #fff; }
.filter button[aria-pressed="true"] { background: var(--guide); color: var(--ink); }

/* Политика */
.legal { padding: 48px 56px 56px; }
.legal .prose { max-width: 76ch; font-size: 17px; }
.legal .prose h2 { font-size: 28px; margin-top: 40px; }
.legal .tbl { font-size: 15px; }

/* ---------- Подвал ---------- */
.site-footer { padding-top: 18px; padding-bottom: 4px; }
.footer { padding: 0 var(--gap); display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer__nav a, .footer__nav .linklike { color: var(--text-2); text-decoration: none; }
.footer__nav a:hover, .footer__nav .linklike:hover { text-decoration: underline; }
.footer__nav a:hover, .footer__nav .linklike:hover { color: var(--ink); }

/* ---------- Баннер cookie ---------- */
.cookie {
  position: fixed; left: 14px; bottom: 14px; z-index: 40; max-width: 560px;
  background: var(--ink); color: #fff; border-radius: var(--r); padding: 22px 22px 18px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 24px 48px -24px rgba(0,0,0,.55);
}
.cookie__text { font-size: 14.5px; line-height: 1.55; color: var(--on-ink); }
.cookie__text a { color: #fff; }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie__actions .btn { font-size: 15.5px; padding: 13px 18px; }
.cookie .btn--light:hover { background: var(--res); color: var(--ink); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .nav__link { padding: 9px 10px; }
  .nav { font-size: 15px; }
  .article { padding: 40px 36px 44px; }
}
@media (max-width: 1020px) {
  .hide-sm { display: none; }
}
@media (max-width: 900px) {
  :root { --avenue: 56px; }
  .grid, .split, .sit-grid, .abv, .panel--split { grid-template-columns: minmax(0, 1fr) !important; }
  .grid > *, .sit-grid > * { grid-column: auto !important; }
  .nav { display: none; }
  .menu { display: block; }
  .topbar { padding: 10px 10px 10px 20px; }
  .topbar--joined { border-radius: var(--r); }
  .hero { grid-template-columns: minmax(0, 1fr); row-gap: var(--gap); padding-top: var(--gap); }
  .hero__left { border-radius: var(--r); padding: 36px 22px 30px; gap: 22px; }
  .hero__fillet { display: none; }
  .hero__right { padding: 0; }
  .portrait { min-height: 0; }
  .h1 { font-size: 46px; }
  .article .h1 { font-size: 40px; }
  .big, .big--md { font-size: 42px; }
  .stat { min-height: 0; }
  .tl { grid-template-columns: minmax(0, 1fr); }
  .tl > * { grid-column: auto !important; grid-row: auto !important; }
  .tl__years { display: none; }
  .toc-col { position: static; }
  .toc { display: none; }
  .aside-card { min-height: 0; gap: 22px; }
  .card--tall { min-height: 0; }
  .card--guide { min-height: 190px; }
  .grid.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .kpis .kpi { padding: 18px; }
  .kpis .big--xs { font-size: 30px; white-space: normal; }
  .article, .legal { padding: 32px 22px 36px; }
  .prose { font-size: 17px; }
  .prose .prose__lead { font-size: 19.5px; }
  .prose h2 { font-size: 27px; margin-top: 36px; }
  .final, .helps { padding: 40px 24px; }
  .card--ink { min-height: 0; }
  .panel { padding: 28px 22px; }
  .tile, .sit, .stat, .step, .stage { padding-left: 22px; padding-right: 22px; }
  .card { padding-left: 24px; padding-right: 24px; }
  .cookie { left: 10px; right: 10px; bottom: 10px; max-width: none; }
  .crumbs-row { padding-left: var(--gap); }
}
@media (max-width: 420px) {
  .h1 { font-size: 40px; }
  .logo { font-size: 17px; }
  .btn--sm { padding: 11px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .num-anim:not(.is-in) { font-weight: 800; }
}
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .cookie, .toc-col, .key, .final, .helps { display: none !important; }
  .m { background: #fff; }
}
