/* Лендинг «Вира». Токены - в tokens.css, здесь только разметка и состояния. */

/* Оформление «слайдов»: цвет рамки снят с эталона (#e4e7ea) */
:root { --edge: #e4e7ea; --edge-lit: #b3d4f7; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.47;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(0, 113, 227, .22); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
a { color: var(--link); }
svg { display: block; }

.wrap { width: calc(100% - 2 * var(--gutter)); max-width: var(--wrap-wide); margin-inline: auto; }
main { max-width: 1280px; margin-inline: auto; padding: 0 14px 14px; }
.wrap--narrow { max-width: var(--wrap); }
.center { text-align: center; }
.center .lead, .center .note { margin-inline: auto; }
.actions.center { justify-content: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ритм секций: каждая сцена - «слайд» с тонкой рамкой и радиусом 28px (overflow: clip, чтобы работали sticky внутри) */
.scene {
  position: relative;
  margin-top: 14px;
  padding-block: clamp(52px, 6vw, 74px) clamp(48px, 5.5vw, 66px);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  overflow: clip;
  scroll-margin-top: 66px;
}
.scene > .wrap { width: calc(100% - 36px); max-width: 1140px; }
.scene > .wrap--narrow { max-width: 860px; }
@media (min-width: 700px) { .scene > .wrap { width: calc(100% - 56px); } }
@media (max-width: 920px) { .scene { border-radius: 22px; } }
.scene-alt { background: var(--bg-alt); }
/* типографика */
h1, h2 { font-weight: 700; }
h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; letter-spacing: var(--track-display); margin-top: 22px; }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.06; letter-spacing: var(--track-display); }
/* двухцветный заголовок: вторая часть серая, в hero - акцентное слово */
h1 .dim, h2 .dim { color: var(--text-2); }
h1 em { font-style: normal; color: var(--accent); }
h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.012em; }
h4 { font-size: 17px; line-height: 1.3; }
.lead { font-size: 17px; line-height: 1.6; color: var(--text-2); margin-top: 16px; max-width: 620px; text-wrap: pretty; }
.note { font-size: 14px; line-height: 1.5; color: var(--text-2); margin-top: 32px; max-width: 640px; }
.sec-head { margin-bottom: 40px; }
.plan__price { font-variant-numeric: tabular-nums; }
.plan__tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--fill);
  color: var(--text-2);
}
.plan__tag { align-self: flex-start; background: none; padding: 0; color: var(--link); font-size: 14px; font-weight: 600; }

/* кнопки и ссылки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 113, 227, .26);
  transition: background .2s var(--ease), transform .1s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: #0066cc; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0, 113, 227, .34); } /* 5.6:1 с белым; токен --accent-hover даёт 4.3:1 */
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: 15px; box-shadow: none; }
.btn--sm:hover { box-shadow: none; }
.btn--lg { min-height: 52px; padding: 14px 30px; font-size: 19px; font-weight: 600; }
.btn--line { background: transparent; border: 1.5px solid #cbd2d8; color: var(--text); box-shadow: none; }
.btn--line:hover { background: transparent; border-color: var(--accent); color: var(--link); box-shadow: none; }
.btn--block { width: 100%; margin-top: auto; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }

/* шапка */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 52px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--hairline);
}
.nav__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.nav__links a { font-size: 14px; color: var(--text); text-decoration: none; opacity: .8; min-height: 44px; display: inline-flex; align-items: center; }
.nav__links a:hover { opacity: 1; }
@media (max-width: 479px) { .nav__links { display: none; } }

