/* Лендинг Лотоса — стили.
   Всё, что обычно хочется поменять (цвета, шрифты, размеры, отступы), собрано
   в :root сразу ниже; остальной файл берёт значения только оттуда. */

:root {
  /* Цвета */
  --bg: #0a1631;                 /* фон страницы, тёмно-синий */
  --bg-raised: #0e1d40;          /* шапка, футер, открытый вопрос FAQ */
  --text: #f7f1e3;               /* основной текст, тёплый белый */
  --text-muted: #b4bdd6;         /* второстепенный текст */
  --accent: #f4c66a;             /* кнопки и ссылки, тёплое золото как сердцевина лотоса */
  --accent-hover: #ffd88d;
  --on-accent: #14203d;          /* текст на золотой кнопке */
  --line: rgba(247, 241, 227, 0.12);
  --glow: rgba(79, 172, 255, 0.22);

  /* Свечение поверх --bg. Чтобы поставить свою картинку вместо него:
     --bg-image: url("img/background.jpg"); */
  --bg-image:
    radial-gradient(1100px 620px at 50% -8%, var(--glow), transparent 70%),
    radial-gradient(700px 520px at 50% 58%, rgba(244, 198, 106, 0.07), transparent 70%);

  /* Шрифт и размеры текста */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --size-h1: clamp(2.25rem, 1.4rem + 4.2vw, 4rem);
  --size-h2: clamp(1.75rem, 1.3rem + 2vw, 2.6rem);
  --size-lead: clamp(1.125rem, 1rem + 0.8vw, 1.5rem);   /* 18px на телефоне, 24px на широком экране */
  --size-body: 1.0625rem;
  --size-small: 0.9375rem;

  /* Сетка и отступы */
  --page-width: 1120px;          /* шапка и футер */
  --text-width: 720px;           /* первый экран, FAQ, документы */
  --gutter: 20px;                /* поля по бокам на телефоне */
  --section-gap: clamp(64px, 9vw, 120px);
  --radius: 14px;
  --header-height: 64px;
}

/* ---------- Переключение языка ----------
   Тексты написаны на двух языках рядом; тот, что не совпадает с <html lang>,
   скрыт. Атрибут lang используем только для этого. */
html[lang="ru"] [lang="en"],
html[lang="en"] [lang="ru"] { display: none !important; }

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: var(--size-body);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--bg-image);
  background-repeat: no-repeat;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: -0.01em; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(247, 241, 227, 0.08);
}

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

.container--text { max-width: calc(var(--text-width) + 2 * var(--gutter)); }

.section { padding-top: var(--section-gap); }
.section--last { padding-bottom: var(--section-gap); }

.section-title {
  font-size: var(--size-h2);
  text-align: center;
  margin-bottom: 36px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }

.btn--large {
  width: 100%;
  max-width: 420px;
  padding: 18px 28px;
  font-size: 1.125rem;
  box-shadow: 0 10px 30px rgba(244, 198, 106, 0.18);
}

.btn__icon { width: 22px; height: 22px; flex: none; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 22, 49, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-height);
}

.site-header__logo { margin-right: auto; display: block; }
.site-header__logo img { height: 40px; width: auto; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--size-small);
  font-weight: 700;
  cursor: pointer;
}
.lang-toggle:hover { border-color: var(--text-muted); }
.lang-toggle > span { display: inline-flex; align-items: center; gap: 7px; }
.lang-toggle img { width: 22px; height: 22px; }

/* ---------- Первый экран ---------- */
.hero {
  padding-top: clamp(48px, 8vw, 96px);
  text-align: center;
}

.hero__title { font-size: var(--size-h1); }

.hero__lead {
  font-size: var(--size-lead);
  line-height: 1.5;
  color: var(--text-muted);
  margin: 24px auto 36px;
  max-width: 640px;
}

.cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.cta__note {
  margin: 0;
  font-size: var(--size-small);
  color: var(--text-muted);
}

/* ---------- Картинка телефона ---------- */
.phone {
  position: relative;
  isolation: isolate;            /* свечение остаётся за картинкой, а не за фоном страницы */
  width: min(300px, 78vw);
  margin: clamp(56px, 8vw, 88px) auto 0;
}
.phone::before {                 /* мягкое свечение за телефоном */
  content: "";
  position: absolute;
  inset: 8% -30%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  z-index: -1;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item[open] { background: var(--bg-raised); }

.faq-item summary {
  position: relative;
  padding: 20px 52px 20px 16px;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {        /* стрелка */
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }

.faq-item__answer {
  padding: 0 16px 20px;
  color: var(--text-muted);
}
.faq-item__answer p { margin: 0 0 12px; }
.faq-item__answer ul { margin: 0 0 12px; padding-left: 1.2em; }
.faq-item__answer li { margin-bottom: 6px; }
.faq-item__answer > :last-child,
.faq-item__answer > * > :last-child { margin-bottom: 0; }

/* ---------- Финальный призыв ---------- */
.closing { text-align: center; }
.closing .section-title { margin-bottom: 32px; }

/* ---------- Текстовые страницы: поддержка и документы ---------- */
.doc { padding-top: clamp(40px, 6vw, 72px); padding-bottom: var(--section-gap); }
.doc h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); margin-bottom: 12px; }
.doc h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.doc p, .doc li { color: var(--text-muted); }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text); }
.doc__meta { font-size: var(--size-small); margin-bottom: 28px; }
.doc__back { display: inline-block; margin-top: 28px; }

/* ---------- Футер ---------- */
.site-footer {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  font-size: var(--size-small);
  color: var(--text-muted);
}

.site-footer p { margin: 0 0 10px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 20px;
}
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }

.footer-legal a { color: inherit; }

.age-badge {
  display: inline-block;
  padding: 1px 7px;
  margin-right: 8px;
  border: 1px solid var(--text-muted);
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8125rem;
}

/* ---------- Узкие экраны ---------- */
@media (max-width: 480px) {
  :root { --header-height: 58px; }
  .site-header__inner { gap: 8px; }
  .site-header__logo img { height: 32px; }
  .btn { padding: 10px 14px; }
  .btn--large { padding: 17px 20px; }
  .lang-toggle { padding: 5px 8px; }
  .faq-item summary { font-size: 1.0625rem; padding-left: 12px; }
  .faq-item__answer { padding-left: 12px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
