@import url("https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&family=Raleway:wght@400;500;600;700&display=swap");

:root {
  /* Тёплый приятный бардовый */
  --wine: #8a4a52;
  --wine-deep: #6b383f;
  --wine-soft: #b87d85;
  --ink: #2e2e30;
  --muted: #6b6e76;
  --line: #e8e2e3;
  /* Очень лёгкий бардовый фон — еле заметный */
  --bg: #faf6f6;
  --bg-soft: #f5efef;
  --max: 1180px;
  --header-top: 78px;
  --header-nav: 52px;
  --sticky-booking-h: 110px;
}

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

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: "Jost", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main,
.page,
.page-home main {
  background: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

.wrap {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-top);
  padding: 10px 28px;
  background: #fff;
  color: var(--ink);
  border-bottom: 0;
}

.topbar__left,
.topbar__actions,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topbar__right {
  justify-content: flex-end;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.topbar__actions {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.logo img {
  height: 68px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: none !important;
  -webkit-filter: none !important;
}

.star-mark {
  display: inline-block;
  margin-left: 1px;
  color: #c9a227;
  font-size: 1.15em;
  line-height: 1;
  vertical-align: -0.05em;
}

.icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  background: var(--wine);
  flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(138, 74, 82, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.icon-btn--phone,
.icon-btn--social,
.icon-btn--menu {
  background: linear-gradient(145deg, #c47a82 0%, #8a4a52 100%);
}

.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(138, 74, 82, 0.28);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.menu-toggle svg,
.slider__btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn[aria-expanded="true"] {
  outline: 2px solid rgba(138, 74, 82, 0.28);
  outline-offset: 2px;
}

/* Phone panel — плавное цветное открытие (как на Дилижансе) */
.flyout {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1200;
  min-width: 250px;
  padding: 8px;
  text-align: left;
  color: var(--ink);
  background: linear-gradient(160deg, #fffaf9 0%, #f7efef 45%, #f0e6e7 100%);
  border: 1px solid rgba(138, 74, 82, 0.18);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(60, 30, 36, 0.16);
  transform-origin: top right;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    opacity 0.75s ease,
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.75s;
}

.flyout.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.flyout a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border-left: 4px solid #c47a82;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateY(10px);
  transition:
    background 0.3s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.7s ease;
}

.flyout.is-open a {
  opacity: 1;
  transform: translateY(0);
}

.flyout.is-open a:nth-child(1) {
  transition-delay: 0.12s;
  border-left-color: #c47a82;
}

.flyout.is-open a:nth-child(2) {
  transition-delay: 0.24s;
  border-left-color: #c47a82;
}

.flyout.is-open a:nth-child(3) {
  transition-delay: 0.36s;
  border-left-color: #c47a82;
}

.flyout a span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a6a70;
}

.flyout a:hover {
  background: #fff;
  color: var(--wine);
}

.flyout__label {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Social: иконки появляются вертикально, медленно и плавно */
.social-tray {
  display: flex;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1200;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform-origin: top center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition:
    opacity 0.8s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.8s;
}

.social-tray.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.social-tray a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 999px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 4px 14px rgba(20, 20, 30, 0.22);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.75s ease,
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-tray.is-open a {
  opacity: 1;
  transform: translateY(0);
}

.social-tray.is-open a:nth-child(1) {
  transition-delay: 0.1s;
}

.social-tray.is-open a:nth-child(2) {
  transition-delay: 0.22s;
}

.social-tray.is-open a:nth-child(3) {
  transition-delay: 0.34s;
}

.social-tray img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-block {
  margin: 0 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.content-block:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.content-block h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 600;
}

.content-block .slider {
  margin-bottom: 18px;
}

.feature-list {
  margin: 0 0 18px;
  padding-left: 18px;
  font-family: "Raleway", Verdana, sans-serif;
  line-height: 1.55;
}

.feature-list li {
  margin: 0 0 6px;
}

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

.nav {
  background: var(--wine);
  min-height: var(--header-nav);
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--header-nav);
  padding: 0 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__link:hover,
.nav__item.is-active > .nav__link,
.nav__item:focus-within > .nav__link {
  background: rgba(255, 255, 255, 0.12);
}

.nav__sub {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--wine-deep);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  z-index: 1100;
}

.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub,
.nav__item.is-open > .nav__sub {
  display: block;
}

.nav__sub a {
  display: block;
  padding: 10px 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.nav__sub a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle {
  display: none;
}

/* ========== PAGE ========== */
.page {
  padding: 18px 0 28px;
}

.crumbs {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.crumbs a:hover {
  color: var(--wine);
}

.page-title {
  margin: 0 0 14px;
  font-size: clamp(22px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  hyphens: auto;
}

.prose {
  font-family: "Raleway", Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 820px;
}

/* Внутренние страницы: текст на всю ширину контента (главную не трогаем) */
body:not(.page-home) .page .prose,
body:not(.page-home) .page .page-title,
body:not(.page-home) .page .crumbs,
body:not(.page-home) .page .feature-list,
body:not(.page-home) .page .content-block,
body:not(.page-home) .page .chef-quote,
body:not(.page-home) .page .contacts-grid {
  max-width: none;
  width: 100%;
}

.prose p {
  margin: 0 0 1em;
}

.prose a {
  color: var(--wine);
  text-decoration: underline;
}

/* ========== SLIDER: full photo inside, no crop / no stretch / no black bars ========== */
.slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 0 16px;
  overflow: hidden;
  background: transparent;
  transition: height 1.1s cubic-bezier(0.22, 0.7, 0.2, 1);
}

.slider__track {
  display: flex;
  align-items: flex-start;
  height: 100%;
  transition: transform 1.35s cubic-bezier(0.22, 0.7, 0.2, 1);
  will-change: transform;
}

.slider__slide {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  box-sizing: border-box;
}

.slider__slide img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  vertical-align: top;
}

.slider__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 16px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(36, 18, 22, 0.78) 70%);
  color: #fff;
  font-family: "Raleway", "Jost", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  pointer-events: none;
}

.slider__caption a {
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
}

.slider__caption a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .slider__caption {
    font-size: 14px;
    padding: 22px 12px 12px;
  }
}

/* Мобилка: кроссфейд 1.3s (без visibility — иначе iOS рвёт анимацию) */
@media (max-width: 979px) {
  .slider {
    transition: height 1.3s ease-in-out;
  }

  .slider__track {
    display: grid !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }

  .slider__slide {
    grid-area: 1 / 1;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: none !important;
    opacity: 0;
    transition: opacity 1.3s ease-in-out;
    pointer-events: none;
    z-index: 0;
  }

  .slider__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
  }
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(78, 18, 28, 0.55);
  border-radius: 50%;
  opacity: 0.92;
  z-index: 3;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.slider__btn:hover {
  background: rgba(78, 18, 28, 0.82);
  opacity: 1;
}

.slider__btn--prev {
  left: 10px;
}

.slider__btn--next {
  right: 10px;
}

.slider__btn svg {
  width: 22px;
  height: 22px;
}

/* Room mini-gallery (original-style thumbs under slider) */
.room-gallery {
  margin: 0 0 28px;
}

.room-gallery .slider {
  margin-bottom: 12px;
}

/* Desktop: фото номера под экран, не на весь скролл */
@media (min-width: 980px) {
  .room-gallery .slider {
    max-height: min(58vh, 520px);
    background: #f3f1f2;
  }

  .room-gallery .slider__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .room-gallery .slider__slide img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(58vh, 520px);
    margin: 0 auto;
    object-fit: contain;
  }

  /* Прочие слайдеры страниц (о нас / ресторан / услуги): целиком в кадр, без обрезки */
  .page .content-block .slider,
  .page > .wrap > .slider {
    max-height: min(68vh, 640px);
    background: #f3f1f2;
  }

  .page .content-block .slider__slide,
  .page > .wrap > .slider .slider__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .page .content-block .slider__slide img,
  .page > .wrap > .slider .slider__slide img {
    width: auto;
    max-width: 100%;
    max-height: min(68vh, 640px);
    height: auto;
    margin: 0 auto;
    object-fit: contain;
  }
}