/* hero */
.hero { padding-top: clamp(40px, 5vw, 64px); }
.hero__grid { display: grid; gap: 56px; align-items: center; }
.hero__text { margin-top: 20px; font-size: 19px; line-height: 1.5; color: var(--text-2); max-width: 520px; }
.hero .actions { margin-top: 36px; }
.hero__copy > .note { margin-top: 22px; font-size: 13px; }
.hero__device { display: flex; flex-direction: column; align-items: center; gap: 24px; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 56px; }
  .hero__device { align-self: start; }
  /* 252 = шапка 52 + отступы 36 + три чипа 148 + запас; пропорции 9/19.5 сохраняются */
  .hero .phone { --phone-w: clamp(280px, calc((100vh - 252px) * .4615), 340px); --phone-w: clamp(280px, calc((100svh - 252px) * .4615), 340px); }
}

/* устройства: телефон (один компонент для hero, feat и xls) */
.phone {
  --phone-w: 340px;
  width: var(--phone-w);
  max-width: 100%;
  aspect-ratio: 9 / 19.5;
  min-height: 0; /* иначе во flex-колонке hero высота раздувается до содержимого чата */
  padding: 10px;
  border-radius: 54px;
  background: #1d1d1f;
  box-shadow: inset 0 0 0 1.5px #3a3a3c, var(--shadow);
  display: flex;
}
.phone__screen { position: relative; flex: 1; min-width: 0; min-height: 0; border-radius: 44px; overflow: hidden; background: var(--bg-alt); display: flex; flex-direction: column; }
.phone__screen::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 120px; height: 4px; margin-left: -60px; border-radius: 2px; background: var(--text); opacity: .85; pointer-events: none; }
.phone__status { position: relative; flex: none; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 8px 24px 0 26px; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.phone__island { position: absolute; top: 9px; left: 50%; width: 80px; height: 26px; margin-left: -40px; border-radius: 14px; background: #000; }
.phone__sys { display: flex; align-items: center; gap: 6px; }
.phone__sys svg { height: 10px; width: auto; fill: currentColor; }
.tg-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 16px 12px; background: var(--surface); border-bottom: 1px solid var(--hairline); }
.tg-head b { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.tg-head small { display: block; font-size: 12px; color: var(--text-2); }
.tg-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 600; }
/* тело чата: новые сообщения снизу, старые уходят вверх под маску */
.tg-chat {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 34px 12px 22px;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 36px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 36px);
}
.tg-chat::-webkit-scrollbar { display: none; }
.tg-chat::before { content: "Сегодня"; align-self: center; flex: none; margin-bottom: -2px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--fill); font-size: 12px; font-weight: 500; color: var(--text-2); }
.tg-chat > :first-child { margin-top: auto; }
.msg {
  max-width: 88%;
  padding: 7px 12px 5px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.34;
  color: var(--text);
  animation: rise .45s var(--ease) both;
}
.msg.in { align-self: flex-start; background: var(--bubble-in); color: var(--bubble-in-text); border-bottom-left-radius: 6px; }
.msg.out { align-self: flex-end; background: var(--bubble-out); color: var(--bubble-out-text); border-bottom-right-radius: 6px; }
.msg .meta { display: block; margin-top: 2px; text-align: right; font-size: 11px; opacity: .7; font-variant-numeric: tabular-nums; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 18px; background: var(--bubble-in); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8e8e93; animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.file { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 10px; border-radius: 14px; background: var(--surface); color: var(--text); font-size: 14px; line-height: 1.3; }
.file > span:last-child { flex: 1 1 0; min-width: 0; }
.file b { display: block; font-weight: 600; overflow-wrap: break-word; }
.file small { color: var(--text-note); font-size: 12px; }
.file__ext { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .04em; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 340px; }
.chip {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease), transform .1s var(--ease);
}
.chip:hover { border-color: var(--text-3); background: var(--bg-alt); }
.chip:active { transform: scale(.97); }
@media (max-width: 599px) {
  .hero { padding-top: 40px; }
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero__copy, .hero__device { display: contents; }
  .hero h1 { order: 1; font-size: clamp(30px, 8.2vw, 40px); line-height: 1.06; margin-top: 0; }
  .hero__text { order: 2; margin-top: 14px; font-size: 17px; }
  .hero .actions { order: 3; margin-top: 20px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .hero__copy > .note { order: 4; margin-top: 10px; }
  .hero .phone { order: 5; align-self: center; --phone-w: 280px; aspect-ratio: auto; height: 440px; margin-top: 16px; padding-bottom: 0; border-radius: 46px 46px 0 0; -webkit-mask-image: linear-gradient(#000 calc(100% - 44px), transparent); mask-image: linear-gradient(#000 calc(100% - 44px), transparent); }
  .hero .phone__screen { border-radius: 36px 36px 0 0; }
  .hero .phone__screen::after { display: none; }
  .hero .phone__status { padding: 8px 22px 0 24px; }
  .hero .phone__island { width: 78px; margin-left: -39px; }
  .hero .phone__sys { gap: 4px; }
  .hero .phone__sys svg { height: 9px; }
  .hero .tg-chat { padding-bottom: 40px; }
  .hero .chips { order: 6; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: none; margin-top: 12px; }
  .hero .chip { min-height: 44px; padding: 8px 12px; font-size: 14px; line-height: 1.25; text-align: center; }
  .hero .chip:last-child { grid-column: 1 / -1; }
}
.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--link); }

/* доверие: одна строка под первым экраном */
.proof { margin: 14px 0 0; padding: 18px 22px; text-align: center; font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--text-2); }

