@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..900&display=swap');

/* палитра основного ленда: графит + зелёный неон + золото */
:root {
  --accent: #2fd47e;
  --accent-hover: #45e08f;
  --accent-strong: #1fb767;
  --accent-light: rgba(47, 212, 126, 0.1);
  --accent-glow: rgba(47, 212, 126, 0.45);
  --gold: #e6bd62;
  --gold-light: #f6dc98;
  --on-accent: #06140c;
  --heading: #ffffff;
  --text: #d4d7dc;
  --muted: #8b9098;
  --bg: #0a0b0d;
  --surface: #141619;
  --surface-2: #1b1e22;
  --border: #2a2e34;
  --divider: #2c3036;
  --hover: #20242a;
  --shadow-card:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 80px -30px rgba(47, 212, 126, 0.35);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

body {
  font-family: 'Inter', Arial, sans-serif !important;
  background: var(--bg) !important;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

#car {
  display: none !important;
}

#prize {
  display: none;
}

#prize__image {
  display: none !important;
}

.wrapper {
  background: var(--bg);
}

.container {
  max-width: 1440px !important;
}

#app-main__container {
  justify-content: flex-end;
}

.app-main__container {
  min-height: 700px !important;
}

/* background */
.bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}

/* плавный переход фото в фон страницы, как на основном ленде */
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(10, 11, 13, 0.55) 100%);
  pointer-events: none;
}

.bg img {
  display: none !important;
}

/* quiz card */
.quiz {
  display: flex !important;
  justify-content: center !important;
  position: static !important;
  margin: 40px 0 40px 0;
  align-self: center;
}

.quiz__container {
  max-width: 480px !important;
  min-width: 480px !important;
  height: fit-content;
  margin: 0;
  padding: 32px 32px 28px !important;
  /* the card must stay unpositioned, without overflow/backdrop-filter,
     because #optin-cookie-layer (position: fixed) lives inside the form */
  background: linear-gradient(
    180deg,
    rgba(27, 30, 34, 0.96) 0%,
    rgba(17, 19, 22, 0.97) 100%
  ) !important;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.quiz-pc__wrapper {
  background: none;
  padding: 0;
  border-radius: 0;
}

.title {
  position: static;
  transform: none;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0 0 14px;
  background: none;
  font-weight: 850;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: left;
  color: var(--heading);
}

/* «Ihre Chance:» — золотой бейдж, как на основном ленде */
.title span {
  display: table;
  margin-bottom: 12px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--gold-light);
  background: rgba(230, 189, 98, 0.08);
  border: 1px solid rgba(230, 189, 98, 0.55);
  border-radius: 999px;
  box-shadow: 0 0 18px -4px rgba(230, 189, 98, 0.45);
}

.subtitle {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  text-align: left;
  color: var(--heading);
  margin-bottom: 14px;
}

.text {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 14px;
}

.text b {
  font-weight: 800;
  color: var(--heading);
}

/* info rows (e-mail / countdown) */
.quiz__elements {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-light);
  border: 1px solid rgba(47, 212, 126, 0.45);
}

.quiz__element {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz__icon {
  flex: 0 0 28px;
}

/* иконки в svg красные — перекрашиваем в золото под палитру */
.quiz__element img {
  width: 28px;
  filter: brightness(0) saturate(100%) invert(80%) sepia(40%) saturate(560%) hue-rotate(354deg)
    brightness(95%) contrast(90%);
}

.quiz__element p {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
  text-align: left;
}

.quiz__element p b {
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.quiz__elements_mob {
  display: none;
}

.title-bg {
  display: none;
}

/* form */
form {
  max-width: 100%;
  margin-bottom: 0;
  padding-bottom: 0;
}

.registration-formular__fieldset {
  background: none !important;
}

.radio-filds {
  background: none !important;
  display: flex !important;
  gap: 10px !important;
  height: 48px !important;
}

.radio-field {
  height: 48px !important;
  border-radius: 10px !important;
  background: var(--surface-2) !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  text-align: center !important;
  color: var(--text) !important;
}

.form__trigger label {
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  box-shadow: none;
  font-family: 'Inter', Arial, sans-serif !important;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.form__trigger label:hover {
  background: var(--hover) !important;
  border-color: rgba(230, 189, 98, 0.6) !important;
}

/* popups (cookie consent, alerts) */
.optin-cookie-layer__window,
#optin-alert__window {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6) !important;
  font-family: 'Inter', Arial, sans-serif !important;
  color: var(--text) !important;
}

/* юридические страницы (спонсоры, AGB) остаются светлыми — там tailwind-разметка под белый фон */
.page-layer__window {
  border: 0 !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6) !important;
  font-family: 'Inter', Arial, sans-serif !important;
}

.optin-cookie-layer__headline {
  font-weight: 800 !important;
  color: var(--heading) !important;
}

.optin-cookie-layer__text,
.optin-cookie-layer__window .optin__text,
#optin-alert__window p {
  color: var(--text) !important;
}

.optin-cookie-layer__window .optin__link {
  color: var(--gold-light) !important;
}

.custom_optin__label {
  background-color: var(--surface-2) !important;
  border-color: var(--border) !important;
  border-radius: 4px;
}

.custom_optin__label:hover {
  border-color: rgba(230, 189, 98, 0.6) !important;
}

.custom_optin__input:checked ~ .custom_optin__label {
  background-color: var(--accent-strong) !important;
  border-color: var(--accent) !important;
}

