/* nitsulyak.uz — «приборный щит», мягкая версия.
   Токены и обоснование — docs/CONCEPT.md, раздел 8. */

:root {
  --paper: #F6F8F5;
  --paper-2: #ECF2EE;
  --white: #FFFFFF;
  --ink: #14201B;
  --steel: #54625B;
  --rule: #D6DFD9;
  --machine: #1D3A32;
  --machine-2: #2C5547;
  --machine-deep: #17312A;
  --panel-soft: #D8E4DD;
  --signal: #F2C230;
  --signal-hover: #FFD455;
  --alarm: #C8432B;
  --ok: #3FA36B;
  --ok-ink: #2B7A4F;
  --on-dark: #EEF4F0;
  --on-dark-2: #B9CCC2;

  --font-display: "Sofia Sans Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --wrap: 1200px;
  --gutter: 16px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 32, 27, .05), 0 18px 40px -26px rgba(20, 32, 27, .28);
  --section: clamp(72px, 9vw, 120px);
  --header-h: 64px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  text-wrap: balance;
}
h1 {
  font-weight: 800;
  font-size: clamp(2.9rem, 1.6rem + 5vw, 5.6rem);
  line-height: .94;
  letter-spacing: -.012em;
}
h2 {
  font-weight: 800;
  font-size: clamp(2.1rem, 1.4rem + 2.3vw, 3.3rem);
  line-height: 1;
  letter-spacing: -.008em;
}
h3 {
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.12;
}

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--paper);
  border-radius: var(--radius-sm); text-decoration: none;
}
.skip:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.ico { width: 20px; height: 20px; flex: none; }

/* Заглушки черновика — искать по class="ph" */
.ph {
  color: inherit;
  background: repeating-linear-gradient(-45deg, rgba(242, 194, 48, .32) 0 6px, rgba(242, 194, 48, .14) 6px 12px);
  outline: 1px dashed #A27C00;
  outline-offset: 1px;
  padding: 0 .2em;
}

/* ───────── Кнопки ───────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  font: 600 1rem/1.1 var(--font-body);
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .94rem; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-primary { background: var(--machine); color: var(--white); }
.btn-primary:hover { background: var(--ink); box-shadow: 0 10px 24px -14px rgba(20, 32, 27, .7); }
.btn-ghost { border-color: var(--machine); color: var(--machine); background: transparent; }
.btn-ghost:hover { background: var(--machine); color: var(--white); }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: var(--signal-hover); box-shadow: 0 12px 28px -14px rgba(242, 194, 48, .8); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .38); color: var(--white); background: rgba(255, 255, 255, .04); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ───────── Шапка ───────── */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 245, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-row { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: var(--machine); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: 800 1.3rem/1 var(--font-display); letter-spacing: .01em; }
.brand-sub {
  margin-top: 3px;
  font: 500 .66rem/1 var(--font-mono);
  text-transform: uppercase; letter-spacing: .08em; color: var(--steel);
}

.nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav li > a:not(.btn) {
  display: block; padding: 8px 10px; border-radius: 8px;
  font-size: .95rem; color: var(--steel); text-decoration: none;
}
.nav li > a:not(.btn):hover { color: var(--ink); background: var(--paper-2); }
.nav-cta-item { display: none; }
.nav-lang-item { display: none; }

/* Выбор языка в шапке: одна кнопка, список по нажатию */
.lang-pick { position: relative; flex: none; }
.lang-pick summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 9px; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer;
  font: 600 .72rem/1 var(--font-mono); letter-spacing: .06em; color: var(--ink);
}
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick summary::after {
  content: ""; width: 5px; height: 5px; margin: -3px 1px 0 1px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}
.lang-pick summary .ico { width: 15px; height: 15px; color: var(--steel); }
.lang-pick summary:hover, .lang-pick[open] summary { background: var(--paper-2); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  display: grid; min-width: 172px; padding: 6px;
  background: var(--white); border: 1px solid var(--rule); border-radius: 12px; box-shadow: var(--shadow);
}
.lang-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 9px 10px; border-radius: 8px; text-decoration: none;
  font: 600 .74rem/1 var(--font-mono); letter-spacing: .06em; color: var(--ink);
}
.lang-list a span { font: 400 .9rem/1 var(--font-body); letter-spacing: 0; color: var(--steel); }
.lang-list a:hover { background: var(--paper-2); }
.lang-list a[aria-current="page"] { background: var(--machine); color: var(--white); }
.lang-list a[aria-current="page"] span { color: var(--on-dark-2); }

