/* Layout: header, overlay menu, footer, tab bar, regulatory overlays, inner-page frame.
   Header/menu/footer/tab bar are the mockup's; gate, cookie banner and page-hero are
   designed in its language. */

/* ---------- header (minimal + quick nav, TZ §7.2) ---------- */
.hdr { position: sticky; top: 0; z-index: var(--z-header); background: rgba(247,249,252,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.hdr.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(23,33,47,.02), 0 8px 24px rgba(23,33,47,.05); }
.hdr-in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--font-h); letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.logo-mark { display: inline-flex; gap: 3px; align-items: center; }
.logo-mark .shape { width: 11px; height: 11px; transition: transform .35s var(--spring); }
.logo:hover .logo-mark .shape:nth-child(1) { transform: translateY(-3px); }
.logo:hover .logo-mark .shape:nth-child(2) { transform: rotate(45deg); transition-delay: .05s; }
.logo:hover .logo-mark .shape:nth-child(3) { transform: translateY(-3px); transition-delay: .1s; }
.hdr-quick { display: none; gap: 2px; }
.hdr-quick a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); font: 600 15px/1 var(--font-b); color: var(--ink-2); text-decoration: none; transition: color .15s, background .15s; white-space: nowrap; }
.hdr-quick a:hover { color: var(--ink); background: var(--surface-2); }
.hdr-quick a[aria-current="page"] { color: var(--ink); }
.hdr-quick a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; background: var(--color-brand); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
@media (min-width: 1240px) { .hdr-quick { display: flex; } }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-trust); color: #fff; font: 700 13px/1 var(--font-h); margin-left: -8px; }
.hdr-acc[aria-current="page"] { background: var(--surface-1); box-shadow: var(--sh-1); }
.menu-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink); color: #fff; display: inline-grid; place-items: center; cursor: pointer; transition: transform .25s var(--spring), background .15s; flex: none; }
.menu-btn:hover { transform: rotate(90deg); }
.menu-btn .bars { display: grid; gap: 4px; }
.menu-btn .bars i { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }
.menu-btn .bars i:nth-child(2) { width: 12px; justify-self: end; background: var(--color-gold); }

/* ---------- overlay menu ---------- */
.menu { position: fixed; inset: 0; z-index: var(--z-menu); background: var(--surface-0); display: flex; flex-direction: column; visibility: hidden; opacity: 0; clip-path: circle(0 at calc(100% - 48px) 36px); transition: clip-path .55s var(--ease), opacity .2s, visibility 0s .55s; overflow-y: auto; overscroll-behavior: contain; }
.menu.is-open { visibility: visible; opacity: 1; clip-path: circle(150% at calc(100% - 48px) 36px); transition: clip-path .6s var(--ease), opacity .15s, visibility 0s; }
.menu > .wrap { width: 100%; }
.menu-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.menu-deco .d1 { position: absolute; right: -120px; top: 120px; width: 420px; height: 420px; border-radius: 50%; border: 2px solid var(--brand-50); }
.menu-deco .d2 { position: absolute; right: 220px; bottom: -60px; width: 220px; height: 220px; background: var(--trust-50); transform: rotate(8deg); border-radius: 6px; }
.menu-deco .d3 { position: absolute; right: 80px; bottom: 140px; width: 160px; height: 140px; background: var(--gold-50); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.menu-top { position: relative; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; flex: none; }
.menu-close { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-1); display: grid; place-items: center; cursor: pointer; box-shadow: var(--sh-1); transition: transform .25s var(--spring); }
.menu-close:hover { transform: rotate(90deg); }
.menu-body { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; padding-top: 32px; padding-bottom: 48px; }
.menu-list { list-style: none; border-top: 1px solid var(--line); }
.menu-list li { border-bottom: 1px solid var(--line); }
.menu-link { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 18px; padding: 14px 4px; text-decoration: none; opacity: 0; transform: translateY(24px); transition: opacity .35s var(--ease), transform .45s var(--spring); }
.menu.is-open .menu-link { opacity: 1; transform: none; transition-delay: calc(var(--i) * 55ms + 160ms); }
.menu-link .shape { width: 26px; height: 26px; justify-self: center; transition: transform .3s var(--spring); }
.menu-link .shape.line { height: 5px; }
.menu-link .t { font: 800 clamp(30px, 4.2vw, 54px)/1 var(--font-h); letter-spacing: -.035em; transition: transform .25s var(--spring), color .15s; }
.menu-link small { display: block; font: 500 14px/1.3 var(--font-b); color: var(--ink-2); letter-spacing: 0; margin-top: 6px; }
.menu-link .arr { width: 24px; height: 24px; opacity: 0; transform: translateX(-8px); transition: .2s var(--ease); }
.menu-link:hover .t { transform: translateX(8px); }
.menu-link:hover .shape { transform: rotate(45deg) scale(1.1); }
.menu-link:hover .arr { opacity: 1; transform: none; }
.menu-link[aria-current="page"] .t { color: var(--color-brand); }
.menu-more-h { margin-top: 28px; font: 600 13px/1 var(--font-b); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.menu-more { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.menu-more a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-1); text-decoration: none; font-weight: 600; font-size: 15px; transition: .15s; }
.menu-more a:hover, .menu-more a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.menu-side { display: flex; flex-direction: column; gap: 20px; align-self: start; opacity: 0; transform: translateY(16px); transition: .4s var(--ease); }
.menu.is-open .menu-side { opacity: 1; transform: none; transition-delay: .45s; }
.menu-card { padding: 24px; }
.menu-card h2 { font-size: 20px; margin-bottom: 6px; }
.menu-card p { color: var(--ink-2); font-size: 15px; }
.menu-card .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.menu-card .seg a { padding: 0 16px; }

