/* ==========================================================================
   Шрифт и переменные
   Брейкпоинты: 600px, 960px, 1280px, 1920px
   ========================================================================== */

@font-face {
  font-family: "Netflix Sans";
  src: url("../fonts/netflix-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Netflix Sans";
  src: url("../fonts/netflix-sans-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Netflix Sans";
  src: url("../fonts/netflix-sans-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --font: "Netflix Sans", "Helvetica Neue", "Segoe UI", Roboto, Ubuntu, sans-serif;

  --red: rgb(229, 9, 20);
  --red-hover: rgb(193, 17, 25);
  --red-active: rgb(153, 22, 29);
  --text: #fff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --field-bg: rgba(22, 22, 22, 0.7);
  --field-border: rgba(128, 128, 128, 0.7);
  --surface: rgb(35, 35, 35);
  --surface-raised: rgb(45, 45, 45);
  --surface-hover: rgb(65, 65, 65);

  --ease-out: cubic-bezier(0.32, 0.94, 0.6, 1);
  --page-max: 120rem;
  --gutter: 1.5rem;
}

@media (min-width: 600px)  { :root { --gutter: 2rem; } }
@media (min-width: 960px)  { :root { --gutter: 5rem; } }
@media (min-width: 1280px) { :root { --gutter: 9.25rem; } }
@media (min-width: 1920px) { :root { --gutter: 22.125rem; } }

/* ==========================================================================
   База
   ========================================================================== */

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: #000;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
}

body:has(dialog[open]) {
  overflow: hidden;
}

h1, h2, h3, p {
  margin: 0;
}

img,
svg {
  display: block;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

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

[hidden] {
  display: none !important;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.25rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 250ms var(--ease-out);
}

.btn svg {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
}

.btn:active {
  color: var(--text-muted);
}

.btn--primary { background: var(--red); }
.btn--primary:hover { background: var(--red-hover); }
.btn--primary:active { background: var(--red-active); }

.btn--secondary { background: rgba(128, 128, 128, 0.4); }
.btn--secondary:hover,
.btn--secondary:active { background: rgba(128, 128, 128, 0.3); }

.btn--sm {
  min-height: 2rem;
  padding: 0.25rem 1rem;
  font-size: 0.875rem;
}

.btn--md {
  min-height: 2.5rem;
  padding: 0.375rem 1rem;
  font-size: 1rem;
}

.btn--lg {
  min-height: 3rem;
  padding: 0.5rem 1rem;
  font-size: 1.125rem;
}

@media (min-width: 1280px) {
  .btn--lg { font-size: 1.5rem; }
}

/* ==========================================================================
   Выбор языка
   ========================================================================== */

.select {
  position: relative;
  display: inline-flex;
  width: fit-content;
}

.select select {
  appearance: none;
  height: 2rem;
  padding: 0 calc(2.25rem - 1px) 0 calc(2.125rem - 1px);
  border: 1px solid var(--field-border);
  border-radius: 0.25rem;
  background: var(--field-bg);
  font-size: 1rem;
  line-height: 1.25rem;
  color: var(--text);
  cursor: pointer;
}

.select option {
  background: #161616;
  color: var(--text);
}

.select__icon,
.select__caret {
  position: absolute;
  top: 50%;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.select__icon  { left: 0.75rem; }
.select__caret { right: 0.75rem; }

/* В шапке на телефоне остаются только иконки */
@media (max-width: 599.98px) {
  .select--compact select {
    width: calc(2.125rem + 1.75rem + 1px);
    padding-right: calc(1.75rem - 1px);
    color: transparent;
  }
}

/* ==========================================================================
   Шапка и первый экран
   ========================================================================== */

.top {
  position: relative;
  z-index: 1;
}

/* Красное свечение по бокам — видно только на экранах шире 1920px */
.top__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.top__glow::before,
.top__glow::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 100px;
}

.top__glow::before {
  z-index: 1;
  left: 50%;
  width: 165rem;
  transform: translateX(-50%);
  background:
    radial-gradient(11% 56% at 17% 50%, #461518 0%, transparent 100%),
    radial-gradient(11% 56% at 83% 50%, #461518 0%, transparent 100%);
}

.top__glow::after {
  z-index: 2;
  left: calc(50% - 0.25rem);
  width: 120.5rem;
  transform: translateX(calc(-50% + 0.25rem));
  background: linear-gradient(0deg, transparent 0%, #6f181d 50%, transparent 100%);
}

.header {
  position: relative;
  z-index: 2;
  height: 7.5rem;
  margin-bottom: -7.5rem;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.7889) 8.333%, rgba(0, 0, 0, 0.7556) 16.67%,
    rgba(0, 0, 0, 0.7) 25%, rgba(0, 0, 0, 0.6222) 33.33%, rgba(0, 0, 0, 0.5222) 41.67%,
    rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2778) 58.33%, rgba(0, 0, 0, 0.1778) 66.67%,
    rgba(0, 0, 0, 0.1) 75%, rgba(0, 0, 0, 0.04444) 83.33%, rgba(0, 0, 0, 0.01111) 91.67%,
    rgba(0, 0, 0, 0) 100%
  );
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--page-max);
  height: 5rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.header__logo img {
  width: auto;
  height: 1.5rem;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 960px) {
  .header__logo img { height: 2.5rem; }
}

@media (min-width: 1280px) {
  .header__inner { height: 5.5rem; }
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-top: 100px;
  overflow: hidden;
}

/* Минимальная высота первого экрана пропорциональна ширине */
.hero::before {
  content: "";
  width: 1px;
  margin-left: -1px;
  padding-top: 46.6667%;
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    360deg,
    rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.8965) 8.5%, rgba(0, 0, 0, 0.8861) 17%,
    rgba(0, 0, 0, 0.8688) 25.5%, rgba(0, 0, 0, 0.8444) 34%, rgba(0, 0, 0, 0.8132) 42.5%,
    rgba(0, 0, 0, 0.775) 51%, rgba(0, 0, 0, 0.7368) 59.5%, rgba(0, 0, 0, 0.7056) 68%,
    rgba(0, 0, 0, 0.6813) 76.5%, rgba(0, 0, 0, 0.6639) 85%, rgba(0, 0, 0, 0.6535) 93.5%,
    rgba(0, 0, 0, 0.65) 102%
  );
}

@media (min-width: 600px) {
  .hero__media::after {
    background-image: linear-gradient(
      360deg,
      rgba(0, 0, 0, 0.85) 3%, rgba(0, 0, 0, 0.8465) 11.08%, rgba(0, 0, 0, 0.8361) 19.17%,
      rgba(0, 0, 0, 0.8187) 27.25%, rgba(0, 0, 0, 0.7944) 35.33%, rgba(0, 0, 0, 0.7632) 43.42%,
      rgba(0, 0, 0, 0.725) 51.5%, rgba(0, 0, 0, 0.6868) 59.58%, rgba(0, 0, 0, 0.6556) 67.67%,
      rgba(0, 0, 0, 0.6313) 75.75%, rgba(0, 0, 0, 0.6139) 83.83%, rgba(0, 0, 0, 0.6035) 91.92%,
      rgba(0, 0, 0, 0.6) 100%
    );
  }
}

@media (min-width: 960px) {
  .hero__media::after {
    background-image: linear-gradient(
      12deg,
      rgba(0, 0, 0, 0.85) 36%, rgba(0, 0, 0, 0.8465) 40.58%, rgba(0, 0, 0, 0.8361) 45.17%,
      rgba(0, 0, 0, 0.8187) 49.75%, rgba(0, 0, 0, 0.7944) 54.33%, rgba(0, 0, 0, 0.7632) 58.92%,
      rgba(0, 0, 0, 0.725) 63.5%, rgba(0, 0, 0, 0.6868) 68.08%, rgba(0, 0, 0, 0.6556) 72.67%,
      rgba(0, 0, 0, 0.6313) 77.25%, rgba(0, 0, 0, 0.6139) 81.83%, rgba(0, 0, 0, 0.6035) 86.42%,
      rgba(0, 0, 0, 0.6) 91%
    );
  }
}

@media (min-width: 1280px) {
  .hero__media::after {
    background-image: linear-gradient(
      7deg,
      rgba(0, 0, 0, 0.85) 10%, rgba(0, 0, 0, 0.8465) 17.25%, rgba(0, 0, 0, 0.8361) 24.5%,
      rgba(0, 0, 0, 0.8187) 31.75%, rgba(0, 0, 0, 0.7944) 39%, rgba(0, 0, 0, 0.7632) 46.25%,
      rgba(0, 0, 0, 0.725) 53.5%, rgba(0, 0, 0, 0.6868) 60.75%, rgba(0, 0, 0, 0.6556) 68%,
      rgba(0, 0, 0, 0.6312) 75.25%, rgba(0, 0, 0, 0.6139) 82.5%, rgba(0, 0, 0, 0.6035) 89.75%,
      rgba(0, 0, 0, 0.6) 97%
    );
  }
}

@media (min-width: 1920px) {
  .hero__media::after {
    background-image: linear-gradient(
      360deg,
      rgba(0, 0, 0, 0.85) 8%, rgba(0, 0, 0, 0.8465) 15.67%, rgba(0, 0, 0, 0.8361) 23.33%,
      rgba(0, 0, 0, 0.8187) 31%, rgba(0, 0, 0, 0.7944) 38.67%, rgba(0, 0, 0, 0.7632) 46.33%,
      rgba(0, 0, 0, 0.725) 54%, rgba(0, 0, 0, 0.6868) 61.67%, rgba(0, 0, 0, 0.6556) 69.33%,
      rgba(0, 0, 0, 0.6312) 77%, rgba(0, 0, 0, 0.6139) 84.67%, rgba(0, 0, 0, 0.6035) 92.33%,
      rgba(0, 0, 0, 0.6) 100%
    );
  }
}

.hero__body {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 31rem;
  margin: -2rem auto 0;
  padding: 0 2rem 2rem;
}

.hero__text {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
}

.hero__subtitle {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 400;
}

@media (min-width: 600px) {
  .hero__text { max-width: 27rem; }
}

@media (min-width: 960px) {
  .hero__content { min-height: 37rem; }
  .hero__text { max-width: 31.75rem; }
  .hero__title { font-size: 2.5rem; }
  .hero__subtitle { margin-bottom: 1.5rem; }
}

@media (min-width: 1280px) {
  .hero__content { min-height: min(80vh, 45rem); }
  .hero__text { max-width: 36.75rem; }
  .hero__title { margin-bottom: 1rem; font-size: 3.5rem; }
  .hero__subtitle { margin-bottom: 2rem; font-size: 1.25rem; font-weight: 500; }
}

@media (min-width: 1920px) {
  .hero__text { max-width: 41.5rem; }
  .hero__title { margin-bottom: 1.5rem; font-size: 4rem; }
}

/* Красная дуга внизу первого экрана */
.hero__curve {
  position: relative;
  z-index: 1;
  height: 6.25rem;
  overflow: hidden;
}

.hero__curve-arc {
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  border: 0.25rem solid transparent;
  border-bottom: 0;
  border-top-left-radius: 50% 100%;
  border-top-right-radius: 50% 100%;
  background:
    radial-gradient(50% 500% at 50% -420%, rgba(64, 97, 231, 0.4) 80%, rgba(0, 0, 0, 0.1) 100%),
    #000;
  background-clip: padding-box;
}

.hero__curve-arc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  margin-top: -0.25rem;
  border-radius: inherit;
  background: linear-gradient(
    to right,
    rgb(33, 13, 22) 16%,
    rgb(184, 40, 105),
    rgb(229, 9, 20),
    rgb(184, 40, 105),
    rgb(33, 13, 22) 84%
  );
}

