:root {
  --plan-bg: #ECE9F2; /* светлая подложка планировок */
  --bg: #1f1f25;
  --bg-alt: #26262d;
  --bg-card: #2E2E36;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #5F4B8B;
  --accent-hover: #573C80;
  --accent-light: #b3a4e0;
  --text: #c9c9d4;
  --text-muted: #8e8e9c;
  --text-strong: #ffffff;
  --error: #e58a8a;
  --font: 'Montserrat', system-ui, sans-serif;
  --font-display: 'Cormorant', Georgia, serif;
  --radius: 4px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset / база */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

[hidden] { display: none !important; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 3px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  padding: 10px 16px; background: var(--accent); color: var(--text-strong);
}
.skip-link:focus { top: 16px; }

/* Типографика */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.08;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.section__title em, .hero__title em { font-style: italic; color: var(--accent-light); }

h3 { font-weight: 600; font-size: 18px; line-height: 1.35; color: var(--text-strong); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 32px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn--primary { background: var(--accent); color: var(--text-strong); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.4); color: var(--text-strong); }
.btn--ghost:hover { border-color: var(--text-strong); background: rgba(255, 255, 255, 0.06); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 13px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; pointer-events: none; }

/* Прелоадер (без JS сам исчезает по анимации) */
.preloader {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  background: var(--bg);
  animation: preloader-out 0.6s 3s forwards;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
body:not(.is-loading) .preloader { opacity: 0; visibility: hidden; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.preloader__brand { font-family: var(--font-display); font-size: 32px; color: var(--text-strong); letter-spacing: 0.04em; }
.preloader__line { width: 140px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.preloader__line::after {
  content: ''; position: absolute; inset: 0;
  background: var(--accent-light);
  transform: translateX(-100%);
  animation: preloader-line 1.2s var(--ease) infinite;
}
@keyframes preloader-line { to { transform: translateX(100%); } }
@keyframes preloader-out { to { opacity: 0; visibility: hidden; } }

/* Шапка */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(31, 31, 37, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text-strong); }
.logo__mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--accent-light);
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  color: var(--accent-light);
}
.logo__text { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.nav { display: flex; gap: 32px; }
.nav a { position: relative; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--text); transition: color 0.3s; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent-light); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--text-strong); }
.nav a, .logo__text { white-space: nowrap; }
.nav a:hover::after { transform: scaleX(1); }
.nav__phone { display: none; }

.header__actions { display: flex; align-items: center; gap: 24px; }
.header__phone { font-size: 14px; font-weight: 500; color: var(--text-strong); white-space: nowrap; transition: color 0.3s; }
.header__phone:hover { color: var(--accent-light); }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text-strong);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 60px) 0 48px;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 2.4s var(--ease); }
body:not(.is-loading) .hero__media img { transform: scale(1); }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(31, 31, 37, 0.55) 0%, rgba(31, 31, 37, 0.15) 35%, rgba(31, 31, 37, 0.7) 75%, var(--bg) 100%),
    linear-gradient(90deg, rgba(31, 31, 37, 0.65) 0%, rgba(31, 31, 37, 0) 60%);
}

