/* =========================================================================
   METIS — Ташкент
   Мобильный приоритет. Кремовый — основной фон, терракота из логотипа —
   аппбар, градиенты, тени и акценты.
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */
:root {
  --cream:        #F7F1E8;
  --cream-soft:   #FCF8F2;
  --cream-pure:   #FFFDFA;
  --sand:         #E9DDCD;

  --clay:         #8B4A32;
  --clay-mid:     #6E3823;
  --clay-deep:    #4A2216;
  --clay-ink:     #2E1409;
  --bronze:       #C08552;

  --ink:          #2B1710;
  --muted:        rgba(43, 23, 16, .62);
  --muted-light:  rgba(247, 241, 232, .68);
  --line:         rgba(43, 23, 16, .13);
  --line-light:   rgba(247, 241, 232, .20);

  --grad-clay:    linear-gradient(146deg, #9A5238 0%, #7A3F29 38%, #4A2216 100%);
  --grad-deep:    linear-gradient(160deg, #7A3F29 0%, #431E13 55%, #2E1409 100%);

  --shadow-sm:    0 2px 10px rgba(46, 20, 9, .10);
  --shadow-md:    0 14px 40px -14px rgba(46, 20, 9, .38);
  --shadow-lg:    0 40px 90px -30px rgba(46, 20, 9, .55);

  --ff-display:   'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --ff-sans:      'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --wrap:         1180px;
  --gutter:       clamp(20px, 5.5vw, 56px);
  --appbar-h:     66px;
  --ease:         cubic-bezier(.16, 1, .3, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (min-width: 900px) { :root { --appbar-h: 84px; } }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--appbar-h) + 16px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: .005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

::selection { background: var(--clay); color: var(--cream); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--clay); color: var(--cream); padding: 12px 20px;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* ---------------------------------------------------------------- layout */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(76px, 13vw, 152px);
  position: relative;
  isolation: isolate;
}

/* Светлые секции: тёплый градиент вместо плоской заливки, поверх — гребни
   отпечатка. Узор родом из логотипа, поэтому фактура читается как фирменная. */
.section--cream {
  background-color: var(--cream);
  background-image:
    radial-gradient(128% 78% at 50% -6%, rgba(139, 74, 50, .085), transparent 62%),
    radial-gradient(90% 60% at 100% 108%, rgba(192, 133, 82, .10), transparent 60%),
    linear-gradient(180deg, var(--cream-soft), var(--cream) 22%, #F3EADE);
  border-block: 1px solid rgba(139, 74, 50, .14);
}
.section--cream::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  /* Плитка растянута до 520px: линии становятся реже и читаются как фактура
     бумаги, а не как полосы поверх текста. */
  background: url('../assets/pattern-ridges-clay.svg') 0 0 / 520px 520px repeat;
  opacity: .17;
  pointer-events: none;
}

.section--clay {
  background: var(--grad-deep);
  color: var(--cream);
}
.section--clay::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain);
  opacity: .10;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.section--clay::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: url('../assets/pattern-ridges-cream.svg') 0 0 / 360px 360px repeat;
  opacity: .17;
  pointer-events: none;
}

/* Веер дуг в углу — крупный тихий акцент. Ставится точечно, не в каждую секцию.
   Секцию с дугами обязательно обрезаем: узор выходит за край и иначе
   растягивает страницу вбок. clip, а не hidden — hidden ломает sticky. */
.has-deco { overflow: hidden; overflow: clip; }

.deco {
  position: absolute;
  z-index: -1;
  width: min(80vw, 620px);
  aspect-ratio: 1;
  pointer-events: none;
  background: url('../assets/pattern-arcs-clay.svg') 0 0 / contain no-repeat;
  opacity: .45;
}
.deco--light { background-image: url('../assets/pattern-arcs-cream.svg'); opacity: .34; }
.deco--tr { top: -8%;    right: -16%; rotate: 90deg; }
.deco--bl { bottom: -14%; left: -18%; rotate: -90deg; }
.deco--br { bottom: -14%; right: -16%; rotate: 180deg; }

/* ---------------------------------------------------------------- type */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 22px;
}
/* короткая черта перед надзаголовком — набор «как в печатном меню» */
.eyebrow::before {
  content: '';
  flex: none;
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .6;
}
.eyebrow i {
  font-style: normal;
  opacity: .55;
  letter-spacing: .2em;
}
.eyebrow--dark { color: var(--clay); }

.h-display {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(38px, 10.5vw, 88px);
  line-height: 1.02;
  letter-spacing: .005em;
  color: var(--ink);
  margin-bottom: clamp(26px, 5vw, 44px);
}
.h-display--light { color: var(--cream); }

