/* Коллегия адвокатов «Пятая линия» · demo design system
   Direction «Ситуации»: a calm help desk, not a law-firm brochure.
   Sand, milk and ink as the base. The office accent (--acc) marks every interactive state and
   changes with the chosen office (Тверь / Москва / Ярославль). Saffron marks only urgent things.
   Type: Geologica (display) + Golos Text (body). */

/* ---------- 1. tokens ---------- */
@property --acc      { syntax: "<color>"; inherits: true; initial-value: #0E5E63; }
@property --acc-ink  { syntax: "<color>"; inherits: true; initial-value: #0A4549; }
@property --acc-tint { syntax: "<color>"; inherits: true; initial-value: #E1EDEA; }
@property --acc-soft { syntax: "<color>"; inherits: true; initial-value: #B5D3CF; }

:root {
  /* base palette */
  --sand: #F2E6DA;
  --sand-2: #E7D6C4;
  --milk: #FCF9F5;
  --ink: #1D1B19;
  --ink-2: #3B3733;
  --muted: #6A6259;
  --saffron: #E2A23A;
  --saffron-2: #F0B955;
  --line: rgba(29, 27, 25, .12);
  --line-2: rgba(29, 27, 25, .26);
  --on-dark: #FCF9F5;
  --on-dark-muted: rgba(252, 249, 245, .72);
  --line-dark: rgba(252, 249, 245, .2);

  /* office accent: default = Тверь «Петроль» */
  --acc: #0E5E63;
  --acc-ink: #0A4549;
  --acc-tint: #E1EDEA;
  --acc-soft: #B5D3CF;
  --on-acc: #fff;

  /* type */
  --ff-d: "Geologica", "Golos Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ff-b: "Golos Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-mega: clamp(2.7rem, 5.1vw, 4.5rem);
  --fs-d1: clamp(2.2rem, 5vw, 4rem);
  --fs-d2: clamp(1.85rem, 3.6vw, 2.9rem);
  --fs-d3: clamp(1.4rem, 2.3vw, 1.85rem);
  --fs-d4: clamp(1.12rem, 1.5vw, 1.28rem);
  --fs-lead: clamp(1.06rem, 1.45vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-micro: .8125rem;

  /* space + shape */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(60px, 8.5vw, 120px);
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem;
  --r-s: 8px; --r-m: 14px; --r-l: 22px;
  --shadow-1: 0 1px 0 rgba(29, 27, 25, .05), 0 12px 30px -18px rgba(29, 27, 25, .35);
  --shadow-2: 0 2px 0 rgba(29, 27, 25, .04), 0 24px 60px -24px rgba(29, 27, 25, .45);
  --hdr-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* office accents. The attribute is set in <head> before first paint. */
html[data-office="tver"]      { --acc: #0E5E63; --acc-ink: #0A4549; --acc-tint: #E1EDEA; --acc-soft: #B5D3CF; }
html[data-office="moscow"]    { --acc: #3B3F96; --acc-ink: #2B2E72; --acc-tint: #E8E9F6; --acc-soft: #C1C4E6; }
html[data-office="yaroslavl"] { --acc: #9A4526; --acc-ink: #76331A; --acc-tint: #F6E7DD; --acc-soft: #E5BFA9; }
html { transition: --acc .6s ease, --acc-ink .6s ease, --acc-tint .6s ease, --acc-soft .6s ease; }

/* ---------- 2. base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 20px); }
body { margin: 0; background: var(--milk); color: var(--ink); font: 400 var(--fs-body)/1.55 var(--ff-b); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-d); font-weight: 600; letter-spacing: -.022em; line-height: 1.1; font-variation-settings: "SHRP" 8; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--acc); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--acc-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
b, strong { font-weight: 600; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--acc-soft); color: var(--ink); }
.on-dark :focus-visible, .section--ink :focus-visible { outline-color: var(--saffron); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 10px; text-decoration: none; font-weight: 600; transition: top .2s; }
.skip:focus { top: 0; color: #fff; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.nowrap { white-space: nowrap; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--ink a:not(.btn) { color: var(--saffron); }

.kicker { display: inline-flex; align-items: center; gap: .7em; margin: 0 0 var(--s4); font: 600 var(--fs-micro)/1.3 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--acc-ink); }
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--acc); flex: none; }
.section--ink .kicker { color: var(--saffron); }
.section--ink .kicker::before { background: var(--saffron); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.section--ink .lead { color: var(--on-dark-muted); }
.note { font-size: var(--fs-micro); color: var(--muted); line-height: 1.5; }
.section--ink .note { color: var(--on-dark-muted); }

.sec-head { display: grid; gap: var(--s4) var(--s7); margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head__title { font-size: var(--fs-d2); max-width: 17ch; }
.sec-head__aside { max-width: 46ch; color: var(--ink-2); margin: 0; }
.section--ink .sec-head__aside { color: var(--on-dark-muted); }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1.1fr 1fr; align-items: end; } .sec-head > .kicker, .sec-head > .stn { grid-column: 1 / -1; margin-bottom: 0; } }

/* inline links keep their place in the text but get a 44px-high hit area */
p a:not(.btn):not(.ftr__phone), .consent a, .legal li a { padding-block: 14px; margin-block: -14px; }
.crumbs a, .advs__h a { display: inline-flex; align-items: center; min-height: 44px; }
.adv__name a { display: inline-block; padding-block: 12px; margin-block: -12px; }

/* ---------- 3. controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: .72em 1.35em; border-radius: 999px; border: 1.5px solid var(--acc); background: var(--acc); color: var(--on-acc); font: 600 1rem/1.1 var(--ff-b); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { background: var(--acc-ink); border-color: var(--acc-ink); color: var(--on-acc); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--sm { min-height: 44px; padding: .55em 1.05em; font-size: var(--fs-small); }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--acc-ink); }
.btn--ghost:hover { background: var(--acc-tint); color: var(--acc-ink); }
.btn--duty { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.btn--duty:hover { background: var(--saffron-2); border-color: var(--saffron-2); color: var(--ink); }
.btn--light { background: var(--milk); border-color: var(--milk); color: var(--ink); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--line-light { background: transparent; border-color: var(--line-dark); color: var(--on-dark); }
.btn--line-light:hover { background: rgba(252, 249, 245, .08); border-color: var(--on-dark); color: var(--on-dark); }

.link { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .3s var(--ease); padding-bottom: 1px; }
.link:hover { background-size: 0 1px; background-position: 100% 100%; color: inherit; }

.tag { display: inline-flex; align-items: center; gap: .45em; padding: .28em .75em; border-radius: 999px; background: var(--sand); color: var(--ink-2); font: 600 var(--fs-micro)/1.25 var(--ff-b); }
.tag--urgent { background: var(--saffron); color: var(--ink); }
.ref { display: inline-block; padding: .16em .6em; border: 1px solid var(--line-2); border-radius: 6px; font: 500 .75rem/1.4 var(--ff-b); color: var(--ink-2); background: transparent; font-style: normal; }
.section--ink .ref { border-color: var(--line-dark); color: var(--on-dark-muted); }

/* chips: radio and checkbox pills */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-block; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip > span { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 0 1.1em; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--milk); color: var(--ink); font-weight: 500; line-height: 1.2; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover > span { border-color: var(--acc); }
.chip input:checked + span { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.chip input:focus-visible + span { outline: 3px solid var(--acc); outline-offset: 3px; }
.chip input:disabled + span { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.chip input:disabled { cursor: not-allowed; }

/* ---------- 4. header ---------- */
.hdr { position: sticky; top: 0; z-index: 70; background: rgba(252, 249, 245, .93); -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.hdr.is-stuck { border-color: var(--line); box-shadow: 0 10px 24px -20px rgba(29, 27, 25, .6); }
.hdr__in { display: flex; align-items: center; gap: 12px; min-height: var(--hdr-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; min-height: 44px; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__mark .l { stroke: var(--ink); }
.logo__mark .l5 { stroke: var(--acc); }
.logo__mark .dot { fill: var(--acc); }
.logo__text { display: grid; line-height: 1.1; }
.logo__word { font: 650 1.12rem/1.1 var(--ff-d); letter-spacing: -.02em; }
.logo__sub { font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.nav { display: none; align-items: center; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: var(--fs-small); transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--acc-tint); color: var(--acc-ink); }
.nav a[aria-current="page"] { color: var(--acc-ink); box-shadow: inset 0 -2px 0 var(--acc); border-radius: 8px 8px 0 0; }

.hdr__duty { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--saffron); color: var(--ink); text-decoration: none; transition: background-color .2s; }
.hdr__duty:hover { background: var(--saffron-2); color: var(--ink); }
.hdr__duty svg { width: 20px; height: 20px; flex: none; }
.hdr__duty span { display: grid; line-height: 1.15; }
.hdr__duty small { font-size: .6875rem; font-weight: 500; letter-spacing: .02em; }
.hdr__duty b { font-size: .9375rem; font-weight: 650; font-variant-numeric: tabular-nums; }

.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 999px; background: transparent; font-weight: 600; font-size: var(--fs-small); }
.menu-btn__bars { width: 16px; height: 10px; position: relative; display: inline-block; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-btn__bars::before { top: 0; }
.menu-btn__bars::after { top: 8px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { top: 4px; transform: rotate(-45deg); }
.menu-btn__t { display: none; }
@media (min-width: 560px) { .menu-btn__t { display: inline; } }
@media (max-width: 400px) { .logo__sub { display: none; } .logo__word { font-size: 1.05rem; } .hdr__in { gap: 8px; } }
@media (min-width: 1180px) {
  .nav { display: flex; margin-left: auto; margin-right: 8px; }
  .logo { margin-right: 0; }
  .hdr__duty { display: inline-flex; }
  .menu-btn { display: none; }
}

/* city button in the header (all pages) */
.ocity { position: relative; }
.ocity__btn { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 12px 0 14px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--milk); font-weight: 600; font-size: var(--fs-small); transition: border-color .2s; }
.ocity__btn:hover { border-color: var(--acc); }
.ocity__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--acc); flex: none; }
.ocity__btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.ocity__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.ocity__pop { position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, calc(100vw - 32px)); background: var(--milk); border: 1px solid var(--line-2); border-radius: var(--r-m); box-shadow: var(--shadow-2); padding: 6px; z-index: 80; }
.ocity__pop[hidden] { display: none; }
.ocity__head { margin: 8px 12px 4px; font: 600 .6875rem/1.2 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.ocity__opt { display: grid; grid-template-columns: auto 1fr; gap: 1px 12px; align-items: center; width: 100%; min-height: 58px; padding: 9px 12px; text-align: left; border: 0; border-radius: 10px; background: none; }
.ocity__opt:hover { background: var(--sand); }
.ocity__opt[aria-checked="true"] { background: var(--acc-tint); }
.ocity__opt i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); grid-row: span 2; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line-2); }
.ocity__opt b { font-size: 1rem; }
.ocity__opt small { color: var(--muted); font-size: var(--fs-micro); }

/* mobile menu */
.mnav { position: fixed; left: 0; right: 0; bottom: 0; top: 64px; z-index: 65; background: var(--milk); padding: 24px var(--gutter) 32px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; }
.mnav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
.mnav ol { list-style: none; counter-reset: m; }
.mnav li { border-bottom: 1px solid var(--line); counter-increment: m; }
.mnav li a { display: flex; align-items: baseline; gap: 14px; min-height: 64px; padding: 14px 0; font: 600 clamp(1.5rem, 6vw, 2.1rem)/1.1 var(--ff-d); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.mnav li a::before { content: "0" counter(m); font: 500 .8125rem/1 var(--ff-b); color: var(--acc); letter-spacing: .06em; }
.mnav li a:hover { color: var(--acc-ink); }
.mnav__foot { margin-top: var(--s6); display: grid; gap: var(--s3); }
@media (min-width: 1180px) { .mnav { display: none; } }

/* ---------- 5. status + office data ---------- */
.status { display: inline-flex; align-items: center; gap: .55em; font-weight: 500; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.status.is-open::before { background: var(--acc); box-shadow: 0 0 0 0 var(--acc-soft); animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--acc-soft); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- 6. hero: «Пятая линия» drawn as a route map ---------- */
.hero { background: radial-gradient(900px 460px at 90% -10%, rgba(255, 255, 255, .62), transparent 70%), var(--sand); padding-block: clamp(22px, 2.8vw, 44px) clamp(40px, 5.5vw, 80px); position: relative; overflow: hidden; }
.hero__top { display: grid; gap: var(--s4) clamp(24px, 4vw, 64px); align-items: end; }
@media (min-width: 960px) { .hero__top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.hero__txt, .hero__aside { min-width: 0; }
.hero__q { font-size: clamp(2.6rem, 4.7vw, 4.1rem); font-weight: 650; letter-spacing: -.035em; line-height: .98; margin: 0; }
.hero__q .ml-word { padding-bottom: .16em; margin-bottom: -.16em; }
.hero .lead { margin-bottom: var(--s4); font-size: clamp(1.02rem, 1.3vw, 1.15rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.night { margin: var(--s5) 0 0; padding: 12px 16px; border-left: 4px solid var(--saffron); background: var(--milk); border-radius: 0 var(--r-s) var(--r-s) 0; font-size: var(--fs-small); max-width: 46ch; }
.night[hidden] { display: none; }
.night + .line5 { margin-top: var(--s5); }
/* phones: the route map comes straight after the title, so the three stops and the duty phone are on the first screen; the intro and buttons follow the map */
@media (max-width: 759px) {
  .hero .wrap { display: flex; flex-direction: column; }
  .hero__top, .hero__txt, .hero__aside { display: contents; }
  .hero__txt .kicker { order: 1; }
  .hero__q { order: 2; }
  .night { order: 3; margin-top: var(--s4); }
  .line5 { order: 4; margin-top: var(--s4); }
  .night + .line5 { margin-top: var(--s4); }
  .hero .lead { order: 5; margin: var(--s5) 0 var(--s4); }
  .hero__cta { order: 6; }
}

/* the route card: bar, stops on the line, departure board */
.line5 { margin-top: clamp(22px, 2.8vw, 38px); background: var(--milk); border: 1px solid var(--line-2); border-radius: var(--r-l); box-shadow: var(--shadow-2); overflow: hidden; }
.line5__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding: 14px clamp(16px, 2.4vw, 28px); border-bottom: 1px solid var(--line); }
.line5__name { display: inline-flex; align-items: center; gap: 12px; margin: 0; font: 600 var(--fs-small)/1.2 var(--ff-d); letter-spacing: 0; }
.line5__badge { width: 30px; height: 30px; border-radius: 50%; background: var(--acc); color: var(--on-acc); display: grid; place-items: center; font: 700 .9375rem/1 var(--ff-d); }
.line5__hint { margin: 0; font-size: var(--fs-micro); color: var(--muted); }

.rt { --row: 92px; --rx: 52px; --sl: rgba(29, 27, 25, .18); position: relative; display: grid; padding-block: 12px; }
.rt__stave { position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--rx) + 4px); pointer-events: none;
  background:
    linear-gradient(var(--sl), var(--sl)) calc(var(--rx) - 48px) 0 / 1px 100% no-repeat,
    linear-gradient(var(--sl), var(--sl)) calc(var(--rx) - 36px) 0 / 1px 100% no-repeat,
    linear-gradient(var(--sl), var(--sl)) calc(var(--rx) - 24px) 0 / 1px 100% no-repeat,
    linear-gradient(var(--sl), var(--sl)) calc(var(--rx) - 12px) 0 / 1px 100% no-repeat; }
.rt__rail { position: absolute; left: calc(var(--rx) - 2px); width: 4px; top: calc(12px + var(--row) / 2); height: calc(var(--row) * 2); border-radius: 2px; background: var(--line-2); pointer-events: none; }
.rt__fill { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--i) * var(--row)); border-radius: 2px; background: var(--acc); transition: height .6s cubic-bezier(.65, 0, .25, 1); }
.rt__train { position: absolute; left: 50%; top: calc(var(--i) * var(--row)); width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--acc); color: var(--on-acc); display: grid; place-items: center; font: 700 1.0625rem/1 var(--ff-d); font-style: normal; z-index: 2; box-shadow: 0 0 0 4px var(--milk); transition: top .6s cubic-bezier(.65, 0, .25, 1); }
.rt__train.is-pulse { animation: tl-pulse .9s ease-out; }
@keyframes tl-pulse { from { box-shadow: 0 0 0 4px var(--milk), 0 0 0 4px var(--acc-soft); } to { box-shadow: 0 0 0 4px var(--milk), 0 0 0 28px transparent; } }
.rt__stop { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name st" "addr addr"; align-content: center; gap: 2px 12px; min-height: var(--row); padding: 6px 18px 6px calc(var(--rx) + 32px); border: 0; background: none; text-align: left; border-radius: 0; color: inherit; }
.rt__stop::before { content: ""; position: absolute; left: calc(var(--rx) - 9px); top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 3px solid var(--acc); background: var(--milk); transition: background-color .2s, transform .25s var(--ease); }
.rt__stop:hover::before { background: var(--acc-soft); transform: scale(1.18); }
.rt__stop[aria-checked="true"] { background: linear-gradient(90deg, transparent 0 calc(var(--rx) + 24px), var(--acc-tint) calc(var(--rx) + 24px) 100%); }
.rt__stop:focus-visible { outline-offset: -4px; border-radius: var(--r-m); }
.rt__no { display: none; }
.rt__name { grid-area: name; align-self: end; font: 650 clamp(1.5rem, 2.4vw, 2.3rem)/1.05 var(--ff-d); letter-spacing: -.025em; transition: color .2s; font-variation-settings: "SHRP" 8; }
.rt__stop:hover .rt__name, .rt__stop[aria-checked="true"] .rt__name { color: var(--acc-ink); }
.rt__addr { grid-area: addr; align-self: start; font-size: var(--fs-small); line-height: 1.35; color: var(--muted); }
.rt__st { grid-area: st; align-self: end; font-size: var(--fs-micro); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding-bottom: 3px; }
.rt__st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .55; }
.rt__st.is-open::before { background: var(--acc); opacity: 1; }
@media (min-width: 760px) {
  .rt { --ry: 76px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 0; }
  .rt__stave { left: 0; right: 0; bottom: auto; width: auto; height: calc(var(--ry) + 4px);
    background:
      linear-gradient(var(--sl), var(--sl)) 0 calc(var(--ry) - 48px) / 100% 1px no-repeat,
      linear-gradient(var(--sl), var(--sl)) 0 calc(var(--ry) - 36px) / 100% 1px no-repeat,
      linear-gradient(var(--sl), var(--sl)) 0 calc(var(--ry) - 24px) / 100% 1px no-repeat,
      linear-gradient(var(--sl), var(--sl)) 0 calc(var(--ry) - 12px) / 100% 1px no-repeat; }
  .rt__rail { left: 16.6667%; right: 16.6667%; width: auto; top: calc(var(--ry) - 2px); height: 4px; }
  .rt__fill { right: auto; bottom: 0; height: auto; width: calc(var(--i) * 50%); transition: width .6s cubic-bezier(.65, 0, .25, 1); }
  .rt__train { left: calc(var(--i) * 50%); top: 50%; transition: left .6s cubic-bezier(.65, 0, .25, 1); }
  .rt__stop { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; min-height: 218px; padding: calc(var(--ry) + 34px) 14px 22px; }
  .rt__stop::before { left: 50%; top: var(--ry); margin: -9px 0 0 -9px; }
  .rt__stop[aria-checked="true"] { background: linear-gradient(180deg, transparent calc(var(--ry) + 6px), var(--acc-tint) 100%); }
  .rt__stop:focus-visible { outline-offset: -4px; }
  .rt__no { display: block; position: absolute; top: 4px; left: 0; right: 0; font: 600 .6875rem/1.3 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); text-align: center; }
  .rt__name { align-self: auto; font-size: clamp(1.7rem, 2.9vw, 2.7rem); }
  .rt__addr { align-self: auto; }
  .rt__st { align-self: auto; margin-top: 4px; padding: 5px 12px 5px 10px; border-radius: 999px; background: var(--sand); }
}

/* departure board: the selected stop's address, hours and duty phone */
.dep { margin: 0; display: grid; background: var(--acc-tint); border-top: 1px solid var(--line); }
.dep__cell { display: grid; gap: 4px 16px; align-content: center; padding: 16px clamp(16px, 2.4vw, 28px); border-bottom: 1px solid var(--line); }
.dep__cell:last-child { border-bottom: 0; }
.dep dt { font: 600 .6875rem/1.3 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.dep dd { margin: 0; font-size: 1rem; line-height: 1.4; }
.dep dd b { font-weight: 600; }
.dep__cell--duty { background: #F6E5C4; background: color-mix(in srgb, var(--saffron) 26%, var(--milk)); }
.dep__act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dep__phone, .ocard__phone, .ftr__phone { display: inline-flex; align-items: center; min-height: 44px; }
.dep__phone { font: 650 clamp(1.3rem, 2.2vw, 1.7rem)/1.1 var(--ff-d); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
@media (min-width: 520px) { .dep__cell { grid-template-columns: 7.2rem minmax(0, 1fr); } }
@media (min-width: 960px) {
  .dep { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr); }
  .dep__cell { grid-template-columns: minmax(0, 1fr); align-content: start; padding-block: 22px; border-bottom: 0; border-right: 1px solid var(--line); }
  .dep__cell:last-child { border-right: 0; }
}

/* ---------- 6b. situations as stops on a line ---------- */
.sit__grid { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 1000px) { .sit__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; } .sit__head { position: sticky; top: calc(var(--hdr-h) + 24px); } }
.sit__head, .sline { min-width: 0; }
.sit__title { font-size: var(--fs-d1); margin-bottom: var(--s4); max-width: 14ch; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s5) 0 var(--s4); }
.areas__btn { min-height: 44px; padding: 0 1.1em; border: 1.5px solid var(--line-2); border-radius: 999px; background: transparent; font-weight: 500; font-size: var(--fs-small); transition: background-color .2s, border-color .2s, color .2s; }
.areas__btn:hover { border-color: var(--acc); }
.areas__btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--milk); }

.sline { --lx: 22px; list-style: none; margin: 0; padding: 0; container-type: inline-size; }
.sline > li { position: relative; }
.sline > li::before { content: ""; position: absolute; left: calc(var(--lx) - 2px); width: 4px; top: 0; bottom: 0; background: var(--acc); }
.sline > li:first-child::before { top: 40px; }
.sline > li:last-child::before { bottom: auto; height: 42px; }
.sgroup__t { margin: 0; padding: 30px 0 8px 56px; position: relative; font: 600 .75rem/1.3 var(--ff-b); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-variation-settings: normal; transition: opacity .35s; }
.sgroup__t::before { content: ""; position: absolute; left: calc(var(--lx) - 8px); top: 32px; width: 16px; height: 16px; border-radius: 3px; background: var(--acc); transform: rotate(45deg) scale(.82); }
.sline > li:first-child .sgroup__t { padding-top: 22px; }
.sline > li:first-child .sgroup__t::before { top: 24px; }
.sstop { margin-left: 0; }
.sstop__a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t go" "d d" "tag tag"; gap: 4px 14px; margin-left: 56px; padding: 16px 12px 16px 14px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; transition: background-color .25s, opacity .35s; }
.sgroup + .sstop .sstop__a { border-top-color: transparent; }
.sstop__a:hover { background: linear-gradient(90deg, var(--acc-tint), transparent); color: inherit; }
.sstop__a:focus-visible { outline-offset: -3px; border-radius: var(--r-s); }
.sstop__n { position: absolute; left: -52px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--acc); background: var(--milk); display: grid; place-items: center; font: 650 .9375rem/1 var(--ff-d); transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.sstop__a:hover .sstop__n { background: var(--acc); color: var(--on-acc); transform: scale(1.08); }
.sstop__n svg { width: 16px; height: 16px; }
.sstop__t { grid-area: t; align-self: center; font: 600 clamp(1.15rem, 1.7vw, 1.4rem)/1.2 var(--ff-d); letter-spacing: -.015em; }
.sstop__d { grid-area: d; margin: 0; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); max-width: 58ch; }
.sstop__tag { grid-area: tag; justify-self: start; margin-top: 6px; }
.sstop__go { grid-area: go; align-self: start; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background-color .25s, border-color .25s, color .25s, transform .3s var(--ease); }
.sstop__go svg { width: 16px; height: 16px; }
.sstop__a:hover .sstop__go { background: var(--acc); border-color: var(--acc); color: var(--on-acc); transform: translateX(3px); }
.sstop--urgent .sstop__n { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.sstop--urgent .sstop__a:hover .sstop__n { background: var(--saffron-2); border-color: var(--saffron-2); color: var(--ink); }
.sstop--end .sstop__n { border-style: dashed; }
.sstop--end .sstop__t { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.sline[data-f="crim"] > li:not([data-area~="crim"]) :is(.sstop__a, .sgroup__t),
.sline[data-f="fam"] > li:not([data-area~="fam"]) :is(.sstop__a, .sgroup__t),
.sline[data-f="arb"] > li:not([data-area~="arb"]) :is(.sstop__a, .sgroup__t) { opacity: .34; }
@container (min-width: 560px) {
  .sstop__a { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "t tag go" "d d go"; align-items: start; }
  .sstop__tag { margin-top: 0; align-self: center; }
  .sstop--end .sstop__a { grid-template-areas: "t t go" "d d go"; }
}

/* ---------- 7. about + requisites ---------- */
.about__grid { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 960px) { .about__grid { grid-template-columns: 1.05fr 1fr; align-items: start; } .about__side { position: sticky; top: calc(var(--hdr-h) + 24px); } }
.about__title { font-size: var(--fs-d1); margin-bottom: var(--s5); max-width: 13ch; }
.about__text p { max-width: 54ch; }
.facts { margin: var(--s6) 0 0; border-top: 1px solid var(--line-2); }
.facts > div { display: grid; gap: 2px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 600 .6875rem/1.4 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; }
@media (min-width: 560px) { .facts > div { grid-template-columns: 9rem 1fr; } }
.cats { list-style: none; margin: var(--s4) 0 0; display: grid; gap: 0; }
.cats li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.cats li::before { content: ""; position: absolute; left: 4px; top: 1.05em; width: 10px; height: 2px; background: var(--acc); }
.fig { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--sand-2); }
.fig img { width: 100%; }
.fig figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(252, 249, 245, .92); font-size: .75rem; color: var(--ink-2); }
.req { margin-top: var(--s5); background: var(--sand); border-radius: var(--r-l); padding: clamp(18px, 3vw, 28px); border-top: 3px solid var(--acc); }
.req h3 { font-size: var(--fs-d4); margin-bottom: var(--s4); }
.req dl { margin: 0; display: grid; gap: 0; }
.req dl > div { display: grid; gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.req dl > div:last-child { border-bottom: 0; }
.req dt { font: 600 .6875rem/1.4 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.req dd { margin: 0; font-size: var(--fs-small); line-height: 1.5; }
@media (min-width: 560px) { .req dl > div { grid-template-columns: 10rem 1fr; } }

/* ---------- 8. «Что сделать сейчас»: checklist, ring, wallet card ---------- */
.now__grid { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 1000px) { .now__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; } .now__side { position: sticky; top: calc(var(--hdr-h) + 24px); } }
.now__title { font-size: var(--fs-d2); margin-bottom: var(--s4); }
.ring { display: flex; align-items: center; gap: 20px; margin: var(--s5) 0 var(--s4); }
.ring__svg { width: 112px; height: 112px; flex: none; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--line-dark); stroke-width: 9; }
.ring__arc { fill: none; stroke: var(--saffron); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .7s var(--ease); }
.ring__txt { display: grid; gap: 2px; }
.ring__num { font: 650 2.4rem/1 var(--ff-d); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring__lbl { font-size: var(--fs-small); color: var(--on-dark-muted); }
.check__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s4); }
.check__done { margin: var(--s4) 0 0; padding: 12px 16px; border-radius: var(--r-s); background: rgba(226, 162, 58, .16); border-left: 4px solid var(--saffron); font-size: var(--fs-small); }
.check__done[hidden] { display: none; }
.check__list { list-style: none; display: grid; gap: 10px; counter-reset: ck; }
.ck { position: relative; }
.ck__row { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 16px 18px; border: 1px solid var(--line-dark); border-radius: var(--r-m); cursor: pointer; transition: background-color .2s, border-color .2s; }
.ck__row:hover { background: rgba(252, 249, 245, .05); border-color: rgba(252, 249, 245, .4); }
.ck input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.ck__box { width: 34px; height: 34px; border: 2px solid rgba(252, 249, 245, .5); border-radius: 10px; display: grid; place-items: center; flex: none; transition: background-color .2s, border-color .2s; font: 600 .875rem/1 var(--ff-d); color: var(--on-dark-muted); }
.ck__box svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; display: none; }
.ck input:checked + .ck__box { background: var(--saffron); border-color: var(--saffron); }
.ck input:checked + .ck__box i { display: none; }
.ck input:checked + .ck__box svg { display: block; }
.ck input:focus-visible + .ck__box { outline: 3px solid var(--saffron); outline-offset: 3px; }
.ck__body { display: grid; gap: 4px; }
.ck__body b { font: 600 1.1rem/1.3 var(--ff-d); letter-spacing: -.01em; }
.ck__txt { color: var(--on-dark-muted); font-size: var(--fs-small); line-height: 1.5; }
.ck__refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ck input:checked ~ .ck__body { opacity: .62; }
.ck input:checked ~ .ck__body b { text-decoration: line-through; text-decoration-thickness: 1px; }
.now__foot { display: grid; gap: clamp(24px, 4vw, 48px); margin-top: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) { .now__foot { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.docs { border: 1px solid var(--line-dark); border-radius: var(--r-m); padding: clamp(18px, 3vw, 28px); }
.docs h3 { font-size: var(--fs-d4); margin-bottom: var(--s4); }
.docs ul { list-style: none; display: grid; gap: 0; }
.docs li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line-dark); font-size: var(--fs-small); }
.docs li:last-child { border-bottom: 0; }
.docs li::before { content: ""; position: absolute; left: 2px; top: 1.1em; width: 14px; height: 8px; border-left: 2px solid var(--saffron); border-bottom: 2px solid var(--saffron); transform: rotate(-45deg) scale(.9); }

.wallet { display: grid; gap: 14px; }
.wallet__lbl { font: 600 .6875rem/1.3 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0 0 10px; }
.wcards { display: grid; gap: 14px; }
@media (min-width: 640px) and (max-width: 899px), (min-width: 1280px) { .wcards { grid-template-columns: 1fr 1fr; } }
.wcard { background: var(--milk); color: var(--ink); border-radius: 16px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); position: relative; overflow: hidden; }
.wcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--saffron); }
.wcard__h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: 650 1rem/1.2 var(--ff-d); letter-spacing: -.01em; margin-top: 4px; }
.wcard__h small { font: 500 .6875rem/1.2 var(--ff-b); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wcard ol, .wcard ul { margin: 0; padding-left: 1.2em; font-size: .8125rem; line-height: 1.42; }
.wcard li { margin-bottom: 3px; }
.wcard__duty { margin-top: auto; padding: 8px 10px; border-radius: 8px; background: var(--saffron); font-size: .75rem; line-height: 1.3; }
.wcard__duty b { display: block; font: 650 1.12rem/1.2 var(--ff-d); font-variant-numeric: tabular-nums; }
.wcard__note { font-size: .6875rem; color: var(--muted); line-height: 1.35; margin: 0; }

/* ---------- 9. stage timeline ---------- */
.stages { --i: 0; --n: 6; }
.stages__tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: var(--s5); }
.stages__rail { display: none; }
.stages__tab { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 84px; padding: 10px 4px; border: 1.5px solid var(--line-2); border-radius: var(--r-m); background: var(--milk); text-align: center; transition: background-color .2s, border-color .2s, color .2s; }
.stages__tab:hover { border-color: var(--acc); }
.stages__n { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--acc); display: grid; place-items: center; font: 650 .9375rem/1 var(--ff-d); color: var(--acc-ink); background: var(--milk); transition: background-color .3s, color .3s; }
.stages__name { font: 600 .9375rem/1.15 var(--ff-d); letter-spacing: -.01em; }
.stages__tab[aria-selected="true"] { border-color: var(--acc); background: var(--acc-tint); }
.stages__tab[aria-selected="true"] .stages__n { background: var(--acc); color: var(--on-acc); }
.stages__panels { background: var(--milk); border: 1px solid var(--line-2); border-radius: var(--r-l); box-shadow: var(--shadow-1); }
.stages__panel { padding: clamp(20px, 3.4vw, 40px); display: grid; gap: clamp(20px, 3vw, 36px); }
html.js .stages__panel:not(.is-on) { display: none; }
.stages__panel > h3 { font-size: var(--fs-d3); display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; }
.stages__panel > h3 .ref { font-size: .75rem; }
.stages__cols { display: grid; gap: clamp(20px, 3vw, 36px); }
.stages__cols h4 { font: 600 .6875rem/1.3 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-variation-settings: normal; }
.stages__cols p, .stages__cols li { font-size: var(--fs-small); line-height: 1.55; }
.stages__cols ul { list-style: none; display: grid; gap: 8px; }
.stages__cols li { position: relative; padding-left: 20px; }
.stages__cols li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--acc); }
.stages__term { padding: 14px 16px; border-radius: var(--r-s); background: var(--acc-tint); border-left: 3px solid var(--acc); }
@media (min-width: 900px) { .stages__cols { grid-template-columns: 1.1fr 1.3fr 1fr; } }
@media (min-width: 760px) {
  .stages__tabs { grid-template-columns: repeat(var(--n), 1fr); gap: 0; margin-bottom: var(--s6); }
  .stages__rail { display: block; position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 28px; height: 4px; background: var(--line-2); border-radius: 2px; pointer-events: none; }
  .stages__rail i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--i) * 100% / (var(--n) - 1)); background: var(--acc); border-radius: 2px; transition: width .5s cubic-bezier(.65, 0, .25, 1); }
  .stages__tab { border: 0; background: none; min-height: 96px; padding: 10px 6px; position: relative; }
  .stages__n { width: 38px; height: 38px; margin-top: 11px; position: relative; z-index: 1; }
  .stages__tab:hover .stages__n { background: var(--acc-tint); }
  .stages__tab[aria-selected="true"] { background: none; }
  .stages__tab[aria-selected="true"] .stages__n { box-shadow: 0 0 0 6px var(--acc-soft); }
  .stages__name { font-size: 1rem; }
}
html:not(.js) .stages__tabs { display: none; }
html:not(.js) .stages__panel { border-bottom: 1px solid var(--line); }