@media (min-width: 600px)  { .hero__curve-arc { left: -40%; width: 180%; } }
@media (min-width: 960px)  { .hero__curve-arc { left: -25%; width: 150%; } }
@media (min-width: 1280px) { .hero__curve-arc { left: -15%; width: 130%; } }
@media (min-width: 1920px) { .hero__curve-arc { left: -10%; width: 120%; } }

/* ==========================================================================
   Призыв к подписке (заголовок + кнопка)
   ========================================================================== */

.signup {
  width: 100%;
  margin: 0 auto;
}

.signup__title {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.signup__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
}

/* Нижняя форма на телефоне выровнена по левому краю */
.signup--start .signup__title { text-align: start; }
.signup--start .signup__row { align-items: flex-start; }

@media (min-width: 600px) {
  .signup--start .signup__title { text-align: center; }
  .signup--start .signup__row { align-items: center; }
}

@media (min-width: 960px) {
  .signup { max-width: 40.1875rem; }
}

@media (min-width: 1280px) {
  .signup { max-width: 48.9375rem; }
}

/* ==========================================================================
   Основной контент
   ========================================================================== */

.container {
  position: relative;
  z-index: 2;
  max-width: var(--page-max);
  margin: -3rem auto 0;
  padding: 0 var(--gutter);
}

