/* modals.css */

.is-modal-open {
  overflow: hidden;
}

.service-zoom-modal,
.service-price-modal {
  position: fixed;
  inset: 0;
  /* No double-tap-to-zoom anywhere inside the modal: without this, iOS holds
     back the click on a quick SECOND tap (arrow-arrow-arrow browsing) to see if
     it is a zoom gesture — the arrows only responded every other tap. Restrictions
     cascade down, so one rule on the root covers buttons, image and backdrop;
     the rooms viewer's own touch-action: none on its image is a subset and wins. */
  touch-action: manipulation;
}

.service-zoom-modal[hidden],
.service-price-modal[hidden] {
  display: none;
}

.service-zoom-modal {
  --zoom-control-gap: 25px;
  --zoom-control-size: 49px;
  --button-circle-size: var(--zoom-control-size);
  --zoom-image-width: min(1570px, calc(100vw - 350px));
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(29, 29, 29, 0.8);
}

.service-zoom-modal__stage {
  position: relative;
  display: grid;
  grid-template-columns:
    var(--zoom-control-size) var(--zoom-control-gap) var(--zoom-image-width) var(--zoom-control-gap)
    var(--zoom-control-size);
  align-items: center;
}

.service-zoom-modal__figure {
  grid-column: 3;
  grid-row: 1;
  width: var(--zoom-image-width);
  aspect-ratio: 1570 / 1009;
  margin: 0;
}

.service-zoom-modal__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Home "Номера" fullscreen viewer: a fully opaque dark backdrop that covers the
   whole screen (incl. the fixed header, z-index 300 on mobile) so the photo reads
   on solid dark, with the close button pinned to the top-right of the screen. */
.service-zoom-modal--rooms {
  z-index: 1000;
  background: #1d1d1d;
}

.service-zoom-modal--rooms .service-zoom-modal__close {
  position: fixed;
  top: 16px;
  right: 16px;
}

/* Home "Номера" fullscreen viewer: show the whole photo (room shots vary in
   aspect, so contain instead of cropping) and use more of the screen. */
.service-zoom-modal--rooms .service-zoom-modal__figure {
  aspect-ratio: auto;
  height: min(82vh, calc(var(--zoom-image-width) * 0.66));
}

.service-zoom-modal--rooms .service-zoom-modal__image {
  object-fit: contain;
  cursor: zoom-in;
  touch-action: none;
}

.service-zoom-modal--rooms.is-zoomed .service-zoom-modal__image {
  cursor: zoom-out;
}

.service-zoom-modal__close,
.service-price-modal__close,
.contact-modal__close {
  border: 0;
  background: transparent;
  font-size: 0;
}

.service-zoom-modal__close:hover,
.service-zoom-modal__close:focus-visible,
.service-price-modal__close:hover,
.service-price-modal__close:focus-visible,
.contact-modal__close:hover,
.contact-modal__close:focus-visible {
  background: transparent;
}

.service-zoom-modal__close::before,
.service-zoom-modal__close::after,
.service-price-modal__close::before,
.service-price-modal__close::after,
.contact-modal__close::before,
.contact-modal__close::after {
  content: "";
  position: absolute;
  top: var(--modal-close-line-top);
  left: var(--modal-close-line-left);
  width: var(--modal-close-line-width);
  height: var(--modal-close-line-height, 1.5px);
  background: var(--modal-close-line-color);
}

.service-zoom-modal__close::before,
.service-price-modal__close::before,
.contact-modal__close::before {
  transform: rotate(45deg);
}

.service-zoom-modal__close::after,
.service-price-modal__close::after,
.contact-modal__close::after {
  transform: rotate(-45deg);
}

.service-zoom-modal__close {
  --modal-close-line-top: 18px;
  --modal-close-line-left: 8px;
  --modal-close-line-width: 22px;
  --modal-close-line-color: #fff;
  /* pinned to the top-right corner of the screen (like the "Номера" viewer),
     not floated above the photo. The --rooms variant overrides with 16px. */
  position: fixed;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  z-index: 2;
}

.service-zoom-modal__nav {
  z-index: 2;
}

.service-zoom-modal__nav--prev {
  grid-column: 1;
  grid-row: 1;
}

.service-zoom-modal__nav--next {
  grid-column: 5;
  grid-row: 1;
}

.service-zoom-modal__close:hover,
.service-zoom-modal__close:focus-visible {
  opacity: 0.72;
}

.service-price-modal {
  z-index: 800;
  display: flex;
  justify-content: flex-end;
  background: rgba(29, 29, 29, 0.4);
}

.service-price-modal__panel {
  width: min(640px, 100vw);
  height: 100dvh;
  overflow-y: auto;
  background: #fffced;
  color: #000;
}

.service-price-modal__content {
  width: min(562px, calc(100% - 78px));
  min-height: 100%;
  margin: 0 auto;
  padding: 48px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 47px;
}

.service-price-modal__top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-price-modal__language {
  gap: 18px;
  color: #000;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.45;
}

.service-price-modal__language a {
  color: inherit;
  opacity: 1;
}

.service-price-modal__language a.is-active {
  text-underline-offset: 5px;
}

.service-price-modal__close {
  --modal-close-line-top: 13px;
  --modal-close-line-left: 5px;
  --modal-close-line-width: 18px;
  --modal-close-line-color: #040404;
  position: relative;
  width: 28px;
  height: 28px;
}

/* Restaurant's mark, and the shared base. The marks are flat silhouettes, so the
   colour lives here rather than in a set of near-identical recoloured files: mask
   the shape, then paint it. That also lets the conference modal reuse the footer's
   two-tone file and still come out in a single colour, per Figma 1738:167. */
