/* ============================================================
   LMSka — главная страница (RU). Дизайн-система.
   Тема: LIGHT ONLY (по требованию заказчика — чистый белый фон).
   Акцент: изумрудный #11B481 — единственный акцент на всей странице.
   Радиусы (документированное правило):
     --r-card    20px — карточки, панели, изображения
     --r-control 12px — кнопки, поля, табы
     --r-pill   999px — только мелкие бейджи и метки
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body,
h1, h2, h3, h4, h5, p, figure, blockquote, ul, ol, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- 2. Токены ---------- */
:root {
  /* Акцент */
  --brand:      rgb(17, 180, 129);
  --brand-600:  #0E9E71;
  --brand-700:  #0B845E;
  --brand-100:  #D3F2E5;
  --brand-50:   #EDFAF4;
  --brand-tint: #F6FCFA;

  /* Нейтральные */
  --bg:      #FFFFFF;
  --surface: #FAFBFB;
  --ink:     #0F1513;
  --ink-2:   #4E5A57;
  --ink-3:   #7B8783;
  --line:    #E5EAE8;
  --line-2:  #EFF3F2;

  /* Радиусы */
  --r-card: 20px;
  --r-control: 12px;
  --r-sm: 10px;
  --r-pill: 999px;

  /* Тени — тонированы под фон, без чистого чёрного */
  --sh-1: 0 1px 2px rgba(15, 33, 28, .04), 0 4px 14px rgba(15, 33, 28, .05);
  --sh-2: 0 2px 6px rgba(15, 33, 28, .05), 0 18px 42px rgba(15, 33, 28, .08);
  --sh-brand: 0 6px 18px rgba(17, 180, 129, .22);

  /* Кривые (Emil Kowalski) */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);

  /* Ритм */
  --shell: 1240px;
  --gut: 24px;
  --sec-y: 104px;

  /* Слои */
  --z-header: 100;
  --z-drawer: 200;
}

@media (max-width: 900px) {
  :root { --sec-y: 68px; --gut: 18px; }
}

/* ---------- 3. Типографика ---------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Onest', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip, а не hidden: hidden на body ломает position:sticky у шапки */
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.022em;
  text-wrap: balance;
}

.h-display { font-size: clamp(34px, 5vw, 58px); }
.h1 { font-size: clamp(32px, 4.4vw, 52px); }
.h2 { font-size: clamp(27px, 3.2vw, 40px); }
.h3 { font-size: clamp(20px, 2vw, 25px); line-height: 1.22; }
.h4 { font-size: 18px; line-height: 1.3; }

.lead {
  font-size: clamp(17px, 1.35vw, 20px);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 62ch;
}

.muted { color: var(--ink-2); }
.small { font-size: 15px; line-height: 1.55; }
.tiny  { font-size: 13.5px; line-height: 1.5; }

/* Надзаголовок. Бюджет по всей странице: не более 5 штук. */
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 14px;
}

.accent { color: var(--brand-700); }
strong, b { font-weight: 700; }

/* ---------- 4. Каркас ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: var(--sec-y); }
.section--tint { background: var(--brand-tint); }
.section--surface { background: var(--surface); }
.section--tight { padding-block: calc(var(--sec-y) * .62); }

.sec-head { max-width: 760px; margin-bottom: 52px; }
.sec-head .lead { margin-top: 16px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .lead { margin-inline: auto; }

.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- 5. Кнопки ---------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  padding: 14px 26px;
  border-radius: var(--r-control);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: 16px;
  line-height: 1.2;
  transition: background-color 180ms var(--ease-out),
              transform 160ms var(--ease-out),
              box-shadow 180ms var(--ease-out),
              border-color 180ms var(--ease-out);
}

.btn:focus-visible {
  outline: 2px solid var(--brand-700);
  outline-offset: 3px;
}

.btn:active { transform: scale(.97); }

.btn--primary { box-shadow: var(--sh-brand); }
.btn--secondary {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--sh-1);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--brand-700);
  padding-inline: 0;
}
.btn--lg { padding: 17px 32px; font-size: 17px; }
.btn--sm { padding: 10px 18px; font-size: 15px; }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--brand-600); box-shadow: 0 8px 22px rgba(17,180,129,.3); }
  .btn--secondary:hover { border-color: #D2DAD7; box-shadow: var(--sh-2); }
  .btn--ghost:hover { color: var(--brand); }
}

.btn .ico { font-size: 20px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Текстовая ссылка со стрелкой */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  color: var(--brand-700);
  transition: gap 180ms var(--ease-out), color 180ms var(--ease-out);
}
.link-arrow .ico { font-size: 19px; }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover { gap: 11px; color: var(--brand); }
}

