@font-face {
  font-family: "TikTok Sans";
  src: url("/assets/v2/tiktoksans-cyr.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2b1713;
  --ink-2: #6b5d5a;
  --ink-3: #6b5d5a;
  --line: rgb(43 23 19 / 0.12);
  --line-strong: rgb(43 23 19 / 0.22);
  --ground: #ffffff;
  --ground-2: #f5f3f2;
  --orange: #f99123;
  --orange-ink: #a8520a;
  --orange-soft: #fde9d3;
  --brown: #2b1713;
  --on-brown: #ffffff;
  --on-brown-2: #d9c9c4;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1320px;
  --section: clamp(72px, 9vw, 136px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-panel: 0 24px 60px -24px rgb(43 23 19 / 0.35), 0 2px 6px rgb(43 23 19 / 0.06);

  --z-sticky: 20;
  --z-menu: 30;
  --z-cookie: 40;
  --z-chat: 45;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-color: rgb(43 23 19 / 0.35) var(--ground);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "TikTok Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--orange); color: var(--ink); }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* ---------- type ---------- */

.h1, .h2, .h3 { font-weight: 700; text-wrap: balance; }
.h1 {
  font-size: clamp(2.25rem, 1.4rem + 2.7vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
}
.h2 {
  font-size: clamp(2rem, 1.35rem + 2.1vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
}
.h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
  font-weight: 650;
}
.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}
.num { font-variant-numeric: tabular-nums lining-nums; }

.section { padding-block: var(--section); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 4vw, 56px); max-width: 860px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: var(--ink); box-shadow: 0 10px 24px -12px rgb(249 145 35 / 0.9); }
.btn--primary:hover { background: #ffa23f; box-shadow: 0 14px 28px -12px rgb(249 145 35 / 1); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #46291f; }
.btn--light { background: #fff; color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn svg { flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 650; text-decoration: none; color: var(--ink);
  padding-block: 10px;
}
.link-arrow span { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.link-arrow:hover span { text-decoration-color: var(--ink); }

/* ---------- header ---------- */

.header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgb(255 255 255 / 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgb(43 23 19 / 0.4); }
.header__row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.header__logo { flex: none; display: block; }
.header__logo img { width: 190px; height: auto; }
.nav { display: flex; gap: clamp(14px, 1.6vw, 28px); margin-left: auto; }
.nav a { white-space: nowrap; text-decoration: none; font-size: 0.9375rem; font-weight: 550; color: var(--ink-2); padding-block: 8px; }
.nav a:hover { color: var(--ink); }
.header__phone { font-weight: 650; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header__actions { display: flex; align-items: center; gap: 20px; }
.icon-btn {
  display: none; place-items: center;
  width: 44px; height: 44px; border-radius: 999px;
  border: 0; background: var(--ground-2); color: var(--ink);
}

@media (max-width: 1200px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 720px) {
  .header__row { min-height: 64px; gap: 12px; }
  .header__logo img { width: 160px; }
  .header__phone, .header__actions .btn { display: none; }
  .icon-btn { display: grid; }
  .header__actions { gap: 8px; }
}

.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--ground);
  padding: 20px var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 32px;
  margin: 0; max-width: none; max-height: none; width: 100%; height: 100%; border: 0;
}
.menu:not([open]) { display: none; }
.menu::backdrop { background: transparent; }
.menu__top { display: flex; justify-content: space-between; align-items: center; }
.menu__nav { display: grid; }
.menu__nav a { font-size: 1.75rem; font-weight: 650; letter-spacing: -0.02em; text-decoration: none; padding-block: 12px; border-bottom: 1px solid var(--line); }
.menu__foot { margin-top: auto; display: grid; gap: 12px; }
.menu__foot .header__phone { display: block; font-size: 1.375rem; }

/* ---------- hero ---------- */

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 55%; }
.hero__inner {
  display: grid;
  align-content: center;
  min-height: 0;
  padding-block: clamp(28px, 3vw, 40px);
}
.hero__text { max-width: 720px; display: grid; gap: 16px; }
.hero__sub { max-width: 36rem; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); font-weight: 550; color: var(--ink); margin-top: -6px; }
.hero__mort { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; max-width: 34rem; font-size: 0.9375rem; line-height: 1.45; color: var(--ink); margin-top: -10px; }
.hero__mort svg { color: var(--orange-ink); margin-top: 3px; }
.hero__mort a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 0.2em; white-space: nowrap; }
.hero__mort a:hover { color: var(--orange-ink); }

.offer {
  margin-top: 8px;
  background: var(--ground);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-panel);
  padding: clamp(16px, 1.6vw, 20px);
  display: grid; gap: 12px;
  max-width: 560px;
}
.seg {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--ground-2);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.seg button {
  border: 0; background: transparent; border-radius: 999px;
  min-height: 44px; padding: 6px 8px;
  font-size: 0.875rem; font-weight: 600; color: var(--ink-2);
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--ground); color: var(--ink); box-shadow: 0 2px 8px -2px rgb(43 23 19 / 0.25); }

