/* Дизайн-система «Квартал 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; }
/* Движение (раздел 8). Классы ставит main.js; без JS и при reduced-motion их нет. */
.mx-pre .site-header .topbar, .mx-pre .hero__left > :not(.hero__fillet), .mx-pre .hero__right > *, .mx-pre main h1 { opacity: 0; }
.mx-prep .mx-top, .mx-prep .mx-fade, .mx-prep .mx-photo, .mx-prep .mx-line > span, .mx-prep .mx-rev, .mx-prep .mx-tl-item, .mx-prep .mx-yrs, .mx-prep .mx-tl-note { transition: none !important; }
.num-anim { transition: font-weight .9s var(--ease); font-variant-numeric: tabular-nums; }
.num-anim.mx-w { font-weight: 300; transition: none; }
.mx-top { opacity: 0; transform: translateY(-14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.mx-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.mx-line > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); }
.mx-fade { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.mx-photo { opacity: 0; transform: scale(1.04); transition: opacity 1s var(--ease), transform 1.4s var(--ease); }
.mx-go .mx-top, .mx-go .mx-fade, .mx-go .mx-photo, .mx-go .mx-line > span { opacity: 1; transform: none; }
.mx-rev { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.mx-rev.mx-in { opacity: 1; transform: none; }
.mx-tl-item { clip-path: inset(0 100% 0 0 round 28px); transition: clip-path 1s var(--ease); }
.mx-yrs { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease); }
.mx-tl-note { opacity: 0; transition: opacity .6s var(--ease) .9s; }
.mx-tl-in .mx-tl-item { clip-path: inset(0 0 0 0 round 28px); }
.mx-tl-in .mx-yrs { clip-path: inset(0 0 0 0); }
.mx-tl-in .mx-tl-note { opacity: 1; }

.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 1px rgba(255,255,255,.14), 0 8px 16px -8px rgba(28,30,32,.6);
  transition: background .3s var(--ease), color .2s var(--ease), box-shadow .3s 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 1px #fff, 0 8px 16px -8px rgba(0,0,0,.45);
}
.key:hover {
  color: var(--ink);
  background: linear-gradient(180deg, #D3E4F0, var(--res));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.6), 0 8px 16px -8px rgba(43,53,80,.45);
}
.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) + 1px) 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)/calc(var(--n) + 1px) calc(var(--f) + 1px) no-repeat,
    linear-gradient(#000 0 0) right var(--n) bottom var(--f)/calc(var(--f) + 1px) calc(var(--n) + 1px) 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) + 1px) 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)/calc(var(--n) + 1px) calc(var(--f) + 1px) no-repeat,
    linear-gradient(#000 0 0) right var(--n) bottom var(--f)/calc(var(--f) + 1px) calc(var(--n) + 1px) 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) + 1px) 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)/calc(var(--n) + 1px) calc(var(--f) + 1px) no-repeat,
    linear-gradient(#000 0 0) right var(--n) top var(--f)/calc(var(--f) + 1px) calc(var(--n) + 1px) 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) + 1px) 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)/calc(var(--n) + 1px) calc(var(--f) + 1px) no-repeat,
    linear-gradient(#000 0 0) right var(--n) top var(--f)/calc(var(--f) + 1px) calc(var(--n) + 1px) 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__note { font-size: 15px; line-height: 1.5; color: var(--on-ink); opacity: .72; margin-top: 4px; }
.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; }
  .h2, .h2--sm, .final__title { font-size: clamp(32px, 9vw, 46px); overflow-wrap: break-word; }
  .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 (max-width: 360px) {
  .topbar { padding: 8px 8px 8px 14px; gap: 8px; }
  .topbar__end { gap: 6px; }
  .logo { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .topbar .btn--sm { font-size: 13.5px; padding: 9px 11px; }
  .h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .cookie, .toc-col, .key, .final, .helps { display: none !important; }
  .m { background: #fff; }
}

/* ==========================================================================
   Мобильная система «Квартал 5.2» (аудит 19.10.2026, claude/03-dizain-sistema.md, раздел 10)
   Брейкпоинты: телефон ≤640, планшет 641–900, ноутбук 901–1100, десктоп >1100.
   ========================================================================== */

/* Гнездо: слои маски перекрываются на 1px — без швов на экранах с дробной плотностью (2.625, 2.75, 3) */
.notch-b{
  --notch-mask:
    linear-gradient(#000 0 0) top left/100% calc(100% - var(--n) - var(--f) + 1px) no-repeat,
    linear-gradient(#000 0 0) top left/calc(100% - var(--n) - var(--f) + 1px) 100% no-repeat,
    linear-gradient(#000 0 0) right calc(var(--f) - 1px) bottom var(--n)/calc(var(--n) + 1px) var(--f) no-repeat,
    linear-gradient(#000 0 0) right var(--n) bottom calc(var(--f) - 1px)/var(--f) calc(var(--n) + 1px) 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))/calc(var(--R) + 1px) calc(var(--R) + 1px) no-repeat;
  -webkit-mask: var(--notch-mask); mask: var(--notch-mask);
}
.notch-t{
  --notch-mask:
    linear-gradient(#000 0 0) bottom left/100% calc(100% - var(--n) - var(--f) + 1px) no-repeat,
    linear-gradient(#000 0 0) top left/calc(100% - var(--n) - var(--f) + 1px) 100% no-repeat,
    linear-gradient(#000 0 0) right calc(var(--f) - 1px) top var(--n)/calc(var(--n) + 1px) var(--f) no-repeat,
    linear-gradient(#000 0 0) right var(--n) top calc(var(--f) - 1px)/var(--f) calc(var(--n) + 1px) 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))/calc(var(--R) + 1px) calc(var(--R) + 1px) no-repeat;
  -webkit-mask: var(--notch-mask); mask: var(--notch-mask);
}

/* Зоны нажатия (все ширины): чипы и ссылки подвала — не меньше 36–44 px по высоте */
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 14px; }
.chips { gap: 8px; }
.footer__nav a, .footer__nav .linklike { display: inline-flex; align-items: center; min-height: 40px; }

/* ---------- Телефон и планшет (≤900) ---------- */
@media (max-width: 900px) {
  /* Пустые распорки сетки не нужны в одну/две колонки */
  .grid > [aria-hidden="true"]:empty { display: none; }

  /* Ситуации: одна шкала для всех цитат, широкая карточка не крупнее остальных */
  .sit__q, .sit--wide .sit__q { font-size: 21px; line-height: 1.3; max-width: none; }
  .sit__start a { display: inline-block; padding: 4px 0; }

  /* Форматы: одинаковый кегль заголовков, ниже H2 раздела */
  .card__title, .card__title--xl, .card__title--sm { font-size: 30px; line-height: 1.06; }

  /* Таймлайн на главной: описание «Наследия» — продолжение его карточки, порядок по годам */
  .tl-box { padding: 14px; }
  .tl { gap: 10px; }
  .tl__z { order: 1; }
  .tl__n { order: 2; border-radius: var(--r) var(--r) 0 0; padding: 20px 22px 8px; }
  .tl__aside {
    order: 3; margin-top: -10px; background: var(--res-light); color: var(--text-body);
    border-radius: 0 0 var(--r) var(--r); padding: 0 22px 20px; font-size: 15px;
  }
  .tl__c { order: 4; }
  .tl__n b { font-size: 21px; line-height: 1.25; }

  /* Результаты CORE.XP: цифры в одну строку */
  .kpis .big--xs { font-size: 28px; white-space: nowrap; }
}

/* ---------- Только телефон (≤640) ---------- */
@media (max-width: 640px) {
  /* Цифры: ROMI и стаж — компактной парой, без пустых высоких плашек */
  .grid > .stat-row.s6 { padding: 20px 22px; gap: 6px; flex-direction: column; align-items: flex-start; }
  .stat-row .big--sm { font-size: 34px; }
  .stat { gap: 14px; }

  /* Портрет: ниже, чтобы цифры начинались раньше */
  .portrait img { max-width: 380px; }
}

/* ---------- Планшет (641–900): две колонки вместо одной ---------- */
@media (min-width: 641px) and (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .grid > * { grid-column: auto !important; }
  .grid > .sit-head, .grid > .shead--side, .grid > .stat.s4, .grid > .split, .grid > .sit-grid,
  .grid > .s8, .grid > .s12, .grid > .notched.s5 { grid-column: 1 / -1 !important; }
  .split, .sit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sit-grid > .sit--wide { grid-column: 1 / -1 !important; }
  .grid:has(> .step) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .grid.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .grid > .s8.grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .grid > .s8.grid > .tile:first-child { grid-column: 1 / -1 !important; }

  /* Первый экран: снова L-квартал 7/5, как на десктопе */
  .topbar--joined { border-radius: var(--r) var(--r) var(--r) 0; }
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); row-gap: 0; padding-top: 0; }
  .hero__left { border-radius: 0 0 var(--r) var(--r); padding: 40px 24px 32px; }
  .hero__fillet { display: block; }
  .hero__right { padding: var(--gap) 0 0 var(--gap); }
  .portrait { min-height: 360px; }
  .h1 { font-size: 46px; }

  /* Опыт: компания и описание этапа рядом */
  .stage-row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) !important; }
}

/* Мобильная система, часть 2: минимальный кегль подписей 14 px и зоны нажатия списков */
@media (max-width: 900px) {
  .kpi__label, .parallel, .stage .cond, .footer, .footer__brand { font-size: 14px; }
  .pill { display: inline-flex; align-items: center; min-height: 40px; }
  .aside-list a { display: inline-block; padding: 8px 0; }
  .logo { padding: 8px 0; }
  .chip { min-height: 44px; }
  .btn--sm { min-height: 44px; }
  .footer__nav a, .footer__nav .linklike { min-height: 44px; }
  .sit__start a, main a[href="/experience/"]:not([class]) { display: inline-block; padding: 7px 0; }
}

/* Мобильная система, часть 3 */
.tl__aside-cap { display: none; }
@media (max-width: 900px) {
  /* Название ЖК уже есть в заголовке карточки — в продолжении не повторяем */
  .tl__aside-name { display: none; }
  .tl__aside-cap { display: inline; }
}
@media (max-width: 640px) {
  /* Цифры: ROMI и стаж — парой в одну строку */
  .grid:has(> .stat-row) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .grid:has(> .stat-row) > :not(.stat-row) { grid-column: 1 / -1 !important; }
  .grid > .stat-row.s6 { padding: 18px 18px; }
  .stat-row .big--sm { font-size: 27px; white-space: nowrap; }
  /* Подвал: ссылки в две колонки, ровные строки 44 px */
  .footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; width: 100%; }
  .footer__nav a[href="/privacy/"], .footer__nav a[href^="https://t.me"] { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  /* Прорисовка таймлайна: у карточки «Наследия» скруглён только верх — низ продолжает описание */
  .tl__n.mx-tl-item { clip-path: inset(0 100% 0 0 round 28px 28px 0 0); }
  .mx-tl-in .tl__n.mx-tl-item { clip-path: inset(0 0 0 0 round 28px 28px 0 0); }
}
@media (max-width: 900px) {
  /* Перекрытие на 1px: без волосяной линии между карточкой и описанием на дробной плотности экрана */
  .tl__aside { margin-top: -11px; padding-top: 1px; position: relative; }
}

/* Мобильная система, часть 4 (чат 04, 20.10.2026): остатки по правилу раздела 10 — найдены скриптом scripts/audit-mobile.mjs */
@media (max-width: 900px) {
  .pill, .filter button { min-height: 44px; display: inline-flex; align-items: center; }
  .tbl th { font-size: 14px; }
  .prose code, .tbl code { font-size: 14px; }
  .prose h2 { font-size: 28px; } /* H2 статьи не мельче H3 карточек гайдов (28 px) */
}
@media (max-width: 360px) {
  .grid > .stat-row.s6 { padding: 16px 14px; }
  .stat-row .big--sm { font-size: 24px; }
  .topbar .btn--sm { font-size: 14px; padding: 9px 10px; }
  .topbar__end { gap: 5px; }
}

/* Без одиноких слов в последней строке абзаца (дополняет неразрывные пробелы типографа, дизайн-система 3.1) */
p, li, dd, figcaption, blockquote { text-wrap: pretty; }

/* Таблицы на телефоне — без горизонтальной прокрутки (чат 03v2, 20.10.2026; дизайн-система, раздел 10).
   Каждая строка становится карточкой-списком: ключ сверху, остальные ячейки с подписями из data-label.
   Широкие таблицы (метрики гайда, cookie) перестраиваются на ≤900, таблица выбора формата — на ≤640. */
@media (max-width: 900px) {
  .tbl-scroll--stack:has(.tbl--stack:not(.tbl--fit)) { overflow: visible; }
  .tbl--stack:not(.tbl--fit) { min-width: 0; display: block; }
  .tbl--stack:not(.tbl--fit) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tbl--stack:not(.tbl--fit) tbody, .tbl--stack:not(.tbl--fit) tr, .tbl--stack:not(.tbl--fit) td { display: block; }
  .tbl--stack:not(.tbl--fit) tr { padding: 16px 0; border-bottom: 1px solid var(--street); }
  .tbl--stack:not(.tbl--fit) tr:last-child { border-bottom: 0; }
  .tbl--stack:not(.tbl--fit) td { padding: 0; border: 0; font-size: 15.5px; line-height: 1.5; }
  .tbl--stack:not(.tbl--fit) td + td { margin-top: 6px; }
  .tbl--stack:not(.tbl--fit) td.tbl__key { font-weight: 700; color: var(--ink); font-size: 17px; line-height: 1.3; }
  .tbl--stack:not(.tbl--fit) td[data-label]::before {
    content: attr(data-label) "\00a0\00a0"; display: inline; /* подпись в строку с текстом — таблица вдвое короче */
    font-family: var(--font-cond); font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; font-size: 14px; color: var(--text-2);
  }
  /* Уровень метрик — цветная плашка-заголовок группы */
  .tbl--stack:not(.tbl--fit) td.lv { margin: 18px 0 2px; padding: 9px 14px; border-radius: 12px; font-size: 15px; }
  .tbl--stack:not(.tbl--fit) tr:first-child td.lv { margin-top: 4px; }
  .tbl--stack:not(.tbl--fit) tr:has(td.lv) { padding-top: 0; }
  .tbl--stack:not(.tbl--fit) td.lv + td { margin-top: 14px; }
  .tbl--stack:not(.tbl--fit) td.tbl__key { margin-bottom: 2px; }
}
@media (max-width: 640px) {
  /* «Какой формат подходит»: ситуация — подпись «С чего начать: …», как в ситуациях на главной */
  .tbl-scroll--stack:has(.tbl--fit) { overflow: visible; }
  .tbl--fit.tbl--stack { min-width: 0; display: block; }
  .tbl--fit.tbl--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tbl--fit.tbl--stack tbody, .tbl--fit.tbl--stack tr, .tbl--fit.tbl--stack td { display: block; }
  .tbl--fit.tbl--stack tr { padding: 16px 0; border-bottom: 1px solid var(--street); }
  .tbl--fit.tbl--stack tr:first-child { padding-top: 0; }
  .tbl--fit.tbl--stack tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .tbl--fit.tbl--stack td { padding: 0; border: 0; }
  .tbl--fit.tbl--stack td:first-child { font-size: 19px; line-height: 1.3; color: var(--ink); }
  .tbl--fit.tbl--stack td[data-label] { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
  .tbl--fit.tbl--stack td[data-label]::before { content: attr(data-label) ":\00a0"; }
  .tbl--fit.tbl--stack td[data-label] a { padding: 6px 0; } /* строчный отступ: шире зона нажатия, без разрыва строк */
}

/* ---------- Гайд: оглавление на телефоне и планшете, источники (чат 04, 23.10.2026) ---------- */
.toc-m { display: none; }
.toc a { padding-top: 7px; padding-bottom: 7px; }
@media (min-width: 901px) and (max-height: 860px) { .toc-col { position: static; } }
@media (max-width: 900px) {
  .toc-m { display: block; margin-bottom: 28px; background: var(--street); border-radius: 22px; }
  .toc-m summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-weight: 600; font-size: 16px; color: var(--ink); }
  .toc-m summary::-webkit-details-marker { display: none; }
  .toc-m summary::after { content: '+'; font-size: 22px; font-weight: 400; line-height: 1; }
  .toc-m[open] summary::after { content: '−'; }
  .toc-m nav { display: flex; flex-direction: column; padding: 0 8px 10px; }
  .toc-m nav a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--text-3); text-decoration: none; font-size: 15.5px; border-top: 1px solid rgba(28,30,32,.08); }
  .toc-m nav a:hover { color: var(--ink); }
}
.prose .sources { list-style: none; padding: 0; font-size: 16px; line-height: 1.5; }
.prose .sources li { padding: 10px 0; border-top: 1px solid var(--street); }
.prose .sources li + li { margin-top: 0; }
.prose .sources a { color: var(--com); }

/* ---------- Схемы в гайдах (чат 04, 23.10.2026) ----------
   Токены «Квартала 5.2»: подложка — улица, ячейки — модули, связка — небо, решения и сделка — тушь,
   post-view и «управляем бюджетом» — мята (зона гайдов). Цифры только там, где они есть в тексте гайда. */
.prose .dg { margin: 32px 0 8px; background: var(--street); border-radius: var(--r); padding: 14px; }
.dg__body { display: flex; flex-direction: column; gap: 14px; }
.dg__cap { padding: 14px 6px 4px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.dg__cap b { color: var(--ink); font-weight: 700; margin-right: 4px; }
.dg__num { display: block; font-size: 14px; color: var(--text-3); margin-bottom: 4px; }
.dg-box { background: var(--module); border-radius: 18px; padding: 14px 16px; font-size: 15px; line-height: 1.35; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.dg-box b { font-weight: 700; font-size: 16px; }
.dg-box span { color: var(--text-2); }
.dg-box--res { background: var(--res); }
.dg-box--res span { color: var(--ink); }
.dg-box--ink { background: var(--ink); color: #fff; }
.dg-box--ink span, .dg-box--ink b { color: #fff; }
.dg-box--ink .dg-badge + span { color: #fff; }
.dg-badge { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.dg-badge--light { background: var(--module); color: var(--ink); }
.dg-arr { display: inline-block; align-self: center; justify-self: center; font-size: 22px; line-height: 1; color: var(--text-3); }
.dg-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0 6px; font-size: 14px; color: var(--text-2); }
.dg-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.dg-sw { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.dg-sw--guide { background: var(--guide); }
.dg-sw--ink { background: var(--ink); }

/* Путь из касаний (схемы 1 и 4) */
.prose .dg-path { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.prose .dg-path li { margin: 0; flex-direction: row; align-items: flex-start; gap: 10px; padding: 12px; font-size: 14.5px; }
.prose .dg-path--4 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.prose .dg-path--4 li { flex-direction: column; gap: 8px; }
.dg-time { display: flex; align-items: center; gap: 10px; padding: 0 6px; font-size: 14px; color: var(--text-3); }
.dg-time__line { flex: 1; height: 1px; background: var(--text-3); position: relative; }
.dg-time__line::after { content: ''; position: absolute; right: -1px; top: -4px; border: 4.5px solid transparent; border-left: 8px solid var(--text-3); border-right: 0; }

/* Матрица: строки — системы или модели, столбцы — касания */
.dg-mx { display: grid; gap: 4px; background: var(--module); border-radius: 18px; padding: 12px; align-items: center; }
.dg-mx--8 { grid-template-columns: minmax(118px, 1.4fr) repeat(8, minmax(0, 1fr)); }
.dg-mx--4 { grid-template-columns: minmax(118px, 1.4fr) repeat(4, minmax(0, 1fr)); }
.dg-mx__corner { font-size: 14px; color: var(--text-2); }
.dg-mx__head { justify-self: center; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--street); font-weight: 700; font-size: 14px; color: var(--ink); }
.dg-mx__head--ink { background: var(--ink); color: #fff; }
.dg-mx__label { font-size: 14.5px; line-height: 1.25; font-weight: 600; color: var(--ink); padding: 6px 0; }
.dg-mx__cell { display: grid; place-items: center; min-height: 40px; border-top: 1px solid var(--street); }
.dg-mk { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); }
.dg-mk--on { background: var(--ink); border-color: var(--ink); }
.dg-mk--pv { border: 2px dashed var(--com); background: var(--guide); }
.dg-sh { font-weight: 700; font-size: 15px; color: var(--text-2); border: 0; border-radius: 10px; background: var(--street); }
.dg-sh--1 { background: var(--ink); color: #fff; }
.dg-sh--q { background: var(--guide); color: var(--ink); }

/* Поток данных (схема 2) */
.dg-flow { display: grid; grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.dg-flow__col { display: flex; flex-direction: column; gap: 8px; height: 100%; justify-content: center; }
.dg-step { font-size: 14px; color: var(--text-3); padding: 0 4px; }
.prose .dg-src { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.prose .dg-src li { margin: 0; background: var(--module); border-radius: 12px; padding: 7px 12px; font-size: 14px; line-height: 1.3; color: var(--ink); }
.prose .dg-src li.dg-src--pv { background: var(--guide); outline: 1.5px dashed var(--com); outline-offset: -1.5px; }
.dg-return { display: flex; align-items: center; gap: 10px; background: var(--module); border-radius: 14px; padding: 10px 14px; font-size: 14.5px; line-height: 1.4; color: var(--text-body); border: 1.5px dashed var(--line); }
.dg-return__arr { font-size: 20px; color: var(--com); }

/* Воронка (схема 3) */
.dg-funnel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, .45fr); column-gap: 14px; row-gap: 6px; background: var(--module); border-radius: 18px; padding: 14px; }
.dg-funnel__h { font-size: 14px; color: var(--text-3); padding-bottom: 2px; }
.dg-funnel__bar { width: var(--w); min-width: 62%; background: var(--guide); border-radius: 12px; padding: 10px 14px; font-size: 15px; line-height: 1.3; color: var(--ink); }
.dg-funnel__bar.is-deal { background: var(--ink); color: #fff; font-weight: 700; }
.dg-funnel__when { display: flex; align-items: center; border-left: 2px solid var(--line); padding-left: 12px; font-size: 14.5px; line-height: 1.3; color: var(--text-body); }

/* Две цепочки (схема 5) */
.dg-row { background: var(--module); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.dg-row__h { font-size: 14px; color: var(--text-3); }
.prose .dg-chain { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 6px; align-items: center; }
.prose .dg-chain li { margin: 0; }
.prose .dg-chain { gap: 8px 26px; }
.prose .dg-chain li { position: relative; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: var(--street); padding: 7px 12px; font-size: 14.5px; line-height: 1.3; color: var(--ink); }
.prose .dg-chain li:not(:last-child)::after { content: '→'; position: absolute; right: -19px; color: var(--text-3); font-weight: 400; }
.prose .dg-chain li.dg-chip--pv { background: var(--guide); outline: 1.5px dashed var(--com); outline-offset: -1.5px; }
.prose .dg-chain li.dg-chip--ink { background: var(--ink); color: #fff; font-weight: 700; }
.dg-chip__tag { font-size: 14px; color: var(--com); white-space: nowrap; }
.dg-row__res { font-size: 15px; line-height: 1.4; color: var(--text-body); font-weight: 600; }
.prose .dg-mech { list-style: none; padding: 0 6px; display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 14px; color: var(--text-2); counter-reset: mech; }
.prose .dg-mech li { margin: 0; counter-increment: mech; }
.prose .dg-mech li::before { content: counter(mech) ' · '; font-weight: 700; color: var(--com); }
.prose .dg-mech li + li::before { content: '→  ' counter(mech) ' · '; }

/* Цепочка систем с разрывами (схема 6) */
.prose .dg-sys { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr) 26px) minmax(0, 1fr); align-items: stretch; }
.prose .dg-sys li { margin: 0; }
.dg-sys__node { position: relative; background: var(--module); border-radius: 16px; padding: 22px 8px 12px; font-size: 14.5px; line-height: 1.25; text-align: center; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.dg-sys__node.dg-box--ink { background: var(--ink); color: #fff; }
.dg-sys__node .dg-brk { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); }
.dg-sys__joint { position: relative; display: flex; align-items: center; justify-content: center; }
.dg-sys__line { position: absolute; left: 2px; right: 2px; top: 50%; height: 2px; background: var(--text-3); }
.dg-sys__joint .dg-brk { position: relative; z-index: 1; }
.dg-brk { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--com); color: #fff; font-weight: 700; font-size: 14px; flex: none; box-shadow: 0 0 0 3px var(--street); }
.dg-sys__node .dg-brk { box-shadow: 0 0 0 3px var(--street); }
.prose .dg-breaks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.prose .dg-breaks li { margin: 0; display: flex; gap: 10px; align-items: flex-start; background: var(--module); border-radius: 14px; padding: 10px 12px; font-size: 14.5px; line-height: 1.4; color: var(--text-body); }
.prose .dg-breaks .dg-brk { box-shadow: none; }

/* Телефон: схемы перестраиваются в столбец, без прокрутки вбок */
@media (max-width: 640px) {
  .prose .dg { margin-left: -6px; margin-right: -6px; padding: 10px; }
  .prose .dg-path, .prose .dg-path--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-mx--8, .dg-mx--4 { grid-template-columns: repeat(8, minmax(0, 1fr)); padding: 10px 8px; }
  .dg-mx--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dg-mx__corner { display: none; }
  .dg-mx__label { grid-column: 1 / -1; padding: 8px 0 0; }
  .dg-mx__head { width: 24px; height: 24px; }
  .dg-mx__cell { border-top: 0; min-height: 34px; }
  .dg-mk { width: 16px; height: 16px; }
  .dg-flow { grid-template-columns: minmax(0, 1fr); }
  .dg-arr { transform: rotate(90deg); justify-self: center; line-height: 1; }
  .prose .dg-src { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-funnel { grid-template-columns: minmax(0, 1fr); padding: 12px 10px; }
  .dg-funnel__h { display: none; }
  .dg-funnel__bar { order: var(--o); min-width: 72%; padding: 9px 12px; font-size: 14.5px; }
  .dg-funnel__when { order: var(--o); grid-row: auto !important; border-left: 0; padding: 8px 2px 0; font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; color: var(--text-3); }
  .prose .dg-sys { grid-template-columns: minmax(0, 1fr); }
  .dg-sys__node { padding: 12px 12px 12px 44px; justify-content: flex-start; text-align: left; min-height: 48px; }
  .dg-sys__node .dg-brk { top: 50%; left: 10px; transform: translateY(-50%); box-shadow: none; }
  .dg-sys__joint { height: 30px; justify-content: flex-start; padding-left: 18px; }
  .dg-sys__line { left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .dg-sys__joint .dg-brk { position: absolute; left: calc(50% + 10px); }
  .prose .dg-breaks { grid-template-columns: minmax(0, 1fr); }
  .prose .dg-chain { flex-direction: column; align-items: flex-start; gap: 22px; }
  .prose .dg-chain li:not(:last-child)::after { content: '↓'; right: auto; left: 16px; top: 100%; line-height: 22px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .prose .dg-path { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Схемы в гайдах: сверка с дизайн-системой (чат 03v2, 23.10.2026; раздел 7.1) ---------- */
/* Номера касаний: белые на туши (были серые #5C6166 — контраст 2,6:1); ₽ на тёмной «Сделке» — тушь на светлом (был белый на белом) */
.dg-box .dg-badge { color: #fff; }
.dg-box .dg-badge--light, .dg-box--ink .dg-badge--light { color: var(--ink); }
/* Радиусы концентричны: подложка R28 с отступом 14 → вложенные модули R14 (как R42 = R28 + 14) */
.dg-box, .dg-mx, .dg-funnel, .dg-row, .dg-sys__node, .dg-return, .prose .dg-breaks li { border-radius: 14px; }
.prose .dg-src li { border-radius: 10px; }
.toc-m { border-radius: var(--r); }
/* Схема 2: подписи шагов на одной линии сверху, блоки по центру оставшейся высоты */
.dg-flow { align-items: stretch; }
.dg-flow__col { justify-content: flex-start; }
.dg-flow__col > .dg-box { margin: auto 0; }
.dg-flow > .dg-arr { margin-top: 22px; }
/* Мятный образец в легенде виден на улице */
.dg-sw--guide { box-shadow: inset 0 0 0 1px rgba(28, 30, 32, .18); }
@media (max-width: 640px) {
  /* Касания: номер над текстом — длинным словам («классифайде») хватает ширины */
  .prose .dg-path li { flex-direction: column; gap: 8px; }
  /* Нечётная последняя карточка («Сделка») — на всю ширину */
  .prose .dg-path li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .dg-flow > .dg-arr { margin-top: 0; }
  /* Схема 6: разрывы на одной левой оси с номерами в узлах */
  .dg-sys__joint { padding-left: 0; }
  .dg-sys__line { left: 21px; }
  .dg-sys__joint .dg-brk { left: 10px; box-shadow: 0 0 0 3px var(--street); }
}
@media (max-width: 640px) {
  /* Схема 6: разрывы 1 и 5 — на стыке систем (кабинет → сайт, CRM → система), а не внутри узла.
     Стык с разрывом выше, линия видна над и под номером — читается как «обрыв на связи». */
  .dg-sys__joint:has(.dg-brk) { height: 52px; }
  .dg-sys__joint .dg-brk { top: 50%; transform: translateY(-50%); }
}

/* ---------- Схемы 3а и 3б гайда 1 (чат 04, 23.10.2026; стиль — раздел 7.1) ---------- */
/* 3а: лестница уровней — слева цена уровня, справа ступень; между ступенями — что отсеивается */
.dg-lad { display: grid; grid-template-columns: minmax(118px, .32fr) minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: center; background: var(--module); border-radius: 14px; padding: 14px; }
.dg-lad__cost { font-size: 14px; line-height: 1.3; color: var(--text-2); text-align: right; }
.dg-lad__bar { width: var(--w); min-width: 60%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; background: var(--guide); border-radius: 12px; padding: 10px 14px; font-size: 15px; line-height: 1.3; color: var(--ink); }
.dg-lad__bar.is-key { box-shadow: inset 0 0 0 2px var(--ink); font-weight: 700; }
.dg-lad__who { font-size: 14px; color: var(--com); white-space: nowrap; }
.dg-lad__out { font-size: 14px; line-height: 1.35; color: var(--text-2); padding: 2px 0 2px 14px; }
/* 3б: категории готовности */
.dg-cats__head { font-size: 15px; font-weight: 600; text-align: center; }
.dg-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dg-cat { border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.dg-cat--res { background: var(--res); }
.dg-cat--res-light { background: var(--res-light); }
.dg-cat--module { background: var(--module); }
.dg-cat__l { font-size: 40px; line-height: 1; font-weight: 800; }
.dg-cat--res-light .dg-cat__l { font-weight: 500; }
.dg-cat--module .dg-cat__l { font-weight: 200; }
.dg-cat__d { font-size: 15px; line-height: 1.35; flex: 1; }
.dg-cat__t { display: flex; flex-direction: column; font-size: 16px; font-weight: 700; }
.dg-cat__t .cond { font-size: 14px; font-weight: 700; color: var(--text-3); }
@media (max-width: 640px) {
  .dg-lad { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .dg-lad__cost { text-align: left; padding-top: 6px; }
  .dg-lad__gap { display: none; }
  .dg-lad__bar { min-width: 76%; }
  .dg-lad__out { padding-left: 4px; }
  .dg-cats { grid-template-columns: minmax(0, 1fr); }
  .dg-cat { flex-direction: row; align-items: center; gap: 14px; }
  .dg-cat__l { width: 36px; flex: none; }
  .dg-cat__t { flex: none; text-align: right; }
}
@media (max-width: 640px) {
  .dg-cats__axis { flex-wrap: wrap; row-gap: 4px; }
  .dg-cats__axis .dg-time__line { flex-basis: 100%; order: 3; }
}

/* ---------- Схемы 3а и 3б: сверка с разделом 7.1 (чат 03v2, 23.10.2026) ---------- */
/* 3а. Подписи цен — метки оси: condensed прописные 14 px */
.dg-lad__cost { font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
/* Ключевая цена — та, по которой решают о бюджете (подпись схемы): капсула туши (тушь = решения). Обводку у ступени убираем — у модулей обводок нет */
.dg-lad__bar.is-key { box-shadow: none; }
.dg-lad__cost:has(+ .dg-lad__bar.is-key) { justify-self: end; background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 12px; }
/* 3б. Буквы категорий — одним весом 800, как цифры; категории различает цвет (небо / светлое небо / модуль) */
.dg-cat__l, .dg-cat--res-light .dg-cat__l, .dg-cat--module .dg-cat__l { font-weight: 800; }
@media (max-width: 640px) {
  /* Ступени на телефоне шире: «Квалифицированные (A / Б / В)» в одну строку на 390 */
  .dg-lad__bar { width: max(var(--w), 86%); }
  .dg-lad__cost:has(+ .dg-lad__bar.is-key) { justify-self: start; margin-top: 6px; }
  /* Категория: буква слева, справа описание и срок покупки под ним — без узкой третьей колонки */
  .dg-cat { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; align-items: start; }
  .dg-cat__l { grid-row: 1 / span 2; align-self: center; }
  .dg-cat__t { text-align: left; flex-direction: row; align-items: baseline; gap: 8px; }
}

/* ---------- Уведомление о cookie (чат 04, 23.10.2026; claude/02-teksty-privacy.md, раздел 1) ----------
   Короткое уведомление: тушь R28 как финальный блок, текст и одна светлая капсула в строку. */
.cookie--note { display: flex; flex-direction: row; align-items: center; gap: 16px; padding: 14px 14px 14px 22px; max-width: 520px; }
.cookie--note[hidden] { display: none; }
.cookie--note .cookie__text { flex: 1; }
.cookie--note .btn { flex: none; font-size: 15.5px; padding: 13px 22px; }
@media (max-width: 640px) {
  .cookie--note { padding: 12px 12px 12px 18px; gap: 12px; }
}

/* ---------- Схемы гайда 4 (чат 04, 25.10.2026; стиль — раздел 7.1, классы схем гайда 1) ---------- */
/* Схема 1: полосы зон над цепочкой шагов — та же сетка, что у .dg-sys (6 узлов и 5 стыков по 26 px) */
.dg-zones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr) 26px) minmax(0, 1fr); row-gap: 4px; }
.dg-zone { font-size: 14px; padding: 4px 10px; border-radius: 10px; text-align: center; }
.dg-zone--mkt { grid-column: 1 / 4; grid-row: 1; background: var(--module); color: var(--text-3); }
.dg-zone--sales { grid-column: 7 / 12; grid-row: 2; background: var(--module); color: var(--text-3); }
.dg-zone--join { grid-column: 7 / 8; grid-row: 1; background: var(--com); color: #fff; }
.dg-zone-tag { display: none; }
/* Схема 2: стадии со сроком */
.prose .dg-stages { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.prose .dg-stages li { margin: 0; }
.dg-stage { justify-content: flex-start; gap: 8px; }
.dg-stage b { font-size: 15px; }
.dg-timer { font-size: 14px; line-height: 1.3; color: var(--text-2); }
.dg-late { margin-top: auto; font-size: 14px; line-height: 1.3; color: var(--ink); background: var(--guide); border: 1.5px dashed var(--com); border-radius: 10px; padding: 6px 8px; }
.dg-signal b { color: var(--ink); }
/* Схема 3 */
.prose .dg-path--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.prose .dg-path--5 li { flex-direction: column; gap: 8px; }
.prose .dg-who { margin: 0; padding: 0 6px; font-size: 14px; line-height: 1.4; color: var(--text-2); }
@media (max-width: 640px) {
  .dg-zones { display: none; }
  .dg-zone-tag { display: block; font-size: 14px; color: var(--com); margin-top: 2px; }
  .prose .dg-stages { grid-template-columns: minmax(0, 1fr); }
  .dg-stage { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
  .dg-stage .dg-timer { order: 2; }
  .dg-late { flex-basis: 100%; order: 3; }
  .prose .dg-path--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 641px) and (max-width: 900px) {
  .prose .dg-stages, .prose .dg-path--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 641px) {
  /* Схема 1 гайда 4: длинные названия шагов («Квалификация», «Распределение») — стыки уже, поля узлов меньше */
  .prose .dg-sys--tight, .dg-zones { grid-template-columns: repeat(5, minmax(0, 1fr) 12px) minmax(0, 1fr); }
  .dg-sys--tight .dg-sys__node { padding: 22px 4px 12px; font-size: 14px; }
}

/* ---------- Схемы гайда 4: сверка с разделом 7.1 (чат 03v2, 25.10.2026) ---------- */
/* Схема 2. Название стадии сверху на одной линии во всех столбцах, срок под ним; часы — линейная иконка */
.dg-timer { display: inline-flex; align-items: flex-start; gap: 5px; }
.dg-clock { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--text-3); }
/* Застрявшее обращение — не мята (мята = «управляем»), а потеря: улица с пунктиром ночного синего, как маркеры потерь */
.dg-late { background: var(--street); color: var(--ink); }
/* Схема 1: подпись потери на десктопе — в списке под цепочкой; на телефоне — прямо в шаге */
.dg-loss { display: none; }
@media (max-width: 640px) {
  .dg-stage .dg-timer { order: 0; }
  .dg-loss { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.35; color: var(--text-2); }
  .dg-sys--tight + .dg-breaks { display: none; }
}

/* Статьи из content/guides/*.md (31.10.2026): цитата-вывод в тексте статьи — подложка «улица», R14, без обводок (дизайн-система, разделы 2 и 7.1). */
.prose blockquote { margin: 24px 0; padding: 18px 22px; background: var(--street); border-radius: 14px; color: var(--ink); }
.prose blockquote p { margin: 0; }

/* ---------- Схемы статей пачки 1 (чат 03v2, 02.11.2026; раздел 7.1–7.2) ---------- */
/* Когортная таблица (отчёт по маркетингу, схема 1): матрица 6 столбцов, заливка по доле сделок одним тоном мяты */
.dg-mx--6 { grid-template-columns: minmax(118px, 1.4fr) repeat(6, minmax(0, 1fr)); }
.dg-heat .dg-mx__cell { padding: 3px; }
.dg-heat__axis { grid-column: 2 / -1; padding: 0 2px 4px; }
/* Доля сделок — высотой столбика одного тона мяты: без новых цветов, читается и без цвета */
.dg-heat .dg-mx__cell { align-items: end; place-items: end center; }
.dg-ht { display: block; width: 100%; border-radius: 5px 5px 2px 2px; background: var(--guide); }
.dg-ht--1 { height: 8px; }
.dg-ht--2 { height: 18px; }
.dg-ht--3 { height: 32px; }
.dg-heat .dg-mx__label { align-self: end; padding-bottom: 4px; }
.dg-heat__tail { grid-column: 3 / -1; margin: 2px 3px 6px; border-top: 1.5px solid var(--text-3); padding-top: 4px; text-align: center; font-size: 14px; color: var(--text-3); }
/* Воронка «чиним снизу вверх» (отчёт по маркетингу, схема 2) */
.dg-fix { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 14px; background: var(--module); border-radius: 14px; padding: 14px; }
.prose .dg-fix__bars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.prose .dg-fix__row { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dg-fix__bar { width: var(--w); min-width: 60%; background: var(--street); border-radius: 12px; padding: 10px 14px; font-size: 15px; line-height: 1.3; color: var(--ink); }
.dg-fix__row.is-key .dg-fix__bar { background: var(--guide); font-weight: 700; }
.dg-fix__row.is-deal .dg-fix__bar { background: var(--ink); color: #fff; font-weight: 700; }
.dg-fix__note { background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 12px; font-size: 14px; line-height: 1.25; }
.dg-fix__up { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; color: var(--text-3); text-align: center; }
.dg-fix__line { flex: 1; width: 2px; background: var(--text-3); position: relative; min-height: 60px; order: 2; }
.dg-fix__line::before { content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); border: 4.5px solid transparent; border-bottom: 8px solid var(--text-3); border-top: 0; }
.dg-fix__up .cond { order: 1; }
/* Два трека и вехи (подготовка к старту продаж) */
.dg-tracks { display: grid; grid-template-columns: minmax(0, 1fr) 26px minmax(110px, .22fr); gap: 8px 4px; align-items: stretch; }
.dg-track--1 { grid-column: 1; grid-row: 1; }
.dg-track--2 { grid-column: 1; grid-row: 2; }
.dg-tracks__arr1 { grid-column: 2; grid-row: 1; }
.dg-tracks__arr2 { grid-column: 2; grid-row: 2; }
.dg-tracks__goal { grid-column: 3; grid-row: 1 / 3; align-self: center; justify-content: center; text-align: center; padding: 18px 14px; }
.dg-miles { display: grid; grid-template-columns: minmax(0, 1.4fr) 26px minmax(0, 1fr); gap: 8px 4px; align-items: stretch; }
.dg-mile { gap: 8px; }
.dg-mile__tag { align-self: flex-start; background: var(--street); color: var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.dg-mile__tag--ink { background: var(--ink); color: #fff; }
.dg-box .dg-mile__tag { color: var(--ink); }
.dg-box .dg-mile__tag--ink { color: #fff; }
.dg-box.dg-mile > span:last-child { color: var(--text-body); }
/* Ступени структуры (структура отдела маркетинга) */
.dg-tiers { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1.7fr) 22px minmax(0, 1fr); align-items: stretch; gap: 0 4px; }
.dg-tier { gap: 10px; }
.dg-tier__lead { font-size: 15px; line-height: 1.3; color: var(--ink); }
.dg-tier__dir { background: var(--street); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.dg-tier__dir--res { background: var(--res); }
.dg-tier__dh { font-size: 14.5px; line-height: 1.3; color: var(--ink); }
.prose .dg-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.prose .dg-tags li { margin: 0; background: var(--street); border-radius: 999px; padding: 4px 10px; font-size: 14px; line-height: 1.3; color: var(--ink); }
.prose .dg-tier__dir .dg-tags li { background: var(--module); }
.dg-tier__joint { border: 1.5px dashed var(--text-3); border-radius: 10px; padding: 10px; font-size: 14.5px; line-height: 1.35; color: var(--text-body); }
.dg-band { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; background: var(--module); border-radius: 14px; padding: 12px 16px; font-size: 15px; line-height: 1.4; color: var(--text-body); }
.dg-band .cond { font-size: 14px; color: var(--text-3); }
@media (max-width: 640px) {
  .dg-mx--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 10px 8px; }
  .dg-heat__axis { grid-column: 1 / -1; }
  .dg-heat__tail { grid-column: 2 / -1; }
  .dg-ht--3 { height: 26px; }
  .dg-ht--2 { height: 15px; }
  .dg-fix { grid-template-columns: minmax(0, 1fr); padding: 12px 10px; }
  .dg-fix__bar { min-width: 72%; }
  .dg-fix__up { flex-direction: row; justify-content: flex-start; padding-left: 2px; }
  .dg-fix__line { flex: none; height: 26px; min-height: 0; order: 0; }
  .dg-tracks, .dg-miles, .dg-tiers { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dg-track--1, .dg-track--2, .dg-tracks__arr1, .dg-tracks__arr2, .dg-tracks__goal { grid-column: 1; grid-row: auto; }
  .dg-tracks__arr1 { display: none; }
  .dg-tracks__goal { min-height: 48px; }
}
@media (max-width: 360px) {
  /* H1 статьи на 320 px: «для руководителя:» связано неразрывным пробелом и при 40 px выходило за край на 8 px */
  .article .h1 { font-size: 32px; }
}

/* ---------- Схемы статей пачки 2 (чат 03v2, 02.11.2026; раздел 7.1–7.2) ---------- */
/* Лестница стоимости (стоимость лида): ступени растут слева направо, над каждой — подпись стоимости.
   Встреча — мята (этап, которым управляем) с подписью-капсулой туши; сделка — тушь (итог) */
.prose .dg-stairs { list-style: none; padding: 14px 14px 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; background: var(--module); border-radius: 14px; }
.prose .dg-stair { margin: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.dg-stair__cost { font-size: 14px; line-height: 1.2; color: var(--text-3); align-self: flex-start; }
.dg-stair__step { display: flex; align-items: flex-end; min-height: calc(48px + var(--i) * 30px); background: var(--street); border-radius: 12px 12px 0 0; padding: 10px 12px; font-size: 15px; line-height: 1.25; color: var(--ink); }
.dg-stair.is-key .dg-stair__step { background: var(--guide); font-weight: 700; }
.dg-stair.is-key .dg-stair__cost { background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 10px; }
.dg-stair.is-deal .dg-stair__step { background: var(--ink); color: #fff; font-weight: 700; }
@media (max-width: 640px) {
  /* Телефон: лестница поворачивается — ступени строками, длина растёт сверху вниз */
  .prose .dg-stairs { grid-template-columns: minmax(0, 1fr); padding: 12px 10px; gap: 10px; }
  .prose .dg-stair { gap: 4px; }
  .dg-stair__step { min-height: 0; width: calc(56% + var(--i) * 11%); border-radius: 12px; padding: 9px 12px; }
}
