/* =========================================================================
   108 ЖЕЛАНИЙ — ресторан на берегу Катуни
   Дизайн-система. Ванильный CSS, mobile-first.
   ========================================================================= */

@font-face {
  font-family: "Kurland";
  src: url("../assets/fonts/Kurland.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
/* Cormorant Garamond (заголовки) — self-hosted */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/CormorantGaramond-400.ttf") format("truetype"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/CormorantGaramond-500.ttf") format("truetype"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/CormorantGaramond-600.ttf") format("truetype"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/CormorantGaramond-400i.ttf") format("truetype"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../assets/fonts/CormorantGaramond-500i.ttf") format("truetype"); }
/* Manrope (текст) — self-hosted */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/Manrope-400.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/Manrope-500.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/Manrope-600.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/Manrope-700.ttf") format("truetype"); }

:root {
  /* Палитра */
  --forest-deep: #141d18;
  --forest:      #1e2a24;
  --moss:        #2c3a31;
  --wood:        #b4744a;
  --wood-soft:   #c98a5e;
  --katun:       #4c8c8b;
  --katun-light: #7bb0ad;
  --cream:       #f5f0e7;
  --cream-2:     #ece3d5;
  --paper:       #fbf8f2;
  --ink:         #23261f;
  --ink-soft:    #55584d;
  --ink-faint:   #8a8c80;
  --line:        rgba(35, 38, 31, .14);
  --line-light:  rgba(245, 240, 231, .18);

  /* Типографика */
  --font-display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mark: "Kurland", var(--font-display);

  /* Ритм */
  --container: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 11vw, 10rem);
  --radius: 4px;
  --radius-lg: 10px;

  /* Движение */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .7s;

  --header-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: clamp(1rem, .95rem + .2vw, 1.09rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }

::selection { background: var(--katun); color: var(--cream); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.06; letter-spacing: .005em; }

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.9rem, 8vw, 7rem);
  line-height: .98;
  letter-spacing: -.01em;
}
.h-xl { font-size: clamp(2.1rem, 5vw, 4rem); }
.h-lg { font-size: clamp(1.8rem, 3.6vw, 3rem); }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--wood);
  display: inline-flex;
  align-items: center;
  gap: .8em;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: currentColor;
  opacity: .7;
}
.eyebrow.is-centered::before { display: none; }

.lead { font-size: clamp(1.12rem, 1.6vw, 1.32rem); line-height: 1.6; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.serif-italic { font-family: var(--font-display); font-style: italic; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1600px; }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(3rem, 7vw, 6rem); }
.stack > * + * { margin-top: 1.15rem; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 60ch; }
.measure-sm { max-width: 44ch; }

.bg-forest { background: var(--forest); color: var(--cream); }
.bg-forest-deep { background: var(--forest-deep); color: var(--cream); }
.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }
.on-dark { color: var(--cream); }
.on-dark .muted { color: rgba(245,240,231,.72); }
.on-dark .eyebrow { color: var(--katun-light); }

/* Section header block */
.section-head { max-width: 62ch; }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head p { margin-top: 1.4rem; }

/* Tree-ring ornament divider */
.ring-divider { display: flex; align-items: center; justify-content: center; gap: 1.2rem; color: var(--wood); opacity: .8; }
.ring-divider::before, .ring-divider::after { content: ""; height: 1px; width: min(90px, 12vw); background: currentColor; opacity: .5; }
.ring-divider svg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--wood); --fg: var(--cream); --bd: var(--wood);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .95em 1.9em;
  font-family: var(--font-body); font-weight: 600; font-size: .84rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg); background: var(--bg);
  border: 1px solid var(--bd); border-radius: 999px;
  transition: transform .35s var(--ease-out), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(20,29,24,.5); }
.btn:active { transform: translateY(0); }
.btn--ghost { --bg: transparent; --fg: var(--cream); --bd: rgba(245,240,231,.5); }
.btn--ghost:hover { --bg: var(--cream); --fg: var(--forest); --bd: var(--cream); }
.btn--dark { --bg: var(--forest); --fg: var(--cream); --bd: var(--forest); }
.btn--outline-dark { --bg: transparent; --fg: var(--ink); --bd: rgba(35,38,31,.35); }
.btn--outline-dark:hover { --bg: var(--forest); --fg: var(--cream); --bd: var(--forest); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-row.is-centered { justify-content: center; }

.link-underline {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--wood); position: relative; padding-bottom: 3px;
}
.link-underline::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(.3); transform-origin: left; transition: transform .45s var(--ease-out); }
.link-underline:hover::after { transform: scaleX(1); }
.link-underline .arrow { transition: transform .4s var(--ease-out); }
.link-underline:hover .arrow { transform: translateX(5px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), box-shadow .5s var(--ease), height .4s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-header.is-scrolled {
  height: 64px;
  background: rgba(20,29,24,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(245,240,231,.08);
}
.brand { display: flex; align-items: center; gap: .7rem; z-index: 2; }
.brand img { height: 40px; width: auto; transition: height .4s var(--ease); }
.is-scrolled .brand img { height: 34px; }

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.nav a {
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cream); opacity: .85; position: relative; padding: .4em 0;
  transition: opacity .3s var(--ease);
}
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--wood-soft); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { opacity: 1; }