.service-price-modal__logo {
  display: block;
  width: min(270px, 100%);
  aspect-ratio: 270 / 164;
  background-color: #af6c37;
  -webkit-mask: url("../images/figma/nobil-restaurant-mark-figma.svg") center / contain no-repeat;
  mask: url("../images/figma/nobil-restaurant-mark-figma.svg") center / contain no-repeat;
}

/* Each service shows its own mark at its own size. Widths come from Figma
   1738:167, whose mock-ups are 2x screenshots — the sizes there halve to these.
   Ratios come from each file's viewBox so the mark keeps its proportions. */
.service-price-modal--spa .service-price-modal__logo {
  width: min(178px, 100%);
  aspect-ratio: 221.662 / 160.498;
  -webkit-mask-image: url("../images/figma/spa-logo-figma.svg");
  mask-image: url("../images/figma/spa-logo-figma.svg");
}

.service-price-modal--dessange .service-price-modal__logo {
  width: min(194px, 100%);
  aspect-ratio: 195.001 / 160.002;
  background-color: #000;
  -webkit-mask-image: url("../images/figma/dessange-logo-figma.svg");
  mask-image: url("../images/figma/dessange-logo-figma.svg");
}

.service-price-modal--conference .service-price-modal__logo {
  width: min(402px, 100%);
  aspect-ratio: 393 / 182.621;
  -webkit-mask-image: url("../images/figma/site-footer-logo-figma.svg");
  mask-image: url("../images/figma/site-footer-logo-figma.svg");
}

.service-price-modal__logo::before {
  content: "";
  display: block;
  padding-top: 60.8%;
}

@supports (aspect-ratio: 1 / 1) {
  .service-price-modal__logo::before {
    content: none;
  }
}