/* ---------- 6. Иконки (Material Symbols — как на текущем сайте) ---------- */
.ico {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  flex: none;
  user-select: none;
}

.ico-badge {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--brand-50);
  color: var(--brand-700);
  flex: none;
}
.ico-badge .ico { font-size: 25px; }

/* ---------- 7. Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.header[data-stuck='true'] {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 14px rgba(15, 33, 28, .04);
}
@media (prefers-reduced-transparency: reduce) {
  .header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.header__in {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.header__logo img { height: 30px; width: auto; }

/* 6 пунктов должны помещаться в одну строку при 1240px */
.nav__list {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-inline-start: 6px;
}
.nav__list > li {
  position: relative;
  list-style: none;
}
.nav__list a {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 550;
  color: var(--ink-2);
  padding-block: 6px;
  position: relative;
  transition: color 180ms var(--ease-out);
  text-decoration: none;
}

.nav__list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}

/* ---------- Подменю ---------- */

.submenu {
  position: absolute;
  top:100% ;
  left: 0;
  min-width: 220px;
  margin: 0;
  list-style: none;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  box-shadow: var(--sh-2);

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity .2s,
    transform .2s,
    visibility .2s;
  z-index: 100;
}

.submenu li {
  margin: 0;
}

.submenu a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--ink);
}

.submenu a::after {
  display: none;
}

/* ---------- Hover ---------- */

@media (hover: hover) and (pointer: fine) {
  .nav__list a:hover {
    color: var(--ink);
  }

  .nav__list a:hover::after {
    transform: scaleX(1);
  }

  .nav__list > li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__list > li:hover > .menu-arrow {
    transform: rotate(225deg);
  }

  .submenu a:hover {
    background: var(--brand-50);
    color: var(--brand-700); 
    border-radius: var(--r-sm);
  }
}
.header__side {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Переключатель языка */
.lang { position: relative; }
.lang__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background-color 160ms var(--ease-out);
}
.lang__btn img { width: 18px; height: 13px; border-radius: 2px; }
.lang__btn:hover { background: var(--line-2); }
.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 128px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  box-shadow: var(--sh-2);
  transform-origin: top right;
  transform: scale(.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out), visibility 150ms;
}
.lang[data-open='true'] .lang__menu { opacity: 1; visibility: visible; transform: scale(1); }
.lang__menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 550;
}
.lang__menu a:hover { background: var(--brand-50); color: var(--brand-700); }
.lang__menu img { width: 18px; height: 13px; border-radius: 2px; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  place-items: center;
  color: var(--ink);
}
.burger .ico { font-size: 26px; }

/* Мобильное меню */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  background: #fff;
  padding: 20px var(--gut) 36px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 220ms;
}
.drawer[data-open='true'] { opacity: 1; visibility: visible; transform: translateY(0); }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.drawer__nav { display: grid; gap: 2px; margin-top: 24px; }
.drawer__nav > a,
.drawer__submenu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  font-size: 19px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
  list-style: none;
}
.drawer__submenu summary::-webkit-details-marker {
  display: none;
}
.menu-arrow {
  transition: transform .2s;
}
.drawer__submenu[open] .menu-arrow {
  transform: rotate(180deg);
}

.drawer__submenu-list {
  display: grid;
  padding: 6px 0 12px 18px;
}

.drawer__submenu-list a {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
}

.drawer__submenu-list a:last-child {
  border-bottom: 1px solid var(--line-2);
}
.drawer .btn-row { margin-top: 28px; }
.drawer .btn { width: 100%; }

@media (max-width: 1180px) {
  .nav { display: none; }
  .header__side .btn { display: none; }
  .burger { display: grid; }
}

