/* Сайт сервиса: лендинг и документы. Тёмная премиальная тема, шрифт Inter (локальный, из ассетов Filament). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/site/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/site/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #07080c;
  --bg-2: #0c0e14;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f5f8;
  --muted: #9aa0b2;
  --dim: #6b7184;
  --violet: #7c6cff;
  --blue: #5b8cff;
  --teal: #2fd3c5;
  --grad: linear-gradient(120deg, #a597ff 0%, #6f9bff 45%, #45e0d2 100%);
  --grad-btn: linear-gradient(135deg, #7c6cff 0%, #5b8cff 55%, #3fc7d6 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 650;
}

p {
  margin: 0;
}

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

.wrap-narrow {
  width: min(780px, 100% - 40px);
  margin-inline: auto;
  position: relative;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 8px 14px;
  border-radius: 10px;
}

.skip:focus {
  left: 12px;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font: 600 14.5px/1 inherit;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, border-color 0.2s;
}

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

.btn-lg {
  height: 54px;
  padding: 0 26px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  color: #fff;
  background: var(--grad-btn);
  box-shadow: 0 8px 30px -8px rgba(110, 120, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px -8px rgba(110, 120, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-glass {
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-ghost {
  color: var(--muted);
  background: none;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-light {
  color: #0b0d14;
  background: #fff;
  box-shadow: 0 10px 40px -10px rgba(255, 255, 255, 0.5);
}

.btn-light:hover {
  transform: translateY(-1px);
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon {
  transform: translateX(2px);
}

/* ---------- Шапка ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled,
.nav.open {
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo-mark {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 4px 14px rgba(124, 108, 255, 0.45));
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 12px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  place-items: center;
  cursor: pointer;
}

.nav-toggle .shut,
.nav.open .nav-toggle .open {
  display: none;
}

.nav.open .nav-toggle .shut {
  display: block;
}

/* ---------- Фоновые эффекты ---------- */

.aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: drift 22s var(--ease) infinite alternate;
}

.aurora span:nth-child(1) {
  width: 620px;
  height: 520px;
  left: 8%;
  top: 6%;
  background: radial-gradient(circle, #5b3cff 0%, transparent 70%);
}

.aurora span:nth-child(2) {
  width: 560px;
  height: 480px;
  right: 4%;
  top: 0;
  background: radial-gradient(circle, #1fb4c8 0%, transparent 70%);
  animation-delay: -7s;
}

.aurora span:nth-child(3) {
  width: 480px;
  height: 420px;
  left: 42%;
  top: 30%;
  background: radial-gradient(circle, #3f6dff 0%, transparent 70%);
  opacity: 0.35;
  animation-delay: -14s;
}

.aurora.small {
  inset: -40% -10% auto;
  height: 600px;
}

@keyframes drift {
  to {
    transform: translate3d(40px, 30px, 0) scale(1.08);
  }
}

.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.5;
}

.glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(closest-side, rgba(110, 120, 255, 0.45), transparent);
  filter: blur(40px);
  z-index: 0;
}

/* ---------- Появление ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease) var(--d, 0ms), transform 0.8s var(--ease) var(--d, 0ms);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .aurora span,
  .marquee-track,
  .float-card {
    animation: none !important;
  }
}

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  padding: calc(140px + env(safe-area-inset-top)) 0 40px;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: #c9cdf7;
  font-size: 13.5px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(47, 211, 197, 0.18), 0 0 14px var(--teal);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 .grad {
  display: block;
}

.lead {
  margin-top: 24px;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(16.5px, 1.6vw, 19px);
  line-height: 1.6;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 14px;
}

.hero-note .icon {
  width: 16px;
  height: 16px;
  color: var(--teal);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
}

.float-card {
  position: absolute;
  z-index: 3;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(20, 22, 32, 0.72);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  animation: bob 7s ease-in-out infinite;
}

.float-card b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.float-card small {
  color: var(--muted);
  font-size: 12.5px;
}

.fc-order {
  left: -4%;
  top: 22%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fc-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--grad-btn);
}

.fc-icon .icon {
  width: 18px;
  height: 18px;
}

.fc-stat {
  right: -2%;
  bottom: 14%;
  width: 190px;
  animation-delay: -3.5s;
}

.fc-stat b {
  font-size: 28px;
  letter-spacing: -0.03em;
  margin: 2px 0 4px;
}

.fc-stat svg {
  width: 100%;
  height: 36px;
}

@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}

.stats {
  position: relative;
  z-index: 1;
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}

.stat {
  padding: 26px 28px;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat b {
  display: block;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.stat span {
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- Телефон (иллюстрация) ---------- */

.phone {
  position: relative;
  z-index: 2;
  width: 290px;
  aspect-ratio: 290 / 600;
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2d38, #101218 40%, #1d2029);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 50px 100px -30px rgba(0, 0, 0, 0.9), 0 30px 80px -40px rgba(91, 140, 255, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-main {
  transform: rotate(-3deg);
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: #f6f6f8;
  color: #12131a;
  font-size: 11px;
  padding: 0 14px;
}

.ph-status {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 11.5px;
}

.ph-island {
  width: 76px;
  height: 22px;
  border-radius: 20px;
  background: #0b0b0f;
}

.ph-sys {
  width: 30px;
  height: 9px;
  border-radius: 3px;
  background: #12131a;
  opacity: 0.85;
}

.ph-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 10px;
}

