/* ==========================================================================
   Пагода — стили лендинга
   Палитра и шрифты — по ТЗ: нефрит #2E8B57, золото #D4AF37, Montserrat / Open Sans
   ========================================================================== */

:root {
  --jade: #2e8b57;
  --jade-dark: #1f6b45;
  --jade-deep: #133f2b;
  --jade-light: #e8f3ec;
  --gold: #d4af37;
  --gold-dark: #b8952a;
  --gold-light: #f8f0d4;
  --bg: #ffffff;
  --bg-grey: #f5f5f5;
  --bg-beige: #f8f5ee;
  --text: #333333;
  --text-muted: #6b6f6d;
  --line: #e4e6e5;
  --white: #ffffff;
  --danger: #c0392b;

  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(19, 63, 43, .08);
  --shadow-lg: 0 20px 50px rgba(19, 63, 43, .16);
  --header-h: 80px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 10px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--jade); text-decoration: none; transition: color .2s; }
a:hover { color: var(--jade-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; color: var(--jade-deep); }
h1 { font-size: clamp(32px, 5vw, 58px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }

.placeholder-note {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fff3cd;
  color: #7a5d00;
  border: 1px dashed #d4af37;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 2px solid transparent;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--jade); color: var(--white); box-shadow: 0 8px 20px rgba(46, 139, 87, .3); }
.btn--primary:hover { background: var(--jade-dark); color: var(--white); box-shadow: 0 12px 26px rgba(46, 139, 87, .38); }
.btn--gold { background: var(--gold); color: var(--jade-deep); box-shadow: 0 8px 20px rgba(212, 175, 55, .35); }
.btn--gold:hover { background: #e0bd45; color: var(--jade-deep); }
.btn--outline { border-color: var(--jade); color: var(--jade); background: transparent; }
.btn--outline:hover { background: var(--jade); color: var(--white); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: var(--white); background: rgba(255, 255, 255, .08); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: var(--white); color: var(--jade-deep); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 18px 36px; font-size: 16px; }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }

/* Бейдж «Прямой контракт»: нефрит с золотой окантовкой */
.badge-direct {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 30px;
  background: var(--jade);
  border: 1.5px solid var(--gold);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}
.badge-direct .icon { width: 14px; height: 14px; color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section--grey { background: var(--bg-grey); }
.section--beige { background: var(--bg-beige); }
.section--jade { background: var(--jade-deep); color: rgba(255, 255, 255, .85); }
.section--jade h2, .section--jade h3 { color: var(--white); }

.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8a6d12;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section--jade .eyebrow { color: var(--gold); }
.section-head p { font-size: 18px; color: var(--text-muted); margin: 0; }
.section--jade .section-head p { color: rgba(255, 255, 255, .75); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s, box-shadow .3s, height .3s;
}
.header.is-scrolled { background: rgba(255, 255, 255, .97); box-shadow: 0 4px 20px rgba(0, 0, 0, .08); --header-h: 68px; }
.header__inner { display: flex; align-items: center; gap: 28px; }

.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { width: 48px; height: 48px; object-fit: contain; }
.logo__text { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--jade-deep); letter-spacing: -.01em; }
.logo__text b { color: var(--jade); font-weight: 800; }
.logo__img--light { display: none; }
.header:not(.is-scrolled) .logo__img--light { display: block; }
.header:not(.is-scrolled) .logo__img--dark { display: none; }
.header:not(.is-scrolled) .logo__text { color: var(--white); }
.header:not(.is-scrolled) .logo__text b { color: var(--gold); }

.nav { margin-left: auto; }
.nav__extra { display: none; }
.nav__list { display: flex; gap: 24px; }
.nav__link { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--text); position: relative; padding: 6px 0; white-space: nowrap; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width .3s var(--ease); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.header:not(.is-scrolled) .nav__link { color: var(--white); }

.header__contacts { display: flex; align-items: center; gap: 16px; }
.header__phone { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--jade-deep); white-space: nowrap; }
.header:not(.is-scrolled) .header__phone { color: var(--white); }
.messengers { display: flex; gap: 8px; }
.messenger {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--white);
  transition: transform .2s, filter .2s;
}
.messenger:hover { transform: translateY(-2px); filter: brightness(1.1); color: var(--white); }
.messenger .icon { width: 20px; height: 20px; }
.messenger--wa { background: #25d366; }
.messenger--tg { background: #29a9eb; }
.messenger--max { background: linear-gradient(135deg, #3d5afe, #8e2de2); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; margin-left: auto; }
.burger span { display: block; height: 2px; background: var(--jade-deep); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger span + span { margin-top: 7px; }
.header:not(.is-scrolled) .burger span { background: var(--white); }
.menu-open .burger span, .menu-open .header .burger span { background: var(--jade-deep); }
.menu-open .burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  color: var(--white);
  overflow: hidden;
  background: var(--jade-deep);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero.jpg") 30% 32% / cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 30, 20, .55) 0%, rgba(10, 30, 20, 0) 22%),
    linear-gradient(90deg, rgba(10, 30, 20, 0) 30%, rgba(10, 34, 24, .78) 62%, rgba(10, 34, 24, .88) 100%);
}
.hero__inner { position: relative; display: flex; justify-content: flex-end; }
.hero__content { max-width: 600px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; margin-bottom: 22px;
  border-radius: 30px;
  background: rgba(212, 175, 55, .16);
  border: 1px solid rgba(212, 175, 55, .6);
  color: var(--gold);
  font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
}
.hero__title { color: var(--white); margin-bottom: 20px; font-size: clamp(32px, 5vw, 58px); font-weight: 800; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.hero__title span { color: var(--gold); }
.hero__lead { font-size: 20px; line-height: 1.55; color: rgba(255, 255, 255, .9); margin-bottom: 26px; }
.hero__points { display: grid; gap: 10px; margin-bottom: 34px; }
.hero__points li { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; }
.hero__points .icon { width: 22px; height: 22px; color: var(--gold); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* Слайдер: слайды лежат в одной ячейке grid, высота — по самому высокому */
.hero { display: block; padding: 0; }
.hero__slides { display: grid; min-height: 100vh; min-height: 100svh; }
.hero__slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 150px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease), visibility 0s linear 1.1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.1s var(--ease), visibility 0s; }
.hero__slide .hero__bg { animation: none; transform: scale(1.08); transition: transform 9s linear; }
.hero__slide.is-active .hero__bg { transform: scale(1); }
.hero__slide .hero__content > * { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__content > :nth-child(2) { transition-delay: .12s; }
.hero__slide.is-active .hero__content > :nth-child(3) { transition-delay: .24s; }
.hero__slide.is-active .hero__content > :nth-child(4) { transition-delay: .36s; }
.hero__slide.is-active .hero__content > :nth-child(5) { transition-delay: .48s; }

.hero__controls { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 3; }
.hero__controls-inner { display: flex; justify-content: flex-end; align-items: flex-end; gap: 36px; }
.hero__tabs { display: flex; gap: 28px; }
.hero__tab {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px;
  padding: 0; border: 0; background: none;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  transition: color .3s;
}
.hero__tab:hover, .hero__tab.is-active { color: var(--white); }
.hero__tab-num { font-family: var(--font-head); font-size: 22px; font-weight: 500; letter-spacing: 0; color: var(--gold); }
.hero__tab-bar { position: relative; display: block; flex-basis: 100%; width: 150px; height: 1px; margin-top: 12px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hero__tab-bar i { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero__tab.is-active .hero__tab-bar i { animation: heroProgress 5s linear forwards; /* = HERO_DELAY в main.js */ }
.hero.is-paused .hero__tab.is-active .hero__tab-bar i { animation: none; transform: scaleX(1); }
@keyframes heroProgress { to { transform: scaleX(1); } }
.hero__arrows { display: flex; gap: 8px; }
.hero__arrow {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 2px;
  background: rgba(255, 255, 255, .04); color: var(--white);
  transition: background .25s, border-color .25s, color .25s;
}
.hero__arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--jade-deep); }
.hero__arrow .icon { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) {
  .hero__slide, .hero__slide .hero__bg, .hero__slide .hero__content > * { transition: none; }
}

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.about__grid > *, .contacts__grid > *, .quiz__inner > *, .faq__grid > * { min-width: 0; }
.about__text p { font-size: 17px; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.value-card {
  padding: 30px 26px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value-card__icon {
  width: 60px; height: 60px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--jade), var(--jade-dark));
  color: var(--white);
}
.value-card__icon .icon { width: 30px; height: 30px; }
.value-card h3 { font-size: 18px; margin-bottom: 8px; }
.value-card p { font-size: 15px; color: var(--text-muted); margin: 0; }

/* Counters */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 80px;
  padding: 44px 30px;
  border-radius: 20px;
  background: linear-gradient(120deg, var(--jade-deep), var(--jade-dark));
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.counters::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  background: url("../img/logo-white.png") center / contain no-repeat; opacity: .06;
}
.counter { text-align: center; position: relative; }
.counter + .counter::before { content: ""; position: absolute; left: -10px; top: 15%; height: 70%; width: 1px; background: rgba(255, 255, 255, .15); }
.counter__num { font-family: var(--font-head); font-size: clamp(36px, 4vw, 52px); font-weight: 800; color: var(--gold); line-height: 1.1; }
.counter__label { font-size: 15px; color: rgba(255, 255, 255, .85); margin-top: 6px; }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  display: flex; flex-direction: column;
  padding: 34px 30px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card__icon {
  width: 64px; height: 64px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--jade-light);
  color: var(--jade);
  transition: background .3s, color .3s;
}
.service-card:hover .service-card__icon { background: var(--jade); color: var(--white); }
.service-card__icon .icon { width: 30px; height: 30px; }
.service-card p { color: var(--text-muted); font-size: 15px; }
.service-card ul { margin: 0 0 22px; display: grid; gap: 6px; font-size: 15px; }
.service-card ul li { display: flex; gap: 8px; }
.service-card ul li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.service-card .btn { margin-top: auto; align-self: flex-start; }
.service-card--accent { background: linear-gradient(135deg, var(--jade-deep), var(--jade-dark)); color: rgba(255, 255, 255, .85); border: 0; }
.service-card--accent h3 { color: var(--white); }
.service-card--accent p { color: rgba(255, 255, 255, .8); }
.service-card--accent .service-card__icon { background: rgba(212, 175, 55, .18); color: var(--gold); }
.service-card--accent ul { color: rgba(255, 255, 255, .9); }

/* ---------- Objects ---------- */
.objects__toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 36px; }
.tabs { display: inline-flex; padding: 5px; border-radius: 50px; background: var(--white); box-shadow: var(--shadow); }
.tab {
  padding: 11px 26px; border: 0; border-radius: 50px; background: none;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--text-muted);
  transition: background .25s, color .25s;
}
.tab.is-active { background: var(--jade); color: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px; border-radius: 30px;
  border: 1.5px solid var(--line); background: var(--white);
  font-size: 14px; font-weight: 600; color: var(--text);
  transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: var(--jade); color: var(--jade); }
.chip.is-active { background: var(--jade-light); border-color: var(--jade); color: var(--jade-dark); }

.objects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.object-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
  display: flex; flex-direction: column;
  cursor: pointer; /* клик по карточке открывает окно объекта (main.js) */
}
.object-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.object-card[hidden] { display: none; }
.object-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.object-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.object-card:hover .object-card__media img { transform: scale(1.06); }
.object-card__media .badge-direct { position: absolute; left: 14px; top: 14px; z-index: 2; }
.object-card__type {
  position: absolute; right: 14px; top: 14px; z-index: 2;
  padding: 5px 12px; border-radius: 30px; background: rgba(255, 255, 255, .92);
  font-family: var(--font-head); font-size: 12px; font-weight: 700; color: var(--jade-deep);
}
/* Число фото объекта — в левом нижнем углу обложки */
.object-card__count {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 30px; background: rgba(0, 0, 0, .55);
  color: var(--white); font-size: 12px; font-weight: 600; line-height: 1.4;
}
.object-card__count .icon { width: 14px; height: 14px; }
/* Hover по ТЗ: карточка затемняется, появляется иконка «Фото и описание» */
.object-card__overlay {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border: 0; width: 100%;
  background: rgba(10, 34, 24, .68);
  color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.object-card__overlay-icon {
  width: 66px; height: 66px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--jade-deep);
  transform: scale(.6); transition: transform .35s var(--ease);
}
.object-card__overlay-icon .icon { width: 30px; height: 30px; }
.object-card:hover .object-card__overlay, .object-card__overlay:focus-visible { opacity: 1; }
.object-card:hover .object-card__overlay-icon { transform: scale(1); }
.object-card__body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.object-card__price { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--jade-deep); }
.object-card__price--request { font-size: 21px; }
.object-card__price small { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.object-card__sqm { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.object-card__title { font-size: 17px; margin: 0 0 14px; color: var(--text); font-weight: 700; }
.object-card__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-muted); }
.object-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.object-card__meta .icon { width: 17px; height: 17px; color: var(--jade); }
/* Две кнопки: «Фото и описание» и запрос; не помещаются в ряд — переносятся */
.object-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 18px; }
.object-card__actions .btn { flex: 1 1 auto; padding-left: 14px; padding-right: 14px; }
.objects__more { text-align: center; margin-top: 44px; }
.objects__empty { padding: 40px 20px; text-align: center; border-radius: var(--radius); background: var(--white); color: var(--text-muted); font-size: 17px; }
.objects__empty button { border: 0; background: none; padding: 0; color: var(--jade); font-weight: 700; text-decoration: underline; }