/* Плавающая кнопка меню: образец нож+вилка, лёгкий выезд без лагов */
.restaurant-menu-fab {
  position: fixed;
  left: 0;
  top: 42%;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 96px;
  padding: 14px 10px 12px;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(155deg, #a86d74 0%, var(--wine) 48%, var(--wine-deep) 100%);
  border: 1px solid rgba(255, 245, 245, 0.28);
  border-left: 0;
  border-radius: 0 22px 22px 0;
  box-shadow: 0 8px 20px rgba(78, 18, 28, 0.26);
  transform: translate3d(-120%, -50%, 0);
  transition: transform 2.8s cubic-bezier(0.22, 0.8, 0.2, 1);
  will-change: transform;
  backface-visibility: hidden;
}

.restaurant-menu-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 245, 220, 0.55);
  opacity: 0;
  pointer-events: none;
}

.restaurant-menu-fab.is-in {
  transform: translate3d(0, -50%, 0);
}

.restaurant-menu-fab.is-in::after {
  animation: restaurant-menu-fab-flash 0.7s ease-out 2.7s both;
}

.restaurant-menu-fab.is-in .restaurant-menu-fab__mark {
  animation: restaurant-menu-fab-blink 5s ease-in-out 3s infinite;
}

.restaurant-menu-fab:hover {
  background: linear-gradient(155deg, #a86d74 0%, var(--wine-deep) 55%, #4a272c 100%);
  color: #fff !important;
}

.restaurant-menu-fab__mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.restaurant-menu-fab__mark img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(40, 10, 14, 0.25));
}

.restaurant-menu-fab__label {
  max-width: 100%;
  font-family: "Raleway", Verdana, sans-serif;
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  color: #fff7f5;
}

