/* ==========================================================================
   Ascua · layout and components
   Colours and fonts come from css/theme.css. Sections are marked with
   the same names as in index.html (HEADER, HERO, MENU…).
   ========================================================================== */

/* ---------- Base ---------- */
html { color-scheme: dark; background: var(--bg); scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html:not(.has-smooth-scroll) { scroll-behavior: smooth; } }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 0.98; letter-spacing: -0.02em; }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
address { font-style: normal; }
.noscript { padding: 1rem; text-align: center; background: var(--accent); color: var(--accent-fg); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75em;
  font-size: var(--step--2); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ''; width: 1.75rem; height: 1px; background: currentColor; }

/* Light sections */
.theme-light {
  --bg: var(--light-bg); --surface: var(--light-surface); --fg: var(--light-fg); --muted: var(--light-muted);
  --line: var(--light-line); --line-strong: var(--light-line-strong); --accent: var(--light-accent); --accent-fg: var(--light-accent-fg);
  background: var(--bg); color: var(--fg); color-scheme: light;
}

/* Images inside a frame (used for parallax). The frame keeps a warm tone while the photo loads */
.about__img, .dish-card__media, .gallery__feature, .gallery__item { background: color-mix(in oklab, var(--fg) 10%, var(--surface)); }
.media { width: 100%; height: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buttons and links ---------- */
.btn {
  --btn-bg: var(--fg); --btn-fg: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 1em 1.6em; border-radius: var(--radius-btn); border: 1px solid var(--btn-bg);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.02em; line-height: 1; white-space: nowrap;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--accent-fg); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--sm { padding: 0.8em 1.2em; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn__roll { display: inline-grid; overflow: hidden; height: 1.15em; line-height: 1.15; }
.btn__roll > span { grid-area: 1 / 1; transition: transform 0.5s var(--ease-out); }
.btn__roll > span + span { transform: translateY(110%); }
.btn:hover .btn__roll > span:first-child { transform: translateY(-110%); }
.btn:hover .btn__roll > span + span { transform: translateY(0); }

.link { background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0% 1px; transition: background-size 0.5s var(--ease-out); padding-bottom: 2px; }
.link:hover, .link:focus-visible { background-position: 0% 100%; background-size: 100% 1px; }
.link--static { background-size: 100% 1px; }
.link--static:hover { background-size: 0% 1px; background-position: 100% 100%; }

/* "Open now" pill */
.status {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.95rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgb(20 16 13 / 0.45); backdrop-filter: blur(8px);
  font-size: var(--step--1); font-weight: 500;
}
.theme-light .status { background: transparent; }
.status__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #6fdc7a; box-shadow: 0 0 0 0 rgb(111 220 122 / 0.6); flex-shrink: 0; }
.status:has([data-state='closed']) .status__dot { background: var(--muted); box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .status:has([data-state='open']) .status__dot { animation: pulse 2s infinite; }
}
@keyframes pulse { 70% { box-shadow: 0 0 0 0.6rem rgb(111 220 122 / 0); } 100% { box-shadow: 0 0 0 0 rgb(111 220 122 / 0); } }

/* ---------- HEADER ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: transform 0.6s var(--ease-out), background-color 0.4s, border-color 0.4s;
}
.header.is-scrolled { background: rgb(20 16 13 / 0.78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header.is-open { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: inline-flex; align-items: flex-start; gap: 0.2rem; font-family: var(--font-display); font-size: 1.85rem; line-height: 1; letter-spacing: -0.02em; }
.logo__dot { width: 0.42rem; height: 0.42rem; margin-top: 0.15rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px 2px rgb(255 107 61 / 0.6); }
@media (prefers-reduced-motion: no-preference) { .logo__dot { animation: ember 2.6s ease-in-out infinite alternate; } }
@keyframes ember { to { opacity: 0.55; box-shadow: 0 0 6px 1px rgb(255 107 61 / 0.4); } }
.nav ul { display: flex; gap: clamp(1.25rem, 2.6vw, 2.6rem); font-size: var(--step--1); font-weight: 500; }
.header__actions { display: flex; align-items: center; gap: 0.75rem; }
.lang { display: flex; gap: 0.1rem; font-size: var(--step--2); font-weight: 600; letter-spacing: 0.08em; }
.lang a { padding: 0.5rem 0.55rem; border-radius: 999px; opacity: 0.6; transition: opacity 0.3s, background-color 0.3s; }
.lang a:hover, .lang a[aria-current] { opacity: 1; }
.lang a[aria-current] { background: rgb(241 232 218 / 0.1); }
.burger { display: none; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; position: relative; }
.burger span { position: absolute; width: 22px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease-out); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.header.is-open .burger span:first-child { transform: rotate(45deg); }
.header.is-open .burger span:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem; background: var(--bg);
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s 0.7s;
}
.header.is-open + .mobile-menu { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 0.7s var(--ease-in-out), visibility 0s; }
.mobile-menu ul { display: grid; gap: 0.2rem; }
.mobile-menu li a { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1.15; }
.mobile-menu li { opacity: 0; transform: translateY(24px); transition: opacity 0.5s, transform 0.7s var(--ease-out); }
.header.is-open + .mobile-menu li { opacity: 1; transform: none; transition-delay: calc(0.25s + var(--i) * 0.06s); }
.mobile-menu__foot { display: grid; gap: 1rem; justify-items: start; color: var(--muted); }

@media (max-width: 899px) {
  .nav { display: none; }
  .burger { display: grid; }
}
@media (max-width: 440px) {
  .header__actions > .lang { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid; align-items: end;
  padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(2.5rem, 7vh, 5rem);
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgb(20 16 13 / 0.7) 0%, rgb(20 16 13 / 0.1) 28%, rgb(20 16 13 / 0.35) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgb(20 16 13 / 0.75) 0%, rgb(20 16 13 / 0) 65%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: hero-in 2.8s var(--ease-out) both; }
}
@keyframes hero-in { from { transform: scale(1.18); filter: brightness(0.35); } }
.hero__content { display: grid; justify-items: start; }
.hero__content .eyebrow { margin-top: 1.75rem; }
.hero__title { font-size: clamp(3.3rem, 1rem + 10.5vw, 11.5rem); line-height: 0.88; letter-spacing: -0.035em; margin-block: 0.25em 0.45em; }
.hero__bottom { width: 100%; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; }
.hero__lead { max-width: 34ch; font-size: var(--step-1); line-height: 1.45; color: rgb(241 232 218 / 0.88); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__scroll {
  position: absolute; right: var(--gutter); top: 50%; display: none; align-items: center; gap: 0.75rem;
  writing-mode: vertical-rl; font-size: var(--step--2); letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll i { display: block; width: 1px; height: 4rem; background: linear-gradient(var(--accent), transparent); }
@media (min-width: 1100px) { .hero__scroll { display: flex; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll i { animation: drip 2.2s var(--ease-in-out) infinite; transform-origin: top; }
}
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- MARQUEE ---------- */
.band { padding-block: 1.5rem; border-block: 1px solid var(--line); font-family: var(--font-display); font-size: var(--step-3); line-height: 1; }
.band__item { display: inline-flex; align-items: center; gap: var(--marquee-gap); white-space: nowrap; }
.band__sep { color: var(--accent); font-size: 0.45em; }

/* ---------- ABOUT ---------- */
.about__statement { font-size: var(--step-4); line-height: 1.06; max-width: 23ch; margin-top: 1.5rem; }
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-xl); align-items: center; margin-top: var(--space-xl); }
.about__media { position: relative; padding-bottom: 16%; }
.about__img { overflow: hidden; border-radius: var(--radius); }
.about__img--a { width: 76%; aspect-ratio: 4 / 5; }
.about__img--b { position: absolute; right: 0; bottom: 0; width: 54%; aspect-ratio: 4 / 3; outline: 0.5rem solid var(--bg); }
.about__copy { display: grid; gap: 1.1rem; color: var(--muted); font-size: var(--step-0); max-width: 48ch; }
.about__copy p:first-child { color: var(--fg); font-size: var(--step-1); line-height: 1.45; }
.about__signature { margin-top: 1.5rem; font-family: var(--font-display); font-size: var(--step-1); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin-top: var(--space-l); }
.stat { display: flex; flex-direction: column-reverse; gap: 0.35rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.stat dd { font-family: var(--font-display); font-size: var(--step-5); line-height: 0.9; color: var(--accent); }
.stat dt { font-size: var(--step--1); color: var(--muted); max-width: 20ch; }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ---------- MENU (pinned horizontal scroll) ---------- */
.menu { padding-block: var(--section); overflow: hidden; }
.menu__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: var(--space-l); }
.menu__title { font-size: var(--step-5); margin-top: 1rem; }
.menu__aside { display: grid; gap: 0.5rem; max-width: 34ch; font-size: var(--step--1); color: var(--muted); }
.menu__legend { font-weight: 600; color: var(--accent); }
.menu__track { gap: clamp(1rem, 2vw, 1.75rem); padding-inline: var(--gutter); padding-bottom: 1rem; list-style: none; }
.dish-card { width: min(84vw, 29rem); display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.dish-card__media { height: clamp(9rem, 26svh, 15rem); overflow: hidden; }
.dish-card__media img { width: 100%; height: 100%; object-fit: cover; }
.dish-card__body { display: grid; gap: 0.85rem; padding: 1.35rem 1.5rem 1.6rem; }
.dish-card__num { font-size: var(--step--2); font-weight: 600; letter-spacing: 0.16em; color: var(--accent); }
.dish-card__title { font-size: var(--step-3); }
.dishes { display: grid; gap: 0.8rem; }
.dish__line { display: flex; align-items: baseline; gap: 0.5rem; font-weight: 600; line-height: 1.3; }
.dish__dots { flex: 1; min-width: 1rem; border-bottom: 1px dotted currentColor; opacity: 0.35; }
.dish__price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.dish__desc { font-size: var(--step--1); line-height: 1.45; color: var(--muted); }
.dish__tags { font-size: var(--step--2); font-weight: 600; letter-spacing: 0.1em; color: var(--accent); }
.dish-card--end {
  justify-content: flex-end; align-items: flex-start; gap: 1rem; padding: 2rem;
  background: var(--fg); color: var(--bg); min-height: 20rem;
}
.dish-card--end .btn { --btn-bg: var(--accent); --btn-fg: var(--accent-fg); margin-top: 0.5rem; }
.dish-card__end-title { font-family: var(--font-display); font-size: var(--step-4); line-height: 0.95; }
.menu__progress { height: 2px; margin-top: 1.25rem; background-clip: content-box; position: relative; }
.menu__progress::before { content: ''; position: absolute; inset: 0 var(--gutter); background: var(--line); }
.menu__progress span { position: absolute; inset: 0 var(--gutter); display: block; background: var(--accent); }

/* While pinned: the whole section fits the screen */
.menu.is-pinned { height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 0.5rem) 1.25rem; }
.menu.is-pinned .menu__head { margin-bottom: clamp(1rem, 3svh, 2rem); }
.menu.is-pinned .menu__title { font-size: var(--step-4); }
@media (max-height: 820px) {
  .menu.is-pinned .menu__aside { display: none; }
  .menu.is-pinned .dish-card__media { height: 20svh; }
  .menu.is-pinned .dish__desc { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 700px) {
  .menu.is-pinned .menu__aside { display: none; }
  .menu.is-pinned .menu__title { font-size: var(--step-3); }
  .dish-card__body { gap: 0.6rem; padding: 1.1rem 1.15rem 1.25rem; }
  .dishes { gap: 0.6rem; }
  .dish__line { font-size: var(--step--1); }
  .dish__desc { font-size: var(--step--2); }
}
@media (max-width: 700px) and (max-height: 760px) {
  .menu.is-pinned .dish-card__media { height: 15svh; }
  .menu.is-pinned .dish__desc { display: none; }
}

/* ---------- GALLERY ---------- */
.gallery__head { display: grid; gap: 1rem; justify-items: start; margin-bottom: var(--space-l); }
.gallery__head h2 { font-size: var(--step-5); max-width: 14ch; }
.gallery__feature { position: relative; height: min(88svh, 56rem); overflow: hidden; }
.gallery__feature img { width: 100%; height: 100%; object-fit: cover; }
.gallery__feature figcaption {
  position: absolute; left: 0; right: 0; bottom: 1.5rem; margin-inline: auto;
  font-size: var(--step--1); letter-spacing: 0.08em; color: rgb(241 232 218 / 0.9); text-shadow: 0 1px 12px rgb(0 0 0 / 0.6);
}
.gallery__grid { columns: 3 16rem; column-gap: 1rem; margin-top: 1rem; }
.gallery__item { break-inside: avoid; margin-bottom: 1rem; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.gallery__item[data-shape='portrait'] { aspect-ratio: 4 / 5; }
.gallery__item[data-shape='square'] { aspect-ratio: 1; }
.gallery__item[data-shape='tall'] { aspect-ratio: 3 / 5; }

/* ---------- REVIEWS ---------- */
.reviews__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: var(--space-l); }
.reviews__head h2 { font-size: var(--step-5); max-width: 12ch; margin-top: 1rem; }
.reviews__score { display: grid; justify-items: end; gap: 0.3rem; text-align: right; }
.reviews__num { font-family: var(--font-display); font-size: var(--step-6); line-height: 0.85; color: var(--accent); }
.reviews__stars { color: var(--accent); letter-spacing: 0.2em; }
.reviews__count { color: var(--muted); font-size: var(--step--1); }
.reviews__marquee { padding-block: 0.5rem; }
.review {
  width: min(80vw, 23rem); display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); white-space: normal;
}
.review__stars { color: var(--accent); font-size: var(--step--1); letter-spacing: 0.2em; }
.review__text { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.3; flex: 1; }
.review__by { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 600px) { .reviews__score { justify-items: start; text-align: left; } }

