:root {
  --bg: #F2EEE5;
  --card: #FFFFFF;
  --ink: #16120E;
  --muted: #6E695F;
  --muted-2: #9A958B;
  --red: #F5333A;
  --red-hover: #D92F35;
  --red-soft: #FDE8E6;
  --red-line: #F3C5C1;
  --line: #E7E1D5;
  --line-strong: #DED7C8;
  --shadow: 0 1px 2px rgba(22, 18, 14, .04), 0 12px 30px rgba(22, 18, 14, .07);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Golos Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }

a { color: inherit; }
button { font: inherit; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  background: rgba(242, 238, 229, .94);
  border-bottom: 1px solid var(--line);
}
.home-page .site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  background: linear-gradient(180deg, rgba(22, 18, 14, .48), rgba(22, 18, 14, 0));
  border-bottom: 0;
}
.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  padding: 0;
}
.brand-logo {
  width: min(252px, 34vw);
  height: 52px;
  display: block;
  object-fit: contain;
  object-position: left center;
  background: transparent;
}
.header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}
.agent-access-slot {
  min-width: 0;
  display: flex;
  align-items: center;
}
.agent-access-button,
.agent-status {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.agent-access-button {
  border: 1px solid var(--red-line);
  background: var(--card);
  color: var(--red);
  text-decoration: none;
  cursor: pointer;
}
.agent-access-button:hover,
.agent-access-button:focus-visible {
  border-color: var(--red);
  background: var(--red-soft);
}
.home-page .agent-access-button {
  background: rgba(255, 255, 255, .9);
}
.agent-status {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .68);
  color: var(--muted);
}
.agent-status-approved {
  border-color: #B7DCC8;
  background: #EAF6EF;
  color: #176A43;
}
.agent-status-approved span {
  margin-right: 7px;
  font-size: 17px;
}
.agent-status-pending {
  border-color: #E5D1A9;
  background: #FAF3E4;
  color: #76520F;
}
.agent-status-loading {
  color: var(--muted-2);
}
.header-phone {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, .46);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.home-page .header-phone {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .88);
}
.header-phone:hover,
.header-phone:focus-visible {
  border-color: var(--red-line);
  background: var(--red-soft);
}
.header-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--red);
  color: white;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-action:hover,
.header-action:focus-visible {
  background: var(--red-hover);
}

.home-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: #2d2a25;
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(22, 18, 14, .56), rgba(22, 18, 14, .22)),
    var(--hero-image, url("assets/guide-hero.png")) center / cover no-repeat;
  transform: scale(1.01);
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(22, 18, 14, .12), rgba(22, 18, 14, .72));
}
.home-hero-inner {
  padding: 110px 0 70px;
  color: #fff;
}
.hero-location {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  backdrop-filter: blur(10px);
}
.hero-location span {
  color: var(--red);
  font-size: 20px;
  line-height: 1;
}
.home-hero h1 {
  max-width: 960px;
  margin: 92px 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: .96;
  text-align: left;
  letter-spacing: 0;
}
.home-hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .88);
  font-size: 18px;
  text-align: left;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-primary,
.hero-secondary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
}
.hero-primary {
  background: var(--red);
  color: #fff;
}
.hero-secondary {
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  backdrop-filter: blur(10px);
}
.hero-primary:hover,
.hero-primary:focus-visible {
  background: var(--red-hover);
}
.hero-secondary:hover,
.hero-secondary:focus-visible {
  background: rgba(255, 255, 255, .24);
}

