/* «Правильный Дом» — лендинг v3 (структура по этапам строительства).
   Палитра фиксирована бренд-платформой: графит / крем / охра.
   Охра — только главные CTA; расслоение поверхностей по impeccable П1. */

:root {
  --bg: #F5F1EA;
  --bg-alt: #ECE6DA;
  --surface: #FBF9F5;
  --ink: #1C1D1F;
  --ink-soft: #4A4B4E;
  --accent: #C68A4A;
  --accent-ink: #A06C33;
  --line: rgba(28, 29, 31, .12);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 29, 31, .10);
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Onest', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem var(--font-body);
  padding: 13px 28px; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: all .25s cubic-bezier(.22,.61,.24,1);
  white-space: nowrap;
}
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(198,138,74,.25); }
.btn--accent:hover { background: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(198,138,74,.3); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--ink-soft); }
.btn--ghost:hover { color: var(--ink); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--lg { padding: 16px 34px; font-size: 1.08rem; }
.btn--wide { width: 100%; }

/* ---------- Закреплённая шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 249, 245, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.topbar__logo img { width: 150px; height: auto; }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__phone { font: 600 1.05rem var(--font-mono); color: var(--ink); text-decoration: none; }
.topbar__phone:hover { color: var(--accent-ink); }

/* ---------- Герой ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__video { opacity: 0; transition: opacity 1.2s cubic-bezier(.22,.61,.24,1); }
.hero__video.is-playing { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(28,29,31,.75) 0%, rgba(28,29,31,.48) 42%, rgba(28,29,31,.12) 100%);
}
.hero__in { position: relative; z-index: 1; width: 100%; padding-top: 60px; padding-bottom: 60px; }
.hero__panel { max-width: 560px; color: #fff; }
.hero__promo {
  display: inline-block; font: 700 .9rem var(--font-mono);
  background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 100px;
  margin-bottom: 20px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 4px 14px rgba(198,138,74,.3);
}
.hero__sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); margin: 14px 0 18px; color: rgba(255,255,255,.92); }
.hero__facts { list-style: none; margin: 0 0 26px; display: grid; gap: 8px; }
.hero__facts li { padding-left: 26px; position: relative; color: rgba(255,255,255,.9); }
.hero__facts li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.hero__form { display: grid; gap: 10px; max-width: 420px; }
.hero__form input[type="text"], .hero__form input[type="tel"] {
  font: 500 1rem var(--font-body); padding: 13px 16px;
  border-radius: 10px; border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.14); color: #fff; outline: none;
}
.hero__form input::placeholder { color: rgba(255,255,255,.65); }
.hero__form input:focus { border-color: var(--accent); background: rgba(255,255,255,.2); }
.hp { position: absolute !important; left: -9999px !important; height: 0; opacity: 0; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: rgba(255,255,255,.75); cursor: pointer; }
.hero__done {
  font: 600 1.05rem var(--font-body); background: rgba(255,255,255,.95); color: var(--ink);
  border-radius: var(--radius); padding: 18px 22px; max-width: 420px;
}

/* ---------- Этапы ---------- */
.stage { padding: 88px 0; border-top: 1px solid var(--line); }
.stage:first-of-type { border-top: none; }
.stage--alt { background: var(--bg-alt); }
.stage__head { max-width: 700px; margin-bottom: 50px; }
.stage__head h2 { letter-spacing: -.01em; }
.stage__head p { color: var(--ink-soft); margin-top: 14px; font-size: 1.08rem; font-weight: 500; line-height: 1.6; }
.stage__num {
  display: inline-block; font: 700 .85rem var(--font-mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px; font-weight: 700;
}
.stage__row { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 44px; }
.stage__text { max-width: 640px; }
.stage__text p { color: var(--ink-soft); margin-top: 8px; }
.stage__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.stage__photo { border-radius: 20px; overflow: hidden; box-shadow: 0 16px 48px rgba(28,29,31,.15); transition: transform .35s cubic-bezier(.22,.61,.24,1); }
.stage__photo img { width: 100%; height: 100%; object-fit: cover; }
.stage__grid:hover .stage__photo { transform: scale(1.02); }
.stage__cards { display: grid; gap: 18px; }
.icard {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px;
  padding: 24px 24px; transition: all .25s cubic-bezier(.22,.61,.24,1);
}
.stage--alt .icard { background: #fff; }
.icard:hover { transform: translateY(-4px); border-color: rgba(198,138,74,.3); box-shadow: 0 8px 24px rgba(28,29,31,.1); }
.icard b { font-family: var(--font-head); font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.icard p { color: var(--ink-soft); margin-top: 8px; font-size: .96rem; line-height: 1.6; }

/* эскиз → рендер */
.morph { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 56px rgba(28,29,31,.18); max-width: 900px; margin: 0 auto; }
.morph__img img { width: 100%; display: block; }
.morph__img--sketch { position: absolute; inset: 0; opacity: 0; transition: opacity .8s cubic-bezier(.22,.61,.24,1); }
.morph__img--sketch img {
  filter: grayscale(1) brightness(1.4) contrast(1.6);
  mix-blend-mode: normal;
}
.morph:hover .morph__img--sketch { opacity: 0.15; }
.morph__label {
  position: absolute; bottom: 18px; font: 700 .8rem var(--font-mono);
  padding: 7px 14px; border-radius: 100px; background: rgba(28,29,31,.82); color: #fff;
  letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(12px);
}
.morph__label--a { left: 18px; }
.morph__label--b { right: 18px; }

/* персона */
.stage__grid--person { grid-template-columns: minmax(280px, 400px) 1fr; }
.person { background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; transition: all .28s cubic-bezier(.22,.61,.24,1); box-shadow: 0 4px 12px rgba(28,29,31,.06); }
.person:hover { transform: translateY(-6px); border-color: rgba(198,138,74,.25); box-shadow: 0 16px 40px rgba(28,29,31,.12); }
.person img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.person figcaption { padding: 22px 24px; }
.person b { font-family: var(--font-head); font-size: 1.2rem; display: block; font-weight: 700; color: var(--ink); }
.person span { color: var(--accent); font: 700 .85rem var(--font-mono); display: block; margin: 6px 0 10px; letter-spacing: .04em; }
.person p { color: var(--ink-soft); font-size: .96rem; line-height: 1.6; font-weight: 500; }
.geo { margin-top: 36px; font-size: .82rem; color: var(--ink-soft); letter-spacing: .01em; }

/* ---------- Карусель типовых проектов ---------- */
.pcar { position: relative; padding: 0 48px; max-width: 1280px; margin: 0 auto; }
.pcar__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px 4px 20px; scrollbar-width: none;
}
.pcar__track::-webkit-scrollbar { display: none; }
.pcard {
  flex: 0 0 320px; scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.pcard--featured { border-color: var(--accent); box-shadow: 0 8px 26px rgba(198,138,74,.22); }
.pcard picture img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pcard__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard__tag {
  align-self: flex-start; font: 600 .75rem var(--font-mono); text-transform: uppercase;
  letter-spacing: .06em; background: var(--accent); color: #fff; padding: 4px 10px; border-radius: 999px;
}
.pcard__stats { display: flex; gap: 10px; flex-wrap: wrap; }
.pcard__stats span {
  font: 500 .82rem var(--font-mono); background: var(--bg); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 8px; color: var(--ink-soft);
}
.pcard__price { font-family: var(--font-head); font-size: 1.3rem; margin-top: auto; }
.pcar__btn {
  position: absolute; top: 42%; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; font-size: 1.4rem; cursor: pointer;
  box-shadow: var(--shadow); transition: all .2s;
}
.pcar__btn:hover { background: var(--accent); color: #fff; }
.pcar__btn--prev { left: 4px; }
.pcar__btn--next { right: 4px; }

.magnet {
  margin-top: 40px; background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 30px 34px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.magnet b { font-family: var(--font-head); font-size: 1.25rem; }
.magnet p { color: rgba(255,255,255,.75); margin-top: 6px; }

/* ---------- Ручная бесконечная галерея ---------- */
.gallery { padding: 84px 0 70px; }
.gallery__head { margin-bottom: 32px; }
.gallery__head p { color: var(--ink-soft); margin-top: 8px; }
.gcar { overflow: hidden; cursor: grab; touch-action: pan-y; }
.gcar.is-dragging { cursor: grabbing; }
.gcar__track { display: flex; gap: 14px; will-change: transform; width: max-content; }
.gcar__track picture { flex: 0 0 auto; }
.gcar__track img {
  height: 300px; width: auto; border-radius: 12px; object-fit: cover;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
@media (max-width: 640px) { .gcar__track img { height: 200px; } }

/* ---------- Отзывы ---------- */
.reviews { padding: 84px 0; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.reviews h2 { margin-bottom: 8px; }
.reviews > .container::after { content: 'Реальные отзывы с Яндекса. Прокрутите, чтобы увидеть больше →'; display: block; color: var(--ink-soft); font-size: .95rem; margin-bottom: 28px; font-weight: 500; letter-spacing: .01em; }
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin: 32px 0; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.85); padding: 56px 0 90px; }
.footer__in { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 36px; }
.footer__brand img { width: 170px; filter: brightness(0) invert(1); opacity: .9; }
.footer__brand p { margin-top: 14px; font-size: .92rem; color: rgba(255,255,255,.6); }
.footer__col b { font-family: var(--font-head); display: block; margin-bottom: 12px; color: #fff; }
.footer__col a, .footer__link {
  display: block; color: rgba(255,255,255,.75); text-decoration: none; margin-bottom: 8px;
  background: none; border: none; font: 400 .95rem var(--font-body); cursor: pointer; padding: 0; text-align: left;
}
.footer__col a:hover, .footer__link:hover { color: var(--accent); }
.footer__legal p { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 10px; }
.footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(255,255,255,.45); }

/* ---------- Стеклянная кнопка «Позвонить» ---------- */
.callbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 55;
  display: none; align-items: center; gap: 10px;
  font: 600 1.05rem var(--font-body); color: var(--ink); text-decoration: none;
  padding: 14px 30px; border-radius: 999px;
  background: rgba(251, 249, 245, .55);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 8px 28px rgba(28,29,31,.25);
}
.callbar__icon { color: var(--accent-ink); font-size: 1.2rem; }
@media (max-width: 860px) { .callbar { display: inline-flex; } }

/* ---------- Квиз ---------- */
.quiz { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; }
.quiz[hidden] { display: none; }
.quiz__overlay { position: absolute; inset: 0; background: rgba(28,29,31,.6); backdrop-filter: blur(4px); }
.quiz__modal {
  position: relative; background: var(--surface); border-radius: var(--radius);
  width: min(520px, calc(100vw - 32px)); padding: 34px 30px 24px; box-shadow: var(--shadow);
  max-height: 90vh; overflow-y: auto;
}
.quiz__close {
  position: absolute; top: 10px; right: 14px; background: none; border: none;
  font-size: 1.8rem; cursor: pointer; color: var(--ink-soft); line-height: 1;
}
.quiz__progress { height: 4px; background: var(--line); border-radius: 2px; margin-bottom: 22px; overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s ease; border-radius: 2px; }
.quiz h3 { margin-bottom: 18px; }
.quiz__opts { display: grid; gap: 10px; }
.quiz__opts button {
  text-align: left; font: 500 1rem var(--font-body); padding: 14px 18px;
  border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  transition: all .18s ease;
}
.quiz__opts button:hover { border-color: var(--accent); background: rgba(198,138,74,.07); }
.quiz__fields { display: grid; gap: 12px; }
.quiz__fields input[type="text"], .quiz__fields input[type="tel"] {
  font: 500 1rem var(--font-body); padding: 13px 16px; border-radius: 10px;
  border: 1.5px solid var(--line); outline: none; background: #fff;
}
.quiz__fields input:focus { border-color: var(--accent); }
.quiz__fields .agree { color: var(--ink-soft); }
.quiz__done { text-align: center; padding: 22px 0 10px; }
.quiz__done-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 1.6rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.quiz__done p { color: var(--ink-soft); margin-top: 8px; }
.quiz__nav { margin-top: 18px; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .stage__grid, .stage__grid--person { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr; gap: 28px; }
  .topbar__phone { display: none; }
  .stage { padding: 60px 0; }
}
@media (max-width: 560px) {
  .pcar { padding: 0 10px; }
  .pcar__btn { display: none; }
  .pcard { flex-basis: 82vw; }
  .magnet { padding: 24px 22px; }
  .hero { min-height: 88vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* --- Карточки отзывов (реальные, Яндекс) --- */
.reviews__grid { align-items: stretch; }
.review { background: #fff; border: 1px solid rgba(28,29,31,.08); border-radius: 18px; padding: 26px 26px 22px; display: flex; flex-direction: column; transition: all .28s cubic-bezier(.22,.61,.24,1); box-shadow: 0 2px 8px rgba(28,29,31,.04); }
.review:hover { transform: translateY(-6px); border-color: rgba(198,138,74,.25); box-shadow: 0 12px 32px rgba(28,29,31,.1); }
.review__head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.review__ava { width: 52px; height: 52px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #E8B778 0%, #D4A574 100%); color: #fff; font: 700 1.25rem/52px var(--font-head); text-align: center; box-shadow: 0 4px 12px rgba(232,183,120,.25); }
.review__id { min-width: 0; }
.review__name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.review__meta { display: block; color: var(--ink-soft); font-size: .82rem; margin-top: 3px; }
.review__stars { color: #FFB400; letter-spacing: 2px; font-size: 1.1rem; margin-bottom: 12px; }
.review__text { color: var(--ink-soft); font-size: .95rem; line-height: 1.65; flex: 1 1 auto; }
.review__date { color: var(--ink-soft); opacity: .6; font-size: .8rem; margin-top: 16px; font-weight: 500; }

/* --- Витрина хитов продаж (Этап 4): иммерсивный слайдер Pinterest-механика --- */
.shw { max-width: 1280px; margin: 44px auto 0; padding: 0 20px; }
.shw__viewport { overflow: hidden; border-radius: 28px; background: linear-gradient(135deg, #1C1812 0%, #2D241A 35%, #3F3020 75%, #4A3A2A 100%); box-shadow: 0 32px 80px rgba(28,29,31,.35), inset 0 1px 0 rgba(255,255,255,.08); }
.shw__track { display: flex; transition: transform .6s cubic-bezier(.16,.87,.28,1); }
.shw__slide { flex: 0 0 100%; display: grid; grid-template-columns: 1.08fr 1.1fr .82fr; gap: 48px; align-items: center; padding: 60px 64px; color: #F5F1EA; position: relative; overflow: hidden; }
.shw__slide::before { content: ''; position: absolute; inset: -50%; background: radial-gradient(circle at 70% 30%, rgba(232,183,120,.08) 0%, transparent 50%); pointer-events: none; }
.shw__slide > * { position: relative; z-index: 1; }
.shw__tag { display: inline-block; align-self: flex-start; font: 700 .8rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #FFD89D; background: rgba(232,183,120,.18); border: 1.5px solid rgba(232,183,120,.6); border-radius: 100px; padding: 7px 16px; margin-bottom: 20px; }
.shw__info { display: flex; flex-direction: column; align-items: flex-start; }
.shw__name { font-family: var(--font-head); font-size: clamp(2.2rem, 4.2vw, 3.4rem); line-height: 1.08; letter-spacing: -.01em; font-weight: 700; }
.shw__code { font: 600 .8rem var(--font-mono); color: rgba(245,241,234,.48); margin: 12px 0 18px; letter-spacing: .06em; }
.shw__lead { color: rgba(245,241,234,.85); font-size: 1.02rem; line-height: 1.65; margin-bottom: 28px; max-width: 42ch; font-weight: 500; }
.shw__photo { border-radius: 20px; overflow: hidden; box-shadow: 0 28px 64px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.12); transform: translateY(0) scale(1); transition: transform .5s cubic-bezier(.22,.61,.24,1); }
.shw__slide:hover .shw__photo { transform: translateY(-10px) scale(1.01); }
.shw__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.shw__facts { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.shw__big { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.1rem, 3.8vw, 3rem); color: #FFD89D; line-height: 1.1; letter-spacing: -.02em; }
.shw__biglabel { color: rgba(245,241,234,.55); font-size: .88rem; margin: 8px 0 24px; font-weight: 600; letter-spacing: .04em; }
.shw__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.shw__chip { background: rgba(245,241,234,.1); border: 1.5px solid rgba(232,183,120,.35); color: #F5F1EA; border-radius: 100px; padding: 8px 16px; font-size: .88rem; white-space: nowrap; font-weight: 500; transition: all .2s ease; }
.shw__chip:hover { background: rgba(232,183,120,.15); border-color: rgba(232,183,120,.65); }
.btn--light { background: #F5F1EA; color: #1C1D1F; font-weight: 700; }
.btn--light:hover { background: #FFD89D; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(232,183,120,.28); }
.shw__nav { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.shw__arrows { display: flex; align-items: center; gap: 16px; }
.shw__btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(28,29,31,.25); background: var(--surface); font-size: 1.4rem; cursor: pointer; transition: all .25s cubic-bezier(.22,.61,.24,1); font-weight: 700; }
.shw__btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: scale(1.08); box-shadow: 0 8px 20px rgba(198,138,74,.32); }
.shw__dots { display: flex; gap: 10px; margin-left: 8px; }
.shw__dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(28,29,31,.25); cursor: pointer; padding: 0; transition: all .3s cubic-bezier(.22,.61,.24,1); }
.shw__dot.is-active { background: var(--accent); transform: scale(1.35); box-shadow: 0 0 0 6px rgba(198,138,74,.15); }
.shw__dot:hover { background: rgba(28,29,31,.45); }
.shw__next-preview { display: flex; align-items: center; gap: 14px; border: 1.5px solid rgba(28,29,31,.2); background: var(--surface); border-radius: 100px; padding: 8px 20px 8px 8px; cursor: pointer; font: 600 .95rem var(--font-body); color: var(--ink); transition: all .25s cubic-bezier(.22,.61,.24,1); }
.shw__next-preview:hover { border-color: var(--accent); background: rgba(198,138,74,.08); box-shadow: 0 6px 18px rgba(28,29,31,.15); }
.shw__next-preview img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(198,138,74,.2); }
.shw__next-preview b { color: var(--ink); font-weight: 700; }

/* --- Полиш: карточки и ховеры по сайту --- */
.icard, .review { transition: transform .25s ease, box-shadow .25s ease; }
.icard:hover, .review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .shw { padding: 0 12px; }
  .shw__slide { grid-template-columns: 1fr; gap: 22px; padding: 26px 22px 30px; }
  .shw__photo { order: -1; }
  .shw__photo img { aspect-ratio: 4 / 3; }
  .shw__lead { font-size: .95rem; }
  .shw__next-preview span { display: none; }
  .shw__next-preview { padding: 4px; border-radius: 50%; }
}

/* hidden должен работать и для .btn (display:inline-flex перебивал UA-стиль) */
[hidden] { display: none !important; }

/* Редакционный арт-дирекшен: журнал + архитектурный скролл */
:root { --bg:#f0ece3; --bg-alt:#dfd8cc; --surface:#f8f5ef; --ink:#181915; --ink-soft:#5d5c56; --accent:#b9793f; --accent-ink:#8d5628; --night:#171814; }
body { overflow-x:clip; }
section { contain-intrinsic-size:900px; }
.topbar { position:fixed; left:18px; right:18px; top:14px; border:1px solid rgba(255,255,255,.38); border-radius:16px; background:rgba(244,240,232,.78); box-shadow:0 8px 30px rgba(17,18,15,.12); }
.topbar__in { min-height:62px; }
.topbar__logo img { width:142px; }
.hero { min-height:100svh; align-items:flex-end; background:var(--night); }
.hero__media::after { content:''; position:absolute; inset:0; pointer-events:none; background:linear-gradient(180deg,rgba(0,0,0,.06),rgba(0,0,0,.2) 52%,rgba(0,0,0,.7)); }
.hero__media img,.hero__video { object-position:center 55%; transform:scale(1.01); }
.hero__shade { background:linear-gradient(90deg,rgba(13,14,12,.74),rgba(13,14,12,.38) 43%,rgba(13,14,12,.03) 72%),linear-gradient(0deg,rgba(13,14,12,.66),transparent 42%); }
.hero__in { padding-top:132px; padding-bottom:48px; display:flex; align-items:flex-end; justify-content:space-between; gap:40px; }
.hero__panel { width:min(665px,100%); max-width:none; padding:34px 38px 32px; background:linear-gradient(135deg,rgba(13,14,12,.75),rgba(13,14,12,.32)); border:1px solid rgba(255,255,255,.22); border-radius:2px 32px 2px 2px; backdrop-filter:blur(9px); box-shadow:0 28px 90px rgba(0,0,0,.22); }
.hero__promo { margin-bottom:12px; border-radius:2px; box-shadow:none; }
.hero__edition { display:inline-block; margin-left:10px; color:rgba(255,255,255,.68); font:600 .76rem var(--font-mono); letter-spacing:.1em; text-transform:uppercase; }
.hero h1 { font-size:clamp(3rem,6.4vw,6rem); line-height:.94; letter-spacing:-.035em; max-width:9ch; text-transform:uppercase; }
.hero__sub { max-width:38ch; font-size:clamp(1rem,1.7vw,1.32rem); }
.hero__facts { grid-template-columns:repeat(3,1fr); gap:12px; margin-top:22px; }
.hero__facts li { padding:12px 0 0; border-top:1px solid rgba(255,255,255,.35); font-size:.82rem; line-height:1.35; }
.hero__facts li::before { display:none; }
.hero__form { grid-template-columns:1fr 1fr; max-width:none; }
.hero__form .btn,.hero__form .agree { grid-column:1/-1; }
.hero__form input[type="text"],.hero__form input[type="tel"],.hero__form .btn { border-radius:2px; }
.hero__scroll { color:rgba(255,255,255,.72); font:600 .72rem var(--font-mono); text-transform:uppercase; letter-spacing:.12em; writing-mode:vertical-rl; display:flex; align-items:center; gap:12px; }
.hero__scroll span { width:1px; height:70px; background:linear-gradient(#fff,transparent); }
.stage { position:relative; padding:126px 0; overflow:clip; }
.stage::after { position:absolute; right:-18px; top:32px; font:600 clamp(6rem,16vw,13rem)/1 var(--font-head); color:rgba(24,25,21,.045); pointer-events:none; }
.stage--design::after{content:'01'}.stage--finance::after{content:'02'}.stage--build::after{content:'03'}.stage--ready::after{content:'04'}
.stage__head h2 { font-size:clamp(2.2rem,4.7vw,4.6rem); line-height:.98; letter-spacing:-.025em; }
.stage__num { padding-bottom:10px; border-bottom:2px solid var(--accent); }
.morph { border-radius:2px 30px 2px 2px; max-width:none; isolation:isolate; }
.morph::after { content:''; position:absolute; inset:0 50% 0 0; z-index:3; pointer-events:none; background:repeating-linear-gradient(0deg,rgba(20,22,20,.06) 0 1px,transparent 1px 24px),repeating-linear-gradient(90deg,rgba(20,22,20,.05) 0 1px,transparent 1px 24px); mix-blend-mode:multiply; }
.morph__img img { aspect-ratio:16/10; object-fit:cover; }
.morph__img--sketch { opacity:.98; clip-path:inset(0 50% 0 0); z-index:2; }
.morph__img--sketch img { filter:grayscale(1) contrast(1.85) brightness(1.38); mix-blend-mode:screen; }
.morph__label { z-index:5; border-radius:2px; }
.stage__photo,.person,.icard { border-radius:2px 22px 2px 2px; }
.stage__photo,.stage__photo img { min-height:510px; }
.person--yakovlev { background:radial-gradient(circle at 48% 25%,#b87840 0%,#4a3322 54%,#1b1b17 100%); border:0; overflow:visible; box-shadow:0 28px 58px rgba(29,24,18,.22); }
.person--yakovlev img { aspect-ratio:auto; height:520px; object-fit:contain; object-position:center bottom; margin-top:-36px; }
.person--yakovlev figcaption { background:var(--surface); border-radius:0 20px 2px 2px; }
.gallery { background:#23241f; color:#f4f0e7; padding-top:112px; }
.gallery__head p { color:rgba(255,255,255,.6); }
.gcar__track { gap:22px; }
.gcar__track img { height:380px; border-radius:2px 20px 2px 2px; filter:saturate(.84); }
.reviews { background:#171814; color:#f4f0e7; padding:118px 0; }
.reviews h2 { max-width:11ch; font-size:clamp(2.6rem,5vw,5rem); line-height:.95; }
.reviews>.container::after { color:rgba(255,255,255,.52); }
.reviews__grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; max-height:850px; overflow:auto; padding-right:8px; scrollbar-color:var(--accent) transparent; }
.review { color:#f4f0e7; background:#23241f; border-color:rgba(255,255,255,.1); border-radius:2px 22px 2px 2px; box-shadow:none; }
.review--featured { grid-column:span 2; grid-row:span 2; min-height:420px; padding:clamp(30px,4vw,58px); background:linear-gradient(145deg,#714725,#2b251d 64%,#20211d); }
.review--featured .review__text { font-size:clamp(1.12rem,1.8vw,1.55rem); line-height:1.55; }
.review__name { color:#fff; }
.review__meta,.review__text,.review__date { color:rgba(255,255,255,.65); }
.review:hover { border-color:rgba(185,121,63,.65); box-shadow:0 18px 46px rgba(0,0,0,.3); }
.shw__viewport,.magnet,.btn { border-radius:2px 22px 2px 2px; }
@media (min-width:961px) {
 .stage--design>.container,.stage--finance>.container,.stage--build>.container { display:grid; grid-template-columns:minmax(250px,.7fr) minmax(0,1.65fr); column-gap:clamp(48px,7vw,110px); align-items:start; }
 .stage--design .stage__head,.stage--finance .stage__head,.stage--build .stage__head { grid-column:1; position:sticky; top:116px; margin:0; z-index:2; }
 .stage--design .morph,.stage--design .stage__grid,.stage--finance .stage__grid,.stage--build .stage__grid,.stage--build .geo { grid-column:2; }
 .stage--design .stage__grid { margin-top:58px; }
}
@media (max-width:960px) {
 .topbar{left:8px;right:8px;top:8px}.hero__in{padding-top:108px}.hero__panel{padding:28px 24px}.hero__scroll{display:none}.stage{padding:82px 0}.reviews__grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px) {
 .hero{min-height:100svh}.hero__media img,.hero__video{object-position:62% center}.hero__edition{display:block;margin:0 0 12px}.hero h1{font-size:clamp(2.6rem,15vw,4.4rem)}.hero__facts{grid-template-columns:1fr}.hero__form{grid-template-columns:1fr}.hero__form .btn,.hero__form .agree{grid-column:auto}.stage__photo,.stage__photo img{min-height:340px}.person--yakovlev img{height:430px}.gcar__track img{height:260px}.reviews__grid{display:flex;overflow-x:auto;max-height:none;scroll-snap-type:x mandatory}.review,.review--featured{flex:0 0 86vw;min-height:360px;scroll-snap-align:start}
}

/* Pinterest pass: изображение и текст работают как единая архитектурная композиция */
.hero__media > picture,.hero__video { z-index:0; }
.hero__shade { z-index:2; }
.hero__word {
  position:absolute; z-index:1; left:50%; top:15%; transform:translateX(-50%);
  width:min(1440px,94vw); color:rgba(255,255,255,.42); mix-blend-mode:soft-light;
  font:600 clamp(7rem,18.5vw,18rem)/.78 var(--font-head); letter-spacing:-.065em;
  text-transform:uppercase; text-align:center; white-space:nowrap; pointer-events:none;
}
.hero__in { z-index:3; }
.hero__panel { width:min(620px,100%); }
.hero__rail {
  width:280px; align-self:flex-end; margin-left:auto; color:#fff; display:grid;
  grid-template-columns:1fr 1fr; gap:8px; padding:10px; border:1px solid rgba(255,255,255,.32);
  background:rgba(21,22,19,.34); backdrop-filter:blur(12px); box-shadow:0 24px 70px rgba(0,0,0,.24);
}
.hero__rail-copy { grid-column:1/-1; display:grid; gap:4px; padding:5px 4px 7px; }
.hero__rail-copy span { font:600 .64rem var(--font-mono); letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.6); }
.hero__rail-copy b { font:500 1rem/1.25 var(--font-body); }
.hero__rail picture { overflow:hidden; min-height:108px; }
.hero__rail img { width:100%; height:100%; object-fit:cover; transition:transform .5s cubic-bezier(.22,.61,.24,1); }
.hero__rail picture:hover img { transform:scale(1.06); }
.hero__rail dl { grid-column:1/-1; display:grid; grid-template-columns:repeat(3,1fr); margin:4px 0 0; border-top:1px solid rgba(255,255,255,.24); }
.hero__rail dl div { padding:11px 6px 3px; border-right:1px solid rgba(255,255,255,.2); }
.hero__rail dl div:last-child { border:0; }
.hero__rail dt { font:600 .88rem var(--font-head); }
.hero__rail dd { margin-top:2px; font:.58rem var(--font-mono); text-transform:uppercase; letter-spacing:.07em; color:rgba(255,255,255,.55); }

.storyrail { position:sticky; top:92px; z-index:12; background:rgba(240,236,227,.93); border-bottom:1px solid rgba(24,25,21,.12); backdrop-filter:blur(14px); }
.storyrail__in { min-height:68px; display:grid; grid-template-columns:1.5fr repeat(4,1fr); align-items:center; gap:0; }
.storyrail__title { font:600 .72rem var(--font-mono); letter-spacing:.12em; text-transform:uppercase; color:var(--ink-soft); }
.storyrail a { position:relative; min-height:68px; display:flex; align-items:center; gap:9px; padding:0 14px; color:var(--ink-soft); border-left:1px solid rgba(24,25,21,.1); font-weight:600; transition:color .2s,background .2s; }
.storyrail a i { font:500 .62rem var(--font-mono); color:var(--accent-ink); font-style:normal; }
.storyrail a::after { content:''; position:absolute; left:0; right:100%; bottom:-1px; height:2px; background:var(--accent); transition:right .35s; }
.storyrail a:hover,.storyrail a.is-active { color:var(--ink); background:rgba(255,255,255,.28); }
.storyrail a:hover::after,.storyrail a.is-active::after { right:0; }

.morph { min-height:min(72vh,720px); background:#d8d3c9; }
.morph__img,.morph__img img { height:100%; }
.morph__img img { min-height:min(72vh,720px); }
.morph__img--sketch { opacity:.98; clip-path:inset(0 42% 0 0); }
.morph::after { inset:0 auto 0 0; width:var(--sketch-width,58%); }
.morph__divider { position:absolute; z-index:6; left:58%; top:0; bottom:0; width:1px; background:rgba(255,255,255,.82); box-shadow:0 0 18px rgba(0,0,0,.24); }
.morph__divider i { position:absolute; left:50%; top:50%; width:38px; height:38px; transform:translate(-50%,-50%); border-radius:50%; background:var(--surface); border:1px solid rgba(24,25,21,.18); }
.morph__divider i::before,.morph__divider i::after { content:''; position:absolute; top:13px; width:8px; height:8px; border-top:1px solid var(--ink); border-left:1px solid var(--ink); }
.morph__divider i::before { left:10px; transform:rotate(-45deg); }
.morph__divider i::after { right:10px; transform:rotate(135deg); }
.morph__copy { position:absolute; z-index:7; left:clamp(22px,4vw,58px); bottom:clamp(72px,8vw,104px); color:#fff; text-shadow:0 2px 18px rgba(0,0,0,.45); }
.morph__copy span { display:block; margin-bottom:8px; font:600 .68rem var(--font-mono); letter-spacing:.16em; text-transform:uppercase; }
.morph__copy b { display:block; max-width:8ch; font:600 clamp(2.2rem,5vw,5rem)/.9 var(--font-head); text-transform:uppercase; letter-spacing:-.03em; }
.morph__notes { position:absolute; z-index:7; right:20px; bottom:20px; display:flex; gap:4px; margin:0; padding:0; list-style:none; }
.morph__notes li { min-width:114px; padding:11px 13px; color:#fff; border:1px solid rgba(255,255,255,.32); background:rgba(16,17,15,.38); backdrop-filter:blur(8px); font-size:.72rem; }
.morph__notes i { display:block; margin-bottom:4px; font:.58rem var(--font-mono); color:rgba(255,255,255,.6); font-style:normal; }

@media (min-width:961px) {
 .stage--finance .stage__grid { grid-template-columns:minmax(0,1.35fr) minmax(330px,.9fr); align-items:center; }
 .stage--finance .stage__cards { position:relative; z-index:2; margin-left:-88px; padding:24px; background:rgba(248,245,239,.94); box-shadow:0 28px 70px rgba(28,29,31,.16); backdrop-filter:blur(12px); }
 .stage--build .stage__grid { align-items:center; }
 .stage--build .stage__cards { position:relative; z-index:2; margin-left:-42px; padding:26px; background:var(--surface); box-shadow:0 24px 64px rgba(28,29,31,.13); }
}
@media (max-width:1100px) {
 .hero__rail { display:none; }
}
@media (max-width:960px) {
 .storyrail { top:82px; }
 .storyrail__in { grid-template-columns:repeat(4,1fr); min-height:54px; }
 .storyrail__title { display:none; }
 .storyrail a { min-height:54px; justify-content:center; padding:0 5px; font-size:.76rem; }
 .morph { min-height:560px; }
 .morph__img img { min-height:560px; }
}
@media (max-width:640px) {
 .hero__word { top:19%; font-size:31vw; opacity:.72; }
 .hero__panel { padding:22px 18px 20px; border-radius:2px 20px 2px 2px; }
 .hero__promo { font-size:.7rem; }
 .hero h1 { max-width:10ch; }
 .storyrail a { flex-direction:column; gap:2px; font-size:.64rem; }
 .morph,.morph__img img { min-height:520px; }
 .morph__img img { object-position:62% center; }
 .morph__copy { bottom:86px; }
 .morph__copy b { font-size:2.45rem; }
 .morph__notes { left:12px; right:12px; bottom:12px; }
 .morph__notes li { min-width:0; flex:1; padding:8px; font-size:.61rem; }
}