/* ---------- 10. fees ---------- */
.fees__grid { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 1000px) { .fees__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: start; } }
.ftable { width: 100%; border-collapse: collapse; }
.ftable caption { text-align: left; }
.ftable th, .ftable td { text-align: left; vertical-align: top; padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line-2); }
.ftable thead th { padding-top: 0; font: 600 .6875rem/1.3 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.ftable tbody th { font: 600 1.12rem/1.25 var(--ff-d); letter-spacing: -.01em; width: 30%; }
.ftable td { font-size: var(--fs-small); color: var(--ink-2); }
.ftable td.ftable__price { text-align: right; padding-right: 0; white-space: nowrap; font: 650 1.45rem/1.1 var(--ff-d); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ftable thead th:last-child { text-align: right; padding-right: 0; }
@media (max-width: 719px) {
  .ftable, .ftable tbody, .ftable tr, .ftable th, .ftable td { display: block; }
  .ftable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ftable tr { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
  .ftable th, .ftable td { padding: 0; border: 0; width: auto !important; }
  .ftable td { margin-top: 6px; }
  .ftable td.ftable__price { text-align: left; margin-top: 10px; font-size: 1.6rem; }
}
.fees__notes { margin-top: var(--s5); display: grid; gap: 6px; }
.fees__notes p { margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
.factors { background: var(--sand); border-radius: var(--r-l); padding: clamp(20px, 3vw, 30px); }
.factors h3 { font-size: var(--fs-d4); margin-bottom: var(--s4); }
.factors ul { list-style: none; display: grid; gap: 0; }
.factors li { position: relative; padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line-2); font-size: var(--fs-small); }
.factors li:last-child { border-bottom: 0; }
.factors li::before { content: ""; position: absolute; left: 3px; top: 1.1em; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--acc); }
.fees__fig { margin-top: var(--s5); }

/* ---------- 11. booking ---------- */
.book__grid { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 1000px) { .book__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; } .book__side { position: sticky; top: calc(var(--hdr-h) + 24px); } }
.book__title { font-size: var(--fs-d2); margin-bottom: var(--s4); }
.book__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: var(--s5) 0 var(--s3); padding: 16px 0; border-block: 1px solid var(--line-2); }
.book__price b { font: 650 1.9rem/1 var(--ff-d); letter-spacing: -.02em; }
.book__quick { display: grid; gap: 10px; margin-top: var(--s5); }
.book__quick .msgr { display: flex; flex-wrap: wrap; gap: 8px; }
.panel { background: var(--milk); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: clamp(18px, 3.4vw, 36px); box-shadow: var(--shadow-1); }
.fset { border: 0; padding: 0; margin: 0 0 var(--s5); min-width: 0; }
.fset legend { padding: 0; margin-bottom: 10px; font: 600 .75rem/1.3 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.fset legend b { color: var(--acc-ink); margin-right: .5em; font-variant-numeric: tabular-nums; }
.days { display: flex; flex-wrap: wrap; gap: 8px; }
.chip--day > span { flex-direction: column; gap: 0; padding: 8px 14px; min-width: 78px; border-radius: 14px; line-height: 1.2; }
.chip--day b { font: 600 .6875rem/1.2 var(--ff-b); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.chip--day i { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.chip--slot > span { width: 100%; border-radius: 12px; font-variant-numeric: tabular-nums; font-weight: 600; }
.book__sum { margin: 0 0 var(--s5); padding: 12px 16px; border-radius: var(--r-s); background: var(--acc-tint); border-left: 3px solid var(--acc); font-size: var(--fs-small); min-height: 48px; display: flex; align-items: center; }
.row2 { display: grid; gap: 14px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: var(--fs-small); }
.field label i { font-style: normal; font-weight: 400; color: var(--muted); }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-s); background: #fff; transition: border-color .2s, box-shadow .2s; }
.input:hover { border-color: var(--acc); }
.input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
textarea.input { min-height: 96px; resize: vertical; }
.field__hint { font-size: var(--fs-micro); color: var(--muted); margin: 0; }
.consent { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; margin: var(--s4) 0 var(--s5); padding: 10px 0; min-height: 48px; font-size: var(--fs-small); line-height: 1.45; cursor: pointer; }
.consent input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.consent a { position: relative; z-index: 2; }
.consent__box { width: 28px; height: 28px; border: 2px solid var(--line-2); border-radius: 8px; background: #fff; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.consent__box svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.consent:hover .consent__box { border-color: var(--acc); }
.consent input:checked + .consent__box { background: var(--acc); border-color: var(--acc); }
.consent input:checked + .consent__box svg { opacity: 1; }
.consent input:focus-visible + .consent__box { outline: 3px solid var(--acc); outline-offset: 3px; }
.form-note { margin: var(--s4) 0 0; font-size: var(--fs-micro); color: var(--muted); }

/* ---------- 12. offices, map, advocates ---------- */
.ofc__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s5); margin-bottom: clamp(24px, 3.6vw, 44px); }
.ofc__title { font-size: var(--fs-d2); }
.osw > label, .osw > .osw__btn { flex: 1 1 auto; }
.osw { display: inline-flex; padding: 4px; gap: 2px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--milk); max-width: 100%; }
.osw__btn, .osw label { position: relative; }
.osw__btn, .osw > label > span { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: var(--fs-small); transition: background-color .25s, color .25s; }
.osw__btn i, .osw > label > span i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; transition: box-shadow .2s; }
.osw__btn:hover, .osw > label:hover > span { background: var(--acc-tint); }
.osw__btn[aria-checked="true"], .osw > label input:checked + span { background: var(--ink); color: var(--milk); }
.osw__btn[aria-checked="true"] i, .osw > label input:checked + span i { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--milk); }
.osw > label input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.osw > label input:focus-visible + span { outline: 3px solid var(--acc); outline-offset: 2px; }
@media (max-width: 480px) { .osw { display: flex; } .osw__btn, .osw > label > span { padding: 0 8px; font-size: .875rem; gap: 6px; } .osw > label > span { width: 100%; } }

