/* =============================================================================
   Гербергъ 1-го нумера — главная страница
   Вёрстка по макету дизайнера (Figma, страница «Концепция Сайта», экраны 1–4).
   Шрифты — из прежнего проекта: ST Nizhegorodsky (заголовки), Cormorant (текст).
   ========================================================================== */

/* --- Шрифты ------------------------------------------------------------- */
@font-face {
  font-family: 'ST Nizhegorodsky';
  src: url('../fonts/st-nizhegorodsky.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Cormorant: кириллица и латиница отдельными подмножествами —
   кириллический файл втрое легче, и браузер не тянет латиницу зря. */
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/cormorant-400-normal-cyrillic.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/cormorant-400-normal-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2212;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/cormorant-400-italic-cyrillic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/cormorant-400-italic-latin.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2212;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/cormorant-500-normal-cyrillic.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/cormorant-500-normal-latin.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2212;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/cormorant-600-normal-cyrillic.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/cormorant-600-normal-latin.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2212;
}

/* --- Палитра (снята пипеткой с макета) ---------------------------------- */
:root {
  --ink:        #423B38;  /* основной тёмный: плашки, текст, 4-й экран */
  --ink-soft:   #59524E;  /* смягчённый тёмный */
  --paper:      #FCF4E7;  /* кремовая бумага карточки */
  --bg:         #EDE3D4;  /* фон страницы под узором */
  --tan:        #BDAF9D;  /* песочные кнопки */
  --tab:        #E6DAC9;  /* неактивная вкладка */
  --rule:       #8C7F70;  /* тонкие линейки */

  --display: 'ST Nizhegorodsky', 'Georgia', serif;
  --text:    'Cormorant', 'Georgia', 'Times New Roman', serif;

  --shell: 1144px;        /* ширина карточки в макете: 1212 − 68 */
  --gutter: clamp(16px, 4vw, 68px);
  --radius: 28px;
}

/* --- База ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: url('../img/pattern.svg');
  background-size: 1520px auto;
  background-position: top center;
  background-repeat: repeat;
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.shell {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* --- Шапка --------------------------------------------------------------- */
.masthead {
  padding-block: clamp(10px, 1.6vw, 16px);
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 40;
}

/* Фон и тень — только под шириной самой навигации (кнопки + иконки),
   а не во весь экран: иначе при прокрутке получается слишком широкая плашка. */
.masthead .shell {
  background: var(--bg);
  border-radius: 12px;
  padding: 0 clamp(10px, 1.6vw, 16px);
  box-shadow: 0 4px 14px rgba(66, 59, 56, .14);
}

.masthead__venzel {
  width: clamp(84px, 11vw, 118px);
  margin: 0 auto clamp(4px, 1vw, 8px);
}

.masthead__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(18px, 2.6vw, 24px);
  letter-spacing: .02em;
  margin: 0;
  color: var(--ink);
}

.masthead__tagline {
  font-size: clamp(13px, 1.4vw, 15px);
  margin: 3px 0 0;
  color: var(--ink);
}

/* --- Навигация вкладками ------------------------------------------------- */
.topbar {
  display: flex;
  align-items: center;
  margin-top: clamp(12px, 1.8vw, 18px);
}

/* Кнопка-«бургер»: скрыта на десктопе, появляется в мобильном разрешении */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--tab);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  flex-shrink: 0;
}

.nav-toggle__icon { width: 20px; height: 20px; fill: currentColor; }
.nav-toggle__icon--close { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle__icon--open { display: none; }
.nav-toggle[aria-expanded='true'] .nav-toggle__icon--close { display: block; }

.topbar__panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  row-gap: 8px;
}

.tabs__item { display: flex; align-items: center; }

/* Ромбик-разделитель между пунктами — тот же, что в ornament-rule */
.tabs__item + .tabs__item::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--ink);
  opacity: .35;
  transform: rotate(45deg);
  margin: 0 clamp(8px, 0.9vw, 14px);
  flex-shrink: 0;
}

/* Обычный пункт меню: текстовая ссылка с подчёркиванием текущей страницы */
.tabs__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--display);
  font-size: clamp(15px, 1.3vw, 17px);
  letter-spacing: .03em;
  line-height: inherit;
  text-decoration: none;
  padding: 4px 1px 6px;
  background: none;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: opacity .15s ease, border-color .15s ease;
}

.tabs__link:hover,
.tabs__link:focus-visible { opacity: .6; }

