:root {
  --c-night: #1c2a35;
  --c-night-soft: #2a3b48;
  --c-paper: #f4f5f2;
  --c-white: #ffffff;
  --c-brass: #c8a15a;
  --c-brass-deep: #b08843;
  --c-stone: #6f747b;
  --c-line: #dcdfdb;
  --c-line-dark: rgba(255, 255, 255, 0.14);
  --c-range: #ece3d1;
  --c-on-photo: #ffffff;
  --c-on-photo-muted: rgba(255, 255, 255, 0.78);
  --c-scrim: rgba(18, 28, 36, 0.62);
  --c-dim: rgba(18, 28, 36, 0.1);
  --c-scrim-soft: rgba(18, 28, 36, 0.45);
  --c-scrim-deep: rgba(12, 20, 27, 0.94);
  --c-scrim-clear: rgba(18, 28, 36, 0);
  --f-display: "Unbounded", "Arial Black", sans-serif;
  --f-text: "Golos Text", "Segoe UI", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-s: 0.875rem;
  --fs-m: 1rem;
  --fs-l: 1.125rem;
  --fs-xl: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.4vw, 3.5rem);
  --fs-display: clamp(2.25rem, 1.2rem + 3.6vw, 4.25rem);
  --lh-tight: 1.05;
  --lh-snug: 1.25;
  --lh-text: 1.5;
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-section: clamp(4rem, 2.5rem + 5vw, 7.5rem);
  --gutter: clamp(1rem, 0.4rem + 2.4vw, 3rem);
  --header-h: 5rem;
  --r-s: 0.625rem;
  --r-m: 1rem;
  --r-l: 1.5rem;
  --r-round: 999px;
  --popover-shadow: 0 1rem 2.5rem rgba(12, 20, 27, 0.22);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-reveal: 1100ms;
  --t-drift: 14s;
  --t-appear: 900ms;
  --reveal-shift: 1.5rem;
  --t-swap: 500ms;
  --map-tiles-filter: grayscale(1) contrast(0.9) brightness(1.04);
  --booking-bar-h: 0px;
  --booking-bar-gap: 1rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img,
picture {
  display: block;
  max-width: 100%;
}

