/* ============================================================
   РИВЕР ПАРК — единая система стилей
   Палитра: тёплый светлый фон, глубокий зелёный, латунь, песок
   ============================================================ */

:root {
  --bg: #f4f1ec;
  --bg-2: #ece7de;
  --bg-3: #e3dccf;
  --paper: #fbfaf7;
  --green: #153b32;
  --green-2: #0f2c25;
  --green-3: #1d4d41;
  --brass: #b9924a;
  --brass-2: #d3b477;
  --brass-soft: rgba(185, 146, 74, .14);
  --sand: #d9cdb8;
  --ink: #1b1f1d;
  --muted: #6c716c;
  --muted-2: #9a9f99;
  --line: rgba(21, 59, 50, .14);
  --line-strong: rgba(21, 59, 50, .32);
  --on-dark: #f4f1ec;
  --on-dark-muted: rgba(244, 241, 236, .62);
  --line-dark: rgba(244, 241, 236, .16);
  --error: #b34a3a;
  --ok: #3d7a5a;

  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Manrope', 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 6px;
  --radius-lg: 12px;
  --header-h: 84px;
  --container: 1360px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(64px, 9vw, 136px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 24px 60px -24px rgba(21, 59, 50, .28);
  --shadow-sm: 0 10px 30px -14px rgba(21, 59, 50, .22);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(15px, .3vw + 14px, 17px);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
svg { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.06;
  margin: 0 0 .5em;
  letter-spacing: -.005em;
  color: var(--green);
}

h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); }
h3 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); }
h4 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }

h1 em, h2 em, h3 em { font-style: italic; color: var(--brass); font-weight: 400; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brass); }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--brass); color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 960px; }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--dark { background: var(--green); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }
.section--sand { background: var(--bg-2); }
.section--paper { background: var(--paper); }

.lead {
  font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 56ch;
}
.section--dark .lead { color: var(--on-dark-muted); }

.muted { color: var(--muted); }
.section--dark .muted { color: var(--on-dark-muted); }

.num { font-variant-numeric: tabular-nums; }