.catalog-toolbar {
  position: relative;
  z-index: 5;
  margin-top: -38px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid rgba(231, 225, 213, .92);
  border-radius: 22px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 42px rgba(22, 18, 14, .12);
}
.toolbar-main,
.toolbar-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar-main {
  margin-bottom: 10px;
}
.toolbar-search,
.toolbar-field {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: #fff;
}
.toolbar-search {
  flex: 1 1 360px;
}
.toolbar-field {
  flex: 0 1 250px;
}
.toolbar-field.price-field {
  flex-basis: 160px;
}
.toolbar-field.currency-field {
  flex: 0 0 132px;
}
.toolbar-search span,
.toolbar-field span {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.toolbar-search input,
.toolbar-field input,
.toolbar-field select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}
.toolbar-search:focus-within,
.toolbar-field:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(245, 51, 58, .12);
}
.toolbar-group,
.toolbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.toolbar-actions {
  margin-left: auto;
}
.toolbar-chip,
.toolbar-map,
.toolbar-reset,
.toolbar-show {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.toolbar-chip {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--muted);
}
.toolbar-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.toolbar-map {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}
.toolbar-reset {
  border: 1px solid var(--red-line);
  background: var(--red-soft);
  color: var(--red);
}
.toolbar-show {
  border: 0;
  background: var(--red);
  color: #fff;
}
.toolbar-show:hover,
.toolbar-show:focus-visible {
  background: var(--red-hover);
}
.hero-search-card {
  position: relative;
  z-index: 2;
  max-width: 1120px;
}
.hero-search-tabs {
  display: flex;
  align-items: flex-end;
  padding-left: 0;
}
.hero-tab {
  min-height: 56px;
  padding: 0 34px;
  border: 0;
  border-radius: 18px 18px 0 0;
  background: var(--card);
  color: var(--ink);
  font-weight: 800;
  cursor: default;
}
.hero-search-row {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr 1.35fr auto minmax(210px, auto);
  align-items: stretch;
  gap: 0;
  padding: 10px;
  border-radius: 0 22px 22px 22px;
  background: var(--card);
  box-shadow: 0 22px 52px rgba(22, 18, 14, .22);
}
.hero-select {
  position: relative;
  min-width: 0;
}
.hero-select summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}
.hero-select summary::-webkit-details-marker { display: none; }
.hero-select summary::after {
  content: "⌄";
  color: var(--muted-2);
  font-size: 18px;
}
.hero-select[open] summary,
.hero-select summary:hover,
.hero-select summary:focus-visible {
  background: #F7F5F0;
}
.hero-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 25;
  width: min(640px, calc(100vw - 48px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 20px 46px rgba(22, 18, 14, .18);
}
.hero-dropdown h2 {
  margin: 0 0 14px;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  line-height: 1.1;
}
.type-options,
.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.type-option,
.hero-chip {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--card);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
.type-option span {
  color: var(--red);
  font-size: 20px;
}
.type-option.is-active,
.hero-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.type-option.is-active span { color: #fff; }
.hero-price-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.hero-price-fields label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.hero-price-fields input,
.hero-dropdown select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}
.hero-map-button,
.hero-show-button {
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}
.hero-map-button {
  margin-left: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}
.hero-show-button {
  border: 0;
  background: var(--red);
  color: #fff;
  cursor: pointer;
}
.hero-show-button:hover,
.hero-show-button:focus-visible {
  background: var(--red-hover);
}

.filters {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(242, 238, 229, .96);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.home-page .filters {
  margin-top: 0;
  background: rgba(242, 238, 229, .96);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.filters-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.home-page .filters-inner {
  min-height: 62px;
  padding-top: 8px;
  padding-bottom: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-group + .filter-group {
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
}
.room-filter {
  gap: 6px;
}
.room-filter .chip {
  min-width: 38px;
  padding: 0 11px;
}
.chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease, transform .14s ease;
}
.chip:hover { border-color: var(--muted-2); color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.link-chip {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.chip.accent.is-active {
  background: var(--red);
  border-color: var(--red);
}
.request-jump {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(245, 51, 58, .35);
  background: var(--red-soft);
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background .14s ease, border-color .14s ease, color .14s ease, transform .14s ease;
}
.request-jump:hover,
.request-jump:focus-visible {
  border-color: var(--red);
  background: #fff;
  color: var(--ink);
}
.request-jump.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.catalog-search {
  min-height: 38px;
  flex: 1 1 280px;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 8px 20px rgba(22, 18, 14, .04);
}
.home-page .catalog-search,
.home-page .filter-field {
  min-height: 38px;
  border-radius: 14px;
}
.home-page .catalog-search {
  max-width: 420px;
  flex: 1 1 280px;
}
.home-page .filter-field {
  border-color: var(--line-strong);
  background: var(--card);
}
.home-page .filter-field.compact {
  max-width: 180px;
}
.filter-field {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 8px 20px rgba(22, 18, 14, .04);
}
.filter-field.compact {
  max-width: 160px;
}
.filter-field span {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.catalog-search span {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
}
.catalog-search input,
.filter-field input,
.filter-field select {
  width: 100%;
  min-width: 120px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}
.filter-field.compact input {
  min-width: 58px;
}
.filter-field select {
  min-width: 180px;
  cursor: pointer;
}
.catalog-search input::placeholder,
.filter-field input::placeholder {
  color: var(--muted-2);
  opacity: .8;
}
.catalog-search:focus-within,
.filter-field:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(245, 51, 58, .12);
}
.advanced-filters {
  flex: 1 1 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
}
.advanced-filters summary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
.advanced-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}
.reset-filters {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--red-line);
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.reset-filters:hover,
.reset-filters:focus-visible {
  background: var(--red-soft);
}
.filter-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}
.map-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.map-link:hover,
.map-link:focus-visible {
  border-color: var(--red-line);
  background: var(--red-soft);
  color: var(--ink);
}
.result-count {
  color: var(--muted-2);
  font-weight: 600;
  white-space: nowrap;
}

.catalog { padding: 16px 0 18px; }
.map-promo {
  position: relative;
  min-height: 320px;
  margin-top: 22px;
  margin-bottom: 26px;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(11, 22, 32, .94) 0%, rgba(11, 22, 32, .78) 42%, rgba(11, 22, 32, .34) 100%),
    url("assets/map-preview.svg") center / cover no-repeat,
    #18242e;
  box-shadow: 0 22px 54px rgba(22, 18, 14, .16);
}
.map-promo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 42%);
}
.map-promo-content {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
}
.map-promo-eyebrow {
  display: block;
  margin-bottom: 14px;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.map-promo h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 66px);
  line-height: .98;
}
.map-promo p {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
}
.map-promo-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  margin-top: 34px;
  padding: 0 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}
