:root {
  --bg: #184a74;
  --bg-deep: #123b60;
  --bg-edge: #0f3354;
  --ink: #eaf5ff;
  --ink-2: #a9c6e2;
  --ink-3: #7fa3c6;
  --line: #e3f4ff;
  --glow: #7cc7ff;
  --amber: #ffc56b;
  --card: rgba(14, 44, 72, 0.62);
  --card-line: rgba(170, 215, 255, 0.2);
  --grid: rgba(170, 215, 255, 0.055);
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --card-w: min(430px, 36vw);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  overflow-x: hidden;
}
/* синька: фон и сетка неподвижны, всё рисуется поверх */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(120% 90% at 50% 40%, var(--bg) 0%, var(--bg-deep) 60%, var(--bg-edge) 100%);
}
body.is-loading { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(255, 197, 107, 0.35); }

/* ——— загрузка ——— */
.loader {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  pointer-events: none;
  transition: opacity 0.8s ease;
}
.loader__status {
  display: flex; gap: 12px; align-items: center;
  font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.loader__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: blink 1s steps(2) infinite; }
.loader__pct { color: var(--ink); min-width: 4ch; }
@keyframes blink { 50% { opacity: 0.2; } }
body:not(.is-loading) .loader { opacity: 0; }

/* ——— шапка ——— */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  transition: opacity 0.6s ease 0.4s, background 0.3s;
}
body.is-loading .top { opacity: 0; }
.top.is-solid { background: linear-gradient(rgba(16, 52, 84, 0.85), rgba(16, 52, 84, 0)); }
.mono {
  font: 700 15px/1 var(--mono); letter-spacing: 0.08em; text-decoration: none;
  border: 1.5px solid var(--line); padding: 7px 8px; border-radius: 3px;
  box-shadow: 0 0 10px rgba(124, 199, 255, 0.18);
}
.mono-text { font: 500 12px/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.top__nav { display: flex; gap: 26px; font-size: 14px; }
.top__nav a { text-decoration: none; color: var(--ink-2); transition: color 0.2s; }
.top__nav a:hover { color: var(--ink); }
.top__right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--card-line); border-radius: 999px; padding: 2px; }
.lang button { background: none; border: 0; padding: 5px 10px; border-radius: 999px; font: 600 12px/1 var(--mono); color: var(--ink-3); cursor: pointer; }
.lang button[aria-pressed="true"] { background: rgba(227, 244, 255, 0.14); color: var(--ink); }
.top__in {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 4px;
  font: 700 14px/1 var(--sans); text-decoration: none; background: rgba(227, 244, 255, 0.12);
}