button,
input,
output {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

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

[hidden] {
  display: none;
}

.page {
  min-height: 100vh;
  background: var(--c-night);
  color: var(--c-night);
  font-family: var(--f-text);
  font-size: var(--fs-m);
  line-height: var(--lh-text);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--c-brass);
  outline-offset: 3px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 var(--sp-5);
  border-radius: var(--r-round);
  font-weight: 500;
  font-size: var(--fs-s);
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.button--brass {
  background: var(--c-brass);
  color: var(--c-night);
}
.button--brass:hover {
  background: var(--c-brass-deep);
}
.button--night {
  min-height: 3.25rem;
  padding: 0 var(--sp-6);
  background: var(--c-night);
  color: var(--c-on-photo);
  font-size: var(--fs-m);
}
.button--night:hover {
  background: var(--c-night-soft);
}
.button--ghost {
  border: 1px solid var(--c-on-photo-muted);
  color: var(--c-on-photo);
}
.button--ghost:hover {
  background: var(--c-on-photo);
  color: var(--c-night);
}

.header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: var(--header-h);
  padding: 0 var(--gutter);
  color: var(--c-on-photo);
}
.header--solid {
  position: relative;
}
.header__logo {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-l);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.header__nav {
  display: flex;
  gap: var(--sp-5);
  margin-left: auto;
}
.header__link {
  font-size: var(--fs-s);
  font-weight: 500;
  color: var(--c-on-photo-muted);
  transition: color var(--t-fast);
}
.header__link:hover, .header__link--current {
  color: var(--c-on-photo);
}
.header__burger {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  color: var(--c-on-photo);
}
.header__burger-line, .header__burger-line::before, .header__burger-line::after {
  position: absolute;
  left: 50%;
  width: 1.375rem;
  height: 2px;
  margin-left: -0.6875rem;
  background: currentColor;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.header__burger-line {
  top: 50%;
  margin-top: -1px;
}
.header__burger-line::before, .header__burger-line::after {
  content: "";
}
.header__burger-line::before {
  transform: translateY(-0.4375rem);
}
.header__burger-line::after {
  transform: translateY(0.4375rem);
}
.header__burger[aria-expanded=true] .header__burger-line {
  background: transparent;
}
.header__burger[aria-expanded=true] .header__burger-line::before {
  transform: rotate(45deg);
}
.header__burger[aria-expanded=true] .header__burger-line::after {
  transform: rotate(-45deg);
}
.header__menu {
  position: absolute;
  top: var(--header-h);
  left: var(--gutter);
  right: var(--gutter);
  display: grid;
  padding: var(--sp-2);
  border-radius: var(--r-m);
  background: var(--c-paper);
  box-shadow: var(--popover-shadow);
  color: var(--c-night);
}
.header__menu[hidden] {
  display: none;
}
.header__menu-link {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-s);
  font-weight: 500;
}
.header__menu-link:hover {
  background: var(--c-white);
}
@media (max-width: 960px) {
  .header__nav, .header__contact {
    display: none;
  }
  .header__burger {
    display: block;
  }
}
@media (min-width: 961px) {
  .header__menu {
    display: none;
  }
}

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  color: var(--c-on-photo);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 45% 40% at 50% 42%, var(--c-scrim-soft), var(--c-scrim-clear)), linear-gradient(to bottom, var(--c-scrim), var(--c-scrim-clear) 40%);
  pointer-events: none;
}
.hero__intro {
  position: absolute;
  top: var(--header-h);
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--booking-bar-h) + var(--booking-bar-gap) + 9rem);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  animation: hero-fade var(--t-reveal) var(--ease-out) 450ms both;
}
.hero__title {
  max-width: 8em;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
}
.hero__cta {
  min-height: 3.25rem;
  margin-top: var(--sp-6);
  padding: 0 var(--sp-6);
  font-size: var(--fs-m);
  pointer-events: auto;
}
.hero__lead {
  max-width: 30ch;
  margin-top: var(--sp-4);
  font-size: var(--fs-l);
  line-height: var(--lh-snug);
  color: var(--c-on-photo-muted);
}
.hero__scenes {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
}
@media (max-width: 600px) {
  .hero__intro {
    bottom: calc(var(--booking-bar-h) + var(--booking-bar-gap) + var(--sp-6));
  }
  .hero__lead {
    font-size: var(--fs-m);
  }
  .hero__scenes {
    grid-template-columns: 1fr;
  }
}

@keyframes hero-fade {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__intro {
    animation: none;
  }
}
.scene {
  --drift-delay: 0s;
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--c-night-soft);
  color: var(--c-on-photo);
  animation: scene-reveal var(--t-reveal) var(--ease-out) both;
}
.scene:nth-child(2) {
  --drift-delay: calc(var(--t-drift) / -3);
  animation-delay: 120ms;
}
.scene:nth-child(3) {
  --drift-delay: calc(var(--t-drift) / -1.5);
  animation-delay: 240ms;
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--c-scrim) 0, var(--c-scrim-clear) 60%), var(--c-dim);
}
.scene__media, .scene__image {
  width: 100%;
  height: 100%;
}
.scene__media {
  position: absolute;
  inset: 0;
}
.scene__image {
  object-fit: cover;
  animation: scene-drift var(--t-drift) ease-in-out var(--drift-delay) infinite alternate;
}
.scene__body {
  position: absolute;
  left: var(--sp-5);
  right: var(--sp-5);
  bottom: calc(var(--booking-bar-h) + var(--booking-bar-gap) + var(--sp-6));
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
}
.scene__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
}
.scene__facts {
  max-width: 30ch;
  font-size: var(--fs-s);
  line-height: var(--lh-text);
  color: var(--c-on-photo-muted);
}
.scene:focus-visible {
  outline-offset: -4px;
}
@media (max-width: 600px) {
  .scene:nth-child(n+2) {
    display: none;
  }
  .scene__body {
    display: none;
  }
}

@keyframes scene-reveal {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0);
  }
}
@keyframes scene-drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1) translateX(-0.5%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene,
  .scene__image {
    animation: none;
  }
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  align-items: end;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  margin-bottom: var(--sp-7);
  border-bottom: 1px solid var(--c-line);
}
.section-head__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}
.section-head--wide-aside {
  grid-template-columns: auto minmax(0, 1fr);
}
.section-head__text {
  color: var(--c-stone);
}
@media (max-width: 600px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    margin-bottom: var(--sp-6);
  }
}

