:root {
  --ink: #141817;
  --ink-soft: #4c5753;
  --paper: #ffffff;
  --mist: #f3f6f4;
  --line: #dce4df;
  --green: #12624f;
  --green-dark: #0d3e34;
  --coral: #d84b43;
  --coral-dark: #b83a33;
  --silver: #e7ece9;
  --graphite: #2d3431;
  --shadow: 0 22px 55px rgba(20, 24, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

img,
video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px 42px;
  color: var(--paper);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled,
.site-header.menu-active {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 14px 40px rgba(20, 24, 23, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.94rem;
}

.main-nav a,
.header-phone {
  position: relative;
  font-weight: 700;
}

.main-nav a::after,
.header-phone::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.main-nav a:hover::after,
.header-phone:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 160ms ease;
}

.site-header.menu-active .menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header.menu-active .menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1fr);
  gap: 54px;
  align-items: center;
  min-height: 92vh;
  padding: 130px max(24px, calc((100vw - 1180px) / 2)) 62px;
  background: var(--green-dark);
  color: var(--paper);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.83rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero .eyebrow,
.installment .section-kicker,
.contact-footer .section-kicker {
  color: #ffb4ad;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: 4.25rem;
  line-height: 0.98;
}

h2 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: 2.75rem;
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-text {
  max-width: 610px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.2rem;
}

.hero-actions,
.footer-links,
.material-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--coral);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--coral-dark);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--paper);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 48px 0 0;
}

.hero-stats div {
  min-height: 108px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats dt {
  margin-bottom: 7px;
  font-size: 2.25rem;
  font-weight: 850;
  line-height: 1;
}

.hero-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.hero-product {
  min-height: 640px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #f7faf8;
  color: var(--ink);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.hero-tabs {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 24px;
  padding: 5px;
  border-radius: 8px;
  background: var(--silver);
}

.hero-tabs span {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-tabs .active {
  background: var(--paper);
  color: var(--ink);
}

.building-illustration {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.34fr 1fr;
  align-items: end;
  gap: 12px;
  min-height: 470px;
  padding: 70px 22px 28px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(18, 98, 79, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(18, 98, 79, 0.08) 1px, transparent 1px),
    #edf4f0;
  background-size: 42px 42px;
}

.building-illustration::before {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  height: 12px;
  border-radius: 8px;
  background: var(--graphite);
  content: "";
}

.building-block,
.building-core {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 22px 18px;
  border-radius: 8px 8px 0 0;
  background: var(--paper);
  box-shadow: 0 18px 32px rgba(20, 24, 23, 0.14);
}

.building-block {
  min-height: 390px;
}

.building-core {
  min-height: 460px;
  background: #c66758;
}

.building-block span,
.building-core span {
  min-height: 34px;
  border-radius: 4px;
  background: #dbe5e0;
  box-shadow: inset 0 0 0 1px rgba(20, 24, 23, 0.08);
}

.building-core span {
  background: rgba(255, 255, 255, 0.76);
}

.block-left {
  transform: translateY(22px);
}

.block-right {
  transform: translateY(8px);
}

.hero-product-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.hero-product-footer span {
  display: grid;
  min-height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-dark);
  color: var(--paper);
  font-weight: 850;
}

.section-pad {
  padding: 96px max(24px, calc((100vw - 1180px) / 2));
}

.muted {
  background: var(--mist);
}

.intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1fr);
  gap: 64px;
  align-items: start;
}

.intro-details {
  display: grid;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.intro-details p {
  margin-bottom: 0;
  padding-left: 24px;
  border-left: 4px solid var(--coral);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: end;
  margin-bottom: 42px;
}

.section-head h2 {
  margin-bottom: 0;
}

.section-note {
  max-width: 340px;
  margin: 0;
  color: var(--ink-soft);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}

.visual-tile {
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding: 24px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(20, 24, 23, 0.08);
}

.visual-tile h3 {
  max-width: 320px;
}

.visual-tile p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.visual-tile span {
  display: block;
  margin-bottom: 70px;
  color: var(--coral);
  font-weight: 850;
}

.tile-accent {
  background: var(--green-dark);
  color: var(--paper);
}

.tile-accent span {
  margin-bottom: 40px;
  color: #ffb4ad;
  font-size: 3.1rem;
  line-height: 1;
}

.tile-accent p {
  color: rgba(255, 255, 255, 0.74);
}

.image-tile {
  padding: 0;
  color: var(--paper);
}

.image-tile.wide {
  grid-column: span 2;
}

.image-tile::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 62, 52, 0.05) 25%, rgba(13, 62, 52, 0.82) 100%);
  content: "";
}

.image-tile div {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 22px;
}

.image-tile p {
  color: rgba(255, 255, 255, 0.82);
}

.video-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.42fr);
  gap: 18px;
  align-items: stretch;
}

.promo-video {
  min-height: 560px;
  border-radius: 8px;
  background: var(--green-dark);
  box-shadow: var(--shadow);
}

.video-copy {
  display: grid;
  align-content: end;
  min-height: 360px;
  padding: 28px;
  border-radius: 8px;
  background: var(--mist);
}

.video-copy p {
  color: var(--ink-soft);
}

.installment {
  background: var(--green-dark);
  color: var(--paper);
}

.installment-panel {
  display: grid;
  grid-template-columns: 1fr 280px auto;
  gap: 34px;
  align-items: center;
}