/* тонкий флёрон под заголовком секции */
.h-display--flourish { margin-bottom: clamp(22px, 3.6vw, 34px); }
.flourish {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(26px, 5vw, 44px);
  color: var(--clay);
}
.flourish--light { color: var(--bronze); }
.flourish::before, .flourish::after {
  content: '';
  height: 1px;
  background: linear-gradient(90deg, currentColor, transparent);
  opacity: .5;
}
.flourish::before { width: 54px; }
.flourish::after { flex: 1; max-width: 190px; opacity: .22; }
.flourish span {
  width: 6px; height: 6px;
  flex: none;
  background: currentColor;
  rotate: 45deg;
  opacity: .8;
}

/* горизонтальный орнамент-разделитель по центру блока */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-block: clamp(38px, 7vw, 64px);
  color: var(--clay);
}
.ornament--light { color: var(--bronze); }
.ornament::before, .ornament::after {
  content: '';
  height: 1px;
  flex: 1;
  max-width: 160px;
  background: linear-gradient(90deg, transparent, currentColor);
  opacity: .38;
}
.ornament::after { background: linear-gradient(90deg, currentColor, transparent); }
.ornament svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.1; opacity: .85; }

/* Уголки-засечки, как на печатной карточке.
   Отдельным элементом, а не псевдо: у .media оба псевдоэлемента заняты
   заглушкой фото, и рамка бы с ней столкнулась. */
.corners {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.corners::before, .corners::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border: 1px solid var(--bronze);
  opacity: .5;
}
.corners::before { top: 11px; left: 11px; border-width: 1px 0 0 1px; }
.corners::after { bottom: 11px; right: 11px; border-width: 0 1px 1px 0; }
.corners--tight::before { top: 8px; left: 8px; width: 14px; height: 14px; }
.corners--tight::after { bottom: 8px; right: 8px; width: 14px; height: 14px; }
/* обе засечки снизу — там, где верх карточки занят номером и плашкой */
.corners--bottom::before {
  top: auto; bottom: 9px; left: 9px;
  width: 15px; height: 15px;
  border-width: 0 0 1px 1px;
}
.corners--bottom::after { bottom: 9px; right: 9px; width: 15px; height: 15px; }

/* та же рамка для блоков, где псевдоэлементы свободны */
.framed { position: relative; }
.framed::before, .framed::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--bronze);
  opacity: .5;
  pointer-events: none;
  z-index: 2;
}
.framed::before { top: 11px; left: 11px; border-width: 1px 0 0 1px; }
.framed::after { bottom: 11px; right: 11px; border-width: 0 1px 1px 0; }

.lead {
  font-family: var(--ff-display);
  font-size: clamp(21px, 5.2vw, 30px);
  font-weight: 300;
  line-height: 1.42;
  color: var(--ink);
  letter-spacing: .002em;
}
.lead--light { color: var(--cream); }

.section__note {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: .01em;
  max-width: 46ch;
}
.section__note--light { color: var(--muted-light); }

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid var(--btn-bd);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease),
              background-color .35s ease, color .35s ease, border-color .35s ease;
}
.btn:active { transform: scale(.985); }

.btn--solid {
  --btn-fg: var(--cream);
  --btn-bd: transparent;
  background: var(--grad-clay);
  /* внутренняя волосяная линия — двойная рамка, как на тиснёной карточке */
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(247, 241, 232, .22);
}
.btn--solid::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(247, 241, 232, .16);
  border-radius: 1px;
  pointer-events: none;
}
.btn--solid::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 250, 244, .22) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform .9s var(--ease);
}
.btn--outline { --btn-fg: var(--cream); --btn-bd: var(--line-light); }
.btn--ghost   { --btn-fg: var(--cream); --btn-bd: rgba(247, 241, 232, .34); min-height: 44px; padding: 0 20px; font-size: 10.5px; }
.btn--dark    { --btn-fg: var(--ink);   --btn-bd: rgba(43, 23, 16, .28); }
.btn--full    { width: 100%; }

@media (hover: hover) {
  .btn--solid:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .btn--solid:hover::after { transform: translateX(130%); }
  .btn--outline:hover { background: var(--cream); color: var(--clay-deep); border-color: var(--cream); }
  .btn--ghost:hover   { background: rgba(247, 241, 232, .12); border-color: var(--cream); }
  .btn--dark:hover    { background: var(--ink); color: var(--cream); border-color: var(--ink); }
}

