/* ───────────── Свои — сайт. Чистый CSS, без сборки ───────────── */

@font-face { font-family: Manrope; src: url(assets/fonts/Manrope_400Regular.woff2) format('woff2'), url(assets/fonts/Manrope_400Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url(assets/fonts/Manrope_600SemiBold.woff2) format('woff2'), url(assets/fonts/Manrope_600SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url(assets/fonts/Manrope_700Bold.woff2) format('woff2'), url(assets/fonts/Manrope_700Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url(assets/fonts/Manrope_800ExtraBold.woff2) format('woff2'), url(assets/fonts/Manrope_800ExtraBold.ttf) format('truetype'); font-weight: 800; font-display: swap; }

:root {
  /* Палитра приложения */
  --bg: #0b0d10;
  --bg-top: #1a1f27;
  --el: #161a20;
  --sel: #222831;
  --text: #f6f7f9;
  /* Вторичный текст светлее, чем в приложении: контраст ≥ 9:1 на чёрном для улицы и солнца */
  --text-2: #c3cad4;
  --gold: #d9b57a;
  --gold-strong: #f1ddb4;
  --gold-deep: #a9824d;
  --on-gold: #15120c;
  --gold-grad: linear-gradient(135deg, #f3deb1 0%, #d9b57a 48%, #a9824d 100%);

  --glass-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-blur: blur(22px) saturate(140%);

  --r-card: 28px;
  --r-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font: Manrope, 'Helvetica Neue', Arial, system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  /* Абзацам нужен воздух; заголовки задают свой, плотный интервал */
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 3px solid var(--gold-strong); outline-offset: 4px; border-radius: 12px; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; background: var(--gold); color: var(--on-gold); border-radius: 12px; font-weight: 700; }
.skip:focus { top: 16px; }

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

/* Шумовое зерно поверх всего — дорогое «плёночное» ощущение */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────────── Типографика ───────────── */
.eyebrow {
  font-size: 1rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
/* Подпись «Семейный календарь» живёт внутри H1 (ключевые слова для поиска), но выглядит как прежде */
.hero__title .hero__eyebrow { display: block; line-height: 1.4; }
.h2 { font-size: clamp(2.125rem, 5vw, 4rem); line-height: 1.05; max-width: 16ch; }
.h2--sm { font-size: clamp(1.75rem, 3.4vw, 2.625rem); max-width: none; margin-bottom: 12px; }
.h3 { font-size: 1.5rem; line-height: 1.2; }
.sub { color: var(--text-2); margin-top: 18px; font-size: 1.125rem; }
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.section { position: relative; padding: clamp(80px, 12vw, 150px) 0; }

/* ───────────── Стекло ───────────── */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
/* Блик по верхней кромке стекла */
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 20% 0%, rgba(255, 255, 255, 0.10), transparent 60%);
}

/* ───────────── Навигация ───────────── */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%;
  width: min(1180px, 100% - 24px);
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 10px 10px 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, -webkit-backdrop-filter 0.4s, backdrop-filter 0.4s, top 0.4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(14, 16, 20, 0.62);
  border-color: var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 34px; height: 34px; }
.brand__name { font-size: 1.375rem; font-weight: 800; letter-spacing: 0.04em; }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  position: relative; padding: 10px 16px; border-radius: var(--r-pill);
  font-size: 1rem; font-weight: 600; color: var(--text-2);
  transition: color 0.25s, background 0.25s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* Выбор языка: кнопка-«таблетка» с кодом и своё меню (родной select показывал на телефоне только коды) */
.nav__end { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.06);
  color: var(--text); cursor: pointer;
  font: 700 1rem/1 Manrope, system-ui, sans-serif; letter-spacing: 0.06em;
  transition: border-color 0.25s, background 0.25s, transform 0.2s var(--ease-out);
}
.lang__btn:hover, .lang.is-open .lang__btn { border-color: rgba(217, 181, 122, 0.6); background: rgba(217, 181, 122, 0.1); }
.lang__btn:active { transform: scale(0.96); }
.lang__icon { width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 1.6; }
.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 200px; margin: 0; padding: 6px; list-style: none;
  border-radius: 20px; border: 1px solid var(--glass-border);
  background: rgba(16, 19, 24, 0.9);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 24px 50px -20px rgba(0, 0, 0, 0.85);
  /* Появляется из кнопки: растёт от правого верхнего угла */
  transform-origin: top right;
  opacity: 0; visibility: hidden; transform: scale(0.94) translateY(-4px);
  transition: opacity 0.16s var(--ease-out), transform 0.2s var(--ease-out), visibility 0s linear 0.2s;
}
.lang__menu[hidden] { display: none; }
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lang__item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 14px; cursor: pointer;
  font-size: 1rem; font-weight: 600; color: var(--text-2);
}
.lang__item b { width: 2em; font-weight: 800; letter-spacing: 0.06em; color: var(--text); }
.lang__item span { flex: 1; }
.lang__item:hover, .lang__item:focus-visible { background: rgba(255, 255, 255, 0.07); color: var(--text); outline: none; }
.lang__item[aria-selected='true'] b, .lang__item[aria-selected='true'] { color: var(--gold-strong); }
.lang__item[aria-selected='true']::after { content: '✓'; font-weight: 800; color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────────── Кнопки ───────────── */
.btn {
  --mx: 0px; --my: 0px; /* магнитный сдвиг из JS */
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px;
  border-radius: var(--r-pill);
  font-size: 1.125rem; font-weight: 700; letter-spacing: 0.01em;
  cursor: pointer; user-select: none;
  transform: translate(var(--mx), var(--my));
  /* Без отскока: курсор не «бросает» кнопку, поэтому перелёт выглядел бы дрожанием */
  transition: transform 0.3s var(--ease-out), box-shadow 0.4s var(--ease-out), background-position 0.6s var(--ease-out), color 0.3s;
  will-change: transform;
}
.btn--sm { min-height: 46px; padding: 0 22px; font-size: 1rem; }
.btn--lg { min-height: 66px; padding: 0 38px; font-size: 1.25rem; }
.btn__label { position: relative; z-index: 2; }
.btn__arrow { position: relative; z-index: 2; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--ease-spring); }