/* карточки и сетка */
.grid3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tile, .step { background: linear-gradient(180deg, var(--bg-alt), var(--surface)); border: 1px solid var(--edge); border-radius: var(--r-md); padding: 22px; }
.tile { display: flex; flex-direction: column; }
.tile p, .step p { color: var(--text-note); margin-top: 10px; font-size: 15px; line-height: 1.5; }
.tile h3, .step h3 { margin-top: 20px; font-size: 20px; }
.step h3 { margin-top: 8px; }
.step__n { display: block; font-size: 15px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .tile, .step { transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
  .tile:hover, .step:hover { transform: translateY(-3px); border-color: var(--edge-lit); box-shadow: 0 12px 30px rgba(40, 50, 60, .07); }
}
@media (min-width: 900px) {
  .grid3 { grid-template-columns: repeat(3, 1fr); }
  .tile, .step { padding: 28px 28px 30px; }
}

/* макеты внутри карточек: фрагмент чата и показатели */
.frag { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r-sm); background: var(--bg-alt); }
.tile .frag { background: var(--bg-alt); }
.frag .msg { max-width: 92%; }
.frag__cap { align-self: flex-end; font-size: 12px; color: var(--text-note); }
.frag--kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 8px; }
.frag--kpi .frag__cap, .frag--kpi .file { grid-column: 1 / -1; }
.frag .file { margin-top: 0; }
.kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hairline); }
.kpi__lbl { font-size: 12px; color: var(--text-note); line-height: 1.25; }
.kpi__val { font-size: 17px; font-weight: 600; letter-spacing: var(--track-display); line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.delta { display: inline-block; margin-top: 2px; padding: 3px 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.delta--up { color: var(--up); background: var(--up-bg); }
.delta--down { color: var(--down); background: var(--down-bg); }






/* тарифы: ползунок точек */
.calc { display: none; margin-bottom: 36px; padding: 28px 32px 22px; background: var(--surface); border: 1px solid var(--edge); border-radius: var(--r-md); }
.js .calc { display: block; }
.calc__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.calc__label { font-size: 21px; font-weight: 600; letter-spacing: -.012em; line-height: 1.25; }
.calc__val { display: flex; align-items: baseline; gap: 8px; font-size: 17px; color: var(--text-2); white-space: nowrap; }
.calc__val output { font-size: clamp(44px, 6vw, 56px); font-weight: 600; letter-spacing: var(--track-display); line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.range {
  --thumb: 28px;
  --track: linear-gradient(to right, var(--accent) calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--f, 0)), rgba(0, 0, 0, .12) calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--f, 0)));
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 44px;
  margin: 8px 0 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
}
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--track); }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--track); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--thumb);
  height: var(--thumb);
  margin-top: calc((4px - var(--thumb)) / 2);
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2), 0 0 0 .5px rgba(0, 0, 0, .1);
}
.range::-moz-range-thumb { width: var(--thumb); height: var(--thumb); box-sizing: border-box; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .2), 0 0 0 .5px rgba(0, 0, 0, .1); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent); }
.calc__ticks { position: relative; height: 20px; font-size: 13px; line-height: 20px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.calc__ticks span { position: absolute; top: 0; left: calc(14px + (100% - 28px) * var(--f)); transform: translateX(-50%); }

/* тарифы: карточки. Цвет-метка тарифа - --plan-c (точка у названия, галочки, «+»); выделенная карточка - .plan--feat */
#pricing .plan[data-plan="1.0"] { --plan-c: #0e7c86; }
#pricing .plan[data-plan="2.0"] { --plan-c: #0071e3; }
#pricing .plan[data-plan="3.0"] { --plan-c: #8944ab; }
#pricing .plan[data-plan="custom"] { --plan-c: #48484a; }
.plans [hidden] { display: none; }
.plans { display: grid; gap: 32px 16px; grid-template-columns: 1fr; }
.plan {
  --pad: 28px;
  position: relative;
  background: linear-gradient(180deg, var(--bg-alt), var(--surface));
  border-radius: var(--r-md);
  padding: 36px var(--pad) 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid var(--edge);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.plan--feat {
  border: 2px solid var(--accent);
  padding: 35px calc(var(--pad) - 1px) 31px;
  background: linear-gradient(to bottom, rgba(0, 113, 227, .06), rgba(0, 113, 227, 0) 40%), var(--surface);
  box-shadow: 0 20px 50px rgba(0, 113, 227, .18);
}
.plan__head { display: grid; gap: 6px; }
.plan h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: .01em; white-space: nowrap; }
.plan h3::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--plan-c); }
.plan__sub { font-size: 15px; color: var(--text-2); line-height: 1.35; }
/* бейджи сидят на верхней рамке; кольцо цвета секции «вырезает» рамку под ними */
.plan > .plan__tag {
  position: absolute;
  top: -14px;
  left: 24px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: #8944ab;
  box-shadow: 0 0 0 3px var(--bg-alt);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.plan > .plan__tag--hot { left: 50%; transform: translateX(-50%); background: var(--accent); }
.plan:not(.plan--feat) > .plan__tag--hot { display: none; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; font-size: 28px; font-weight: 600; letter-spacing: var(--track-display); line-height: 1.1; color: var(--text); }
.plan__price small { margin: 0; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--text-2); white-space: nowrap; }
.plan__extra { font-size: 15px; color: var(--text-2); margin-top: 8px; }
.plan__total { display: none; flex-direction: column; justify-content: center; gap: 4px; min-height: 98px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--bg-alt); font-size: 14px; line-height: 1.35; color: var(--text-2); transition: background-color .3s var(--ease); }
.plan--feat .plan__total { background: rgba(0, 113, 227, .08); }
.js .plan__total { display: flex; }
.plan__sum span { display: block; }
.plan__sum b { display: block; margin-top: 2px; font-size: 22px; font-weight: 600; letter-spacing: var(--track-display); line-height: 1.15; color: var(--text); font-variant-numeric: tabular-nums; }
.plan__q, .plan__chain { font-variant-numeric: tabular-nums; }
.plan__list { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--hairline); display: grid; gap: 12px; font-size: 15px; line-height: 1.4; color: var(--text-2); }
.plan__list li { position: relative; padding-left: 24px; }
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 14px;
  height: 14px;
  background: var(--plan-c);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-6.5' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-6.5' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan__list .plan__more { color: var(--text); font-weight: 600; }
