/* ============================================================================
   Bukhara Pub — стили лендинга
   Мобильный первым. Десктоп добирается медиазапросами внизу каждого блока.
   ========================================================================= */

:root {
  --ink:      #0d0c0b;
  --ink-2:    #141210;
  --ink-3:    #1c1917;
  --ink-4:    #262220;
  --line:     rgba(243, 237, 226, 0.12);
  --line-2:   rgba(243, 237, 226, 0.2);

  --cream:    #f3ede2;
  --muted:    #a99e8e;
  --muted-2:  #7d7466;

  --ember:    #c8863c;
  --ember-2:  #e3a75f;
  --ember-dim: rgba(200, 134, 60, 0.16);
  --danger:   #e4796a;

  --font-display: Georgia, "Iowan Old Style", "Times New Roman", "Noto Serif", serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
             "Noto Sans", Arial, sans-serif;

  --wrap: 1180px;
  --pad: 20px;
  --radius: 14px;
  --radius-lg: 20px;

  --header-h: 62px;
  --bar-h: 68px;

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ── Сброс ────────────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 16px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* закреплённая полоса не должна перекрывать подвал */
  padding-bottom: calc(var(--bar-h) + var(--safe-b));
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ember-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cream); }

ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--ember-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ember);
  color: #1a1206;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: max(var(--pad), var(--safe-l)) max(var(--pad), var(--safe-r));
}

/* ── Кнопки ───────────────────────────────────────────────────────────── */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --btn-bd: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.1s var(--ease);
}
.btn:active { transform: scale(0.985); }
.btn svg { width: 17px; height: 17px; fill: currentColor; }

.btn--primary {
  --btn-bg: var(--ember);
  --btn-fg: #171004;
  --btn-bd: var(--ember);
}
.btn--primary:hover { --btn-bg: var(--ember-2); --btn-bd: var(--ember-2); color: #171004; }

.btn--outline:hover { --btn-bd: var(--ember-2); color: var(--cream); }

.btn--ghost { --btn-bd: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--cream); background: var(--ink-3); }

.btn--lg { min-height: 54px; padding: 15px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ── Шапка ────────────────────────────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(13, 12, 11, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); }

.header__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  min-height: var(--header-h);
  padding-inline: max(var(--pad), var(--safe-l)) max(var(--pad), var(--safe-r));
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cream);
  margin-right: auto;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--ember) 0%, #8a4f1c 100%);
  flex: none;
}
.logo__mark svg { width: 22px; height: 22px; fill: #171004; }
.logo__text { display: grid; line-height: 1; }
.logo__text b {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.14em;
}
.logo__text i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--muted-2);
  margin-top: 4px;
}

.nav { display: none; }

.header__actions { display: flex; align-items: center; gap: 8px; }
.header__call { min-height: 40px; width: 40px; padding: 0; border-color: var(--line); }
.header__call svg { width: 18px; height: 18px; }
.header__book { display: none; }

.burger {
  width: 42px;
  height: 42px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  cursor: pointer;
}
.burger span {
  height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 89;
  background: var(--ink);
  padding: 24px max(var(--pad), var(--safe-l)) calc(40px + var(--safe-b));
  overflow-y: auto;
  animation: fade-in 0.2s var(--ease);
}
.mobile-nav nav { display: grid; gap: 4px; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--cream);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:active { color: var(--ember-2); }
.mobile-nav__pdf { color: var(--ember-2) !important; }

/* ── Первый экран ─────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 88svh;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 12, 11, 0.72) 0%, rgba(13, 12, 11, 0.12) 32%,
                    rgba(13, 12, 11, 0.72) 74%, var(--ink) 100%),
    radial-gradient(120% 70% at 50% 100%, rgba(200, 134, 60, 0.16), transparent 60%);
}

.hero__content {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 max(var(--pad), var(--safe-l)) 76px max(var(--pad), var(--safe-r));
}

.hero__eyebrow,
.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ember);
}

.hero__title {
  font-size: clamp(46px, 15vw, 92px);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero__lead {
  max-width: 30ch;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 26px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  translate: -50% 0;
  width: 26px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--ember);
  animation: scroll-hint 1.9s var(--ease) infinite;
}

@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60%      { transform: translateY(13px); opacity: 0; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ── Общее для секций ─────────────────────────────────────────────────── */