.hero__content { max-width: 1240px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin-bottom: 28px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { max-width: 520px; font-size: 17px; font-weight: 300; color: rgba(255, 255, 255, 0.86); margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 72px;
  border-top: 1px solid var(--line-strong);
}
.stat { padding: 24px 24px 0 0; display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__value { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1.1; color: var(--text-strong); }
.stat__label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

.hero__scroll {
  position: absolute; right: 32px; bottom: 48px;
  width: 1px; height: 64px; background: var(--line-strong); overflow: hidden;
}
.hero__scroll span {
  position: absolute; left: 0; top: 0; width: 1px; height: 24px; background: var(--accent-light);
  animation: scroll-hint 2s var(--ease) infinite;
}
@keyframes scroll-hint { from { transform: translateY(-24px); } to { transform: translateY(64px); } }

/* Анимация hero */
.js [data-hero] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .hero__title [data-hero] { opacity: 1; transform: translateY(105%); }
.js body:not(.is-loading) [data-hero] { opacity: 1; transform: none; }
.js body:not(.is-loading) .hero__title .line:nth-child(1) [data-hero] { transition-delay: 0.1s; }
.js body:not(.is-loading) .hero__title .line:nth-child(2) [data-hero] { transition-delay: 0.2s; }
.js body:not(.is-loading) .hero__title .line:nth-child(3) [data-hero] { transition-delay: 0.3s; }
.js body:not(.is-loading) .hero__lead { transition-delay: 0.45s; }
.js body:not(.is-loading) .hero__cta { transition-delay: 0.55s; }
.js body:not(.is-loading) .hero__stats { transition-delay: 0.7s; }

/* Появление при скролле */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal="image"] { transform: none; clip-path: inset(12% 0 0 0); transition: opacity 0.9s var(--ease), clip-path 1.2s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* Секции */
.section { padding: 140px 0; }
.section__head { max-width: 760px; margin-bottom: 72px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* Почему инвестиция */
.invest__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.invest-card { padding: 40px 32px 8px 0; }
.invest-card + .invest-card { padding-left: 32px; border-left: 1px solid var(--line); }
.invest-card__num { display: block; font-family: var(--font-display); font-size: 20px; font-style: italic; color: var(--accent-light); margin-bottom: 40px; }
.invest-card h3 { margin-bottom: 14px; }
.invest-card p { font-size: 15px; color: var(--text-muted); }
.invest-card:nth-child(2) { transition-delay: 0.08s; }
.invest-card:nth-child(3) { transition-delay: 0.16s; }
.invest-card:nth-child(4) { transition-delay: 0.24s; }

/* О проекте */
.project { background: var(--bg-alt); }
.project__split { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; margin-bottom: 120px; }
.project__text .section__title { margin-bottom: 32px; }
.project__text p:not(.eyebrow) { margin-bottom: 18px; color: var(--text); }
.project__image { overflow: hidden; border-radius: var(--radius); }
.project__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.project__image:hover img { transform: scale(1.03); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature { background: var(--bg-alt); padding: 40px 36px; transition: background 0.4s var(--ease); }
.feature:hover { background: var(--bg-card); }
.feature svg { width: 32px; height: 32px; color: var(--accent-light); margin-bottom: 28px; }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--text-muted); }

/* Локация */
.location { position: relative; min-height: 760px; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 120px 0; }
.location__media { position: absolute; inset: -12% 0; z-index: -1; will-change: transform; }
.location__media img { width: 100%; height: 100%; object-fit: cover; }
.location__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31, 31, 37, 0.8) 0%, rgba(31, 31, 37, 0.2) 70%); }
.location__card {
  max-width: 560px;
  padding: 56px;
  background: rgba(31, 31, 37, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}
.location__card .section__title { font-size: clamp(32px, 3.6vw, 48px); margin-bottom: 24px; }
.location__card > p:not(.eyebrow) { font-family: var(--font-display); font-style: italic; font-size: 20px; line-height: 1.45; color: var(--text-strong); margin-bottom: 32px; }
.location__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.location__list li { position: relative; padding-left: 20px; font-size: 14px; }
.location__list li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: var(--accent-light); }

/* Галерея */
.gallery-section { padding-top: 120px; padding-bottom: 0; }
.gallery { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery__item img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item--wide img { aspect-ratio: 4 / 3; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 28px 24px;
  font-size: 14px; color: var(--text-strong);
  background: linear-gradient(0deg, rgba(31, 31, 37, 0.85), transparent);
}
.gallery__note { margin-top: 20px; font-size: 13px; color: var(--text-muted); }

/* Квартиры */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 42px; padding: 0 20px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--text);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.chip:hover { border-color: var(--accent-light); color: var(--text-strong); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--text-strong); }

