/* =========================================================
   3ich l'Game — Premium landing page (V2)
   Thème sombre et chaleureux, dérivé de la palette du logo.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --color-primary: #FF5757;
  --color-primary-dark: #E23F3F;
  --color-primary-light: #FF8A8A;
  --color-accent: #F2A93B;
  --color-accent-dark: #D88F22;
  --color-teal: #4FB6A6;
  --color-error: #FF6FA8;

  /* Surfaces & text — dark & warm by default (pas de light/dark système) */
  --color-bg: #1B1418;
  --color-surface: #241A1D;
  --color-surface-alt: #2C1F23;
  --color-text: #FBEEEE;
  --color-text-muted: #C9AEB2;
  --color-border: #3A282C;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 14px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 55px rgba(0, 0, 0, 0.5);
  --glow-primary: 0 0 0 1px rgba(255, 87, 87, 0.35), 0 18px 40px rgba(255, 87, 87, 0.25);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --font-heading: 'Baloo 2', 'Poppins', system-ui, sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-base: 280ms;

  color-scheme: dark;
}

/* Sections plus profondes (variantes du fond sombre pour créer du rythme) */
.section-dark {
  --color-bg: #170F13;
  --color-surface: #201619;
  --color-surface-alt: #281B1F;
}

/* Sections "claires" : parchemin chaud plutôt que blanc pur, pour rester
   dans l'univers table-de-jeu plutôt que de retomber dans un look SaaS. */
.section-light {
  --color-bg: #FBF3EC;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F6E9DC;
  --color-text: #2A1712;
  --color-text-muted: #6E5449;
  --color-border: #E8D9C9;
  --shadow-sm: 0 2px 10px rgba(42, 23, 18, 0.06);
  --shadow-md: 0 14px 32px rgba(42, 23, 18, 0.10);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur-base);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--color-text-muted); }

button { font-family: inherit; cursor: pointer; }

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

.highlight { color: var(--color-primary); }

/* Subtle film-grain texture overlay for warmth/premium feel */
.grain-overlay {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-primary); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Reveal (GSAP hooks; CSS provides the resting state) ---------- */
.reveal-up { opacity: 0; transform: translateY(28px); }
.reveal-up.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px;
  padding: 0 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
  position: relative;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--glow-primary); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* Magnetic buttons: JS applies a small translate on mousemove within bounds */