.map-promo-action:hover,
.map-promo-action:focus-visible {
  background: var(--red);
  color: #fff;
}
.map-promo-price {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #162230;
  font-family: Manrope, sans-serif;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.map-promo-price.price-one {
  top: 23%;
  right: 34%;
}
.map-promo-price.price-two {
  right: 15%;
  top: 47%;
  background: var(--red);
  color: #fff;
}
.map-promo-price.price-three {
  right: 28%;
  bottom: 18%;
}
.requests {
  padding: 12px 0 18px;
}
.requests-heading {
  margin-bottom: 16px;
}
.request-count {
  color: var(--muted-2);
  font-weight: 700;
  white-space: nowrap;
}
.requests-grid .request-card {
  border-color: rgba(245, 51, 58, .25);
  background: #fffaf6;
}
.requests-grid .request-card-rent {
  border-color: rgba(47, 93, 80, .28);
}
.requests-grid .request-card-buy {
  border-color: rgba(224, 168, 46, .42);
  background: #fffaf0;
}
.request-state {
  grid-column: 1 / -1;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.card:hover,
.card:focus-visible {
  border-color: var(--red);
  box-shadow: 0 1px 2px rgba(22, 18, 14, .04), 0 16px 38px rgba(22, 18, 14, .1);
  transform: translateY(-2px);
}
.photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #E8E1D4;
}
.photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 8px 20px rgba(22, 18, 14, .16);
}
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-arrow:hover { background: white; }
.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(22, 18, 14, .58);
  transform: translateX(-50%);
}
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
}
.carousel-dot.is-active {
  width: 18px;
  background: white;
}
.photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(217, 47, 53, .08), rgba(22, 18, 14, .05)),
    #E8E1D4;
}
.placeholder-pin {
  width: 48px;
  height: 48px;
  color: rgba(22, 18, 14, .42);
}
.request-cover {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 18px),
    #2F5D50;
  color: #FFFFFF;
}
.request-cover-rent {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 18px),
    #2F5D50;
}
.request-cover-buy {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 1px, transparent 1px 18px),
    #8C6419;
}
.request-cover span {
  font-family: "Manrope", sans-serif;
  font-size: clamp(44px, 6vw, 68px);
  line-height: .9;
  font-weight: 800;
  letter-spacing: 0;
}
.request-cover em {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .88);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}
.request-cover strong {
  font-size: 18px;
  font-weight: 800;
}
.request-cover small {
  max-width: 100%;
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
  font-weight: 600;
}
.badge-row {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.badge,
.deal-tag {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}
.badge {
  border: 1px solid var(--red-line);
  background: var(--red-soft);
  color: var(--red);
}
.deal-tag {
  margin-left: auto;
  background: rgba(22, 18, 14, .82);
  color: white;
  backdrop-filter: blur(4px);
}
.request-tag {
  background: #2F5D50;
}
.request-tag-rent {
  background: #2F5D50;
}
.request-tag-buy {
  background: #8C6419;
}
.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}
.agent-commission {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--red-line);
  border-radius: 11px;
  background: var(--red-soft);
  color: var(--ink);
  line-height: 1.2;
}
.agent-commission span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.agent-commission strong {
  color: var(--red);
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}
.agent-commission-modal,
.agent-commission-object {
  width: min(100%, 360px);
}
.price {
  font-family: "Manrope", sans-serif;
  font-size: 25px;
  line-height: 1.05;
  font-weight: 800;
}
.price small {
  color: var(--muted-2);
  font-family: "Golos Text", sans-serif;
  font-size: 14px;
  font-weight: 500;
}
.title {
  margin: -2px 0 0;
  font-weight: 700;
  line-height: 1.32;
}
.district {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
}
.district svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 3px;
  fill: var(--red);
}
.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.spec {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--muted);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr 128px;
  gap: 10px;
  margin-top: 4px;
}
.card-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  padding: 0 12px;
}
.card-action.primary:hover {
  background: var(--ink);
  color: white;
}
.card-action.secondary {
  background: var(--red-soft);
  border-color: var(--red-line);
  color: var(--red);
}
.card-action.secondary:hover {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.state {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .54);
  padding: 32px 20px;
}
.state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 22px;
}
.state-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.state-action:hover,
.state-action:focus-visible {
  background: var(--ink);
  color: #fff;
}
.skeleton {
  min-height: 390px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #E8E1D4 0%, #F8F4EC 48%, #E8E1D4 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.trust-line {
  padding: 8px 0 30px;
}
.trust-line p {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.object-page {
  padding: 24px 0 34px;
}
.object-shell {
  display: grid;
  gap: 16px;
}
.back-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}
.back-link:hover,
.back-link:focus-visible {
  color: var(--red);
}
.object-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
  gap: 24px;
  align-items: start;
}
.object-gallery,
.object-info,
.object-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.object-gallery {
  overflow: hidden;
}
.object-main-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #E8E1D4;
  touch-action: pan-y;
}
.object-main-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.object-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 10px 24px rgba(22, 18, 14, .18);
}
.object-gallery-arrow.prev { left: 14px; }
.object-gallery-arrow.next { right: 14px; }
.object-gallery-arrow:hover,
.object-gallery-arrow:focus-visible {
  background: white;
}
.object-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(22, 18, 14, .44);
  backdrop-filter: blur(6px);
}
.object-gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  cursor: pointer;
}
.object-gallery-dot.is-active {
  width: 24px;
  background: white;
}
.object-gallery-dot:focus-visible {
  outline: 3px solid rgba(245, 51, 58, .45);
  outline-offset: 3px;
}
.object-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: #FBF9F4;
}
.object-thumb {
  aspect-ratio: 4 / 3;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.object-thumb.is-active {
  border-color: var(--red);
}
.object-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.object-photo-placeholder {
  min-height: 420px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 51, 58, .14), transparent 28%),
    #E8E1D4;
}
.object-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  align-self: stretch;
}
.object-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.actual-tag,
.segment-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #F7F3EB;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.object-price {
  font-family: "Manrope", sans-serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  line-height: 1;
}
.object-price small {
  color: var(--muted-2);
  font-size: .42em;
}
.object-info h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}
.object-location {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
}
.object-location svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: var(--red);
  margin-top: 2px;
}
.object-specs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.object-description {
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}
.object-description h2 {
  margin: 0 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
}
.object-description p {
  margin: 0;
  color: var(--muted);
  white-space: pre-line;
}
.object-characteristics .detail-list {
  margin-top: 0;
}
.object-characteristics .detail-row:last-child {
  border-bottom: 0;
}
.object-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}
.object-phone {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.object-phone a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.object-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  text-align: center;
}
.object-state strong {
  font-family: "Manrope", sans-serif;
  font-size: 28px;
}
.object-state span {
  color: var(--muted);
}

