/* ===== Токены ===== */
:root {
  --bg: #F6F2EB;
  --bg-2: #EFE8DD;
  --surface: #FFFFFF;
  --ink: #1C1A17;
  --ink-2: #5E5850;
  --ink-3: #8E867B;
  --line: rgba(28, 26, 23, .1);
  --gold: #B08D57;
  --gold-2: #C9A773;
  --gold-soft: #EADBC2;
  --dark: #1F1D1A;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 60px -30px rgba(60, 45, 20, .25);
  --shadow-sm: 0 10px 30px -15px rgba(60, 45, 20, .25);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .4s var(--ease), border-color .3s;
  white-space: nowrap;
}
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 18px 32px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:not(:disabled):hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--gold {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-2) 50%, var(--gold) 100%);
  background-size: 200% 100%; color: #fff;
  box-shadow: 0 14px 30px -14px rgba(176, 141, 87, .9);
}
.btn--gold:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(176, 141, 87, 1); }
.btn--gold svg { transition: transform .4s var(--ease); }
.btn--gold:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; border-color: rgba(28, 26, 23, .22); color: var(--ink); }
.btn--ghost:not(:disabled):hover { border-color: var(--ink); background: rgba(255,255,255,.5); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold-2); }

/* ===== Шапка ===== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 18px 0; transition: padding .4s var(--ease), background .4s, box-shadow .4s, transform .5s var(--ease);
}
.header.is-scrolled {
  padding: 10px 0; background: rgba(246, 242, 235, .85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold);
  font: 600 16px/1 var(--serif); letter-spacing: .04em;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name { font: 600 20px/1.1 var(--serif); }
.logo__sub { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { position: relative; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__actions { display: flex; align-items: center; gap: 20px; }
.header__phone { text-decoration: none; font-weight: 600; font-size: 15px; }

/* ===== Первый экран ===== */
.hero { position: relative; padding: 140px 0 40px; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .7; }
.blob--1 { width: 520px; height: 520px; background: #EBD9BC; top: -120px; right: -80px; animation: float1 18s ease-in-out infinite; }
.blob--2 { width: 420px; height: 420px; background: #F3E6D2; bottom: -140px; left: -120px; animation: float2 22s ease-in-out infinite; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; opacity: .35;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
}
@keyframes float1 { 50% { transform: translate(-60px, 60px) scale(1.08); } }
@keyframes float2 { 50% { transform: translate(80px, -40px) scale(1.1); } }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 6.2vw, 86px); line-height: 1.02; letter-spacing: -.02em;
  margin-bottom: 28px;
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); max-width: 540px; margin-bottom: 36px; }
.hero__lead strong { color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

.stats { display: flex; gap: 48px; margin: 0; padding-top: 32px; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; }
.stat__num { font: 500 clamp(36px, 3.6vw, 52px)/1 var(--serif); }
.stat__label { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); }

/* Портрет */
.hero__visual { position: relative; justify-self: center; width: min(100%, 440px); }
.portrait {
  position: relative; aspect-ratio: 4 / 5.4; border-radius: 240px 240px var(--radius) var(--radius);
  overflow: hidden; background: var(--bg-2); box-shadow: var(--shadow);
  clip-path: inset(100% 0 0 0 round 240px 240px var(--radius) var(--radius));
  animation: unveil 1.4s var(--ease) .2s forwards;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transform: scale(1.15); animation: settle 2s var(--ease) .2s forwards; }
.portrait::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
@keyframes unveil { to { clip-path: inset(0 0 0 0 round 240px 240px var(--radius) var(--radius)); } }
@keyframes settle { to { transform: scale(1); } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 18px;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm); border: 1px solid rgba(255,255,255,.7);
  opacity: 0; animation: pop .9s var(--ease) forwards, bob 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 15px; line-height: 1.2; }