.offer__figures { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.offer__price { color: var(--orange-ink); font-size: clamp(2rem, 1.6rem + 1.3vw, 2.75rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.offer__price small, .offer__days small { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.offer__days { font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1; color: var(--orange-ink); font-variant-numeric: tabular-nums; }
.offer__note { font-size: 0.9375rem; color: var(--ink-2); min-height: 3em; }
.offer [data-swap] { transition: opacity 0.35s var(--ease-out), filter 0.35s var(--ease-out); }
.offer.is-swapping [data-swap] { opacity: 0; filter: blur(4px); }

.ruler { position: relative; padding-top: 6px; }
.ruler__track { position: relative; height: 8px; border-radius: 999px; background: var(--ground-2); overflow: hidden; }
.ruler__fill {
  position: absolute; inset: 0;
  background: var(--orange);
  border-radius: inherit;
  transform-origin: left center;
  transform: scaleX(var(--p, 0.667));
  transition: transform 0.8s var(--ease-out);
}
.ruler__scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ruler__scale span:last-child::after { content: " дней"; }
.ruler--mini { padding-top: 2px; max-width: 220px; }
.ruler--mini .ruler__track { height: 6px; }

.offer__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.offer__actions .btn { flex: 1 1 auto; }
.gift {
  display: inline-flex; align-items: center; gap: 10px;
  justify-self: start;
  border: 0; background: none; padding: 6px 0;
  font-weight: 600; font-size: 0.9375rem; color: var(--ink); text-align: left;
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.3em;
}
.gift svg { color: var(--orange-ink); }

/* ---------- next: 3D-проект при вас, оценки, полоса цифр ---------- */
.offer3d {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  border: 0; border-radius: var(--radius);
  background: var(--orange-soft); color: var(--ink);
  padding: 14px 16px;
  transition: background-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.offer3d:hover { background: #fcdcb8; }
.offer3d:active { transform: scale(0.99); }
.offer3d__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ground); color: var(--orange-ink); }
.offer3d__text { display: grid; gap: 2px; }
.offer3d__text b { font-size: 1rem; font-weight: 700; }
.offer3d__text span { font-size: 0.875rem; color: var(--ink-2); line-height: 1.35; }
.offer3d > svg:last-child { color: var(--orange-ink); }

.rates { display: flex; gap: 10px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.rates a {
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  background: rgb(255 255 255 / 0.94); color: var(--ink); text-decoration: none;
  border-radius: 14px; padding: 8px 14px 8px 12px;
  box-shadow: 0 6px 20px -10px rgb(43 23 19 / 0.4);
  transition: box-shadow 0.3s var(--ease-out);
}
.rates a:hover { box-shadow: 0 10px 26px -10px rgb(43 23 19 / 0.55); }
.rates__score { grid-row: 1 / 3; font-size: 1.75rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.rates__stars { color: var(--orange); font-size: 0.8125rem; letter-spacing: 1px; line-height: 1; }
.rates__src { font-size: 0.8125rem; font-weight: 600; line-height: 1.2; }
.rates__src small { font-weight: 500; color: var(--ink-2); font-size: inherit; }
.rates__src small::before { content: " · "; }

.trust { background: var(--brown); color: var(--on-brown); }
.trust__list {
  list-style: none; margin: 0; padding: clamp(22px, 3vw, 36px) 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 40px);
}
.trust__list li { display: grid; gap: 6px; align-content: start; }
.trust__list b { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1.05; color: var(--orange); }
.trust__list span { font-size: 0.9375rem; line-height: 1.4; color: rgb(255 255 255 / 0.82); }
.trust__list a { color: inherit; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 0.2em; }
.trust__list a:hover { color: #fff; }
@media (max-width: 900px) { .trust__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .offer3d { padding: 12px; gap: 12px; }
  .offer3d__icon { width: 40px; height: 40px; }
  .rates { gap: 8px; flex-wrap: nowrap; }
  .rates li { flex: 1 1 0; min-width: 0; }
  .rates a { padding: 6px 10px 6px 8px; column-gap: 8px; }
  .rates__score { font-size: 1.375rem; }
  .rates__src { font-size: 0.75rem; }
  .rates__src small { display: block; }
  .rates__src small::before { content: none; }
}
@media (max-width: 420px) { .trust__list { grid-template-columns: 1fr 1fr; gap: 18px 14px; } .trust__list span { font-size: 0.875rem; } }

@media (max-width: 720px) {
  .hero { display: flex; flex-direction: column; }
  .hero__media { position: relative; inset: auto; order: 2; aspect-ratio: 4 / 3; z-index: 0; }
  .hero__media img { object-position: 80% 60%; }
  .hero__inner { min-height: 0; align-content: start; padding-top: 20px; padding-bottom: 24px; }
  .hero__text { gap: 16px; }
  .offer { margin-top: 4px; padding: 16px; gap: 14px; }
  .offer__actions .btn { flex-basis: 100%; }
  .seg button { font-size: 0.8125rem; padding-inline: 4px; }
}

/* ---------- packages (choose-stage) ---------- */

.packages { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.pkg { padding: 28px clamp(16px, 2vw, 32px) 32px; display: grid; gap: 14px; align-content: start; position: relative; }
.pkg + .pkg { border-left: 1px solid var(--line); }
.pkg--key::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--orange);
}
.pkg__badge { font-size: 0.8125rem; font-weight: 600; color: var(--orange-ink); }
.pkg__price { color: var(--orange-ink); font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pkg__days { font-weight: 600; color: var(--ink-2); }
.pkg__list { display: grid; gap: 10px; margin-top: 6px; }
.pkg__list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.pkg__list svg { margin-top: 3px; color: var(--ink-2); }
.pkg__list .muted { color: var(--ink-2); }
.packages-foot { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.packages-foot p { color: var(--ink-2); max-width: 46ch; }

@media (max-width: 900px) {
  .packages { grid-template-columns: 1fr; }
  .pkg { padding-inline: 0; }
  .pkg + .pkg { border-left: 0; border-top: 1px solid var(--line); }
  .pkg--key::before { left: 0; right: auto; width: 64px; }
}

/* ---------- catalog ---------- */

.catalog-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.catalog-head .section-head { margin-bottom: 0; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.proj { display: grid; gap: 14px; }
.proj__btn { display: block; padding: 0; border: 0; background: none; text-align: left; border-radius: var(--radius); }
.proj__img { aspect-ratio: 1272 / 904; border-radius: var(--radius); overflow: hidden; background: var(--ground-2); }
.proj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.proj__btn:hover .proj__img img { transform: scale(1.035); }
.proj__name { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; }
.proj__name strong { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.012em; }
.proj__price { font-weight: 700; color: var(--orange-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.proj__specs { color: var(--ink-2); font-size: 0.9375rem; margin-top: 2px; }
.catalog-foot { margin-top: clamp(36px, 4vw, 56px); display: flex; gap: 16px 28px; flex-wrap: wrap; align-items: center; }
.catalog-foot p { color: var(--ink-2); }

@media (max-width: 1080px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .projects-grid { grid-template-columns: 1fr; } }

/* ---------- quiz ---------- */

.quiz { background: var(--ground-2); }
.quiz__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.quiz__intro { display: grid; gap: 16px; position: sticky; top: 112px; }
.quiz__gift, .qstep__gift { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 600; }
.quiz__gift svg, .qstep__gift svg { color: var(--orange-ink); margin-top: 2px; }
.quiz__panel { background: var(--ground); border-radius: var(--radius-l); box-shadow: var(--shadow-panel); padding: clamp(20px, 3vw, 36px); }
@media (max-width: 900px) { .quiz__grid { grid-template-columns: 1fr; } .quiz__intro { position: static; } }

.qz { display: grid; gap: 24px; }
.qz__top { display: grid; gap: 10px; }
.qz__count { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.qz__bar { height: 6px; }
.qz__steps { min-height: 300px; }
.qstep { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 16px; align-content: start; }
.qstep[hidden] { display: none; }
.qstep.is-entering { animation: qstep-in 0.45s var(--ease-out); }
@keyframes qstep-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.qstep__q { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; padding: 0; text-wrap: balance; }
.qstep__hint { font-size: 0.875rem; color: var(--ink-2); margin-top: -4px; }
.qopts { display: grid; gap: 10px; }
fieldset.qstep .qopts { margin-top: 24px; }
.qopt {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: center;
  min-height: 56px; padding: 12px 18px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-s);
  position: relative; cursor: pointer; font-weight: 550;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.qopt:hover { border-color: var(--ink-3); }
.qopt input { position: absolute; opacity: 0; pointer-events: none; }
.qopt__mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--ground); display: grid; place-items: center; transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out); }
.qopt input[type="checkbox"] + .qopt__mark { border-radius: 6px; }
.qopt input:checked + .qopt__mark { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px var(--ground); }
.qopt input[type="checkbox"]:checked + .qopt__mark { box-shadow: none; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center / 16px no-repeat; }
.qopt:has(input:checked) { border-color: var(--ink); background: var(--orange-soft); }
.qopt:has(input:focus-visible) { outline: 2px solid var(--orange-ink); outline-offset: 2px; }
.qother { margin-top: 2px; }
.qstep--final .field input { width: 100%; }
.qz__nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.qz__nav [data-q-next], .qz__nav [data-q-submit] { margin-left: auto; }
.qz__nav:not(:has(:not([hidden]))) { display: none; }
.qz.is-done .qz__top, .qz.is-done .qz__steps, .qz.is-done .qz__nav { display: none; }
.qz.is-done .qz__done { display: grid; }
.modal--quiz { width: min(100% - 32px, 680px); }
.modal--quiz .modal__body { gap: 20px; }
.modal--quiz .modal__body > .h2 { padding-right: 52px; }
@media (max-width: 720px) {
  .qz__steps { min-height: 0; }
  .qz__nav { position: sticky; bottom: 0; background: var(--ground); padding-top: 8px; }
  .qz__nav .btn { flex: 1 1 auto; }
}

/* ---------- cases ---------- */

.cases { display: grid; gap: clamp(64px, 8vw, 120px); }
.case { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.case:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.case:nth-child(even) .case__media { order: 2; }
.case__main { aspect-ratio: 1154 / 820; border-radius: var(--radius); overflow: hidden; background: var(--ground-2); }
.case__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s var(--ease-out); }
.case__main img.is-fading { opacity: 0; }
.case__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; }
.case__thumbs button { padding: 0; border: 0; border-radius: var(--radius-s); overflow: hidden; aspect-ratio: 1154 / 820; background: var(--ground-2); opacity: 0.55; transition: opacity 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out); }
.case__thumbs button:hover { opacity: 0.85; }
.case__thumbs button[aria-pressed="true"] { opacity: 1; box-shadow: inset 0 0 0 2px var(--orange); }
.case__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.case__body { display: grid; gap: 20px; }
.case__facts { display: flex; gap: 32px; padding-block: 16px; border-block: 1px solid var(--line); }
.case__facts dt { font-size: 0.8125rem; color: var(--ink-2); }
.case__facts dd { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.case__label { font-size: 0.875rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.case__body p { text-wrap: pretty; }
.case__list { display: grid; gap: 8px; }
.case__list li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; }
.case__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); margin-top: 0.62em; }
.case__result { font-weight: 600; }

@media (max-width: 900px) {
  .case, .case:nth-child(even) { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__media { order: 0; }
}
@media (max-width: 520px) { .case__thumbs { grid-template-columns: repeat(6, 1fr); gap: 6px; } }
/* три показателя в одну строку: «146 м²» и «5 месяцев» не рвутся */
@media (max-width: 520px) {
  .case__facts { gap: 12px 20px; flex-wrap: wrap; }
  .case__facts dt, .case__facts dd { white-space: nowrap; }
  .case__facts dd { font-size: 1.25rem; }
}

/* ---------- trust ---------- */

.facts-line {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 26ch;
  text-wrap: balance;
}
.facts-line b { color: var(--orange-ink); font-weight: 750; font-variant-numeric: tabular-nums; }
.about { display: grid; gap: 0; }
.about .facts-line { max-width: 30ch; font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3.5rem); }
.about__extra { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px !important; }
@media (max-width: 720px) { .about__extra { grid-template-columns: 1fr; } }
.about__photo { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4 / 3; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.about__extra { display: grid; gap: 14px; margin-top: 32px; color: var(--ink-2); max-width: 48ch; }
.about__extra strong { color: var(--ink); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

.guarantees { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(28px, 5vw, 80px); border-top: 1px solid var(--line-strong); }
.guarantee { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.guarantee dt { font-weight: 650; font-size: 1.125rem; letter-spacing: -0.01em; }
.guarantee dd { color: var(--ink-2); }
@media (max-width: 900px) {
  .guarantees { grid-template-columns: 1fr; }
  .guarantee { grid-template-columns: 1fr; gap: 6px; }
}

.tech { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.tech__photo { position: sticky; top: 104px; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4 / 3; }
.tech__photo img { width: 100%; height: 100%; object-fit: cover; }
.tech__list { display: grid; }
.tech__list li { display: grid; gap: 6px; padding-block: 20px; border-top: 1px solid var(--line); }
.tech__list li:last-child { border-bottom: 1px solid var(--line); }
.tech__list strong { font-size: 1.125rem; font-weight: 650; }
.tech__list span { color: var(--ink-2); }
.big-years { color: var(--orange-ink); }
@media (max-width: 900px) { .tech { grid-template-columns: 1fr; } .tech__photo { position: static; } }

.control { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.control__steps { display: grid; gap: 0; margin-top: 32px; counter-reset: step; }
.control__steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding-block: 16px; border-top: 1px solid var(--line); font-size: 1.125rem; font-weight: 600; }
.control__steps svg { color: var(--ink); }
.control__photo { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 5 / 6; max-height: 560px; }
.control__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (max-width: 900px) { .control { grid-template-columns: 1fr; } .control__photo { aspect-ratio: 4 / 3; } }

/* ---------- mortgage ---------- */

.mortgage { background: var(--brown); color: var(--on-brown); }
.mortgage .lead { color: var(--on-brown-2); }
.mortgage__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.mortgage__photo { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 5 / 4; }
.mortgage__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
.mortgage__does { display: grid; gap: 10px; margin-top: 28px; }
.mortgage__does li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.mortgage__does svg { color: var(--on-brown-2); margin-top: 3px; }
.mortgage__terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid rgb(255 255 255 / 0.18); }
.term { padding: 24px 24px 0 0; }
.term + .term { padding-left: 24px; border-left: 1px solid rgb(255 255 255 / 0.12); }
.term dt { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-weight: 750; letter-spacing: -0.03em; color: var(--orange); font-variant-numeric: tabular-nums; line-height: 1.1; }
.term dd { color: var(--on-brown-2); margin-top: 6px; }
.term:nth-child(3) dt { color: var(--on-brown); }
.mortgage .btn { margin-top: 32px; }
@media (max-width: 900px) {
  .mortgage__grid { grid-template-columns: 1fr; }
  .mortgage__terms { grid-template-columns: 1fr; }
  .term, .term + .term { padding: 20px 0; border-left: 0; border-bottom: 1px solid rgb(255 255 255 / 0.12); }
}

/* ---------- excursion ---------- */

.excursion { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: stretch; }
.excursion__photo { border-radius: var(--radius-l); overflow: hidden; min-height: 420px; }
.excursion__photo img { width: 100%; height: 100%; object-fit: cover; }
.excursion__body { display: grid; gap: 20px; align-content: center; }
@media (max-width: 900px) { .excursion { grid-template-columns: 1fr; } .excursion__photo { min-height: 0; aspect-ratio: 4 / 3; } }

/* ---------- forms ---------- */

.form { display: grid; gap: 14px; max-width: 480px; }
.form__fields { display: grid; gap: 18px; }
.form__fields > .consent { margin-top: 2px; }
.form__fields > .btn { margin-top: 10px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field input {
  min-height: 54px; padding: 0 18px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-s);
  background: var(--ground); font-size: 1rem;
  caret-color: var(--orange-ink);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.field input::placeholder { color: var(--ink-2); opacity: 1; }
.field input:hover { border-color: var(--ink-3); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--orange-soft); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field__error { font-size: 0.8125rem; color: #b3261e; min-height: 0; }
.consent { display: grid; gap: 8px; font-size: 0.8125rem; color: var(--ink-2); }
.consent label { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--orange-ink); }
.consent a { color: var(--ink); }
.form .btn { width: 100%; }
.form__status { font-size: 0.9375rem; font-weight: 600; min-height: 1.2em; }
.form__status.is-error { color: #b3261e; }
.form.is-done .form__fields { display: none; }
.form__done { display: none; gap: 8px; padding: 20px; border-radius: var(--radius); background: var(--orange-soft); }
.form.is-done .form__done { display: grid; }
.form__done strong { font-size: 1.125rem; }
.mortgage .form__done { color: var(--ink); }

/* ---------- contacts & footer ---------- */

.contacts { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.contacts__map { position: relative; display: block; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 16 / 10; background: var(--ground-2); color: var(--ink); text-decoration: none; }
.contacts__map img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 0.9s var(--ease-out); }
.contacts__map:hover img { transform: scale(1.03); }
.contacts__map-cta { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: var(--radius); background: var(--ground); font-weight: 650; box-shadow: var(--shadow-panel); }
.contacts__map-cta svg:first-child { color: var(--orange-ink); flex: none; }
.contacts__map-cta svg:last-child { margin-left: auto; flex: none; }
.contacts__list { display: grid; gap: 18px; margin-top: 28px; }
.contacts__list dt { font-size: 0.8125rem; color: var(--ink-2); }
.contacts__list dd { font-size: 1.125rem; font-weight: 600; }
.contacts__list a { text-decoration: none; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; }
@media (max-width: 900px) { .contacts { grid-template-columns: 1fr; } }

.footer { border-top: 1px solid var(--line); padding-block: 40px 48px; font-size: 0.8125rem; color: var(--ink-2); }
.footer__row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; margin-bottom: 20px; }
.footer__row img { width: 124px; }
.footer__row a { color: var(--ink); }
.footer p { max-width: 64ch; }

/* ---------- dialogs ---------- */

.modal {
  border: 0; padding: 0;
  width: min(100% - 32px, 960px);
  max-height: calc(100dvh - 32px);
  border-radius: var(--radius-l);
  background: var(--ground); color: var(--ink);
  box-shadow: 0 40px 120px -40px rgb(43 23 19 / 0.6);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal--form { width: min(100% - 32px, 820px); }
.modal::backdrop { background: rgb(43 23 19 / 0.55); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in 0.45s var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.985); } to { opacity: 1; transform: none; } }
.modal__close {
  position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: rgb(255 255 255 / 0.92); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 4px 14px -6px rgb(43 23 19 / 0.4);
}
.modal__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.modal__body { padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; align-content: start; }
.modal__aside { background: var(--ground-2); min-height: 100%; }
.modal__aside img { width: 100%; height: 100%; object-fit: cover; }
.modal--form .modal__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 720px) {
  .modal { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; max-width: none; }
  .modal__grid, .modal--form .modal__grid { grid-template-columns: 1fr; }
  .modal__aside { display: none; }
  .modal--project .modal__aside { display: block; }
}

.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { scroll-snap-align: start; width: 100%; aspect-ratio: 1272 / 904; object-fit: cover; }
.gallery-nav { display: flex; gap: 8px; padding: 12px; justify-content: center; }
.gallery-nav button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: var(--line-strong); }
.gallery-nav button[aria-current="true"] { background: var(--orange-ink); }
/* две колонки только на широком экране: на телефоне фото сверху, текст под ним */
@media (min-width: 721px) { .modal--project .modal__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
@media (max-width: 720px) {
  .modal--project .modal__grid { grid-template-columns: minmax(0, 1fr); }
  .modal--project .modal__aside { min-height: 0; }
}
.spec-row { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-block: 14px; border-block: 1px solid var(--line); }
.spec-row div { display: grid; }
.spec-row span { font-size: 0.8125rem; color: var(--ink-2); }
.spec-row strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.spec-row .accent { color: var(--orange-ink); }
.modal__body .stack { display: grid; gap: 12px; color: var(--ink-2); }
.modal__actions { display: grid; gap: 10px; margin-top: 6px; }

/* ---------- cookie ---------- */

.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: var(--z-cookie);
  max-width: 420px;
  display: flex; gap: 14px; align-items: center;
  padding: 12px 12px 12px 18px;
  background: var(--ink); color: #fff;
  border-radius: var(--radius);
  font-size: 0.8125rem; line-height: 1.4;
  box-shadow: 0 16px 40px -16px rgb(43 23 19 / 0.6);
}
.cookie a { color: #fff; }
.cookie[hidden] { display: none; }
@media (max-width: 720px) { .cookie { left: 8px; right: 88px; bottom: 8px; padding: 10px 10px 10px 14px; } }

/* ---------- чат с менеджером ---------- */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chat { position: fixed; right: 16px; bottom: 16px; z-index: var(--z-chat); }
.chat__launcher {
  position: relative; display: block; width: 60px; height: 60px; padding: 0;
  border: 3px solid #fff; border-radius: 50%; background: var(--ground-2);
  box-shadow: 0 14px 34px -12px rgb(43 23 19 / 0.55);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.chat__launcher img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.chat__launcher:hover { transform: translateY(-2px); }
.chat__dot { position: absolute; right: -1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; background: #2fb36b; border: 2.5px solid #fff; }
.chat.is-away .chat__launcher, .chat.is-away .chat__teaser { opacity: 0; transform: translateY(12px); pointer-events: none; }

.chat__teaser { position: absolute; right: 0; bottom: 74px; width: 260px; animation: chat-in 0.45s var(--ease-out); }
.chat__teaser[hidden] { display: none; }
.chat__teaser-msg {
  display: block; width: 100%; text-align: left; padding: 12px 16px;
  background: var(--ground); color: var(--ink); border: 0; border-radius: var(--radius) var(--radius) 4px var(--radius);
  font: inherit; font-size: 0.875rem; line-height: 1.4;
  box-shadow: var(--shadow-panel);
}
.chat__teaser-x {
  position: absolute; top: -10px; left: -10px; width: 28px; height: 28px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--ink); color: #fff; padding: 0;
}

.chat__panel {
  position: fixed; right: 16px; bottom: 92px; width: 370px; height: min(560px, calc(100dvh - 116px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--ground); border-radius: var(--radius-l); box-shadow: var(--shadow-panel);
  animation: chat-in 0.4s var(--ease-out);
}
.chat__panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.chat__head { display: grid; grid-template-columns: 44px 1fr 40px; gap: 12px; align-items: center; padding: 14px 12px 14px 16px; border-bottom: 1px solid var(--line); }
.chat__head img { border-radius: 50%; object-fit: cover; }
.chat__who { display: grid; line-height: 1.25; min-width: 0; }
.chat__who strong { font-weight: 700; }
.chat__who span { font-size: 0.8125rem; color: var(--ink-2); }
.chat__close { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); padding: 0; }
.chat__close:hover { background: var(--ground-2); }

.chat__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--ground-2); }
.chat__msg { max-width: 86%; padding: 10px 14px; border-radius: var(--radius); font-size: 0.9375rem; line-height: 1.4; animation: chat-in 0.35s var(--ease-out); overflow-wrap: anywhere; }
.chat__msg--bot { align-self: flex-start; background: var(--ground); border-bottom-left-radius: 4px; }
.chat__msg--me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.chat__msg a { color: inherit; font-weight: 600; }
.chat__typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: chat-dot 1s infinite ease-in-out; }
.chat__typing i:nth-child(2) { animation-delay: 0.15s; }
.chat__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot { 0%, 60%, 100% { opacity: 0.3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.chat__quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; background: var(--ground-2); }
.chat__quick:empty { display: none; }
.chat__quick button {
  padding: 8px 14px; border: 1.5px solid var(--orange); border-radius: 999px;
  background: var(--ground); color: var(--ink); font: inherit; font-size: 0.875rem; font-weight: 600;
  transition: background-color 0.2s var(--ease-out);
}
.chat__quick button:hover { background: var(--orange-soft); }

.chat__form { padding: 12px 16px 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.chat__row { display: flex; gap: 8px; }
.chat__row input {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--ground);
  font: inherit; font-size: 1rem; color: var(--ink);
}
.chat__row input:focus { outline: none; border-color: var(--ink); }
.chat__row input[aria-invalid="true"] { border-color: #c4361b; }
.chat__send { flex: none; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--orange); color: var(--ink); }
.chat__send:disabled { opacity: 0.5; }
.chat__note { font-size: 0.75rem; line-height: 1.35; color: var(--ink-3); }
.chat__note[hidden] { display: none; }
.chat__note a { color: inherit; }

@media (max-width: 560px) {
  .chat { right: 12px; bottom: 12px; }
  .chat__panel { inset: 0; width: auto; height: 100dvh; border-radius: 0; }
  .chat.is-open .chat__launcher, .chat.is-open .chat__teaser { display: none; }
  .chat__teaser { width: min(260px, calc(100vw - 24px)); }
}
html.chat-lock, html.chat-lock body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
.spec-note { font-size: 0.875rem; color: var(--ink-2); margin-top: -8px; }

/* ---------- цитаты из отзывов (/next/) ---------- */
.rq { margin: 0; display: grid; gap: 10px; }
.rq blockquote { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; }
.rq blockquote::before { content: "«"; font-size: 3rem; font-weight: 750; line-height: 0.8; color: var(--orange); margin-top: 2px; }
.rq blockquote p { font-size: 1.0625rem; line-height: 1.5; color: var(--ink); max-width: 62ch; }
.rq blockquote p::after { content: "»"; }
.rq figcaption { padding-left: 38px; font-size: 0.875rem; line-height: 1.4; color: var(--ink-2); }
.rq figcaption b { font-weight: 650; color: var(--ink); }
.rq figcaption a { color: inherit; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 0.2em; }
.rq figcaption a:hover { color: var(--ink); }
.tech .rq--tech, .control .rq, .mortgage .rq { margin-top: 28px; max-width: 60ch; }
.mortgage .rq { margin-bottom: 28px; }
.rq--modal { margin-top: 4px; }
.rq--modal blockquote p { font-size: 0.9375rem; }

.speed { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: center; margin-top: 40px; padding: 28px 32px; background: var(--orange-soft); border-radius: var(--radius-l); }
.speed__title { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 8px; }
.speed__text p:not(.speed__title) { color: var(--ink-2); }

.reviews__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.rq--card { align-content: space-between; gap: 16px; padding: 24px 24px 22px; background: var(--ground-2); border-radius: var(--radius-l); }
.rq--card figcaption { padding-left: 38px; }
.mortgage .rq blockquote p, .mortgage .rq figcaption b { color: var(--on-brown); }
.mortgage .rq figcaption, .mortgage .rq figcaption a { color: var(--on-brown-2); }
.mortgage .rq figcaption a:hover { color: var(--on-brown); }
.reviews__more { display: flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 600; }
.reviews__more a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 0.2em; }

@media (max-width: 900px) {
  .speed { grid-template-columns: 1fr; padding: 22px 20px; }
  .reviews__grid { grid-template-columns: 1fr; }
}

/* пояснение к ставке — условия банка рядом с цифрой */
.mortgage__note { margin-top: 20px; max-width: 70ch; font-size: 0.875rem; line-height: 1.5; color: var(--on-brown-2); }

/* светлая подложка слева: на фото тёмный лес там, где стоит заголовок; дом справа остаётся ярким */
@media (min-width: 901px) {
  .hero__media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgb(255 255 255 / 0.9) 0%, rgb(255 255 255 / 0.82) 34%, rgb(255 255 255 / 0.4) 44%, rgb(255 255 255 / 0) 50%);
  }
}

/* 3D-проект при вас — отдельной полосой под первым экраном (карточка в первом экране легче, фото крупнее) */
.strip3d { background: var(--orange-soft); }
.strip3d .offer3d { background: transparent; padding: 14px 0; max-width: 760px; border-radius: 0; }
.strip3d .offer3d:hover { background: transparent; }
.strip3d .offer3d:hover b { color: var(--orange-ink); }

/* Один дом — два этапа: два снимка с одного ракурса, верхний обрезается по положению ползунка (--pos) */
.ba-sec { padding-top: 0; }
.ba { position: relative; margin: 0; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
      background: var(--ground-2); user-select: none; -webkit-user-select: none; --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff;
            box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08); pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
            display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 6px 20px -6px rgb(0 0 0 / 0.45); }
.ba__tag { position: absolute; top: 16px; padding: 7px 12px; border-radius: 999px; font-size: 0.875rem; font-weight: 600;
           background: rgb(43 23 19 / 0.78); color: #fff; pointer-events: none; }
.ba__tag--l { left: 16px; }
.ba__tag--r { right: 16px; background: var(--orange); color: var(--ink); }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba input[type="range"]:focus-visible ~ .ba__line .ba__knob { outline: 3px solid var(--orange); outline-offset: 3px; }
.ba-foot { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; margin-top: 24px; }
.ba-facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; }
.ba-facts div { display: grid; gap: 2px; }
.ba-facts dt { font-size: 0.875rem; color: var(--ink-2); }
.ba-facts dd { margin: 0; font-weight: 600; font-size: 1.0625rem; }
@media (max-width: 620px) {
  .ba { aspect-ratio: 4 / 3.6; }
  .ba__tag { top: 10px; font-size: 0.8125rem; }
  .ba__tag--l { left: 10px; }
  .ba__tag--r { right: 10px; }
}

/* Первый экран: картинка по высоте экрана и прижата так, чтобы дом (начинается на 32% ширины фото)
   стоял правее карточки с ценой; левый край фото растворяется в светлой подложке. Справа фото не отрывается от края. */
@media (min-width: 901px) {
  .hero--barn .hero__media { container-type: size; }
  /* --t — куда ставим левый край навеса (сразу за карточкой цены);
     --w — ширина фото: от «по высоте экрана» (160cqh) до приближения ×1,25 (200cqh), но так, чтобы фронтон
     (81% ширины фото, от навеса до него 49%) помещался до правого края с отступом 24px.
     Лишнее по высоте уходит за края: 40% сверху (небо), 60% снизу (трава). */
  .hero--barn .hero__media img {
    --t: max(660px, 50cqw - 60px);
    --w: clamp(160cqh, (100cqw - 24px - var(--t)) / 0.49, 200cqh);
    position: absolute; width: var(--w); height: auto; max-width: none; aspect-ratio: 1586 / 992;
    top: calc((100cqh - var(--w) / 1.6) * 0.4);
    left: max(var(--t) - 0.32 * var(--w), 100cqw - var(--w));
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
            mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  }
}
@media (max-width: 720px) { .hero--barn .hero__media img { object-position: 88% 55%; } }
/* Первый экран, 721–900 px: светлой подложки нет, а тёмный дом попадал под заголовок — фото уходит под карточку, как на телефоне */
@media (min-width: 721px) and (max-width: 900px) {
  .hero--barn { display: flex; flex-direction: column; }
  .hero--barn .hero__media { position: relative; inset: auto; order: 2; aspect-ratio: 16 / 9; z-index: 0; }
  .hero--barn .hero__media img { object-position: 85% 55%; }
  .hero--barn .hero__inner { align-content: start; }
}

/* ---------- зима: /zima/ и зимний раздел (прототип 2026-11-27, снять после 01.03.2027) ---------- */
.wchip {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 10px; border-radius: 99px; background: var(--orange-soft); color: var(--orange-ink);
  font-size: 0.875rem; font-weight: 650; line-height: 1.3;
}
.hero--zima .wchip { margin-bottom: -4px; }

@media (min-width: 901px) {
  .hero--zima .hero__media { container-type: size; }
  /* дом справа от карточки цены: картинка по высоте экрана, левая часть уходит под карточку и растворяется */
  .hero--zima .hero__media img {
    --t: max(660px, 50cqw - 60px);
    --w: max((100cqw - var(--t)) / 0.9, 133.4cqh);
    position: absolute; width: var(--w); height: auto; max-width: none; aspect-ratio: 1448 / 1086;
    top: calc((100cqh - var(--w) * 0.75) * 0.45);
    left: max(var(--t) - 0.12 * var(--w), 100cqw - var(--w));
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%);
            mask-image: linear-gradient(90deg, transparent 0, #000 20%);
  }
}
@media (max-width: 900px) { .hero--zima .hero__media img { object-position: 45% 62%; } }

.winter { background: #eef2f5; }
.winter .section-head { margin-bottom: clamp(28px, 3vw, 44px); }
.wreasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wreason { background: #fff; border-radius: var(--radius); padding: clamp(20px, 2vw, 28px); display: grid; gap: 10px; align-content: start; }
.wreason__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-ink); }
.wreason p { color: var(--ink-2); line-height: 1.5; }

.wlanes { margin-top: clamp(36px, 4vw, 56px); display: grid; gap: 6px; }
.wlanes__row { display: grid; grid-template-columns: minmax(130px, 0.6fr) 1fr 1fr; gap: 6px; }
.wlanes__head p { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.0625rem; padding: 4px 18px; }
.wlanes__head .wlanes__cell--win { color: var(--ink); }
.wlanes__head .wlanes__cell--spr { color: var(--ink-2); }
.wlanes__when { align-self: center; font-weight: 700; color: var(--ink); padding-right: 8px; }
.wlanes__cell { margin: 0; padding: 14px 18px; border-radius: var(--radius-s); line-height: 1.45; }
.wlanes__cell--win { background: #fff; color: var(--ink); font-weight: 550; box-shadow: inset 3px 0 0 var(--orange); }
.wlanes__cell--spr { background: rgb(43 23 19 / 0.04); color: var(--ink-2); }
.wlanes__row--key .wlanes__cell--win { background: var(--orange); font-weight: 700; font-size: 1.125rem; box-shadow: none; }
.wlanes__row--key .wlanes__when { color: var(--orange-ink); font-size: 1.125rem; }

.wphotos { margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.wphoto { margin: 0; display: grid; gap: 10px; }
.wphoto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-s); }
.wphoto figcaption { font-size: 0.9375rem; line-height: 1.35; color: var(--ink-2); display: grid; gap: 2px; }
.wphoto figcaption b { color: var(--ink); font-weight: 700; }

.winter__cta { margin-top: clamp(32px, 3vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.winter__cta p { max-width: 52ch; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }

@media (max-width: 900px) {
  .wreasons { grid-template-columns: 1fr; }
  .wphotos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wlanes__row { grid-template-columns: 1fr 1fr; }
  .wlanes__head span { display: none; }
  .wlanes__head p { padding: 4px 4px; font-size: 0.9375rem; }
  .wlanes__when { grid-column: 1 / -1; padding: 10px 0 0; }
  .wlanes__cell { padding: 12px 12px; font-size: 0.9375rem; }
  .wlanes__row--key .wlanes__cell--win { font-size: 1rem; }
  .winter__cta .btn { width: 100%; }
}
