/* =============================================================================
   Art-Parts — витрина продукта. art-select.ru
   Светлая страница, один деловой синий акцент (#1B5FBF — тот же, что в самой
   программе, Design/Palette.Light.xaml), пастельные подложки у разделов.
   Тёмного варианта страницы нет сознательно: у витрины один узнаваемый вид,
   тёмная тема показана снимками программы отдельным блоком.
   Только системные шрифты — ничего не грузится с чужих серверов.
   ========================================================================== */

:root {
  /* ——— поверхности ——— */
  --surface:      #FFFFFF;
  --surface-2:    #F5F7FA;
  --sunken:       #EDF0F4;

  /* ——— пастельные подложки разделов ——— */
  --tint-blue:    #EDF2FA;
  --tint-mint:    #EFF5F1;
  --tint-sand:    #FAF6EF;
  --tint-lilac:   #F2F2FA;
  --tint-steel:   #EDEFF3;

  /* ——— линии ——— */
  --line:         #E3E6EA;
  --line-2:       #D3D9E0;

  /* ——— текст (контраст проверен скриптом, не на глаз) ——— */
  --ink:          #16191D;
  --ink-2:        #4C555E;
  --ink-3:        #626A73;
  --on-accent:    #FFFFFF;

  /* ——— акцент ——— */
  --accent:       #1B5FBF;
  --accent-hover: #1A56AC;
  --accent-press: #174B95;
  --accent-ink:   #17529F;
  --accent-soft:  rgba(27, 95, 191, .08);
  --accent-ring:  rgba(27, 95, 191, .32);

  /* ——— сигнальные ——— */
  --ok:           #0F7B41;
  --warn:         #8A5100;
  --danger:       #B03426;
  --info:         #0E6F8E;

  /* ——— тени: мягкие, без «парения» ——— */
  --sh-1: 0 1px 2px rgba(22,25,29,.05), 0 1px 3px rgba(22,25,29,.04);
  --sh-2: 0 2px 4px rgba(22,25,29,.04), 0 10px 28px rgba(22,25,29,.06);
  --sh-3: 0 4px 10px rgba(22,25,29,.05), 0 24px 56px rgba(22,25,29,.09);

  /* ——— скругления ——— */
  --r-xl: 20px;  --r-lg: 14px;  --r: 10px;  --r-sm: 8px;  --r-pill: 999px;

  /* ——— сетка ——— */
  --wrap: 1180px;
  --pad:  24px;
  --sec:  clamp(56px, 6.4vw, 104px);

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui,
          -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: Consolas, "Cascadia Mono", "SF Mono", "Liberation Mono", monospace;
}

/* ————————————————————————————————————————————————————— основа ——— */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; border: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(30px, 1.55rem + 2.2vw, 50px); line-height: 1.12; letter-spacing: -.025em; }
h2 { font-size: clamp(25px, 1.35rem + 1.5vw, 38px); line-height: 1.18; letter-spacing: -.02em; }
h3 { font-size: clamp(19px, 1.05rem + .45vw, 23px); line-height: 1.3; }
h4 { font-size: 17px; line-height: 1.4; }

p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a  { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
strong, b { font-weight: 600; color: var(--ink); }
ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin: 0 0 .45em; }
li:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--accent-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.mono { font-family: var(--font-mono); font-size: .94em; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; }

/* ————————————————————————————————————————————————————— раскладка ——— */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.section { padding: var(--sec) 0; }
.section--tint-blue  { background: var(--tint-blue); }
.section--tint-mint  { background: var(--tint-mint); }
.section--tint-sand  { background: var(--tint-sand); }
.section--tint-lilac { background: var(--tint-lilac); }
.section--tint-steel { background: var(--tint-steel); }
.section--soft       { background: var(--surface-2); }
.section--white      { background: var(--surface); }