/* ---------- Quiz ---------- */
.quiz-section {
  position: relative;
  padding: 90px 0;
  background: linear-gradient(115deg, var(--jade-deep) 0%, var(--jade-dark) 60%, var(--jade) 100%);
  color: var(--white);
  overflow: hidden;
}
.quiz-section::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px;
  background: url("../img/logo-white.png") center / contain no-repeat; opacity: .07;
}
.quiz__inner { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.quiz-section .eyebrow { color: var(--gold); }
.quiz-section h2 { color: var(--white); }
.quiz__intro > p { color: rgba(255, 255, 255, .85); font-size: 17px; }
.quiz__bonus { display: grid; gap: 14px; margin-top: 26px; }
.quiz__bonus li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.quiz__bonus .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: rgba(212, 175, 55, .16); color: var(--gold); }
.quiz {
  padding: 34px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
}
.quiz__progress { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.quiz__progress-bar { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--gold), #f0d77a); border-radius: 3px; transition: width .4s var(--ease); }
.quiz__counter { margin: 10px 0 18px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.quiz__counter b { color: var(--gold); }
.quiz__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz__q { padding: 0; margin-bottom: 18px; font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--white); line-height: 1.3; }
.quiz__options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quiz__options--sm { grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
.quiz__opt { cursor: pointer; }
.quiz__opt input { position: absolute; opacity: 0; pointer-events: none; }
.quiz__opt span {
  display: flex; align-items: center; gap: 10px; height: 100%;
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--white); color: var(--jade-deep);
  border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 1.3;
  transition: border-color .2s, background .2s, transform .2s;
}
.quiz__options--sm .quiz__opt span { justify-content: center; padding: 12px 8px; font-size: 14px; }
.quiz__opt span .icon { width: 22px; height: 22px; color: var(--jade); }
.quiz__opt:hover span { transform: translateY(-2px); }
.quiz__opt input:checked + span { border-color: var(--gold); background: var(--gold-light); }
.quiz__opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.quiz .consent { color: rgba(255, 255, 255, .8); margin-top: 14px; }
.quiz .consent a { color: var(--gold); }
.quiz .consent.is-invalid { color: #ffb4a8; }
.quiz .field__error { color: #ffb4a8; }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.quiz__nav .btn:last-child, .quiz__nav #quizNext, .quiz__nav #quizSubmit { margin-left: auto; }
.quiz__nav .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.quiz .form-success h3 { color: var(--white); }
.quiz .form-success p { color: rgba(255, 255, 255, .8); }
.quiz .form-success .icon { color: var(--gold); }
.quiz.is-sent .quiz__progress, .quiz.is-sent .quiz__counter { display: none; }
.quiz__form { display: block; }

/* ---------- Process / timeline ---------- */
.timeline { position: relative; max-width: 1000px; margin: 0 auto; }
.timeline__line { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: var(--line); border-radius: 2px; }
.timeline__progress { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(180deg, var(--jade), var(--gold)); border-radius: 2px; }
.timeline__item { position: relative; display: flex; margin-bottom: 36px; }
.timeline__item:last-child { margin-bottom: 0; }
.timeline__item:nth-child(odd) { justify-content: flex-start; }
.timeline__item:nth-child(even) { justify-content: flex-end; }
.timeline__num {
  position: absolute; left: 50%; top: 24px; transform: translateX(-50%); z-index: 2;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 3px solid var(--line);
  font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--text-muted);
  transition: background .4s, border-color .4s, color .4s;
}
.timeline__item.is-passed .timeline__num { background: var(--jade); border-color: var(--gold); color: var(--white); }
.timeline__card {
  width: calc(50% - 60px);
  padding: 28px 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.timeline__card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.timeline__card-head .icon { width: 32px; height: 32px; color: var(--jade); }
.timeline__card h3 { margin: 0; font-size: 19px; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.timeline__card p { margin: 0; color: var(--text-muted); font-size: 15px; }
.timeline__tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 4px 12px; border-radius: 30px; background: var(--gold-light); color: #7a5d00; font-size: 13px; font-weight: 700; }

.guarantees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 70px; }
.guarantee { display: flex; gap: 18px; align-items: flex-start; padding: 26px; border-radius: var(--radius); background: var(--jade-light); }
.guarantee .icon { width: 40px; height: 40px; color: var(--jade); }
.guarantee h3 { font-size: 17px; margin-bottom: 6px; }
.guarantee p { margin: 0; font-size: 14px; color: var(--text-muted); }
.process__cta { text-align: center; margin-top: 50px; }

/* ---------- Reviews ---------- */
.reviews__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.slider-nav { display: flex; gap: 10px; }
.slider-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line); background: var(--white); color: var(--jade-deep);
  transition: background .25s, color .25s, border-color .25s;
}
.slider-btn:hover { background: var(--jade); color: var(--white); border-color: var(--jade); }
.slider-btn .icon { width: 20px; height: 20px; }
.reviews__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 56px) / 3); gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 10px 4px 24px; margin: -10px -4px 0;
  scrollbar-width: none;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: 32px 30px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.review[hidden] { display: none; }