.service-price-modal__tabs {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Растворяющийся край ряда вкладок — единственный намёк гостю, что вкладок
   больше, чем поместилось. Классы вешает JS, и только в ту сторону, куда
   действительно есть что листать. */
.service-price-modal__tabs.has-scroll-end {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
}

.service-price-modal__tabs.has-scroll-start {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px);
  mask-image: linear-gradient(to right, transparent 0, #000 28px);
}

.service-price-modal__tabs.has-scroll-start.has-scroll-end {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}

.service-price-modal__tab {
  min-height: var(--button-height);
  flex: 1 1 0;
  padding: 0 18px;
  border: 1px solid #c6c1a1;
  background: transparent;
  color: #000;
  font-family: var(--font-body);
  font-size: var(--button-font-size);
  font-weight: 400;
  letter-spacing: var(--button-letter-spacing-compact);
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-price-modal__tab + .service-price-modal__tab {
  margin-left: -1px;
}

.service-price-modal__tab.is-active {
  border-color: var(--button-dark-bg);
  background: var(--button-dark-bg);
  color: #fff;
  font-weight: 500;
}

.service-price-modal__tab:hover,
.service-price-modal__tab:focus-visible {
  background: var(--button-hover-fill);
}

.service-price-modal__tab.is-active:hover,
.service-price-modal__tab.is-active:focus-visible {
  border-color: var(--button-dark-bg-hover);
  background: var(--button-dark-bg-hover);
}

/* Аллергены. Справка обязательна по закону, но она не блюдо — поэтому мелкая
   строка сразу под вкладками (гость читает меню сверху вниз и наткнётся на неё
   до заказа), а раскрывается на месте: ни на десктопе, ни на телефоне не
   уводим гостя во второе окно поверх первого. */
.service-price-modal__allergens {
  width: 100%;
  /* Вкладки и справка — одна группа, так что тянем её ближе, чем общий
     47px-зазор между блоками модалки. */
  margin-top: -27px;
}

.service-price-modal__allergens-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #af6c37;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.service-price-modal__allergens-toggle span {
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}

.service-price-modal__allergens-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.service-price-modal__allergens-toggle[aria-expanded="true"]::after {
  transform: translateY(1px) rotate(-135deg);
}

.service-price-modal__allergens-toggle:hover,
.service-price-modal__allergens-toggle:focus-visible {
  color: #8f5528;
}

.service-price-modal__allergens-panel {
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid #c6c1a1;
}

.service-price-modal__allergens-panel[hidden] {
  display: none;
}

.service-price-modal__allergens-title {
  margin: 0 0 16px;
  color: #af6c37;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.service-price-modal__allergens-list {
  margin: 0;
  padding-left: 24px;
  color: #222121;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

.service-price-modal__allergens-list li + li {
  margin-top: 10px;
}

.service-price-modal__sections {
  width: 100%;
}

.service-price-modal__panel-content {
  display: flex;
  flex-direction: column;
  gap: 68px;
  text-align: center;
}

.service-price-modal__panel-content[hidden] {
  display: none;
}

.service-price-modal__section h3 {
  margin: 0 0 25px;
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: 0;
}

.service-price-modal__section ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #222121;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 30px;
}

@media (max-width: 900px) {
  .service-zoom-modal {
    --zoom-control-gap: 10px;
    --zoom-control-size: 42px;
    --zoom-image-width: calc(100vw - 148px);
    padding: 0 22px;
  }

  .service-zoom-modal--rooms {
    --zoom-control-gap: 8px;
    --zoom-control-size: 40px;
    --zoom-image-width: calc(100vw - 120px);
    padding: 0 12px;
  }

  .service-zoom-modal--rooms .service-zoom-modal__figure {
    height: min(72vh, calc(var(--zoom-image-width) * 0.72));
  }

  .service-zoom-modal__figure {
    width: var(--zoom-image-width);
  }

  .service-zoom-modal__nav {
    width: var(--zoom-control-size);
    height: var(--zoom-control-size);
  }

  .service-price-modal__panel {
    width: 100vw;
  }

  .service-price-modal__content {
    width: min(562px, calc(100% - 48px));
    padding: 36px 0 60px;
  }

  .service-price-modal__tabs {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .service-price-modal__tab {
    flex: 0 0 auto;
    min-width: 138px;
  }

  .service-price-modal__allergens-panel {
    padding: 18px;
  }

  .service-price-modal__allergens-list {
    padding-left: 20px;
    font-size: 0.8125rem;
  }
}

@media (min-width: 768px) and (max-width: 820px) {
  .service-price-modal {
    justify-content: center;
  }

  .service-price-modal__panel {
    width: 100vw;
    height: auto;
    min-height: 100dvh;
    overflow-y: visible;
  }

  .service-price-modal__content {
    box-sizing: border-box;
    width: 100%;
    padding: 36px 32px 60px;
  }

  /* the tab row sizes to its content (not a fixed 562) and centres, so each tab
     can stretch to fit its own label — the long RO "Meniul restaurantului" no
     longer has to squeeze into a 1/4 cell. Scrolls only if the labels ever
     exceed the content width. */
  .service-price-modal__tabs {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    justify-content: center;
    overflow-x: auto;
  }

  .service-price-modal__sections {
    width: min(562px, 100%);
  }

  .service-price-modal__tab {
    flex: 0 0 auto;
  }
}

.modal-backdrop[data-room-modal] {
  --room-modal-backdrop-padding: 24px 20px;
  --room-modal-backdrop-background: rgba(4, 4, 4, 0.42);
  --room-modal-width: min(910px, calc(100vw - 40px));
  --room-modal-max-width: none;
  --room-modal-min-height: auto;
  --room-modal-margin: 0 auto;
  --room-modal-padding-bottom: 0;
  --room-modal-shadow: 20px 20px 50px rgba(0, 0, 0, 0.15);
  --room-modal-head-display: grid;
  --room-modal-head-columns: minmax(0, 1fr) 28px;
  --room-modal-head-gap: 24px;
  --room-modal-head-padding: 52px 40px 36px;
  --room-modal-copy-gap: 24px;
  --room-modal-title-max-width: none;
  --room-modal-title-size: 48px;
  --room-modal-title-line-height: 1;
  --room-modal-intro-max-width: 830px;
  --room-modal-intro-size: 18px;
  --room-modal-intro-line-height: 1.22;
  --room-modal-intro-shadow: none;
  --room-modal-close-position: static;
  --room-modal-close-top: auto;
  --room-modal-close-right: auto;
  --room-modal-close-z-index: auto;
  --room-modal-close-bg-size: 14px 14px;
  --room-modal-body-padding: 0 40px 31px;
  --room-modal-gallery-gap: 16px;
  --room-modal-gallery-width: 100%;
  --room-modal-gallery-margin: 0;
  --room-modal-stage-height: auto;
  --room-modal-stage-aspect: 830 / 541;
  --room-modal-arrow-size: 38px;
  --room-modal-arrow-prev-offset: 16px;
  --room-modal-arrow-next-offset: 16px;
  --room-modal-dots-gap: 8px;
  --room-modal-dots-margin-bottom: 24px;
  --room-modal-dot-size: 8px;
  --room-modal-thumbs-gap: 24px;
  --room-modal-thumbs-height: 96px;
  --room-modal-thumbs-padding: 0;
  --room-modal-thumb-height: 96px;
  --room-modal-divider-width: 100%;
  --room-modal-divider-margin: 24px 0 0;
  --room-modal-info-width: auto;
  --room-modal-info-margin: 0;
  --room-modal-info-padding-top: 47px;
  --room-modal-info-title-display: block;
  --room-modal-info-grid-columns: minmax(0, 240px) minmax(0, 490px);
  --room-modal-info-grid-gap: clamp(40px, 11vw, 148px);
  --room-modal-feature-columns: 1fr;
  --room-modal-feature-gap: 20px;
  --room-modal-feature-font-size: 18px;
  --room-modal-feature-line-height: 1.22;
  --room-modal-feature-item-gap: 12px;
  --room-modal-feature-icon-margin-top: 3px;
  --room-modal-feature-text-line-height: inherit;
  --room-modal-feature-text-space: pre-line;
  --room-modal-tour-display: inline-flex;
  --room-modal-tour-width: 197px;
  --room-modal-tour-min-height: 51px;
  --room-modal-tour-margin-top: 22px;
  --room-modal-description-size: 18px;
  --room-modal-description-line-height: 1.22;
  --room-modal-description-section-gap: 14px;
  --room-modal-bottom-divider-margin-top: 42px;
  --room-modal-actions-position: static;
  --room-modal-actions-display: none;
  --room-modal-actions-columns: none;
  --room-modal-actions-gap: 0;
  --room-modal-actions-width: auto;
  --room-modal-actions-padding: 0;
  --room-modal-actions-border: 0;
  --room-modal-actions-background: transparent;
  align-items: flex-start;
  padding: var(--room-modal-backdrop-padding);
  overflow-y: auto;
  background: var(--room-modal-backdrop-background);
  backdrop-filter: none;
}

.modal-backdrop[data-room-modal] .floating-modal {
  width: var(--room-modal-width);
  max-width: var(--room-modal-max-width);
  min-height: var(--room-modal-min-height);
  max-height: none;
  margin: var(--room-modal-margin);
  padding-bottom: var(--room-modal-padding-bottom);
  overflow: visible;
  background: #fffced;
  box-shadow: var(--room-modal-shadow);
  color: #040404;
}

.floating-modal__head {
  display: var(--room-modal-head-display);
  grid-template-columns: var(--room-modal-head-columns);
  gap: var(--room-modal-head-gap);
  padding: var(--room-modal-head-padding);
}

.floating-modal__copy {
  display: grid;
  gap: var(--room-modal-copy-gap);
}

.floating-modal__title {
  max-width: var(--room-modal-title-max-width);
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--room-modal-title-size);
  font-weight: 400;
  line-height: var(--room-modal-title-line-height);
  letter-spacing: 0;
}

.floating-modal__intro {
  max-width: var(--room-modal-intro-max-width);
  margin: 0;
  color: #040404;
  font-family: var(--font-body);
  font-size: var(--room-modal-intro-size);
  font-weight: 400;
  line-height: var(--room-modal-intro-line-height);
  text-shadow: var(--room-modal-intro-shadow);
}

.floating-modal__close {
  position: var(--room-modal-close-position);
  top: var(--room-modal-close-top);
  right: var(--room-modal-close-right);
  z-index: var(--room-modal-close-z-index);
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent url("../images/figma/room-modal/icon-close.svg") center / var(--room-modal-close-bg-size)
    no-repeat;
  color: #040404;
  font-size: 0;
}

.floating-modal__close:hover,
.floating-modal__close:focus-visible {
  background: transparent url("../images/figma/room-modal/icon-close.svg") center / var(--room-modal-close-bg-size)
    no-repeat;
}

.floating-modal__close:focus-visible {
  outline: 2px solid rgba(4, 4, 4, 0.28);
  outline-offset: 4px;
}

.floating-modal__body {
  padding: var(--room-modal-body-padding);
}

.floating-modal__gallery {
  display: grid;
  gap: var(--room-modal-gallery-gap);
  width: var(--room-modal-gallery-width);
  margin: var(--room-modal-gallery-margin);
}

.floating-modal__stage {
  display: grid;
  width: 100%;
  height: var(--room-modal-stage-height);
  aspect-ratio: var(--room-modal-stage-aspect);
  overflow: hidden;
  background: #d5c1a0;
  touch-action: pan-y;
}

.floating-modal__hero,
.floating-modal__gallery-arrow,
.floating-modal__gallery-dots {
  grid-area: 1 / 1;
}

.floating-modal__hero {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #d5c1a0;
}

.floating-modal__hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 320ms ease;
  will-change: transform;
}

