/* Демо в духе Apple: крупная типографика по центру, продукт в кадре, рассказ при прокрутке */
/* General Sans (Fontshare, бесплатно для коммерции), файлы в проекте. Веса лёгкие: заголовки и цифры 500, без жирного */
@font-face { font-family: "General Sans"; src: url("fonts/GeneralSans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap }
@font-face { font-family: "General Sans"; src: url("fonts/GeneralSans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap }
:root { --font-sans: "General Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif; --w-medium: 500; --w-semibold: 500 }
*, *::before, *::after { box-sizing: border-box }
html { -webkit-tap-highlight-color: transparent }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans);
  font-size: var(--fs-md); line-height: var(--lh-md); letter-spacing: -.01em; -webkit-font-smoothing: antialiased }

/* Рамка iPhone: своя, без логотипов; экран со своим островом уже в записи */
.iphone { position: relative; display: grid; width: var(--pw); aspect-ratio: 886 / 1926; padding: calc(var(--pw) * .036); border-radius: 17% / 7.8%;
  background: linear-gradient(145deg, #3a3a3c, #161618 55%, #2a2a2c);
  box-shadow: inset 0 0 0 1.5px #5b5b5f, inset 0 0 0 4px #0c0c0d, 0 40px 80px -30px #2a1a0659, 0 12px 30px -12px #2a1a0640 }
.iphone video, .iphone img { grid-area: 1 / 1; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; border-radius: 13.5% / 6.2%; background: #f2f2f2 }

/* Первый экран */
/* Заголовок на компьютере одной строкой, описание одной строкой, максимум двумя на телефоне: так внимание остаётся на заголовке */
main > section.ahero { padding: calc(var(--sp-16) + var(--sp-6)) 0 var(--sp-12); text-align: center; overflow: clip }
.ahero-title { margin: 0 auto; font-size: 52px; line-height: 58px; letter-spacing: -.03em; font-weight: 500; text-wrap: balance }
.ahero-lead { max-width: 760px; margin: var(--sp-6) auto 0; font-size: 22px; line-height: 32px; color: var(--text-muted); text-wrap: balance }
.ahero-cta { display: flex; justify-content: center; align-items: center; gap: var(--sp-8); margin-top: var(--sp-8) }
.alink { display: inline-flex; align-items: center; gap: 2px; font-size: 19px; line-height: 28px; color: var(--accent-text); text-decoration: none }
.alink svg { width: 20px; height: 20px; transition: transform 160ms var(--ease-out, ease-out) }
@media (hover: hover) and (pointer: fine) { .alink:hover { text-decoration: underline; text-underline-offset: 3px } .alink:hover svg { transform: translateX(2px) } }

.ahero-stage { position: relative; max-width: 880px; margin: var(--sp-12) auto 0; padding-bottom: 96px }
.stage-photo { border-radius: 28px; overflow: hidden; aspect-ratio: 2 / 1; background: var(--surface-strong) }
.stage-video { display: block; width: 100%; height: 100%; object-fit: cover }
.stage-phone { position: absolute; right: 48px; bottom: 0; --pw: 216px }

/* Главы с прокруткой: текст слева идёт, телефон справа стоит */
main > section.chapters { padding: var(--sp-16) 0 }
.ch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: var(--sp-24); max-width: 1120px }
.ch { min-height: 52svh; display: flex; flex-direction: column; justify-content: center; max-width: 520px;
  opacity: .25; transition: opacity 420ms var(--ease-out, ease-out) }
.ch.on { opacity: 1 }
.ch-kicker { font-size: 19px; line-height: 28px; font-weight: 500; color: var(--accent-text) }
.ch-title { margin-top: var(--sp-3); font-size: 52px; line-height: 58px; letter-spacing: -.03em; font-weight: 500; text-wrap: balance }
.ch-text { margin-top: var(--sp-6); font-size: 21px; line-height: 32px; color: var(--text-muted); text-wrap: pretty }
.ch-phone { display: none }
.ch-stick { position: relative }
.ch-main { position: sticky; top: calc(50svh - 348px + 32px); --pw: 320px }
.ch-main video { grid-area: 1 / 1; min-width: 0; opacity: 0; transition: opacity 500ms var(--ease-out, ease-out) }
.ch-main video.on { opacity: 1 }

/* Цена крупно */
main > section.aprice { padding: var(--sp-24) 0; text-align: center; box-shadow: inset 0 1px 0 var(--border-subtle) }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; text-align: left }
.plan { display: grid; grid-template-columns: 128px 288px; justify-content: center; gap: var(--sp-8); align-items: stretch; padding: 40px; border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-subtle) }
.plan-pro { background: var(--card-wood); box-shadow: none }
.plan-name { font-size: 19px; line-height: 28px; font-weight: 500 }
.plan-price { margin-top: var(--sp-4); font-size: 56px; line-height: 60px; letter-spacing: -.035em; font-weight: 500; white-space: nowrap }
.plan-price span { line-height: 0; font-size: 20px; letter-spacing: -.01em; font-weight: 500; color: var(--text-muted); margin-left: 4px }
.plan-note { margin-top: var(--sp-2); font-size: 16px; line-height: 24px; color: var(--text-muted) }
.plan-list { display: grid; align-content: center; gap: var(--sp-3); padding-left: var(--sp-8); box-shadow: inset 1px 0 0 var(--border) }
.plan-list li { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: 17px; line-height: 26px; white-space: nowrap }
.plan-list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent-text) }

@media (prefers-reduced-motion: reduce) { .ch, .ch-main video { transition: none } }

@media (max-width: 1024px) {
  main > section.ahero { padding-top: calc(var(--sp-12) + var(--sp-4)) }
  .ahero-title { font-size: 44px; line-height: 50px }
  .ch-grid { column-gap: var(--sp-12); grid-template-columns: minmax(0, 1fr) 280px }
  .ch-main { --pw: 280px; top: calc(50svh - 300px + 32px) }
  .ch-title { font-size: 44px; line-height: 50px }
}
@media (max-width: 760px) {
  .ahero-title { font-size: 30px; line-height: 36px }
  .ahero-lead { font-size: 18px; line-height: 27px }
  .ahero-cta { flex-direction: column; gap: var(--sp-4) }
  .ahero-stage { margin-top: var(--sp-12); padding-bottom: 80px }
  .stage-photo { border-radius: 20px; aspect-ratio: 4 / 3 }
  .stage-phone { --pw: 150px; right: 6% }
  main > section.chapters { padding: var(--sp-12) 0 }
  .ch-grid { grid-template-columns: minmax(0, 1fr) }
  .ch-stick { display: none }
  .ch { min-height: 0; opacity: 1; max-width: none; text-align: center; align-items: center; padding: var(--sp-12) 0 }
  .ch-title { font-size: 34px; line-height: 40px }
  .ch-text { font-size: 18px; line-height: 27px }
  .ch-phone { display: grid; --pw: 240px; margin-top: var(--sp-8) }
  .plans { grid-template-columns: minmax(0, 1fr); gap: 16px }
  .plan { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6) }
  .plan { padding: 28px 24px 32px; border-radius: 24px }
  .plan-list { padding: var(--sp-6) 0 0; box-shadow: inset 0 1px 0 var(--border) }
  .plan-price { font-size: 48px; line-height: 52px }
}