.ofc__grid { display: grid; gap: clamp(24px, 3.6vw, 48px); }
@media (min-width: 1000px) { .ofc__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.ocard { background: var(--milk); border: 1px solid var(--line-2); border-top: 3px solid var(--acc); border-radius: var(--r-l); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow-1); }
.ocard__city { font-size: var(--fs-d1); margin-bottom: 8px; }
.ocard dl { margin: var(--s5) 0 0; }
.ocard dl > div { display: grid; gap: 2px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.ocard dt { font: 600 .6875rem/1.4 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.ocard dd { margin: 0; }
@media (min-width: 520px) { .ocard dl > div { grid-template-columns: 7.4rem 1fr; } }
.ocard__phone { font: 650 1.55rem/1.15 var(--ff-d); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ocard__act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s5); }
.msgr { display: flex; flex-wrap: wrap; gap: 8px; }
.msgr a, .msgr button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--milk); color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-small); transition: border-color .2s, background-color .2s; }
.msgr a:hover, .msgr button:hover { border-color: var(--acc); background: var(--acc-tint); color: var(--ink); }
.msgr svg { width: 20px; height: 20px; }

.map { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--sand); border: 1px solid var(--line-2); aspect-ratio: 640 / 496; box-shadow: var(--shadow-1); }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.omap__city { opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.omap__city.is-on { opacity: 1; }
.m-bg { fill: var(--sand); }
.m-water { fill: #CDDFE3; }
.m-river { fill: none; stroke: #CDDFE3; stroke-linecap: round; }
.m-park { fill: var(--acc-tint); transition: fill .6s; }
.m-parkline { fill: none; stroke: var(--acc-tint); stroke-linecap: round; transition: stroke .6s; }
.m-block { fill: rgba(29, 27, 25, .07); }
.m-road { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }
.m-road--s { stroke-width: 7; }
.m-road--m { stroke-width: 11; }
.m-road--l { stroke-width: 17; }
.m-label { font: 500 12px/1 var(--ff-b); fill: var(--muted); letter-spacing: .02em; }
.m-label--w { fill: #3F5B64; font-style: italic; }
.m-pin__ring { fill: var(--acc); opacity: .18; transform-box: fill-box; transform-origin: center; animation: pin 2.6s ease-out infinite; }
@keyframes pin { 0% { transform: scale(.4); opacity: .4; } 100% { transform: scale(2.4); opacity: 0; } }
.m-pin__body { fill: var(--acc); }
.m-pin__dot { fill: #fff; }
.m-addr__box { fill: var(--ink); }
.m-addr__txt { font: 600 13px/1 var(--ff-b); fill: var(--milk); }
.map__badge { position: absolute; left: 14px; top: 14px; display: inline-flex; padding: 8px 14px; border-radius: 999px; background: var(--milk); box-shadow: var(--shadow-1); font-size: var(--fs-small); z-index: 2; }
.map__north { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--milk); display: grid; place-items: center; font: 650 .75rem/1 var(--ff-d); color: var(--ink-2); box-shadow: var(--shadow-1); z-index: 2; }
.map__legend { position: absolute; left: 14px; bottom: 12px; font-size: .6875rem; color: var(--muted); z-index: 2; background: rgba(252, 249, 245, .85); padding: 3px 8px; border-radius: 6px; }

.oreq { margin-top: var(--s5); padding: 16px 20px; background: var(--sand); border-left: 3px solid var(--acc); border-radius: 0 var(--r-m) var(--r-m) 0; }
.oreq h3 { font: 600 .6875rem/1.3 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-variation-settings: normal; }
.oreq p { margin: 0; font-size: var(--fs-small); line-height: 1.55; }
.ofc__low { display: grid; gap: clamp(24px, 3.6vw, 48px); margin-top: clamp(32px, 5vw, 64px); }
@media (min-width: 1000px) { .ofc__low { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.panes { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--sand-2); aspect-ratio: 4 / 5; max-width: 520px; }
.pane { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .7s var(--ease); }
.pane.is-on { opacity: 1; }
.pane img { width: 100%; height: 100%; object-fit: cover; }
.pane figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(252, 249, 245, .92); font-size: .75rem; color: var(--ink-2); }
.advs__h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: var(--s4); }
.advs__h h3 { font-size: var(--fs-d3); }
.advs { list-style: none; border-top: 2px solid var(--ink); }
.advs[hidden], .advs li[hidden] { display: none; }
.adv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.adv__mono { grid-row: span 3; width: 52px; height: 52px; border-radius: 50%; background: var(--acc-tint); border: 1.5px solid var(--acc); color: var(--acc-ink); display: grid; place-items: center; font: 650 1.05rem/1 var(--ff-d); letter-spacing: -.02em; }
.adv__name { font: 600 1.15rem/1.2 var(--ff-d); letter-spacing: -.015em; }
.adv__name a { color: inherit; text-decoration: none; }
.adv__name a:hover { color: var(--acc-ink); text-decoration: underline; }
.adv__meta { font-size: var(--fs-small); color: var(--ink-2); margin: 0; line-height: 1.45; }
.adv__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.adv__tags .tag { background: var(--sand); }

/* ---------- 13. footer, sticky bar, sheet ---------- */
.ftr { background: var(--ink); color: var(--on-dark); padding-block: clamp(44px, 6vw, 80px) 28px; }
.ftr a { color: var(--on-dark); text-decoration-color: rgba(252, 249, 245, .35); }
.ftr a:hover { color: var(--saffron); }
.ftr__grid { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 900px) { .ftr__grid { grid-template-columns: 1.3fr .8fr 1fr 1.3fr; } }
.ftr h2 { font: 600 .6875rem/1.3 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 14px; font-variation-settings: normal; }
.ftr .logo { color: var(--on-dark); margin-bottom: 14px; }
.ftr .logo__mark .l { stroke: var(--on-dark); }
.ftr .logo__sub { color: var(--on-dark-muted); }
.ftr__list { list-style: none; display: grid; gap: 2px; }
.ftr__list a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.ftr p { font-size: var(--fs-small); color: var(--on-dark-muted); }
.ftr p b { color: var(--on-dark); }
.ftr__phone { font: 650 1.3rem/1.2 var(--ff-d); color: var(--on-dark); font-variant-numeric: tabular-nums; }
.ftr__legal { margin-top: clamp(28px, 4vw, 48px); padding-top: 22px; border-top: 1px solid var(--line-dark); display: grid; gap: 8px; }
.ftr__legal p { font-size: var(--fs-micro); line-height: 1.55; margin: 0; max-width: 110ch; }

.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: rgba(252, 249, 245, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line-2); transform: translateY(110%); transition: transform .35s var(--ease); }
.mbar.is-on { transform: none; }
.mbar:not(.is-on) { visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }   /* off-screen bar must not take keyboard focus */
.mbar .btn { min-height: 48px; padding-inline: 1.1em; }
.mbar__hrs { grid-column: 1 / -1; text-align: center; font-size: .75rem; color: var(--muted); line-height: 1.2; }
@media (min-width: 900px) { .mbar { display: none; } }
@media (max-width: 899px) { .ftr { padding-bottom: 120px; } }
.msheet { position: fixed; inset: 0; z-index: 90; display: grid; align-items: end; background: rgba(29, 27, 25, .5); }
.msheet[hidden] { display: none; }
.msheet__box { background: var(--milk); border-radius: 22px 22px 0 0; padding: 22px var(--gutter) calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 10px; max-width: 560px; width: 100%; margin-inline: auto; }
.msheet__box h2 { font-size: var(--fs-d4); margin-bottom: 4px; }
.msheet__box .btn { justify-content: flex-start; }

/* grid children may shrink below their content (long Russian words, chips) */
.sit__grid > *, .about__grid > *, .now__grid > *, .now__foot > *, .fees__grid > *, .book__grid > *, .ofc__grid > *, .ofc__low > *, .ftr__grid > * { min-width: 0; }

/* ---------- 14. inner pages ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: var(--s5); font-size: var(--fs-small); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--acc-ink); text-decoration: underline; }
.phead { padding-block: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px); background: var(--sand); }
.phead__title { font-size: var(--fs-d1); max-width: 18ch; margin-bottom: var(--s4); }
.legal { max-width: 72ch; }
.legal h1 { font-size: clamp(1.65rem, 6.6vw, 3.4rem); margin-bottom: var(--s5); overflow-wrap: break-word; hyphens: auto; }
.legal h2 { font-size: var(--fs-d4); margin: var(--s6) 0 var(--s3); }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; margin-bottom: 1em; }
.legal li { margin-bottom: .4em; }
.legal__demo { padding: 12px 16px; border-left: 4px solid var(--acc); background: var(--acc-tint); border-radius: 0 var(--r-s) var(--r-s) 0; font-size: var(--fs-small); color: var(--ink) !important; }

/* ---------- 15. print: the wallet card alone (JS adds html.print-wallet; #print-wallet in the URL previews it) ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  html.print-wallet body > *:not(main):not(script) { display: none !important; }
  html.print-wallet main > *:not(#now) { display: none !important; }
  html.print-wallet .now__grid, html.print-wallet .docs { display: none !important; }
  html.print-wallet body, html.print-wallet #now { background: #fff !important; padding: 0 !important; }
  html.print-wallet .now__foot { display: block; margin: 0; }
  html.print-wallet .wallet__lbl { display: none; }
  html.print-wallet .wcards { grid-template-columns: 1fr; gap: 8mm; }
  html.print-wallet .wcard { width: 120mm; box-shadow: none; border: 1.2px dashed #777; border-radius: 4mm; padding: 6mm; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html.print-wallet .wcard::before, html.print-wallet .wcard__duty { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html.print-wallet .wcard ol, html.print-wallet .wcard ul { font-size: 9.5pt; }
  html.print-wallet .wcard__h { font-size: 12pt; }
  html.print-wallet .wcard__note { font-size: 7.5pt; }
}

/* ---------- 16. motion: respect the preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { transition: none; scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .m-pin__ring { animation: none; }
}

/* ======================================================================
   17. inner pages: situations, offices, team, fees, publications
   Everything below reuses the tokens above. Page-specific accents are scoped, never global.
   ====================================================================== */

/* ---------- 17.1 shared bits ---------- */
.verified { display: inline-flex; align-items: center; gap: .5em; padding: .42em 1em .42em .7em; border: 1.5px solid var(--acc); border-radius: 999px; background: var(--milk); color: var(--acc-ink); font: 600 var(--fs-micro)/1.3 var(--ff-b); margin: 0; }
.verified svg { width: 16px; height: 16px; flex: none; }
.phead__grid { display: grid; gap: var(--s6) var(--s7); }
@media (min-width: 960px) { .phead__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; } }
.phead__grid > * { min-width: 0; }
.phead__side { display: grid; gap: var(--s4); justify-items: start; align-content: end; }
.phead { position: relative; }
.phead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 21px; pointer-events: none; opacity: .9;
  background: linear-gradient(var(--acc), var(--acc)) 0 100% / 100% 3px no-repeat, repeating-linear-gradient(to bottom, transparent 0 4px, rgba(29, 27, 25, .1) 4px 5px) 0 0 / 100% 20px no-repeat; }