.section {
  margin-bottom: 3.5rem;
}

.section__title {
  font-size: 1.125rem;
  font-weight: 500;
}

@media (min-width: 600px) {
  .container { margin-top: -2rem; }
}

@media (min-width: 960px) {
  .section { margin-bottom: 4rem; }
  .section__title { font-size: 1.5rem; }
}

@media (min-width: 1920px) {
  .section__title { font-size: 2rem; font-weight: 700; }
}

/* --- Рекламный баннер --- */

.promo {
  padding-top: 1.75rem;
}

.promo__banner {
  position: relative;
  display: flex;
}

.promo__icon {
  position: absolute;
  top: -3.9375rem;
  left: 0;
  z-index: 2;
  width: 96px;
  height: 96px;
  transform: scale(0.7);
}

.promo__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 1rem;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(91deg, #261733, #151a3f);
}

.promo__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(91deg, #482566 0%, #161d52 99.51%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.33, 0, 0, 1);
}

.promo__card:hover::before {
  opacity: 1;
}

.promo__title {
  font-size: 1.25rem;
  font-weight: 500;
}

.promo__text {
  font-size: 1rem;
}

@media (min-width: 600px) {
  .promo { padding-top: 0; }
  .promo__icon { top: -1.125rem; transform: scale(0.8); }
  .promo__card {
    flex-direction: row;
    align-items: center;
    margin-left: 6.25rem;
    padding: 0.75rem 1.5rem;
  }
}

