/*
 * Сайт GalleryGo: лендинг, помощь, политика и условия.
 * Структура — как у сайта FinSnap (герой с телефоном, бенто, шаги, цены, CTA, юридические
 * карточки), стиль — приложения: чёрный фон, стеклянные поверхности, пилюли, лёгкий SF Pro,
 * зелёный акцент. Значения токенов — из docs/design/tokens.md (app/src/theme/theme.ts).
 */
:root {
  --bg: #050505;
  --bg-raised: #0d0d0c;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-active: rgba(255, 255, 255, 0.1);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --hairline: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.15);
  --text: #ffffff;
  --text-brand: rgba(255, 255, 255, 0.94);
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --accent: #86fca8;
  --accent-strong: #38b673;
  --accent-fill: #5aae73;
  --accent-dot: #4cffa0;
  --accent-glow: rgba(50, 176, 109, 0.28);
  --glass: #cbcbcb;
  --on-light: #000000;
  --icon: #b2b2b2;

  --radius-pill: 999px;
  --radius-card: 32px;
  --radius-panel: 48px;
  --radius-input: 28px;

  --shadow-button: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 24px 80px rgba(0, 0, 0, 0.45);

  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", "Noto Serif", "Hiragino Mincho ProN", "AppleMyungjo", "Nanum Myeongjo", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: Menlo, ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --green: #4cffa0;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1120px;
  --gutter: 24px;
}

/* ─── Шрифты ───────────────────────────────────────────────────────────── */
/*
 * Свои файлы, без внешних CDN (OFL, лицензии рядом в /fonts). Inter — переменный 300–500,
 * Instrument Serif — заголовки макета; у него нет кириллицы и иероглифов, там — системный шрифт с засечками.
 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(/fonts/inter-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: "Inter";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url(/fonts/inter-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/instrument-serif-400-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: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/instrument-serif-400-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/instrument-serif-400-italic-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: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/instrument-serif-400-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/*
 * Кириллица: у Instrument Serif её нет. Oranienbaum — узкая контрастная антиква той же породы (OFL).
 * Для русского вся антиква — Oranienbaum, и латиница внутри строки («iPhone») тоже: два шрифта в одной
 * строке смотрелись бы заплаткой. Курсива у Oranienbaum нет — браузер наклоняет прямой.
 */
@font-face {
  font-family: "Oranienbaum";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/oranienbaum-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Oranienbaum";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/oranienbaum-latin-400-normal.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: "Oranienbaum";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/oranienbaum-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
html:lang(ru) { --serif: "Oranienbaum", "Instrument Serif", "Iowan Old Style", "Times New Roman", "Noto Serif", serif; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

/* Японский и корейский: переносим по фразам, а не посреди слова (где браузер умеет). */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { word-break: auto-phrase; }
:lang(ko) { word-break: keep-all; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 12px;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--glass);
  color: var(--on-light);
  font-weight: 500;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ─── Шапка ─────────────────────────────────────────────────────────────── */

/*
 * Шапка по макету: плавающая «таблетка» 896 × 60 в 16 px от верха, стекло поверх страницы.
 * Закреплена (fixed) и в поток не входит — отступ под неё дают первые экраны (`--header-space`).
 */
:root { --header-space: 76px; }

.site-header {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 50;
  pointer-events: none;
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 896px;
  height: 60px;
  margin: 0 auto;
  padding: 0 8px 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  background: rgba(10, 10, 10, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

/* Логотип 40 × 40 + 8 + вордмарк. Картинка 64 × 64 — кольцо 40 и свечение вокруг, оно выходит за рамку. */
.header-brand { display: flex; align-items: center; gap: 8px; height: 44px; flex: none; }
.header-brand:hover { text-decoration: none; }
.header-brand img { width: 64px; height: 64px; margin: -12px; max-width: none; }
.header-brand .wordmark { font-size: 24px; font-weight: 274; line-height: 44px; letter-spacing: -0.5px; white-space: nowrap; }

.header-nav,
.header-cta,
.menu-links { font-family: "Inter", var(--font); font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: 0; }

/* Разделы — ровно по центру «таблетки», как в макете. */
.header-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  display: none;
  gap: 32px;
  transform: translate(-50%, -50%);
}
.header-nav a { color: rgba(255, 255, 255, 0.7); white-space: nowrap; transition: color 0.2s; }
.header-nav a:hover { color: var(--text); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: #000000;
  white-space: nowrap;
  transition: background 0.2s;
}
.header-cta svg { width: 24px; height: 24px; flex: none; }
.header-cta:hover { background: #e6e6e6; text-decoration: none; }
.header-cta:focus-visible,
.header-nav a:focus-visible,
.header-menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.header-menu { position: relative; }
.header-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: background 0.2s;
}
.header-menu summary::-webkit-details-marker { display: none; }
.header-menu summary:hover,
.header-menu[open] summary { background: var(--surface-active); }
.header-menu summary svg { width: 20px; height: 20px; }
.menu-panel {
  position: absolute;
  right: -8px;
  top: calc(100% + 18px);
  display: grid;
  gap: 6px;
  width: min(280px, calc(100vw - 32px));
  padding: 6px;
  border-radius: 28px;
  /* Сплошной фон: внутри «таблетки» со стеклом второй backdrop-filter не работает и меню просвечивало бы. */
  background: #141414;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.menu-links { display: grid; }
.menu-links a { padding: 12px 16px; border-radius: 22px; color: var(--text); }
.menu-links a:hover { background: var(--surface); text-decoration: none; }
/* Языки в меню — тот же список, что в подвале, но встроенный. */
.menu-panel .lang-list { position: static; min-width: 0; padding: 6px 0 0; border: 0; border-top: 1px solid var(--hairline); border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

@media (min-width: 768px) {
  .header-nav { display: flex; }
  .header-menu { display: none; }
}
@media (max-width: 479px) {
  .site-header { top: 12px; left: 12px; right: 12px; }
  :root { --header-space: 72px; }
}
/* Узкие экраны: сначала уходит значок в кнопке, на самых узких — и вордмарк. */
@media (max-width: 389px) {
  .header-cta { padding: 8px 20px; }
  .header-cta svg { display: none; }
}
@media (max-width: 359px) {
  .header-brand .wordmark { display: none; }
  .header-cta { padding: 8px 16px; }
}

/* Язык — в подвале: выпадающий список без скриптов (<details>), названия на своём языке. */
.lang { position: relative; }
.lang summary {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 0.5px solid var(--hairline);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s, color 0.2s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--surface-active); color: var(--text); }
.lang summary svg { width: 16px; height: 16px; }
.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  display: grid;
  min-width: 200px;
  padding: 6px;
  border-radius: 24px;
  background: rgba(20, 20, 20, 0.97);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 0.5px solid var(--border);
  box-shadow: var(--shadow-card);
}
.lang-up .lang-list { top: auto; bottom: calc(100% + 8px); }
.lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 18px;
  color: var(--text-secondary);
  font-size: 15px;
}
.lang-list a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.lang-list a.current { background: var(--surface-active); color: var(--text); }
.lang-list .code { color: var(--text-tertiary); font-size: 12px; font-weight: 500; letter-spacing: 0.4px; text-transform: uppercase; }

/* Подвал: логотип 28. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-brand);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.5px;
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand span { white-space: nowrap; }

/* ─── Кнопки ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, opacity 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 0.9; }

/* Стеклянная светлая кнопка, как «Sign in with Apple» в приложении. */
.btn-glass {
  background: linear-gradient(180deg, #dcdcdc 0%, var(--glass) 100%);
  color: var(--on-light);
  box-shadow: var(--shadow-button), inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}
.btn-glass:hover { box-shadow: 0 12px 48px rgba(134, 252, 168, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.65); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 0.5px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-active); }

.btn svg { width: 22px; height: 22px; flex: none; }

/* ─── Появление при прокрутке ───────────────────────────────────────────── */
/* Без JS всё видно сразу: класс `js` ставит /js/site.js. */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }
.js .reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-chip, .orb { animation: none !important; }
}