.city-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--sp-2);
}
.city-tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 2.5rem;
  padding: 0 var(--sp-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-round);
  font-size: var(--fs-s);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.city-tabs__tab:hover {
  border-color: var(--c-night);
}
.city-tabs__tab[aria-pressed=true] {
  border-color: var(--c-night);
  background: var(--c-night);
  color: var(--c-on-photo);
}
.city-tabs__count {
  font-size: var(--fs-xs);
  color: var(--c-stone);
}
.city-tabs__tab[aria-pressed=true] .city-tabs__count {
  color: var(--c-on-photo-muted);
}
.city-tabs--catalog {
  justify-content: flex-start;
  margin-bottom: var(--sp-6);
}
@media (max-width: 600px) {
  .city-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .city-tabs::-webkit-scrollbar {
    display: none;
  }
  .city-tabs--catalog {
    margin-bottom: var(--sp-6);
  }
}

.apartments {
  padding: var(--sp-section) var(--gutter);
  background: var(--c-paper);
  color: var(--c-night);
}
.apartments__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-8) var(--sp-6);
}
.apartments__item {
  display: flex;
  scroll-margin-top: var(--sp-6);
}
.apartments__more {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-8);
}
.apartments--catalog {
  padding-top: var(--sp-7);
}
@media (max-width: 960px) {
  .apartments__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .apartments__grid {
    grid-template-columns: 1fr;
    row-gap: var(--sp-7);
  }
  .apartments__grid--preview .apartments__item:nth-child(n+4) {
    display: none;
  }
}

.apartment-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  width: 100%;
}
.apartment-card__media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--r-l);
  background: var(--c-line);
}
.apartment-card__picture, .apartment-card__image {
  width: 100%;
  height: 100%;
}
.apartment-card__picture {
  position: absolute;
  inset: 0;
}
.apartment-card__picture--hover {
  opacity: 0;
  transition: opacity var(--t-swap) ease;
}
.apartment-card__image {
  object-fit: cover;
}
.apartment-card:hover .apartment-card__picture--hover, .apartment-card:focus-visible .apartment-card__picture--hover {
  opacity: 1;
}
.apartment-card__tag {
  position: absolute;
  top: var(--sp-4);
  left: var(--sp-4);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-round);
  background: var(--c-paper);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: var(--lh-snug);
}
.apartment-card__head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.apartment-card__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
}
.apartment-card__lead {
  color: var(--c-stone);
  font-size: var(--fs-s);
}
.apartment-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  font-size: var(--fs-s);
}
.apartment-card__fact {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}
.apartment-card__icon {
  display: block;
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.apartment-card__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.apartment-card__amenity {
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--c-line);
  border-radius: var(--r-round);
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
}
.apartment-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line);
}
.apartment-card__price {
  display: flex;
  flex-direction: column;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-l);
  line-height: var(--lh-snug);
}
.apartment-card__per {
  font-family: var(--f-text);
  font-weight: 400;
  font-size: var(--fs-xs);
  color: var(--c-stone);
}
.apartment-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 var(--sp-5);
  border: 1px solid var(--c-night);
  border-radius: var(--r-round);
  font-size: var(--fs-s);
  font-weight: 500;
  line-height: 1;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.apartment-card:hover .apartment-card__more {
  background: var(--c-night);
  color: var(--c-on-photo);
}
.apartment-card:focus-visible {
  outline-offset: 6px;
  border-radius: var(--r-l);
}

@media (prefers-reduced-motion: reduce) {
  .apartment-card__picture--hover {
    transition: none;
  }
}
.catalog-head {
  padding: var(--sp-7) var(--gutter) var(--sp-8);
  color: var(--c-on-photo);
}
.catalog-head__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}
.catalog-head__text {
  max-width: 40ch;
  margin-top: var(--sp-4);
  font-size: var(--fs-l);
  line-height: var(--lh-snug);
  color: var(--c-on-photo-muted);
}
@media (max-width: 600px) {
  .catalog-head {
    padding-top: var(--sp-5);
    padding-bottom: var(--sp-7);
  }
  .catalog-head__text {
    font-size: var(--fs-m);
  }
}