@media (min-width: 960px)  { .promo__card { padding: 0.875rem 1.5rem; } }
@media (min-width: 1280px) { .promo__card { padding: 1rem 2rem; } }
@media (min-width: 1920px) { .promo__card { padding: 1rem 2.5rem; } }

/* --- Trending Now --- */

.carousel {
  position: relative;
  margin-top: 0.75rem;
}

.carousel__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel__list::-webkit-scrollbar {
  display: none;
}

.carousel__item {
  display: flex;
  flex-shrink: 0;
  padding: 0.3rem 0.625rem;
  scroll-snap-align: start;
  scroll-margin-inline-start: 2.3rem;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 7.5rem;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: var(--surface);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 250ms var(--ease-out);
}

.carousel__arrow:hover {
  background: var(--surface-hover);
}

.carousel__arrow svg {
  width: 1.5rem;
  height: 1.5rem;
}

.carousel__arrow--prev { left: -1.75rem; }
.carousel__arrow--next { right: -1.75rem; }

.carousel__arrow[hidden] {
  display: none;
}

.title-card {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.title-card:hover {
  z-index: 2;
  transform: scale(1.05);
}

.title-card__poster {
  width: 7rem;
  height: 9.8rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

/* Номер в топе: чёрная цифра с белой обводкой */
.title-card__rank {
  position: absolute;
  bottom: 0.1rem;
  left: -0.625rem;
  z-index: 2;
  font-size: 4rem;
}

.title-card__rank-num {
  position: relative;
  display: inline-block;
  height: 1em;
  font-weight: 700;
  line-height: 1;
  color: var(--surface-hover);
  -webkit-text-stroke: 0.25rem #fff;
  text-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.5);
}

.title-card__rank-num::before {
  content: attr(data-rank);
  position: absolute;
  -webkit-text-fill-color: #000;
  -webkit-text-stroke: 0;
}

@media (min-width: 600px) {
  .carousel__item { scroll-margin-inline-start: 2.4rem; }
  .carousel__arrow:not([hidden]) { display: flex; }
}

@media (min-width: 960px) {
  .carousel { margin-top: 1rem; }
  .carousel__item { padding: 0.4rem 1.375rem; }
  .carousel__arrow--prev { left: -2.5rem; }
  .carousel__arrow--next { right: -2.5rem; }
  .title-card__poster { width: 8.75rem; height: 12.25rem; }
  .title-card__rank { bottom: 0; left: -1.375rem; font-size: 5rem; }
}

@media (min-width: 1280px) {
  .carousel__item { padding: 0.5rem 1.375rem; scroll-margin-inline-start: 2.75rem; }
  .title-card__poster { width: 11.25rem; height: 15.75rem; }
  .title-card__rank { font-size: 6.25rem; }
}

@media (min-width: 1920px) {
  .carousel { margin-top: 1.5rem; }
  .carousel__item { padding: 0.55rem 1.375rem; }
  .title-card__poster { width: 13.375rem; height: 18.75rem; }
  .title-card__rank { font-size: 7.5rem; }
}

/* --- More Reasons to Join --- */

.reasons__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
}