.installment-panel p {
  max-width: 640px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.installment-count {
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.installment-count span,
.installment-count p {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.installment-count strong {
  display: block;
  margin: 10px 0;
  font-size: 3.15rem;
  line-height: 1;
}

.feature-strip {
  overflow-x: auto;
  padding: 18px max(18px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.feature-strip-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(190px, 1fr));
  gap: 12px;
  min-width: 1080px;
}

.feature-strip article {
  min-height: 96px;
  padding: 14px 16px;
  border-left: 4px solid var(--green);
  background: var(--mist);
}

.feature-strip span {
  display: block;
  color: var(--coral);
  font-weight: 850;
}

.feature-strip strong {
  display: block;
  margin: 2px 0;
  font-size: 1.05rem;
}

.feature-strip p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.plan-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(20, 24, 23, 0.06);
}

.plan-tab {
  min-height: 44px;
  padding: 10px 24px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 850;
  cursor: pointer;
}

.plan-tab.active {
  background: var(--green);
  color: var(--paper);
}

.floor-picker-shell {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.floor-switcher {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(20, 24, 23, 0.06);
}

.floor-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 850;
  cursor: pointer;
}

.floor-btn.active {
  background: var(--green);
  color: var(--paper);
}

.floor-btn:hover:not(.active),
.plan-tab:hover:not(.active) {
  background: var(--mist);
  color: var(--ink);
}

.floor-plan-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 16px 36px rgba(20, 24, 23, 0.07);
}

.plan-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 22px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 750;
}

.plan-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--green);
}

.legend-dot.installment-dot {
  background: var(--coral);
}

.legend-dot.reserved {
  background: #c89b3c;
}

.legend-dot.sold {
  background: #8f9a95;
}

.floor-plan-canvas {
  min-height: 420px;
  overflow: auto;
  padding: 20px 22px 22px;
}

.floor-svg {
  display: block;
  width: 100%;
  min-width: 680px;
  height: auto;
}

.floor-bg {
  fill: #f7faf8;
}

.floor-title {
  fill: var(--ink);
  font-weight: 850;
  font-size: 17px;
}

.floor-corridor {
  fill: #edf2ef;
}

.floor-corridor-label {
  fill: #5d6964;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.floor-core {
  fill: #dfe8e3;
  stroke: #c3d0ca;
  stroke-width: 1;
}

.floor-core-label {
  fill: #68736e;
  font-size: 12px;
  font-weight: 800;
}

.floor-note {
  fill: #8b9691;
  font-size: 12px;
  font-weight: 750;
}

.floor-unit {
  cursor: pointer;
  outline: none;
}

.floor-unit rect {
  stroke: var(--paper);
  stroke-width: 2;
  transition: filter 0.2s ease, opacity 0.2s ease, stroke 0.2s ease;
  vector-effect: non-scaling-stroke;
}

.floor-unit.status-available rect {
  fill: #6d9a78;
}

.floor-unit.status-installment rect {
  fill: #d84b43;
}

.floor-unit.status-reserved rect {
  fill: #c89b3c;
}

.floor-unit.status-sold rect {
  fill: #a7b1ac;
  opacity: 0.72;
}

.floor-unit:hover rect,
.floor-unit:focus rect {
  filter: brightness(1.08) drop-shadow(0 8px 12px rgba(18, 98, 79, 0.24));
  stroke: var(--green-dark);
}

.floor-unit-number,
.floor-unit-area {
  pointer-events: none;
}

.floor-unit-number {
  fill: var(--paper);
  font-size: 17px;
  font-weight: 850;
  text-anchor: middle;
}

.floor-unit-area {
  fill: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 700;
  text-anchor: middle;
}

.floor-unit.status-sold .floor-unit-number,
.floor-unit.status-sold .floor-unit-area {
  fill: rgba(255, 255, 255, 0.86);
}

.floor-tooltip {
  position: fixed;
  z-index: 70;
  display: grid;
  gap: 6px;
  min-width: 180px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--green-dark);
  color: var(--paper);
  box-shadow: 0 18px 44px rgba(20, 24, 23, 0.22);
  pointer-events: none;
}

.floor-tooltip[hidden] {
  display: none;
}

.floor-tooltip strong {
  color: var(--paper);
  font-size: 1rem;
}

.floor-tooltip span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.flat-summary {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 16px 36px rgba(20, 24, 23, 0.07);
}

.flat-summary dl {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}

.flat-summary dl div {
  padding-top: 12px;
  border-top: 2px solid var(--line);
}

.flat-summary dt,
.flat-summary p {
  color: var(--ink-soft);
}

.flat-summary dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 850;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
}

.dot.installment-dot {
  background: var(--coral);
}

.dot.reserved {
  background: #c89b3c;
}

.dot.sold {
  background: #8f9a95;
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.72fr);
  gap: 28px;
}

.calc-form,
.calc-result {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.calc-form {
  display: grid;
  gap: 18px;
}

.calc-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 750;
}

.calc-form input {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.calc-form input[type="range"] {
  min-height: auto;
  padding: 0;
  accent-color: var(--coral);
}

.calc-form output {
  color: var(--green-dark);
  font-weight: 850;
}

.calc-result {
  display: grid;
  align-content: center;
  min-height: 260px;
  background: var(--green-dark);
  color: var(--paper);
}

.calc-result span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
}

