@font-face {
  font-family: "Mulish";
  src: url("/assets/fonts/Mulish-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #142a37;
  --ink-2: #263d46;
  --brand-blue: #326aae;
  --brand-sky: #3fa9e0;
  --brand-pale: #a6d9f6;
  --water: #3a75c4;
  --water-2: #35a8e0;
  --menu-blue: #5d8dce;
  --river: #326aae;
  --river-2: #e8f6fd;
  --coral: #ef684d;
  --sun: var(--coral);
  --graphite: #14171c;
  --graphite-2: #1b2027;
  --moss: #5d7d65;
  --paper: #f7f4ed;
  --white: #ffffff;
  --muted: #6c7a80;
  --line: rgba(16, 36, 45, 0.14);
  --shadow: 0 24px 80px rgba(50, 106, 174, 0.16);
  --radius: 4px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Mulish", Arial, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  right: 0;
  width: calc(100% - 40px);
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  margin: 16px auto 0;
  padding: 12px 18px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(20, 23, 28, 0.96);
  box-shadow: 0 20px 50px rgba(20, 23, 28, 0.24);
  backdrop-filter: blur(20px) saturate(145%);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--white);
  background: rgba(20, 23, 28, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(20, 23, 28, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 128px;
  height: 64px;
  position: relative;
}

.brand-logo {
  position: absolute;
  inset: 0;
  width: 128px;
  height: 64px;
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.2s ease;
}

.brand-logo-color {
  opacity: 0;
}

.brand-logo-white {
  opacity: 1;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 16px;
  font-weight: 360;
  color: var(--white);
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  font-weight: 420;
  letter-spacing: 0;
  opacity: 0.92;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.site-nav a:hover {
  opacity: 1;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header-contact {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.header-phone {
  font-size: 22px;
  line-height: 1.05;
  font-weight: 360;
  white-space: nowrap;
}

.header-callback {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.1;
  font-weight: 300;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-callback:hover {
  color: var(--coral);
}

.icon-button,
.nav-toggle,
.modal-close {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
  display: inline-grid;
  place-items: center;
}

.site-header.is-scrolled .icon-button,
.site-header.is-scrolled .nav-toggle,
.site-header.is-open .icon-button,
.site-header.is-open .nav-toggle {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.1);
}

.icon-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle {
  display: none;
  position: relative;
}

.nav-toggle span,
.modal-close span {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  position: absolute;
  left: calc(50% - 10px);
  transition: transform 0.2s ease;
}

.nav-toggle span:first-child {
  transform: translateY(-4px);
}

.nav-toggle span:last-child {
  transform: translateY(4px);
}

body.nav-open .nav-toggle span:first-child,
.modal-close span:first-child {
  transform: rotate(45deg);
}

body.nav-open .nav-toggle span:last-child,
.modal-close span:last-child {
  transform: rotate(-45deg);
}

.hero {
  min-height: calc(100svh - 56px);
  position: relative;
  overflow: hidden;
  color: var(--white);
  display: grid;
  align-items: end;
  padding: 116px 0 72px;
}

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

.hero-media {
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.06);
}

.hero-video,
.hero-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster {
  display: none;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 26, 34, 0.88) 0%, rgba(7, 26, 34, 0.58) 43%, rgba(7, 26, 34, 0.26) 100%),
    linear-gradient(0deg, rgba(7, 26, 34, 0.55) 0%, rgba(7, 26, 34, 0) 44%);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 390px;
  gap: 48px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sun);
  font-size: 13px;
  font-weight: 360;
  text-transform: uppercase;
}

.hero-kicker {
  color: var(--coral);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 360;
  letter-spacing: 0.08em;
}

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

h1 {
  margin-bottom: 24px;
  font-size: 96px;
  line-height: 0.92;
  font-weight: 300;
}

.hero-title {
  margin-bottom: 24px;
  color: var(--white);
}

.hero-title span,
.hero-title strong {
  display: block;
}

.hero-title span {
  margin-bottom: 4px;
  font-size: clamp(36px, 3.9vw, 58px);
  line-height: 0.98;
  font-weight: 360;
  letter-spacing: 0;
}

.hero-title strong {
  font-size: clamp(82px, 8.6vw, 132px);
  line-height: 0.84;
  font-weight: 520;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 20px;
  font-size: 46px;
  line-height: 1.04;
  font-weight: 300;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 500;
}

.hero-lead {
  max-width: 640px;
  margin-bottom: 30px;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.88);
}