.reason-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 1rem 5rem;
  overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(149deg, #192247 0%, #210e17 99.08%);
}

.reason-card__title {
  font-size: 1.25rem;
  font-weight: 500;
}

.reason-card__text {
  color: var(--text-muted);
}

.reason-card__icon {
  position: absolute;
  right: 0.25rem;
  bottom: 0.25rem;
  width: 72px;
  height: 72px;
  margin-bottom: 0.25rem;
  transform: scale(0.88);
  transform-origin: bottom right;
}

@media (min-width: 600px) {
  .reason-card {
    padding: 1.5rem 1rem 6rem;
    background: linear-gradient(149deg, #192247 0%, #210e17 96.86%);
  }
}

@media (min-width: 960px) {
  .reasons__grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 1rem; }
  .reason-card { gap: 0.75rem; padding: 1.5rem 1.5rem 6rem; }
  .reason-card__icon { right: 0.5rem; bottom: 0.5rem; transform: none; }
}

@media (min-width: 1280px) {
  .reasons__grid { grid-template-columns: repeat(4, 1fr); gap: 0.75rem 1rem; }
  .reason-card { gap: 1rem; padding: 1.5rem 1rem 8rem; }
  .reason-card__title { font-size: 1.5rem; }
  .reason-card__icon { right: 0.75rem; bottom: 0.75rem; }
}

@media (min-width: 1920px) {
  .reason-card { gap: 1.5rem; padding: 2rem 1.5rem 8rem; }
  .reason-card__icon { right: 1rem; bottom: 1rem; }
}

/* --- FAQ --- */

.faq__list {
  display: flow-root;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.faq__item {
  margin-bottom: 0.5rem;
}

.faq__question {
  font-size: 1.125rem;
  font-weight: 400;
}

.faq__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem;
  border: 0;
  background: var(--surface-raised);
  text-align: left;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.68, 0.06);
}

.faq__button:hover {
  background: var(--surface-hover);
  transition-timing-function: var(--ease-out);
}

.faq__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.75rem;
  transition: transform 250ms var(--ease-out);
}

.faq__button[aria-expanded="true"] .faq__icon {
  transform: rotate(-45deg);
}

.faq__answer {
  margin-top: 1px;
  padding: 1.5rem;
  background: var(--surface-raised);
  font-size: 1.125rem;
}

@media (min-width: 960px) {
  .faq__question,
  .faq__answer { font-size: 1.5rem; }
  .faq__icon { width: 2.25rem; height: 2.25rem; }
}

/* --- Нижняя форма --- */

.section--signup {
  padding-bottom: 1.25rem;
}

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

.footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.25rem;
  padding-bottom: 6rem;
  color: var(--text-muted);
}

.footer__contact,
.footer .select {
  margin: 3px;
}

.footer a {
  border-radius: 0.125rem;
  color: var(--text-muted);
}

.footer__links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
  margin: 0 0 0.875rem;
  padding: 4px;
  list-style: none;
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer__links li {
  display: flex;
  align-items: flex-start;
}

@media (min-width: 600px)  { .footer__links { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px)  { .footer__links { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .footer__links { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   Модальное окно с описанием тайтла
   ========================================================================== */

.modal {
  width: min(100% - 2rem, 54rem);
  max-height: calc(100% - 2rem);
  padding: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 0.5rem;
  background: rgb(22, 22, 22);
  color: var(--text);
}

.modal[open] {
  animation: modal-in 250ms var(--ease-out);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96); }
}

.modal__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface);
}

.modal__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(22, 22, 22) 0%, rgba(22, 22, 22, 0) 55%);
}

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

.modal__logo {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 1;
  max-width: 55%;
  max-height: 35%;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: background-color 250ms var(--ease-out);
}

