:root {
  --color-red: #ED1C24;
  --color-red-dark: #E21C1C;
  --color-blue: #0281F7;
  --color-navy-1: #001BAA;
  --color-navy-2: #00003D;
  --color-indigo: #2931A1;
  --color-indigo-dark: #2C309C;
  --color-gold: #FFC93C;
  --color-footer-bg: #171717;
  --color-white: #ffffff;

  --font-body: 'Roboto', sans-serif;
  --font-impact: 'Anton', sans-serif;
  --font-condensed: 'Roboto Condensed', sans-serif;
}

* { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, li, figure { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--color-white);
  background: var(--color-navy-2);
  line-height: 1.4;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.btn { text-decoration: none; cursor: pointer; }
.btn:focus-visible,
.terms__toggle:focus-visible,
.cookie-btn:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-navy-2);
  padding: 14px 20px;
}
.site-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-header__logo img {
  width: 140px;
  height: auto;
}
.site-header__auth {
  display: none;
  gap: 12px;
}

.btn--primary,
.btn--secondary {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  transition: filter 0.2s ease;
  white-space: nowrap;
}
.btn--primary { background-color: var(--color-red); color: var(--color-white); }
.btn--secondary { background-color: var(--color-blue); color: var(--color-white); }
.btn--primary:hover, .btn--secondary:hover { filter: brightness(85%); }

/* ---------- Hero ---------- */
.hero {
  width: 100%;
  line-height: 0;
}
.hero__image {
  width: 100%;
  height: auto;
  display: block;
}


/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(180deg, var(--color-navy-1) 0%, var(--color-navy-2) 100%);
  padding: 16px 20px 50px;
  text-align: center;
}
.cta__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.cta__headline {
  font-family: var(--font-impact);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  color: var(--color-gold);
  text-shadow: 0 2px 0 #7a3d00, 0 4px 10px rgba(0, 0, 0, 0.4);
  margin-bottom: 14px;
}
.cta__subheadline {
  font-size: 17px;
  color: #dfe6ff;
  margin-bottom: 0;
}
/* Buttons render first, right under the hero, so they're never stuck
   below a full-height headline — same reasoning at every breakpoint. */
.cta__buttons {
  order: -1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}
.btn--cta-primary,
.btn--cta-secondary {
  display: inline-block;
  width: 100%;
  max-width: 340px;
  font-weight: 700;
  font-size: 19px;
  padding: 16px 24px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  transition: filter 0.2s ease, transform 0.2s ease;
}
.btn--cta-primary {
  background: linear-gradient(90deg, var(--color-red-dark) 0%, var(--color-indigo) 70%, var(--color-indigo-dark) 100%);
  color: var(--color-white);
}
.btn--cta-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-blue);
}
.btn--cta-primary:hover, .btn--cta-secondary:hover { filter: brightness(85%); }
.btn--cta-primary:active, .btn--cta-secondary:active { transform: scale(0.98); }

.cta__microcopy {
  font-size: 13px;
  color: #9aa5d6;
}
.cta__microcopy a {
  color: var(--color-gold);
  text-decoration: underline;
}

/* ---------- Steps ---------- */
.steps {
  background: var(--color-navy-2);
  padding: 10px 20px 50px;
}
.steps__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.steps__item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 26px 24px;
  text-align: center;
}
.steps__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-red), var(--color-blue));
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 14px;
}
.steps__title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.steps__text {
  font-size: 15px;
  color: #cdd5f5;
  line-height: 1.5;
}

/* ---------- Promo ---------- */
.promo {
  padding: 50px 20px;
  text-align: center;
  background: var(--color-navy-2);
}
.promo__text {
  font-family: var(--font-impact);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--color-white);
  -webkit-text-stroke: 1.5px var(--color-navy-2);
  text-shadow:
    0 0 2px var(--color-navy-2),
    2px 2px 0 var(--color-red-dark),
    -2px -2px 0 var(--color-navy-2),
    3px 3px 12px rgba(0, 0, 0, 0.6);
}

/* ---------- Terms ---------- */
.terms {
  background: var(--color-navy-2);
  padding: 10px 20px 50px;
}
.terms__inner {
  max-width: 900px;
  margin: 0 auto;
}
.terms__title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 18px;
  text-align: center;
}
.terms__toggle {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 44px 14px 18px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  position: relative;
}
.terms__toggle::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 700;
}
.terms__toggle[aria-expanded="true"]::after { content: '\2212'; }
.terms__content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.terms__content.is-open { max-height: 4000px; }
.terms__list {
  padding: 20px 20px 0 38px;
  font-size: 14px;
  line-height: 1.6;
  color: #cdd5f5;
}
.terms__list li { margin-bottom: 14px; }