/* ---------- Eyebrow / section head ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 34px; height: 1px;
  background: currentColor;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head h2 { margin-bottom: 0; max-width: 16ch; }
.section-head--single { grid-template-columns: 1fr; }
.section-head--center { text-align: center; grid-template-columns: 1fr; }
.section-head--center h2 { margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green);
  --btn-fg: var(--on-dark);
  --btn-bd: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--brass { --btn-bg: var(--brass); --btn-bd: var(--brass); --btn-fg: #fff; }
.btn--brass:hover { --btn-bg: #a8823f; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--green); --btn-bd: var(--line-strong); }
.btn--outline:hover { --btn-bd: var(--green); }
.btn--light { --btn-bg: var(--on-dark); --btn-fg: var(--green); --btn-bd: var(--on-dark); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-bd: rgba(244, 241, 236, .4); }
.btn--outline-light:hover { --btn-bd: var(--on-dark); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .86rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--green);
  position: relative;
}
.link-arrow svg { width: 20px; height: 20px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(6px); }
.section--dark .link-arrow { color: var(--on-dark); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background .4s, box-shadow .4s, height .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(244, 241, 236, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  height: 68px;
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
  flex: none;
}
.logo:hover { color: var(--green); }
.logo__mark { width: 40px; height: 40px; }
.logo__text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
}
.logo__text em { font-style: italic; font-weight: 400; color: var(--brass); margin-left: 4px; }

.nav__list { display: flex; gap: clamp(20px, 2.5vw, 40px); }
.nav__list a {
  position: relative;
  padding: 8px 0;
  font-weight: 500;
  font-size: .95rem;
  color: var(--green);
}
.nav__list a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__list a:hover::after,
.nav__list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__list a[aria-current="page"] { color: var(--brass); }
.nav__extra { display: none; }

.header__actions { display: flex; align-items: center; gap: 20px; }
.header__phone { font-weight: 600; color: var(--green); font-size: .95rem; }

.burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.burger span,
.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 18px; height: 1.5px;
  background: var(--green);
  transform: translateX(-50%);
  transition: transform .35s var(--ease), opacity .3s, background .3s;
}
.burger span { top: 50%; margin-top: -1px; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header__phone { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .burger { display: block; }
  .header__actions .btn { display: none; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: var(--green);
    color: var(--on-dark);
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s .4s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s;
  }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav__list a {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 500;
    color: var(--on-dark);
    padding: 6px 0;
    display: inline-block;
  }
  .nav__list a[aria-current="page"] { color: var(--brass-2); }
  .nav__list a::after { bottom: 6px; }
  .nav__extra {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    border-top: 1px solid var(--line-dark);
    padding-top: 24px;
  }
  .nav__extra a { font-family: var(--font-serif); font-size: 1.5rem; color: var(--on-dark); }
  .site-header.is-menu-open { background: var(--green); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.is-menu-open .logo, .site-header.is-menu-open .header__actions { position: relative; z-index: 41; }
  .site-header.is-menu-open .logo { color: var(--on-dark); }
  .site-header.is-menu-open .burger { border-color: var(--line-dark); }
  .site-header.is-menu-open .burger span::before,
  .site-header.is-menu-open .burger span::after { background: var(--on-dark); }
  .site-header.is-menu-open .burger span { background: transparent; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-2);
  color: var(--on-dark);
  padding: clamp(56px, 7vw, 96px) 0 32px;
}
.site-footer h4 { color: var(--on-dark); font-family: var(--font-sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; font-weight: 600; opacity: .7; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer__grid .logo { color: var(--on-dark); margin-bottom: 20px; }
.footer__about { color: var(--on-dark-muted); max-width: 36ch; font-size: .95rem; }
.footer__links li + li { margin-top: 10px; }
.footer__links a { color: var(--on-dark-muted); transition: color .3s; }
.footer__links a:hover { color: var(--brass-2); }
.footer__contact { color: var(--on-dark-muted); font-size: .95rem; }
.footer__contact strong { color: var(--on-dark); font-weight: 600; display: block; margin-bottom: 4px; }
.footer__contact p + p { margin-top: 14px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 32px;
  padding-top: 26px;
  font-size: .8rem;
  color: var(--on-dark-muted);
}
.footer__portfolio {
  color: var(--on-dark-muted);
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.footer__portfolio:hover { color: var(--brass-2); border-color: var(--brass-2); }

@media (max-width: 960px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Reveal / motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal--left { transform: translateX(-28px); }
.reveal--scale { transform: scale(.96); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Page hero (internal pages) ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 18px; max-width: 18ch; }
.page-hero .lead { margin-top: 0; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; opacity: .5; }
.breadcrumbs a:hover { color: var(--brass); }

/* ---------- Home hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 88px));
  position: relative;
  overflow: clip;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 40px clamp(32px, 6vw, 96px);
  align-items: end;
}
.hero h1 { margin-bottom: 26px; max-width: 12ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.hero__fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.hero__fact span { font-size: .85rem; color: var(--muted); }
.hero__fact strong {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.6rem);
  font-weight: 500;
  color: var(--green);
  line-height: 1;
  white-space: nowrap;
}
.hero__fact strong small { font-size: .5em; color: var(--brass); margin-left: 4px; font-family: var(--font-sans); font-weight: 600; }

.hero__visual {
  margin-top: clamp(48px, 6vw, 88px);
  position: relative;
}
.hero__visual svg { width: 100%; height: auto; }
.hero__caption {
  position: absolute;
  left: 0; bottom: clamp(8px, 2vw, 24px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__caption::before { content: ''; width: 34px; height: 1px; background: var(--brass); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .hero__fact { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 420px) {
  .hero__facts { grid-template-columns: 1fr; }
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2.5vw, 36px);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__value {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4.4rem);
  font-weight: 500;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.stat__value small { font-size: .42em; color: var(--brass); font-family: var(--font-sans); font-weight: 600; letter-spacing: .04em; margin-left: 4px; }
.stat__label { color: var(--muted); font-size: .9rem; max-width: 22ch; }
.section--dark .stat__value { color: var(--on-dark); }
.section--dark .stat { border-color: var(--line-dark); }
.section--dark .stats { border-color: var(--line-dark); }

@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section--dark .stat:nth-child(-n+2) { border-bottom-color: var(--line-dark); }
}

/* ---------- Advantages ---------- */
.adv {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 48px clamp(40px, 6vw, 120px);
}
.adv__sticky { position: sticky; top: 110px; align-self: start; }
.adv__sticky h2 { max-width: 14ch; }
.adv__list { border-top: 1px solid var(--line); }
.adv__item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  gap: 20px;
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.adv__num { font-family: var(--font-serif); font-size: 1.5rem; color: var(--brass); line-height: 1.2; }
.adv__item h3 { margin-bottom: 10px; }
.adv__item p { color: var(--muted); max-width: 48ch; }
.adv__icon { width: 44px; height: 44px; color: var(--green); justify-self: end; opacity: .8; }
.adv__icon svg { width: 100%; height: 100%; }

@media (max-width: 900px) {
  .adv { grid-template-columns: 1fr; }
  .adv__sticky { position: static; }
  .adv__item { grid-template-columns: 48px 1fr; }
  .adv__icon { display: none; }
}