.tabs__link[aria-current='page'] {
  border-bottom-color: var(--ink);
}

/* Единственный явный CTA — «Бронь стола» */
.tabs__item--accent .tabs__link {
  background: var(--ink);
  color: var(--paper);
  padding: 9px 18px;
  border-radius: 4px;
  border-bottom: none;
}

.tabs__item--accent .tabs__link:hover,
.tabs__item--accent .tabs__link:focus-visible { opacity: .85; }

.topbar__side {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
  padding-bottom: 6px;
}

.social {
  display: flex;
  gap: clamp(8px, 1.4vw, 16px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.social__link {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  color: var(--ink);
  transition: opacity .18s ease;
}
.social__link:hover { opacity: .65; }
.social__link svg { width: 22px; height: 22px; fill: currentColor; }

/* --- Общая «бумага» под все четыре экрана -------------------------------- */
.paper {
  background: var(--paper);
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: clamp(10px, 1.4vw, 16px);
  overflow: hidden;
}

.paper__inner { padding: clamp(28px, 4.5vw, 56px) clamp(20px, 4vw, 78px); }

/* --- Орнаменты и разделители --------------------------------------------- */
.ornament-rule {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  margin-block: clamp(22px, 4vw, 44px);
}

.ornament-rule::before,
.ornament-rule::after,
.ornament-rule__line {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ink);
  opacity: .85;
}

.ornament-rule__diamond {
  flex: 0 0 auto;
  width: 22px; height: 9px;
  color: var(--ink);
}
.ornament-rule__diamond svg { width: 100%; height: 100%; fill: currentColor; }

.ornament-rule--light::before,
.ornament-rule--light::after,
.ornament-rule--light .ornament-rule__line { background: var(--paper); opacity: .9; }
.ornament-rule--light .ornament-rule__diamond { color: var(--paper); }

/* Заголовок в тёмной плашке с линейками сверху и снизу */
.plaque {
  display: inline-block;
  max-width: 100%;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-block: 7px;
}

.plaque__box {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 4.6vw, 46px);
  letter-spacing: .03em;
  line-height: 1.1;
  margin: 0;
  padding: clamp(10px, 1.6vw, 18px) clamp(18px, 3vw, 36px);
  text-align: center;
}

.plaque--light { border-color: var(--paper); }
.plaque--light .plaque__box { background: transparent; color: var(--paper); }
.plaque--wide { display: block; width: 100%; }

/* Плашка-герб на первом экране: вензель + название вместо шапки сайта.
   Ширина надписи привязана к ширине вензеля через переменную — на любом
   экране она ровно на 3px уже вензеля с каждой стороны. */
.plaque__box--brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.2vw, 12px);
}
.plaque__venzel { width: 100%; height: auto; }
.plaque__brand-title {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  max-width: calc(100% - 6px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Экран 1: первый экран ----------------------------------------------- */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.hero__plaque { margin-bottom: clamp(18px, 3vw, 34px); }

.hero__quote {
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.32;
  text-align: center;
  margin: 0;
  font-weight: 500;
}

.hero__lead {
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.42;
  margin: 0 0 clamp(22px, 3.4vw, 38px);
}

/* Буквица */
.hero__lead::first-letter {
  font-size: 2.6em;
  line-height: .82;
  float: left;
  padding: 4px 8px 0 0;
  font-weight: 500;
}

.hero__figure { margin: 0; }

/* --- Кнопки --------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(12px, 1.4vw, 15px);
  letter-spacing: .06em;
  text-decoration: none;
  text-align: center;
  padding: 14px clamp(16px, 2.4vw, 26px);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: transform .15s ease, opacity .18s ease, background-color .18s ease;
}
.btn:hover { opacity: .88; }
.btn:active { transform: translateY(1px); }

.btn--tan  { background: var(--tan); color: var(--ink); }
.btn--ink  { background: var(--ink); color: var(--paper); }

/* --- Экран 2: О нас ------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}

.about__heading { display: block; text-align: right; }
.about__heading .plaque { display: inline-block; }

.about__flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  margin-block: clamp(16px, 2.6vw, 30px);
  color: var(--ink);
}
.about__flourish svg { width: 26px; height: 26px; fill: currentColor; }
.about__flourish .leaf { width: 54px; height: 16px; }

.about__text p {
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.45;
  margin: 0 0 1em;
}

.about__wide {
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.45;
  margin: clamp(18px, 2.6vw, 28px) 0 0;
}

.about__figure { margin: 0; }

/* --- Экран 3: Что вас ждёт ------------------------------------------------ */
.features__head { text-align: center; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3.4vw, 46px);
  margin-top: clamp(26px, 4vw, 46px);
  align-items: start;
}

.feature { margin: 0; text-align: center; }

.feature__img {
  width: 100%;
  aspect-ratio: 285 / 419;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.feature__caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(12px, 1.8vw, 20px);
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.2;
}

.feature__caption svg { width: 16px; height: 8px; fill: currentColor; flex: 0 0 auto; }

/* --- Страница «Забронировать» ---------------------------------------------- */
.booking-hero { text-align: center; }

.booking-hero__eyebrow {
  font-style: italic;
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--ink-soft);
  margin: 0 0 clamp(14px, 2vw, 20px);
}

