*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0c0c0e;
  --fg: #f4f1ec;
  --accent: #c9a877;
  --font: 'Manrope', system-ui, sans-serif;
}

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Загрузчик ---------- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .8s ease, visibility .8s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; width: min(320px, 70vw); }
.loader__brand {
  font-weight: 700;
  letter-spacing: .35em;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 22px;
}
.loader__bar {
  height: 2px;
  width: 100%;
  background: rgba(255,255,255,.12);
  border-radius: 2px;
  overflow: hidden;
}
.loader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width .2s ease;
}
.loader__pct {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(244,241,236,.55);
}

/* ---------- Навигация ---------- */
.nav {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 9px 9px 9px 26px;
  border-radius: 999px;
  background: rgba(18, 18, 22, 0.5);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  max-width: calc(100vw - 32px);
}
.nav__logo {
  font-weight: 800;
  letter-spacing: .2em;
  font-size: 16px;
  color: var(--fg);
  text-decoration: none;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav__menu a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(244, 241, 236, 0.78);
  text-decoration: none;
  transition: color .2s ease;
  white-space: nowrap;
}
.nav__menu a:hover { color: var(--fg); }
.nav__cta {
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #16130d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.nav__cta:hover { background: #d8bb8c; transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav { gap: 16px; padding: 8px 8px 8px 20px; }
  .nav__menu { display: none; }
}

/* ---------- Сцена ---------- */
#stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
#frameCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.stage__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, transparent 25%, transparent 65%, rgba(0,0,0,.55) 100%);
}

/* Спейсер задаёт высоту прокрутки — значение проставит JS */
#spacer { width: 100%; }

/* ---------- Оверлеи ---------- */
.overlays { position: absolute; inset: 0; pointer-events: none; }
.ov {
  position: absolute;
  opacity: 0;
  will-change: opacity, transform;
  padding: 0 6vw;
  max-width: 640px;
}
.ov--center {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 820px;
}
.ov--left  { left: 6vw;  top: 50%; transform: translateY(-50%); text-align: left; }
.ov--right { right: 6vw; left: auto; top: 50%; transform: translateY(-50%); text-align: right; }

