/* =====================================================
   Страница /download: презентация приложения для Android.

   Своя страница, без шапки справочника: тёмный первый экран
   со светом, крупные слова, настоящие экраны в рамке телефона
   и еда «в воздухе» вокруг. Цвета — тема «Закат» (малина,
   манго, лаванда, слива), шрифты — Unbounded и Manrope, те же
   файлы, что у темы (static/css/themes/sunset.css).
   ===================================================== */

@font-face {
  font-family: Unbounded; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(/static/fonts/unbounded-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Unbounded; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(/static/fonts/unbounded-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: Manrope; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --raspberry: #d9166f;
  --raspberry-2: #ff3d8b;
  --mango: #ffb020;
  --mango-2: #ffd36b;
  --lavender: #7e5bd0;
  --lavender-2: #b9a2ff;
  --plum: #2b1433;
  --plum-deep: #1c0d22;

  --bg: #fff6ea;
  --bg-2: #ffeedb;
  --card: #ffffff;
  --text: #2b1433;
  --text-2: #5e4863;
  --line: rgba(43, 20, 51, 0.1);

  --font-ui: Manrope, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: Unbounded, var(--font-ui);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hot: linear-gradient(100deg, var(--raspberry-2) 0%, var(--mango) 100%);
  /* Заливка под белый текст: манго на конце слишком светлое для белого. */
  --fill: linear-gradient(110deg, #e0156f 0%, #f2386a 45%, #ff6a3d 100%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c0d22;
    --bg-2: #2b1433;
    --card: #2f1838;
    --text: #fff3e2;
    --text-2: #d6c3d8;
    --line: rgba(255, 243, 226, 0.12);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-ui); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; }
p { margin: 0; }
[data-lucide] { width: 1em; height: 1em; }
em { font-style: normal; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* -------- Навигация: стекло поверх всего -------- */
.ap-nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(28, 13, 34, 0.62);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ap-nav-in {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); height: 52px; margin: 0 auto; padding: 0 16px;
}
.ap-logo { display: inline-flex; align-items: center; gap: 9px; color: #fff3e2; font-weight: 800; font-size: 15px; }
.ap-logo img { width: 28px; height: 28px; border-radius: 8px; }
.ap-nav-cta {
  padding: 6px 14px; border-radius: 999px; background: var(--raspberry);
  color: #fff; font-size: 13.5px; font-weight: 800; transition: background-color 0.2s;
}
.ap-nav-cta:hover { background: var(--raspberry-2); }

/* -------- Общие детали -------- */
.ap-eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--raspberry);
}
.ap-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 30px; border-radius: 999px;
  background: var(--fill); color: #fff;
  font-size: 17px; font-weight: 800; text-shadow: 0 1px 1px rgba(120, 0, 40, 0.25);
  box-shadow: 0 14px 40px -12px rgba(255, 61, 139, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ap-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 20px 50px -12px rgba(255, 61, 139, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.ap-btn:active { transform: scale(0.98); }
.ap-btn [data-lucide] { font-size: 26px; flex: none; }
.ap-btn-txt { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.ap-btn-txt b { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.ap-btn-txt small { font-size: 12.5px; font-weight: 600; opacity: 0.88; }
.ap-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 30px; }
.ap-meta { font-size: 14px; font-weight: 600; color: rgba(255, 243, 226, 0.62); }
.ap-note {
  display: flex; gap: 10px; max-width: 46ch; margin-top: 22px; padding: 13px 16px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14.5px; color: rgba(255, 243, 226, 0.85);
}
.ap-note[hidden] { display: none; }
.ap-note [data-lucide] { flex: none; margin-top: 3px; font-size: 17px; color: var(--mango); }
.ap-note a { color: var(--mango-2); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.ap-note b { color: #fff; }

/* Телефон: рендер настоящей 3D-модели Galaxy S25 Ultra (тот же, что на
   lampwork.dev; модель Roberto Domínguez, CC BY 4.0, подпись в подвале).
   Прямой телефон — кадр с вырезанным экраном, снимки лежат под вырезом и
   листаются. Повёрнутый — целиком готовый рендер со снимком на экране и
   перспективной камерой (.ap-phone-3d): плоская рамка, сжатая по ширине,
   выглядела вклеенной. Ширина прямого телефона — --w, всё внутри в cqw. */
.ap-phone {
  --w: 290px;
  position: relative; flex: none; margin: 0; width: var(--w); aspect-ratio: 861 / 1800;
  container-type: inline-size; isolation: isolate;
}
/* Той же высоты, что прямой телефон шириной --w. */
.ap-phone-3d { width: calc(var(--w) * 0.978); aspect-ratio: 635 / 1357; }
.ap-phone-3d > img { display: block; width: 100%; height: 100%; }
.ap-frame { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; user-select: none; }
.ap-shadow {
  position: absolute; inset: 5% 8%; z-index: -1; border-radius: 12cqw;
  background: var(--phone-shadow, rgba(20, 6, 26, 0.55));
  filter: blur(9cqw); transform: translate(3cqw, 9cqw);
}
.ap-screen {
  position: absolute; left: 2.806%; top: 1.366%; width: 93.812%; height: 97.038%;
  overflow: hidden; isolation: isolate; background: #f3f5f7; border-radius: 3.1cqw;
}
.ap-flat { position: absolute; inset: 0; container-type: size; }
.ap-view {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  opacity: 0; transform: translateX(5%) scale(0.985);
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease);
}
.ap-view.is-on { opacity: 1; transform: none; }
.ap-view.is-off { opacity: 0; transform: translateX(-5%) scale(0.985); }
/* Стекло: блик сверху слева и тень у рамки. Без них снимок под вырезом
   читается как вклеенная картинка, а не как экран. */
.ap-glare {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 28%, transparent 42%);
  box-shadow: inset 0 0 1.2cqw rgba(0, 0, 0, 0.14);
}
/* Строка состояния поверх снимка: свою телефонную мы закрасили. Камера —
   в самом рендере. */
.ap-status {
  position: absolute; z-index: 2; inset: 0 0 auto; height: 9.6cqw;
  display: flex; align-items: center; justify-content: space-between; padding: 0.4cqw 6.5cqw 0 7.5cqw;
  font: 700 3.9cqw / 1 var(--font-ui); color: #15161a;
}
.ap-sys { display: inline-flex; align-items: center; gap: 1.4cqw; }
.ap-sys svg { display: block; height: 3.2cqw; width: auto; }

/* Кнопка RuStore — их официальный SVG как есть, той же высоты, что наша. */
.ap-store { display: inline-flex; border-radius: 5px; transition: transform 0.25s var(--ease); }
.ap-store:hover { transform: translateY(-2px); }
.ap-store img { display: block; width: auto; height: 58px; }
/* Наша кнопка повторяет форму кнопки магазина: прямоугольник с тем же
   скруглением (у RuStore 3,5 из 40 → 5 px при высоте 58), а не таблетка. */
.ap-btn { height: 58px; min-width: 161px; padding: 0 22px 0 16px; gap: 12px; border-radius: 5px; }

.ap-under { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 16px; }
.ap-fresh {
  display: block; max-width: 62ch; text-align: center; text-wrap: balance;
  font-size: 13.5px; line-height: 1.45; color: rgba(255, 243, 226, 0.55);
}
.ap-fresh [data-lucide] { display: inline-block; margin-right: 5px; vertical-align: -2px; font-size: 14px; color: var(--mango); }

.ap-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 60; max-width: min(92vw, 420px);
  padding: 14px 20px; border-radius: 18px; transform: translateX(-50%);
  background: rgba(28, 13, 34, 0.92); color: #fff3e2; border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 15px; font-weight: 600; line-height: 1.4; text-align: center;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}
.ap-toast[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .ap-toast { animation: ap-toast 0.35s var(--ease); }
}
@keyframes ap-toast { from { opacity: 0; transform: translate(-50%, 16px); } }

/* Появление при прокрутке: только если движение не выключено. */
@media (prefers-reduced-motion: no-preference) {
  .js .ap-reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js .ap-reveal.is-in { opacity: 1; transform: none; }
}

/* -------- Первый экран -------- */
.ap-hero {
  position: relative; overflow: hidden;
  padding: 112px 16px 0; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #3d1a45 0%, var(--plum-deep) 60%);
  color: #fff3e2;
}
.ap-glow {
  position: absolute; inset: auto 0 -10%; height: 90%; pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 70%, rgba(217, 22, 111, 0.55), transparent 70%),
    radial-gradient(35% 45% at 72% 62%, rgba(255, 176, 32, 0.38), transparent 70%),
    radial-gradient(30% 40% at 50% 95%, rgba(126, 91, 208, 0.5), transparent 70%);
  filter: blur(20px);
}
.ap-hero-copy { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; }
.ap-hero .ap-eyebrow { color: var(--mango); }
.ap-hero h1 { font-size: clamp(34px, 7.6vw, 84px); line-height: 1.02; }
.ap-lead { max-width: 34ch; margin: 22px auto 0; font-size: clamp(18px, 2.4vw, 22px); line-height: 1.45; color: rgba(255, 243, 226, 0.78); }
.ap-hero .ap-cta { justify-content: center; }
.ap-hero .ap-note { margin-left: auto; margin-right: auto; text-align: left; }

.ap-stage { position: relative; z-index: 1; height: 560px; max-width: 1100px; margin: 54px auto 0; }
.ap-phone-hero {
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 92%);
}
.ap-phone-hero { --w: 300px; position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 3; }
.ap-food {
  position: absolute; z-index: 2; height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
  will-change: transform;
}
.ap-f1 { width: 230px; left: calc(50% - 400px); top: 40px; --r: -14deg; }
.ap-f2 { width: 170px; left: calc(50% + 190px); top: 10px; --r: 12deg; }
.ap-f3 { width: 300px; left: calc(50% - 470px); top: 280px; --r: 6deg; }
.ap-f4 { width: 160px; left: calc(50% + 250px); top: 200px; --r: -18deg; }
.ap-f5 { width: 230px; left: calc(50% + 200px); top: 380px; --r: 4deg; z-index: 4; }
.ap-f6 { width: 170px; left: calc(50% - 260px); top: 450px; --r: -6deg; z-index: 4; }
.ap-food { transform: translate3d(0, var(--py, 0px), 0) rotate(var(--r, 0deg)); }
@media (prefers-reduced-motion: no-preference) {
  .ap-food { animation: ap-float 7s ease-in-out infinite alternate; }
  .ap-f2, .ap-f5 { animation-duration: 8.5s; animation-delay: -2s; }
  .ap-f3, .ap-f6 { animation-duration: 9.5s; animation-delay: -4s; }
  .ap-phone-hero { animation: ap-rise 1.3s var(--ease) both; }
  .ap-hero-copy > * { animation: ap-in 0.9s var(--ease) both; }
  .ap-hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .ap-hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .ap-hero-copy > :nth-child(4) { animation-delay: 0.24s; }
}
@keyframes ap-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes ap-float {
  from { translate: 0 0; }
  to { translate: 0 -16px; }
}
@keyframes ap-rise {
  from { opacity: 0; transform: translateX(-50%) translateY(80px); }
  to { opacity: 1; transform: translateX(-50%); }
}
@media (max-width: 760px) {
  .ap-stage { height: 470px; margin-top: 40px; }
  .ap-phone-hero { --w: 236px; }
  .ap-f1 { width: 140px; left: calc(50% - 205px); top: 30px; }
  .ap-f2 { width: 110px; left: calc(50% + 105px); top: 0; }
  .ap-f3 { width: 170px; left: calc(50% - 230px); top: 250px; }
  .ap-f4 { width: 100px; left: calc(50% + 120px); top: 160px; }
  .ap-f5 { width: 150px; left: calc(50% + 85px); top: 330px; }
  .ap-f6 { display: none; }
}

/* -------- Секции -------- */
.ap-sec { position: relative; padding: 110px 16px; }
.ap-light { background: var(--bg); }
.ap-sec h2 { font-size: clamp(32px, 5.6vw, 60px); line-height: 1.05; }
.ap-sec p { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--text-2); }
.ap-copy p { max-width: 36ch; margin-top: 22px; }

.ap-split {
  display: grid; gap: 56px; align-items: center;
  max-width: var(--maxw); margin: 0 auto;
}
.ap-visual { position: relative; display: flex; justify-content: center; }
@media (min-width: 900px) {
  .ap-split { grid-template-columns: 1.05fr 0.95fr; gap: 80px; }
  .ap-split-rev .ap-copy { order: 2; }
}
.ap-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.ap-chips li {
  padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 700; color: var(--text);
}

/* Пузырь сообщения над телефоном: печатается при появлении. */
.ap-bubble {
  position: absolute; z-index: 3; top: 70px; left: 50%; transform: translateX(-88%);
  max-width: 260px; padding: 14px 18px; border-radius: 22px 22px 6px 22px;
  background: var(--fill); color: #fff;
  font-size: 15.5px; font-weight: 700; line-height: 1.35; text-align: left;
  box-shadow: 0 24px 50px -18px rgba(217, 22, 111, 0.65);
}
.ap-bubble span::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: ap-caret 1s steps(1) infinite; }
.ap-bubble.is-done span::after { display: none; }
@keyframes ap-caret { 50% { opacity: 0; } }
@media (max-width: 520px) { .ap-bubble { transform: translateX(-70%); top: 40px; max-width: 220px; font-size: 14.5px; } }