.button {
  position: relative;
  overflow: hidden;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 420;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: -60% auto -60% -35%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg) translateX(-220%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.button:hover::after {
  transform: skewX(-18deg) translateX(520%);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 18px 42px rgba(239, 104, 77, 0.3);
}

.button-primary:hover,
.button-dark:hover {
  box-shadow: 0 22px 54px rgba(239, 104, 77, 0.38);
}

.button-glass {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.button-dark {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 14px 32px rgba(239, 104, 77, 0.22);
}

.button-outline {
  border-color: rgba(58, 117, 196, 0.34);
  background: rgba(255, 255, 255, 0.72);
  color: var(--water);
}

.button-wide {
  width: 100%;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-board {
  display: grid;
  gap: 10px;
}

.hero-board div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  animation: cardFloat 7s ease-in-out infinite;
}

.hero-board div:nth-child(2) {
  animation-delay: -2s;
}

.hero-board div:nth-child(3) {
  animation-delay: -4s;
}

.hero-board span,
.calc-result span,
.life-card span {
  display: block;
  font-size: 12px;
  font-weight: 360;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.hero-board strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  line-height: 1;
  font-weight: 350;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  transform: translateX(-50%);
}

.scroll-cue::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--white);
  transform: translateX(-50%);
  animation: cue 1.4s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
  50% { transform: translate(-50%, 12px); opacity: 1; }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.promo-strip {
  overflow: hidden;
  background: var(--river);
  color: var(--white);
}

.promo-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.promo-track span {
  padding: 18px 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 15px;
  font-weight: 480;
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  padding: 104px 0;
}

section[id] {
  scroll-margin-top: 106px;
}

.story-grid,
.mortgage-grid,
.location-grid,
.lead-wave-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 52px;
  align-items: center;
}

.story-copy p,
.section-head p,
.mortgage-copy p,
.location-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.fact-row,
.route-list,
.mortgage-badges,
.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.fact-row span,
.route-list span,
.mortgage-badges span,
.feed-note,
.choice-toolbar button,
.rate-tabs button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
  padding: 10px 13px;
  font-size: 14px;
  font-weight: 520;
}

.story-actions {
  margin-top: 28px;
}

.story-scenes {
  min-height: 660px;
  position: relative;
  perspective: 1200px;
  isolation: isolate;
}

.story-scenes::before {
  content: "";
  position: absolute;
  inset: 46px 36px 36px 12px;
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(232, 246, 253, 0.38)),
    url("/img/48.png") center / cover no-repeat;
  opacity: 0.72;
  filter: saturate(1.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.56);
}

.scene-card {
  --scene-rotate: 0deg;
  --scene-hover-rotate: var(--scene-rotate);
  margin: 0;
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius);
  box-shadow:
    0 34px 82px rgba(16, 36, 45, 0.2),
    0 10px 28px rgba(50, 106, 174, 0.13);
  transform: translate3d(0, var(--parallax-y, 0px), 0) rotate(var(--scene-rotate));
  transform-origin: center;
  background: var(--white);
  transition: transform 0.38s ease, box-shadow 0.38s ease, filter 0.38s ease;
  animation: sceneShadow 8s ease-in-out infinite alternate;
  will-change: transform;
}

.scene-card::after {
  content: "";
  position: absolute;
  inset: -45% -70%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.34) 48%, transparent 62%);
  transform: translateX(-38%) rotate(8deg);
  animation: sceneLight 9s ease-in-out infinite;
  pointer-events: none;
}