@keyframes restaurant-menu-fab-flash {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes restaurant-menu-fab-blink {
  0%,
  86%,
  100% {
    opacity: 1;
    filter: brightness(1);
    transform: scale(1);
  }
  90% {
    opacity: 1;
    filter: brightness(1.55);
    transform: scale(1.08);
  }
  94% {
    opacity: 0.55;
    filter: brightness(1.25);
    transform: scale(0.96);
  }
  97% {
    opacity: 1;
    filter: brightness(1.4);
    transform: scale(1.05);
  }
}

@media (max-width: 720px) {
  .restaurant-menu-fab {
    top: auto;
    bottom: 92px;
    width: 88px;
    padding: 12px 8px 10px;
    border-radius: 0 18px 18px 0;
    transform: translate3d(-120%, 0, 0);
  }

  .restaurant-menu-fab.is-in {
    transform: translate3d(0, 0, 0);
  }

  .restaurant-menu-fab__mark {
    width: 52px;
    height: 52px;
  }

  .restaurant-menu-fab__mark img {
    width: 46px;
    height: 46px;
  }
}

.gallery-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0;
  padding: 2px 2px 8px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.gallery-thumbs__item {
  width: 110px;
  height: 78px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-color: #1a1214;
  cursor: pointer;
  flex: 0 0 auto;
  scroll-snap-align: start;
  box-shadow: 0 2px 8px rgba(40, 16, 20, 0.12);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-thumbs__item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(40, 16, 20, 0.18);
}

.gallery-thumbs__item.is-active {
  border-color: var(--wine);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(12, 8, 10, 0.92);
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  color: #fff;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.lightbox__close {
  top: 16px;
  right: 16px;
  font-size: 32px;
}

.lightbox__prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 720px) {
  .gallery-thumbs__item {
    width: 96px;
    height: 68px;
  }
}

/* ========== BOOKING STRIP ========== */
.booking-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  margin: 0 0 36px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 24px rgba(40, 20, 24, 0.06);
}

.booking-strip--sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 12px max(16px, calc((100% - var(--max)) / 2));
  box-shadow: 0 -8px 28px rgba(40, 20, 24, 0.14);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
}

body.has-sticky-booking {
  padding-bottom: var(--sticky-booking-h);
}

.booking-strip label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.booking-strip input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.booking-strip__btn {
  height: 44px;
  padding: 0 28px;
  background: var(--wine);
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.booking-strip__btn:hover {
  background: var(--wine-deep);
}

@keyframes booking-find-pulse {
  0%,
  100% {
    box-shadow:
      0 2px 10px rgba(0, 0, 0, 0.22),
      0 0 0 0 rgba(168, 224, 108, 0);
  }
  50% {
    box-shadow:
      0 2px 10px rgba(0, 0, 0, 0.18),
      0 0 10px 1px rgba(168, 224, 108, 0.28);
    background: #dcefa0;
  }
}

.booking-strip--sticky .booking-strip__btn {
  animation: booking-find-pulse 3.6s ease-in-out infinite;
}

.booking-strip--sticky .booking-strip__btn:hover {
  animation: none;
}

/* ========== ROOMS LIST (simple, not cards grid hero) ========== */
.room-list {
  display: grid;
  gap: 18px;
  margin-bottom: 0;
}

.room-row {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.room-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.room-row img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.room-row h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
}

.room-row p {
  margin: 0 0 14px;
  font-family: "Raleway", Verdana, sans-serif;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  background: var(--wine);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
}

.btn:hover {
  background: var(--wine-deep);
}

.btn--ghost {
  background: transparent;
  color: var(--wine) !important;
  border: 1px solid var(--wine);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.contacts-grid h2 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contacts-grid a {
  color: var(--wine);
}

.map-block {
  margin-top: 28px;
  margin-bottom: 24px;
}

.map-embed-wrap {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.map-static {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}

.map-static img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-embed {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.map-caption {
  margin: 10px 0 0;
  font-size: 14px;
}

.map-caption a {
  color: var(--wine);
  font-weight: 600;
}

.policy-doc h2 {
  margin-top: 1.4em;
  font-size: 1.15rem;
}

.policy-doc ul {
  margin: 0.4em 0 1em;
  padding-left: 1.25em;
}

.policy-doc li {
  margin: 0.35em 0;
}

.afisha-link {
  margin: 0 0 22px;
}

.afisha-link a {
  font-size: 17px;
  font-weight: 600;
  color: var(--wine);
  text-decoration: none;
}

.afisha-link a:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 10px 0;
  font-size: 13px;
  color: var(--muted);
}

.site-footer > .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 18px;
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.site-footer > .wrap > p {
  margin: 0;
}

.page .wrap > .prose:last-child,
.page .wrap > .room-list:last-child,
.page .wrap > p:last-child,
.page .wrap > .chef-quote:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--wine);
}

.site-footer__rules {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 0;
  flex: 1 1 auto;
}

.site-footer__rules a {
  text-decoration: none;
  white-space: nowrap;
}

.site-footer__rules a:hover {
  text-decoration: underline;
}

.site-footer__meta {
  margin: 0;
  font-size: 12px;
}

.site-footer__credit {
  margin: 0;
}

.site-footer__credit a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
}

.site-footer__credit a:hover {
  color: var(--wine);
}

.site-footer__credit svg {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .site-footer {
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .site-footer > .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .site-footer__rules a {
    white-space: normal;
  }
}

.page-booking .page {
  padding-bottom: 48px;
  overflow: visible;
}

/* TravelLine: не резать галерею/стрелки iframe.
   Sticky-полоска и blur на /booking/ тормозят скролл и перекрывают карточки. */
body.page-booking {
  overflow-x: clip;
  overflow-y: auto;
  padding-bottom: 0 !important;
}

body.page-booking .booking-strip--sticky {
  display: none !important;
}

body.page-booking .site-footer {
  position: relative;
  z-index: 0;
  margin-top: 32px;
}

body.page-booking .wrap {
  overflow: visible;
}

.tl-booking,
#tl-booking-form {
  margin-top: 8px;
  margin-bottom: 24px;
  min-height: 720px;
  overflow: visible !important;
  position: relative;
  z-index: 1;
  pointer-events: auto !important;
  /* запас снизу: корзина/кнопки TL не упираются в подвал */
  padding-bottom: 16px;
}