.map-section {
  padding: var(--sp-section) var(--gutter);
  border-top: 1px solid var(--c-line);
  background: var(--c-paper);
  color: var(--c-night);
}
.map-section__map {
  height: 34rem;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--c-line);
}
@media (max-width: 600px) {
  .map-section__map {
    height: 26rem;
  }
}

.price-pin {
  width: auto;
  height: auto;
}
.price-pin__label {
  display: inline-block;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-round);
  background: var(--c-night);
  box-shadow: var(--popover-shadow);
  font-family: var(--f-text);
  font-weight: 600;
  font-size: var(--fs-xs);
  line-height: 1;
  color: var(--c-on-photo);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.price-pin:hover .price-pin__label {
  background: var(--c-brass);
  color: var(--c-night);
}

.map-popup .leaflet-popup-content-wrapper {
  border-radius: var(--r-m);
}
.map-popup .leaflet-popup-content {
  margin: var(--sp-4);
  font-family: var(--f-text);
}
.map-popup__address {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-s);
  font-weight: 600;
  line-height: var(--lh-snug);
}
.map-popup__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-height: 18rem;
  overflow-y: auto;
}
.map-popup__item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-1);
  border-radius: var(--r-s);
  color: var(--c-night);
}
.map-popup__item:hover {
  background: var(--c-paper);
}
.map-popup__image {
  flex: none;
  width: 4.5rem;
  height: 3.375rem;
  border-radius: var(--r-s);
  object-fit: cover;
}
.map-popup__text {
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
}

.map-tiles {
  filter: var(--map-tiles-filter);
}

.steps {
  padding: var(--sp-section) var(--gutter);
  background: var(--c-night);
  color: var(--c-on-photo);
}
.steps__head {
  max-width: 44rem;
  margin-bottom: var(--sp-7);
}
.steps__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}
.steps__lead {
  max-width: 52ch;
  margin-top: var(--sp-4);
  font-size: var(--fs-l);
  line-height: var(--lh-snug);
  color: var(--c-on-photo-muted);
}
.steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 960px) {
  .steps__list {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--c-line-dark);
}
.step__number {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1;
  color: var(--c-brass);
}
.step__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-l);
  line-height: var(--lh-snug);
}
.step__text {
  max-width: 36ch;
  color: var(--c-on-photo-muted);
}

.business {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: var(--sp-8);
  padding: var(--sp-section) var(--gutter);
  background: var(--c-paper);
  color: var(--c-night);
}
.business__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
}
.business__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}
.business__lead {
  max-width: 40ch;
  font-size: var(--fs-l);
  line-height: var(--lh-snug);
  color: var(--c-stone);
}
.business__cta {
  margin-top: var(--sp-3);
}
.business__list {
  margin: 0;
}
.business__item {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: var(--sp-5);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--c-line);
}
.business__item:last-child {
  border-bottom: 1px solid var(--c-line);
}
.business__term {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: var(--lh-snug);
}
.business__text {
  margin: 0;
  color: var(--c-stone);
}
@media (max-width: 960px) {
  .business {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
}
@media (max-width: 600px) {
  .business__item {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }
}

.stay {
  padding: var(--sp-section) var(--gutter);
  border-top: 1px solid var(--c-line);
  background: var(--c-paper);
  color: var(--c-night);
}
.stay__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: var(--sp-5);
}