.btn__spinner {
  width: 15px; height: 15px;
  border: 1.5px solid rgba(247, 241, 232, .35);
  border-top-color: var(--cream);
  border-radius: 50%;
  display: none;
  animation: spin .7s linear infinite;
}
.btn.is-busy { pointer-events: none; opacity: .8; }
.btn.is-busy .btn__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- media */
.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(152deg, #7A3F29, #3E1B11);
  isolation: isolate;
}
.media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.media.is-empty::before {
  content: '';
  position: absolute; inset: 0;
  background:
    url('../assets/logo-mark-cream.svg') center / auto 34% no-repeat,
    url('../assets/pattern-weave-cream.svg') 0 0 / 96px 96px repeat;
  opacity: .16;
}
.media.is-empty::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(118deg, transparent 30%, rgba(255, 246, 235, .07) 50%, transparent 70%),
    var(--grain);
  background-size: cover, 180px 180px;
  opacity: .5;
  mix-blend-mode: overlay;
}
/* Тонкая внутренняя обводка — фото выглядит вставленным в паспарту.
   Через outline, а не box-shadow: тени на этих элементах уже заняты. */
.media {
  outline: 1px solid rgba(247, 241, 232, .14);
  outline-offset: -1px;
}

/* ================================================================ appbar */
.appbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--appbar-h);
  padding-top: env(safe-area-inset-top);
  transition: background .5s var(--ease), box-shadow .5s var(--ease),
              backdrop-filter .5s, transform .45s var(--ease);
}
.appbar::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46, 20, 9, .62), transparent);
  opacity: 1;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.appbar.is-stuck {
  background: var(--grad-clay);
  box-shadow: 0 10px 34px -18px rgba(46, 20, 9, .75);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.appbar.is-stuck::before { opacity: 0; }
.appbar.is-hidden { transform: translateY(-104%); }

.appbar__inner {
  height: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--cream); }
.brand__mark { width: 30px; height: 30px; opacity: .95; }
.brand__word {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .34em;
  line-height: 1;
  padding-left: .34em;
}

.appbar__nav { display: none; }

.appbar__actions { display: flex; align-items: center; gap: 14px; }
.appbar__book { display: none; }

.burger {
  width: 44px; height: 44px;
  display: grid;
  place-content: center;
  gap: 6px;
  margin-right: -10px;
}
.burger span {
  display: block;
  width: 24px; height: 1.4px;
  background: var(--cream);
  transition: transform .45s var(--ease), opacity .3s ease, width .45s var(--ease);
}
.burger span:last-child { width: 16px; margin-left: auto; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.7px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.7px) rotate(-45deg); width: 24px; }

@media (min-width: 900px) {
  .appbar__nav {
    display: flex;
    gap: clamp(18px, 2.4vw, 34px);
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--cream);
  }
  .appbar__nav a { position: relative; padding-block: 6px; opacity: .82; transition: opacity .3s; }
  .appbar__nav a::after {
    content: '';
    position: absolute; left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s var(--ease);
  }
  .appbar__nav a:hover { opacity: 1; }
  .appbar__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .appbar__book { display: inline-flex; }
  .burger { display: none; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__word { font-size: 23px; }
}

/* ================================================================ drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--grad-deep);
  color: var(--cream);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.drawer::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../assets/logo-mark-cream.svg') 122% 96% / auto 62% no-repeat;
  opacity: .05;
  pointer-events: none;
}
.drawer.is-open { opacity: 1; visibility: visible; }

.drawer__inner {
  height: 100%;
  padding: calc(var(--appbar-h) + env(safe-area-inset-top) + 24px) var(--gutter)
           calc(30px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  overflow-y: auto;
}

.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--ff-display);
  font-size: clamp(27px, 8vw, 40px);
  font-weight: 300;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(16px);
}
.drawer.is-open .drawer__nav a {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease) calc(var(--d, 0) * 55ms + 110ms),
              transform .7s var(--ease) calc(var(--d, 0) * 55ms + 110ms);
}
.drawer__nav i {
  font-family: var(--ff-sans);
  font-style: normal;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--bronze);
}

.drawer__foot { display: grid; gap: 14px; }
.drawer__tel {
  font-family: var(--ff-display);
  font-size: 26px;
  letter-spacing: .02em;
}
.drawer__addr { font-size: 13px; color: var(--muted-light); line-height: 1.6; }

/* ================================================================ hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;   /* svh, а не dvh: экран не «прыгает» при скрытии адресной строки */
  display: grid;
  place-items: center;
  padding: calc(var(--appbar-h) + 40px) var(--gutter) 108px;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--grad-clay); }

.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.09);
  transition: opacity 1.6s var(--ease);
  background: none;
}
.hero__slide.is-active { opacity: 1; animation: kenburns 14s ease-out forwards; }
/* На первом экране уже есть большой водяной знак — дублировать его в заглушке не нужно. */
.hero__slide.is-empty::before, .hero__slide.is-empty::after { content: none; }
@keyframes kenburns { from { transform: scale(1.13); } to { transform: scale(1.01); } }