.apartments__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.apartments__empty { grid-column: 1 / -1; padding: 48px 0; text-align: center; color: var(--text-muted); }

.apt-card {
  display: flex; flex-direction: column;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), opacity 0.5s var(--ease);
  animation: card-in 0.6s var(--ease) backwards;
}
.apt-card:hover { border-color: rgba(179, 164, 224, 0.5); transform: translateY(-4px); }
@keyframes card-in { from { opacity: 0; transform: translateY(20px); } }

.apt-card__plan {
  display: block; cursor: zoom-in;
  margin: -32px -32px 28px; padding: 20px 24px;
  background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 70%), var(--plan-bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.apt-card__plan img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; transition: transform 0.6s var(--ease); }
.apt-card:hover .apt-card__plan img { transform: scale(1.04); }
.apt-card__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.apt-card__type { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-light); }
.apt-card__num { font-size: 13px; color: var(--text-muted); }
.apt-card__area { font-family: var(--font-display); font-size: 56px; font-weight: 500; line-height: 1; color: var(--text-strong); margin-bottom: 8px; }
.apt-card__area small { font-size: 24px; margin-left: 4px; }
.apt-card__price { font-size: 20px; font-weight: 600; color: var(--text-strong); margin-bottom: 24px; }
.apt-card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 0; margin-bottom: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.apt-card__facts dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.apt-card__facts dd { font-size: 15px; font-weight: 500; color: var(--text-strong); }
.apt-card .btn { margin-top: auto; width: 100%; }

.apt-skeleton {
  height: 420px; border-radius: var(--radius);
  background: linear-gradient(100deg, var(--bg-card) 30%, #34343d 50%, var(--bg-card) 70%) 0 0 / 300% 100%;
  animation: skeleton 1.4s linear infinite;
}
@keyframes skeleton { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Как купить */
.buy { background: var(--bg-alt); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; list-style: none; }
.timeline::before { content: ''; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.timeline__item { position: relative; padding-top: 36px; }
.timeline__item::before {
  content: ''; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg-alt); border: 1.5px solid var(--accent-light);
}
.timeline__item.is-now::before { background: var(--accent-light); box-shadow: 0 0 0 6px rgba(179, 164, 224, 0.16); }
.timeline__date { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); }
.timeline__item h3 { margin-bottom: 10px; }
.timeline__item p { font-size: 14px; color: var(--text-muted); }
.timeline__item:nth-child(2) { transition-delay: 0.06s; }
.timeline__item:nth-child(3) { transition-delay: 0.12s; }
.timeline__item:nth-child(4) { transition-delay: 0.18s; }
.timeline__item:nth-child(5) { transition-delay: 0.24s; }
.timeline__pay { margin-top: 56px; font-size: 15px; color: var(--text); }

.banks { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--text-strong); }
.banks__label { width: 100%; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }

/* Мессенджеры */
.messengers { display: flex; flex-wrap: wrap; gap: 10px; }
.messenger {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--text-strong);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.messenger:hover { border-color: var(--accent-light); background: rgba(255, 255, 255, 0.04); }
.messenger svg, .header__messenger svg { width: 18px; height: 18px; stroke-width: 1.6; }
.header__messenger {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--text-strong); transition: border-color 0.3s var(--ease);
}
.header__messenger:hover { border-color: var(--accent-light); }
.lead__messengers { margin-top: 20px; }
.footer__contacts { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }

/* Управляющая компания */
.manage { border-top: 1px solid var(--line); }
.manage__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; margin-bottom: 64px; }
.manage__stats .dstat { flex-direction: column; align-items: flex-start; gap: 10px; border-top: 1px solid var(--line); }
.manage__stats .dstat__label { text-align: left; max-width: 240px; }
.manage__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.manage__list { list-style: none; display: flex; flex-direction: column; gap: 32px; }
.manage__list li { padding-left: 24px; border-left: 1px solid var(--accent); }
.manage__list h3 { margin-bottom: 8px; }
.manage__list p { font-size: 15px; color: var(--text-muted); }
.case {
  padding: 36px;
  background: radial-gradient(120% 80% at 100% 0%, rgba(95, 75, 139, 0.3) 0%, rgba(46, 46, 54, 0) 60%), var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.case__title { margin: 6px 0 24px; font-family: var(--font-display); font-size: 30px; font-weight: 500; }
.case__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.case__facts dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.case__facts dd { margin-top: 4px; font-size: 17px; font-weight: 600; color: var(--text-strong); }
.case__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.case__links a { color: var(--accent-light); }
.case__links a:hover { color: var(--text-strong); }
.manage__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap;
  margin-top: 48px; padding: 32px 36px;
  border: 1px dashed rgba(179, 164, 224, 0.4); border-radius: var(--radius);
}
.manage__cta h3 { margin-bottom: 6px; }
.manage__cta p { font-size: 15px; color: var(--text-muted); }

/* Вопросы */
.faq { background: var(--bg-alt); }
.faq__inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  position: relative; display: block; padding: 24px 48px 24px 0; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 500; color: var(--text-strong); transition: color 0.3s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 1.5px solid var(--accent-light); border-bottom: 1.5px solid var(--accent-light);
  transform: rotate(45deg); transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__item summary:hover { color: var(--accent-light); }
.faq__item summary:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 4px; }
.faq__item p { padding: 0 48px 24px 0; font-size: 15px; color: var(--text-muted); }