.tl-booking iframe,
#tl-booking-form iframe {
  width: 100%;
  border: 0;
  pointer-events: auto !important;
  touch-action: manipulation;
  max-height: none !important;
}

#tl-booking-cart {
  pointer-events: none !important;
}

.nav-drawer {
  display: none;
}

/* ========== MOBILE ========== */
@media (max-width: 979px) {
  .wrap {
    width: min(100% - 32px, var(--max));
  }

  .topbar {
    min-height: 58px;
    padding: 8px 12px;
    background: #fff;
  }

  .topbar__left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .topbar__right {
    flex: 0 0 auto;
  }

  .topbar__actions {
    gap: 8px;
    display: flex !important;
    visibility: visible !important;
  }

  .logo img {
    height: 52px;
    max-width: 170px;
  }

  /* Keep white glyphs on colored buttons — wine-on-wine made icons invisible */
  .icon-btn {
    display: inline-flex !important;
    color: #fff !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .icon-wrap {
    display: inline-flex !important;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex !important;
  }

  .nav-drawer {
    display: block;
    background: var(--wine);
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    padding: 0;
    transform-origin: top center;
    transition:
      max-height 1.35s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 1.1s ease,
      visibility 1.1s,
      padding 1.1s ease;
  }

  .nav-drawer.is-open {
    max-height: 85vh;
    opacity: 1;
    visibility: visible;
    padding: 8px 0 16px;
    overflow-y: auto;
  }

  .nav-drawer .nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-drawer .nav__item--parent > .nav__sub {
    display: block;
  }

  .nav-drawer .nav__link {
    justify-content: flex-start;
    min-height: 48px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    transform: translateY(-12px);
    transition:
      opacity 0.85s ease,
      transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-drawer.is-open .nav__link {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-drawer.is-open .nav__item:nth-child(1) > .nav__link { transition-delay: 0.14s; }
  .nav-drawer.is-open .nav__item:nth-child(2) > .nav__link { transition-delay: 0.22s; }
  .nav-drawer.is-open .nav__item:nth-child(3) > .nav__link { transition-delay: 0.3s; }
  .nav-drawer.is-open .nav__item:nth-child(4) > .nav__link { transition-delay: 0.38s; }
  .nav-drawer.is-open .nav__item:nth-child(5) > .nav__link { transition-delay: 0.46s; }
  .nav-drawer.is-open .nav__item:nth-child(6) > .nav__link { transition-delay: 0.54s; }
  .nav-drawer.is-open .nav__item:nth-child(7) > .nav__link { transition-delay: 0.62s; }
  .nav-drawer.is-open .nav__item:nth-child(8) > .nav__link { transition-delay: 0.7s; }
  .nav-drawer.is-open .nav__item:nth-child(9) > .nav__link { transition-delay: 0.78s; }

  .nav-drawer .nav__sub {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.18);
  }

  .nav-drawer .nav__item.is-open > .nav__sub {
    display: block;
  }

  .nav-drawer .nav__sub a {
    padding: 10px 18px 10px 28px;
  }

  .booking-strip:not(.booking-strip--sticky) {
    grid-template-columns: 1fr 1fr;
  }

  .booking-strip:not(.booking-strip--sticky) .booking-strip__btn {
    grid-column: 1 / -1;
  }

  /* Sticky booking: one compact horizontal row */
  .booking-strip--sticky {
    display: flex;
    flex-wrap: nowrap;
    align-items: end;
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
  }

  .booking-strip--sticky > div {
    flex: 1 1 0;
    min-width: 0;
  }

  .booking-strip--sticky .booking-strip__btn {
    flex: 0 0 auto;
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .booking-strip--sticky label {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
    color: #5e353b;
    white-space: nowrap;
  }

  .booking-strip--sticky input {
    width: 100%;
    min-height: 36px;
    height: 36px;
    padding: 4px 4px;
    font-size: 12px;
  }

  body.has-sticky-booking {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .room-row {
    grid-template-columns: 1fr;
  }

  .room-row img {
    height: 200px;
  }

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

  .page-title {
    font-size: clamp(20px, 5.6vw, 24px);
    letter-spacing: 0.03em;
    margin-bottom: 16px;
  }
}

@media (max-width: 560px) {
  .booking-strip:not(.booking-strip--sticky) {
    grid-template-columns: 1fr;
  }

  .booking-strip--sticky {
    gap: 4px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px));
  }

  .booking-strip--sticky .booking-strip__btn {
    padding: 0 8px;
    font-size: 12px;
  }

  .booking-strip--sticky input {
    font-size: 11px;
    padding: 3px 2px;
  }

  body.has-sticky-booking {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
}

/* ========== HOME (Hampton-style landing) ========== */
.page-home .page {
  padding: 0;
}

.page-home .site-footer {
  margin-top: 0;
}

/* Sticky home header shell */
.page-home .site-header {
  position: sticky;
  top: 0;
  background: #fff;
}

/* Mobile home: solid site header, hero below it — без десктопных contain/100dvh */
@media (max-width: 979px) {
  .page-home .site-header {
    padding-top: env(safe-area-inset-top, 0px);
    background: #fff;
  }

  .page-home .topbar {
    background: #fff;
    color: var(--ink);
    border-bottom: 0;
  }

  .page-home .nav {
    background: var(--wine);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
  }

  .page-home .hero,
  .page-home .home-hero {
    margin-top: 0 !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    background: transparent !important;
  }

  .page-home .home-hero .hero__track,
  .page-home .home-hero .hero__slide,
  .page-home .home-hero .hero__media,
  .page-home .home-hero .hero__photo {
    height: auto !important;
  }

  .page-home .home-hero .hero__fill {
    display: none !important;
  }

  /*
    Мобилка: отдельный 3-слайдовый герой скрыт —
    фото «Почему…» становятся героем и синхронны с надписями
  */
  .page-home .home-hero {
    display: none !important;
  }

  .page-home .home-why__photos {
    display: grid !important;
    aspect-ratio: 16 / 10;
    min-height: 180px;
    max-height: min(38vh, 300px);
  }

  .page-home .home-why {
    margin-top: 0;
  }

  .page-home .home-why__slide img {
    object-position: center 28%;
  }

  /* бронь снизу fixed — не оставлять пустой зазор над героем */
  .page-home .booking-strip--sticky {
    position: fixed !important;
    margin: 0 !important;
  }

  .page-home .home-hero .hero__photo {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transform: scale(1.05);
    transition: transform 9s ease-out;
    will-change: transform;
  }

  .page-home .home-hero .hero__slide.is-active .hero__photo {
    transform: scale(1);
  }

  .page-home .home-hero .hero__slide--left .hero__photo {
    object-position: left center !important;
  }

  .page-home .hero__content {
    padding-top: 16px;
  }
}

.btn--light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--wine) !important;
}