.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 88% at 50% 12%, rgba(46, 20, 9, .34), rgba(46, 20, 9, .82) 72%),
    linear-gradient(180deg, rgba(46, 20, 9, .62), rgba(46, 20, 9, .42) 40%, rgba(46, 20, 9, .88));
}
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: .11;
  mix-blend-mode: overlay;
}
.hero__ridges {
  position: absolute; inset: 0;
  background: url('../assets/pattern-ridges-cream.svg') 0 0 / 360px 360px repeat;
  opacity: .13;
  -webkit-mask-image: radial-gradient(120% 78% at 50% 42%, transparent 18%, #000 78%);
  mask-image: radial-gradient(120% 78% at 50% 42%, transparent 18%, #000 78%);
  pointer-events: none;
}

/* по центру черта нужна с обеих сторон, иначе строка выглядит съехавшей */
.hero .eyebrow { justify-content: center; }
.hero .eyebrow::after {
  content: '';
  flex: none;
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .6;
}
/* на узком экране черты съедают ширину и строка ломается пополам */
@media (max-width: 480px) {
  .hero .eyebrow::before, .hero .eyebrow::after { display: none; }
}

.hero__watermark {
  position: absolute;
  left: 50%; top: 62%;
  width: min(76vw, 500px);
  transform: translate(-50%, -50%);
  opacity: .038;
  pointer-events: none;
}

.hero__content { position: relative; z-index: 1; max-width: 760px; }

.hero__logo { margin: 0 0 clamp(30px, 7vw, 48px); }
.hero__logo img {
  width: clamp(212px, 60vw, 400px);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 10px 34px rgba(46, 20, 9, .45));
}

.hero__lead {
  font-family: var(--ff-display);
  font-size: clamp(24px, 6.4vw, 40px);
  font-weight: 300;
  line-height: 1.24;
  margin-bottom: 12px;
}

.hero__sub {
  font-size: clamp(13.5px, 3.6vw, 16px);
  color: var(--muted-light);
  max-width: 34ch;
  margin: 0 auto clamp(32px, 7vw, 46px);
}
@media (min-width: 620px) { .hero__sub { max-width: none; } }

.hero__cta { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 560px) { .hero__cta { flex-direction: row; justify-content: center; gap: 14px; } }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: 34px; height: 62px;
  display: grid;
  place-items: center;
  z-index: 1;
}
.hero__scroll-line {
  width: 1px; height: 54px;
  background: linear-gradient(180deg, transparent, rgba(247, 241, 232, .7));
  transform-origin: top;
  animation: dropline 2.4s var(--ease) infinite;
}
@keyframes dropline {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  75%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(54px); opacity: 0; }
}

/* ================================================================ about */
.about__grid { display: grid; gap: clamp(30px, 6vw, 60px); }
.about__text { display: grid; gap: 18px; color: var(--muted); }
.about__text .lead { color: var(--ink); }

.about__media {
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 860px) {
  .about__grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .about__media { aspect-ratio: 3 / 4; }
}

.marks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: clamp(46px, 9vw, 84px);
  padding-top: clamp(26px, 5vw, 40px);
  border-top: 1px solid var(--line);
  text-align: center;
}
.marks li { position: relative; }
.marks li + li::before {
  content: '';
  position: absolute;
  left: 0; top: 12%;
  width: 1px; height: 76%;
  background: linear-gradient(transparent, var(--line) 30%, var(--line) 70%, transparent);
}
.marks__num {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(26px, 6.6vw, 44px);
  font-weight: 300;
  color: var(--clay);
  line-height: 1.1;
}
.marks__cap {
  display: block;
  font-size: 9.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* ================================================================ carousel */
.carousel { margin-top: clamp(30px, 6vw, 52px); }

.carousel__track {
  display: flex;
  gap: clamp(12px, 3vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__slide {
  position: relative;
  flex: 0 0 min(84vw, 460px);
  aspect-ratio: 4 / 5;
  scroll-snap-align: center;
  border-radius: 3px;
  box-shadow: var(--shadow-md);
}
.carousel__slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 46px 20px 18px;
  background: linear-gradient(transparent, rgba(46, 20, 9, .8));
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--cream);
}

@media (min-width: 860px) {
  .carousel__slide { flex: 0 0 min(42vw, 480px); aspect-ratio: 4 / 3.2; }
}

.carousel__ui {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
}

.carousel__dots { display: flex; gap: 8px; }
.carousel__dots button {
  width: 26px; height: 2px;
  background: var(--line-light);
  border-radius: 2px;
  transition: background .4s var(--ease), width .4s var(--ease);
}
.carousel__dots button.is-on { background: var(--cream); width: 42px; }

.carousel__arrows { display: none; gap: 8px; }
.arrow {
  width: 46px; height: 46px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  color: var(--cream);
  font-size: 15px;
  display: grid;
  place-items: center;
  transition: background .35s, border-color .35s, transform .35s var(--ease);
}
.arrow:hover { background: rgba(247, 241, 232, .12); border-color: var(--cream); }
.arrow:disabled { opacity: .3; pointer-events: none; }
@media (min-width: 860px) { .carousel__arrows { display: flex; } }

/* ================================================================ dishes / wave */
.dishes .section__note { margin-top: -18px; }

.wave { position: relative; margin-top: clamp(20px, 4vw, 34px); }

.wave__line {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 130px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='130' viewBox='0 0 260 130'%3E%3Cpath d='M0 65 C 32 4 98 4 130 65 S 228 126 260 65' fill='none' stroke='%238B4A32' stroke-opacity='.22' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 260px 130px;
  pointer-events: none;
}

.wave__rail {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 4vw, 34px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 18px var(--gutter) calc(18px + var(--wave-amp, 46px));
  --wave-amp: 46px;
}
.wave__rail::-webkit-scrollbar { display: none; }
.wave__rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }

@media (min-width: 860px) { .wave__rail { --wave-amp: 74px; } }

/* Волна задаётся через transform, а появление — через translate.
   Это разные CSS-свойства, поэтому они не перебивают друг друга. */
.dish {
  --wave-y: 0px;
  flex: 0 0 clamp(216px, 62vw, 300px);
  scroll-snap-align: center;
  transform: translateY(var(--wave-y));
  translate: 0 26px;
  opacity: 0;
  transition: transform .7s var(--ease),
              translate 1s var(--ease) var(--rd, 0ms),
              opacity .9s var(--ease) var(--rd, 0ms);
}
.dish:nth-child(even) { --wave-y: var(--wave-amp); }
.dish.is-in { translate: 0 0; opacity: 1; }

.dish__media {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  box-shadow: var(--shadow-md);
  margin-bottom: 18px;
}
/* Затемнение сверху нужно всегда: номер и плашка иначе теряются на светлом фото. */
.dish__media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(46, 20, 9, .58), rgba(46, 20, 9, .12) 26%, transparent 40%),
    linear-gradient(transparent 62%, rgba(46, 20, 9, .3));
  pointer-events: none;
}
.dish__idx {
  position: absolute;
  top: 12px; left: 14px;
  z-index: 1;
  font-size: 9.5px;
  letter-spacing: .22em;
  color: var(--cream);
  opacity: .8;
}
.dish__badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 1;
  padding: 5px 11px;
  border: 1px solid rgba(247, 241, 232, .5);
  border-radius: 2px;
  font-size: 8.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(46, 20, 9, .32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.dish__name {
  font-family: var(--ff-display);
  font-size: clamp(21px, 5.2vw, 27px);
  font-weight: 400;
  line-height: 1.18;
  margin-bottom: 7px;
}
.dish__note { font-size: 13px; line-height: 1.6; color: var(--muted); }

@media (hover: hover) {
  .dish:hover { transform: translateY(calc(var(--wave-y) - 10px)); }
  .dish:hover .dish__media { box-shadow: var(--shadow-lg); }
}

.dishes__foot {
  display: grid;
  gap: 22px;
  justify-items: start;
  margin-top: clamp(28px, 5vw, 44px);
  color: var(--muted);
  font-size: 14.5px;
  max-width: 620px;
}

/* ================================================================ signature */
.signature {
  background: var(--grad-deep);
  color: var(--cream);
  display: grid;
  position: relative;
  isolation: isolate;
}
.signature::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain);
  opacity: .1;
  mix-blend-mode: overlay;
}
.signature::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: url('../assets/pattern-ridges-cream.svg') 0 0 / 360px 360px repeat;
  opacity: .15;
  pointer-events: none;
}

.signature__media { aspect-ratio: 4 / 3.4; }
.signature__media img { transform: scale(1.02); }

.signature__body { padding: clamp(52px, 11vw, 110px) var(--gutter); }
.signature__inner { max-width: 520px; margin-inline: auto; display: grid; gap: 20px; justify-items: start; }
.signature__body p { color: var(--muted-light); }
.signature__body .lead { color: var(--cream); }

.signature__punch {
  font-family: var(--ff-display);
  font-size: clamp(22px, 5.4vw, 30px);
  line-height: 1.3;
  color: var(--bronze) !important;
  padding-left: 18px;
  border-left: 1px solid rgba(192, 133, 82, .5);
}

.signature .btn { margin-top: 10px; }

