:root {
  --bg: #f5efe7;
  --surface: #fffaf3;
  --text: #151313;
  --muted: #5d544e;
  --accent: #d42a2f;
  --accent-text: #ffffff;
  --accent-ink: #b11c22;
  --font-heading: 'Oswald', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
  --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-accent: 'Oswald', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
}

/* ==========================================================================
   Direction "poster" — a brand that speaks in big condensed capitals over its
   own photos. Cream paper, black ink, one red. Signature moves: the hero photo
   full-bleed with the name in giant condensed caps over it; a round red stamp
   with the business's claim running around the ring; every section opening
   with a cover — a photo band (or a black band) with the title in giant caps;
   a route line through the business's spots; the mark (a transparent PNG
   silhouette, design.mark) in red on the route and in the footer; a black
   footer with the name set across the full width. Square corners, thick black
   rules, no shadows; gradients only shade photos under text.

   Tokens from new_site.py: --bg --surface --text --muted --accent --accent-text
                            --accent-ink --font-heading --font-body
   Type scale (mobile → desktop), details in NOTES.md:
     h1      clamp(4.25rem, 2.2rem + 9vw, 9.5rem)    700, caps, lh .88 (condensed)
     cover   clamp(3rem, 1.4rem + 7vw, 7.5rem)        700, caps, lh .9
     h2      clamp(2.25rem, 1.6rem + 3vw, 4rem)       700, caps, lh .95
     h3      clamp(1.5rem, 1.2rem + 1vw, 2rem)        600, caps
     body    1rem / 1.6; caps labels .74rem .14em
   Spacing: 8px steps, section padding clamp(3.5rem, 8vw, 6.5rem).
   ========================================================================== */

:root {
  --s1: .5rem;  --s2: 1rem;  --s3: 1.5rem;  --s4: 2rem;  --s5: 2.5rem;
  --s6: 3rem;   --s8: 4rem;  --s10: 5rem;   --s12: 6rem;
  --section-pad: clamp(3.5rem, 8vw, 6.5rem);
  --page-pad: clamp(1.25rem, 4vw, 3rem);
  --container: 1180px;
  --measure: 34em;
  --rule: 3px solid var(--text);
  --hair: 1px solid rgb(0 0 0 / .16);
  --paper-ink: #fff;
}

