/* JungleBet App — promotional landing page
   Design system + layout. Vanilla CSS only. */

:root {
  --jungle-deep: #042428;
  --jungle: #06363a;
  --jungle-mid: #0a4a4e;
  --teal: #147b7a;
  --leaf: #2f9e57;
  --lime: #8ed14a;
  --gold: #f0c430;
  --gold-deep: #c9a227;
  --sand: #f6f4ef;
  --sand-2: #efece4;
  --white: #ffffff;
  --ink: #122022;
  --ink-soft: #2c3a3c;
  --muted: #5c686a;
  --line: #e4e1d8;
  --focus: #147b7a;

  --footer-bg: #f3f3f3;
  --footer-heading: #1a1a1a;
  --footer-text: #737373;
  --footer-link: #737373;
  --footer-border: #e4e4e4;
  --footer-card-border: #e6e6e6;

  --header-h: 76px;
  --container: 1180px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow: 0 24px 60px rgba(4, 36, 40, 0.22);
  --shadow-soft: 0 10px 30px rgba(18, 32, 34, 0.08);

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --store: https://apps.apple.com/au/app/junglebet/id6467820733;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  font-size: 17px;
  max-width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 1000;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 700;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--ink);
}

.section-lead {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head {
  margin-bottom: 48px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-store {
  background: #000;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn-store:hover {
  background: #161616;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.btn-store svg {
  width: 18px;
  height: 22px;
  flex-shrink: 0;
}

.btn-store-lg {
  min-height: 60px;
  padding: 8px 26px 8px 20px;
  font-size: 17px;
  border-radius: 14px;
}

.btn-store .btn-store-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.btn-store .btn-store-copy small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: #f6cf4d;
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: auto;
  background: rgba(246, 244, 239, 0.88);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
  overflow: visible;
}

.site-alert {
  background: #c62828;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
  padding: 9px 0;
  text-align: center;
}

.site-alert p {
  margin: 0;
  max-width: 1100px;
  margin-inline: auto;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(246, 244, 239, 0.96);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(4, 36, 40, 0.18);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.brand-name span {
  color: var(--gold-deep);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-policies {
  position: relative;
}

.nav-policies-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: default;
}

.nav-policies-label::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-policies.is-current .nav-policies-label {
  color: var(--ink);
}

.nav-policies-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 230px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  z-index: 20;
}

.nav-policies:hover .nav-policies-menu,
.nav-policies:focus-within .nav-policies-menu {
  display: flex;
  flex-direction: column;
}

.nav-policies-menu a {
  padding: 10px 12px;
  border-radius: 10px;
}

.nav-policies-menu a::after {
  display: none;
}

.nav-policies-menu a:hover,
.nav-policies-menu a[aria-current="page"] {
  background: var(--sand);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-cta .btn {
  white-space: nowrap;
}

.header-cta .btn {
  white-space: nowrap;
}

.age-chip {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: absolute;
  left: 11px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.menu-toggle span {
  top: 21px;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  left: 0;
}

.menu-toggle span::before {
  top: -7px;
}

.menu-toggle span::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% 20%, rgba(240, 196, 48, 0.12), transparent 50%),
    radial-gradient(900px 600px at 10% 80%, rgba(47, 158, 87, 0.18), transparent 45%),
    linear-gradient(165deg, #042428 0%, #06363a 48%, #0a4a4e 100%);
  color: var(--white);
  padding: 28px 0 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cpath fill='%232f9e57' fill-opacity='0.07' d='M110 10c18 28 12 54-8 78 32-6 54 10 68 38-34 4-48 24-46 54-26-18-54-14-80 6 4-32-12-54-40-66 26-18 32-46 18-78 30 12 56 2 88-32z'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  min-height: 640px;
}

.hero-copy {
  padding: 40px 0 72px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--gold);
  border-radius: var(--radius-pill);
  padding: 6px 12px 6px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-badge img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin: 0 0 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-text {
  font-size: 1.12rem;
  color: rgba(246, 244, 239, 0.82);
  max-width: 48ch;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-note {
  font-size: 13.5px;
  color: rgba(246, 244, 239, 0.62);
  margin: 0;
  max-width: 48ch;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 620px;
}

.hero-visual img {
  width: min(420px, 100%);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
  animation: float-phone 5.5s ease-in-out infinite;
  border-radius: 28px;
}

.hero-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 196, 48, 0.22), transparent 68%);
  top: 12%;
  pointer-events: none;
}

