*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #d4af37;
  --gold-light: #f0d060;
  --cyan: #2ee8d6;
  --black: #0a0a0a;
  --white: #ffffff;
  --header-h: 112px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  height: var(--header-h);
  padding: 12px clamp(24px, 4vw, 64px);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.header__logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header__logo img {
  height: 88px;
  width: auto;
  max-width: min(90vw, 480px);
  object-fit: contain;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) clamp(24px, 5vw, 80px) 120px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.hero__info {
  max-width: 900px;
  margin: 0 auto;
}

.hero__text {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

.hero__text-accent {
  color: #d4af37;
  font-weight: 700;
}

.hero__highlight {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

button.btn {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: inherit;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--outline {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn--outline:hover {
  background: rgba(212, 175, 55, 0.1);
}

.btn--primary {
  border: 1.5px solid var(--gold);
  background: var(--gold);
  color: var(--black);
}

.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* Footer / contacts */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 48px);
  text-align: center;
}

.footer__company {
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}

.footer__legal {
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.footer__legal + .footer__legal {
  margin-top: 4px;
}

body.quiz-open {
  overflow: hidden;
}

/* Quiz modal */
.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.quiz-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.quiz-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.quiz-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 28px 32px;
  background: #141414;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.quiz-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, color 0.2s;
}

.quiz-modal__close:hover {
  opacity: 1;
  color: var(--gold);
}

.quiz-step {
  display: none;
}

.quiz-step.is-active {
  display: block;
  animation: quizFadeIn 0.35s ease;
}

@keyframes quizFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz__progress {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.quiz__title {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.3;
}

.quiz__lead {
  font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--white);
  margin-bottom: 14px;
}

.quiz__lead .quiz__accent,
.quiz__lead strong {
  color: var(--gold);
}

.quiz__subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
  line-height: 1.5;
}

.quiz__options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz__option {
  width: 100%;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.quiz__option:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}

.quiz__option.is-selected {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold);
}

.quiz__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quiz__label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.quiz__label span {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.quiz__input {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.quiz__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.quiz__input:focus {
  border-color: var(--gold);
}

.quiz__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.quiz__field-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.quiz__field--phone .iti {
  width: 100%;
  display: block;
}

.quiz__form .iti__flag-container {
  border-radius: 8px 0 0 8px;
}

.quiz__form .iti--separate-dial-code .iti__selected-flag {
  background: rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px 0 0 8px;
}

.quiz__form .iti__selected-dial-code {
  color: var(--gold);
  font-weight: 600;
}

.quiz__form .iti--separate-dial-code input.quiz__input--phone {
  padding-left: 96px;
}

.quiz__form .iti__country-list {
  background: #1a1a1a;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--white);
}

.quiz__form .iti__country.iti__highlight {
  background: rgba(212, 175, 55, 0.15);
}

.quiz__submit {
  width: 100%;
  margin-top: 8px;
  cursor: pointer;
  border: none;
}

.quiz-step[data-step="success"] {
  text-align: center;
}

.quiz-step[data-step="success"] .quiz__title {
  margin-bottom: 12px;
}

.quiz-step[data-step="success"] .btn {
  margin-top: 24px;
  cursor: pointer;
  border: none;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --header-h: 120px;
  }

  .header__logo img {
    height: 100px;
    max-width: 92vw;
  }

  .hero {
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero__info {
    max-width: 100%;
    padding: 0 8px;
  }
}

@media (max-width: 640px) {
  .header__logo img {
    height: 110px;
  }

  .footer__inner {
    padding: 12px 14px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }
}
