/* ==========================================================================
   «ДИНАСТИЯ» — ООО «СТАРЫЙ ГОРОД» (г. Юрьев-Польский, ул. Школьная, 18)
   Обновлённая чистая светлая дизайн-система
   ========================================================================== */

:root {
  --bg-white: #FFFFFF;
  --bg-page: #FAF9F6;
  --bg-soft: #F3F1EC;
  --bg-muted: #E8E5DD;

  --text-main: #181715;
  --text-secondary: #57544E;
  --text-muted: #87837B;

  --border-light: #E6E3DA;
  --border-strong: #D0CBC0;

  /* Основной фирменный тёплый терракотовый акцент (в тон dinastiya-33.ru) */
  --accent-rest: #8E412E;
  --accent-rest-hover: #733222;
  --accent-rest-soft: #F9EFEA;

  /* Спокойный сланцево-оливковый для раздела Гостиницы */
  --accent-hotel: #3B4942;
  --accent-hotel-soft: #EDF1EE;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-max: 1320px;
  --header-height: 82px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(24, 23, 21, 0.04);
  --shadow-md: 0 12px 32px -8px rgba(24, 23, 21, 0.08);
  --shadow-lg: 0 20px 44px -12px rgba(24, 23, 21, 0.12);

  --transition: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   ТИПОГРАФИКА И СЕКЦИИ
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

.eyebrow--rest {
  color: var(--accent-rest);
}

.eyebrow--hotel {
  color: var(--accent-hotel);
}

.h1, .h2, .h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--text-main);
}

.h1 {
  font-size: clamp(2.35rem, 4vw, 3.6rem);
}

.h2 {
  font-size: clamp(1.95rem, 3vw, 2.75rem);
}

.h3 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
}

.lead {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 60ch;
}

.section {
  padding: 76px 0;
}

.section--white {
  background-color: var(--bg-white);
}

.section--soft {
  background-color: var(--bg-soft);
}

.section--bordered {
  border-top: 1px solid var(--border-light);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* ==========================================================================
   ОБНОВЛЁННЫЕ КНОПКИ (КРАСИВЫЕ, ОБЪЁМНЫЕ, АККУРАТНЫЕ)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.2;
}

.btn--rest {
  background-color: var(--accent-rest);
  color: var(--bg-white);
  box-shadow: 0 4px 14px rgba(142, 65, 46, 0.22);
}

.btn--rest:hover {
  background-color: var(--accent-rest-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(142, 65, 46, 0.3);
}

.btn--max {
  background: linear-gradient(135deg, #2B66FF 0%, #5B2EFF 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(43, 102, 255, 0.28);
}

.btn--max:hover {
  background: linear-gradient(135deg, #1E56F0 0%, #4A1FE8 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(43, 102, 255, 0.38);
}

.btn--whatsapp {
  background-color: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
}

.btn--whatsapp:hover {
  background-color: #20bd5a;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.38);
}

.btn--dark {
  background-color: var(--text-main);
  color: var(--bg-white);
  box-shadow: 0 4px 12px rgba(24, 23, 21, 0.14);
}

.btn--dark:hover {
  background-color: #2E2C29;
  transform: translateY(-1px);
}

.btn--outline {
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  background-color: var(--bg-white);
}

.btn--outline:hover {
  border-color: var(--text-main);
  background-color: var(--bg-soft);
  transform: translateY(-1px);
}

.btn--ghost {
  background-color: var(--bg-soft);
  color: var(--text-main);
}

.btn--ghost:hover {
  background-color: var(--bg-muted);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.8125rem;
}

/* ==========================================================================
   ВЕРХНЯЯ ИНФО-СТРОКА И ШАПКА САЙТА
   ========================================================================== */

.topbar {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 7px 0;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar__item:hover {
  color: var(--text-main);
}

.topbar__divider {
  width: 1px;
  height: 12px;
  background-color: var(--border-light);
}

.topbar__soc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-soft);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-main);
}

.topbar__soc:hover {
  background-color: var(--bg-muted);
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-main);
}

.brand__sub {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Центральный переключатель разделов — аккуратная капсула */
.direction-switch {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-soft);
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  gap: 4px;
}

.direction-switch__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.direction-switch__link:hover {
  color: var(--text-main);
}

.direction-switch__link.is-active-main {
  background-color: var(--bg-white);
  color: var(--text-main);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.direction-switch__link.is-active-rest {
  background-color: var(--accent-rest);
  color: var(--bg-white);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(142, 65, 46, 0.25);
}

.direction-switch__link.is-active-hotel {
  background-color: var(--accent-hotel);
  color: var(--bg-white);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.switch-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background-color: rgba(24, 23, 21, 0.08);
  color: inherit;
}

.direction-switch__link.is-active-hotel .switch-tag {
  background-color: rgba(255, 255, 255, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}

.nav__link:hover {
  color: var(--text-main);
  background-color: var(--bg-soft);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-soft);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
}

.header__phone-btn:hover {
  background-color: var(--bg-muted);
}

/* ==========================================================================
   СПЛИТ-ЭКРАН НА ГЛАВНОЙ (КАФЕ-РЕСТОРАН | ГОСТИНИЦА В РАЗРАБОТКЕ)
   ========================================================================== */

.split-hero {
  padding: 36px 0 56px;
}

.split-hero__intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.split-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 3.6vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
}

.split-hero__meta {
  max-width: 460px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.split-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: stretch;
}

.split-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-light);
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.split-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.split-card__media {
  position: relative;
  height: 340px;
  overflow: hidden;
  background-color: var(--bg-soft);
}