.ov__kicker {
  font-size: 13px;
  letter-spacing: .28em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 26px;
}
.ov__title {
  font-size: clamp(38px, 7vw, 92px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-shadow: 0 4px 40px rgba(0,0,0,.5);
}
.ov__title--sm { font-size: clamp(34px, 6vw, 76px); }
.ov__sub {
  margin: 26px auto 0;
  font-size: clamp(16px, 1.7vw, 21px);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(244,241,236,.82);
  max-width: 560px;
}
.ov__num {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 20px;
}
.ov__h {
  font-size: clamp(30px, 4.6vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-shadow: 0 4px 40px rgba(0,0,0,.55);
}
.ov__p {
  margin-top: 22px;
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1.55;
  color: rgba(244,241,236,.8);
  max-width: 460px;
}
.ov--right .ov__p { margin-left: auto; }
.ov__hs {
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.ov--card {
  max-width: 420px;
  padding: 30px 32px;
  border-radius: 22px;
  background: rgba(16, 16, 20, 0.42);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  text-align: left;
}
.ov--card .ov__num { color: var(--accent); }
.ov--card .ov__p { margin-left: 0; }
.ov__cta {
  pointer-events: auto;
  display: inline-block;
  margin-top: 34px;
  padding: 17px 42px;
  background: var(--accent);
  color: #16130d;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .02em;
  text-decoration: none;
  border-radius: 40px;
  transition: transform .25s ease, background .25s ease;
}
.ov__cta:hover { transform: translateY(-2px); background: #d8bb8c; }

/* ---------- Индикатор скролла ---------- */
.scroll-hint {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .25em;
  color: rgba(244,241,236,.6);
  transition: opacity .5s ease;
}
.scroll-hint.hidden { opacity: 0; }
.scroll-hint__line {
  width: 1px; height: 42px;
  background: linear-gradient(rgba(244,241,236,.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(.4); opacity: .4; }
  50%      { transform: scaleY(1);  opacity: 1; }
}

/* ---------- Прогресс ---------- */
.progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 5;
}

@media (max-width: 720px) {
  .ov--left, .ov--right { max-width: 88vw; }
  .ov__p { max-width: 88vw; }
}

/* ================= КОНТЕНТ ПОСЛЕ ВИДЕО ================= */
.content {
  position: relative;
  z-index: 2;               /* выше фиксированного видео (#stage z-index:1) */
  background: var(--bg);
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}
.section {
  padding: clamp(80px, 11vw, 160px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.section--alt { background: #101013; }
#projects { border-top: none; box-shadow: 0 -40px 80px rgba(0,0,0,.5); }

.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.section__title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.section__lead {
  margin-top: 24px;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.55;
  color: rgba(244, 241, 236, 0.72);
  max-width: 560px;
}

/* ---- Проекты ---- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.5vw, 32px);
}
.project {
  border-radius: 20px;
  overflow: hidden;
  background: #16161a;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.project__img { aspect-ratio: 16 / 10; overflow: hidden; }
.project__img img {
  width: 100%; height: calc(100% / 0.93);
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .6s ease;
}
.project:hover .project__img img { transform: scale(1.05); }
.project__body { padding: 22px 26px 26px; }
.project__body h3 { font-size: 22px; font-weight: 700; }
.project__body p { margin-top: 8px; font-size: 15px; color: rgba(244,241,236,.6); }

/* ---- Производство ---- */
.prod__text { max-width: 720px; }
.checklist {
  list-style: none;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 40px;
}
.checklist li {
  position: relative;
  padding-left: 34px;
  font-size: 17px;
  line-height: 1.4;
  color: rgba(244, 241, 236, 0.85);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/78% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/78% no-repeat;
}
/* ---- Шаги для застройщиков ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.step {
  padding: 30px 26px;
  border-radius: 18px;
  background: #16161a;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.step__n {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--accent);
}
.step h3 { margin-top: 18px; font-size: 20px; font-weight: 700; }
.step p { margin-top: 12px; font-size: 15px; line-height: 1.5; color: rgba(244,241,236,.65); }

/* ---- Контакты ---- */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.contacts__list { list-style: none; margin-top: 40px; display: grid; gap: 22px; }
.contacts__list li { display: grid; gap: 6px; }
.contacts__list span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(244,241,236,.5); }
.contacts__list a { font-size: 20px; font-weight: 600; color: var(--fg); text-decoration: none; transition: color .2s; }
.contacts__list a:hover { color: var(--accent); }

.contacts__form { display: grid; gap: 18px; }
.contacts__form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: rgba(244,241,236,.7);
}
.contacts__form input,
.contacts__form textarea {
  width: 100%;
  padding: 15px 18px;
  background: #16161a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--fg);
  font-family: inherit;
  font-size: 16px;
  resize: vertical;
  transition: border-color .2s;
}
.contacts__form input:focus,
.contacts__form textarea:focus { outline: none; border-color: var(--accent); }
.contacts__form input::placeholder,
.contacts__form textarea::placeholder { color: rgba(244,241,236,.35); }
.contacts__form button {
  margin-top: 6px;
  padding: 17px;
  background: var(--accent);
  color: #16130d;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.contacts__form button:hover { background: #d8bb8c; transform: translateY(-2px); }
.contacts__note { font-size: 12px; color: rgba(244,241,236,.4); line-height: 1.5; }

/* ---- Футер ---- */
.footer {
  max-width: 1200px;
  margin: clamp(60px, 8vw, 100px) auto 0;
  padding: 32px clamp(20px, 5vw, 64px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  letter-spacing: .05em;
  color: rgba(244,241,236,.5);
}
.footer span:first-child { font-weight: 700; letter-spacing: .2em; color: var(--fg); }

@media (max-width: 900px) {
  .contacts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .projects, .steps, .checklist { grid-template-columns: 1fr; }
}

.mobile-motion { display: none; }
.has-mobile-motion #stage,
.has-mobile-motion #spacer,
.has-mobile-motion #loader { display: none; }
html.motion-locked, html.motion-locked body { overflow: hidden; overscroll-behavior: none; touch-action: none; }
.has-mobile-motion .mobile-motion { display: block; padding: 75px 0 24px; }
.mobile-motion__frame {
  position: relative;
  width: min(calc(100% - 40px), 610px);
  margin: 0 auto;
  aspect-ratio: 1920 / 1004;
  overflow: hidden;
  border-radius: 16px;
  background: #171615;
}
.mobile-motion__frame > * { position: absolute; inset: 0; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.mobile-motion__copy { padding-top: 15px; }
.mobile-motion__copy h1 { margin-top: 4px; font-size: clamp(24px, 6vw, 38px); line-height: 1.12; }
.mobile-motion__status { margin-top: 8px; font-size: 14px; color: #dcd3c6; }
.mobile-motion__next {
  margin-top: 12px;
  padding: 9px 14px;
  min-height: 44px;
  border: 1px solid #c9a87770;
  border-radius: 999px;
  background: #201a14;
  color: #f4e1c2;
  font: 700 14px var(--font);
}
.mobile-motion__next:disabled { opacity: .65; }
.has-mobile-motion .section { padding: 34px 0 44px; scroll-margin-top: 75px; }
.has-mobile-motion .section__head { margin-bottom: 22px; }
.has-mobile-motion .section__title { font-size: clamp(25px, 7vw, 42px); }
.has-mobile-motion .contacts__list a { overflow-wrap: anywhere; }