.floating-modal__hero-slide {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .floating-modal__hero-track {
    transition: none;
  }
}

.floating-modal__hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition:
    opacity 180ms ease,
    transform 160ms ease;
  transform-origin: center;
  user-select: none;
  -webkit-user-drag: none;
}

.floating-modal__hero-image.is-image-fading {
  opacity: 0.35;
}

.floating-modal__gallery.is-zoomed .floating-modal__stage {
  touch-action: none;
}

.floating-modal__gallery.is-zoomed .floating-modal__hero-image {
  transition: none;
}

.floating-modal__gallery-arrow {
  width: var(--room-modal-arrow-size);
  height: var(--room-modal-arrow-size);
  align-self: center;
  z-index: 3;
  border-color: #fff;
  background: transparent;
  color: #fff;
}

.floating-modal__gallery-arrow:hover,
.floating-modal__gallery-arrow:focus-visible,
.floating-modal__gallery-arrow:active {
  border-color: #fff;
  background: rgba(255, 252, 237, 0.14);
  color: #fff;
}

.floating-modal__gallery-arrow[hidden],
.floating-modal__gallery-dots[hidden],
.floating-modal__thumbs[hidden] {
  display: none;
}

.floating-modal__gallery-arrow--prev {
  justify-self: start;
  margin-left: var(--room-modal-arrow-prev-offset);
}

.floating-modal__gallery-arrow--next {
  justify-self: end;
  margin-right: var(--room-modal-arrow-next-offset);
}

.floating-modal__gallery-dots {
  align-self: end;
  justify-self: center;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--room-modal-dots-gap);
  margin-bottom: var(--room-modal-dots-margin-bottom);
}

.floating-modal__gallery-dot {
  width: var(--room-modal-dot-size);
  height: var(--room-modal-dot-size);
  padding: 0;
  border: 1px solid #fffced;
  border-radius: 50%;
  background: transparent;
}

.floating-modal__gallery-dot.is-active,
.floating-modal__gallery-dot:hover,
.floating-modal__gallery-dot:focus-visible {
  background: #fffced;
}

/* Horizontal, touch-scrollable thumbnail strip: thumbs keep a fixed size and
   overflow the edge so the strip can be swiped (and arrow/dot navigation scrolls
   the active thumb into view via JS). */
.floating-modal__thumbs {
  display: flex;
  gap: var(--room-modal-thumbs-gap);
  align-items: start;
  height: var(--room-modal-thumbs-height);
  max-height: var(--room-modal-thumbs-height);
  padding: var(--room-modal-thumbs-padding);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  touch-action: pan-x;
}

.floating-modal__thumbs::-webkit-scrollbar {
  display: none;
}

.floating-modal__thumb {
  flex: 0 0 auto;
  width: auto;
  aspect-ratio: 4 / 3;
  height: var(--room-modal-thumb-height);
  max-height: var(--room-modal-thumb-height);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: 0.62;
  overflow: hidden;
}

.floating-modal__thumb:hover,
.floating-modal__thumb:focus-visible,
.floating-modal__thumb.is-active {
  opacity: 1;
}

.floating-modal__thumb:focus-visible {
  outline: 2px solid rgba(4, 4, 4, 0.36);
  outline-offset: 2px;
}

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

.floating-modal__divider {
  width: var(--room-modal-divider-width);
  height: 1px;
  margin: var(--room-modal-divider-margin);
  background: rgba(198, 193, 161, 0.9);
}

