/* ============================================================================
   SmartRecruit Workforce — дизайн-система платформы.

   Отличие от материнского smartrecruit.pro: там светлый корпоративный сайт
   агентства, здесь — продуктовая платформа, поэтому база тёмная, «чернильная».
   Приём взят из концепта play1.bet: одна тёмная база, ОДИН акцент на деньги
   и один на «идёт сейчас», всё остальное — оттенки поверхностей. Пять
   конкурирующих цветов — главный дефект, который мы там измерили и убрали.
   ========================================================================== */

:root {
  /* база */
  --ink:        #080D19;   /* фон страницы */
  --surface:    #0F1626;   /* карточка */
  --surface-2:  #162034;   /* карточка на карточке, поля ввода */
  --line:       #1F2B44;   /* границы */
  --line-soft:  #172135;

  /* текст */
  --text:       #EAF0FA;
  --text-dim:   #94A3BD;
  --text-mute:  #64748F;

  /* бренд — унаследован от smartrecruit.pro, чтобы связка читалась */
  --brand:      #2E9BD6;
  --brand-2:    #59BDEE;
  --brand-deep: #12294F;

  /* ровно два семантических акцента, больше вводить нельзя */
  --live:       #22E39A;   /* «доступен», «смена идёт», подтверждение */
  --money:      #FFC933;   /* только ставки, суммы, экономия */
  --warn:       #FF7A5C;
  --bad:        #FF5470;

  --radius:     14px;
  --radius-sm:  10px;
  --radius-lg:  22px;
  --shadow:     0 18px 50px -22px rgba(0, 0, 0, .85);
  --glow:       0 0 0 1px rgba(46, 155, 214, .28), 0 22px 60px -30px rgba(46, 155, 214, .55);

  --wrap:       1240px;   /* как --maxw у сайта агентства */
  --step:       clamp(56px, 7vw, 104px);   /* вертикальный ритм секций */

  /* Шрифты как в концепте play1: Archivo с осью ширины + IBM Plex Mono. */
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: var(--font);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  /* clip, а не hidden: hidden создаёт скролл-контейнер и убивает position:sticky */
  overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(46, 155, 214, .35); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.018em;
  margin: 0; line-height: 1.1;
  /* расширенное начертание — приём из play1 */
  font-stretch: 112%; font-variation-settings: "wdth" 112; }
h1 { font-size: clamp(38px, 6.2vw, 74px); letter-spacing: -.035em; }
h2 { font-size: clamp(28px, 3.9vw, 46px); letter-spacing: -.028em; }
h3 { font-size: clamp(19px, 1.7vw, 23px); }
p  { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--step) 0; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-dim); line-height: 1.6; }
.dim { color: var(--text-dim); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.mw-720 { max-width: 720px; }
.mw-640 { max-width: 640px; }

/* ---------- надзаголовок секции ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11.5px/1 var(--font); letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #04121E; box-shadow: 0 12px 30px -14px rgba(46,155,214,.9); }
.btn--primary:hover { background: var(--brand-2); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--brand); background: rgba(46,155,214,.08); }
.btn--live { background: var(--live); color: #032418; }
.btn--live:hover { filter: brightness(1.08); }
.btn--sm { padding: 9px 16px; font-size: 13.5px; }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- шапка ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8, 13, 25, .78); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.hdr__in { display: flex; align-items: center; gap: 22px; height: 68px; min-width: 0; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; flex: 0 0 auto; }
.logo__mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand) 0%, #1B6FA8 100%);
  color: #041320; font-size: 13px; font-weight: 700; letter-spacing: -.03em;
}
.logo__sub { color: var(--text-mute); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; min-width: 0; }
.nav a {
  padding: 8px 12px; border-radius: 9px; font-size: 14.5px; color: var(--text-dim);
  transition: color .15s ease, background .15s ease; white-space: nowrap;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(46,155,214,.12); }
/* ссылка назад в агентство отделена от пунктов самой платформы */
.nav__back { margin-left: 10px; padding-left: 16px !important; position: relative; color: var(--text-mute) !important; }
.nav__back::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
                     width: 1px; height: 16px; background: var(--line); }