@media (min-width: 900px) {
  .signature { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .signature__media { aspect-ratio: auto; min-height: 100%; }
  .signature__inner { margin-inline: 0; }
}

/* ================================================================ bar */
.bar__head { display: grid; gap: 18px; margin-bottom: clamp(34px, 6vw, 56px); }
.bar__head .h-display { margin-bottom: 0; }
@media (min-width: 900px) {
  .bar__head { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; }
}

.bar__grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.bar__shot { aspect-ratio: 1; border-radius: 3px; box-shadow: var(--shadow-md); }
.bar__shot:first-child { grid-column: span 2; aspect-ratio: 16 / 11; }
@media (min-width: 720px) {
  .bar__grid { grid-template-columns: repeat(3, 1fr); }
  .bar__shot:first-child { grid-column: auto; aspect-ratio: 1; }
}

.bar__list {
  margin-top: clamp(34px, 6vw, 56px);
  border-top: 1px solid var(--line);
}
.bar__list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.bar__name {
  font-family: var(--ff-display);
  font-size: clamp(20px, 4.6vw, 26px);
  font-weight: 400;
  white-space: nowrap;
}
.bar__dots {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 6px);
  transform: translateY(-4px);
}
.bar__note {
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
  max-width: 48%;
  line-height: 1.5;
}

/* ================================================================ events */
.events__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: clamp(30px, 5vw, 48px);
}
.events__grid li {
  border: 1px solid var(--line-light);
  border-radius: 3px;
  padding: 22px 16px;
  min-height: 92px;
  display: flex;
  align-items: flex-end;
  font-family: var(--ff-display);
  font-size: clamp(17px, 4.4vw, 22px);
  font-weight: 300;
  line-height: 1.2;
  transition: background .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.events__grid li:hover { background: rgba(247, 241, 232, .07); border-color: rgba(247, 241, 232, .4); transform: translateY(-3px); }
.events__grid-cta {
  background: rgba(192, 133, 82, .12);
  border-color: rgba(192, 133, 82, .45) !important;
}
.events__grid-cta a { color: var(--bronze); font-size: clamp(15px, 3.8vw, 18px); }

@media (min-width: 760px) { .events__grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }

/* ================================================================ amenities */
.amenities__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.amenities__grid li {
  /* Линии сетки — тени вправо и вниз. Крайние обрезает overflow контейнера,
     а сами ячейки остаются прозрачными: фон секции виден насквозь. */
  box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
  padding: 26px 16px;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  transition: background .4s ease;
}
.amenities__grid li:hover { background: rgba(255, 253, 250, .55); }
.amenities__grid svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--clay);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (min-width: 620px) { .amenities__grid { grid-template-columns: repeat(4, 1fr); } }

/* ================================================================ booking */
.booking {
  background: var(--grad-deep);
  color: var(--cream);
  position: relative;
  isolation: isolate;
}
.booking::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    url('../assets/logo-mark-cream.svg') -22% 108% / auto 86% no-repeat,
    var(--grain);
  background-blend-mode: normal;
  opacity: .07;
  pointer-events: none;
}
.booking::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: url('../assets/pattern-ridges-cream.svg') 0 0 / 360px 360px repeat;
  opacity: .15;
  pointer-events: none;
}

.booking__wrap { display: grid; gap: clamp(34px, 6vw, 60px); }
@media (min-width: 960px) {
  .booking__wrap { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
  .booking__intro { position: sticky; top: calc(var(--appbar-h) + 40px); }
}

.booking__tel {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--ff-display);
  font-size: clamp(26px, 6.4vw, 38px);
  letter-spacing: .02em;
  color: var(--cream);
  border-bottom: 1px solid rgba(247, 241, 232, .3);
  padding-bottom: 4px;
  transition: border-color .4s, color .4s;
}
.booking__tel:hover { color: var(--bronze); border-color: var(--bronze); }

.form {
  position: relative;
  isolation: isolate;
  background-color: var(--cream-soft);
  background-image: radial-gradient(110% 70% at 50% 0%, rgba(192, 133, 82, .13), transparent 62%);
  color: var(--ink);
  border-radius: 4px;
  padding: clamp(28px, 6vw, 44px) clamp(24px, 5.5vw, 40px);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(139, 74, 50, .12);
  display: grid;
  gap: 18px;
}
/* гильошированная сетка — карточка выглядит бланком, а не белым прямоугольником */
.form::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  border-radius: 4px;
  background: url('../assets/pattern-weave-clay.svg') 0 0 / 96px 96px repeat;
  opacity: .1;
  pointer-events: none;
}
/* двойная рамка по краю карточки */
.form::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(139, 74, 50, .17);
  border-radius: 2px;
  pointer-events: none;
}