/* ---------- 8. Герой ---------- */
.hero {
  padding-top: 68px;
  padding-bottom: 78px;
  background:
    radial-gradient(900px 420px at 88% -12%, var(--brand-50), transparent 62%),
    #fff;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
}
.hero__title { margin-bottom: 20px; }
.hero__sub { font-size: clamp(17px, 1.4vw, 20.5px); color: var(--ink-2); max-width: 44ch; }
.hero .btn-row { margin-top: 34px; }

.hero__media {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  background: #fff;
}
.hero__media img { width: 100%; }

@media (max-width: 980px) {
  .hero { padding-top: 44px; padding-bottom: 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__sub { max-width: 100%; }
}

/* ---------- 9. Полоса фактов (под героем) ---------- */
.facts {
  border-block: 1px solid var(--line);
  background: #fff;
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 26px 28px 26px 0;
  border-inline-end: 1px solid var(--line);
}
.fact:last-child { border-inline-end: 0; }
.fact:not(:first-child) { padding-inline-start: 28px; }
.fact .ico { font-size: 24px; color: var(--brand); margin-top: 1px; }
.fact b { display: block; font-size: 15.5px; font-weight: 700; margin-bottom: 3px; }
.fact span { font-size: 14px; color: var(--ink-3); line-height: 1.45; display: block; }

@media (max-width: 900px) {
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 20px 16px; border-block-end: 1px solid var(--line); }
  .fact:nth-child(2n) { border-inline-end: 0; }
  .fact:not(:first-child) { padding-inline-start: 16px; }
  .fact:nth-last-child(-n+2) { border-block-end: 0; }
}
@media (max-width: 520px) {
  .facts__grid { grid-template-columns: 1fr; }
  .fact { border-inline-end: 0; }
  .fact:last-child { border-block-end: 0; }
}

/* ---------- 10. Два направления ---------- */
.dirs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.dir {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 36px 34px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms var(--ease-out);
}
.dir--accent { background: var(--brand-50); border-color: var(--brand-100); }
@media (hover: hover) and (pointer: fine) {
  .dir:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #D6DEDB; }
  .dir--accent:hover { border-color: var(--brand); }
}
.dir__tag {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: #fff;
  border: 1px solid var(--brand-100);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 22px;
}
.dir--accent .dir__tag { background: #fff; }
.dir h3 { margin-bottom: 12px; }
.dir p { color: var(--ink-2); font-size: 16px; }
.dir__list { margin: 22px 0 28px; display: grid; gap: 11px; }
.dir__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink-2);
}
.dir__list .ico { font-size: 20px; color: var(--brand); margin-top: 1px; }
.dir .link-arrow { margin-top: auto; }

@media (max-width: 860px) { .dirs { grid-template-columns: 1fr; } }