/* ---------- HOURS & LOCATION ---------- */
.visit__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-xl); align-items: start; }
.visit__title { font-size: var(--step-5); margin-block: 1rem 1.5rem; max-width: 12ch; }
.visit__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: var(--space-l); }
.visit h3 { font-family: var(--font-body); font-size: var(--step--2); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.visit h3:not(:first-child) { margin-top: 1.75rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.55rem; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.hours li[aria-current] { color: var(--accent); font-weight: 600; }
.hours li[data-closed] span:last-child { color: var(--muted); }
.visit__note { margin-top: 0.85rem; font-size: var(--step--2); color: var(--muted); }
.visit__address { font-size: var(--step-1); line-height: 1.4; }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.visit__map { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.visit__map svg { width: 100%; height: 100%; }
.map__blocks rect { fill: rgb(241 232 218 / 0.04); }
.map__streets path { fill: none; stroke: var(--line-strong); stroke-width: 7; stroke-linecap: round; }
.map__route { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; }
.pin { position: absolute; left: 54.5%; top: 50%; display: flex; align-items: center; gap: 0.6rem; transform: translate(-0.6rem, -50%); }
.pin__dot { width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0.4rem rgb(255 107 61 / 0.25), 0 0 30px rgb(255 107 61 / 0.6); flex-shrink: 0; }
@media (prefers-reduced-motion: no-preference) { .pin__dot { animation: ember 1.8s ease-in-out infinite alternate; } }
.pin__label { padding: 0.45rem 0.8rem; border-radius: 999px; background: var(--fg); color: var(--bg); font-size: var(--step--2); font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) {
  .visit__grid { grid-template-columns: 1fr; }
  .visit__map { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) { .visit__cols { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- BOOKING ---------- */
.book__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--space-xl); align-items: start; }
.book__title { font-size: var(--step-5); margin-block: 1rem 1.5rem; }
.book__text { max-width: 40ch; font-size: var(--step-1); line-height: 1.45; }
.book__phone { margin-top: 1.5rem; color: var(--muted); }
.book__phone a { color: var(--fg); font-weight: 600; }
.book__form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.25rem;
  padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: var(--radius); background: var(--surface);
}
.field { display: grid; gap: 0.4rem; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); font-weight: 600; }
.input {
  width: 100%; min-width: 0; padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--fg);
  transition: border-color 0.3s;
}
.input:hover { border-color: var(--fg); }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
select.input {
  appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23776a5c' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 0.75rem;
}
textarea.input { resize: vertical; min-height: 6rem; }
.consent { display: flex; align-items: flex-start; gap: 0.7rem; font-size: var(--step--1); }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; accent-color: var(--accent); flex-shrink: 0; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.book__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.25rem; }
.form-status { font-size: var(--step--1); font-weight: 500; }
.form-status[data-state='success'] { color: #1f6b33; }
.form-status[data-state='error'] { color: #a3201b; }
@media (max-width: 900px) { .book__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .book__form { grid-template-columns: 1fr; } }

/* ---------- FOOTER ---------- */
.footer { padding-top: var(--space-xl); overflow: hidden; }
.footer__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; }
.footer__claim { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; max-width: 14ch; }
.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: var(--space-l); padding-top: 2rem; border-top: 1px solid var(--line); font-size: var(--step--1); }
.footer__grid ul { display: grid; gap: 0.35rem; }
.footer__grid p + p { margin-top: 0.3rem; }
.footer__label { margin-bottom: 0.75rem; font-size: var(--step--2); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.footer__word {
  margin-top: var(--space-l); text-align: center; font-family: var(--font-display);
  font-size: clamp(5rem, 27vw, 26rem); line-height: 0.78; letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--fg) 20%, var(--accent) 120%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.5rem 2.5rem; margin-top: 1rem; border-top: 1px solid var(--line); font-size: var(--step--2); color: var(--muted); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__bottom a { color: var(--fg); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