.section__head { max-width: 800px; margin: 0 0 clamp(32px, 3.5vw, 52px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head p { color: var(--ink-2); font-size: clamp(17px, 1rem + .2vw, 19px); margin-top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 14px;
}
.eyebrow svg { width: 16px; height: 16px; flex: none; }

.lead { font-size: clamp(17px, 1rem + .35vw, 20px); line-height: 1.6; color: var(--ink-2); }
.note { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
.note a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; }
.note a:hover { color: var(--accent-ink); }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }

/* ————————————————————————————————————————————————————— кнопки ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  font: 600 16px/1 var(--font); letter-spacing: -.005em;
  border: 1px solid transparent; border-radius: var(--r);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .06s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 19px; height: 19px; flex: none; }

.btn--primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 1px 2px rgba(23,82,159,.24), 0 6px 16px rgba(23,82,159,.18);
}
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--primary:active { background: var(--accent-press); }

.btn--secondary {
  background: var(--surface); color: var(--ink); border-color: var(--line-2);
  box-shadow: var(--sh-1);
}
.btn--secondary:hover { background: var(--surface-2); border-color: #C2C9D2; }

.btn--ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn--ghost:hover { background: rgba(22,25,29,.05); }

.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: var(--r-sm); }
.btn--wide { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ————————————————————————————————————————————————————— шапка ——— */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 16px; height: 68px; position: relative; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; border-radius: 7px; flex: none; }
.brand__name { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }

.topnav { display: flex; gap: 2px; margin-left: auto; }
.topnav a {
  padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--ink-2); font-size: 15px; font-weight: 500;
  transition: background-color .15s ease, color .15s ease;
}
.topnav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.topnav a[aria-current="true"] { color: var(--accent-ink); background: var(--accent-soft); }

.topbar__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.nav-toggle {
  display: none; align-items: center; justify-content: center; flex: none;
  width: 42px; height: 42px; margin-left: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

@media (max-width: 1180px) {
  .topnav {
    /* .topbar__inner — это .wrap, его рамка уже во всю ширину экрана,
       поэтому 0/0, а не отрицательные отступы: иначе панель вылезает вбок */
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 10px var(--pad) 18px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-2);
    display: none;
  }
  .topnav.is-open { display: flex; }
  .topnav a { padding: 12px; font-size: 17px; }
  .topnav .nav-cta { display: inline-flex; margin-top: 10px; font-size: 16px; padding: 0 20px; }
  .topnav .nav-cta.btn--primary { color: #fff; }
  .topnav .nav-cta.btn--primary:hover { background: var(--accent-hover); }
  .topnav .nav-cta.btn--secondary:hover { background: var(--surface-2); }
  .nav-toggle { display: inline-flex; }
  .topbar__actions .btn--secondary { display: none; }
}
.nav-cta { display: none; }
@media (max-width: 560px) {
  .topbar__actions .btn { padding: 0 14px; font-size: 15px; }
  .brand__name { font-size: 18px; }
}
/* Страница длинная — на телефоне это 30 с лишним экранов. Раньше на самых узких
   ширинах кнопка из шапки просто пряталась, и единственный призыв уезжал в бургер:
   человек листал полчаса, и нажать было нечего. Кнопка остаётся, просто ужимается. */
@media (max-width: 430px) {
  .topbar__actions { display: flex; }
  .topbar__actions .btn { font-size: 13.5px; padding: 0 12px; min-height: 38px; white-space: nowrap; }
  .brand__name { font-size: 17px; }
  .brand__mark { width: 26px; height: 26px; }
  .topbar__inner { gap: 10px; }
}
@media (max-width: 359px) { .topbar__actions { display: none; } }
@media (max-width: 560px) {
  :root { --pad: 18px; }
  /* длинные подписи кнопок на телефоне переносятся, а не вылезают за экран */
  .btn { white-space: normal; line-height: 1.3; padding: 12px 18px; text-align: center; }
  .hero .btn-row .btn, .btn-row > .btn { width: 100%; }
  .topbar__actions .btn { white-space: nowrap; padding: 0 14px; }
}

/* ————————————————————————————————————————————————————— заставка ——— */
.hero { background: var(--surface-2); padding: clamp(40px, 5vw, 76px) 0 0; border-bottom: 1px solid var(--line); }
.hero__text { max-width: 880px; }
.hero__title { margin-bottom: 22px; }
.hero__title em { font-style: normal; color: var(--accent-ink); }
.hero__lead { font-size: clamp(17px, 1rem + .4vw, 20.5px); line-height: 1.58; color: var(--ink-2); max-width: 780px; }
.hero .btn-row { margin: 30px 0 16px; }
.hero__note { max-width: 640px; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px 6px 10px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  box-shadow: var(--sh-1);
}
.badge svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.badge--link {
  color: var(--accent-ink); font-weight: 600;
  border-color: var(--accent-ring); min-height: 34px;
}
.badge--link:hover { background: var(--accent-soft); text-decoration: none; }
.badge--link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* честная плашка */
.disclosure {
  display: flex; gap: 16px; align-items: flex-start;
  margin: 34px 0 0; padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--line-2);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
  max-width: 920px;
}
.disclosure svg { width: 22px; height: 22px; color: var(--ink-3); flex: none; margin-top: 3px; }
.disclosure p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

