/* ============================================================
   Präzision Nuvixo — Casino Social
   style.css
   ============================================================ */

:root {
  --bg: #0c1517;
  --bg-2: #101d20;
  --bg-3: #152a2f;
  --card: #19333a;
  --card-2: #21434c;
  --gold: #2dc99e;
  --gold-light: #6ff0cd;
  --gold-dark: #128a6e;
  --violet: #4db8ff;
  --violet-dark: #1f7fd1;
  --rose: #e85d75;
  --text: #e9f3f1;
  --muted: #a3bdb7;
  --border: rgba(45, 201, 158, 0.25);
  --radius: 18px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  min-width: 300px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 2000;
  background: var(--gold);
  color: #04211b;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #04211b; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.25;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(1.7rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin-bottom: 18px; }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.45rem); }

.section { padding: 80px 0; }
.section--alt { background: var(--bg-2); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.section-head p { color: var(--muted); }

.accent { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  text-align: center;
}
.btn:hover { transform: translateY(-3px); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #04211b;
  box-shadow: 0 8px 24px rgba(45, 201, 158, 0.35);
}
.btn--gold:hover { color: #04211b; box-shadow: 0 12px 30px rgba(45, 201, 158, 0.5); }

.btn--ghost { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn--ghost:hover { background: rgba(45, 201, 158, 0.12); color: var(--gold-light); }

.btn--violet { background: linear-gradient(135deg, var(--violet), var(--violet-dark)); color: #fff; }
.btn--violet:hover { color: #fff; box-shadow: 0 12px 30px rgba(31, 127, 209, 0.5); }

.btn--block { display: block; width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  /* above the mobile nav panel (1100) and overlay (1050) so the burger stays clickable/visible */
  z-index: 1150;
  /* no backdrop-filter: it would turn the header into the containing block
     for the fixed mobile nav panel and break its positioning */
  background: #0e191b;
  border-bottom: 1px solid rgba(77, 184, 255, 0.18);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img, .logo svg { width: 40px; height: 40px; }
.logo__text { font-family: "Playfair Display", Georgia, serif; font-size: 1.3rem; font-weight: 700; color: var(--text); }
.logo__text span { color: var(--gold); }

.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav a:hover, .nav a.is-active { color: var(--gold); background: rgba(45, 201, 158, 0.08); }
.nav .nav__auth { display: none; }

.header__auth { display: flex; gap: 10px; flex-shrink: 0; }
.header__auth .btn { padding: 9px 20px; font-size: 0.82rem; white-space: nowrap; }

/* Tighten header between 992 and 1199px so nav fits on one line */
@media (min-width: 992px) and (max-width: 1199px) {
  .header__inner { gap: 10px; }
  .nav { gap: 2px; flex-wrap: nowrap; }
  .nav a { font-size: 0.78rem; padding: 8px 7px; }
  .header__auth { gap: 6px; }
  .header__auth .btn { padding: 8px 13px; font-size: 0.76rem; }
  .logo__text { font-size: 1.1rem; }
  .logo img, .logo svg { width: 34px; height: 34px; }
}

/* Burger */
.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1102;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(31, 127, 209, 0.35), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(45, 201, 158, 0.16), transparent 60%),
    var(--bg-2);
  padding: 90px 0;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero__badge {
  display: inline-block;
  background: rgba(45, 201, 158, 0.12);
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero p.lead { color: var(--muted); margin: 18px 0 30px; font-size: 1.05rem; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__note { margin-top: 22px; color: var(--muted); font-size: 0.85rem; }
.hero__img img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 62% 50%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* ---------- Feature cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--card);
  border: 1px solid rgba(77, 184, 255, 0.18);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-6px); border-color: var(--border); }
.card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(45, 201, 158, 0.12);
  margin-bottom: 16px;
  font-size: 1.5rem;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Games ---------- */
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.game-card {
  background: var(--card);
  border: 1px solid rgba(77, 184, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.game-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: var(--border); }
.game-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.game-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.game-card:hover .game-card__media img { transform: scale(1.07); }
.game-card__tag {
  position: absolute; top: 12px; left: 12px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #04211b;
  font-size: 0.7rem; font-weight: 800;
  padding: 4px 12px; border-radius: 20px;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.game-card__body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.game-card__body h3 { font-size: 1.1rem; }
.game-card__body p { color: var(--muted); font-size: 0.85rem; flex: 1; }
.game-card__body .btn { padding: 10px 18px; font-size: 0.82rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid rgba(77, 184, 255, 0.18);
  position: relative;
}
.step__num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--violet-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
  margin-bottom: 16px;
}
.step p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split--rev .split__media { order: 2; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split__photo {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--border);
}
/* Photo matches the height of the adjacent text column exactly:
   the absolutely-positioned image doesn't add to the row height,
   so the row is sized by the text and the photo fills it. */
.split__media--fit { position: relative; align-self: stretch; }
.split__media--fit .split__photo--tall {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 12%;
}
.split__body p { color: var(--muted); margin-bottom: 14px; }
.split__body ul { list-style: none; margin: 18px 0; }
.split__body ul li { padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--muted); }
.split__body ul li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Banner / CTA ---------- */
.cta {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(45, 201, 158, 0.2), transparent 60%),
    linear-gradient(135deg, var(--card-2), var(--bg-3));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
}
.cta p { color: var(--muted); max-width: 640px; margin: 0 auto 28px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 320px at 80% -20%, rgba(31, 127, 209, 0.35), transparent 60%),
    var(--bg-2);
  padding: 70px 0 60px;
  text-align: center;
}
.page-hero p { color: var(--muted); max-width: 720px; margin: 14px auto 0; }

/* ---------- Legal / text pages ---------- */
.legal-layout { display: grid; grid-template-columns: 280px 1fr; gap: 44px; align-items: start; }
.legal-aside { position: sticky; top: 100px; }
.legal-aside img { border-radius: var(--radius); margin-bottom: 20px; }
.legal-meta {
  background: var(--card);
  border: 1px solid rgba(77, 184, 255, 0.18);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}
.legal-meta strong { color: var(--text); display: block; margin-bottom: 4px; }
.legal-meta p + strong { margin-top: 14px; }

.legal-body { overflow-wrap: break-word; }
.legal-body section { margin-bottom: 34px; }
.legal-body h2 {
  font-size: 1.3rem;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(77, 184, 255, 0.2);
  margin-bottom: 14px;
}
.legal-body h2 span { color: var(--gold); margin-right: 8px; }
.legal-body p { color: var(--muted); margin-bottom: 12px; }
.legal-body ul, .legal-body ol { margin: 0 0 14px 22px; color: var(--muted); }
.legal-body li { margin-bottom: 8px; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.88rem; }
.legal-body th, .legal-body td { border: 1px solid rgba(77, 184, 255, 0.25); padding: 10px 12px; text-align: left; color: var(--muted); }
.legal-body th { background: var(--card); color: var(--text); }

.notice {
  background: rgba(232, 93, 117, 0.08);
  border: 1px solid rgba(232, 93, 117, 0.35);
  border-left: 5px solid var(--rose);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 22px 0;
  color: var(--muted);
}
.notice--gold {
  background: rgba(45, 201, 158, 0.08);
  border-color: rgba(45, 201, 158, 0.4);
  border-left-color: var(--gold);
}
.notice strong { color: var(--text); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  background: var(--card);
  border: 1px solid rgba(77, 184, 255, 0.18);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 20px 56px 20px 24px;
  cursor: pointer;
  position: relative;
}
.faq-item__q::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.5rem;
  transition: transform var(--transition);
}
.faq-item.is-open .faq-item__q::after { transform: translateY(-50%) rotate(45deg); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item__a p { padding: 0 24px 20px; color: var(--muted); font-size: 0.93rem; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--card);
  border: 1px solid rgba(77, 184, 255, 0.18);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid rgba(77, 184, 255, 0.3);
  border-radius: 10px;
  color: var(--text);
  padding: 13px 15px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(45, 201, 158, 0.15);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; font-size: 0.85rem; color: var(--muted); }
.form-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex-shrink: 0; }
.form-msg { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 10px; font-size: 0.9rem; }
.form-msg.is-ok { display: block; background: rgba(76, 200, 130, 0.12); border: 1px solid rgba(76, 200, 130, 0.4); color: #7fe0a8; }
.form-msg.is-err { display: block; background: rgba(232, 93, 117, 0.12); border: 1px solid rgba(232, 93, 117, 0.4); color: #f3a0af; }
.form-foot { text-align: center; margin-top: 18px; font-size: 0.88rem; color: var(--muted); }

/* Auth pages */
.auth-wrap { max-width: 560px; margin: 0 auto; }
.auth-illu { text-align: center; margin-bottom: 26px; }
.auth-illu img { max-width: 320px; margin: 0 auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-info__item {
  display: flex; gap: 16px;
  background: var(--card);
  border: 1px solid rgba(77, 184, 255, 0.18);
  border-radius: 14px;
  padding: 18px 20px;
}
.contact-info__icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-info__item strong { display: block; margin-bottom: 3px; }
.contact-info__item p, .contact-info__item a { color: var(--muted); font-size: 0.9rem; word-break: break-word; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-top: 46px;
}
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid rgba(77, 184, 255, 0.18); padding: 60px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 40px; }
.footer h4 { font-size: 1rem; margin-bottom: 16px; color: var(--gold); font-family: "Montserrat", sans-serif; letter-spacing: 0.5px; text-transform: uppercase; }
.footer p { color: var(--muted); font-size: 0.88rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 9px; }
.footer ul a { color: var(--muted); font-size: 0.88rem; }
.footer ul a:hover { color: var(--gold); }
.footer a, .footer p { word-break: break-word; overflow-wrap: anywhere; }
.footer__brand .logo { margin-bottom: 14px; }
.footer__badges { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.footer__badge {
  border: 1px solid var(--border);
  color: var(--gold);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  letter-spacing: 0.5px;
}
.footer__bottom {
  border-top: 1px solid rgba(77, 184, 255, 0.15);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 1200;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px 24px;
  display: none;
  gap: 20px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { font-size: 0.85rem; color: var(--muted); flex: 1; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn { padding: 9px 18px; font-size: 0.8rem; }

/* ---------- Disclaimer strip ---------- */
.age-strip {
  background: linear-gradient(90deg, rgba(232, 93, 117, 0.15), rgba(31, 127, 209, 0.15));
  border-bottom: 1px solid rgba(232, 93, 117, 0.25);
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  padding: 7px 14px;
}
.age-strip strong { color: var(--rose); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1199px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Burger breakpoint */
@media (max-width: 991px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 86vw);
    height: 100vh;
    height: 100dvh;
    background: var(--bg-3);
    border-left: 1px solid rgba(77, 184, 255, 0.25);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 110px 24px 36px;
    overflow-y: auto;
    z-index: 1100;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
    /* fully hidden when closed: offscreen, invisible, takes no space, not clickable */
    transform: translateX(110%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s ease, visibility 0s linear 0.35s;
  }
  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.35s ease, visibility 0s;
  }
  .nav a { width: 100%; font-size: 1rem; padding: 13px 14px; }
  .header__auth { margin-left: auto; }
  .nav .nav__auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(77, 184, 255, 0.2);
  }
  .nav .nav__auth .btn { width: 100%; text-align: center; padding: 13px 20px; }
  .hero__grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero__img img { aspect-ratio: 16 / 9; object-position: center; }
  /* In single-column layout the photo can't track the text height — give it a fixed frame */
  .split__media--fit .split__photo--tall {
    position: static;
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .split--rev .split__media { order: 0; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-overlay {
    content: "";
    position: fixed; inset: 0;
    background: rgba(4, 12, 12, 0.6);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .nav-overlay.is-visible { opacity: 1; pointer-events: auto; }
}

@media (max-width: 767px) {
  .section { padding: 56px 0; }
  .hero { padding: 60px 0; }
  .cards-grid, .steps { grid-template-columns: 1fr; gap: 16px; }
  .header__auth { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .legal-aside { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner__actions { justify-content: center; }
  .map-wrap iframe { height: 320px; }
  /* legal tables scroll horizontally instead of breaking the layout */
  .legal-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hero__grid, .split, .contact-grid { gap: 28px; }
  .legal-layout { gap: 28px; }
  .page-hero { padding: 50px 0 44px; }
  /* 16px inputs prevent iOS Safari from auto-zooming on focus */
  .form-group input,
  .form-group select,
  .form-group textarea { font-size: 16px; }
  .faq-item__q { padding: 18px 48px 18px 18px; font-size: 0.95rem; }
  .faq-item__a p { padding: 0 18px 18px; }
}

@media (max-width: 575px) {
  .games-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .cta { padding: 40px 22px; }
  .cta .btn { width: 100%; }
  .form-card { padding: 26px 20px; }
  .hero__actions .btn { width: 100%; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .game-card__body .btn { width: 100%; }
  .age-strip { font-size: 0.7rem; padding: 6px 10px; }
  .footer { padding-top: 44px; }
  .map-wrap { margin-top: 30px; }
  .section-head { margin-bottom: 32px; }
  .legal-aside { gap: 14px; }
}

@media (max-width: 400px) {
  body { font-size: 15px; }
  .container { padding: 0 14px; }
  .logo__text { font-size: 1.05rem; }
  .logo img, .logo svg { width: 32px; height: 32px; }
  .btn { padding: 12px 20px; font-size: 0.85rem; }
  .nav { width: 100vw; border-left: none; }
  .map-wrap iframe { height: 260px; }
  .form-card { padding: 20px 14px; }
  .contact-info__item { flex-direction: column; gap: 8px; }
  .card { padding: 20px 16px; }
  .step { padding: 22px 18px; }
  .notice { padding: 14px 16px; }
  .hero__badge { font-size: 0.68rem; padding: 5px 12px; letter-spacing: 0.6px; }
  .legal-meta { padding: 16px 14px; }
  .legal-body th, .legal-body td { padding: 8px 9px; font-size: 0.82rem; }
  .cookie-banner__actions { flex-direction: column; }
  .cookie-banner .btn { width: 100%; }
}

@media (max-width: 330px) {
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.25rem; }
  .header__inner { min-height: 64px; }
  .burger { width: 40px; height: 40px; }
  .section { padding: 42px 0; }
  .legal-body h2 { font-size: 1.08rem; }
  .faq-item__q { padding: 16px 44px 16px 16px; font-size: 0.9rem; }
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 14px; }
}