.btn--light:hover {
  background: #fff;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.42em;
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.section-title::before {
  content: "";
  flex: 0 0 auto;
  width: 0.78em;
  height: 0.78em;
  background-color: var(--wine);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 17.2L3.8 9l1.7-1.7L12 13.8l6.5-6.5L20.2 9z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 17.2L3.8 9l1.7-1.7L12 13.8l6.5-6.5L20.2 9z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-animation: block-arrow-blink 2.4s ease-in-out infinite;
  animation: block-arrow-blink 2.4s ease-in-out infinite;
  transform-origin: center;
  will-change: transform, opacity;
}

@keyframes block-arrow-blink {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(4px);
  }
}

.section-title--center {
  justify-content: center;
  text-align: center;
  margin-bottom: 24px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head .section-title {
  margin: 0;
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wine);
  white-space: nowrap;
}

.section-link:hover {
  text-decoration: underline;
}

.hero {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  color: #fff;
  background: transparent;
}

.hero__track {
  position: relative;
  display: grid;
  width: 100%;
}

.hero__slide {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  margin: 0;
  opacity: 0;
  transition: opacity 2.6s ease-in-out;
  z-index: 0;
  pointer-events: none;
  will-change: opacity;
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.hero__slide picture,
.hero__media {
  display: block;
  width: 100%;
}

.hero__fill {
  display: none !important;
}

.hero__slide .hero__photo,
.hero__photo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__photo {
  transform: scale(1.05);
  transition: transform 9s ease-out;
  will-change: transform;
}

.hero__slide.is-active .hero__photo {
  transform: scale(1);
}

/*
  Desktop home only:
  — герой: 3 слайда строго друг на друге, каждый на весь блок
  — why: фото + «Почему…» в две колонки (не вторая полоса героя)
*/
@media (min-width: 980px) {
  /* Чуть компактнее шапка (лого — исходный размер, без сжатия) */
  .page-home {
    /* чуть компактнее topbar — меню чуть выше, между словами на герое */
    --header-top: 74px;
    --header-nav: 40px;
  }

  body.page-home {
    background: #1c1214;
  }

  .page-home .logo img {
    height: 68px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
  }

  .page-home .site-header {
    background: transparent;
  }

  .page-home .topbar {
    background: transparent;
    border-bottom: 0;
    color: #fff;
    padding-top: 3px;
    padding-bottom: 3px;
  }

  .page-home .nav {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
  }

  /* Меню читается поверх героя */
  .page-home .nav__link {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-shadow:
      0 1px 2px rgba(20, 6, 10, 0.9),
      0 0 14px rgba(20, 6, 10, 0.55);
  }

  .page-home .nav__link:hover,
  .page-home .nav__item.is-active > .nav__link,
  .page-home .nav__item:focus-within > .nav__link {
    color: #f5d78a;
    text-shadow:
      0 1px 2px rgba(20, 6, 10, 0.95),
      0 0 16px rgba(212, 164, 90, 0.45);
  }

  .page-home .topbar__actions .icon-btn {
    background: linear-gradient(145deg, #c47a82 0%, #8a4a52 100%);
    box-shadow: 0 4px 12px rgba(138, 74, 82, 0.35);
  }

  /* Герой на весь экран; sticky ниже — ок */
  .page-home .home-hero {
    position: relative;
    margin-top: calc(-1 * (var(--header-top) + var(--header-nav)));
    height: 100dvh;
    max-height: 100dvh;
    min-height: 480px;
    background: #1c1214;
    overflow: hidden;
  }

  /* Sticky брони — контрастная полоса, отделена от героя и why */
  .page-home .booking-strip--sticky {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 40;
    min-height: var(--sticky-booking-h);
    box-sizing: border-box;
    margin: 18px 0;
    border-top: 3px solid #d4a45a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background:
      linear-gradient(180deg, #6b2a34 0%, #4e181f 100%);
    box-shadow:
      0 10px 28px rgba(40, 10, 16, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: none;
  }

  .page-home .booking-strip--sticky label {
    color: rgba(255, 245, 240, 0.88);
  }

  .page-home .booking-strip--sticky input {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.96);
    color: #2a1216;
    font-weight: 600;
  }

  .page-home .booking-strip--sticky .booking-strip__btn {
    background: #d4a45a;
    color: #3a1518;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    animation: booking-find-pulse 3.6s ease-in-out infinite;
  }

  .page-home .booking-strip--sticky .booking-strip__btn:hover {
    background: #e4b86a;
    animation: none;
  }

  .page-home.has-sticky-booking {
    padding-bottom: 0;
  }

  .page-home .home-hero .hero__track {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }

  .page-home .home-hero .hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    grid-area: auto;
  }

  .page-home .home-hero .hero__fill {
    display: none !important;
  }

  .page-home .home-hero .hero__media {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .page-home .home-hero .hero__photo {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    transform: none !important;
    transition: none;
    will-change: auto;
  }

  .page-home .home-hero .hero__slide--facade .hero__photo {
    object-fit: cover;
    object-position: center 52%;
  }

  /* Ресепшен: кадр к верху фото → надпись на стене ниже лого в вьюпорте */
  .page-home .home-hero .hero__slide--left .hero__photo {
    object-fit: cover;
    object-position: left 18%;
  }

  .page-home .home-hero .hero__slide--center .hero__photo {
    object-fit: cover;
    object-position: center center;
  }

  /* Why: фото слева, текст справа — не полоса под героем */
  .page-home .home-why {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
    min-height: 420px;
  }

  .page-home .home-why__photos {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    min-height: 420px;
    max-height: none;
    aspect-ratio: auto;
    overflow: hidden;
    background: #1c1214;
  }

  .page-home .home-why__slide {
    position: absolute;
    inset: 0;
    grid-area: auto;
  }

  .page-home .home-why__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .page-home .home-why .home-reasons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 420px;
    padding-top: 28px;
    padding-bottom: 28px;
    margin: 0;
  }

  /* Бардовые блоки intro / restaurant / services — только десктоп */
  .page-home .home-band {
    overflow: hidden;
    padding: 36px 0;
    margin: 18px 0 0;
    color: #faf4f3;
    background:
      radial-gradient(ellipse 85% 65% at 14% 18%, rgba(210, 140, 128, 0.42), transparent 58%),
      radial-gradient(ellipse 75% 55% at 90% 82%, rgba(176, 110, 100, 0.38), transparent 52%),
      linear-gradient(145deg, #a87078 0%, #8f5a62 46%, #7a4a52 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  }

  .page-home .home-why + .home-band {
    margin-top: 18px;
  }

  .page-home .home-band + .home-band {
    margin-top: 18px;
  }

  .page-home .home-restaurant.home-band {
    background:
      radial-gradient(ellipse 80% 60% at 86% 20%, rgba(210, 140, 128, 0.36), transparent 58%),
      radial-gradient(ellipse 70% 50% at 12% 78%, rgba(160, 95, 90, 0.34), transparent 52%),
      linear-gradient(145deg, #966068 0%, #7f4e56 48%, #6c4048 100%);
  }

  .page-home .home-services.home-band {
    margin-bottom: 18px;
  }

  .page-home .home-band__glow {
    display: block;
    position: absolute;
    inset: -20% -10%;
    background:
      repeating-linear-gradient(
        -18deg,
        transparent 0,
        transparent 11px,
        rgba(255, 255, 255, 0.018) 11px,
        rgba(255, 255, 255, 0.018) 12px
      );
    pointer-events: none;
  }

  .page-home .home-band__rule {
    display: block;
    width: 56px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a45a, transparent);
  }

  .page-home .home-band__head--center {
    max-width: 40rem;
    margin: 0 auto 22px;
    text-align: center;
  }

  .page-home .home-band__head--center .home-band__rule {
    margin: 0 auto;
  }

  .page-home .home-band__title {
    display: block;
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: 0.03em;
  }

  .page-home .home-band__title::before {
    content: none;
  }

  .page-home .home-band__head--center .home-band__title {
    text-align: center;
  }

  .page-home .home-band .prose,
  .page-home .home-band .prose p {
    color: #fff;
    text-shadow: 0 1px 2px rgba(40, 10, 16, 0.22);
  }

  .page-home .home-band .btn {
    background: #fff;
    color: #6b2a34;
  }

  .page-home .home-band .btn:hover {
    background: #f5ebe8;
  }

  .page-home .home-band .btn--ghost {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.72);
  }

  .page-home .home-band .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
  }

  .page-home .home-intro__media,
  .page-home .home-restaurant__media {
    background: #2a1a1e;
    box-shadow: 0 12px 32px rgba(40, 10, 16, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .page-home .home-service-card {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .page-home .home-service-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 215, 138, 0.45);
    box-shadow:
      0 14px 28px rgba(40, 10, 16, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .page-home .home-service-card h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff;
  }

  .page-home .home-service-card p {
    color: rgba(255, 255, 255, 0.92);
  }

  .page-home .home-service-card__media {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    background: #2a1a1e;
  }
}

/* Мобилка: те же медленные переходы героя и карточек причин */
@media (max-width: 979px) {
  .hero__slide {
    transition: opacity 1.3s ease-in-out;
  }

  .hero__slide img {
    transition: transform 9s ease-out;
  }

  .reason-card {
    transition: opacity 1.3s ease, transform 1.3s ease;
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(40, 16, 20, 0.72) 0%,
    rgba(40, 16, 20, 0.38) 48%,
    rgba(40, 16, 20, 0.2) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 80px;
  padding-bottom: clamp(28px, 5vw, 56px);
}

.hero__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
}

.hero__lead {
  margin: 0 0 28px;
  max-width: 34rem;
  font-family: "Raleway", Verdana, sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  opacity: 0.95;
}

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

.home-intro,
.home-reasons,
.home-rooms,
.home-services,
.home-restaurant,
.home-contacts {
  padding: 28px 0;
}

/* Мобилка: светлые блоки как раньше; бардовый home-band — только ≥980px */
.home-band {
  position: relative;
  overflow: visible;
  margin: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
}

.home-band__glow,
.home-band__rule {
  display: none;
}

.home-band > .wrap {
  position: relative;
  z-index: 1;
}

.home-band__head {
  margin: 0 0 12px;
}

.home-band__head--center {
  margin: 0 0 16px;
  text-align: left;
}

.home-band__title {
  display: flex;
  align-items: center;
  gap: 0.42em;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.home-band__title::before {
  content: "";
  flex: 0 0 auto;
  width: 0.78em;
  height: 0.78em;
  background-color: var(--wine);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 17.2L3.8 9l1.7-1.7L12 13.8l6.5-6.5L20.2 9z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 17.2L3.8 9l1.7-1.7L12 13.8l6.5-6.5L20.2 9z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.home-band .prose,
.home-band .prose p {
  color: inherit;
  text-shadow: none;
}

.home-intro {
  background: #fff;
  padding-bottom: 10px;
}

.home-intro + .home-restaurant {
  padding-top: 10px;
}

.home-restaurant {
  background: #fff;
}

.home-services {
  background: var(--bg-soft);
}

.home-intro__grid,
.home-restaurant__grid,
.home-contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.home-intro__media,
.home-restaurant__media,
.home-service-card__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}

.home-intro__media {
  justify-self: end;
}

.home-restaurant__media {
  justify-self: start;
}

.home-service-card__media {
  max-width: none;
  aspect-ratio: 16 / 11;
}

.media-fade {
  position: absolute;
  inset: 0;
  display: grid;
}

.media-fade__slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}

.media-fade__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.media-fade__slide img,
.home-intro__media img,
.home-restaurant__media img,
.home-room-card__media img,
.home-service-card img,
.home-service-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-intro__media .media-fade__slide:first-child img {
  object-position: center 40%;
}

/* Ресепшен в блоке «Гостиница» — надпись на стене в кадре */
.home-intro__media .media-fade__slide:nth-child(2) img {
  object-position: left 18%;
}

.home-why {
  margin: 0;
}

.home-why__photos {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 220px;
  max-height: min(42vh, 480px);
  overflow: hidden;
  background: #2a1a1e;
}

.home-why__slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 1.15s ease;
  pointer-events: none;
}

.home-why__slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.home-why__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-reasons {
  position: relative;
  overflow: hidden;
  padding-top: 22px;
  padding-bottom: 22px;
  color: #faf4f3;
  background:
    radial-gradient(ellipse 85% 65% at 14% 18%, rgba(210, 140, 128, 0.42), transparent 58%),
    radial-gradient(ellipse 75% 55% at 90% 82%, rgba(176, 110, 100, 0.38), transparent 52%),
    linear-gradient(145deg, #a87078 0%, #8f5a62 46%, #7a4a52 100%);
}

.home-reasons__glow {
  position: absolute;
  inset: -20% -10%;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 11px,
      rgba(255, 255, 255, 0.018) 11px,
      rgba(255, 255, 255, 0.018) 12px
    );
  pointer-events: none;
}

.home-reasons .wrap {
  position: relative;
  z-index: 1;
}

.home-reasons__head {
  max-width: 40rem;
  margin: 0 auto 14px;
  text-align: center;
}

.home-reasons__title {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-align: center;
}

.home-reasons__rule {
  display: block;
  width: 56px;
  height: 2px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, #d4a45a, transparent);
}

.reasons-carousel {
  max-width: 520px;
  margin: 0 auto;
}

.reasons-carousel__viewport {
  position: relative;
  min-height: 0;
}

.reasons-carousel__track {
  position: relative;
}

.reason-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 20px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateX(22px);
  transition: opacity 1.15s ease, transform 1.15s ease, visibility 1.15s;
  pointer-events: none;
}

.reason-card.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.reason-card::before {
  content: none;
}

.reason-card__num {
  display: none;
}

.reason-card h3 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-align: center;
}

.reason-card p {
  margin: 0;
  max-width: 36em;
  font-family: "Raleway", Verdana, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(40, 10, 16, 0.28);
  -webkit-font-smoothing: antialiased;
}

.reason-card--stars .reason-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 12px;
}