.header-cta { display: inline-flex; align-items: center; gap: .5rem; }
.header-phone {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  font-weight: 700; font-size: .9rem; letter-spacing: .02em; color: var(--cream);
}
.header-phone svg { flex: 0 0 auto; }
.header-phone svg { width: 16px; height: 16px; color: var(--wood-soft); }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 120; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--cream); transition: transform .4s var(--ease), opacity .3s var(--ease), top .4s var(--ease); }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(20,29,24,.82) 0%, rgba(20,29,24,.28) 42%, rgba(20,29,24,.42) 100%),
    linear-gradient(to right, rgba(20,29,24,.45), rgba(20,29,24,0) 60%);
}
.hero__inner { position: relative; padding-block: clamp(6rem, 16vh, 11rem) clamp(3.5rem, 9vh, 6rem); width: 100%; }
.hero__eyebrow { color: var(--katun-light); letter-spacing: .34em; }
.hero__eyebrow::before { background: var(--katun-light); }
.hero__title { margin-top: 1.4rem; font-size: clamp(3rem, 9.5vw, 8.2rem); line-height: .92; font-weight: 500; text-shadow: 0 4px 40px rgba(0,0,0,.35); }
.hero__title em { font-style: italic; color: var(--cream); }
/* Hero wordmark: логотип без подписи + «сбывается» */
.hero__wordmark { margin-top: 1.2rem; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; }
.hero__logo { width: min(430px, 74vw); height: auto; filter: drop-shadow(0 6px 34px rgba(0,0,0,.4)); }
.hero__fulfills { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1; color: var(--cream); text-shadow: 0 4px 40px rgba(0,0,0,.35); padding-left: .08em; }
.hero__sub { margin-top: 1.6rem; max-width: 40ch; font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: rgba(245,240,231,.9); }
.hero__cta { margin-top: 2.4rem; }
.hero__scroll { position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .6rem; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; opacity: .75; z-index: 1; }
.hero__scroll span { width: 1px; height: 46px; background: linear-gradient(var(--cream), transparent); animation: scrollLine 2.4s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.hero-meta { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 2.8rem; padding-top: 1.8rem; border-top: 1px solid var(--line-light); }
.hero-meta div { line-height: 1.3; }
.hero-meta .k { font-family: var(--font-display); font-size: 1.7rem; font-weight: 500; }
.hero-meta .l { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; opacity: .72; margin-top: .2rem; }

/* Page hero (inner pages) */
.page-hero { position: relative; min-height: 62svh; display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,29,24,.85), rgba(20,29,24,.25) 55%, rgba(20,29,24,.5)); }
.page-hero__inner { position: relative; padding-block: clamp(5rem, 12vh, 8rem) clamp(2.5rem, 6vh, 4rem); }
.page-hero__title { font-size: clamp(2.6rem, 7vw, 5.5rem); font-weight: 500; margin-top: 1.1rem; }
.page-hero__sub { margin-top: 1.2rem; max-width: 48ch; color: rgba(245,240,231,.88); }
.breadcrumbs { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.breadcrumbs a:hover { color: var(--wood-soft); }

/* ---------- Split feature ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-media { grid-template-columns: 1.15fr .85fr; } .split.is-reverse .split__media { order: 2; } }
.split__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 30px 60px -30px rgba(20,29,24,.5); }
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.split__media:hover img { transform: scale(1.05); }
.split__media.is-tall { aspect-ratio: 3/4; }
.split__badge { position: absolute; left: 1.2rem; bottom: 1.2rem; background: rgba(20,29,24,.72); backdrop-filter: blur(8px); color: var(--cream); padding: .7rem 1.1rem; border-radius: 999px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Dish cards ---------- */
.dish-grid { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); grid-template-columns: 1fr; }
@media (min-width: 640px) { .dish-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .dish-grid { grid-template-columns: repeat(3, 1fr); } .dish-grid.is-4 { grid-template-columns: repeat(4, 1fr); } }
.dish { position: relative; }
.dish__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; margin-bottom: 1.1rem; background: var(--cream-2); }
.dish__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.dish:hover .dish__media img { transform: scale(1.06); }
.dish__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,29,24,.4), transparent 45%); opacity: .8; }
.dish__tag { position: absolute; top: 1rem; left: 1rem; z-index: 1; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); background: rgba(76,140,139,.85); padding: .35rem .8rem; border-radius: 999px; }
.dish__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.15; }
.dish__desc { margin-top: .4rem; color: var(--ink-soft); font-size: .96rem; }
.on-dark .dish__desc { color: rgba(245,240,231,.72); }