/* Переключатель языков: в шапке, а на узком экране — в меню */
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; flex: none; }
.lang a {
  padding: 6px 9px; border-radius: 999px;
  font: 600 .72rem/1 var(--font-mono); letter-spacing: .06em; color: var(--steel); text-decoration: none;
}
.lang a:hover { color: var(--ink); background: var(--paper-2); }
.lang a[aria-current="page"] { background: var(--machine); color: var(--white); }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 12px;
  border: 1.5px solid var(--ink); border-radius: var(--radius-sm);
  background: transparent; color: var(--ink);
  font: 600 .94rem/1 var(--font-body); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 16px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    box-shadow: 0 16px 32px -20px rgba(20, 32, 27, .35);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav li > a:not(.btn) { padding: 12px 4px; font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav-cta-item { display: block; margin-top: 16px; }
  .nav-cta-item .btn { width: 100%; }
}
@media (max-width: 600px) {
  .header-cta { display: none; }
  .brand-sub { display: none; }
  .lang-pick { display: none; }
  .nav-lang-item { display: block; margin-top: 16px; }
  .nav-lang-item .lang { justify-content: space-between; }
  .nav-lang-item .lang a { flex: 1; text-align: center; padding: 10px 0; font-size: .82rem; }
}

/* ───────── Первый экран: баннер спикера ───────── */

.hero {
  position: relative;
  overflow: clip;
  padding-top: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(70% 80% at 78% 38%, rgba(63, 120, 100, .55), transparent 70%),
    linear-gradient(160deg, #21443A 0%, var(--machine) 45%, var(--machine-deep) 100%);
  color: var(--on-dark);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
          mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 40px; align-items: end; }
  .hero-copy { align-self: center; padding-bottom: 56px; }
}

.hero h1 { color: var(--white); }
.h1-name { display: block; font-size: clamp(3.3rem, 1.6rem + 6vw, 6.6rem); line-height: .9; letter-spacing: -.015em; }
.kicker {
  display: block;
  margin-top: 18px;
  font: 500 .8rem/1.4 var(--font-mono);
  text-transform: uppercase; letter-spacing: .08em; color: var(--signal);
}
.hero-statement { margin-top: 28px; max-width: 17ch; font: 700 clamp(1.7rem, 1.15rem + 1.7vw, 2.5rem)/1.08 var(--font-display); color: var(--on-dark); }
.lede { margin-top: 20px; max-width: 34rem; font-size: 1.2rem; line-height: 1.55; color: var(--on-dark-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: .95rem; color: #9DB6AA; }

.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-photo {
  position: relative;
  margin: 0;
  width: 100%; max-width: 460px;
  aspect-ratio: 4 / 5;
  justify-self: center;
  align-self: end;
}
@media (min-width: 960px) { .hero-photo { justify-self: end; } }

.hero-photo::before {
  content: ""; position: absolute; inset: 14% 6% 0; z-index: 0;
  background: radial-gradient(closest-side, rgba(242, 194, 48, .2), transparent 72%);
}
.hero-arc { position: absolute; z-index: 0; width: 128%; left: -14%; top: -9%; overflow: visible; }
.arc {
  fill: none; stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw .7s ease-out forwards;
}
.arc-manual { stroke: var(--alarm); opacity: .7; animation-delay: .3s; }
.arc-mid { stroke: var(--signal); opacity: .7; animation-delay: .9s; }
.arc-auto { stroke: #57C489; stroke-width: 4; animation-delay: 1.5s; filter: drop-shadow(0 0 5px rgba(87, 196, 137, .7)); }
.arc-ticks line { stroke: rgba(255, 255, 255, .45); stroke-width: 2; stroke-linecap: round; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-photo-empty { position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-end; justify-content: center; }
.hero-photo-empty svg { width: 86%; fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .3); stroke-width: 2; stroke-dasharray: 8 8; }
.hero-photo-empty .ph {
  position: absolute; left: 50%; bottom: 30%; transform: translateX(-50%);
  width: max-content; max-width: 86%; text-align: center; font-size: .9rem;
}
.hero-photo[data-state="ready"] .hero-photo-empty { display: none; }
.hero-photo[data-state="ready"]::before { opacity: .45; }
.hero-photo picture, .hero-photo img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.hero-photo::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 14%; z-index: 2;
  background: linear-gradient(transparent, var(--machine-deep));
}

.nameplate {
  position: absolute; z-index: 3; left: 0; bottom: 28px;
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 18px 12px 16px;
  background: var(--paper); color: var(--ink);
  border-left: 4px solid var(--signal); border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
}
@media (min-width: 960px) { .nameplate { left: -36px; bottom: 44px; } }
.nameplate-name { font: 800 1.3rem/1 var(--font-display); }
.nameplate-role { font: 500 .68rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--steel); }

.hero-proof { position: relative; z-index: 3; background: var(--machine-deep); border-top: 1px solid rgba(255, 255, 255, .1); }
.proof { display: grid; gap: 14px; margin: 0 auto; padding-block: 24px; list-style: none; }
.proof li { display: flex; gap: 14px; align-items: baseline; }
.proof b { flex: none; min-width: 5.2ch; font: 800 2rem/1 var(--font-display); color: var(--signal); }
.proof span { color: var(--on-dark-2); font-size: .96rem; line-height: 1.45; }
@media (min-width: 860px) {
  .proof { grid-template-columns: repeat(3, 1fr); column-gap: 40px; padding-block: 28px; }
}

/* ───────── Секции ───────── */

.section { padding-block: var(--section); }
.section-alt { background: var(--paper-2); }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 52px); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; gap: 56px; align-items: end; }
}
.section-lede { max-width: 38rem; font-size: 1.1rem; color: var(--steel); }