.ph-head b {
  display: block;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.ph-head small {
  color: #7a7f8f;
  font-size: 10px;
}

.ph-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff6b9a, #ff9a6b);
}

.ph-round {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ph-search {
  height: 34px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  color: #9aa0ad;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.ph-banner {
  margin-top: 10px;
  height: 108px;
  border-radius: 16px;
  padding: 14px;
  color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.35), transparent 40%), linear-gradient(135deg, #ff5c8a, #c74bff);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.ph-banner small {
  opacity: 0.85;
  font-size: 9.5px;
}

.ph-banner b {
  font-size: 17px;
  letter-spacing: -0.03em;
}

.ph-banner span {
  margin-top: 6px;
  align-self: flex-start;
  background: #fff;
  color: #c74bff;
  font-weight: 700;
  font-size: 9.5px;
  padding: 4px 9px;
  border-radius: 999px;
}

.ph-chips {
  display: flex;
  gap: 6px;
  margin: 12px 0 10px;
}

.ph-chips span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  font-size: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ph-chips .on {
  background: #12131a;
  color: #fff;
}

.ph-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ph-card {
  background: #fff;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ph-card small {
  display: block;
  margin-top: 5px;
  font-size: 9.5px;
  color: #50556a;
}

.ph-card b {
  font-size: 11.5px;
}

.ph-img {
  aspect-ratio: 1;
  border-radius: 10px;
}

