/* ===== Variables ===== */
:root {
  --color-bg: #111111;
  --color-surface: #1a1a1a;
  --color-surface-dark: #101010;
  --color-yellow: #ffcc00;
  --color-yellow-btn: #ffd400;
  --color-white: #ffffff;
  --color-text: #d1d5db;
  --color-muted: #9ca3af;
  --color-muted-dark: #6b7280;
  --color-border: rgba(255, 255, 255, 0.05);

  --font-main: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1152px;
  --container-wide: 1280px;
  --header-height: 71px;
  --gutter: 40px;
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

section[id] { scroll-margin-top: var(--header-height); }

/* ===== Common blocks ===== */
.section { padding: 96px var(--gutter); }

@media (min-width: 1200px) {
  .section { padding-left: 144px; padding-right: 144px; }
}

.container {
  display: flex;
  flex-direction: column;
  gap: 64px;
  max-width: var(--container);
  margin: 0 auto;
}

.section-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 48px;
  letter-spacing: -2.4px;
  text-align: center;
  text-transform: uppercase;
}

.section-title__accent { color: var(--color-yellow); }

.container--center { align-items: center; }

/* рамка для видео (How it works, About) */
.media-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Header (sticky) ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid var(--color-border);
  padding: 0 var(--gutter);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 16px 0;
}

@media (min-width: 1200px) {
  .header { padding: 0 80px; }
}

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

.brand__text { display: flex; flex-direction: column; }

.brand__name {
  color: var(--color-white);
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  line-height: 28px;
  letter-spacing: -0.9px;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand__accent { color: var(--color-yellow); }

.brand__country {
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 32px; }

.nav__link {
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}

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

/* ===== Button ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11.19px;
  padding: 16px 28.8px;
  background: var(--color-yellow-btn);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(255, 212, 0, 0.22);
  color: var(--color-surface-dark);
  font-size: 15.2px;
  font-weight: 900;
  line-height: 15.2px;
  letter-spacing: 1.216px;
  text-transform: uppercase;
  white-space: nowrap;
  isolation: isolate;
}

/* затемнение при наведении (вариант Variant2 в макете: чёрный 20%) */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: #000;
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover::before { opacity: 0.2; }

.btn__icon { width: 19.2px; height: 19.2px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  margin-top: calc(var(--header-height) * -1); /* hero начинается под шапкой */
  padding: 120px var(--gutter) 72px;
  overflow: hidden;
}

/* видео под шапкой, как в макете. 35% по вертикали: на 1920×1080 срез сверху такой же, как в Figma (кадр 1920×1200) */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 50%, var(--color-bg) 100%);
}

.hero__content {
  position: relative; /* поверх видео и затемнения */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: max-content;
  max-width: 100%;
  padding-top: 2px;
}

.hero__badge {
  padding: 4px 16px;
  background: var(--color-yellow);
  border-radius: 4px;
  color: #000;
  font-size: 12px;
  font-weight: 900;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hero__title {
  padding-top: 8px;
  font-size: 72px;
  font-weight: 800;
  line-height: 72px;
  white-space: nowrap;
}

.hero__title em {
  color: var(--color-yellow);
  font-weight: 800;
  font-style: italic;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.9px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__text {
  max-width: 672px;
  padding-top: 8px;
  color: var(--color-text);
  font-size: 20px;
  line-height: 28px;
}

.hero__actions { padding-top: 24px; }

/* ===== Promo materials (бегущая лента) ===== */
.promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding-left: 0;
  padding-right: 0;
  background: var(--color-surface);
}

.promo__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--container);
  padding: 0 var(--gutter);
  text-align: center;
}

.promo__lead {
  max-width: 672px;
  color: var(--color-muted);
  font-size: 20px;
  line-height: 28px;
}

/* бесконечная лента: листается мышью (js/main.js), колесом и пальцем */
.carousel {
  position: relative;
  width: 100%;
}