.section { padding: 64px 0; }
.section--dark { background: var(--ink-2); }
.section--about { padding-top: 56px; }

.section__title {
  font-size: clamp(30px, 8vw, 48px);
  margin-bottom: 16px;
}

.section__lead {
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 28px;
}

.section__cta { margin-top: 28px; }

.lead { font-size: 17px; }

.note {
  color: var(--muted-2);
  font-size: 14px;
  border-left: 2px solid var(--line-2);
  padding-left: 12px;
}

/* ── О заведении ──────────────────────────────────────────────────────── */

.about__grid { display: grid; gap: 34px; }
.about__text p { color: var(--muted); }
.about__text .lead { color: var(--cream); }

.facts { display: grid; gap: 10px; }
.fact {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section--dark .fact { background: var(--ink-3); }
.fact__icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--ember-dim);
}
.fact__icon svg { width: 21px; height: 21px; fill: var(--ember-2); }
.fact b { font-size: 15px; }
.fact span { color: var(--muted-2); font-size: 13.5px; }

/* ── Галерея ──────────────────────────────────────────────────────────── */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding: 4px max(var(--pad), var(--safe-l)) 14px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery li { scroll-snap-align: center; }
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--ink-3);
}
.gallery__hint { margin-top: 6px; color: var(--muted-2); font-size: 14px; }

/* ── Карточки ─────────────────────────────────────────────────────────── */

.cards { display: grid; gap: 14px; }
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.section--dark .card { background: var(--ink-3); }
.card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--ink-3);
}
.card__body { padding: 18px 18px 20px; }
.card__body h3 { font-size: 22px; margin-bottom: 8px; }
.card__body p { color: var(--muted); font-size: 15px; }
.card__date {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 8px;
}

/* ── Фирменное блюдо ──────────────────────────────────────────────────── */

.section--signature {
  background:
    radial-gradient(90% 60% at 15% 0%, rgba(200, 134, 60, 0.12), transparent 62%),
    var(--ink);
}
.signature { display: grid; gap: 28px; }
.signature__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--ink-3);
}
.signature__text .section__title { font-size: clamp(38px, 12vw, 64px); }
.signature__list { display: grid; gap: 12px; margin: 22px 0; }
.signature__list li {
  display: grid;
  gap: 3px;
  padding: 14px 0 14px 16px;
  border-left: 2px solid var(--ember);
}
.signature__list b { font-size: 16px; }
.signature__list span { color: var(--muted); font-size: 14.5px; }

/* ── Соцсети ──────────────────────────────────────────────────────────── */

.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--cream);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.social__link:hover { border-color: var(--ember); background: var(--ember-dim); }
.social__link svg { width: 19px; height: 19px; fill: var(--ember-2); }

/* ── Бронирование ─────────────────────────────────────────────────────── */

.section--booking {
  background: var(--ink-2);
  border-block: 1px solid var(--line);
}
.booking { display: grid; gap: 32px; }

.booking__phone { margin-top: 18px; }
.booking__phone a {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--ember);
  padding-bottom: 2px;
}

.form {
  display: grid;
  gap: 18px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 18px 24px;
}

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

.field label,
.field .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.label__hint { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted-2); }

.field input,
.field textarea,
.picker {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--cream);
  /* 16px обязательны: меньше — и iOS зумит страницу при фокусе */
  font: 400 16px/1.4 var(--font-ui);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.field textarea { min-height: 92px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }
.field input:focus,
.field textarea:focus,
.picker:focus { border-color: var(--ember); background: var(--ink-4); }

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid .picker { border-color: var(--danger); }

.field__error {
  margin: 0;
  min-height: 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--danger);
}
.field__error:empty { display: none; }

.picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}
.picker__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker__icon { width: 19px; height: 19px; fill: var(--muted-2); flex: none; }
.picker.is-empty .picker__value { color: var(--muted-2); }