@keyframes float-phone {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.hero-reveal .hero-badge,
.hero-reveal h1,
.hero-reveal .hero-text,
.hero-reveal .hero-actions,
.hero-reveal .hero-note {
  animation: rise 0.8s var(--ease) both;
}

.hero-reveal h1 {
  animation-delay: 0.08s;
}

.hero-reveal .hero-text {
  animation-delay: 0.16s;
}

.hero-reveal .hero-actions {
  animation-delay: 0.24s;
}

.hero-reveal .hero-note {
  animation-delay: 0.32s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Notice strip */
.notice {
  background: var(--sand-2);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}

.notice strong {
  color: var(--ink);
}

/* App showcase */
.showcase {
  background: var(--white);
}

.phone-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: end;
}

.phone-card {
  background: linear-gradient(180deg, #fbfaf6, #f3f0e8);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px 22px 0;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.phone-card:nth-child(2) {
  transform: translateY(-28px);
}

.phone-card img {
  width: 100%;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 16px 40px rgba(4, 36, 40, 0.18);
}

.phone-caption {
  padding: 16px 4px 18px;
}

.phone-caption h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 6px;
  letter-spacing: -0.03em;
}

.phone-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.benefit {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.benefit h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  margin: 0 0 6px;
}

.benefit p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Features */
.features {
  background: var(--sand);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(18, 32, 34, 0.1);
}

.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(6, 54, 58, 0.06);
  color: var(--jungle);
  margin-bottom: 18px;
}

.icon-wrap svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 280px at 90% 0%, rgba(240, 196, 48, 0.16), transparent 50%),
    linear-gradient(135deg, #042428, #0a4a4e);
  color: var(--white);
  text-align: center;
  padding: 88px 0;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.05em;
  margin: 0 0 16px;
}

.cta-band p {
  margin: 0 auto 28px;
  max-width: 52ch;
  color: rgba(246, 244, 239, 0.78);
  font-size: 1.08rem;
}

.cta-band .btn-store {
  margin-inline: auto;
}

/* Responsible gambling */
.rg {
  background: var(--white);
}

.rg-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px;
}

.rg-badge-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.rg-badge-row img {
  width: 72px;
  height: 72px;
}

.rg-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.rg-list li {
  margin-bottom: 8px;
}

.rg-links {
  display: grid;
  gap: 12px;
}

.rg-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
  transition: border-color 0.2s;
}

.rg-link:hover {
  border-color: var(--teal);
}

.rg-link span {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Contact teaser */
.contact-band {
  background: var(--sand-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
}

.contact-card h3 {
  font-family: var(--font-display);
  margin: 0 0 8px;
}

.contact-card p,
.contact-card a {
  color: var(--muted);
}

.contact-card a {
  color: var(--teal);
  font-weight: 700;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Inner pages */
.page-hero {
  background: linear-gradient(165deg, #042428, #0a4a4e);
  color: var(--white);
  padding: 64px 0 56px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin: 0 0 10px;
}

.page-hero p {
  margin: 0;
  color: rgba(246, 244, 239, 0.75);
  max-width: 60ch;
}

.legal {
  background: var(--white);
  padding: 72px 0 96px;
}

.legal-wrap {
  max-width: 760px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 36px 0 10px;
  letter-spacing: -0.03em;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal a {
  color: var(--teal);
  font-weight: 700;
}

.legal a:hover {
  text-decoration: underline;
}

.legal .updated {
  font-size: 0.9rem;
  color: var(--muted);
}

.legal .btn {
  margin-top: 16px;
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.form label {
  font-weight: 700;
  font-size: 0.92rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--white);
  color: var(--ink);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.form-success {
  display: none;
  background: #eef8e8;
  border: 1px solid #cfe8b8;
  color: #245218;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 600;
}

.form-success.is-visible {
  display: block;
}

/* Footer — match supplied Australian RG footer reference */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-top: 56px;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 0.85fr 0.95fr 1.35fr 1.35fr;
  gap: 40px 32px;
  padding-bottom: 40px;
}

.footer-col h3 {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--footer-heading);
  letter-spacing: 0;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin: 0 0 10px;
}

.footer-col a {
  color: var(--footer-link);
  font-size: 14px;
  font-weight: 400;
}

.footer-col a:hover {
  color: var(--footer-heading);
  text-decoration: underline;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: center;
}

.partner-grid img {
  width: 100%;
  height: 38px;
  object-fit: contain;
  filter: grayscale(0.15);
}

.footer-legal {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.footer-legal img {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}

.footer-legal p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.55;
  text-align: justify;
  color: var(--footer-text);
}

.footer-legal a {
  color: var(--footer-link);
  text-decoration: underline;
}

.rg-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 8px 0 28px;
}

.rg-card {
  background: var(--white);
  border: 1px solid var(--footer-card-border);
  border-radius: 10px;
  padding: 26px 28px;
  min-height: 118px;
}

.rg-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #111;
  text-transform: uppercase;
  line-height: 1.3;
}

.rg-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--footer-text);
}