.hero__shot { margin-top: clamp(36px, 4vw, 56px); }

/* ————————————————————————————————————————————————————— снимки ——— */
.shot {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-2);
  padding: 8px; margin: 0;
}
.shot__frame {
  position: relative; display: block; width: 100%;
  border-radius: 9px; overflow: hidden; background: var(--surface-2);
  border: 0; padding: 0; cursor: zoom-in; color: inherit; font: inherit;
}
.shot__frame img { width: 100%; height: auto; }
.shot__zoom {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.94); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13px; font-weight: 500;
  box-shadow: var(--sh-1); opacity: 0; transition: opacity .15s ease;
  pointer-events: none;
}
.shot__frame:hover .shot__zoom,
.shot__frame:focus-visible .shot__zoom { opacity: 1; }
.shot__zoom svg { width: 15px; height: 15px; }

/* Где мыши нет, наведения тоже нет: на телефоне подсказку надо показывать всегда,
   иначе снимок выглядит просто мелкой картинкой, и никто не догадается по ней нажать. */
@media (hover: none), (pointer: coarse) {
  .shot__zoom {
    opacity: 1; right: 10px; bottom: 10px;
    padding: 8px 14px; font-size: 14px; font-weight: 600;
    color: var(--accent-ink); border-color: var(--accent-ring);
    background: rgba(255,255,255,.97); box-shadow: var(--sh-2);
  }
}

.shot figcaption {
  display: block; padding: 14px 12px 8px;
  font-size: 14.5px; line-height: 1.55; color: var(--ink-3);
}
.shot figcaption b { color: var(--ink-2); font-weight: 600; }

.hero__shot .shot { box-shadow: var(--sh-3); }

/* лупа */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(16,19,23,.74);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.lightbox.is-open { display: flex; }
.lightbox__stage { display: flex; max-width: 100%; max-height: calc(100vh - 110px); }
.lightbox img {
  max-width: 100%; max-height: calc(100vh - 110px);
  width: auto; border-radius: var(--r-lg); box-shadow: 0 24px 80px rgba(0,0,0,.4);
  background: #fff;
}
.lightbox__cap {
  position: absolute; left: 0; right: 0; bottom: 18px;
  text-align: center; color: #E8EBEF; font-size: 14px; padding: 0 24px;
}
.lightbox__hint { display: none; }
.lightbox__close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--r-sm); color: #fff; cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,.24); }

/* Если экран уже самого снимка, «вписать в экран» бессмысленно: окно программы шириной
   1120 точек, сжатое до 350, читать нельзя. Тогда снимок открывается в натуральную
   величину, а сцену листают пальцем. Класс вешает скрипт — по ширине конкретного снимка,
   а не по общей контрольной точке: узкие снимки тёмной темы влезают и на телефоне. */