/* ---------- Master plan ---------- */
.plan-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
  gap: 40px clamp(32px, 4vw, 64px);
  align-items: start;
}
.plan-stage {
  position: relative;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(12px, 2vw, 28px);
  background: rgba(0, 0, 0, .12);
}
.plan-stage svg { width: 100%; height: auto; }
.plan-house { cursor: pointer; outline: none; }
.plan-house .plan-house__fill {
  fill: rgba(244, 241, 236, .12);
  stroke: rgba(244, 241, 236, .7);
  stroke-width: 1.5;
  transition: fill .35s, stroke .35s;
}
.plan-house text {
  fill: var(--on-dark);
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 500;
  pointer-events: none;
}
.plan-house .plan-house__sub { font-family: var(--font-sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; fill: var(--on-dark-muted); }
.plan-house:hover .plan-house__fill,
.plan-house:focus-visible .plan-house__fill,
.plan-house.is-active .plan-house__fill { fill: rgba(185, 146, 74, .55); stroke: var(--brass-2); }
.plan-tip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  min-width: 220px;
  max-width: 280px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, -100%) translateY(-14px) scale(.96);
  transition: opacity .25s, transform .25s var(--ease);
}
.plan-tip.is-visible { opacity: 1; transform: translate(-50%, -100%) translateY(-18px); }
.plan-tip__title { font-family: var(--font-serif); font-size: 1.35rem; color: var(--green); line-height: 1.1; margin-bottom: 4px; }
.plan-tip__meta { font-size: .8rem; color: var(--muted); display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin-top: 8px; }
.plan-tip__meta b { color: var(--ink); font-weight: 600; }
.plan-tip::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -6px;
  width: 12px; height: 12px;
  background: var(--paper);
  transform: translateX(-50%) rotate(45deg);
}
.plan-legend { font-size: .8rem; color: var(--on-dark-muted); display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px; }
.plan-legend span { display: inline-flex; align-items: center; gap: 8px; }
.plan-legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

.house-list { display: grid; gap: 10px; }
.house-item {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--on-dark);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.house-item:hover, .house-item.is-active { background: rgba(244, 241, 236, .07); border-color: rgba(185, 146, 74, .6); transform: translateX(4px); }
.house-item__num { font-family: var(--font-serif); font-size: 2rem; color: var(--brass-2); line-height: 1; }
.house-item__title { font-weight: 600; }
.house-item__meta { font-size: .8rem; color: var(--on-dark-muted); }
.house-item__floors { font-family: var(--font-serif); font-size: 1.4rem; color: var(--on-dark); white-space: nowrap; }
.house-item__floors small { font-family: var(--font-sans); font-size: .7rem; color: var(--on-dark-muted); margin-left: 3px; }

@media (max-width: 960px) {
  .plan-wrap { grid-template-columns: 1fr; }
}

/* ---------- Rooms teaser ---------- */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.room-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 190px;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.room-tile::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.room-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); color: var(--ink); border-color: transparent; }
.room-tile:hover::after { transform: scaleX(1); }
.room-tile__name { font-family: var(--font-serif); font-size: 1.8rem; color: var(--green); line-height: 1; }
.room-tile__count { font-size: .82rem; color: var(--muted); flex: 1; }
.room-tile__area { font-size: .85rem; color: var(--muted); }
.room-tile__price { font-weight: 600; color: var(--green); }
.room-tile__price small { display: block; font-weight: 500; color: var(--brass); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }

@media (max-width: 1100px) { .rooms-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .rooms-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .room-tile { padding: 20px 16px; min-height: 160px; } }

/* ---------- Infrastructure cards ---------- */
.infra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.infra-card {
  background: var(--bg);
  padding: clamp(24px, 3vw, 40px);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  transition: background .35s;
}
.infra-card:hover { background: var(--paper); }
.infra-card__icon { width: 46px; height: 46px; color: var(--brass); margin-bottom: auto; }
.infra-card__icon svg { width: 100%; height: 100%; }
.infra-card h3 { margin: 28px 0 8px; font-size: 1.5rem; }
.infra-card p { color: var(--muted); font-size: .95rem; }

@media (max-width: 900px) { .infra-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .infra-grid { grid-template-columns: 1fr; } .infra-card { min-height: 0; } .infra-card__icon { margin-bottom: 0; } }

/* ---------- Timeline ---------- */
.timeline-wrap { position: relative; }
.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(200px, 1fr));
  gap: 24px;
  position: relative;
  padding-top: 32px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 8px; left: 0; right: 0;
  height: 1px;
  background: var(--line-dark);
}
.tl-step { position: relative; scroll-snap-align: start; }
.tl-step::before {
  content: '';
  position: absolute;
  top: -28px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
  border: 1px solid var(--on-dark-muted);
  transition: background .3s;
}
.tl-step.is-done::before { background: var(--brass-2); border-color: var(--brass-2); }
.tl-step.is-current::before { background: var(--brass); border-color: var(--brass); box-shadow: 0 0 0 6px rgba(185, 146, 74, .25); }
.tl-step__date { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-2); margin-bottom: 10px; font-weight: 600; }
.tl-step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.tl-step p { color: var(--on-dark-muted); font-size: .9rem; }
.tl-step__status { display: inline-block; margin-top: 12px; font-size: .72rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--on-dark-muted); }
.tl-step.is-done .tl-step__status { color: var(--brass-2); border-color: rgba(211, 180, 119, .5); }
.tl-step.is-current .tl-step__status { background: var(--brass); border-color: var(--brass); color: #fff; }

.progress-houses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line-dark);
}
.ph-card { display: grid; grid-template-columns: 70px 1fr; gap: 16px; align-items: end; }
.ph-card svg { width: 70px; height: auto; }
.ph-card__title { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.1; }
.ph-card__meta { font-size: .82rem; color: var(--on-dark-muted); margin-top: 4px; }
.ph-card__bar { height: 3px; background: var(--line-dark); margin-top: 12px; border-radius: 2px; overflow: hidden; }
.ph-card__bar i { display: block; height: 100%; width: 0; background: var(--brass-2); transition: width 1.4s var(--ease); }