.scene-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.03);
  animation: sceneBreath 16s ease-in-out infinite alternate;
}

.scene-card figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius-sm);
  background: rgba(16, 36, 45, 0.62);
  color: var(--white);
  font-size: 14px;
  font-weight: 420;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.scene-card:hover {
  transform: translate3d(0, calc(var(--parallax-y, 0px) - 10px), 0) rotate(var(--scene-hover-rotate)) scale(1.018);
  box-shadow:
    0 44px 110px rgba(16, 36, 45, 0.27),
    0 16px 42px rgba(239, 104, 77, 0.16);
}

@keyframes sceneBreath {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@keyframes sceneLight {
  0%, 38% { transform: translateX(-42%) rotate(8deg); opacity: 0; }
  52% { opacity: 0.9; }
  72%, 100% { transform: translateX(42%) rotate(8deg); opacity: 0; }
}

@keyframes sceneShadow {
  from { filter: drop-shadow(0 0 0 rgba(239, 104, 77, 0)); }
  to { filter: drop-shadow(0 14px 24px rgba(239, 104, 77, 0.1)); }
}

.scene-main {
  top: 4px;
  right: 0;
  z-index: 1;
  width: 78%;
  height: 360px;
  --scene-rotate: 1.2deg;
  --scene-hover-rotate: 0.4deg;
}

.scene-yard {
  left: 0;
  top: 190px;
  z-index: 3;
  width: 49%;
  height: 314px;
  --scene-rotate: -3deg;
  --scene-hover-rotate: -1.8deg;
}

.scene-hall {
  right: 2%;
  bottom: 30px;
  z-index: 4;
  width: 43%;
  height: 256px;
  --scene-rotate: 2.6deg;
  --scene-hover-rotate: 1.5deg;
}

.scene-flat {
  left: 30%;
  bottom: 0;
  z-index: 5;
  width: 30%;
  height: 224px;
  --scene-rotate: -1.4deg;
  --scene-hover-rotate: -0.4deg;
}

.choice {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 12%, rgba(239, 104, 77, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(232, 246, 253, 0.6), rgba(255, 255, 255, 0.56)),
    url("/img/46.png") center / cover no-repeat,
    #e8f6fd;
}

.choice > .container {
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

.choice-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.scenario-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0 22px;
}

.choice-toolbar button,
.rate-tabs button {
  color: var(--ink);
}

.scenario-tab {
  min-height: 228px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(232, 246, 253, 0.54)),
    url("/img/46.png") center / cover;
  box-shadow: 0 18px 48px rgba(50, 106, 174, 0.08);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.scenario-tab:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 104, 77, 0.38);
  box-shadow: 0 24px 64px rgba(50, 106, 174, 0.14);
}

.scenario-tab span {
  color: var(--water);
  font-size: 13px;
  font-weight: 360;
  text-transform: uppercase;
  border-bottom: 2px solid currentColor;
}

.scenario-tab strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1.08;
  font-weight: 420;
}

.scenario-tab em {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
  font-style: normal;
  font-weight: 520;
}

.scenario-tab small {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 360;
}

.choice-toolbar button.is-active,
.rate-tabs button.is-active {
  background: var(--water);
  color: var(--white);
  border-color: var(--water);
}

.scenario-tab.is-active {
  background:
    linear-gradient(140deg, rgba(58, 117, 196, 0.94), rgba(116, 101, 184, 0.94)),
    url("/img/48.png") center / cover;
  box-shadow: 0 22px 58px rgba(58, 117, 196, 0.26);
}

.scenario-tab.is-active span,
.scenario-tab.is-active strong,
.scenario-tab.is-active em,
.scenario-tab.is-active small {
  color: var(--white);
}

.feed-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--muted);
}

.feed-note a {
  color: var(--water);
  font-weight: 420;
  white-space: nowrap;
}

