@font-face {
  font-family: "Inter Digits";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src:
    url("./assets/fonts/inter-variable.woff2") format("woff2"),
    url("./assets/fonts/inter-variable.ttf") format("truetype");
  unicode-range: U+0030-0039;
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src:
    url("./assets/fonts/raleway-300.woff2") format("woff2"),
    url("./assets/fonts/raleway-300.ttf") format("truetype");
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("./assets/fonts/raleway-400.woff2") format("woff2"),
    url("./assets/fonts/raleway-400.ttf") format("truetype");
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src:
    url("./assets/fonts/raleway-500.woff2") format("woff2"),
    url("./assets/fonts/raleway-500.ttf") format("truetype");
}

@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src:
    url("./assets/fonts/raleway-600.woff2") format("woff2"),
    url("./assets/fonts/raleway-600.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  font-family: "Inter Digits", "Raleway", Arial, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

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

img {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-top: 60px;
  background: #000;
  color: #fff;
  font-family: "Inter Digits", "Raleway", Arial, sans-serif;
  font-weight: 300;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

:where(a, button, input, textarea, select, [contenteditable="true"]):focus-visible {
  outline: 2px solid #8f8f8f;
  outline-offset: 3px;
}

.site-loader {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 38px;
  background: #050505;
  color: #fff;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.55s;
}

.site-loader.is-finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader__camera {
  position: relative;
  width: 116px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 13px;
}

.site-loader__camera::before {
  position: absolute;
  top: -15px;
  left: 18px;
  width: 37px;
  height: 15px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  content: "";
}

.site-loader__flash {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 13px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 2px;
}

.site-loader__lens {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 53px;
  height: 53px;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.site-loader__lens::before {
  width: 37px;
  height: 37px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  content: "";
}

.site-loader__lens i {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 5px solid transparent;
  border-top-color: #fff;
  border-right-color: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  animation: loader-shutter 0.75s linear infinite;
}

.site-loader__camera.is-shot {
  animation: camera-shot 0.24s ease;
}

.site-loader__camera.is-shot::after {
  position: absolute;
  inset: -25px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  content: "";
  animation: camera-flash 0.28s ease forwards;
}

.site-loader__progress {
  display: grid;
  width: min(240px, 62vw);
  gap: 12px;
}

.site-loader__number {
  text-align: right;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.site-loader__line {
  overflow: hidden;
  height: 1px;
  background: rgba(255, 255, 255, 0.23);
}

.site-loader__line i {
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
  transition: width 0.08s linear;
}

@keyframes loader-shutter {
  to {
    transform: rotate(360deg);
  }
}

@keyframes camera-shot {
  50% {
    transform: scale(0.96);
  }
}

@keyframes camera-flash {
  from {
    opacity: 0.85;
    transform: scale(0.2);
  }

  to {
    opacity: 0;
    transform: scale(1.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader__lens i {
    animation: none;
  }

  .site-loader {
    transition-duration: 0.15s;
  }
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  height: 60px;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px 0 52px;
  background: #050505;
  color: #fff;
}

.logo,
.footer-logo {
  display: block;
}

.logo {
  width: 100px;
  transform: translateX(-12px);
}

.logo img,
.footer-logo img {
  display: block;
  width: 100%;
  filter: brightness(0) invert(1);
}

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

.desktop-nav a {
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: #b5b5b5;
}

.desktop-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  color: #8f8f8f;
}

.desktop-nav a[aria-current="page"] {
  pointer-events: none;
}

.menu-button,
.mobile-nav {
  display: none;
}

.rooms {
  display: grid;
  height: calc(100svh - 60px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.room-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.room-card__image,
.room-card__shade {
  position: absolute;
  inset: 0;
}

.room-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.7s ease;
}

.room-card__shade {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.62));
  transition: background-color 0.3s ease;
}

.room-card:hover .room-card__image {
  transform: scale(1.05);
}

.room-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  padding: 0 40px 49px;
}

.room-card h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}

.room-card button {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.room-card button span {
  display: none;
}

.room-card button::after {
  position: absolute;
  left: 40px;
  bottom: 22px;
  color: #fff;
  content: "ПОДРОБНЕЕ";
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.room-card:hover button::after,
.room-card button:focus-visible::after {
  opacity: 1;
}

.contacts {
  display: grid;
  min-height: 500px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #000;
}

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

.contacts__inner {
  width: 100%;
  padding: 25px 50px 20px 90px;
}

.contacts h2 {
  margin: 0 0 45px;
  font-size: 16px;
  font-weight: 600;
}

.contacts p {
  max-width: 470px;
  margin: 0 0 35px;
  font-size: 16px;
  line-height: 1.45;
}

.contacts__seo {
  color: #d6d6d6;
}

.contacts__address {
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 1250px) and (min-width: 701px) {
  .contacts__address {
    max-width: 430px;
    white-space: normal;
  }
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 48px;
}

.socials a {
  width: 23px;
  height: 23px;
}

.socials svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}

.socials .fill {
  fill: #fff;
  stroke: none;
}

.contacts__map {
  position: relative;
  min-width: 0;
}

.contacts__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
  background: #111;
}

.contacts__map.is-map-guarded iframe {
  pointer-events: none;
}

.contacts__map.is-map-active iframe {
  pointer-events: auto;
}

.map-guard {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: end;
  padding: 14px;
  background: rgba(9, 9, 8, 0.08);
  touch-action: pan-y;
  transition: background-color 0.25s ease, opacity 0.25s ease;
}

.contacts__map.is-map-active .map-guard {
  opacity: 0;
  pointer-events: none;
}

.map-guard__activate,
.map-guard__disable {
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(12, 12, 11, 0.82);
  color: #fff;
  cursor: pointer;
  font: inherit;
  backdrop-filter: blur(12px);
}

.map-guard__activate {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  font-size: 10px;
  text-align: right;
}

.map-guard__activate span {
  color: #c8a96b;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.map-guard__disable {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  padding: 9px 13px;
  font-size: 10px;
}

.site-footer {
  display: flex;
  min-height: 225px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  padding: 36px 24px;
  background: #000;
  box-shadow: 0 3px 0 #000;
  text-align: center;
}

.footer-logo {
  width: 130px;
  transform: none;
}

.footer-info {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  padding: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.footer-info p {
  margin: 0;
}

.footer-info .footer-credit {
  margin-top: 23px;
  color: #a5a5a5;
  font-size: 13px;
  letter-spacing: 0.025em;
}

.footer-credit a {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.footer-credit a:hover {
  border-color: #fff;
  color: #fff;
}

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  overflow-y: auto;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.modal__panel {
  position: relative;
  display: grid;
  width: calc(100% - 40px);
  min-height: calc(100vh - 130px);
  max-width: 1240px;
  grid-template-columns: minmax(0, 760px) minmax(300px, 1fr);
  gap: 40px;
  margin: 65px auto;
  padding: 40px;
  background: #fff;
  color: #303030;
}

.modal__close {
  position: fixed;
  z-index: 3;
  top: 18px;
  right: 22px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.modal__close span {
  position: absolute;
  top: 16px;
  left: 2px;
  width: 32px;
  height: 1px;
  background: #fff;
}

.modal__close span:first-child {
  transform: rotate(45deg);
}

.modal__close span:last-child {
  transform: rotate(-45deg);
}

.modal__close:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

.modal__gallery {
  min-width: 0;
}

.modal__stage {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 571px;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
  background: #f1f1f1;
}

.modal__image {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 48px;
  height: 72px;
  place-items: center;
  padding: 0 0 6px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 52px;
  font-weight: 200;
  line-height: 1;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
  transform: translateY(-50%);
}

.gallery-arrow--prev {
  left: 7px;
}

.gallery-arrow--next {
  right: 7px;
}

.modal__thumbs {
  display: flex;
  overflow-x: auto;
  gap: 5px;
  padding: 6px 22px 0;
  scrollbar-width: thin;
}

.modal__thumb {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 2px solid transparent;
  background-position: center;
  background-size: cover;
  cursor: pointer;
  opacity: 0.75;
}

.modal__thumb.is-active {
  border-color: #333;
  opacity: 1;
}

.modal__details {
  padding-top: 4px;
  font-size: 15px;
  line-height: 1.45;
}

.modal__title {
  margin: 0 0 4px;
  font-size: 27px;
  font-weight: 400;
}

.modal__description {
  margin: 0 0 20px;
  white-space: pre-line;
}

.modal__price {
  margin: 0 0 18px;
  font-size: 16px;
}

.booking-button {
  display: inline-block;
  margin-bottom: 30px;
  padding: 12px 29px;
  border: 1px solid #333;
  font-size: 13px;
  font-weight: 300;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.booking-button:hover {
  background: #111;
  color: #fff;
}

.modal__copy h3 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 600;
}

.modal__copy p {
  margin: 0 0 27px;
}

@media (max-width: 1050px) and (min-width: 701px) {
  .modal__panel {
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  }
}

@media (max-width: 900px) and (min-width: 701px) {
  .site-header {
    padding-right: 24px;
    padding-left: 32px;
  }

  .logo {
    width: 94px;
    transform: translateX(-8px);
  }

  .desktop-nav {
    gap: 12px;
  }

  .desktop-nav a {
    font-size: 11px;
  }
}

@media (max-width: 700px) {
  body {
    padding-top: 80px;
  }

  .site-header {
    height: 80px;
    padding: 0 20px 0 32px;
  }

  .logo {
    width: 100px;
    transform: translateX(-25px);
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    position: relative;
    z-index: 2;
    display: flex;
    width: 24px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 24px;
    height: 1px;
    background: #fff;
    transition:
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.22s ease;
  }

  .menu-button.is-open span:first-child {
    transform: translateY(9.5px) rotate(45deg);
  }

  .menu-button.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-button.is-open span:last-child {
    transform: translateY(-9.5px) rotate(-45deg);
  }

  .mobile-nav {
    position: absolute;
    top: 80px;
    right: 0;
    left: 0;
    display: flex;
    overflow: hidden;
    max-height: 0;
    flex-direction: column;
    gap: 0;
    padding: 0 24px;
    border-radius: 0 0 24px 24px;
    background: #050505;
    box-shadow: 0 -1px 0 #050505;
    font-size: 15px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      padding 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.28s ease,
      transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-nav::before {
    position: absolute;
    top: 0;
    right: 20px;
    left: 20px;
    height: 1px;
    background: rgba(255, 255, 255, 0.14);
    content: "";
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .mobile-nav a {
    padding: 10px 0;
    opacity: 0;
    transform: translateY(-7px);
    transition:
      color 0.2s ease,
      opacity 0.25s ease,
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-nav.is-open {
    max-height: 360px;
    gap: 4px;
    padding: 18px 24px 24px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav.is-open::before {
    opacity: 1;
  }

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

  .mobile-nav.is-open a:nth-child(2) {
    transition-delay: 0.04s;
  }

  .mobile-nav.is-open a:nth-child(3) {
    transition-delay: 0.08s;
  }

  .mobile-nav.is-open a:nth-child(4) {
    transition-delay: 0.12s;
  }

  .mobile-nav.is-open a:nth-child(5) {
    transition-delay: 0.16s;
  }

  .rooms {
    display: grid;
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }

  .room-card {
    min-height: 0;
  }

  .room-card__content {
    justify-content: flex-start;
    padding: 22px 20px 0;
  }

  .room-card h2 {
    margin: 0;
    font-size: 24px;
  }

  .room-card button {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    border: 0;
    color: transparent;
    touch-action: manipulation;
  }

  .room-card button span {
    position: absolute;
    bottom: 18px;
    left: 20px;
    display: flex;
    width: 118px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
    color: #fff;
    font-size: 13px;
    pointer-events: none;
  }

  .room-card button::after {
    display: none;
  }

  .contacts {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .contacts__info {
    min-height: 300px;
  }

  .contacts__inner {
    padding: 31px 20px 34px;
  }

  .contacts h2 {
    margin-bottom: 25px;
    font-size: 16px;
  }

  .contacts p {
    margin-bottom: 32px;
    font-size: 16px;
    line-height: 1.45;
  }

  .contacts__address {
    white-space: normal;
  }

  .socials {
    margin-top: 48px;
  }

  .contacts__map iframe {
    height: 300px;
    min-height: 300px;
  }

  .site-footer {
    display: flex;
    min-height: 240px;
    gap: 24px;
    padding: 36px 20px;
  }

  .footer-logo {
    width: 140px;
    transform: none;
  }

  .footer-info {
    padding: 0;
    font-size: 13px;
  }

  .modal__panel {
    display: block;
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 55px 20px 40px;
  }

  .modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
  }

  .modal__close span {
    background: #222;
  }

  .modal__stage {
    min-height: 0;
    aspect-ratio: 4 / 3;
    padding: 0;
  }

  .modal__image {
    height: 100%;
    max-height: none;
  }

  .modal__thumbs {
    padding-right: 0;
    padding-left: 0;
  }

  .modal__details {
    padding-top: 28px;
  }

  .modal__title {
    font-size: 25px;
  }

  .gallery-arrow {
    font-size: 42px;
  }
}

/* Dark editorial room dialog */
.modal {
  display: flex;
  overflow: auto;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    visibility 0s linear 0.35s;
}

.modal.is-open {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.modal__backdrop {
  background:
    radial-gradient(circle at 50% 20%, rgba(130, 104, 58, 0.13), transparent 38%),
    rgba(3, 3, 3, 0.9);
  opacity: 0;
  backdrop-filter: blur(8px);
  transition: opacity 0.4s ease;
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal__panel {
  width: min(1240px, 100%);
  height: min(760px, calc(100svh - 48px));
  min-height: 560px;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.85fr);
  gap: 0;
  margin: auto;
  padding: 14px;
  border: 1px solid #32312d;
  background: #11110f;
  color: #eee9de;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.6);
  opacity: 0;
  overflow: hidden;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 0.38s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.is-open .modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(8, 8, 7, 0.66);
  backdrop-filter: blur(8px);
}

.modal__close span {
  top: 18px;
  left: 8px;
  width: 20px;
}

.modal__gallery {
  display: grid;
  overflow: hidden;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  padding-right: 14px;
  border-right: 1px solid #2b2a27;
}

.modal__stage {
  min-height: 0;
  padding: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 45%),
    #080807;
}

.modal__image {
  height: 100%;
  max-height: none;
  object-fit: contain;
  opacity: 0.96;
}

.modal__counter {
  position: absolute;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(7, 7, 6, 0.68);
  color: #e8dfce;
  font-size: 10px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
}

.modal__counter i {
  width: 22px;
  height: 1px;
  background: #8e7444;
}

.gallery-arrow {
  width: 42px;
  height: 42px;
  padding: 0 0 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(8, 8, 7, 0.44);
  font-size: 30px;
  backdrop-filter: blur(6px);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gallery-arrow:hover {
  border-color: #c8a96b;
  background: rgba(200, 169, 107, 0.2);
}

.gallery-arrow--prev {
  left: 18px;
}

.gallery-arrow--next {
  right: 18px;
}

.modal__thumbs {
  gap: 8px;
  padding: 12px 0 0;
}

.modal__thumb {
  flex-basis: 64px;
  width: 64px;
  height: 52px;
  border: 1px solid #34332f;
  opacity: 0.48;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.modal__thumb:hover {
  opacity: 0.8;
}

.modal__thumb.is-active {
  border-color: #c8a96b;
  opacity: 1;
}

.modal__details {
  overflow-y: auto;
  padding: 54px 36px 34px 40px;
  font-size: 14px;
  line-height: 1.55;
  scrollbar-width: thin;
  scrollbar-color: #55534d transparent;
}

.modal__eyebrow {
  margin: 0 0 18px;
  color: #a98c56;
  font-size: 9px;
  letter-spacing: 0.2em;
}

.modal__title {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1;
}

.modal__description {
  margin: 0 0 24px;
  color: #aaa69e;
  line-height: 1.6;
}

.modal__price {
  margin: 0 0 22px;
  color: #f0eadf;
  font-size: 19px;
}

.booking-button {
  width: 100%;
  margin-bottom: 36px;
  padding: 16px 20px;
  border: 1px solid #c8a96b;
  background: #c8a96b;
  color: #11110f;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.booking-button:hover {
  background: transparent;
  color: #e8d6b2;
}

.modal__copy {
  padding-top: 6px;
  border-top: 1px solid #302f2b;
}

.modal__copy h3 {
  margin: 24px 0 7px;
  color: #d9c398;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.modal__copy p {
  margin: 0 0 18px;
  color: #aaa69e;
}

@media (max-width: 700px) {
  .modal {
    display: flex;
    padding: 0;
    align-items: flex-start;
  }

  .modal__panel {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100svh;
    margin: 0;
    padding: 58px 16px 36px;
    border: 0;
    overflow: visible;
    transform: translateY(34px);
  }

  .modal__close {
    position: fixed;
    top: 12px;
    right: 14px;
  }

  .modal__gallery {
    display: grid;
    padding: 0;
    border: 0;
  }

  .modal__stage {
    aspect-ratio: 4 / 3;
  }

  .modal__thumbs {
    padding-top: 10px;
  }

  .modal__details {
    overflow: visible;
    padding: 32px 2px 0;
  }

  .modal__eyebrow {
    margin-bottom: 13px;
  }

  .modal__title {
    font-size: 34px;
  }

  .modal__counter {
    right: 10px;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal__backdrop,
  .modal__panel {
    transition: none;
  }
}

body.image-viewer-open {
  overflow: hidden;
}

.modal__image {
  cursor: pointer;
}

.modal__image:focus-visible {
  outline: 1px solid #d8bb7b;
  outline-offset: -3px;
}

.image-viewer[hidden] {
  display: none !important;
}

.image-viewer {
  position: fixed;
  z-index: 500;
  inset: 0;
  background: rgba(3, 3, 3, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.image-viewer.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.image-viewer__backdrop {
  position: absolute;
  inset: 0;
}

.image-viewer__stage {
  position: absolute;
  inset: 42px 40px 88px;
  display: grid;
  overflow: hidden;
  place-items: center;
  cursor: default;
  touch-action: none;
  user-select: none;
}

.image-viewer__stage.is-zoomed {
  cursor: grab;
}

.image-viewer__stage.is-zoomed:active {
  cursor: grabbing;
}

.image-viewer__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center;
  transition: transform 0.16s ease-out;
  will-change: transform;
  pointer-events: none;
}

.image-viewer__stage.is-moving .image-viewer__image {
  transition: none;
}

.image-viewer__controls {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  background: rgba(20, 20, 18, 0.84);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.image-viewer__controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 24px;
}

.image-viewer__controls button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.image-viewer__controls .image-viewer__scale {
  width: 64px;
  border-radius: 99px;
  color: #d8bb7b;
  font-size: 11px;
}

.image-viewer__close {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(12, 12, 11, 0.72);
  cursor: pointer;
}

.image-viewer__close span {
  position: absolute;
  top: 20px;
  left: 10px;
  width: 20px;
  height: 1px;
  background: #fff;
}

.image-viewer__close span:first-child {
  transform: rotate(45deg);
}

.image-viewer__close span:last-child {
  transform: rotate(-45deg);
}

.image-viewer__hint {
  position: absolute;
  right: 24px;
  bottom: 38px;
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  letter-spacing: 0.06em;
}

@media (max-width: 700px) {
  .image-viewer__stage {
    inset: 64px 10px 110px;
  }

  .image-viewer__controls {
    bottom: 34px;
  }

  .image-viewer__hint {
    right: 0;
    bottom: 12px;
    left: 0;
    text-align: center;
  }

  .image-viewer__close {
    top: 12px;
    right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-viewer,
  .image-viewer__image {
    transition: none;
  }
}