.calc-result strong {
  display: block;
  margin: 10px 0 16px;
  font-size: 3.1rem;
  line-height: 1;
}

.calc-result p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.contact-footer {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(340px, 0.72fr);
  gap: 64px;
  align-items: start;
  background: var(--green-dark);
  color: var(--paper);
}

.footer-info address {
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-weight: 750;
}

.footer-phone {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.footer-phone a {
  color: var(--paper);
  font-weight: 850;
}

.visit-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.visit-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.visit-form label:nth-of-type(3),
.visit-form label:nth-of-type(4),
.visit-form .button,
.form-status {
  grid-column: 1 / -1;
}

.visit-form input {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.visit-form input:focus,
.calc-form input:focus {
  outline: 3px solid rgba(216, 75, 67, 0.34);
  border-color: var(--coral);
}

.form-status {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.form-status.success {
  color: #b8f1d7;
  font-weight: 850;
}

.modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 24, 20, 0.72);
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: sticky;
  z-index: 2;
  top: 16px;
  left: calc(100% - 112px);
  display: inline-flex;
  min-height: 42px;
  margin: 16px 16px 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

.modal-content {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(320px, 1fr);
  gap: 34px;
  padding: 20px 32px 32px;
}

.modal-visual {
  display: grid;
  gap: 14px;
}

.plan-preview {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
}

.pik-plan {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.plan-paper {
  fill: #f8faf8;
}

.plan-room {
  fill: #ffffff;
  stroke: #000000;
  stroke-width: 7;
  vector-effect: non-scaling-stroke;
}

.plan-room.service {
  fill: #f7f8f7;
}

.plan-balcony {
  fill: #ffffff;
  stroke: #6c7470;
  stroke-width: 1.2;
}

.plan-window-gap {
  stroke: #ffffff;
  stroke-width: 10;
  stroke-linecap: square;
}

.plan-window {
  stroke: #222222;
  stroke-width: 1;
  stroke-linecap: square;
}

.plan-door-gap {
  stroke: #ffffff;
  stroke-width: 9;
  stroke-linecap: square;
}

.plan-door {
  fill: none;
  stroke: #222222;
  stroke-width: 1.2;
}

.plan-fixture {
  fill: #ffffff;
  stroke: #222222;
  stroke-width: 1;
}

.plan-area,
.plan-type {
  fill: #111111;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.plan-area {
  font-size: 20px;
  text-anchor: middle;
}

.plan-area.small {
  font-size: 16px;
}

.plan-type {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-marker-halo {
  fill: rgba(216, 75, 67, 0.3);
}

.plan-marker {
  fill: #f0442e;
}

.plan-disclaimer {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.modal-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0;
}

.modal-meta div {
  min-height: 82px;
  padding-top: 12px;
  border-top: 2px solid var(--line);
}

.modal-meta dt {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.modal-meta dd {
  margin: 4px 0 0;
  font-size: 1.25rem;
  font-weight: 850;
}

.design-options {
  display: grid;
  gap: 14px;
}

.design-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.design-card.active {
  border-color: var(--green);
  background: var(--paper);
}

.design-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.design-swatch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  min-height: 112px;
  padding: 8px;
  border-radius: 8px;
  background: var(--paper);
}

.design-swatch span {
  border-radius: 6px;
}

.design-swatch span:first-child {
  grid-row: span 2;
}

.grey-sale span:nth-child(1) {
  background: #d8ddda;
}

.grey-sale span:nth-child(2) {
  background: #aeb7b2;
}

.grey-sale span:nth-child(3) {
  background: #f4f6f5;
}

.warm-minimal span:nth-child(1) {
  background: #e6eee8;
}

.warm-minimal span:nth-child(2) {
  background: #b6c4bb;
}

.warm-minimal span:nth-child(3) {
  background: #d84b43;
}

.family-light span:nth-child(1) {
  background: #eef3f0;
}

.family-light span:nth-child(2) {
  background: #12624f;
}

.family-light span:nth-child(3) {
  background: #c9d7d0;
}

@media (max-width: 1080px) {
  .site-header {
    gap: 18px;
    padding: 14px 24px;
  }

  .main-nav {
    gap: 14px;
  }

  .hero,
  .intro,
  .video-shell,
  .calculator-shell,
  .contact-footer,
  .installment-panel {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .hero-product {
    min-height: 560px;
  }

  .visual-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .installment-panel {
    align-items: start;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 24px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
    box-shadow: 0 22px 36px rgba(20, 24, 23, 0.13);
  }

  .site-header.menu-active .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .header-phone {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto;
    padding: 112px 18px 56px;
  }

  .hero-product {
    min-height: auto;
  }

  .building-illustration {
    min-height: 360px;
    padding: 42px 14px 22px;
  }

  .building-block {
    min-height: 270px;
  }

  .building-core {
    min-height: 330px;
  }

  .hero-product-footer,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.45rem;
    line-height: 1.05;
  }

  h2 {
    font-size: 1.9rem;
    line-height: 1.14;
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats {
    gap: 10px;
    margin-top: 28px;
  }

  .hero-stats div {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    min-height: 74px;
    padding: 12px 14px;
  }

  .hero-stats dt {
    margin-bottom: 0;
    font-size: 1.8rem;
  }

  .section-pad {
    padding: 70px 18px;
  }

  .section-head {
    display: block;
    margin-bottom: 30px;
  }

  .visual-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .image-tile.wide {
    grid-column: span 1;
  }

  .promo-video {
    min-height: 340px;
  }

  .installment-count {
    min-height: auto;
  }

  .floor-picker-shell {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .floor-switcher {
    padding: 6px;
  }

  .floor-btn {
    width: 42px;
    height: 40px;
  }

  .floor-plan-canvas {
    min-height: 420px;
    padding: 12px;
  }

  .floor-svg {
    min-width: 620px;
  }

  .visit-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .visit-form label,
  .visit-form label:nth-of-type(3),
  .visit-form label:nth-of-type(4),
  .visit-form .button,
  .form-status {
    grid-column: 1;
  }

  .modal {
    padding: 12px;
  }

  .modal-panel {
    max-height: calc(100vh - 24px);
  }

  .modal-content,
  .design-card {
    grid-template-columns: 1fr;
  }

  .modal-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .site-header {
    min-height: 68px;
    padding: 12px 14px;
  }

  .brand {
    gap: 8px;
    font-size: 0.94rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .main-nav {
    top: 68px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.62rem;
  }

  h3 {
    font-size: 1.16rem;
  }

  .button {
    min-height: 50px;
    padding: 12px 16px;
  }

  .building-illustration {
    grid-template-columns: 1fr 0.36fr 1fr;
    gap: 8px;
  }

  .building-block,
  .building-core {
    gap: 6px;
    padding: 14px 10px;
  }

  .feature-strip {
    padding-left: 14px;
    padding-right: 14px;
  }

  .plan-tabs {
    display: flex;
  }

  .plan-tab {
    flex: 1;
    padding-left: 12px;
    padding-right: 12px;
  }

  .floor-picker-shell {
    grid-template-columns: 1fr;
  }

  .floor-switcher {
    display: flex;
    flex-wrap: wrap;
  }

  .floor-svg {
    min-width: 540px;
  }

  .installment-count strong,
  .calc-result strong {
    font-size: 2.35rem;
  }

  .modal-content {
    padding: 18px;
  }
}

/* Reference-led redesign */
.site-header {
  min-height: 72px;
  padding: 12px max(18px, calc((100vw - 1180px) / 2));
  backdrop-filter: blur(14px);
}

.hero {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 86svh;
  padding: 128px max(24px, calc((100vw - 1180px) / 2)) 42px;
  overflow: hidden;
  background: #101a16;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  opacity: 0.68;
  filter: saturate(0.92) contrast(1.05);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 20, 16, 0.86) 0%, rgba(10, 20, 16, 0.56) 48%, rgba(10, 20, 16, 0.2) 100%),
    linear-gradient(0deg, rgba(10, 20, 16, 0.74) 0%, rgba(10, 20, 16, 0.02) 50%);
}

.hero-content {
  display: grid;
  align-content: end;
  width: min(780px, calc(100vw - 48px));
  min-height: calc(86svh - 170px);
  max-width: 780px;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 0.94;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 28px;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(118px, 180px));
  max-width: none;
  margin-top: 34px;
}

.hero-stats div {
  min-height: 92px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.button-soft {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.button-soft:hover {
  border-color: var(--green);
  background: #edf4f0;
}

.product-finder {
  background: #f5f7f2;
}

.product-head {
  align-items: start;
  margin-bottom: 28px;
}

.finder-shell {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) 310px;
  gap: 16px;
  align-items: start;
}

.finder-controls,
.selected-flat,
.floor-plan-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 16px 38px rgba(20, 24, 23, 0.07);
}

.finder-controls {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  padding: 14px;
}

.control-group {
  display: grid;
  gap: 8px;
}

.control-group > span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.finder-controls .plan-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  margin: 0;
  box-shadow: none;
}

.finder-controls .plan-tab {
  min-height: 42px;
  padding: 8px;
}

.finder-controls .floor-switcher {
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
  box-shadow: none;
}

.finder-controls .floor-btn {
  width: auto;
}

.finder-controls .plan-legend {
  display: grid;
  gap: 10px;
  padding: 0;
  font-size: 0.84rem;
}

.floor-plan-panel {
  overflow: hidden;
}

.floor-plan-canvas {
  min-height: 460px;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(18, 98, 79, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(18, 98, 79, 0.05) 1px, transparent 1px),
    #f9fbf8;
  background-size: 34px 34px;
}

.floor-svg {
  min-width: 0;
}

.floor-bg {
  fill: rgba(255, 255, 255, 0.86);
}

.floor-title {
  fill: #18201d;
  font-size: 18px;
}

.floor-corridor {
  fill: #e9efe9;
  stroke: #d2ddd5;
  stroke-width: 1;
}

.floor-core {
  fill: #202925;
  stroke: #202925;
}

.floor-core-label {
  fill: #ffffff;
}

.floor-unit rect {
  stroke-width: 3;
}

.floor-unit.status-available rect {
  fill: #7fa484;
}

.floor-unit.status-installment rect {
  fill: #e35a43;
}

.floor-unit.status-reserved rect {
  fill: #ccaa56;
}

.floor-unit.status-sold rect {
  fill: #b8bfba;
}

.floor-unit.is-selected rect {
  stroke: #101816;
  filter: drop-shadow(0 12px 16px rgba(16, 24, 22, 0.2));
}

.floor-unit.is-selected .floor-unit-number,
.floor-unit.is-selected .floor-unit-area {
  fill: #ffffff;
}

.selected-flat {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.selected-flat h3 {
  margin-bottom: 0;
  font-size: 1.55rem;
}

.selected-flat dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
}

.selected-flat dl div {
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
}

.selected-flat dt {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.selected-flat dd {
  margin: 5px 0 0;
  font-size: 1.05rem;
  font-weight: 850;
}

.selected-offer {
  display: grid;
  gap: 5px;
  padding: 16px;
  border-radius: 8px;
  background: #fce8e4;
  color: #7d2c24;
}

.selected-offer span {
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.selected-offer strong {
  color: #111816;
  font-size: 1.12rem;
}

.apartment-sheet {
  width: min(1440px, calc(100vw - 26px));
  max-height: calc(100svh - 26px);
  padding: 0;
}

.apartment-sheet .modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  left: auto;
  z-index: 5;
  display: grid;
  width: 48px;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  font-size: 2rem;
  line-height: 1;
}

.sheet-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.62fr);
  gap: 24px;
  align-items: end;
  padding: 28px 76px 18px 28px;
}

.sheet-header h2 {
  margin-bottom: 0;
}

.sheet-header .modal-meta {
  margin: 0;
}

.sheet-tabs {
  display: flex;
  gap: 8px;
  padding: 0 28px 18px;
  overflow-x: auto;
}

.sheet-tabs span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 850;
  white-space: nowrap;
}

.sheet-tabs .active {
  border-color: var(--green);
  background: var(--green);
  color: var(--paper);
}

.sheet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  padding: 0 28px 28px;
}