.floating-modal__info {
  width: var(--room-modal-info-width);
  margin: var(--room-modal-info-margin);
  padding-top: var(--room-modal-info-padding-top);
}

.floating-modal__info-title {
  display: var(--room-modal-info-title-display);
  margin: 0 0 36px;
  color: #040404;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.22;
  text-transform: uppercase;
}

.floating-modal__info-grid {
  display: grid;
  grid-template-columns: var(--room-modal-info-grid-columns);
  gap: var(--room-modal-info-grid-gap);
  align-items: start;
}

.modal-backdrop[data-room-modal] .feature-grid {
  display: grid;
  grid-template-columns: var(--room-modal-feature-columns);
  gap: var(--room-modal-feature-gap);
  height: auto;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--room-modal-feature-font-size);
  line-height: var(--room-modal-feature-line-height);
}

.modal-backdrop[data-room-modal] .feature-grid__item {
  display: flex;
  align-items: flex-start;
  gap: var(--room-modal-feature-item-gap);
  min-width: 0;
  position: static;
}

.modal-backdrop[data-room-modal] .feature-grid__icon {
  flex: 0 0 auto;
  display: block;
  margin-top: var(--room-modal-feature-icon-margin-top);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.modal-backdrop[data-room-modal] .feature-grid__item--size .feature-grid__icon {
  width: 15px;
  height: 15px;
  background-image: url("../images/figma/room-modal/icon-size.svg");
  background-size: 15px 15px;
}

.modal-backdrop[data-room-modal] .feature-grid__item--bed .feature-grid__icon {
  width: 22px;
  height: 15px;
  background-image: url("../images/figma/room-modal/icon-bed.svg");
  background-size: 22px 15px;
}

.modal-backdrop[data-room-modal] .feature-grid__item--guests .feature-grid__icon {
  width: 21px;
  height: 15.167px;
  background-image: url("../images/figma/room-modal/icon-people.svg");
  background-size: 21px 15.167px;
}

.modal-backdrop[data-room-modal] .feature-grid strong {
  display: block;
  margin: 0;
  color: #040404;
  font-weight: 600;
  line-height: var(--room-modal-feature-text-line-height);
}

.modal-backdrop[data-room-modal] .feature-grid span:not(.feature-grid__icon) {
  display: block;
  font-weight: 400;
  line-height: var(--room-modal-feature-text-line-height);
  white-space: var(--room-modal-feature-text-space);
  overflow-wrap: anywhere;
}

.floating-modal__tour {
  display: var(--room-modal-tour-display);
  width: var(--room-modal-tour-width);
  min-height: var(--room-modal-tour-min-height);
  margin-top: var(--room-modal-tour-margin-top);
  padding: 0 20px;
}

.floating-modal__description {
  width: 100%;
  margin: 0;
  color: #040404;
  font-family: var(--font-body);
  font-size: var(--room-modal-description-size);
  line-height: var(--room-modal-description-line-height);
}

.floating-modal__description p {
  margin: 0;
  white-space: pre-line;
}

.floating-modal__description-section {
  margin: 0 0 var(--room-modal-description-section-gap);
}

.floating-modal__description-section:last-child {
  margin-bottom: 0;
}

.floating-modal__description-title {
  margin: 0;
  color: #040404;
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
}

.floating-modal__description-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.floating-modal__description-item {
  margin: 0;
}

.floating-modal__description-item::before {
  content: "• ";
}

.floating-modal__divider--bottom {
  margin-top: var(--room-modal-bottom-divider-margin-top);
}

.floating-modal__actions {
  position: var(--room-modal-actions-position);
  left: var(--room-modal-actions-left, auto);
  right: var(--room-modal-actions-right, auto);
  bottom: var(--room-modal-actions-bottom, auto);
  z-index: var(--room-modal-actions-z-index, auto);
  display: var(--room-modal-actions-display);
  grid-template-columns: var(--room-modal-actions-columns);
  gap: var(--room-modal-actions-gap);
  width: var(--room-modal-actions-width);
  padding: var(--room-modal-actions-padding);
  border-top: var(--room-modal-actions-border);
  background: var(--room-modal-actions-background);
}

.modal-backdrop--contact {
  background: rgba(4, 4, 4, 0.42);
  backdrop-filter: none;
}

.contact-modal {
  position: relative;
  width: min(774px, calc(100vw - 48px));
  height: min(539px, calc(100vh - 48px));
  display: block;
  background: #fffced;
  color: #040404;
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.15);
}

