/* ==========================================================================
   Секции страницы
   ========================================================================== */

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  padding-top: env(safe-area-inset-top);
  transition:
    background-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    -webkit-backdrop-filter var(--dur) var(--ease-out),
    backdrop-filter var(--dur) var(--ease-out);
}

.header.is-scrolled {
  background: rgba(13, 13, 12, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  transition: height var(--dur) var(--ease-out);
}

.header.is-scrolled .header__inner {
  height: 70px;
}

.header__logo {
  flex: none;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.header__logo img {
  width: auto;
  height: 28px;
}

.header__logo:hover {
  opacity: 0.85;
}

/* Иконки соцсетей в шапке */
.header__socials {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header__social {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(15, 15, 15, 0.15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  transition:
    color var(--dur) var(--ease-out),
    background-color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.header__social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.header__social--telegram  { --brand: #ffbb03; }
.header__social--instagram { --brand: #ffbb03; }
.header__social--facebook  { --brand: #ffbb03; }

@media (hover: hover) {
  .header__social:hover {
    border-color: var(--brand);
    background: var(--brand);
    transform: translateY(-2px);
  }
}

.header__social:active {
  transform: scale(0.94);
}

/* Навигация */
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}

.nav__list {
  display: flex;
  gap: 32px;
}

.nav__link {
  position: relative;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}

.nav__link:hover {
  color: var(--color-accent);
}

.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Бургер (виден на планшетах и телефонах) */
.burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  background: rgba(15, 15, 15, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.burger__line {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), top var(--dur) var(--ease-out);
}

.burger__line:nth-child(1) { top: 18px; }
.burger__line:nth-child(2) { top: 26px; }

.burger[aria-expanded="true"] .burger__line:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: max(760px, 100svh);
  padding-top: var(--header-h);
  overflow: hidden;
  background: #0b0b0b;
}

.hero__bg,
.hero__bg img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Затемнения поверх фона */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.08) 55%, transparent 78%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 200px;
  background: linear-gradient(0deg, var(--color-bg), transparent);
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 24px;
  padding-block: 40px 110px;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__title {
  margin: 28px 0 10px;
  font-size: clamp(44px, 6.4vw, 104px);
  font-weight: 900;
  font-style: italic;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  color: var(--color-accent);
}

.hero__amount {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0 20px;
}

.hero__number {
  padding-right: 0.06em;
  font-size: clamp(88px, 11.5vw, 178px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(160deg, #fff399 0%, var(--color-accent) 30%, var(--color-accent-dark) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 11px 17px rgba(54, 24, 0, 0.25));
}

.hero__currency {
  margin-bottom: 0.3em;
  font-size: clamp(26px, 3.6vw, 54px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero__text {
  max-width: 500px;
  margin: 24px 0 32px;
  color: var(--color-text-soft);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__note {
  max-width: 470px;
  margin-top: 22px;
  color: #cbc5b0;
  font-size: 11px;
  line-height: 1.55;
}

/* Визуал с мячами */
.hero__visual {
  position: relative;
  z-index: 1;
  align-self: stretch;
  pointer-events: none;
}

/* На больших экранах мячи позиционируются от всего первого экрана,
   а не от колонки — так их размер завязан на ширину экрана */
@media (min-width: 1024px) {
  .hero__grid,
  .hero__visual {
    position: static;
  }
}

/* Крупные мячи, выходят за правый край экрана */
.hero__balls {
  --px: 0px;
  --py: 0px;
  --scale: 1;

  position: absolute;
  z-index: 1;
  top: 52%;
  right: -16vw;
  width: min(70vw, 1400px);
  transform:
    translate3d(var(--px), calc(-50% + var(--py)), 0)
    scale(var(--scale));
  transition: transform 0.9s var(--ease-out);
  will-change: transform;
}

/* Наведение: мячи слегка увеличиваются и следуют за курсором */
@media (hover: hover) and (pointer: fine) {
  .hero__balls {
    pointer-events: auto;
  }

  .hero__balls.is-hover {
    --scale: 1.06;
    transition: transform 0.6s var(--ease-out);
  }

  .hero__balls.is-hover img {
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.45));
  }
}

.hero__balls img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.35));
  animation: float 7s var(--ease-in-out) infinite;
  transition: filter var(--dur) var(--ease-out);
}

.hero__glow {
  position: absolute;
  top: 14%;
  right: 8vw;
  width: min(36vw, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-accent-light);
  filter: blur(110px);
  opacity: 0.32;
  animation: glow 8s var(--ease-in-out) infinite;
}

.hero__orbit {
  position: absolute;
  top: 10%;
  right: -2vw;
  width: min(48vw, 860px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  transform: rotate(-30deg) skew(10deg, 7deg);
  animation: orbit 24s linear infinite;
}

.hero__streak {
  position: absolute;
  top: 34%;
  right: -12vw;
  width: 40vw;
  height: 6px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  filter: blur(2px);
  opacity: 0.55;
  transform: rotate(-28deg);
}

/* Подсказка «листай вниз» */
.hero__scroll {
  position: absolute;
  left: max(var(--gutter), calc((100% - var(--container)) / 2));
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #d1c9aa;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease-out);
}

.hero__scroll::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  transform-origin: left;
  animation: line 2.6s var(--ease-in-out) infinite;
}

.hero__scroll:hover {
  color: var(--color-accent);
}

/* ---------- Поделиться ---------- */
.share {
  position: relative;
  z-index: 3;
  border-block: 1px solid var(--color-border);
  background: var(--color-surface);
}

.share__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  min-height: 96px;
  padding-block: 20px;
}

.share__title {
  color: #f5f0dc;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.share__subtitle {
  margin-top: 6px;
  color: #8e8b80;
  font-size: 12px;
}

.share__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Общие секции ---------- */
.section {
  padding-block: var(--section-y);
}

.section__head {
  max-width: 660px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section__title {
  margin: 16px 0;
  font-size: clamp(32px, 4.4vw, 62px);
  font-weight: 900;
  font-style: italic;
  line-height: 1.03;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.section__text {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ---------- Шаги ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 32px;
  border: 1px solid #3a3930;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #23221c, #141411);
  counter-increment: step;
  transition:
    border-color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

/* Номер шага — счётчик CSS */
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 26px;
  color: var(--color-accent);
  font-size: 50px;
  font-weight: 900;
  line-height: 1;
}

/* Мягкое свечение в углу */
.step::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--color-accent);
  filter: blur(90px);
  opacity: 0.09;
  transition: opacity var(--dur-slow) var(--ease-out);
}

@media (hover: hover) {
  .step:hover {
    border-color: rgba(255, 207, 8, 0.45);
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  }

  .step:hover::after {
    opacity: 0.22;
  }
}

.step__title {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 800;
}

.step__text {
  color: #b6b3a8;
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Оффер ---------- */
.offer {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(28px, 4.5vw, 48px);
  border-radius: var(--radius-xl);
  background: linear-gradient(105deg, var(--color-accent), var(--color-accent-light));
  color: #0b0b0b;
}

/* Медленный блик по жёлтой плашке */
.offer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: sheen 7s var(--ease-in-out) infinite;
  pointer-events: none;
}

.offer__content {
  position: relative;
}

.offer__title {
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

/* Ширина цифр фиксирована, чтобы текст не прыгал во время счёта */
.offer__number {
  display: inline-block;
  min-width: 4ch;
  font-variant-numeric: tabular-nums;
}

.offer__text {
  max-width: 580px;
  margin-top: 10px;
  font-weight: 700;
  line-height: 1.5;
}

.offer .btn {
  position: relative;
}

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

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:hover {
  color: var(--color-accent);
}

/* Плюс, который превращается в минус */
.faq__question::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(var(--color-accent), var(--color-accent)) center / 14px 2px no-repeat,
    linear-gradient(var(--color-accent), var(--color-accent)) center / 2px 14px no-repeat,
    rgba(255, 207, 8, 0.1);
  transition: transform var(--dur) var(--ease-out), background-size var(--dur) var(--ease-out);
}

.faq__item[open] > .faq__question::after {
  transform: rotate(180deg);
  background-size: 14px 2px, 2px 0, auto;
}

.faq__answer {
  overflow: hidden;
}

.faq__answer p {
  max-width: 850px;
  padding-bottom: 24px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ---------- Подвал ---------- */
.footer {
  padding-block: 32px max(40px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border);
}

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

.footer__logo {
  width: auto;
  height: 22px;
  margin-bottom: 14px;
}

.footer__legal {
  max-width: 770px;
  color: var(--color-text-faint);
  font-size: 12px;
  line-height: 1.6;
}

.footer__age {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid #a6a39a;
  border-radius: 50%;
  color: #cac7bd;
  font-size: 17px;
  font-weight: 900;
}