/* Появление при прокрутке (только если работает JS) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ───────── Самопроверка ───────── */

.check-grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .check-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
  .check-intro { position: sticky; top: calc(var(--header-h) + 28px); }
}
.check-intro .section-lede { margin-top: 18px; }

.panel {
  margin: 32px 0 0;
  max-width: 400px;
  padding: 16px 20px 20px;
  background: var(--machine);
  border-radius: var(--radius);
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 60px -36px rgba(20, 32, 27, .6);
}
.panel-plate {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 6px;
  font: 500 .68rem/1 var(--font-mono);
  text-transform: uppercase; letter-spacing: .1em; color: var(--panel-soft);
}
.dial { display: block; width: 100%; height: auto; margin-top: 10px; }
.dial-bezel { fill: #10261F; }
.dial-face { fill: var(--paper); }
.zone { fill: none; stroke-width: 10; }
.zone-manual { stroke: var(--alarm); }
.zone-mid { stroke: var(--signal); }
.zone-auto { stroke: var(--ok); }
.ticks line { stroke: var(--ink); stroke-width: 1.4; }
.ticks .major { stroke-width: 3; }
.dial-unit {
  font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .14em;
  fill: var(--steel); text-anchor: middle;
}
.dial-end { font: 600 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; text-anchor: middle; }
.dial-end-manual { fill: var(--alarm); }
.dial-end-auto { fill: var(--ok-ink); }
.needle {
  fill: var(--ink);
  transform-box: view-box; transform-origin: 150px 160px;
  transform: rotate(var(--angle, -132deg));
  transition: transform .9s cubic-bezier(.34, 1.4, .5, 1), opacity .3s;
}
.gauge[data-state="idle"] .needle { opacity: .45; }
.hub { fill: var(--ink); }
.hub-cap { fill: var(--signal); }

.panel figcaption { margin-top: 12px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); }
.gauge-result { min-height: 3em; color: #DCE7E1; line-height: 1.5; }
.gauge-result b { display: block; margin-bottom: 4px; font: 800 1.4rem/1.1 var(--font-display); color: var(--white); }
.gauge-cta { margin-top: 14px; }

.checks { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.checks label {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 18px;
  background: var(--white); border: 1px solid var(--rule); border-radius: 12px;
  font-size: 1.08rem; line-height: 1.45; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.checks label:hover { border-color: var(--machine-2); }
.checks label:has(input:checked) { border-color: var(--machine-2); background: #F3F8F5; box-shadow: 0 0 0 1px var(--machine-2); }
.checks input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 22px; height: 22px; margin: 2px 0 0;
  border: 2px solid var(--machine-2); border-radius: 6px; background: var(--white);
  display: grid; place-content: center; cursor: pointer;
}
.checks input::before {
  content: ""; width: 11px; height: 6px;
  border-left: 2.5px solid var(--white); border-bottom: 2.5px solid var(--white);
  transform: translateY(-2px) rotate(-45deg) scale(0);
  transition: transform .12s;
}
.checks input:checked { background: var(--machine); border-color: var(--machine); }
.checks input:checked::before { transform: translateY(-2px) rotate(-45deg) scale(1); }

/* ───────── Было → станет ───────── */

.shift { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.shift-head { display: grid; grid-template-columns: 1fr 1fr; }
.shift-tag { padding: 16px 24px; font: 600 .74rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.shift-tag-now { background: #FBF0EC; color: #A3412D; }
.shift-tag-after { background: #EAF6EF; color: var(--ok-ink); }
.shift-list { margin: 0; padding: 0; list-style: none; }
.shift-list li { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.shift-now, .shift-after { position: relative; padding: 18px 24px 18px 52px; line-height: 1.45; }
.shift-now { color: var(--steel); }
.shift-after { font-weight: 600; background: linear-gradient(90deg, #F5FBF7, var(--white)); }
.shift-now::before {
  content: ""; position: absolute; left: 24px; top: 22px; width: 16px; height: 16px; border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 44%, #C8432B 44% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, #C8432B 44% 56%, transparent 56%), #FBE3DC;
  background-size: 9px 9px, 9px 9px, auto; background-position: center; background-repeat: no-repeat;
}
.shift-after::before {
  content: ""; position: absolute; left: 24px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok);
}
.shift-after::after {
  content: ""; position: absolute; left: 29px; top: 26px; width: 6px; height: 3.5px;
  border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(-45deg);
}
@media (max-width: 720px) {
  .shift-head { display: none; }
  .shift-list li { grid-template-columns: 1fr; }
  .shift-list li:first-child { border-top: 0; }
  .shift-now { padding-bottom: 8px; }
  .shift-after { padding-top: 8px; background: none; }
  .shift-list p > .sr {
    position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none; white-space: normal;
    display: block; margin-bottom: 2px;
    font: 600 .66rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--steel);
  }
}

.kit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.kit-title { font: 600 .74rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--steel); }
.kit-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kit-list li { padding: 7px 14px; background: var(--white); border: 1px solid var(--rule); border-radius: 999px; font-size: .92rem; }

/* ───────── Услуги ───────── */

.svc-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc { padding: 28px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.svc-ico { width: 44px; height: 44px; color: var(--machine); }
.svc h3 { margin: 18px 0 6px; }
.svc dl { margin: 0; }
.svc dl > div { padding: 14px 0; border-top: 1px solid var(--rule); }
.svc dl > div:first-child { border-top: 0; }
.svc dt { font-weight: 600; font-size: 1.04rem; line-height: 1.35; }
.svc dd { margin: 5px 0 0; color: var(--steel); font-size: .97rem; line-height: 1.5; }

/* ───────── История ───────── */

.story-grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .story-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
  .story-side { position: sticky; top: calc(var(--header-h) + 28px); }
}

.quote { position: relative; margin: 0; padding: 26px 26px 22px; background: var(--machine); color: var(--on-dark); border-radius: var(--radius); }
.quote-mark { position: absolute; top: -12px; left: 24px; width: 34px; height: 26px; color: var(--signal); }
.quote p { font: 700 clamp(1.3rem, 1.05rem + .8vw, 1.65rem)/1.25 var(--font-display); }
.quote footer { margin-top: 14px; font: 600 .74rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--signal); }

.story-main h2 { max-width: 16ch; }
.chapters { margin: 36px 0 0; padding: 0; list-style: none; position: relative; }
.chapters::before { content: ""; position: absolute; left: 4.6rem; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--alarm), var(--signal) 45%, var(--ok)); border-radius: 2px; }
.chapters li { position: relative; display: grid; grid-template-columns: 4.6rem 1fr; gap: 0 28px; padding: 0 0 30px; }
.chapters li:last-child { padding-bottom: 0; }
.chapters li::after { content: ""; position: absolute; left: calc(4.6rem - 6px); top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--machine-2); }
.chapters li:last-child::after { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 0 5px rgba(63, 163, 107, .2); }
.chapter-year { padding-top: 2px; font: 600 .86rem/1.3 var(--font-mono); color: var(--machine-2); }
.chapters h3 { font-size: 1.5rem; }
.chapters p { margin-top: 6px; max-width: 38rem; color: var(--steel); }
@media (max-width: 520px) {
  .chapters::before { left: 6px; }
  .chapters li { grid-template-columns: 1fr; padding-left: 30px; }
  .chapters li::after { left: 0; }
  .chapter-year { margin-bottom: 4px; }
}

.certs-box { margin-top: 36px; padding: 22px 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.certs-title { margin-bottom: 12px; font: 600 .74rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--steel); }
.certs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.certs li { padding: 6px 12px; background: var(--paper-2); border-radius: 999px; font-size: .88rem; line-height: 1.3; }
.certs li:last-child { background: transparent; border: 1px dashed var(--rule); color: var(--steel); }

/* ───────── Убеждения ───────── */

.section-dark {
  background:
    radial-gradient(60% 90% at 10% 0%, rgba(63, 120, 100, .4), transparent 70%),
    linear-gradient(160deg, #21443A 0%, var(--machine) 50%, var(--machine-deep) 100%);
  color: var(--on-dark);
}
.section-dark h2 { color: var(--white); }
.section-dark .section-lede { color: var(--on-dark-2); }
.section-dark :focus-visible { outline-color: var(--signal); }

.beliefs { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: belief; }
@media (min-width: 760px) { .beliefs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .beliefs { grid-template-columns: repeat(6, 1fr); } .beliefs li { grid-column: span 2; } .beliefs li:nth-child(4) { grid-column: 2 / span 2; } }
.beliefs li {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px 24px 24px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius);
}
.beliefs li::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: var(--signal); }
.beliefs b { font: 700 1.35rem/1.2 var(--font-display); color: var(--white); }
.beliefs span { color: var(--on-dark-2); line-height: 1.5; }

/* ───────── Выступления ───────── */

.talks-grid { display: grid; gap: 36px; }
@media (min-width: 960px) {
  .talks-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
}
.talks-intro .section-lede { margin-top: 18px; }
.talks-formats { margin: 18px 0 26px; font: 500 .8rem/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--machine-2); }
.talks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.talks li { display: grid; gap: 8px; padding: 22px 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid var(--signal); }
.talk-tag { font: 600 .68rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--machine-2); }
.talks b { font: 700 1.3rem/1.2 var(--font-display); }
.talks li > span:last-child { color: var(--steel); line-height: 1.5; }

