:root {
  --ink: #222222;
  --muted: #666666;
  --quiet: #999999;
  --line: #dddddd;
  --surface: #f5f5f3;
  --gold: #bfa373;
  --gold-dark: #9f824f;
  --white: #ffffff;
  --sold: #dca08e;
  --booked: #eadf9f;
  --available: #a9d85c;
  --radius-lg: 40px;
  --radius: 24px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(34, 34, 34, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(1286px, calc(100% - 80px)); margin-inline: auto; }
.section { padding: 80px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(221,221,221,.9);
  backdrop-filter: blur(18px);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { width: 218px; height: 44px; flex: 0 0 auto; display: flex; align-items: center; overflow: hidden; }
.brand img { width: 170px; max-height: 42px; object-fit: contain; object-position: left center; }
.main-nav { margin-left: 30px; display: flex; gap: 28px; align-items: center; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: -.02em; }
.main-nav a { transition: color .2s ease; white-space: nowrap; }
.main-nav a:hover { color: var(--gold); }
.header-contact { margin-left: auto; text-align: right; padding-left: 24px; border-left: 1px solid var(--line); }
.phone { display: block; font-size: 18px; line-height: 22px; font-weight: 600; white-space: nowrap; }
.link-button { padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; }
.link-button:hover { color: var(--gold-dark); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 0; background: var(--surface); border-radius: 10px; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 3px; }

.hero { position: relative; height: 688px; overflow: hidden; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,19,25,.58), rgba(10,19,25,.04) 62%); }
.hero-inner { position: relative; height: 100%; display: flex; align-items: center; }
.hero-card {
  width: 470px;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(145deg, rgba(28, 43, 50, .42), rgba(19, 28, 29, .22));
  -webkit-backdrop-filter: blur(26px) saturate(135%);
  backdrop-filter: blur(26px) saturate(135%);
  border: 1px solid rgba(255,255,255,.34);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.18);
}
.hero-card h1 { max-width: 390px; font-size: clamp(38px, 3.6vw, 52px); line-height: 1.02; }
.eyebrow { display: block; margin-bottom: 14px; color: var(--gold); font-size: 15px; font-weight: 700; }
.eyebrow.light { color: #e9d6b4; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(44px, 5vw, 64px); line-height: .98; letter-spacing: -.05em; font-weight: 600; text-transform: uppercase; }
.hero-card > p { max-width: 360px; color: rgba(255,255,255,.82); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 7px; margin: 19px 0 21px; }
.hero-facts span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; font-size: 12px; }
.button { min-height: 56px; padding: 15px 28px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; font-weight: 650; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--white); background: var(--gold); }
.button.primary:hover { background: var(--gold-dark); }
.button.ghost { color: var(--white); background: transparent; border-color: rgba(255,255,255,.5); }
.hero-actions { display: flex; align-items: stretch; gap: 8px; flex-wrap: nowrap; }
.hero-actions .button { min-height: 50px; padding: 12px 18px; flex: 0 1 auto; white-space: nowrap; font-size: 14px; }
.button.secondary { color: var(--ink); background: var(--white); border-color: var(--line); }