.reason-stars__star {
  display: block;
  flex: 0 0 auto;
  fill: #f5c542;
  transform-origin: center;
  will-change: transform, opacity;
  -webkit-animation: reason-star-blink 1.6s ease-in-out infinite;
  animation: reason-star-blink 1.6s ease-in-out infinite;
  -webkit-animation-delay: calc(var(--i, 0) * 0.22s);
  animation-delay: calc(var(--i, 0) * 0.22s);
}

.reason-card.is-active .reason-stars__star {
  -webkit-animation-play-state: running;
  animation-play-state: running;
}

@keyframes reason-star-blink {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.88);
    filter: drop-shadow(0 0 2px rgba(245, 197, 66, 0.25));
  }
  40%,
  55% {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px rgba(245, 197, 66, 0.9));
  }
}

.home-rooms {
  background: #fff;
}

.home-room-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.home-room-card {
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-room-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}

.home-room-card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.home-room-card__body h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.home-room-card__body h3 a:hover {
  color: var(--wine);
}

.home-room-card__body p {
  margin: 0;
  font-family: "Raleway", Verdana, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  flex: 1;
}

.home-room-card .room-actions {
  margin-top: 6px;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.home-service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  color: inherit;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(40, 16, 20, 0.1);
}

.home-service-card__body {
  padding: 16px;
}