.contact-modal__text {
  position: absolute;
  left: 50%;
  top: 46px;
  transform: translateX(-50%);
  width: 273px;
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.contact-modal__close {
  --modal-close-line-top: 6px;
  --modal-close-line-left: 0;
  --modal-close-line-width: 14px;
  --modal-close-line-color: currentColor;
  position: absolute;
  top: 38px;
  right: 32px;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  padding: 0;
  color: #040404;
}

.contact-modal__close:focus-visible {
  outline: 2px solid rgba(4, 4, 4, 0.28);
  outline-offset: 4px;
}

.contact-modal__text h2 {
  width: 100%;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 47px;
  white-space: nowrap;
  text-shadow: 20px 20px 50px rgba(0, 0, 0, 0.15);
}

.contact-modal__text a {
  color: #000;
  font-size: 20px;
  line-height: 28px;
  text-decoration: none;
}

.contact-modal__actions {
  position: absolute;
  left: 50%;
  top: 174px;
  transform: translateX(-50%);
  width: 273px;
  display: grid;
  gap: 20px;
}

.contact-modal__button {
  box-sizing: border-box;
  width: 100%;
  height: var(--button-height);
  min-height: var(--button-height);
  padding: 0 32px;
  border: 1px solid var(--booking-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #000;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

.contact-modal__button::before {
  content: none;
}

.contact-modal__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
  object-fit: contain;
}

.contact-modal__icon--phone {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
}

.contact-modal__button:hover,
.contact-modal__button:focus-visible {
  background: var(--button-hover-fill);
}

.contact-modal__button:focus-visible {
  outline: 2px solid rgba(4, 4, 4, 0.28);
  outline-offset: 2px;
}

.contact-modal__button--telegram::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.94 4.16c.18-.76-.54-1.39-1.25-1.09L2.86 10.5c-.82.34-.78 1.51.07 1.78l4.47 1.39 1.73 5.25c.26.8 1.27.99 1.79.33l2.48-3.16 4.56 3.35c.67.49 1.63.13 1.82-.68l2.16-14.6ZM8.1 12.94l8.73-5.49c.16-.1.32.11.18.24l-7.2 6.5-.3 3.28-1.41-4.53Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.94 4.16c.18-.76-.54-1.39-1.25-1.09L2.86 10.5c-.82.34-.78 1.51.07 1.78l4.47 1.39 1.73 5.25c.26.8 1.27.99 1.79.33l2.48-3.16 4.56 3.35c.67.49 1.63.13 1.82-.68l2.16-14.6ZM8.1 12.94l8.73-5.49c.16-.1.32.11.18.24l-7.2 6.5-.3 3.28-1.41-4.53Z'/%3E%3C/svg%3E");
}

.contact-modal__button--whatsapp::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.52 3.48A11.83 11.83 0 0 0 12.09 0C5.55 0 .23 5.32.23 11.86c0 2.09.55 4.14 1.59 5.94L.13 24l6.35-1.66a11.86 11.86 0 0 0 5.61 1.43h.01c6.54 0 11.86-5.32 11.86-11.86 0-3.17-1.23-6.15-3.44-8.43ZM12.1 21.75h-.01c-1.77 0-3.5-.48-5.01-1.38l-.36-.22-3.77.99 1-3.67-.24-.38a9.84 9.84 0 0 1-1.5-5.23c0-5.45 4.43-9.88 9.89-9.88 2.64 0 5.12 1.03 6.99 2.9a9.83 9.83 0 0 1 2.89 6.99c0 5.45-4.43 9.88-9.88 9.88Zm5.42-7.39c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.17-.17.2-.35.22-.65.07-.3-.15-1.25-.46-2.38-1.47-.88-.78-1.48-1.75-1.65-2.05-.17-.3-.02-.46.13-.61.13-.13.3-.35.45-.52.15-.17.2-.3.3-.5.1-.2.05-.37-.02-.52-.07-.15-.67-1.61-.92-2.2-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.48 0 1.46 1.07 2.88 1.22 3.08.15.2 2.1 3.2 5.08 4.49.71.31 1.26.49 1.7.63.71.23 1.36.2 1.87.12.57-.08 1.76-.72 2.01-1.41.25-.69.25-1.29.17-1.41-.07-.13-.27-.2-.57-.35Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.52 3.48A11.83 11.83 0 0 0 12.09 0C5.55 0 .23 5.32.23 11.86c0 2.09.55 4.14 1.59 5.94L.13 24l6.35-1.66a11.86 11.86 0 0 0 5.61 1.43h.01c6.54 0 11.86-5.32 11.86-11.86 0-3.17-1.23-6.15-3.44-8.43ZM12.1 21.75h-.01c-1.77 0-3.5-.48-5.01-1.38l-.36-.22-3.77.99 1-3.67-.24-.38a9.84 9.84 0 0 1-1.5-5.23c0-5.45 4.43-9.88 9.89-9.88 2.64 0 5.12 1.03 6.99 2.9a9.83 9.83 0 0 1 2.89 6.99c0 5.45-4.43 9.88-9.88 9.88Zm5.42-7.39c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.17-.17.2-.35.22-.65.07-.3-.15-1.25-.46-2.38-1.47-.88-.78-1.48-1.75-1.65-2.05-.17-.3-.02-.46.13-.61.13-.13.3-.35.45-.52.15-.17.2-.3.3-.5.1-.2.05-.37-.02-.52-.07-.15-.67-1.61-.92-2.2-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.48 0 1.46 1.07 2.88 1.22 3.08.15.2 2.1 3.2 5.08 4.49.71.31 1.26.49 1.7.63.71.23 1.36.2 1.87.12.57-.08 1.76-.72 2.01-1.41.25-.69.25-1.29.17-1.41-.07-.13-.27-.2-.57-.35Z'/%3E%3C/svg%3E");
}