/* Застройщик */
.developer__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.developer__text .section__title { margin-bottom: 24px; }
.developer__stats { display: grid; gap: 0; }
.dstat { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.dstat:first-child { border-top: 1px solid var(--line); }
.dstat__value { font-family: var(--font-display); font-size: clamp(40px, 4.4vw, 64px); line-height: 1; color: var(--text-strong); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dstat__label { max-width: 220px; text-align: right; font-size: 14px; color: var(--text-muted); }

/* Заявка */
.lead { background: linear-gradient(135deg, #2a2438 0%, var(--bg) 70%); border-top: 1px solid var(--line); }
.lead__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.lead__text .section__title { margin-bottom: 24px; }
.lead__text p:not(.eyebrow) { max-width: 460px; margin-bottom: 32px; }
.lead__phone { font-family: var(--font-display); font-size: 36px; color: var(--text-strong); transition: color 0.3s; }
.lead__phone:hover { color: var(--accent-light); }

/* Формы */
.form { position: relative; display: flex; flex-direction: column; gap: 20px; }
.lead .form { padding: 48px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.field input {
  height: 54px; padding: 0 18px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-strong);
  font-size: 16px;
  transition: border-color 0.3s;
}
.field input::placeholder { color: #5f5f6b; }
.field input:hover { border-color: rgba(255, 255, 255, 0.3); }
.field input:focus { outline: none; border-color: var(--accent-light); }
.field.has-error input { border-color: var(--error); }
.field__error { min-height: 0; font-size: 13px; color: var(--error); }
.field__error:empty { display: none; }

.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--text-muted); cursor: pointer; }
.consent input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.consent.has-error { color: var(--error); }

.form.is-sent > :not(.form__success) { display: none; }
.form__success { text-align: center; padding: 24px 0; }
.form__success-title { font-family: var(--font-display); font-size: 32px; color: var(--text-strong); margin-bottom: 8px; }

.form--compact { gap: 16px; }
.form--compact .field input { height: 48px; }

/* Футер */
.footer { padding: 64px 0 48px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 48px; }
.footer__inner > p:not(.footer__legal) { font-size: 14px; color: var(--text-muted); }
.footer__phone { font-weight: 500; color: var(--text-strong); transition: color 0.3s; }
.footer__phone:hover { color: var(--accent-light); }
.footer__legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: #6e6e7a; max-width: 900px; }

/* Калькулятор доходности */
.calc { --c-income: #9a82dc; --c-growth: #b8862f; border-top: 1px solid var(--line); }
.calc .section__head { margin-bottom: 48px; }

.calc__controls {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch;
  margin-bottom: 24px; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
}
.calc__picker { display: flex; flex-direction: column; gap: 14px; padding: 32px; }
.calc__step-label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.select { position: relative; }
.select::after {
  content: ''; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--accent-light); border-bottom: 1.5px solid var(--accent-light);
  transform: rotate(45deg); pointer-events: none;
}
.select select {
  width: 100%; height: 56px; padding: 0 52px 0 18px;
  appearance: none; -webkit-appearance: none;
  background: var(--bg); color: var(--text-strong);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: 500 15px var(--font); cursor: pointer;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.select select:hover { border-color: rgba(255, 255, 255, 0.3); }
.select select:focus { outline: none; border-color: var(--accent-light); }
.select option, .select optgroup { background: var(--bg-card); color: var(--text-strong); }
.calc__apt-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 10px; }
.calc__apt-facts dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.calc__apt-facts dd { font-size: 15px; font-weight: 600; color: var(--text-strong); }
.calc__apt-facts s { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--text-muted); }
.calc__plan {
  display: grid; place-items: center; padding: 20px 24px;
  background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 70%), var(--plan-bg);
  border-left: 1px solid var(--line);
}
.calc__plan img { width: 100%; max-height: 260px; object-fit: contain; }

.calc-settings {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 20px 40px;
  margin-bottom: 24px;
}
.calc-settings__group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.calc-settings__label { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.calc-settings__hint { font-size: 12px; color: var(--text-muted); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 999px; }
.seg__btn {
  min-height: 36px; padding: 0 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.seg__btn:hover { color: var(--text-strong); background: rgba(255, 255, 255, 0.05); }
.seg__btn[aria-pressed="true"] { background: var(--accent); color: var(--text-strong); }
.seg__btn:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 1px; }

.calc-mortgage {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 32px;
  margin-bottom: 24px; padding: 24px 28px;
  background: var(--bg-card); border: 1px solid var(--line); border-left: 2px solid var(--accent-light); border-radius: var(--radius);
}
.calc-mortgage__note { grid-column: 1 / -1; font-size: 12px; color: var(--text-muted); }
.calc-mortgage__note a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.range { display: flex; flex-direction: column; gap: 12px; }
.range__head { display: flex; justify-content: space-between; font-size: 13px; color: var(--text); }
.range output { font-weight: 600; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.range input {
  --fill: 50%;
  width: 100%; height: 4px; margin: 8px 0; appearance: none; -webkit-appearance: none; cursor: pointer;
  border-radius: 2px; background: linear-gradient(to right, var(--accent-light) var(--fill), rgba(255, 255, 255, 0.12) var(--fill));
}
.range input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--text-strong); border: 4px solid var(--accent); box-shadow: 0 0 0 4px rgba(179, 164, 224, 0.15);
}
.range input::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--text-strong); border: 4px solid var(--accent);
}
.range input:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 6px; }