.review__stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 16px; }
.review__stars .icon { width: 18px; height: 18px; }
.review__text { flex: 1; font-size: 15px; color: var(--text); margin-bottom: 22px; }
.review__case { margin: -8px 0 20px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--jade-light); font-size: 14px; color: var(--jade-deep); font-weight: 600; }
.review__author { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.review__avatar {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--jade), var(--jade-dark));
  color: var(--white); font-family: var(--font-head); font-weight: 800;
}
.review__name { font-family: var(--font-head); font-weight: 700; color: var(--jade-deep); }
.review__meta { font-size: 13px; color: var(--text-muted); }
.review__tag { margin-left: auto; padding: 4px 10px; border-radius: 20px; background: var(--gold-light); color: #7a5d00; font-size: 12px; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 280px 1fr; gap: 50px; align-items: start; }
.faq__cats { display: grid; gap: 8px; position: sticky; top: calc(var(--header-h) + 20px); }
.faq__cat {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border: 0; border-radius: var(--radius-sm);
  background: var(--white); text-align: left;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--text);
  transition: background .25s, color .25s;
}
.faq__cat .icon { width: 22px; height: 22px; color: var(--jade); }
.faq__cat.is-active { background: var(--jade); color: var(--white); }
.faq__cat.is-active .icon { color: var(--gold); }
.faq__panel[hidden] { display: none; }
.faq-item { border-radius: var(--radius-sm); background: var(--white); margin-bottom: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .04); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--jade-deep);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--jade-light); color: var(--jade); font-size: 22px; font-weight: 600;
  transition: transform .3s, background .3s, color .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--jade); color: var(--white); }