.hdr__cta { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; padding: 0; }
.burger span { display: block; width: 16px; height: 1.5px; background: var(--text); margin: 3.5px auto; transition: .2s; }
.mobnav { display: none; border-top: 1px solid var(--line-soft); padding: 10px 0 18px; }
.mobnav.is-open { display: block; }
.mobnav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line-soft); color: var(--text-dim); font-size: 15px; }
/* Кнопка внутри меню наследовала стиль пункта списка: серый текст на синем фоне
   и линия снизу. Специфичность «.mobnav a» выше, чем у «.btn--primary», поэтому
   перебиваем явно. Показываем её только там, где такой же кнопки нет в шапке —
   иначе на планшетной ширине один и тот же призыв стоял дважды на экране. */
.mobnav .btn { display: none; width: calc(100% - 8px); margin: 16px 4px 4px;
  border-bottom: 0; padding: 14px 22px; font-size: 15px; }
.mobnav .btn--primary { color: #04121E; }
@media (max-width: 680px) { .mobnav .btn { display: inline-flex; } }

/* переключатель языка */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent;
  font-size: 13.5px; color: var(--text-dim); cursor: pointer;
}
.lang__btn:hover { border-color: var(--brand); color: var(--text); }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); display: none; z-index: 70;
}
.lang.is-open .lang__list { display: block; }
.lang__list a { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 8px; font-size: 14px; color: var(--text-dim); }
.lang__list a:hover { background: var(--surface-2); color: var(--text); }
.lang__list a[aria-current="true"] { color: var(--brand-2); }

/* ---------- герой ---------- */
.hero { position: relative; padding: clamp(52px, 8vw, 96px) 0 var(--step); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -30% 30% 40% -10%; pointer-events: none;
  background: radial-gradient(58% 52% at 30% 32%, rgba(46,155,214,.20) 0%, transparent 68%);
  filter: blur(12px);
}
.hero::after {
  content: ""; position: absolute; right: -12%; top: -18%; width: 62%; height: 78%; pointer-events: none;
  background: radial-gradient(48% 48% at 60% 40%, rgba(34,227,154,.12) 0%, transparent 70%);
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 33em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__note { margin-top: 18px; font-size: 13.5px; color: var(--text-mute); }

.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(46,155,214,.07);
  font-size: 13px; color: var(--text-dim); margin-bottom: 24px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(34,227,154,.16); }