.tour-stage {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe5df;
}

.tour-stage img {
  position: absolute;
  inset: 0;
  filter: saturate(0.9) contrast(1.02);
}

.tour-stage::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.02) 45%, rgba(0, 0, 0, 0.22));
  content: "";
}

.tour-topbar,
.tour-actions {
  position: absolute;
  z-index: 2;
}

.tour-topbar {
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--paper);
  font-weight: 850;
}

.tour-topbar span {
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(16, 24, 22, 0.42);
  backdrop-filter: blur(14px);
}

.tour-point {
  position: absolute;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 8px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.point-one {
  left: 52%;
  top: 48%;
}

.point-two {
  left: 72%;
  top: 68%;
}

.tour-actions {
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
}

.tour-actions button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 850;
  cursor: pointer;
}

.sheet-aside {
  display: grid;
  gap: 12px;
  align-content: start;
}

.sheet-aside .plan-preview {
  min-height: 310px;
}

.sheet-aside .pik-plan {
  min-height: 310px;
}

.payment-card {
  padding: 18px;
  border-radius: 8px;
  background: var(--green-dark);
  color: var(--paper);
}

.payment-card span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
  text-transform: uppercase;
}

.payment-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 1.45rem;
}

.payment-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.design-section {
  padding: 0 28px 30px;
}

