/* =========================================================
   MINIGOLF BOVISIO — Est. 1965
   Design system: "Italian garden sport club"
   Pine green dominant · heritage serif · mono scorecard motif
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* palette */
  --pine:       #103528;   /* deep bottle green — hero + footer ground */
  --pine-2:     #0b271e;   /* darker */
  --fairway:    #2e9e5b;   /* mid grass */
  --grass:      #47c877;   /* bright accent green */
  --cream:      #f4eedd;   /* paper */
  --cream-2:    #ebe2ca;   /* paper shade */
  --gold:       #f2b33d;   /* sunny yellow */
  --clay:       #e1573b;   /* persimmon / italian signage */
  --ink:        #10231a;   /* near-black green text */
  --ink-soft:   #35473d;

  /* roles */
  --bg:         var(--cream);
  --fg:         var(--ink);
  --muted:      var(--ink-soft);
  --accent:     var(--clay);

  /* type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Space Grotesk", system-ui, -apple-system, sans-serif;
  --mono:    "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* scale */
  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.9rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1:  clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem);
  --step-2:  clamp(1.7rem, 1.4rem + 1.4vw, 2.4rem);
  --step-3:  clamp(2.3rem, 1.7rem + 2.8vw, 3.8rem);
  --step-4:  clamp(3rem, 1.9rem + 5.2vw, 6.5rem);
  --step-5:  clamp(3.6rem, 1.8rem + 8vw, 9rem);

  --maxw: 1200px;
  --radius: 18px;
  --radius-lg: 30px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 50px -20px rgba(16, 35, 26, 0.35);
}

/* ---------- Reset-ish ---------- */
* { box-sizing: border-box; }
/* overflow-x: clip (not hidden) prevents the horizontal scrollbar WITHOUT
   turning <body> into a scroll container — the latter breaks position:fixed
   (the navbar) on real mobile browsers. Keep the viewport (html) the only scroller. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* scroll-lock while the mobile menu is open (html is the scroller) */
html.nav-open, html.nav-open body { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 3rem, var(--maxw)); margin-inline: auto; }
.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--1);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.7ch;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--ink);
  --fg-btn: var(--cream);
  font-family: var(--body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.02em;
  padding: 0.85em 1.5em;
  border-radius: 100px;
  background: var(--bg-btn);
  color: var(--fg-btn);
  display: inline-flex; align-items: center; gap: 0.6ch;
  border: 1.5px solid var(--bg-btn);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -12px rgba(16,35,26,0.5); }