/* ===== Общие заголовки секций ===== */
.a-head { text-align: center; margin-bottom: var(--sp-12) }
.a-kicker { font-size: 19px; line-height: 28px; font-weight: 500; color: var(--accent-text) }
.a-title { margin-top: var(--sp-2); font-size: 52px; line-height: 58px; letter-spacing: -.03em; font-weight: 500; text-wrap: balance }

/* ===== Факты под первым экраном ===== */
main > section.afacts { padding: 0 0 var(--sp-12) }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6); max-width: 1120px; margin: 0 auto;
  padding-top: var(--sp-8); box-shadow: inset 0 1px 0 var(--border-subtle) }
.facts li { display: flex; gap: var(--sp-3); align-items: flex-start }
.facts svg { width: 24px; height: 24px; flex: none; color: var(--accent-text); margin-top: 2px }
.facts span { display: grid; gap: 2px; font-size: 15px; line-height: 22px; color: var(--text-muted) }
.facts b { font-size: 17px; line-height: 24px; font-weight: 500; color: var(--text) }

/* ===== Установка ===== */
.setup { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--sp-12); align-items: center; max-width: 1120px; margin: 0 auto }
.setup-fig { margin: 0 }
.setup-list { display: grid; gap: var(--sp-8) }
.setup-list h3 { font-size: 21px; line-height: 28px; font-weight: 500; letter-spacing: -.01em }
.setup-list p { margin-top: var(--sp-2); font-size: 17px; line-height: 26px; color: var(--text-muted); text-wrap: pretty }