/* -------- История «Просто напиши»: телефон стоит, шаги прокручиваются -------- */
/* clip, а не hidden: hidden сделал бы секцию прокручиваемой и сломал sticky. */
.ap-story { overflow-x: clip; }
.ap-story-in { display: grid; gap: 36px; max-width: var(--maxw); margin: 0 auto; }
.ap-story-stage { position: relative; display: flex; justify-content: center; }
.ap-story-stage::before {
  content: ""; position: absolute; inset: -6% -20% 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 40% at 42% 40%, rgba(255, 61, 139, 0.26), transparent 70%),
    radial-gradient(34% 36% at 62% 66%, rgba(255, 176, 32, 0.24), transparent 70%);
  filter: blur(10px);
}
.ap-story-stage .ap-phone { z-index: 1; }
.ap-phone-story { --w: 270px; }
.ap-story .ap-bubble { transition: opacity 0.4s var(--ease); }
.ap-story:not([data-at="0"]) .ap-bubble { opacity: 0; }
.ap-story-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ap-story-steps li {
  padding: 22px 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--line);
  transition: opacity 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.ap-story-steps b { font: 800 13px / 1 var(--font-display); letter-spacing: 0.12em; color: var(--raspberry); }
.ap-story-steps h3 { margin: 10px 0 0; font-size: clamp(21px, 2.3vw, 30px); line-height: 1.15; }
.ap-story-steps p { margin: 10px 0 0; font-size: 16.5px; max-width: 40ch; }
@media (prefers-reduced-motion: no-preference) {
  .js .ap-story-steps li { opacity: 0.42; }
  .js .ap-story-steps li.is-on { opacity: 1; box-shadow: 0 24px 60px -32px rgba(43, 20, 51, 0.35); }
}
@media (min-width: 900px) {
  .ap-story-in { grid-template-columns: 1fr 1fr; column-gap: 80px; align-items: start; }
  .ap-story-head { grid-column: 2; }
  .ap-story-stage { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: calc(50vh - 330px); padding-top: 20px; }
  .ap-phone-story { --w: 300px; }
  .ap-story-steps { grid-column: 2; gap: 0; }
  .ap-story-steps li { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; padding: 0; border: 0; background: none; }
  .js .ap-story-steps li.is-on { box-shadow: none; }
  .ap-story-steps h3 { font-size: clamp(26px, 2.6vw, 36px); }
}