.rule-card {
  padding: var(--sp-6);
  border-radius: var(--r-l);
  background: var(--c-white);
}
.rule-card__title {
  padding-bottom: var(--sp-4);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-l);
  line-height: var(--lh-snug);
}
.rule-card__list {
  margin: 0;
}
.rule-card__row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-s);
  line-height: var(--lh-snug);
}
.rule-card__term {
  color: var(--c-stone);
}
.rule-card__value {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.amenities {
  display: grid;
  grid-template-columns: minmax(0, 14rem) repeat(2, minmax(0, 1fr));
  gap: var(--sp-5) var(--sp-6);
  margin-top: var(--sp-5);
  padding: var(--sp-6);
  border-radius: var(--r-l);
  background: var(--c-white);
}
.amenities__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-l);
  line-height: var(--lh-snug);
}
.amenities__label {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-s);
  color: var(--c-stone);
}
.amenities__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.amenities__item {
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-round);
  font-size: var(--fs-s);
  line-height: var(--lh-snug);
}
@media (max-width: 960px) {
  .amenities {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .amenities {
    padding: var(--sp-5);
  }
}

.property {
  background: var(--c-paper);
  color: var(--c-night);
}
.property__top {
  padding: var(--sp-6) var(--gutter) var(--sp-5);
}
.property__type {
  margin-top: var(--sp-5);
  font-size: var(--fs-s);
  color: var(--c-stone);
}
.property__title {
  margin-top: var(--sp-2);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}
.property__lead {
  margin-top: var(--sp-2);
  font-size: var(--fs-l);
  color: var(--c-stone);
}
.property__link {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.property__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  align-items: start;
  gap: var(--sp-8);
  padding: var(--sp-7) var(--gutter) var(--sp-section);
}
.property__main {
  display: flex;
  flex-direction: column;
  gap: var(--sp-7);
  max-width: 46rem;
}
.property__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5) var(--sp-7);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--c-line);
}
.property__fact {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  font-weight: 500;
}
.property__fact-label {
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--c-stone);
}
.property__heading {
  margin-bottom: var(--sp-4);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
}
.property__text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 65ch;
}
.property__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-left: var(--sp-5);
  list-style: disc;
}
.property__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.property__chip {
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-round);
  background: var(--c-white);
  font-size: var(--fs-s);
  line-height: var(--lh-snug);
}
.property__address {
  margin-bottom: var(--sp-4);
  color: var(--c-stone);
}
.property__map {
  height: 22rem;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--c-line);
}
.property__aside {
  position: sticky;
  top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-l);
  background: var(--c-white);
  box-shadow: var(--popover-shadow);
}
.property__price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-xl);
}
.property__per {
  font-family: var(--f-text);
  font-weight: 400;
  font-size: var(--fs-s);
  color: var(--c-stone);
}
.property__book {
  min-height: 3.25rem;
  font-size: var(--fs-m);
}
.property__hint {
  font-size: var(--fs-xs);
  line-height: var(--lh-snug);
  color: var(--c-stone);
}
@media (max-width: 960px) {
  .property__layout {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
  }
  .property__aside {
    position: static;
    order: -1;
  }
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--fs-s);
}
.crumbs__link {
  color: var(--c-stone);
}
.crumbs__link:hover {
  color: var(--c-night);
}
.crumbs__link + .crumbs__link::before {
  content: "/";
  margin-right: var(--sp-2);
  color: var(--c-line);
}