.phead .lead { max-width: 54ch; }
.phead__title { max-width: 16ch; }
.order { list-style: none; display: grid; width: 100%; max-width: 440px; border-top: 1px solid var(--line-2); }
.order li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-weight: 500; line-height: 1.3; }
.order b { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: var(--on-acc); font: 650 .875rem/1 var(--ff-d); }
.steps { list-style: none; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; display: grid; align-content: start; gap: 8px; padding: 20px 20px 18px; background: var(--milk); border: 1px solid var(--line-2); border-top: 3px solid var(--acc); border-radius: var(--r-m); }
.steps b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: var(--on-acc); font: 650 .95rem/1 var(--ff-d); }
.steps h3 { font-size: var(--fs-d4); }
.steps p { margin: 0; font-size: var(--fs-small); color: var(--ink-2); }
.steps .ref { justify-self: start; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1B19' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }

/* ---------- 17.2 situations ---------- */
.phead--sx { padding-bottom: clamp(36px, 5vw, 64px); }
.sx-wrap { display: block; padding-bottom: var(--section); }
.sx-wrap > * { min-width: 0; }
@media (min-width: 1180px) {
  .sx-wrap { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 0 clamp(32px, 4vw, 64px); align-items: start; }
  .sx-rail { position: sticky; top: calc(var(--hdr-h) + 24px); padding-top: clamp(36px, 5vw, 64px); }
}
.sx-rail__h { font: 600 .6875rem/1.3 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.sx-rail__list { list-style: none; display: grid; gap: 2px; position: relative; }
.sx-rail__list a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px 6px 10px; border-left: 3px solid transparent; border-radius: 0 var(--r-s) var(--r-s) 0; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: var(--fs-small); line-height: 1.25; transition: background-color .2s, color .2s, border-color .2s; }
.sx-rail__list a:hover { background: var(--acc-tint); color: var(--acc-ink); }
.sx-rail__list a[aria-current="true"] { background: var(--acc-tint); color: var(--acc-ink); border-left-color: var(--acc); font-weight: 600; }
.sx-rail__ico { width: 28px; height: 28px; flex: none; --ic2: var(--acc); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1179px) {
  html:has(.sx-wrap) { scroll-padding-top: calc(var(--hdr-h) + 76px); }
  .sx-rail { position: sticky; top: var(--hdr-h); z-index: 40; margin-inline: calc(var(--gutter) * -1); padding: 8px 0; background: rgba(252, 249, 245, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); }
  .sx-rail__h { display: none; }
  .sx-rail__list { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .sx-rail__list::-webkit-scrollbar { display: none; }
  .sx-rail__list li { flex: none; }
  .sx-rail__list a { min-height: 44px; padding: 4px 14px 4px 10px; border: 1.5px solid var(--line-2); border-radius: 999px; white-space: nowrap; background: var(--milk); }
  .sx-rail__ico { width: 24px; height: 24px; }
  .sx-rail__list a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--milk); --ic2: var(--saffron); }
}

