/* Лендінг помічника. Верстка за макетом Figma «Telegram Asystent — Redesign UX».

   Чорне полотно, один помаранчевий колір і великі важкі заголовки. Світло
   з’являється рівно там, де треба вести око: сяйво під першим екраном,
   тепла смуга під прикладами, тарифами й фіналом. Решта — чорне, щоб ці
   три місця читались як три зупинки, а не як строката сторінка. */

:root {
  --bg: #000000;         /* полотно */
  --card: #0A0908;       /* картки на чорному */
  --card-2: #100D0B;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);

  --text: #FFFFFF;
  --muted: #A9A5A2;
  --dim: #736E6B;

  --accent: #FF6A00;     /* один яскравий колір на весь сайт */
  --accent-soft: #FF8A33;
  --grad: linear-gradient(135deg, #FF8A33 0%, #FF6A00 55%, #E05400 100%);
  /* Світло з кута картки — те, з чого зроблений увесь макет. */
  --corner: radial-gradient(125% 105% at 0% 0%,
              rgba(255, 138, 51, .95) 0%, rgba(255, 106, 0, .55) 22%,
              rgba(255, 106, 0, .12) 46%, transparent 68%);

  /* Темна тема чату — та сама, що в самому Telegram. */
  --tg-bg: #0E0E0F;
  --tg-panel: #141415;
  --tg-bot: #232324;
  --tg-me: #E4681B;

  /* Один шрифт на весь сайт — той самий, що в макеті. */
  --display: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Бульбашки набрані системним шрифтом навмисно: так листування виглядає
     справжнім, а не намальованим. */
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --r: 24px;
  --pad: clamp(20px, 5vw, 80px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 clamp(1rem, .97rem + .2vw, 1.06rem)/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(255, 106, 0, .35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Полотно макета — 1440 з полями по 80. */
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }

.section { position: relative; padding-block: clamp(64px, 7vw, 96px); }

/* Дві секції поспіль складають свої поля: 96 знизу плюс 96 згори — між
   блоками виходить пів екрана порожнечі, і сторінка починає здаватись
   недобудованою. Верхнє поле наступної врізаємо.

   Теплі секції (`--warm`) свідомо не чіпаємо: там поле тримає градієнт, і
   вкорочене верхнє підсунуло б заголовок у кольорову смугу. З тієї ж
   причини не чіпаємо нижнє поле `.cases` — до нього прибитий знімок
   телефона (`.cases__art-wrap` віднімає рівно цю величину). */
.hero + .section,
.section + .section:not(.section--warm),
.section + .flow,
.ticker + .section:not(.section--warm) {
  padding-top: clamp(32px, 3.4vw, 48px);
}

/* Тепла смуга. Чорна по краях, помаранчева всередині — щоб сусідні чорні
   секції переходили в неї без шва, а не стикались двома площинами. Сяйво
   мусить згаснути ДО краю секції: інакше внизу лишається різкий рубець. */
/* Не спільна пляма по центру, а рівно ті вертикальні градієнти, що в
   макеті: у прикладів чорне переходить у помаранчеве донизу, у тарифів
   навпаки, у фіналі помаранчеве з обох країв. */
.section--warm { background: var(--bg); }
#price { background: linear-gradient(180deg, #612800 0%, #000 25.5%); }
.final { background: linear-gradient(180deg, #C25100 0%, #000 20.3%, #000 83.1%, #6C2D00 100%); }
.section--warm .lead { color: rgba(255, 255, 255, .84); }
.section--warm .eyebrow { background: rgba(0, 0, 0, .55); border-color: rgba(0, 0, 0, .4); }

/* Заголовки з макета: Inter Tight SemiBold 72/65, розрядка −2%. Міжрядковий
   менший за кегль — саме це робить їх щільними; з типовими 1.1 сторінка
   одразу перестає бути схожою на макет. */
h1, h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: .903;
}
h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }

h1, h2 { font-size: clamp(2.25rem, .5rem + 4.44vw, 4.5rem); }

/* Розрив, поставлений у макеті руками. На вузькому екрані рядок ділиться
   сам, тож розрив зайвий. */
@media (max-width: 760px) { .lb { display: none; } }

/* Акцентна фраза заголовка — кольором. */
.accent { color: var(--accent); }

.lead { color: #C0C0C0; max-width: 62ch; margin: 18px 0 0; font-weight: 300; font-size: clamp(1rem, .9rem + .45vw, 1.25rem); }

/* Надзаголовок — маленька таблетка, як у макеті: вона тримає верх кожної
   секції й задає їй ритм. */
.eyebrow {
  display: inline-block;
  margin: 0 0 24px;
  height: 35px; padding: 0 16px;
  display: inline-flex; align-items: center;
  border-radius: 17.5px;
  position: relative; isolation: isolate;
  background: #0D0D0D;
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
  color: var(--accent);
  font: 500 .72rem/1 var(--font);
  letter-spacing: .01em;
}

.eyebrow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse 58% 130% at 14% 0%,
    rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 62%);
}
.section--warm .eyebrow { background: #0D0D0D; border-color: rgba(255, 255, 255, .24); }

.skip {
  position: absolute; top: -60px; inset-inline-start: 16px; z-index: 60;
  padding: 10px 18px; background: var(--card); border: 1px solid var(--line-2);
  border-radius: 0 0 12px 12px; text-decoration: none; font-size: .9rem;
  transition: top .2s ease;
}
.skip:focus-visible { top: 0; }

/* ── кнопки ────────────────────────────────────────────────────────────── */

.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 26px; border-radius: 24px;
  font: 600 .95rem/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
  transition: transform .16s ease, box-shadow .22s ease, filter .16s ease, background .2s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--lg { height: 48px; padding: 0 30px; font-size: 1rem; }
.btn--sm { height: 40px; padding: 0 22px; font-size: .88rem; }

.btn--primary {
  /* Заливка рівна, без градієнта: у макеті це чистий #FF6A00, а зверху
     лежить окремий білий блік — саме він дає обʼєм, а не розтяжка. */
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3),
              0 6px 18px -10px rgba(255, 106, 0, .8);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 130% at 16% 0%,
    rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 62%);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 48px -16px rgba(255, 106, 0, 1); filter: saturate(1.06); }

/* Спокійна кнопка поруч із головною: майже чорна таблетка зі скляним краєм. */
.btn--ghost {
  background: #0E0E0E;
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn--ghost::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 130% at 16% 0%,
    rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 62%);
}
.btn--ghost:hover { transform: translateY(-2px); background: #1B1B1B; border-color: rgba(255, 255, 255, .28); }

/* ── шапка ─────────────────────────────────────────────────────────────── */

.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .74);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.top.is-stuck { border-bottom-color: var(--line); }

.progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  transform: scaleX(var(--read, 0)); transform-origin: 0 50%;
  background: var(--grad);
}

.top__in { display: flex; align-items: center; gap: 18px; height: clamp(64px, 6.67vw, 96px); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 32px; height: 32px; color: var(--accent); }
/* У макеті в шапці тільки знак — назви поруч немає. */
.brand b { display: none; }

.top__nav { display: flex; gap: 34px; margin-inline: auto; }
.top__nav a { color: #E6E4E2; text-decoration: none; font-size: .95rem; transition: color .2s ease; }
.top__nav a:hover { color: var(--accent); }

.lang { position: relative; }
.lang > summary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 15px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px;
  background: #131313;
  font-size: .82rem; color: #CFCBC8; user-select: none;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover { color: var(--text); }
.lang__menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 170px;
  padding: 6px; background: var(--card-2); border: 1px solid var(--line-2);
  border-radius: 16px; box-shadow: 0 30px 60px -24px #000;
}
.lang__menu a { display: block; padding: 9px 13px; border-radius: 10px; text-decoration: none; font-size: .92rem; color: var(--muted); }
.lang__menu a:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.lang__menu a[aria-current] { color: var(--accent); font-weight: 600; }

/* ── перший екран ──────────────────────────────────────────────────────── */

/* Не `overflow: hidden`: сяйву треба вийти за нижній край і згаснути вже в
   наступній секції. Обрізане по краю, воно лишає рівний рубець упоперек
   сторінки — саме те, чого в макеті немає. */
/* Пропорції з макета: екран 1024 заввишки, текст починається за 188 від
   шапки, а рядок доказів притиснутий до низу. Без цього блок «дихає» вдвічі
   менше, ніж у Figma, і схожість зникає ще до того, як почнеш читати. */
.hero {
  position: relative; text-align: center;
  display: flex; overflow: hidden;
  /* Рівно те, що лишилось від екрана під шапкою: перший екран займає його
     цілком і не більше. `svh` — щоб на телефоні не стрибало разом із
     панеллю браузера; `vh` перед ним — запасний для старих движків.
     Стеля 880 — на високому моніторі інакше виходить порожній колодязь. */
  min-height: calc(100vh - clamp(64px, 6.67vw, 96px));
  min-height: min(calc(100svh - clamp(64px, 6.67vw, 96px)), 880px);
  padding-block: clamp(48px, 7.5vw, 112px) clamp(36px, 4.5vw, 64px);
}

/* Сяйво зібране так само, як у макеті, — з двох розмитих еліпсів, а не з
   одного радіального градієнта. Помаранчевий еліпс лежить на всю ширину й
   лише 357 заввишки (тому світло розходиться вбоки, а не куполом), згори
   його підʼїдає чорний еліпс. Один градієнт замість них дає кільце. */