.gallery {
  position: relative;
  padding: 0 var(--gutter);
}
.gallery__track {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 15rem);
  gap: var(--sp-2);
  overflow: hidden;
  border-radius: var(--r-l);
}
.gallery__item {
  display: block;
  overflow: hidden;
  background: var(--c-line);
  cursor: zoom-in;
}
.gallery__item--main {
  grid-row: span 2;
}
.gallery__item:nth-child(n+6) {
  display: none;
}
.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-swap) var(--ease-out);
}
.gallery__item:hover .gallery__image {
  transform: scale(1.03);
}
.gallery__all {
  position: absolute;
  right: calc(var(--gutter) + var(--sp-4));
  bottom: var(--sp-4);
  min-height: 2.5rem;
  padding: 0 var(--sp-4);
  border-radius: var(--r-round);
  background: var(--c-paper);
  font-size: var(--fs-s);
  font-weight: 500;
  box-shadow: var(--popover-shadow);
}
@media (max-width: 600px) {
  .gallery {
    padding: 0;
  }
  .gallery__track {
    display: flex;
    gap: var(--sp-2);
    padding: 0 var(--gutter);
    overflow-x: auto;
    border-radius: 0;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .gallery__track::-webkit-scrollbar {
    display: none;
  }
  .gallery__item, .gallery__item:nth-child(n+6) {
    display: block;
    flex: 0 0 86%;
    aspect-ratio: 4/3;
    border-radius: var(--r-m);
    scroll-snap-align: start;
  }
  .gallery__all {
    right: calc(var(--gutter) + var(--sp-3));
    bottom: var(--sp-3);
  }
}

.specs {
  margin: 0;
}
.specs__row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--c-line);
}
.specs__term {
  color: var(--c-stone);
}
.specs__value {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.faq__item {
  border-top: 1px solid var(--c-line);
}
.faq__item:last-child {
  border-bottom: 1px solid var(--c-line);
}
.faq__question {
  position: relative;
  padding: var(--sp-4) var(--sp-7) var(--sp-4) 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker {
  display: none;
}
.faq__question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: var(--sp-2);
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--t-fast);
}
.faq__item[open] .faq__question::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq__answer {
  max-width: 60ch;
  padding-bottom: var(--sp-4);
  color: var(--c-stone);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--c-scrim-deep);
  color: var(--c-on-photo);
}
.lightbox[open] {
  display: grid;
  place-items: center;
}
.lightbox::backdrop {
  background: var(--c-scrim-deep);
}
.lightbox__image {
  max-width: min(92vw, 80rem);
  max-height: 84vh;
  border-radius: var(--r-m);
  object-fit: contain;
  cursor: pointer;
}
.lightbox__counter {
  position: absolute;
  top: var(--sp-5);
  left: 50%;
  font-size: var(--fs-s);
  color: var(--c-on-photo-muted);
  transform: translateX(-50%);
}
.lightbox__button {
  position: absolute;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--c-line-dark);
  border-radius: var(--r-round);
  color: var(--c-on-photo);
}
.lightbox__button::before, .lightbox__button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
}
.lightbox__button--close {
  top: var(--sp-4);
  right: var(--sp-4);
}
.lightbox__button--close::before, .lightbox__button--close::after {
  width: 1.125rem;
  height: 1.5px;
  background: currentColor;
}
.lightbox__button--close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.lightbox__button--close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.lightbox__button--prev, .lightbox__button--next {
  top: 50%;
  margin-top: -1.5rem;
}
.lightbox__button--prev::before, .lightbox__button--next::before {
  width: 0.625rem;
  height: 0.625rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}
.lightbox__button--prev {
  left: var(--sp-4);
}
.lightbox__button--prev::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}
.lightbox__button--next {
  right: var(--sp-4);
}
.lightbox__button--next::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

.map-pin {
  display: grid;
  place-items: center;
}
.map-pin__dot {
  width: 1.75rem;
  height: 1.75rem;
  border: 3px solid var(--c-white);
  border-radius: var(--r-round);
  background: var(--c-brass);
  box-shadow: var(--popover-shadow);
}

.apartments--similar {
  border-top: 1px solid var(--c-line);
}

.reviews {
  padding: var(--sp-section) 0;
  background: var(--c-night);
  color: var(--c-on-photo);
}
.reviews__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding: 0 var(--gutter);
  margin-bottom: var(--sp-7);
  text-align: center;
}
.reviews__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}
.reviews__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3) var(--sp-7);
}
.reviews__fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--fs-s);
  color: var(--c-on-photo-muted);
}
.reviews__fact-value {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-l);
  color: var(--c-on-photo);
}
.reviews__summary {
  padding: var(--sp-2) var(--sp-5);
  border: 1px solid var(--c-line-dark);
  border-radius: var(--r-round);
  font-size: var(--fs-s);
  color: var(--c-on-photo-muted);
}
.reviews__summary:empty {
  display: none;
}
.reviews__viewport {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}
.reviews__track {
  display: flex;
  gap: var(--sp-5);
  width: max-content;
  padding: 0 var(--gutter);
  animation: reviews-marquee var(--reviews-duration, 60s) linear infinite;
}
.reviews__viewport:hover .reviews__track, .reviews__viewport:focus-within .reviews__track {
  animation-play-state: paused;
}
.reviews__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
  padding: 0 var(--gutter);
}
.reviews__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-s);
  font-weight: 500;
  color: var(--c-on-photo-muted);
}
.reviews__link:hover {
  color: var(--c-on-photo);
}
.reviews__logo {
  display: block;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
}
.reviews__link-text {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
@media (prefers-reduced-motion: reduce) {
  .reviews__viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .reviews__track {
    animation: none;
  }
}

.review {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  width: 20rem;
  padding: var(--sp-5);
  border: 1px solid var(--c-line-dark);
  border-radius: var(--r-l);
  background: var(--c-night-soft);
  scroll-snap-align: start;
}
.review__head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.review__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-round);
  background: var(--c-night);
  font-size: var(--fs-s);
  font-weight: 600;
  line-height: 1;
  color: var(--c-brass);
}
.review__name {
  font-weight: 600;
  font-size: var(--fs-s);
  line-height: var(--lh-snug);
}
.review__date {
  font-size: var(--fs-xs);
  color: var(--c-on-photo-muted);
}
.review__stars {
  display: flex;
  gap: 0.125rem;
  color: var(--c-brass);
}
.review__star {
  display: block;
  width: 0.875rem;
  height: 0.875rem;
  fill: currentColor;
}
.review__star--empty {
  opacity: 0.25;
}
.review__text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  font-size: var(--fs-s);
  line-height: var(--lh-text);
  color: var(--c-on-photo-muted);
}
.review--open .review__text {
  display: block;
}
.review__more {
  align-self: flex-start;
  margin-top: auto;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--c-brass);
}
@media (max-width: 600px) {
  .review {
    width: 17rem;
  }
}