/* Золотая: градиент сдвигается, проходит блик, вокруг — свечение, стрелка уезжает вперёд */
.btn--gold {
  color: var(--on-gold);
  background: linear-gradient(110deg, #f6e3ba 0%, #d9b57a 35%, #b58c53 65%, #f1ddb4 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  box-shadow: 0 0 0 1px rgba(241, 221, 180, 0.5) inset, 0 10px 30px -10px rgba(217, 181, 122, 0.55);
}
.btn__shine {
  position: absolute; z-index: 1; inset: -2px auto -2px -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-20deg);
  transition: left 0.8s var(--ease-out);
}
/* Подсветка, которая идёт за курсором */
.btn--gold::after {
  content: ''; position: absolute; z-index: 1; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(140px circle at var(--px, 50%) var(--py, 50%), rgba(255, 255, 255, 0.45), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
@media (hover: hover) {
  .btn--gold:hover {
    background-position: 100% 50%;
    box-shadow: 0 0 0 1px rgba(255, 244, 220, 0.8) inset, 0 18px 50px -12px rgba(217, 181, 122, 0.85), 0 0 80px -10px rgba(217, 181, 122, 0.5);
  }
  .btn--gold:hover::after { opacity: 1; }
  .btn--gold:hover .btn__shine { left: 130%; }
  .btn:hover .btn__arrow { transform: translateX(6px); }
}
.btn:active { transform: translate(var(--mx), var(--my)) scale(0.96); transition-duration: 0.12s; }

/* Стеклянная: переливающаяся рамка (conic-gradient) и заполнение светом */
.btn--glass {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn--glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: conic-gradient(from var(--angle, 0deg), rgba(255, 255, 255, 0.18), var(--gold), rgba(255, 255, 255, 0.18) 40%, rgba(255, 255, 255, 0.18) 60%, var(--gold-strong), rgba(255, 255, 255, 0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn--glass::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(120% 120% at 50% 120%, rgba(217, 181, 122, 0.35), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --angle: 360deg; } }
@media (hover: hover) {
  .btn--glass:hover { color: var(--gold-strong); box-shadow: 0 14px 40px -16px rgba(217, 181, 122, 0.6); }
  .btn--glass:hover::before { animation: spin-border 2.4s linear infinite; }
  .btn--glass:hover::after { opacity: 1; }
}

/* ───────────── HERO ───────────── */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden; isolation: isolate;
  padding: 120px 0 90px;
}
.hero__media { position: absolute; inset: -12% 0; z-index: -3; will-change: transform; }
.hero__video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.18); filter: blur(14px) brightness(1.6);
}
.hero__veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 50% 45%, transparent 0%, rgba(11, 13, 16, 0.55) 70%, var(--bg) 100%),
    linear-gradient(180deg, rgba(11, 13, 16, 0.3) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}