.apartments-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.flat-card,
.quiz-form,
.calc-form,
.modal-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(16, 36, 45, 0.08);
}

.flat-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 360px auto;
  min-height: 100%;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.flat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(50, 106, 174, 0.14);
}

.flat-image {
  display: grid;
  place-items: center;
  width: 100%;
  height: 360px;
  border: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 248, 246, 0.92)),
    url("/img/47.png") center / cover no-repeat;
  color: inherit;
  padding: 22px;
  cursor: zoom-in;
}

.flat-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.flat-image:hover img {
  transform: scale(1.035);
}

.flat-body {
  position: relative;
  z-index: 1;
  background: var(--white);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flat-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: zoom-in;
}

.flat-title:focus-visible,
.flat-image:focus-visible {
  outline: 3px solid rgba(58, 117, 196, 0.3);
  outline-offset: 3px;
}

.flat-title strong {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 360;
}

.flat-title span {
  color: var(--river);
  font-size: 16px;
  font-weight: 420;
  white-space: nowrap;
}

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

.flat-meta span {
  border-top: 1px solid var(--line);
  padding-top: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 360;
}

.flat-payment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(58, 117, 196, 0.18);
  border-radius: var(--radius);
  background: rgba(232, 246, 253, 0.62);
}

.flat-payment span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  text-transform: uppercase;
}

.flat-payment strong {
  color: var(--water);
  font-size: 17px;
  font-weight: 420;
  white-space: nowrap;
}

.flat-card .button {
  min-height: 46px;
  margin-top: auto;
}

.lead-wave {
  background:
    radial-gradient(circle at 15% 15%, rgba(239, 104, 77, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(20, 23, 28, 0.38), rgba(27, 32, 39, 0.5)),
    url("/img/48.png") center / cover no-repeat,
    linear-gradient(135deg, var(--graphite) 0%, var(--graphite-2) 100%);
  color: var(--white);
  overflow: hidden;
}

.lead-wave-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.lead-wave-media {
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 520px;
}

.lead-wave-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.quiz-form,
.calc-form,
.modal-form {
  padding: 28px;
  color: var(--ink);
}

.quiz-form h2 {
  font-size: 34px;
  margin-bottom: 12px;
}

.quiz-lead {
  margin: -2px 0 22px;
  color: var(--muted);
  font-size: 16px;
}

.quiz-step {
  display: none;
}

.quiz-step.is-active {
  display: block;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 18px;
}

.option-grid button {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(232, 246, 253, 0.66)),
    url("/img/46.png") center / cover no-repeat;
  color: var(--ink);
  padding: 13px 14px;
  text-align: left;
  font-weight: 520;
  box-shadow: 0 12px 34px rgba(50, 106, 174, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.option-grid button span,
.option-grid button small {
  display: block;
}

.option-grid button span {
  font-size: 16px;
  line-height: 1.15;
}

.option-grid button small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 360;
}

.option-grid button:hover,
.option-grid button.is-selected {
  border-color: rgba(239, 104, 77, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 104, 77, 0.16)),
    url("/img/48.png") center / cover no-repeat;
  box-shadow: 0 16px 44px rgba(239, 104, 77, 0.16);
  transform: translateY(-2px);
}

.option-grid button.is-selected span {
  color: var(--coral);
}

.quiz-progress {
  height: 4px;
  border-radius: 2px;
  background: rgba(16, 36, 45, 0.12);
  overflow: hidden;
}

.quiz-progress i {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--sun);
  transition: width 0.25s ease;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 360;
}

input,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf6;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--river);
  box-shadow: 0 0 0 3px rgba(17, 123, 136, 0.12);
}

.volna-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-note,
.form-status,
.calc-result small {
  color: var(--muted);
  font-size: 12px;
}

.form-status {
  min-height: 18px;
  margin: 12px 0 0;
  font-weight: 360;
}

.form-status.is-ok {
  color: var(--moss);
}

.form-status.is-error {
  color: var(--coral);
}