.hero__glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__glow i { position: absolute; display: block; border-radius: 50%; }
/* ellipse: cx 720 cy 1005.5 rx 720 ry 178.5, blur 111.55 */
.hero__glow-warm {
  left: 0; width: 100%; top: 80.8%; height: 34.9%;
  background: #FF6A00;
  filter: blur(clamp(48px, 7.75vw, 112px));
}
/* ellipse: cx 720 cy 600.5 rx 720 ry 352.5, blur 54.55 */
.hero__glow-dark {
  left: 0; width: 100%; top: 24.2%; height: 68.8%;
  background: #000;
  filter: blur(clamp(24px, 3.79vw, 55px));
}

.hero__in { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; }
.hero__in > * { animation: rise .8s cubic-bezier(.2, .8, .3, 1) both; }
.hero__in > *:nth-child(1) { animation-delay: .04s; }
.hero__in > *:nth-child(2) { animation-delay: .12s; }
.hero__in > *:nth-child(3) { animation-delay: .2s; }
.hero__in > *:nth-child(4) { animation-delay: .28s; }
.hero__in > *:nth-child(5) { animation-delay: .36s; }
.hero__in > *:nth-child(6) { animation-delay: .44s; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Таблетка над заголовком у макеті набрана капсом і з розрядкою. */
.hero .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; padding: 7px 15px; margin-bottom: 12px; }

/* Ширини теж із макета: 930 під заголовок, 670 під підзаголовок. Саме вони
   ділять рядки там, де вони поділені у Figma. */
.hero h1 { max-width: 930px; }
.hero__sub {
  color: #C0C0C0; font-weight: 300;
  max-width: 670px; margin: clamp(16px, 2.2vw, 32px) 0 0;
  font-size: clamp(1.05rem, .82rem + .74vw, 1.5rem);
  line-height: 1.05;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin-top: clamp(22px, 2.6vw, 36px); }
.hero__note { color: #8B8683; font-size: .84rem; margin: 19px 0 0; }

/* Донизу, як у макеті: рядок доказів стоїть на дні екрана, а не одразу
   під кнопками. */
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px 38px; justify-content: center; margin-top: auto; padding-top: clamp(28px, 3.6vw, 52px); }
.chip { color: rgba(255, 255, 255, .82); font-size: .9rem; font-weight: 300; }

/* ── телефон ───────────────────────────────────────────────────────────── */