.stepper {
  display: inline-grid;
  grid-template-columns: 52px minmax(64px, 1fr) 52px;
  align-items: center;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  width: fit-content;
}
.stepper__btn {
  min-height: 52px;
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--cream);
  transition: background-color 0.15s var(--ease);
}
.stepper__btn:hover { background: var(--ink-4); }
.stepper__btn[disabled] { color: var(--muted-2); cursor: default; background: none; }
.stepper__value {
  text-align: center;
  font-family: var(--font-display);
  font-size: 22px;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form__error {
  margin: 0;
  padding: 13px 15px;
  background: rgba(228, 121, 106, 0.1);
  border: 1px solid rgba(228, 121, 106, 0.34);
  border-radius: 12px;
  color: #f0b3a9;
  font-size: 14.5px;
}
.form__error a { color: #fff; }

.form__note { margin: 0; font-size: 12.5px; color: var(--muted-2); text-align: center; }

.booking__done {
  background: var(--ink);
  border: 1px solid var(--ember);
  border-radius: var(--radius-lg);
  padding: 32px 22px;
  text-align: center;
}
.booking__done-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ember-dim);
  display: grid;
  place-items: center;
}
.booking__done-mark svg { width: 28px; height: 28px; fill: var(--ember-2); }
.booking__done h3 { font-size: 27px; margin-bottom: 12px; }
.booking__done p { color: var(--muted); }
.booking__done-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}

/* ── Контакты ─────────────────────────────────────────────────────────── */

.contacts { display: grid; gap: 24px; }
.contacts__list { display: grid; gap: 2px; }
.contacts__list > div {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contacts__list dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contacts__list dd { font-size: 17px; }
.contacts__link { margin-top: 18px; font-size: 15px; }

.map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(45deg, var(--ink-2) 0 14px, var(--ink-3) 14px 28px);
  aspect-ratio: 4 / 3;
}
.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: 6px;
  width: 100%;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 20px;
  text-align: center;
}
.map__pin {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ember);
  margin-bottom: 6px;
}
.map__pin svg { width: 25px; height: 25px; fill: #171004; }
.map__load b { font-size: 16px; }
.map__load small { color: var(--muted-2); font-size: 13px; }
.map__load:hover b { color: var(--ember-2); }

/* ── Подвал ───────────────────────────────────────────────────────────── */

.footer {
  padding: 40px 0 46px;
  border-top: 1px solid var(--line);
  background: var(--ink);
}
.footer__inner { display: grid; gap: 24px; }
.footer__brand { display: grid; gap: 6px; }
.footer__brand b {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.16em;
}
.footer__brand span { color: var(--muted-2); font-size: 13px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer__nav a:hover { color: var(--cream); }
.footer__copy { color: var(--muted-2); font-size: 13px; margin: 0; }

/* ── Закреплённая полоса ──────────────────────────────────────────────── */

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px max(14px, var(--safe-l)) calc(10px + var(--safe-b)) max(14px, var(--safe-r));
  background: rgba(13, 12, 11, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transition: transform 0.3s var(--ease);
}
.sticky-bar.is-hidden { transform: translateY(110%); }
.sticky-bar__call {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--cream);
}
.sticky-bar__call svg { width: 20px; height: 20px; fill: currentColor; }
.sticky-bar__book { flex: 1; min-height: 48px; }

/* ── Шторка: календарь и время ────────────────────────────────────────── */

.sheet { position: fixed; inset: 0; z-index: 120; }
.sheet[hidden] { display: none; }

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 5, 5, 0.68);
  animation: fade-in 0.2s var(--ease);
}

.sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88svh;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border-radius: 22px 22px 0 0;
  border-top: 1px solid var(--line-2);
  padding-bottom: var(--safe-b);
  animation: sheet-up 0.28s var(--ease);
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

.sheet__grip {
  width: 38px;
  height: 4px;
  border-radius: 3px;
  background: var(--line-2);
  margin: 9px auto 0;
  flex: none;
}

.sheet__head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 12px 10px 16px;
  flex: none;
}
.sheet__title {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-right: auto;
}
.sheet__back, .sheet__close {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--ink-3);
  cursor: pointer;
}
.sheet__back { margin-right: 4px; margin-left: -4px; }
.sheet__back svg, .sheet__close svg { width: 19px; height: 19px; fill: var(--cream); }
.sheet__back:hover, .sheet__close:hover { background: var(--ink-4); }

.sheet__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px max(16px, var(--safe-l)) 24px max(16px, var(--safe-r));
  -webkit-overflow-scrolling: touch;
}
.sheet__caption { color: var(--muted); font-size: 15px; margin-bottom: 14px; }