/* ---------- Feature list (why us) ---------- */
.features { display: grid; gap: clamp(1.6rem, 3vw, 2.4rem); grid-template-columns: 1fr; }
@media (min-width: 620px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 2rem 1.8rem; border: 1px solid var(--line-light); border-radius: var(--radius-lg); transition: transform .5s var(--ease-out), border-color .5s var(--ease), background .5s var(--ease); }
.feature:hover { transform: translateY(-4px); border-color: rgba(123,176,173,.5); background: rgba(245,240,231,.03); }
.feature__icon { width: 40px; height: 40px; color: var(--wood-soft); margin-bottom: 1.2rem; }
.feature__icon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.feature h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.feature p { color: rgba(245,240,231,.72); font-size: .95rem; }
.features.on-light .feature { border-color: var(--line); }
.features.on-light .feature:hover { border-color: rgba(76,140,139,.45); background: rgba(76,140,139,.04); }
.features.on-light .feature p { color: var(--ink-soft); }
.features.on-light .feature__icon { color: var(--wood); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.4rem 1rem; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { text-align: center; }
.stat .k { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 500; line-height: 1; color: var(--wood-soft); }
/* Широкое значение (например, диапазон времени) — меньше кегль, без переноса */
.stat .k.is-wide { font-size: clamp(1.5rem, 2.8vw, 2.4rem); white-space: nowrap; letter-spacing: .01em; }
.stat .l { margin-top: .6rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .78; }

/* ---------- Full-bleed quote / atmosphere ---------- */
.parallax { position: relative; min-height: 70svh; display: flex; align-items: center; color: var(--cream); overflow: hidden; }
.parallax__media { position: absolute; inset: 0; z-index: -2; }
.parallax__media img { width: 100%; height: 100%; object-fit: cover; }
.parallax__media::after { content: ""; position: absolute; inset: 0; background: rgba(20,29,24,.58); }
.quote { font-family: var(--font-display); font-weight: 500; font-style: italic; font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1.22; max-width: 20ch; }
.quote__by { display: block; margin-top: 1.6rem; font-family: var(--font-body); font-style: normal; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; opacity: .78; }

/* ---------- Gallery (cinematic masonry) ---------- */
.gallery { columns: 1; column-gap: clamp(.8rem, 1.6vw, 1.2rem); }
@media (min-width: 560px) { .gallery { columns: 2; } }
@media (min-width: 1000px) { .gallery { columns: 3; } }
@media (min-width: 1500px) { .gallery { columns: 4; } }
.gallery__item { break-inside: avoid; margin-bottom: clamp(.8rem, 1.6vw, 1.2rem); position: relative; overflow: hidden; border-radius: var(--radius-lg); cursor: zoom-in; background: var(--cream-2); }
.gallery__item img { width: 100%; height: auto; transition: transform 1.1s var(--ease-out), filter .6s var(--ease); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,29,24,.55), transparent 40%); opacity: 0; transition: opacity .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after { opacity: 1; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.gallery-filters button { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .6em 1.3em; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); transition: all .35s var(--ease); }
.gallery-filters button:hover { color: var(--ink); border-color: var(--ink); }
.gallery-filters button.is-active { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.gallery__item.is-hidden { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,20,17,.94); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; padding: clamp(1rem, 4vw, 3rem); }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 88svh; border-radius: 6px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); transform: scale(.96); transition: transform .5s var(--ease-out); }
.lightbox.is-open img { transform: scale(1); }
.lightbox__close, .lightbox__nav { position: absolute; color: var(--cream); width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(245,240,231,.3); transition: background .3s var(--ease), transform .3s var(--ease); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(245,240,231,.14); }
.lightbox__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lightbox__nav.next { right: clamp(.5rem, 2vw, 1.5rem); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }

/* ---------- Menu viewer ---------- */
.menu-intro-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .menu-intro-grid { grid-template-columns: 1fr 1fr; } }
.menu-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.menu-chips span { font-size: .78rem; letter-spacing: .08em; padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }
.menu-viewer { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); box-shadow: 0 30px 70px -35px rgba(20,29,24,.45); border: 1px solid var(--line); }
.menu-viewer__frame { position: relative; overflow: hidden; cursor: zoom-in; aspect-ratio: 3000 / 2122; background: #fff; }
.menu-viewer__frame img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease-out); transform-origin: center; }
/* При увеличении палец/мышь двигают картинку, а не скроллят страницу */
.menu-viewer.is-zoomed .menu-viewer__frame { cursor: grab; touch-action: none; }
.menu-viewer.is-zoomed .menu-viewer__frame:active { cursor: grabbing; }
.menu-viewer.is-zoomed .menu-viewer__frame img { transition: none; }
.menu-viewer__frame img { user-select: none; -webkit-user-drag: none; }
.menu-viewer__hint { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: .5rem; background: rgba(20,29,24,.78); color: var(--cream); padding: .6rem 1rem; border-radius: 999px; font-size: .76rem; letter-spacing: .06em; pointer-events: none; transition: opacity .4s var(--ease); }
.menu-viewer.is-zoomed .menu-viewer__hint { opacity: 0; }
.menu-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* ---------- Events ---------- */
.event-grid { display: grid; gap: clamp(1.2rem, 2.5vw, 1.8rem); grid-template-columns: 1fr; }
@media (min-width: 620px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .event-grid { grid-template-columns: repeat(3, 1fr); } }
.event-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 340px; display: flex; flex-direction: column; align-items: flex-start; color: var(--cream); padding: 1.8rem; isolation: isolate; }
.event-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease-out); }
.event-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(20,29,24,.9), rgba(20,29,24,.15) 70%); }
.event-card:hover img { transform: scale(1.06); }
.event-card__icon { width: 34px; height: 34px; color: var(--wood-soft); margin-bottom: auto; flex: 0 0 auto; }
.event-card__text { margin-top: 1rem; }
.event-card h3 { font-size: 1.55rem; line-height: 1.14; }
.event-card p { margin-top: .55rem; font-size: .95rem; line-height: 1.5; color: rgba(245,240,231,.85); }
.event-card--tall { min-height: 420px; }

/* ---------- Contacts ---------- */
.contact-grid { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); grid-template-columns: 1fr; }
@media (min-width: 720px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card { padding: 2rem; border: 1px solid var(--line-light); border-radius: var(--radius-lg); }
.contact-card .eyebrow { margin-bottom: 1rem; }
.contact-card .big { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; line-height: 1.2; }
.contact-card a.big:hover { color: var(--wood-soft); }
.contact-card p { color: rgba(245,240,231,.78); margin-top: .4rem; }
.socials { display: flex; gap: .8rem; margin-top: 1.2rem; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-light); color: var(--cream); transition: all .35s var(--ease); }
.socials a:hover { background: var(--wood); border-color: var(--wood); transform: translateY(-3px); }
.socials svg { width: 20px; height: 20px; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-light); min-height: 380px; background: var(--moss); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: saturate(.9); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: var(--cream); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { height: 66px; margin-bottom: 1.2rem; }
.footer-brand p { color: rgba(245,240,231,.7); max-width: 34ch; }
.footer-col h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--wood-soft); margin-bottom: 1.2rem; font-weight: 700; }
.footer-col a, .footer-col p { color: rgba(245,240,231,.78); display: block; padding: .28em 0; transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-light); display: flex; flex-wrap: wrap; gap: .6rem 1rem; justify-content: space-between; align-items: center; font-size: .8rem; line-height: 1.6; color: rgba(245,240,231,.55); }
.footer-bottom > span { max-width: 100%; }
/* Название бренда не должно разрываться между «108» и «Желаний» */
.nowrap { white-space: nowrap; }
@media (max-width: 620px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__scroll span { animation: none; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; justify-content: center; gap: 1.6rem;
    background-color: var(--forest);
    background-image: linear-gradient(160deg, var(--forest) 0%, var(--forest-deep) 100%);
    transform: translateX(100%); transition: transform .55s var(--ease-out);
    padding: 2rem; overscroll-behavior: contain;
  }
  body.nav-open .nav { transform: translateX(0) !important; }
  /* Пока меню открыто — снимаем backdrop-filter с шапки (он создаёт
     containing block и ломает полноэкранный fixed-оверлей при прокрутке)
     и поднимаем шапку выше всего контента, чтобы оверлей был непрозрачным */
  body.nav-open .site-header { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: transparent !important; box-shadow: none !important; z-index: 300; }
  .nav a { font-size: 1.5rem; opacity: 1; letter-spacing: .06em; font-family: var(--font-display); text-transform: none; font-weight: 500; }
  .nav a::after { display: none; }
  .nav .header-phone { margin-top: 1rem; font-size: 1.1rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Уменьшенная анимация ----------
   Глушим все переходы и анимации: это и уважение к настройке пользователя,
   и защита от «залипания» transition (меню-оффканвас, зум меню и т.п.) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Utilities */
.hidden { display: none !important; }
.mt-sm { margin-top: 1rem; } .mt-md { margin-top: 2rem; } .mt-lg { margin-top: 3rem; }
.text-katun { color: var(--katun); } .text-wood { color: var(--wood); }
.grid-2 { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