.mortgage {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(243, 239, 229, 0.88), rgba(255, 255, 255, 0.82)),
    url("/img/47.png") center / cover no-repeat,
    #f3efe5;
}

.mortgage > .container {
  position: relative;
  z-index: 1;
}

.rate-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.tranche-info {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(50, 106, 174, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 38px rgba(50, 106, 174, 0.08);
}

.tranche-info.is-active {
  display: block;
}

.tranche-info h3 {
  margin-bottom: 8px;
  color: var(--water);
}

.tranche-info p {
  margin-bottom: 10px;
  font-size: 15px;
}

.tranche-steps {
  display: grid;
  gap: 8px;
}

.tranche-steps span {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
}

.tranche-steps b {
  color: var(--water);
}

.calc-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--water), #2d609f);
  color: var(--white);
  padding: 20px;
  margin: 10px 0 16px;
}

.calc-result strong {
  display: block;
  margin: 7px 0 4px;
  font-size: 36px;
  line-height: 1;
  font-weight: 350;
}

.calc-result small {
  color: rgba(255, 255, 255, 0.76);
}

.life {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(247, 244, 237, 0.42)),
    url("/img/48.png") center / cover no-repeat,
    var(--white);
}

.life > .container {
  position: relative;
  z-index: 1;
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.life-card {
  min-height: 520px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--water), #5d72bf);
  color: var(--white);
  box-shadow: 0 22px 70px rgba(20, 23, 28, 0.12);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.life-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 88px rgba(20, 23, 28, 0.18);
}

.life-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.life-card:hover img {
  transform: scale(1.05);
}

.life-card div {
  padding: 20px;
}

.life-card span {
  color: var(--sun);
}

.life-card p {
  color: rgba(255, 255, 255, 0.74);
}

.gallery-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(247, 244, 237, 0.34), rgba(255, 255, 255, 0.44)),
    url("/img/46.png") center / cover no-repeat,
    var(--paper);
}

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

.gallery-head h2 {
  max-width: 720px;
}

.gallery-controls {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.gallery-controls button {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 23, 28, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  color: var(--graphite);
  box-shadow: 0 14px 36px rgba(50, 106, 174, 0.1);
  transition: transform 0.18s ease, background 0.18s ease;
}

.gallery-controls button:hover {
  transform: translateY(-2px);
  background: var(--white);
}

.gallery-controls svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(310px, 38%);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: 6px 2px 26px;
  scrollbar-color: rgba(58, 117, 196, 0.5) rgba(255, 255, 255, 0.42);
}

.gallery-rail figure {
  position: relative;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 76px rgba(20, 23, 28, 0.13);
  scroll-snap-align: start;
  isolation: isolate;
}

.gallery-rail figure:nth-child(even) {
  margin-top: 42px;
}

.gallery-rail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery-rail figure:hover img {
  transform: scale(1.055);
}

.gallery-rail figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 9px 12px;
  border-radius: var(--radius);
  background: rgba(20, 23, 28, 0.72);
  color: var(--white);
  font-size: 13px;
  font-weight: 420;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.location-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.map-panel {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.map-widget {
  width: 100%;
  min-height: 720px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(232, 246, 253, 0.82)),
    url("/img/052.png") center / cover no-repeat;
}

.map-widget iframe {
  display: block;
  width: 100% !important;
  min-height: 720px;
  border: 0;
}

.map-panel img {
  width: 100%;
  min-height: 430px;
  object-fit: cover;
}

.route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.route-list span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.route-list span::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--water);
  box-shadow: 0 0 0 5px rgba(58, 117, 196, 0.14);
}

.route-address::before {
  background: var(--coral) !important;
  box-shadow: 0 0 0 5px rgba(239, 104, 77, 0.14) !important;
}

.route-river::before {
  background: var(--water-2) !important;
  box-shadow: 0 0 0 5px rgba(53, 168, 224, 0.16) !important;
}