.lightbox--pan { padding: 56px 0 62px; align-items: stretch; justify-content: stretch; }
.lightbox--pan .lightbox__stage {
  display: block; width: 100%; max-width: none; max-height: none;
  overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.lightbox--pan img {
  max-width: none; max-height: none; width: var(--shot-w, auto); height: auto;
  border-radius: 0; box-shadow: none;
}
.lightbox--pan .lightbox__cap { display: none; }
.lightbox--pan .lightbox__hint {
  display: block; position: absolute; left: 12px; right: 12px; bottom: 16px; margin: 0;
  text-align: center; color: #EDF0F4; font-size: 13.5px; line-height: 1.4;
  background: rgba(16,19,23,.78); border-radius: var(--r-pill); padding: 9px 14px;
}
.lightbox--pan .lightbox__close {
  top: 10px; right: 12px; width: 46px; height: 46px; background: rgba(16,19,23,.78);
}
.lightbox__close svg { width: 22px; height: 22px; }

/* ————————————————————————————————————————————————————— полоса цифр ——— */
.facts { border-bottom: 1px solid var(--line); background: var(--surface); padding: clamp(40px, 4vw, 56px) 0; }
.facts__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.fact { background: var(--surface); padding: 26px 24px; }
.fact__num {
  font-family: var(--font-display); font-size: clamp(28px, 1.4rem + 1.4vw, 40px);
  font-weight: 600; letter-spacing: -.03em; line-height: 1.05; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.fact__num span { color: var(--accent-ink); }
.fact__label { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
@media (max-width: 860px) { .facts__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .facts__grid { grid-template-columns: 1fr; } .fact { padding: 20px; } }

/* ————————————————————————————————————————————————————— карточки ——— */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 28px;
}
.card--pad-lg { padding: clamp(24px, 3vw, 40px); }
.card__title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.card__title h3 { margin: 0; }
.card p { color: var(--ink-2); font-size: 16px; }
.card h4 + p { margin-top: 6px; }

.icon-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 12px; background: var(--tint-blue); color: var(--accent);
  border: 1px solid rgba(27,95,191,.14);
}
.icon-chip svg { width: 23px; height: 23px; }
.icon-chip--mint  { background: #E6F1EA; color: #0F7B41; border-color: rgba(15,123,65,.16); }
.icon-chip--sand  { background: #F7EEDE; color: #8A5100; border-color: rgba(138,81,0,.16); }
.icon-chip--lilac { background: #ECECF8; color: #4B4B9E; border-color: rgba(75,75,158,.16); }
.icon-chip--steel { background: #E9ECF1; color: #4C555E; border-color: rgba(76,85,94,.16); }
.icon-chip--sm { width: 34px; height: 34px; border-radius: 9px; }
.icon-chip--sm svg { width: 18px; height: 18px; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

/* ————————————————————————————————————————————————————— боль → решение ——— */
.pain + .pain { margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.pain__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
@media (max-width: 900px) { .pain__body { grid-template-columns: minmax(0, 1fr); } }

.pain__quote {
  font-family: var(--font-display); font-size: clamp(21px, 1.1rem + .7vw, 27px);
  font-weight: 600; line-height: 1.28; letter-spacing: -.02em; color: var(--ink);
  margin: 0 0 16px;
}
.pain__label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 12px;
}
.pain__label svg { width: 15px; height: 15px; }
.pain__text { color: var(--ink-2); }

/* цепочка документов */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.chain li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.chain__step {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: 14.5px; font-weight: 500; color: var(--ink); box-shadow: var(--sh-1);
}
.chain__step svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.chain__arrow { width: 16px; height: 16px; color: var(--ink-3); flex: none; }

/* список с галочками */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; }
.ticks svg { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.ticks--ok svg { color: var(--ok); }
.ticks--muted svg { color: var(--ink-3); }
.ticks b { display: block; }
.ticks span { color: var(--ink-2); }

/* ————————————————————————————————————————————————————— таблицы ——— */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl {
  width: 100%; border-collapse: collapse; font-size: 15.5px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.tbl th, .tbl td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl thead th {
  background: var(--surface-2); font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td { color: var(--ink-2); }
.tbl td strong, .tbl td b { color: var(--ink); }

.tag {
  display: inline-block; padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.tag--work  { background: #E3EDFA; color: #17529F; }
.tag--queue { background: #EDEFF2; color: #4C555E; }
.tag--never { background: #F5EBDA; color: #7A4800; }

@media (max-width: 720px) {
  .tbl, .tbl thead, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; width: 100%; }
  .tbl { border: 0; background: transparent; }
  .tbl thead { display: none; }
  .tbl tbody tr {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); margin-bottom: 12px; padding: 8px 4px; box-shadow: var(--sh-1);
  }
  .tbl td { border: 0; padding: 8px 16px; }
  .tbl td.num { text-align: left; }
  .tbl td[data-label]::before {
    content: attr(data-label);
    display: block; font-size: 12px; font-weight: 600; letter-spacing: .05em;
    text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px;
  }
}

/* ————————————————————————————————————————————————————— замер ——— */
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .metric-grid { grid-template-columns: minmax(0, 1fr); } }
.metric {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 20px; box-shadow: var(--sh-1);
}
.metric__v {
  font-family: var(--font-display); font-size: 27px; font-weight: 600;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15;
}
.metric__k { font-size: 14px; color: var(--ink-3); margin-top: 4px; }

/* нумерованные шаги */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li {
  counter-increment: s; position: relative; padding-left: 46px; margin: 0;
  color: var(--ink-2);
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 14px; font-weight: 700; font-family: var(--font);
}
.steps b { color: var(--ink); }

/* ————————————————————————————————————————————————————— схема сети ——— */
.topo { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 20px; align-items: center; }
.topo__node {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--sh-1);
}
.topo__node h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.topo__node h4 svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.topo__node ul { margin: 0; padding-left: 1.1em; font-size: 15px; color: var(--ink-2); }
.topo__link { display: grid; justify-items: center; gap: 6px; color: var(--ink-3); font-size: 13px; text-align: center; }
.topo__link svg { width: 72px; height: 24px; color: var(--accent); }
.topo__foot {
  grid-column: 1 / -1; margin-top: 4px; padding-top: 16px; border-top: 1px dashed var(--line-2);
  font-size: 14.5px; color: var(--ink-3); text-align: center;
}
@media (max-width: 780px) {
  .topo { grid-template-columns: minmax(0,1fr); }
  .topo__link svg { transform: rotate(90deg); width: 24px; height: 72px; }
}

/* ————————————————————————————————————————————————————— вкладки экранов ——— */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; /* палец, а не курсор: меньше 44 точек — уже промахи */
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2);
  font: 500 15px/1 var(--font); cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.tab svg { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
.tab:hover { background: var(--surface-2); color: var(--ink); }
.tab[aria-selected="true"] {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 1px 2px rgba(23,82,159,.24), 0 4px 12px rgba(23,82,159,.16);
}
.tab[aria-selected="true"] svg { color: #fff; }
.tabpanel[hidden] { display: none; }

/* ————————————————————————————————————————————————————— тёмная тема ——— */
.dark-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
@media (max-width: 860px) { .dark-grid { grid-template-columns: minmax(0,1fr); max-width: 520px; margin: 0 auto; } }
.dark-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; box-shadow: var(--sh-1); margin: 0; }
.dark-card figcaption { padding: 12px 10px 6px; font-size: 14px; color: var(--ink-3); }

/* ————————————————————————————————————————————————————— цена ——— */
.price-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: stretch; }
.price-cols > .card { display: flex; flex-direction: column; }
@media (max-width: 900px) { .price-cols { grid-template-columns: minmax(0,1fr); } }
.rival { font-size: 15.5px; }
.rival__row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.rival__row:last-child { border-bottom: 0; }
.rival__row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rival__total {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  margin: 16px 0 0; padding: 14px 18px;
}
.rival__total .rival__row { border: 0; padding: 4px 0; }

/* ————————————————————————————————————————————————————— скачивание ——— */
.download {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: clamp(16px, 2vw, 28px); align-items: center;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl);
  padding: clamp(22px, 2.6vw, 32px); box-shadow: var(--sh-2);
}
.download__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; color: var(--ink-3); margin-top: 8px; }
.download__meta span { display: inline-flex; align-items: center; gap: 6px; }
.download__meta svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 860px) {
  .download { grid-template-columns: minmax(0,1fr); }
  .download .btn { width: 100%; }
}
/* Контрольную сумму сверяют символ в символ — мельче 13 точек этого на телефоне не сделать. */
.hash { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); word-break: break-all; }

/* ————————————————————————————————————————————————————— форма ——— */
.form-cols { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .form-cols { grid-template-columns: minmax(0,1fr); } }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); padding: clamp(24px, 3vw, 36px); }
.field { margin-bottom: 20px; }
.field--consent { margin-bottom: 24px; }
.field > label, .field__legend {
  display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; padding: 0;
}
.field__hint { font-size: 13.5px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }

.input, .select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 16px/1.4 var(--font); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none; -webkit-appearance: none;
}
.input::placeholder { color: #8A929B; }  /* 3.15:1 на белом — подсказка читается и при ярком свете */
.input:hover, .select:hover { border-color: #B9C1CA; }
.input:focus, .select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234C555E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
  padding-right: 42px;
}
.field--invalid .input, .field--invalid .select { border-color: var(--danger); }
.field--invalid .input:focus, .field--invalid .select:focus { box-shadow: 0 0 0 3px rgba(176,52,38,.24); }
.field__error { display: none; margin-top: 7px; font-size: 14px; color: var(--danger); }
.field--invalid .field__error { display: block; }

fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.choice-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
@media (max-width: 520px) { .choice-row { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.choice { position: relative; margin: 0; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 6px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; text-align: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.choice span:hover { border-color: #B9C1CA; background: var(--surface-2); }
.choice input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--accent-ring); outline-offset: 2px; }

/* специфичность выше, чем у `.field > label` выше по файлу, иначе строка съезжает под галочку */
.field > .consent {
  display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 12px; align-items: start;
  font-size: 14.5px; font-weight: 400; line-height: 1.5; color: var(--ink-2);
  cursor: pointer; margin-bottom: 0;
}
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }

.honeypot { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 16px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.form-status:empty { margin: 0; }
.form-status--err { color: var(--danger); }

.form-done[hidden] { display: none; }
.form-done h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.form-done h3 svg { width: 30px; height: 30px; color: var(--ok); flex: none; }

/* ————————————————————————————————————————————————————— подвал ——— */
.footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: clamp(40px, 4vw, 64px) 0 32px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0,1fr)); gap: 32px; }
@media (max-width: 780px) { .footer__grid { grid-template-columns: minmax(0,1fr); gap: 28px; } }
.footer h4 { font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; font-family: var(--font); font-weight: 600; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15.5px; }
.footer__links li { margin: 0; }
.footer__links a { color: var(--ink-2); }
.footer__links a:hover { color: var(--accent-ink); }
.footer__legal {
  margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.6; color: var(--ink-3);
  display: grid; gap: 10px;
}
.footer__legal p { margin: 0; max-width: 900px; }