.calc__stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin-bottom: 24px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
}
.calc__stats > div { padding: 24px 24px 22px; }
.calc__stats > div + div { border-left: 1px solid var(--line); }
.calc__stats dt { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.calc__stats dd { margin: 8px 0 4px; font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.1; color: var(--text-strong); white-space: nowrap; }
.calc__note { display: block; font-size: 12px; line-height: 1.4; color: var(--text-muted); }
.calc__stat--good, .calc__stat--warn { box-shadow: inset 0 2px 0 var(--status); }
.calc__stat--good { --status: #6fbf8e; }
.calc__stat--warn { --status: #d9a441; }
.calc__stat--good dt::before, .calc__stat--warn dt::before { content: '●'; margin-right: 6px; color: var(--status); }

.calc-chart {
  position: relative;
  padding: 28px 28px 20px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
}
.calc-chart__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.calc-chart__title { font-size: 15px; font-weight: 600; color: var(--text-strong); }
.calc-chart__sub { font-size: 13px; color: var(--text-muted); }
.calc-chart__tools { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.calc-chart__toggle {
  min-height: 34px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--text);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.calc-chart__toggle:hover { border-color: var(--accent-light); color: var(--text-strong); }
.calc-chart__plot svg { stroke: none; display: block; width: 100%; height: auto; overflow: visible; }

.legend { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; font-size: 13px; color: var(--text); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend__swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.legend__swatch--income { background: var(--c-income); }
.legend__swatch--growth { background: var(--c-growth); }

.chart__grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.chart__grid--base { stroke: var(--line-strong); }
.chart__tick { fill: var(--text-muted); font-size: 12px; font-family: var(--font); }
.chart__value { fill: var(--text-strong); font-size: 13px; font-weight: 600; font-family: var(--font); }
.chart__label { fill: var(--text); font-size: 12px; font-family: var(--font); }
.chart__bar--income { fill: var(--c-income); }
.chart__bar--growth { fill: var(--c-growth); }
.chart__hit { fill: transparent; cursor: pointer; outline: none; }
.chart__hit.is-hover, .chart__hit:focus-visible { fill: rgba(255, 255, 255, 0.04); }

.calc-tooltip {
  position: absolute; z-index: 2; pointer-events: none;
  min-width: 220px; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  font-size: 13px; line-height: 1.5; color: var(--text);
}
.calc-tooltip p { display: flex; align-items: center; gap: 8px; }
.calc-tooltip b { margin-left: auto; padding-left: 12px; font-weight: 600; color: var(--text-strong); white-space: nowrap; }
.calc-tooltip__title { margin-bottom: 6px; font-weight: 600; color: var(--text-strong); }
.calc-tooltip__total { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.calc-tooltip__muted { margin-top: 4px; font-size: 12px; color: var(--text-muted); }

.calc-table-wrap, .calc-chart__table { overflow-x: auto; }
.calc-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.calc-table th { padding: 10px 12px; text-align: right; font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--line-strong); }
.calc-table td { padding: 10px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.calc-table th:first-child, .calc-table td:first-child { text-align: left; }
.calc-table b, .calc-table tfoot td { color: var(--text-strong); font-weight: 600; }
.calc-table tfoot td { border-bottom: none; border-top: 1px solid var(--line-strong); }

.calc__summary {
  margin: 28px 0 40px;
  font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; color: var(--text);
}
.calc__summary strong { font-weight: 600; color: var(--text-strong); white-space: nowrap; }
.calc__summary .calc__summary-total { font-style: italic; color: var(--accent-light); }
.calc__summary-pct { white-space: nowrap; color: var(--text-muted); }

/* Закрытый детальный расчёт */
.calc-lock {
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
}
.calc-lock__preview {
  position: relative; padding: 40px;
  background: radial-gradient(120% 90% at 30% 0%, rgba(95, 75, 139, 0.3) 0%, rgba(38, 38, 45, 0) 70%), var(--bg-alt);
  filter: blur(3px); opacity: 0.7;
}
.calc-lock__bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; margin-bottom: 28px; }
.calc-lock__bars span { flex: 1; border-radius: 4px 4px 0 0; background: var(--c-income); }
.calc-lock__rows { display: flex; flex-direction: column; gap: 12px; }
.calc-lock__rows span { height: 12px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.calc-lock__rows span:nth-child(2) { width: 85%; }
.calc-lock__rows span:nth-child(3) { width: 92%; }
.calc-lock__rows span:nth-child(4) { width: 70%; }
.calc-lock__content { padding: 40px; }
.calc-lock__content .eyebrow { margin-bottom: 12px; }
.calc-lock__title { margin-bottom: 18px; font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 36px); font-weight: 500; line-height: 1.15; color: var(--text-strong); }
.calc-lock__title em { font-style: italic; color: var(--accent-light); }
.calc-lock__list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; list-style: none; font-size: 14px; }
.calc-lock__list li { position: relative; padding-left: 20px; }
.calc-lock__list li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 8px; height: 1px; background: var(--accent-light); }

.calc-detail { display: flex; flex-direction: column; gap: 24px; animation: card-in 0.6s var(--ease) backwards; }
.calc-detail__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.calc-detail__head .eyebrow { margin-bottom: 8px; }
.calc-detail__title { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1.1; color: var(--text-strong); }
.calc-detail__title em { font-style: italic; color: var(--accent-light); }
.calc-detail .calc-table-wrap { padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); }
.calc-detail__grid { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; }
.calc-breakdown, .calc-method, .calc-compare, .report { padding: 28px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); }
.calc-breakdown .calc-chart__title, .calc-method .calc-chart__title { margin-bottom: 18px; }
.calc-breakdown ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.calc-breakdown__row { display: grid; grid-template-columns: minmax(150px, 1.3fr) 1fr 120px; align-items: center; gap: 14px; font-size: 13px; }
.calc-breakdown__bar { height: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.04); }
.calc-breakdown__bar i { display: block; height: 100%; border-radius: 2px; background: var(--c-income); }
.calc-breakdown__row--out .calc-breakdown__bar i { background: rgba(255, 255, 255, 0.22); }
.calc-breakdown__row--sum, .calc-breakdown__row--total { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; color: var(--text-strong); }
.calc-breakdown__value { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.calc-compare__list { list-style: none; display: flex; flex-direction: column; gap: 18px; margin: 20px 0; }
.calc-compare__row { display: grid; grid-template-columns: minmax(170px, 1.2fr) 1fr 96px; align-items: center; gap: 14px; font-size: 13px; }
.calc-compare__label small { display: block; font-size: 11px; color: var(--text-muted); }
.calc-compare__bar { height: 10px; border-radius: 2px; background: rgba(255, 255, 255, 0.04); }
.calc-compare__bar i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: rgba(255, 255, 255, 0.28); }
.calc-compare__row--apt { font-weight: 600; color: var(--text-strong); }
.calc-compare__row--apt .calc-compare__bar i { background: var(--c-income); }
.calc-compare__value { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-compare__note { font-size: 13px; color: var(--text-muted); }

.report__rows { margin: 18px 0; border-top: 1px solid var(--line); }
.report__rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.report__rows dt { color: var(--text-muted); }
.report__rows dd { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text-strong); }
.report__total { font-size: 15px !important; font-weight: 600; }
.report__total dt { color: var(--text-strong) !important; }
.calc-method ol { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.55; color: var(--text-muted); }