/* ───────── Этапы ───────── */

.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.step { display: grid; gap: 16px; padding: 26px 28px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 900px) {
  .step { grid-template-columns: 8.5rem minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; align-items: start; }
}
.step-meta { display: flex; gap: 14px; align-items: baseline; }
@media (min-width: 900px) { .step-meta { flex-direction: column; gap: 6px; } }
.step-num { font: 800 2.7rem/1 var(--font-display); color: var(--machine); }
.step-weeks { font: 500 .76rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--steel); }
.step-body h3 { font-size: 1.7rem; }
.step-body p { margin-top: 8px; max-width: 38rem; }
.ruler {
  display: grid; grid-template-columns: repeat(12, 1fr);
  height: 8px; margin-top: 16px; max-width: 38rem;
  background: var(--paper-2); border-radius: 99px; overflow: hidden;
}
.ruler span { background: var(--machine-2); border-radius: 99px; }
.step-result { padding: 16px 18px; background: #FFF7DC; border-radius: 12px; font-weight: 500; line-height: 1.45; }
.step-result span {
  display: block; margin-bottom: 6px;
  font: 600 .68rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: #8A6A00;
}
.note { margin-top: 22px; font: 500 .82rem/1.5 var(--font-mono); color: var(--steel); }

/* ───────── Форматы ───────── */

.formats { display: grid; gap: 20px; padding-top: 14px; }
@media (min-width: 900px) { .formats { grid-template-columns: repeat(3, 1fr); } }
.format {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 30px 28px 28px;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
}
.format-featured { border: 2px solid var(--machine-2); box-shadow: 0 24px 50px -30px rgba(29, 58, 50, .55); }
.format-badge {
  position: absolute; top: -14px; left: 24px;
  padding: 6px 12px; border-radius: 999px; background: var(--signal); color: var(--ink);
  font: 600 .7rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em;
}
.format-term { font: 600 .78rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--machine-2); }
.format-points { display: grid; gap: 10px; margin: 4px 0 8px; padding: 0; list-style: none; }
.format-points li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.format-points .ico { margin-top: 2px; color: var(--ok); }
.format .btn { margin-top: auto; width: 100%; }