.route-family::before {
  background: var(--sun) !important;
  box-shadow: 0 0 0 5px rgba(239, 104, 77, 0.18) !important;
}

.route-car::before {
  background: var(--moss) !important;
  box-shadow: 0 0 0 5px rgba(93, 125, 101, 0.16) !important;
}

.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 104px 0;
  color: var(--white);
  background: var(--graphite);
}

.final-cta > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(8, 28, 36, 0.72);
}

.final-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: 46px;
  align-items: center;
}

.final-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: start;
}

.final-form input {
  background: rgba(255, 255, 255, 0.95);
}

.final-form .form-status {
  grid-column: 1 / -1;
  color: var(--white);
}

.site-footer {
  padding: 54px 0;
  background: var(--graphite);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.78fr 0.98fr 0.78fr;
  gap: 32px;
}

.footer-logo {
  width: 172px;
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 300px;
}

.footer-finance {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.sber-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-finance span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.25;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 6px 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer-disclaimer {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  line-height: 1.45;
}

.footer-disclaimer a {
  display: inline;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-socials {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.footer-social {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
}

.social-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.social-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-max {
  background: transparent;
}

.social-max img {
  border-radius: 50%;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 20px;
}

.lead-modal.is-open {
  display: grid;
}

.lead-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 32, 0.72);
  backdrop-filter: blur(10px);
}

.modal-form {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border-color: var(--line);
  color: var(--ink);
  background: #f7f4ed;
}

.plan-viewer {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: none;
  place-items: center;
  padding: 22px;
}

.plan-viewer.is-open {
  display: grid;
}

.plan-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 32, 0.72);
  backdrop-filter: blur(12px);
}

.plan-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: calc(100svh - 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.62fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 244, 237, 0.96)),
    url("/img/47.png") center / cover no-repeat;
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.28);
}

.plan-image-wrap {
  min-height: 640px;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.86)),
    url("/img/46.png") center / cover no-repeat;
}

.plan-image-wrap img {
  width: 100%;
  height: 100%;
  max-height: 74svh;
  object-fit: contain;
  filter: drop-shadow(0 20px 36px rgba(20, 23, 28, 0.13));
}

.plan-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 42px 34px 34px;
  border-left: 1px solid rgba(16, 36, 45, 0.1);
}

.plan-info h2 {
  margin-bottom: 0;
  font-size: 34px;
}

.plan-price {
  color: var(--water);
  font-size: 26px;
  font-weight: 420;
}

.plan-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.plan-meta span {
  padding: 10px 12px;
  border: 1px solid rgba(16, 36, 45, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 360;
}

.plan-payment {
  margin-top: auto;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--water), #2e609f);
  color: var(--white);
  box-shadow: 0 18px 44px rgba(58, 117, 196, 0.22);
}

.plan-payment span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 360;
  text-transform: uppercase;
}

.plan-payment strong {
  display: block;
  margin: 6px 0;
  font-size: 36px;
  line-height: 1;
  font-weight: 350;
}