.booking-hero__plaque { margin-bottom: clamp(22px, 3.4vw, 34px); }

.booking-hero__greeting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-size: clamp(19px, 2.4vw, 25px);
  margin: 0 0 14px;
}
.booking-hero__greeting span { min-width: 0; }
.booking-hero__crown { width: 22px; height: 22px; fill: var(--ink); flex: 0 0 auto; }

.booking-hero__intro {
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.5;
  max-width: 62ch;
  margin: 0 auto;
}

.booking-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
  margin-top: clamp(34px, 4.6vw, 52px);
}

.booking-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: clamp(24px, 3vw, 32px) clamp(18px, 2.4vw, 24px);
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper);
}

.booking-method__icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
}
.booking-method__icon svg { width: 24px; height: 24px; fill: currentColor; }

.booking-method__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(16px, 1.9vw, 19px);
  letter-spacing: .02em;
  margin: 0;
}

.booking-method__value {
  font-family: var(--display);
  font-size: clamp(17px, 2vw, 20px);
  text-decoration: none;
}
.booking-method__value:hover { text-decoration: underline; }

.booking-method__desc {
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 2px 0 0;
}

.booking-warning {
  margin-top: clamp(30px, 4vw, 46px);
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3.4vw, 36px);
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--tab);
}

.booking-warning__title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--display);
  font-size: clamp(16px, 1.9vw, 19px);
  margin: 0 0 16px;
}
.booking-warning__title span { min-width: 0; }
.booking-warning__icon { width: 22px; height: 22px; fill: var(--ink); flex: 0 0 auto; margin-top: 2px; }

.booking-warning__list {
  margin: 0 0 16px;
  padding-left: 1.4em;
  font-size: clamp(15px, 1.7vw, 18px);
}
.booking-warning__list li { margin-bottom: 6px; }

.booking-warning__note {
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
}

.booking-closing {
  text-align: center;
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 500;
  max-width: 40ch;
  margin: 0 auto;
}

.booking-widget { margin-top: clamp(34px, 4.6vw, 52px); }

/* --- Страница «Персонажи» --------------------------------------------------- */
.characters-hero { text-align: center; }

.characters-hero__eyebrow {
  font-style: italic;
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--ink-soft);
  margin: 0 0 clamp(14px, 2vw, 20px);
}

.characters-hero__plaque { margin-bottom: clamp(22px, 3.4vw, 34px); }

.characters-hero__lead {
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.5;
  max-width: 62ch;
  margin: 0 auto;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 40px);
  margin-top: clamp(34px, 4.6vw, 52px);
}

.character-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
}

.character-card__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  padding: clamp(16px, 2.4vw, 28px);
  background: var(--bg);
  display: block;
}

.character-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(20px, 2.6vw, 28px);
}

.character-card__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 25px);
  letter-spacing: .02em;
  margin: 0;
}

.character-card__text {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}

.booking-widget iframe {
  width: 100%;
  height: min(80vh, 860px);
  border: 0;
  border-radius: 10px;
  display: block;
  background: #fff;
}

/* --- Экран 4: Адрес и контакты -------------------------------------------- */
.contacts {
  background: var(--ink);
  color: var(--paper);
  border-radius: 0;
  /* Компенсация высоты залипающей шапки при переходе по ссылке #contacts */
  scroll-margin-top: 90px;
}

.contacts__head { text-align: center; }

.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
  margin-top: clamp(26px, 4vw, 44px);
}