/* ---------- сравнение наценки: главный визуальный аргумент ---------- */
.compare { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.compare__title { font-family: var(--display); font-size: 18px; margin-bottom: 4px; }
.compare__sub { font-size: 13px; color: var(--text-mute); margin-bottom: 22px; }
/* Разложение часа: одна полоса из трёх долей вместо двух конкурирующих полос.
   Цвета — существующие токены: ставка нейтральная, отчисления приглушённые,
   наценка «денежным» акцентом, потому что это единственная строка, которую
   зарабатываем мы. */
.stack { display: flex; height: 12px; border-radius: 999px; overflow: hidden;
         background: var(--surface-2); margin: 6px 0 22px; }
.seg { display: block; height: 100%; }
.seg--pay    { background: linear-gradient(90deg, #3E5B85, #4E74A8); }
.seg--cost   { background: #2B3D5C; }
.seg--margin { background: linear-gradient(90deg, var(--brand), var(--money)); }
.pline { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0;
         border-top: 1px solid var(--line-soft); }
.pline:first-of-type { border-top: 0; }
.pline__dot { width: 9px; height: 9px; border-radius: 3px; margin-top: 5px; flex: 0 0 auto; }
.pline__t { flex: 1 1 auto; min-width: 0; }
.pline__t b { display: block; font-size: 14.5px; font-weight: 600; }
.pline__t small { display: block; font-size: 12.5px; color: var(--text-mute); line-height: 1.45; margin-top: 3px; }
.pline__p { font-family: var(--mono); font-size: 14px; color: var(--text-dim); flex: 0 0 auto; }

.bar { margin-bottom: 18px; }
.bar__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; margin-bottom: 8px; }
.bar__head b { font-family: var(--mono); font-size: 15px; }
.bar__track { height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; }
.bar--old .bar__fill { background: linear-gradient(90deg, #4A5876, #6D7C9E); }
.bar--old b { color: var(--text-dim); }
.bar--new .bar__fill { background: linear-gradient(90deg, var(--brand), var(--live)); }
.bar--new b { color: var(--money); }
.compare__foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-dim); }
.compare__foot b { color: var(--money); font-family: var(--mono); }

/* ---------- статистика ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--ink); padding: 22px 20px; }
.stat__n { font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.03em; }
.stat__n.is-money { color: var(--money); }
.stat__n.is-live { color: var(--live); }
.stat__l { font-size: 13px; color: var(--text-mute); margin-top: 5px; }

/* ---------- карточки ---------- */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: rgba(46,155,214,.4); transform: translateY(-2px); }
.card h3 { margin-bottom: 9px; }
.card p { font-size: 14.5px; color: var(--text-dim); }
.card__ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(46,155,214,.18), rgba(46,155,214,.06));
  color: var(--brand-2); margin-bottom: 18px; border: 1px solid rgba(46,155,214,.22);
}
.card__ico svg { width: 22px; height: 22px; }
.card--live .card__ico {
  background: linear-gradient(150deg, rgba(255,159,69,.2), rgba(255,159,69,.05));
  color: var(--warn); border-color: rgba(255,159,69,.28);
}
/* иконка в надзаголовке отрасли */
.badge--ico { padding-left: 8px; }
.badge--ico svg { width: 17px; height: 17px; color: var(--brand-2); }

/* две аудитории */
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.aud { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.aud--talent { background: linear-gradient(170deg, rgba(34,227,154,.06), var(--surface) 55%); }
.aud__tag { font: 600 11.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px; display: block; }
.aud--talent .aud__tag { color: var(--live); }
.checks { list-style: none; margin: 20px 0 24px; padding: 0; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 11px; font-size: 14.5px; color: var(--text-dim); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(46,155,214,.15); border: 1px solid rgba(46,155,214,.35);
}
.checks li::after { content: ""; position: absolute; left: 5px; top: 10px; width: 5px; height: 8px; border: solid var(--brand-2); border-width: 0 1.6px 1.6px 0; transform: rotate(42deg); }
.aud--talent .checks li::before { background: rgba(34,227,154,.14); border-color: rgba(34,227,154,.35); }
.aud--talent .checks li::after { border-color: var(--live); }

/* ---------- шаги ---------- */
.steps { counter-reset: s; display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--ink); padding: 26px; display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start; }
.step__n {
  counter-increment: s; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono);
  font-size: 14px; color: var(--brand-2);
}
.step__n::before { content: "0" counter(s); }
.step h3 { font-size: 18px; margin-bottom: 7px; }
.step p { font-size: 14.5px; color: var(--text-dim); margin: 0; }