/* ---------- 11. Боли (бенто) ---------- */
.pains {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.pain {
  grid-column: span 2;
  padding: 30px 28px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: #fff;
}
.pain--wide { grid-column: span 3; }
.pain--tint { background: var(--surface); }
.pain--brand {
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(17,180,129,.13), transparent 70%),
    var(--brand-50);
  border-color: var(--brand-100);
}
.pain__q {
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
  margin-bottom: 10px;
}
.pain p { font-size: 15.5px; color: var(--ink-2); }
.pain .ico-badge { margin-bottom: 18px; background: #fff; border: 1px solid var(--line); }
.pain--brand .ico-badge { border-color: var(--brand-100); }

@media (max-width: 1000px) { .pains { grid-template-columns: repeat(4, 1fr); } .pain--wide { grid-column: span 4; } }
@media (max-width: 700px) { .pains { grid-template-columns: 1fr; } .pain, .pain--wide { grid-column: span 1; } }

/* ---------- 12. Проблема → Решение ---------- */
.ps { display: grid; gap: 14px; }
.ps__legend {
  display: grid;
  grid-template-columns: 1fr 74px 1fr;
  gap: 0;
  margin-bottom: 6px;
}
.ps__legend span {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ps__legend span:last-child { color: var(--brand-700); }
.ps__legend i { display: block; }

.ps__row {
  display: grid;
  grid-template-columns: 1fr 74px 1fr;
  align-items: stretch;
}
.ps__cell {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}
.ps__cell--out {
  background: #fff;
  border-color: var(--brand-100);
  box-shadow: 0 2px 10px rgba(17,180,129,.07);
}
.ps__cell h4 { margin-bottom: 8px; font-size: 17.5px; }
.ps__cell--in h4 { color: var(--ink-2); }
.ps__cell--out h4 { color: var(--brand-700); }
.ps__cell p { font-size: 15.5px; color: var(--ink-2); }
.ps__arrow {
  display: grid;
  place-items: center;
  position: relative;
}
.ps__arrow::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line), var(--brand-100));
}
.ps__arrow .ico {
  position: relative;
  font-size: 22px;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--brand-100);
  border-radius: var(--r-pill);
  width: 40px; height: 40px;
  display: grid; place-items: center;
}
.section--tint .ps__cell { background: #fff; }
.section--tint .ps__arrow .ico { background: #fff; }

@media (max-width: 860px) {
  .ps__legend { display: none; }
  .ps__row { grid-template-columns: 1fr; }
  .ps__arrow { padding-block: 6px; }
  .ps__arrow::before { display: none; }
  .ps__arrow .ico { transform: rotate(90deg); }
}

/* ---------- 13. Схема «зоопарк сервисов → одна платформа» ---------- */
.swap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
}
.swap__panel {
  border-radius: var(--r-card);
  padding: 30px 28px 34px;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 330px;
}
.swap__panel--before { border-style: dashed; background: var(--surface); }
.swap__panel--after { border-color: var(--brand-100); box-shadow: var(--sh-2); }
.swap__cap {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.swap__panel--after .swap__cap { color: var(--brand-700); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  border: 1px dashed #CFD8D5;
  background: #fff;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--ink-2);
}
.chip .ico { font-size: 18px; color: var(--ink-3); }
.swap__note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  font-size: 14.5px;
  color: var(--ink-3);
}
.swap__panel--after .swap__note { color: var(--ink-2); }

.swap__mid { display: grid; place-items: center; gap: 10px; }
.swap__mid .ico {
  font-size: 26px;
  color: #fff;
  background: var(--brand);
  width: 52px; height: 52px;
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  box-shadow: var(--sh-brand);
}
.swap__mid span { font-size: 13px; font-weight: 650; color: var(--brand-700); }

.swap__hub {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.swap__hubItem {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: var(--r-control);
  background: var(--brand-50);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.swap__hubItem .ico { font-size: 19px; color: var(--brand-700); }

@media (max-width: 940px) {
  .swap { grid-template-columns: 1fr; gap: 18px; }
  .swap__panel { min-height: 0; }
  .swap__mid { grid-auto-flow: column; }
  .swap__mid .ico { transform: rotate(90deg); }
}

/* ---------- 14. Путь ученика (горизонтальный поток) ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  position: relative;
  counter-reset: fl;
}
.flow::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-100), var(--brand), var(--brand-100));
  border-radius: 2px;
}
.flow__step { text-align: center; padding-inline: 8px; position: relative; }
.flow__dot {
  width: 54px; height: 54px;
  margin: 0 auto 16px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 2px solid var(--brand-100);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  transition: border-color 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.flow__dot .ico { font-size: 25px; color: var(--brand-700); }
.flow__step:hover .flow__dot { border-color: var(--brand); transform: translateY(-2px); }
.flow__step b { display: block; font-size: 15.5px; font-weight: 700; margin-bottom: 5px; }
.flow__step span { font-size: 13.5px; color: var(--ink-3); line-height: 1.45; display: block; }

.flow__band {
  margin-top: 30px;
  padding: 16px 22px;
  border-radius: var(--r-control);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--brand-700);
  justify-content: center;
  text-align: center;
}
.flow__band .ico { font-size: 21px; }

@media (max-width: 1000px) {
  .flow { grid-template-columns: repeat(4, 1fr); row-gap: 34px; }
  .flow::before { display: none; }
}
@media (max-width: 640px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 15. Шаги запуска (степпер) ---------- */
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 92px 1fr 1.05fr;
  gap: 32px;
  padding-block: 34px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--brand-100);
  transition: color 240ms var(--ease-out);
}
.step:hover .step__n { color: var(--brand); }
.step h3 { margin-bottom: 10px; }
.step > div > p { color: var(--ink-2); font-size: 16px; }
.step__tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.step__tags li {
  font-size: 14px;
  font-weight: 550;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .step { grid-template-columns: 56px 1fr; gap: 18px; padding-block: 26px; }
  .step__n { font-size: 32px; }
  .step__tags { grid-column: 2; }
}

/* ---------- 16. Возможности (табы) ---------- */
.tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
}
.tab {
  padding: 11px 18px;
  border-radius: var(--r-control);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out),
              border-color 180ms var(--ease-out), transform 160ms var(--ease-out);
}
.tab:active { transform: scale(.97); }
.tab[aria-selected='true'] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: var(--sh-brand);
}