.contact-list {
  list-style: none;
  margin: 0 0 clamp(22px, 3.4vw, 34px);
  padding: 0;
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
}

.contact-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
}

.contact-item__icon { width: 26px; height: 26px; fill: var(--paper); margin-top: 4px; }

.contact-item__label {
  font-size: clamp(16px, 1.9vw, 21px);
  margin: 0 0 2px;
}

.contact-item__value {
  font-size: clamp(15px, 1.7vw, 18px);
  margin: 0;
  text-decoration: none;
  line-height: 1.35;
}
a.contact-item__value:hover { text-decoration: underline; }

.contacts__actions { display: grid; gap: 14px; max-width: 250px; }

.contacts__actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.contacts__actions .btn svg { width: 18px; height: 18px; fill: currentColor; }

.contacts__map {
  border: 0;
  width: 100%;
  aspect-ratio: 620 / 484;
  border-radius: 4px;
  background: #E8E4DC;
}

/* --- Подвал ---------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-size: 14px;
  padding: clamp(18px, 3vw, 28px) var(--gutter) clamp(24px, 4vw, 36px);
  opacity: .82;
}
.footer p { margin: 0; }

/* --- Модальные окна (бронь, меню) ------------------------------------------ */
.modal[hidden] { display: none !important; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
  background: rgba(40, 35, 33, .72);
}

.modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  background: var(--paper);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px 22px;
  border-bottom: 1px solid rgba(66, 59, 56, .18);
}

.modal__title {
  font-family: var(--display);
  font-size: clamp(16px, 2.4vw, 22px);
  margin: 0;
  letter-spacing: .03em;
}

.modal__close {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  width: 40px; height: 40px;
  cursor: pointer;
  border-radius: 50%;
}
.modal__close:hover { background: rgba(66, 59, 56, .1); }

.modal__body { padding: 0; flex: 1; min-height: 0; }
.modal__body iframe { width: 100%; height: min(70vh, 720px); border: 0; display: block; }

.modal__notice { padding: clamp(20px, 4vw, 34px); text-align: center; }
.modal__notice p { font-size: clamp(16px, 2vw, 19px); margin: 0 0 20px; }

/* --- Адаптив ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__grid,
  .about__grid,
  .contacts__grid { grid-template-columns: minmax(0, 1fr); }

  .hero__figure { order: -1; }
  .about__heading { text-align: center; }
  .about__figure { order: -1; max-width: 420px; margin-inline: auto; }

  .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .contacts__actions { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .booking-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .character-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 17px; }

  /* На мобильном шапка не фиксируется при прокрутке — просто бургер в углу */
  .masthead { position: static; }
  .masthead .shell {
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  .topbar { justify-content: flex-end; position: relative; }

  .nav-toggle { display: inline-flex; }

  /* Панель-меню скрыта по умолчанию и раскрывается кликом по бургеру */
  .topbar__panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    background: var(--bg);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 10px 26px rgba(40, 35, 33, .22);
  }

  .nav-toggle[aria-expanded='true'] + .topbar__panel { display: flex; }

  .tabs { flex-direction: column; align-items: stretch; row-gap: 0; flex-wrap: nowrap; }

  .tabs__item { display: block; }
  .tabs__item + .tabs__item::before { display: none; }

  .tabs__link {
    display: block;
    width: 100%;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(66, 59, 56, .12);
    text-align: left;
  }
  .tabs__item:last-child .tabs__link { border-bottom: none; }

  .tabs__item--accent .tabs__link {
    text-align: center;
    border-bottom: none;
    margin-block: 4px;
  }

  .topbar__side {
    justify-content: center;
    padding-bottom: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(66, 59, 56, .12);
  }

  .paper { border-radius: 18px 18px 0 0; }

  .features__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .feature { max-width: 340px; margin-inline: auto; }

  .contact-item { grid-template-columns: 28px 1fr; }
  .contacts__actions { grid-template-columns: minmax(0, 1fr); }

  .booking-methods { grid-template-columns: minmax(0, 1fr); }
  .booking-method { max-width: 380px; margin-inline: auto; }
}

@media (max-width: 420px) {
  .hero__lead::first-letter { font-size: 2.2em; }
  .plaque__box { padding-inline: 14px; }
}

/* --- Печать ------------------------------------------------------------------ */
@media print {
  body { background: #fff; }
  .topbar, .modal, .footer { display: none; }
  .paper { border-radius: 0; }
}