/* ---------- тарифы ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; position: relative; }
.plan--hot { border-color: rgba(46,155,214,.55); box-shadow: var(--glow); }
.plan__tag {
  position: absolute; top: -11px; left: 30px; padding: 4px 12px; border-radius: 999px;
  background: var(--brand); color: #041320; font: 600 11px/1.6 var(--font); letter-spacing: .06em; text-transform: uppercase;
}
.plan__name { font-family: var(--display); font-size: 20px; margin-bottom: 6px; }
.plan__for { font-size: 13px; color: var(--text-mute); min-height: 38px; }
.plan__price { font-family: var(--display); font-size: 40px; font-weight: 600; letter-spacing: -.035em; margin: 16px 0 2px; }
.plan__price small { font-family: var(--font); font-size: 14px; font-weight: 400; color: var(--text-mute); letter-spacing: 0; }
.plan__unit { font-size: 13px; color: var(--text-mute); margin-bottom: 22px; }
.plan .checks li { font-size: 14px; margin-bottom: 9px; }
.plan .btn { margin-top: 6px; }

/* таблица */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
table.t th { text-align: left; padding: 14px 18px; background: var(--surface-2); font-weight: 600; font-size: 13px; color: var(--text-dim); white-space: nowrap; }
table.t td { padding: 13px 18px; border-top: 1px solid var(--line-soft); color: var(--text-dim); }
table.t td:first-child { color: var(--text); }
table.t tr:hover td { background: rgba(255,255,255,.02); }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  padding: 20px 54px 20px 22px; cursor: pointer; list-style: none; position: relative;
  font-weight: 500; font-size: 15.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 26px; width: 9px; height: 9px;
  border: solid var(--text-mute); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq__a { padding: 0 22px 20px; font-size: 14.5px; color: var(--text-dim); }

/* ---------- CTA-полоса ---------- */
.cta {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 52px);
  background: linear-gradient(150deg, rgba(46,155,214,.13), rgba(34,227,154,.05) 60%, var(--surface) 100%);
  text-align: center;
}
.cta h2 { margin-bottom: 14px; }
.cta__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- подвал ---------- */
.ftr { border-top: 1px solid var(--line-soft); padding: 54px 0 34px; margin-top: var(--step); }
.ftr__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; margin-bottom: 40px; }
.ftr__about { font-size: 14px; color: var(--text-mute); max-width: 34ch; margin-top: 14px; }
.ftr h4 { font-family: var(--font); font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px; font-weight: 600; }
.ftr__col a { display: block; padding: 5px 0; font-size: 14.5px; color: var(--text-dim); }
.ftr__col a:hover { color: var(--brand-2); }
.ftr__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--text-mute); }

/* ---------- формы ---------- */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  font: 400 15px/1.4 var(--font); outline: none; transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); }
.field textarea { min-height: 96px; resize: vertical; }
.formnote { display: none; margin-top: 12px; font-size: 13.5px; color: var(--live); }
.formnote.is-on { display: block; }
.formnote.is-bad { color: var(--bad); }
.formnote.is-bad a { color: inherit; text-decoration: underline; font-weight: 600; }
.consent { font-size: 12px; color: var(--text-mute); margin-top: 12px; }
.consent a { color: var(--text-dim); text-decoration: underline; }

/* ---------- попап заявки ---------- */
.pop {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(4, 8, 16, .72); backdrop-filter: blur(4px);
}
.pop.is-open { display: flex; animation: popIn .22s ease; }
@keyframes popIn { from { opacity: 0 } to { opacity: 1 } }
.pop__box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  max-width: 440px; width: 100%; padding: 30px; position: relative;
  box-shadow: var(--shadow); max-height: 92vh; overflow-y: auto;
}
.pop.is-open .pop__box { animation: popUp .26s cubic-bezier(.2, .8, .3, 1); }
@keyframes popUp { from { transform: translateY(14px) scale(.98) } to { transform: none } }
.pop__close {
  position: absolute; right: 12px; top: 10px; width: 34px; height: 34px;
  border: none; background: none; font-size: 24px; color: var(--text-mute);
  cursor: pointer; line-height: 1; border-radius: 8px; transition: .15s ease;
}
.pop__close:hover { color: var(--text); background: var(--surface-2); }

/* ---------- адаптив ---------- */
/* Меню платформы не переносится и при нехватке места наезжает на правый блок.
   Замер после добавления пункта «Агентство»: логотип 241 + меню 610 +
   правый блок 337 + зазоры 44 — порог считаем по факту, не на глаз. */
