/* header.css */

:root {
  --header-height: 120px;
}

.site-header {
  position: relative;
  z-index: 10;
  --header-side: var(--site-content-side);
  --header-width: var(--site-content-width);
  --header-gap: 24px;
  --header-logo-size: 44px;
  --header-nav-gap: 20px;
  --header-nav-link-padding: 10px;
  --header-nav-font-size: 16px;
  --header-nav-letter-spacing: 0.2em;
  --header-control-gap: 24px;
  --header-lang-gap: 18px;
  --header-lang-font-size: 16px;
  --header-lang-letter-spacing: 0.15em;
  --header-cta-height: 49px;
  --header-cta-padding: 32px;
  --header-cta-width: 199px;
  --header-cta-font-size: 12px;
  --header-cta-letter-spacing: 0.2em;
}

.site-header__inner {
  width: var(--header-width);
  min-height: var(--header-height);
  margin: 0 auto;
  padding: clamp(18px, 1.146vw, 22px) 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--header-gap);
}

.site-header__brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-header__brand-mark {
  width: var(--header-logo-size);
  flex: 0 0 var(--header-logo-size);
  aspect-ratio: 80.7314 / 71.9393;
  display: block;
  line-height: 0;
}

.site-header__brand-picture,
.site-header__brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.site-header__brand-mark img {
  object-fit: contain;
  filter: brightness(0) saturate(100%);
}

.site-header__menu {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--header-nav-gap);
  font-size: var(--header-nav-font-size);
}

.site-header__menu a {
  min-height: 36px;
  padding: 10px var(--header-nav-link-padding);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.site-header__controls {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: var(--header-control-gap);
}

.site-header__cta {
  width: var(--header-cta-width);
  min-height: var(--header-cta-height);
  padding: 0 var(--header-cta-padding);
  font-size: var(--header-cta-font-size);
  letter-spacing: var(--header-cta-letter-spacing);
  white-space: nowrap;
}

.site-header__cta-label--booking-mobile {
  display: none;
}

.site-header__mobile-toggle,
.site-mobile-menu {
  display: none;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  font-size: var(--header-lang-font-size);
  letter-spacing: var(--header-lang-letter-spacing);
  text-transform: uppercase;
}

.lang-switcher a {
  display: inline-flex;
  opacity: 0.72;
}

.lang-switcher a + a {
  margin-left: var(--header-lang-gap);
}

.lang-switcher a.is-active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.site-header--home {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  color: #f6f0e7;
  --header-gap: 36px;
  --header-logo-size: 81px;
  --header-nav-gap: 20px;
  --header-nav-link-padding: 10px;
  --header-nav-font-size: 16px;
  --header-nav-letter-spacing: 0.2em;
  --header-control-gap: 24px;
}

.site-header--home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 17, 0);
  transition:
    background-color 220ms ease,
    backdrop-filter 220ms ease;
}

.site-header--home.is-solid::before {
  background: rgba(20, 18, 17, 0.96);
  backdrop-filter: blur(12px);
}

:where(.site-header--home) .site-header__inner {
  position: relative;
  padding: 0;
}

:where(.site-header--home) .site-header__brand,
:where(.site-header--home) .site-header__menu a,
:where(.site-header--home) .lang-switcher a,
:where(.site-header--home) .site-header__brand-mark {
  color: #f6f0e7;
}

:where(.site-header--home) .site-header__brand-mark img {
  filter: none;
}

:where(.site-header--home) .site-header__brand-wordmark {
  display: none;
}

:where(.site-header--home) .site-header__brand {
  gap: 0;
}

:where(.site-header--home) .site-header__menu {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: var(--header-nav-letter-spacing);
  text-transform: uppercase;
}

:where(.site-header--home) .site-header__cta {
  background: transparent;
  border: 2px solid #c6c1a1;
  font-weight: 500;
}

:where(.site-header--home) .site-header__cta:hover {
  background: var(--button-light-hover-fill);
}

@media (min-width: 1025px) {
  .site-header--booking .site-header__cta-label--default,
  .site-header--booking-success .site-header__cta-label--default {
    display: inline;
  }

  .site-header--booking .site-header__cta-label--booking-mobile,
  .site-header--booking-success .site-header__cta-label--booking-mobile {
    display: none;
  }
}