.plan__list .plan__more::before { content: "+"; top: 0; left: 3px; width: auto; height: auto; background: none; -webkit-mask: none; mask: none; color: var(--plan-c); font-size: 17px; font-weight: 700; line-height: 1.4; }
/* кнопки: у выделенной сплошная с тенью, у остальных белая контурная */
.plan .btn {
  margin-top: auto;
  min-height: 48px;
  border: 1.5px solid #cbd2d8;
  background: #fff;
  box-shadow: none;
  color: var(--text);
  font-weight: 600;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .1s var(--ease);
}
.plan .btn:active { transform: scale(.97); }
.plan .btn:hover { background: #fff; border-color: var(--link); color: var(--link); box-shadow: none; }
.plan--feat .btn { border-color: transparent; background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(0, 113, 227, .30); }
.plan--feat .btn:hover { background: #0066cc; border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(0, 113, 227, .30); }
@media (min-width: 700px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan__sub { min-height: 2.7em; }
}
@media (min-width: 1100px) {
  .plans { grid-template-columns: repeat(4, 1fr); }
  .plan { --pad: 26px; padding-bottom: 36px; }
  .plan__extra { min-height: 3em; }
  .plan--feat { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .plan, .plan__total, .plan .btn { transition: none; }
}


/* тарифы: сравнение */
.cmp { margin-top: 32px; text-align: center; }
.cmp summary { display: inline-flex; list-style: none; cursor: pointer; gap: 10px; }
.cmp summary::-webkit-details-marker { display: none; }
.cmp summary::after { content: ""; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease), margin .3s var(--ease); }
.cmp[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.cmp[open] > summary { margin-bottom: 28px; }
.cmp table { text-align: left; width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.cmp caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cmp thead th { position: sticky; top: 52px; z-index: 3; padding: 16px 8px; background: var(--bg-alt); border-bottom: 1px solid var(--hairline); font-size: 14px; font-weight: 600; letter-spacing: .01em; text-align: center; }
.cmp tbody th, .cmp td { border-bottom: 1px solid var(--hairline); }
.cmp tbody th[scope="row"] { padding: 14px 16px 14px 0; font-size: 15px; font-weight: 400; line-height: 1.4; text-align: left; color: var(--text); }
.cmp tbody th[scope="colgroup"] { padding: 40px 0 14px; font-size: 21px; font-weight: 600; letter-spacing: -.012em; line-height: 1.25; text-align: left; }
.cmp tbody:first-of-type th[scope="colgroup"] { padding-top: 20px; }
.cmp td { padding: 14px 8px; font-size: 15px; line-height: 1.3; text-align: center; vertical-align: middle; }
.cmp thead th:first-child { width: 30%; }
.ic { display: inline-block; width: 22px; height: 22px; vertical-align: middle; color: var(--text); }
.ic--no { color: var(--text-3); }
.cmp td { position: relative; }
.cmp td .tag-soon { position: absolute; top: 50%; left: calc(50% + 18px); margin: 0; transform: translateY(-50%); white-space: nowrap; }
@media (max-width: 699px) {
  .cmp__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .cmp table { min-width: 700px; }
  .cmp thead th:first-child { width: 168px; }
  .cmp thead th:first-child, .cmp tbody th[scope="row"] { position: sticky; left: 0; z-index: 2; background: var(--bg-alt); }
  .cmp thead th:first-child { z-index: 4; }
  .cmp tbody th[scope="row"] { padding-right: 12px; font-size: 14px; box-shadow: 1px 0 0 var(--hairline); }
  .cmp th[scope="colgroup"] span { position: sticky; left: 0; display: inline-block; }
  .cmp td { padding-inline: 4px; }
  .cmp td .tag-soon { position: static; display: block; width: max-content; margin: 4px auto 0; transform: none; }
}

/* вопросы */
.faq { border-top: 1px solid var(--edge); }
.faq details { border-bottom: 1px solid var(--edge); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 20px 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.012em;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { border-radius: 8px; }
.plus { position: relative; flex: none; width: 16px; height: 16px; color: var(--link); }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 2px; border-radius: 1px; background: currentColor; transform: translateY(-50%); transition: transform .4s var(--ease); }
.plus::after { transform: translateY(-50%) rotate(90deg); }
.faq details[open] .plus::after { transform: translateY(-50%) rotate(0deg); }
.ans { overflow: hidden; }
.ans p { padding: 0 4px 22px; color: var(--text-2); font-size: 16px; line-height: 1.55; max-width: 680px; }
.faq details[open] .ans { animation: unfold .5s var(--ease) both; }

/* финал и подвал */
.final { padding-block: clamp(64px, 8vw, 92px) clamp(60px, 7vw, 84px); }
.final h2 { font-size: clamp(32px, 4.6vw, 58px); }
.foot { padding: 26px 0 40px; font-size: 14px; color: var(--text-2); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--text-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* мобильная ширина */

/* движение: появление, бегущие строки, индикатор */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .msg, .faq details[open] .ans { animation: none; }
  .typing i { animation: none; }
  .plus::before, .plus::after { transition: none; }
}

/* пометка «скоро» / «по запросу» у функций, которых пока нет или которые делаются под заказ */
.tag-soon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--fill);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

/* последняя подпись («11+») прижата к краю дорожки, чтобы не наезжать на «10» на узком экране */
.calc__ticks span:last-child { left: 100%; transform: translateX(-100%); }
.calc__note { margin-top: 12px; font-size: 13px; line-height: 1.4; color: var(--text-2); }

/* пробный период и переключатель «Месяц / Год»: переключатель живёт только с JS */
.trial { margin: 0 0 20px; text-align: center; font-size: 17px; color: var(--text); }
.period { display: none; justify-content: center; gap: 8px; margin: 0 0 24px; }
.js .period { display: flex; }
.period .chip { display: inline-flex; align-items: center; gap: 8px; }
.period__hint { font-size: 13px; font-weight: 600; color: var(--up); }
.plan__save { font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--up); }
.plan__save[hidden] { display: none; }
@media (max-width: 480px) {
  .period { flex-wrap: wrap; }
  .period .chip { flex: 1 1 140px; justify-content: center; }
}
.plans .plan > .plan__tag[hidden] { display: none; }

/* ================= движение =================
   Тезис: цифры приходят сами, ответ появляется; главный момент - ноутбук в dash «открывается» прокруткой.
   Скрытые состояния живут под html.anim (его ставит site.js, если нет prefers-reduced-motion) и, только для hero,
   под .js с аварийным показом через 2.5 с. Без скрипта и при reduce всё на месте в конечном виде.
   Двигаем только transform, translate, scale, opacity и clip-path. */
:root { --out: cubic-bezier(.16, 1, .3, 1); }
@keyframes safe { to { opacity: 1; translate: 0 0; scale: 1; } }

/* заголовки: строки появляются из-под маски (site.js оборачивает строки в .ln > .lni) */
.ln { display: block; overflow: hidden; white-space: nowrap; padding-block: .1em; margin-block: -.1em; }
.ln > .lni { display: block; transform: translateY(110%); transition: transform .75s var(--out) calc(var(--d, 0) * 1ms); }
.in .ln > .lni { transform: none; }

/* блоки под заголовком секции: подъём и проявление лесенкой */
.anim .rv-up { opacity: 0; translate: 0 18px; transition: opacity .8s var(--out) calc(var(--d, 0) * 1ms), translate .8s var(--out) calc(var(--d, 0) * 1ms); }
.anim .reveal.in .rv-up, .anim .rv-up.in { opacity: 1; translate: 0 0; }

/* сетки как списки: у каждой свой жест; классы снимаются скриптом после появления */
.anim [class*="stg-"] { transition: opacity .6s var(--out) var(--dl, 0ms), translate .8s var(--out) var(--dl, 0ms), scale .8s var(--out) var(--dl, 0ms); }
.anim .stg-up:not(.in) { opacity: 0; translate: 0 24px; }
.anim .stg-scale:not(.in) { opacity: 0; scale: .97; }
.anim .stg-right:not(.in) { opacity: 0; translate: 56px 0; }
.anim .stg-plan:not(.in) { opacity: 0; translate: 0 36px; scale: .98; }
.anim .stg-plan.plan--feat { transition-timing-function: cubic-bezier(.34, 1.5, .64, 1); } /* выделенная «встаёт» на свои -12px с лёгким пружинным подскоком */

/* hero: загрузка. H1 по строкам, затем текст, телефон въезжает снизу со scale .96 -> 1 */
@media (prefers-reduced-motion: no-preference) {
  .hero :is(.hero__text, .hero__copy > .actions, .hero__copy > .note, .phone, .chips) {
    transition: opacity .8s var(--out) var(--hd, 0s), translate .8s var(--out) var(--hd, 0s), scale .9s var(--out) var(--hd, 0s);
  }
  .hero__text { --hd: .48s; }
  .hero__copy > .actions { --hd: .56s; }
  .hero__copy > .note { --hd: .64s; }
  .hero .phone { --hd: .55s; }
  .hero .chips { --hd: .9s; }
  .js .hero:not(.in) :is(.hero__text, .hero__copy > .actions, .hero__copy > .note, .phone, .chips) { opacity: 0; translate: 0 18px; animation: safe 0s 2.6s forwards; }
  .js .hero:not(.in) .hero__device .phone { translate: 0 44px; scale: .96; }
  .js .hero h1:not(.is-split) { opacity: 0; animation: safe 0s 2.4s forwards; }
}


@keyframes pop { from { opacity: 0; scale: .88; } }
.anim .msg .file { animation: pop .5s var(--out) .35s backwards; }





/* cookie-плашка: светлая карточка, тёмная тема по системе */
.cookie { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; width: calc(100% - 2 * var(--gutter)); max-width: 760px; display: flex; align-items: center; gap: 12px 20px; padding: 16px 20px; background: var(--surface); color: var(--text); border-radius: var(--r-md); box-shadow: var(--shadow); font-size: 15px; line-height: 1.45; letter-spacing: -.011em; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1 1 auto; }
.cookie a { color: var(--link); }
.cookie .btn { flex: 0 0 auto; min-width: 120px; }
@media (max-width: 560px) {
  .cookie { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie .btn { width: 100%; min-width: 0; }
}
@media (prefers-color-scheme: dark) {
  .cookie { background: #1c1c1e; color: #f5f5f7; box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 12px 32px rgba(0, 0, 0, .5); }
  .cookie a { color: #2997ff; }
}

/* мобильная ширина */
@media (max-width: 380px) { :root { --gutter: 16px; } }

/* финал: заголовок проявляется прокруткой (CSS scroll-driven animations), запасной путь - прогресс --fp из site.js */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    #final h2 { animation: finalIn linear both; animation-timeline: view(); animation-range: entry 0% cover 36%; }
    @keyframes finalIn { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }
  }
}
.anim.no-sda #final h2 { opacity: var(--fp, 1); scale: calc(.92 + .08 * var(--fp, 1)); }

/* телефон: тарифы листаются по горизонтали внутри блока (scroll-snap), страница по ширине не прокручивается */
@media (max-width: 699px) {
  .scene { padding-block: 36px 32px; }
  .sec-head { margin-bottom: 24px; }
  .plans { display: flex; gap: 12px; margin-inline: -18px; padding: 22px 18px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .plans::-webkit-scrollbar { display: none; }
  .plans .plan { flex: 0 0 82%; scroll-snap-align: center; }
  .plans .plan[hidden] { display: none; }
}

/* временно скрыто по просьбе Джамала 27.10 (повторно 29.10); вернуть - удалить эту строку */
.tag-soon--soon { display: none !important; }