/* ——— первый экран ——— */
.hero {
  position: relative; min-height: 100svh; min-height: 100dvh;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 24px;
  padding: 90px var(--gutter) 70px;
  max-width: 1440px; margin: 0 auto;
}
.hero__text { position: relative; z-index: 2; }
.hero__text > * { transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2, .7, .2, 1); }
body.is-loading .hero__text > * { opacity: 0; transform: translateY(16px); }
.hero__text > :nth-child(2) { transition-delay: 0.08s; }
.hero__text > :nth-child(3) { transition-delay: 0.16s; }
.hero__text > :nth-child(4) { transition-delay: 0.24s; }
.kicker { font: 600 12px/1.2 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin: 0 0 18px; }
.hero__name { font-weight: 800; font-size: clamp(46px, 7.4vw, 112px); line-height: 0.95; letter-spacing: -0.03em; margin: 0 0 26px; }
.hero__name span { display: block; }
.hero__name span:last-child { font-weight: 300; letter-spacing: -0.02em; color: var(--ink); }
.hero__lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); max-width: 34em; margin: 0 0 34px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; gap: clamp(20px, 3.5vw, 48px); }
.hero__facts b { display: block; font: 700 clamp(30px, 3.2vw, 44px)/1 var(--sans); color: var(--ink); }
.hero__facts span { font-size: 13px; color: var(--ink-3); }
.hero__portrait { position: relative; display: flex; justify-content: center; align-items: center; }
#portrait {
  width: min(100%, 520px); aspect-ratio: 446 / 500; height: auto;
  transform-origin: 0 0; will-change: transform;
  filter: drop-shadow(0 0 14px rgba(124, 199, 255, 0.22));
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; text-align: center;
  font: 500 20px/1 var(--hand); color: var(--ink-2); white-space: nowrap;
  transition: opacity 0.6s ease 0.8s;
}
.hero__scroll::after { content: ""; display: block; width: 1px; height: 26px; margin: 10px auto 0; background: linear-gradient(var(--line), transparent); animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
body.is-loading .hero__scroll { opacity: 0; }

/* ——— сцена с картой ——— */
.story { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; } /* dvh: без полосы под адресной строкой телефона */
#map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.cards { position: absolute; inset: 0; pointer-events: none; }
.card {
  position: absolute; right: var(--gutter); top: 50%;
  width: var(--card-w);
  padding: 26px 28px 24px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 6px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(5, 20, 40, 0.35);
  opacity: 0; transform: translateY(-50%);
  will-change: opacity, transform;
}
.card.is-on { pointer-events: auto; }
.card__kicker { display: flex; justify-content: space-between; gap: 12px; font: 600 11.5px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); margin: 0 0 10px; }
.card__kicker span:last-child { color: var(--ink-3); text-align: right; }
.card h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 8px; }
.card__tech { display: inline-block; font: 500 12px/1 var(--mono); color: var(--ink-2); border: 1px solid var(--card-line); border-radius: 999px; padding: 5px 10px; margin-bottom: 14px; }
.card__role { font-weight: 700; font-size: 15.5px; margin: 0 0 12px; color: var(--ink); }
.card ul { margin: 0 0 14px; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 18px; margin: 0 0 7px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.card li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 1.5px; background: var(--glow); box-shadow: 0 0 6px var(--glow); }
.card__note { font: 600 21px/1.15 var(--hand); color: var(--ink); margin: 0; }
.card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 2px 0 16px; }
.card__stats div { border-top: 1px solid var(--card-line); padding-top: 8px; }
.card__stats b { display: block; font: 800 24px/1 var(--sans); color: var(--ink); white-space: nowrap; }
.card__stats b small { font-size: 13px; font-weight: 700; color: var(--amber); margin-left: 2px; }
.card__stats span { display: block; font-size: 11.5px; line-height: 1.3; color: var(--ink-3); margin-top: 5px; }
.card__line { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.3; font-weight: 600; color: var(--ink); margin: 4px 0 16px; }
.card--main { --card-w: min(470px, 38vw); width: var(--card-w); }
.card--main h2 { font-size: clamp(34px, 3.4vw, 48px); }
.stats { display: grid; gap: 14px; margin: 14px 0 18px; }
.stats div { display: grid; grid-template-columns: 1fr; gap: 4px; border-top: 1px solid var(--card-line); padding-top: 12px; }
.stats b { font: 800 clamp(28px, 2.6vw, 40px)/1.05 var(--sans); color: var(--amber); text-shadow: 0 0 18px rgba(255, 197, 107, 0.35); white-space: nowrap; }
.stats span { font-size: 14.5px; color: var(--ink-2); line-height: 1.35; }
.card--intro h2 { font-size: clamp(30px, 3vw, 44px); }
.card--intro p { color: var(--ink-2); margin: 0; }