@media (min-width: 1441px) {
  :root {
    --header-height: clamp(100px, calc(4.167vw + 40px), 120px);
    --site-content-side: clamp(39px, calc(143px - 5.417vw), 65px);
  }

  .site-header {
    --header-side: clamp(39px, calc(143px - 5.417vw), 65px);
    --header-gap: clamp(36px, calc(84px - 2.5vw), 48px);
    --header-logo-size: clamp(67px, calc(2.917vw + 25px), 81px);
    --header-nav-gap: clamp(2px, calc(3.75vw - 52px), 20px);
    --header-nav-font-size: clamp(14px, calc(0.417vw + 8px), 16px);
    --header-control-gap: clamp(24px, calc(88px - 3.333vw), 40px);
    --header-lang-gap: clamp(8px, calc(2.083vw - 22px), 18px);
    --header-lang-font-size: clamp(14px, calc(0.417vw + 8px), 16px);
    --header-cta-padding: clamp(24px, 1.667vw, 32px);
  }
}

@media (min-width: 1025px) and (max-width: 1440px) {
  :root {
    --header-height: 100px;
    --site-content-side: 40px;
    --site-content-width: min(1312px, calc(100vw - (var(--site-content-side) * 2)));
  }

  .site-header {
    --header-side: 65px;
    --header-gap: 48px;
    --header-logo-size: 67px;
    --header-nav-gap: 2px;
    --header-nav-link-padding: 6px;
    --header-nav-font-size: clamp(8px, calc(1.446vw - 6.82px), 14px);
    --header-control-gap: 40px;
    --header-lang-gap: 8px;
    --header-lang-font-size: clamp(8px, calc(1.446vw - 6.82px), 14px);
    --header-cta-padding: 24px;
  }
}

@media (min-width: 1180px) and (max-width: 1440px) {
  .site-header--home {
    --header-gap: clamp(20px, 3.333vw, 48px);
    --header-control-gap: clamp(20px, 2.778vw, 40px);
  }
}

/* Румынские пункты меню заметно длиннее («SALA DE CONFERINȚE»), из-за чего
   навигация налезала на переключатель языков. Ужимаем трекинг только для RO —
   RU/EN остаются с прежним letter-spacing 0.2em. */
@media (min-width: 1025px) {
  html[lang="ro"] .site-header {
    --header-nav-letter-spacing: 0.12em;
  }
}

@media (min-width: 1025px) {
  body:not(.home) .site-header--home {
    right: auto;
    width: calc(100vw - var(--page-scrollbar-gap));
  }

  body.has-scroll-lock-compensation .site-header--home {
    right: auto;
    width: calc(100vw - var(--modal-scrollbar-gap));
  }
}