.split-card__img {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.split-card:hover .split-card__img {
  transform: scale(1.03);
}

.split-card__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.split-card__badge--rest {
  color: var(--accent-rest);
}

.split-card__badge--hotel {
  color: var(--accent-hotel);
}

.split-card__status {
  position: absolute;
  bottom: 16px;
  left: 18px;
  background-color: rgba(24, 23, 21, 0.82);
  backdrop-filter: blur(6px);
  color: var(--bg-white);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
}

.split-card__body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.split-card__heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.split-card__title {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 600;
}

.split-card__price {
  font-size: 0.9375rem;
  color: var(--accent-rest);
  font-weight: 600;
}

.split-card__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.split-card__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 18px;
  background-color: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.split-feature__val {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.split-feature__lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.split-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Специальное оформление карточки «Гостиница — В разработке» */
.split-card--wip {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F2EC 100%);
  border: 1px dashed var(--border-strong);
}

.wip-banner {
  height: 220px;
  background-color: var(--accent-hotel-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.wip-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background-color: var(--bg-white);
  color: var(--accent-hotel);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.wip-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #D97706;
}

/* Полноэкранный блок «В разработке» для страницы hotel.html */
.wip-page-box {
  max-width: 720px;
  margin: 40px auto;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 56px 44px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   ПАНЕЛЬ БРОНИРОВАНИЯ СТОЛИКА
   ========================================================================== */

.booking-bar {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}

.quick-contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.quick-contact-bar__info {
  flex: 1 1 320px;
}

.quick-contact-bar__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-rest);
  margin-bottom: 4px;
}

.quick-contact-bar__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
  margin: 0 0 6px 0;
}

.quick-contact-bar__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.quick-contact-bar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .quick-contact-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .quick-contact-bar__actions {
    flex-direction: column;
    width: 100%;
  }
  .quick-contact-bar__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.booking-bar__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-field__input {
  width: 100%;
  padding: 12px 14px;
  background-color: var(--bg-page);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--text-main);
  transition: border-color var(--transition), background-color var(--transition);
}

.form-field__input:focus {
  outline: none;
  border-color: var(--accent-rest);
  background-color: var(--bg-white);
}

/* ==========================================================================
   МЕНЮ КАФЕ «ДИНАСТИЯ»
   ========================================================================== */

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 10px 18px;
  font-size: 0.84rem;
  font-weight: 500;
  border: 1px solid var(--border-light);
  background-color: var(--bg-white);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.filter-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-main);
}

.filter-pill--rest.is-active {
  background-color: var(--accent-rest);
  border-color: var(--accent-rest);
  color: var(--bg-white);
  box-shadow: 0 3px 10px rgba(142, 65, 46, 0.22);
}

.menu-category-block {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.menu-category-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--accent-rest);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 44px;
}

.menu-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-item__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.menu-item__title {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-main);
}

.menu-item__right {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.menu-item__weight {
  font-size: 0.78rem;
  color: var(--text-muted);
  background-color: var(--bg-soft);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.menu-item__price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-rest);
}

.menu-item__desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.menu-item__kbzhu {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Сканы оригинального меню */
.menu-scans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.menu-scan-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: block;
}

.menu-scan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.menu-scan-card__caption {
  padding: 12px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-white);
}

/* ==========================================================================
   ФОТОГАЛЕРЕЯ И ЗАЛЫ
   ========================================================================== */

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.photo-gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  height: 240px;
  background-color: var(--bg-soft);
  box-shadow: var(--shadow-sm);
}

.photo-gallery__item img {
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
}

.photo-gallery__item:hover img {
  transform: scale(1.04);
}

.halls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hall-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background-color: var(--bg-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hall-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hall-card__img {
  height: 230px;
  width: 100%;
}

.hall-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hall-card__cap {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-rest);
  margin-bottom: 6px;
}

.hall-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.hall-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

/* ==========================================================================
   КОНТАКТЫ И РЕКВИЗИТЫ
   ========================================================================== */

.info-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.contacts-card,
.calc-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contact-item__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contact-item__val {
  font-size: 1.02rem;
  font-weight: 600;
}

.contact-item__sub {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

.rules-list {
  border-top: 1px solid var(--border-light);
}

.rules-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.rules-row__label {
  color: var(--text-secondary);
}

.rules-row__val {
  font-weight: 500;
  text-align: right;
}

/* ==========================================================================
   ПОДВАЛ И МОДАЛЬНОЕ ОКНО
   ========================================================================== */

.footer {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-light);
  padding: 52px 0 32px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-light);
}

.footer__title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 14px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__links a:hover {
  color: var(--accent-rest);
}

.footer__legal {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.legal-doc {
  max-width: 860px;
  margin: 0 auto;
  background-color: var(--bg-white);
  padding: 44px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.legal-doc h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 28px 0 12px;
  color: var(--text-main);
}

.legal-doc p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(24, 23, 21, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  padding: 34px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.modal__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--text-main);
  color: var(--bg-white);
  padding: 15px 22px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 380px;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   АДАПТИВНОСТЬ
   ========================================================================== */

@media (max-width: 1080px) {
  .split-grid,
  .menu-layout,
  .info-split {
    grid-template-columns: 1fr;
  }

  .halls-grid,
  .menu-scans-grid,
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .booking-form {
    grid-template-columns: 1fr 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    display: none;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 52px 0;
  }

  .topbar__right {
    display: none;
  }

  .halls-grid,
  .menu-scans-grid,
  .photo-gallery,
  .booking-form,
  .contact-group,
  .footer__top,
  .modal__row,
  .split-card__features {
    grid-template-columns: 1fr;
  }

  .header__phone-btn {
    display: none;
  }
}