@media (max-width: 960px) { .progress-houses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .progress-houses { grid-template-columns: 1fr; } }

/* ---------- Programs (mortgage brief) ---------- */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.program:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.program--featured { background: var(--green); color: var(--on-dark); border-color: var(--green); }
.program--featured h3, .program--featured .program__rate { color: var(--on-dark); }
.program--featured .muted { color: var(--on-dark-muted); }
.program__tag { position: absolute; top: 18px; right: 18px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-2); font-weight: 600; }
.program__rate { font-family: var(--font-serif); font-size: clamp(2.6rem, 2rem + 2vw, 4rem); line-height: 1; color: var(--green); }
.program__rate small { font-size: .38em; font-family: var(--font-sans); font-weight: 600; color: var(--brass); margin-left: 4px; }
.program h3 { font-size: 1.45rem; margin: 6px 0 4px; }
.program__payment { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }
.program--featured .program__payment { border-color: var(--line-dark); }
.program__payment strong { display: block; font-size: 1.25rem; font-weight: 600; margin-top: 2px; }

@media (max-width: 900px) { .programs { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: clip;
}
.cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 32px 64px;
}
.cta h2 { margin-bottom: 14px; max-width: 18ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta__deco {
  position: absolute;
  right: -5%; top: 50%;
  width: clamp(280px, 40vw, 620px);
  transform: translateY(-50%);
  opacity: .12;
  pointer-events: none;
}
@media (max-width: 900px) { .cta__inner { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; position: relative; }
.field label { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%23153b32' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px var(--brass-soft); }
.field__error { font-size: .78rem; color: var(--error); min-height: 0; display: none; }
.field.is-error input, .field.is-error select { border-color: var(--error); }
.field.is-error .field__error { display: block; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brass); }
.field--check label { font-weight: 500; font-size: .82rem; line-height: 1.45; }
.field--check.is-error label { color: var(--error); }
.field--check .field__error { grid-column: 1 / -1; }
.form__hint { font-size: .78rem; color: var(--muted); }
.form-success {
  padding: 32px;
  border: 1px solid rgba(61, 122, 90, .35);
  border-radius: var(--radius-lg);
  background: rgba(61, 122, 90, .06);
  text-align: center;
}
.form-success svg { width: 48px; height: 48px; margin: 0 auto 14px; color: var(--ok); }
.form-success h3 { margin-bottom: 6px; }
.form-success p { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: .85rem;
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--green); color: var(--on-dark); border-color: var(--green); }
.chip svg { width: 16px; height: 16px; }
.chip--sm { min-height: 34px; padding: 0 12px; font-size: .8rem; }

/* ---------- Range slider (single & dual) ---------- */
.range { position: relative; padding: 10px 0 6px; }
.range__track { position: relative; height: 2px; background: var(--line-strong); border-radius: 2px; }
.range__fill { position: absolute; top: 0; bottom: 0; background: var(--brass); left: 0; right: 0; }
.range input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  top: 10px; left: 0;
  width: 100%;
  height: 2px;
  margin: 0;
  background: transparent;
  pointer-events: none;
  outline: none;
}
.range input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: transparent; }
.range input[type="range"]::-moz-range-track { height: 2px; background: transparent; }
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 20px; height: 20px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--green);
  box-shadow: 0 2px 6px rgba(21, 59, 50, .2);
  cursor: grab;
  transition: transform .2s;
}
.range input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--green);
  box-shadow: 0 2px 6px rgba(21, 59, 50, .2);
  cursor: grab;
}
.range input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--brass); outline-offset: 2px; }
.range input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--brass); outline-offset: 2px; }
.range input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); border-color: var(--brass); }
.range__values { display: flex; justify-content: space-between; margin-top: 14px; font-size: .85rem; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.range--single .range__values { justify-content: flex-end; }
.range--single .range__values span:first-child { margin-right: auto; color: var(--muted); font-weight: 500; }

/* ---------- Catalog (flats.html) ---------- */
.catalog {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px clamp(32px, 4vw, 64px);
  align-items: start;
}
.filters {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 28px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.filters__title { display: flex; justify-content: space-between; align-items: center; }
.filters__title h3 { margin: 0; font-size: 1.35rem; }
.filters__reset { font-size: .8rem; color: var(--muted); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.filters__reset:hover { color: var(--brass); border-color: var(--brass); }
.filter-group { display: grid; gap: 12px; }
.filter-group__label { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.checks { display: grid; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); margin: 0; }
.check small { color: var(--muted); margin-left: auto; font-size: .78rem; }
.filters__toggle { display: none; }

.catalog__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.catalog__count { font-family: var(--font-serif); font-size: 1.6rem; color: var(--green); }
.catalog__count span { color: var(--brass); }
.sort { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.sort select {
  min-height: 42px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%23153b32' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--green);
  font-weight: 600;
  -webkit-appearance: none;
  appearance: none;
}

.flat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.flat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.flat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.flat-card__plan {
  display: block;
  padding: 22px 22px 8px;
  background: linear-gradient(180deg, var(--bg-2), var(--paper));
}
.flat-card__plan svg { width: 100%; height: auto; max-height: 190px; transition: transform .5s var(--ease); }
.flat-card:hover .flat-card__plan svg { transform: scale(1.03); }
.flat-card__body { padding: 16px 22px 22px; display: grid; gap: 8px; }
.flat-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.flat-card__rooms { font-family: var(--font-serif); font-size: 1.45rem; color: var(--green); line-height: 1.1; }
.flat-card__area { font-weight: 600; white-space: nowrap; }
.flat-card__meta { font-size: .82rem; color: var(--muted); }
.flat-card__price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.flat-card__price strong { font-weight: 600; font-size: 1.1rem; color: var(--green); }
.flat-card__price small { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.flat-card__tag { position: absolute; top: 14px; left: 14px; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--brass); background: var(--paper); padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); }
.flat-card__plan { position: relative; }

.empty {
  padding: clamp(40px, 6vw, 80px) 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}
.empty svg { width: 64px; height: 64px; margin: 0 auto 18px; color: var(--brass); }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 40ch; margin-inline: auto; margin-bottom: 20px; }

@media (max-width: 960px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters__toggle { display: inline-flex; margin-bottom: 20px; }
  .filters { display: none; }
  .filters.is-open { display: grid; }
}

/* ---------- Plan SVG (generated) ---------- */
.plan { width: 100%; height: auto; }
.plan__room { fill: var(--paper); stroke: var(--green); stroke-width: 2; stroke-linejoin: miter; }
.plan__room--loggia { fill: var(--bg-2); stroke-width: 1; stroke-dasharray: 4 3; }
.plan__room--wet { fill: var(--bg-2); }
.plan__outer { fill: none; stroke: var(--green); stroke-width: 6; }
.plan__gap { stroke: var(--paper); stroke-width: 8; stroke-linecap: butt; }
.plan__door { fill: none; stroke: var(--brass); stroke-width: 1.2; }
.plan__win-gap { stroke: var(--paper); stroke-width: 8; }
.plan__win { stroke: var(--green); stroke-width: 1.2; }
.plan__label { font-family: var(--font-sans); font-size: 11px; fill: var(--ink); font-weight: 600; }
.plan__area { font-family: var(--font-sans); font-size: 10.5px; fill: var(--muted); }
.plan__dim { font-family: var(--font-sans); font-size: 10px; fill: var(--muted); letter-spacing: .06em; }
.plan__dim-line { stroke: var(--muted-2); stroke-width: .8; }
.plan--mini .plan__room { stroke-width: 1.6; }
.plan--mini .plan__outer { stroke-width: 4; }
.plan--mini .plan__win-gap { stroke-width: 5; }
.plan--mini .plan__gap { stroke-width: 5; }

/* ---------- Flat page ---------- */
.flat-hero {
  padding-top: calc(var(--header-h) + clamp(28px, 4vw, 56px));
  padding-bottom: clamp(48px, 6vw, 88px);
}
.flat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .75fr);
  gap: 40px clamp(32px, 5vw, 80px);
  align-items: start;
}
.flat-visual {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 48px);
  position: relative;
}
.flat-visual .plan { max-height: 560px; margin-inline: auto; }
.flat-visual__note { position: absolute; left: clamp(16px, 2vw, 28px); bottom: clamp(12px, 2vw, 20px); font-size: .72rem; color: var(--muted-2); letter-spacing: .06em; }
.flat-visual__compass { position: absolute; right: clamp(16px, 2vw, 28px); top: clamp(16px, 2vw, 28px); width: 36px; height: 36px; color: var(--muted); }
.flat-summary { position: sticky; top: 100px; }
.flat-summary h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); margin-bottom: 10px; }
.flat-summary__sub { color: var(--muted); margin-bottom: 26px; }
.flat-price { display: flex; flex-direction: column; gap: 4px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.flat-price strong { font-family: var(--font-serif); font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); color: var(--green); line-height: 1; font-weight: 500; }
.flat-price span { font-size: .82rem; color: var(--muted); }
.specs { display: grid; gap: 0; }
.specs__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.specs__row span { color: var(--muted); }
.specs__row b { font-weight: 600; text-align: right; }
.flat-summary__ctas { display: grid; gap: 10px; margin-top: 26px; }