.btn--gold { --bg-btn: var(--gold); --fg-btn: var(--ink); }
.btn--clay { --bg-btn: var(--clay); --fg-btn: #fff; }
.btn--ghost { --bg-btn: transparent; --fg-btn: currentColor; border-color: currentColor; }
.btn--ghost:hover { --bg-btn: currentColor; }
.btn--ghost:hover span { color: var(--pine); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, padding 0.4s var(--ease);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--pine) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  padding-block: 0.7rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav__brand { display: flex; align-items: center; gap: 0.7ch; color: var(--cream); font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
.nav__brand .mark { width: 34px; height: 34px; }
.nav__brand small { font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.25em; opacity: 0.7; display: block; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a {
  color: var(--cream); font-size: var(--step--1); font-weight: 500; letter-spacing: 0.02em;
  position: relative; padding: 0.3rem 0; opacity: 0.85; transition: opacity 0.25s;
}
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--gold); transition: width 0.3s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__cta { margin-left: 0.5rem; }
.nav__toggle { display: none; }

/* mobile nav */
@media (max-width: 860px) {
  .nav__toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
    position: relative; z-index: 130; /* must be positioned for z-index to apply — keeps the × above the open menu */
  }
  .nav__toggle span { width: 26px; height: 2px; background: var(--cream); transition: transform 0.3s var(--ease), opacity 0.3s; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__menu {
    position: fixed; inset: 0; background: var(--pine-2);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
    transform: translateX(100%); transition: transform 0.45s var(--ease); z-index: 110;
  }
  .nav.is-open .nav__menu { transform: translateX(0); }
  .nav__links { flex-direction: column; gap: 1.4rem; }
  .nav__links a { font-size: var(--step-1); }
  .nav__cta { margin: 1rem 0 0; }
  .hero__hint { display: none; }
  .hero__badge { top: 5.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid;
  background: radial-gradient(120% 90% at 70% 0%, #1c5240 0%, var(--pine) 42%, var(--pine-2) 100%);
  color: var(--cream); overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero__inner {
  position: relative; z-index: 3; align-self: end;
  padding: 8rem clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 6vh, 5rem);
  width: min(100% - 3rem, var(--maxw)); margin-inline: auto;
  pointer-events: none;
}
.hero__inner > * { pointer-events: auto; }
.hero__title {
  font-size: var(--step-5); font-weight: 300; letter-spacing: -0.03em; margin: 0.4rem 0 1.2rem;
  text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--gold); font-weight: 400; }
.hero__lead { max-width: 44ch; font-size: var(--step-1); color: color-mix(in srgb, var(--cream) 88%, transparent); font-family: var(--display); font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.hero__scrim { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, rgba(11,39,30,0.85) 0%, rgba(11,39,30,0.15) 45%, transparent 70%); pointer-events: none; }
.hero__badge {
  position: absolute; top: 6.5rem; right: clamp(1.5rem, 5vw, 4rem); z-index: 3;
  font-family: var(--mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.2em;
  border: 1.5px solid color-mix(in srgb, var(--gold) 60%, transparent); border-radius: 100px; padding: 0.5em 1.1em; color: var(--gold);
  backdrop-filter: blur(4px);
}
.hero__hint { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 3; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.6; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.hero__hint::after { content: ""; width: 1px; height: 30px; background: linear-gradient(var(--gold), transparent); animation: hint 2s infinite; }
@keyframes hint { 0%,100%{opacity:.3; transform: scaleY(.6)} 50%{opacity:1; transform: scaleY(1)} }

/* loading state for canvas — real photo shows until the 3D scene fades in */
.canvas-fallback {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 90% at 70% 20%, rgba(46,158,91,0.5) 0%, var(--pine) 55%, var(--pine-2) 100%), url("../img/header.jpg");
  background-size: cover; background-position: center;
  transition: opacity 0.9s ease;
}

/* ---------- Section frame ---------- */
.section { padding: clamp(4rem, 9vh, 8rem) 0; position: relative; }
.section--dark { background: var(--pine); color: var(--cream); }
.section--gold { background: var(--gold); color: var(--ink); }
.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.section__head h2 { font-size: var(--step-3); margin-top: 0.8rem; text-wrap: balance; }
.section__head p { margin-top: 1rem; color: var(--muted); font-size: var(--step-1); font-family: var(--display); font-weight: 300; }
.section--dark .section__head p { color: color-mix(in srgb, var(--cream) 75%, transparent); }

/* ---------- Scorecard hole marker (signature structural device) ---------- */
.hole-tag {
  font-family: var(--mono); font-size: var(--step--1); letter-spacing: 0.15em;
  display: inline-flex; align-items: baseline; gap: 0.6ch; color: var(--fairway);
}
.hole-tag b { font-family: var(--display); font-size: 1.4em; font-weight: 600; }

/* ---------- Feature cards (services) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  position: relative; background: var(--cream); border: 1.5px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: var(--radius-lg); padding: 2rem 1.8rem 2.2rem; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.card::before { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--accent-c, var(--fairway)); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__num { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--muted); }
.card__ico { width: 56px; height: 56px; margin: 1.2rem 0; color: var(--accent-c, var(--fairway)); }
.card h3 { font-size: var(--step-2); margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: var(--step-0); margin-bottom: 0; }
.card--minigolf { --accent-c: var(--fairway); }
.card--pingpong { --accent-c: var(--clay); }
.card--bar { --accent-c: var(--gold); }

/* ---------- Story / split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.story__stats { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.stat b { font-family: var(--display); font-size: var(--step-3); display: block; line-height: 1; color: var(--fairway); }
.stat span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.section--dark .stat b { color: var(--gold); }
.section--dark .stat span { color: color-mix(in srgb, var(--cream) 65%, transparent); }
.story__media {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: linear-gradient(160deg, #2e9e5b, #103528); box-shadow: var(--shadow);
}
.story__media .plate { position: absolute; inset: 0; }
.story__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__media figcaption { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1.6rem 1.2rem 1rem; background: linear-gradient(transparent, rgba(11,39,30,0.8)); color: var(--cream); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Promo band ---------- */
.promo { background: var(--clay); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; overflow: hidden; position: relative; }
.promo__big { font-family: var(--display); font-size: var(--step-4); line-height: 0.9; }
.promo h3 { font-size: var(--step-2); margin-bottom: 0.4rem; }
.promo p { margin: 0; opacity: 0.9; }
.promo::after { content: "⛳"; position: absolute; right: -10px; bottom: -30px; font-size: 12rem; opacity: 0.12; }

/* ---------- Hours ---------- */
.hours { display: grid; gap: 0; border-top: 1.5px solid color-mix(in srgb, currentColor 20%, transparent); }
.hours__row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1.5px solid color-mix(in srgb, currentColor 15%, transparent); }
.hours__row .n { font-family: var(--mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.1em; }
.hours__row .label { font-family: var(--display); font-size: var(--step-1); }
.hours__row .time { font-family: var(--mono); font-size: var(--step-0); }
.section--dark .hours__row .time { color: var(--gold); }

/* ---------- Contact rows ---------- */
.contacts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.contact-card { border: 1.5px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: var(--radius); padding: 1.5rem; transition: border-color 0.3s, transform 0.3s var(--ease); }
.contact-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.contact-card .k { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.7; }
.contact-card .v { font-family: var(--display); font-size: var(--step-1); margin-top: 0.3rem; }

/* ---------- Gallery (real photos, masonry) ---------- */
.gallery { columns: 3; column-gap: 1.1rem; }
.gallery figure { break-inside: avoid; margin: 0 0 1.1rem; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); cursor: zoom-in; background: var(--pine); }
.gallery figure .plate { width: 100%; aspect-ratio: var(--ar, 3/4); }
.gallery img { width: 100%; height: auto; display: block; transition: transform 0.6s var(--ease); }
.gallery figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(11,39,30,0.5)); opacity: 0; transition: opacity 0.4s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figure:hover::after { opacity: 1; }
@media (max-width: 860px) { .gallery { columns: 2; } }
@media (max-width: 520px) { .gallery { columns: 1; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; background: rgba(6,20,15,0.92); backdrop-filter: blur(6px); padding: clamp(1rem, 4vw, 3rem); }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7); }
.lightbox__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid rgba(244,238,221,0.35); background: rgba(16,53,40,0.6); color: var(--cream); font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; transition: background 0.25s, transform 0.25s var(--ease); }
.lightbox__btn:hover { background: var(--clay); transform: translateY(-50%) scale(1.06); }
.lightbox__prev { left: clamp(0.6rem, 3vw, 2rem); }
.lightbox__next { right: clamp(0.6rem, 3vw, 2rem); }
.lightbox__close { top: clamp(0.8rem, 3vw, 1.6rem); right: clamp(0.8rem, 3vw, 1.6rem); transform: none; }
.lightbox__close:hover { transform: scale(1.06); }
.lightbox__count { position: absolute; bottom: clamp(0.8rem, 3vw, 1.6rem); left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; color: color-mix(in srgb, var(--cream) 75%, transparent); }