/* Фон из приложения (PhotoBackdrop): сетка фото слоем 20 % поверх чёрного, проявляется сверху
   и гаснет к низу. Размытие уже в картинке (images/backdrop.webp) — без filter: blur на странице. */
.photo-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
  background: url("/images/backdrop.webp") center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 65%, transparent);
  mask-image: linear-gradient(transparent, #000 30%, #000 65%, transparent);
}


.wordmark { color: var(--text-brand); font-size: 24px; font-weight: 300; letter-spacing: -0.5px; line-height: 1.4; }
.wordmark span { color: var(--accent); }

/* ─── Вопросы ───────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }

.faq-item {
  border-radius: 28px;
  background: var(--surface);
  border: 0.5px solid var(--hairline);
  transition: background 0.25s, border-color 0.25s;
}
.faq-item[open] { background: var(--surface-active); border-color: var(--border); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.3px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 1.5px;
  border-radius: 1px;
  background: var(--text);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 24px 22px; color: var(--text-secondary); font-size: 16px; font-weight: 300; }
.faq-answer p { margin: 0; }
.faq-answer p + p { margin-top: 10px; }

.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { max-width: 820px; margin: 0 auto 18px; font-size: 26px; font-weight: 300; letter-spacing: -0.5px; }

.faq-more { margin-top: 32px; text-align: center; }

/* ─── Главная по макету ─────────────────────────────────────────────────── */
/*
 * Сетка макета 1440: секции с отступом 80 по краям, внутри колонка 1280 с полями 96.
 * Заголовки — Instrument Serif, текст — Inter, подписи — моноширинный (Menlo).
 */

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 6.67vw, 96px); }

.mono-label {
  display: block;
  margin: 0 0 64px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-align: center;
  text-transform: uppercase;
}
.mono-label-left { margin: 0; color: rgba(255, 255, 255, 0.5); font-size: 14px; line-height: 20px; letter-spacing: 1.4px; text-align: left; }