.sx { container: sx / inline-size; padding-top: clamp(36px, 5vw, 64px); scroll-margin-top: calc(var(--hdr-h) + 12px); }
.sx + .sx { margin-top: clamp(40px, 6vw, 88px); border-top: 2px solid var(--ink); }
.sx__head { display: grid; grid-template-columns: 1fr; gap: 18px 24px; align-items: start; }
@container sx (min-width: 560px) { .sx__head { grid-template-columns: auto minmax(0, 1fr); } }
.sx__icobox { width: 72px; height: 72px; border-radius: 50%; background: var(--acc-tint); border: 1.5px solid var(--acc); display: grid; place-items: center; }
.sx__ico { width: 44px; height: 44px; --ic2: var(--acc); color: var(--ink); fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sx__head .kicker { margin-bottom: 10px; }
.sx__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s3); }
.sx__title { font-size: var(--fs-d1); max-width: 17ch; margin-bottom: var(--s4); }
.sx__head .lead { max-width: 58ch; }
.sx__terms { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s5); }
.term { display: grid; gap: 3px; align-content: start; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--milk); min-width: 148px; max-width: 290px; }
.term b { font: 650 1.3rem/1.1 var(--ff-d); letter-spacing: -.02em; color: var(--acc-ink); }
.term span { font-size: var(--fs-micro); color: var(--muted); line-height: 1.35; }
.term .ref { justify-self: start; margin-top: 4px; }
.sx__block { margin-top: clamp(32px, 4.4vw, 56px); }
.sx__h { display: flex; align-items: center; gap: 14px; font-size: var(--fs-d3); margin-bottom: var(--s4); }
.sx__n { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 2px solid var(--acc); color: var(--acc-ink); display: grid; place-items: center; font: 650 .9375rem/1 var(--ff-d); }
.sx__sub { color: var(--ink-2); max-width: 64ch; font-size: var(--fs-small); margin-bottom: var(--s5); }