.magnetic { will-change: transform; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(23, 15, 19, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: #FBEEEE; }
.logo-icon { width: 38px; height: auto; flex-shrink: 0; }

.main-nav ul { display: flex; gap: 6px; }
.nav-link {
  display: inline-flex; align-items: center;
  padding: 10px 14px; border-radius: var(--radius-full);
  font-weight: 500; color: #C9AEB2;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-link:hover { background: rgba(255,255,255,0.06); color: var(--color-primary-light); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none; background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: var(--radius-sm);
}
.menu-toggle span { width: 22px; height: 2px; background: #FBEEEE; border-radius: 2px; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
  background: radial-gradient(120% 100% at 50% 0%, #2A1712 0%, #1B1418 55%, #170F13 100%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.hero-glow-1 { width: 460px; height: 460px; background: var(--color-primary); opacity: 0.18; top: -160px; left: -120px; }
.hero-glow-2 { width: 380px; height: 380px; background: var(--color-accent); opacity: 0.14; bottom: -140px; right: -100px; }

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-block; margin-bottom: 16px;
  font-weight: 600; font-size: 0.85rem; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(242, 169, 59, 0.12);
  border: 1px solid rgba(242, 169, 59, 0.25);
  padding: 6px 14px; border-radius: var(--radius-full);
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-bottom: 0.45em; color: #FBEEEE; }
.hero-lead { font-size: 1.12rem; max-width: 48ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }

.hero-proof { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--color-text-muted); flex-wrap: wrap; }
.stars { display: flex; gap: 2px; color: var(--color-accent); }

.hero-visual { position: relative; }
.table-scene { width: 100%; height: auto; overflow: visible; }

/* Illustration animations */
.die { transform-box: fill-box; transform-origin: center; animation: dieSpin 7s ease-in-out infinite; }
.die-b { animation-duration: 8.5s; animation-delay: 0.6s; }
@keyframes dieSpin {
  0%, 100% { transform: rotate(var(--r, 0deg)); }
  50% { transform: rotate(calc(var(--r, 0deg) + 14deg)); }
}
.die-a { --r: 12deg; }
.die-b { --r: -18deg; }

.card-float { transform-box: fill-box; transform-origin: center; animation: cardFloat 6s ease-in-out infinite; }
.card-2 { animation-duration: 6.8s; animation-delay: 0.8s; }
.card-3 { animation-duration: 7.4s; animation-delay: 1.6s; }
@keyframes cardFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.meeple { transform-box: fill-box; transform-origin: bottom center; animation: meepleBounce 2.6s ease-in-out infinite; }
.meeple-b { animation-delay: 0.5s; }
.meeple-c { animation-delay: 1s; }
@keyframes meepleBounce {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

.hourglass { transform-box: fill-box; transform-origin: center; }
.sand-top { animation: sandDrain 3.5s ease-in-out infinite; transform-origin: top; }
.sand-bottom { animation: sandFill 3.5s ease-in-out infinite; }
@keyframes sandDrain { 0% { transform: scaleY(1); } 90%, 100% { transform: scaleY(0.15); } }
@keyframes sandFill { 0% { transform: scaleY(0.15); } 90%, 100% { transform: scaleY(1); } }

.steam { animation: steamRise 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.steam-2 { animation-delay: 0.7s; }
@keyframes steamRise {
  0% { opacity: 0; translate: 0 4px; }
  30% { opacity: 0.8; }
  100% { opacity: 0; translate: 0 -10px; }
}

.particle { animation: particleFloat 4.5s ease-in-out infinite; filter: drop-shadow(0 0 4px currentColor); }
.p2 { animation-delay: 1s; }
.p3 { animation-delay: 2s; }
.p4 { animation-delay: 3s; }
@keyframes particleFloat {
  0%, 100% { opacity: 0.3; translate: 0 0; }
  50% { opacity: 1; translate: 6px -14px; }
}

.layer-back { transform-box: fill-box; }
.layer-mid { transform-box: fill-box; }

.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: var(--color-text-muted);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border);
  animation: bob 2.2s ease-in-out infinite;
  z-index: 2;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ---------- Mood strip ---------- */
.mood-strip {
  padding: 56px 0;
  text-align: center;
  background: linear-gradient(135deg, #2A1712 0%, #1B1418 50%, #241A2C 100%);
  border-block: 1px solid rgba(255,255,255,0.05);
}
.mood-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #FBEEEE;
  margin-bottom: 22px;
}
.mood-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mood-tags .tag {
  font-size: 0.85rem; font-weight: 600; color: var(--color-accent);
  background: rgba(242, 169, 59, 0.1);
  border: 1px solid rgba(242, 169, 59, 0.3);
  padding: 7px 16px; border-radius: var(--radius-full);
}

/* ---------- Sections ---------- */
/* `color` is inherited, but a custom property redefined on a descendant
   (.section-light/.section-dark) only reaches elements that themselves
   declare `color: var(--color-text)` — otherwise they keep whatever
   computed color the nearest ancestor with an explicit `color` rule had
   (here: body, resolved against the :root/dark tokens). Re-asserting
   `color` on every section forces headings and unstyled text to
   recompute against the *local* tokens instead of leaking the dark
   theme's text color into light sections. */
.section { padding: 92px 0; background: var(--color-bg); color: var(--color-text); transition: background var(--dur-base); }
.section-eyebrow {
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-accent-dark); margin-bottom: 10px;
}
.section-light .section-eyebrow { color: var(--color-primary-dark); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .section-text { margin-inline: auto; }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.section-text { max-width: 60ch; }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  text-align: center;
}
.stat-item { display: flex; flex-direction: column; gap: 6px; }
.stat-number {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-weight: 600; color: var(--color-text-muted); font-size: 0.95rem; }
.stats-note { text-align: center; font-size: 0.78rem; color: var(--color-text-muted); opacity: 0.7; margin: 40px 0 0; }

/* ---------- Activities ---------- */
.activity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.activity-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 34px;
  position: relative;
  overflow: hidden;
}
.activity-icon {
  width: 62px; height: 62px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 87, 87, 0.12); color: var(--color-primary);
  margin-bottom: 20px;
}
.icon-accent { background: rgba(242, 169, 59, 0.12); color: var(--color-accent-dark); }
.activity-card h3 { font-size: 1.35rem; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.chip-list li {
  font-size: 0.82rem; font-weight: 600; color: var(--color-text);
  background: var(--color-surface-alt); border: 1px solid var(--color-border);
  padding: 6px 12px; border-radius: var(--radius-full);
}

.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--color-primary);
  margin-top: 6px;
  transition: gap var(--dur-fast);
}
.card-link:hover { gap: 10px; }

/* Glowing, elevating hover for "living" cards */
.glow-card { transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base); }
.glow-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--glow-primary);
  border-color: rgba(255, 87, 87, 0.4);
}

/* ---------- Games slider ---------- */
.games-slider-wrap { overflow: hidden; margin-top: 40px; }
.games-slider {
  display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x proximity;
  padding: 8px 20px 28px;
  max-width: 1180px; margin-inline: auto;
  scrollbar-width: thin; scrollbar-color: var(--color-primary) transparent;
}
.games-slider::-webkit-scrollbar { height: 8px; }
.games-slider::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 999px; }

.game-card {
  flex: 0 0 220px; scroll-snap-align: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.game-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--glow-primary); }
.game-art {
  height: 110px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--from), var(--to));
}
.game-body { padding: 18px; }
.game-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-accent); }
.game-body h3 { font-size: 1.15rem; margin: 6px 0 12px; }
.game-meta { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--color-text-muted); }