/* затухание по краям */
.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 120px;
  pointer-events: none;
}

.carousel::before { left: 0; background: linear-gradient(to right, var(--color-surface), rgba(26, 26, 26, 0)); }
.carousel::after { right: 0; background: linear-gradient(to left, var(--color-surface), rgba(26, 26, 26, 0)); }

.carousel__scroll {
  padding: 32px 0; /* место для тени карточек */
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.carousel__scroll::-webkit-scrollbar { display: none; }
.carousel__scroll.is-dragging { cursor: grabbing; }

.carousel__track { display: flex; width: max-content; }

.carousel__set {
  display: flex;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.carousel__item { flex-shrink: 0; padding: 0 20px; }

.promo-card {
  position: relative;
  overflow: hidden;
  width: 320px;
  height: 450px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.promo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.promo-card:hover img { transform: scale(1.05); }

/* ===== Final CTA ===== */
.cta {
  padding: 96px var(--gutter);
  background: linear-gradient(143.08deg, #ffcc00 0%, #f5af19 100%);
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 896px;
  margin: 0 auto;
  color: #000;
  text-align: center;
}

.cta__title {
  font-size: 60px;
  font-weight: 900;
  line-height: 60px;
  letter-spacing: -3px;
  text-transform: uppercase;
}

.cta__text {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  opacity: 0.8;
}

.cta__actions { padding-top: 16px; }

/* ===== Footer ===== */
.footer {
  padding: 48px var(--gutter);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 1200px) {
  .footer { padding-left: 144px; padding-right: 144px; }
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand-text { display: flex; flex-direction: column; }

.footer__name {
  font-size: 18px;
  font-weight: 900;
  line-height: 28px;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer__accent { color: var(--color-yellow); }

.footer__country {
  color: var(--color-muted-dark);
  font-size: 10px;
  font-weight: 700;
  line-height: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer__social {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-link {
  display: block;
  padding: 3px 0;
  color: var(--color-muted);
  transition: color 0.2s;
}

.social-link:hover { color: var(--color-yellow); }
.social-link svg { display: block; }

.footer__copy {
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

/* ===== Testimonials ===== */
.testimonials__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.testimonial {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

/* декоративная кавычка, частично обрезана краем карточки */
.testimonial__quote {
  position: absolute;
  top: -6px;
  left: -8px;
  pointer-events: none;
}

.testimonial__text {
  position: relative; /* поверх кавычки */
  margin: 0;
  padding-bottom: 32px;
  color: var(--color-text);
  font-size: 16px;
  font-style: italic;
  line-height: 24px;
}

.testimonial__author {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-yellow);
  border-radius: 50%;
  color: #000;
  font-size: 16px;
  font-weight: 900;
  line-height: 24px;
}

.testimonial__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.testimonial__role {
  color: var(--color-muted-dark);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* ===== About ===== */
.about__card {
  display: grid;
  grid-template-columns: 1fr 504px;
  align-items: center;
  gap: 48px;
  padding: 48px;
  background: linear-gradient(152.41deg, #1a1a1a 0%, #000 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.about__content { display: flex; flex-direction: column; gap: 32px; }

.about__title {
  color: var(--color-yellow);
  font-size: 36px;
  font-weight: 900;
  font-style: italic;
  line-height: 40px;
  text-transform: uppercase;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--color-text);
  font-size: 20px;
  line-height: 28px;
}

.about__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}

.about__feature {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 28px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.about__video {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(255, 204, 0, 0.15);
}

.about__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== How it works ===== */
.steps { background: var(--color-surface); }

.steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px;
  width: 100%;
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ffcc00 0%, #f5af19 100%);
  border-radius: 50%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  color: #000;
  font-size: 36px;
  font-weight: 900;
  line-height: 40px;
}

.step__title {
  padding-top: 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

.step__text {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 24px;
}

.steps__video {
  width: 100%;
  max-width: 896px;
  aspect-ratio: 1 / 1;
}

/* ===== Advantages ===== */
.advantages__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.card__icon {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 7px 0;
}

.card__title {
  padding-top: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.card__text {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 26px;
}

/* ===== Mobile menu (бургер и боковое меню, только < 768px) ===== */
.burger { display: none; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  transition: visibility 0s linear 0.3s;
}

.mobile-menu.is-open {
  visibility: visible;
  transition-delay: 0s;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }

.mobile-menu__panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 40px 40px 96px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.is-open .mobile-menu__panel { transform: translateY(0); }

.mobile-menu__top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 38px;
  margin-bottom: 48px;
}

.mobile-menu__close { padding: 0; background: none; border: 0; cursor: pointer; line-height: 0; }

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu__link {
  display: block;
  font-size: 30px;
  font-weight: 900;
  line-height: 36px;
  text-transform: uppercase;
}

.mobile-menu__link--accent { color: var(--color-yellow); }

body.is-menu-open { overflow: hidden; }

/* ===== Планшет и ниже (< 1200px) ===== */
@media (max-width: 1199px) {
  /* человек на видео справа: на узком экране сдвигаем кадр к нему */
  .hero__video { object-position: 85% 35%; }

  .section-title { font-size: 40px; line-height: 44px; letter-spacing: -2px; }

  .hero__title { font-size: clamp(48px, 9vw, 72px); line-height: 1.05; }

  .hero__subtitle {
    font-size: clamp(24px, 4.6vw, 36px);
    line-height: 1.12;
    white-space: normal;
  }

  .steps__list { gap: 32px; }

  .about__card { grid-template-columns: 1fr; padding: 48px; }
  .about__video { width: 100%; max-width: 504px; margin: 0 auto; }

  .cta__title { font-size: 48px; line-height: 48px; letter-spacing: -2.4px; }
}

@media (max-width: 1023px) {
  .advantages__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .testimonials__list {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }

  .footer__inner { flex-direction: column; gap: 16px; text-align: center; }
}

/* ===== Мобильная версия (< 768px, по макету 390) ===== */
@media (max-width: 767px) {
  :root { --gutter: 24px; --header-height: 81px; }

  .nav { display: none; }

  .hero__video { object-position: 92% 35%; }

  .burger {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 8px 13px;
    background: none;
    border: 0;
    cursor: pointer;
  }

  .header__inner { padding: 16px 0; }

  .brand__name { color: var(--color-yellow); font-size: 14px; }
  .brand__accent { color: var(--color-white); }

  .section-title { font-size: 30px; line-height: 36px; letter-spacing: -1.5px; }

  /* hero: текст по центру */
  .hero__content {
    align-items: center;
    width: 100%;
    max-width: 292px;
    text-align: center;
  }

  .hero__title { font-size: 48px; line-height: 60px; white-space: normal; }
  .hero__title em { display: block; }

  .hero__subtitle { font-size: 24px; line-height: 32px; letter-spacing: -0.6px; }
  .hero__text { font-size: 18px; }

  .advantages__list { grid-template-columns: 1fr; }

  .steps__list { grid-template-columns: 1fr; gap: 64px; }

  .about__card { padding: 32px; background: linear-gradient(109.88deg, #1a1a1a 0%, #000 100%); }
  .about__title { font-size: 30px; line-height: 36px; }
  .about__text { font-size: 18px; line-height: 29.25px; }
  .about__features { grid-template-columns: 1fr; }
  .about__video { max-width: none; }

  .promo__lead { font-size: 18px; }

  .promo-card { width: 250px; height: 350px; }
  .carousel__item { padding: 0 15px; }

  .cta__title { padding-bottom: 36px; font-size: 36px; line-height: 36px; letter-spacing: -1.8px; }
  .cta__text { font-size: 20px; line-height: 28px; }

  .footer__copy { padding: 0 16px; }
}