.t-a {
  background: radial-gradient(circle at 35% 35%, #ffd1dc 0 18%, transparent 19%), radial-gradient(circle at 62% 55%, #ff9fb8 0 20%, transparent 21%), linear-gradient(160deg, #ffe6ec, #ffc2d1);
}

.t-b {
  background: radial-gradient(circle at 50% 40%, #fff3c4 0 22%, transparent 23%), linear-gradient(160deg, #fff7dd, #ffd98a);
}

.t-c {
  background: radial-gradient(circle at 40% 45%, #fff 0 20%, transparent 21%), radial-gradient(circle at 64% 60%, #e9e4ff 0 18%, transparent 19%), linear-gradient(160deg, #f1eeff, #cfc6ff);
}

.t-d {
  background: radial-gradient(circle at 45% 42%, #ff8a8a 0 20%, transparent 21%), linear-gradient(160deg, #ffe1e1, #ffb3a7);
}

.ph-tabs {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 46px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.ph-tabs span {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #d5d8e0;
}

.ph-tabs .on {
  background: linear-gradient(135deg, #ff5c8a, #c74bff);
}

.ph-head-title {
  justify-content: space-between;
}

.ph-back {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ph-block {
  background: #fff;
  border-radius: 14px;
  padding: 11px 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ph-block small {
  color: #8a8fa0;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ph-block b {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
}

.ph-block span {
  color: #6d7285;
}

.ph-pay {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.ph-pay span {
  flex: 1;
  text-align: center;
  padding: 7px;
  border-radius: 10px;
  background: #f1f2f6;
  font-weight: 600;
  color: #12131a;
}

.ph-pay .on {
  background: #12131a;
  color: #fff;
}

.ph-lines div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.ph-lines .ok {
  color: #1aa36f;
}

.ph-lines .total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #eceef3;
  font-weight: 700;
  color: #12131a;
}

.ph-lines .total span {
  color: #12131a;
}

.ph-cta {
  margin-top: 12px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, #ff5c8a, #c74bff);
  box-shadow: 0 8px 20px -8px rgba(199, 75, 255, 0.7);
}

/* ---------- Строка доверия ---------- */

.trust {
  padding: 56px 0 24px;
  text-align: center;
}

.trust-label {
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marquee {
  margin-top: 24px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-group {
  display: flex;
  gap: 52px;
  padding-right: 52px;
}

.marquee-group span {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #c3c7d4;
  opacity: 0.7;
  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Разделы ---------- */

.section {
  position: relative;
  padding: 110px 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.kicker {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head h2 {
  font-size: clamp(32px, 4.4vw, 54px);
}

.section-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

.section-head p a {
  color: var(--text);
}

/* Возможности */
.features {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.feature {
  grid-column: span 2;
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at 0% 0%, rgba(124, 108, 255, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}

.feature:hover::before {
  opacity: 1;
}

.feature-wide {
  grid-column: span 2;
}

/* Неполный последний ряд растягивается: одна карточка — на всю ширину, две — пополам. */
.feature:last-child:nth-child(3n + 1) {
  grid-column: span 6;
}

.feature:nth-last-child(2):nth-child(3n + 1),
.feature:last-child:nth-child(3n + 2) {
  grid-column: span 3;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.35), rgba(47, 211, 197, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px -12px rgba(124, 108, 255, 0.8);
}

.feature-icon .icon {
  width: 22px;
  height: 22px;
}

.feature h3 {
  margin-top: 22px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.feature p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

/* Приложение крупно */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.showcase-visual {
  position: relative;
  min-height: 600px;
  display: grid;
  place-items: center;
}

.showcase-visual .phone {
  position: absolute;
}

.phone-back {
  transform: translateX(-28%) rotate(-8deg) scale(0.9);
  opacity: 0.92;
}

.phone-front {
  transform: translateX(26%) rotate(5deg);
}

.shots {
  position: relative;
  width: 100%;
  height: 600px;
}

.shot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  border-radius: 36px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 90px -30px rgba(0, 0, 0, 0.9);
}

.shot-0 {
  transform: translate(-50%, -50%);
  z-index: 3;
}

.shot-1 {
  transform: translate(-110%, -46%) rotate(-7deg) scale(0.88);
  z-index: 2;
}

.shot-2 {
  transform: translate(10%, -46%) rotate(7deg) scale(0.88);
  z-index: 1;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16.5px;
}

.checks .icon {
  margin-top: 2px;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  color: #0b0d14;
  background: var(--grad);
  stroke-width: 2.6;
}

.checks.small li {
  font-size: 14.5px;
  color: #d4d7e2;
}

.checks.small .icon {
  width: 18px;
  height: 18px;
  padding: 3px;
}

/* Шаги */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: s;
  position: relative;
}

.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.step-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 {
  margin-top: 40px;
  font-size: 21px;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.step::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  top: 58px;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 108, 255, 0.6), transparent);
}

/* Интеграции */
.integrations {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.int-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.int-card {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01));
}

.int-title {
  color: var(--dim);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.int-items {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.int-items span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
}

/* Тарифы */
.period {
  margin: -24px auto 40px;
  width: fit-content;
  display: flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
}

.period button {
  border: 0;
  background: none;
  color: var(--muted);
  font: 600 14px/1 inherit;
  padding: 11px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: background-color 0.2s, color 0.2s;
}

.period button.on {
  background: #fff;
  color: #0b0d14;
}

.period em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
}

.period button.on em {
  color: #0f9488;
}

.plans {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.plans-1 {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}

.plans-2 {
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
}

.plans-3 {
  grid-template-columns: repeat(3, 1fr);
}

.plans-4 {
  grid-template-columns: repeat(4, 1fr);
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.plan.featured {
  border-color: transparent;
  background: linear-gradient(180deg, #151729, #0e1018) padding-box, var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 80px -30px rgba(110, 120, 255, 0.55);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 26px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #0b0d14;
  background: var(--grad);
}

.plan h3 {
  font-size: 22px;
}

.plan-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
  min-height: 4.8em;
}

.price {
  margin-top: 22px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price b {
  font-size: 40px;
  font-weight: 680;
  letter-spacing: -0.04em;
}

.price span {
  color: var(--muted);
}

.price-note {
  color: var(--dim);
  font-size: 13.5px;
  margin: 4px 0 22px;
}

.plan-trial {
  margin: 10px 0 20px;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
}

.plan-custom {
  background: transparent;
  border-style: dashed;
  border-color: var(--line-2);
}

.plan-custom .price b {
  font-size: 26px;
}

.plan-custom .btn {
  margin-top: 22px;
}

/* Отзывы */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quote {
  margin: 0;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.quote blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

.quote figcaption b {
  display: block;
}

.quote figcaption span {
  color: var(--muted);
  font-size: 14px;
}

/* Вопросы */
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 560;
  letter-spacing: -0.015em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}

.faq-plus .icon {
  width: 16px;
  height: 16px;
}

.faq details[open] .faq-plus {
  transform: rotate(45deg);
  background: var(--surface-2);
}

.faq details p {
  padding: 0 52px 22px 0;
  color: var(--muted);
  font-size: 16px;
}

/* Финальный призыв */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 88px 24px;
  border-radius: 32px;
  border: 1px solid var(--line-2);
  background: linear-gradient(140deg, #1a1740 0%, #10162e 50%, #0b2a33 100%);
}

.cta h2 {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(32px, 4.6vw, 56px);
}

.cta p {
  position: relative;
  margin: 18px auto 34px;
  max-width: 560px;
  color: #c3c7d9;
  font-size: 18px;
}

.cta .btn {
  position: relative;
}

/* Подвал */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 calc(28px + env(safe-area-inset-bottom));
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--muted);
  max-width: 280px;
}

.footer h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer-grid a:not(.brand) {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  font-size: 15px;
}

.footer-grid a:not(.brand):hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--dim);
  font-size: 13.5px;
}

/* Документы */
.doc {
  position: relative;
  overflow: hidden;
  padding: calc(130px + env(safe-area-inset-top)) 0 60px;
}

.doc-back {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.doc h1 {
  margin: 18px 0 36px;
  font-size: clamp(34px, 5vw, 52px);
}

.doc-body {
  color: #c9ccd8;
  font-size: 16.5px;
  line-height: 1.75;
}

.doc-body h2 {
  margin: 40px 0 12px;
  color: var(--text);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.doc-body p {
  margin: 0 0 14px;
}

.doc-body ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.doc-body li {
  margin: 6px 0;
}

/* ---------- Адаптивность ---------- */

@media (max-width: 1080px) {
  .hero-grid,
  .showcase-grid,
  .integrations,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy .lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    min-height: 560px;
  }

  .showcase-visual {
    order: 2;
  }

  .plans-3,
  .plans-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .quotes {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 18px;
    background: rgba(7, 8, 12, 0.96);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    display: grid;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .features {
    grid-template-columns: 1fr 1fr;
  }

  .feature,
  .feature-wide,
  .feature:last-child:nth-child(3n + 1),
  .feature:nth-last-child(2):nth-child(3n + 1),
  .feature:last-child:nth-child(3n + 2) {
    grid-column: span 1;
  }

  .feature:last-child:nth-child(odd) {
    grid-column: span 2;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .section {
    padding: 80px 0;
  }

  .hero {
    padding-top: calc(112px + env(safe-area-inset-top));
  }

  .nav-actions .btn-primary {
    height: 38px;
    padding: 0 14px;
    font-size: 13.5px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 520px;
  }

  .phone {
    width: 250px;
  }

  .fc-order {
    left: 0;
    top: 8%;
  }

  .fc-stat {
    right: 0;
    bottom: 6%;
    width: 160px;
  }

  .features .feature:last-child:nth-child(odd) {
    grid-column: span 1;
  }

  .features,
  .steps,
  .int-grid,
  .plans-2,
  .plans-3,
  .plans-4,
  .quotes {
    grid-template-columns: 1fr;
  }

  .showcase-visual {
    min-height: 520px;
  }

  .phone-back {
    transform: translateX(-22%) rotate(-8deg) scale(0.86);
  }

  .phone-front {
    transform: translateX(18%) rotate(5deg) scale(0.94);
  }

  .faq details p {
    padding-right: 0;
  }

  .cta {
    padding: 64px 20px;
    border-radius: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .marquee-group span {
    font-size: 17px;
  }
}

/* Страницы ошибок */
.error-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  text-align: center;
}

.error-box {
  position: relative;
  max-width: 520px;
}

.error-code {
  margin-top: 48px;
  font-size: clamp(72px, 16vw, 120px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-box h1 {
  margin-top: 12px;
  font-size: clamp(26px, 4vw, 34px);
}

.error-text {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

.error-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Сайт магазина: окно браузера, телефон и сниппет поисковика ---------- */

.site-visual,
.delivery-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.browser {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  border-radius: 16px;
  overflow: hidden;
  background: #f6f7fb;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 50px 100px -30px rgba(0, 0, 0, 0.9), 0 30px 80px -40px rgba(91, 140, 255, 0.45);
  transform: perspective(1400px) rotateY(-8deg) rotateX(2deg);
}

.br-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: #e6e9f0;
}

.br-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.br-bar i:nth-child(2) { background: #febc2e; }
.br-bar i:nth-child(3) { background: #28c840; }

.br-bar span {
  margin: 0 auto;
  padding: 3px 40px;
  border-radius: 7px;
  background: #fff;
  color: #5b6475;
  font-size: 11px;
}

.br-page {
  padding: 12px 16px 18px;
  color: #0b1426;
}

.br-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

.br-head b {
  font-size: 12px;
  white-space: nowrap;
}

.br-logo {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(135deg, #f472b6, #db2777);
}

.br-menu {
  display: flex;
  gap: 4px;
}

.br-menu em {
  font-style: normal;
  padding: 3px 7px;
  border-radius: 6px;
  color: #64748b;
  font-weight: 600;
}

.br-menu em.on {
  color: #db2777;
  background: #fce7f3;
}

.br-search {
  margin-left: auto;
  flex: 0 1 110px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  padding: 5px 10px;
  border-radius: 8px;
  background: #e9edf3;
  color: #8a93a5;
}

.br-cart {
  padding: 5px 9px;
  border-radius: 8px;
  background: #db2777;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.br-hero {
  margin: 12px 0;
  height: 112px;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, #ec4899, #8b5cf6);
  color: #fff;
}

.br-hero div {
  display: grid;
  gap: 3px;
}

.br-hero small {
  font-size: 10px;
  opacity: 0.85;
}

.br-hero b {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.br-hero span {
  justify-self: start;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: #6d28d9;
  font-size: 10px;
  font-weight: 700;
}

.br-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.br-card {
  display: grid;
  gap: 2px;
  font-size: 9.5px;
}

.br-card .ph-img {
  aspect-ratio: 3 / 4;
  border-radius: 9px;
}

.br-card small {
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.br-card b {
  font-size: 10.5px;
}

.site-visual .phone-mini {
  position: absolute;
  z-index: 2;
  left: -36px;
  bottom: -40px;
  /* Тот же макет телефона, что в первом экране, — уменьшенный целиком. */
  transform: rotate(-6deg) scale(0.56);
  transform-origin: bottom left;
}

.serp {
  position: absolute;
  z-index: 3;
  right: -12px;
  bottom: 18px;
  width: 300px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(16, 18, 26, 0.86);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}

.serp small {
  color: #7ee0a8;
  font-size: 12px;
}

.serp b {
  color: #a9b8ff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.serp span {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Доставка на карте: зоны и карточки зон ---------- */

.zmap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 560 / 440;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-2), 0 50px 100px -30px rgba(0, 0, 0, 0.9);
}

.zmap svg {
  display: block;
  width: 100%;
  height: 100%;
}

.zm-zone {
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.zm-zone.z1 { fill: rgba(124, 108, 255, 0.28); stroke: #a597ff; }
.zm-zone.z2 { fill: rgba(47, 211, 197, 0.22); stroke: #45e0d2; }
.zm-zone.z3 { fill: rgba(245, 158, 11, 0.2); stroke: #fbbf24; stroke-dasharray: 8 6; }

.zm-handles circle {
  fill: #0e1119;
  stroke: #fff;
  stroke-width: 2.5;
}

.zm-pin path { fill: #ec4899; }
.zm-pin circle { fill: #fff; }

.zm-me circle:first-child {
  fill: rgba(91, 140, 255, 0.25);
}

.zm-me circle:last-child {
  fill: #5b8cff;
  stroke: #fff;
  stroke-width: 3;
}

@media (prefers-reduced-motion: no-preference) {
  .zm-me circle:first-child {
    animation: zm-pulse 2.4s var(--ease) infinite;
    transform-origin: center;
    transform-box: fill-box;
  }
}

@keyframes zm-pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.zcards {
  position: absolute;
  z-index: 2;
  right: -18px;
  bottom: -26px;
  width: 300px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(16, 18, 26, 0.88);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
}

.zcard {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--surface-2);
}

.zcard i {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: #a597ff;
}

.zcard.z2 i { background: #45e0d2; }
.zcard.z3 i { background: #fbbf24; }

.zcard span {
  flex: 1;
  min-width: 0;
  display: grid;
}

.zcard b {
  font-size: 14px;
}

.zcard small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.zcard em {
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .site-visual,
  .delivery-visual {
    min-height: 0;
    padding: 20px 0 48px;
  }

  .browser {
    transform: none;
  }

  .serp,
  .zcards {
    right: 0;
  }

  .delivery-visual {
    order: 2;
  }

  /* Макет — шириной окна браузера, чтобы телефон и сниппет держались у его краёв. */
  .site-visual,
  .delivery-visual {
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
  }

  .site-visual .phone-mini {
    left: -12px;
  }
}

@media (max-width: 620px) {
  .site-visual .phone-mini {
    display: none;
  }

  .serp,
  .zcards {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: -40px;
  }

  .site-visual,
  .delivery-visual {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }

  .br-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .br-grid .br-card:nth-child(n + 4),
  .br-menu,
  .br-search {
    display: none;
  }
}