.home-service-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: inherit;
}

.home-service-card p {
  margin: 0;
  font-family: "Raleway", Verdana, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.home-service-card__media {
  max-width: none;
  aspect-ratio: 16 / 11;
}

.home-contacts {
  background: var(--bg-soft);
  padding-bottom: 48px;
}

.home-contacts__map {
  width: 100%;
  min-height: 320px;
  border: 0;
  background: #fff;
}

@media (max-width: 1100px) {
  .home-room-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .home-intro,
  .home-reasons,
  .home-rooms,
  .home-services,
  .home-restaurant,
  .home-contacts {
    padding: 22px 0;
  }

  .home-intro {
    padding-bottom: 8px;
  }

  .home-intro + .home-restaurant {
    padding-top: 8px;
  }

  .home-intro__grid,
  .home-restaurant__grid,
  .home-contacts__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-restaurant__grid {
    display: flex;
    flex-direction: column-reverse;
  }

  .hero__content {
    padding-bottom: 28px;
  }

  .home-reasons {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}

@media (max-width: 560px) {
  .home-room-grid,
  .home-service-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }
}

/* Chef quote on restaurant page */
.chef-quote {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 28px;
  align-items: center;
  margin: 16px 0 12px;
  padding: 0;
  border: 0;
}

.chef-quote__photo {
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-soft);
}