.design-section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 16px;
}

.design-section-head h3 {
  margin-bottom: 0;
}

.design-section .design-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.design-section .design-card {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--paper);
}

.design-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.design-card > div {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.design-section .design-swatch {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  min-height: 36px;
  padding: 0;
  background: transparent;
}

.design-section .design-swatch span:first-child {
  grid-row: auto;
}

@media (max-width: 1180px) {
  .finder-shell,
  .sheet-header,
  .sheet-grid {
    grid-template-columns: 1fr;
  }

  .finder-controls,
  .selected-flat {
    position: static;
  }

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

  .selected-flat dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sheet-header {
    padding-right: 76px;
  }

  .sheet-aside {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }

  .sheet-aside .button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 68px;
    padding: 10px 14px;
  }

  .hero {
    min-height: 84svh;
    padding: 104px 18px 28px;
  }

  .hero-content {
    width: calc(100vw - 36px);
    min-height: calc(84svh - 132px);
  }

  .hero-text {
    max-width: calc(100vw - 36px);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    min-height: 68px;
  }

  .finder-controls {
    grid-template-columns: 1fr;
  }

  .floor-plan-canvas {
    min-height: 430px;
    padding: 12px;
  }

  .floor-svg {
    min-width: 620px;
  }

  .selected-flat dl,
  .sheet-aside,
  .design-section .design-options {
    grid-template-columns: 1fr;
  }

  .apartment-sheet {
    width: min(100%, calc(100vw - 16px));
    max-height: calc(100svh - 16px);
  }

  .sheet-header {
    padding: 22px 68px 16px 18px;
  }

  .sheet-tabs {
    padding: 0 18px 16px;
  }

  .sheet-grid,
  .design-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tour-stage {
    min-height: 430px;
  }

  .tour-topbar {
    display: grid;
    right: auto;
  }

  .design-section-head {
    display: block;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-actions {
    display: grid;
  }

  .finder-controls .floor-switcher {
    grid-template-columns: repeat(6, 1fr);
  }

  .floor-svg {
    min-width: 560px;
  }

  .sheet-header .modal-meta {
    grid-template-columns: 1fr;
  }

  .tour-stage {
    min-height: 360px;
  }

  .tour-actions button {
    width: 42px;
    height: 42px;
  }
}

/* Premium brochure identity */
:root {
  --ink: #262323;
  --ink-soft: #625b55;
  --paper: #f7f6ef;
  --mist: #efeee6;
  --line: #ded7c9;
  --green: #7b2d2e;
  --green-dark: #6b2929;
  --coral: #b84a36;
  --coral-dark: #8f302d;
  --gold: #d78d2d;
  --gold-soft: #e8d8ae;
  --cream: #f5f6f1;
  --wine: #6b2929;
  --wine-dark: #431a1b;
  --brick: #c06640;
  --silver: #ece9df;
  --graphite: #302d2d;
  --shadow: 0 28px 80px rgba(67, 26, 27, 0.18);
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(215, 141, 45, 0.08), transparent 34%),
    var(--paper);
  color: var(--ink);
}

