/* KeyReverse — стили сайта. Подключаются после tokens.css.
   Правила: один класс — одна роль; отступы разделов только через .section; без каскадных конфликтов. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-md);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--key); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--key-deep); }
:focus-visible { outline: 3px solid var(--key); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--marker); color: var(--marker-ink); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-key); z-index: 100; }
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }

/* Заголовки */
.h1, .h2, .h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; margin: 0; text-wrap: balance; }
.h1 { font-size: var(--fs-3xl); }
.h2 { font-size: var(--fs-2xl); }
.h3 { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.lead { font-size: var(--fs-lg); line-height: 1.5; color: var(--ink-2); margin: 0; max-width: 40ch; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--font-mono); }

/* Шапка */
.top { padding-block: 14px; }
.top__in { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand img { width: 38px; height: 38px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav__link { color: var(--ink-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; }
.nav__link:hover { color: var(--key); }

/* Клавиша-кнопка. Нажимается по-настоящему: стенка уходит, кнопка опускается. */
.btn {
  --wall-c: #BAC4DC;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font: 600 var(--fs-md)/1 var(--font-text);
  color: var(--ink); background: var(--white);
  border: 0; border-radius: var(--r-key);
  box-shadow: 0 4px 0 var(--wall-c), 0 12px 20px -10px rgba(10, 18, 48, .3);
  text-decoration: none; cursor: pointer;
  transition: transform .08s var(--ease), box-shadow .08s var(--ease);
}
.btn:hover { color: var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--wall-c), 0 4px 8px -4px rgba(10, 18, 48, .3); }
.btn--key { --wall-c: var(--key-deep); background: var(--key); color: #fff; }
.btn--key:hover { color: #fff; background: var(--key-hi); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-sm); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.btn--ghost:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.btn--ghost:active { transform: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8); }

/* Горячая клавиша в тексте */
.keycap {
  display: inline-block; min-width: 1.9em; padding: .12em .55em .18em; text-align: center;
  font: 500 .86em/1.3 var(--font-mono); color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 7px;
  box-shadow: 0 2px 0 #BAC4DC;
  white-space: nowrap;
}

/* Слово с ошибкой и исправленное маркером */
.wrong { text-decoration: underline wavy var(--wrong); text-decoration-thickness: .07em; text-underline-offset: .2em; text-decoration-skip-ink: none; }
.mark { background: var(--marker); color: var(--marker-ink); padding: 0 .12em; border-radius: .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Клавиша-панель: первый экран и цена */
.slab {
  position: relative;
  background: var(--key);
  color: #fff;
  border-radius: var(--r-slab);
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--maxw);
  margin: 0 auto 14px;
  box-shadow: var(--key-wall), 0 40px 50px -30px rgba(6, 56, 168, .55);
  isolation: isolate;
}
.slab::before {
  content: ""; position: absolute; inset: 14px 14px 22px; z-index: -1;
  border-radius: calc(var(--r-slab) - 8px);
  background: color-mix(in srgb, var(--key-hi) 62%, var(--key));
}
.slab__in { padding: clamp(22px, 4.5vw, 60px); }

/* ПЕРВЫЙ ЭКРАН */
.stage { position: relative; }
.stage__row { display: flex; align-items: center; gap: clamp(14px, 3vw, 40px); min-height: calc(var(--fit, 120px) * 1.3); }
.stage__word {
  position: relative;
  font-family: var(--font-mono); font-weight: 700; font-size: var(--fit, 120px); line-height: 1.1; letter-spacing: -.04em;
  white-space: pre; display: flex; align-items: baseline; min-width: 0;
}
.stage__txt { display: inline-block; padding: 0 .06em; border-radius: .1em; }
.stage__txt.is-wrong { text-decoration: underline wavy var(--wrong-on-key); text-decoration-thickness: .05em; text-underline-offset: .16em; text-decoration-skip-ink: none; }
.stage__txt.is-fixed { background: var(--marker); color: var(--marker-ink); animation: sweep .45s var(--ease) both; }
@keyframes sweep { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.caret { display: inline-block; width: .08em; height: .92em; margin-left: .04em; background: #fff; align-self: center; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.stage__space {
  flex: none; margin-left: auto; align-self: center;
  width: clamp(120px, 16vw, 220px); height: clamp(40px, 5vw, 60px);
  display: grid; place-items: center;
  background: var(--white); color: var(--ink-3); border-radius: 10px;
  font: 500 var(--fs-xs)/1 var(--font-mono);
  box-shadow: 0 6px 0 #9DB5F5, 0 14px 20px -10px rgba(6, 30, 100, .5);
  transition: transform .09s var(--ease), box-shadow .09s var(--ease);
}
.stage__space.is-down { transform: translateY(6px); box-shadow: 0 0 0 #9DB5F5, 0 4px 8px -4px rgba(6, 30, 100, .5); color: var(--key); }

.stage__label { margin: 18px 0 0; min-height: 1.6em; font-size: var(--fs-md); color: rgba(255, 255, 255, .86); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chip {
  font: 500 var(--fs-sm)/1 var(--font-text); color: #fff; background: transparent;
  padding: 10px 14px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .38); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: #fff; }
.chip[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }

.hero__cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; margin-top: clamp(28px, 5vw, 56px); padding-top: clamp(24px, 4vw, 44px); border-top: 1.5px solid rgba(255, 255, 255, .28); }
.hero__h1 { color: #fff; }
.hero__sub { margin: 0 0 24px; font-size: var(--fs-lg); line-height: 1.5; color: rgba(255, 255, 255, .92); max-width: 36ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin: 18px 0 0; font-size: var(--fs-sm); color: rgba(255, 255, 255, .82); }

/* РАЗДЕЛЫ */
.head { max-width: 760px; }
.head .lead { margin-top: 18px; }

/* Главное о безопасности: три утверждения сразу под первым экраном */
.proof { padding-block: clamp(40px, 6vw, 72px) 0; }
.proof__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 56px); }
.proof__item p { margin: 0; color: var(--ink-2); max-width: 36ch; }
.proof__item .proof__t { font: 800 clamp(1.4rem, 1rem + 1.4vw, 2rem)/1.1 var(--font-display); letter-spacing: -.03em; color: var(--ink); margin-bottom: 12px; }

/* Попробуйте сами */
.try { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin-top: 44px; align-items: stretch; }
.win { background: var(--white); border-radius: var(--r-panel); box-shadow: 0 1px 0 var(--line), var(--lift); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.win__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); font-size: var(--fs-xs); color: var(--ink-3); }
.win__dots { display: flex; gap: 6px; }
.win__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.win__lang { margin-left: auto; font: 600 var(--fs-xs)/1 var(--font-mono); padding: 4px 8px; border-radius: 6px; background: var(--key); color: #fff; }
.field {
  flex: 1; width: 100%; min-height: 220px; padding: 20px; border: 0; resize: vertical; background: transparent; color: var(--ink);
  font: 500 1.25rem/1.6 var(--font-mono); outline-offset: -3px;
}
.field::placeholder { color: var(--ink-3); opacity: .8; }
.samples { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--paper); align-items: center; }
.samples__t { font-size: var(--fs-sm); color: var(--ink-3); margin-right: 4px; }
.sample { font: 500 var(--fs-sm)/1 var(--font-mono); color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px; cursor: pointer; box-shadow: 0 2px 0 #BAC4DC; }
.sample:hover { border-color: var(--key); color: var(--key); }
.sample:active { transform: translateY(2px); box-shadow: none; }
.bubble { position: absolute; z-index: 5; background: var(--ink); color: #fff; border-radius: 12px; padding: 8px; box-shadow: var(--lift); font: 500 var(--fs-sm)/1.2 var(--font-text); min-width: 180px; }
.bubble[hidden] { display: none; }
.bubble button { display: flex; width: 100%; justify-content: space-between; gap: 18px; background: transparent; color: #fff; border: 0; border-radius: 8px; padding: 8px 10px; font: inherit; cursor: pointer; text-align: left; }
.bubble button[aria-selected="true"] { background: var(--key); }
.bubble small { display: block; padding: 6px 10px 2px; color: #B9C3E0; font-size: var(--fs-xs); }
.log { background: var(--white); border-radius: var(--r-panel); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; box-shadow: var(--lift); }
.log__title { margin: 0 0 14px; font: 700 var(--fs-md)/1.2 var(--font-display); letter-spacing: -.01em; }
.log__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; align-content: start; flex: 1; }
.log__item { display: grid; gap: 2px; padding: 10px 12px; background: var(--paper); border-radius: 10px; font-size: var(--fs-sm); animation: logIn .3s var(--ease); }
.log__item b { font: 500 var(--fs-sm)/1.4 var(--font-mono); font-weight: 500; }
.log__item span { color: var(--ink-3); font-size: var(--fs-xs); }
@keyframes logIn { from { opacity: 0; transform: translateY(-6px); } }
.log__empty { color: var(--ink-3); font-size: var(--fs-sm); margin: 0; }
.fineprint { margin: 14px 0 0; font-size: var(--fs-xs); color: var(--ink-3); max-width: 64ch; }

/* Что исправляет: строка = пример + пояснение */
.rows { margin-top: 56px; }
.row { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 72px); padding-block: clamp(28px, 4vw, 52px); border-top: 1px solid var(--line); align-items: center; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row__demo { display: grid; gap: 12px; min-width: 0; }
.row__text .h3 { margin-bottom: 10px; }
.row__text p { margin: 0; color: var(--ink-2); max-width: 44ch; }

.line { display: inline-grid; justify-items: start; font: 600 clamp(1.15rem, .6rem + 2.3vw, 2.1rem)/1.3 var(--font-mono); letter-spacing: -.03em; max-width: 100%; }
.line__old, .line__new { grid-area: 1 / 1; white-space: normal; overflow-wrap: anywhere; transition: opacity .25s var(--ease), transform .3s var(--ease); }
.line__new { opacity: 0; transform: translateY(.45em); }
.line.is-fixed .line__old { opacity: 0; transform: translateY(-.45em); }
.line.is-fixed .line__new { opacity: 1; transform: none; }
.line.is-fixed .line__new .mark { animation: sweep .5s .12s var(--ease) both; }
.line__new .mark { padding: .02em .14em; }

/* Доверие */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 1px 0 var(--line); }
.tile p { margin: 0; color: var(--ink-2); font-size: var(--fs-md); }
.tile__demo { min-height: 132px; padding: 14px; background: var(--paper); border-radius: 14px; display: grid; align-content: center; gap: 10px; font: 500 var(--fs-md)/1.5 var(--font-mono); position: relative; }
.opts { background: var(--ink); color: #fff; border-radius: 12px; padding: 6px; width: min(100%, 230px); font: 500 var(--fs-sm)/1.2 var(--font-text); }
.opts div { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; }
.opts div:first-child { background: var(--key); }
.opts small { color: #B9C3E0; }
.safe { display: flex; flex-wrap: wrap; gap: 8px; }
.safe span { padding: 6px 10px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; font-size: var(--fs-sm); }
.safe span::after { content: " ✓"; color: var(--key); font-weight: 700; }

/* Приватность */
.night {
  background: var(--night); color: #fff; position: relative; overflow: hidden;
  width: calc(100% - 2 * var(--gutter)); max-width: var(--maxw); margin-inline: auto;
  border-radius: var(--r-slab); padding: clamp(28px, 5vw, 72px);
}
.night__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.night .h2 { color: #fff; }
.night .lead { color: #C3CCE6; margin-top: 18px; }
.night__img { border-radius: var(--r-panel); overflow: hidden; box-shadow: 0 40px 60px -30px #000; aspect-ratio: 3 / 2; }
.night__img img { width: 100%; height: 100%; object-fit: cover; }
.points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.points li { padding-left: 22px; border-left: 3px solid var(--key-hi); }
.points b { display: block; font: 700 var(--fs-md)/1.3 var(--font-display); margin-bottom: 4px; letter-spacing: -.01em; }
.points span { color: #C3CCE6; font-size: var(--fs-md); }

/* Комплект */
.kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; border-top: 1px solid var(--line); }
.kit__item { padding: 26px 26px 26px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.kit__item p { margin: 0; color: var(--ink-2); }
.kit__item .h3 { margin: 0; }

/* Цена */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.price__num { font: 800 clamp(4rem, 2rem + 9vw, 8.5rem)/.95 var(--font-display); letter-spacing: -.05em; margin: 0; }
.price__num small { font-size: .38em; letter-spacing: -.02em; margin-left: .08em; }
.price__sub { margin: 10px 0 26px; font-size: var(--fs-lg); color: rgba(255, 255, 255, .92); }
.price__list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.price__list li { padding-left: 30px; position: relative; color: #fff; }
.price__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--marker); border-bottom: 3px solid var(--marker); transform: rotate(-45deg) translateY(-3px); }
.price__fine { margin: 16px 0 0; font-size: var(--fs-sm); color: rgba(255, 255, 255, .84); max-width: 46ch; }
.stages { display: grid; gap: 0; background: rgba(6, 30, 100, .28); border-radius: var(--r-panel); overflow: hidden; }
.stages > div { padding: 20px 24px; display: grid; grid-template-columns: 116px 1fr; gap: 6px 18px; align-items: baseline; }
.stages > div + div { border-top: 1px solid rgba(255, 255, 255, .2); }
.stages b { font: 700 var(--fs-md)/1.3 var(--font-display); }
.stages span { color: rgba(255, 255, 255, .88); font-size: var(--fs-md); }

/* Шаги: здесь порядок важен, поэтому номера оправданы */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 3px 0 #BAC4DC; font: 700 var(--fs-lg)/1 var(--font-display); color: var(--key); }
.steps p { margin: 0; color: var(--ink-2); }

/* Вопросы */
.faq { margin-top: 44px; max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font: 700 var(--fs-lg)/1.3 var(--font-display); letter-spacing: -.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--key); border-bottom: 2.5px solid var(--key); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { padding: 0 0 24px; color: var(--ink-2); max-width: 68ch; }
.faq__a p { margin: 0 0 12px; }
.hash { font: 500 var(--fs-xs)/1.5 var(--font-mono); word-break: break-all; background: var(--paper-2); padding: 10px 12px; border-radius: 8px; display: block; }

/* Итог */
.final { text-align: left; }
.final__in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }

/* Подвал */
.foot { background: var(--paper-2); padding-block: 56px 40px; font-size: var(--fs-sm); color: var(--ink-2); }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h2 { margin: 0 0 12px; font: 700 var(--fs-sm)/1.2 var(--font-display); color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--key); text-decoration: underline; }
.foot__legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: var(--fs-xs); }

/* Внутренние страницы */
.crumbs { margin: 8px 0 0; font-size: var(--fs-sm); color: var(--ink-3); }
.crumbs a { color: var(--ink-3); }
.page-head { padding-block: clamp(36px, 6vw, 72px) 12px; max-width: 860px; }
.page-head .lead { margin-top: 18px; max-width: 54ch; }
.prose { max-width: 70ch; font-size: 1.125rem; line-height: 1.7; color: var(--ink-2); }
.prose h2 { font: 800 var(--fs-xl)/1.15 var(--font-display); letter-spacing: -.025em; color: var(--ink); margin: 2.2em 0 .6em; }
.prose h3 { font: 700 var(--fs-lg)/1.25 var(--font-display); color: var(--ink); margin: 1.8em 0 .4em; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--ink); }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--paper-2); padding: .1em .4em; border-radius: 6px; }
.callout { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--key); border-radius: 12px; padding: 18px 22px; margin: 1.6em 0; color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }
.table { width: 100%; border-collapse: collapse; margin: 1.4em 0 2em; font-size: var(--fs-sm); background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.table th, .table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.45; }
.table th { background: var(--paper-2); font: 700 var(--fs-sm)/1.3 var(--font-display); color: var(--ink); }
.table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.table-scroll .table { min-width: 640px; }
.cta-band { margin-top: 3em; background: var(--key); color: #fff; border-radius: var(--r-panel); padding: clamp(24px, 4vw, 40px); display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: 0 8px 0 var(--key-deep); }
.cta-band p { margin: 0; font: 700 var(--fs-xl)/1.15 var(--font-display); letter-spacing: -.02em; max-width: 22ch; }
.related { margin-top: 3em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; }
.related ul { list-style: none; padding: 0; display: grid; gap: 10px; }

/* Конвертер */
.tool { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.tool__col { display: grid; gap: 10px; }
.tool__col label { font: 700 var(--fs-sm)/1.2 var(--font-display); }
.tool textarea { width: 100%; min-height: 200px; padding: 16px; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--white); color: var(--ink); font: 500 1.1rem/1.6 var(--font-mono); resize: vertical; }
.tool__bar { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; align-items: center; }
.seg { display: inline-flex; background: var(--paper-2); border-radius: var(--r-key); padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; padding: 10px 14px; border-radius: 7px; font: 600 var(--fs-sm)/1 var(--font-text); color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 2px 6px -2px rgba(10, 18, 48, .25); }
.tool__status { font-size: var(--fs-sm); color: var(--ink-3); }

/* Руководство по стилю */
.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin: 24px 0 8px; }
.sw { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--white); font-size: var(--fs-xs); }
.sw i { display: block; height: 84px; }
.sw span { display: block; padding: 10px 12px; }
.sw b { display: block; font-size: var(--fs-sm); }

@media (max-width: 980px) {
  .hero__cols, .try, .row, .night__grid, .price, .tool { grid-template-columns: 1fr; }
  .trust, .kit, .steps, .proof__grid { grid-template-columns: 1fr; }
  .kit__item { padding-right: 0; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .stage__space { display: none; }
  .nav__link { display: none; }
}
@media (max-width: 560px) {
  .slab { width: calc(100% - 16px); border-radius: 26px; }
  .night { width: calc(100% - 16px); border-radius: 26px; }
  .slab::before { inset: 9px 9px 16px; border-radius: 20px; }
  .btn { width: 100%; }
  .btn--sm { width: auto; }
  .hero__cta { flex-direction: column; }
  .foot__grid { grid-template-columns: 1fr; }
  .stages > div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .line__new { opacity: 1; transform: none; }
  .line__old { display: none; }
}