.tabs__nav .tab {
  position: relative;
  transition: box-shadow 0.25s ease;
}

@keyframes blick {
  0% {
    box-shadow: none;
  }

  50% {
    box-shadow: 0 0 5px 3px rgba(17, 180, 129, 0.4);
  }

  100% {
    box-shadow: none;
  }
}

.tab-animation {
  animation: blick 1s linear alternate;
  animation-iteration-count: 1;
}

@media (hover: hover) and (pointer: fine) {
  .tab:not([aria-selected='true']):hover { border-color: var(--brand-100); color: var(--ink); background: var(--brand-50); }
}

.tabs__panel {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 48px;
  align-items: center;
}
.tabs__panel[hidden] { display: none; }
.tabs__panel.is-in { animation: panelIn 320ms var(--ease-out) both; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.tabs__list { display: grid; gap: 15px; }
.tabs__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.5;
}
.tabs__list .ico { font-size: 21px; color: var(--brand); margin-top: 2px; }
.tabs__shot {
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--sh-1);
}
.tabs__shot img { border-radius: 12px; width: 100%; }

@media (max-width: 900px) {
  .tabs__panel { grid-template-columns: 1fr; gap: 28px; }
  .tabs__nav { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
  .tab { scroll-snap-align: start; flex: none; }
}

/* ---------- 17. Для кого ---------- */
.segs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.seg {
  padding: 32px 26px 30px 0;
  border-inline-end: 1px solid var(--line);
}
.seg:last-child { border-inline-end: 0; }
.seg:not(:first-child) { padding-inline-start: 26px; }
.seg .ico-badge { margin-bottom: 18px; }
.seg h3 { font-size: 19px; margin-bottom: 9px; }
.seg p { font-size: 15px; color: var(--ink-2); }

@media (max-width: 940px) {
  .segs { grid-template-columns: 1fr 1fr; }
  .seg { padding: 26px 20px; border-block-end: 1px solid var(--line); }
  .seg:not(:first-child) { padding-inline-start: 20px; }
  .seg:nth-child(2n) { border-inline-end: 0; }
  .seg:nth-last-child(-n+2) { border-block-end: 0; }
}
@media (max-width: 560px) {
  .segs { grid-template-columns: 1fr; }
  .seg { border-inline-end: 0; }
  .seg:last-child { border-block-end: 0; }
}

/* ---------- 18. Онбординг ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split--rev .split__media { order: -1; }
.split__media img { border-radius: var(--r-card); width: 100%; }
.split h2 { margin-bottom: 16px; }
.split p { color: var(--ink-2); }
.check { display: grid; gap: 13px; margin-top: 24px; }
.check li { display: flex; gap: 11px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.check .ico { font-size: 21px; color: var(--brand); margin-top: 2px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split--rev .split__media { order: 0; }
}

/* Таймлайн онбординга */
.tl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.tl__item {
  position: relative;
  padding-top: 30px;
  border-top: 2px solid var(--brand-100);
}
.tl__item::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px; height: 12px;
  border-radius: var(--r-pill);
  background: var(--brand);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--brand-100);
}
.tl__when {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 8px;
}
.tl__item b { display: block; font-size: 16.5px; margin-bottom: 7px; }
.tl__item p { font-size: 14.5px; color: var(--ink-2); }

@media (max-width: 860px) { .tl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tl { grid-template-columns: 1fr; } }