.registration-formular__control__button {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', Arial, sans-serif !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  text-align: center !important;
  color: var(--text) !important;
}

.registration-formular__control__button svg {
  width: 22px;
}

input:checked ~ .registration-formular__control__button {
  background: var(--accent-light) !important;
  border-color: var(--accent) !important;
  box-shadow:
    inset 0 0 0 1px var(--accent),
    0 0 22px -6px var(--accent-glow);
  color: var(--heading) !important;
  font-weight: 600 !important;
}

input:checked ~ .registration-formular__control__button svg path {
  stroke: var(--accent) !important;
  fill: var(--accent) !important;
}

.registration-formular__field input {
  height: 48px !important;
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  box-shadow: none;
  font-family: 'Inter', Arial, sans-serif !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  text-align: left !important;
  color: var(--heading) !important;
  caret-color: var(--accent);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.registration-formular__field input::placeholder {
  color: var(--muted);
}

.registration-formular__field input:hover {
  background: var(--hover) !important;
}

.registration-formular__field input:focus {
  outline: none;
  background: var(--surface-2) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(47, 212, 126, 0.25) !important;
}

/* автозаполнение браузера не должно красить поле в белый */
.registration-formular__field input:-webkit-autofill {
  -webkit-text-fill-color: var(--heading) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--surface-2) inset !important;
  transition: background-color 9999s;
}

/* ошибки валидации — тёмный вариант красного */
.registration-formular__field input.--error,
.registration-formular__control__button.--error {
  background: rgba(248, 113, 113, 0.08) !important;
  border-color: #f87171 !important;
  color: #fecaca !important;
}

input[name='birth_day'],
input[name='birth_month'],
input[name='birth_year'] {
  text-align: center !important;
}

.primary-button {
  min-height: auto !important;
  height: 56px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent-strong) 100%) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 10px 28px -8px var(--accent-glow) !important;
  font-family: 'Inter', Arial, sans-serif !important;
  font-weight: 800 !important;
  font-size: 17px !important;
  letter-spacing: 0.02em;
  text-align: center !important;
  color: var(--on-accent) !important;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
}

.primary-button:hover {
  background: var(--accent-hover) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 14px 34px -8px var(--accent-glow) !important;
}

.primary-button:active {
  transform: translateY(1px);
}

#formular-button .flash {
  text-transform: uppercase !important;
  color: var(--on-accent) !important;
}

.werden {
  color: var(--text) !important;
}

/* footer */
#app-footer {
  background-color: var(--bg);
}

#app-footer__disclaimer,
.app-footer__navigation__link {
  color: var(--muted) !important;
}

#app-footer__disclaimer a,
.app-footer__navigation__link:hover {
  color: var(--gold-light) !important;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.bg-soi {
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
}

.bg-soi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-height: 750px) {
  .wrapper {
    min-height: 750px !important;
  }
}

/* tablet: самокат уходит под карточку — сдвигаем фон */
@media (max-width: 1100px) {
  .bg {
    background-position: 15% center;
  }
}

/* mobile */
@media (max-width: 992px) {
  body {
    background: var(--bg) !important;
  }

  .wrapper {
    min-height: 1350px !important;
  }

  #app-main__container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #app-footer {
    background-color: var(--bg);
  }

  .bg {
    position: relative;
    display: block !important;
    background: none !important;
  }

  /* фото снизу растворяется в фоне страницы */
  .bg::after {
    background: linear-gradient(180deg, transparent 70%, var(--bg) 100%);
  }

  .bg img {
    display: block !important;
    width: 100%;
  }

  .bg-video {
    position: relative;
    top: auto;
    left: auto;
  }

  /* mob2.webp высокая (1152×2048), самокат только сверху —
     карточка заезжает на фон сразу под колёсами */
  .quiz {
    margin: -0vw 0 0;
    padding: 0 16px 24px;
    background: none;
    position: relative !important;
  }

  .quiz__container {
    min-width: auto !important;
    max-width: 520px !important;
    width: 100%;
    padding: 24px 16px 20px !important;
    border-radius: 20px;
  }

  .title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .title span {
    font-size: 11px;
    padding: 8px 14px;
    margin-bottom: 10px;
    color: var(--gold-light) !important;
  }

  .subtitle {
    font-size: 16px;
  }

  .text {
    font-size: 14px;
  }

  .quiz__elements {
    display: none !important;
  }

  .quiz__elements_mob {
    display: flex !important;
    margin: 16px 0 0;
  }

  .quiz__items_mob {
    display: none !important;
  }

  .radio-filds {
    gap: 10px !important;
  }

  .primary-button {
    font-size: 16px !important;
  }

  .werden {
    text-align: center;
    font-weight: 500 !important;
    font-size: 16px;
    line-height: 115%;
    text-transform: uppercase;
    max-width: 345px;
    margin: 20px auto 12px;
    font-family: 'Inter', Arial, sans-serif !important;
  }

  #regfull .registration-formular__fields:first-child {
    gap: 0 !important;
  }

  #regfull .w67 {
    margin-bottom: 10px;
  }

  #optin-alert__window,
  .optin-cookie-layer__window {
    max-height: 75vh;
  }
}

@media (max-width: 550px) {
  .wrapper {
    min-height: 100vh !important;
  }
  #reghalf .wrapper,
  #regfull .wrapper {
    min-height: auto !important;
  }
}

.title {
  display: none !important;
}