/* -------- Фото: большая карточка на малиновой тарелке -------- */
.ap-photo { background: var(--bg); padding-top: 20px; }
.ap-photo-card {
  position: relative; overflow: hidden; display: grid; align-items: end;
  max-width: var(--maxw); min-height: 640px; margin: 0 auto; padding: 48px 28px 0;
  border-radius: 40px; background: var(--raspberry); color: #fff;
}
.ap-photo-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
}
.ap-photo-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(150, 8, 70, 0.92) 0%, rgba(150, 8, 70, 0.55) 38%, rgba(150, 8, 70, 0) 62%);
}
.ap-photo-copy { position: relative; z-index: 2; align-self: start; max-width: 520px; }
.ap-photo .ap-eyebrow { color: var(--mango-2); }
.ap-photo h2 { color: #fff; }
.ap-photo p { margin-top: 18px; color: rgba(255, 255, 255, 0.86); max-width: 34ch; }
.ap-phone-photo { --w: 280px; position: relative; z-index: 2; justify-self: center; margin-top: 40px; margin-bottom: -150px; }
@media (min-width: 900px) {
  .ap-photo-card { grid-template-columns: 1fr 1fr; align-items: start; padding: 72px 72px 0; min-height: 720px; }
  .ap-photo-card::before { background: linear-gradient(90deg, rgba(150, 8, 70, 0.92) 0%, rgba(150, 8, 70, 0.5) 38%, rgba(150, 8, 70, 0) 60%); }
  .ap-photo-bg { object-position: 85% 50%; }
  .ap-phone-photo { --w: 320px; margin: 40px 0 -120px; justify-self: end; }
  .ap-photo-copy { padding-top: 40px; }
}

/* -------- Прогресс: два телефона внахлёст на лавандовом свете --------
   Телефоны стоят ровно: повёрнутая рамка с кольцами тени даёт лесенку по
   краям и выглядит неестественно. */
.ap-progress { overflow: hidden; background: var(--bg); }
.ap-progress .ap-eyebrow { color: var(--lavender); }
.ap-duo { min-height: calc(270px * 2.2); }
.ap-duo::before {
  content: ""; position: absolute; inset: 8% -10% 0; z-index: 0;
  background: radial-gradient(closest-side, rgba(126, 91, 208, 0.32), rgba(126, 91, 208, 0));
}
.ap-phone-back { --w: 270px; z-index: 1; transform: translateX(-40%); }
.ap-phone-front {
  --w: 250px; position: absolute; z-index: 2; top: 110px; left: 50%;
  transform: translateX(-4%);
}
@media (max-width: 520px) {
  .ap-duo { min-height: calc(210px * 2.3); }
  .ap-phone.ap-phone-back { --w: 205px; }
  .ap-phone.ap-phone-front { --w: 190px; top: 80px; transform: translateX(-8%); }
}

/* -------- Помощник: тёмная секция с вечерним натюрмортом -------- */
.ap-dark { overflow: hidden; background: var(--plum-deep); color: #fff3e2; }
.ap-dark h2 { color: #fff3e2; }
.ap-dark p { color: rgba(255, 243, 226, 0.75); }
.ap-dark .ap-eyebrow { color: var(--lavender-2); }
/* Натюрморт отражён: миска оказывается слева, за телефоном, а справа под
   словами остаётся тёмный фон. */
.ap-night {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%;
  transform: scaleX(-1); opacity: 0.6;
  mask-image: linear-gradient(270deg, #000 0%, #000 30%, transparent 62%);
  -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 30%, transparent 62%);
}
.ap-dark .ap-split { position: relative; z-index: 1; }
@media (max-width: 899px) {
  .ap-night { mask-image: linear-gradient(180deg, transparent 20%, #000 80%); -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 80%); }
}

/* -------- Плитки -------- */
.ap-head { max-width: var(--maxw); margin: 0 auto 48px; }
.ap-bento {
  display: grid; gap: 16px; max-width: var(--maxw); margin: 0 auto;
  grid-template-columns: 1fr;
}
.ap-tile {
  position: relative; overflow: hidden; min-height: 230px; padding: 30px;
  border-radius: 32px; display: flex; flex-direction: column; justify-content: flex-end;
}
.ap-tile h3 { font-size: 24px; line-height: 1.15; }
.ap-tile p { margin-top: 8px; font-size: 16px; line-height: 1.5; }
.ap-tile > [data-lucide] { position: absolute; top: 28px; left: 30px; font-size: 34px; }
.ap-tile-steps { min-height: 460px; background: linear-gradient(180deg, #ffc65a 0%, #ffbb3f 100%); color: #2b1433; justify-content: flex-start; }
.ap-tile-steps img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
}
.ap-tile-steps > div { position: relative; z-index: 1; }
.ap-tile-steps p { color: rgba(43, 20, 51, 0.75); max-width: 30ch; }
.ap-tile-raspberry { background: linear-gradient(150deg, var(--raspberry-2), var(--raspberry)); color: #fff; }
.ap-tile-raspberry p { color: rgba(255, 255, 255, 0.85); }
.ap-tile-plum { background: var(--plum); color: #fff3e2; }
.ap-tile-plum p { color: rgba(255, 243, 226, 0.72); }
.ap-tile-plum [data-lucide] { color: var(--mango); }
.ap-tile-lavender { background: linear-gradient(150deg, var(--lavender-2), var(--lavender)); color: #fff; }
.ap-tile-lavender p { color: rgba(255, 255, 255, 0.86); }
.ap-tile-cream { background: var(--card); border: 1px solid var(--line); color: var(--text); }
.ap-tile-cream [data-lucide] { color: var(--raspberry); }
.ap-tile-cream p { color: var(--text-2); }
@media (min-width: 700px) {
  .ap-bento { grid-template-columns: repeat(2, 1fr); }
  .ap-tile-steps { grid-row: span 2; min-height: 0; }
}
@media (min-width: 1000px) {
  .ap-bento { grid-template-columns: 1.2fr 1fr 1fr; grid-auto-rows: 260px; }
  .ap-tile-steps { grid-row: span 2; }
}
@media (prefers-reduced-motion: no-preference) {
  .ap-tile { transition: transform 0.4s var(--ease); }
  .ap-tile:hover { transform: translateY(-4px); }
}

/* -------- Финал: скачать -------- */
.ap-final {
  overflow: hidden; text-align: center; color: #fff3e2;
  background: radial-gradient(100% 70% at 50% 100%, #3d1a45 0%, var(--plum-deep) 65%);
}
.ap-final .ap-glow { inset: auto 0 -30%; height: 80%; }
.ap-final-in { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.ap-final-icon { width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 26px; box-shadow: 0 30px 60px -20px rgba(217, 22, 111, 0.7); }
.ap-final h2 { color: #fff3e2; }
.ap-cta-center { justify-content: center; }
.ap-steps {
  display: grid; gap: 12px; margin: 56px 0 0; padding: 0; list-style: none; text-align: left;
}
@media (min-width: 760px) { .ap-steps { grid-template-columns: repeat(3, 1fr); } }
.ap-steps li {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px;
  border-radius: 22px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.09);
}
.ap-steps b {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--fill); color: #fff; font-weight: 800;
}
.ap-steps span { font-size: 15px; line-height: 1.45; color: rgba(255, 243, 226, 0.82); }
.ap-news {
  margin-top: 28px; padding: 22px 24px; border-radius: 22px; text-align: left;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
}
.ap-news .ap-eyebrow { margin-bottom: 8px; color: var(--mango); }
.ap-news ul { margin: 0; padding-left: 20px; }
.ap-news li { font-size: 15px; line-height: 1.55; color: rgba(255, 243, 226, 0.78); }
.ap-news li::marker { color: var(--raspberry-2); }

/* -------- Вопросы -------- */
.ap-faq { max-width: 820px; margin: 0 auto; }
.ap-faq h2 { margin-bottom: 28px; }
.ap-faq details { border-bottom: 1px solid var(--line); }
.ap-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 19px; font-weight: 800; color: var(--text);
}
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary [data-lucide] { flex: none; font-size: 22px; color: var(--raspberry); transition: transform 0.3s var(--ease); }
.ap-faq details[open] summary [data-lucide] { transform: rotate(45deg); }
.ap-faq details p { padding: 0 0 22px; font-size: 17px; }

/* -------- Подвал -------- */
.ap-footer { padding: 36px 16px 48px; background: var(--bg-2); text-align: center; font-size: 14px; color: var(--text-2); }
.ap-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-bottom: 14px; }
.ap-footer-links a { font-weight: 700; color: var(--text); }
.ap-footer-links a:hover { color: var(--raspberry); }
.ap-footer-copy { font-size: 12.5px; opacity: 0.8; }

@media (max-width: 520px) {
  .ap-sec { padding: 80px 16px; }
  .ap-phone { --w: 256px; }
  .ap-photo-card { border-radius: 30px; padding: 36px 22px 0; min-height: 0; }
  .ap-phone-photo { --w: 244px; margin-bottom: -110px; }
  .ap-tile { padding: 26px; border-radius: 28px; }
}