.rg-card a {
  color: var(--footer-link);
  text-decoration: underline;
}

.rg-card-betstop {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.rg-card-betstop img {
  width: 210px;
  max-width: 42vw;
  height: auto;
}

.footer-copy {
  border-top: 1px solid var(--footer-border);
  padding: 18px 0 22px;
  font-size: 12.5px;
  color: #9a9a9a;
}

.footer-copy p {
  margin: 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Mobile nav drawer */
.nav-backdrop {
  display: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-visual img {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Breakpoints */
@media (max-width: 1280px) {
  .benefits {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-top {
    gap: 28px 24px;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    padding-bottom: 12px;
    text-align: left;
  }

  .hero-visual {
    min-height: 0;
  }

  .hero-visual img {
    width: min(340px, 78%);
  }

  .phone-row,
  .feature-grid,
  .contact-grid,
  .rg-panel {
    grid-template-columns: 1fr 1fr;
  }

  .phone-card:nth-child(2) {
    transform: none;
  }

  .phone-card:nth-child(3) {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    gap: 18px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .section {
    padding: 56px 0;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .menu-toggle {
    display: block;
  }

  .site-alert {
    font-size: 12px;
    padding: 8px 0;
    text-align: left;
  }

  .age-chip {
    display: none;
  }

  .header-inner {
    gap: 10px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: min(70dvh, 520px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(4, 36, 40, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
    z-index: 90;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav > a,
  .nav-policies-label {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .nav > a::after {
    display: none;
  }

  .nav a:focus-visible {
    outline-offset: -2px;
  }

  .nav-policies {
    display: flex;
    flex-direction: column;
  }

  .nav-policies-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    min-height: 40px;
    border-bottom: 0;
    padding-top: 10px;
  }

  .nav-policies-label::after {
    display: none;
  }

  .nav-policies-menu,
  .nav-policies:hover .nav-policies-menu,
  .nav-policies:focus-within .nav-policies-menu {
    display: flex;
    flex-direction: column;
    position: static;
    min-width: 0;
    padding: 0 12px 8px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav-policies-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 15px;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(4, 36, 40, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s;
    z-index: 70;
  }

  .nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .header-cta {
    gap: 6px;
    margin-left: auto;
  }

  .header-cta .btn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 10px;
  }

  .header-cta .btn-store-copy small {
    display: none;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-copy {
    padding: 20px 0 8px;
  }

  .hero-text,
  .hero-note {
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 0;
    padding-bottom: 8px;
  }

  .hero-visual img {
    width: min(280px, 70%);
    border-radius: 22px;
  }

  .notice {
    font-size: 13px;
    padding: 12px 0;
    text-align: left;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .phone-row,
  .feature-grid,
  .contact-grid,
  .rg-panel,
  .rg-cards,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .benefits {
    grid-template-columns: 1fr 1fr;
    margin-top: 28px;
  }

  .phone-card:nth-child(2) {
    transform: none;
  }

  .phone-card:nth-child(3) {
    display: block;
  }

  .phone-card {
    padding: 16px 16px 0;
  }

  .rg-panel {
    padding: 20px;
  }

  .rg-badge-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .rg-card {
    padding: 20px;
  }

  .rg-card h3 {
    font-size: 14px;
  }

  .rg-card-betstop {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .rg-card-betstop img {
    width: 168px;
    max-width: 100%;
  }

  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
  }

  .cta-band {
    padding: 56px 0;
  }

  .page-hero {
    padding: 40px 0 36px;
  }

  .legal {
    padding: 40px 0 64px;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .header-cta .btn {
    padding: 0 10px;
    font-size: 12px;
  }

  .hero-visual img {
    width: min(240px, 78%);
  }

  .benefits,
  .partner-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-store-lg {
    width: 100%;
  }
}