.faq-item__body { padding: 0 24px 22px; color: var(--text-muted); font-size: 15px; }
.faq__ask {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 30px; padding: 26px 30px; border-radius: var(--radius);
  background: var(--jade-light); border: 1px dashed var(--jade);
}
.faq__ask p { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--jade-deep); }

/* ---------- Contacts ---------- */
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.offices { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 24px; }
.office { padding: 26px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.office h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.office h3 .icon { color: var(--jade); width: 22px; height: 22px; }
.office__flag { font-size: 12px; font-weight: 700; color: var(--text-muted); margin: -8px 0 12px; }
.office ul { display: grid; gap: 10px; font-size: 15px; }
.office li { display: flex; gap: 10px; }
.office li .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--gold-dark); }
.office a { color: var(--text); font-weight: 600; }
.office a:hover { color: var(--jade); }
.contacts__info { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.info-box { padding: 22px 24px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); font-size: 14px; }
.info-box h4 { font-size: 15px; margin-bottom: 10px; }
.info-box p { margin: 0 0 4px; }
.messengers-big { display: grid; gap: 8px; }
.messengers-big a { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.messengers-big a:hover { color: var(--jade); }
.messengers-big .messenger { width: 32px; height: 32px; }
.messengers-big .messenger .icon { width: 17px; height: 17px; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 320px; background: var(--bg-grey); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Forms ---------- */
.form-card { padding: 38px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 24px; margin-bottom: 6px; }
.form-card > p { color: var(--text-muted); margin-bottom: 24px; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--jade); box-shadow: 0 0 0 4px rgba(46, 139, 87, .12); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.field__error { display: none; margin-top: 5px; font-size: 13px; color: var(--danger); }
.field.is-invalid .field__error { display: block; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--text-muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--jade); flex-shrink: 0; cursor: pointer; }
.consent.is-invalid { color: var(--danger); }
.form__promise { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--jade-dark); font-weight: 600; }
.form__promise .icon { width: 16px; height: 16px; }
/* Ловушка для ботов: поле есть в форме, но людям его не видно */
.form__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Ошибка отправки (создаётся из main.js) */
.form__status { padding: 12px 14px; border: 1px solid rgba(192, 57, 43, .35); border-radius: var(--radius-sm); background: #fdf1ef; color: var(--danger); font-size: 14px; line-height: 1.5; }
.form__status a { color: inherit; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.quiz .form__status { margin-top: 16px; border-color: rgba(255, 180, 168, .45); background: rgba(255, 180, 168, .12); color: #ffd2ca; }
.form.is-sending [type="submit"] { opacity: .7; cursor: progress; transform: none; }
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success .icon { width: 64px; height: 64px; color: var(--jade); margin: 0 auto 16px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--text-muted); margin: 0; }
.is-sent .form { display: none; }
.is-sent .form-success { display: block; }
.is-sent > h3, .is-sent > p { display: none; }


/* ---------- Footer ---------- */
.footer { padding: 70px 0 0; background: #0e2c1f; color: rgba(255, 255, 255, .7); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer .logo__text { color: var(--white); }
.footer .logo__text b { color: var(--gold); }
.footer__about { margin: 18px 0 20px; max-width: 320px; }
.footer h4 { color: var(--white); font-size: 16px; margin-bottom: 18px; }
.footer__links { display: grid; gap: 10px; }
.footer a { color: rgba(255, 255, 255, .7); }
.footer a:hover { color: var(--gold); }
.footer__phone { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--white) !important; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.footer__bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Expert sticky bar ---------- */
.expert-bar {
  position: fixed; left: 50%; bottom: 18px; z-index: 90;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 10px 10px 12px;
  border-radius: 60px;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  transform: translate(-50%, 140%);
  visibility: hidden;
  transition: transform .5s var(--ease), visibility .5s;
  max-width: calc(100% - 32px);
}
.expert-bar.is-visible { transform: translate(-50%, 0); visibility: visible; }
.expert-bar__photo { position: relative; flex-shrink: 0; }
.expert-bar__photo img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--gold); }
.online-dot { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #2ecc71; border: 2px solid var(--white); }
.online-dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #2ecc71; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.2); opacity: 0; } }
.expert-bar__info { line-height: 1.3; min-width: 0; overflow: hidden; }
.expert-bar__name { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--jade-deep); white-space: nowrap; }
.expert-bar__status { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.expert-bar__status b { color: #1e7e45; font-weight: 600; }
.expert-bar__contacts { display: flex; gap: 14px; padding: 0 6px 0 10px; border-left: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; }
.expert-bar__contacts a { color: var(--text); }
.expert-bar__contacts a:hover { color: var(--jade); }
.expert-bar__close {
  position: absolute; right: -6px; top: -6px;
  width: 24px; height: 24px; border-radius: 50%; border: 0;
  background: var(--jade-deep); color: var(--white); font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}

/* Мобильная панель действий: «Позвонить», WhatsApp, «Вопрос эксперту» */
.mobile-actions { display: none; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  visibility: hidden; opacity: 0;
  transition: opacity .3s, visibility .3s;
}
.modal.is-open { visibility: visible; opacity: 1; transition: opacity .3s, visibility 0s; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 26, 18, .72); backdrop-filter: blur(3px); }
.modal__dialog {
  position: relative;
  width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto;
  transform: translateY(30px) scale(.97);
  transition: transform .35s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close {
  position: absolute; right: 16px; top: 16px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: var(--bg-grey); color: var(--text); font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.modal__close:hover { background: var(--jade); color: var(--white); }
.modal .form-card { padding: 40px 36px 34px; }
.modal__expert { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 12px; border-radius: var(--radius-sm); background: var(--jade-light); }
.modal__expert img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; }
.modal__expert b { display: block; font-family: var(--font-head); color: var(--jade-deep); }
.modal__expert span { font-size: 13px; color: var(--text-muted); }
body.is-locked { overflow: hidden; }

/* ---------- Окно объекта: галерея + описание ---------- */
.modal--object .modal__dialog { max-width: 1160px; overflow: hidden; background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.object-view { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); height: min(700px, calc(100vh - 40px)); }
.object-view__gallery { display: flex; flex-direction: column; min-height: 0; background: #1a201c; }
.gallery__stage { position: relative; flex: 1; min-height: 0; }
.gallery__zoom { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__zoom img { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; }
.gallery__zoom img.is-loading, .lightbox__stage img.is-loading { opacity: .3; }
.gallery__zoom-icon {
  position: absolute; right: 14px; bottom: 14px;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(0, 0, 0, .55); color: var(--white);
  opacity: 0; transition: opacity .2s;
}
.gallery__zoom:hover .gallery__zoom-icon, .gallery__zoom:focus-visible .gallery__zoom-icon { opacity: 1; }
.gallery__zoom-icon .icon { width: 18px; height: 18px; }
.gallery__nav, .lightbox__nav {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--jade-deep);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2); transition: background .2s;
}
.gallery__nav:hover, .lightbox__nav:hover { background: var(--gold); }
.gallery__nav .icon, .lightbox__nav .icon { width: 20px; height: 20px; }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__counter, .lightbox__counter {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  padding: 4px 10px; border-radius: 30px; background: rgba(0, 0, 0, .55);
  color: var(--white); font-size: 13px; font-weight: 600; pointer-events: none;
}
.gallery__thumbs { position: relative; display: flex; gap: 8px; padding: 10px; overflow-x: auto; flex-shrink: 0; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.gallery__thumb {
  flex: 0 0 auto; width: 92px; height: 69px; padding: 0;
  border: 2px solid transparent; border-radius: var(--radius-sm); background: none; overflow: hidden;
  opacity: .5; transition: opacity .2s, border-color .2s;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover, .gallery__thumb:focus-visible { opacity: .9; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--gold); }
.modal.is-single .gallery__nav, .modal.is-single .gallery__thumbs, .modal.is-single .lightbox__nav { display: none; }

.object-view__info { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 44px 36px 0; }
.object-view__type { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }
.object-view__title { margin: 0 0 14px; padding-right: 36px; }
.object-view__price { font-family: var(--font-head); font-size: 34px; font-weight: 600; line-height: 1.1; color: var(--jade-deep); }
.object-view__price small { font-size: 17px; font-weight: 500; color: var(--text-muted); }
.object-view__price.is-request { font-size: 26px; }
.object-view__sub { margin: 6px 0 20px; font-size: 14px; color: var(--text-muted); }
.object-view__text { font-size: 15px; line-height: 1.7; }
.object-view__text p { margin: 0 0 .9em; }
.object-view__text h4 { margin: 1.3em 0 .5em; font-size: 19px; }
.object-view__text ul { margin: 0 0 .9em; padding-left: 1.15em; list-style: disc; }
.object-view__text li { margin-bottom: .45em; }
.object-view__text li::marker { color: var(--gold-dark); }
.object-view__text b { font-weight: 600; }
.object-specs { margin: 18px 0 0; border-top: 1px solid var(--line); }
.object-specs div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.object-specs dt { color: var(--text-muted); }
.object-specs dd { margin: 0; font-weight: 500; }
/* Кнопка запроса всегда видна: прилипает к низу, пока описание прокручивается */
.object-view__cta {
  position: sticky; bottom: 0; z-index: 2;
  margin: auto -36px 0; padding: 18px 36px 22px;
  background: var(--bg); border-top: 1px solid var(--line);
}
.object-view__text { margin-bottom: 22px; }
.object-view__cta .form__promise { justify-content: center; margin-top: 12px; }

/* ---------- Лайтбокс: фото на весь экран ---------- */
.modal--lightbox { z-index: 210; padding: 0; }
.modal.modal--lightbox .modal__backdrop { background: rgba(12, 15, 13, .96); backdrop-filter: none; } /* сильнее темы lux */
.lightbox { position: relative; width: 100%; height: 100%; pointer-events: none; }
.lightbox > * { pointer-events: auto; }
/* Клик по пустому месту попадает в фон (data-close) и закрывает лайтбокс */
.lightbox__stage { position: absolute; inset: 64px 84px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; pointer-events: auto; transition: opacity .25s; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__counter { left: 50%; bottom: 20px; transform: translateX(-50%); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; transform: none; }
}

/* ---------- Legal pages ---------- */
.legal-header { padding: 16px 0; border-bottom: 1px solid var(--line); background: var(--white); }
.legal-header__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.legal { padding: 60px 0 80px; }
.legal h1 { font-size: clamp(26px, 4vw, 38px); }
.legal h2 { font-size: 21px; margin-top: 36px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal li { margin-bottom: 6px; }
.legal__date { color: var(--text-muted); }
.legal-footer { padding: 24px 0; background: #0e2c1f; color: rgba(255, 255, 255, .7); font-size: 14px; }
.legal-footer a { color: rgba(255, 255, 255, .8); }
.legal-footer a:hover { color: var(--gold); }

/* 404 */
.page-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; background: linear-gradient(135deg, var(--jade-deep), var(--jade-dark)); color: rgba(255, 255, 255, .85); }
.page-404 img { width: 110px; margin: 0 auto 24px; opacity: .9; }
.page-404__code { font-family: var(--font-head); font-size: clamp(90px, 18vw, 160px); font-weight: 800; line-height: 1; color: var(--gold); }
.page-404 h1 { color: var(--white); font-size: clamp(24px, 4vw, 34px); margin: 10px 0 12px; }
.page-404 p { margin-bottom: 30px; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1439px) {
  .header__phone { display: none; }
}

@media (max-width: 1199px) {
  .burger { display: block; }
  .header__contacts { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: -1;
    width: min(360px, 100%);
    padding: calc(var(--header-h) + 20px) 28px 30px;
    background: var(--white);
    box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
    transform: translateX(100%);
    transition: transform .4s var(--ease), visibility .4s;
    overflow-y: auto;
    visibility: hidden;
  }
  .menu-open .nav { transform: none; visibility: visible; }
  .menu-open .header { background: var(--white); }
  .menu-open .header .logo__text { color: var(--jade-deep); }
  .menu-open .header .logo__img--light { display: none; }
  .menu-open .header .logo__img--dark { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text) !important; font-size: 17px; }
  .nav__link::after { display: none; }
  .nav__extra { display: grid !important; gap: 16px; margin-top: 26px; }
}

@media (max-width: 1023px) {
  :root { --header-h: 68px; }
  .expert-bar__contacts a[href^="mailto"] { display: none; }
  .section { padding: 80px 0; }

  .hero__bg { background-position: 25% 30%; }
  .hero__overlay { background: linear-gradient(180deg, rgba(10, 30, 20, .5) 0%, rgba(10, 30, 20, .2) 30%, rgba(10, 34, 24, .82) 62%, rgba(10, 34, 24, .92) 100%); }
  .hero__slide { align-items: flex-end; padding-bottom: 130px; }
  .hero__controls { bottom: 34px; }
  .hero__controls-inner { justify-content: space-between; }
  .hero__inner { justify-content: flex-start; }

  .about__grid, .contacts__grid, .quiz__inner { grid-template-columns: 1fr; gap: 40px; }
  .counters { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .counter:nth-child(3)::before { display: none; }
  .objects__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__track { grid-auto-columns: calc((100% - 28px) / 2); }
  .faq__grid { grid-template-columns: 1fr; gap: 24px; }
  .faq__cats { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guarantees { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  .timeline__line { left: 28px; }
  .timeline__item, .timeline__item:nth-child(even) { justify-content: flex-start; padding-left: 80px; }
  .timeline__num { left: 28px; top: 20px; }
  .timeline__card { width: 100%; }

  /* Окно объекта: галерея над описанием, прокручивается содержимое (крестик остаётся на месте) */
  .modal--object .modal__dialog { max-width: 720px; }
  .object-view { display: block; height: auto; max-height: calc(100vh - 40px); overflow-y: auto; }
  .object-view__gallery { display: block; }
  .gallery__stage { aspect-ratio: 4 / 3; }
  .object-view__info { overflow: visible; padding: 28px 28px 0; }
  .object-view__cta { margin: 0 -28px; padding: 14px 28px 18px; }
}

/* На тач-устройствах hover нет: затемнение не нужно, окно открывается тапом по карточке или кнопкой */
@media (hover: none) {
  .object-card__overlay { display: none; }
  .gallery__zoom-icon { opacity: 1; }
}

@media (max-width: 767px) {
  body { font-size: 15px; padding-bottom: 72px; }
  .btn { white-space: normal; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 16px; }
  .logo__text { font-size: 19px; }
  .logo img { width: 40px; height: 40px; }

  .hero__slide { padding-bottom: 190px; }
  .hero__controls { bottom: 96px; }
  .hero__tabs { gap: 18px; }
  .hero__tab { font-size: 11px; }
  .hero__tab-num { font-size: 18px; }
  .hero__tab-bar { width: 86px; }
  .hero__arrows { display: none; }
  .hero__lead { font-size: 17px; }
  .hero__points li { font-size: 15px; }
  .hero__actions .btn { width: 100%; }

  .values { grid-template-columns: 1fr; }
  .counters { margin-top: 50px; padding: 34px 16px; }
  .counter__label { font-size: 13px; }
  .services__grid { grid-template-columns: 1fr; }
  .objects__toolbar { flex-direction: column; align-items: stretch; }
  .tabs { justify-content: center; }
  .tab { flex: 1; padding: 11px 12px; }
  .objects__grid { grid-template-columns: 1fr; }
  .reviews__track { grid-auto-columns: 88%; gap: 16px; }
  .faq__cats { display: flex; flex-wrap: wrap; }
  .faq__cat { flex: 1 1 auto; justify-content: center; }
  .faq__cat { padding: 12px 14px; font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
  .timeline__item, .timeline__item:nth-child(even) { padding-left: 64px; }
  .faq-item summary { padding: 16px 18px; font-size: 15px; }
  .faq-item__body { padding: 0 18px 18px; }
  .offices, .contacts__info, .form__row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .modal .form-card { padding: 36px 20px 26px; }

  /* Окно объекта — на весь экран, кнопка запроса прилипает к низу */
  .modal--object { padding: 0; }
  .modal--object .modal__dialog { max-width: none; height: 100%; max-height: 100%; border-radius: 0; }
  .object-view { height: 100%; max-height: 100%; }
  .modal--object .modal__close { right: 12px; top: 12px; }
  .gallery__nav { width: 38px; height: 38px; }
  .gallery__nav--prev { left: 10px; }
  .gallery__nav--next { right: 10px; }
  .gallery__thumb { width: 72px; height: 54px; }
  .object-view__info { padding: 22px 16px 0; }
  .object-view__price { font-size: 30px; }
  .object-view__cta {
    position: sticky; bottom: 0; z-index: 2;
    margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--line);
  }
  .object-view__cta .form__promise { display: none; }
  .lightbox__stage { inset: 60px 0 76px; }
  .lightbox__nav { top: auto; bottom: 14px; transform: none; }
  .lightbox__counter { bottom: 26px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .quiz-section { padding: 60px 0; }
  .quiz { padding: 24px 16px; }
  .quiz__q { font-size: 19px; }
  .quiz__options { grid-template-columns: 1fr; gap: 10px; }
  .quiz__options--sm { grid-template-columns: 1fr 1fr; }

  .expert-bar { display: none; }
  .mobile-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    background: var(--white);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .12);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-actions a, .mobile-actions button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 62px; border: 0; background: none;
    font-family: var(--font-head); font-weight: 700; font-size: 12px; color: var(--jade-deep);
  }
  .mobile-actions .icon { width: 22px; height: 22px; }
  .mobile-actions__call { background: var(--jade) !important; color: var(--white) !important; }
  .mobile-actions__wa { color: #1da851 !important; }
}