/* ————————————————————————————————————————————————————— мелочи ——— */
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 15.5px; line-height: 1.6; color: var(--ink-2);
}
.callout svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--ink-3); }
.callout--accent { background: var(--tint-blue); border-color: rgba(27,95,191,.18); }
.callout--accent svg { color: var(--accent); }

.q { margin: 0; }
.q + .q { margin-top: 14px; }
.q summary {
  display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none;
  padding: 20px 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
  font-family: var(--font-display); font-size: clamp(17px, 1rem + .25vw, 19.5px); font-weight: 600; color: var(--ink);
}
.q summary::-webkit-details-marker { display: none; }
.q summary::marker { content: ""; }
.q summary:hover { background: var(--surface-2); }
.q summary .chev { width: 20px; height: 20px; margin-left: auto; color: var(--ink-3); transition: transform .2s ease; flex: none; }
.q[open] summary { border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom-color: transparent; }
.q[open] summary .chev { transform: rotate(180deg); }
.q__body {
  padding: 4px 24px 24px; background: var(--surface);
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg);
  color: var(--ink-2); font-size: 16px;
}
.q__body p + p, .q__body ol, .q__body ul { margin-top: 12px; }

.split-cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
@media (max-width: 720px) { .split-cols { grid-template-columns: minmax(0,1fr); } }
.split-col h4 { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.split-col h4 svg { width: 19px; height: 19px; flex: none; }
.split-col--on h4 svg { color: var(--ok); }
.split-col--off h4 svg { color: var(--ink-3); }
.split-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15.5px; color: var(--ink-2); }
.split-col li { padding-left: 22px; position: relative; margin: 0; }
.split-col li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--line-2);
}
.split-col--on li::before { background: #8FC4A6; }

.month-list { counter-reset: m; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 780px) { .month-list { grid-template-columns: minmax(0,1fr); } }
.month-list li {
  counter-increment: m; margin: 0; padding: 22px 24px 22px 64px; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  font-size: 15.5px; color: var(--ink-2);
}
.month-list li::before {
  content: counter(m); position: absolute; left: 22px; top: 22px;
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #ECECF8; color: #43439A; font-size: 14px; font-weight: 700;
}
.month-list b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 16.5px; }

.pill-note {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 14px; color: var(--ink-3);
}
.pill-note svg { width: 16px; height: 16px; flex: none; }

/* страница политики */
.doc { max-width: 800px; padding: clamp(40px, 5vw, 72px) 0; }
.doc h1 { margin-bottom: 24px; }
.doc h2 { font-size: clamp(20px, 1.1rem + .6vw, 25px); margin: 40px 0 14px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16.5px; }
.doc .note { font-size: 14.5px; }