.section-heading { margin-bottom: 48px; }
.section-heading.centered { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.section-heading.compact { margin-bottom: 38px; }
.section-heading h2, .location-copy h2, .progress-copy h2, .developer-layout h2, .footer h2, .modal h2 { margin-bottom: 24px; font-size: clamp(36px, 4.1vw, 52px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; text-transform: uppercase; }
.section-heading .lead { color: var(--muted); max-width: 640px; margin: 0 auto; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr); align-items: end; gap: 80px; }
.split-heading h2 { margin-bottom: 0; }
.split-heading > p { color: var(--muted); margin-bottom: 8px; }

.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { display: flex; gap: 22px; align-items: center; min-height: 144px; padding: 16px; background: var(--surface); border-radius: var(--radius); }
.feature-card img { width: 128px; height: 112px; flex: 0 0 auto; object-fit: cover; border-radius: 16px; }
.feature-card h3 { margin-bottom: 8px; font-size: 20px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

.gallery-section { overflow: hidden; padding-top: 16px; }
.gallery-tabs { width: fit-content; margin: 0 auto 40px; padding: 4px; display: flex; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.tab { padding: 14px 24px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-size: 14px; font-weight: 650; cursor: pointer; }
.tab.active { color: var(--white); background: var(--gold); }
.gallery-stage { position: relative; min-height: 520px; }
.gallery-track { display: flex; align-items: center; justify-content: center; gap: 22px; will-change: transform, opacity, filter; }
.gallery-slide { width: min(850px, 66vw); height: 480px; flex: 0 0 auto; border-radius: var(--radius); object-fit: cover; box-shadow: 0 0 80px rgba(255,255,255,.9); transition: opacity .35s ease, transform .5s cubic-bezier(.16,1,.3,1), filter .35s ease; }
.gallery-slide.side { width: min(520px, 42vw); height: 292px; opacity: .42; filter: saturate(.7); transform: scale(.94); }
.gallery-track:hover .gallery-slide:not(.side) { transform: scale(1.012); }
.round-button { width: 60px; height: 60px; position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); border: 0; border-radius: 50%; background: var(--white); box-shadow: 0 12px 36px rgba(0,0,0,.16); cursor: pointer; font-size: 24px; }
.gallery-prev { left: max(16px, calc(50% - 500px)); }
.gallery-next { right: max(16px, calc(50% - 500px)); }

.visual-section { background: var(--surface); }
.selector-shell { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow); }
.selector-toolbar { min-height: 84px; padding: 16px 20px; display: flex; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); }
.segmented { padding: 4px; display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.segmented button { padding: 11px 18px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-weight: 650; cursor: pointer; }
.segmented button.active { color: var(--white); background: var(--gold); }
.selector-summary { min-width: 160px; font-weight: 700; }
.legend { margin-left: auto; display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.status { width: 14px; height: 14px; display: inline-block; border-radius: 4px; }
.status.available { background: var(--available); }
.status.booked { background: var(--booked); }
.status.sold { background: var(--sold); }
.building-view { position: relative; aspect-ratio: 3200 / 2389; overflow: hidden; background: #e2f3ff; }
.building-view > img { width: 100%; height: 100%; object-fit: cover; }
.floor-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.floor-shape { fill: rgba(191,163,115,.08); stroke: rgba(255,255,255,.12); stroke-width: .18; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .2s ease, stroke .2s ease; }
.floor-shape:hover, .floor-shape:focus { fill: rgba(191,163,115,.58); stroke: rgba(255,255,255,.9); outline: none; }
.floor-shape.selected { fill: rgba(191,163,115,.62); stroke: var(--white); }
.building-tip { position: absolute; left: 24px; bottom: 24px; padding: 12px 16px; color: var(--white); background: rgba(34,34,34,.64); backdrop-filter: blur(12px); border-radius: 10px; font-weight: 650; pointer-events: none; }
.floor-view { padding: 20px; }
.floor-view-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-bottom: 18px; }
.back-button { width: fit-content; padding: 10px 14px; border: 1px solid var(--line); background: var(--white); border-radius: 10px; cursor: pointer; }
.floor-title { font-size: 22px; font-weight: 700; text-align: center; }
.floor-count { color: var(--muted); text-align: right; }
.floor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }
.plan-stage { position: relative; min-width: 0; overflow: hidden; background: var(--surface); border-radius: 20px; }
.plan-stage > img { width: 100%; height: auto; }
.apartment-markers { position: absolute; inset: 0; }
.apartment-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.apartment-polygon { stroke: rgba(255,255,255,.96); stroke-width: .2; vector-effect: non-scaling-stroke; transition: fill .2s ease, opacity .2s ease; }
.apartment-polygon.available { fill: rgba(169,216,92,.56); cursor: pointer; }
.apartment-polygon.booked { fill: rgba(234,223,159,.62); }
.apartment-polygon.sold { fill: rgba(220,160,142,.58); }
.apartment-polygon.available:hover, .apartment-polygon.available:focus { fill: rgba(169,216,92,.84); outline: none; }
.apartment-polygon-label { fill: #26341a; font-size: 2.1px; font-weight: 800; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.apartment-marker { width: 36px; height: 36px; position: absolute; transform: translate(-50%,-50%); border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.24); font-size: 11px; font-weight: 800; cursor: pointer; }
.apartment-marker.available { color: #355800; background: var(--available); }
.apartment-marker.booked { color: #75680b; background: var(--booked); }
.apartment-marker.sold { color: #74382c; background: var(--sold); cursor: not-allowed; }
.apartment-marker:hover:not(:disabled) { z-index: 4; transform: translate(-50%,-50%) scale(1.15); }
.floor-list { padding: 18px; background: var(--surface); border-radius: 20px; }
.floor-list h3 { margin-bottom: 14px; font-size: 18px; }
.floor-apartments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 600px; overflow: auto; }
.floor-item { padding: 10px; border: 1px solid var(--line); border-radius: 10px; text-align: left; background: var(--white); cursor: pointer; }
.floor-item strong, .floor-item small { display: block; }
.floor-item small { color: var(--muted); }
.floor-item.booked, .floor-item.sold { opacity: .55; cursor: not-allowed; }

.filters { padding: 20px; display: grid; grid-template-columns: 1.4fr repeat(4, minmax(120px, .7fr)); gap: 14px; align-items: end; background: var(--surface); border-radius: var(--radius); }
.filters fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.filters legend, .field { color: var(--muted); font-size: 12px; font-weight: 650; }
.filter-chips { display: flex; gap: 6px; margin-top: 7px; }
.filter-chips input { position: absolute; opacity: 0; pointer-events: none; }
.filter-chips span { min-width: 45px; padding: 11px 12px; display: block; border: 1px solid var(--line); border-radius: 9px; background: var(--white); text-align: center; cursor: pointer; }
.filter-chips input:checked + span { color: var(--white); background: var(--gold); border-color: var(--gold); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field input, .field select, .request-form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--white); outline: none; }
.field input:focus, .field select:focus, .request-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(191,163,115,.18); }
.switch-field { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 650; }
.switch-field input { position: absolute; opacity: 0; }
.switch-field span { width: 44px; height: 24px; position: relative; flex: 0 0 auto; border-radius: 20px; background: #c7c7c7; cursor: pointer; }
.switch-field span::after { content: ""; width: 18px; height: 18px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: var(--white); transition: transform .2s ease; }
.switch-field input:checked + span { background: var(--gold); }
.switch-field input:checked + span::after { transform: translateX(20px); }
.reset-filters { min-height: 48px; padding: 10px 18px; }
.result-line { margin: 24px 0 18px; display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.result-line strong { color: var(--ink); font-size: 18px; }
.apartments-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.apartment-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.apartment-card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(34,34,34,.1); }
.apartment-card button { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.apartment-card-image { height: 220px; padding: 14px; display: flex; align-items: center; justify-content: center; background: var(--surface); }
.apartment-card-image img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.apartment-card-body { padding: 16px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-top h3 { margin: 0; font-size: 19px; }
.status-pill { padding: 5px 8px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.status-pill.available { color: #496b18; background: #ebf7d8; }
.card-meta { margin: 14px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; color: var(--muted); font-size: 12px; }
.card-meta strong { display: block; color: var(--ink); font-size: 14px; }
.card-price { margin: 0; font-size: 20px; font-weight: 750; }
.load-more { margin: 28px auto 0; display: flex; }
.load-more[hidden] { display: none; }

.location-section { overflow: hidden; }
.location-inner { min-height: 650px; position: relative; padding: 54px; display: flex; align-items: center; border-radius: 32px; overflow: hidden; background: #eef5f3; }
.location-inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.88) 36%, rgba(255,255,255,.05) 74%); }
.location-inner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.location-copy { width: 54%; position: relative; z-index: 2; }
.location-copy h2 em { color: var(--gold); font-style: normal; }
.location-copy > p { max-width: 530px; color: var(--muted); }
.route-cards { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }
.route-cards span { min-width: 150px; padding: 12px 14px; background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: 12px; font-size: 12px; }
.route-cards strong { display: block; color: var(--gold-dark); font-size: 18px; }

.comfort-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: stretch; }
.comfort-main { width: 100%; height: 440px; min-height: 0; object-fit: cover; border-radius: var(--radius); }
.comfort-cards { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 18px; }
.comfort-cards article { padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.comfort-cards article:nth-child(2), .comfort-cards article:nth-child(3) { color: var(--white); background: var(--gold); border-color: var(--gold); }
.comfort-cards span { color: var(--gold-dark); font-size: 12px; font-weight: 700; }
.comfort-cards article:nth-child(2) span, .comfort-cards article:nth-child(3) span { color: rgba(255,255,255,.7); }
.comfort-cards h3 { margin: 14px 0 8px; font-size: 20px; }
.comfort-cards p { margin: 0; color: inherit; opacity: .74; font-size: 14px; }

.progress-section { background: var(--surface); }
.progress-layout, .developer-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.progress-layout img, .developer-layout img { width: 100%; min-height: 440px; object-fit: cover; border-radius: var(--radius); }
.progress-copy p, .developer-layout p { max-width: 520px; color: var(--muted); }
.progress-copy .button { margin-top: 16px; }
.developer-layout { grid-template-columns: 1fr 1fr; }
.numbers { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.numbers span { color: var(--muted); font-size: 12px; }
.numbers strong { display: block; color: var(--gold-dark); font-size: 23px; }

.map-section { padding-top: 34px; }
.site-map { width: 100%; height: 520px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow); }
.site-map-error::after { content: "Карта временно недоступна"; height: 100%; display: grid; place-items: center; color: var(--muted); }

.footer { padding: 58px 0 24px; border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1.5fr .7fr .8fr; gap: 60px; }
.footer h2 { margin-bottom: 26px; font-size: 30px; }
.request-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: start; }
.request-form .button { min-height: 48px; padding-block: 10px; }
.request-form small { grid-column: 1 / -1; color: var(--quiet); font-size: 10px; }
.request-form.stacked { display: flex; flex-direction: column; }
.request-form.stacked > * { width: 100%; }
.cf7-request-form .wpcf7-form { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.cf7-request-form .wpcf7-form > p { min-width: 170px; margin: 0; flex: 1 1 180px; }
.cf7-request-form .wpcf7-form > p:last-of-type { min-width: auto; flex: 0 0 auto; }
.cf7-request-form label, .cf7-request-form .wpcf7-form-control-wrap { width: 100%; display: block; }
.cf7-request-form input:not([type="submit"]):not([type="hidden"]), .cf7-request-form textarea, .cf7-request-form select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--white); outline: none; }
.cf7-request-form textarea { height: 96px; padding-block: 12px; resize: vertical; }
.cf7-request-form input:focus, .cf7-request-form textarea:focus, .cf7-request-form select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(191,163,115,.18); }
.cf7-request-form .wpcf7-submit { min-height: 48px; padding: 10px 24px; border: 1px solid var(--gold); border-radius: 12px; color: var(--white); background: var(--gold); font-weight: 650; cursor: pointer; }
.cf7-request-form .wpcf7-submit:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.cf7-request-form .wpcf7-spinner { margin: 12px 0 0 8px; }
.cf7-request-form .wpcf7-not-valid-tip { margin-top: 5px; color: #a74635; font-size: 11px; }
.cf7-request-form .wpcf7-response-output { width: 100%; margin: 6px 0 0 !important; padding: 8px 12px !important; border-width: 1px !important; border-radius: 8px; font-size: 12px; }
.cf7-request-form.stacked .wpcf7-form { flex-direction: column; }
.cf7-request-form.stacked .wpcf7-form > p { width: 100%; min-width: 0; flex: 0 0 auto; }
.cf7-request-form.stacked .wpcf7-submit { width: 100%; }
.form-consent { display: block; margin-top: 10px; color: var(--quiet); font-size: 10px; }
.cf7-setup-message { color: var(--muted); font-size: 13px; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-nav a:hover { color: var(--gold); }
.footer-phone { display: block; color: var(--gold-dark); font-size: 28px; font-weight: 650; white-space: nowrap; }
.footer-contact p { color: var(--muted); }
.footer-socials { margin-top: 14px; display: flex; gap: 12px; color: var(--gold-dark); font-size: 13px; font-weight: 650; }
.footer-bottom { margin-top: 50px; padding-top: 20px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--quiet); font-size: 11px; }

.modal { width: min(980px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 28px; box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(20,20,20,.58); backdrop-filter: blur(5px); }
.modal-close { width: 42px; height: 42px; position: absolute; right: 16px; top: 16px; z-index: 3; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); cursor: pointer; font-size: 28px; line-height: 1; }
.apartment-modal-grid { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 540px; }
.modal-plan { padding: 30px; display: flex; align-items: center; justify-content: center; background: var(--surface); }
.modal-plan img { max-height: 500px; object-fit: contain; mix-blend-mode: multiply; }
.modal-content { padding: 64px 38px 40px; }
.modal-meta { margin: 24px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.modal-meta span { padding: 12px; background: var(--surface); border-radius: 10px; color: var(--muted); font-size: 12px; }
.modal-meta strong { display: block; color: var(--ink); font-size: 18px; }
.modal-price { font-size: 28px; font-weight: 750; }
.request-modal { width: min(540px, calc(100% - 32px)); }
.request-modal-inner { padding: 54px 40px 40px; }
.request-modal-inner > p { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; max-width: calc(100% - 32px); padding: 13px 18px; transform: translate(-50%, 120px); color: var(--white); background: var(--ink); border-radius: 12px; box-shadow: var(--shadow); transition: transform .3s ease; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 1120px) {
  .container { width: min(100% - 40px, 1000px); }
  .brand { width: 160px; }
  .main-nav { gap: 16px; margin-left: 0; font-size: 11px; }
  .header-contact { padding-left: 14px; }
  .feature-cards { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .filters fieldset { grid-column: span 2; }
  .apartments-grid { grid-template-columns: repeat(3, 1fr); }
  .floor-layout { grid-template-columns: 1fr; }
  .floor-apartments { grid-template-columns: repeat(5, 1fr); max-height: none; }
  .comfort-layout { grid-template-columns: 1fr; }
  .comfort-main { height: 400px; min-height: 0; }
}

@media (max-width: 820px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 56px 0; }
  .site-header { height: 68px; }
  .brand { height: 38px; }
  .brand img { width: 148px; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-contact { display: none; }
  .main-nav { position: fixed; left: 16px; right: 16px; top: 78px; padding: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); font-size: 14px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .hero { height: 740px; border-radius: 0 0 28px 28px; }
  .hero-image { object-position: 62% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(10,19,25,.78), rgba(10,19,25,.05) 80%); }
  .hero-inner { align-items: flex-end; padding-bottom: 24px; }
  .hero-card { width: 100%; padding: 24px; }
  .split-heading { grid-template-columns: 1fr; gap: 18px; }
  .gallery-stage { min-height: 390px; }
  .gallery-slide { width: 78vw; height: 360px; }
  .gallery-slide.side { display: none; }
  .selector-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .legend { width: 100%; margin-left: 0; }
  .building-tip { left: 12px; bottom: 12px; font-size: 12px; }
  .floor-view-top { grid-template-columns: 1fr 1fr; }
  .floor-title { text-align: right; font-size: 17px; }
  .floor-count { grid-column: 1 / -1; text-align: left; }
  .floor-apartments { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: repeat(2, 1fr); }
  .filters fieldset { grid-column: 1 / -1; }
  .apartments-grid { grid-template-columns: repeat(2, 1fr); }
  .location-inner { min-height: 680px; padding: 24px; align-items: flex-end; }
  .location-inner::after { background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,.91) 55%, rgba(255,255,255,.1) 88%); }
  .location-copy { width: 100%; }
  .comfort-cards { grid-template-columns: 1fr 1fr; }
  .progress-layout, .developer-layout { grid-template-columns: 1fr; }
  .developer-layout img { order: 2; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
	.site-map { height: 420px; border-radius: 22px; }
  .request-form { grid-template-columns: 1fr; }
  .request-form small { grid-column: 1; }
	.cf7-request-form .wpcf7-form { flex-direction: column; }
	.cf7-request-form .wpcf7-form > p { width: 100%; min-width: 0; flex: 0 0 auto; }
	.cf7-request-form .wpcf7-submit { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .apartment-modal-grid { grid-template-columns: 1fr; }
  .modal-plan { min-height: 320px; }
  .modal-content { padding: 34px 24px; }
}

@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

@media (max-width: 560px) {
  h1 { font-size: 38px; }
  .section-heading h2, .location-copy h2, .progress-copy h2, .developer-layout h2, .footer h2, .modal h2 { font-size: 32px; }
  .button { width: 100%; }
  .hero-actions { gap: 6px; }
  .hero-actions .button { width: auto; padding-inline: 10px; flex: 1 1 0; font-size: 12px; }
  .hero-facts { margin-block: 18px; }
  .feature-card { align-items: flex-start; }
  .feature-card img { width: 96px; height: 96px; }
  .gallery-tabs { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .tab { flex: 0 0 auto; padding-inline: 16px; }
  .gallery-slide { width: calc(100vw - 32px); height: 300px; }
  .round-button { width: 48px; height: 48px; }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
  .selector-shell { border-radius: 20px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .building-view { aspect-ratio: 4 / 3; }
  .building-view > img, .floor-map { width: 128%; max-width: none; transform: translateX(-18%); }
  .floor-view { padding: 12px; }
  .apartment-marker { width: 30px; height: 30px; }
  .filters { grid-template-columns: 1fr; padding: 14px; }
  .filters fieldset { grid-column: auto; }
  .filter-chips { flex-wrap: wrap; }
  .apartments-grid { grid-template-columns: 1fr; }
  .apartment-card-image { height: 250px; }
  .result-line { align-items: flex-start; flex-direction: column; gap: 4px; }
  .comfort-cards { grid-template-columns: 1fr; }
  .comfort-main { height: 330px; min-height: 0; }
  .numbers { grid-template-columns: 1fr; }
  .footer-phone { font-size: 23px; }
  .request-modal-inner { padding-inline: 24px; }
	.site-map { height: 340px; }
}

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