/* =========================================================
   Родной дом — стили публичной части сайта
   ========================================================= */
:root {
  --bg: #FBF8F3;
  --bg-2: #F4EEE5;
  --surface: #FFFFFF;
  --text: #2A2622;
  --muted: #736B61;
  --line: #EAE2D6;
  --accent: #C2703D;
  --accent-2: #A65B2C;
  --accent-soft: #F7E8DB;
  --sage: #6F8F68;
  --sage-soft: #E6EFE2;
  --warn: #C99A2E;
  --warn-soft: #FBF1D9;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 10px rgba(70, 45, 20, .05);
  --shadow: 0 18px 40px -18px rgba(70, 45, 20, .22);
  --shadow-lg: 0 34px 70px -28px rgba(70, 45, 20, .35);
  --ease: cubic-bezier(.2, .75, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Lora', Georgia, serif;
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: page-in .6s var(--ease) both;
}
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@view-transition { navigation: auto; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
::selection { background: var(--accent-soft); color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.15em; height: 1.15em; flex: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; }
.h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; margin-bottom: 14px; }
.h2 em, .hero__title em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow .ico { display: none; }
.eyebrow--light { color: #FFD9BF; }

.prose p + p { margin-top: 12px; }
.prose { color: #4B443D; }

/* ---------- Кнопки ---------- */
.btn {
  --bg-btn: var(--surface);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico:last-child { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(194, 112, 61, .7); }
.btn--primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .8s var(--ease);
}
.btn--primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(194, 112, 61, .75); }
.btn--primary:hover::after { transform: translateX(100%); }
.btn--ghost { border-color: var(--line); background: rgba(255, 255, 255, .6); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--soft { background: var(--accent-soft); color: var(--accent-2); }
.btn--soft:hover { background: var(--accent); color: #fff; }
.btn--soft small { font-weight: 500; opacity: .75; margin-left: 4px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading span::after { content: '…'; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); margin-top: 22px; }
.link-arrow .ico { transition: transform .35s var(--ease); }
.link-arrow:hover .ico { transform: translateX(5px); }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .35s, box-shadow .35s, height .35s var(--ease), transform .4s var(--ease);
}
.header.is-scrolled {
  --header-h: 64px;
  background: rgba(251, 248, 243, .82); backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(70, 45, 20, .3);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; flex: none; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: #FFF4EA; box-shadow: 0 8px 18px -8px rgba(194, 112, 61, .8);
  transition: transform .5s var(--ease-spring);
}
.logo__mark svg { width: 26px; height: 26px; }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link { position: relative; padding: 8px 12px; font-weight: 600; font-size: 15px; white-space: nowrap; color: #4B443D; border-radius: 10px; transition: color .25s; }
.nav__link::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: none; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 10px 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: .3s var(--ease); flex: none; }
.header__phone .ico { color: var(--accent); }
.header__phone:hover { border-color: var(--accent); transform: translateY(-1px); }

.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; position: relative; margin-left: auto; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Появление при прокрутке ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal="zoom"] { transform: scale(.94) translateY(20px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Главный экран ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 56px) 0 80px; overflow: hidden; overflow: clip; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; animation: blob 18s ease-in-out infinite alternate; }
.blob--1 { width: 520px; height: 520px; background: #F6DCC7; top: -120px; right: -80px; }
.blob--2 { width: 420px; height: 420px; background: #DFEADB; bottom: -160px; left: -120px; animation-delay: -6s; }
.blob--3 { width: 300px; height: 300px; background: #FBEBD3; top: 30%; left: 38%; animation-delay: -12s; }
@keyframes blob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
  100% { transform: translate(-30px, 30px) scale(.95); }
}
.hero__inner { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(38px, 5.6vw, 70px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; margin-bottom: 22px; }
.hero__sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 540px; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__media { position: relative; }
.hero__img { border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4; transform: rotate(1.2deg); transition: transform .8s var(--ease); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: transform; }
.hero__media:hover .hero__img { transform: rotate(0); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: 16px; }
.float-card small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.float-card .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--sage-soft); color: var(--sage); }
.float-card--a { left: -28px; bottom: 44px; }
.float-card--b { right: -18px; top: 28px; flex-direction: column; align-items: flex-start; gap: 0; animation-delay: -3s; transition: box-shadow .3s; }
.float-card--b b { font-size: 22px; color: var(--accent); }
.float-card--b:hover { box-shadow: var(--shadow-lg); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Цифры ---------- */
.stats { padding: 0 0 40px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.stat { padding: 30px 28px; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 26px; bottom: 26px; width: 1px; background: var(--line); }
.stat__value { display: flex; align-items: baseline; gap: 6px; }
.stat__value b { font-size: clamp(34px, 3.4vw, 46px); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__value span { font-weight: 700; color: var(--accent); font-size: 18px; }
.stat p { color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 4px; }

/* ---------- Секции ---------- */
.section { padding: 96px 0; }
.section--first { padding-top: 56px; }
.section--tint { background: var(--bg-2); position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.section-head .link-arrow { margin-top: 0; flex: none; }

.about__grid { display: grid; grid-template-columns: .9fr 1.3fr; gap: 64px; align-items: start; }
.about__text { position: sticky; top: calc(var(--header-h) + 30px); }
.about__text .h2 { margin-bottom: 20px; }
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.adv {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s, opacity .9s var(--ease);
}
.adv:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.adv h3 { font-size: 18px; margin: 18px 0 8px; }
.adv p { color: var(--muted); font-size: 15px; }
.adv__icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent); transition: transform .5s var(--ease-spring), background .3s, color .3s;
}
.adv__icon .ico { width: 26px; height: 26px; }
.adv:hover .adv__icon, .method:hover .adv__icon { transform: rotate(-8deg) scale(1.08); background: var(--accent); color: #fff; }

/* ---------- Карточки ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease), opacity .9s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__more {
  position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--accent); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(10px) rotate(-45deg); transition: .45s var(--ease);
}
.card:hover .card__more { opacity: 1; transform: none; }
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 19px; font-weight: 700; transition: color .3s; }
.card:hover .card__title { color: var(--accent-2); }
.card__loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.card__loc .ico { color: var(--accent); }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.specs span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 10px; background: var(--bg); color: #5B534A; }
.specs .ico { color: var(--sage); }

.chip { position: absolute; top: 16px; right: 16px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.chip--glass { background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px); }
.chip--accent { background: var(--accent); color: #fff; }
.status { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #fff; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--ok { color: var(--sage); }
.status--ok::before { animation: pulse 2s infinite; }
.status--warn { color: var(--warn); }
.status--muted { color: var(--muted); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111, 143, 104, .6); } 70% { box-shadow: 0 0 0 8px rgba(111, 143, 104, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 143, 104, 0); } }
.price-box .status { position: static; background: var(--bg); }

.price { font-size: 24px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price s { font-size: 15px; font-weight: 600; color: var(--muted); }
.price--lg { font-size: clamp(28px, 3vw, 36px); margin: 12px 0 2px; }
.listing-card.is-sold .card__media img { filter: grayscale(.7) brightness(1.05); }
.listing-card.is-sold .price { color: var(--muted); }

/* ---------- Шаги ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { display: flex; gap: 18px; background: var(--surface); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .9s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num { font-size: 15px; font-weight: 800; color: var(--accent); width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); flex: none; }
.step h3 { font-size: 17px; margin: 2px 0 6px; }
.step p { color: var(--muted); font-size: 15px; }

.steps--vertical { grid-template-columns: 1fr; gap: 0; position: relative; }
.steps--vertical::before { content: ''; position: absolute; left: 23px; top: 30px; bottom: 30px; width: 2px; background: var(--line); }
.steps--vertical::after {
  content: ''; position: absolute; left: 23px; top: 30px; width: 2px; height: calc(100% - 60px); background: var(--accent);
  transform-origin: top; transform: scaleY(var(--progress, 0)); transition: transform .2s linear;
}
.steps--vertical .step { background: none; border: 0; padding: 0 0 34px; position: relative; z-index: 1; }
.steps--vertical .step:hover { transform: none; box-shadow: none; }
.steps--vertical .step__num { background: var(--surface); border: 2px solid var(--line); transition: background .4s, color .4s, border-color .4s; }
.steps--vertical .step.is-passed .step__num { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Форма заявки ---------- */
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.lead-form__title { font-size: 22px; }
.lead-form__text { color: var(--muted); font-size: 15px; margin-top: -6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 24px 16px 9px; resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 96px; }
.field span {
  position: absolute; left: 17px; top: 18px; color: var(--muted); pointer-events: none; font-size: 15px; line-height: 1.2;
  transform-origin: left top; transition: transform .3s var(--ease), color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(194, 112, 61, .12); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-11px) scale(.78); color: var(--accent); }
.field.is-invalid input { border-color: #D2553F; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.form-note { font-size: 12px; color: var(--muted); text-align: center; }
.lead-form.is-done { text-align: center; align-items: center; padding: 30px 10px; }
.form-success .ico { width: 64px; height: 64px; padding: 14px; border-radius: 50%; background: var(--sage-soft); color: var(--sage); margin: 0 auto 16px; animation: pop .6s var(--ease-spring); }
.form-success h3 { margin-bottom: 8px; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- CTA ---------- */
.cta {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: 32px; overflow: hidden; overflow: clip; position: relative; color: #fff;
  background: linear-gradient(135deg, #C47A48 0%, #A65B2C 100%);
}
.cta::before, .cta::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cta::before { width: 420px; height: 420px; right: -120px; top: -160px; }
.cta::after { width: 260px; height: 260px; left: 30%; bottom: -150px; }
.cta > * { position: relative; z-index: 1; }
.cta .h2 { margin-bottom: 14px; }
.cta p { opacity: .88; font-size: 17px; }
.cta__contacts { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; font-weight: 700; font-size: 18px; }
.cta__contacts a { display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.cta__contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cta .lead-form { background: var(--surface); color: var(--text); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- Шапка внутренних страниц ---------- */
.page-head { position: relative; padding: calc(var(--header-h) + 50px) 0 40px; overflow: hidden; overflow: clip; }
.page-head__deco span { position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; animation: blob 20s ease-in-out infinite alternate; }
.page-head__deco span:first-child { width: 420px; height: 420px; background: #F6DFCC; right: -100px; top: -160px; }
.page-head__deco span:last-child { width: 300px; height: 300px; background: #E2ECDD; left: 20%; top: -180px; animation-delay: -8s; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent); }
.crumbs b { font-weight: 600; color: var(--text); }
.page-head__title { font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -.035em; max-width: 900px; }
.page-head__intro { font-size: 18px; color: var(--muted); max-width: 680px; margin-top: 16px; }

/* ---------- Фильтры ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.toolbar .filters { margin-bottom: 0; }
.filter { border: 1.5px solid var(--line); background: var(--surface); padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: .3s var(--ease); }
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { background: var(--text); border-color: var(--text); color: #fff; }
.sort { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.sort select { font: inherit; font-weight: 600; color: var(--text); padding: 9px 36px 9px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23736B61' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; appearance: none; cursor: pointer; }
.count-line { margin-bottom: 22px; font-size: 14px; }
.is-filtered-out { display: none !important; }
.grid.is-animating > .card { animation: card-in .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Детальная страница ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 40px 48px; align-items: start; }
.detail__aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); grid-row: span 2; }
.detail__desc { display: flex; flex-direction: column; gap: 6px; }
.detail__desc .h3 { margin-top: 10px; }
.gallery__main { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 3 / 2; background: var(--bg-2); cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .8s var(--ease); }
.gallery__main:hover img { transform: scale(1.03); }
.gallery__main img.is-switching { opacity: 0; }
.gallery__zoom { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--text); transition: transform .4s var(--ease-spring); }
.gallery__main:hover .gallery__zoom { transform: scale(1.12); }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumb { flex: none; width: 110px; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; padding: 0; border: 2px solid transparent; opacity: .65; transition: .3s; background: none; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--accent); }
.spec-list { margin: 0; display: flex; flex-direction: column; }
.spec-list div { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.spec-list div:last-child { border-bottom: 0; }
.spec-list .ico { color: var(--sage); }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 700; text-align: right; }
.detail__aside .lead-form { border-top: 1px solid var(--line); padding-top: 22px; }
.detail__aside .lead-form__title { font-size: 19px; }
.checks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { color: #fff; background: var(--sage); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 1px; }
.sold-note { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.sold-note > .ico { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }

/* ---------- Условия ---------- */
.method { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .9s var(--ease); }
.method:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.method__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.method__hl { font-weight: 800; color: var(--accent-2); background: var(--accent-soft); padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.method h3 { font-size: 19px; margin-bottom: 8px; }
.method p { color: var(--muted); font-size: 15px; }
.terms-steps { display: grid; grid-template-columns: .9fr 1.2fr; gap: 64px; align-items: start; }
.terms-steps__head { position: sticky; top: calc(var(--header-h) + 30px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.terms-steps__head .eyebrow { margin: 0; }

.faq-wrap { max-width: 900px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: box-shadow .4s, border-color .4s, opacity .9s var(--ease), transform .9s var(--ease); }
.faq__item.is-open { box-shadow: var(--shadow); border-color: transparent; }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; background: none; border: 0; text-align: left; font-weight: 700; font-size: 17px; }
.faq__q i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--accent); flex: none; transition: transform .45s var(--ease), background .3s, color .3s; }
.faq__item.is-open .faq__q i { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a .prose { padding: 0 26px 24px; color: var(--muted); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* ---------- Документы ---------- */
.docs { display: flex; flex-direction: column; gap: 48px; }
.docs__list { display: flex; flex-direction: column; gap: 12px; }
.doc { display: flex; align-items: center; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .9s var(--ease); }
.doc:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.doc__icon { position: relative; width: 52px; height: 60px; flex: none; color: var(--accent); }
.doc__icon .ico { width: 100%; height: 100%; stroke-width: 1.2; }
.doc__icon b { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); font-size: 9px; font-weight: 800; background: var(--accent); color: #fff; padding: 1px 5px; border-radius: 4px; }
.doc__text { flex: 1; min-width: 0; }
.doc__text h3 { font-size: 17px; }
.doc__text p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.doc__na { font-size: 14px; }
.docs__note { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-radius: 18px; background: var(--sage-soft); color: #3F5A3A; }
.docs__note .ico { width: 28px; height: 28px; }
.docs__note a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 48px; }
.contacts__info { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.contact-card__value a { white-space: nowrap; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .9s var(--ease); }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card__label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.contact-card__value { font-weight: 700; line-height: 1.45; }
.contact-card__value a:hover { color: var(--accent); }
.requisites { grid-column: 1 / -1; font-size: 14px; color: var(--muted); padding: 4px 6px; }
.contacts__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 20px); }
.map { border-radius: 28px; overflow: hidden; height: 440px; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: .35s var(--ease); }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.socials--lg { margin-top: 10px; }

.narrow-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.narrow-cta .h3 { margin-bottom: 6px; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ico { width: 56px; height: 56px; color: var(--accent); margin: 0 auto 14px; opacity: .6; }

.not-found { padding: calc(var(--header-h) + 90px) 0 120px; text-align: center; }
.not-found__code { display: block; font-size: clamp(90px, 16vw, 180px); font-weight: 800; line-height: 1; letter-spacing: -.06em; background: linear-gradient(135deg, var(--accent), #E5B48C); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found .h2 { margin: 12px 0; }
.not-found .hero__actions { justify-content: center; margin-top: 28px; }

/* ---------- Подвал ---------- */
.footer { background: #2D2925; color: #CFC6BA; padding: 72px 0 0; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; }
.footer .logo { color: #fff; margin-bottom: 18px; }
.footer__brand p { max-width: 380px; font-size: 15px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: 0; }
.footer__links, .footer__contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__links a { transition: color .25s, padding .3s var(--ease); }
.footer__links a:hover { color: #fff; padding-left: 6px; }
.footer__contacts li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contacts .ico { color: var(--accent); margin-top: 4px; }
.footer__contacts a:hover { color: #fff; }
.footer .socials a { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); color: #fff; }
.footer .socials a:hover { background: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; padding-bottom: 26px; font-size: 13px; color: #9B9186; }

/* ---------- Лайтбокс и уведомления ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(30, 26, 22, .92); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; padding: 60px 80px; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transform: scale(.94); transition: transform .45s var(--ease), opacity .25s; }
.lightbox.is-open img { transform: none; }
.lightbox img.is-switching { opacity: 0; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; transition: background .3s, transform .3s; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); transform: scale(1.06); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 600; font-size: 14px; opacity: .8; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
  background: var(--text); color: #fff; padding: 14px 22px; border-radius: 14px; font-weight: 600; box-shadow: var(--shadow-lg);
  transition: transform .5s var(--ease-spring), visibility 0s .5s; max-width: calc(100% - 32px);
}
.toast.is-shown { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease-spring); }
.toast.is-error { background: #B5452F; }

/* ---------- Адаптив ---------- */
@media (max-width: 1280px) {
  .header__phone span { display: none; }
  .header__phone { padding: 10px; border-radius: 12px; }
  .nav__link { padding: 8px 10px; }
}
@media (max-width: 1180px) {
  .burger { display: block; }
  .header__phone { margin-left: auto; }
  .burger { margin-left: 0; }
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0; padding: calc(var(--header-h) + 20px) 24px 32px;
    flex-direction: column; align-items: stretch; gap: 4px; background: var(--bg);
    clip-path: circle(0 at calc(100% - 46px) 38px); transition: clip-path .7s var(--ease); visibility: hidden;
  }
  .menu-open .nav { clip-path: circle(150% at calc(100% - 46px) 38px); visibility: visible; }
  .menu-open .header { background: var(--bg); }
  .nav__link { font-size: 24px; font-weight: 700; padding: 12px 0; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--accent); }
  .menu-open .nav__link { opacity: 1; transform: none; }
  .menu-open .nav__link:nth-child(2) { transition-delay: .05s; }
  .menu-open .nav__link:nth-child(3) { transition-delay: .1s; }
  .menu-open .nav__link:nth-child(4) { transition-delay: .15s; }
  .menu-open .nav__link:nth-child(5) { transition-delay: .2s; }
  .menu-open .nav__link:nth-child(6) { transition-delay: .25s; }
  .nav__cta { display: inline-flex; margin-top: 24px; padding: 16px; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 1020px) {
  .hero__inner, .about__grid, .terms-steps, .detail, .contacts, .cta { grid-template-columns: 1fr; }
  .hero__inner { gap: 48px; }
  .hero__media { max-width: 640px; }
  .about__text, .terms-steps__head, .detail__aside { position: static; }
  .detail__aside { grid-row: auto; }
  .grid--3, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section--first { padding-top: 32px; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 30px; }
  .grid--3, .steps, .adv-grid, .contacts__info, .checks { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--header-h) + 32px); padding-bottom: 56px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .float-card--a { left: 8px; bottom: -22px; }
  .float-card--b { right: 8px; top: -18px; }
  .stat { padding: 22px 18px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .doc { flex-wrap: wrap; }
  .doc .btn { width: 100%; }
  .contacts__form, .detail__aside { padding: 22px; }
  .map { height: 320px; border-radius: 20px; }
  .lightbox { padding: 70px 10px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 12px; }
  .lightbox__count { bottom: 28px; }
  .cta { border-radius: 24px; }
  .cta .lead-form { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