.contact-modal__button--viber::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.32 2.24A23.2 23.2 0 0 0 6.68 2.2C4.53 2.73 2.82 4.45 2.3 6.6a22.67 22.67 0 0 0 0 9.66c.44 1.82 1.75 3.34 3.48 4.06v2.02c0 .75.9 1.13 1.43.6l2.16-2.16c2.67.3 5.36.17 7.95-.45 2.15-.52 3.86-2.24 4.38-4.39a22.67 22.67 0 0 0 0-9.33c-.52-2.14-2.23-3.86-4.38-4.37Zm-4.93 15.03c-3.13-1.26-5.27-3.42-6.5-6.52-.38-.95.2-2 1.2-2.18l.72-.13c.44-.08.88.15 1.06.56l.74 1.66c.15.33.1.72-.13 1l-.38.47c.55.93 1.27 1.65 2.2 2.2l.47-.38c.28-.23.67-.28 1-.13l1.66.74c.41.18.64.62.56 1.06l-.13.72c-.18 1-1.23 1.58-2.17 1.2l-.3-.12Zm1.28-10.94c2.08.38 3.57 1.88 3.95 3.95.08.44-.21.86-.65.94-.44.08-.86-.21-.94-.65-.25-1.4-1.27-2.42-2.67-2.67a.81.81 0 0 1-.65-.94c.08-.44.5-.73.96-.63Zm.27-2.68c3.33.5 5.7 2.87 6.2 6.2.07.45-.24.86-.69.93-.45.07-.86-.24-.93-.69-.39-2.62-2.22-4.45-4.84-4.84a.81.81 0 0 1-.69-.93c.07-.45.5-.75.95-.67Zm-.41 5.28c.85.2 1.34.69 1.54 1.54.1.43-.17.87-.61.97-.43.1-.87-.17-.97-.61-.06-.26-.13-.33-.39-.39a.8.8 0 0 1-.61-.97c.1-.43.53-.7.97-.6l.07.02Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.32 2.24A23.2 23.2 0 0 0 6.68 2.2C4.53 2.73 2.82 4.45 2.3 6.6a22.67 22.67 0 0 0 0 9.66c.44 1.82 1.75 3.34 3.48 4.06v2.02c0 .75.9 1.13 1.43.6l2.16-2.16c2.67.3 5.36.17 7.95-.45 2.15-.52 3.86-2.24 4.38-4.39a22.67 22.67 0 0 0 0-9.33c-.52-2.14-2.23-3.86-4.38-4.37Zm-4.93 15.03c-3.13-1.26-5.27-3.42-6.5-6.52-.38-.95.2-2 1.2-2.18l.72-.13c.44-.08.88.15 1.06.56l.74 1.66c.15.33.1.72-.13 1l-.38.47c.55.93 1.27 1.65 2.2 2.2l.47-.38c.28-.23.67-.28 1-.13l1.66.74c.41.18.64.62.56 1.06l-.13.72c-.18 1-1.23 1.58-2.17 1.2l-.3-.12Zm1.28-10.94c2.08.38 3.57 1.88 3.95 3.95.08.44-.21.86-.65.94-.44.08-.86-.21-.94-.65-.25-1.4-1.27-2.42-2.67-2.67a.81.81 0 0 1-.65-.94c.08-.44.5-.73.96-.63Zm.27-2.68c3.33.5 5.7 2.87 6.2 6.2.07.45-.24.86-.69.93-.45.07-.86-.24-.93-.69-.39-2.62-2.22-4.45-4.84-4.84a.81.81 0 0 1-.69-.93c.07-.45.5-.75.95-.67Zm-.41 5.28c.85.2 1.34.69 1.54 1.54.1.43-.17.87-.61.97-.43.1-.87-.17-.97-.61-.06-.26-.13-.33-.39-.39a.8.8 0 0 1-.61-.97c.1-.43.53-.7.97-.6l.07.02Z'/%3E%3C/svg%3E");
}

.contact-modal__button--phone {
  height: var(--button-height);
  min-height: var(--button-height);
  letter-spacing: var(--button-letter-spacing-compact);
}