/* календарь */
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.cal__month {
  font-family: var(--font-display);
  font-size: 20px;
  text-transform: capitalize;
}
.cal__nav {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  cursor: pointer;
}
.cal__nav svg { width: 19px; height: 19px; fill: var(--cream); }
.cal__nav[disabled] { opacity: 0.3; cursor: default; }
.cal__nav:not([disabled]):hover { border-color: var(--ember); }

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

.cal__day {
  aspect-ratio: 1;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--ink-3);
  color: var(--cream);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.cal__day:hover:not([disabled]) { border-color: var(--ember); }
.cal__day[disabled] { background: none; color: var(--muted-2); opacity: 0.4; cursor: default; }
.cal__day.is-empty { background: none; border: 0; cursor: default; }
.cal__day.is-today { border-color: var(--line-2); font-weight: 700; }
.cal__day.is-selected {
  background: var(--ember);
  border-color: var(--ember);
  color: #171004;
  font-weight: 700;
}

/* слоты времени */
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--ink-3);
  color: var(--cream);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.slot:hover { border-color: var(--ember); }
.slot.is-selected {
  background: var(--ember);
  border-color: var(--ember);
  color: #171004;
  font-weight: 700;
}
.slots__empty { color: var(--muted); font-size: 15px; padding: 20px 0; }
.slots__loading { color: var(--muted-2); font-size: 15px; padding: 20px 0; }

body.is-locked { overflow: hidden; }

/* ── Планшет ──────────────────────────────────────────────────────────── */

@media (min-width: 640px) {
  .section { padding: 84px 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .gallery {
    grid-auto-columns: 40%;
  }
  .form { padding: 30px 28px 32px; }
  .contacts { grid-template-columns: 1fr 1fr; align-items: start; gap: 32px; }
  .slots { grid-template-columns: repeat(5, 1fr); }
  .booking__done { padding: 44px 32px; }
}

/* ── Десктоп ──────────────────────────────────────────────────────────── */

@media (min-width: 900px) {
  :root { --header-h: 74px; --pad: 32px; }

  body { padding-bottom: 0; }

  .nav {
    display: flex;
    gap: 26px;
    margin-inline: auto;
  }
  .nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14.5px;
    letter-spacing: 0.02em;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  }
  .nav a:hover { color: var(--cream); border-bottom-color: var(--ember); }

  .header__book { display: inline-flex; }
  .burger, .sticky-bar { display: none; }
  .mobile-nav { display: none !important; }

  .hero { min-height: 92svh; align-items: center; }
  .hero__content { padding-bottom: 0; padding-top: var(--header-h); }
  .hero__lead { font-size: 18px; max-width: 42ch; }

  .about__grid { grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }

  .gallery {
    grid-auto-flow: unset;
    grid-template-columns: repeat(6, 1fr);
    overflow: visible;
    padding-inline: max(var(--pad), var(--safe-l));
    max-width: var(--wrap);
    margin-inline: auto;
    gap: 12px;
  }
  .gallery li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery li:nth-child(1) img { aspect-ratio: 1 / 1; height: 100%; }
  .gallery li:nth-child(n + 2) { grid-column: span 2; }
  .gallery li:nth-child(n + 2) img { aspect-ratio: 4 / 3; }

  .signature { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }

  .booking { grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
  .booking__intro { position: sticky; top: calc(var(--header-h) + 24px); }

  .map { aspect-ratio: 3 / 2; }

  .footer__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
  }
  .footer__nav { justify-content: center; }

  /* на десктопе шторка — обычное модальное окно по центру */
  .sheet__panel {
    left: 50%;
    bottom: auto;
    top: 50%;
    translate: -50% -50%;
    width: min(420px, calc(100vw - 48px));
    max-height: min(660px, calc(100vh - 48px));
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-2);
    animation: sheet-pop 0.2s var(--ease);
  }
  @keyframes sheet-pop {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
  }
  .sheet__grip { display: none; }
}

/* ── Меньше движения ──────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__scroll { display: none; }
}

/* ── Печать ───────────────────────────────────────────────────────────── */

@media print {
  .header, .sticky-bar, .sheet, .hero__scroll, .form { display: none; }
  body { background: #fff; color: #000; padding: 0; }
}