@supports (color: color-mix(in srgb, red 50%, transparent)) {
  :root {
    --hair: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
    --paper-ink: color-mix(in srgb, var(--bg) 70%, #fff);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; margin: 0; text-transform: uppercase; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl { margin: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container { width: min(100% - 2 * var(--page-pad), var(--container)); margin-inline: auto; }

.kicker, .label-caps {
  margin: 0 0 .9rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* Inline SVG patterns; the parent is position:relative + overflow:hidden. */
.pattern { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* The mark (design.mark): a silhouette PNG used as a mask, painted in a colour. */
.stamp-mark, .stop-mark, .footer-mark {
  display: block;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}

/* ---------------------------------------------------------------- header */
.site-header { background: var(--bg); border-bottom: var(--rule); padding-block: .6rem; }

.header-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .4rem var(--s2);
}

.brand { display: inline-flex; align-items: center; gap: .65rem; min-width: 0; min-height: 44px; text-decoration: none; }

.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
}
.brand-mark--img { padding: 0; object-fit: cover; background: transparent; }

.brand-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.header-phone {
  display: none;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Navigation: spaced caps; on phones one strip that scrolls sideways. */
.nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  gap: 0 1.15rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .7rem 1.5rem;
  border: 2px solid var(--text);
  background: transparent;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.btn-call { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

.hero-actions, .contacts-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ----------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; }

.hero-kicker {
  margin: 0 0 1rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 var(--s2);
  font-size: clamp(4.25rem, 2.2rem + 9vw, 9.5rem);
  line-height: .88;
  letter-spacing: -.005em;
  overflow-wrap: break-word;
}

.hero-lead {
  max-width: 28em;
  margin: 0 0 var(--s4);
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  font-weight: 500;
  line-height: 1.4;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  margin-top: var(--s3);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.hero-meta span, .hero-meta a { white-space: nowrap; }
.hero-meta a { text-decoration: none; }

/* photo: the picture fills the hero, the copy sits low over a shade. */
.hero--photo {
  display: flex;
  align-items: flex-end;
  min-height: min(92svh, 56rem);
  background: var(--text);
  color: #fff;
}
.hero--photo .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / .28) 0%, rgb(0 0 0 / 0) 26%, rgb(0 0 0 / .18) 48%, rgb(0 0 0 / .86) 100%);
}
.hero--photo .hero-grid { padding-block: 8rem var(--s5); }
.hero--photo .hero-copy { position: relative; z-index: 1; }
.hero--photo .hero-kicker, .hero--photo .hero-meta { color: rgb(255 255 255 / .88); }
.hero--photo .btn:not(.btn-call) { border-color: #fff; color: #fff; }

/* type / pattern: a black poster. */
.hero--type, .hero--pattern { background: var(--text); color: var(--bg); }
.hero--type .hero-grid, .hero--pattern .hero-grid { position: relative; padding-block: var(--s8) var(--s6); }
.hero--type .hero-title, .hero--pattern .hero-title { color: var(--bg); }
.hero--type .hero-kicker, .hero--pattern .hero-kicker { color: var(--accent); }
.hero--type .btn:not(.btn-call), .hero--pattern .btn:not(.btn-call) { border-color: var(--bg); color: var(--bg); }

/* split: copy on paper, the photo on the right edge (below on phones). */
.hero-grid--split { display: grid; }
.container-half { padding: var(--s6) var(--page-pad) var(--s5); }
.hero-figure { position: relative; margin: 0; min-height: 62svh; }
.hero-figure .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* The stamp: red disc, claim around the ring, mark (or a star) in the middle. */
.stamp {
  position: absolute;
  z-index: 2;
  top: 1.25rem;
  right: var(--page-pad);
  display: grid;
  place-items: center;
  width: 8.25rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  transform: rotate(-10deg);
}
.stamp-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.stamp-text { font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: .08em; fill: currentColor; }
.stamp-mark { width: 34%; height: 40%; background: currentColor; }
.stamp-star { font-size: 2.25rem; line-height: 1; }

/* ------------------------------------------------------------- sections */
.section { padding-top: var(--section-pad); }
.contacts-section { padding-bottom: var(--section-pad); }

.section-head { margin: 0 0 var(--s5); padding-bottom: var(--s2); border-bottom: var(--rule); }
.section-title { font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem); line-height: .95; letter-spacing: .005em; }

/* Cover: a full-bleed band, the title in giant caps over a photo (or on black). */
.cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(13rem, 36vw, 30rem);
  margin-bottom: var(--s5);
  overflow: hidden;
  background: var(--text);
  color: #fff;
}
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .08) 0%, rgb(0 0 0 / .38) 42%, rgb(0 0 0 / .82) 100%); }
.cover-inner { position: relative; z-index: 1; padding-block: var(--s5) var(--s3); }
.cover-inner::before { content: ""; display: block; width: 3.5rem; height: .45rem; margin-bottom: 1rem; background: var(--accent); }
.cover-kicker { margin-bottom: .5rem; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .88); }
.cover-title { font-size: clamp(3rem, 1.4rem + 7vw, 7.5rem); line-height: .9; letter-spacing: .005em; color: #fff; overflow-wrap: anywhere; }

/* ------------------------------------------------------------- locations */
/* The route: numbered stops on a dashed red line (vertical on phones). */
.route { display: grid; }
.stop { position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--s3); padding-bottom: var(--s5); }
.stop:last-child { padding-bottom: 0; }
.stop::before { content: ""; position: absolute; left: calc(1.75rem - 1px); top: 3.75rem; bottom: .25rem; border-left: 2px dashed var(--accent); }
.stop:last-child::before { display: none; }
.stop-dot {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
}
.stop:first-child .stop-dot { background: var(--accent); color: var(--accent-text); }
.stop-mark { width: 52%; height: 62%; background: currentColor; }
.stop-name { margin-bottom: .2rem; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stop-address { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; line-height: 1.05; }
.stop-note { margin-top: .4rem; color: var(--muted); }
.stop-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: .25rem; color: var(--accent-ink); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }

/* ----------------------------------------------------------------- menu */
.board { display: grid; gap: 0; }
.item { padding: 1rem 0 1.4rem; border-top: 2px solid var(--text); }
.item-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.item-name { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; line-height: 1.05; letter-spacing: .01em; }
.item-price { flex: none; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; color: var(--accent-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item-desc { max-width: 40em; margin-top: .55rem; color: var(--muted); }

.menu-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: var(--s3); color: var(--accent-ink); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.menu-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- about */
.about-grid { display: grid; gap: var(--s6); }
.about-text { max-width: var(--measure); font-size: clamp(1.125rem, 1rem + .5vw, 1.4rem); line-height: 1.55; }

.about-side { display: grid; gap: var(--s3); align-content: start; }
.score { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.25rem; border-bottom: var(--rule); text-decoration: none; }
.score-value { font-family: var(--font-heading); font-size: 5rem; font-weight: 700; line-height: .82; color: var(--accent-ink); }
.score-side { display: grid; gap: .3rem; }
.score-label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stars { display: inline-flex; gap: .12rem; }
.star { width: 1.05rem; height: 1.05rem; fill: rgb(0 0 0 / .18); }
@supports (color: color-mix(in srgb, red 50%, transparent)) { .star { fill: color-mix(in srgb, var(--text) 18%, transparent); } }
.star--on { fill: var(--accent); }

.facts { display: grid; }
.fact { display: flex; gap: .85rem; padding: .85rem 0; border-bottom: var(--hair); font-weight: 600; }
.fact::before { content: ""; flex: none; width: .65rem; height: .65rem; margin-top: .5rem; background: var(--accent); }

/* ---------------------------------------------------------------- steps */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem var(--s3); padding: var(--s3) 0; border-top: 2px solid var(--text); }
.step-num { grid-row: 1 / 3; font-family: var(--font-heading); font-size: 3rem; font-weight: 700; line-height: .9; color: var(--accent); }
.step-name { font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.step-desc { grid-column: 2; color: var(--muted); }

/* -------------------------------------------------------------- reviews */
.quotes { display: grid; gap: 0; }
.quote { position: relative; padding: var(--s5) 0 var(--s4); border-top: var(--hair); }
.quote:first-child { border-top: 0; padding-top: var(--s3); }
.quote-mark { display: block; height: 2.6rem; margin-bottom: .25rem; font-family: var(--font-heading); font-size: 5.5rem; font-weight: 700; line-height: 1; color: var(--accent); }
.quote-text { font-size: 1.125rem; line-height: 1.55; }
.quote-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-top: var(--s2); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.quote-meta b { color: var(--text); }

.reviews-more { margin-top: var(--s3); }
.link-more { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-ink); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

/* -------------------------------------------------------------- gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.gallery-item { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s3);
  background: rgb(0 0 0 / .88);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 88vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: var(--s2);
  right: var(--s2);
  width: 3rem;
  height: 3rem;
  border: 0;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ------------------------------------------------------------- contacts */
.contacts-grid { display: grid; gap: var(--s5); }

.contacts-actions { margin-bottom: var(--s4); }

.hours-block { margin-bottom: var(--s3); }
.hours { border-top: 2px solid var(--text); }
.hours li { padding: .6rem 0; border-bottom: var(--hair); font-family: var(--font-heading); font-size: 1.35rem; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

.contacts { display: grid; }
.contact { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s2); padding: .7rem 0; border-bottom: var(--hair); }
.contact dt { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.contact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.contact dd a { display: inline-block; padding-block: .6em; margin-block: -.6em; text-decoration: none; }

.contacts-map { display: flex; flex-direction: column; }
.map { aspect-ratio: 4 / 3; overflow: hidden; border: var(--rule); background: var(--surface); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

.route-link { display: inline-flex; align-items: center; align-self: flex-start; min-height: 3rem; margin-top: var(--s2); color: var(--accent-ink); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }

/* --------------------------------------------------------------- footer */
.site-footer { padding: var(--s6) 0 calc(var(--s5) + 5rem); background: var(--text); color: var(--bg); }

.footer-word {
  display: flex;
  align-items: flex-end;
  gap: .12em;
  margin: 0 0 var(--s5);
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 15.5vw, 12.5rem);
  font-weight: 700;
  line-height: .82;
  letter-spacing: -.005em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.footer-mark { flex: none; width: .62em; height: .8em; background: var(--accent); }

.footer-main { display: grid; gap: .25rem; margin-bottom: var(--s3); }
.footer-name { display: none; } /* the giant word above already says it */
.footer-address { opacity: .78; }
.footer-phone a { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; text-decoration: none; color: var(--accent); font-variant-numeric: tabular-nums; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid rgb(255 255 255 / .2);
  font-size: .85rem;
  opacity: .8;
}
.footer-credit a { color: inherit; }

/* ------------------------------------------------------ sticky mobile bar */
.sticky-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: .5rem;
  padding: .6rem var(--page-pad) calc(.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--text);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform .3s ease, visibility 0s linear .3s;
}
.sticky-bar.is-visible { transform: none; visibility: visible; transition-delay: 0s; }

.sticky-bar a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .5rem 1rem;
  border: 2px solid var(--bg);
  color: var(--bg);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.sticky-bar .sticky-call { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

/* --------------------------------------------------------- hover motion */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn, .sticky-bar a, .nav a, .stop-link, .route-link, .link-more { transition: opacity .15s ease, color .15s ease, background-color .15s ease; }
  .btn:hover, .sticky-bar a:hover { opacity: .85; }
  .nav a:hover { color: var(--accent-ink); }
  .gallery-item img, .cover-img { transition: transform .6s ease; }
  .gallery-item:hover img { transform: scale(1.05); }
  .stamp { transition: transform .4s ease; }
  .stamp:hover { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky-bar { transition: none; }
}

/* ---------------------------------------------------------- two columns */
@media (min-width: 700px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s8); }
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s5); }
  .quote:nth-child(2) { border-top: 0; padding-top: var(--s3); }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
  .stamp { width: 10rem; }
  .stamp-text { font-size: 12.5px; }
}