@media (max-width: 1220px) {
  .nav { display: none; }
  .burger { display: block; }
  .hero__in { grid-template-columns: 1fr; }
  .ftr__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .wrap { padding: 0 18px; }
  .g2, .g3, .g4, .split { grid-template-columns: 1fr; }
  .ftr__top { grid-template-columns: 1fr; gap: 26px; }
  .hdr__in { height: 60px; gap: 10px; }
  /* В шапке на телефоне остаются только логотип, флаг языка и бургер.
     Обе кнопки уходят в мобильное меню: иначе ряд не помещается и выдавливает
     страницу в горизонтальный скролл — измерено, 538px при вьюпорте 375. */
  .hdr__cta .btn { display: none; }
  .lang__btn { padding: 8px 10px; font-size: 0; gap: 0; }
  .lang__btn::first-line { font-size: 15px; }
  .logo__sub { display: none; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .card, .aud, .plan, .form { padding: 22px; }
  .btn { white-space: normal; }
  .mobnav .btn { display: inline-flex; }
}
/* флаг в свёрнутой кнопке языка должен остаться видимым */
@media (max-width: 680px) {
  .lang__btn { color: transparent; }
  .lang__btn { font-size: 15px; width: 40px; height: 40px; justify-content: center;
               overflow: hidden; text-indent: -100px; position: relative; }
  .lang__btn::after { content: "🌐"; position: absolute; inset: 0; display: grid;
                      place-items: center; text-indent: 0; color: var(--text-dim); font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ============================================================================
   Интерактивность: отклик на наведение, фокус и ввод.
   Правило — подсветка строится на существующих токенах, новых цветов нет.
   ========================================================================== */

/* Видимый фокус с клавиатуры. :focus-visible, а не :focus — иначе рамка
   появляется и после клика мышью, что выглядит как дефект. */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px;
}

/* Кнопки: подъём и свечение под курсором, честное нажатие */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.22), transparent 80%);
  transform: translateX(-120%); transition: transform .55s ease; pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -16px rgba(46,155,214,1); }
.btn--live:hover    { transform: translateY(-2px); box-shadow: 0 18px 38px -16px rgba(34,227,154,.9); }
.btn--ghost:hover   { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
.btn[disabled]::after { display: none; }

/* Поля: подсветка рамки и мягкое кольцо при фокусе */
.field { position: relative; }
.field input, .field textarea, .field select {
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field input:hover, .field textarea:hover { border-color: #2A3A59; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46,155,214,.18);
  background: rgba(46,155,214,.05);
}
/* подпись подсвечивается вместе с полем — видно, где ты находишься */
.field:focus-within label { color: var(--brand-2); }
.field label { transition: color .16s ease; }

/* Заполненное поле помечаем спокойной галочкой слева от рамки */
.field input:not(:placeholder-shown):valid { border-color: rgba(34,227,154,.45); }
/* Ошибку показываем только после того, как человек реально ошибся,
   а не пока он ещё печатает — для этого :user-invalid, а не :invalid. */
.field input:user-invalid, .field textarea:user-invalid {
  border-color: var(--bad); box-shadow: 0 0 0 3px rgba(255,84,112,.15);
}

/* Карточки тарифов и отраслей — отклик на наведение */
.plan { transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.plan:hover { transform: translateY(-3px); border-color: rgba(46,155,214,.45); box-shadow: var(--shadow); }
.card__ico { transition: transform .2s ease, background .2s ease; }
.card:hover .card__ico { transform: scale(1.07); }

/* Пункт FAQ: подсветка строки под курсором */
.faq summary { transition: background .15s ease, color .15s ease; }
.faq summary:hover { background: rgba(46,155,214,.06); color: var(--brand-2); }

@media (prefers-reduced-motion: reduce) {
  .btn::after { display: none; }
  .btn:hover, .plan:hover, .card:hover .card__ico { transform: none; }
}