.hero__content {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  width: min(980px, 100% - 40px);
}
.hero__mark { width: 92px; height: 92px; margin-bottom: 28px; filter: drop-shadow(0 0 30px rgba(217, 181, 122, 0.45)); }
.hero__title { font-size: clamp(3.375rem, 10.5vw, 9.25rem); line-height: 0.98; letter-spacing: -0.035em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { margin-top: 28px; max-width: 34ch; font-size: clamp(1.125rem, 2vw, 1.375rem); color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.promo-chip {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  padding: 10px 10px 10px 20px; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid rgba(217, 181, 122, 0.55); color: var(--text);
  background: rgba(20, 18, 14, 0.55); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  font: 600 17px/1.2 Manrope, system-ui, sans-serif;
  transition: border-color 0.3s, box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-spring);
}
.promo-chip b { color: var(--gold-strong); letter-spacing: 0.1em; font-weight: 800; }
.promo-chip__copy {
  padding: 8px 14px; border-radius: var(--r-pill); background: var(--gold-grad); color: var(--on-gold);
  font-size: 1rem; font-weight: 800;
}
.promo-chip:hover { border-color: var(--gold-strong); box-shadow: 0 0 40px -6px rgba(217, 181, 122, 0.55); transform: translateY(-2px); }
.promo-chip:focus-visible { outline: 2px solid var(--gold-strong); outline-offset: 3px; }
.hero__note { margin-top: 14px; font-size: 1rem; font-weight: 600; color: var(--text-2); letter-spacing: 0.02em; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; translate: -50% 0;
  width: 30px; height: 50px; border-radius: 20px; border: 2px solid rgba(255, 255, 255, 0.35);
}
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 10px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s var(--ease-out) 3; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(18px); opacity: 0; } 100% { opacity: 0; } }

/* «Burst»: вспышка из центра, два кольца и разлёт искр. Затем проявляется видео и текст */
.burst { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: grid; place-items: center; }
.burst > * { grid-area: 1 / 1; }
.burst__flash {
  width: 40vmax; height: 40vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 210, 0.95) 0%, rgba(217, 181, 122, 0.55) 25%, rgba(217, 181, 122, 0) 65%);
  opacity: 0; transform: scale(0.05);
}
.burst__ring {
  width: 30vmin; height: 30vmin; border-radius: 50%;
  border: 2px solid var(--gold-strong);
  box-shadow: 0 0 40px rgba(217, 181, 122, 0.8), inset 0 0 40px rgba(217, 181, 122, 0.5);
  opacity: 0; transform: scale(0.1);
}
.burst__sparks { position: relative; width: 0; height: 0; }
.spark {
  position: absolute; left: 0; top: 0;
  width: var(--s, 6px); height: var(--s, 6px); margin: calc(var(--s, 6px) / -2);
  border-radius: 50%;
  background: var(--gold-strong);
  box-shadow: 0 0 12px 2px rgba(217, 181, 122, 0.9);
  opacity: 0;
}

