/* ==========================================================================
   Скинемся — лендинг. Чистый CSS, без фреймворков.
   Палитра, базовые стили, компоненты, адаптив (1440 → 480).
   ========================================================================== */

/* ---------- Шрифт Golos Text (самохостинг, woff2, под CSP 'self') ----------
   Вариативный (вес 400–900). Три субсета с unicode-range — браузер грузит
   только нужные глифы. Знак ₽ (U+20BD) живёт в latin-ext. */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('assets/fonts/golos-cyrillic.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('assets/fonts/golos-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;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('assets/fonts/golos-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ---------- Палитра и токены ---------- */
:root {
  --green: #1FA838;
  --green-dark: #0E7A2B;
  --green-light: #EAF8ED;
  --mint: #F4FBF6;
  --text: #102219;
  --muted: #5E6A64; /* затемнён с #64706A — контраст на page-bg 4.55 → 4.97 (WCAG AA с запасом) */
  --border: #E5EEE7;
  --gold: #D9A32C;
  --white: #FFFFFF;
  --page-bg: #ECF2EE; /* спокойный шалфей — мягкий фон страницы */

  --grad: linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 45%), linear-gradient(135deg, #29BC4D 0%, #138F39 100%); /* глянцевый: блик сверху + сочный изумруд */

  /* Мягкие тени */
  --shadow-sm: 0 2px 8px rgba(16, 34, 25, .05);
  --shadow-md: 0 14px 36px rgba(16, 34, 25, .08);
  --shadow-lg: 0 30px 70px rgba(16, 34, 25, .12);
  --shadow-green: inset 0 1px 0 rgba(255,255,255,.30), 0 8px 18px rgba(15, 122, 43, .30), 0 2px 5px rgba(15, 122, 43, .18);

  --radius: 24px;
  --radius-lg: 28px;
  --maxw: 1440px;
  --pad: 64px;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* отступ под липкую шапку при переходе по якорю */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.55;
  overflow-x: hidden; /* страховка от горизонтального скролла */
  /* Очень лёгкий мятный фон сверху */
  background-image:
    radial-gradient(900px 500px at 85% -5%, rgba(31, 168, 56, .07), transparent 60%),
    radial-gradient(700px 500px at -10% 8%, rgba(31, 168, 56, .05), transparent 55%);
  background-repeat: no-repeat;
}

h1, h2, h3, p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

/* ---------- Контейнер ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border: 0;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-green);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 12px 24px rgba(15, 122, 43, .32), 0 3px 6px rgba(15, 122, 43, .18); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #cfe3d4; }

.btn-sm { padding: 15px 20px; font-size: 15px; border-radius: 14px; }

.ic-chat { display: inline-flex; }
.ic-chat svg { width: 20px; height: 20px; }
.ic-play { display: inline-flex; color: var(--green); }
.btn-ghost .ic-play svg { background: var(--green-light); border-radius: 50%; padding: 6px; box-sizing: content-box; width: 16px; height: 16px; }

/* ==========================================================================
   ШАПКА
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 20px rgba(16, 34, 25, .04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

/* Логотип */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-icon {
  width: 40px; height: 40px;
  display: inline-flex;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.brand-icon img { display: block; width: 100%; height: 100%; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }

/* Навигация */
.main-nav { display: flex; gap: 34px; }
.main-nav a {
  font-size: 16px; font-weight: 500; color: var(--muted);
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--green-dark); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: 56px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  align-items: center;
  gap: 48px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px 9px 11px;
  background: var(--white);
  color: var(--green-dark);
  border: 1px solid #D8E8DD;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 26px;
  box-shadow: 0 2px 10px rgba(16, 34, 25, .07);
}
.badge svg { flex: 0 0 auto; position: relative; top: 1px; }
.hero-title {
  font-size: 60px;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.025em;
}
.hero-title .accent { color: var(--green); }
.hero-lede {
  margin-top: 22px;
  font-size: 19px;
  color: var(--muted);
  max-width: 480px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero-cta { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-browser-link { font-size: 14.5px; color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; display: inline-flex; align-items: center; min-height: 44px; }
.hero-browser-link:hover { color: var(--green); }
.hero-actions .btn { padding: 19px 30px; font-size: 16.5px; }

/* ---------- Декоративная композиция ---------- */
.hero-visual {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Живой фон: мягкие цветные блобы за смартфоном — сами медленно дрейфуют и переливаются.
   Цвета/радиусы/центры те же, что у прежних статичных градиентов; добавлено только движение. */
.hero-glow {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  /* мягкая маска: края растворяются до прозрачности раньше жёсткой границы — нет «обрезки» */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%);
}
.glow { position: absolute; border-radius: 50%; will-change: transform, opacity; }
.glow-1 {
  width: 460px; height: 460px; left: 36%; top: 46%;
  background: radial-gradient(circle, rgba(31,168,56,.18), rgba(31,168,56,.05) 50%, transparent 82%);
  animation: glow-1 19s ease-in-out infinite alternate;
}
.glow-2 {
  width: 480px; height: 480px; left: 72%; top: 22%;
  background: radial-gradient(circle, rgba(217,163,44,.11), transparent 80%);
  animation: glow-2 25s ease-in-out infinite alternate;
}
.glow-3 {
  width: 260px; height: 260px; left: 20%; top: 34%;
  background: radial-gradient(circle, rgba(45,200,150,.12), transparent 82%);
  animation: glow-3 22s ease-in-out infinite alternate;
}
@keyframes glow-1 {
  0%   { transform: translate(-50%, -50%) scale(1);                             opacity: .9; }
  50%  { transform: translate(calc(-50% + 34px), calc(-50% - 22px)) scale(1.1); opacity: 1; }
  100% { transform: translate(calc(-50% - 20px), calc(-50% + 24px)) scale(.96); opacity: .82; }
}
@keyframes glow-2 {
  0%   { transform: translate(-50%, -50%) scale(1);                             opacity: .82; }
  50%  { transform: translate(calc(-50% - 30px), calc(-50% + 26px)) scale(1.12); opacity: 1; }
  100% { transform: translate(calc(-50% + 24px), calc(-50% - 16px)) scale(.95); opacity: .86; }
}
@keyframes glow-3 {
  0%   { transform: translate(-50%, -50%) scale(1);                             opacity: .8; }
  50%  { transform: translate(calc(-50% + 26px), calc(-50% + 20px)) scale(1.15); opacity: 1; }
  100% { transform: translate(calc(-50% - 16px), calc(-50% - 18px)) scale(.92); opacity: .74; }
}
/* Грунт-тень — отдельным слоем ПОД телефоном (фон колонки ростом с телефон, в нём тень была бы скрыта за телефоном) */
.hero-visual::after {
  content: "";
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  transform: translateX(-50%);
  width: 440px;
  height: 62px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(16,34,25,.18), rgba(16,34,25,.05) 52%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Фон сцены задан background-image на .hero-visual (см. выше) */

/* ---------- Смартфон ---------- */
.phone {
  position: relative;
  z-index: 3;
  width: 300px;
  background: var(--white);
  border-radius: 46px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 7px rgba(16,34,25,.22);
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
  will-change: transform;
}
.phone-notch {
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 11px; height: 11px;
  background: var(--text);
  border-radius: 50%;
  z-index: 5;
}
.phone-screen {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #fbfdfb 100%);
  border-radius: 36px;
  padding: 16px 22px 18px 10px;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Статус-бар */
.sb { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 14px; }
.sb-time { font-size: 14px; font-weight: 700; }
.sb-icons { display: inline-flex; align-items: center; gap: 5px; }

.app-header {
  display: flex; align-items: center; gap: 10px;
  padding: 2px 2px 11px;
  border-bottom: 1px solid var(--border);
}
.app-back { display: inline-flex; align-items: center; color: var(--green-dark); flex: 0 0 auto; margin-left: -12px; }
.app-logo { width: 34px; height: 34px; border-radius: 50%; display: block; flex: 0 0 auto; }
.app-titlebar { flex: 1; min-width: 0; line-height: 1.15; }
.app-name { font-size: 15px; font-weight: 700; color: var(--text); }
.app-sub { font-size: 11.5px; color: var(--muted); }
.app-more { font-size: 18px; line-height: 1; color: var(--muted); flex: 0 0 auto; }

.app-title { font-size: 20px; font-weight: 800; padding: 4px 4px 2px; }
.app-collected { font-size: 13.5px; color: var(--muted); padding: 0 4px 10px; }
.app-collected strong { color: var(--text); }
.app-org { font-size: 12.5px; color: var(--muted); padding: 0 4px 11px; }
.app-org strong { color: var(--text); font-weight: 700; }
.app-dots { display: flex; gap: 4px; padding: 2px 4px 12px; }
.app-dots .bead { width: 16px; height: 16px; border-radius: 50%; flex: 0 0 auto; }
.app-dots .bead.on { background: linear-gradient(180deg, #34C758, #189B36); }
.app-dots .bead.off { background: #fff; border: 1.5px solid var(--border); }

/* Прогресс-бар */
.app-progress { display: flex; align-items: center; gap: 10px; padding: 0 4px 14px; }
.bar { flex: 1; height: 10px; background: var(--green-light); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.bar-pct { font-size: 13px; font-weight: 700; color: var(--green-dark); }

/* Аватары (наложение) */
.app-avatars { display: flex; padding: 0 4px 12px; }
.app-avatars .av { margin-right: -10px; border: 2px solid #fff; }

/* Универсальный аватар с инициалом */
.av {
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700;
}
.av-a { background: linear-gradient(135deg, #FF8FA3, #E0577A); }
.av-i { background: linear-gradient(135deg, #6FB1FF, #3D7DE0); }
.av-m { background: linear-gradient(135deg, #B79CFF, #7E5CE0); }
.av-d { background: linear-gradient(135deg, #5FD0B0, #2FA98C); }

/* Список участников */
.app-people { display: flex; flex-direction: column; gap: 9px; padding: 0 2px 14px; }
.app-people li {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 8px 12px;
}
.p-name { flex: 1; font-size: 14.5px; font-weight: 600; }
.p-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 700;
  padding: 5px 9px; border-radius: 999px;
}
.p-status.paid { color: var(--green); background: var(--green-light); }
.p-status.wait { color: var(--gold); background: #FBF3E0; }

.app-line { font-size: 13.5px; color: var(--text); line-height: 1.5; padding: 0 4px; margin: 0 0 2px; }
.app-line-gap { margin-bottom: 12px; }
.app-card-start { margin-top: auto; }
.app-note { font-size: 12.5px; color: var(--muted); line-height: 1.45; padding: 0 4px; margin: 2px 0 4px; }
/* Кнопки статус-карточки бота: ряд «Все/Скинулись/Ждём» + две на всю ширину */
.app-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.app-btn {
  width: 100%; padding: 9px 8px;
  background: var(--green-light); color: var(--green-dark);
  border: 0; border-radius: 5px;
  font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.app-btn-row { display: flex; gap: 6px; }
.app-btn-row .app-btn { width: auto; flex: 1; padding: 9px 5px; font-size: 11.5px; }
.app-btn-menu { border-radius: 5px 5px 16px 16px; }
.app-cta {
  width: 100%;
  margin-top: 2px;
  padding: 14px;
  border: 0; border-radius: 16px;
  background: var(--green); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: var(--shadow-green);
}

/* ---------- Объёмные объекты вокруг телефона ---------- */
.deco { position: absolute; z-index: 4; filter: drop-shadow(0 16px 24px rgba(16,34,25,.12)); transition: transform .3s cubic-bezier(.2,.7,.3,1); will-change: transform; }
.deco-piggy  { right: -3%;  top: 38%; z-index: 2; width: 140px; transform: rotate(5deg); }
.deco-gift   { left: -5%;   bottom: 8%; width: 100px; transform: rotate(-5deg); }
/* Объекты-картинки: размер по контейнеру + мягкая тень по форме иконки (новый набор без встроенной тени) */
.deco-piggy, .deco-gift, .deco-link, .deco-bubble, .deco-lock, .deco-eye {
  filter: drop-shadow(0 9px 14px rgba(16,34,25,.22)) drop-shadow(0 2px 4px rgba(16,34,25,.12));
}
/* Крупным объектам — тень побольше, чтобы её вес совпадал с размером */
.deco-piggy { filter: drop-shadow(0 17px 24px rgba(16,34,25,.24)) drop-shadow(0 5px 8px rgba(16,34,25,.14)); }
.deco-gift  { filter: drop-shadow(0 13px 18px rgba(16,34,25,.23)) drop-shadow(0 3px 6px rgba(16,34,25,.13)); }
/* Лёгкий 3D-наклон иконок при наведении мышью */
.deco-link:hover   { transform: rotate(8deg); }
.deco-gift:hover   { transform: rotate(5deg); }
.deco-lock:hover   { transform: rotate(12deg); }
.deco-bubble:hover { transform: rotate(-7deg); }
.deco-piggy:hover  { transform: rotate(-5deg); }
.deco-eye:hover    { transform: rotate(-11deg); }
.deco img, .deco picture { display: block; width: 100%; height: auto; }
.deco-lock   { left: 7%;   top: 50%;    width: 48px; transform: rotate(-12deg); }
.deco-eye    { right: -2%; bottom: 13%; width: 56px; transform: rotate(11deg); }
.deco-link   { left: -2%; top: 20%; width: 60px; transform: rotate(-8deg); }
.deco-bubble { right: 0;   top: 8%;  width: 58px; transform: rotate(7deg); }

/* ==========================================================================
   СЕКЦИИ — общая шапка
   ========================================================================== */
.section-head { text-align: center; margin-bottom: 46px; }
.section-head h2 { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.section-head p { margin-top: 12px; font-size: 18px; color: var(--muted); }

/* ==========================================================================
   КАК РАБОТАЕТ
   ========================================================================== */
.how { padding: 60px 0; }
.steps { display: flex; align-items: stretch; gap: 8px; }
.step-card {
  flex: 1;
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-card:hover .step-ic { transform: rotate(6deg); }
.step-card:hover .step-num { color: #C8E0CE; }
.step-num {
  position: absolute; top: 32px; right: 26px;
  height: 62px; display: flex; align-items: center;
  font-size: 58px; font-weight: 800; line-height: 1;
  color: #E3F1E7; /* цифра-призрак: крупная бледно-мятная */
  pointer-events: none;
  transition: color .2s ease;
}
.step-ic { display: inline-flex; vertical-align: top; margin-bottom: 18px; transition: transform .2s ease; }
.step-ic img { display: block; height: 62px; width: auto; }
.step-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--muted); font-size: 16px; }
.step-arrow {
  align-self: center;
  color: var(--green);
  font-size: 26px;
  opacity: .55;
  flex: 0 0 auto;
}

/* ==========================================================================
   БЛОК ДОВЕРИЯ
   ========================================================================== */
.trust { padding: 30px 0 60px; }
.trust-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
  background: var(--green-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 44px 48px;
}
.trust-main { display: flex; align-items: center; gap: 26px; max-width: 620px; }
.trust-shield { flex: 0 0 auto; }
.trust-shield img { display: block; width: 64px; height: auto; }
.trust-main h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.trust-main p { color: var(--muted); font-size: 17px; }

.trust-points { display: flex; flex-direction: column; gap: 16px; flex: 0 0 auto; }
.trust-points li {
  display: flex; align-items: center; gap: 12px;
  font-size: 16px; font-weight: 600;
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 18px;
  box-shadow: var(--shadow-sm);
}
.tp-ic { display: inline-flex; flex: 0 0 auto; }
.tp-ic img { width: 26px; height: 26px; object-fit: contain; }

/* ==========================================================================
   ИЛЛЮСТРАЦИЯ ЛЮДЕЙ
   ========================================================================== */
.people { padding: 20px 0 60px; }
.people-figure { margin: 0 auto; max-width: 1040px; }
.people-img { width: 100%; height: auto; border-radius: var(--radius-lg); display: block; box-shadow: var(--shadow-md); }
.people-ph {
  margin: 0;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(31,168,56,.10), transparent 55%),
    linear-gradient(180deg, var(--mint) 0%, var(--green-light) 100%);
  border: 1px solid var(--border);
  min-height: 280px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  padding: 40px 24px;
  text-align: center;
}
.people-art { max-width: 360px; width: 100%; height: auto; }
.people-caption { color: var(--muted); font-size: 16px; font-weight: 500; }

/* ==========================================================================
   ВОПРОСЫ
   ========================================================================== */
.faq { padding: 40px 0 64px; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.faq-item p { color: var(--muted); font-size: 16px; }

/* ==========================================================================
   ФИНАЛЬНАЯ CTA
   ========================================================================== */
.final-cta { padding: 20px 0 72px; }
.final-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(31,168,56,.12), transparent 60%),
    var(--green-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 44px 52px;
}
.final-text { display: flex; align-items: center; gap: 26px; }
.final-gift { flex: 0 0 auto; }
.final-gift img { display: block; width: 64px; height: auto; }
.final-text h2 { font-size: 30px; font-weight: 800; letter-spacing: -.015em; margin-bottom: 8px; }
.final-text p { color: var(--muted); font-size: 17px; }

.final-action { display: flex; align-items: center; gap: 22px; flex: 0 0 auto; }
.final-qr {
  background: #fff; border-radius: 18px; padding: 12px;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
  line-height: 0;
}
.final-action-text { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.final-hint { font-size: 13.5px; color: var(--muted); max-width: 180px; }

/* ==========================================================================
   ПОДВАЛ
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); background: var(--page-bg); padding: 38px 0; }
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; max-width: 720px; }
.footer-links a { color: var(--green-dark); font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { text-decoration: underline; }
.footer-meta { display: flex; flex-direction: column; gap: 12px; text-align: right; }
.footer-operator { font-size: 14px; color: var(--text); font-weight: 600; }
.footer-note { font-size: 13.5px; color: var(--muted); }

/* ==========================================================================
   QR-ПОПАП
   ========================================================================== */
.qr-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.qr-modal[hidden] { display: none; }
.qr-backdrop { position: absolute; inset: 0; background: rgba(16, 34, 25, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.qr-dialog {
  position: relative;
  width: 100%; max-width: 360px;
  background: #fff;
  border-radius: 26px;
  padding: 34px 30px 30px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: qr-pop .22s ease;
}
@keyframes qr-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.qr-close {
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px;
  border: 0; background: var(--mint); border-radius: 50%;
  font-size: 22px; line-height: 1; color: var(--muted);
  cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.qr-close:hover { background: var(--green-light); color: var(--green-dark); }
.qr-brand-icon {
  width: 52px; height: 52px; margin: 0 auto 16px;
  display: flex;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.qr-brand-icon img { display: block; width: 100%; height: 100%; }
.qr-title { font-size: 22px; font-weight: 800; }
.qr-sub { margin-top: 6px; color: var(--muted); font-size: 15px; }
.qr-frame {
  margin: 20px auto 18px;
  width: 250px; height: 250px;
  display: flex; align-items: center; justify-content: center;
}
.qr-frame img { width: 250px; height: 250px; }
.qr-addr {
  display: flex; align-items: center; gap: 8px;
  width: 100%; margin: 0 auto 12px;
  padding: 9px 10px 9px 15px;
  background: var(--mint);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.qr-addr-text {
  flex: 1; min-width: 0; text-align: left;
  font-size: 13.5px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qr-addr-copy {
  flex: 0 0 auto; width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--muted);
  border-radius: 8px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.qr-addr-copy:hover { background: var(--green-light); color: var(--green-dark); }
.qr-download { width: 100%; }

/* ==========================================================================
   ТОСТ
   ========================================================================== */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: #fff;
  padding: 13px 22px; border-radius: 14px;
  font-size: 15px; font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 120;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */

/* --- ≤1440: чуть меньше hero-заголовок --- */
@media (max-width: 1440px) {
  .hero-title { font-size: 56px; }
}

/* --- 1200 --- */
@media (max-width: 1200px) {
  :root { --pad: 48px; }
  .hero-title { font-size: 50px; }
  .section-head h2 { font-size: 36px; }
  .phone { width: 290px; }
}

/* --- 1024 --- */
@media (max-width: 1024px) {
  :root { --pad: 40px; }
  .hero-grid { gap: 32px; }
  .hero-title { font-size: 44px; }
  .hero-lede { font-size: 18px; }
  .hero-visual { min-height: 480px; }
  .phone { width: 270px; }
  .trust-card { padding: 36px 36px; gap: 28px; }
  .trust-main h2 { font-size: 26px; }
  .final-card { padding: 38px 40px; }
  .final-text h2 { font-size: 26px; }
}

/* --- 768: планшет/мобайл — основная перестройка --- */
@media (max-width: 768px) {
  :root { --pad: 24px; }

  /* Прячем навигацию, оставляем логотип и кнопку */
  .main-nav { display: none; }
  .header-inner { height: 66px; }

  /* Hero в одну колонку */
  .hero { padding: 32px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-title { font-size: 40px; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 460px; order: 2; }

  /* Шаги — вертикально, стрелки вниз */
  .steps { flex-direction: column; gap: 14px; }
  .step-arrow { transform: rotate(90deg); }
  .step-card { padding: 28px 24px; }

  /* Доверие — вертикально */
  .trust-card { flex-direction: column; align-items: flex-start; }
  .trust-main { flex-direction: column; align-items: center; text-align: center; }
  .trust-points { width: 100%; }

  /* Вопросы — одна колонка */
  .faq-grid { grid-template-columns: 1fr; }

  /* Финальная карточка — вертикально, QR скрыт */
  .final-card { flex-direction: column; align-items: flex-start; text-align: left; gap: 28px; }
  .final-text { flex-direction: column; align-items: flex-start; gap: 18px; }
  .final-qr { display: none; }
  .final-action { width: 100%; }
  .final-action-text { width: 100%; align-items: stretch; }
  .final-action-text .btn { width: 100%; }
  .final-hint { max-width: none; text-align: center; }

  /* Подвал — вертикально */
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-links { gap: 12px 24px; }
  .footer-meta { text-align: left; }
}

/* --- 480: телефон --- */
@media (max-width: 480px) {
  :root { --pad: 16px; }

  .brand-name { font-size: 20px; }

  .hero-title { font-size: 32px; }
  .hero-lede { font-size: 16.5px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .hero-visual { min-height: 420px; }
  .phone { width: 248px; border-radius: 40px; }
  .phone-notch { width: 100px; height: 22px; top: 22px; }

  /* Прячем часть мелкого декора, чтобы не теснил телефон */
  .deco-link { display: none; }
  .deco-piggy { right: -6%; width: 104px; }
  .deco-gift { left: -8%; width: 76px; }

  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 28px; }
  .section-head p { font-size: 16px; }

  .step-card h3 { font-size: 19px; }
  .trust-card { padding: 28px 22px; }
  .trust-main h2 { font-size: 23px; }
  .final-card { padding: 30px 22px; }
  .final-text h2 { font-size: 23px; }

  .qr-dialog { padding: 30px 22px 26px; }
}

/* Видимый фокус при управлении с клавиатуры (WCAG 2.4.7).
   :focus-visible срабатывает только для клавиатуры — мышью рамка не появляется. */
.btn:focus-visible,
.brand:focus-visible,
.main-nav a:focus-visible,
.footer-links a:focus-visible,
.hero-browser-link:focus-visible,
.qr-close:focus-visible,
.qr-addr-copy:focus-visible,
.app-btn:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 2px;
}

/* Уважение к настройкам уменьшенного движения */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .step-card, .step-ic, .step-num, .toast, .qr-dialog,
  .phone, .deco-piggy, .deco-gift, .deco-link, .deco-bubble, .deco-lock, .deco-eye { transition: none; animation: none; }
  .glow { animation: none; }
}