@keyframes reviews-marquee {
  to {
    transform: translateX(-50%);
  }
}
.footer {
  padding: var(--sp-8) var(--gutter) var(--sp-6);
  border-top: 1px solid var(--c-line-dark);
  background: var(--c-night);
  color: var(--c-on-photo);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.footer__logo {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-xl);
  letter-spacing: -0.01em;
}
.footer__about {
  max-width: 30ch;
  font-size: var(--fs-s);
  color: var(--c-on-photo-muted);
}
.footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
}
.footer__heading {
  margin-bottom: var(--sp-1);
  font-size: var(--fs-xs);
  color: var(--c-on-photo-muted);
}
.footer__link {
  font-size: var(--fs-s);
  font-weight: 500;
}
.footer__link:hover {
  color: var(--c-brass);
}
.footer__text {
  max-width: 24ch;
  font-size: var(--fs-s);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-line-dark);
}
.footer__copy {
  font-size: var(--fs-xs);
  color: var(--c-on-photo-muted);
}
.footer--bar-space {
  padding-bottom: calc(var(--sp-6) + var(--booking-bar-h) + 2 * var(--booking-bar-gap));
}
.footer .cs-sign {
  --cs-sign-accent: var(--c-brass);
}
@media (max-width: 960px) {
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .footer__top {
    grid-template-columns: 1fr;
  }
}

.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
  min-height: 60vh;
  padding: var(--sp-section) var(--gutter);
  background: var(--c-paper);
  color: var(--c-night);
}
.not-found__code {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  color: var(--c-brass);
}
.not-found__title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}
.not-found__text {
  max-width: 48ch;
  font-size: var(--fs-l);
  line-height: var(--lh-snug);
  color: var(--c-stone);
}
.not-found__cta {
  margin-top: var(--sp-4);
}

.booking-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}
.booking-bar iframe {
  pointer-events: auto;
}
.booking-bar__fallback {
  display: block;
  padding: var(--sp-3) var(--gutter);
  font-weight: 500;
  color: var(--c-on-photo);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  pointer-events: auto;
}

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-shift));
  transition: opacity var(--t-appear) var(--ease-out), transform var(--t-appear) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.js-reveal [data-reveal=card] {
  opacity: 1;
  transform: none;
}

.js-reveal [data-reveal=card] .apartment-card__media {
  clip-path: inset(100% 0 0 0);
  transition: clip-path var(--t-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-reveal [data-reveal=card] .apartment-card__media ~ * {
  opacity: 0;
  transform: translateY(var(--reveal-shift));
  transition: opacity var(--t-appear) var(--ease-out), transform var(--t-appear) var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0ms) + 250ms);
}

.js-reveal [data-reveal=card].is-revealed .apartment-card__media {
  clip-path: inset(0);
}

.js-reveal [data-reveal=card].is-revealed .apartment-card__media ~ * {
  opacity: 1;
  transform: none;
}