/* ---------- inner page hero ---------- */
.phero { position: relative; padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 72px); overflow: hidden; }
.phero .crumbs { margin-bottom: clamp(20px, 3vw, 36px); }
.phero h1 { font-size: var(--fs-h1); letter-spacing: -.045em; line-height: 1; max-width: 18ch; }
.phero h1 .mk { font-size: inherit; }
.phero-lead { margin-top: 18px; font-size: var(--fs-lead); color: var(--ink-2); max-width: 62ch; }
.phero-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.phero-deco { position: absolute; right: -40px; top: 40px; display: flex; gap: 14px; opacity: .9; pointer-events: none; }
.phero-deco .shape { width: 90px; height: 90px; }
.phero-deco .shape.circle { color: var(--brand-50); }
.phero-deco .shape.square { color: var(--trust-50); transform: rotate(8deg); }
.phero-deco .shape.tri { color: var(--gold-50); width: 100px; }
.phero--img { color: #fff; padding: 0; isolation: isolate; }
.phero--img .phero-bg { position: absolute; inset: 0; z-index: -2; }
.phero--img .phero-bg img { width: 100%; height: 100%; object-fit: cover; }
.phero--img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(23,33,47,.88) 0%, rgba(23,33,47,.62) 50%, rgba(23,33,47,.25) 100%); }
.phero--img .phero-in { padding-block: clamp(32px, 4vw, 56px) calc(var(--cut) + 48px); }
.phero--img .crumbs, .phero--img .crumbs a { color: rgba(255,255,255,.8); }
.phero--img .crumbs [aria-current] { color: #fff; }
.phero--img .phero-lead { color: rgba(255,255,255,.88); }
.phero--img { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut) * .6), 0 100%); }