.plan-payment small {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.mobile-cta {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

  .site-nav {
    gap: 12px;
    font-size: 15px;
  }

  .hero-layout,
  .story-grid,
  .mortgage-grid,
  .location-grid,
  .lead-wave-layout,
  .final-layout {
    grid-template-columns: 1fr;
  }

  .hero-board {
    grid-template-columns: repeat(3, 1fr);
  }

  .apartments-grid,
  .life-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .scenario-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-wave-layout {
    gap: 28px;
  }

  .plan-dialog {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .plan-image-wrap {
    min-height: 520px;
  }

  .plan-info {
    border-left: 0;
    border-top: 1px solid rgba(16, 36, 45, 0.1);
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav {
    position: fixed;
    top: 88px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
      linear-gradient(180deg, rgba(247, 244, 237, 0.97), rgba(255, 255, 255, 0.98)),
      url("/img/46.png") center / cover no-repeat;
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    min-height: 46px;
    padding: 12px 2px;
    border-bottom: 1px solid rgba(16, 36, 45, 0.1);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    bottom: 7px;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .header-contact {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding: 118px 0 70px;
  }

  .hero-layout {
    gap: 0;
  }

  h1 {
    font-size: 64px;
  }

  h2 {
    font-size: 36px;
  }

  .hero-lead {
    max-width: 560px;
    font-size: 20px;
    line-height: 1.46;
  }

  .hero-kicker {
    max-width: 360px;
    font-size: 16px;
    letter-spacing: 0.06em;
  }

  .hero-title {
    margin-bottom: 18px;
  }

  .hero-title span {
    font-size: clamp(32px, 8.8vw, 46px);
  }

  .hero-title strong {
    font-size: clamp(82px, 23vw, 132px);
    line-height: 0.82;
  }

  .hero-board {
    display: none;
  }

  .flat-meta,
  .final-form {
    grid-template-columns: 1fr;
  }

  .story-scenes {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .story-scenes::before {
    display: none;
  }

  .scene-card {
    position: relative;
    inset: auto;
    width: 100%;
    height: 300px;
    transform: none;
    animation: none;
  }

  .scene-card:hover {
    transform: none;
  }

  .section {
    padding: 72px 0;
  }

  .apartments-grid,
  .life-grid {
    grid-template-columns: 1fr;
  }

  .scenario-tab {
    min-height: auto;
  }

  .route-list {
    grid-template-columns: 1fr;
  }

  .map-widget,
  .map-widget iframe {
    min-height: 520px;
  }

  .lead-wave-media,
  .lead-wave-media img {
    min-height: 360px;
  }

  .gallery-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-rail {
    grid-auto-columns: minmax(280px, 78%);
  }

  .gallery-rail figure,
  .gallery-rail figure:nth-child(even) {
    min-height: 360px;
    margin-top: 0;
  }

  .plan-viewer {
    padding: 12px;
  }

  .plan-dialog {
    width: 100%;
    max-height: calc(100svh - 24px);
  }

  .plan-image-wrap {
    min-height: min(58svh, 520px);
    padding: 18px;
  }

  .plan-image-wrap img {
    max-height: 54svh;
  }

  .plan-info {
    padding: 28px 20px 20px;
  }

  .plan-info h2 {
    font-size: 30px;
  }

  .mobile-cta {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 35;
    display: grid;
    place-items: center;
    min-height: 52px;
    border-radius: var(--radius);
    background: var(--brand-sky);
    color: var(--white);
    font-weight: 420;
    box-shadow: 0 16px 40px rgba(16, 36, 45, 0.2);
  }
}

@media (max-width: 560px) {
  .brand,
  .brand-logo {
    width: 128px;
  }

  h1 {
    font-size: 46px;
  }

  .hero-kicker {
    font-size: 15px;
  }

  .hero-title span {
    font-size: clamp(30px, 9vw, 38px);
  }

  .hero-title strong {
    font-size: clamp(76px, 23vw, 106px);
  }

  .hero-lead {
    font-size: 18px;
  }

  h2 {
    font-size: 30px;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .option-grid,
  .calc-inline {
    grid-template-columns: 1fr;
    display: grid;
  }

  .feed-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .scenario-tabs {
    grid-template-columns: 1fr;
  }

  .flat-card {
    grid-template-rows: auto auto;
  }

  .flat-image {
    height: min(82svh, 560px);
    min-height: 390px;
    padding: 14px;
  }

  .flat-title {
    grid-template-columns: 1fr;
  }

  .flat-title span {
    white-space: normal;
  }

  .flat-payment {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .gallery-rail {
    grid-auto-columns: minmax(250px, 86%);
  }

  .gallery-controls {
    width: 100%;
  }

  .gallery-controls button {
    width: 100%;
  }

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

  .plan-payment strong {
    font-size: 30px;
  }

  .quiz-form,
  .calc-form,
  .modal-form {
    padding: 22px;
  }

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