.modal__close:hover {
  background: rgba(0, 0, 0, 0.85);
}

.modal__close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.modal__body {
  padding: 0.5rem 1.5rem 2rem;
}

.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.modal__tags li {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(128, 128, 128, 0.25);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.modal__synopsis {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

@media (min-width: 600px) {
  .modal__logo { left: 2rem; }
  .modal__body { padding: 0.5rem 2rem 2rem; }
  .modal__synopsis { font-size: 1.125rem; }
}

/* ==========================================================================
   Квиз и скретч-карты
   ========================================================================== */

.quiz-modal {
  width: min(100% - 1rem, 68rem);
  max-height: calc(100% - 1rem);
  padding: 0;
  overflow: hidden auto;
  border: 1px solid rgba(220, 170, 105, 0.2);
  border-radius: 1.5rem;
  background: #080506;
  box-shadow: 0 2rem 8rem rgba(0, 0, 0, 0.84), 0 0 6rem rgba(96, 8, 18, 0.3);
  color: var(--text);
}

.quiz-modal[open] {
  animation: quiz-modal-in 420ms var(--ease-out);
}

.quiz-modal::backdrop {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
}

.quiz-modal__glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 0%, rgba(229, 9, 20, 0.22), transparent 38%),
    radial-gradient(circle at 90% 100%, rgba(88, 28, 135, 0.18), transparent 40%);
  pointer-events: none;
}

.quiz-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(220, 170, 105, 0.24);
  border-radius: 50%;
  place-items: center;
  background: rgba(10, 7, 8, 0.72);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.quiz-modal__close:hover {
  border-color: rgba(220, 170, 105, 0.55);
  background: rgba(83, 17, 25, 0.9);
  transform: rotate(4deg) scale(1.05);
}

.quiz-modal__close svg {
  width: 1.2rem;
  height: 1.2rem;
}

.quiz-shell {
  position: relative;
  min-height: min(44rem, calc(100vh - 1rem));
  padding: 1rem;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.9)),
    url("../images/hero.jpg") center / cover no-repeat;
}

.quiz-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 32%, rgba(229, 9, 20, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.quiz-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-right: 3.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.quiz-brand img {
  width: auto;
  height: 1.5rem;
}

.quiz-brand__badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  color: rgba(232, 204, 164, 0.78);
  white-space: nowrap;
  text-transform: uppercase;
}

.quiz-brand__badge::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #d7a968;
  box-shadow: 0 0 0.8rem rgba(215, 169, 104, 0.8);
}

.quiz-screen {
  position: relative;
  z-index: 1;
  width: min(100%, 49rem);
  margin: 0 auto;
  padding: 1.75rem 0 1rem;
}

.quiz-screen[hidden] {
  display: none;
}

.quiz-screen.is-entering {
  animation: quiz-screen-in 420ms var(--ease-out);
}

.quiz-progress {
  margin-bottom: 1.35rem;
}

.quiz-progress__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.quiz-progress__track {
  height: 0.3rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.quiz-progress__track span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b20710, #ff3340);
  box-shadow: 0 0 1.5rem rgba(229, 9, 20, 0.8);
  transition: width 420ms var(--ease-out);
}

.quiz-eyebrow {
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #dcb47c;
  text-transform: uppercase;
}

.quiz-heading {
  max-width: 42rem;
  font-size: clamp(1.8rem, 5vw, 3.25rem);
  line-height: 1.08;
  text-wrap: balance;
}

.quiz-copy {
  max-width: 40rem;
  margin-top: 0.65rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.quiz-answers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.quiz-answer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.55rem 3rem 0.55rem 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0.75rem;
  background: linear-gradient(145deg, rgba(45, 45, 45, 0.8), rgba(20, 20, 20, 0.9));
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms var(--ease-out);
}

.quiz-answer::after {
  content: "›";
  position: absolute;
  right: 1rem;
  font-size: 1.75rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color 180ms ease, transform 180ms ease;
}

.quiz-answer:hover,
.quiz-answer.is-selected {
  border-color: rgba(255, 48, 59, 0.8);
  background: linear-gradient(145deg, rgba(100, 13, 20, 0.9), rgba(28, 11, 14, 0.95));
  transform: translateY(-2px);
}

.quiz-answer:hover::after,
.quiz-answer.is-selected::after {
  color: #fff;
  transform: translateX(0.2rem);
}