.rail { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rail li { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 5px 0; font: 500 12px/1 var(--mono); color: var(--ink-3); transition: color 0.3s; }
.rail li i { width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 50%; transition: all 0.3s; }
.rail li.is-done { color: var(--ink-2); }
.rail li.is-on { color: var(--amber); }
.rail li.is-on i { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.rail li span { opacity: 0; transform: translateX(-4px); transition: all 0.3s; }
.rail:hover li span, .rail li.is-on span { opacity: 1; transform: none; }

.coords { position: absolute; left: var(--gutter); bottom: 22px; font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; color: var(--ink-3); white-space: pre; }

/* ——— разделы ниже ——— */
/* пауза после истории: карандашная линия через весь лист */
.rule { position: relative; max-width: 1240px; margin: clamp(60px, 10vh, 120px) auto 0; padding: 0 var(--gutter); height: 24px; }
.rule svg { width: 100%; height: 24px; overflow: visible; display: block; }
.rule svg path { fill: none; stroke: var(--line); stroke-width: 1.2; stroke-linecap: round; opacity: 0.55; filter: url(#boil); }
.rule__dot { position: absolute; left: 50%; top: 12px; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); opacity: 0; transition: opacity 0.6s ease 1.4s; }
.rule .draw.is-in + .rule__dot { opacity: 1; }

.how, .contact { max-width: 1240px; margin: 0 auto; padding: clamp(60px, 9vh, 110px) var(--gutter) 40px; }
.section-title { font-size: clamp(30px, 3.6vw, 50px); letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 clamp(36px, 5vh, 64px); max-width: 16em; }
.how .kicker { margin-bottom: 14px; }
.how__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.how__item { position: relative; border-top: 1px solid var(--card-line); padding: 22px 0 0; }
.how__item::before { content: ""; position: absolute; left: 0; top: -1px; width: 34px; height: 1px; background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.how__n { display: block; font: 500 12px/1 var(--mono); letter-spacing: 0.14em; color: var(--amber); margin-bottom: 26px; }
.how__item svg { position: absolute; right: 0; top: 18px; width: 44px; height: 44px; overflow: visible; opacity: 0.85; }
.how__item svg * { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: url(#boil); }
.how__item svg .a { stroke: var(--amber); }
.how__item h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.015em; margin: 0 0 12px; padding-right: 56px; }
.how__item p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 24em; }
.draw path, .draw circle, .draw rect, .draw line, .draw polyline { stroke-dasharray: var(--len, 300); stroke-dashoffset: var(--len, 300); transition: stroke-dashoffset 1.6s cubic-bezier(.4, .1, .2, 1); }
.draw.is-in path, .draw.is-in circle, .draw.is-in rect, .draw.is-in line, .draw.is-in polyline { stroke-dashoffset: 0; }

.profile__list { margin: 0; display: grid; grid-template-columns: 220px 1fr; border-top: 1px solid var(--card-line); }
.profile__list dt, .profile__list dd { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--card-line); }
.profile__list dt { font: 600 12px/1.6 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding-top: 21px; }
.profile__list dd { white-space: pre-line; color: var(--ink); }

.contact { text-align: center; padding-top: clamp(90px, 14vh, 160px); padding-bottom: 60px; }
/* личная строка — рукописная заметка на полях чертежа */
.contact__quote { margin: 0 auto clamp(70px, 11vh, 130px); max-width: 30em; }
.contact__quote blockquote { margin: 0 0 14px; font: 500 clamp(26px, 2.6vw, 36px)/1.3 var(--hand); color: var(--ink); }
.contact__quote blockquote::before { content: "“"; color: var(--amber); }
.contact__quote blockquote::after { content: "”"; color: var(--amber); }
.contact__quote figcaption { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.contact__quote figcaption::before { content: "— "; color: var(--amber); }
.contact__title { font-size: clamp(44px, 6.4vw, 96px); letter-spacing: -0.035em; line-height: 1; margin: 0 0 16px; }
.contact__text { color: var(--ink-2); font-size: clamp(16px, 1.3vw, 19px); max-width: 32em; margin: 0 auto 34px; }
.contact__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 13px 22px; border-radius: 4px; font-weight: 700; font-size: 15px;
  border: 1.5px solid var(--line); box-shadow: 0 0 10px rgba(124, 199, 255, 0.14);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--line); color: var(--bg-deep); }
.btn--amber { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 10px rgba(255, 197, 107, 0.16); }
.btn--amber:hover { background: var(--amber); color: var(--bg-deep); }
.btn--mail { font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.01em; border: 0; box-shadow: none; padding: 6px 4px; border-bottom: 1.5px solid var(--amber); border-radius: 0; }
.btn--mail:hover { background: none; color: var(--amber); }
.contact__where { margin: 0 0 clamp(60px, 9vh, 100px); }
.contact__made { font: 500 12px/1.6 var(--mono); color: var(--ink-3); max-width: 44em; margin: 0 auto; }

/* ——— телефон ——— */
@media (max-width: 860px) {
  :root { --card-w: auto; }
  .top__nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 74px; gap: 0; align-content: start; }
  .hero__portrait { order: -1; margin: 0 auto -4%; width: min(78vw, 360px); }
  .hero__facts b { font-size: 28px; }
  .hero__lead { margin-bottom: 26px; }
  /* телефон: текст сверху без рамки, рисунок под ним на весь низ экрана */
  .card { left: 16px; right: 16px; top: 64px; bottom: auto; transform: none; padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; max-height: none; overflow: visible; width: auto; }
  .card--intro { top: 76px; }
  .card h2 { font-size: clamp(36px, 11vw, 48px); margin-bottom: 8px; }
  .card--main { width: auto; }
  .card--main h2 { font-size: clamp(36px, 11vw, 48px); }
  .card__line { font-size: clamp(20px, 5.8vw, 24px); line-height: 1.25; margin: 2px 0 14px; }
  .stats { gap: 12px; margin: 8px 0 10px; }
  .stats div { padding-top: 7px; }
  .stats b { font-size: 34px; }
  .stats span { font-size: 15px; }
  .card__tech { margin-bottom: 8px; }
  .card__role { font-size: 14px; margin-bottom: 8px; }
  .card li { font-size: 16px; margin-bottom: 7px; line-height: 1.4; padding-left: 20px; }
  .card__kicker { font-size: 13px; }
  .card--intro p { font-size: 18px; }
  .card__note { font-size: 18px; }
  .card__stats b { font-size: 20px; }
  .rule { margin-top: 20px; }
  .how__grid { grid-template-columns: 1fr; gap: 26px; }
  .how__n { margin-bottom: 14px; }
  .rail { display: none; }
  .rail li { padding: 4px 0; }
  .rail li span { display: none; }
  .coords { display: none; }
  .profile__list { grid-template-columns: 1fr; }
  .profile__list dt { border-bottom: 0; padding-bottom: 0; }
}

/* ——— редизайн: заимствования из Through line ——— */
/* полоса прогресса */
.prog { position: fixed; left: 0; top: 0; z-index: 35; width: 100%; height: 2px; background: var(--amber); opacity: 0.75; transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* «Профиль» в шапке и «сразу к итогам» на первом экране */
.top__profile {
  background: none; border: 1px solid var(--card-line); border-radius: 3px; cursor: pointer;
  font: 600 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
  padding: 8px 12px; transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.top__profile:hover { border-color: var(--amber); color: var(--amber); }
.hero__skip {
  display: block; margin: 8px auto 0; background: none; border: 0; cursor: pointer; padding: 4px 2px;
  font: 600 11px/1.2 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid rgba(255, 197, 107, 0.5);
}
.hero__skip:hover { color: var(--amber); }

/* шкала масштаба внизу сцены */
.hud {
  position: absolute; left: calc(var(--gutter) + 230px); right: var(--gutter); bottom: 24px;
  display: flex; align-items: flex-end; gap: 22px; opacity: 0; pointer-events: auto;
}
.hud__t { font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; padding-bottom: 2px; }
.hud ol { flex: 1; list-style: none; margin: 0; padding: 14px 0 0; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--card-line); }
.hud li { position: relative; cursor: pointer; font-size: 13px; line-height: 1.25; color: var(--ink-3); transition: color 0.4s; max-width: 11em; }
.hud li b { display: block; font: 500 10.5px/1 var(--mono); letter-spacing: 0.1em; margin-bottom: 5px; color: inherit; }
.hud li::before { content: ""; position: absolute; left: 0; top: -18px; width: 7px; height: 7px; border-radius: 50%; background: var(--bg-deep); border: 1px solid rgba(170, 215, 255, 0.45); transition: all 0.4s; }
.hud li:hover { color: var(--ink); }
.hud li.is-done { color: var(--ink-2); }
.hud li.is-done::before { background: var(--ink-2); border-color: var(--ink-2); }
.hud li.is-on { color: var(--amber); }
.hud li.is-on::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 10px var(--amber); }

/* итог в карточке станции */
.card__result { position: relative; margin: 2px 0 0; padding-top: 12px; border-top: 1px solid var(--card-line); font-size: 15px; line-height: 1.45; font-weight: 600; color: var(--ink); }
.card__result span { display: block; margin-bottom: 4px; font: 600 10.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.card__scale { display: none; }
.card ul { margin-bottom: 12px; }
.stats { gap: 12px; }
.stats div { padding-top: 10px; }
.stats b { font-size: clamp(26px, 2.3vw, 36px); }

/* финал: шестой проект */
.card--next h2 { font-size: clamp(34px, 3.4vw, 50px); }
.card__ask { margin: 14px 0 0 !important; padding-top: 12px; border-top: 1px solid var(--card-line); color: var(--amber) !important; font-weight: 600; font-size: 16px; line-height: 1.4; }

/* портрет возвращается в финале */
.contact__portrait { display: block; width: min(220px, 52vw); aspect-ratio: 446 / 500; height: auto; margin: 0 auto 18px; filter: drop-shadow(0 0 12px rgba(124, 199, 255, 0.2)); }
.contact__quote { margin-top: 0; }

/* панель «Профиль» */
body.is-modal { overflow: hidden; }
.profile {
  position: fixed; inset: 0; z-index: 60; overflow: auto; -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(120% 90% at 50% 30%, var(--bg) 0%, var(--bg-deep) 60%, var(--bg-edge) 100%);
  background-color: var(--bg-deep);
  opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0s linear 0.35s;
}
.profile.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s; }
.profile__close { position: fixed; right: var(--gutter); top: 16px; z-index: 2; background: rgba(18, 59, 96, 0.8); border: 1px solid var(--card-line); border-radius: 3px; color: var(--ink-2); cursor: pointer; font: 600 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; padding: 9px 12px; }
.profile__close:hover { color: var(--amber); border-color: var(--amber); }
.profile__in { max-width: 880px; margin: 0 auto; padding: clamp(72px, 11vh, 120px) var(--gutter) 80px; }
.profile h2 { font-size: clamp(40px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.03em; margin: 0 0 16px; }
.profile__now { margin: 0; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink); }
.profile__next { margin: 8px 0 0; font-size: clamp(15px, 1.25vw, 17px); color: var(--amber); font-weight: 600; }
.profile__glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--card-line); }
.profile__glance b { display: block; font: 800 clamp(28px, 3vw, 40px)/1 var(--sans); letter-spacing: -0.02em; white-space: nowrap; }
.profile__glance span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.profile h3 { margin: 42px 0 0; font: 600 11.5px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }
.profile__useful { list-style: none; margin: 14px 0 0; padding: 0; }
.profile__useful li { position: relative; padding-left: 22px; margin-top: 10px; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.5; color: var(--ink); }
.profile__useful li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 10px; height: 1.5px; background: var(--glow); box-shadow: 0 0 6px var(--glow); }
.profile__tl { margin-top: 12px; }
.profile__tl button { display: grid; grid-template-columns: 8.5em 1fr auto; gap: 16px; align-items: start; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--card-line); padding: 14px 0; cursor: pointer; color: inherit; font: inherit; }
.profile__tl button:hover .go { color: var(--amber); transform: translateX(3px); }
.profile__tl button:hover .pl { color: var(--amber); }
.profile__tl .y { font: 600 12px/1.6 var(--mono); letter-spacing: 0.08em; color: var(--ink-3); }
.profile__tl .pl { font-size: clamp(16px, 1.3vw, 18px); font-weight: 700; transition: color 0.2s; }
.profile__tl .pl small { display: block; margin-top: 3px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.profile__tl .pl em { display: block; margin-top: 4px; font-style: normal; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.profile__tl .go { color: var(--ink-3); transition: color 0.2s, transform 0.2s; padding-top: 2px; }
.profile__cts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.profile__cts .btn { cursor: pointer; background: none; color: var(--ink); font-family: var(--sans); }
.profile__note { margin: 22px 0 0; font: 500 11.5px/1.6 var(--mono); color: var(--ink-3); }

@media (max-width: 860px) {
  .hud { display: none; }
  .top__profile { padding: 7px 10px; font-size: 10.5px; }
  .card__scale { display: block; margin: -4px 0 8px; font: 500 12px/1.3 var(--mono); letter-spacing: 0.06em; color: var(--ink-2); }
  .card__scale span { color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.14em; margin-right: 8px; }
  .card__result { font-size: 16px; padding-top: 10px; }
  .card ul { margin-bottom: 10px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .stats div:first-child { grid-column: 1 / -1; }
  .stats b { font-size: 28px; }
  .stats span { font-size: 13.5px; }
  .card__ask { font-size: 17px; }
  .profile__glance { grid-template-columns: 1fr 1fr; }
  .profile__tl button { grid-template-columns: 1fr auto; }
  .profile__tl .y { grid-column: 1 / -1; }
}

/* разделы после истории — приклеенные слайды */
.track { position: relative; }
.slide { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 56px; }
.slide .rule { width: 100%; margin: 0 auto; }
.slide .how { width: 100%; padding-top: clamp(26px, 5vh, 56px); padding-bottom: 0; }
.how .kicker, .how .section-title, .how__item,
.contact__portrait, .contact__quote, .contact__title, .contact__text, .contact__links, .contact__where {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.how .section-title, .contact__quote, .contact__text { transition-delay: 0.08s; }
.contact__links, .contact__where { transition-delay: 0.16s; }
.how.is-in .kicker, .how.is-in .section-title, .how__item.is-in,
.contact.is-in .contact__portrait, .contact.is-in .contact__quote,
.contact.is-talk .contact__title, .contact.is-talk .contact__text, .contact.is-talk .contact__links, .contact.is-talk .contact__where { opacity: 1; transform: none; }
.slide--contact .contact { width: 100%; padding-top: 0; padding-bottom: 0; }
.slide--contact .contact__portrait { width: min(200px, 22vh, 46vw); margin-bottom: 10px; }
.slide--contact .contact__quote { margin-bottom: clamp(26px, 5vh, 60px); }
.slide--contact .contact__title { font-size: clamp(44px, 6vw, 88px); }
.slide--contact .contact__where { margin-bottom: 0; }
@media (max-width: 860px) {
  .slide .rule { margin-top: 0; }
  .slide--contact .contact__quote blockquote { font-size: clamp(22px, 6.2vw, 28px); }
}
@media (max-width: 860px) and (max-height: 760px) {
  .slide .section-title { font-size: 26px; margin-bottom: 18px; }
  .slide .how__grid { gap: 16px; }
  .slide .how__item p { font-size: 14px; }
  .slide .how__n { margin-bottom: 8px; }
  .slide--contact .contact__portrait { width: min(150px, 18vh); }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .how__grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .how__item svg *, .rule svg path { filter: none; }
}

/* ═════════ правки по аудиту (флажки fx-*) ═════════ */
.hero__role, .top__contact, .card__count { display: none; }

/* ink: вторичный текст светлее и крупнее, без свечения */
.fx-ink { --ink-2: #bdd6ec; --ink-3: #9cbad6; }
.fx-ink .hero__facts span { font-size: 14px; }
.fx-ink .hud li { font-size: 14px; }
.fx-ink .hud li b { font-size: 11.5px; }
.fx-ink .card li { font-size: 15.5px; }
.fx-ink .card__result { font-size: 16px; }

/* tap: зоны нажатия ~44 px при прежнем виде */
.fx-tap .lang button, .fx-tap .top__profile { position: relative; }
.fx-tap .lang button::after { content: ""; position: absolute; inset: -12px -3px; }
.fx-tap .top__profile::after { content: ""; position: absolute; inset: -9px -4px; }
.fx-tap .hero__skip { padding: 12px 4px; }

/* contacts: каналы связи как в Through line — внизу «Let's talk» и профиля; резюме — в профиле сверху */
a.ch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 8px; border-radius: 999px; text-decoration: none;
  background: rgba(227, 244, 255, 0.06); color: var(--ink); border: 1px solid var(--card-line); font-weight: 600; font-size: 14px; transition: background 0.2s, border-color 0.2s; }
a.ch:hover { background: rgba(227, 244, 255, 0.14); border-color: var(--line); }
a.ch svg { width: 28px; height: 28px; flex: none; display: block; }
a.ch.todo { opacity: 0.45; border-style: dashed; cursor: default; }
.btn--profile { cursor: pointer; background: none; color: var(--ink); font-family: var(--sans); }
.fx-contacts .contact__links { gap: 12px; align-items: center; }
.profile__cv { margin-top: 22px; }
.fx-contacts .contact.is-in .contact__title, .fx-contacts .contact.is-in .contact__text,
.fx-contacts .contact.is-in .contact__links, .fx-contacts .contact.is-in .contact__where { opacity: 1; transform: none; }

/* pace: «Что я даю» и контакты встают на экран, всё содержимое сразу; разделы подтягиваются к верху */
html.fx-pace { scroll-snap-type: y proximity; }
.fx-pace .track { scroll-snap-align: start; }

/* quote: рукописная только первая фраза, остальное обычным шрифтом */
.fx-quote .contact__quote .q1 { display: block; }
.fx-quote .contact__quote .q2 { display: block; margin-top: 10px; font: 400 clamp(16px, 1.25vw, 18px)/1.55 var(--sans); color: var(--ink-2); }

@media (max-width: 860px) {
  /* hero: портрет меньше, роль под именем, подсказка прокрутки после цифр */
  .fx-hero .hero__portrait { width: min(54vw, 240px); margin: 0 auto 6px; }
  .fx-hero .hero__role { display: block; margin: -14px 0 14px; font: 600 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
  .fx-hero .hero__name { margin-bottom: 20px; }
  .fx-hero .hero { padding-bottom: 28px; }
  .fx-hero .hero__scroll { position: static; transform: none; margin: 26px auto 0; }

  /* mnav: «Связаться» в шапке телефона */
  .fx-mnav .top__contact { display: inline-flex; align-items: center; text-decoration: none; }
  .fx-mnav .top__right { gap: 8px; }

  /* count: «02 / 05» рядом со шкалой */
  .fx-count .card__count { display: inline; margin-right: 10px; color: var(--amber); font-weight: 600; }

  /* каналы на телефоне — только иконки, как в Through line */
  a.ch { padding: 0; gap: 0; width: 52px; height: 52px; min-height: 52px; justify-content: center; border-radius: 14px; background: none; border: 0; }
  a.ch svg { width: 48px; height: 48px; }
  a.ch .lb { display: none; }
  .fx-contacts .contact__links { gap: 14px; margin-bottom: 18px; }
  .btn--profile { flex-basis: 100%; max-width: 260px; margin: 4px auto 0; justify-content: center; }
  .slide--contact .contact__portrait { width: min(140px, 16vh, 36vw); }
  .slide--contact .contact__quote { margin-bottom: 22px; }
  .slide--contact .contact__title { font-size: clamp(38px, 11vw, 48px); margin-bottom: 8px; }
  .slide--contact .contact__text { font-size: 15px; margin-bottom: 18px; }
  .fx-quote .contact__quote .q2 { font-size: 15px; }
}
@media (max-width: 860px) and (max-height: 700px) {
  .fx-hero .hero__portrait { width: min(40vw, 170px); }
  .fx-hero .hero { padding-top: 64px; }
  .slide--contact .contact__portrait { display: none; }
}
/* контакты на телефоне: портрет крупнее, иконки и «Let's talk» компактнее */
@media (max-width: 860px) {
  .slide--contact .contact__portrait { width: min(200px, 24vh, 52vw) !important; margin-bottom: 6px; }
  .slide--contact .contact__quote { margin-bottom: 16px; }
  .slide--contact .contact__title { font-size: clamp(32px, 9vw, 40px); }
  .slide--contact .contact__text { font-size: 14px; margin-bottom: 14px; }
  a.ch { width: 42px; height: 42px; min-height: 42px; border-radius: 11px; }
  a.ch svg { width: 38px; height: 38px; }
  .fx-contacts .contact__links { gap: 12px; margin-bottom: 12px; }
  .btn--profile { padding: 10px 18px; font-size: 14px; max-width: 220px; }
}
/* контакты: обёртки колонок не влияют на телефон */
.contact__left, .contact__right { display: contents; }
/* десктоп: две равные колонки по центру, между ними тонкая линия */
@media (min-width: 861px) {
  .fx-contacts .slide--contact .contact { display: grid; grid-template-columns: 1fr 1fr; align-items: center; max-width: 1180px; margin: 0 auto; text-align: left; }
  .fx-contacts .contact__left { display: flex; flex-direction: column; align-items: center; text-align: center; padding-right: clamp(32px, 5vw, 80px); }
  .fx-contacts .contact__right { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(20px, 4vh, 44px) 0 clamp(20px, 4vh, 44px) clamp(32px, 5vw, 80px); border-left: 1px solid var(--card-line); min-height: 100%; }
  .fx-contacts .contact__portrait { width: min(240px, 30vh) !important; margin: 0 0 14px; }
  .fx-contacts .contact__quote { margin: 0 !important; max-width: 26em; }
  .fx-contacts .contact__quote blockquote { font-size: clamp(22px, 2vw, 28px); margin-bottom: 10px; }
  .fx-contacts .contact__title { margin: 0 0 14px; font-size: clamp(48px, 4.6vw, 72px) !important; }
  .fx-contacts .contact__text { margin: 0 0 24px; max-width: 26em; }
  .fx-contacts .contact__links { justify-content: flex-start; margin: 0 0 18px; }
  .fx-contacts .contact__where { margin: 0 !important; text-align: left; }
}
@media (min-width: 861px) and (max-height: 840px) {
  .slide--contact { padding-top: 64px; }
  .fx-contacts .contact__portrait { width: min(190px, 26vh) !important; margin-bottom: 8px; }
  .fx-contacts .contact__quote blockquote { font-size: 22px; }
  .fx-quote .contact__quote .q2 { font-size: 15px; }
}