body.is-ready .burst__flash { animation: burst-flash 1.5s var(--ease-out) forwards; }
body.is-ready .burst__ring { animation: burst-ring 1.6s var(--ease-out) 0.05s forwards; }
body.is-ready .burst__ring--2 { animation-delay: 0.22s; animation-duration: 1.9s; }
body.is-ready .spark { animation: spark 1.5s var(--ease-out) var(--d, 0s) forwards; }
body.is-ready .hero__video { animation: video-in 2.2s var(--ease-out) 0.25s forwards; }
body.is-ready .hero__mark { animation: mark-in 0.9s var(--ease-out) 0.05s both; }
body.is-ready .hero__eyebrow { animation: rise 0.7s var(--ease-out) 0.25s both; }
body.is-ready .hero__title .line > span { animation: line-up 0.9s var(--ease-out) both; }
body.is-ready .hero__title .line:nth-child(1) > span { animation-delay: 0.3s; }
body.is-ready .hero__title .line:nth-child(2) > span { animation-delay: 0.4s; }
body.is-ready .hero__lead { animation: rise 0.7s var(--ease-out) 0.55s both; }
body.is-ready .hero__actions { animation: rise 0.7s var(--ease-out) 0.65s both; }
body.is-ready .promo-chip { animation: rise 0.7s var(--ease-out) 0.75s both; }
body.is-ready .hero__note,
body.is-ready .scroll-cue { animation: fade 0.8s var(--ease-out) 0.85s both; }
/* Меню сразу под рукой: появляется первым, а не в конце */
body.is-ready .nav { animation: nav-in 0.6s var(--ease-out) 0.1s both; }
body.is-loading .hero__content > *, body.is-loading .nav, body.is-loading .scroll-cue { opacity: 0; }