.quiz-answer__index {
  display: grid;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  place-items: center;
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.82rem;
  font-weight: 700;
}

.quiz-answer__text {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
}

.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.quiz-back svg {
  width: 1.25rem;
  height: 1.25rem;
}

.quiz-screen--cards {
  width: min(100%, 56rem);
  padding-top: 1.75rem;
  text-align: center;
}

.quiz-screen--cards .quiz-heading,
.quiz-screen--cards .quiz-copy {
  margin-inline: auto;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.25rem;
  perspective: 75rem;
}

.reward-card {
  position: relative;
  aspect-ratio: 1.52 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(225, 181, 121, 0.26);
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 64, 76, 0.3), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 26%),
    linear-gradient(145deg, #2a080c 0%, #810c18 52%, #1b0508 100%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.14),
    inset 0 -1px rgba(0, 0, 0, 0.45),
    0 0.75rem 2rem rgba(0, 0, 0, 0.38);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 260ms var(--ease-out), border-color 260ms ease, filter 260ms ease;
}

.reward-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 15%, rgba(255, 255, 255, 0.09) 35%, transparent 54%),
    repeating-radial-gradient(circle at 100% 0%, transparent 0 13px, rgba(255, 255, 255, 0.035) 14px 15px);
  transform: translateX(-30%);
  transition: transform 600ms var(--ease-out);
}

.reward-card::after {
  content: "";
  position: absolute;
  inset: 0.38rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.58rem;
  pointer-events: none;
}

.reward-card:nth-child(3n + 2) {
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 61, 73, 0.24), transparent 32%),
    linear-gradient(145deg, #21070a 0%, #640912 55%, #180507 100%);
}

.reward-card:nth-child(3n) {
  background:
    radial-gradient(circle at 78% 72%, rgba(255, 77, 88, 0.28), transparent 34%),
    linear-gradient(145deg, #36080e 0%, #a20f1e 52%, #220509 100%);
}

.reward-card:hover {
  z-index: 2;
  border-color: rgba(229, 193, 142, 0.72);
  filter: brightness(1.15);
  transform: translateY(-0.42rem) rotateX(3deg) scale(1.04);
}

.reward-card:hover::before {
  transform: translateX(30%);
}

.reward-card:disabled {
  cursor: default;
}

.reward-card.is-used {
  filter: saturate(0.35) brightness(0.55);
  transform: none;
}

.reward-card.is-used .reward-card__monogram,
.reward-card.is-used .reward-card__number {
  opacity: 0.18;
}

.reward-card__number {
  position: absolute;
  top: 0.68rem;
  right: 0.78rem;
  z-index: 1;
  font-size: clamp(0.68rem, 2.2vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e6c18e;
}

.reward-card__monogram {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: clamp(1.3rem, 5.4vw, 2.2rem);
  height: auto;
  color: rgba(255, 255, 255, 0.94);
  filter: drop-shadow(0 0.45rem 0.7rem rgba(0, 0, 0, 0.55));
  transform: translate(-50%, -50%);
}

.reward-card__edge {
  position: absolute;
  right: 0.72rem;
  bottom: 0;
  left: 0.72rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 193, 142, 0.58), transparent);
}

.reward-card__used-value {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(5, 4, 4, 0.48);
  font-weight: 700;
  backdrop-filter: blur(2px);
}

.reward-card__used-value span {
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1;
}

.reward-card__used-value small {
  margin-top: 0.32rem;
  font-size: clamp(0.42rem, 1.4vw, 0.6rem);
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.reward-status {
  min-height: 1.5rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.68);
}

.quiz-screen--scratch {
  text-align: center;
}

.quiz-screen--scratch .quiz-heading,
.quiz-screen--scratch .quiz-copy {
  margin-inline: auto;
}

.scratch-stage {
  display: grid;
  min-height: 17rem;
  margin-top: 1.25rem;
  place-items: center;
  perspective: 70rem;
}

.scratch-card {
  position: relative;
  width: min(100%, 25rem);
  aspect-ratio: 1.58 / 1;
  overflow: hidden;
  border: 1px solid rgba(220, 180, 124, 0.5);
  border-radius: 1.25rem;
  background: #140206;
  box-shadow:
    inset 0 0 0 1px rgba(229, 9, 20, 0.14),
    0 1.75rem 5rem rgba(0, 0, 0, 0.65),
    0 0 3rem rgba(229, 9, 20, 0.25);
  animation: scratch-card-in 620ms var(--ease-out);
}