.calc__disclaimer { margin-top: 32px; font-size: 12px; color: #6e6e7a; max-width: 900px; }

/* Адаптив */
@media (max-width: 1560px) {
  .header__messenger { display: none; }
}
@media (max-width: 1280px) {
  .nav { gap: 22px; }
}
@media (min-width: 901px) and (max-width: 1040px) {
  .header .logo__text { display: none; }
}

@media (max-width: 1100px) {
  .nav { gap: 16px; }
  .nav a { font-size: 12px; }
  .header__phone { display: none; }
  .invest__grid { grid-template-columns: 1fr 1fr; }
  .invest-card:nth-child(3) { padding-left: 0; border-left: none; }
  .invest-card:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 32px; }
  .features { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 28px; padding-left: 36px; }
  .timeline::before { top: 0; bottom: 0; left: 7px; right: auto; width: 1px; height: auto; }
  .timeline__item { padding-top: 0; }
  .timeline__item::before { left: -36px; top: 2px; }
  .manage__stats { grid-template-columns: 1fr 1fr; }
  .calc-settings { grid-template-columns: 1fr 1fr; }
  .header__messenger { display: none; }
  .calc__stats { grid-template-columns: repeat(3, 1fr); }
  .calc__stats > div:nth-child(4) { border-left: none; }
  .calc__stats > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .calc-detail__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .container { padding: 0 20px; }
  .section { padding: 96px 0; }
  .section__head { margin-bottom: 48px; }

  .header__actions .btn { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; gap: 0;
    padding: 24px 20px 40px;
    background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 30px; font-weight: 500; letter-spacing: 0; color: var(--text-strong); }
  .nav a::after { display: none; }
  .nav .nav__phone { display: block; margin-top: auto; border: none; font-family: var(--font); font-size: 18px; color: var(--accent-light); }
  .header:has(.nav.is-open) { background: var(--bg); }

  .hero__stats { grid-template-columns: 1fr 1fr; margin-top: 48px; }
  .stat:nth-child(3) { padding-left: 0; border-left: none; }
  .hero__scroll { display: none; }

  .project__split, .lead__inner, .developer__inner { grid-template-columns: 1fr; gap: 48px; }
  .project__split { margin-bottom: 80px; }
  .location { min-height: 0; padding: 280px 0 0; align-items: flex-end; }
  .location__media { inset: 0 0 auto 0; height: 420px; }
  .location__media::after { background: linear-gradient(180deg, transparent 40%, var(--bg) 100%); }
  .location .container { padding: 0; }
  .location__card { max-width: none; padding: 40px 20px; border: none; }

  .gallery { grid-template-columns: 1fr; }
  .gallery-section { padding-top: 80px; }


  .footer__inner { grid-template-columns: 1fr; }

  .calc__controls { grid-template-columns: 1fr; }
  .calc__plan { order: -1; border-left: none; border-bottom: 1px solid var(--line); }
  .calc-lock { grid-template-columns: 1fr; }
  .calc-lock__preview { display: none; }
  .manage__grid, .faq__inner { grid-template-columns: 1fr; gap: 40px; }
  .calc-mortgage { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero__cta .btn { flex: 1 1 100%; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 12px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: none; }
  .stat__value { font-size: 24px; white-space: nowrap; }
  .invest__grid, .features { grid-template-columns: 1fr; }
  .invest-card, .invest-card + .invest-card { padding: 32px 0 0; border-left: none; }
  .invest-card + .invest-card { border-top: 1px solid var(--line); margin-top: 32px; }
  .invest-card__num { margin-bottom: 20px; }
  .feature { padding: 32px 24px; }
  .location__list { grid-template-columns: 1fr; }
  .lead .form { padding: 28px 20px; }
  .dstat { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dstat__label { text-align: left; }
  .apt-card { padding: 28px 24px; }
  .apt-card__plan { margin: -28px -24px 24px; }
  .calc__stats { grid-template-columns: 1fr 1fr; }
  .calc__stats > div { padding: 18px 16px; }
  .calc__stats > div:nth-child(n) { border-left: none; border-top: none; }
  .calc__stats > div:nth-child(even) { border-left: 1px solid var(--line); }
  .calc__stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .calc__stats > div:last-child { grid-column: 1 / -1; border-left: none; }
  .calc__stats dd { font-size: 24px; }
  .calc-chart, .calc-breakdown, .calc-method, .calc-compare, .report { padding: 20px 16px; }
  .calc-settings { grid-template-columns: 1fr; }
  .seg { display: flex; }
  .seg__btn { flex: 1 1 auto; padding: 0 12px; }
  .calc-mortgage { padding: 20px 16px; }
  .calc-compare__row { grid-template-columns: 1fr auto; }
  .calc-compare__bar { grid-column: 1 / -1; grid-row: 2; }
  .manage__stats { grid-template-columns: 1fr; }
  .case { padding: 28px 20px; }
  .case__facts { grid-template-columns: 1fr; }
  .manage__cta { padding: 24px 20px; }
  .manage__cta .btn { width: 100%; }
  .faq__item summary { font-size: 16px; padding-right: 36px; }
  .faq__item p { padding-right: 0; }
  .calc-lock__content { padding: 28px 20px; }
  .calc__picker { padding: 24px 20px; }
  .select select { font-size: 14px; padding-right: 44px; }
  .calc-breakdown__row { grid-template-columns: 1fr auto; }
  .calc-breakdown__bar { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
