/* AvtoLink — лендинг. Токены совпадают с приложением (mobile/ios/AvtoLink/DesignSystem/Colors.swift). */

:root {
  --accent: #FFCE1F;
  --accent-soft: #FFE7A0;
  --ink: #141414;
  --bg: #F4F2EC;
  --card: #FFFFFF;
  --muted: #6B665C;
  --line: #E6E2D8;
  --success: #1F8A55;
  --success-bg: #D8F3E4;
  --success-text: #135C38;
  --unread: #FF5A3C;
  --mint: #3BE08F;
  --on-dark: #C9C4B8;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --plate: "Roboto Condensed", "Arial Narrow", sans-serif;

  --container: 1240px;
  --pad: clamp(16px, 4vw, 32px);
  --r-xl: clamp(28px, 4vw, 48px);
  --r-lg: 32px;
  --r-md: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
/* Повёрнутая бегущая строка и декор выходят за края — обрезаем без скролл-контейнера (sticky продолжает работать). */
main { overflow-x: clip; }
button { font: inherit; color: inherit; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }

.i {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 12px; }
.demo :focus-visible, .tile--ink :focus-visible, .download :focus-visible { outline-color: var(--accent); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }

/* Заголовки: Unbounded. В нём нет таджикских букв (ғ ӣ қ ӯ ҳ ҷ) — на tg набираем Onest, как в приложении. */
.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  font-size: var(--fs, 1em);
}
html[lang="tg"] .display {
  font-family: var(--font);
  letter-spacing: -0.03em;
  font-size: calc(var(--fs, 1em) * 1.08);
}

/* ---------- Кнопки, чипы ---------- */
.btn {
  --h: 60px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; border: 0; border-radius: 999px;
  font: 800 17px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { box-shadow: 0 16px 30px -14px rgba(20, 20, 20, .7); }
.btn--ghost { background: rgba(20, 20, 20, .08); color: var(--ink); }
.btn--ghost:hover { background: rgba(20, 20, 20, .13); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--glass { background: rgba(255, 255, 255, .1); color: #fff; }
.btn--glass:hover { background: rgba(255, 255, 255, .16); }
.btn--sm { --h: 44px; padding: 0 18px; font-size: 15px; }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 15px;
}
.chip--ink { background: var(--ink); color: #fff; }
.chip--ink .i { color: var(--accent); }
.chip--accent { background: var(--accent); color: var(--ink); }

/* ---------- Навигация ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 242, 236, .82);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  transition: box-shadow .3s;
}
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(20, 20, 20, .08); }
.nav__inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 800 22px/1 var(--display); letter-spacing: -0.04em;
}
.brand svg { width: 34px; height: 34px; }
.nav__links { display: flex; gap: 2px; margin-inline: auto; }
.nav__links a {
  padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 15px; color: rgba(20, 20, 20, .72);
  transition: background-color .2s, color .2s;
}
.nav__links a:hover { background: rgba(20, 20, 20, .06); color: var(--ink); }
.nav__end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__links + .nav__end { margin-left: 0; }

.lang-switch { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(20, 20, 20, .08); }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  padding: 8px 14px; min-height: 36px; border-radius: 999px; font-weight: 800; font-size: 14px;
  transition: background-color .2s, color .2s;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }

@media (max-width: 1020px) {
  .nav__links { display: none; }
}
@media (max-width: 520px) {
  .nav__cta { display: none; }
  .brand { font-size: 20px; }
  .brand svg { width: 30px; height: 30px; }
}

/* ---------- Hero ---------- */
.hero { padding: 8px var(--pad) 0; }
.hero__card {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center;
  gap: clamp(24px, 4vw, 56px);
  min-height: min(840px, calc(100svh - 92px));
  padding: clamp(32px, 6vw, 88px) clamp(24px, 6vw, 88px);
  border-radius: var(--r-xl);
  background: var(--accent);
}
.hero__watermark {
  position: absolute; z-index: -1; width: 720px; height: 720px; left: -180px; bottom: -280px;
  color: rgba(20, 20, 20, .055); transform: rotate(-14deg);
}
.hero__title { --fs: clamp(46px, 6.2vw, 96px); margin: 24px 0; }
.hero__lead { max-width: 31ch; font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; line-height: 1.4; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 30px; font-size: 15px; font-weight: 700; }
.hero__points li { display: flex; align-items: center; gap: 8px; }
.tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--accent); }
.tick .i { width: 15px; height: 15px; stroke-width: 2.6; }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 620px; }
.phone--hero { width: clamp(250px, 25vw, 330px); transform: rotate(-4deg); }
.phone--hero .phone__frame { filter: drop-shadow(0 50px 50px rgba(20, 20, 20, .32)); }