.site-header,
.site-header.scrolled,
.site-header.menu-active {
  min-height: 78px;
  border-bottom: 1px solid rgba(107, 41, 41, 0.12);
  color: var(--wine);
  background: rgba(247, 246, 239, 0.96);
}

.brand {
  width: 178px;
  height: 52px;
  overflow: hidden;
}

.brand-logo {
  display: block;
  width: 178px;
  height: auto;
}

.main-nav {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.main-nav a,
.header-phone {
  font-weight: 800;
}

.button {
  min-height: 54px;
  border-radius: 6px;
  letter-spacing: 0;
}

.button-primary {
  border-color: rgba(215, 141, 45, 0.4);
  background: linear-gradient(135deg, var(--brick), var(--wine));
  color: var(--cream);
  box-shadow: 0 14px 34px rgba(107, 41, 41, 0.24);
}

.button-primary:hover {
  background: linear-gradient(135deg, #d37248, var(--wine-dark));
}

.button-ghost {
  border-color: rgba(245, 246, 241, 0.58);
  color: var(--cream);
}

.site-header.scrolled .button-ghost,
.button-soft {
  border-color: rgba(107, 41, 41, 0.18);
  background: rgba(255, 255, 255, 0.42);
  color: var(--wine);
}

.eyebrow,
.section-kicker {
  color: var(--brick);
  letter-spacing: 0;
}

.hero {
  min-height: 90svh;
  padding: 118px max(24px, calc((100vw - 1180px) / 2)) 40px;
  background: var(--wine);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  border: solid var(--gold);
  opacity: 0.9;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: 96px;
  left: max(22px, calc((100vw - 1220px) / 2));
  border-width: 4px 0 0 4px;
}

.hero::after {
  right: max(22px, calc((100vw - 1220px) / 2));
  bottom: 32px;
  border-width: 0 4px 4px 0;
}

.hero-media {
  left: auto;
  width: min(56vw, 780px);
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.95;
  filter: saturate(0.92) contrast(0.98);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(67, 26, 27, 0.98) 0%, rgba(107, 41, 41, 0.94) 37%, rgba(107, 41, 41, 0.44) 58%, rgba(67, 26, 27, 0.08) 100%),
    linear-gradient(0deg, rgba(67, 26, 27, 0.84), rgba(67, 26, 27, 0.04) 55%);
}

.hero-logo {
  width: min(260px, 72vw);
  height: auto;
  margin-bottom: 24px;
}

.hero-content {
  align-content: center;
  width: min(600px, calc(100vw - 48px));
  min-height: calc(90svh - 164px);
  max-width: 600px;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero h1 {
  max-width: 590px;
  margin-bottom: 24px;
  color: #fffaf1;
  font-size: clamp(3rem, 5.2vw, 5.35rem);
  line-height: 0.98;
  text-wrap: balance;
}

.hero-text {
  max-width: 540px;
  color: rgba(255, 250, 241, 0.86);
  font-size: clamp(1.02rem, 1.24vw, 1.18rem);
}

.hero-stats {
  grid-template-columns: repeat(4, minmax(106px, 1fr));
  max-width: 640px;
  gap: 12px;
}

.hero-stats div,
.installment-count {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 246, 241, 0.34);
  background: rgba(245, 246, 241, 0.16);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.hero-stats dt,
.installment-count strong {
  color: #fffaf1;
}

.section-pad {
  padding-top: 104px;
  padding-bottom: 104px;
}

.intro {
  background:
    linear-gradient(90deg, rgba(107, 41, 41, 0.03), transparent),
    var(--paper);
}

.intro-details p {
  border-left-color: var(--gold);
}

.visual-grid {
  background: var(--mist);
}

.visual-tile {
  border: 1px solid rgba(107, 41, 41, 0.08);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 16px 44px rgba(67, 26, 27, 0.08);
}

.visual-tile span {
  color: var(--gold);
}

.tile-accent {
  background:
    radial-gradient(circle at 86% 18%, rgba(215, 141, 45, 0.18), transparent 30%),
    var(--wine);
}

.tile-accent span {
  color: var(--gold);
}

.image-tile::after {
  background: linear-gradient(180deg, rgba(67, 26, 27, 0.02) 12%, rgba(67, 26, 27, 0.8) 100%);
}

.video-tour {
  background:
    linear-gradient(90deg, var(--wine) 0%, var(--wine) 35%, var(--paper) 35%, var(--paper) 100%);
}

.video-shell {
  align-items: stretch;
}

.promo-video {
  border: 10px solid var(--paper);
  background: var(--wine);
}

.video-copy {
  background:
    linear-gradient(180deg, rgba(215, 141, 45, 0.12), transparent),
    var(--wine);
  color: var(--cream);
}

.video-copy .section-kicker,
.video-copy h3 {
  color: var(--cream);
}

.video-copy p {
  color: rgba(255, 250, 241, 0.78);
}

.installment,
.contact-footer {
  background:
    radial-gradient(circle at 100% 0, rgba(215, 141, 45, 0.16), transparent 28%),
    linear-gradient(135deg, var(--wine), var(--wine-dark));
}

.installment .section-kicker,
.contact-footer .section-kicker {
  color: var(--gold);
}

.feature-strip {
  border-color: rgba(107, 41, 41, 0.14);
  background: var(--paper);
}

.feature-strip article {
  border-left-color: var(--gold);
  background: #fffdf7;
}

.feature-strip span {
  color: var(--brick);
}

.product-finder {
  background:
    linear-gradient(90deg, rgba(107, 41, 41, 0.04), transparent 42%),
    var(--paper);
}

.finder-controls,
.selected-flat,
.floor-plan-panel,
.calc-form,
.calc-result,
.visit-form {
  border-color: rgba(107, 41, 41, 0.14);
  background: #fffdf7;
  box-shadow: 0 24px 70px rgba(67, 26, 27, 0.09);
}

.control-group > span {
  color: var(--wine);
}

.plan-tab.active,
.floor-btn.active {
  background: var(--wine);
  color: var(--cream);
}

.floor-plan-canvas {
  background:
    linear-gradient(90deg, rgba(107, 41, 41, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(107, 41, 41, 0.055) 1px, transparent 1px),
    #fbfaf5;
  background-size: 34px 34px;
}

.floor-bg {
  fill: rgba(255, 253, 247, 0.92);
}

.floor-title {
  fill: var(--wine);
}

.floor-corridor {
  fill: #eee9dd;
  stroke: #d6cdbc;
}

.floor-core {
  fill: var(--wine-dark);
  stroke: var(--wine-dark);
}

.floor-unit.status-available rect {
  fill: #bdb79a;
}

.floor-unit.status-installment rect {
  fill: var(--brick);
}

.floor-unit.status-reserved rect {
  fill: #d2a24a;
}

.floor-unit.status-sold rect {
  fill: #9f9f94;
}

.floor-unit.is-selected rect {
  stroke: var(--wine-dark);
  filter: drop-shadow(0 14px 16px rgba(107, 41, 41, 0.28));
}

.legend-dot.available {
  background: #bdb79a;
}

.selected-flat .section-kicker {
  color: var(--brick);
}

.selected-offer {
  background: #f1dfcf;
  color: var(--wine);
}

.calculator {
  background: var(--paper);
}

.calc-result {
  background:
    radial-gradient(circle at 90% 8%, rgba(215, 141, 45, 0.22), transparent 32%),
    var(--wine);
  color: var(--cream);
}

.calc-form input,
.visit-form input {
  border-color: rgba(107, 41, 41, 0.18);
  background: #fffdf7;
}

.modal {
  background: rgba(32, 17, 17, 0.78);
}

.apartment-sheet {
  background: var(--paper);
}

.apartment-sheet .modal-close {
  background: #fffdf7;
  color: var(--wine);
}

.sheet-header {
  background:
    linear-gradient(90deg, rgba(107, 41, 41, 0.08), transparent),
    var(--paper);
}

.sheet-tabs span {
  border-color: rgba(107, 41, 41, 0.16);
}

.sheet-tabs .active {
  border-color: var(--wine);
  background: var(--wine);
  color: var(--cream);
}

.tour-stage {
  background: var(--wine);
}

.tour-topbar span {
  background: rgba(67, 26, 27, 0.58);
}

.tour-point {
  background: var(--brick);
}

.tour-actions button {
  color: var(--wine);
}

.payment-card {
  background:
    radial-gradient(circle at 95% 0, rgba(215, 141, 45, 0.22), transparent 32%),
    var(--wine);
}

.design-section {
  background: var(--paper);
}

.design-card.active {
  border-color: var(--gold);
}

.grey-sale span:nth-child(1) {
  background: #dedbd2;
}

.grey-sale span:nth-child(2) {
  background: #bdb79a;
}

.grey-sale span:nth-child(3) {
  background: #fffdf7;
}

.warm-minimal span:nth-child(1) {
  background: #f1dfcf;
}

.warm-minimal span:nth-child(2) {
  background: #c06640;
}

.warm-minimal span:nth-child(3) {
  background: #d78d2d;
}

.family-light span:nth-child(1) {
  background: #6b2929;
}

.family-light span:nth-child(2) {
  background: #d78d2d;
}

.family-light span:nth-child(3) {
  background: #f5f6f1;
}

.footer-links .button-ghost {
  border-color: rgba(245, 246, 241, 0.36);
  color: var(--cream);
}

@media (max-width: 1080px) {
  .brand {
    width: 148px;
  }

  .brand-logo {
    width: 148px;
  }

  .hero-media {
    width: 100%;
    opacity: 0.34;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(67, 26, 27, 0.96), rgba(67, 26, 27, 0.78));
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(118px, 1fr));
  }

  .video-tour {
    background: var(--paper);
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 70px;
  }

  .main-nav {
    background: rgba(247, 246, 239, 0.98);
    color: var(--wine);
  }

  .hero {
    min-height: 88svh;
    padding-top: 102px;
  }

  .hero-content {
    width: calc(100vw - 36px);
    min-height: calc(88svh - 132px);
  }

  .hero-logo {
    width: min(260px, 78vw);
  }

  .hero h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats div {
    display: block;
    min-height: 94px;
  }

  .floor-plan-canvas {
    background-size: 30px 30px;
  }
}

@media (max-width: 520px) {
  .brand {
    width: 124px;
  }

  .brand-logo {
    width: 124px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero::before,
  .hero::after {
    width: 96px;
    height: 96px;
  }
}

/* Productized apartment selection */
.hero-deal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
  margin: 22px 0 0;
}

.hero-deal-strip span,
.hero-deal-strip a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(245, 246, 241, 0.24);
  border-radius: 6px;
  background: rgba(245, 246, 241, 0.12);
  color: rgba(255, 250, 241, 0.84);
  font-weight: 750;
  backdrop-filter: blur(14px);
}