/* ---------- section helpers ---------- */
.sec { position: relative; padding: var(--sec-y) 0; }
.sec--tight { padding: clamp(56px, 6vw, 88px) 0; }
.sec--white { background: var(--surface-1); }
.sec--cut { background: var(--surface-1); clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%); padding: calc(var(--cut) + clamp(56px, 6vw, 88px)) 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: #C9D1DD; padding: 72px 0 32px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.ftr .logo { color: #fff; }
.ftr-h { font: 700 15px/1 var(--font-h); color: #fff; letter-spacing: 0; margin-bottom: 14px; }
.ftr ul { list-style: none; display: grid; gap: 2px; }
.ftr ul a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: #C9D1DD; transition: color .15s, transform .2s var(--spring); }
.ftr ul a:hover { color: #fff; transform: translateX(3px); }
.ftr p { font-size: 15px; margin-top: 14px; max-width: 44ch; }
.ftr .pill { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #C9D1DD; box-shadow: none; margin-top: 18px; }
.ftr .pill b { background: rgba(255,255,255,.12); color: #fff; }
.ftr-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 28px; margin-top: 48px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); font-size: 14px; line-height: 1.55; }
.ftr-band b { display: block; color: #fff; margin-bottom: 4px; }
.ftr-band a { color: #fff; }
.ftr-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; font-size: 14px; color: #9AA5B5; align-items: center; }
.ftr-bot a { color: #C9D1DD; }
.ftr-bot .r { display: inline-flex; align-items: center; gap: 10px; color: #fff; }

/* ---------- tab bar (mobile) ---------- */
.tabbar { display: none; }

/* ---------- age gate ---------- */
.gate { position: fixed; inset: 0; z-index: var(--z-gate); display: grid; place-items: center; padding: 16px; background: rgba(23,33,47,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow-y: auto; }
.gate-panel { position: relative; width: min(520px, 100%); background: var(--surface-1); border-radius: var(--r-3); box-shadow: var(--sh-3); padding: 40px 36px 28px; text-align: center; overflow: hidden; animation: mIn .45s var(--spring); }
.gate-panel::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 92px; background: var(--surface-2); clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%); }
.gate-shapes { position: relative; display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.gate-shapes .shape { width: 16px; height: 16px; }
.gate-panel .badge18 { position: relative; margin: 0 auto 18px; color: var(--color-cta); background: var(--surface-1); }
.gate-panel h2 { font-size: clamp(26px, 3vw, 32px); letter-spacing: -.03em; }
.gate-panel > p, .gate-denied p { color: var(--ink-2); margin-top: 10px; }
.gate-form { display: grid; gap: 10px; margin-top: 24px; }
.gate-form .btn { white-space: normal; text-align: center; }
.gate-note { display: flex; gap: 8px; align-items: flex-start; text-align: left; margin-top: 18px; font-size: 13px; color: var(--ink-2); background: var(--surface-0); border-radius: var(--r-2); padding: 12px 14px; }
.gate-note svg.icon { width: 18px; height: 18px; color: var(--color-trust); }
.gate-lang { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.gate-lang a { color: var(--ink-2); display: inline-flex; min-height: 32px; align-items: center; }
.gate-lang a[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- cookie banner ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--z-cookie); display: flex; justify-content: center; pointer-events: none; }
.cookie-in { pointer-events: auto; width: min(980px, 100%); background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-3); box-shadow: var(--sh-3); padding: 18px 20px; display: grid; gap: 14px; animation: toastIn2 .5s var(--spring); max-height: calc(100vh - 32px); overflow-y: auto; }
@keyframes toastIn2 { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.cookie-main { display: flex; gap: 14px; align-items: center; }
.cookie-main p { font-size: 15px; color: var(--ink); }
.cookie-main a { color: var(--color-trust); font-weight: 600; }
.cookie-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--gold-50); color: var(--gold-ink); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cookie-prefs { border-bottom: 1px solid var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .menu-body { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-grid > div:first-child { grid-column: 1 / -1; }
  .phero-row { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .phero-deco { display: none; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .hdr .seg, .hdr .hdr-login, .hdr .hdr-acc { display: none; }
  .logo { font-size: 20px; }
  .grid-2, .grid-4, .form-row { grid-template-columns: minmax(0, 1fr); }
  .menu-link { grid-template-columns: 36px 1fr auto; gap: 12px; padding: 12px 0; }
  .menu-link .shape { width: 20px; height: 20px; }
  .menu-deco .d1 { width: 260px; height: 260px; right: -120px; }
  .ftr-grid { grid-template-columns: minmax(0, 1fr); }
  .ftr { padding-bottom: 100px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-tabbar); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(23,33,47,.06); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; text-decoration: none; color: var(--ink-2); font: 600 11px/1 var(--font-b); border-radius: var(--r-2); }
  .tabbar svg.icon { width: 22px; height: 22px; }
  .tabbar [aria-current="page"] { color: var(--color-brand); background: var(--brand-50); }
  .cookie { bottom: 84px; left: 8px; right: 8px; }
  .cookie-actions .btn { flex: 1 1 100%; }
  .cookie-main { align-items: flex-start; }
  .gate-panel { padding: 32px 20px 22px; }
  .toast { bottom: 88px; }
  .modal-b { padding: 8px 20px 22px; }
  .modal-b .row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 389px) {
  .hdr-actions .btn-primary { padding: 0 14px; font-size: 14px; }
  .logo { font-size: 18px; gap: 7px; }
}
.phero--img .phero-bg picture { position: absolute; inset: 0; }
@media (max-width: 374px) {
  .hdr-in { gap: 8px; }
  .hdr-actions { gap: 6px; }
  .hdr-actions .btn-primary { min-height: 40px; padding: 0 12px; font-size: 13px; }
  .menu-btn { width: 44px; height: 44px; }
  .logo { font-size: 17px; gap: 6px; }
  .logo-mark .shape { width: 9px; height: 9px; }
}
.ftr-band { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ftr-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ftr-band { grid-template-columns: minmax(0, 1fr); } }
