/* ====== VARIABLES ====== */
:root {
  --color: #142143;
  --color-light: #c9ac14;
  --color-accent: #fae057;
  --color-dark: #002d75;
  --color-alpha: rgba(0,84,221,0.5);
  --color-alpha2: rgba(0,84,221,0.2);
  --bg: #fff;
  --bg-gray: #ededed;
  --bg-dark: rgba(0,0,0,0.7);
  --text: #000;
  --text-muted: #777b95;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 8px;
}

/* ====== RESET ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; height: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); height: 100%; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
button, input { font-family: inherit; }
a { color: var(--color); text-decoration: none; }

/* ====== AGE GATE (fully opaque) ====== */
.age-gate {
  position: fixed; inset: 0;
  background: #0b1221; /* полностью непрозрачный */
  z-index: 99999;
  display: flex; justify-content: center; align-items: center;
  font-family: var(--font);
}
.age-gate__box {
  background: #152036;
  padding: 40px 30px; border-radius: 20px;
  text-align: center; max-width: 480px; width: 90%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  animation: fadeUp .5s ease;
}
.age-gate__icon {
  width: 80px; height: 80px; margin: 0 auto 24px;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(30,58,138,0.25));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #3b82f6;
}
.age-gate__title { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.age-gate__text { font-size: 15px; color: #a0aec0; line-height: 1.6; margin-bottom: 20px; }

.age-gate__question {
  font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 28px;
}

.age-gate__buttons { display: flex; flex-direction: column; gap: 12px; }
.age-btn {
  padding: 16px 28px; font-size: 17px; font-weight: 600;
  border-radius: 50px; cursor: pointer; transition: all .3s; border: none; width: 100%;
}
.age-btn--yes {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: #fff; box-shadow: 0 10px 30px rgba(30,58,138,0.5);
}
.age-btn--yes:hover:not(:disabled) { background: linear-gradient(135deg, #2563eb, #60a5fa); transform: translateY(-2px); }
.age-btn--yes:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.age-btn--no {
  background: rgba(255,255,255,0.06); color: #a0aec0; border: 1px solid #2d3748;
}
.age-btn--no:hover { background: rgba(255,255,255,0.1); color: #ef4444; border-color: rgba(239,68,68,0.5); }

.age-gate--hidden { opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; pointer-events: none; }

/* ====== LAYOUT ====== */
.app { height: 100%; position: relative; display: none; }
.app--visible { display: block; }
.layout { height: 100%; position: relative; }
.layout { background: #f8f8f8; }

/* Steps */
.step { display: none; height: 100%; }
.step--active { display: block; }

/* ====== TOPBAR ====== */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 60px;
  position: relative; z-index: 50;
}
.topbar__logo img { height: 40px; }
.topbar__right { display: flex; align-items: center; gap: 15px; }
.topbar--solid { background: var(--color); }

/* ====== HERO (Start page) ====== */
.hero {
  position: relative; display: flex; height: 100%;
  overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0; z-index: 1;
}
.hero__video video {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__video::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(270deg, #272626, transparent);
  z-index: 2;
}
.hero__left {
  position: relative; z-index: 10;
  flex: 0 0 55%; max-width: 55%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem;
  color: #fff;
}
.hero__line { width: 60px; height: 3px; background: #fff; margin-bottom: 1rem; }
.hero__brand { max-width: 300px; width: 100%; margin-bottom: 25px; }
.hero__title-left { font-size: 22px; font-weight: 700; line-height: 1.3; color: #fff; }
.hero__right {
  position: relative; z-index: 10;
  flex: 0 0 45%; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem;
  border-left: 1px solid rgba(255,255,255,0.16);
}
.hero__title { font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--text); margin-bottom: 1rem; }
.hero__title-mob { display: none; font-weight: 700; color: var(--text); margin-bottom: 1rem; font-size: 15px; }
.hero__subtitle { font-size: 16px; color: var(--text-muted); line-height: 1.33; margin-bottom: 1.5rem; }

/* Primary button */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color); color: #fff;
  padding: 14px 30px; border-radius: 40px; border: none;
  font-size: 18px; font-weight: 600; cursor: pointer;
  box-shadow: 0 1px 4px var(--color-alpha2);
  transition: all .2s; position: relative; overflow: hidden;
  white-space: normal; min-height: 55px; text-align: left;
}
.btn-primary:hover { background: var(--color-dark); }
/* Blick animation */
.btn-primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,.1) 10%, rgba(255,255,255,.2) 20%, rgba(255,255,255,.6));
  width: 20px; transform: skewX(-45deg); left: -20%;
  animation: blick 6s infinite;
}
@keyframes blick { 0%,75% { left: -20%; } 100% { left: 120%; } }

/* ====== QUIZ ====== */
.quiz { display: flex; height: calc(100% - 60px); background: var(--bg); }
.quiz__body {
  display: flex; flex-direction: column; width: 100%;
  padding: 30px; padding-bottom: 95px; position: relative;
}
.quiz__header { margin-bottom: 16px; }
.quiz__q { font-size: 24px; font-weight: 500; line-height: 1.2; color: var(--text); }

.quiz__content { flex: 1; overflow-y: auto; padding-top: 10px; }
.quiz__content--with-img { display: flex; gap: 1rem; }

.quiz__answers { flex: 2 1 47%; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.quiz__image { flex: 0 1 47%; }
.quiz__image img { border-radius: var(--radius); width: 100%; height: auto; }

/* Answer item */
.answer {
  display: flex; align-items: center; padding: .8rem 1rem;
  border: 1px solid #e2e2e2; border-radius: 5px;
  cursor: pointer; transition: box-shadow .15s, border-color .15s;
  user-select: none;
}
.answer:hover { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.answer input { position: absolute; opacity: 0; }
.answer__radio {
  width: 20px; height: 20px; flex-shrink: 0;
  border-radius: 50%; background: var(--bg-gray);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; position: relative;
}
.answer__radio::before {
  content: ''; width: 20px; height: 20px;
  border-radius: 50%; background: var(--color);
  transform: scale(0); transition: transform .15s;
}
.answer input:checked ~ .answer__radio {
  border: 2px solid var(--color);
  box-shadow: 0 2px 6px var(--color-alpha);
  background: #fff;
}
.answer input:checked ~ .answer__radio::before { transform: scale(0.5); }
.answer__text { padding-left: 1rem; font-size: 15px; color: var(--text); word-break: break-word; }

/* Quiz footer / progress */
.quiz__footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 30px; border-top: 1px solid #f3f3f3;
  background: var(--bg); z-index: 20;
}
.progress { max-width: 120px; }
.progress__label { font-size: 13px; font-weight: 500; color: var(--bg-dark); display: block; margin-bottom: 5px; }
.progress__dots { display: flex; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--color); }
.dot--active { background: var(--color); }

/* ====== FORM PAGE ====== */
.form-page {
  display: flex; height: 100%; background: var(--bg);
}
.form-page__info {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 3rem; text-align: left;
}
.form-page__brand { max-width: 300px; margin-bottom: 25px; }
.form-page__congrats { font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 1rem; line-height: 1.2; }
.form-page__desc { font-size: 16px; color: var(--text-muted); margin-bottom: 2rem; }
.form-page__guarantee {
  text-transform: uppercase; font-weight: 800; font-size: 22px;
  color: var(--color); margin-top: 10px;
}
.form-page__form {
  flex: 0 0 420px; display: flex; align-items: center; justify-content: center;
  padding: 2rem; background: #f7f7f7;
}
.form-page__form form { width: 100%; max-width: 380px; }

.field { margin-bottom: 15px; }
.input {
  width: 100%; height: 50px; border-radius: var(--radius);
  border: 1px solid #ccc; padding: 10px 15px; font-size: 16px;
  background: #fff; color: var(--text); outline: none; transition: border-color .2s;
}
.input:focus { border-color: var(--color); }

/* intl-tel-input fix */
.iti { width: 100%; display: block; }
.iti input { width: 100%; padding-left: 90px !important; }

.form-error {
  color: red; text-align: center; margin-bottom: 15px;
  display: none; font-weight: bold; font-size: 14px;
}
.form-error--show { display: block; }

.btn-submit {
  width: 100%; height: 60px; background: var(--color); color: #fff;
  font-size: 21px; font-weight: 600; border: none; border-radius: var(--radius);
  cursor: pointer; display: flex; justify-content: center; align-items: center;
  gap: 10px; transition: background .3s;
}
.btn-submit:hover { background: var(--color-dark); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-submit__spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* modal and banner styles removed */

/* ====== UTILITY ====== */
.hidden { display: none !important; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 818px) {
  .hero { flex-direction: column; height: auto; min-height: calc(100vh - 60px); }
  .hero__left { display: none; }
  .hero__right {
    flex: 1; max-width: 100%; border-left: none;
    padding: 1.5rem 2rem; justify-content: flex-start;
  }
  .hero__title-mob { display: block; }
  .hero__video { position: relative; height: 220px; flex-shrink: 0; }
  .hero__video::after { background: none; }
  .btn-primary { width: 100%; }
  
  .quiz { display: block; height: auto; min-height: calc(100vh - 60px); }
  .quiz__body { padding: 1rem 0 60px; min-height: 100%; }
  .quiz__header { padding: 0 1rem; }
  .quiz__q { font-size: 20px; }
  .quiz__content--with-img { flex-direction: column-reverse; }
  .quiz__answers { margin: 0; padding: 0 1rem; }
  .quiz__image { margin: 0 1rem 1rem; }
  .quiz__footer { position: fixed; bottom: 0; left: 0; right: 0; padding: 10px 1rem; z-index: 100; }

  .form-page { flex-direction: column; }
  .form-page__info { padding: 2rem; }
  .form-page__form { flex: none; padding: 1.5rem; }
  .form-page__congrats { font-size: 22px; }
}

@media (max-width: 480px) {
  .hero__right { padding: 1rem; }
  .hero__title { font-size: 22px; }
  .quiz__q { font-size: 18px; }
  .form-page__info { padding: 1.5rem; }
  .form-page__congrats { font-size: 20px; }
  .banner { width: calc(100% - 16px); }
  .banner__body { padding: 14px 16px; gap: 8px; }
  .banner__text { font-size: 14px; }
  
  .age-gate__box { padding: 30px 20px; }
  .age-gate__title { font-size: 22px; }
  .age-btn { font-size: 15px; padding: 14px 20px; }
}