/* heading levels inside a situation: block h3, stage h4, column labels h5 */
.stages__panel > h4 { font-size: var(--fs-d3); display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; }
.stages__panel > h4 .ref { font-size: .75rem; }
.stages__cols h5 { font: 600 .6875rem/1.3 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-variation-settings: normal; }
.factors h4 { font-size: var(--fs-d4); margin-bottom: var(--s4); }

/* 1. the dark checklist panel */
.sx__now { padding: clamp(20px, 3.4vw, 40px); border-radius: var(--r-l); }
.sx__now .sx__n { border-color: var(--saffron); color: var(--saffron); }
.sx__now .sx__h { margin-bottom: var(--s5); }
.sxn { display: grid; gap: clamp(24px, 3vw, 40px); }
@container sx (min-width: 840px) { .sxn { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); align-items: start; } .sxn__side { position: sticky; top: calc(var(--hdr-h) + 24px); } }
.sxn .ring { margin-top: var(--s4); }
.sxn__lead { color: var(--on-dark-muted); font-size: var(--fs-small); margin: 0; }

/* tool blocks (calculators, comparison, roles, queue, wallet) */
.sx__tool { padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line-2); border-radius: var(--r-l); background: var(--sand); }
.sx__tool .tool + .tool, .sx__tool .calc + .tool, .sx__tool .calc + .calc { margin-top: clamp(28px, 4vw, 44px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line-2); }
.calc__t { font-size: var(--fs-d3); margin-bottom: var(--s3); }
.calc__lead { color: var(--ink-2); max-width: 60ch; font-size: var(--fs-small); }
.calc__q { border: 0; padding: 0; margin: 0 0 var(--s4); min-width: 0; }
.calc__q legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: var(--fs-small); max-width: 62ch; }
.calc__f { max-width: 360px; }
.calc__row { display: grid; gap: 0 18px; }
@container sx (min-width: 640px) { .calc__row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } .calc__row .calc__f { max-width: none; } }
.calc__out { margin-top: var(--s4); padding: 16px 20px; border-radius: var(--r-m); background: var(--milk); border-left: 4px solid var(--acc); min-height: 60px; font-size: var(--fs-small); line-height: 1.55; }
.calc__out p { margin: 0 0 .6em; }
.calc__out p:last-child { margin-bottom: 0; }
.calc__big { display: block; font: 650 clamp(1.35rem, 3vw, 1.9rem)/1.15 var(--ff-d); letter-spacing: -.02em; color: var(--acc-ink); }
.calc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: var(--s4) 0 0; font-size: var(--fs-micro); color: var(--muted); line-height: 1.5; }
.calc__meta span { flex: 1 1 260px; }
.calc__out .btn { margin-top: 6px; }