/* ---------- Timeline ---------- */
.timeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px;
  counter-reset: step; position: relative;
}
.timeline-step {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 26px 22px; position: relative;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.timeline-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.timeline-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff; font-family: var(--font-heading); font-weight: 700;
  margin-bottom: 14px;
}
.timeline-step h3 { font-size: 1.08rem; }
.timeline-step p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Solo reassurance ---------- */
.solo-card {
  max-width: 780px; margin-inline: auto; text-align: center;
  background: linear-gradient(160deg, var(--color-surface), var(--color-surface-alt));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 52px 40px;
}
.solo-icon {
  width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 87, 87, 0.12); color: var(--color-primary);
  margin: 0 auto 20px;
}
.solo-lead { font-size: 1.1rem; max-width: 46ch; margin-inline: auto; }
.solo-points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; margin: 30px 0 34px; }
.solo-point { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 0.95rem; }
.solo-point svg { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }

/* ---------- Masonry gallery ---------- */
.masonry { columns: 3 220px; column-gap: 20px; margin-top: 40px; }
.masonry-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: var(--h, 260px);
  margin-bottom: 20px; break-inside: avoid;
  border: none; border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--from), var(--to));
  color: #fff; font-weight: 600; font-size: 0.95rem; text-align: center; padding: 20px;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.masonry-item:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-lg); }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 6, 8, 0.88);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  animation: fadeIn var(--dur-base) var(--ease-out);
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-content {
  width: min(560px, 90vw); height: min(420px, 70vh);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem;
  text-align: center; padding: 30px;
}
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; display: flex; align-items: center; justify-content: center;
}

/* ---------- Public grid ---------- */
.public-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 48px; }
.public-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 26px 22px; text-align: left;
}
.public-card svg { color: var(--color-primary); margin-bottom: 14px; }
.public-card h3 { font-size: 1.1rem; }
.public-card p { font-size: 0.92rem; margin-bottom: 0; }

.testimonial {
  max-width: 680px; margin: 0 auto; text-align: center;
  padding: 36px; border-radius: var(--radius-lg);
  background: var(--color-surface-alt); border: 1px solid var(--color-border);
}
.testimonial .stars { justify-content: center; margin-bottom: 16px; }
.testimonial p { font-size: 1.1rem; font-style: italic; color: var(--color-text); }
.testimonial cite { font-size: 0.8rem; color: var(--color-text-muted); font-style: normal; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; margin: 26px 0; }
.contact-info li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contact-info svg { color: var(--color-primary); flex-shrink: 0; }
.contact-info small { color: var(--color-text-muted); font-weight: 400; }

.social-links { display: flex; gap: 12px; }
.social-link {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-surface); border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.social-link:hover { background: var(--color-primary); color: #fff; }

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.req { color: var(--color-error); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(255, 87, 87, 0.18);
  outline: none;
}
.form-field.has-error input,
.form-field.has-error textarea { border-color: var(--color-error); }
.field-error { color: var(--color-error); font-size: 0.82rem; margin: 6px 0 0; min-height: 1.1em; }

.form-success {
  margin-top: 16px; padding: 14px 16px;
  background: rgba(242, 169, 59, 0.14);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  color: var(--color-text); font-weight: 500; font-size: 0.92rem;
}

/* ---------- Map ---------- */
.map-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: stretch; }
.map-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  min-height: 360px;
  filter: saturate(1.05);
}
.map-card iframe { display: block; width: 100%; height: 100%; min-height: 360px; }
.map-info {
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 30px;
}
.map-badge { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.map-badge svg { color: var(--color-primary); flex-shrink: 0; }
.map-info .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); padding: 48px 0; background: #170F13; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-logo { display: inline-flex; }
.footer-logo-img { height: 72px; width: auto; }
.footer-tagline { margin: 4px 0 0; font-style: italic; }
.footer-copy { font-size: 0.85rem; margin: 0; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-primary); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--dur-base), transform var(--dur-base), visibility var(--dur-base);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 520px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .public-grid { grid-template-columns: repeat(2, 1fr); }
  .solo-points { grid-template-columns: 1fr; }
  .masonry { columns: 2 200px; }
  .map-wrap { grid-template-columns: 1fr; }
  .map-card { min-height: 300px; }
}

@media (max-width: 899px) {
  .main-nav {
    position: fixed; inset: 72px 0 0 0;
    background: #1B1418;
    padding: 24px 20px;
    transform: translateX(100%);
    transition: transform var(--dur-base) var(--ease-out);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .nav-link { display: block; padding: 14px 16px; font-size: 1.05rem; }
  .menu-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
}

@media (max-width: 767px) {
  .container { padding-inline: 18px; }

  .hero { padding: 40px 0 64px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; }
  .public-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1 100%; }
  .contact-form { padding: 22px; }
  .solo-card { padding: 36px 22px; }
}