.field { display: grid; gap: 8px; position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__label em { font-style: normal; opacity: .6; letter-spacing: .12em; }

.field__input {
  width: 100%;
  min-height: 56px;
  padding: 15px 17px;
  background: var(--cream-pure);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 16px;           /* 16px — иначе iOS зумит при фокусе */
  font-weight: 300;
  color: var(--ink);
  transition: border-color .35s ease, box-shadow .35s ease, background .35s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field__input::placeholder { color: rgba(43, 23, 16, .34); }
.field__input:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(139, 74, 50, .13);
}
.field__area { resize: vertical; min-height: 96px; line-height: 1.6; }

.field__picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}
.field__value { font-size: 15.5px; }
.field__icon {
  width: 19px; height: 19px;
  flex: none;
  fill: none;
  stroke: var(--clay);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field.has-err .field__input { border-color: #A33B26; box-shadow: 0 0 0 3px rgba(163, 59, 38, .10); }
.field__err { font-size: 12px; color: #A33B26; min-height: 0; }
.field__err:empty { display: none; }

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 8px;
  background: var(--cream-pure);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.stepper__btn {
  width: 42px; height: 42px;
  border-radius: 2px;
  font-size: 20px;
  color: var(--clay);
  display: grid;
  place-items: center;
  transition: background .3s ease;
}
.stepper__btn:hover { background: rgba(139, 74, 50, .08); }
.stepper__btn:disabled { opacity: .28; pointer-events: none; }
.stepper__value {
  font-family: var(--ff-display);
  font-size: 24px;
  min-width: 3ch;
  text-align: center;
}

.form__policy { font-size: 11.5px; color: var(--muted); line-height: 1.5; text-align: center; }

.form__status {
  font-size: 14px;
  line-height: 1.6;
  padding: 14px 16px;
  border-radius: 2px;
  display: none;
}
.form__status.is-ok   { display: block; background: rgba(94, 122, 68, .12); color: #4A6234; border: 1px solid rgba(94, 122, 68, .3); }
.form__status.is-err  { display: block; background: rgba(163, 59, 38, .09);  color: #8C2F1E; border: 1px solid rgba(163, 59, 38, .28); }

.form.is-sent { text-align: center; }

/* ================================================================ contacts */
.contacts__grid { display: grid; gap: clamp(30px, 6vw, 56px); }
@media (min-width: 900px) { .contacts__grid { grid-template-columns: .85fr 1.15fr; } }

/* Разделители рисуем рамками, а не заливкой-подложкой: ячейки остаются
   прозрачными и фактура секции проходит сквозь них без смены оттенка. */
.contacts__list { display: grid; border-block: 1px solid var(--line); }
.contacts__list > div { padding: 20px 0; border-top: 1px solid var(--line); }
.contacts__list > div:first-child { border-top: 0; }
.contacts__list dt {
  font-size: 9.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 8px;
}
.contacts__list dd { font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.contacts__list a { border-bottom: 1px solid var(--line); }
.contacts__list a:hover { border-color: var(--clay); color: var(--clay); }

.map {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(152deg, #7A3F29, #3E1B11);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__load {
  position: absolute; inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--cream);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.map__load::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: .12;
  mix-blend-mode: overlay;
}
.map__load svg {
  width: 34px; height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (min-width: 900px) { .map { aspect-ratio: 16 / 11; } }

.contacts__maplinks { margin-top: 16px; }

/* ================================================================ footer */
.footer {
  background: var(--grad-deep);
  color: var(--cream);
  padding-top: clamp(52px, 9vw, 84px);
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  position: relative;
  isolation: isolate;
}
.footer::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain);
  opacity: .09;
  mix-blend-mode: overlay;
}
.footer::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: url('../assets/pattern-ridges-cream.svg') 0 0 / 360px 360px repeat;
  opacity: .14;
  pointer-events: none;
}

.footer__inner { display: grid; gap: clamp(32px, 6vw, 54px); }
@media (min-width: 820px) {
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
  .footer__nav { grid-template-columns: 1fr; }   /* в три колонки список читается сверху вниз */
}

.footer__brand img { width: clamp(150px, 40vw, 190px); height: auto; opacity: .94; }

.footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; font-size: 13px; }
.footer__nav a { color: var(--muted-light); transition: color .35s; }
.footer__nav a:hover { color: var(--cream); }

.footer__contact { display: grid; gap: 8px; font-size: 13.5px; color: var(--muted-light); }
.footer__contact > a:first-child {
  font-family: var(--ff-display);
  font-size: 24px;
  color: var(--cream);
  letter-spacing: .02em;
}
.footer__social { display: flex; gap: 10px; margin-top: 10px; }
.footer__social a {
  width: 42px; height: 42px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--cream);
  transition: background .35s, border-color .35s;
}
.footer__social a:hover { background: rgba(247, 241, 232, .12); border-color: var(--cream); }
.footer__social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  margin-top: clamp(36px, 6vw, 60px);
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted-light);
}