.phone {
  position: relative;
  width: min(286px, 100%);
  margin-inline: auto;
  padding: 8px;
  border-radius: 40px;
  background: linear-gradient(165deg, #3A3A3C, #131314 45%, #2A2A2C);
  box-shadow: 0 50px 90px -40px #000, 0 0 0 1px rgba(255, 255, 255, .07) inset;
}

.phone__bar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: 34px; padding: 0 14px 0 20px;
  background: var(--tg-panel);
  border-radius: 32px 32px 0 0;
  color: #fff;
  font: 600 .72rem/1 var(--ui);
}
.phone__notch {
  position: absolute; top: 6px; left: 50%; translate: -50% 0;
  width: 78px; height: 21px; border-radius: 999px; background: #000;
}
.phone__icons { display: flex; align-items: center; gap: 5px; color: #fff; }
.phone__icons svg { height: 10px; width: auto; fill: currentColor; }

.phone .chat { border: 0; border-radius: 0 0 32px 32px; }

/* ── чат: темна тема, як у Telegram ────────────────────────────────────── */

.chat { background: var(--tg-bg); color: #fff; overflow: hidden; }

.chat__top {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; background: var(--tg-panel);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.chat__top svg { flex: none; }
.chat__top > svg { color: var(--accent); }
.chat__back, .chat__more { color: #7E7E82; display: flex; }
.chat__back svg, .chat__more svg { width: 16px; height: 16px; }
.chat__more { margin-inline-start: auto; }
.chat__who { font: 600 .82rem/1.3 var(--ui); }
.chat__status { display: flex; align-items: center; gap: 5px; font: 400 .68rem/1.3 var(--ui); color: var(--accent); }
.chat__status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.chat__body {
  display: flex; flex-direction: column; gap: 7px;
  height: 372px; padding: 12px;
  background: var(--tg-bg);
  overflow: hidden;
}
/* Бульбашки притискає донизу авто-відступ у першої, а не justify-content:
   з ним усе, що не влізло, виїжджає за верхній край і стає недосяжним. */
.chat__body > * { flex: none; }
.chat__body > *:first-child { margin-top: auto; }

.chat__day {
  align-self: center; margin-bottom: 2px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  font: 500 .63rem/1.4 var(--ui); color: #C9C7C5;
}

.bubble {
  max-width: 86%; padding: 7px 11px 6px; border-radius: 13px;
  font: 400 .74rem/1.42 var(--ui); white-space: pre-wrap; word-break: break-word;
}
.bubble--bot { align-self: flex-start; background: var(--tg-bot); border-end-start-radius: 4px; }
.bubble--me { align-self: flex-end; background: var(--tg-me); border-end-end-radius: 4px; }
.bubble strong { font-weight: 600; }

.bubble__meta { float: inline-end; margin: 5px 0 0 10px; font-size: .58rem; color: rgba(255, 255, 255, .5); white-space: nowrap; }
.bubble--me .bubble__meta::after { content: " ✓✓"; }

.bubble__file {
  display: flex; align-items: center; gap: 7px; margin-bottom: 6px;
  padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .12); font-size: .7rem;
}
.bubble__file svg { width: 13px; height: 13px; flex: none; }

.chat__input {
  display: flex; align-items: center; gap: 9px; padding: 11px 13px;
  border-top: 1px solid rgba(255, 255, 255, .06); color: #6E6E72;
  font: 400 .72rem/1 var(--ui); background: var(--tg-panel);
}
.chat__input svg { width: 15px; height: 15px; flex: none; }
.chat__send { margin-inline-start: auto; }

/* ── стрічка запитів ───────────────────────────────────────────────────── */

.ticker {
  position: relative; z-index: 1;
  padding-block: 44px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track { display: flex; gap: 40px; width: max-content; animation: slide 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { color: #8B8683; font-size: .82rem; white-space: nowrap; }
.ticker__item::before { content: "“"; }
.ticker__item::after { content: "”"; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── як це працює: плитка ──────────────────────────────────────────────── */

.flow { position: relative; padding-block: clamp(64px, 7vw, 96px); }
.flow__in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.flow__title { max-width: none; }

.bento { width: 100%; display: grid; gap: clamp(20px, 2.78vw, 40px) clamp(12px, 1.8vw, 26px); margin-top: clamp(34px, 4vw, 56px); text-align: start; }
/* Обгортка списку не має власної коробки: картки стають просто в сітку
   плитки, а розмітка лишається списком із трьох кроків. */
.bento__steps { display: contents; list-style: none; margin: 0; padding: 0; }

@media (min-width: 1000px) {
  /* 409 / 515 / 318 при полі 1280 — точно з макета. Третя колонка
     відсунута від других лише на 12, а не на спільні 26. */
  .bento {
    grid-template-columns: 409fr 515fr 318fr;
    column-gap: 0;
    grid-template-rows: clamp(190px, 17vw, 245px) auto;
  }
  .tick:nth-child(1) { margin-inline-end: clamp(12px, 1.8vw, 26px); }
  .tick:nth-child(2) { margin-inline-end: clamp(6px, .83vw, 12px); }
  .tick:nth-child(3) { grid-area: 2 / 1 / 3 / 3; margin-inline-end: clamp(12px, 1.8vw, 26px); }
  /* Перша картка в макеті нижча за сусідню й стоїть на спільному дні. */
  .flow__stage { align-self: stretch; }
  .tick:nth-child(1) { grid-area: 1 / 1; }
  .tick:nth-child(2) { grid-area: 1 / 2; }
  .flow__stage { grid-area: 1 / 3 / 3 / 4; }
}

/* Картка кроку: чорна коробка, у яку з кута світить помаранчеве. Та, повз
   яку зараз прокручують, світиться на повну — решта пригашені. */
.tick {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(20px, 2vw, 28px);
  border-radius: 24px;
  background: #060606;
  transition: none;
}
.tick::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(118% 96% at 0% 0%,
    rgba(255, 150, 70, .95) 0%, rgba(255, 106, 0, .5) 18%,
    rgba(150, 48, 0, .16) 36%, transparent 54%);
}

.tick__n {
  font: 600 clamp(2rem, 1.3rem + 1.7vw, 2.85rem)/1 var(--display);
  color: rgba(255, 226, 205, .38);
  letter-spacing: -.03em;
  margin-bottom: clamp(26px, 3.2vw, 44px);
}
.tick h3 { font-size: .88rem; text-transform: uppercase; letter-spacing: .05em; }
.tick p { margin: 9px 0 0; color: rgba(255, 255, 255, .62); font-size: .84rem; max-width: 56ch; }

/* Друга картка перевернута: текст угорі, номер великим привидом унизу праворуч. */
.tick--flip { flex-direction: column-reverse; justify-content: flex-end; }
.tick--flip .tick__n { margin: clamp(24px, 3vw, 40px) 0 0; align-self: flex-end; }

.flow__stage { display: flex; justify-content: center; }
.flow__stage .phone { align-self: stretch; width: 100%; max-width: 286px; }

/* ── порівняння ────────────────────────────────────────────────────────── */

.vs__section > .wrap { text-align: center; display: flex; flex-direction: column; align-items: center; }
.vs__section .lead { margin-inline: auto; margin-bottom: clamp(28px, 3.5vw, 44px); }
.vs { width: 100%; text-align: start; }

.vs { margin-top: clamp(26px, 3vw, 40px); }
.vs__head, .vs__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(16px, 5vw, 64px); }
.vs__head { padding-bottom: 12px; }
.vs__head span { font: 500 .78rem/1 var(--font); color: #8B8683; }
.vs__head span:last-child { color: var(--accent); }
.vs__row { border-top: 1px solid rgba(255, 255, 255, .1); }
.vs__row > div { padding: 20px 0; font-size: .95rem; }
.vs__row .a { color: #8B8683; }
.vs__row .b { position: relative; padding-inline-start: 26px; }
.vs__row .b::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 28px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

@media (max-width: 720px) {
  .vs__head { display: none; }
  .vs__row { grid-template-columns: 1fr; padding-block: 6px; }
  .vs__row > div { padding: 11px 0; }
  .vs__row .b { padding-inline-start: 0; }
  .vs__row .a::before, .vs__row .b::before {
    content: attr(data-label); position: static; display: block;
    width: auto; height: auto; border-radius: 0; background: none;
    font: 500 .72rem/1 var(--font); color: #8B8683; margin-bottom: 6px;
  }
  .vs__row .b::before { color: var(--accent); }
}

/* ── тарифи ────────────────────────────────────────────────────────────── */

#price > .wrap { text-align: center; display: flex; flex-direction: column; align-items: center; }
#price .lead { margin-inline: auto; }

.plans {
  width: 100%; display: grid; gap: clamp(14px, 1.67vw, 24px); margin-top: clamp(34px, 5.9vw, 85px);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 900px) {
  /* Тариф поки один, тож не сітка на три, а одна картка по центру. */
  .plans { grid-template-columns: repeat(auto-fit, minmax(0, 411px)); justify-content: center; align-items: stretch; }
}

/* Картки в макеті — з текстом по центру, а не по лівому краю. */
.plan {
  position: relative; display: flex; flex-direction: column;
  text-align: center;
  background: #0A0A0A; border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px; padding: clamp(22px, 2.22vw, 32px);
  transition: transform .25s ease, border-color .25s ease;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .9);
}
.plan:hover { transform: translateY(-3px); border-color: var(--line-2); }

/* Середній тариф підсвічений і трохи більший: він і є відповіддю для більшості. */
.plan--best {
  isolation: isolate; overflow: hidden;
  border-color: rgba(255, 138, 51, .4);
  box-shadow: 0 44px 90px -40px rgba(255, 106, 0, .85);
}
.plan--best::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(130% 80% at 50% 0%, rgba(255, 106, 0, .6), transparent 60%);
}
@media (min-width: 900px) {
  /* У макеті середня картка не збільшена, а просто вища: 591 проти 518,
     і виступає нагору на 37. Масштаб розмив би їй текст.

     `:not(:only-child)` — бо виступати можна лише над сусідами. Коли тариф
     один, відʼємне поле нема над чим піднімати: воно просто зсуває картку
     вгору, а несиметричні поля згори й знизу видно одразу. */
  .plan--best:not(:only-child) {
    margin-block: clamp(-26px, -2.57vw, -12px) 0;
    padding-block: clamp(34px, 4.7vw, 68px) clamp(22px, 2.22vw, 32px);
  }
}

.plan__name { font: 700 .78rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: #fff; }

.plan__price {
  margin-top: 14px;
  font: 800 clamp(2rem, 1.4rem + 1.7vw, 2.6rem)/1 var(--display);
  letter-spacing: -.03em;
}
.plan__unit { color: #8B8683; font-weight: 700; }
.plan__text { color: #A9A5A2; margin: 16px 0 0; font-size: .88rem; }
.plan__extra { color: #A9A5A2; margin: 8px 0 0; font-size: .88rem; }
.plan__extra::before { content: "• "; }

.plan__points {
  list-style: none; margin: 20px 0 0; padding: 20px 0 0; display: grid; gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  text-align: start;
}
.plan__points li { position: relative; padding-inline-start: 20px; font-size: .86rem; font-weight: 500; }
.plan__points li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .5em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
/* `flex: none` — не примха: картка це колонка з `height: 100%`, і кнопка в
   ній із типовим `flex-shrink: 1` ужимається перша. Коли тексту в тарифі
   ставало більше, вона сплющувалась із 48 px до двадцяти з чимось. */
.plan__cta { flex: none; margin-top: auto; width: 100%; height: 48px; border-radius: 20px; }
.plan__points + .plan__cta { margin-top: 26px; }

.price__note { color: rgba(255, 255, 255, .7); font-size: .88rem; margin: clamp(26px, 3vw, 40px) auto 0; max-width: 68ch; }

/* ── питання ───────────────────────────────────────────────────────────── */

/* Кожне питання — окрема таблетка, як у макеті: у списку з шести рядків
   так видно, де закінчується одне й починається наступне. */
.faq { margin-top: clamp(30px, 5.5vw, 80px); display: grid; gap: clamp(12px, 1.67vw, 24px); }

.faq details {
  position: relative; isolation: isolate; overflow: hidden;
  background: #0A0A0A;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: clamp(16px, 1.67vw, 24px);
  transition: border-color .25s ease;
}
.faq details::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--corner); opacity: .5; transition: opacity .35s ease;
}
.faq details:hover { border-color: rgba(255, 138, 51, .3); }
.faq details:hover::before, .faq details[open]::before { opacity: .9; }
.faq details[open] { border-color: rgba(255, 138, 51, .3); }

.faq summary {
  position: relative;
  list-style: none; cursor: pointer; display: flex; align-items: center;
  min-height: clamp(52px, 4.44vw, 64px);
  padding: 8px clamp(52px, 6vw, 70px) 8px clamp(20px, 2.4vw, 32px);
  font: 500 clamp(.92rem, .9rem + .2vw, 1rem)/1.4 var(--font);
}
.faq summary::-webkit-details-marker { display: none; }

/* Плюс, що стає мінусом: дві смужки, одна з них зникає. */
.faq summary::after,
.faq summary::before {
  content: ""; position: absolute; inset-inline-end: clamp(20px, 2.4vw, 28px);
  width: 17px; height: 2px; border-radius: 2px; background: var(--accent);
  transition: transform .25s ease, opacity .25s ease;
}
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0); opacity: 0; }

.faq p { color: var(--muted); margin: 0; padding: 0 clamp(20px, 2.4vw, 28px) 22px; max-width: 78ch; font-size: .92rem; }

/* ── фінал ─────────────────────────────────────────────────────────────── */

.final { text-align: center; }
.final > .wrap { display: flex; flex-direction: column; align-items: center; }
.final h2 { max-width: 20ch; }
.final .lead { margin-inline: auto; color: rgba(255, 255, 255, .88); }

/* Бланк. Приймача поки немає — див. `final()` у build.py. */
.form {
  display: grid; gap: 16px; text-align: start;
  width: 100%; max-width: 680px; margin: clamp(30px, 3.5vw, 44px) auto 0;
  padding: clamp(18px, 1.67vw, 24px);
  background: rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 138, 51, .55);
  border-radius: 3.5px;
  backdrop-filter: blur(8px);
}
.form__row { display: grid; gap: clamp(14px, 1.39vw, 20px); }
@media (min-width: 720px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 7px; }
.field > span { font-size: .78rem; color: rgba(255, 255, 255, .82); }
.field input, .field textarea {
  width: 100%; height: 47px; padding: 0 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 3.5px;
  color: var(--text); font: 400 .88rem/1.5 var(--font);
  transition: border-color .2s ease, background .2s ease;
}
.field textarea { height: 127px; border-radius: 7.5px; padding: 12px 14px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7C7772; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(255, 255, 255, .08);
}
.form .btn { width: 100%; height: 48px; border-radius: 20px; }
.form__msg { margin: 0; color: rgba(255, 255, 255, .82); font-size: .84rem; text-align: center; }
.form__msg a { color: #fff; font-weight: 600; }
.form__sent { color: #FFD9BC; }
.form .btn[disabled] { opacity: .65; cursor: default; transform: none; }

/* ── підвал ────────────────────────────────────────────────────────────── */

.foot { padding-block: 32px 40px; color: var(--muted); }
.foot__in { display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: center; }
.foot__brand { display: flex; align-items: center; gap: 12px; }
.foot__brand svg { width: 30px; height: 30px; color: var(--accent); }
.foot__brand span { font-size: .95rem; color: var(--text); }
/* Підтримка в підвалі: не кнопка. Головна дія на сторінці одна — піти до
   бота, і другий помаранчевий прямокутник поруч тільки б із нею сперечався.
   Тут це рядок, який стає помаранчевим, коли на нього наводять. */
.foot__support { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem;
                 color: #CFCBC8; text-decoration: none; }
.foot__support svg { width: 16px; height: 16px; flex: none; color: var(--accent); }
.foot__support b { font-weight: 600; color: var(--text); }
.foot__support:hover { color: var(--accent); }
.foot__support:hover b { color: var(--accent); }
.foot__langs { display: flex; flex-wrap: wrap; gap: 4px; margin-inline-start: auto; font-size: .88rem; }
.foot__langs a { color: #CFCBC8; text-decoration: none; }
.foot__langs a:not(:last-child)::after { content: ","; }
.foot__langs a:hover, .foot__langs a[aria-current] { color: var(--accent); }
.foot__legal { width: 100%; color: #6E6A67; font-size: .82rem; }

/* ── що йому доручають ─────────────────────────────────────────────────────
   Плитка — не картка, а кнопка: тиснеш, і під сіткою міняється розмова.
   Тому в неї є стан «обрана», і він мусить читатись здалеку — інакше після
   кліку незрозуміло, чия саме розмова внизу. */

.skills__in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.skills .lead { margin-inline: auto; }

.skills__grid {
  width: 100%; margin: clamp(30px, 3.4vw, 44px) 0 0;
  display: grid; gap: clamp(10px, 1.2vw, 16px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
/* Рівно чотири колонки на широкому: дванадцять плиток так лягають у три
   повні ряди. На `auto-fit` їх ставало пʼять, і останній ряд лишався
   обрубком із двох плиток і дірою праворуч. */
@media (min-width: 1080px) { .skills__grid { grid-template-columns: repeat(4, 1fr); } }
.skill {
  position: relative; overflow: hidden; cursor: pointer; text-align: start;
  display: block; width: 100%; padding: clamp(18px, 1.8vw, 24px);
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card);
  color: inherit; font: inherit;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
/* Те саме світло з кута, що й у решті карток макета, але приглушене:
   дванадцять яскравих кутів поруч перетворили б сітку на гірлянду. */
.skill::before {
  content: ""; position: absolute; inset: 0; background: var(--corner);
  opacity: .05; transition: opacity .3s ease; pointer-events: none;
}
.skill:hover { transform: translateY(-3px); border-color: var(--line-2); }
.skill:hover::before { opacity: .15; }
.skill.is-on { border-color: rgba(255, 138, 51, .5); background: #14100D; }
.skill.is-on::before { opacity: .26; }

.skill__ico {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 12px; background: rgba(255, 106, 0, .12); color: var(--accent);
  transition: background .22s ease;
}
.skill.is-on .skill__ico { background: var(--accent); color: #fff; }
.skill__ico svg { width: 20px; height: 20px; }
.skill__name {
  position: relative; display: block;
  font: 600 .98rem/1.25 var(--font); letter-spacing: -.01em;
}
.skill__text {
  position: relative; display: block; margin-top: 7px;
  color: rgba(255, 255, 255, .58); font-size: .85rem; line-height: 1.45;
}
.skill.is-on .skill__text { color: rgba(255, 255, 255, .74); }

/* Підказка між сіткою й розмовою. Без неї не очевидно, що плитки натискні:
   людина бачить сітку, під нею чат — і не звʼязує одне з одним. */
.demo__hint {
  margin: clamp(26px, 3vw, 38px) 0 0;
  color: var(--dim); font-size: .82rem;
}

.demos { width: 100%; max-width: 760px; margin-top: 14px; text-align: start; }
.demo { display: grid; gap: 8px; }
.demo[hidden] { display: none; }

/* Плитки розмови — суцільні, на всю ширину, а не бульбашки в кутах: тут це
   має читатись як запис розмови, а не як ще один намальований чат. */
.slab {
  padding: 15px 17px; border-radius: 16px;
  font: 400 .93rem/1.45 var(--ui);
}
.slab--me { background: var(--tg-me); color: #fff; font-weight: 500; }
.slab--bot { background: #F4F1ED; color: #1A1815; }
.slab strong { font-weight: 600; }

.slab__meta { float: inline-end; margin: 6px 0 0 10px; font-size: .62rem; white-space: nowrap; }
.slab--me .slab__meta { color: rgba(255, 255, 255, .65); }
.slab--me .slab__meta::after { content: " \2713\2713"; }
.slab--bot .slab__meta { color: #A09B95; }

.slab__file {
  display: flex; align-items: center; gap: 7px; margin-bottom: 8px;
  font-size: .82rem; opacity: .9;
}
.slab__file svg { width: 13px; height: 13px; flex: none; }

.skills__note { margin: clamp(24px, 2.8vw, 34px) 0 0; color: var(--muted); font-size: .88rem; }

/* ── як підключити ─────────────────────────────────────────────────────────
   Стрічка, а не картки. У блоці «як це працює» вище вже є плитка з номерами,
   і другий такий самий ряд читався б як повтор; тут інша річ — послідовність
   із початком і кінцем, тож і лінія крізь усі кроки. */

.setup__in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.setup .lead { margin-inline: auto; }

.steps {
  width: 100%; list-style: none; margin: clamp(34px, 4vw, 52px) 0 0; padding: 0;
  display: grid; gap: clamp(20px, 2.4vw, 32px); text-align: start;
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { position: relative; padding-top: 46px; }
/* Лінія від кружка до кружка. Тягнеться праворуч, тож в останнього її нема —
   інакше вона вибігала б у порожнечу за краєм ряду. */
@media (min-width: 900px) {
  .step::after {
    content: ""; position: absolute; top: 17px; inset-inline-start: 46px;
    inset-inline-end: calc(-1 * clamp(20px, 2.4vw, 32px));
    height: 1px; background: var(--line-2);
  }
  .step:last-child::after { display: none; }
}
.step__n {
  position: absolute; top: 0; inset-inline-start: 0;
  display: grid; place-items: center; width: 35px; height: 35px;
  border-radius: 50%; background: var(--accent); color: #fff;
  font: 700 .88rem/1 var(--font);
  box-shadow: 0 0 0 6px var(--bg);
}
.step h3 { font-size: 1.02rem; }
.step p { margin: 9px 0 0; color: rgba(255, 255, 255, .6); font-size: .88rem; }

/* Вимога підписки. Не дрібним сірим унизу, а окремою плашкою: людина, яка
   дізнається про неї після оплати, — це повернення грошей, а не зекономлений
   рядок на сторінці. */
.setup__note {
  margin: clamp(30px, 3.4vw, 44px) 0 0; max-width: 68ch;
  padding: 14px 20px; border-radius: 14px;
  border: 1px solid rgba(255, 138, 51, .35); background: rgba(255, 106, 0, .07);
  color: rgba(255, 255, 255, .82); font-size: .88rem;
}

/* ── відгуки ───────────────────────────────────────────────────────────── */

.proof__in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.proof .lead { margin-inline: auto; }

.stats {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(20px, 4vw, 64px); margin: clamp(26px, 3vw, 38px) 0 0; padding: 0;
}
.stat { display: grid; gap: 4px; }
.stat b {
  font: 600 clamp(1.8rem, 1.2rem + 2vw, 2.6rem)/1 var(--display);
  letter-spacing: -.02em; color: var(--accent);
}
.stat span { font-size: .84rem; color: var(--muted); }

.says {
  width: 100%; margin-top: clamp(28px, 3.4vw, 44px);
  display: grid; gap: clamp(12px, 1.4vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  text-align: start;
}
.say {
  margin: 0; padding: clamp(22px, 2.2vw, 28px); display: grid; gap: 18px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card);
}
.say blockquote { margin: 0; color: #fff; font-weight: 400; font-size: 1rem; }
.say blockquote::before { content: "\201C"; color: var(--accent); }
.say blockquote::after { content: "\201D"; color: var(--accent); }
.say figcaption { display: grid; gap: 3px; }
.say figcaption b { font-size: .9rem; }
.say figcaption span { font-size: .82rem; color: var(--muted); }
.say figcaption em { font-style: normal; font-size: .78rem; color: var(--dim); }
.proof__note { margin: clamp(24px, 3vw, 36px) 0 0; color: var(--muted); font-size: .88rem; }

/* ── якір ціни ─────────────────────────────────────────────────────────────
   Три однакові коробки, з яких підсвічена одна. Альтернативи навмисно
   тьмяні: їхня робота — бути дорогими сусідами, а не пропозицією. */

.compare__title {
  margin: clamp(28px, 3.4vw, 44px) 0 0;
  font: 500 .78rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase;
  color: #8B8683;
}
.compare {
  width: 100%; list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; gap: clamp(10px, 1.2vw, 16px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  text-align: start;
}
.cmp {
  display: grid; gap: 6px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 18px; background: rgba(0, 0, 0, .4);
}
.cmp__label { font-size: .82rem; color: #8B8683; }
.cmp__value {
  font: 600 clamp(1.3rem, 1rem + 1vw, 1.7rem)/1 var(--display);
  letter-spacing: -.02em; color: rgba(255, 255, 255, .6);
}
.cmp__value i { font-style: normal; font-size: .8rem; font-weight: 500; }
.cmp__note { font-size: .8rem; color: var(--dim); }
.cmp--best { border-color: rgba(255, 138, 51, .45); background: rgba(255, 106, 0, .08); }
.cmp--best .cmp__value { color: var(--accent); }
.cmp--best .cmp__note { color: rgba(255, 255, 255, .6); }

/* ── що буде після кнопки ──────────────────────────────────────────────── */

.onboard__title {
  margin: clamp(28px, 3.4vw, 42px) 0 0;
  font: 500 .78rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.onboard {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; gap: 12px; width: 100%; max-width: 640px; text-align: start;
}
.onboard__step {
  display: flex; align-items: center; gap: 14px;
  font-size: .92rem; color: rgba(255, 255, 255, .86);
}
.onboard__step b {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(255, 255, 255, .14);
  font: 600 .78rem/1 var(--font); color: #fff;
}

/* ── поява при прокрутці ───────────────────────────────────────────────── */

[data-reveal] { opacity: 0; transform: translateY(16px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1); }

[data-reveal] > * { opacity: 0; transform: translateY(14px); }
[data-reveal].is-in > * { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .3, 1); }
[data-reveal].is-in > *:nth-child(2) { transition-delay: .08s; }
[data-reveal].is-in > *:nth-child(3) { transition-delay: .16s; }

@media (max-width: 980px) {
  .top__nav { display: none; }
  .top__in { gap: 12px; height: 66px; }
  .brand { margin-inline-end: auto; }
}
@media (max-width: 420px) { .btn--lg { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation: none !important; }
  [data-reveal], [data-reveal] > *, .hero__in > * { opacity: 1; transform: none; }
  .tick::before { opacity: 1; }
  .ticker { overflow-x: auto; }
}