.specialists {
  padding: 0 0 38px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.section-heading h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.12;
  letter-spacing: 0;
}
.section-heading p {
  max-width: 620px;
  margin: 6px 0 0;
  color: var(--muted);
}
.specialist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.specialist-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.specialist-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  background: #E8E1D4;
}
.specialist-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 2px;
}
.specialist-role {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.specialist-body h3,
.specialist-modal-info h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  line-height: 1.12;
  letter-spacing: 0;
}
.specialist-body h3 {
  font-size: 24px;
}
.stars {
  display: inline-flex;
  margin-top: 8px;
  color: #F2B01E;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
}
.specialist-phone {
  display: block;
  width: fit-content;
  margin-top: 8px;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}
.specialist-actions {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 10px;
}
.review-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
.review-button:hover,
.review-button:focus-visible {
  background: var(--ink);
  color: white;
}
.specialist-modal {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  padding: 28px;
}
.specialist-modal-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  background: #E8E1D4;
}
.specialist-modal-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.review-item {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.review-item p {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}
.review-item footer {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner span {
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}
.footer-contacts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-inner a { text-decoration: none; font-weight: 700; }

.detail-modal[hidden] { display: none; }
.agent-modal[hidden] { display: none; }
.agent-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}
.agent-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(22, 18, 14, .58);
  cursor: pointer;
}
.agent-modal-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 24px 80px rgba(22, 18, 14, .28);
}
.agent-modal-scroll {
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  padding: 30px;
}
.agent-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.agent-modal-heading {
  padding-right: 48px;
}
.agent-modal-kicker {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.agent-modal-heading h2,
.agent-success h2 {
  margin: 6px 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  line-height: 1.12;
}
.agent-modal-heading p,
.agent-success p {
  margin: 0;
  color: var(--muted);
}
.agent-form {
  margin-top: 24px;
}
.agent-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.agent-field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}
.agent-field-wide {
  grid-column: 1 / -1;
}
.agent-field > span {
  font-size: 14px;
  font-weight: 700;
}
.agent-field input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  padding: 0 13px;
  font: inherit;
}
.agent-field input[type="file"] {
  padding: 11px 13px;
}
.agent-field input:hover {
  border-color: var(--muted-2);
}
.agent-field input:focus {
  border-color: var(--red);
  outline: 3px solid rgba(245, 51, 58, .16);
  outline-offset: 1px;
}
.agent-field small {
  color: var(--muted-2);
  font-size: 12px;
}
.agent-field.is-disabled {
  opacity: .48;
}
.agent-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.agent-check input {
  width: 20px;
  height: 20px;
  flex: none;
  accent-color: var(--red);
}
.agent-private-check {
  min-height: 50px;
  align-self: end;
  padding: 0 4px;
}
.agent-rules-check {
  margin-top: 20px;
}
.agent-form-error {
  margin: 14px 0 0;
  border: 1px solid var(--red-line);
  border-radius: 10px;
  background: var(--red-soft);
  color: #A32127;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}
.agent-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  border: 0;
  border-radius: 12px;
  background: var(--red);
  color: white;
  font-weight: 800;
  cursor: pointer;
}
.agent-submit:hover,
.agent-submit:focus-visible {
  background: var(--red-hover);
}
.agent-submit:disabled {
  cursor: wait;
  opacity: .64;
}
.agent-success {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}
.agent-success-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #EAF6EF;
  color: #176A43;
  font-size: 30px;
  font-weight: 800;
}
.agent-success .agent-submit {
  max-width: 280px;
}
.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(22, 18, 14, .54);
  cursor: pointer;
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 24px 80px rgba(22, 18, 14, .24);
}
.modal-close {
  position: sticky;
  top: 14px;
  float: right;
  z-index: 3;
  width: 42px;
  height: 42px;
  margin: 14px 14px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(22, 18, 14, .12);
}
.modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 26px;
  padding: 28px;
}
.modal-photo {
  min-width: 0;
}
.modal-main-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  background: #E8E1D4;
}
.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.modal-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  background: #E8E1D4;
}
.modal-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-right: 46px;
}
.modal-tags .deal-tag {
  margin-left: 0;
}
.segment-tag {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  padding: 0 10px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.modal-info h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}
.modal-price {
  font-family: "Manrope", sans-serif;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
}
.modal-price small {
  color: var(--muted-2);
  font-family: "Golos Text", sans-serif;
  font-size: 17px;
  font-weight: 500;
}
.modal-location {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}
.modal-location svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
  fill: var(--red);
}
.detail-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.detail-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.detail-row span {
  color: var(--muted);
  font-size: 14px;
}
.detail-row strong {
  min-width: 0;
  font-weight: 700;
}
.modal-actions {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.map-page {
  padding: 24px 0 34px;
}
.map-hero {
  padding: 10px 0 16px;
}
.map-hero h1 {
  max-width: 760px;
  margin: 8px 0 6px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
  letter-spacing: 0;
}
.map-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.zone-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
}
.zone-map {
  min-height: 640px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #E8E1D4;
  box-shadow: var(--shadow);
}
.zone-shape {
  transition: opacity .14s ease, fill-opacity .14s ease, stroke-width .14s ease;
}
.zone-shape-gold {
  filter: drop-shadow(0 0 7px rgba(242, 183, 5, .95)) drop-shadow(0 1px 2px rgba(22, 18, 14, .25));
}
.zone-panel {
  min-width: 0;
  max-height: 640px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.zone-panel h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  line-height: 1.1;
}
.zone-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.zone-list {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
  display: grid;
  gap: 10px;
}
.zone-item {
  width: 100%;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #FBFAF6;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.zone-item:hover,
.zone-item:focus-visible,
.zone-item.is-active {
  border-color: var(--red-line);
  background: var(--red-soft);
  box-shadow: 0 10px 22px rgba(22, 18, 14, .08);
}
.zone-item.is-active {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.zone-item.is-dimmed {
  opacity: .58;
}
.zone-dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 999px;
}
.zone-item strong {
  display: block;
  margin-bottom: 3px;
  font-weight: 800;
}
.zone-item small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.zone-tooltip {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font: 800 14px/1 "Manrope", sans-serif;
  box-shadow: 0 8px 20px rgba(22, 18, 14, .14);
}
.zone-popup .leaflet-popup-content {
  display: grid;
  gap: 5px;
  margin: 13px 15px;
  font-family: "Golos Text", system-ui, sans-serif;
}
.zone-popup .leaflet-popup-content strong {
  font: 800 17px/1.1 "Manrope", sans-serif;
}
.zone-popup .leaflet-popup-content span {
  color: var(--muted);
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (max-width: 980px) {
  .header-controls {
    gap: 8px;
  }
  .header-phone {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }
  .agent-access-button,
  .agent-status {
    padding: 0 11px;
    font-size: 13px;
  }
  .object-detail {
    grid-template-columns: 1fr;
  }
  .zone-map-shell {
    grid-template-columns: 1fr;
  }
  .zone-map {
    min-height: 560px;
  }
  .zone-panel {
    max-height: none;
  }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specialist-grid { grid-template-columns: 1fr; }
  .modal-layout {
    grid-template-columns: 1fr;
  }
  .specialist-modal {
    grid-template-columns: 1fr;
  }
  .specialist-modal-photo {
    max-width: 280px;
  }
}

@media (max-width: 680px) {
  .wrap { width: min(100% - 32px, 1180px); }
  .header-inner {
    min-height: 68px;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
  }
  .brand-logo {
    width: min(190px, 48vw);
    height: 44px;
  }
  .header-controls {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 2;
  }
  .agent-access-slot {
    width: auto;
  }
  .agent-access-button,
  .agent-status {
    width: 100%;
    min-height: 48px;
    padding: 6px 10px;
    white-space: normal;
  }
  .header-phone {
    display: none;
  }
  .header-action {
    width: 100%;
    min-height: 48px;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }
  .home-hero {
    min-height: 440px;
  }
  .home-hero-inner {
    padding: 96px 0 54px;
  }
  .hero-location {
    min-height: 36px;
    padding: 0 14px;
    font-size: 14px;
  }
  .home-hero h1 {
    margin-top: 44px;
    font-size: 36px;
    text-align: left;
  }
  .home-hero p {
    margin: 0;
    max-width: 300px;
    font-size: 15px;
    text-align: left;
  }
  .hero-actions {
    margin-top: 22px;
  }
  .hero-primary,
  .hero-secondary {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }
  .catalog-toolbar {
    margin-top: -24px;
    padding: 12px;
    border-radius: 18px;
  }
  .toolbar-main,
  .toolbar-filters {
    align-items: stretch;
  }
  .toolbar-search,
  .toolbar-field,
  .toolbar-field.price-field {
    flex: 1 1 100%;
  }
  .toolbar-field.currency-field {
    flex: 1 1 48%;
  }
  .toolbar-group {
    width: 100%;
  }
  .toolbar-actions {
    width: 100%;
    margin-left: 0;
  }
  .toolbar-map,
  .toolbar-reset,
  .toolbar-show {
    flex: 1 1 auto;
  }
  .hero-search-card {
    margin-top: 28px;
  }
  .hero-tab {
    min-height: 46px;
    padding: 0 24px;
  }
  .hero-search-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    border-radius: 0 20px 20px 20px;
  }
  .hero-select summary,
  .hero-map-button,
  .hero-show-button {
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 14px;
  }
  .hero-select summary {
    padding: 0 16px;
  }
  .hero-dropdown {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }
  .hero-price-fields {
    grid-template-columns: 1fr;
  }
  .filters-inner { align-items: flex-start; gap: 10px; }
  .filter-group + .filter-group { border-left: 0; padding-left: 0; }
  .catalog-search {
    order: 3;
    width: 100%;
    max-width: none;
    flex-basis: 100%;
  }
  .filter-field {
    flex: 1 1 100%;
  }
  .filter-field.compact {
    max-width: none;
  }
  .filter-field select {
    min-width: 0;
  }
  .room-filter {
    width: 100%;
  }
  .advanced-grid {
    grid-template-columns: 1fr;
  }
  .reset-filters {
    width: 100%;
  }
  .filter-tools {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
  .map-link { flex: none; }
  .result-count { margin-left: 0; }
  .map-promo {
    min-height: 420px;
    margin-top: 18px;
    padding: 24px;
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(11, 22, 32, .94) 0%, rgba(11, 22, 32, .78) 56%, rgba(11, 22, 32, .45) 100%),
      url("assets/map-preview.svg") center / cover no-repeat,
      #18242e;
  }
  .map-promo p {
    font-size: 16px;
  }
  .map-promo-action {
    width: 100%;
    margin-top: 26px;
  }
  .map-promo-price {
    min-height: 38px;
    padding: 0 13px;
    font-size: 14px;
  }
  .map-promo-price.price-one {
    top: auto;
    right: auto;
    left: 24px;
    bottom: 96px;
  }
  .map-promo-price.price-two {
    top: auto;
    right: 24px;
    bottom: 146px;
  }
  .map-promo-price.price-three {
    right: 28px;
    bottom: 90px;
  }
  .object-page { padding-top: 18px; }
  .map-page { padding-top: 14px; }
  .map-hero h1 { font-size: 34px; }
  .map-hero p { font-size: 15px; }
  .zone-map { min-height: 460px; }
  .zone-map { min-height: min(420px, 62vh); }
  .zone-panel { padding: 16px; }
  .object-info { padding: 18px; }
  .object-actions {
    grid-template-columns: 1fr;
  }
  .object-thumbs {
    grid-template-columns: repeat(5, minmax(54px, 1fr));
    overflow-x: auto;
  }
  .object-gallery-arrow {
    width: 38px;
    height: 38px;
  }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .card-actions {
    grid-template-columns: 1fr;
  }
  .section-heading {
    display: block;
  }
  .specialist-card {
    grid-template-columns: 1fr;
  }
  .specialist-photo {
    max-height: 360px;
  }
  .specialist-actions {
    grid-template-columns: 1fr;
  }
  .detail-modal {
    align-items: end;
    padding: 0;
  }
  .agent-modal {
    align-items: end;
    padding: 0;
  }
  .agent-modal-panel {
    width: 100%;
    max-height: calc(100vh - 18px);
    border-radius: 18px 18px 0 0;
  }
  .agent-modal-scroll {
    max-height: calc(100vh - 18px);
    padding: 24px 16px 28px;
  }
  .agent-modal-heading h2,
  .agent-success h2 {
    font-size: 26px;
  }
  .agent-form-grid {
    grid-template-columns: 1fr;
  }
  .agent-field-wide {
    grid-column: auto;
  }
  .agent-private-check {
    min-height: 36px;
    align-self: auto;
  }
  .modal-panel {
    width: 100%;
    max-height: calc(100vh - 22px);
    border-radius: 22px 22px 0 0;
  }
  .modal-layout {
    gap: 18px;
    padding: 20px 16px 24px;
  }
  .modal-close {
    top: 10px;
    margin: 10px 10px 0 0;
  }
  .modal-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .detail-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .modal-actions {
    grid-template-columns: 1fr;
  }
  .specialist-modal {
    gap: 18px;
    padding: 20px 16px 24px;
  }
  .specialist-modal-photo {
    max-width: 100%;
  }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-contacts {
    flex-direction: column;
    gap: 8px;
  }
}

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

:focus-visible {
  outline: 3px solid rgba(217, 47, 53, .62);
  outline-offset: 3px;
}