/* ===== Плитки ===== */
.afeat .tiles { max-width: 1120px; margin: 0 auto }
.shot { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--border), 0 14px 32px -16px #2a1a0640 }
.shot img { display: block; width: 100%; height: auto }
.shot-fade { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent) }
.imp { display: grid; padding: var(--sp-2) var(--sp-4); border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--border) }
.imp li { display: flex; align-items: center; gap: var(--sp-3); min-height: 44px; font-size: 15px; box-shadow: inset 0 -1px 0 var(--border-subtle) }
.imp li:last-child { box-shadow: none }
.imp svg { width: 18px; height: 18px; color: var(--text-faint) }
.imp li.hl svg { color: var(--accent-text) }
.play { display: grid; gap: var(--sp-6); justify-items: center }
.play-seg { display: inline-flex; padding: 4px; border-radius: var(--r-full); background: var(--surface-strong); font-size: 15px; font-weight: 500 }
.play-seg span { padding: 8px 18px; border-radius: var(--r-full); color: var(--text-muted) }
.play-seg .on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px #2a1a0626 }
.play-boards { display: flex; gap: var(--sp-6); font-size: 14px; color: var(--text-muted) }
.play-boards span { display: grid; gap: var(--sp-3); justify-items: center }
.play-boards i { --s: 76px; width: var(--s); height: var(--s); padding: 7px; border-radius: 6px; background-color: #dcae68; background-origin: content-box; background-clip: content-box;
  background-image: repeating-linear-gradient(90deg, #5a3b14 0 1px, transparent 1px calc((var(--s) - 15px) / (var(--n) - 1))),
                    repeating-linear-gradient(0deg, #5a3b14 0 1px, transparent 1px calc((var(--s) - 15px) / (var(--n) - 1)));
  box-shadow: inset 0 0 0 7px #dcae68, 0 8px 18px -10px #2a1a0666 }

/* ===== Приватность: тёмная карточка ===== */
.priv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-16); align-items: center; 
  padding: var(--sp-16); border-radius: 32px; background: var(--card-ink); box-shadow: var(--card-ink-edge); color: #f6efe4 }
.priv .a-kicker { color: #eaa950 }
.priv-list { display: grid; gap: var(--sp-6) }
.priv-list li { display: flex; gap: var(--sp-4); align-items: flex-start }
.priv-list svg { width: 26px; height: 26px; flex: none; color: #eaa950; margin-top: 2px }
.priv-list span { display: grid; gap: 4px; font-size: 16px; line-height: 24px; color: #b7a892 }
.priv-list b { font-size: 19px; line-height: 26px; font-weight: 500; color: #f6efe4 }

.aprice-cta { margin-top: var(--sp-12) }

@media (max-width: 1024px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .setup { grid-template-columns: minmax(0, 1fr) }
  .priv { grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); padding: var(--sp-12) }
}
@media (max-width: 760px) {
  .a-title { font-size: 34px; line-height: 40px }
  .a-head { margin-bottom: var(--sp-8) }
  .facts { gap: var(--sp-5) }

  .priv { padding: var(--sp-8) var(--sp-6); border-radius: 24px }
  .play-boards { gap: var(--sp-4) }
  .play-boards i { --s: 64px }
}
@media (max-width: 420px) { .facts { grid-template-columns: minmax(0, 1fr) } }

/* одна ширина содержимого на всю страницу: 1120 + поля */
.wrap { max-width: calc(1120px + 2 * var(--gutter)) }

/* ===== Кадр «что видит iPhone сбоку» ===== */
.vf { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--surface-strong) }
.vf img { display: block; width: 100%; height: 100%; object-fit: cover }
.vf-c { position: absolute; width: 28px; height: 28px; border: 3px solid #ffffffe6 }
.vf-tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px }
.vf-tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; border-top-right-radius: 8px }
.vf-bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; border-bottom-left-radius: 8px }
.vf-br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px }
.setup-cap { margin-top: var(--sp-4); font-size: 15px; line-height: 22px; color: var(--text-muted); text-align: center }

/* ===== Карточки в стиле Apple: заголовок сверху, экран уходит за нижний край ===== */
:root { --card-wood: #f3e4c8; --card-ink: #1d1610; --card-ink-edge: none }
/* в тёмной теме тёмные карточки светлее фона и с тонкой кромкой, иначе сливаются с ним */
:root:not([data-theme="light"]) { --card-wood: #1f1912; --card-ink: #161618; --card-ink-edge: inset 0 0 0 1px #ffffff12 }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px }
.bc { position: relative; display: flex; flex-direction: column; overflow: hidden; height: 560px; padding: 40px 40px 0; border-radius: 28px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-subtle) }
.bc-title { font-size: 30px; line-height: 36px; letter-spacing: -.02em; font-weight: 500; text-wrap: balance }
.bc-text { margin-top: var(--sp-2); max-width: 440px; font-size: 17px; line-height: 26px; color: var(--text-muted); text-wrap: pretty }
.bc-phone { --pw: 280px; flex: none; align-self: center; margin-top: 36px }
.bc-report { grid-column: span 7; grid-row: span 2; height: 620px; background: var(--card-wood); box-shadow: none }
.bc-report .bc-phone { --pw: 300px }
.bc-lang, .bc-import { grid-column: span 5; height: 300px; padding-bottom: 36px }
.bc-lang { justify-content: flex-end; background: var(--card-ink); box-shadow: var(--card-ink-edge); color: #f6efe4 }
.bc-lang .bc-text { color: #b7a892 }
.bc-big { margin-bottom: auto; font-size: 140px; line-height: 120px; letter-spacing: -.06em; font-weight: 500; color: #eaa950 }
.bc-import { justify-content: space-between }
.bc-words { display: flex; flex-wrap: wrap; column-gap: 16px; font-size: 40px; line-height: 50px; letter-spacing: -.03em; font-weight: 500; color: var(--text-faint) }
.bc-words .hl { color: var(--accent-text) }
.bc-library { grid-column: span 6 }
.bc-learn { grid-column: span 6; background: var(--card-wood); box-shadow: none }

@media (max-width: 1024px) {
  .bento { gap: 16px }
  .bc { height: 480px; padding: 32px 32px 0; border-radius: 24px }
  .bc-report { height: 480px }
  .bc-lang, .bc-import { height: 232px; padding-bottom: 28px }
  .bc-title { font-size: 26px; line-height: 32px }
  .bc-text { font-size: 16px; line-height: 24px }
  .bc-phone { --pw: 220px; margin-top: 28px }
  .bc-report .bc-phone { --pw: 260px }
  .bc-big { font-size: 104px; line-height: 92px }
  .bc-words { font-size: 26px; line-height: 34px; column-gap: 10px }
}
@media (max-width: 760px) {
  .bento { grid-template-columns: minmax(0, 1fr) }
  .bc, .bc-report, .bc-lang, .bc-import, .bc-library, .bc-learn { grid-column: auto; grid-row: auto }
  .bc, .bc-report { height: 480px; padding: 28px 24px 0 }
  .bc-lang, .bc-import { height: auto; padding-bottom: 28px }
  .bc-lang { flex-direction: row; align-items: flex-end; gap: var(--sp-4) }
  .bc-big { margin: 0; font-size: 80px; line-height: 70px }
  .bc-lang .bc-text { white-space: nowrap }
  .bc-words { margin-top: var(--sp-4); font-size: 28px; line-height: 36px }
  .bc-title { font-size: 24px; line-height: 30px; letter-spacing: -.025em }
  .bc-phone, .bc-report .bc-phone { --pw: 240px; margin-top: 28px }
}
@media (max-width: 760px) {
  .vf { border-radius: 18px }
  .vf-c { width: 20px; height: 20px; border-width: 2px }
  .vf-tl, .vf-tr { top: 12px } .vf-bl, .vf-br { bottom: 12px } .vf-tl, .vf-bl { left: 12px } .vf-tr, .vf-br { right: 12px }
}

/* ===== Финал по центру: иконка, заголовок, дата, кнопка ===== */
main > section.afinal { padding: var(--sp-24) 0; text-align: center; box-shadow: inset 0 1px 0 var(--border-subtle) }
.afinal-icon { display: block; width: 120px; height: 120px; margin: 0 auto; border-radius: 27px; box-shadow: 0 12px 32px -12px #2a1a0659 }
.afinal-title { max-width: 760px; margin: var(--sp-8) auto 0; font-size: 64px; line-height: 68px; letter-spacing: -.035em; font-weight: 500; text-wrap: balance }
.afinal-tx { max-width: 560px; margin: var(--sp-5) auto 0; font-size: 21px; line-height: 30px; color: var(--text-muted); text-wrap: balance }
.afinal-cta { margin-top: var(--sp-8) }
@media (max-width: 760px) {
  main > section.afinal { padding: var(--sp-16) 0 }
  .afinal-icon { width: 96px; height: 96px; border-radius: 22px }
  .afinal-title { margin-top: var(--sp-6); font-size: 40px; line-height: 44px }
  .afinal-tx { font-size: 18px; line-height: 26px }
}
/* цена: на планшете и телефоне список под ценой, а не справа */
@media (max-width: 1024px) {
  .plan { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); align-items: start }
  .plan-list { padding: var(--sp-6) 0 0; box-shadow: inset 0 1px 0 var(--border) }
}

/* своя кнопка магазина в духе значка, без логотипа Apple: тёмная в светлой теме, светлая в тёмной */
.store-btn { display: inline-grid; justify-items: center; align-content: center; height: 56px; padding: 0 28px; border-radius: var(--r-full);
  background: var(--invert); color: var(--invert-fg); text-decoration: none;
  outline: var(--focus-outline) solid transparent; outline-offset: var(--focus-offset);
  transition: background-color var(--dur-hover-in) var(--ease-hover), outline-color var(--dur-focus) var(--ease-out) }
.store-btn-s { font-size: 12px; line-height: 14px; font-weight: 500; letter-spacing: .01em }
.store-btn-l { font-size: 22px; line-height: 26px; font-weight: 500; letter-spacing: -.02em }
.store-btn:focus-visible { outline-color: var(--focus) }
@media (hover: hover) and (pointer: fine) { .store-btn:hover { background: var(--invert-hover) } }
.nobr { white-space: nowrap }
/* в чёрной тёмной теме подписи тёмных карточек нейтральные, а не тёплые */
:root:not([data-theme="light"]) .priv-list span, :root:not([data-theme="light"]) .bc-lang .bc-text { color: var(--text-muted) }
:root:not([data-theme="light"]) .priv-list b, :root:not([data-theme="light"]) .priv, :root:not([data-theme="light"]) .bc-lang { color: var(--text) }

/* Русская версия: у General Sans нет кириллицы */
/* Wix Madefor Display (Google Fonts, OFL), переменный 400–800, файлы в проекте: кириллица и латиница */
@font-face { font-family: "Wix Madefor Display"; src: url("fonts/WixMadeforDisplay-cyrillic.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116 }
@font-face { font-family: "Wix Madefor Display"; src: url("fonts/WixMadeforDisplay-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; 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 }
html[lang="ru"] { --font-sans: "Wix Madefor Display", -apple-system, BlinkMacSystemFont, system-ui, sans-serif }
/* Переключатель языка в подвале */
.foot-meta { display: flex; align-items: center; gap: var(--sp-6) }
.foot-lang { color: var(--text-muted); text-decoration: none; transition: color var(--dur-hover-out) var(--ease-hover) }
@media (hover: hover) and (pointer: fine) { .foot-lang:hover { color: var(--text); transition-duration: var(--dur-hover-in) } }
@media (min-width: 1025px) { html[lang="ru"] .plan { grid-template-columns: 160px 288px } }
@media (max-width: 380px) { .ahero-title { font-size: 28px; line-height: 34px } .ahero-lead { font-size: 17px; line-height: 26px } }
.foot-cols { grid-template-columns: auto }   /* в подвале одна колонка ссылок */
.foot-cols b { line-height: 28px }   /* середина строки на уровне логотипа (28 px) */