/* ───────── Вопросы ───────── */

.faq-grid { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; align-items: start; }
}
.faq-lede { margin-top: 16px; }
.faq-lede a { color: var(--machine-2); font-weight: 600; }
.faq { display: grid; gap: 10px; }
.faq details { padding: 0 22px; background: var(--white); border-radius: 12px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 40px 20px 0;
  font: 700 1.3rem/1.2 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 10px; height: 10px; border-right: 2px solid; border-bottom: 2px solid;
  transform: translateY(-75%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; max-width: 42rem; color: var(--steel); }

/* ───────── Заявка ───────── */

.contact {
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(63, 120, 100, .45), transparent 70%),
    linear-gradient(160deg, #21443A 0%, var(--machine) 50%, var(--machine-deep) 100%);
  color: var(--on-dark);
}
.contact :focus-visible { outline-color: var(--signal); }
.contact h2 { color: var(--white); }
.contact .section-lede { margin-top: 18px; color: var(--on-dark-2); }

.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 64px; align-items: start; }
}

.form { display: grid; gap: 16px; margin-top: 32px; max-width: 40rem; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field > span { font: 600 .72rem/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-2); }
.field em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .75; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  background: rgba(255, 255, 255, .07); color: var(--white);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius-sm);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field ::placeholder { color: rgba(255, 255, 255, .42); }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F2C230' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field select option { color: var(--ink); background: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--signal); background-color: rgba(255, 255, 255, .1); box-shadow: 0 0 0 1px var(--signal);
}
.field input[aria-invalid="true"] { border-color: #FF9E8C; box-shadow: 0 0 0 1px #FF9E8C; }
.field.is-flash select { border-color: var(--signal); box-shadow: 0 0 0 2px var(--signal); }

.hp { position: absolute; left: -9999px; }

.form-selfcheck { padding: 12px 14px; border-left: 3px solid var(--signal); border-radius: 0 8px 8px 0; background: rgba(255, 255, 255, .07); font-size: .95rem; }
.form .btn-signal { justify-self: start; margin-top: 4px; }
.consent { font-size: .85rem; color: #A9BDB3; }
.consent a { color: inherit; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status[data-kind="ok"] { color: #7BE0A6; }
.form-status[data-kind="info"] { color: var(--signal); }
.form-status[data-kind="error"] { color: #FFB1A3; }

.contact-side { padding: 28px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); }
.side-title { margin: 0 0 16px; font: 600 .74rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-2); }
.side-title ~ .side-title { margin-top: 30px; }
.next { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: next; }
.next li { position: relative; padding-left: 42px; line-height: 1.45; counter-increment: next; }
.next li::before {
  content: counter(next); position: absolute; left: 0; top: -2px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--signal); color: var(--ink); font: 700 .85rem/1 var(--font-mono);
}
.contacts { margin: 0; }
.contacts > div { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.contacts > div:first-child { border-top: 0; padding-top: 0; }
.contacts dt { font: 600 .7rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-2); }
.contacts dd { margin: 6px 0 0; font: 700 1.35rem/1.2 var(--font-display); }
.contacts a { text-decoration: none; }
.contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.side-geo { margin-top: 18px; font: 500 .76rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-2); }

/* ───────── Подвал ───────── */

.site-footer { background: var(--ink); color: #9FB0A8; font-size: .9rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 24px; }
.site-footer a { color: inherit; }

/* ───────── Закреплённая кнопка (телефон) ───────── */

.dock {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px;
  display: flex; gap: 8px; padding: 8px;
  background: rgba(20, 32, 27, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 16px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6);
  transform: translateY(150%); transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.dock.is-visible { transform: none; }
.dock .btn-signal { flex: 1; }
.dock-tg, .dock-wa { width: 52px; padding: 0; color: var(--white); }
.dock-tg { background: #2AABEE; }
.dock-wa { background: #25D366; }
.dock-tg .ico, .dock-wa .ico { width: 22px; height: 22px; }
@media (min-width: 768px) { .dock { display: none; } }

/* ───────── Политика (privacy.html) ───────── */

.doc { padding-block: var(--section); }
.doc h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem); max-width: 18ch; }
.doc p { margin-top: 20px; max-width: 42rem; }

/* ───────── Меньше движения ───────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .arc { stroke-dashoffset: 0; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