/* ---------- 19. Частые задачи (интенты) ---------- */
.intents { border-top: 1px solid var(--line); }
.intent {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
  padding-block: 38px;
  border-bottom: 1px solid var(--line);
}
.intent h3 { font-size: clamp(20px, 2.1vw, 26px); }
.intent p { color: var(--ink-2); margin-bottom: 18px; }
.intent__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.intent__meta li {
  font-size: 13.5px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 600;
}
@media (max-width: 820px) { .intent { grid-template-columns: 1fr; gap: 14px; padding-block: 28px; } }

/* ---------- 20. Отзывы ---------- */
.reviews {
  columns: 3;
  column-gap: 20px;
}
.review {
  break-inside: avoid;
  margin-bottom: 20px;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #fff;
}
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.review__head img { width: 44px; height: 44px; border-radius: var(--r-pill); object-fit: cover; }
.review__head b { display: block; font-size: 15.5px; }
.review__head span { font-size: 13px; color: var(--ink-3); }
.review__body {
  font-size: 15.2px;
  color: var(--ink-2);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review[data-open='true'] .review__body { -webkit-line-clamp: unset; overflow: visible; }
.review__more {
  margin-top: 12px;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--brand-700);
}
.review__more:hover { color: var(--brand); }

@media (max-width: 1000px) { .reviews { columns: 2; } }
@media (max-width: 680px)  { .reviews { columns: 1; } }

/* ---------- 21. Платёжные системы ---------- */
/* flex + flex-grow: последний ряд растягивается, пустых ячеек не бывает */
.pays {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pays li {
  flex: 1 1 152px;
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  transition: border-color 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .pays li:hover { border-color: var(--brand-100); }
}
.pays img {
  max-height: 34px;
  width: auto;
  filter: grayscale(1);
  opacity: .62;
  transition: filter 220ms var(--ease-out), opacity 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .pays li:hover img { filter: none; opacity: 1; }
}

/* ---------- 22. Оффер ---------- */
.offer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 46px;
  border-radius: var(--r-card);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
}
.offer__price { display: flex; align-items: baseline; gap: 14px; margin: 18px 0 10px; }
.offer__old { font-size: 26px; font-weight: 700; color: var(--ink-3); text-decoration: line-through; }
.offer__new { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.03em; color: var(--brand-700); }
.offer__media { display: flex; align-items: center; justify-content: center; gap: 18px; }
.offer__media img { max-height: 230px; width: auto; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; gap: 28px; padding: 30px 24px; } }

/* ---------- 23. FAQ ---------- */
.faq__groups { display: grid; gap: 44px; }
.faq__group h3 { margin-bottom: 4px; font-size: 21px; }
.faq__list { border-top: 1px solid var(--line); margin-top: 18px; }
.qa { border-bottom: 1px solid var(--line); }
.qa__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  text-align: start;
  padding: 22px 0;
  font-size: 17.5px;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
  transition: color 180ms var(--ease-out);
}
.qa__q:hover { color: var(--brand-700); }
.qa__q .ico {
  font-size: 24px;
  color: var(--brand);
  transition: transform 260ms var(--ease-out);
  margin-top: -1px;
}
.qa[data-open='true'] .qa__q .ico { transform: rotate(45deg); }
.qa__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms var(--ease-out);
}
.qa[data-open='true'] .qa__a { grid-template-rows: 1fr; }
.qa__inner { overflow: hidden; }
.qa__inner > div {
  padding-bottom: 24px;
  padding-inline-end: 44px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.62;
}
.qa__inner p + p { margin-top: 10px; }

@media (max-width: 620px) {
  .qa__q { font-size: 16.5px; }
  .qa__inner > div { padding-inline-end: 0; }
}

/* ---------- 23.5. Вызов: проверьте нашу поддержку ---------- */
.challenge {
  border-radius: var(--r-card);
  border: 1px solid var(--brand-100);
  background:
    radial-gradient(680px 340px at 8% 0%, rgba(17, 180, 129, .12), transparent 68%),
    var(--brand-tint);
  padding: 52px 48px 48px;
}
.challenge__in {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 52px;
  align-items: center;
}
.challenge h2 { margin-bottom: 14px; }