.float { position: absolute; z-index: 2; animation: float 7s ease-in-out infinite; }
.float--notif { top: 5%; left: -10%; width: min(350px, 82%); rotate: 2deg; }
.float--hidden { bottom: 22%; left: -4%; rotate: -5deg; animation-delay: -2.4s; }
.float--sticker { bottom: 5%; right: 0; rotate: 10deg; animation-delay: -4.2s; }
.hidden-num {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px;
  border-radius: 999px; background: var(--ink); color: #fff;
  box-shadow: 0 24px 40px -18px rgba(20, 20, 20, .6);
}
.hidden-num__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--ink); }
.hidden-num__digits { font: 600 18px / 1 var(--mono); letter-spacing: .02em; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

@media (max-width: 960px) {
  .hero__card { grid-template-columns: 1fr; min-height: 0; }
  .hero__visual { min-height: 560px; margin-top: 8px; }
  .float--notif { left: 0; top: 4%; }
  .float--hidden { left: 0; }
}
@media (max-width: 520px) {
  .hero__visual { min-height: 500px; }
  .phone--hero { width: 232px; }
  .float--notif { width: 92%; left: -2%; top: 2%; }
  .float--hidden { bottom: 14%; left: -2%; }
  .hidden-num__digits { font-size: 15px; }
  .hidden-num__ic { width: 34px; height: 34px; }
  .float--sticker { right: -4%; bottom: 0; }
  .float--sticker .sticker { --s: 116px !important; }
}

/* ---------- Телефон: скриншот под рамкой мока (экран — прозрачная «дыра» в рамке) ---------- */
.phone { position: relative; aspect-ratio: 1470 / 3000; width: 100%; }
.phone__frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.phone__screen {
  position: absolute; left: 5.102%; top: 2.2%; width: 89.796%; height: 95.6%;
  /* скругление экрана мока: 170 px при ширине 1320 и высоте 2868 */
  border-radius: 12.9% / 5.93%;
  object-fit: cover; overflow: hidden; background: var(--bg);
}
.phone__screen--html { container-type: inline-size; }

/* ---------- Уведомление iOS ---------- */
.notif {
  --u: 1px;
  display: flex; gap: calc(var(--u) * 12); padding: calc(var(--u) * 14) calc(var(--u) * 16);
  border-radius: calc(var(--u) * 26);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 calc(var(--u) * 26) calc(var(--u) * 50) calc(var(--u) * -20) rgba(20, 20, 20, .5);
  color: var(--ink); text-align: left;
}
.notif__icon {
  flex: none; display: grid; place-items: center;
  width: calc(var(--u) * 42); height: calc(var(--u) * 42); border-radius: calc(var(--u) * 11);
  background: var(--accent);
}
.notif__icon svg { width: 62%; height: 62%; color: var(--ink); }
.notif__body { flex: 1; min-width: 0; display: grid; gap: calc(var(--u) * 2); }
.notif__top { display: flex; justify-content: space-between; gap: 8px; font-size: calc(var(--u) * 14); }
.notif__top b { font-weight: 800; }
.notif__top span { color: var(--muted); }
.notif__title { font-weight: 800; font-size: calc(var(--u) * 16); line-height: 1.25; }
.notif__text { font-size: calc(var(--u) * 15); line-height: 1.35; }
.notif__actions { display: flex; gap: calc(var(--u) * 8); margin-top: calc(var(--u) * 10); }
.notif__actions > * {
  flex: 1; display: grid; place-items: center; height: calc(var(--u) * 40); border: 0; border-radius: 999px;
  background: var(--bg); font-weight: 800; font-size: calc(var(--u) * 15); color: var(--ink);
}
.notif__actions .is-primary { background: var(--ink); color: #fff; }

/* ---------- Госномер как на реальной табличке (пропорции 5,55 : 1, всё от высоты) ---------- */
.plate {
  --h: 48px;
  display: inline-flex; align-items: center; flex: none;
  width: calc(var(--h) * 5.55); height: var(--h);
  border: max(1.2px, calc(var(--h) * .03)) solid #1A1A1A; border-radius: calc(var(--h) * .08);
  background: #fff; color: #111;
}
.plate__side { display: flex; flex-direction: column; align-items: center; gap: calc(var(--h) * .11); margin-left: calc(var(--h) * .19); }
.plate__flag {
  width: calc(var(--h) * .44); height: calc(var(--h) * .3);
  background: linear-gradient(#D7373A 0 28.6%, #fff 28.6% 71.4%, #2C7A25 71.4%);
}
.plate__tj { font: 700 calc(var(--h) * .31) / 1 var(--plate); }
.plate__num {
  flex: 1; text-align: center; white-space: nowrap;
  padding-inline: calc(var(--h) * .12);
  font: 400 var(--h) / 1 var(--plate);
  translate: 0 calc(var(--h) * .015);
}

/* ---------- Стикер ---------- */
.sticker {
  --s: 150px;
  display: flex; flex-direction: column; align-items: center; gap: calc(var(--s) * .07);
  width: var(--s); padding: calc(var(--s) * .1) calc(var(--s) * .1) calc(var(--s) * .08);
  border-radius: calc(var(--s) * .16);
  background: var(--accent);
  box-shadow: 0 30px 50px -24px rgba(20, 20, 20, .55), inset 0 0 0 1px rgba(20, 20, 20, .06);
}
.sticker__window { display: block; width: 100%; padding: calc(var(--s) * .05); border-radius: calc(var(--s) * .07); background: #fff; }
.sticker__window svg { width: 100%; height: auto; aspect-ratio: 1; color: var(--ink); }
.sticker__brand {
  display: flex; align-items: center; gap: calc(var(--s) * .04);
  font: 800 calc(var(--s) * .1) / 1 var(--display); letter-spacing: -0.04em;
}
.sticker__brand svg { width: calc(var(--s) * .12); height: calc(var(--s) * .12); }

/* ---------- Бегущая строка ---------- */
.marquee {
  position: relative; z-index: 3; overflow: hidden;
  margin: clamp(-36px, -3vw, -20px) -2% 0; padding: 22px 0;
  background: var(--ink); color: var(--accent);
  rotate: -2deg;
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__group { display: flex; flex: none; }
.marquee__group > span {
  display: inline-flex; align-items: center; gap: 14px; padding-inline: 28px;
  font: 800 clamp(20px, 2.4vw, 30px) / 1 var(--font); white-space: nowrap;
}
.marquee__group > span::after { content: ""; width: 10px; height: 10px; margin-left: 42px; border-radius: 50%; background: rgba(255, 206, 31, .35); }
.marquee .i { width: 1.1em; height: 1.1em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { padding-block: clamp(80px, 11vw, 150px) 0; }
.section--tight { padding-top: clamp(64px, 8vw, 110px); }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-title { --fs: clamp(30px, 4.3vw, 58px); line-height: 1.04; }
.demo .section-head { max-width: 920px; }
@media (max-width: 520px) {
  .section-title { --fs: 29px; overflow-wrap: break-word; }
}
.section-lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 52ch; }
.section-head--light .section-lead { color: var(--on-dark); }
.section-head .chip { justify-self: start; }

/* Зачем */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-card { display: grid; align-content: start; gap: 18px; padding: clamp(24px, 3.5vw, 40px); border-radius: var(--r-lg); }
.why-card h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; line-height: 1.15; margin-top: 12px; }
.why-card--old { background: var(--card); }
.why-card--new { background: var(--accent); }
.why-card__art { display: grid; place-items: center; min-height: 210px; }
.why-card__art .sticker { rotate: -6deg; }
.note {
  position: relative; justify-self: center; margin-block: 18px 10px; width: min(100%, 360px);
  display: grid; gap: 6px; padding: 28px 30px 30px;
  background: #FFFDF5 repeating-linear-gradient(transparent 0 33px, #ECE5D2 33px 34px);
  border-radius: 6px; rotate: -2.5deg;
  box-shadow: 0 22px 40px -26px rgba(20, 20, 20, .45);
}
.note::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; translate: -50% 0; rotate: 3deg;
  background: rgba(255, 231, 160, .85); box-shadow: 0 2px 6px rgba(20, 20, 20, .08);
}
.note__hint { font-weight: 700; color: var(--muted); }
.note__num { font: 600 clamp(22px, 2.6vw, 30px) / 1.2 var(--mono); letter-spacing: -0.02em; }
.note__strike { position: absolute; left: 18px; right: 18px; top: 62%; height: 7px; border-radius: 4px; background: var(--unread); rotate: -5deg; }

.marks { display: grid; gap: 12px; font-size: 17px; font-weight: 600; }
.marks li { display: flex; align-items: flex-start; gap: 12px; }
.mark-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--accent); }
.mark-ic .i { width: 16px; height: 16px; stroke-width: 2.6; }
.marks--bad .mark-ic { background: #FFE1DA; color: var(--unread); }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--card); }
.step__text { padding: 30px 30px 0; }
.step__num {
  display: inline-flex; padding: 6px 12px; border-radius: 999px;
  background: var(--ink); color: var(--accent); font: 600 14px / 1 var(--mono);
}
.step h3 { margin: 18px 0 8px; font-size: 24px; font-weight: 800; line-height: 1.15; }
.step p { color: var(--muted); }
.step__visual { position: relative; display: flex; justify-content: center; height: 360px; margin-top: auto; padding-top: 32px; overflow: hidden; }
.step__visual--sticker { align-items: center; padding-top: 0; background: radial-gradient(circle at 50% 55%, var(--accent-soft) 0 34%, transparent 34.5%); }
.sticker--tilt { rotate: -8deg; }
.serial-tag {
  position: absolute; right: 14%; bottom: 18%; rotate: 6deg;
  padding: 8px 12px; border-radius: 10px; background: var(--ink); color: #fff; font: 600 14px var(--mono);
}
.phone--peek { width: 252px; flex: none; }
.phone--peek .phone__frame { filter: drop-shadow(0 20px 30px rgba(20, 20, 20, .2)); }

/* ---------- Демо ---------- */
.demo {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(32px, 6vw, 80px) clamp(20px, 5vw, 72px) clamp(28px, 4vw, 48px);
  border-radius: var(--r-xl); background: var(--ink); color: #fff;
}
.demo__glow {
  position: absolute; z-index: -1; inset: -20% -10% auto auto; width: 70%; height: 80%;
  background: radial-gradient(closest-side, rgba(255, 206, 31, .22), transparent);
}
.demo .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.demo__stage { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 3vw, 40px); }
.demo__side { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.demo__label { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--on-dark); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(255, 206, 31, .18); }
.phone--demo { width: clamp(270px, 27vw, 340px); }
.phone--demo .phone__frame { filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .55)); }

