/*
 * style.css — тёмная тема лендинга TikTok 18+.
 * Полностью автономно: только системные шрифты, CSS-графика и inline-SVG.
 * Ни одного внешнего ресурса, ни одной ссылки на сеть.
 * Раскладка mobile-first: базовые правила — для телефонов,
 * расширения — в media-запросах от 520px.
 */

:root {
  --accent: #d81b60;
  --accent-2: #ff7ab8;
  --accent-soft: rgba(216, 27, 96, 0.18);
  --bg: #0a0709;
  --surface: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f6f8;
  --muted: #a7a7b6;
  --radius: 20px;
  --radius-sm: 14px;
  --tap: 48px;
  --maxw: 1140px;
  --shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2 {
  margin: 0;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Возрастные ворота ---------- */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(6, 3, 5, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.age-gate__card {
  width: 100%;
  max-width: 520px;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(520px 220px at 50% -10%, var(--accent-soft), transparent 70%),
    #100a0e;
  box-shadow: var(--shadow);
  text-align: center;
}

.age-gate__lang {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  margin: 0 auto 20px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.age-gate__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 34px -16px var(--accent);
}

.age-gate__title {
  margin-top: 20px;
  font-size: clamp(24px, 5.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.age-gate__text {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.age-gate__actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.age-gate__note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 7, 9, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-height: 64px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), #6d28d9);
  box-shadow: 0 10px 24px -14px var(--accent);
}

.brand__mark svg {
  width: 22px;
  height: 22px;
}

/* ---------- Навигация и язык ---------- */

.nav {
  order: 3;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav__link:hover {
  color: var(--text);
  background: var(--surface);
}

.lang {
  margin-left: auto;
  display: inline-flex;
  flex: none;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.lang__btn {
  min-width: 40px;
  min-height: 40px;
  padding: 0 9px;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.lang__btn:hover {
  color: var(--text);
}

.lang__btn.is-active {
  background: var(--accent);
  color: #fff;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn--lg {
  min-height: 56px;
  padding: 14px 30px;
  font-size: 17px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 40px -20px var(--accent);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px -20px var(--accent);
}

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

.hero__cta .btn,
.band__cta .btn,
.age-gate__actions .btn {
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 8vw, 90px);
  background:
    radial-gradient(900px 460px at 12% -10%, rgba(216, 27, 96, 0.26), transparent 65%),
    radial-gradient(700px 420px at 92% 8%, rgba(109, 40, 217, 0.16), transparent 62%),
    var(--bg);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.hero__eyebrow {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero__title {
  margin-top: 18px;
  font-size: clamp(34px, 7vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.hero__subtitle {
  margin-top: 18px;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 19px);
  overflow-wrap: anywhere;
}

.hero__cta {
  margin-top: 28px;
}

.hero__note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Декоративный макет телефона ---------- */

.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.phone {
  position: relative;
  z-index: 2;
  width: min(290px, 76vw);
  aspect-ratio: 9 / 18;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: linear-gradient(165deg, #221219, #0e080b);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}

.phone__top {
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
}

.phone__notch {
  width: 76px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 12px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  overflow: hidden;
}

.phone__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone__chip {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: none;
}

.phone__chip--live {
  background: linear-gradient(140deg, var(--accent), #6d28d9);
}

.phone__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.phone__bar--w40 { width: 40%; }
.phone__bar--w70 { width: 70%; }
.phone__bar--w25 { width: 25%; }

.phone__card {
  border-radius: 18px;
  aspect-ratio: 3 / 4;
}

.phone__card--a { background: linear-gradient(160deg, var(--accent), #6d28d9); }
.phone__card--b { background: linear-gradient(160deg, var(--accent-2), #9d174d); }
.phone__card--c { background: linear-gradient(160deg, #ff9ec7, var(--accent)); }

.phone__play {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 7, 9, 0.55);
}

.phone__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  margin: -8px 0 0 -6px;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #fff;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.5;
  pointer-events: none;
}

.glow--a {
  width: 240px;
  height: 240px;
  top: 8%;
  left: -40px;
  background: var(--accent);
}

.glow--b {
  width: 200px;
  height: 200px;
  bottom: 0;
  right: -30px;
  background: #6d28d9;
  opacity: 0.28;
}

/* ---------- Блок загрузки ---------- */

.section {
  padding-block: clamp(52px, 8vw, 96px);
}

.section__title {
  font-size: clamp(26px, 4.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(600px 240px at 100% 0%, var(--accent-soft), transparent 70%),
    var(--surface);
}

.band__lead {
  margin-top: 12px;
  color: var(--muted);
  max-width: 52ch;
  overflow-wrap: anywhere;
}

.band__cta {
  justify-self: stretch;
}

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

.site-footer {
  padding-block: 28px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}

.footer__copy,
.footer__note {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.footer__age {
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* ---------- Расширения для планшетов и десктопа ---------- */

@media (min-width: 520px) {
  .hero__cta .btn,
  .band__cta .btn,
  .age-gate__actions .btn {
    width: auto;
  }
}

@media (min-width: 760px) {
  .header__inner {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .nav {
    order: 0;
    width: auto;
    margin-left: auto;
  }

  .lang {
    margin-left: 0;
  }
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .band {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .band__cta {
    justify-self: start;
  }
}

/* ---------- Уважение к prefers-reduced-motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