.flat-section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
.floor-scheme { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 2.5vw, 32px); }
.floor-scheme svg { width: 100%; height: auto; }
.floor-scheme__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .78rem; color: var(--muted); margin-top: 14px; }
.floor-scheme__legend span { display: inline-flex; align-items: center; gap: 8px; }
.floor-scheme__legend i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line-strong); display: inline-block; }
.fs__unit { fill: var(--bg-2); stroke: var(--green); stroke-width: 1.2; }
.fs__unit--active { fill: var(--brass); fill-opacity: .85; stroke: var(--green); stroke-width: 2; }
.fs__core { fill: var(--paper); stroke: var(--green); stroke-width: 1.2; stroke-dasharray: 3 3; }
.fs__label { font-family: var(--font-sans); font-size: 11px; fill: var(--muted); font-weight: 600; }
.fs__label--active { fill: #fff; }
.fs__note { font-family: var(--font-sans); font-size: 10px; fill: var(--muted-2); letter-spacing: .1em; text-transform: uppercase; }

.mini-calc { background: var(--green); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); }
.mini-calc h3 { color: var(--on-dark); }
.mini-calc .range__track { background: rgba(244, 241, 236, .3); }
.mini-calc .range__values { color: var(--on-dark); }
.mini-calc .range--single .range__values span:first-child { color: var(--on-dark-muted); }
.mini-calc .field label { color: var(--on-dark-muted); }
.mini-calc .field select { background-color: rgba(244, 241, 236, .06); border-color: var(--line-dark); color: var(--on-dark); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%23f4f1ec' stroke-width='1.5'/%3E%3C/svg%3E"); }
.mini-calc .field select option { color: var(--ink); }
.mini-calc__result { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-calc__result div span { display: block; font-size: .76rem; color: var(--on-dark-muted); margin-bottom: 4px; }
.mini-calc__result div b { font-family: var(--font-serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-weight: 500; line-height: 1; }
.mini-calc__result div:first-child b { color: var(--brass-2); }
.mini-calc__controls { display: grid; gap: 20px; }
.mini-calc__link { margin-top: 20px; }

@media (max-width: 960px) {
  .flat-layout { grid-template-columns: 1fr; }
  .flat-summary { position: static; }
  .flat-section-grid { grid-template-columns: 1fr; }
}

/* ---------- Mortgage page ---------- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 4vw, 64px);
  align-items: start;
}
.calc__panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  gap: 28px;
}
.calc__control { display: grid; gap: 10px; }
.calc__control-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc__control-head label { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.calc__input {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--line-strong);
  font-weight: 600;
  color: var(--green);
}
.calc__input input {
  width: 9ch;
  border: 0;
  background: transparent;
  text-align: right;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 4px 0;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.calc__input input::-webkit-outer-spin-button, .calc__input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__input input:focus { outline: none; }
.calc__input:focus-within { border-color: var(--brass); }
.calc__input--wide input { width: 13ch; }
.calc__input span { font-size: .85rem; color: var(--muted); }
.calc__control .range { padding-top: 6px; }
.calc__control .range__values { margin-top: 10px; font-weight: 500; color: var(--muted); font-size: .78rem; }

.radio-cards { display: grid; gap: 10px; }
.radio-card {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .3s, background .3s;
}
.radio-card:hover { border-color: var(--line-strong); }
.radio-card input { width: 18px; height: 18px; margin: 0; accent-color: var(--brass); }
.radio-card:has(input:checked) { border-color: var(--brass); background: var(--brass-soft); }
.radio-card__name { font-weight: 600; font-size: .95rem; }
.radio-card__desc { font-size: .78rem; color: var(--muted); }
.radio-card__rate { font-family: var(--font-serif); font-size: 1.6rem; color: var(--green); white-space: nowrap; }
.radio-card__custom { display: flex; align-items: center; gap: 6px; }
.radio-card__custom input[type="number"] { width: 5ch; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; text-align: right; font-weight: 600; padding: 2px 0; -moz-appearance: textfield; }
.radio-card__custom input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

.calc__result { display: grid; gap: 20px; position: sticky; top: 100px; }
.result-main {
  background: var(--green);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  position: relative;
  overflow: hidden;
}
.result-main__label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 10px; }
.result-main__value { font-family: var(--font-serif); font-size: clamp(2.8rem, 2rem + 3vw, 4.8rem); line-height: 1; font-weight: 500; color: var(--brass-2); font-variant-numeric: tabular-nums; }
.result-main__value small { font-size: .4em; color: var(--on-dark-muted); font-family: var(--font-sans); font-weight: 500; margin-left: 6px; }
.result-main__sub { margin-top: 10px; font-size: .85rem; color: var(--on-dark-muted); }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.result-cell { background: var(--paper); padding: 20px 22px; }
.result-cell span { display: block; font-size: .76rem; color: var(--muted); margin-bottom: 6px; }
.result-cell b { font-family: var(--font-serif); font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); font-weight: 500; color: var(--green); line-height: 1.1; font-variant-numeric: tabular-nums; }
.chart-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 2.5vw, 32px); }
.chart-card h4 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.chart-split { display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: center; }
.donut { width: 150px; height: 150px; }
.donut__track { fill: none; stroke: var(--bg-3); stroke-width: 14; }
.donut__val { fill: none; stroke: var(--brass); stroke-width: 14; stroke-linecap: butt; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dasharray .8s var(--ease); }
.donut__int { fill: none; stroke: var(--green); stroke-width: 14; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dasharray .8s var(--ease), stroke-dashoffset .8s var(--ease); }
.donut__text { font-family: var(--font-serif); font-size: 26px; fill: var(--green); text-anchor: middle; }
.donut__sub { font-family: var(--font-sans); font-size: 9px; fill: var(--muted); text-anchor: middle; letter-spacing: .1em; text-transform: uppercase; }
.legend { display: grid; gap: 10px; font-size: .88rem; }
.legend div { display: flex; align-items: center; gap: 10px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.legend b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.bars { width: 100%; height: auto; }
.bars__p { fill: var(--brass); }
.bars__i { fill: var(--green); }
.bars__axis { font-family: var(--font-sans); font-size: 9px; fill: var(--muted); }
.bars__grid { stroke: var(--line); stroke-width: 1; }

.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .92rem; }
.compare th { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.compare thead th:first-child { width: 22%; }
.compare tbody th { font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .92rem; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare td.is-best { color: var(--green); font-weight: 600; position: relative; }
.compare td.is-best::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: var(--brass); }
.compare .compare__rate { font-family: var(--font-serif); font-size: 1.8rem; color: var(--green); line-height: 1; }
.compare .compare__name { font-weight: 600; }
.compare small { color: var(--muted); display: block; margin-top: 3px; font-size: .78rem; }

.accordion { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  text-align: left;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.1rem + .6vw, 1.55rem);
  color: var(--green);
  font-weight: 500;
  transition: color .3s;
}
.acc__btn:hover { color: var(--brass); }
.acc__icon { width: 34px; height: 34px; flex: none; border: 1px solid var(--line-strong); border-radius: 50%; position: relative; transition: transform .4s var(--ease), border-color .3s; }
.acc__icon::before, .acc__icon::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--green); transform: translate(-50%, -50%); }
.acc__icon::before { width: 12px; height: 1.2px; }
.acc__icon::after { width: 1.2px; height: 12px; transition: opacity .3s; }
.acc__btn[aria-expanded="true"] .acc__icon { transform: rotate(180deg); border-color: var(--brass); }
.acc__btn[aria-expanded="true"] .acc__icon::after { opacity: 0; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__panel.is-open { grid-template-rows: 1fr; }
.acc__panel p { color: var(--muted); max-width: 64ch; padding-bottom: 24px; }

@media (max-width: 960px) {
  .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
}
@media (max-width: 480px) {
  .chart-split { grid-template-columns: 1fr; justify-items: center; }
  .result-grid { grid-template-columns: 1fr; }
}

/* ---------- Location page ---------- */
.map-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr);
  gap: 32px clamp(24px, 4vw, 56px);
  align-items: start;
}
.map-stage {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(10px, 1.5vw, 20px);
  position: relative;
}
.map-stage svg { width: 100%; height: auto; }
.map__water { fill: #cfe0dc; }
.map__water-line { fill: none; stroke: #9dbdb5; stroke-width: 1; opacity: .6; }
.map__park { fill: #dfe3cf; }
.map__block { fill: var(--bg-2); stroke: var(--bg-3); stroke-width: 1; }
.map__road { fill: none; stroke: var(--paper); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.map__road-edge { fill: none; stroke: var(--bg-3); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.map__road--minor { stroke-width: 6; }
.map__road-edge--minor { stroke-width: 8; }
.map__site { fill: rgba(21, 59, 50, .12); stroke: var(--green); stroke-width: 1.5; stroke-dasharray: 5 4; }
.map__house { fill: var(--green); }
.map__label { font-family: var(--font-sans); font-size: 10px; fill: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.map__label--water { fill: #5f8d82; font-style: italic; font-family: var(--font-serif); font-size: 16px; text-transform: none; letter-spacing: .04em; }
.map__site-label { font-family: var(--font-serif); font-size: 18px; fill: var(--green); font-weight: 600; }
.poi { cursor: pointer; transition: opacity .3s; outline: none; }
.poi.is-hidden { opacity: 0; pointer-events: none; }
.poi__ring { fill: var(--paper); stroke: var(--poi, var(--brass)); stroke-width: 1.5; transition: transform .3s var(--ease), stroke-width .3s; transform-box: fill-box; transform-origin: center; }
.poi__dot { fill: var(--poi, var(--brass)); }
.poi__icon { fill: none; stroke: var(--poi, var(--brass)); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.poi:hover .poi__ring, .poi:focus-visible .poi__ring, .poi.is-active .poi__ring { transform: scale(1.25); stroke-width: 2.5; }
.poi--school { --poi: #7a5a8c; }
.poi--park { --poi: #3d7a5a; }
.poi--transport { --poi: #2f5b8c; }
.poi--shop { --poi: #b9924a; }
.map__walk { fill: none; stroke: var(--brass); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: 0; transition: opacity .3s; }
.map__walk.is-visible { opacity: 1; }

.map-side { display: grid; gap: 20px; }
.map-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.map-filter .chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--poi, var(--brass)); display: inline-block; }
.map-filter .chip--school { --poi: #7a5a8c; }
.map-filter .chip--park { --poi: #3d7a5a; }
.map-filter .chip--transport { --poi: #2f5b8c; }
.map-filter .chip--shop { --poi: #b9924a; }
.poi-info { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.poi-info b { display: block; font-family: var(--font-serif); font-size: 1.3rem; color: var(--green); line-height: 1.15; margin-bottom: 4px; }
.poi-info span { font-size: .82rem; color: var(--muted); }
.poi-list { display: grid; gap: 6px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.poi-item {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.poi-item:hover, .poi-item.is-active { background: var(--paper); border-color: var(--line); }
.poi-item i { width: 10px; height: 10px; border-radius: 50%; background: var(--poi, var(--brass)); }
.poi-item--school { --poi: #7a5a8c; }
.poi-item--park { --poi: #3d7a5a; }
.poi-item--transport { --poi: #2f5b8c; }
.poi-item--shop { --poi: #b9924a; }
.poi-item__name { font-weight: 600; font-size: .92rem; }
.poi-item__cat { font-size: .76rem; color: var(--muted); }
.poi-item__time { font-family: var(--font-serif); font-size: 1.25rem; color: var(--green); white-space: nowrap; }
.poi-item__time small { font-family: var(--font-sans); font-size: .7rem; color: var(--muted); margin-left: 2px; }
.poi-item.is-hidden { display: none; }

.travel { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.travel__item { padding: 28px 24px; border-right: 1px solid var(--line); }
.travel__item:last-child { border-right: 0; }
.travel__item svg { width: 28px; height: 28px; color: var(--brass); margin-bottom: 18px; }
.travel__time { font-family: var(--font-serif); font-size: 2.4rem; line-height: 1; color: var(--green); }
.travel__time small { font-family: var(--font-sans); font-size: .78rem; color: var(--brass); font-weight: 600; margin-left: 4px; }
.travel__to { color: var(--muted); font-size: .88rem; margin-top: 6px; }
@media (max-width: 1000px) { .travel { grid-template-columns: repeat(3, 1fr); } .travel__item:nth-child(3) { border-right: 0; } .travel__item:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .travel { grid-template-columns: 1fr 1fr; } .travel__item:nth-child(3) { border-right: 1px solid var(--line); } .travel__item:nth-child(2n) { border-right: 0; } .travel__item:nth-child(-n+4) { border-bottom: 1px solid var(--line); } }

.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.office { display: grid; gap: 26px; }
.office__row { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.office__row svg { width: 44px; height: 44px; color: var(--brass); }
.office__row span { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.office__row b { font-weight: 600; font-size: 1.05rem; }
.office__row a:hover { color: var(--brass); }
.office__row p { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); }
.contact-form h3 { margin-bottom: 6px; }
.contact-form > p { color: var(--muted); margin-bottom: 24px; font-size: .95rem; }

@media (max-width: 960px) {
  .map-wrap { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s, visibility 0s .35s;
}
.modal.is-open { visibility: visible; opacity: 1; transition: opacity .35s, visibility 0s; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 44, 37, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow);
  transform: translateY(20px) scale(.98);
  transition: transform .45s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--green); transition: background .3s, color .3s; }
.modal__close:hover { background: var(--green); color: var(--on-dark); }
.modal__close svg { width: 16px; height: 16px; }
.modal h3 { margin-bottom: 6px; padding-right: 40px; }
.modal > .modal__dialog > p { color: var(--muted); margin-bottom: 22px; font-size: .95rem; }

/* ---------- Similar / cards row ---------- */
.similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .similar-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .similar-grid { grid-template-columns: 1fr; } }

/* ---------- Note / disclaimer ---------- */
.note { font-size: .78rem; color: var(--muted-2); max-width: 70ch; margin-top: 24px; }

/* ---------- Decorative watermark ---------- */
.watermark {
  position: absolute;
  right: var(--gutter);
  top: clamp(24px, 4vw, 56px);
  font-family: var(--font-serif);
  font-size: clamp(6rem, 18vw, 18rem);
  line-height: .8;
  color: var(--green);
  opacity: .045;
  pointer-events: none;
  user-select: none;
  letter-spacing: -.04em;
}
.section--dark .watermark { color: var(--on-dark); opacity: .05; }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 200;
  background: var(--green);
  color: var(--on-dark);
  padding: 10px 16px;
  border-radius: var(--radius);
  transform: translateY(-200%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; color: var(--on-dark); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.text-center { text-align: center; }