/* ---------- Footer ---------- */
.footer {
  background-color: var(--color-footer-bg);
  padding: 30px 20px 60px;
}
.footer__container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer__license { margin-bottom: 18px; }
.footer__license img {
  width: 220px;
  height: auto;
}
.footer__text {
  font-size: 13px;
  line-height: 1.6;
  color: #b7b7b7;
  margin-bottom: 14px;
}

/* ---------- Cookie Consent ---------- */
.cookie-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}
.cookie-overlay.active { display: block; }
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a2e;
  color: #fff;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-banner.active { display: block; }
.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
}
.cookie-banner__text { margin-bottom: 16px; }
.cookie-banner__text p { margin: 0 0 8px; }
.cookie-banner__text a { color: #4d9fff; text-decoration: underline; }
.cookie-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.cookie-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 16px;
  flex: 1;
  min-width: 200px;
}
.cookie-cat label { cursor: pointer; font-weight: 500; font-size: 14px; }
.cookie-cat small { display: block; font-size: 12px; color: #aaa; margin-top: 2px; }
.cookie-cat input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-red);
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-cat input[type="checkbox"]:disabled { opacity: 0.6; cursor: default; }
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-btn {
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s;
  font-family: var(--font-body);
}
.cookie-btn--accept { background: linear-gradient(90deg, var(--color-red), var(--color-blue)); color: #fff; }
.cookie-btn--save { background: rgba(255, 255, 255, 0.15); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.cookie-btn--reject { background: transparent; color: #aaa; border: 1px solid rgba(255, 255, 255, 0.2); }
.cookie-btn:hover { filter: brightness(1.2); }

/* ============ Tablet ≥768px ============ */
@media (min-width: 768px) {
  .site-header { padding: 18px 32px; }
  .site-header__logo img { width: 170px; }
  .site-header__auth { display: flex; }

  .cta { padding: 18px 32px 70px; }
  .cta__headline { font-size: 42px; margin-bottom: 14px; }
  .cta__subheadline { font-size: 19px; }
  .cta__buttons { flex-direction: row; justify-content: center; margin-bottom: 22px; }
  .btn--cta-primary, .btn--cta-secondary { width: auto; min-width: 220px; font-size: 21px; padding: 18px 32px; }

  .steps__inner { flex-direction: row; }
  .steps__item { flex: 1; }

  .promo__text { font-size: 48px; }

  .footer__license img { width: 280px; }
}

/* ============ Desktop ≥1024px ============ */
@media (min-width: 1024px) {
  .site-header__logo img { width: 202px; }

  /* Cap the hero height so it doesn't dominate the whole viewport. Since
     the CTA buttons now render right after the hero (see order: -1 above),
     this is just about trimming empty sky, not about reaching the fold. */
  .hero { max-height: 400px; overflow: hidden; }
  .hero__image { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }

  .site-header__auth .btn--primary,
  .site-header__auth .btn--secondary {
    font-size: 17px;
    padding: 14px 28px;
  }
  .site-header__auth .btn--primary {
    background: linear-gradient(90deg, var(--color-red-dark) 0%, var(--color-indigo) 70%, var(--color-indigo-dark) 100%);
  }

  .cta { padding: 20px 32px 90px; }
  .cta__headline { font-size: 46px; margin-bottom: 14px; }
  .cta__subheadline { margin-bottom: 18px; }
  .cta__buttons { margin-bottom: 28px; }
  .btn--cta-primary, .btn--cta-secondary { font-size: 23px; padding: 20px 40px; min-width: 260px; }

  .promo__text { font-size: 64px; }

  .terms__list { padding-left: 44px; font-size: 15px; }

  .footer { padding: 40px 32px 60px; font-size: 15px; }
  .footer__license img { width: 320px; }
  .footer__text { font-size: 14px; }
}

/* ============ Large desktop ≥1440px ============ */
@media (min-width: 1440px) {
  .hero { max-height: 560px; }
  .cta { padding: 24px 32px 100px; }
  .cta__headline { font-size: 54px; }
  .btn--cta-primary, .btn--cta-secondary { font-size: 25px; padding: 22px 44px; min-width: 280px; }
}

/* ============ Extra-wide desktop ≥1920px ============ */
@media (min-width: 1920px) {
  .hero { max-height: 700px; }
}

@media (max-width: 599px) {
  .cookie-categories { flex-direction: column; }
  .cookie-buttons { flex-direction: column; }
  .cookie-btn { width: 100%; text-align: center; }
}