.contact-modal__button--phone::before {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.118 2.25h2.227l1.114 3.34-1.67 1.67a10.166 10.166 0 0 0 4.95 4.95l1.67-1.67 3.34 1.114v2.227A1.364 1.364 0 0 1 14.386 15.25C7.845 15.25 2.75 10.155 2.75 3.614A1.364 1.364 0 0 1 4.118 2.25Z' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.118 2.25h2.227l1.114 3.34-1.67 1.67a10.166 10.166 0 0 0 4.95 4.95l1.67-1.67 3.34 1.114v2.227A1.364 1.364 0 0 1 14.386 15.25C7.845 15.25 2.75 10.155 2.75 3.614A1.364 1.364 0 0 1 4.118 2.25Z' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (min-width: 375px) and (max-width: 1197px) {
  .modal-backdrop[data-room-modal] {
    --room-modal-backdrop-padding: 0;
    --room-modal-width: 100vw;
    --room-modal-min-height: 100svh;
    --room-modal-margin: 0;
    --room-modal-padding-bottom: 0;
    --room-modal-shadow: none;
    --room-modal-head-display: block;
    --room-modal-head-columns: none;
    --room-modal-head-gap: 0;
    --room-modal-copy-gap: 16px;
    --room-modal-title-max-width: calc(100% - 42px);
    --room-modal-title-size: 28px;
    --room-modal-title-line-height: 28px;
    --room-modal-intro-max-width: calc(100% - 6px);
    --room-modal-intro-size: 14px;
    --room-modal-intro-line-height: normal;
    --room-modal-intro-shadow: 20px 20px 50px rgba(0, 0, 0, 0.15);
    --room-modal-close-position: fixed;
    --room-modal-close-top: 26px;
    --room-modal-close-z-index: 30;
    --room-modal-close-bg-size: 15px 15px;
    --room-modal-body-padding: 0 0 40px;
    --room-modal-gallery-gap: 10px;
    --room-modal-stage-height: 264px;
    --room-modal-stage-aspect: auto;
    --room-modal-arrow-size: 25px;
    --room-modal-dots-margin-bottom: 16px;
    --room-modal-dot-size: 6px;
    --room-modal-thumbs-gap: 9px;
    --room-modal-thumbs-height: 50px;
    --room-modal-thumb-height: 50px;
    --room-modal-divider-margin: 28px auto 0;
    --room-modal-info-margin: 0 auto;
    --room-modal-info-padding-top: 32px;
    --room-modal-info-title-display: none;
    --room-modal-info-grid-columns: 1fr;
    --room-modal-info-grid-gap: 28px;
    --room-modal-feature-columns: repeat(2, minmax(0, 1fr));
    --room-modal-feature-gap: 24px 16px;
    --room-modal-feature-font-size: 14px;
    --room-modal-feature-line-height: normal;
    --room-modal-feature-item-gap: 8px;
    --room-modal-feature-icon-margin-top: 0;
    --room-modal-feature-text-line-height: 14px;
    --room-modal-feature-text-space: normal;
    /* mobile & tablet: the tour button sits full-width right under the feature
       grid, above the description (Figma) — the desktop 197px pill is too small
       for the single-column info layout. */
    --room-modal-tour-display: inline-flex;
    --room-modal-tour-width: 100%;
    --room-modal-tour-min-height: 45px;
    --room-modal-tour-margin-top: 28px;
    --room-modal-description-size: 14px;
    --room-modal-description-line-height: normal;
    --room-modal-description-section-gap: 12px;
    --room-modal-bottom-divider-margin-top: 32px;
    --room-modal-actions-position: fixed;
    --room-modal-actions-left: 0;
    --room-modal-actions-right: 0;
    --room-modal-actions-bottom: 0;
    --room-modal-actions-z-index: 20;
    /* hide the Apply/Cancel bar in the room-info modal on mobile & tablet — it is
       an info modal, the booking action lives on the room card (desktop already
       hides it via the default --room-modal-actions-display: none). */
    --room-modal-actions-display: none;
    --room-modal-actions-gap: 8px;
    --room-modal-actions-width: 100vw;
    --room-modal-actions-border: 1px solid var(--booking-line);
    --room-modal-actions-background: #fffced;
  }

  .floating-modal__actions .button-primary,
  .floating-modal__actions .button-secondary {
    width: 100%;
    min-height: 45px;
  }
}

@media (min-width: 375px) and (max-width: 767px) {
  .modal-backdrop[data-room-modal] {
    --room-modal-head-padding: 33px 16px 0;
    --room-modal-close-right: 16px;
    --room-modal-gallery-width: 100%;
    --room-modal-gallery-margin: 40px 0 0;
    --room-modal-thumbs-padding: 0 16px;
    --room-modal-divider-width: calc(100% - 32px);
    --room-modal-info-width: calc(100% - 32px);
    --room-modal-actions-padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  }
}

@media (min-width: 768px) and (max-width: 1197px) {
  .modal-backdrop[data-room-modal] {
    --room-modal-head-padding: 33px 40px 0;
    --room-modal-close-right: 40px;
    --room-modal-gallery-width: calc(100% - 80px);
    --room-modal-gallery-margin: 40px auto 0;
    --room-modal-thumbs-padding: 0;
    --room-modal-divider-width: calc(100% - 80px);
    --room-modal-info-width: calc(100% - 80px);
    --room-modal-actions-padding: 24px 40px calc(24px + env(safe-area-inset-bottom));
    --room-modal-stage-height: 400px;
    --room-modal-thumbs-height: 80px;
    --room-modal-thumb-height: 80px;
  }
}

@media (min-width: 1024px) and (max-width: 1179px) {
  .modal-backdrop[data-room-modal] {
    justify-content: flex-start;
    --room-modal-actions-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Modal responsive rules moved from responsive.css */
@media (max-width: 1179px) {
  .modal-backdrop--contact {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: #fffced;
  }

  .contact-modal {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    min-height: 100dvh;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    box-shadow: none;
  }

  .contact-modal__close {
    top: 19px;
    right: 18px;
    width: 15px;
    height: 15px;
    min-width: 15px;
    min-height: 15px;
  }

  .contact-modal__close::before,
  .contact-modal__close::after {
    top: 7px;
    width: 15px;
  }

  .contact-modal__text,
  .contact-modal__actions {
    position: static;
    left: auto;
    top: auto;
    width: min(338px, calc(100vw - 32px));
    transform: none;
  }

  .contact-modal__text {
    gap: 4px;
  }

  .contact-modal__text h2 {
    font-size: 28px;
    line-height: normal;
  }

  .contact-modal__text a {
    font-size: 20px;
    line-height: 28px;
  }

  .contact-modal__actions {
    gap: 24px;
  }

  .contact-modal__button {
    height: 52px;
    min-height: 52px;
    padding: 0 32px;
    gap: 10px;
    letter-spacing: 2.4px;
  }

  .contact-modal__button--phone {
    height: 56px;
    min-height: 56px;
    letter-spacing: 1.2px;
  }
}

@media (min-width: 1024px) and (max-width: 1179px) {
  .modal-backdrop--contact {
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 4, 4, 0.42);
  }

  .contact-modal {
    width: min(498px, calc(100vw - 48px));
    max-width: 498px;
    height: min(520px, calc(100vh - 48px));
    max-height: 520px;
    min-height: 0;
    padding: 0;
    display: block;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.15);
  }

  .contact-modal__close {
    top: 24px;
    right: 24px;
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
  }

  .contact-modal__close::before,
  .contact-modal__close::after {
    top: 6px;
    width: 14px;
  }

  .contact-modal__text,
  .contact-modal__actions {
    position: absolute;
    left: 50%;
    width: 312px;
    transform: translateX(-50%);
  }

  .contact-modal__text {
    top: 57px;
    gap: 4px;
  }

  .contact-modal__text h2 {
    font-size: 32px;
    line-height: 38px;
    white-space: nowrap;
  }

  .contact-modal__text a {
    font-size: 18px;
    line-height: 28px;
  }

  .contact-modal__actions {
    top: 160px;
    gap: 0;
  }

  .contact-modal__button {
    height: 53px;
    min-height: 53px;
    padding: 0 24px;
    letter-spacing: 2.4px;
  }

  .contact-modal__button + .contact-modal__button {
    margin-top: -1px;
  }

  .contact-modal__button--phone {
    height: 53px;
    min-height: 53px;
    letter-spacing: 1.2px;
  }
}
