/* Лендинг «Я качаю речь» — светлый лавандовый app-стиль.
   Акценты совпадают с приложением (app.css): #8b5cf6 → #a855f7 → #c084fc. */

@font-face { font-family: 'Montserrat'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('fonts/Montserrat-400-cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('fonts/Montserrat-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20B8; }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('fonts/Montserrat-500-cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('fonts/Montserrat-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20B8; }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('fonts/Montserrat-600-cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('fonts/Montserrat-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20B8; }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('fonts/Montserrat-700-cyrillic.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('fonts/Montserrat-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20B8; }

:root {
  --bg: #f4f0fc;
  --bg-2: #ece5fa;
  --card: #ffffff;
  --ink: #221436;
  --ink-2: #5d5178;
  --ink-3: #8a7fa6;
  --accent: #7c3aed;
  --accent-2: #a855f7;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #a855f7 55%, #c084fc 100%);
  --grad-deep: linear-gradient(160deg, #4c1d95 0%, #6d28d9 55%, #8b5cf6 100%);
  --wa: linear-gradient(180deg, #34d36f, #1fae57);
  --line: rgba(124, 58, 237, 0.14);
  --shadow: 0 10px 30px rgba(76, 29, 149, 0.12);
  --shadow-soft: 0 4px 16px rgba(76, 29, 149, 0.08);
  --r: 22px;
  --r-sm: 15px;
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(90% 40% at 85% -5%, rgba(192, 132, 252, 0.35) 0%, rgba(192, 132, 252, 0) 100%),
    radial-gradient(70% 30% at 0% 30%, rgba(139, 92, 246, 0.16) 0%, rgba(139, 92, 246, 0) 100%),
    var(--bg);
  /* нижний отступ под sticky-бар */
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 400px) { .wrap { padding: 0 16px; } }

/* ---------- типографика ---------- */
.kicker { font-size: 12.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; }
.kicker-light { color: #ddc9ff; }
.h1 { font-size: clamp(40px, 11vw, 56px); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; }
.h2 { font-size: clamp(26px, 6.5vw, 34px); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 18px; }
.h2-light { color: #fff; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 17px; color: var(--ink-2); margin-top: 14px; max-width: 46ch; }
.sec-sub { color: var(--ink-2); margin: -8px 0 20px; }
.micro { font-size: 13.5px; color: var(--ink-3); text-align: center; margin-top: 10px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 17px; font-weight: 700;
  padding: 16px 28px; color: #fff;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-block { display: flex; width: 100%; }
.btn-wa { background: var(--wa); box-shadow: 0 8px 22px rgba(31, 174, 87, 0.35); }
.btn-ghost { background: rgba(124, 58, 237, 0.08); color: var(--accent); border: 1px solid var(--line); font-weight: 600; }
.btn-sm { padding: 9px 18px; font-size: 14.5px; }
.wa-ico { flex: none; }

/* ---------- шапка ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(244, 240, 252, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.logo { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.logo em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-sub { font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-left: 10px; letter-spacing: 0.02em; }

/* ---------- hero ---------- */
.hero { padding: 34px 0 8px; }
.hero-visual { position: relative; height: 400px; margin: 26px 0 18px; }

/* фото-мокап телефона (замена CSS-рисованного .phone): webp с альфой —
   телефон непрозрачный, тень полупрозрачная, фон вырезан. Сам телефон занимает
   ~85% ширины картинки. Мобайл-ферст: компактнее, чтобы не наезжал на фото Айзы */
.phone-img {
  position: absolute; left: -20px; bottom: -10px; z-index: 2;
  width: 268px; height: auto;
  transform: rotate(-4deg);
}
@media (min-width: 560px) {
  .phone-img { width: 384px; left: -52px; bottom: -24px; }
}

.phone {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  width: 214px; height: 380px;
  background: #17102b; border-radius: 34px; padding: 9px;
  box-shadow: 0 24px 48px rgba(34, 20, 62, 0.35);
  transform: rotate(-4deg);
}
.p-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 72px; height: 17px; background: #17102b; border-radius: 0 0 12px 12px; z-index: 3; }
.p-screen {
  height: 100%; border-radius: 26px; overflow: hidden;
  background: linear-gradient(170deg, #2a1550 0%, #1b0f36 60%, #100819 100%);
  padding: 30px 12px 12px; color: #f4efff;
  display: flex; flex-direction: column; gap: 8px;
}
.p-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; }
.p-logo em { font-style: normal; color: #c084fc; }
.p-streak { font-size: 11px; background: rgba(255, 255, 255, 0.1); border-radius: 999px; padding: 2px 8px; }
.p-day { font-size: 15px; font-weight: 700; margin-top: 2px; }
.p-progress { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.p-progress i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.p-video { display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #8b5cf6, #c084fc); border-radius: 14px; padding: 12px 10px; margin-top: 2px; }
.p-play { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #6d28d9; font-size: 10px; display: flex; align-items: center; justify-content: center; padding-left: 2px; }
.p-vtitle { font-size: 12px; font-weight: 700; }
.p-row { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #c6b8e6; }
.p-check { flex: none; width: 16px; height: 16px; border-radius: 50%; background: rgba(52, 211, 153, 0.2); color: #34d399; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.p-now { color: #fff; font-weight: 600; }
.p-dot { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c084fc; }
.p-task { margin-top: auto; font-size: 11px; font-weight: 700; text-align: center; background: rgba(192, 132, 252, 0.18); border: 1px solid rgba(192, 132, 252, 0.35); color: #ddc9ff; border-radius: 999px; padding: 7px 10px; }

.hero-photo {
  position: absolute; right: -10px; bottom: 0; z-index: 1;
  width: auto; height: 336px;
  filter: drop-shadow(0 18px 30px rgba(34, 20, 62, 0.25));
  /* мягко растворяем низ фото: в исходнике с ~74% высоты — размытые руки зала,
     растворение начинается раньше, чтобы они не проступали белёсыми пятнами */
  -webkit-mask-image: linear-gradient(180deg, #000 64%, transparent 87%);
  mask-image: linear-gradient(180deg, #000 64%, transparent 87%);
}
@media (min-width: 560px) {
  .hero-photo { height: 396px; right: -14px; }
}

.price-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.price-old { font-size: 19px; color: var(--ink-3); text-decoration-color: rgba(196, 90, 110, 0.8); text-decoration-thickness: 2px; }
.price-new { font-size: clamp(40px, 10vw, 52px); font-weight: 700; letter-spacing: -0.02em; color: var(--accent); line-height: 1; }
.price-new .cur { font-size: 0.55em; font-weight: 600; color: var(--accent-2); }
.price-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; background: var(--grad); color: #fff; border-radius: 999px; padding: 5px 12px; }

/* ---------- секции ---------- */
.sec { padding: 44px 0; }

/* цифры-счётчики (анимация в landing.js) */
.stats-sec { padding: 10px 0 30px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.st-n { display: block; font-family: var(--font-display, inherit); font-size: clamp(26px, 7vw, 40px);
  font-weight: 700; letter-spacing: -0.02em; color: var(--accent); line-height: 1.1;
  font-variant-numeric: tabular-nums; }
.st span { font-size: 12.5px; color: var(--ink-2); }
/* широкие 4K-иллюстрации внутри секций */
.sec-img { display: block; width: 100%; height: auto; border-radius: 22px; margin: 20px 0;
  box-shadow: 0 14px 34px rgba(34, 20, 62, 0.12); }
.sec-tint { background: linear-gradient(180deg, rgba(139, 92, 246, 0.07), rgba(139, 92, 246, 0.02)); }

/* боли */
.pains { list-style: none; display: grid; gap: 10px; }
.pains li {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 16px; font-size: 15px; font-weight: 500; box-shadow: var(--shadow-soft);
}
.pi { flex: none; font-size: 20px; line-height: 1.3; }
.callout { margin-top: 22px; background: var(--grad-deep); border-radius: var(--r); padding: 26px 22px; color: #fff; text-align: center; box-shadow: var(--shadow); }
.callout-big { font-size: clamp(21px, 5.5vw, 26px); font-weight: 700; line-height: 1.25; }
.callout-sub { margin-top: 8px; color: #ddc9ff; font-size: 15px; }

/* программа */
.module { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-soft); margin-bottom: 14px; overflow: hidden; }
.module-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(192, 132, 252, 0.08)); border-bottom: 1px solid var(--line); }
.module-num { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; background: var(--grad); border-radius: 999px; padding: 4px 10px; flex: none; }
.module-name { font-weight: 700; font-size: 16.5px; }
.days { list-style: none; counter-reset: day; padding: 6px 0; }
.days[start="4"] { counter-reset: day 3; }
.days[start="7"] { counter-reset: day 6; }
.days[start="11"] { counter-reset: day 10; }
.days[start="14"] { counter-reset: day 13; }
.days[start="17"] { counter-reset: day 16; }
.days li { counter-increment: day; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 12px 18px; }
.days li + li { border-top: 1px solid rgba(124, 58, 237, 0.08); }
.days li::before {
  content: counter(day); grid-row: 1 / span 2; align-self: center;
  width: 40px; height: 40px; border-radius: 13px;
  background: rgba(124, 58, 237, 0.09); color: var(--accent);
  font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.days b { font-size: 15.5px; font-weight: 700; }
.days span { font-size: 13.5px; color: var(--ink-2); }
.days .hl { color: var(--accent); font-weight: 600; }

/* шаги */
.steps { list-style: none; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; box-shadow: var(--shadow-soft); }
.step-num { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.steps b { font-size: 15.5px; }
.steps p { font-size: 14px; color: var(--ink-2); margin-top: 3px; }

/* фичи */
.feats { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .feats { grid-template-columns: 1fr 1fr; } }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px; box-shadow: var(--shadow-soft); }
.fi { font-size: 28px; display: block; margin-bottom: 10px; }
.feat b { font-size: 16px; display: block; margin-bottom: 6px; }
.feat p { font-size: 14px; color: var(--ink-2); }

/* автор */
.author { display: grid; gap: 20px; }
.author-photo { border-radius: var(--r); box-shadow: var(--shadow); width: 100%; height: auto; max-height: 440px; object-fit: cover; object-position: top; }
.author-role { color: var(--ink-2); font-weight: 600; margin: -10px 0 14px; }
.ticks { list-style: none; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15px; font-weight: 500; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 50%; background: rgba(52, 211, 153, 0.15); color: #0ca678; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
@media (min-width: 560px) { .author { grid-template-columns: 220px 1fr; align-items: start; } .author-photo { max-height: none; } }

/* цена */
.price-card { background: var(--grad-deep); border-radius: 26px; padding: 28px 22px; color: #fff; box-shadow: 0 18px 44px rgba(76, 29, 149, 0.35); }
.includes { list-style: none; display: grid; gap: 9px; margin: 6px 0 20px; }
.includes li { position: relative; padding-left: 28px; font-size: 15px; }
.includes li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; background: rgba(52, 211, 153, 0.25); color: #6ee7b7; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.price-line-card { margin-bottom: 16px; }
.price-line-card .price-old { color: #b39ddb; }
.price-line-card .price-new { color: #fff; }
.price-line-card .price-new .cur { color: #ddc9ff; }
.buy-steps { margin: 18px 0 0 0; padding-left: 20px; display: grid; gap: 7px; font-size: 14px; color: #ddc9ff; }
.buy-steps li::marker { font-weight: 700; color: #c084fc; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-soft); margin-bottom: 10px; overflow: hidden; }
summary { list-style: none; cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 700; font-size: 15.5px; position: relative; -webkit-tap-highlight-color: transparent; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: rgba(124, 58, 237, 0.09); color: var(--accent); font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 18px 16px; font-size: 14.5px; color: var(--ink-2); }

/* футер */
.foot { padding: 36px 0 26px; text-align: center; }
.foot .logo { justify-content: center; }
.foot-sub { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.foot-links { margin-top: 12px; font-size: 14.5px; font-weight: 600; color: var(--accent); }
.foot-links a { border-bottom: 1px solid rgba(124, 58, 237, 0.25); }
.foot-copy { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }

/* sticky-бар */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(34, 20, 62, 0.08);
  transition: transform 0.25s ease;
}
.bar.hide { transform: translateY(110%); }
.bar-price { display: flex; flex-direction: column; line-height: 1.15; flex: none; }
.bar-new { font-size: 19px; font-weight: 700; color: var(--accent); }
.bar-old { font-size: 12.5px; color: var(--ink-3); }
.bar-btn { flex: 1; padding: 13px 16px; font-size: 15.5px; }

@media (min-width: 700px) {
  .bar { left: 50%; right: auto; transform: translateX(-50%); bottom: 14px; border-radius: 999px; width: 560px; border: 1px solid var(--line); padding: 10px 12px 10px 22px; }
  .bar.hide { transform: translateX(-50%) translateY(140%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar, .btn, summary::after { transition: none; }
}