.demo__wire { display: flex; align-items: center; color: var(--accent); }
.demo__wire-line {
  width: clamp(24px, 4vw, 56px); height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 206, 31, .5) 0 6px, transparent 6px 12px);
}
.demo__wire-dot {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 206, 31, .12); border: 1.5px solid rgba(255, 206, 31, .4);
  transition: transform .3s var(--ease), background-color .3s;
}
.demo__wire.is-active .demo__wire-line { animation: wire .6s linear infinite; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); background-size: 12px 2px; }
.demo__wire.is-active .demo__wire-dot { background: var(--accent); color: var(--ink); transform: scale(1.12); }
@keyframes wire { to { background-position: 12px 0; } }

.demo__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; margin-top: 32px; }
.demo__hint { color: var(--on-dark); font-weight: 600; text-align: center; }

@media (max-width: 860px) {
  .demo__stage { grid-template-columns: 1fr; }
  .demo__wire { flex-direction: column; }
  .demo__wire-line { width: 2px; height: 28px; background: repeating-linear-gradient(rgba(255, 206, 31, .5) 0 6px, transparent 6px 12px); }
  .demo__wire.is-active .demo__wire-line { background: repeating-linear-gradient(var(--accent) 0 6px, transparent 6px 12px); background-size: 2px 12px; animation-name: wire-v; }
  @keyframes wire-v { to { background-position: 0 12px; } }
  .phone--demo { width: min(330px, 84vw); }
}