@media (max-width: 1024px) {
  :root {
    --header-height: 60px;
  }

  body.is-mobile-menu-open {
    overflow: hidden;
  }

  .site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 300;
    color: #141414;
  }

  body.is-mobile-menu-open .site-header {
    z-index: 950;
  }

  .site-header--home::before {
    content: none;
  }

  .site-header__inner {
    width: 100%;
    min-height: 60px;
    height: 60px;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) minmax(0, min(200px, calc(100vw - 140px))) minmax(0, 1fr) 60px;
    align-items: stretch;
    gap: 0;
    background: #fffced;
    color: #141414;
  }

  .site-header__brand {
    width: 80px;
    height: 60px;
    justify-content: center;
    gap: 0;
  }

  .site-header__brand-mark {
    width: 80px;
    height: 60px;
    flex: 0 0 80px;
    aspect-ratio: auto;
  }

  .site-header__brand-mark img {
    filter: brightness(0) saturate(100%);
  }

  .site-header__brand-wordmark,
  .site-header__menu,
  .site-header__controls .lang-switcher {
    display: none;
  }

  .site-header__controls {
    width: 100%;
    height: 60px;
    display: block;
    grid-column: 3;
    justify-self: auto;
    margin: 0;
  }

  .site-header__cta {
    width: 100%;
    height: 60px;
    min-height: 60px;
    padding: 0 10px;
    gap: 8px;
    background: #fffced;
    border: 0;
    color: #000;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.8px;
  }

  .site-header__cta::after {
    content: "";
    width: 11px;
    height: 7px;
    flex: 0 0 11px;
    background: url("../images/figma/mobile-arrow-down-figma.svg") center / 10.7071px 6.06066px no-repeat;
  }

  .site-header__cta:hover,
  .site-header__cta:focus-visible {
    background: #fffced;
    color: #000;
  }

  .site-header__mobile-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    grid-column: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: #141414;
    transition: background-color 220ms ease;
    touch-action: manipulation;
  }

  .site-header__mobile-toggle span {
    width: 28px;
    height: 1px;
    display: block;
    background: #fff;
    transform-origin: center;
    transition:
      opacity 180ms ease,
      transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
      width 220ms ease;
    will-change: transform, opacity;
  }

  body.is-mobile-menu-open .site-header__mobile-toggle span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  body.is-mobile-menu-open .site-header__mobile-toggle span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  body.is-mobile-menu-open .site-header__mobile-toggle span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .site-mobile-menu:not([hidden]) {
    position: fixed;
    inset: 60px 0 0;
    z-index: 900;
    height: calc(100vh - 60px);
    padding-bottom: 89px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #141414;
    color: #fff;
    animation: mobile-menu-reveal 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @supports (height: 100dvh) {
    .site-mobile-menu:not([hidden]) {
      height: calc(100dvh - 60px);
    }
  }

  .site-mobile-menu__content {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 21px 0 24px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .site-mobile-menu:not([hidden]) .site-mobile-menu__content {
    animation: mobile-menu-content-reveal 360ms cubic-bezier(0.22, 1, 0.36, 1) 40ms both;
  }

  .site-mobile-menu:not([hidden]) .site-mobile-menu__bottom {
    animation: mobile-menu-bottom-reveal 360ms cubic-bezier(0.22, 1, 0.36, 1) 90ms both;
  }

  @keyframes mobile-menu-reveal {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes mobile-menu-content-reveal {
    from {
      opacity: 0;
      transform: translateY(-14px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes mobile-menu-bottom-reveal {
    from {
      opacity: 0;
      transform: translateY(16px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .site-mobile-menu__logo {
    width: 221px;
    height: 125px;
    display: block;
  }

  .site-mobile-menu__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .site-mobile-menu__languages .lang-switcher {
    display: inline-flex;
    padding: 10px;
    color: #fff;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: 2.8px;
  }

  .site-mobile-menu__languages .lang-switcher a {
    display: inline-flex;
    color: #fff;
    opacity: 1;
  }

  .site-mobile-menu__languages .lang-switcher a + a {
    margin-left: 16px;
  }

  .site-mobile-menu__languages .lang-switcher a.is-active {
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
  }

  .site-mobile-menu__nav {
    width: 163px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .site-mobile-menu__nav a {
    min-height: 36px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 2.8px;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .site-mobile-menu__bottom {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 902;
    height: 89px;
    padding: 24px 16px 20px;
    background: #141414;
  }

  .site-mobile-menu__contact {
    width: 100%;
    max-width: 343px;
    margin: 0 auto;
    height: 45px;
    border: 1px solid #c6c1a1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.8px;
    text-transform: uppercase;
  }

  .site-mobile-menu__contact img {
    width: 19px;
    height: 19px;
    filter: invert(1);
  }
}

@media (min-width: 375px) and (max-width: 1024px) {
  .site-header__inner {
    grid-template-columns: 80px 1fr 200px 1fr 60px;
  }

  .site-header__brand-mark {
    width: 80px;
    flex-basis: 80px;
  }

  .site-header__cta {
    width: 200px;
  }

  .site-header--booking .site-header__cta-label--default {
    display: none;
  }

  .site-header--booking .site-header__cta-label--booking-mobile {
    display: inline;
  }

  .site-header--booking-success .site-header__cta-label--default {
    display: inline;
  }

  .site-header--booking-success .site-header__cta-label--booking-mobile {
    display: none;
  }
}

@media (max-width: 374px) {
  .site-header__inner {
    grid-template-columns: 72px 1fr minmax(0, calc(100vw - 132px)) 1fr 60px;
  }

  .site-header__brand,
  .site-header__brand-mark {
    width: 72px;
    flex-basis: 72px;
  }

  .site-header__cta {
    font-size: 10px;
    letter-spacing: 1.4px;
  }
}

/* Tablet only: align the LOGO's visible crest to the page content gutter (32px on
   768-1023, 48px at 1024 where Номера/Услуги switch to centred desktop padding).
   The crest SVG has ~16px of built-in left padding inside its 80px box, and it uses
   preserveAspectRatio=none so object-position can't trim it — so the brand margin is
   (gutter − 16): 16px lands the crest at ~32, 32px lands it at ~48. Mobile (375-767)
   keeps no offset; the burger stays flush to the right edge throughout. */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-header__brand {
    margin-left: 16px;
  }
}

@media (min-width: 1024px) and (max-width: 1024px) {
  .site-header__brand {
    margin-left: 32px;
  }
}

/* Header responsive rules moved from responsive.css */
@media (min-width: 375px) and (max-width: 1179px) {
  .header-booking-modal .booking-widget__field.booking-widget__field--special {
    display: none;
  }

  .header-booking-modal__wine-banner {
    width: 100%;
    min-height: 120px;
    border: 1px solid #c6c1a1;
  }

  .header-booking-modal .booking-widget__field--currency .booking-widget__value::after {
    content: none;
  }

  .header-booking-modal__panel-close::before,
  .header-booking-modal__panel-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 1px;
    background: #000;
  }

  .header-booking-modal__panel-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .header-booking-modal__panel-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .header-booking-modal .booking-currency-dropdown__option + .booking-currency-dropdown__option {
    margin-top: 24px;
  }

  .header-booking-modal .booking-currency-dropdown__option[aria-selected="true"] {
    background: transparent;
  }

  .header-booking-modal:not([hidden]) {
    position: fixed;
    z-index: 350;
    display: block;
    background: #fffced;
    color: #000;
  }

  .header-booking-modal__form {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    border: 0;
    background: #fffced;
  }

  .header-booking-modal__fields {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .header-booking-modal__actions {
    width: 100%;
    display: flex;
  }

  .header-booking-modal .booking-widget__field {
    z-index: auto;
    border: 1px solid #c6c1a1;
    background: #fffced;
  }

  .header-booking-modal .booking-widget__field + .booking-widget__field {
    margin-top: -1px;
    border-left: 1px solid #c6c1a1;
  }

  /* the first field sits flush under the wine banner — overlap their adjacent
     1px borders so the seam reads as one line, not a doubled border */
  .header-booking-modal__wine-banner + .booking-widget__field {
    margin-top: -1px;
  }

  .header-booking-modal .booking-widget__label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.8px;
  }

  .header-booking-modal .booking-widget__value {
    font-family: var(--font-heading);
    white-space: nowrap;
  }

  .header-booking-modal .booking-widget__field::after {
    display: block;
    right: 24px;
    top: 50%;
    background: #000;
    mask: url("data:image/svg+xml,%3Csvg width='11' height='7' viewBox='0 0 11 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5.5 5.5L10 1' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E")
      center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg width='11' height='7' viewBox='0 0 11 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5.5 5.5L10 1' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E")
      center / contain no-repeat;
    transform: translateY(-50%);
  }

  .header-booking-modal .booking-widget__search {
    padding: 0;
    border: 0;
    display: block;
  }

  .header-booking-modal .booking-widget__button,
  .header-booking-modal__close-button,
  .header-booking-modal__panel-actions .button-primary,
  .header-booking-modal__panel-actions .button-secondary {
    font-size: 12px;
    letter-spacing: 1.8px;
  }

  .header-booking-modal__close-button {
    background: transparent;
    color: #000;
  }

  .header-booking-modal .header-booking-modal__panel:not([hidden]) {
    position: fixed;
    z-index: 800;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fffced;
    box-shadow: none;
  }

  .header-booking-modal__panel-close {
    z-index: 802;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .header-booking-modal__panel-title {
    font-family: var(--font-heading);
    font-weight: 400;
  }

  .header-booking-modal__panel-actions,
  .header-booking-modal .booking-guest-dropdown__actions {
    width: 100%;
    margin: 0;
    border-top: 1px solid #c6c1a1;
    background: #fffced;
  }

  .header-booking-modal .booking-dropdown--calendar::before {
    content: none;
  }

  .header-booking-modal .booking-dropdown--calendar .booking-calendar {
    width: 100%;
    min-height: 0;
    margin: 0;
    border: 1px solid #c6c1a1;
  }

  .header-booking-modal .booking-calendar__header {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
  }

  .header-booking-modal .booking-calendar__grid {
    gap: 0;
  }

  .header-booking-modal .booking-calendar__day {
    font-family: var(--font-heading);
    font-size: 15px;
    line-height: 1;
  }

  .header-booking-modal .booking-currency-dropdown__option {
    padding: 0;
    font-family: var(--font-heading);
  }
}

@media (min-width: 375px) and (max-width: 767px) {
  body.is-header-booking-open {
    overflow: hidden;
  }

  .header-booking-modal:not([hidden]) {
    inset: 60px 0 auto;
    height: auto;
    max-height: calc(100vh - 60px);
    overflow-y: visible;
  }

  @supports (height: 100dvh) {
    .header-booking-modal:not([hidden]) {
      max-height: calc(100dvh - 60px);
    }
  }

  .header-booking-modal__form {
    min-height: 0;
    height: auto;
    padding: 24px 16px;
    gap: 24px;
    justify-content: flex-start;
  }

  @supports (height: 100dvh) {
    .header-booking-modal__form {
      min-height: 0;
    }
  }

  .header-booking-modal__fields,
  .header-booking-modal__actions {
    flex-direction: column;
  }

  .header-booking-modal__actions {
    gap: 8px;
  }

  .header-booking-modal__wine-banner {
    flex: 0 0 126px;
    height: 126px;
    min-height: 126px;
  }

  .header-booking-modal .booking-widget__field {
    min-height: 65px;
    height: 65px;
    display: block;
  }

  .header-booking-modal .booking-widget__field.has-value {
    min-height: 65px;
    height: 65px;
  }

  .header-booking-modal .booking-widget__toggle {
    min-height: 65px;
    height: 65px;
    padding: 16px 44px 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .header-booking-modal .booking-widget__field.has-value .booking-widget__toggle {
    min-height: 65px;
    height: 65px;
    justify-content: center;
  }

  .header-booking-modal .booking-widget__label {
    margin: 0;
    line-height: 12px;
  }

  .header-booking-modal .booking-widget__value {
    display: none;
    margin-top: 4px;
    font-size: 14px;
    line-height: 17px;
  }

  .header-booking-modal .booking-widget__field.has-value .booking-widget__value {
    display: block;
  }

  .header-booking-modal .booking-widget__field--currency .booking-widget__value {
    font-size: 14px;
    line-height: 25px;
  }

  .header-booking-modal .booking-widget__field::after {
    width: 11px;
    height: 7px;
    mask: url("../images/figma/mobile-arrow-down-figma.svg") center / contain no-repeat;
    -webkit-mask: url("../images/figma/mobile-arrow-down-figma.svg") center / contain no-repeat;
  }

  .header-booking-modal .booking-widget__search {
    min-height: 45px;
  }

  .header-booking-modal .booking-widget__button,
  .header-booking-modal__close-button,
  .header-booking-modal__panel-actions .button-primary,
  .header-booking-modal__panel-actions .button-secondary {
    width: 100%;
    min-height: 45px;
    height: 45px;
    padding: 0 32px;
  }

  .header-booking-modal .booking-widget__button:disabled {
    opacity: 1;
    background: #c2c2c2;
    border-color: #c2c2c2;
    color: #fff;
  }

  .header-booking-modal__close-button {
    border-color: #c6c1a1;
  }

  .header-booking-modal .header-booking-modal__panel:not([hidden]) {
    inset: 0;
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    height: 100vh;
    min-height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .header-booking-modal .header-booking-modal__panel:not([hidden])::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  @supports (height: 100dvh) {
    .header-booking-modal .header-booking-modal__panel:not([hidden]) {
      height: 100dvh;
      min-height: 100dvh;
    }
  }

  .header-booking-modal__panel-close {
    position: fixed;
    top: 18px;
    right: 18px;
  }

  .header-booking-modal__panel-content {
    padding: 116px 16px 170px;
  }

  /* Pinned panel header (Figma 1685:10435): the title stays fixed while the
     list scrolls underneath it; the opaque background hides passing content. */
  .header-booking-modal__panel-title {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 801;
    margin: 0;
    padding: 52px 16px 18px;
    background: #fffced;
    font-size: 28px;
    line-height: 28px;
  }

  .header-booking-modal__panel-actions,
  .header-booking-modal .booking-guest-dropdown__actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 802;
    min-height: 92px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* Figma 1685:10435/10293: the dark apply button sits above the outline cancel. */
  .header-booking-modal__panel-actions .button-primary {
    order: -1;
  }

  /* Mobile guests panel content (Figma 1685:10435): room list scrolls as one
     column; the add-room link and the phone hint are plain left-aligned text. */
  .header-booking-modal .booking-room-guests__head {
    padding: 0 0 16px;
  }

  .header-booking-modal .booking-room-guests__remove {
    display: inline-flex;
    gap: 4px;
    text-decoration: none;
  }

  .header-booking-modal .booking-room-guests__room {
    padding-bottom: 28px;
  }

  .header-booking-modal .booking-room-guests__room + .booking-room-guests__room {
    padding-top: 28px;
  }

  .header-booking-modal .booking-room-guests__add {
    min-height: 0;
    margin-top: 4px;
    padding: 0;
    border: 0;
    display: inline-flex;
    justify-content: flex-start;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: underline;
    text-decoration-skip-ink: auto;
    text-underline-offset: 5px;
  }

  .header-booking-modal .booking-room-guests__add span {
    display: none;
  }

  .header-booking-modal .booking-room-guests__add[hidden] {
    display: none;
  }

  .header-booking-modal .booking-room-guests__limit {
    margin: 0;
    padding: 14px 0 0;
    border: 0;
    font-size: 12px;
    font-style: italic;
    line-height: 1.4;
    text-align: left;
  }

  .header-booking-modal .booking-room-guests__limit a {
    display: inline;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: normal;
    text-decoration: underline;
    white-space: nowrap;
  }

  .header-booking-modal .booking-dropdown--calendar .booking-calendar {
    height: auto;
    display: block;
  }

  .header-booking-modal .booking-calendar__month + .booking-calendar__month {
    content: none;
    border: 0;
  }

  .header-booking-modal .booking-dropdown--calendar [data-booking-month] + [data-booking-month] {
    display: none;
  }

  .header-booking-modal
    .booking-dropdown--calendar
    [data-booking-month]:first-child
    .booking-calendar__nav-placeholder {
    display: none;
  }

  .header-booking-modal .booking-dropdown--calendar .booking-calendar__nav--mobile-next {
    display: inline-grid;
  }

  .header-booking-modal .booking-calendar__month {
    min-height: 0;
    padding: 24px 24px 28px;
  }

  .header-booking-modal .booking-calendar__header {
    margin-bottom: 25px;
    line-height: 23px;
  }

  .header-booking-modal .booking-calendar__day {
    min-height: 41px;
  }

  .header-booking-modal .booking-currency-dropdown__option {
    min-height: 24px;
    font-size: 18px;
    line-height: 24px;
  }

  .header-booking-modal .booking-currency-dropdown__option:hover,
  .header-booking-modal .booking-currency-dropdown__option:focus-visible {
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .header-booking-modal .booking-currency-dropdown__option[aria-selected="true"] {
    text-decoration: none;
  }

  .header-booking-modal .booking-special-dropdown__field {
    min-height: 65px;
    font-size: 18px;
  }

  .header-booking-modal .booking-special-dropdown__field + .booking-special-dropdown__field {
    margin-top: 16px;
  }

  .header-booking-modal .booking-special-dropdown__field input {
    height: 65px;
    padding-top: 22px;
  }
}

@media (min-width: 768px) and (max-width: 1179px) {
  .header-booking-modal:not([hidden]) {
    --header-booking-side: clamp(32px, 4.688vw, 48px);
    inset: 60px 0 auto;
    width: 100%;
    height: min(422px, calc(100vh - 60px));
    max-height: 422px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(20, 20, 20, 0.12);
  }

  @supports (height: 100dvh) {
    .header-booking-modal:not([hidden]) {
      height: min(422px, calc(100dvh - 60px));
    }
  }

  .header-booking-modal__form {
    min-height: 0;
    height: 100%;
    padding: 24px var(--header-booking-side);
    gap: 16px;
  }

  .header-booking-modal__fields {
    min-height: 0;
    flex: 1 1 auto;
  }

  .header-booking-modal__wine-banner {
    flex: 0 0 120px;
    min-height: 120px;
  }

  .header-booking-modal__actions {
    height: 45px;
    flex: 0 0 45px;
    align-items: stretch;
    gap: 24px;
  }

  .header-booking-modal .booking-widget__field {
    min-height: 0;
    height: auto;
    flex: 1 1 0;
  }

  .header-booking-modal .booking-widget__toggle {
    min-height: 0;
    height: 100%;
    padding: 15px 40px 15px 24px;
    display: grid;
    align-content: center;
    justify-items: start;
  }

  .header-booking-modal .booking-widget__label {
    margin: 0 0 7px;
    line-height: 1.35;
  }

  .header-booking-modal .booking-widget__value {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #040404;
    font-size: clamp(14px, 1.758vw, 18px);
    line-height: 1.35;
    text-overflow: ellipsis;
  }

  .header-booking-modal .booking-widget__field--currency .booking-widget__value {
    font-size: clamp(14px, 1.758vw, 18px);
    line-height: 1.35;
  }

  .header-booking-modal .booking-widget__field::after {
    width: 10px;
    height: 5px;
    mask: url("../images/figma/mobile-arrow-down-figma.svg") center / contain no-repeat;
    -webkit-mask: url("../images/figma/mobile-arrow-down-figma.svg") center / contain no-repeat;
  }

  .header-booking-modal .booking-widget__search {
    min-height: 0;
    height: 100%;
    flex: 1 1 0;
    order: 2;
  }

  .header-booking-modal .booking-widget__button {
    width: 100%;
    min-height: 0;
    height: 100%;
    padding: 0 16px;
  }

  .header-booking-modal__close-button {
    display: inline-flex;
    flex: 1 1 0;
    order: 1;
    min-height: 0;
    height: 100%;
    padding: 0 16px;
    align-items: center;
    justify-content: center;
    border: 1px solid #c6c1a1;
    font-weight: 500;
    line-height: normal;
  }

  .header-booking-modal .header-booking-modal__panel:not([hidden]) {
    inset: 60px 0 0;
    width: 100vw;
    min-width: 0;
    max-width: none;
    height: calc(100vh - 60px);
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }

  @supports (height: 100dvh) {
    .header-booking-modal .header-booking-modal__panel:not([hidden]) {
      height: calc(100dvh - 60px);
    }
  }

  .header-booking-modal__panel-close {
    position: absolute;
    top: 30px;
    right: var(--header-booking-side);
    display: block;
  }

  .header-booking-modal__panel-content {
    height: calc(100% - 69px);
    padding: 32px var(--header-booking-side) 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .header-booking-modal__panel-title {
    margin: 0;
    font-size: 32px;
    line-height: 1;
  }

  .header-booking-modal__panel-actions,
  .header-booking-modal .booking-guest-dropdown__actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 802;
    min-height: 0;
    height: 69px;
    padding: 12px var(--header-booking-side);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .header-booking-modal__panel-actions .button-primary,
  .header-booking-modal__panel-actions .button-secondary {
    width: 100%;
    min-height: 45px;
    height: 45px;
    padding: 0 24px;
  }

  .header-booking-modal .booking-dropdown--currency .header-booking-modal__panel-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-booking-modal .booking-dropdown--calendar .booking-calendar {
    height: 100%;
    max-height: 249px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 1 1 auto;
    overflow: hidden;
  }

  .header-booking-modal .booking-dropdown--calendar [data-booking-month] {
    min-height: 0;
    height: 100%;
    padding: 18px 22px 14px;
    border: 0;
  }

  .header-booking-modal .booking-dropdown--calendar [data-booking-month] + [data-booking-month] {
    display: block;
    border-top: 0;
    border-left: 1px solid #c6c1a1;
  }

  .header-booking-modal .booking-dropdown--calendar .booking-calendar__nav--mobile-next {
    display: none;
  }

  .header-booking-modal .booking-dropdown--calendar .booking-calendar__nav-placeholder {
    display: inline-grid;
  }

  .header-booking-modal .booking-calendar__header {
    margin-bottom: 12px;
    line-height: 1.5;
  }

  .header-booking-modal .booking-calendar__day {
    min-height: 26px;
  }

  .header-booking-modal .booking-currency-dropdown__option {
    min-height: 28px;
    font-size: 22px;
    line-height: 28px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .header-booking-modal .booking-dropdown--calendar .booking-calendar {
    height: 389px;
    max-height: 389px;
  }

  .header-booking-modal .booking-dropdown--calendar [data-booking-month] {
    height: 389px;
    padding: 24px 24px 0;
  }

  .header-booking-modal
    .booking-dropdown--calendar
    [data-booking-month]:first-child
    .booking-calendar__nav-placeholder {
    display: none;
  }

  .header-booking-modal .booking-dropdown--calendar .booking-calendar__nav--mobile-next {
    display: inline-grid;
  }

  .header-booking-modal .booking-calendar__header {
    margin-bottom: 46px;
    line-height: 23px;
  }

  .header-booking-modal .booking-calendar__day {
    min-height: 41px;
  }

  .header-booking-modal__panel-content {
    height: calc(100% - 92px);
    padding: 72px var(--header-booking-side) 0;
    gap: 48px;
  }

  .header-booking-modal__panel-title {
    line-height: 28px;
  }

  .header-booking-modal__panel-close {
    top: 24px;
  }

  .header-booking-modal__panel-actions,
  .header-booking-modal .booking-guest-dropdown__actions {
    height: 92px;
    padding: 24px var(--header-booking-side);
  }

  .header-booking-modal .booking-dropdown--calendar .booking-calendar {
    flex: 0 0 389px;
  }
}

@media (min-width: 600px) and (max-width: 932px) and (max-height: 480px) and (orientation: landscape) {
  .header-booking-modal .header-booking-modal__panel:not([hidden]) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .header-booking-modal__panel-close {
    position: fixed;
  }

  .header-booking-modal__panel-content {
    height: auto;
    min-height: 0;
    flex: 1 1 auto;
    padding-bottom: 24px;
    overflow-y: auto;
  }

  .header-booking-modal__panel-actions,
  .header-booking-modal .booking-guest-dropdown__actions {
    position: static;
    flex: 0 0 auto;
  }

  .header-booking-modal .booking-dropdown--calendar .booking-calendar {
    height: auto;
    max-height: none;
  }

  .header-booking-modal .booking-dropdown--calendar [data-booking-month] {
    height: auto;
  }
}

@media (min-width: 375px) and (max-width: 479px) {
  .header-booking-modal__wine-banner {
    --wine-banner-copy-left: 30px;
    --wine-banner-title-size: 30px;
    --wine-banner-title-line: 30px;
    --wine-banner-amp-size: 62px;
    --wine-banner-amp-line: 62px;
    --wine-banner-ru-sub-offset: 81px;

    flex-basis: 126px;
    min-height: 126px;
  }

  .header-booking-modal__wine-banner .wine-gift-banner__copy--en {
    gap: 10px;
  }
}

@media (min-width: 375px) and (max-width: 1179px) {
  .header-booking-modal__wine-banner {
    border: 0;
  }

  /* The banner is a full-bleed image here (no border of its own), so the field
     below it must not add a top border — otherwise the image edge plus that 1px
     line read as a doubled border. Let the banner flow straight into the field. */
  .header-booking-modal__wine-banner + .booking-widget__field {
    margin-top: 0;
    border-top: 0;
  }
}
