/* ЭКОДОМ — стили сайта. Цвета и размеры меняются в блоке :root */
:root {
  --ink: #1F232D;
  --muted: #5A5F68;
  --paper: #ffffff;
  --mist: #F4F5F6;
  --line: #E3E5E8;
  --line-2: #D5D8DC;
  --sky: #CBD8E2;
  --sky-ink: #8FA3B3;
  --orange: #F26700;
  --orange-text: #C95500;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: 80px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.accent { color: var(--orange-text); }

/* заголовки: светлые, заглавные, с интервалом — как у референса */
.h1, .h2, .hero h1 { font-weight: 300; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.12; }
.h1 { font-size: clamp(1.6rem, 1rem + 2.4vw, 2.4rem); }
.h2 { font-size: clamp(1.4rem, 1rem + 1.4vw, 1.9rem); }
.h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: 0.04em; }

/* кнопки: плоские, без скруглений */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 34px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; cursor: pointer; text-align: center; transition: background .15s, color .15s; }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 12px; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #363c4a; }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--orange { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn--orange:hover { background: #ff7a1a; border-color: #ff7a1a; }
.btn--block { width: 100%; }

/* шапка */
.header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 20; }
.header--overlay { position: absolute; left: 0; right: 0; top: 0; background: transparent; border-bottom: 0; }
.header__in { height: 72px; padding: 0 40px; display: flex; align-items: center; gap: 28px; }
.header__sp { flex: 1; }
.burger, .menu__close { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 500; letter-spacing: 0.22em; margin-left: 12px; }
.header__phone { font-size: 18px; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; }
.header__nav { display: flex; gap: 6px; }
.header__nav { gap: 8px; }
.header__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; border-bottom: 3px solid transparent; }
.header__nav a:hover { border-bottom-color: rgba(255, 255, 255, .5); }
.header__nav a[aria-current] { border-bottom-color: var(--orange); }
.header .btn--line { border-color: #fff; color: #fff; }
.header .btn--line:hover { background: #fff; color: var(--ink); }
.header__cta { white-space: nowrap; }

/* выезжающее меню */
.menu[hidden] { display: none; }
.menu { position: fixed; inset: 0; z-index: 50; }
.menu__shade { position: absolute; inset: 0; background: rgba(20, 24, 32, .6); }
.menu__panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(480px, 100%); background: var(--paper); display: flex; flex-direction: column; animation: slide .25s ease-out; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: none; } }
.menu__top { height: 96px; flex-shrink: 0; padding: 0 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.menu__top .logo { margin-left: 0; }
.menu__scroll { overflow-y: auto; flex: 1; }
.menu__group { padding: 24px 64px 14px; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.menu__label { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); padding-bottom: 6px; }
.menu__group a { font-size: 17px; line-height: 35px; text-decoration: none; }
.menu__group a:hover, .menu__contact a:hover { color: var(--orange-text); }
.menu__links { padding: 22px 64px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.menu__links a { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.menu__contact { padding: 20px 64px 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.menu__contact a { text-decoration: none; }
.menu__cta { padding: 18px 64px 32px; display: flex; gap: 10px; }

/* главный экран */
.hero { position: relative; min-height: 780px; background: var(--sky) center / cover no-repeat; overflow: hidden; }
.hero.has-photo { background-image: url(/images/hero.jpg); }
.hero.has-photo .hero__media { display: none; }
@media (max-width: 720px) {
  .hero.has-photo::before { background: linear-gradient(180deg, rgba(12, 16, 22, .7) 0%, rgba(12, 16, 22, .45) 60%, rgba(12, 16, 22, .6) 100%); }
  /* вертикальное фото: сверху целиком, текст под ним на тёмном фоне */
  .hero.has-photo.has-photo-m { background: #12161C url(/images/hero-mobile.jpg) top center / 100% auto no-repeat; min-height: 0; }
  .hero.has-photo.has-photo-m::before { inset: 0 0 auto 0; height: calc(100vw * 1.2); background: linear-gradient(180deg, rgba(12, 16, 22, .55) 0%, rgba(12, 16, 22, 0) 22%, rgba(12, 16, 22, 0) 62%, #12161C 100%); }
  .hero.has-photo.has-photo-m .hero__in { display: flex; flex-direction: column; padding-top: calc(100vw * 1.02); padding-bottom: 40px; }
  .hero.has-photo.has-photo-m .ratings { order: 0; }
  .hero.has-photo.has-photo-m .hero__text { order: 1; margin-top: 28px; }
  .hero.has-photo.has-photo-m .trust { order: 2; margin-top: 28px; }
}
.hero.has-photo { color: #fff; background-position: 70% center; }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 16, 22, .74) 0%, rgba(12, 16, 22, .5) 42%, rgba(12, 16, 22, .08) 75%); }
.hero.has-photo .accent { color: var(--orange); }
.hero.has-photo .hero__text .btn--line { border-color: #fff; color: #fff; }
.hero.has-photo .hero__text .btn--line:hover { background: #fff; color: var(--ink); }
.hero.has-photo h1, .hero.has-photo .hero__lead, .hero.has-photo .hero__price { text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
/* шапка поверх тёмного фото */
.header--light { color: #fff; }
.header--light .btn--line { border-color: #fff; color: #fff; }
.header--light .btn--line:hover { background: #fff; color: var(--ink); }
.header--light .btn--ink { background: #fff; border-color: #fff; color: var(--ink); }
.header--light .btn--ink:hover { background: #E3E5E8; }
.header--light .header__nav a[aria-current] { border-bottom-color: #fff; }
.hero__media { position: absolute; right: 40px; bottom: 60px; width: min(820px, 70%); color: var(--sky-ink); }
.hero__in { position: relative; display: flex; flex-direction: column; padding: 48px var(--gutter) 72px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 36px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero__text { max-width: 760px; margin-top: 84px; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero__kicker { font-size: 18px; letter-spacing: .06em; }
.hero h1 { font-size: clamp(1.9rem, 1rem + 3.4vw, 3.4rem); }
.hero__price { font-size: 20px; font-weight: 500; letter-spacing: .04em; }
.hero__lead { font-size: 17px; line-height: 1.6; max-width: 54ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 12px; }

/* кнопки типов домов под главным фото */
.types { background: var(--paper); border-bottom: 1px solid var(--line); }
.types__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 32px var(--gutter); }
.types .btn { width: 100%; min-height: 64px; padding: 8px 16px; font-size: 12px; line-height: 1.35; }

/* квиз-калькулятор */
.quiz { background: var(--mist); scroll-margin-top: 0; }
.quiz__in { padding: 72px var(--gutter); display: flex; flex-direction: column; gap: 28px; }
.quiz__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.quiz__sub { margin-top: 10px; font-size: 15px; color: var(--muted); }
.quiz__step { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.quiz__bar { display: flex; gap: 6px; }
.quiz__bar span { flex: 1; height: 3px; background: var(--line-2); }
.quiz__bar span.on { background: var(--orange); }
.quiz__panel { min-height: 480px; padding: 40px 48px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 28px; }
.quiz__q { font-size: 24px; letter-spacing: .03em; }
.tiles { display: grid; gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; text-align: left; min-height: 104px; padding: 18px 20px; border: 1px solid var(--line-2); background: var(--paper); cursor: pointer; }
.tile:hover { border-color: var(--ink); }
.tile[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tile b { font-size: 16px; font-weight: 500; line-height: 1.3; }
.tile small { font-size: 13px; opacity: .8; }
.tile em { font-style: normal; font-size: 13px; font-weight: 600; }
.quiz__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.quiz__now { font-size: 14px; color: var(--muted); }
.quiz__now b { color: var(--ink); }
.quiz__hint { font-size: 12px; color: var(--muted); }
.result { display: flex; gap: 64px; flex-wrap: wrap; }
.result > div { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; }
.result dl { display: flex; flex-direction: column; gap: 8px; }
.result dl div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.result dt { color: var(--muted); }
.result dd { font-weight: 600; text-align: right; }
.result__price { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.25rem); font-weight: 300; letter-spacing: .02em; line-height: 1.15; }
.result__small { font-size: 13px; color: var(--muted); }
.linkbtn { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; cursor: pointer; }

/* форма заявки */
.lead { display: flex; flex-direction: column; gap: 14px; }
.lead__row { display: flex; gap: 12px; flex-wrap: wrap; }
.lead label { flex: 1 1 160px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.lead input[type="text"], .lead input[type="tel"] { min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2); background: var(--paper); font-size: 15px; color: var(--ink); border-radius: 0; }
.lead__msg { display: flex; gap: 8px; flex-wrap: wrap; }
.lead__msg label { flex: 0 0 auto; position: relative; }
.lead__msg input { position: absolute; opacity: 0; }
.lead__msg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--line-2); background: var(--paper); font-size: 13px; font-weight: 500; color: var(--ink); cursor: pointer; }
.lead__msg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.lead__msg input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.lead__trap { position: absolute; left: -9999px; }
.lead__note { min-height: 1.2em; font-size: 14px; }
.lead__note.is-err { color: #B3261E; }
.lead__note.is-ok { color: #1B6B2F; font-weight: 600; }
.lead__fine { font-size: 12px; color: var(--muted); }

/* внутренние страницы */
.page { padding: 56px var(--gutter) 88px; display: flex; flex-direction: column; gap: 24px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page__lead { font-size: 17px; color: var(--muted); max-width: 70ch; }
.page__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.section { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; scroll-margin-top: 16px; }
.section__note { font-size: 15px; color: var(--muted); max-width: 70ch; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line-2); background: var(--paper); text-decoration: none; transition: border-color .15s; }
.card:hover { border-color: var(--ink); }
.card__photo { position: relative; aspect-ratio: 4 / 3; background: var(--mist); display: flex; align-items: center; justify-content: center; color: #B9BBB5; overflow: hidden; }
.card__photo img { width: 100%; height: 100%; object-fit: cover; }
.card__ph { width: 120px; }
.card__badge { position: absolute; left: 12px; top: 12px; padding: 4px 10px; background: var(--orange); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.card__name { font-size: 17px; font-weight: 500; line-height: 1.3; }
.card__meta { font-size: 14px; color: var(--muted); }
.card__price { display: flex; align-items: baseline; gap: 10px; padding-top: 6px; }
.card__price strong { font-size: 22px; font-weight: 500; }
.card__price s { font-size: 14px; color: var(--muted); }

.house { display: flex; gap: 56px; align-items: flex-start; }
.gal { flex: 0 0 min(680px, 50%); min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.gal__main { position: relative; aspect-ratio: 17 / 12; background: var(--mist); display: flex; align-items: center; justify-content: center; color: #B9BBB5; overflow: hidden; touch-action: pan-y; }
.gal__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.gal__main img.is-swap { opacity: 0; }
.gal__ph { width: 220px; }
.gal__zoom { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal__nav, .gal__count { z-index: 1; }
.lb[hidden] { display: none; }
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(10, 12, 16, .94); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb__img { max-width: 94vw; max-height: 86vh; object-fit: contain; transition: opacity .2s; }
.lb__img.is-swap { opacity: 0; }
.lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; line-height: 1; transition: background .15s; }
.lb button:hover { background: rgba(255, 255, 255, .28); }
.lb__close { top: 16px; right: 16px; width: 52px; height: 52px; font-size: 32px; }
.lb__nav { top: 50%; transform: translateY(-50%); width: 56px; height: 72px; font-size: 40px; }
.lb__prev { left: 16px; }
.lb__next { right: 16px; }
.lb__count { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .1em; }
.gal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; background: rgba(31, 35, 45, .6); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; transition: background .15s; }
.gal__nav:hover { background: var(--ink); }
.gal__prev { left: 0; }
.gal__next { right: 0; }
.gal__count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; background: rgba(31, 35, 45, .7); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.gal__thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 5); gap: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.gal__thumbs button { display: block; width: 100%; padding: 0; border: 0; background: var(--mist); cursor: pointer; opacity: .65; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .15s; }
.gal__thumbs button:hover { opacity: 1; }
.gal__thumbs button[aria-current="true"] { opacity: 1; outline-color: var(--orange); }
.gal__thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.house__info { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.house__price { display: flex; align-items: baseline; gap: 14px; }
.house__price strong { font-size: 38px; font-weight: 400; }
.house__price s { color: var(--muted); }
.house__note { font-size: 14px; color: var(--muted); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 600; text-align: right; }
.panels { display: flex; gap: 56px; padding: 48px; background: var(--mist); margin-top: 24px; }
.panels > section { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.rows div { display: flex; justify-content: space-between; padding: 16px 20px; background: var(--paper); font-size: 16px; }
.ticks { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
.steps li { padding: 28px; background: var(--mist); display: flex; flex-direction: column; gap: 12px; }
.steps li:last-child { background: var(--paper); border: 1px solid var(--ink); }
.steps b { font-size: 20px; font-weight: 500; }
.steps p { font-size: 15px; color: var(--muted); }
.steps__tag { align-self: flex-start; padding: 4px 12px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.plus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.plus li { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
.plus b { color: var(--ink); font-size: 17px; font-weight: 500; }
.faqbox { display: flex; gap: 56px; padding: 56px 48px; background: var(--mist); margin-top: 32px; flex-wrap: wrap; }
.faqbox > div:first-child { flex: 0 0 320px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.faq { flex: 1 1 360px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--paper); padding: 20px 24px; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 17px; }
.faq details p { margin-top: 10px; font-size: 15px; color: var(--muted); }

.contacts { display: flex; gap: 48px; align-items: flex-start; flex-wrap: wrap; }
.contacts__list { flex: 1 1 360px; display: flex; flex-direction: column; gap: 12px; }
.contacts__list > div { padding: 18px 22px; background: var(--mist); display: flex; flex-direction: column; gap: 4px; }
.contacts__list span { font-size: 14px; color: var(--muted); }
.contacts__list a { font-size: 18px; font-weight: 600; text-decoration: none; }
.contacts__list a:hover { text-decoration: underline; }
.contacts__form { flex: 1 1 360px; display: flex; flex-direction: column; gap: 16px; }
.privacy { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; max-width: 80ch; font-size: 14px; color: var(--muted); scroll-margin-top: 16px; }

/* подвал */
.footer { background: #111; color: #fff; }
.footer__in { padding: 56px var(--gutter) 32px; display: flex; flex-direction: column; gap: 48px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.footer__brand { font-size: 26px; font-weight: 500; letter-spacing: .22em; display: block; margin-bottom: 10px; }
.footer p { font-size: 15px; color: #C9CBC6; max-width: 34ch; }
.footer__list { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer__list b { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #C9CBC6; font-weight: 600; }
.footer__list a { text-decoration: none; }
.footer__list a:hover { text-decoration: underline; }
.footer__list span { color: #C9CBC6; }
.footer__bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid #3A3B39; font-size: 13px; color: #C9CBC6; }

/* планшет и телефон */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .types__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header__nav, .header__cta { display: none; }
  .house { flex-direction: column; }
  .gal { flex-basis: auto; width: 100%; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .header__in { padding: 0 12px; gap: 12px; height: 68px; }
  .logo { font-size: 17px; letter-spacing: .16em; margin-left: 0; }
  .header__phone { font-size: 14px; }
  .hero { min-height: 640px; }
  .hero__in { padding-top: 28px; padding-bottom: 48px; }
  .hero__text { margin-top: 36px; gap: 20px; }
  .hero__media { display: none; }
  .hero .btn { width: 100%; }
  .types__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 20px var(--gutter); }
  .types .btn { min-height: 56px; padding: 8px 10px; font-size: 11px; letter-spacing: .08em; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card__body { padding: 12px; }
  .card__name { font-size: 15px; }
  .card__price strong { font-size: 18px; }
  .quiz__in { padding: 48px var(--gutter); }
  .quiz__panel { padding: 24px 16px; min-height: 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .tile { min-height: 88px; padding: 14px; }
  .quiz__q { font-size: 20px; }
  .result { gap: 32px; }
  .steps, .plus, .footer__cols { grid-template-columns: 1fr; }
  .panels { flex-direction: column; padding: 24px 16px; gap: 32px; }
  .faqbox { padding: 32px 16px; }
  .menu__top, .menu__group, .menu__links, .menu__contact, .menu__cta { padding-left: 24px; padding-right: 24px; }
  .house__price strong { font-size: 30px; }
  .gal__thumbs { grid-auto-columns: calc((100% - 20px) / 3.2); }
  .gal__nav { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu__panel { animation: none; }
}

/* постоянное боковое меню (компьютер) */
.side { display: none; }
.side__logo { display: flex; align-items: center; gap: 10px; height: 72px; flex-shrink: 0; padding: 0 28px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 16px; font-weight: 500; letter-spacing: .2em; }
.side__group { padding: 20px 16px 8px 28px; display: flex; flex-direction: column; }
.side__label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); padding-bottom: 8px; }
.side__group a { padding: 8px 8px 8px 12px; margin-left: -12px; border-left: 3px solid transparent; font-size: 14px; line-height: 1.35; text-decoration: none; }
.side__group a:hover { background: var(--mist); }
.side__group a[aria-current] { border-left-color: var(--orange); background: var(--mist); font-weight: 600; }
.menu__group a[aria-current] { color: var(--orange-text); font-weight: 600; }
@media (min-width: 1101px) {
  body { padding-left: 248px; }
  .side { display: flex; position: fixed; left: 0; top: 0; bottom: 0; width: 248px; flex-direction: column; background: var(--paper); border-right: 1px solid var(--line); overflow-y: auto; z-index: 25; padding-bottom: 24px; }
  .burger, .header__logo { display: none; }
  .header__in { padding: 0 32px; }
}

/* рейтинги — яркие, заметные */
.ratings { display: flex; flex-wrap: wrap; gap: 12px; }
.rating { display: inline-flex; align-items: center; gap: 14px; padding: 12px 22px; background: var(--orange-text); color: #fff; text-decoration: none; }
.rating b { font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: .02em; }
.rating span { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; }
.rating i { font-style: normal; font-size: 13px; letter-spacing: .12em; }
a.rating:hover { background: #B04A00; }
.hero__in .trust { margin-top: 16px; }

/* лендинг «Дом на миллион» и блок на главной */
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); }
.deal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.deal div { background: var(--paper); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.deal span { font-size: 12px; color: var(--muted); }
.deal b { font-size: 20px; font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 16px; padding: 32px; background: var(--mist); }
.facts div { display: flex; flex-direction: column; gap: 6px; }
.facts b { font-size: 26px; font-weight: 300; letter-spacing: .03em; }
.facts span { font-size: 14px; color: var(--muted); }
.plan { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.plan__img { min-height: 320px; background: var(--mist); display: flex; align-items: center; justify-content: center; }
.plan__img img { width: 100%; }
.plan__empty { color: var(--muted); font-size: 14px; }
.plan__text { display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.incl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.incl__col { padding: 28px; background: var(--mist); display: flex; flex-direction: column; gap: 14px; }
.incl__col--no { background: var(--paper); border: 1px solid var(--line-2); }
.pay { display: flex; gap: 4px; margin-top: 8px; }
.pay__seg { min-width: 0; padding: 18px 8px; background: var(--ink); color: #fff; text-align: center; font-size: 14px; }
.pay__seg b { font-weight: 600; }
.pay__seg--down { background: var(--orange-text); font-size: 18px; }
.pay__legend { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pay__dot { width: 12px; height: 12px; background: var(--orange-text); display: inline-block; }
.pay__dot--m { background: var(--ink); }
.faq--wide { max-width: 860px; }
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; padding: 48px; background: var(--mist); }
.cta > div { display: flex; flex-direction: column; gap: 14px; }
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 64px var(--gutter); background: var(--paper); }
.teaser__img { aspect-ratio: 17 / 12; background: var(--mist); display: flex; align-items: center; justify-content: center; color: #B9BBB5; overflow: hidden; }
.teaser__img img { width: 100%; height: 100%; object-fit: cover; }
.teaser__ph { width: 200px; }
.teaser__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.teaser__lead { font-size: 17px; color: var(--muted); max-width: 46ch; }
.teaser .deal { width: 100%; }
.menu__group a.is-featured, .side__group a.is-featured { font-weight: 600; color: var(--orange-text); }
@media (max-width: 1100px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan, .incl, .cta, .teaser { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .deal { grid-template-columns: 1fr; }
  .facts { padding: 20px 16px; gap: 20px; }
  .facts b { font-size: 22px; }
  .teaser { padding: 40px var(--gutter); gap: 28px; }
  .cta { padding: 28px 16px; gap: 24px; }
  .pay__seg { font-size: 11px; padding: 14px 2px; }
  .pay__seg--down { font-size: 13px; }
}

/* шаг «расстояние до участка» в калькуляторе */
.km { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.km__f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.km__f input { min-height: 52px; padding: 0 14px; border: 1px solid var(--line-2); font-size: 22px; font-weight: 500; color: var(--ink); background: var(--paper); border-radius: 0; width: 180px; }
.km__info { font-size: 14px; color: var(--muted); line-height: 1.5; }