.cmp-wrap { margin-top: var(--s3); }
.cmp { width: 100%; border-collapse: collapse; font-size: var(--fs-small); background: var(--milk); border-radius: var(--r-m); overflow: hidden; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.cmp thead th { background: var(--ink); color: var(--on-dark); font: 600 1rem/1.3 var(--ff-d); }
.cmp thead .ref { border-color: var(--line-dark); color: var(--on-dark-muted); margin-left: 6px; }
.cmp tbody th { width: 24%; font: 600 .9375rem/1.3 var(--ff-d); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
@container sx (max-width: 640px) {
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp tr { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  .cmp th, .cmp td { padding: 4px 16px; border: 0; width: auto !important; }
  .cmp td::before { content: attr(data-label); display: block; font: 600 .6875rem/1.3 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
}
.roles { display: grid; gap: 12px; margin-top: var(--s3); }
@container sx (min-width: 560px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container sx (min-width: 900px) { .roles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.role { display: grid; align-content: start; gap: 10px; padding: 18px; background: var(--milk); border: 1px solid var(--line-2); border-top: 3px solid var(--acc); border-radius: var(--r-m); }
.role h4 { font: 650 1.1rem/1.2 var(--ff-d); letter-spacing: -.01em; }
.role ul { list-style: none; display: grid; gap: 8px; font-size: var(--fs-small); }
.role li { position: relative; padding-left: 18px; line-height: 1.45; }
.role li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--acc); }
.role .ref { justify-self: start; align-self: end; }
.queue { list-style: none; margin-top: var(--s3); border-top: 2px solid var(--ink); counter-reset: q; }
.queue li { display: grid; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line-2); align-items: baseline; }
@container sx (min-width: 640px) { .queue li { grid-template-columns: 9.5rem minmax(0, 1fr) auto; } }
.queue b { font: 650 1.05rem/1.2 var(--ff-d); color: var(--acc-ink); }
.queue span { font-size: var(--fs-small); color: var(--ink-2); }
.queue .ref { justify-self: start; }
.queue__note { margin: var(--s4) 0 0; padding: 14px 18px; background: var(--milk); border-left: 4px solid var(--acc); border-radius: 0 var(--r-s) var(--r-s) 0; font-size: var(--fs-small); }
.tool--wallet .wallet__lbl { color: var(--muted); }
.tool--wallet .wcard { box-shadow: var(--shadow-1); border: 1px solid var(--line-2); }
.tool--wallet .wcards { grid-template-columns: 1fr; }
@container sx (min-width: 700px) { .tool--wallet .wcards { grid-template-columns: 1fr 1fr; } }
.tool--wallet .wallet__lbl::before { content: "Карточка для печати. "; font-weight: 600; }

/* 3. documents */
.docs2 { display: grid; gap: 24px; }
@container sx (min-width: 640px) { .docs2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
.docs2 h4 { font: 600 .6875rem/1.3 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-variation-settings: normal; }
.dlist { list-style: none; display: grid; border-top: 2px solid var(--ink); }
.dlist li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line-2); font-size: var(--fs-small); line-height: 1.45; }
.dlist li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 14px; height: 8px; border-left: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(-45deg) scale(.9); }
.dlist--l li::before { width: 10px; height: 10px; left: 4px; top: 1.2em; border: 2px solid var(--acc); border-radius: 50%; transform: none; }

/* 4. fees inside a situation */
.sx__fees .fees__notes { margin-bottom: var(--s5); }
.sx__fees .factors ul { grid-template-columns: 1fr; column-gap: 32px; }
@container sx (min-width: 660px) { .sx__fees .factors ul { grid-template-columns: 1fr 1fr; } }

/* 5. contacts */
.sx__contact { padding: clamp(20px, 3vw, 32px); background: var(--sand); border-radius: var(--r-l); }
.sx__cgrid { display: grid; gap: 22px 32px; }
@container sx (min-width: 760px) { .sx__cgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; } }
.sx__cprice { margin: 0 0 8px; font-size: var(--fs-lead); }
.sx__cprice b { font: 650 1.7rem/1 var(--ff-d); letter-spacing: -.02em; margin-inline: .2em; }
.sx__cbtns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.sx__cact .msgr { margin-bottom: 8px; }
.sx__cact .note { margin: 0; }
.sx-end__in { display: grid; gap: 24px 48px; align-items: end; }
@media (min-width: 900px) { .sx-end__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.sx-end__act { display: grid; gap: 14px; justify-items: start; }
.sx-end__act .note { margin: 0; }
.sx-end .sec-head__title { max-width: 20ch; }

/* print: the wallet card alone, also from the situations page */
@media print {
  html.print-wallet #now.sx-wrap { display: block !important; padding: 0 !important; background: #fff !important; }
  html.print-wallet #now.sx-wrap :not(.wallet):not(.wallet *):not(:has(.wallet)) { display: none !important; }
  html.print-wallet #now.sx-wrap .sx-list, html.print-wallet #now.sx-wrap .sx, html.print-wallet #now.sx-wrap .sx__block, html.print-wallet #now.sx-wrap .sx__tool, html.print-wallet #now.sx-wrap .tool { display: block !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: #fff !important; container-type: normal; }
  html.print-wallet .tool--wallet .wcards { grid-template-columns: 1fr !important; }
  html.print-wallet [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
}

/* ---------- 17.3 offices ---------- */
.phead--of { padding-bottom: clamp(48px, 6vw, 80px); }
.ostops { list-style: none; display: grid; gap: 12px; margin-top: var(--s6); }
@media (min-width: 760px) { .ostops { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ostop { --acc: var(--c); position: relative; display: grid; gap: 3px; padding: 16px 18px 16px 26px; background: var(--milk); border: 1px solid var(--line-2); border-radius: var(--r-m); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-1); transition: transform .25s var(--ease), border-color .2s; }
.ostop::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--c); border-radius: var(--r-m) 0 0 var(--r-m); }
.ostop:hover { transform: translateY(-2px); border-color: var(--c); color: var(--ink); }
.ostop__n { font: 600 .6875rem/1.3 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.ostop__name { font: 650 1.7rem/1.1 var(--ff-d); letter-spacing: -.02em; }
.ostop__addr { font-size: var(--fs-small); color: var(--ink-2); }
.ostop .status { margin-top: 8px; font-size: var(--fs-small); }
.ostop .status.is-open::before { background: var(--c); }

.ofline { position: relative; }
.ofsec { padding-block: var(--section); position: relative; }
.ofsec--sand { background: var(--sand); }
.ofsec[data-ofsec="tver"] { --acc: #0E5E63; --acc-ink: #0A4549; --acc-tint: #E1EDEA; --acc-soft: #B5D3CF; }
.ofsec[data-ofsec="moscow"] { --acc: #3B3F96; --acc-ink: #2B2E72; --acc-tint: #E8E9F6; --acc-soft: #C1C4E6; }
.ofsec[data-ofsec="yaroslavl"] { --acc: #9A4526; --acc-ink: #76331A; --acc-tint: #F6E7DD; --acc-soft: #E5BFA9; }
.ofsec__head { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(24px, 3.6vw, 44px); }
.ofsec__head .kicker { margin-bottom: 6px; }
.ofsec__stop { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--acc); color: var(--on-acc); display: grid; place-items: center; font: 700 1.1rem/1 var(--ff-d); box-shadow: 0 0 0 6px var(--acc-soft); position: relative; z-index: 1; }
.ofsec__city { font-size: var(--fs-mega); font-weight: 650; letter-spacing: -.035em; line-height: 1; }
.ofsec__mine { display: none; margin-left: 12px; padding: .22em .75em; border-radius: 999px; background: var(--ink); color: var(--milk); font: 600 .6875rem/1.4 var(--ff-b); letter-spacing: .06em; text-transform: uppercase; }
html[data-office="tver"] [data-ofsec="tver"] .ofsec__mine, html[data-office="moscow"] [data-ofsec="moscow"] .ofsec__mine, html[data-office="yaroslavl"] [data-ofsec="yaroslavl"] .ofsec__mine { display: inline-block; }
.ofsec__grid { display: grid; gap: clamp(24px, 3.6vw, 48px); }
@media (min-width: 1000px) { .ofsec__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } .ofsec--flip .ofsec__info { order: 2; } }
.ofsec__grid > *, .ofsec__low > * { min-width: 0; }
.ofsec__vis { display: grid; gap: var(--s5); }
.ofsec__vis .oreq { margin-top: 0; }
.ofsec .ocard { border-top-color: var(--acc); }
.ofsec__low { display: grid; gap: clamp(24px, 3.6vw, 48px); margin-top: clamp(32px, 5vw, 64px); }
@media (min-width: 1000px) { .ofsec__low { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; } }
.ofsec__fig { max-width: 420px; }
.ofsec .ocard dl { margin-top: 0; }
.how { list-style: none; display: grid; }
.how li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); line-height: 1.5; }
.how li:last-child { border-bottom: 0; padding-bottom: 0; }
.how li:first-child { padding-top: 0; }
.how b { display: block; font: 600 .6875rem/1.4 var(--ff-b); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hrs { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.hrs th, .hrs td { padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 500; text-align: left; }
.hrs td { text-align: right; font-variant-numeric: tabular-nums; }
.hrs .is-off td, .hrs .is-off th { color: var(--muted); }
.hrs tr.is-today th, .hrs tr.is-today td { font-weight: 700; color: var(--acc-ink); background: var(--acc-tint); border-bottom-color: transparent; }
.hrs tr.is-today th { padding-left: 10px; border-radius: 8px 0 0 8px; }
.hrs tr.is-today td { padding-right: 10px; border-radius: 0 8px 8px 0; }
.hrs tr.is-today th::after { content: " · сегодня"; font-weight: 500; }
.hrs__note { margin: 8px 0 0; font-size: var(--fs-micro); color: var(--muted); }
.ofsec .ocard dd .msgr { margin-top: 2px; }
@media (min-width: 1100px) {
  .ofsec > .wrap { position: relative; padding-left: calc(var(--gutter) + 76px); }
  .ofsec > .wrap::before { content: ""; position: absolute; left: calc(var(--gutter) + 21px); top: calc(var(--section) * -1); bottom: calc(var(--section) * -1); width: 4px; background: var(--acc); opacity: .9; }
  .ofsec:first-child > .wrap::before { top: 57px; }
  .ofsec:last-child > .wrap::before { bottom: auto; height: calc(var(--section) + 57px); }
  .ofsec__stop { position: absolute; left: var(--gutter); top: 34px; }
}
.same { display: grid; gap: 20px; margin: clamp(28px, 4vw, 48px) 0; padding-top: clamp(24px, 3vw, 36px); border-top: 2px solid var(--ink); }
@media (min-width: 800px) { .same { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.same h3 { font-size: var(--fs-d4); margin-bottom: 8px; }
.same p { font-size: var(--fs-small); color: var(--ink-2); margin-bottom: 8px; }
.same .link { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- 17.4 team ---------- */
.tstats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 480px; }
.tstats li { display: grid; gap: 2px; padding: 14px 16px; background: var(--milk); border: 1px solid var(--line-2); border-radius: var(--r-m); border-top: 3px solid var(--acc); }
.tstats b { font: 650 2.2rem/1 var(--ff-d); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tstats span { font-size: var(--fs-micro); color: var(--muted); line-height: 1.3; }
.dir__bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 44px; padding: 14px 0 18px; border-bottom: 1px solid var(--line-2); }
.dir__count { flex: 1 1 100%; }
.dir__f { border: 0; padding: 0; margin: 0; min-width: 0; }
.dir__f legend { padding: 0; margin-bottom: 8px; font: 600 .6875rem/1.3 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.dir__f .chip > span i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.dir__f .chip input:checked + span i { box-shadow: 0 0 0 2px var(--acc), 0 0 0 3px #fff; }
.dir__count { margin: 0; font-size: var(--fs-small); color: var(--ink-2); font-weight: 500; }
.dir__mine { margin: 12px 0 0; }
.dir__empty { margin: var(--s5) 0 0; padding: 16px 20px; background: var(--sand); border-radius: var(--r-m); }
.advs--dir { margin-top: var(--s4); }
.adv--full { grid-template-columns: auto minmax(0, 1fr); gap: 14px 20px; padding: 28px 0; scroll-margin-top: calc(var(--hdr-h) + 24px); }
@media (min-width: 900px) { .adv--full { grid-template-columns: auto minmax(0, 1fr) 220px; gap: 12px 32px; } }
.adv--full .adv__mono { grid-row: auto; width: 72px; height: 72px; font-size: 1.4rem; }
.adv--full .adv__name { font-size: var(--fs-d3); }
.adv__role { margin: 4px 0 0; color: var(--ink-2); font-size: var(--fs-small); }
.adv__main { min-width: 0; grid-column: 2 / -1; }
@media (min-width: 900px) { .adv__main { grid-column: auto; } }
.adv__facts { display: grid; gap: 0 28px; margin: 14px 0; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .adv__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.adv__facts > div { display: grid; gap: 1px 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 400px) { .adv__facts > div { grid-template-columns: 7.2rem minmax(0, 1fr); } }
.adv__facts dt { font: 600 .6875rem/1.5 var(--ff-b); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.adv__facts dd { margin: 0; font-size: var(--fs-small); line-height: 1.45; }
.adv__tags .tag--mine { background: var(--ink); color: var(--milk); }
.adv__cats { margin-top: 12px; }
.adv__cats summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--acc-ink); font-size: var(--fs-small); }
.adv__cats .cats { margin-top: 0; }
.adv__side { grid-column: 2 / -1; display: grid; gap: 10px; align-content: start; justify-items: start; }
@media (min-width: 900px) { .adv__side { grid-column: auto; } }
.adv__side .note { margin: 0; }
.ofsec--sand .adv__tags .tag { background: var(--milk); }
.adv:target { background: linear-gradient(90deg, var(--acc-tint), transparent 70%); }

/* ---------- 17.5 fees ---------- */
.rules { list-style: none; display: grid; width: 100%; max-width: 460px; border-top: 1px solid var(--line-2); }
.rules li { display: grid; gap: 1px 14px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: var(--fs-small); color: var(--ink-2); }
@media (min-width: 480px) { .rules li { grid-template-columns: 7rem minmax(0, 1fr); align-items: baseline; } }
.rules b { font: 650 1.15rem/1.2 var(--ff-d); color: var(--ink); letter-spacing: -.01em; }
.fnav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: var(--s6); }
.fnav__links { display: flex; flex-wrap: wrap; gap: 8px; }
.fnav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1em; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--milk); color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--fs-small); transition: border-color .2s, background-color .2s; }
.fnav__links a:hover { border-color: var(--acc); background: var(--acc-tint); color: var(--ink); }
.fgroup { scroll-margin-top: calc(var(--hdr-h) + 20px); margin-bottom: clamp(36px, 5vw, 64px); }
.fgroup__h { display: grid; gap: 4px 24px; margin-bottom: var(--s4); }
@media (min-width: 800px) { .fgroup__h { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; } }
.fgroup__h h3 { font-size: var(--fs-d2); }
.fgroup__h p { margin: 0; color: var(--ink-2); font-size: var(--fs-small); }
.fmx { width: 100%; border-collapse: collapse; background: var(--milk); border: 1px solid var(--line-2); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-1); }
.fmx th, .fmx td { text-align: left; vertical-align: top; padding: 18px 16px; border-bottom: 1px solid var(--line); transition: background-color .5s; }
.fmx thead th { padding-block: 14px; font: 600 .6875rem/1.3 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.fmx thead th i { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--c); }
.fmx tbody th { width: 38%; }
.fmx tbody th b { display: block; font: 600 1.08rem/1.25 var(--ff-d); letter-spacing: -.01em; margin-bottom: 4px; }
.fmx tbody th span { display: block; font: 400 var(--fs-small)/1.45 var(--ff-b); color: var(--ink-2); }
.fmx tr:last-child th, .fmx tr:last-child td { border-bottom: 0; }
.fmx__v { display: block; font: 650 1.25rem/1.15 var(--ff-d); letter-spacing: -.02em; white-space: nowrap; }
.fmx__bar { display: block; height: 6px; margin-top: 10px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.fmx__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c); border-radius: 3px; }
html[data-office="tver"] .fmx [data-col="tver"], html[data-office="moscow"] .fmx [data-col="moscow"], html[data-office="yaroslavl"] .fmx [data-col="yaroslavl"] { background: var(--acc-tint); }
@media (max-width: 759px) {
  .fmx, .fmx tbody, .fmx tr, .fmx th, .fmx td { display: block; }
  .fmx thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fmx tr { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
  .fmx tr:last-child { border-bottom: 0; }
  .fmx th, .fmx td { border: 0; width: auto !important; padding: 4px 16px; }
  .fmx tbody th { padding-bottom: 8px; }
  .fmx td { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding-block: 8px; }
  .fmx td::before { content: attr(data-label); font-weight: 500; font-size: var(--fs-small); color: var(--ink-2); }
  .fmx__bar { flex: 0 0 100%; margin-top: 4px; }
}
.factors3 { display: grid; gap: 14px; }
@media (min-width: 900px) { .factors3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.factors3 .factors { padding: clamp(20px, 2.4vw, 28px); }
.notinc { margin-top: clamp(28px, 4vw, 44px); padding-top: var(--s5); border-top: 2px solid var(--ink); display: grid; gap: 14px 40px; }
@media (min-width: 900px) { .notinc { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.notinc h3 { font-size: var(--fs-d3); }
.notinc ul { list-style: none; display: grid; }
.notinc li { position: relative; padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line-2); font-size: var(--fs-small); }
.notinc li::before { content: ""; position: absolute; left: 4px; top: 1.15em; width: 10px; height: 2px; background: var(--acc); }
.pay { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 960px) { .pay { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.pay .sec-head__title { max-width: 18ch; margin-bottom: var(--s4); }
.pay__list { list-style: none; display: grid; margin-top: var(--s5); border-top: 1px solid var(--line-dark); }
.pay__list li { position: relative; padding: 13px 0 13px 32px; border-bottom: 1px solid var(--line-dark); font-size: var(--fs-small); color: var(--on-dark-muted); }
.pay__list li::before { content: ""; position: absolute; left: 3px; top: 1.2em; width: 14px; height: 8px; border-left: 2px solid var(--saffron); border-bottom: 2px solid var(--saffron); transform: rotate(-45deg) scale(.9); }
.faq__grid { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 1000px) { .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; } .faq__grid > div:first-child { position: sticky; top: calc(var(--hdr-h) + 24px); } }
.faq__grid > * { min-width: 0; }
.faq__act { display: grid; gap: 14px; justify-items: start; margin-top: var(--s5); }
.faq__act .note { margin: 0; }
.faq { border-top: 2px solid var(--ink); }
.faq__i { border-bottom: 1px solid var(--line-2); }
.faq__i summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font: 600 var(--fs-d4)/1.25 var(--ff-d); letter-spacing: -.01em; }
.faq__i summary::-webkit-details-marker { display: none; }
.faq__i summary svg { width: 22px; height: 22px; flex: none; transition: transform .3s var(--ease); color: var(--acc); }
.faq__i[open] summary svg { transform: rotate(180deg); }
.faq__i p { margin: 0 0 18px; max-width: 62ch; color: var(--ink-2); font-size: var(--fs-small); }

/* ---------- 17.6 publications ---------- */
.phead--pub .phead__grid { align-items: center; }
.pub__fig { max-width: 560px; }
@media (min-width: 960px) { .phead--pub .phead__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } .pub__fig { justify-self: end; } }
.guides { list-style: none; border-top: 2px solid var(--ink); margin-top: var(--s4); }
.guide { border-bottom: 1px solid var(--line-2); scroll-margin-top: calc(var(--hdr-h) + 20px); }
.guide[hidden] { display: none; }
.guide { --gno: clamp(2.7rem, 5.4vw, 3.7rem); }
.guide__sum { display: grid; grid-template-columns: var(--gno) minmax(0, 1fr) auto; column-gap: 18px; row-gap: 6px; padding: 22px 0; cursor: pointer; list-style: none; align-items: start; min-height: 44px; }
.guide__sum::-webkit-details-marker { display: none; }
.guide__no { grid-column: 1; grid-row: 1 / span 3; font: 650 clamp(1.6rem, 3.4vw, 2.5rem)/1 var(--ff-d); color: var(--acc); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.guide__t { grid-column: 2; grid-row: 1; margin: 0; font: 600 var(--fs-d3)/1.15 var(--ff-d); letter-spacing: -.02em; transition: color .2s; }
.guide__sum:hover .guide__t { color: var(--acc-ink); }
.guide__lead { grid-column: 2; grid-row: 2; display: block; color: var(--ink-2); max-width: 62ch; font-size: var(--fs-small); }
.guide__meta { grid-column: 2; grid-row: 3; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-micro); color: var(--muted); }
.guide__chev { grid-column: 3; grid-row: 1; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: transform .3s var(--ease), background-color .2s, border-color .2s; }
.guide__chev svg { width: 18px; height: 18px; }
.guide__d[open] .guide__chev { transform: rotate(180deg); background: var(--acc); border-color: var(--acc); color: #fff; }
@media (min-width: 900px) { .guide__sum { grid-template-columns: var(--gno) minmax(0, 1fr) 150px auto; } .guide__meta { grid-column: 3; grid-row: 1 / span 2; flex-direction: column; align-items: flex-end; text-align: right; } .guide__chev { grid-column: 4; grid-row: 1 / span 2; } }
.guide__body { display: grid; gap: 28px; padding: 4px 0 40px; }
@media (min-width: 900px) { .guide__body { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-left: calc(var(--gno) + 18px); } }
.guide__text h4 { font: 600 var(--fs-d4)/1.2 var(--ff-d); letter-spacing: -.01em; margin: 1.5em 0 .5em; }
.guide__text h4:first-child { margin-top: 0; }
.guide__text p { max-width: 64ch; color: var(--ink-2); }
.guide__aside { align-self: start; display: grid; gap: 10px; padding: 20px; background: var(--sand); border-top: 3px solid var(--acc); border-radius: var(--r-l); }
.guide__aside h5 { margin: 6px 0 0; font: 600 .6875rem/1.3 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.guide__aside h5:first-child { margin-top: 0; }
.guide__aside p { margin: 0; font-size: var(--fs-small); line-height: 1.45; }
.guide__aside .note { margin-top: 6px; }
.guide__aside a { color: var(--acc-ink); }
.guide__refs { display: flex; flex-wrap: wrap; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
  .guide__chev, .faq__i summary svg, .ostop { transition: none; }
}

/* ======================================================================
   18. The fifth line as the shared system (header ride, station signs, footer stave)
   ====================================================================== */
/* header: a thin line under it fills as the page is read; the «5» badge rides on it (built by app.js: initTrip) */
.trip { position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--line-2); pointer-events: none; }
.trip__fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: var(--acc); }
.trip__dot { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--milk); border: 2px solid var(--line-2); transition: border-color .3s, background-color .3s; }
.trip__dot.is-past { border-color: var(--acc); background: var(--acc); }
.trip__train { position: absolute; top: 50%; left: calc(11px + var(--p, 0) * (100% - 22px)); width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--acc); color: var(--on-acc); display: grid; place-items: center; font: 700 .6875rem/1 var(--ff-d); font-style: normal; box-shadow: 0 0 0 3px var(--milk); }

/* station sign: replaces the plain kicker above each section of the home page */
.stn { display: flex; align-items: center; gap: .8em; max-width: 30rem; margin: 0 0 var(--s4); font: 600 var(--fs-micro)/1.3 var(--ff-b); letter-spacing: .09em; text-transform: uppercase; color: var(--acc-ink); }
.stn__no { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid var(--acc); background: var(--milk); color: var(--ink); font: 700 .75rem/1 var(--ff-d); font-style: normal; letter-spacing: 0; }
.stn::after { content: ""; flex: 1 1 24px; height: 2px; border-radius: 2px; background: var(--acc); opacity: .45; }
.section--ink .stn { color: var(--saffron); }
.section--ink .stn__no { background: var(--ink); border-color: var(--saffron); color: var(--on-dark); }
.section--ink .stn::after { background: var(--saffron); }
.section--sand .req { background: var(--milk); }

/* footer: the stave of the logo, running to the terminal dot */
.ftr { position: relative; padding-top: clamp(100px, 10vw, 148px); }
.ftr::before { content: ""; position: absolute; left: 0; right: 0; top: clamp(32px, 4.4vw, 56px); height: 54px; pointer-events: none;
  background:
    linear-gradient(rgba(252, 249, 245, .16), rgba(252, 249, 245, .16)) 0 1px / 100% 1px no-repeat,
    linear-gradient(rgba(252, 249, 245, .16), rgba(252, 249, 245, .16)) 0 13px / 100% 1px no-repeat,
    linear-gradient(rgba(252, 249, 245, .16), rgba(252, 249, 245, .16)) 0 25px / 100% 1px no-repeat,
    linear-gradient(rgba(252, 249, 245, .16), rgba(252, 249, 245, .16)) 0 37px / 100% 1px no-repeat,
    linear-gradient(var(--acc-soft), var(--acc-soft)) 0 48px / calc(100% - var(--gutter) - 20px) 3px no-repeat,
    radial-gradient(circle 7px at calc(100% - var(--gutter) - 7px) 49.5px, var(--acc-soft) 0 98%, transparent 100%) 0 0 / 100% 100% no-repeat; }
