/* ---------- self-hosted fonts ----------
   Скачаны с Google Fonts и лежат в assets/fonts/, чтобы не подключать
   сторонний домен перед отрисовкой текста и не передавать IP посетителей
   в Google. Montserrat вариативный — один файл на все веса 400–700.
   Bebas Neue кириллицы не содержит: русский текст в нём падает на Arial,
   так было и раньше при загрузке с Google. */

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bebas-neue-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bebas-neue-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: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #000000;
  --gold: #ffcd00;
  --gold-dark: #e0b400;
  --white: #ffffff;
  --gray: #808080;
  --gray-light: #adadad;

  --bg: var(--black);
  --card: #121212;
  --card-border: #2a2a2a;
  --accent: var(--gold);
  --accent-dark: var(--gold-dark);
  --muted: var(--gray-light);
  --telegram: #29a9eb;
  --container: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; margin: 0; padding: 0; }

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

@media (min-width: 640px) {
  .container { padding-inline: 32px; }
}
@media (min-width: 1024px) {
  .container { padding-inline: 40px; }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo-mark {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.logo-mark--lg { width: 64px; height: 64px; }

.nav {
  display: none;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a { transition: color 0.2s; }
.nav a:hover { color: var(--accent); }

.nav-toggle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 68px 0 0 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 40;
}
body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

body.nav-open .nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 68px 0 auto auto;
  width: min(78vw, 320px);
  background: var(--card);
  border-left: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  padding: 24px;
  gap: 20px;
  z-index: 45;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    position: static;
    width: auto;
    background: none;
    border: none;
    padding: 0;
  }
  .nav-toggle { display: none; }
  .nav-backdrop { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-block: 56px 64px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.flight-path {
  position: absolute;
  top: 4%;
  right: -6%;
  width: 62%;
  max-width: 420px;
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero-title {
  font-family: "Bebas Neue", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
  font-size: clamp(2.4rem, 7vw + 1rem, 4.6rem);
}
.hero-title .w { color: var(--white); }
.hero-title .accent { color: var(--accent); }

.divider {
  display: inline-block;
  width: 64px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 22px 0 26px;
}

.hero-subtitle {
  font-family: "Bebas Neue", Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2.6vw + 0.6rem, 1.7rem);
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}
.hero-subtitle.accent { color: var(--accent); font-size: clamp(1rem, 2vw + 0.5rem, 1.3rem); margin-bottom: 28px; }

.hero-desc {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 40px;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 36px;
  margin-bottom: 44px;
}
.feature-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 96px;
}
.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
}
.icon-circle svg { width: 26px; height: 26px; }

html.motion-ok .feature-list .icon-circle {
  animation: icon-float 3.2s ease-in-out infinite;
}
.feature-list li:nth-child(2) .icon-circle { animation-delay: 0.25s; }
.feature-list li:nth-child(3) .icon-circle { animation-delay: 0.5s; }
@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.feature-list span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  max-width: 380px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .cta-row {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #1a1200;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  background: var(--card);
  color: var(--white);
  border-color: var(--card-border);
}
.btn-secondary:hover { border-color: var(--telegram); }

/* ---------- how it works ---------- */

.how { padding-block: 64px; }

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: "Bebas Neue", Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.15em;
  font-size: clamp(1rem, 1.5vw + 0.7rem, 1.3rem);
  color: var(--accent);
  margin: 0 0 40px;
}
.section-title .line {
  height: 1px;
  width: 40px;
  background: var(--card-border);
}
@media (min-width: 640px) {
  .section-title .line { width: 80px; }
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 0; }
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
}

@media (min-width: 1024px) {
  .step { margin-right: 18px; }
  .step:last-child { margin-right: 0; }
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -15px;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    transform: translateY(-50%) rotate(45deg);
    z-index: 1;
  }
}