/* ================================================================ sticky cta */
.stickycta {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(46, 20, 9, .5) 40%, rgba(46, 20, 9, .8));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateY(130%);
  transition: transform .55s var(--ease);
  pointer-events: none;
}
.stickycta.is-on { transform: none; pointer-events: auto; }
@media (min-width: 900px) { .stickycta { display: none; } }

/* ================================================================ sheets */
/* display у .sheet/.drawer перебивает браузерное [hidden] — возвращаем его явно,
   иначе закрытая шторка остаётся невидимым слоем поверх страницы и съедает тапы. */
.sheet[hidden], .drawer[hidden] { display: none !important; }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(30, 13, 6, .58);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity .35s ease;
}
.sheet.is-open { opacity: 1; }

.sheet__panel {
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--cream-soft);
  color: var(--ink);
  border-radius: 18px 18px 0 0;
  padding: 10px clamp(16px, 5vw, 26px) calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 60px rgba(30, 13, 6, .45);
  transform: translateY(100%);
  transition: transform .45s var(--ease);
}
.sheet.is-open .sheet__panel { transform: none; }

.sheet__grab {
  width: 40px; height: 4px;
  border-radius: 4px;
  background: var(--line);
  margin: 0 auto 10px;
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.sheet__title {
  font-size: 10.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--clay);
}
.sheet__close {
  width: 38px; height: 38px;
  margin-right: -8px;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.sheet__done { margin-top: 16px; }

@media (min-width: 700px) {
  .sheet { align-items: center; }
  .sheet__panel { border-radius: 4px; transform: translateY(18px) scale(.98); }
  .sheet.is-open .sheet__panel { transform: none; }
  .sheet__grab { display: none; }
}

/* -------------------------------------------------------------- calendar */
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cal__month {
  font-family: var(--ff-display);
  font-size: 22px;
  text-transform: capitalize;
}
.cal__nav {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--clay);
  font-size: 19px;
  display: grid;
  place-items: center;
  transition: background .3s;
}
.cal__nav:hover { background: rgba(139, 74, 50, .07); }
.cal__nav:disabled { opacity: .25; pointer-events: none; }

.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow {
  margin-bottom: 6px;
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.cal__day {
  aspect-ratio: 1;
  min-height: 40px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 300;
  display: grid;
  place-items: center;
  position: relative;
  transition: background .28s ease, color .28s ease;
}
.cal__day:hover:not(:disabled) { background: rgba(139, 74, 50, .09); }
.cal__day:disabled { opacity: .22; pointer-events: none; }
.cal__day.is-today::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--clay);
}
.cal__day.is-sel {
  background: var(--grad-clay);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.cal__day.is-sel.is-today::after { background: var(--cream); }
.cal__day.is-void { pointer-events: none; }

/* -------------------------------------------------------------- slots */
.slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-height: 46vh;
  overflow-y: auto;
  padding: 2px;
}
.slots button {
  padding: 13px 4px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--cream-pure);
  font-size: 14px;
  font-weight: 300;
  transition: background .28s ease, color .28s ease, border-color .28s ease;
}
.slots button:hover { border-color: var(--clay); }
.slots button.is-sel {
  background: var(--grad-clay);
  color: var(--cream);
  border-color: transparent;
}
.slots button:disabled { opacity: .26; pointer-events: none; }

/* Ленты идут во всю ширину, но первая карточка должна вставать
   ровно под заголовок секции. */
.carousel__track,
.wave__rail {
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
}
.wave__rail { padding-block: 18px calc(18px + var(--wave-amp, 46px)); }

/* ================================================================ отступы декора */
/* Во флекс- и грид-раскладках расстояние держит gap, свои поля флёрону не нужны. */
.signature__inner .flourish,
.bar__head .flourish { margin-bottom: 0; }
.bar__head .flourish::after { max-width: 120px; }

.dishes .flourish { margin-bottom: 20px; }

/* ================================================================ рамка страницы */
/* Тонкая линия по периметру окна — приём печатного меню. Только на больших
   экранах: на телефоне она съедает и без того узкие поля. */
@media (min-width: 1100px) {
  .pageframe {
    position: fixed;
    inset: 14px;
    z-index: 95;
    border: 1px solid rgba(192, 133, 82, .22);
    pointer-events: none;
    mix-blend-mode: normal;
  }
  .pageframe::before, .pageframe::after {
    content: '';
    position: absolute;
    width: 12px; height: 12px;
    border: 1px solid rgba(192, 133, 82, .45);
  }
  .pageframe::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
  .pageframe::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
}

/* ================================================================ reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .95s var(--ease), transform 1.05s var(--ease);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .dish { opacity: 1; translate: none; }
  .hero__slide.is-active { animation: none; }
}