.scratch-card__prize {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(229, 9, 20, 0.38), transparent 42%),
    linear-gradient(145deg, #350308, #0c0c0c 65%);
}

.scratch-card__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #ff6972;
  text-transform: uppercase;
}

.scratch-card__prize strong {
  font-size: clamp(3.5rem, 13vw, 6rem);
  line-height: 1;
  letter-spacing: -0.06em;
  text-shadow: 0 0 2rem rgba(229, 9, 20, 0.48);
}

.scratch-card__message {
  margin-top: 0.35rem;
  color: var(--text-muted);
}

.scratch-card__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  transition: opacity 450ms ease;
}

.scratch-card__canvas:active {
  cursor: grabbing;
}

.scratch-card.is-revealed .scratch-card__canvas {
  opacity: 0;
  pointer-events: none;
}

.scratch-card.is-winner {
  animation: winner-pulse 800ms var(--ease-out);
}

.scratch-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.scratch-hint {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.quiz-screen--result {
  width: 100%;
  padding: 1rem 0 0;
}

.result-art {
  position: relative;
  min-height: 36rem;
  overflow: hidden;
  border-radius: 1rem;
  background: #180305;
}

.result-art > img,
.result-art__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.result-art > img {
  object-fit: cover;
}

.result-art__shade {
  background: linear-gradient(0deg, rgba(5, 5, 5, 0.98) 2%, rgba(5, 5, 5, 0.5) 55%, rgba(5, 5, 5, 0.12));
}

.result-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 36rem;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 4rem 1.25rem 2.5rem;
  text-align: center;
}

.result-check,
.locked-icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  place-items: center;
  background: var(--red);
  box-shadow: 0 0 2rem rgba(229, 9, 20, 0.65);
  font-size: 1.6rem;
  font-weight: 700;
}

.result-title {
  max-width: 42rem;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.04;
  text-wrap: balance;
}

.result-title strong {
  color: #ff3541;
}

.result-copy {
  max-width: 36rem;
  margin: 1rem auto 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.confetti {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  top: -2rem;
  width: 0.45rem;
  height: 1rem;
  background: var(--confetti-color, #e50914);
  animation: confetti-fall var(--confetti-duration, 3s) linear var(--confetti-delay, 0s) infinite;
}

.quiz-screen--locked {
  display: flex;
  min-height: 34rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.quiz-screen--locked[hidden] {
  display: none;
}

.locked-prize {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.25rem;
}

.quiz-screen--locked .quiz-copy {
  margin: 0 0 1.5rem;
}

.quiz-disclaimer {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 0.75rem 0.75rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  line-height: 1.45;
  text-align: center;
}

@media (min-width: 600px) {
  .quiz-modal { width: min(100% - 2rem, 68rem); max-height: calc(100% - 2rem); }
  .quiz-shell { min-height: min(44rem, calc(100vh - 2rem)); padding: 1.5rem 2.5rem 1rem; }
  .quiz-brand img { height: 2rem; }
  .quiz-answers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reward-grid { gap: 0.9rem; }
  .reward-card { border-radius: 1rem; }
  .result-content { padding-inline: 3rem; }
}

@media (min-width: 960px) {
  .quiz-shell { padding-inline: 4rem; }
  .reward-grid { gap: 1rem; }
}

@keyframes quiz-modal-in {
  from { opacity: 0; transform: translateY(1rem) scale(0.975); }
}

@keyframes quiz-screen-in {
  from { opacity: 0; transform: translateY(0.75rem); }
}

@keyframes scratch-card-in {
  0% { opacity: 0; transform: translateY(3rem) rotateX(16deg) scale(0.72); }
  65% { opacity: 1; transform: translateY(-0.5rem) rotateX(-2deg) scale(1.035); }
  100% { transform: none; }
}

@keyframes winner-pulse {
  35% { transform: scale(1.045); box-shadow: 0 2rem 6rem rgba(229, 9, 20, 0.65); }
}

@keyframes confetti-fall {
  to { transform: translate3d(var(--confetti-drift, 2rem), 42rem, 0) rotate(720deg); }
}

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