.step-num {
  display: block;
  font-family: "Bebas Neue", Arial, sans-serif;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.step-icon { width: 40px; height: 40px; margin: 0 auto 16px; }

.step h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

.step p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* ---------- footer ---------- */

.footer { padding-block: 24px 48px; }

.footer-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media (min-width: 640px) {
  .footer-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 36px 40px;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-title {
  font-family: "Bebas Neue", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.15rem;
  margin: 0;
}
.footer-title .accent { color: var(--accent); }

.footer-caption {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 4px 0 0;
}

.badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (min-width: 640px) {
  .badges { display: flex; gap: 32px; }
}

.badges li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.badges svg { width: 30px; height: 30px; }
.badges span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-bottom {
  margin-top: 24px;
  text-align: center;
}
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}
.footer-bottom svg { width: 22px; height: 22px; }

.footer-legal { margin: 14px 0 0; }
.footer-legal a {
  color: var(--gray);
  font-size: 0.78rem;
  font-weight: 400;
}
.footer-legal a:hover { color: var(--accent); }

/* ---------- motion: plane / routes (gated by html.motion-ok, set in <head>) ---------- */

.plane-static { opacity: 1; }
.plane-anim { opacity: 0; }
html.motion-ok .plane-static { opacity: 0; }
html.motion-ok .plane-anim { opacity: 1; }

.route-plane { opacity: 0; }
html.motion-ok .route-plane { opacity: 1; }

/* ---------- intro splash ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, #241d05 0%, #000 60%);
}
html.intro-skip .intro { display: none; }
html.motion-ok:not(.intro-skip) .intro {
  animation: intro-hide 0.5s ease 0.9s forwards;
}
@keyframes intro-hide {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.intro-caption {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0;
  text-align: center;
  white-space: nowrap;
}
html.motion-ok:not(.intro-skip) .intro-caption {
  animation: intro-caption 1.4s ease 0.4s forwards;
}
@keyframes intro-caption {
  0% { opacity: 0; transform: translate(-50%, -50%) translateY(8px); }
  25%, 70% { opacity: 1; transform: translate(-50%, -50%) translateY(0); }
  100% { opacity: 0; }
}

.intro-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16vh;
  background: #050300;
  border-top: 2px solid var(--accent);
}
.intro-ground::before {
  content: "";
  position: absolute;
  top: 42%;
  left: 0;
  right: 0;
  height: 3px;
  background-image: repeating-linear-gradient(90deg, var(--accent) 0 24px, transparent 24px 48px);
  opacity: 0.55;
}

.intro-plane {
  position: absolute;
  left: 9vw;
  bottom: 15vh;
  width: 46px;
  height: 46px;
  opacity: 0;
}
html.motion-ok:not(.intro-skip) .intro-plane {
  animation: intro-takeoff 2.1s cubic-bezier(0.5, 0.05, 0.35, 1) 0.35s forwards;
}
@keyframes intro-takeoff {
  0%   { transform: translate(0, 0) rotate(-6deg) scale(0.9); opacity: 1; }
  12%  { transform: translate(2vw, -1vh) rotate(-10deg) scale(0.92); opacity: 1; }
  60%  { transform: translate(42vw, -30vh) rotate(-34deg) scale(1.2); opacity: 1; }
  100% { transform: translate(96vw, -76vh) rotate(-40deg) scale(0.5); opacity: 0; }
}

/* ---------- hero: logo assembly (pure CSS, plays once after intro) ---------- */

.logo-assembly {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 28px;
  border-radius: 50%;
  overflow: hidden;
}
.logo-piece {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* zones fully tile the square (no gaps): top band / middle-left / middle-right / bottom band.
   piece-plane is a decorative overlay inside the top band (harmless overlap, identical pixels). */
.piece-globe { clip-path: inset(0 0 58% 0); }
.piece-b     { clip-path: inset(42% 50% 20% 0); }
.piece-a     { clip-path: inset(42% 0 20% 50%); }
.piece-text  { clip-path: inset(80% 0 0 0); }
.piece-plane { clip-path: inset(4% 4% 68% 44%); }

html.motion-ok .logo-piece { opacity: 0; }
html.motion-ok .piece-globe { animation: piece-in-globe 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.0s forwards; }
html.motion-ok .piece-b     { animation: piece-in-b 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.1s forwards; }
html.motion-ok .piece-a     { animation: piece-in-a 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.15s forwards; }
html.motion-ok .piece-text  { animation: piece-in-text 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.3s forwards; }
html.motion-ok .piece-plane { animation: piece-in-plane 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.4s forwards; }

/* no intro this visit (repeat session / reduced-motion off the intro but motion still ok) → don't
   make people wait ~3s for the logo, start almost immediately instead */
html.intro-skip.motion-ok .piece-globe { animation-delay: 0.1s; }
html.intro-skip.motion-ok .piece-b     { animation-delay: 0.2s; }
html.intro-skip.motion-ok .piece-a     { animation-delay: 0.25s; }
html.intro-skip.motion-ok .piece-text  { animation-delay: 0.4s; }
html.intro-skip.motion-ok .piece-plane { animation-delay: 0.5s; }

/* Мобильные и планшеты: заставку не показываем совсем.
   Основная часть поискового трафика — с телефонов, а 3,4 с чёрного экрана
   на входе рушат LCP и увеличивают отказы. На десктопе заставка остаётся. */
@media (max-width: 1023.98px) {
  .intro { display: none; }

  html.motion-ok .piece-globe { animation-delay: 0.1s; }
  html.motion-ok .piece-b     { animation-delay: 0.2s; }
  html.motion-ok .piece-a     { animation-delay: 0.25s; }
  html.motion-ok .piece-text  { animation-delay: 0.4s; }
  html.motion-ok .piece-plane { animation-delay: 0.5s; }
}

@keyframes piece-in-globe { from { opacity: 0; transform: translate(-60px, -46px) rotate(-18deg); } to { opacity: 1; transform: none; } }
@keyframes piece-in-b     { from { opacity: 0; transform: translate(-70px, 24px) rotate(-14deg); } to { opacity: 1; transform: none; } }
@keyframes piece-in-a     { from { opacity: 0; transform: translate(70px, 24px) rotate(14deg); } to { opacity: 1; transform: none; } }
@keyframes piece-in-text  { from { opacity: 0; transform: translate(0, 50px); } to { opacity: 1; transform: none; } }
@keyframes piece-in-plane { from { opacity: 0; transform: translate(50px, -40px) scale(0.6); } to { opacity: 1; transform: none; } }

/* ---------- hero: globe (rotating meridian strip + latitude arcs, no WebGL needed) ---------- */

.hero-globe {
  position: absolute;
  top: -6%;
  left: 50%;
  transform: translateX(-50%);
  width: min(70vw, 420px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #2a2408, #000 72%);
  box-shadow:
    inset -18px -14px 40px rgba(0, 0, 0, 0.75),
    inset 10px 8px 24px rgba(255, 205, 0, 0.08);
}
.hero-globe-fallback {
  position: absolute;
  inset: -10% 0;
  background-image: repeating-linear-gradient(90deg, rgba(255, 205, 0, 0.32) 0 1.5px, transparent 1.5px 34px);
  background-size: 200% 100%;
}
html.motion-ok .hero-globe-fallback { animation: globe-spin 16s linear infinite; }
@keyframes globe-spin {
  to { background-position: -200% 0; }
}
.hero-globe-lat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#heroGlobeCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* ---------- about ---------- */

.about { padding-block: 64px; }

.about-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-inner { flex-direction: row; gap: 56px; }
  .about-media { flex: 0 0 320px; }
  .about-text { flex: 1; }
}

.about-media {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 0.85;
}
.about-avatar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.about-avatar svg { width: 44px; height: 44px; }
.about-routes { position: absolute; inset: 0; width: 100%; height: 100%; }

.about-text { text-align: center; max-width: 560px; }
@media (min-width: 1024px) { .about-text { text-align: left; } }

.about-lead {
  font-family: "Bebas Neue", Arial, sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin: 0 0 12px;
}
.about-text p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}

.section-title--left { justify-content: flex-start; }

/* ---------- how it works: extra elements ---------- */

.step-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}
.step-link:hover { text-decoration: underline; }