.challenge__steps {
  display: grid;
  gap: 15px;
  margin: 28px 0 24px;
}
.challenge__steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.challenge__num {
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  flex: none;
  margin-top: 1px;
}
.challenge__note {
  padding-top: 20px;
  border-top: 1px solid var(--brand-100);
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* Карточка телеграма */
.tg-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 40px 32px 32px;
  background: #fff;
  border: 1px solid var(--brand-100);
  border-radius: var(--r-card);
  box-shadow: var(--sh-2);
}
.tg-card b { font-size: 19px; font-weight: 700; }
.tg-card span { font-size: 14.5px; color: var(--ink-3); line-height: 1.5; }
.tg-card .btn { width: 100%; margin-top: 4px; }

/* Пульсация. Мотивирована: это единственный «живой» индикатор на странице
   и он указывает на действие, которое мы просим совершить прямо сейчас. */
.tg-pulse {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
}
.tg-pulse::before,
.tg-pulse::after {
  content: '';
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: var(--r-pill);
  background: var(--brand);
  opacity: .3;
  animation: tgPulse 2400ms var(--ease-out) infinite;
  pointer-events: none;
}
.tg-pulse::after { animation-delay: 1200ms; }

@keyframes tgPulse {
  0%   { transform: scale(.9);  opacity: .32; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

.tg-btn {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-brand);
  transition: transform 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.tg-btn svg { width: 38px; height: 38px; }
.tg-btn:active { transform: scale(.95); }
.tg-btn:focus-visible { outline: 2px solid var(--brand-700); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .tg-btn:hover { background: var(--brand-600); transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .tg-pulse::before,
  .tg-pulse::after { display: none; }
}

@media (max-width: 900px) {
  .challenge { padding: 34px 22px 30px; }
  .challenge__in { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- 24. Финальный CTA ---------- */
.cta {
  text-align: center;
  padding: 64px 40px;
  border-radius: var(--r-card);
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(17,180,129,.12), transparent 70%),
    var(--brand-tint);
  border: 1px solid var(--brand-100);
}
.cta h2 { margin-bottom: 14px; }
.cta .lead { margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 28px; }
.cta__note { margin-top: 16px; font-size: 14.5px; color: var(--ink-3); }
@media (max-width: 620px) { .cta { padding: 40px 22px; } }

/* ---------- 25. Подвал ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 58px 34px;
  background: #f8f9fa;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer h4 {
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer ul { display: grid; gap: 10px; }
.footer a { font-size: 15.5px; color: var(--ink-2); transition: color 160ms var(--ease-out); }
.footer a:hover { color: var(--brand-700); }
.footer__logo img { height: 30px; margin-bottom: 16px; width: auto; }
.footer__about { font-size: 15px; color: var(--ink-2); max-width: 34ch; }
.footer__soc { display: flex; gap: 10px; margin-top: 20px; }
.footer__soc a {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: border-color 180ms var(--ease-out), color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.footer__soc a:hover { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand-700); }
.footer__soc svg { width: 19px; height: 19px; }
.footer__contact { display: grid; gap: 14px; }
.footer__contact div { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.footer__contact .ico { font-size: 20px; color: var(--brand); margin-top: 1px; }
.footer__bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-3);
}
.footer__pay { display: flex; gap: 12px; align-items: center; }
.footer__pay img { height: 22px; opacity: .6; }

.migration-box {
    margin: 24px 0;
}

.migration-box a {
    display: block;
    padding: 16px 20px;
    border-radius: var(--r-control);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    border: 1px solid var(--line);
    box-shadow: var(--sh-1);
    background: #fff;
    color: var(--ink)!important;
    position: relative;
    overflow: hidden;
    transition: .25s;
    transform-origin: center;
    animation: wiggle 5s infinite;
}

.migration-box a:hover {
    border-color: #D2DAD7;
    box-shadow: var(--sh-2);
}

@keyframes wiggle {
    0%,90%,100% { transform: rotate(0); }
    92% { transform: rotate(-2deg); }
    94% { transform: rotate(2deg); }
    96% { transform: rotate(-1deg); }
    98% { transform: rotate(0); }
}

@media (max-width: 940px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- 26. Появление при скролле ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn:active, .tab:active { transform: none; }
}

/* ---------- 27. Прочее ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-control) 0;
  z-index: 999;
  font-weight: 650;
}
.skip:focus { left: 0; }

::selection { background: var(--brand-100); color: var(--brand-700); }

.no-scroll { overflow: hidden; }
.vh {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