@keyframes burst-flash { 0% { opacity: 0; transform: scale(0.05); } 18% { opacity: 1; } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes burst-ring { 0% { opacity: 0; transform: scale(0.1); } 15% { opacity: 1; } 100% { opacity: 0; transform: scale(4.2); border-width: 0.5px; } }
@keyframes spark {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1); }
}
@keyframes video-in { to { opacity: 1; transform: scale(1); filter: blur(0) brightness(1); } }
@keyframes mark-in { 0% { opacity: 0; transform: scale(0.3) rotate(-90deg); } 100% { opacity: 1; transform: none; } }
@keyframes line-up { 0% { opacity: 0; transform: translateY(105%) skewY(6deg); } 100% { opacity: 1; transform: none; } }
/* Без размытия: анимировать blur на телефонах дорого, а глазу хватает сдвига и прозрачности */
@keyframes rise { 0% { opacity: 0; transform: translateY(26px); } 100% { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nav-in { 0% { opacity: 0; transform: translate(-50%, -20px); } 100% { opacity: 1; transform: translate(-50%, 0); } }

/* ───────────── Появление при прокрутке ───────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ───────────── Кто что видит ───────────── */
.scopes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.scope { padding: 34px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.scope p { color: var(--text-2); }
.scope__dot { width: 46px; height: 46px; border-radius: 14px; background: var(--c); box-shadow: 0 0 40px -4px var(--c); margin-bottom: 8px; }
.scope::after {
  content: ''; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%);
  pointer-events: none;
}

/* ───────────── Карточки с 3D-переворотом ───────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.flip {
  appearance: none; border: 0; padding: 0; background: none; text-align: left;
  height: 300px; cursor: pointer;
  perspective: 1200px;
}
.flip__inner {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-out);
  transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg)));
}
.flip__face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 32px;
  border-radius: var(--r-card);
  border: 1px solid var(--glass-border);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  overflow: hidden;
}
.flip__front {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(217, 181, 122, 0.16), transparent 55%),
    linear-gradient(160deg, #1b2028, #111419);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
/* Блик, который бежит по карточке за курсором */
.flip__front::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(300px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.12), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.flip:hover .flip__front::after { opacity: 1; }
.flip__back {
  transform: rotateY(180deg);
  justify-content: flex-end; gap: 14px;
  background: var(--gold-grad);
  color: var(--on-gold);
  border-color: rgba(255, 244, 220, 0.6);
  box-shadow: 0 30px 70px -25px rgba(217, 181, 122, 0.6);
}
.flip__icon {
  width: 64px; height: 64px; border-radius: 20px;
  display: grid; place-items: center;
  background: rgba(217, 181, 122, 0.14);
  border: 1px solid rgba(217, 181, 122, 0.35);
}
.flip__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--gold-strong); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flip__title { margin-top: auto; font-size: 1.625rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.flip__back .flip__title { margin-top: 0; font-size: 1.875rem; }
.flip__text { font-size: 1.125rem; font-weight: 600; line-height: 1.45; }
.flip__hint {
  margin-top: 14px; font-size: 1rem; font-weight: 700; color: var(--gold);
  display: inline-flex; align-items: center; gap: 8px;
}
.flip__hint::after { content: '↻'; font-size: 1.125rem; transition: transform 0.6s var(--ease-spring); }
.flip:hover .flip__hint::after { transform: rotate(180deg); }

/* Переворот — по нажатию (и мышью, и пальцем): при наведении текст на обороте легко пропустить */
.flip[aria-pressed='true'] { --flip: 180deg; }
.flip:focus-visible { outline: none; }
.flip:focus-visible .flip__face { outline: 3px solid var(--gold-strong); outline-offset: 4px; }

/* ───────────── Экраны ───────────── */
.screens { overflow: hidden; }
.screens__glow {
  position: absolute; left: 50%; top: 30%; width: 900px; height: 900px; margin-left: -450px; z-index: -1;
  background: radial-gradient(circle, rgba(217, 181, 122, 0.20), transparent 62%);
  filter: blur(20px);
}
.phones { display: flex; justify-content: center; align-items: center; gap: clamp(16px, 3vw, 44px); margin-top: 64px; }
.phone { margin: 0; flex: 0 0 auto; text-align: center; will-change: transform; }
.phone img {
  width: clamp(200px, 22vw, 290px); height: auto;
  border-radius: 40px;
  border: 8px solid #1a1d22;
  outline: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 60px -20px rgba(217, 181, 122, 0.35);
}
.phone--main img { width: clamp(240px, 26vw, 340px); }
.phone--side { opacity: 0.85; }
.phone figcaption { margin-top: 22px; font-size: 1rem; font-weight: 700; color: var(--text-2); letter-spacing: 0.08em; text-transform: uppercase; }

/* ───────────── Шаги ───────────── */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 34px; display: flex; flex-direction: column; gap: 14px; }
.step p { color: var(--text-2); }
.step__n { font-size: 3.5rem; font-weight: 800; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }

/* ───────────── Данные ───────────── */
.privacy { display: flex; gap: 32px; align-items: center; padding: clamp(28px, 5vw, 56px); }
.privacy p { color: var(--text-2); font-size: 1.25rem; max-width: 60ch; }
.privacy__icon { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; background: var(--gold-grad); box-shadow: 0 20px 50px -15px rgba(217, 181, 122, 0.6); }
.privacy__icon svg { width: 44px; height: 44px; fill: none; stroke: var(--on-gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ───────────── Цены ───────────── */
.plans { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 22px; margin-top: 56px; }
.plans__note { margin-top: 26px; color: var(--text-2); max-width: 60ch; }
.plan { padding: 40px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.plan p { color: var(--text-2); }
.plan .btn { margin-top: auto; }
.plan__price { color: var(--text) !important; font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.plan__price small { font-size: 1.125rem; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.plan--accent { border-color: rgba(217, 181, 122, 0.55); background: linear-gradient(160deg, rgba(217, 181, 122, 0.16), rgba(255, 255, 255, 0.03)); }
.plan--promo {
  border-color: rgba(217, 181, 122, 0.6);
  background: radial-gradient(120% 90% at 0% 0%, rgba(241, 221, 180, 0.22), transparent 60%), linear-gradient(160deg, rgba(217, 181, 122, 0.18), rgba(255, 255, 255, 0.03));
  box-shadow: 0 0 0 1px rgba(217, 181, 122, 0.15), 0 40px 80px -40px rgba(217, 181, 122, 0.45);
}
.plan__code { color: var(--text) !important; font-size: 1.25rem; font-weight: 600; }
.plan__code b {
  display: inline-block; margin-left: 6px; padding: 6px 14px; border-radius: 12px;
  border: 1px dashed rgba(241, 221, 180, 0.7); color: var(--gold-strong);
  font-size: 1.625rem; font-weight: 800; letter-spacing: 0.14em;
}
.plan__badge--soft { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.plan__badge { font-size: 1rem; font-weight: 700; padding: 8px 14px; border-radius: var(--r-pill); background: rgba(217, 181, 122, 0.18); color: var(--gold-strong); }

/* ───────────── Вопросы ───────────── */
.faq { display: flex; flex-direction: column; gap: 14px; margin-top: 48px; }
.faq details { border-radius: 22px; }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 26px 70px 26px 28px; font-size: 1.25rem; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 26px; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  border-radius: 50%; background: rgba(217, 181, 122, 0.16)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F1DDB4' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform 0.5s var(--ease-spring);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 28px 26px; color: var(--text-2); }

/* ───────────── Финал и подвал ───────────── */
.final__box {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center;
  padding: clamp(50px, 8vw, 100px) 24px;
  border-radius: 40px;
  border: 1px solid rgba(217, 181, 122, 0.35);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(217, 181, 122, 0.22), transparent 70%),
    linear-gradient(180deg, #161a20, #0e1014);
}
.final__box .h2 { max-width: 18ch; }
.final__mark { width: 84px; height: 84px; transition: transform 1.2s var(--ease-out); }
.final__box:hover .final__mark { transform: rotate(120deg); }
@keyframes slow-spin { to { transform: rotate(360deg); } }

/* ───────────── Истории ───────────── */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.story { margin: 0; padding: 34px; display: flex; flex-direction: column; gap: 18px; }
.story__quote { width: 34px; height: 34px; fill: var(--gold); opacity: 0.9; }
.story blockquote { margin: 0; font-size: 1.125rem; line-height: 1.45; color: var(--text); }
.story figcaption { margin-top: auto; color: var(--gold-strong); font-weight: 700; }
.stories__note { margin-top: 26px; color: var(--text-2); max-width: 70ch; }

.footer { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 22px 0 26px; color: var(--text-2); font-size: 0.8125rem; line-height: 1.35; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand--footer .brand__mark { width: 22px; height: 22px; }
.brand--footer .brand__name { font-size: 0.9375rem; color: var(--text); }

/* Подвал: документы и сведения о продавце */
.footer__legal { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px 40px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer__docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 4px 28px; }
.footer__docs a, .footer__org a { color: var(--text-2); text-decoration: none; }
.footer__docs a:hover, .footer__org a:hover { color: var(--gold-strong); text-decoration: underline; text-underline-offset: 3px; }
.footer__org { margin: 0; font-style: normal; }
.footer__note { margin: 8px 0 0; color: var(--text-2); opacity: 0.7; }
.footer h2 { font-size: 0.6875rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text); margin: 0 0 8px; }
.todo { background: rgba(242, 112, 107, 0.18); color: #ffb4b0; border-radius: 6px; padding: 0 5px; }

/* ───────────── Адаптив ───────────── */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan--promo { grid-column: 1 / -1; }
  .scopes__grid, .cards, .steps, .stories { grid-template-columns: 1fr 1fr; }
  .footer__legal { grid-template-columns: 1fr; }
  .phone--side:first-child { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .nav { padding-left: 14px; gap: 10px; }
  .nav .brand__name { display: none; }
  .lang__btn { padding: 0 10px; }
  .plan { padding: 30px 24px; }
  .scopes__grid, .cards, .steps, .plans, .stories, .footer__docs { grid-template-columns: 1fr; }
  .flip { height: 240px; }
  .phones { gap: 14px; }
  .phone img { width: 46vw; border-radius: 28px; border-width: 5px; }
  .phone--main img { width: 54vw; }
  .phone--side { display: none; }
  .privacy { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; }
  .hero__actions { width: 100%; max-width: 360px; }
}

/* Если человек попросил меньше движения — без вспышки, параллакса и переворотов на лету */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .burst { display: none; }
  .hero__video { opacity: 1; transform: none; filter: none; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* Заголовок акции крупнее и золотом */
.plan--promo .h3 { font-size: clamp(1.875rem, 3.4vw, 2.5rem); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ───────────── Страницы документов ───────────── */
.doc { padding: 140px 0 80px; }
.doc .h2 { max-width: none; font-size: clamp(1.875rem, 4vw, 3rem); margin-bottom: 10px; }
.doc__meta { color: var(--text-2); margin-bottom: 34px; }
.doc__draft { padding: 18px 22px; border-radius: 18px; background: rgba(242, 112, 107, 0.12); border: 1px solid rgba(242, 112, 107, 0.35); color: #ffd2cf; margin-bottom: 40px; }
.doc h2.doc__h { font-size: 1.5rem; line-height: 1.25; margin: 40px 0 14px; }
.doc p, .doc li { color: var(--text-2); line-height: 1.55; max-width: 75ch; }
.doc p + p { margin-top: 12px; }
.doc ol, .doc ul { padding-left: 24px; display: grid; gap: 8px; }
.doc a { color: var(--gold-strong); }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-2); }
.doc th { color: var(--text); }
.doc__back { display: inline-block; margin-bottom: 28px; color: var(--text-2); }

/* Понижение прозрачности: стекло становится сплошным, без размытия и зерна */
@media (prefers-reduced-transparency: reduce) {
  body::after { display: none; }
  .glass, .nav.is-scrolled, .btn--glass, .promo-chip, .lang__btn, .lang__menu {
    background: #161a20;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}

/* Повышенный контраст: светлее вторичный текст, чёткие рамки, без зерна поверх текста */
@media (prefers-contrast: more) {
  :root { --text-2: #e2e6ec; --glass-border: rgba(255, 255, 255, 0.45); }
  body::after { display: none; }
  .glass, .nav.is-scrolled { background: #12151a; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ───────────── Значки магазинов ───────────── */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores--center, .hero__actions .stores { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 8px 20px 8px 16px;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--text);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
}
.store__icon { width: 26px; height: 26px; flex: none; fill: currentColor; }
.store__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store__small { font-size: 0.75rem; font-weight: 600; color: var(--text-2); }
.store__name { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; }
.store:active { transform: scale(0.97); transition-duration: 0.1s; }
@media (hover: hover) {
  .store:not([aria-disabled='true']):hover { border-color: rgba(217, 181, 122, 0.6); background: rgba(217, 181, 122, 0.1); }
}
/* Пока приложения нет в магазине: значок виден, но не кликается, подпись «Скоро в» золотом */
.store[aria-disabled='true'] { pointer-events: none; }
.store[aria-disabled='true'] .store__small { color: var(--gold); }
@media (max-width: 640px) {
  .hero__actions .stores { justify-content: center; }
  .store { flex: 1 1 100%; justify-content: center; max-width: 360px; margin-inline: auto; }
}
@media (prefers-reduced-transparency: reduce) {
  .store { background: #161a20; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