.step-note {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- terms ---------- */

.terms { padding-block: 24px 64px; }
.terms-inner { max-width: 760px; margin-inline: auto; }

.terms-details {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 20px 24px;
}
.terms-details summary {
  cursor: pointer;
  font-family: "Bebas Neue", Arial, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.terms-details summary::-webkit-details-marker { display: none; }
.terms-details summary { list-style: none; }
.terms-details summary::after {
  content: "+";
  float: right;
  font-family: Arial, sans-serif;
}
.terms-details[open] summary::after { content: "\2212"; }

.terms-body {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.terms-body h3 {
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 20px 0 8px;
}
.terms-body h3:first-child { margin-top: 0; }
.terms-body ul { margin: 0 0 10px; padding-left: 18px; list-style: disc; }
.terms-body li { margin-bottom: 4px; }
.terms-body p { margin: 0 0 10px; }

/* ---------- achievements ---------- */

.achievements { padding-block: 64px; }

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.stat-value {
  font-family: "Bebas Neue", Arial, sans-serif;
  font-size: 2rem;
  color: var(--accent);
}
.stat-label {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- store ---------- */

.store { padding-block: 64px; }

.store-lead {
  text-align: center;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 24px;
}
.store-cta { display: flex; width: fit-content; margin: 0 auto 40px; }

.gallery {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  /* proximity, а не mandatory: mandatory заставляет Safari перехватывать
     вертикальный жест трекпада над галереей и мешает листать страницу дальше. */
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  padding: 4px 4px 14px;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: var(--card-border) transparent;
}
.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-track { background: transparent; }
.gallery::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 3px; }

.gallery-item {
  flex: 0 0 auto;
  width: 130px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
@media (min-width: 640px) { .gallery-item { width: 170px; } }
@media (min-width: 1024px) { .gallery-item { width: 200px; } }

.gallery-item:hover,
.gallery-item:focus-within {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- faq ---------- */

.faq { padding-block: 64px; }

.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 18px 22px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 26px;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary h3 {
  display: inline;
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.2s ease;
}
.faq-item summary:hover h3,
.faq-item[open] summary h3 { color: var(--accent); }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.3;
}
.faq-item[open] summary::after { content: "\2212"; }

.faq-answer {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---------- contact ---------- */

.contact { padding-block: 64px; }

.contact-lead {
  text-align: center;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 620px;
  margin: 0 auto;
}
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.icon-circle--lg { width: 64px; height: 64px; }
.icon-circle--lg svg { width: 30px; height: 30px; }

.contact-name {
  font-family: "Bebas Neue", Arial, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}
.contact-handle { font-size: 0.82rem; color: var(--muted); }

/* ---------- reveal (IntersectionObserver-driven, see animations.js) ----------
   Safe-by-default: content is fully visible unless JS confirms it's ready to
   animate (html.js-ready, set only after IntersectionObserver is wired up)
   AND motion is allowed (html.motion-ok). No JS / slow CDN / reduced-motion
   all fall back to "just show it". */

html.js-ready.motion-ok .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js-ready.motion-ok .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- accessibility: visually hidden ----------
   Заголовки, нужные поисковикам и скринридерам, но не вписанные в макет.
   position: absolute без top/left оставляет элемент в статической позиции,
   поэтому окружающий поток схлопывается и вёрстка не сдвигается. */

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- accessibility: reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
