:root {
  --ink: #111a22;
  --navy: #14222d;
  --navy-soft: #1b2c38;
  --teal: #245e67;
  --accent: #6fa7a3;
  --accent-soft: #dce9e6;
  --paper: #f3f0e9;
  --white: #fffefa;
  --muted: #6b747c;
  --line: rgba(17, 26, 34, 0.12);
  --shadow: 0 18px 55px rgba(17, 26, 34, 0.09);
  --container: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; font: inherit; }
button, select { cursor: pointer; }
button { border: 0; }
img { display: block; max-width: 100%; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
[hidden] { display: none !important; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.visually-hidden {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  min-height: 96px;
  padding: 12px 0;
  background: var(--navy);
  position: relative;
  z-index: 50;
}
.header-inner {
  height: 72px;
  padding: 0 21px 0 25px;
  border: 1px solid rgba(17, 26, 34, 0.1);
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 16px 44px rgba(2, 11, 17, 0.22);
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  position: relative;
}
.header-inner::after {
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal) 0 62%, var(--accent) 62%);
  position: absolute;
  bottom: -1px;
  left: 25px;
  content: "";
}
.logo { width: 166px; display: block; }
.logo img {
  width: 100%;
  height: auto;
  filter: hue-rotate(338deg) saturate(0.55);
}
.main-nav { justify-self: center; }
.main-nav > ul {
  margin: 0;
  padding: 3px;
  border: 1px solid rgba(17, 26, 34, 0.07);
  background: rgba(17, 26, 34, 0.035);
  display: flex;
  gap: 3px;
  list-style: none;
}
.main-nav li { position: relative; }
.main-nav > ul > li > a {
  min-height: 38px;
  padding: 0 clamp(9px, 1.1vw, 16px);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 680;
  line-height: 1;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.main-nav > ul > li > a::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scale(0.4);
  transition: 180ms ease;
}
.main-nav > ul > li > a:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 16px rgba(17, 26, 34, 0.08);
}
.main-nav > ul > li > a.is-active {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 7px 18px rgba(17, 26, 34, 0.18);
}
.main-nav > ul > li > a.is-active::before { opacity: 1; transform: scale(1); }
.nav-submenu {
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 15px 34px rgba(17, 26, 34, 0.17);
  display: flex;
  gap: 3px;
  position: absolute;
  top: 44px;
  left: 50%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -5px);
  transition: 180ms ease;
  white-space: nowrap;
}
.nav-submenu::after {
  height: 8px;
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  content: "";
}
.has-submenu:hover .nav-submenu,
.has-submenu:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-submenu a {
  min-height: 28px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-submenu a:hover, .nav-submenu a:focus-visible { color: var(--white); background: var(--navy); }
.header-cta {
  min-height: 40px;
  padding: 0 17px;
  color: var(--white);
  background: var(--teal);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.02em;
  transition: background 180ms ease, transform 180ms ease;
}
.header-cta:hover { background: var(--navy); transform: translateY(-1px); }
.header-cta span { font-size: 14px; }
.menu-button {
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  display: none;
  place-items: center;
  position: relative;
}
.menu-button span {
  width: 20px;
  height: 1px;
  background: var(--ink);
  position: absolute;
  transition: 180ms ease;
}
.menu-button span:first-child { transform: translateY(-4px); }
.menu-button span:last-child { transform: translateY(4px); }
.menu-button[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.mobile-nav { display: none; }

/* Compact intro */
.catalog-intro {
  padding: 24px 0 22px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 10%, rgba(111, 167, 163, 0.2), transparent 31%),
    linear-gradient(135deg, var(--navy), #0e1921);
  position: relative;
  overflow: hidden;
}
.catalog-intro::after {
  width: 34vw;
  height: 1px;
  background: linear-gradient(90deg, rgba(111, 167, 163, 0.55), transparent);
  position: absolute;
  right: -5vw;
  bottom: 19px;
  content: "";
}
.intro-row { display: flex; align-items: end; justify-content: space-between; gap: 36px; }
.breadcrumbs {
  margin: 0 0 13px;
  padding: 0;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  gap: 8px;
  list-style: none;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.breadcrumbs li + li::before { margin-right: 8px; content: "—"; }
.breadcrumbs a:hover { color: var(--white); }
.eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.2;
}
.eyebrow span { width: 32px; height: 2px; background: var(--accent); }
.intro-note {
  max-width: 465px;
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

/* Catalog structure */
.catalog-section { padding: 22px 0 64px; }
.location-search {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(36, 94, 103, 0.22);
  background: linear-gradient(110deg, rgba(255, 254, 250, 0.96), rgba(220, 233, 230, 0.72));
  box-shadow: 0 12px 34px rgba(17, 26, 34, 0.06);
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  position: relative;
}
.location-search::before {
  width: 3px;
  background: var(--teal);
  position: absolute;
  inset: 0 auto 0 0;
  content: "";
}
.location-search__intro span {
  color: var(--teal);
  display: block;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.location-search__intro strong {
  margin-top: 3px;
  display: block;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.18;
}
.location-search__fields { display: grid; grid-template-columns: minmax(0, 1fr) 174px; gap: 8px; }
.location-search .address-control { min-height: 45px; }
.location-search .address-control input { height: 43px; font-size: 11px; }
.location-search__submit {
  min-height: 45px;
  padding: 0 15px;
  color: var(--white);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transition: background 180ms ease;
}
.location-search__submit:hover { background: var(--teal); }
.location-search__submit b { font-size: 16px; font-weight: 500; }
.location-search .address-hint { margin: 5px 0 0; }
.location-search .address-error { margin-top: 5px; }
.catalog-layout {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.filter-panel {
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.92);
  box-shadow: 0 10px 30px rgba(17, 26, 34, 0.045);
  position: sticky;
  top: 18px;
}
.filter-panel form { padding: 18px; }
.filter-heading { padding-bottom: 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: start; }
.filter-heading span {
  color: var(--teal);
  display: block;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.filter-heading h2 {
  margin: 2px 0 0;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: 23px;
  font-weight: 500;
  line-height: 1.15;
}
.filter-close { width: 31px; height: 31px; padding: 0; background: rgba(17, 26, 34, 0.05); display: none; font-size: 21px; line-height: 1; }
.filter-group { padding: 15px 0; border-bottom: 1px solid var(--line); }
.filter-group legend {
  width: 100%;
  margin-bottom: 9px;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.filter-group--address { padding-top: 15px; }
.address-control {
  min-height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 5px;
  padding: 0 7px 0 10px;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.address-control:focus-within { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(36, 94, 103, 0.09); }
.address-control[data-selected="true"] { border-color: rgba(36, 94, 103, 0.52); background: #fbfdfc; }
.address-control > svg { width: 16px; fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.address-control input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 9px;
  font-weight: 620;
  -webkit-appearance: none;
}
.address-control input::-webkit-search-cancel-button { display: none; }
.address-control input::placeholder { color: #9ca3a7; font-weight: 500; }
.address-clear {
  width: 24px;
  height: 24px;
  padding: 0;
  color: var(--muted);
  background: rgba(17, 26, 34, 0.055);
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
}
.address-clear:hover { color: var(--white); background: var(--teal); }
.address-hint { margin-top: 7px; color: var(--muted); display: block; font-size: 7px; line-height: 1.55; }
.address-error { margin: 7px 0 0; color: #9f3e3e; font-size: 8px; line-height: 1.4; }
.address-control.has-error { border-color: #a34c4c; box-shadow: 0 0 0 2px rgba(163, 76, 76, 0.08); }
body .ymaps-2-1-79-suggest,
body .ymaps-2-1-79-suggest-list { z-index: 110 !important; }
.range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.range-inputs label { height: 38px; padding: 0 9px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; gap: 5px; }
.range-inputs label:focus-within { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(36, 94, 103, 0.09); }
.range-inputs span { color: var(--muted); font-size: 8px; }
.range-inputs input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; font-size: 10px; font-weight: 650; }
.range-inputs input::placeholder { color: #a5abae; }
.room-checks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.room-checks label { position: relative; }
.room-checks input { position: absolute; opacity: 0; pointer-events: none; }
.room-checks span {
  height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 720;
  transition: 160ms ease;
}
.room-checks input:checked + span { color: var(--white); border-color: var(--teal); background: var(--teal); }
.room-checks input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.select-wrap { display: block; position: relative; }
.select-wrap::after { position: absolute; top: 50%; right: 12px; content: "⌄"; pointer-events: none; transform: translateY(-56%); }
.select-wrap select {
  width: 100%;
  height: 39px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: #fff;
  appearance: none;
  font-size: 10px;
}
.filter-submit {
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  padding: 0 13px;
  color: var(--white);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transition: background 180ms ease;
}
.filter-submit:hover { background: var(--teal); }
.filter-submit span { font-size: 16px; }
.filter-reset { margin-top: 11px; color: var(--muted); display: block; font-size: 8px; font-weight: 680; text-align: center; text-decoration: underline; text-underline-offset: 3px; }
.filter-reset:hover { color: var(--teal); }
.filter-advanced {
  margin-top: 15px;
  padding: 11px 9px 10px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
}
.filter-advanced span { font-family: Georgia, serif; font-size: 13px; }
.filter-advanced small { grid-column: 1; color: var(--muted); font-size: 7px; }
.filter-advanced b { grid-column: 2; grid-row: 1 / 3; color: var(--teal); font-size: 14px; transition: transform 180ms ease; }
.filter-advanced:hover b { transform: translate(2px, -2px); }
.filter-backdrop { display: none; }

.results-column { min-width: 0; }
.results-toolbar {
  min-height: 62px;
  margin-bottom: 12px;
  padding: 10px 12px 10px 15px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.results-count { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 10px; }
.results-count > span { grid-column: 1 / -1; color: var(--muted); font-size: 7px; font-weight: 760; letter-spacing: 0.1em; text-transform: uppercase; }
.results-count strong { font-family: "Iowan Old Style", Baskerville, Georgia, serif; font-size: 20px; font-weight: 500; line-height: 1.15; }
.results-count small { color: var(--muted); font-size: 8px; }
.results-controls { display: flex; align-items: center; gap: 7px; }
.mobile-filter-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
}
.mobile-filter-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.sort-wrap { position: relative; }
.sort-wrap::after { position: absolute; top: 50%; right: 10px; content: "⌄"; pointer-events: none; transform: translateY(-58%); }
.sort-wrap select {
  height: 34px;
  padding: 0 29px 0 11px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  background: #fff;
  appearance: none;
  font-size: 9px;
  font-weight: 620;
}
.view-switch { padding: 3px; border: 1px solid var(--line); background: rgba(17, 26, 34, 0.035); display: flex; }
.view-switch button { min-height: 27px; padding: 0 10px; background: transparent; font-size: 8px; font-weight: 720; }
.view-switch button.is-active { color: var(--white); background: var(--navy); }
.catalog-message { margin-bottom: 11px; padding: 11px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); font-size: 10px; }
.catalog-message--error { border-color: #a34c4c; background: #f3e4e1; }

/* Offer list */
.offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.offer-card {
  min-width: 0;
  min-height: 0;
  height: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 8px 27px rgba(17, 26, 34, 0.045);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  animation: offer-enter 430ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}
.offer-card:nth-child(2) { animation-delay: 35ms; }
.offer-card:nth-child(3) { animation-delay: 70ms; }
.offer-card:nth-child(4) { animation-delay: 105ms; }
.offer-card:nth-child(5) { animation-delay: 140ms; }
.offer-card:nth-child(6) { animation-delay: 175ms; }
.offer-card::before {
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--accent));
  position: absolute;
  top: 0;
  left: 0;
  z-index: 8;
  content: "";
  transition: width 380ms ease;
}
.offer-card:hover { border-color: rgba(36, 94, 103, 0.31); box-shadow: 0 18px 45px rgba(17, 26, 34, 0.1); transform: translateY(-2px); }
.offer-card:hover::before { width: 100%; }
@keyframes offer-enter { to { opacity: 1; transform: none; } }
.offer-media {
  height: 205px;
  min-height: 205px;
  background: #d8dcda;
  flex: 0 0 205px;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}
.offer-image-link { width: 100%; height: 100%; display: block; }
.offer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 180ms ease, transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.offer-card:hover .offer-media img { transform: scale(1.025); }
.offer-media img.is-loading { opacity: 0.48; }
.offer-media::after {
  height: 42%;
  background: linear-gradient(transparent, rgba(7, 16, 22, 0.42));
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  content: "";
  pointer-events: none;
}
.offer-badge {
  min-height: 25px;
  padding: 0 9px;
  color: var(--white);
  background: rgba(20, 34, 45, 0.78);
  display: flex;
  align-items: center;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  backdrop-filter: blur(7px);
  font-size: 7px;
  font-weight: 780;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.photo-counter {
  min-height: 24px;
  padding: 0 8px;
  color: #fff;
  background: rgba(11, 21, 28, 0.59);
  display: flex;
  align-items: center;
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  backdrop-filter: blur(6px);
  font-size: 8px;
  font-weight: 650;
}
.photo-counter b { font-weight: 800; }
.slider-arrow {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #fff;
  background: rgba(11, 21, 28, 0.56);
  display: grid;
  place-items: center;
  position: absolute;
  top: 50%;
  z-index: 5;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 180ms ease, color 180ms ease, background 180ms ease;
  backdrop-filter: blur(5px);
}
.slider-arrow svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.slider-arrow--prev { left: 10px; }
.slider-arrow--next { right: 10px; }
.offer-media:hover .slider-arrow, .slider-arrow:focus-visible { opacity: 1; }
.slider-arrow:hover { color: var(--ink); background: #fff; }
.slider-arrow.is-loading { pointer-events: none; opacity: 0.5; }
.slider-progress {
  width: calc(100% - 84px);
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  position: absolute;
  bottom: 11px;
  left: 11px;
  z-index: 4;
  overflow: hidden;
}
.slider-progress i { width: 0; height: 100%; background: #fff; display: block; transition: width 220ms ease; }
.offer-content { min-width: 0; padding: 12px 14px 11px; display: flex; flex: 1; flex-direction: column; }
.offer-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.offer-heading h2 {
  min-height: 38px;
  margin: 0;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.28;
}
.offer-heading h2 a:hover { color: var(--teal); }
.offer-price { margin: 0; font-size: 13px; font-weight: 780; line-height: 1.35; text-align: right; white-space: nowrap; }
.offer-price span { color: var(--muted); font-size: 7px; font-weight: 600; }
.offer-address {
  max-width: 100%;
  margin: 7px 0 9px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
}
.offer-meta {
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.offer-meta > div { min-width: 0; padding: 0 7px; border-left: 1px solid var(--line); }
.offer-meta > div:first-child { padding-left: 0; border-left: 0; }
.offer-meta span { color: var(--muted); display: block; font-size: 6px; font-weight: 650; letter-spacing: 0.055em; text-transform: uppercase; }
.offer-meta strong { margin-top: 1px; display: block; overflow: hidden; font-size: 9px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.offer-bottom { margin-top: auto; padding-top: 7px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.offer-metro { min-width: 0; margin: 0; display: flex; align-items: center; gap: 5px; font-size: 8px; }
.offer-metro i { width: 7px; height: 7px; border: 1.5px solid var(--teal); border-radius: 50%; flex: 0 0 auto; }
.offer-metro span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-action { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.offer-action small { display: none; }
.offer-action a { display: flex; align-items: center; gap: 7px; font-size: 7px; font-weight: 780; letter-spacing: 0.05em; text-transform: uppercase; }
.offer-action a span { color: var(--teal); font-size: 14px; transition: transform 180ms ease; }
.offer-action a:hover span { transform: translateX(4px); }

.empty-catalog { padding: 70px 24px; border: 1px solid var(--line); background: var(--white); text-align: center; }
.empty-catalog > span { color: var(--accent); font-family: Georgia, serif; font-size: 54px; }
.empty-catalog h2 { margin: 7px 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.empty-catalog p { max-width: 450px; margin: 0 auto 20px; color: var(--muted); font-size: 11px; }
.empty-catalog a { padding-bottom: 3px; border-bottom: 1px solid var(--teal); color: var(--teal); font-size: 10px; font-weight: 700; }

/* Map, loaded only on demand */
.map-panel { border: 1px solid var(--line); background: var(--white); }
.map-heading { min-height: 58px; padding: 10px 13px 10px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.map-heading div { display: flex; align-items: baseline; gap: 12px; }
.map-heading strong { font-family: Georgia, serif; font-size: 17px; font-weight: 500; }
.map-heading span { color: var(--muted); font-size: 8px; }
.map-heading button { min-height: 31px; padding: 0 10px; color: var(--white); background: var(--navy); font-size: 8px; font-weight: 700; }
.map-canvas { height: min(68vh, 650px); min-height: 430px; background: #dde3df; position: relative; }
.map-loader { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 11px; }
.map-loader i { width: 30px; height: 30px; border: 2px solid rgba(36, 94, 103, 0.2); border-top-color: var(--teal); border-radius: 50%; animation: spin 750ms linear infinite; }
.map-loader span { color: var(--muted); font-size: 9px; }
@keyframes spin { to { transform: rotate(360deg); } }
.map-balloon { width: 270px; max-width: 100%; color: #111a22; font-family: Arial, sans-serif; }
.map-balloon__visual { min-height: 34px; margin: 0 0 10px; position: relative; }
.map-balloon__media { width: 100%; height: 138px; margin: 0; background: #e3e6e3; display: block; overflow: hidden; }
.map-balloon__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.map-balloon__favorite {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 26, 34, .76);
  box-shadow: 0 5px 16px rgba(15, 26, 34, .18);
  display: grid;
  place-items: center;
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  backdrop-filter: blur(7px);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.map-balloon__favorite:hover,
.map-balloon__favorite:focus-visible { color: #14222d; border-color: #dce9e6; background: #dce9e6; transform: translateY(-1px); }
.map-balloon__favorite.is-active { color: #fff; border-color: #245e67; background: #245e67; }
.map-balloon__favorite svg { width: 17px; height: 17px; fill: transparent; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.map-balloon__favorite.is-active svg { fill: currentColor; }
.map-balloon__content { padding: 0 1px 2px; }
.map-balloon strong { color: #111a22; display: block; font-size: 14px; line-height: 1.3; }
.map-balloon .map-balloon__address { margin-top: 5px; color: #68727b; display: block; font-size: 11px; line-height: 1.4; }
.map-balloon .map-balloon__price { margin-top: 7px; color: #111a22; display: block; font-size: 13px; }
.map-balloon .map-balloon__action { margin-top: 10px; color: #245e67; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; }
.map-balloon__action span { color: inherit; font-size: 14px; }
.map-balloon__header { color: #111a22; font-family: Arial, sans-serif; font-size: 14px; font-weight: 700; line-height: 1.3; }
.map-balloon--cluster { width: 100%; }
.map-cluster-caption { color: #111a22 !important; display: block; font-family: Arial, sans-serif; line-height: 1.25; }
.map-cluster-caption b { color: #111a22 !important; display: block; font-size: 12px; }
.map-cluster-caption small { margin-top: 3px; color: #5e686f !important; display: block; font-size: 10px; }
.map-balloon--search strong { color: #9f3e3e; }

/* Яндекс.Карты задают цвет пунктов кластерной карусели во встроенных стилях. */
#catalog-map [class*="balloon__content"],
#catalog-map [class*="cluster-carousel"],
#catalog-map [class*="cluster-carousel"] ymaps,
#catalog-map [class*="cluster-carousel"] span,
#catalog-map [class*="cluster-carousel"] b,
#catalog-map [class*="cluster-carousel"] small { color: #111a22 !important; }
#catalog-map [class*="cluster-carousel"] a { color: #245e67 !important; }

/* Pagination */
.pagination { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.pagination a, .pagination > span:not(.pagination-gap) {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: var(--white);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 720;
  transition: 160ms ease;
}
.pagination a:hover { color: var(--white); border-color: var(--teal); background: var(--teal); }
.pagination > span.is-current { color: var(--white); border-color: var(--navy); background: var(--navy); }
.pagination-gap { min-width: 19px; color: var(--muted); text-align: center; }
.pagination .pagination-arrow { min-width: 40px; }
.pagination-arrow svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Footer */
.site-footer { padding: 45px 0 20px; color: rgba(255, 255, 255, 0.66); background: #0f1a22; }
.footer-top { padding-bottom: 32px; display: grid; grid-template-columns: 1.75fr 0.75fr 0.8fr 1.25fr; gap: 44px; }
.footer-logo { color: var(--white); display: inline-flex; align-items: center; gap: 11px; font-family: Georgia, serif; font-size: 28px; line-height: 1; }
.footer-logo-mark { width: 23px; height: 23px; border: 6px solid var(--accent); border-right-color: var(--teal); transform: rotate(45deg); }
.footer-brand p { max-width: 300px; margin: 15px 0 0; font-size: 9px; line-height: 1.75; }
.footer-column h2, .footer-office h2 { margin: 0 0 14px; color: var(--white); font-size: 8px; font-weight: 760; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-column a { margin-top: 8px; display: block; font-size: 9px; }
.footer-column a:hover { color: var(--accent); }
.footer-office > a { color: var(--white); border-bottom: 1px solid var(--accent); font-family: Georgia, serif; font-size: 17px; }
.footer-office p { margin: 13px 0 0; font-size: 9px; line-height: 1.65; }
.footer-bottom { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; justify-content: space-between; gap: 24px; font-size: 7px; letter-spacing: 0.035em; }
.back-to-top {
  width: 43px;
  height: 43px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  background: rgba(20, 34, 45, 0.9);
  display: grid;
  place-items: center;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 180ms ease;
  backdrop-filter: blur(8px);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--teal); }
.back-to-top svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1200px) {
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .site-header { min-height: 90px; padding: 10px 0; }
  .header-inner { height: 70px; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 15px; }
  .logo { width: 148px; }
  .main-nav > ul > li > a { padding-inline: 9px; font-size: 10px; }
  .header-cta { padding-inline: 10px; }
  .catalog-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
  .offer-address { max-width: 100%; }
  .footer-top { gap: 25px; }
}

@media (max-width: 850px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .site-header { min-height: 78px; padding: 8px 0; }
  .header-inner { height: 62px; grid-template-columns: 1fr auto; }
  .logo { width: 145px; }
  .main-nav, .header-cta { display: none; }
  .menu-button { display: grid; }
  .mobile-nav {
    width: calc(100% - 30px);
    max-height: 0;
    margin: 0 auto;
    padding: 0 17px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 20px 38px rgba(17, 26, 34, 0.2);
    display: grid;
    position: absolute;
    top: 71px;
    right: 15px;
    left: 15px;
    overflow: hidden;
    opacity: 0;
    transition: max-height 250ms ease, opacity 180ms ease, padding 250ms ease;
  }
  .mobile-nav.is-open { max-height: 350px; padding-block: 9px; opacity: 1; }
  .mobile-nav a { padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 650; }
  .mobile-nav a:last-child { border-bottom: 0; }
  .mobile-nav a.is-active { color: var(--teal); }
  .catalog-intro { padding: 20px 0 18px; }
  .intro-note { max-width: 330px; }
  .location-search { grid-template-columns: 1fr; gap: 10px; }
  .location-search__intro { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
  .location-search__intro strong { margin: 0; font-size: 16px; }
  .catalog-layout { display: block; }
  .filter-panel {
    width: min(92vw, 355px);
    height: 100vh;
    height: 100dvh;
    border: 0;
    box-shadow: -20px 0 50px rgba(17, 26, 34, 0.24);
    position: fixed;
    top: 0;
    right: 0;
    z-index: 80;
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(102%);
    transition: transform 250ms ease, visibility 250ms ease;
  }
  .filter-panel.is-open { visibility: visible; transform: none; }
  .filter-panel form { padding: 22px; }
  .filter-close { display: grid; place-items: center; }
  .filter-backdrop {
    background: rgba(8, 16, 22, 0.56);
    position: fixed;
    inset: 0;
    z-index: 75;
    opacity: 0;
    visibility: hidden;
    transition: 200ms ease;
    backdrop-filter: blur(3px);
  }
  .filter-backdrop.is-open { display: block; opacity: 1; visibility: visible; }
  .mobile-filter-button { display: flex; }
  .results-toolbar { position: relative; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-office { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .container { width: min(calc(100% - 20px), var(--container)); }
  .site-header { min-height: 72px; padding: 6px 0; }
  .header-inner { height: 60px; padding-inline: 15px 10px; }
  .header-inner::after { left: 15px; }
  .logo { width: 138px; }
  .mobile-nav { width: calc(100% - 20px); top: 65px; right: 10px; left: 10px; }
  .catalog-intro { padding: 16px 0; }
  .intro-row { display: block; }
  .breadcrumbs { margin-bottom: 10px; font-size: 7px; }
  .eyebrow { font-size: 17px; }
  .eyebrow span { width: 22px; }
  .intro-note { display: none; }
  .catalog-section { padding: 12px 0 42px; }
  .location-search { margin-bottom: 9px; padding: 12px; display: block; }
  .location-search__intro { margin-bottom: 9px; display: block; }
  .location-search__intro strong { margin-top: 2px; font-size: 16px; }
  .location-search__fields { grid-template-columns: minmax(0, 1fr) 48px; }
  .location-search__submit { padding: 0; justify-content: center; }
  .location-search__submit span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .location-search__submit b { font-size: 19px; }
  .location-search .address-hint { font-size: 7px; }
  .results-toolbar { margin-bottom: 8px; padding: 9px; display: block; }
  .results-count { margin: 0 2px 9px; }
  .results-count strong { font-size: 18px; }
  .results-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
  .mobile-filter-button { justify-content: center; }
  .sort-wrap select { width: 100%; }
  .view-switch button { padding-inline: 8px; }
  .offers { grid-template-columns: 1fr; gap: 8px; }
  .offer-card {
    height: auto;
    min-height: 184px;
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
  }
  .offer-media { height: 100%; min-height: 184px; flex: none; }
  .offer-content { padding: 11px 10px 9px; }
  .offer-heading { display: block; }
  .offer-heading h2 { min-height: 0; padding-right: 2px; font-size: 15px; line-height: 1.18; }
  .offer-price { margin-top: 5px; font-size: 13px; text-align: left; }
  .offer-price span { font-size: 7px; }
  .offer-address { margin: 5px 0 7px; font-size: 7px; }
  .offer-meta { margin-bottom: 7px; padding: 6px 0; }
  .offer-meta > div { padding-inline: 5px; }
  .offer-meta span { display: none; }
  .offer-meta strong { margin: 0; font-size: 8px; text-align: center; }
  .offer-meta > div:first-child strong { text-align: left; }
  .offer-bottom { display: block; }
  .offer-metro { font-size: 7px; }
  .offer-metro i { width: 6px; height: 6px; border-width: 1px; }
  .offer-action { margin-top: 7px; justify-content: space-between; }
  .offer-action a { font-size: 7px; }
  .offer-badge { min-height: 21px; top: 7px; left: 7px; font-size: 6px; }
  .photo-counter { min-height: 21px; right: 7px; bottom: 7px; font-size: 7px; }
  .slider-progress { right: 40px; bottom: 8px; left: 8px; width: auto; }
  .slider-arrow { width: 29px; height: 29px; }
  .slider-arrow--prev { left: 7px; }
  .slider-arrow--next { right: 7px; }
  .pagination { gap: 3px; }
  .pagination a, .pagination > span:not(.pagination-gap) { min-width: 31px; height: 31px; }
  .pagination .pagination-arrow { min-width: 34px; }
  .map-heading { align-items: start; }
  .map-heading div { display: block; }
  .map-heading span { margin-top: 3px; display: block; }
  .map-canvas { height: 62vh; min-height: 390px; }
  .map-balloon__media { height: 118px; }
  .site-footer { padding-top: 35px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-office { grid-column: 1 / -1; }
  .footer-bottom { display: grid; gap: 7px; }
  .back-to-top { width: 40px; height: 40px; right: 12px; bottom: 12px; }
}

@media (max-width: 390px) {
  .results-controls { grid-template-columns: auto minmax(0, 1fr); }
  .view-switch { grid-column: 1 / -1; }
  .view-switch button { flex: 1; }
  .offer-card { grid-template-columns: 40% minmax(0, 1fr); }
  .offer-action small { display: none; }
}

@media (hover: none), (pointer: coarse) {
  .slider-arrow { opacity: 0.88; }
  .map-balloon__favorite:hover { color: #fff; border-color: rgba(255, 255, 255, .65); background: rgba(15, 26, 34, .76); transform: none; }
  .map-balloon__favorite.is-active:hover { border-color: #245e67; background: #245e67; }
  .offer-card:hover { transform: none; }
  .offer-card:hover .offer-media img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .offer-card { opacity: 1; transform: none; }
}