/* ---------- Photo page-header ---------- */
.page-hero__photo { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center 42%; opacity: 0.24; }
.page-hero > .wrap { position: relative; z-index: 2; }

/* ---------- Home gallery preview strip ---------- */
.gallery-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.8rem; }
.gallery-strip a { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-strip a:hover img { transform: scale(1.08); }
@media (max-width: 860px) { .gallery-strip { grid-template-columns: repeat(3, 1fr); } }

/* placeholder notice (gallery) */
.notice { border: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 2rem; color: var(--muted); font-size: var(--step-0); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.notice strong { color: var(--fg); font-family: var(--display); }

/* decorative "photo" plates (no external images needed) */
.plate { background-size: cover; background-position: center; }
.plate--1 { background: conic-gradient(from 210deg at 40% 30%, #47c877, #2e9e5b, #103528, #47c877); }
.plate--2 { background: linear-gradient(160deg, #f2b33d, #e1573b); }
.plate--3 { background: radial-gradient(circle at 30% 30%, #7fdca0, #2e9e5b 60%, #0b271e); }
.plate--4 { background: linear-gradient(135deg, #1c5240, #47c877); }
.plate--5 { background: linear-gradient(200deg, #e1573b, #f2b33d 80%); }
.plate--6 { background: radial-gradient(circle at 70% 20%, #f4eedd, #2e9e5b 70%); }

/* ---------- Map / location ---------- */
.map-embed { border: 0; width: 100%; height: 100%; min-height: 360px; border-radius: var(--radius-lg); filter: saturate(1.05); }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.location-grid .panel { align-self: center; }

/* ---------- Tournaments list ---------- */
.timeline { border-left: 2px solid color-mix(in srgb, currentColor 20%, transparent); margin-left: 0.5rem; }
.timeline li { position: relative; padding: 0 0 2.2rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--pine); }
.timeline .when { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; }
.timeline h3 { font-size: var(--step-1); margin: 0.35rem 0 0.5rem; }

/* ---------- Footer ---------- */
.footer { background: var(--pine-2); color: var(--cream); padding: clamp(3rem, 7vh, 5rem) 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer h4 { font-family: var(--mono); font-weight: 400; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.footer a { opacity: 0.8; display: block; margin-bottom: 0.6rem; transition: opacity 0.25s, color 0.25s; }
.footer a:hover { opacity: 1; color: var(--gold); }
.footer__brand p { max-width: 34ch; opacity: 0.75; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; opacity: 0.6; }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }

/* ---------- Page header (interior pages) ---------- */
.page-hero { padding: 10rem clamp(1.5rem,5vw,4rem) 4rem; background: radial-gradient(120% 120% at 80% 0%, #1c5240, var(--pine) 60%, var(--pine-2)); color: var(--cream); position: relative; overflow: hidden; }
.page-hero h1 { font-size: var(--step-4); font-weight: 300; letter-spacing: -0.03em; text-wrap: balance; margin-top: 0.6rem; }
.page-hero em { font-style: italic; color: var(--gold); }
.page-hero p { max-width: 52ch; margin-top: 1.2rem; font-family: var(--display); font-weight: 300; font-size: var(--step-1); color: color-mix(in srgb, var(--cream) 82%, transparent); }
.page-hero::after { content: ""; position: absolute; right: -6%; top: -20%; width: 42%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(71,200,119,0.4), transparent 65%); filter: blur(20px); }

/* prezzi rows: label + price, two columns */
.hours--price .hours__row { grid-template-columns: 1fr auto; }
.hours--price .hours__row .time { justify-self: end; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .features { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .story__media { aspect-ratio: 16/10; }
  .promo { grid-template-columns: 1fr; text-align: left; }
  .location-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contacts { grid-template-columns: 1fr; }
}

/* these come after the hero/base rules so they win on source order */
@media (max-width: 760px) {
  .hero__hint { display: none; }
  .hero__badge { display: none; }
  .hero__inner { padding-top: 7rem; }
  .page-hero { padding-top: 8.5rem; }
  .promo__big { font-size: var(--step-3); }
  .promo::after { font-size: 8rem; bottom: -18px; }
  .section__head h2 { font-size: var(--step-2); }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hours__row { grid-template-columns: auto 1fr; }
  .hours__row .time { grid-column: 2; justify-self: start; }
  .hours--price .hours__row { grid-template-columns: 1fr auto; }
  .hours--price .hours__row .time { grid-column: 2; justify-self: end; }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .story__stats { gap: 1.4rem; }
  .contact-card .v { font-size: var(--step-0); }
}

/* ---------- Accessibility ---------- */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