/* Мягкое цветное пятно за секцией. */
.glow-spot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.02;
  filter: blur(100px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Пилюли героя. */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 32px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.pill:hover { text-decoration: none; transform: translateY(-1px); }
.pill-light { background: #ffffff; color: #000000; box-shadow: 0 0 40px rgba(255, 255, 255, 0.15); }
.pill-light:hover { box-shadow: 0 0 56px rgba(255, 255, 255, 0.25); }
.pill-outline { border: 1px solid rgba(255, 255, 255, 0.2); color: #ffffff; }
.pill-outline:hover { background: rgba(255, 255, 255, 0.06); }

/* Герой: стена фотографий (если есть), поверх — затемнение к краям и к низу. */
.home-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(640px, 100svh, 900px);
  padding: calc(var(--header-space) + 20px) 16px 48px;
  overflow: hidden;
}
.home-hero-bg { position: absolute; inset: 0; z-index: -1; opacity: 0.6; }
.home-hero-bg::before,
.home-hero-bg::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.home-hero-bg::before { background: linear-gradient(180deg, rgba(5, 5, 5, 0.4) 0%, rgba(5, 5, 5, 0.1) 50%, #050505 100%); }
.home-hero-bg::after { background: radial-gradient(70.71% 70.71% at 50% 50%, rgba(5, 5, 5, 0) 20%, #050505 90%); }
.home-hero-image {
  position: absolute;
  left: 50%;
  top: calc(50% - 97px);
  width: 1459px;
  max-width: none;
  height: 514px;
  object-fit: cover;
  transform: translate(-50%, -50%);
  mix-blend-mode: color-burn;
  z-index: 2;
}
.home-hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.home-hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 2.8vw, 40px);
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 115.2px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #ffffff;
  mix-blend-mode: difference;
}
.home-hero-title em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  /* Как в макете: первое слово приглушено, дальше строка светлеет до белого. */
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0%, #ffffff 30%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-hero-subtitle {
  max-width: 708px;
  margin: 32px 0 0;
  padding: 0 33px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--sans);
  font-size: clamp(18px, 1.67vw, 24px);
  font-weight: 300;
  line-height: 1.625;
  letter-spacing: 0;
  mix-blend-mode: difference;
}
.home-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }

/* Манифест. */
.manifesto { padding: clamp(96px, 13.3vw, 192px) clamp(20px, 13.3vw, 192px); border-top: 1px solid rgba(255, 255, 255, 0.05); }
.manifesto p {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1056px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(30px, 4.17vw, 60px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-align: center;
}
.manifesto p span { text-wrap: balance; }
.manifesto p span:first-child { max-width: 989px; }
.manifesto p span:last-child { max-width: 760px; }

/*
 * Приложение в телефоне — по коду приложения (app/src/app/*, components, theme.ts), в точках iPhone 430 pt.
 * Рамка 384 × 838 с бортом 6 со всех сторон: экран 372 × 826, то есть 430 × 955 pt × 0,8651 (экран
 * чуть выше макета приложения, 955 вместо 932, — как у iPhone Pro Max).
 * Сценарии по кругу ведёт js/showcase.js: он включает слои (`data-pane` + `is-on`) и состояния.
 */
.showcase { display: flex; justify-content: center; padding: 0 16px clamp(48px, 6vw, 96px); }
.phone {
  --app-scale: 0.86512;
  position: relative;
  width: 384px;
  height: 838px;
  flex: none;
  overflow: hidden;
  border: 6px solid #414141;
  border-radius: 56px;
  background: #0d0d0c;
}
.app {
  position: absolute;
  left: 0;
  top: 0;
  width: 430px;
  height: 955px;
  overflow: hidden;
  background: #000000;
  color: #ffffff;
  font-family: var(--font);
  letter-spacing: 0;
  transform: scale(var(--app-scale));
  transform-origin: 0 0;
  -webkit-font-smoothing: antialiased;
}
.app p { margin: 0; }

/* Слои: выключенный не виден и не ловит события; смена — кросс-фейд, как смена экрана в приложении. */
.app [data-pane] { transition: opacity 0.35s ease, visibility 0s linear 0s; }
.app [data-pane]:not(.is-on) { opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0s linear 0.35s; }
.app-screen { position: absolute; inset: 0; background: #000000; }

/* ─── 04 · Результаты ─── */
.app-results { background: #0d0d0c; transform-origin: 50% 0; transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), border-radius 0.45s, filter 0.45s; }
/* Шторка поиска открыта — результаты уходят назад, как в iOS. */
.app.sheet-open .app-results { overflow: hidden; border-radius: 40px; filter: brightness(0.55); transform: translateY(14px) scale(0.93); }

/* Пятна внизу экрана (GlowSpots): r 100, blur 50, под списком. */
.app-glow i { position: absolute; width: 200px; height: 200px; border-radius: 50%; background: rgba(50, 176, 109, 0.1); filter: blur(25px); }
.app-glow i:first-child { left: -70px; top: calc(955px - 242px - 100px); }
.app-glow i:last-child { left: 315px; top: calc(955px - 172px - 100px); }

/* Чёрная панель: шапка с «Aurora» и категории, снизу скругление 48. */
.app-panel { position: relative; padding: 0 16px 16px; border-radius: 0 0 48px 48px; background: #000000; }
.app-aurora { position: absolute; left: 0; top: 0; width: 430px; height: 263px; pointer-events: none; }
.app-intro { position: relative; display: flex; flex-direction: column; gap: 4px; width: 354px; margin: 0 auto; padding: 141px 0 48px; text-align: center; }
.app-title { color: rgba(255, 255, 255, 0.94); font-size: 24px; font-weight: 300; line-height: 44px; letter-spacing: -0.5px; }
.app-body { color: rgba(255, 255, 255, 0.7); font-size: 16px; font-weight: 300; line-height: 26px; letter-spacing: -0.5px; }

.app-rows { position: relative; display: flex; flex-direction: column; gap: 12px; }
.app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 68px;
  padding: 0 16px;
  border: 0.5px solid transparent;
  border-radius: 56px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.app-row.on { border-color: rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.1); color: #ffffff; }
.app-row-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.app-row-icon { width: 24px; height: 24px; flex: none; }
.app-row-text { display: flex; flex-direction: column; min-width: 0; }
.app-row-title { overflow: hidden; font-size: 16px; font-weight: 300; line-height: 26px; letter-spacing: -0.5px; text-overflow: ellipsis; white-space: nowrap; }
.app-row-meta { display: flex; gap: 4px; color: rgba(255, 255, 255, 0.7); font-size: 14px; font-weight: 300; line-height: 26px; letter-spacing: -0.5px; white-space: nowrap; }
.app-row-meta b { color: rgba(255, 255, 255, 0.5); font-weight: 300; }
.app-row-right { display: flex; align-items: center; gap: 16px; flex: none; }
.app-chevron { width: 24px; height: 24px; color: #ffffff; }
.app-chevron-up { transform: rotate(180deg); }

/* Нативный свитч iOS 26: 64 × 28, ручка-пилюля; включён — accentStrong. */
.app-switch { position: relative; width: 64px; height: 28px; border-radius: 14px; background: rgba(120, 120, 128, 0.36); transition: background-color 0.25s; }
.app-switch i { position: absolute; left: 2px; top: 2px; width: 39px; height: 24px; border-radius: 12px; background: #ffffff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); transition: left 0.25s cubic-bezier(0.3, 0.7, 0.3, 1); }
.app-row.on .app-switch, .app-card .app-switch { background: #38b673; }
.app-row.on .app-switch i, .app-card .app-switch i { left: 23px; }

/* Экран появился после скана: шапка и строки поднимаются по очереди. */
.app-results.entering .app-intro, .app-results.entering .app-row, .app-results.entering .app-promo { animation: app-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.app-results.entering .app-row:nth-child(1) { animation-delay: 0.08s; }
.app-results.entering .app-row:nth-child(2) { animation-delay: 0.14s; }
.app-results.entering .app-row:nth-child(3) { animation-delay: 0.2s; }
.app-results.entering .app-row:nth-child(4) { animation-delay: 0.26s; }
.app-results.entering .app-promo { animation-delay: 0.34s; }
@keyframes app-rise { from { opacity: 0; transform: translateY(10px); } }

/* «Or ask AI» под панелью: логотип 53, 20/28 и 14/26. Привязано к низу: длинный перевод
   растёт вверх, в запас над панелью. Выбрано что-то — на том же месте «Выбрано N» (AskAiPromo). */
.app-promo { position: absolute; left: 0; right: 0; bottom: 166px; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 354px; margin: 0 auto; text-align: center; }
.app-promo img { width: 53px; height: 53px; }
.app-promo-text { position: relative; align-self: stretch; }
.app-promo-ask, .app-promo-selected { display: flex; flex-direction: column; gap: 4px; transition: opacity 0.25s; }
.app-promo-selected { position: absolute; left: 0; right: 0; top: 0; opacity: 0; }
.app.has-selection .app-promo-ask { opacity: 0; }
.app.has-selection .app-promo-selected { opacity: 1; }
.app-promo-title { max-width: 300px; margin: 0 auto !important; padding: 9px 0; color: rgba(255, 255, 255, 0.94); font-size: 20px; font-weight: 300; line-height: 26px; letter-spacing: -0.5px; text-wrap: balance; }
.app-promo-hint { color: rgba(255, 255, 255, 0.7); font-size: 14px; font-weight: 300; line-height: 20px; letter-spacing: -0.5px; }

/* Статус-бар и прозрачный нативный заголовок (top 62, h 44). */
.app-statusbar { position: absolute; left: 0; right: 0; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 4px 34px 0 52px; font-size: 17px; font-weight: 600; }
.app-island { position: absolute; left: 50%; top: 11px; width: 126px; height: 37px; border-radius: 19px; background: #000000; transform: translateX(-50%); }
.app-status-icons { display: flex; align-items: center; gap: 6px; }
.app-status-icons svg { height: 12px; width: auto; }
.app-status-icons .app-battery { height: 13px; }
.app-nav { position: absolute; left: 0; right: 0; top: 62px; display: flex; align-items: center; justify-content: center; height: 44px; }
.app-nav-title { font-size: 17px; font-weight: 600; }
.app-back { position: absolute; left: 16px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.25); }
.app-back svg { width: 22px; height: 22px; }

/* Низ: затемнение 114 под полем или «Удалить». */
.app-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 114px; background: linear-gradient(rgba(0, 0, 0, 0), #000000); }

/* Кнопки (GlassButton, фолбэк стекла): 56, текст 17/500, иконка 24. На зелёном — чёрный (onAccent). */
.app-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 56px;
  padding: 0 20px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-size: 17px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.25s;
}
.app-button span { overflow: hidden; text-overflow: ellipsis; }
.app-button svg { width: 24px; height: 24px; flex: none; }
.app-button.accent { background: #5aae73; color: #000000; }
.app-button.light { background: #cbcbcb; color: #000000; }
.app-button.muted { background: #969696; color: #1a1a1a; }
.app-button.pressed { transform: scale(0.96); }

/* «Удалить» — на месте поля, в 24 от краёв (04 · C): есть только пока что-то выбрано. */
.app-remove { position: absolute; left: 24px; right: 24px; bottom: 34px; opacity: 0; visibility: hidden; }
.app.has-selection .app-remove { opacity: 1; visibility: visible; }

/* Поле Ask AI: 48, радиус 28; в фокусе светлее и над клавиатурой. */
.app-field {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 8px 0 16px;
  border: 0.5px solid #222222;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 15px;
  line-height: 20px;
  transition: opacity 0.35s ease, visibility 0s linear 0s, bottom 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s;
}
.app-field.focused { bottom: 352px; background: rgba(255, 255, 255, 0.15); }
.app-field-text { display: flex; align-items: center; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.app-field.overflowing .app-field-text { justify-content: flex-end; }
.app-typed { flex: none; }
.app-placeholder { overflow: hidden; color: rgba(255, 255, 255, 0.4); text-overflow: ellipsis; }
.app-field.has-text .app-placeholder { display: none; }
.app-typed { color: #ffffff; }
.app-caret { display: none; width: 2px; height: 20px; margin-left: 1px; border-radius: 1px; background: #ffffff; animation: app-blink 1s steps(1) infinite; }
.app-field.focused .app-caret { display: block; }
.app-field.has-text .app-caret { order: 0; }
@keyframes app-blink { 50% { opacity: 0; } }
.app-icon-button { display: flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 50%; transition: background-color 0.2s, color 0.2s; }
.app-icon-button svg { width: 16px; height: 16px; }
.app-mic { background: #4d4d4d; color: #ffffff; }
.app-send { background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.2); }
.app-field.has-text .app-send { background: #38b673; color: #000000; }
.app-spinner { display: none; flex: none; width: 32px; height: 32px; }
.app-spinner::after { content: ""; display: block; width: 20px; height: 20px; margin: 6px; border-radius: 50%; background: conic-gradient(rgba(255, 255, 255, 0), #ffffff); -webkit-mask: radial-gradient(circle, transparent 6.5px, #000 7px); mask: radial-gradient(circle, transparent 6.5px, #000 7px); animation: app-spin 0.8s linear infinite; }
.app-field.loading .app-mic, .app-field.loading .app-send { display: none; }
.app-field.loading .app-spinner { display: block; }
@keyframes app-spin { to { transform: rotate(360deg); } }

/* Затемнение 0.7, пока поле в фокусе (DimOverlay), и тёмная клавиатура iOS. */
.app-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); }
.app-keyboard {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 336px;
  padding: 10px 3px 0;
  border-radius: 28px 28px 0 0;
  background: rgba(38, 38, 40, 0.96);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0s;
}
.app-keyboard:not(.is-on) { opacity: 1; transform: translateY(100%); transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.32s; }
.kb-row { display: flex; gap: 6px; padding: 0 3px; }
.kb-row i { flex: 1; height: 42px; border-radius: 9px; background: #6c6c70; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.kb-indent { padding: 0 22px; }
.kb-row .kb-wide { flex: 1.35; background: #464649; }
.kb-row .kb-space { flex: 5; }
.kb-row .kb-return { flex: 2.1; background: #464649; }

/* ─── 03 · Скан и 08 · Удаление (ScanProgressView) ─── */
.app-backdrop { position: absolute; left: 0; top: 0; width: 430px; height: 586px; pointer-events: none; }
.app-backdrop-short { height: 319px; }
.app-progress-body { position: absolute; left: 24px; right: 24px; top: 213px; display: flex; flex-direction: column; }
.app-orb { position: relative; align-self: center; width: 168px; height: 168px; }
.app-orb canvas { position: absolute; left: -120px; top: -120px; width: 408px; height: 408px; }
.app-orb-glow { position: absolute; inset: 0; border-radius: 50%; background: #1e5b4b; filter: blur(58px); }
.app-flame canvas { left: -131px; top: -147px; width: 430px; height: 462px; filter: drop-shadow(0 0 3px rgba(255, 196, 120, 0.9)) drop-shadow(0 0 14px rgba(240, 140, 50, 0.75)) drop-shadow(0 0 48px rgba(200, 90, 20, 0.6)); }
.app-progress-title { margin-top: 23px !important; overflow: hidden; padding: 7px 0; color: rgba(255, 255, 255, 0.94); font-size: 24px; font-weight: 300; line-height: 30px; letter-spacing: -0.5px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.app-status { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 26px; margin-top: 8px !important; color: rgba(255, 255, 255, 0.7); font-size: 16px; font-weight: 300; line-height: 26px; letter-spacing: -0.5px; white-space: nowrap; }
.app-status i { flex: none; width: 4px; height: 4px; border-radius: 2px; background: #4cffa0; }
.app-status span { transition: opacity 0.2s; }
.app-status span.swap { opacity: 0; }
.app-bar { display: flex; align-items: center; height: 4px; margin-top: 50px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, 0.1); }
.app-bar i { width: 0; height: 2px; border-radius: 1px; background: #ffffff; }
.app-chips { display: flex; gap: 8px; margin: 20px -24px 0 0; overflow: hidden; }
.app-chip { display: flex; align-items: center; flex: none; gap: 8px; height: 43px; padding: 0 16px; border: 0.5px solid rgba(255, 255, 255, 0.1); border-radius: 32px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.7); font-size: 14px; font-weight: 300; line-height: 20px; letter-spacing: -0.5px; white-space: nowrap; opacity: 0; transform: translateX(8px); transition: opacity 0.25s, transform 0.25s; }
.app-chip svg { width: 18px; height: 18px; color: #b2b2b2; }
.app-chip b { color: #ffffff; font-weight: 300; }
.app-chip.shown { opacity: 1; transform: none; }
.app-bottom-button { position: absolute; left: 24px; right: 24px; bottom: 58px; }

/* ─── 09 · Готово (StatusScreen): место анимации пустое, текст и две кнопки ─── */
.app-done-body { position: absolute; left: 38px; right: 38px; top: 404px; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.app-done-text { color: rgba(255, 255, 255, 0.7); font-size: 16px; font-weight: 300; line-height: 26px; letter-spacing: -0.5px; }
.app-done-actions { position: absolute; left: 24px; right: 24px; bottom: 58px; display: flex; flex-direction: column; gap: 12px; }

/* ─── 05–06 · Шторка ИИ-поиска ─── */
.app-sheet {
  position: absolute;
  left: 0;
  right: 0;
  top: 68px;
  bottom: 0;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px 40px 0 0;
  background: #000000;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0s;
}
.app-sheet:not(.is-on) { opacity: 1; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.6, 1), visibility 0s linear 0.4s; }
.app-sheet.dragging { transition: none; }
/* Ручка шторки (sheetGrabberVisible): 36 × 5 сверху по центру. */
.app-grabber { position: absolute; z-index: 1; left: 50%; top: 5px; width: 36px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); transform: translateX(-50%); }
.app-sheet-pane { position: absolute; inset: 0; }
.app-sheet-progress { position: absolute; left: 24px; right: 24px; top: 48px; display: flex; flex-direction: column; }
.app-sheet-progress .app-progress-title { margin-top: 32px !important; }
.app-sheet-button { position: absolute; left: 24px; right: 24px; bottom: 42px; }
.app-sheet-header { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 71px 38px 32px; text-align: center; }
.app-card { position: relative; margin: 0 16px; padding-bottom: 16px; border: 0.5px solid rgba(255, 255, 255, 0.15); border-radius: 32px; background: rgba(255, 255, 255, 0.1); }
.app-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 16px; }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; padding: 0 16px; }
.app-grid .app-tile:nth-child(1) { border-top-left-radius: 16px; }
.app-grid .app-tile:nth-child(4) { border-top-right-radius: 16px; }
.app-grid .app-tile:nth-child(9) { border-bottom-left-radius: 16px; }
.app-grid .app-tile:nth-child(12) { border-bottom-right-radius: 16px; }
.app-sheet-pane.is-on .app-tile { animation: app-tile 0.4s ease both; }
.app-sheet-pane.is-on .app-tile:nth-child(4n + 2) { animation-delay: 0.05s; }
.app-sheet-pane.is-on .app-tile:nth-child(4n + 3) { animation-delay: 0.1s; }
.app-sheet-pane.is-on .app-tile:nth-child(4n) { animation-delay: 0.15s; }
@keyframes app-tile { from { opacity: 0; } }

/* Превью «скриншота переписки»: схема чата, свои и чужие сообщения; отметка выбора (SelectMark). */
.app-tile { position: relative; display: flex; flex-direction: column; gap: 5px; aspect-ratio: 1; padding: 8px 7px; overflow: hidden; }
.app-tile i { display: block; height: 9px; border-radius: 5px; }
.app-tile i.me { align-self: flex-end; }
.chat-dark { background: #0f0f10; }
.chat-dark i { background: #2c2c2e; }
.chat-light { background: #f2f2f7; }
.chat-light i { background: #dedee3; }
.app-tile i.me { background: #0a84ff; }
.app-tile .w1 { width: 34%; }
.app-tile .w2 { width: 46%; }
.app-tile .w3 { width: 56%; }
.app-tile .w4 { width: 66%; }
.app-tile .w5 { width: 76%; }
.app-mark { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: #38b673; box-shadow: 0 0 2px rgba(0, 0, 0, 0.55); }
.app-mark::after { content: ""; position: absolute; left: 8px; top: 4.5px; width: 6px; height: 11px; border: solid #000000; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }

/* Касание пальца — как «Показывать касания» при записи экрана. */
.app-touch { position: absolute; z-index: 6; left: 0; top: 0; width: 54px; height: 54px; margin: -27px 0 0 -27px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; background: rgba(255, 255, 255, 0.3); opacity: 0; pointer-events: none; transform: scale(0.7); transition: opacity 0.18s, transform 0.18s; }
.app-touch.down { opacity: 1; transform: scale(1); }
.app-touch.moving { transition: opacity 0.18s, transform 0.18s, left 0.5s cubic-bezier(0.4, 0, 0.6, 1), top 0.5s cubic-bezier(0.4, 0, 0.6, 1); }

.app-home-indicator { position: absolute; z-index: 5; left: 50%; bottom: 8px; width: 140px; height: 5px; border-radius: 3px; background: #ffffff; transform: translateX(-50%); }

/* Узкие экраны: телефон уменьшается целиком. */
@media (max-width: 419px) { .phone { zoom: 0.88; } }
@media (max-width: 359px) { .phone { zoom: 0.78; } }

/* Возможности: три высокие карточки. */
.services { position: relative; isolation: isolate; padding: clamp(96px, 13.3vw, 192px) 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); overflow: hidden; }
.services-inner { position: relative; max-width: 1400px; margin: 0 auto; padding: 0 clamp(0px, 3.33vw, 48px); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-card {
  position: relative;
  min-height: 675px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: #0a0a0a;
}
.service-card::before {
  content: "";
  position: absolute;
  left: -127px;
  top: -127px;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.03;
  filter: blur(50px);
}
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%); }
.service-card > * { position: relative; z-index: 1; }
.service-number { position: absolute; left: 32px; top: 32px; color: rgba(255, 255, 255, 0.05); font-family: var(--serif); font-size: 60px; line-height: 60px; }
.service-icon { position: absolute; right: 32px; top: 32px; width: 32px; height: 32px; color: rgba(255, 255, 255, 0.2); }
.service-body { position: absolute; left: 32px; right: 32px; bottom: 40px; display: flex; flex-direction: column; gap: 24px; }
.service-body h3 { margin: 0; font-family: var(--serif); font-size: clamp(36px, 3.33vw, 48px); font-weight: 400; line-height: 1.25; letter-spacing: -0.02em; }
.service-body p { margin: 0; padding-top: 24px; border-top: 0.5px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.5); font-family: var(--sans); font-size: 16px; font-weight: 400; line-height: 26px; letter-spacing: 0; }
/*
 * Широкая вёрстка: заголовки и линии трёх карточек на одной высоте, даже если заголовок где-то
 * в две строки, а текст — в четыре (длинные языки). Строки карточек — общие (subgrid): заголовок
 * прижат к линии, линия — на одной высоте у всех.
 */
@media (min-width: 1101px) {
  .service-grid { grid-template-rows: minmax(0, 1fr) auto auto; min-height: 675px; row-gap: 0; }
  .service-card { display: grid; grid-row: span 3; grid-template-rows: subgrid; min-height: 0; padding: 0 32px 40px; }
  .service-body { display: contents; }
  .service-body h3, .service-body p { position: relative; z-index: 1; }
  .service-body h3 { grid-row: 2; align-self: end; padding-bottom: 24px; }
  .service-body p { grid-row: 3; }
}

/* Заголовок слева, пояснение справа — «Что мы убираем», цены. */
.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; max-width: 1280px; margin: 0 auto; padding: 0 clamp(0px, 6.67vw, 96px); }
.display-title { margin: 0; font-family: var(--serif); font-size: clamp(56px, 6.67vw, 96px); font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.display-title span, .display-title em { display: block; }
.display-title em { font-style: italic; color: rgba(255, 255, 255, 0.5); }
.display-title-sm { max-width: 640px; font-size: clamp(44px, 5vw, 72px); }
.split-text { max-width: 367px; margin: 0; padding: 0 20px 8px 0; color: rgba(255, 255, 255, 0.5); font-family: var(--sans); font-size: 18px; font-weight: 400; line-height: 29px; letter-spacing: 0; }

.remove, .prices { padding: 128px clamp(20px, 5.56vw, 80px); border-top: 1px solid rgba(255, 255, 255, 0.1); }
/* Как в макете: список начинается в 49 px под отступом и кончается у края секции. */
.remove { padding-bottom: 4px; }
.remove-list { max-width: 1280px; margin: 145px auto 0; padding: 0 clamp(0px, 6.67vw, 96px); list-style: none; }
.remove-list li {
  position: relative;
  display: flex;
  align-items: center;
  padding: 48px 16px;
  transition: background 0.4s var(--ease);
}
.remove-list li + li { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.remove-list li:hover { background: linear-gradient(90deg, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.05) 50%, rgba(59, 130, 246, 0) 100%); }
.remove-n { width: 64px; flex: none; color: rgba(255, 255, 255, 0.5); font-family: var(--mono); font-size: 14px; line-height: 20px; }
.remove-list h3 { flex: 0 1 576px; margin: 0; color: rgba(255, 255, 255, 0.7); font-family: var(--serif); font-size: clamp(34px, 4.17vw, 60px); font-weight: 400; line-height: 1; letter-spacing: -0.02em; transition: color 0.3s; }
.remove-list li:hover h3 { color: #ffffff; }
.remove-list p { width: 352px; flex: none; margin: 0; color: rgba(255, 255, 255, 0.5); font-family: var(--sans); font-size: 18px; font-weight: 300; line-height: 28px; letter-spacing: 0; }

/* Цены — в стиле карточек возможностей. */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1280px; margin: 96px auto 0; padding: 0 clamp(0px, 6.67vw, 96px); }
.price-card { position: relative; overflow: hidden; padding: 40px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; background: #0a0a0a; font-family: var(--sans); letter-spacing: 0; }
.price-card-accent { border-color: rgba(76, 255, 160, 0.25); background: radial-gradient(120% 80% at 0% 0%, rgba(76, 255, 160, 0.06), transparent 60%), #0a0a0a; }
.price-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.price-head h3 { margin: 0; font-family: var(--serif); font-size: 40px; font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
.price-badge { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius-pill); color: rgba(255, 255, 255, 0.5); font-family: var(--mono); font-size: 11px; line-height: 14px; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.price-lead { margin: 16px 0 0; color: rgba(255, 255, 255, 0.5); font-size: 16px; line-height: 26px; }
.price-value { margin: 24px 0 0; color: rgba(255, 255, 255, 0.5); font-family: var(--mono); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; }
.price-value span { margin-right: 6px; color: var(--green); font-family: var(--serif); font-size: 72px; line-height: 1; letter-spacing: -0.02em; text-transform: none; }
.price-list { display: grid; gap: 10px; margin: 28px 0 0; padding: 24px 0 0; border-top: 0.5px solid rgba(255, 255, 255, 0.2); list-style: none; }
.price-list li { position: relative; padding-left: 22px; color: rgba(255, 255, 255, 0.7); font-size: 16px; line-height: 24px; }
.price-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 1px; background: var(--green); }
.packs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.packs li { padding: 8px 14px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-pill); color: #ffffff; font-family: var(--mono); font-size: 13px; }
.packs li span { color: rgba(255, 255, 255, 0.5); }
.price-discount { margin: 24px 0 0; color: var(--green); font-family: var(--mono); font-size: 12px; line-height: 18px; letter-spacing: 1.2px; text-transform: uppercase; }
.price-discount + .packs { margin-top: 12px; }
/* Пакеты с ценами: строка «1 000 файлов · Выгода 50% · $4.99» — цена справа, выгода между. */
.packs-priced { display: grid; gap: 0; }
.packs-priced li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border: 0; border-bottom: 0.5px solid rgba(255, 255, 255, 0.12); border-radius: 0; font-size: 15px; }
.packs-priced li:last-child { border-bottom: 0; }
.packs-priced .pack-files { flex: 1 1 auto; white-space: nowrap; }
.packs-priced .pack-files span { color: rgba(255, 255, 255, 0.5); }
/* `.packs li span` выше красит подписи серым — у цены и выгоды свои цвета. */
.packs-priced .pack-price { color: #ffffff; }
.packs-priced .pack-save { color: var(--green); }
.packs-priced .pack-save-best { color: #000000; font-weight: 600; }
.pack-save { padding: 4px 10px; border: 1px solid rgba(76, 255, 160, 0.3); border-radius: var(--radius-pill); color: var(--green); font-size: 11px; line-height: 14px; letter-spacing: 0.5px; white-space: nowrap; }
.pack-save-best { border-color: transparent; background: var(--green); color: #000000; }
.pack-price { min-width: 72px; color: #ffffff; font-family: var(--serif); font-size: 24px; line-height: 1; letter-spacing: -0.01em; text-align: right; white-space: nowrap; }
.price-note { margin: 20px 0 0; color: rgba(255, 255, 255, 0.5); font-size: 14px; line-height: 22px; }

/* Отзывы (только настоящие): цитата по центру, точки — переход к следующей. */
.reviews { position: relative; isolation: isolate; padding: clamp(96px, 13.3vw, 192px) 0; overflow: hidden; text-align: center; }
.glow-blue { width: min(800px, 56vw); height: 500px; background: rgba(59, 130, 246, 1); opacity: 0.05; }
.review-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.review-track::-webkit-scrollbar { display: none; }
.review { flex: 0 0 100%; margin: 0; padding: 0 clamp(20px, 3.33vw, 48px); scroll-snap-align: center; }
.review blockquote { max-width: 976px; margin: 0 auto 64px; color: rgba(255, 255, 255, 0.9); font-family: var(--serif); font-size: clamp(32px, 4.17vw, 60px); line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.review figcaption { display: flex; flex-direction: column; align-items: center; gap: 12px; font-family: var(--sans); letter-spacing: 0; }
.review-name { color: #ffffff; font-size: 16px; font-weight: 500; line-height: 24px; letter-spacing: 1.6px; text-transform: uppercase; }
.review-role { color: rgba(255, 255, 255, 0.5); font-size: 14px; line-height: 20px; }
.review-dots { display: flex; justify-content: center; gap: 16px; margin-top: 64px; }
.review-dots a { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.review-dots a:first-child, .review-dots a:hover { background: #ffffff; }

/* Цифры: зелёное число, под ним моноширинная подпись. */
.stats { padding: 128px clamp(20px, 5.56vw, 80px); border-top: 1px solid rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: 1280px; margin: 0 auto; padding: 0 clamp(0px, 6.67vw, 96px); }
.stats-grid div { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.stats-grid dd { order: -1; }
.stats-grid dd { margin: 0; color: var(--green); font-family: var(--serif); font-size: clamp(44px, 4.17vw, 60px); line-height: 1; letter-spacing: -0.025em; }
.stats-grid dt { color: rgba(255, 255, 255, 0.5); font-family: var(--mono); font-size: 12px; line-height: 16px; letter-spacing: 1.2px; text-transform: uppercase; }

/* Вопросы на главной: заголовок слева, список справа. */
.home-faq { position: relative; isolation: isolate; padding: 128px clamp(20px, 5.56vw, 80px); border-top: 1px solid rgba(255, 255, 255, 0.1); overflow: hidden; }
.glow-corner { left: auto; right: 0; top: 0; width: 500px; height: 500px; opacity: 0.05; filter: blur(75px); transform: none; }
.home-faq-inner { display: flex; gap: 64px; max-width: 1280px; margin: 0 auto; padding: 0 clamp(0px, 6.67vw, 96px); }
.home-faq-intro { display: flex; flex-direction: column; gap: 24px; width: 341px; flex: none; }
.home-faq-intro h2 { margin: 0; font-family: var(--serif); font-size: 48px; font-weight: 400; line-height: 60px; letter-spacing: -0.02em; }
.home-faq-intro h2 span, .home-faq-intro h2 em { display: block; }
.home-faq-intro h2 em { font-style: italic; color: rgba(255, 255, 255, 0.5); }
.home-faq-intro p { margin: 0; color: rgba(255, 255, 255, 0.5); font-family: var(--sans); font-size: 16px; font-weight: 300; line-height: 24px; letter-spacing: 0; }
.home-faq .faq { flex: 1; max-width: none; gap: 0; margin: 0; }
.home-faq .faq-item { border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0; background: none; }
.home-faq .faq-item[open] { background: none; }
.home-faq .faq-item summary { padding: 32px 0; gap: 24px; color: rgba(255, 255, 255, 0.8); font-family: var(--serif); font-size: 30px; line-height: 36px; letter-spacing: 0; }
.home-faq .faq-toggle { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.05); }
.home-faq .faq-toggle::before, .home-faq .faq-toggle::after { width: 12px; height: 1.67px; }
.home-faq .faq-answer { padding: 0 64px 32px 0; color: rgba(255, 255, 255, 0.6); font-family: var(--sans); font-size: 16px; font-weight: 300; line-height: 26px; letter-spacing: 0; }

/* ─── Подвал ────────────────────────────────────────────────────────────── */

.site-footer { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 96px; padding: 128px clamp(20px, 5.56vw, 80px) 48px; overflow: hidden; font-family: var(--sans); letter-spacing: 0; }
.footer-glow { position: absolute; left: 0; right: 0; bottom: 8px; z-index: -1; height: 400px; background: var(--green); opacity: 0.05; filter: blur(100px); pointer-events: none; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 48px; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(0px, 6.67vw, 96px); }
.footer-cta-title { margin: 0; font-family: var(--serif); font-size: clamp(52px, 7vw, 100.8px); font-weight: 400; line-height: 0.85; letter-spacing: -0.02em; mix-blend-mode: difference; }
.footer-cta-title span, .footer-cta-title em { display: block; }
.footer-cta-title em { font-style: italic; color: rgba(255, 255, 255, 0.5); }
.footer-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 192px;
  height: 192px;
  flex: none;
  padding: 16px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  text-align: center;
  transition: transform 0.4s var(--ease);
}
a.footer-cta-button:hover { text-decoration: none; transform: scale(1.05); }
.footer-cta-button.is-soon { background: rgba(255, 255, 255, 0.92); }

.footer-columns { display: flex; gap: 16px; width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px clamp(0px, 6.67vw, 96px) 0; }
.footer-about { display: flex; flex: 1; flex-direction: column; gap: 22.75px; padding-bottom: 52.75px; }
.footer-brand { display: flex; align-items: center; gap: 8px; height: 44px; }
.footer-brand:hover { text-decoration: none; }
.footer-brand img { width: 64px; height: 64px; margin: -12px; max-width: none; }
.footer-brand .wordmark { font-size: 24px; font-weight: 274; line-height: 44px; letter-spacing: -0.5px; }
.footer-about p { max-width: 320px; margin: 0; color: rgba(255, 255, 255, 0.5); font-size: 14px; line-height: 23px; }
.footer-heading { margin: 0 0 8px; color: var(--green); font-family: var(--mono); font-size: 12px; font-weight: 400; line-height: 16px; letter-spacing: 1.2px; text-transform: uppercase; }
.footer-nav { display: flex; flex-direction: column; gap: 16px; width: 280px; flex: none; }
.footer-nav a { width: fit-content; color: rgba(255, 255, 255, 0.6); font-size: 14px; line-height: 20px; }
.footer-nav a:hover { color: #ffffff; text-decoration: none; }
.footer-support { display: flex; flex-direction: column; gap: 16px; width: 316px; flex: none; }
.footer-support p { margin: 0; color: rgba(255, 255, 255, 0.5); font-size: 14px; line-height: 20px; }
.footer-field {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  margin-top: 8px;
  padding: 0 48px 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 17px;
}
.footer-field span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.footer-field i { position: absolute; right: 7px; top: 50%; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #ffffff; color: #000000; font-size: 16px; font-style: normal; transform: translateY(-50%); }
.footer-field:hover { border-color: rgba(255, 255, 255, 0.2); text-decoration: none; }

.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; width: 100%; max-width: 1280px; margin: 0 auto; padding: 32px clamp(0px, 6.67vw, 96px) 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-family: var(--mono); font-size: 12px; line-height: 16px; letter-spacing: 0.6px; }
.footer-copy { margin: 0; color: rgba(255, 255, 255, 0.5); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer-legal > a { color: rgba(255, 255, 255, 0.5); }
.footer-legal > a:hover { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.footer-legal .lang summary { height: 28px; padding: 0 10px; background: none; border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.5); font-family: var(--mono); font-size: 12px; font-weight: 400; }
.footer-legal .lang summary svg { width: 14px; height: 14px; }
.footer-legal .lang-list { font-family: var(--font); letter-spacing: 0; }

/*
 * Японский и корейский: крупный латинский кегль макета для иероглифов слишком велик — строки рвутся
 * по слову в 3–4 строки. Те же пропорции, на ступень меньше.
 */
:lang(ja) .home-hero-title, :lang(ko) .home-hero-title { font-size: clamp(36px, 6vw, 88px); line-height: 1.15; gap: clamp(4px, 1.2vw, 16px); letter-spacing: 0; }
:lang(ja) .manifesto p span { word-break: auto-phrase; }
:lang(ja) .manifesto p, :lang(ko) .manifesto p { font-size: clamp(22px, 3vw, 44px); line-height: 1.5; letter-spacing: 0; }
:lang(ja) .service-body h3, :lang(ko) .service-body h3 { font-size: clamp(28px, 2.5vw, 36px); letter-spacing: 0; }
:lang(ja) .display-title, :lang(ko) .display-title { font-size: clamp(40px, 5vw, 72px); line-height: 1.15; letter-spacing: 0; }
:lang(ja) .remove-list h3, :lang(ko) .remove-list h3 { font-size: clamp(24px, 3vw, 44px); line-height: 1.2; letter-spacing: 0; }
:lang(ja) .home-faq .faq-item summary, :lang(ko) .home-faq .faq-item summary { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.5; }
:lang(ja) .footer-cta-title, :lang(ko) .footer-cta-title { font-size: clamp(40px, 5vw, 72px); line-height: 1.15; letter-spacing: 0; }

/* ─── Главная и подвал: узкие экраны ────────────────────────────────────── */

@media (max-width: 1100px) {
  .service-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .service-card { min-height: 420px; }
  .remove-list p { width: 260px; }
  .footer-columns { flex-wrap: wrap; gap: 48px 32px; }
  .footer-about { flex-basis: 100%; }
  .footer-nav, .footer-support { flex: 1; width: auto; min-width: 240px; }
}
@media (max-width: 900px) {
  /* Деление манифеста на две части — только для широкой вёрстки макета. */
  .manifesto p { display: block; }
  .split-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .price-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .home-faq-inner { flex-direction: column; gap: 40px; }
  .home-faq-intro { width: auto; }
  .remove-list li { flex-wrap: wrap; row-gap: 8px; padding: 32px 0; }
  /* Узко: номер — строкой выше, заголовок и пояснение — по одному левому краю. */
  .remove-list p { width: 100%; padding-left: 0; }
  .footer-cta { flex-direction: column; align-items: flex-start; gap: 40px; }
}
@media (max-width: 600px) {
  .home-hero { min-height: 0; padding: calc(var(--header-space) + 72px) 16px 88px; }
  .home-hero-subtitle { padding: 0; }
  .home-hero-actions { width: 100%; }
  .home-hero-actions .pill { flex: 1; min-width: 150px; padding: 14px 20px; white-space: normal; text-align: center; }
  .services { padding-left: 16px; padding-right: 16px; }
  .service-card { min-height: 360px; }
  .service-number, .service-icon { top: 24px; }
  .service-number { left: 24px; }
  .service-icon { right: 24px; }
  .service-body { left: 24px; right: 24px; bottom: 28px; gap: 16px; }
  .service-body p { padding-top: 16px; }
  .remove, .prices, .stats, .home-faq { padding-top: 88px; padding-bottom: 88px; }
  .remove-list, .price-grid { margin-top: 56px; }
  .remove-n { width: 44px; }
  .remove-list p { font-size: 16px; line-height: 24px; }
  .price-card { padding: 28px 24px; }
  .price-head h3 { font-size: 34px; }
  /* Узко: размер и метка выгоды — столбиком слева, цена — справа на всю высоту строки. */
  .packs-priced li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "files price" "save price"; row-gap: 6px; column-gap: 12px; }
  .packs-priced .pack-files { grid-area: files; }
  .packs-priced .pack-save { grid-area: save; justify-self: start; }
  .packs-priced .pack-price { grid-area: price; align-self: center; font-size: 22px; min-width: 0; }
  .home-faq .faq-item summary { padding: 24px 0; font-size: 24px; line-height: 30px; }
  .home-faq .faq-answer { padding-right: 0; }
  .site-footer { gap: 64px; padding-top: 88px; }
  .footer-cta-button { width: 152px; height: 152px; font-size: 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ─── Юридические страницы и помощь ─────────────────────────────────────── */

.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-space) + 80px) 0 56px; text-align: center; }
.page-hero .container { position: relative; z-index: 1; }

/* Хлебные крошки (политика, условия): Inter 14/20, «Главная» — зелёная ссылка, дальше белый 70 %. */
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; font-family: "Inter", var(--font); font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: 0; color: rgba(255, 255, 255, 0.7); }
.breadcrumbs li + li::before { content: "/"; }
.breadcrumbs a { color: #4cffa0; }
.breadcrumbs a:hover { text-decoration: underline; }
.page-hero h1 { margin: 0 0 16px; font-size: clamp(38px, 5.6vw, 60px); font-weight: 300; line-height: 1.05; letter-spacing: -1.6px; }
.page-hero p { max-width: 640px; margin: 0 auto; color: var(--text-secondary); font-size: 18px; font-weight: 300; }
.page-hero .updated {
  display: inline-block;
  margin-top: 24px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 0.5px solid var(--hairline);
  color: var(--text-tertiary);
  font-size: 14px;
}

.page-body { padding: 8px 0 96px; }

/* Переключатель документов: политика, условия, помощь — как сегменты в iOS. */
.doc-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 32px;
  padding: 4px;
  overflow-x: auto;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 0.5px solid var(--hairline);
}
.doc-tabs a {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 15px;
  white-space: nowrap;
}
.doc-tabs a:hover { color: var(--text); text-decoration: none; }
.doc-tabs a[aria-current="page"] { background: var(--surface-strong); color: var(--text); }
/*
 * Юридические страницы по макету: колонка 896 по краю шапки, крошки в 32 px под шапкой, заголовок
 * Instrument Serif 60/60 в 56 px под крошками, текст Inter 500 18/36 белым 74,5 % в 32 px под заголовком.
 * У Instrument Serif нет кириллицы и иероглифов — там заголовок берёт системный шрифт с засечками.
 */
.doc-page {
  --doc-text: rgba(255, 255, 255, 0.745);
  max-width: 896px;
  margin: 0 max(16px, calc((100% - 896px) / 2));
  padding: calc(var(--header-space) + 32px) 0 120px;
  font-family: "Inter", var(--font);
  font-weight: 500;
  letter-spacing: 0;
}
.doc-page h1 {
  margin: 56px 0 32px;
  font-family: var(--serif);
  font-size: 60px;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 0;
  color: #ffffff;
}

.legal { color: var(--doc-text); font-size: 18px; line-height: 36px; }
.legal p { margin: 0; }
.legal p + p,
.legal p + ul,
.legal ul + p { margin-top: 36px; }
.legal strong { color: #ffffff; font-weight: 500; }
.legal a { color: #4cffa0; }
/* Разделы: между ними пустая строка, как между абзацами, и ещё строка над заголовком раздела. */
.legal section + section { margin-top: 72px; }
.legal h2 {
  display: flex;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 0;
  color: #ffffff;
}
.legal h2 .n { color: #4cffa0; }
.legal h3 { margin: 36px 0 8px; font-size: 18px; font-weight: 500; line-height: 36px; color: #ffffff; }
.legal ul { margin: 0; padding-left: 24px; }
.legal li::marker { color: #4cffa0; }
/* «Коротко»: тот же текст, пункты с зелёными галочками. */
.highlight ul { padding: 0; list-style: none; }
.highlight li { display: flex; gap: 12px; }
.highlight li svg { width: 20px; height: 20px; flex: none; margin-top: 8px; color: #4cffa0; }

.doc-updated { margin: 72px 0 0; color: rgba(255, 255, 255, 0.5); font-size: 14px; line-height: 20px; }

@media (max-width: 767px) {
  .doc-page { padding-bottom: 88px; }
  .doc-page h1 { margin-top: 40px; font-size: clamp(40px, 11vw, 60px); line-height: 1; }
  .legal { font-size: 16px; line-height: 30px; }
  .legal p + p, .legal p + ul, .legal ul + p { margin-top: 30px; }
  .legal section + section { margin-top: 56px; }
  .legal h2 { font-size: 28px; line-height: 34px; }
  .highlight li svg { margin-top: 5px; }
}
@media (max-width: 479px) { .doc-page { margin-inline: 12px; } }

.contact-card { max-width: 860px; margin: 56px auto 0; padding: 40px 32px; border-radius: var(--radius-card); background: var(--surface); border: 0.5px solid var(--hairline); text-align: center; }
.contact-card h2 { margin: 0 0 8px; font-size: 26px; font-weight: 300; letter-spacing: -0.5px; }
.contact-card p { margin: 0 0 24px; color: var(--text-secondary); font-weight: 300; }


/* ─── Форма поддержки (страница помощи) ─────────────────────────────────── */

.contact-card { scroll-margin-top: 104px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; margin: 0 auto; text-align: left; }
.contact-form[hidden] { display: none; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field span { color: var(--text-secondary); font-size: 14px; line-height: 20px; font-weight: 400; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-input);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 22px;
  transition: border-color 0.2s, background 0.2s;
}
.form-field textarea { min-height: 148px; resize: vertical; border-radius: 24px; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--accent-strong); background: rgba(255, 255, 255, 0.07); }
.contact-form .btn { align-self: center; min-width: 200px; margin-top: 8px; }
.contact-form .btn:disabled { opacity: 0.6; cursor: default; transform: none; }
/* Ловушка для ботов: убрана с экрана, но остаётся в форме. */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-card .form-status { min-height: 20px; margin: 0; font-size: 14px; line-height: 20px; text-align: center; }
.contact-card .form-status.is-success { color: var(--accent-dot); }
.contact-card .form-status.is-error { color: #ff6b6b; }
.contact-card .contact-alt { margin: 24px 0 0; font-size: 14px; }
.contact-alt[hidden] { display: none; }
@media (max-width: 600px) {
  .contact-card { padding: 32px 20px; }
  .contact-form .btn { align-self: stretch; }
}

/* ─── Самые узкие экраны (iPhone SE, 320–420 px): длинные слова не должны вылезать за экран ─── */

h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 420px) {
  .display-title { font-size: 48px; }
  .display-title-sm { font-size: 40px; }
  :lang(ja) .display-title, :lang(ko) .display-title,
  :lang(ja) .footer-cta-title, :lang(ko) .footer-cta-title { font-size: 34px; }
  .price-head { flex-wrap: wrap; row-gap: 12px; }
  .stats-grid { padding: 0; column-gap: 16px; }
  .stats-grid dt { letter-spacing: 0.6px; }
  .doc-page h1 { font-size: clamp(30px, 9.5vw, 60px); hyphens: auto; }
}

/* Пальцем: у ссылок подвала зона нажатия выше видимого текста (32 px), раскладка та же. */
@media (pointer: coarse) {
  .footer-nav a { padding: 6px 0; margin: -6px 0; }
  .footer-legal > a { padding: 8px 0; margin: -8px 0; }
}

/* Ссылки внутри текста отличаются не только цветом (WCAG 1.4.1). */
:where(p, li, .faq-answer, .doc-page) a:not(.pill):not(.footer-field) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* ─── Страница ошибки (404, 429) ──────────────────────────────────────────── */
.error-page { min-height: 52vh; }
.error-page .error-code { margin: 0 0 16px; color: rgba(255, 255, 255, 0.5); font-family: var(--mono); font-size: 14px; letter-spacing: 1.4px; }
.error-page .error-text { max-width: 560px; margin: 20px 0 36px; color: rgba(255, 255, 255, 0.7); font-size: 18px; line-height: 28px; }
.error-page .pill { text-decoration: none; }
:lang(ja) .error-page h1, :lang(ja) .error-page .error-text { word-break: auto-phrase; }
