.hl-catalog {
  scroll-margin-top: 96px;
  width: min(1840px, calc(100% - 7vw));
  margin: clamp(72px, 9vw, 150px) auto 0;
  color: var(--ink, #111817);
  font-family: Manrope, sans-serif;
}

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

.hl-catalog__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
  align-items: end;
  gap: 48px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(17, 24, 23, .16);
}

.hl-catalog__eyebrow,
.hl-catalog__notice-kicker {
  margin: 0 0 14px;
  color: var(--gold, #d6a15b);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hl-catalog__intro h3,
.hl-catalog__notice h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  letter-spacing: -.025em;
}

.hl-catalog__intro h3 {
  max-width: 980px;
  font-size: clamp(52px, 5.5vw, 98px);
  line-height: .92;
}

.hl-catalog__lead {
  max-width: 520px;
  margin: 0 0 5px;
  color: var(--muted, #61706c);
  font-size: clamp(17px, 1.25vw, 22px);
  line-height: 1.55;
}

.hl-catalog__filters {
  display: grid;
  grid-template-columns: minmax(280px, 1.55fr) repeat(4, minmax(120px, .65fr)) minmax(180px, .9fr) auto;
  gap: 12px;
  align-items: end;
  margin: 34px 0 20px;
  padding: 22px;
  border: 1px solid rgba(17, 24, 23, .14);
  border-radius: 24px;
  background: rgba(255, 253, 247, .76);
  box-shadow: 0 20px 60px rgba(17, 24, 23, .07);
  backdrop-filter: blur(18px);
}

.hl-catalog__room-filter {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.hl-catalog__room-filter legend,
.hl-catalog__field > span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted, #61706c);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hl-catalog__room-buttons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(17, 24, 23, .14);
  border-radius: 14px;
  background: #fffdf7;
}

.hl-catalog__room-buttons button,
.hl-catalog__reset,
.hl-catalog__more {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.hl-catalog__room-buttons button {
  min-height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  background: transparent;
  color: var(--ink, #111817);
  font-size: 14px;
  font-weight: 700;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.hl-catalog__room-buttons button:hover {
  transform: translateY(-1px);
}

.hl-catalog__room-buttons button.is-active {
  background: var(--night, #0c1312);
  color: #fffdf7;
}

.hl-catalog__field input,
.hl-catalog__field select {
  width: 100%;
  height: 54px;
  padding: 0 15px;
  border: 1px solid rgba(17, 24, 23, .14);
  border-radius: 14px;
  outline: 0;
  background: #fffdf7;
  color: var(--ink, #111817);
  font: 600 15px/1 Manrope, sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.hl-catalog__field input:focus,
.hl-catalog__field select:focus {
  border-color: var(--teal, #1f756c);
  box-shadow: 0 0 0 3px rgba(31, 117, 108, .12);
}

.hl-catalog__reset {
  height: 54px;
  padding: 0 18px;
  border-radius: 14px;
  background: rgba(17, 24, 23, .08);
  color: var(--ink, #111817);
  font-size: 14px;
  font-weight: 700;
}

.hl-catalog__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-bottom: 24px;
  color: var(--muted, #61706c);
  font-size: 14px;
}

.hl-catalog__summary [data-result-count] {
  color: var(--ink, #111817);
  font-weight: 800;
}

.hl-catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.hl-flat-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 23, .12);
  border-radius: 26px;
  background: #fffdf7;
  box-shadow: 0 18px 52px rgba(17, 24, 23, .08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.hl-flat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 68px rgba(17, 24, 23, .14);
}

.hl-flat-card__visual {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 15%, rgba(214, 161, 91, .15), transparent 35%),
    linear-gradient(145deg, #f5f0e8 0%, #ebe4d9 100%);
}

.hl-flat-card__plan {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 58px 30px 26px;
  border: 0;
  outline: 0;
  background: transparent;
  cursor: zoom-in;
}

.hl-flat-card__plan-image {
  display: block;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.hl-flat-card__plan-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(12, 19, 18, .88);
  color: #fffdf7;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.hl-flat-card__plan:hover .hl-flat-card__plan-hint,
.hl-flat-card__plan:focus-visible .hl-flat-card__plan-hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

.hl-flat-card__plan:focus-visible {
  box-shadow: inset 0 0 0 3px var(--gold, #d6a15b);
}

.hl-flat-card__badges {
  position: absolute;
  top: 18px;
  right: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
}

.hl-flat-card__badges span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 247, .88);
  color: var(--ink, #111817);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
}

.hl-flat-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.hl-flat-card__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.hl-flat-card__title-row h4 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(27px, 2vw, 36px);
  font-weight: 600;
  line-height: 1;
}

.hl-flat-card__title-row > span {
  flex: 0 0 auto;
  color: var(--muted, #61706c);
  font-size: 12px;
  font-weight: 700;
}

.hl-flat-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 18px;
  color: var(--ink, #111817);
  font-size: 14px;
}

.hl-flat-card__facts span,
.hl-flat-card__facts strong {
  position: relative;
}

.hl-flat-card__facts span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 10px 3px 0;
  border-radius: 50%;
  background: var(--gold, #d6a15b);
}

.hl-flat-card__details {
  min-height: 42px;
  margin: 12px 0 0;
  color: var(--muted, #61706c);
  font-size: 13px;
  line-height: 1.55;
}

.hl-flat-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 24, 23, .11);
}

.hl-flat-card__price strong {
  font-size: clamp(22px, 1.6vw, 29px);
  letter-spacing: -.035em;
}

.hl-flat-card__price s {
  color: rgba(97, 112, 108, .68);
  font-size: 13px;
}

.hl-catalog__empty {
  grid-column: 1 / -1;
  padding: 80px 24px;
  border: 1px solid rgba(17, 24, 23, .12);
  border-radius: 26px;
  background: #fffdf7;
  color: var(--muted, #61706c);
  text-align: center;
  font-size: 17px;
}

.hl-catalog__more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.hl-catalog__more-wrap[hidden] {
  display: none;
}

.hl-catalog__more {
  min-width: 250px;
  height: 58px;
  padding: 0 26px;
  border: 1px solid rgba(17, 24, 23, .24);
  border-radius: 999px;
  background: transparent;
  color: var(--ink, #111817);
  font-weight: 800;
}

.hl-catalog__notice {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  align-items: center;
  gap: 48px;
  margin-top: clamp(60px, 7vw, 110px);
  padding: clamp(36px, 5vw, 78px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 85% 10%, rgba(214, 161, 91, .18), transparent 28%),
    var(--night, #0c1312);
  color: #fffdf7;
  box-shadow: 0 34px 90px rgba(12, 19, 18, .24);
}

.hl-catalog__notice h3 {
  max-width: 820px;
  font-size: clamp(43px, 4.7vw, 78px);
  line-height: .95;
}

.hl-catalog__notice p:not(.hl-catalog__notice-kicker) {
  max-width: 830px;
  margin: 20px 0 0;
  color: rgba(255, 253, 247, .68);
  font-size: 15px;
  line-height: 1.65;
}

.hl-catalog__notice-button {
  display: inline-grid;
  place-items: center;
  min-width: 290px;
  min-height: 64px;
  padding: 0 28px;
  border-radius: 16px;
  background: var(--clay, #ac5647);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(172, 86, 71, .26);
  transition: transform .2s ease, background .2s ease;
}

.hl-catalog__notice-button:hover {
  transform: translateY(-2px);
  background: #bd6252;
}

.hl-plan-modal {
  width: min(920px, calc(100vw - 40px));
  max-width: none;
  height: min(88vh, 900px);
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: #f5f0e8;
  color: var(--ink, #111817);
  box-shadow: 0 36px 120px rgba(0, 0, 0, .38);
}

.hl-plan-modal[open] {
  display: grid;
}

.hl-plan-modal::backdrop {
  background: rgba(6, 12, 11, .78);
  backdrop-filter: blur(7px);
}

.hl-plan-modal__body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: clamp(28px, 5vw, 58px);
}

.hl-plan-modal__image {
  width: 100%;
  height: 100%;
  min-height: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.hl-plan-modal__body p {
  margin: 18px 0 0;
  color: var(--muted, #61706c);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.hl-plan-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--night, #0c1312);
  color: #fffdf7;
  font: 300 30px/1 Manrope, sans-serif;
  cursor: pointer;
}

@media (max-width: 1500px) {
  .hl-catalog__filters {
    grid-template-columns: minmax(280px, 1.5fr) repeat(2, minmax(130px, .7fr)) minmax(180px, .9fr);
  }

  .hl-catalog__reset {
    grid-column: -2 / -1;
  }

  .hl-catalog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hl-catalog {
    width: min(100% - 36px, 760px);
  }

  .hl-catalog__intro,
  .hl-catalog__notice {
    grid-template-columns: 1fr;
  }

  .hl-catalog__intro {
    gap: 22px;
  }

  .hl-catalog__filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hl-catalog__room-filter,
  .hl-catalog__sort {
    grid-column: 1 / -1;
  }

  .hl-catalog__reset {
    grid-column: auto;
  }

  .hl-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hl-catalog__notice-button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .hl-catalog {
    width: calc(100% - 24px);
    margin-top: 64px;
  }

  .hl-catalog__intro h3 {
    font-size: clamp(43px, 13vw, 62px);
  }

  .hl-catalog__filters {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 24px;
    padding: 14px;
    border-radius: 18px;
  }

  .hl-catalog__room-buttons {
    grid-template-columns: repeat(3, 1fr);
  }

  .hl-catalog__sort,
  .hl-catalog__reset {
    grid-column: 1 / -1;
  }

  .hl-catalog__grid {
    grid-template-columns: 1fr;
  }

  .hl-flat-card {
    border-radius: 22px;
  }

  .hl-flat-card__plan {
    padding: 54px 24px 22px;
  }

  .hl-flat-card__plan-hint {
    bottom: 12px;
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .hl-plan-modal {
    width: calc(100vw - 20px);
    height: min(86vh, 760px);
    border-radius: 22px;
  }

  .hl-catalog__notice {
    gap: 28px;
    padding: 32px 24px;
    border-radius: 26px;
  }

  .hl-catalog__notice h3 {
    font-size: clamp(40px, 12vw, 56px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hl-flat-card,
  .hl-flat-card__plan-hint,
  .hl-catalog__notice-button,
  .hl-catalog__room-buttons button {
    transition: none;
  }
}