.hero-deal-strip strong {
  margin-right: 5px;
  color: #fffaf1;
}

.hero-deal-strip a {
  border-color: rgba(215, 141, 45, 0.52);
  color: var(--gold);
}

.selected-price {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(107, 41, 41, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215, 141, 45, 0.12), transparent),
    #fffaf0;
}

.selected-price span {
  color: var(--wine);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.selected-price strong {
  color: var(--wine-dark);
  font-size: 2rem;
  line-height: 1;
}

.selected-price p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.floor-plan-canvas {
  max-height: 760px;
}

.floor-brochure-svg {
  display: block;
  width: min(100%, 855px);
  min-width: 620px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 20px 54px rgba(67, 26, 27, 0.12);
}

.floor-title-plate {
  fill: var(--wine);
}

.floor-brochure-svg .floor-title {
  fill: #fffaf1;
  font-size: 38px;
  font-weight: 850;
  text-transform: uppercase;
}

.floor-entry-label {
  fill: var(--wine);
  font-size: 22px;
  font-weight: 850;
  text-transform: uppercase;
}

.floor-brochure-svg .floor-note {
  fill: rgba(38, 35, 35, 0.58);
  font-size: 17px;
  font-weight: 800;
}

.floor-doc-unit {
  cursor: pointer;
  outline: none;
}

.floor-doc-unit .floor-hit {
  opacity: 0.16;
  stroke: rgba(67, 26, 27, 0.52);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.floor-doc-unit .floor-doc-pin {
  stroke: rgba(255, 250, 241, 0.9);
  stroke-width: 5;
  filter: drop-shadow(0 8px 14px rgba(67, 26, 27, 0.22));
}

.floor-doc-unit.status-available .floor-doc-pin {
  fill: #a84334;
}

.floor-doc-unit.status-installment .floor-doc-pin {
  fill: var(--brick);
}

.floor-doc-unit.status-reserved .floor-doc-pin {
  fill: #d2a24a;
}

.floor-doc-unit.status-sold .floor-doc-pin {
  fill: #8f8d84;
}

.floor-doc-unit.status-available .floor-hit {
  fill: #bdb79a;
}

.floor-doc-unit.status-installment .floor-hit {
  fill: var(--brick);
}

.floor-doc-unit.status-reserved .floor-hit {
  fill: #d2a24a;
}

.floor-doc-unit.status-sold .floor-hit {
  fill: #9f9f94;
}

.floor-doc-unit.is-muted {
  opacity: 0.5;
}

.floor-doc-unit.is-selected {
  opacity: 1;
}

.floor-doc-unit.is-selected .floor-hit,
.floor-doc-unit:hover .floor-hit,
.floor-doc-unit:focus .floor-hit {
  opacity: 0.28;
  stroke: var(--wine-dark);
  stroke-width: 5;
}

.floor-doc-unit.is-selected .floor-doc-pin,
.floor-doc-unit:hover .floor-doc-pin,
.floor-doc-unit:focus .floor-doc-pin {
  stroke: var(--gold);
  stroke-width: 7;
}

.floor-doc-unit .floor-unit-number {
  font-size: 25px;
  font-weight: 850;
}

.floor-doc-unit .floor-unit-area {
  font-size: 13px;
  font-weight: 850;
}

.tour-caption {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  width: min(420px, calc(100% - 92px));
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(67, 26, 27, 0.58);
  color: var(--cream);
  backdrop-filter: blur(16px);
}

.tour-caption strong {
  font-size: 1.15rem;
}

.tour-caption span {
  color: rgba(255, 250, 241, 0.78);
  font-size: 0.92rem;
}

.payment-card small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 250, 241, 0.72);
  font-weight: 750;
}

.design-card {
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.design-card small {
  color: var(--brick);
  font-weight: 850;
}

.design-card.active {
  box-shadow: 0 18px 48px rgba(107, 41, 41, 0.16);
}

@media (max-width: 820px) {
  .hero-deal-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-deal-strip span,
  .hero-deal-strip a {
    min-height: 48px;
  }

  .floor-plan-canvas {
    max-height: 650px;
  }

  .floor-brochure-svg {
    min-width: 560px;
  }

  .tour-caption {
    width: calc(100% - 36px);
    bottom: 82px;
  }
}

@media (max-width: 520px) {
  .hero-deal-strip {
    grid-template-columns: 1fr;
  }

  .selected-price strong {
    font-size: 1.75rem;
  }

  .floor-brochure-svg {
    min-width: 520px;
  }
}