.chef-quote__photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

.chef-quote__text {
  margin: 0;
  padding: 0;
  border: 0;
}

.chef-quote__text p {
  margin: 0 0 14px;
  font-family: "Raleway", Verdana, sans-serif;
  font-size: clamp(17px, 2.2vw, 21px);
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
}

.chef-quote__text cite {
  display: block;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--wine);
}

@media (max-width: 720px) {
  .chef-quote {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 420px;
    margin-inline: auto;
  }

  .chef-quote__photo {
    max-width: 280px;
    margin-inline: auto;
  }

  .chef-quote__text {
    text-align: center;
  }
}

/* ========== COOKIE CONSENT ========== */
.cookie-consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 1200;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

body.has-sticky-booking .cookie-consent {
  bottom: calc(12px + var(--sticky-booking-h) + env(safe-area-inset-bottom, 0px));
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent.is-hiding {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.cookie-consent__inner {
  width: min(100%, 560px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(32, 28, 30, 0.96);
  color: #f4f0f0;
  box-shadow: 0 16px 40px rgba(20, 12, 14, 0.35);
  backdrop-filter: blur(10px);
}

.cookie-consent__copy {
  min-width: 0;
}

.cookie-consent__title {
  margin: 0 0 6px;
  font-family: "Raleway", "Jost", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}

.cookie-consent__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.cookie-consent__text a {
  color: #f0c8cc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__text a:hover {
  color: #fff;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-consent__btn {
  flex: 1 1 auto;
  min-width: 140px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-consent__btn--primary {
  background: var(--wine);
  color: #fff;
}

.cookie-consent__btn--primary:hover {
  background: var(--wine-soft);
}

.cookie-consent__btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.cookie-consent__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

.cookie-consent__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  body.has-sticky-booking .cookie-consent {
    bottom: calc(10px + var(--sticky-booking-h) + env(safe-area-inset-bottom, 0px));
  }

  .cookie-consent__inner {
    padding: 16px 14px 14px;
    border-radius: 14px;
    gap: 12px;
  }

  .cookie-consent__actions {
    flex-direction: column-reverse;
  }

  .cookie-consent__btn {
    width: 100%;
    min-width: 0;
  }

  .cookie-consent__title {
    font-size: 15px;
  }

  .cookie-consent__text {
    font-size: 12.5px;
  }
}