.float-card small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.float-card__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold); font: 600 15px/1 var(--sans);
}
.float-card__icon--dark { background: var(--dark); color: var(--gold-2); }
.float-card--1 { top: 18%; left: -18%; animation-delay: 1.1s, 2s; }
.float-card--2 { top: 52%; right: -14%; animation-delay: 1.3s, 3s; }
.float-card--3 { bottom: 6%; left: -10%; animation-delay: 1.5s, 2.5s; }
.float-card--3 small { color: var(--ink-3); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes bob { 50% { translate: 0 -8px; } }
.pulse-dot { position: relative; width: 10px; height: 10px; margin: 0 4px 0 6px; border-radius: 50%; background: #3BA55C; flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 2s ease-out infinite; }
@keyframes pulse { to { transform: scale(3); opacity: 0; } }

/* Анимация заголовка по словам */
.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + .15s); }
@keyframes rise { to { transform: none; } }

/* ===== Бегущая строка ===== */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; background: var(--surface); }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font: 500 clamp(26px, 3vw, 40px)/1 var(--serif); white-space: nowrap; }
.marquee i { color: var(--gold); font-style: normal; font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Секции ===== */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--tint { background: var(--bg-2); }
.section--dark { background: var(--dark); color: #F3EDE3; }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__title { font: 500 clamp(34px, 4.6vw, 60px)/1.05 var(--serif); letter-spacing: -.015em; margin-bottom: 20px; }
.section__lead { font-size: 18px; color: var(--ink-2); }
.section--dark .section__lead { color: rgba(243, 237, 227, .65); }

/* ===== Появление при скролле ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal { animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, .3s); transition: none; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ===== Обо мне ===== */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__photo { position: relative; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about__badge {
  position: absolute; right: -24px; bottom: 40px; display: flex; align-items: center; gap: 10px;
  padding: 18px 22px; border-radius: 18px; background: var(--dark); color: #fff; box-shadow: var(--shadow);
}
.about__badge b { font: 500 48px/1 var(--serif); color: var(--gold-2); }
.about__badge span { font-size: 13px; line-height: 1.25; opacity: .8; }
.about__text > p { color: var(--ink-2); font-size: 17px; }
.about__lead { font-size: 20px !important; color: var(--ink) !important; }
.about__quote {
  margin: 32px 0 12px; padding: 4px 0 4px 24px; border-left: 2px solid var(--gold);
  font: italic 500 clamp(22px, 2.2vw, 28px)/1.3 var(--serif);
}
.about__sign { font: italic 500 22px/1 var(--serif); color: var(--gold) !important; }

/* ===== Города ===== */
.cities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.city {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  min-height: 220px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s, opacity 1s var(--ease);
}
.city::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 100% 100%, hsl(var(--hue) 45% 85% / .9), transparent 60%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.city:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.city:hover::before { opacity: 1; }
.city__num { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--ink-3); }
.city__name { margin-top: auto; font: 500 clamp(26px, 2.4vw, 32px)/1.05 var(--serif); }
.city__desc { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.city__arrow {
  position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); font-size: 18px;
  transition: transform .5s var(--ease), background .3s, color .3s;
}
.city:hover .city__arrow { background: var(--dark); color: #fff; transform: rotate(-45deg); }

/* ===== Квиз ===== */
.quiz-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.checklist { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; font-size: 17px; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: #fff; font-size: 12px;
}
.quiz-intro__note { font-size: 14px; color: var(--ink-3); }

.quiz { background: var(--surface); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.quiz__top { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.quiz__step-label { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.quiz__step-label b { color: var(--ink); }
.quiz__progress { flex: 1; height: 4px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 16.66%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: inherit; transition: width .7s var(--ease); }

.quiz__steps { position: relative; min-height: 340px; }
.quiz__step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.quiz__step.is-active { display: block; animation: stepIn .6s var(--ease); }
.quiz__step.is-back { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.quiz__step legend { padding: 0; margin-bottom: 22px; font: 500 clamp(24px, 2.4vw, 32px)/1.15 var(--serif); }

.options { display: grid; gap: 10px; }
.options--grid { grid-template-columns: 1fr 1fr; }
.option { position: relative; cursor: pointer; }
.option--wide { grid-column: 1 / -1; }
.option input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.option span {
  display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg); font-weight: 500; font-size: 15px;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.option span::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--ink-3);
  transition: border .3s, background .3s, box-shadow .3s;
}
.option:hover span { border-color: var(--gold-2); transform: translateY(-1px); }
.option input:checked + span { border-color: var(--gold); background: #FBF6EE; }
.option input:checked + span::before { border: 5px solid var(--gold); }
.option input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.fields { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input {
  width: 100%; padding: 15px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg); font: 500 16px var(--sans); color: var(--ink); transition: border-color .3s, box-shadow .3s;
}
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176, 141, 87, .15); }
.field input.is-invalid { border-color: #C0513F; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip span { display: block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: all .3s; }
.chip input:checked + span { background: var(--dark); color: #fff; border-color: var(--dark); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--ink-3); cursor: pointer; line-height: 1.45; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold); }
.consent a { color: var(--ink-2); }
.consent.is-invalid { color: #C0513F; }

.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-error { min-height: 1.2em; margin: 12px 0 0; font-size: 14px; color: #C0513F; }

/* ===== Услуги ===== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { padding: 40px 34px; background: var(--bg); transition: background .5s var(--ease), opacity 1s var(--ease), transform 1s var(--ease); }
.service:hover { background: var(--surface); }
.service__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 26px;
  background: var(--gold-soft); color: var(--gold); transition: transform .6s var(--ease), background .4s, color .4s;
}
.service__icon svg { width: 26px; height: 26px; }
.service:hover .service__icon { transform: rotate(-8deg) scale(1.08); background: var(--dark); color: var(--gold-2); }
.service h3 { font: 600 24px/1.2 var(--serif); margin-bottom: 12px; }
.service p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ===== Сравнение ===== */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.compare__col { padding: 40px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.1); }
.compare__col--accent { background: linear-gradient(160deg, #2E2A24, #24211D); border-color: rgba(201, 167, 115, .45); box-shadow: 0 30px 80px -30px rgba(201, 167, 115, .35); }
.compare__title { font: 500 28px/1.2 var(--serif); margin-bottom: 26px; }
.compare__col--accent .compare__title { color: var(--gold-2); }
.compare ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.compare li { display: flex; gap: 14px; color: rgba(243, 237, 227, .78); }
.compare .x, .compare .v { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.compare .x { background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); }
.compare .v { background: var(--gold); color: #fff; }
.compare__price { margin: 30px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 17px; }
.compare__price strong { font: 500 32px/1 var(--serif); color: var(--gold-2); }

/* ===== Инвестиции ===== */
.invest { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.invest__text .btn { margin-top: 12px; }
.invest__media { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; align-items: center; }
.invest__photo img { width: 100%; aspect-ratio: 3 / 4.6; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.invest__cards { display: grid; gap: 14px; }
.mini { padding: 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s, opacity 1s var(--ease); }
.mini:hover { transform: translateX(-6px); box-shadow: var(--shadow-sm); }
.mini__k { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.mini p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ===== Шаги ===== */
#steps .container { position: relative; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; position: relative; z-index: 1; }
.step__n {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 24px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--gold); color: var(--gold); font: 600 18px/1 var(--serif);
  transition: background .5s, color .5s;
}
.step.is-visible .step__n { background: var(--gold); color: #fff; transition-delay: var(--d, 0s); }
.step h3 { font: 600 22px/1.2 var(--serif); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-2); margin: 0; }
.steps__line { position: absolute; left: var(--line-left, 0px); width: var(--line-width, 0px); top: calc(var(--line-top, 0px) + 28px); height: 1px; background: rgba(176, 141, 87, .25); }
.steps__line span { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ===== Также помогаю ===== */
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.more__item { padding: 36px; border-radius: var(--radius); border: 1px solid var(--line); position: relative; overflow: hidden; transition: border-color .4s, transform .6s var(--ease), opacity 1s var(--ease); }
.more__item::after { content: ""; position: absolute; left: 36px; right: 36px; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.more__item:hover { border-color: var(--gold-soft); }
.more__item:hover::after { transform: scaleX(1); }
.more__item h3 { font: 600 26px/1.2 var(--serif); margin-bottom: 12px; }
.more__item p { color: var(--ink-2); margin: 0; }

/* ===== FAQ ===== */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; font: 600 clamp(20px, 2vw, 24px)/1.3 var(--serif);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); font: 400 22px/1 var(--sans); transition: transform .5s var(--ease), background .3s, color .3s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--dark); color: #fff; }
.faq__body { overflow: hidden; }
.faq__body p { color: var(--ink-2); padding-bottom: 26px; margin: 0; max-width: 620px; }

/* ===== CTA ===== */
.section--cta { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.cta { display: grid; grid-template-columns: 1.1fr .55fr .95fr; gap: clamp(28px, 4vw, 48px); align-items: center; }
.cta__contacts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta__contacts a { padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; background: var(--surface); transition: border-color .3s, transform .4s var(--ease); }
.cta__contacts a:hover { border-color: var(--gold); transform: translateY(-2px); }
.cta__photo img { width: 100%; aspect-ratio: 3 / 4.4; object-fit: cover; object-position: center 15%; border-radius: 200px 200px var(--radius) var(--radius); box-shadow: var(--shadow); }
.lead-form { display: grid; gap: 16px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }

/* ===== Подвал ===== */
.footer { background: var(--dark); color: rgba(243, 237, 227, .7); padding: 60px 0 30px; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.logo--footer .logo__name { color: #fff; }
.footer__legal { margin: 20px 0 0; }
.footer__links { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.footer__links a { text-decoration: none; transition: color .3s; }
.footer__links a:hover { color: var(--gold-2); }
.footer__bottom { padding-top: 24px; font-size: 13px; opacity: .7; }
.footer__bottom p { margin: 0; }

/* ===== Мобильная панель ===== */
.mobile-bar { display: none; }

/* ===== Модалка ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(28, 26, 23, .5); backdrop-filter: blur(6px); animation: fade .4s; }
.modal[hidden] { display: none; }
.modal__box { width: min(100%, 420px); padding: 44px 36px; border-radius: var(--radius); background: var(--surface); text-align: center; animation: pop .6s var(--ease); }
.modal__box h3 { font: 500 30px/1.15 var(--serif); margin-bottom: 10px; }
.modal__box p { color: var(--ink-2); margin-bottom: 26px; }
.modal__check svg { width: 72px; height: 72px; margin: 0 auto 20px; display: block; }
.modal__check circle { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .8s var(--ease) .1s forwards; }
.modal__check path { stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s var(--ease) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ===== Cookie ===== */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 60; max-width: 420px; display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); font-size: 13px; color: var(--ink-2);
  animation: pop .6s var(--ease);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }

/* ===== Выгодные программы ===== */
.programs { overflow: hidden; }
.programs__inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.programs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.program {
  position: relative; padding: 28px; border-radius: var(--radius); overflow: hidden;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
  transition: border-color .4s, background .4s, transform .6s var(--ease), opacity 1s var(--ease);
}
.program::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(201, 167, 115, .16), transparent 40%);
  opacity: 0; transition: opacity .4s;
}
.program:hover { border-color: rgba(201, 167, 115, .45); transform: translateY(-4px); }
.program:hover::before { opacity: 1; }
.program__tag {
  display: inline-block; padding: 6px 12px; margin-bottom: 18px; border-radius: 999px;
  background: rgba(201, 167, 115, .15); color: var(--gold-2); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.program h3 { font: 500 25px/1.15 var(--serif); color: #fff; margin-bottom: 10px; }
.program p { margin: 0; font-size: 15px; color: rgba(243, 237, 227, .65); }
.programs__cta { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.programs__note { margin: 0; font-size: 12px; line-height: 1.5; color: rgba(243, 237, 227, .4); max-width: 420px; }

/* Стройка: дом растёт этаж за этажом */
.programs__visual { position: relative; }
.build svg { width: 100%; height: auto; overflow: visible; }
.build .ground { stroke: rgba(201, 167, 115, .35); stroke-width: 1; }
.build .floor { opacity: 0; transform: translateY(-46px); transition: opacity .35s, transform .35s; }
.build .floor rect.slab { fill: #2C2924; stroke: rgba(201, 167, 115, .55); stroke-width: 1; }
.build .floor rect.win { fill: #3A3530; transition: fill .6s; }
.build.is-building .floor { animation: floorIn .7s var(--ease) forwards; animation-delay: calc(var(--i) * .42s); }
.build.is-built .floor { opacity: 1; transform: none; }
.build.is-built .floor rect.win.lit { fill: #E8C98A; transition-delay: var(--wd, 0s); filter: drop-shadow(0 0 4px rgba(232, 201, 138, .8)); }
.build.is-fading .floor { opacity: 0; transform: translateY(0); transition: opacity .9s; animation: none; }
@keyframes floorIn { 0% { opacity: 0; transform: translateY(-46px); } 70% { opacity: 1; transform: translateY(2px); } 100% { opacity: 1; transform: none; } }

.build .crane line, .build .crane path { stroke: var(--gold-2); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.build .crane .lattice { stroke-width: .8; opacity: .55; }
.build .crane .weight { fill: var(--gold); stroke: none; }
.build .jib { transform-box: view-box; transform-origin: 300px 60px; animation: swing 9s ease-in-out infinite; }
.build .hook { animation: hoist 3.2s ease-in-out infinite; }
.build .hook rect { fill: #3A3530; stroke: var(--gold-2); stroke-width: 1; }
.build .cable { transform-box: fill-box; transform-origin: top; animation: cable 3.2s ease-in-out infinite; }
.build .beacon { fill: #E86A4A; animation: blink 1.6s steps(1) infinite; }
@keyframes swing { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.86); } }
@keyframes hoist { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(70px); } }
@keyframes cable { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(2.17); } }
@keyframes blink { 50% { opacity: .15; } }

.build-tag {
  position: absolute; padding: 9px 14px; border-radius: 12px; font-size: 13px; font-weight: 700; white-space: nowrap;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(201, 167, 115, .4); color: var(--gold-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: bob 5s ease-in-out infinite;
}
.build-tag--1 { top: 30%; left: -8%; }
.build-tag--2 { top: 52%; right: -4%; animation-delay: -1.5s; }
.build-tag--3 { bottom: 14%; left: -2%; animation-delay: -3s; }

/* ===== Силуэт города ===== */
.skyline { position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none; overflow: hidden; }
.skyline svg { display: block; width: 100%; height: 100%; }
.skyline .bld { transform-box: fill-box; transform-origin: bottom; transform: translateY(101%); }
.skyline.is-visible .bld { animation: rise 1.6s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms); }
.skyline .tw { animation: twinkle var(--t, 6s) ease-in-out infinite; animation-delay: var(--wd, 0s); }
.skyline .crane-jib { transform-box: fill-box; transform-origin: left center; animation: swing 8s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }

.city-band { position: relative; height: clamp(130px, 16vw, 240px); margin-top: -30px; }
.skyline--hero { top: 0; mask-image: linear-gradient(to top, #000 55%, transparent); -webkit-mask-image: linear-gradient(to top, #000 55%, transparent); }
.skyline--hero .body { fill: rgba(176, 141, 87, .07); stroke: rgba(176, 141, 87, .28); stroke-width: 1; }
.skyline--hero .win { fill: rgba(176, 141, 87, .16); }
.skyline--hero .lit, .skyline--hero .tw { fill: rgba(201, 167, 115, .75); }
.skyline--hero .crane-line { stroke: rgba(176, 141, 87, .45); stroke-width: 1.2; fill: none; }

.footer { position: relative; padding-top: 200px; }
.skyline--night { top: 0; bottom: auto; height: 170px; }
.skyline--night .body { fill: #282521; stroke: rgba(201, 167, 115, .12); stroke-width: 1; }
.skyline--night .win { fill: #312D28; }
.skyline--night .lit, .skyline--night .tw { fill: #E8C98A; }
.skyline--night .crane-line { stroke: rgba(201, 167, 115, .5); stroke-width: 1.2; fill: none; }

@media (max-width: 1100px) {
  .programs__inner { grid-template-columns: 1fr; }
  .programs__visual { max-width: 380px; margin: 0 auto; width: 100%; }
}
@media (max-width: 600px) {
  .programs__grid { grid-template-columns: 1fr; }
  .program { padding: 24px; }
  .programs__cta { flex-direction: column; align-items: stretch; }
  .programs__visual { max-width: 300px; }
  .build-tag { font-size: 12px; padding: 7px 11px; }
  .build-tag--1 { left: -4%; }
  .footer { padding-top: 140px; }
  .skyline--night { height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .skyline .bld { transform: none; }
  .build .floor { opacity: 1; transform: none; }
}

/* ===== Слоган, который меняется ===== */
.rotator { display: inline-block; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rotator.is-out { opacity: 0; transform: translateY(-8px); }

/* ===== Обо мне: дополнения ===== */
.about__photo .about__photo-2 {
  position: absolute; left: -36px; bottom: -40px; width: 38%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 15%;
  border-radius: var(--radius-sm); border: 6px solid var(--bg); box-shadow: var(--shadow);
  animation: bob 7s ease-in-out infinite;
}
.about__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.about__tags span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.about__facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(60px, 8vw, 100px); border-block: 1px solid var(--line); }
.fact { padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact b { font: 500 clamp(40px, 4vw, 56px)/1 var(--serif); color: var(--gold); }
.fact > span { font-size: 14px; color: var(--ink-2); }
.principles { display: grid; grid-template-columns: 1fr repeat(4, 1.2fr); gap: 24px; margin-top: clamp(50px, 6vw, 80px); align-items: start; }
.principles__title { font: 500 32px/1.1 var(--serif); }
.principle { padding-top: 20px; border-top: 2px solid var(--gold-soft); transition: border-color .5s, opacity 1s var(--ease), transform 1s var(--ease); }
.principle:hover { border-color: var(--gold); }
.principle__n { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--gold); }
.principle h4 { margin: 10px 0 8px; font: 600 21px/1.2 var(--serif); }
.principle p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ===== Трейд-ин ===== */
.tradein__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.tradein__steps { list-style: none; padding: 0; margin: 8px 0 36px; display: grid; gap: 4px; counter-reset: ti; }
.tradein__steps li {
  position: relative; display: grid; padding: 14px 0 14px 56px; border-bottom: 1px solid var(--line); counter-increment: ti;
}
.tradein__steps li::before {
  content: counter(ti); position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font: 600 16px/1 var(--serif);
  transition: background .4s, color .4s;
}
.tradein__steps li:hover::before { background: var(--gold); color: #fff; }
.tradein__steps b { font: 600 20px/1.3 var(--serif); }
.tradein__steps span { font-size: 14px; color: var(--ink-2); }

.swap { position: relative; padding: 30px; border-radius: calc(var(--radius) + 6px); background: var(--surface); box-shadow: var(--shadow); }
.swap__svg { display: block; width: 100%; height: auto; overflow: visible; }
.swap__ground { stroke: var(--line); stroke-width: 1.5; }
.old-body { fill: #EDE6DA; stroke: #CFC3B0; }
.old-roof { fill: #D9CDB9; }
.old-wins rect { fill: #DCD2C2; }
.old-wins rect.mine { fill: var(--gold); animation: mine 3.6s ease-in-out infinite; }
.new-body { fill: url(#newGlass); stroke: var(--gold-2); }
.new-crown { fill: var(--gold); }
.new-wins rect { fill: rgba(255, 255, 255, .55); }
.new-wins rect.target { fill: rgba(255, 255, 255, .55); animation: target 3.6s ease-in-out infinite; }
.swap__arc { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 5 7; animation: dash 1.2s linear infinite; }
.swap__dot { fill: var(--gold); filter: drop-shadow(0 0 6px rgba(176, 141, 87, .8)); }
.swap__old { transform-box: fill-box; transform-origin: bottom; animation: sink 3.6s ease-in-out infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
@keyframes mine { 0%, 10% { opacity: 1; } 40%, 100% { opacity: .35; } }
@keyframes target { 0%, 65% { fill: rgba(255, 255, 255, .55); } 75%, 95% { fill: #B08D57; } 100% { fill: rgba(255, 255, 255, .55); } }
@keyframes sink { 0%, 15% { opacity: 1; } 55% { opacity: .55; } 100% { opacity: 1; } }

.swap__label { position: absolute; bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); }
.swap__label--old { left: 12%; }
.swap__label--new { right: 10%; color: var(--gold); }
.swap__chip {
  position: absolute; padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: var(--dark); color: var(--gold-2); box-shadow: var(--shadow-sm); animation: bob 5s ease-in-out infinite;
}
.swap__chip--1 { top: 12%; left: 6%; }
.swap__chip--2 { top: 40%; left: 40%; animation-delay: -1.7s; }
.swap__chip--3 { top: 6%; right: 4%; animation-delay: -3.2s; }

@media (max-width: 1100px) {
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principles__title { grid-column: 1 / -1; }
  .about__facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tradein__inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .about__photo .about__photo-2 { left: auto; right: -8px; bottom: -30px; width: 34%; }
  .about__badge { right: auto; left: 12px; bottom: 24px; }
  .principles { grid-template-columns: 1fr; gap: 20px; }
  .fact { padding: 22px 16px; }
  .swap { padding: 16px 12px 36px; }
  .swap__chip { font-size: 11px; padding: 6px 10px; }
}

/* ===== Адаптив ===== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .cities { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps__line { display: none; }
  .cta { grid-template-columns: 1fr 1fr; }
  .cta__photo { display: none; }
}

@media (max-width: 860px) {
  .hero { padding: 110px 0 60px; min-height: auto; }
  .hero__inner, .about, .quiz-wrap, .invest, .faq-wrap, .cta { grid-template-columns: 1fr; }
  .hero__visual { order: -1; width: min(100%, 340px); margin-bottom: 10px; }
  .float-card--1 { left: -6%; }
  .float-card--2 { right: -6%; }
  .float-card--3 { left: 0; }
  .about__photo { max-width: 420px; }
  .about__badge { right: 12px; }
  .services, .more { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .faq-wrap { gap: 0; }
}

@media (max-width: 600px) {
  body { padding-bottom: 72px; }
  .header__phone { display: none; }
  .header__actions .btn { display: none; }
  .logo__mark { width: 38px; height: 38px; font-size: 14px; }
  .hero { padding-top: 92px; }
  .hero__visual { width: 230px; }
  .hero__title { font-size: 40px; margin-bottom: 20px; }
  .hero__lead { margin-bottom: 26px; }
  .hero__cta { margin-bottom: 36px; }
  .float-card { padding: 8px 12px 8px 8px; }
  .float-card__icon { width: 34px; height: 34px; font-size: 13px; }
  .float-card strong { font-size: 13px; }
  .float-card--1 { top: 58%; left: -22%; }
  .float-card--2 { display: none; }
  .float-card--3 { left: auto; right: -20%; bottom: 3%; }
  .hero__cta .btn { flex: 1 1 100%; }
  .stats { gap: 20px; justify-content: space-between; }
  .stat__label { font-size: 12px; }
  .cities { grid-template-columns: 1fr; gap: 10px; }
  .city { min-height: 0; padding: 22px; }
  .city__name { margin-top: 18px; }
  .options--grid { grid-template-columns: 1fr; }
  .quiz__steps { min-height: 0; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; }
  .step__n { grid-row: span 2; margin: 0; }
  .invest__media { grid-template-columns: 1fr; }
  .invest__photo { max-width: 300px; }
  .compare__col, .service, .more__item { padding: 28px 24px; }
  .footer__links { align-items: flex-start; }
  .cookie { left: 12px; right: 12px; bottom: 84px; max-width: none; }

  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(246, 242, 235, .92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .mobile-bar__btn { display: grid; place-items: center; padding: 12px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: 13px; font-weight: 600; }
  .mobile-bar__btn--accent { background: var(--gold); color: #fff; border-color: var(--gold); }
}

/* ===== Для тех, кто отключил анимации ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