/* Страница гостя внутри телефона: единица --u = 1 pt экрана iPhone (402 pt по ширине) */
.gp, .lock { --u: calc(100cqw / 402); position: absolute; inset: 0; overflow: hidden; }
.gp { background: var(--bg); color: var(--ink); }
.sb {
  display: flex; align-items: center; justify-content: space-between;
  height: calc(var(--u) * 54); padding: calc(var(--u) * 6) calc(var(--u) * 30) 0 calc(var(--u) * 48);
  font: 600 calc(var(--u) * 17) / 1 var(--font);
}
.sb__icons { display: flex; align-items: center; gap: calc(var(--u) * 6); }
.sb__icons svg:nth-child(1) { width: calc(var(--u) * 18); height: calc(var(--u) * 12); }
.sb__icons svg:nth-child(2) { width: calc(var(--u) * 16); height: calc(var(--u) * 12); }
.sb__icons svg:nth-child(3) { width: calc(var(--u) * 27); height: calc(var(--u) * 12); }
.sb--light { color: #fff; }

.gp__body { display: grid; gap: calc(var(--u) * 12); padding: calc(var(--u) * 8) calc(var(--u) * 16) calc(var(--u) * 20); }
.gp__head { display: flex; align-items: center; justify-content: space-between; }
.gp__logo { display: flex; align-items: center; gap: calc(var(--u) * 6); font: 800 calc(var(--u) * 18) / 1 var(--display); letter-spacing: -0.04em; }
.gp__logo svg { width: calc(var(--u) * 26); height: calc(var(--u) * 26); }
.gp__serial { font: 600 calc(var(--u) * 12) var(--mono); color: var(--muted); }
.gp__hero { display: grid; gap: calc(var(--u) * 8); padding: calc(var(--u) * 16) calc(var(--u) * 18) calc(var(--u) * 18); border-radius: calc(var(--u) * 24); background: var(--accent); }
.gp__note { display: flex; align-items: center; gap: calc(var(--u) * 6); font-size: calc(var(--u) * 13); font-weight: 700; }
.gp__note .i { width: calc(var(--u) * 15); height: calc(var(--u) * 15); }
.gp__title { --fs: calc(var(--u) * 23); line-height: 1.08; }
.gp__label { margin-top: calc(var(--u) * 2); font-size: calc(var(--u) * 15); font-weight: 800; }
.gp__list { display: grid; gap: calc(var(--u) * 7); }
.gp__tpl {
  display: flex; align-items: center; gap: calc(var(--u) * 10); width: 100%;
  padding: calc(var(--u) * 8) calc(var(--u) * 10); border: 0; border-radius: calc(var(--u) * 18);
  background: var(--card); text-align: left; cursor: pointer;
  font-size: calc(var(--u) * 15); font-weight: 700; line-height: 1.2;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
}
.gp__tpl:hover { transform: translateX(calc(var(--u) * 4)); box-shadow: 0 0 0 calc(var(--u) * 2) var(--accent); }
.gp__tpl:disabled { cursor: default; }
.gp__tpl:disabled:not(.is-sent) { opacity: .45; }
.gp__tpl:disabled:hover { transform: none; box-shadow: none; }
.gp__tpl.is-sent { background: var(--ink); color: #fff; }
.gp__ic { flex: none; display: grid; place-items: center; width: calc(var(--u) * 36); height: calc(var(--u) * 36); border-radius: 50%; background: var(--bg); }
.gp__ic .i { width: calc(var(--u) * 20); height: calc(var(--u) * 20); }
.gp__tpl.is-sent .gp__ic { background: var(--accent); color: var(--ink); }
.gp__status {
  display: flex; align-items: center; gap: calc(var(--u) * 8);
  padding: calc(var(--u) * 10) calc(var(--u) * 12); border-radius: calc(var(--u) * 16);
  background: var(--success-bg); color: var(--success-text); font-size: calc(var(--u) * 13); font-weight: 700;
  animation: pop .4s var(--ease);
}
.gp__status .i { width: calc(var(--u) * 16); height: calc(var(--u) * 16); stroke-width: 2.6; }
.gp__reply { display: grid; justify-items: start; gap: calc(var(--u) * 4); animation: pop .4s var(--ease); }
.gp__reply small { font-size: calc(var(--u) * 12); font-weight: 600; color: var(--muted); }
.gp__bubble {
  padding: calc(var(--u) * 10) calc(var(--u) * 14); border-radius: calc(var(--u) * 20) calc(var(--u) * 20) calc(var(--u) * 20) calc(var(--u) * 6);
  background: var(--ink); color: #fff; font-size: calc(var(--u) * 16); font-weight: 700;
}
.gp__call {
  display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 8);
  height: calc(var(--u) * 50); border-radius: 999px; background: var(--ink); color: #fff;
  font-size: calc(var(--u) * 16); font-weight: 800;
}
.gp__call .i { width: calc(var(--u) * 20); height: calc(var(--u) * 20); color: var(--accent); }
[hidden] { display: none !important; }

/* Экран блокировки владельца */
.lock {
  color: #fff;
  background:
    radial-gradient(120% 55% at 90% 0%, rgba(255, 206, 31, .38), transparent 62%),
    radial-gradient(90% 50% at 0% 100%, rgba(59, 224, 143, .2), transparent 60%),
    linear-gradient(165deg, #23232b, #0c0c10 70%);
}
.lock__clock { display: grid; justify-items: center; gap: calc(var(--u) * 2); padding-top: calc(var(--u) * 26); }
.lock__date { font-size: calc(var(--u) * 19); font-weight: 600; opacity: .85; }
.lock__time { font: 700 calc(var(--u) * 92) / 1 var(--font); letter-spacing: -0.03em; }
.lock__stack { display: grid; gap: calc(var(--u) * 8); padding: calc(var(--u) * 34) calc(var(--u) * 12) 0; }
.lock__empty {
  padding: calc(var(--u) * 20); border: 1.5px dashed rgba(255, 255, 255, .28); border-radius: calc(var(--u) * 24);
  color: rgba(255, 255, 255, .62); text-align: center; font-size: calc(var(--u) * 14); font-weight: 600;
}
.notif--lock { --u: calc(100cqw / 402); }
.notif--lock .notif__actions button { cursor: pointer; transition: transform .15s; }
.notif--lock .notif__actions button:hover { transform: scale(1.03); }
.notif--lock .notif__actions button:disabled { cursor: default; transform: none; }
.notif.is-new { animation: notif-in .55s cubic-bezier(.2, .9, .3, 1.25); }
.notif.is-done .notif__actions { display: none; }
.notif__done {
  display: flex; align-items: center; gap: calc(var(--u) * 6); margin-top: calc(var(--u) * 8);
  color: var(--success); font-size: calc(var(--u) * 14); font-weight: 800;
}
.notif__done .i { width: calc(var(--u) * 16); height: calc(var(--u) * 16); stroke-width: 2.6; }
@keyframes notif-in { from { opacity: 0; transform: translateY(-40%) scale(.9); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.lock__app { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: app-in .35s var(--ease); }
@keyframes app-in { from { opacity: 0; transform: scale(.94); } }
.lock__bottom { position: absolute; left: calc(var(--u) * 46); right: calc(var(--u) * 46); bottom: calc(var(--u) * 50); display: flex; justify-content: space-between; }
.lock__btn { display: grid; place-items: center; width: calc(var(--u) * 50); height: calc(var(--u) * 50); border-radius: 50%; background: rgba(255, 255, 255, .14); }
.lock__btn .i { width: calc(var(--u) * 22); height: calc(var(--u) * 22); }
.lock__bar { position: absolute; left: 50%; bottom: calc(var(--u) * 9); width: calc(var(--u) * 140); height: calc(var(--u) * 5); translate: -50% 0; border-radius: 99px; background: #fff; }

/* ---------- Возможности ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px; min-height: 290px;
  padding: 28px; border-radius: var(--r-lg); background: var(--card);
}
.tile--wide { grid-column: span 2; }
.tile--accent { background: var(--accent); }
.tile--soft { background: var(--accent-soft); }
.tile--ink { background: var(--ink); color: #fff; }
.tile h3 { font-size: 22px; font-weight: 800; line-height: 1.18; }
.tile p { color: var(--muted); font-size: 16px; }
.tile--accent p, .tile--soft p { color: rgba(20, 20, 20, .7); }
.tile--ink p { color: var(--on-dark); }
.tile__ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%; background: var(--bg); flex: none; }
.tile__ic .i { width: 24px; height: 24px; }
.tile__ic--accent { background: var(--accent); color: var(--ink); }
.tile__ic--ink { background: var(--ink); color: #fff; }
.tile__ic--white { background: #fff; }
.tile__visual { margin-top: auto; padding-top: 18px; }

.mode-rows { display: grid; gap: 8px; }
.mode-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 22px; background: rgba(255, 255, 255, .55); font-size: 17px; }
.mode-row b { flex: 1; font-weight: 800; }
.mode-row.is-on { background: var(--ink); color: #fff; }
.mode-row__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink); }
.mode-row.is-on .mode-row__ic { background: var(--accent); }
.mode-row__check { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--ink); }
.mode-row__check .i { width: 15px; height: 15px; stroke-width: 2.6; }
.mode-row__radio { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--on-dark); }

.night { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 600 20px var(--mono); color: #fff; }
.toggle { position: relative; flex: none; width: 54px; height: 32px; border-radius: 16px; background: var(--line); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(20, 20, 20, .15); }
.toggle.is-on { background: #3a3a3a; }
.tile--ink .toggle.is-on { background: #3a3a3a; }
.toggle.is-on::after { left: auto; right: 3px; background: var(--accent); }
.pill-soft { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--bg); font-weight: 700; font-size: 15px; }

.radio-list { display: grid; overflow: hidden; border-radius: 22px; background: var(--bg); }
.radio-row { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 18px; border-top: 1.5px solid #fff; font-size: 16px; }
.radio-row:first-child { border-top: 0; }
.radio-row small { margin-left: auto; color: var(--muted); font-size: 13px; }
.radio { width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--on-dark); }
.radio-row.is-on .radio { box-shadow: inset 0 0 0 7px var(--ink); }
.mono { font: 600 15px var(--mono); }

.pause-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 20px; background: var(--bg); font-weight: 700; font-size: 15px; }

.seg { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: #fff; }
.seg button { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: transparent; font-weight: 800; font-size: 15px; cursor: pointer; transition: background-color .2s; }
.seg button[aria-pressed="true"] { background: var(--mint); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--bg); font-size: 15px; font-weight: 700; }
.tchip .i { width: 18px; height: 18px; }
.tchip--dark { background: rgba(255, 255, 255, .1); color: #fff; }
.plates { display: grid; gap: 10px; justify-items: start; }

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .tile { min-height: 0; }
}

/* ---------- Экраны ---------- */
.section--flush { padding-bottom: 0; }
.screens__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.screens__head .section-head { margin-bottom: 40px; }
.gallery-nav { display: flex; gap: 10px; margin-bottom: 44px; }
.round-btn {
  display: grid; place-items: center; width: 54px; height: 54px; border: 0; border-radius: 50%;
  background: var(--card); cursor: pointer; transition: background-color .2s, transform .2s var(--ease);
}
.round-btn:hover { background: var(--accent); transform: translateY(-2px); }
.round-btn:disabled { opacity: .35; cursor: default; transform: none; background: var(--card); }
.gallery {
  display: flex; gap: clamp(18px, 2.4vw, 32px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px max(var(--pad), calc((100vw - var(--container)) / 2 + var(--pad))) 24px;
  scroll-padding-inline: max(var(--pad), calc((100vw - var(--container)) / 2 + var(--pad)));
}
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline-offset: -3px; }
.shot { flex: none; display: grid; gap: 18px; width: clamp(220px, 21vw, 268px); scroll-snap-align: start; }
.shot .phone__frame { filter: drop-shadow(0 22px 30px rgba(20, 20, 20, .18)); }
.shot figcaption { display: grid; gap: 4px; text-align: center; }
.shot b { font-size: 18px; font-weight: 800; }
.shot span { color: var(--muted); font-size: 15px; line-height: 1.35; }
@media (max-width: 640px) {
  .screens__head { display: block; }
  .gallery-nav { display: none; }
}

/* ---------- Приватность ---------- */
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mode-card { display: grid; gap: 24px; align-content: start; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--card); }
.mode-card__head { display: flex; gap: 16px; align-items: flex-start; }
.mode-card__head .tile__ic { margin: 0; }
.mode-card h3 { font-size: 26px; font-weight: 800; line-height: 1.1; margin-bottom: 6px; }
.mode-card p { color: var(--muted); }
.preview { display: grid; gap: 10px; padding: 16px; border-radius: 28px; background: var(--bg); }
.preview__hero { display: grid; gap: 10px; justify-items: start; padding: 20px; border-radius: 22px; background: var(--accent); }
.preview__hero .display { --fs: 26px; line-height: 1.05; }
.preview__note { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.preview__note .i { width: 16px; height: 16px; }
.preview__row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #fff; font-weight: 700; }
.preview__btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; }
.preview__btn .i { color: var(--accent); }
.preview__btn--light { background: #fff; color: var(--ink); }
.preview__btn--light .i { color: var(--ink); }
.preview__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.privacy__strip {
  display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 14px 28px 14px 14px;
  border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: clamp(16px, 1.5vw, 19px);
}
.privacy__strip .tile__ic { margin: 0; width: 44px; height: 44px; }
@media (max-width: 860px) {
  .why, .privacy { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step__visual { height: 330px; }
  .privacy__strip { border-radius: 28px; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq__head { position: sticky; top: 110px; }
.faq__list { display: grid; gap: 10px; }
.faq details { padding: 0 24px; border-radius: var(--r-md); background: var(--card); transition: background-color .2s; }
.faq details[open] { background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; list-style: none; cursor: pointer; font-size: 18px; font-weight: 800; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__plus { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); transition: transform .3s var(--ease), background-color .2s; }
.faq details[open] .faq__plus { transform: rotate(45deg); background: var(--accent); }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 60ch; }
@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

/* ---------- Скачать ---------- */
.download {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px;
  padding: clamp(36px, 6vw, 88px); border-radius: var(--r-xl); background: var(--ink); color: #fff;
}
.download::before {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -40%; width: 60%; height: 180%;
  background: radial-gradient(closest-side, rgba(255, 206, 31, .3), transparent);
}
.download__copy { display: grid; gap: 22px; justify-items: start; }
.download .section-lead { color: var(--on-dark); }
.download__icon {
  display: grid; place-items: center; width: clamp(140px, 16vw, 200px); aspect-ratio: 1;
  border-radius: 24%; background: var(--accent); color: var(--ink); rotate: 8deg;
  box-shadow: 0 40px 70px -30px rgba(255, 206, 31, .55);
}
.download__icon svg { width: 60%; height: 60%; }
@media (max-width: 720px) {
  .download { grid-template-columns: 1fr; }
  .download__icon { order: -1; width: 110px; }
}

/* ---------- Подвал ---------- */
.footer { padding: clamp(64px, 8vw, 100px) 0 32px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; }
.footer__brand { display: grid; gap: 8px; }
.footer__brand p { color: var(--muted); font-size: 15px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__links a { text-decoration: none; font-weight: 600; color: var(--muted); }
.footer__links a:hover { color: var(--ink); }
.lang-switch--light { background: var(--card); }
.footer__bottom { position: relative; padding-top: 20px; color: var(--muted); }
.footer__bottom::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1.5px; background: var(--line); }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .marquee__track { animation: none; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .notif.is-new, .gp__status, .gp__reply, .lock__app { animation: none; }
}