/* -------------------------------------------------------------- desktop */
@media (min-width: 900px) {
  .header-row { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: .5rem var(--s3); }
  .nav { grid-column: 2; grid-row: 1; justify-content: center; overflow: visible; gap: 0 1.6rem; }
  .header-phone { display: inline-flex; grid-column: 3; grid-row: 1; }

  .hero--photo { min-height: min(90vh, 52rem); }
  .hero--photo .hero-grid { padding-block: 10rem var(--s8); }
  .hero-title { max-width: 9ch; }
  .stamp { top: auto; bottom: var(--s8); right: max(var(--page-pad), calc((100vw - var(--container)) / 2)); width: 12rem; }
  .hero--type .hero-grid, .hero--pattern .hero-grid { padding-block: var(--s12) var(--s10); min-height: min(80vh, 44rem); display: flex; align-items: flex-end; }

  .hero-grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(88vh, 50rem); }
  .container-half { display: flex; align-items: center; padding: var(--s8) var(--s6) var(--s8) max(var(--page-pad), calc((100vw - var(--container)) / 2)); }
  .hero-figure { min-height: 100%; }
  .hero-grid--split .stamp { top: auto; bottom: var(--s5); right: auto; left: calc(-1 * 6rem); }

  /* The route turns horizontal: dots in a row on one dashed line. */
  .route { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: var(--s4); }
  .stop { grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding-bottom: 0; }
  .stop::before { left: 4.25rem; right: calc(-1 * var(--s4) + .75rem); top: calc(1.75rem - 1px); bottom: auto; border-left: 0; border-top: 2px dashed var(--accent); }

  .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s12); }

  .steps { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); column-gap: var(--s5); }
  .step { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .step-num { grid-row: auto; margin-bottom: var(--s2); }
  .step-desc { grid-column: auto; }

  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 0; }
  .quote { padding: var(--s4) var(--s4) var(--s4) var(--s4); border-top: var(--hair); }
  .quote:nth-child(-n+3) { border-top: 0; padding-top: var(--s2); }
  .quote:not(:nth-child(3n+1)) { border-left: var(--hair); }
  .quote:nth-child(3n+1) { padding-left: 0; }

  .gallery-grid { grid-auto-rows: 17rem; }
  .gallery-item { aspect-ratio: auto; height: 100%; }
  .gallery-cell:first-child { grid-column: span 2; grid-row: span 2; }

  .contacts-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); }
  .map { flex: 1; min-height: 26rem; aspect-ratio: auto; }

  .footer-main { grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: var(--s3); }
  .site-footer { padding-bottom: var(--s6); }

  .sticky-bar { display: none; }
}

/* Language switch (base/lang_switch.html.j2): a <details> dropdown — current
   language on the button, all three in a small menu under it. */
.lang-switch { position: relative; grid-column: 2; grid-row: 1; }
.lang-switch summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 44px;
  padding: 0 .75rem;
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  -webkit-user-select: none;
  user-select: none;
  border: 2px solid var(--text);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::marker { content: ""; }
.lang-caret { width: .65em; height: .65em; flex: none; transition: transform .15s ease; }
.lang-switch[open] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .3rem);
  z-index: 40;
  min-width: 10.5rem;
  margin: 0;
  padding: .3rem;
  list-style: none;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--text);
  box-shadow: 6px 6px 0 var(--text);
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: .7em;
  min-height: 42px;
  padding: 0 .75rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.lang-menu a:hover { background: var(--bg); }
.lang-menu a[aria-current="page"] { color: var(--accent-ink); pointer-events: none; }
.lang-menu .lang-name { color: var(--muted); font-weight: 400; font-size: .85em; letter-spacing: 0; text-transform: none; }
/* Desktop: last column of the header grid, after the contact. Must come
   after the base .lang-switch rule above. */
@media (min-width: 900px) {
  .lang-switch { grid-column: 4; grid-row: 1; }
}
