/* =========================================================
   Азбука Жилья — основной стиль
   Макет: светлый «бизнес» с глубоким синим, золотом и спокойным
   морским акцентом; секции чередуют белый и туманно-голубой фон.
   ========================================================= */
:root {
  --ink: #0f2a44;          /* основной тёмно-синий */
  --ink-deep: #0a1d31;     /* подвал, тёмные блоки */
  --ink-soft: #46607a;     /* второстепенный текст */
  --gold: #c69a3f;         /* акцент, логотип, CTA */
  --gold-light: #e8c97a;
  --sea: #2c7a6b;          /* спокойный акцент: «успех», галочки */
  --mist: #eef3f8;         /* фон чередующихся секций */
  --paper: #ffffff;
  --line: #dbe4ee;
  --on-dark: #e9eff6;
  --on-dark-soft: #9fb3c8;
  --danger: #b4423a;

  --f-display: "Unbounded", "Manrope", "Segoe UI", Arial, sans-serif;
  --f-body: "Manrope", "Segoe UI", Roboto, Arial, sans-serif;

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --shadow-s: 0 2px 8px rgba(15, 42, 68, .06);
  --shadow-m: 0 14px 40px -12px rgba(15, 42, 68, .22);
  --wrap: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1, h2 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 700px) {
  .wrap { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); }
}

.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink-deep); color: var(--on-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; max-width: 62ch; }
.section--dark .section-head p { color: var(--on-dark-soft); }

/* ---------- Кнопки ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn:hover::after { transform: translateX(120%); }
.btn--gold { --bg: linear-gradient(135deg, var(--gold-light), var(--gold)); --fg: var(--ink-deep); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn--sea { --bg: var(--sea); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Полоса прогресса ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120;
  background: linear-gradient(90deg, var(--gold), var(--sea));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Шапка ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 110; background: rgba(255,255,255,.92);
}
.header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 100;
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); transition: height .35s var(--ease); }
.header.is-scrolled { background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 6px 24px -14px rgba(15,42,68,.35); }
.header.is-scrolled .header__inner { height: 64px; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo img { width: 46px; height: 46px; transition: transform .6s var(--ease); }
.logo:hover img { transform: rotate(-8deg) scale(1.05); }
.logo__text { display: grid; line-height: 1.05; }
.logo__name { font-family: var(--f-display); font-weight: 600; font-size: 1.12rem; letter-spacing: .01em; }
.logo__name b { color: var(--gold); font-weight: 600; }
.logo__sub { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .94rem; color: var(--ink); position: relative; transition: background .25s, color .25s;
}
.nav__link:hover { background: var(--mist); }
.nav__link.is-active { background: var(--ink); color: #fff; }
.header__phone { display: grid; text-align: right; line-height: 1.2; text-decoration: none; flex: none; }
.header__phone b { font-size: 1rem; }
.header__phone span { font-size: .74rem; color: var(--sea); font-weight: 600; }
.header__phone span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sea); margin-right: 6px; animation: pulse 2s infinite; vertical-align: 1px; }

.burger {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--ink);
  cursor: pointer; position: relative; flex: none; margin-left: auto;
}
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.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; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .header__phone { display: none; }
}
@media (max-width: 920px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    background: var(--ink-deep); color: var(--on-dark);
    padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px) max(24px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
    display: flex; flex-direction: column; gap: 28px;
    clip-path: circle(0 at calc(100% - 40px) 40px); transition: clip-path .6s var(--ease);
    overflow-y: auto;
  }
  .menu-open .nav { clip-path: circle(150% at calc(100% - 40px) 40px); }
  .menu-open .header { background: transparent; box-shadow: none; backdrop-filter: none; }
  .menu-open .logo__name, .menu-open .logo__sub { color: #fff; }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav__link { color: var(--on-dark); font-size: 1.35rem; padding: 10px 0; border-radius: 0; font-family: var(--f-display); font-weight: 500; opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease); }
  .nav__link:hover, .nav__link.is-active { background: none; color: var(--gold-light); }
  .menu-open .nav__link { opacity: 1; transform: none; }
  .menu-open .nav__list li:nth-child(2) .nav__link { transition-delay: .05s; }
  .menu-open .nav__list li:nth-child(3) .nav__link { transition-delay: .1s; }
  .menu-open .nav__list li:nth-child(4) .nav__link { transition-delay: .15s; }
  .menu-open .nav__list li:nth-child(5) .nav__link { transition-delay: .2s; }
  .menu-open .nav__list li:nth-child(6) .nav__link { transition-delay: .25s; }
  .nav__extra { display: grid !important; gap: 10px; color: var(--on-dark-soft); }
  .nav__extra a { color: #fff; font-size: 1.15rem; font-weight: 700; text-decoration: none; }
  body.menu-open { overflow: hidden; }
}
.nav__extra { display: none; }

/* ---------- Герой ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(28px, 6vw, 72px));
  padding-bottom: clamp(56px, 8vw, 100px);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(198,154,63,.16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(44,122,107,.12), transparent 60%),
    linear-gradient(180deg, #f7f9fc, var(--paper));
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__text { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
.hero h1 em { font-style: normal; color: var(--gold); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .16em;
  background: rgba(198,154,63,.28); border-radius: 4px; z-index: -1;
  transform-origin: left; animation: underline 1.2s .6s var(--ease) both;
}
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 6px; }
.hero__badges li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .93rem; }
.hero__badges svg { width: 20px; height: 20px; color: var(--sea); flex: none; }
.hero__badges { list-style: none; margin: 0; padding-left: 0; }

.hero__visual { position: relative; min-width: 0; }
.house { width: 100%; max-width: 560px; margin-inline: auto; overflow: visible; }
.house [data-part] { transition: transform .15s linear; transform-box: fill-box; transform-origin: center; }
.house-float { animation: floaty 6s ease-in-out infinite; }

.hero__card {
  position: absolute; background: var(--paper); border-radius: var(--r-m); box-shadow: var(--shadow-m);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px; font-size: .88rem; line-height: 1.3;
  animation: floaty 7s ease-in-out infinite;
}
.hero__card b { display: block; font-size: 1rem; }
.hero__card .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.hero__card .ico svg { width: 22px; height: 22px; }
.hero__card--a { left: 2%; bottom: 10%; }
.hero__card--a .ico { background: rgba(44,122,107,.12); color: var(--sea); }
.hero__card--b { right: -2%; top: 6%; animation-delay: -3s; }
.hero__card--b .ico { background: rgba(198,154,63,.16); color: var(--gold); }

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 460px; margin-inline: auto; width: 100%; }
  .hero__card--a { left: 0; }
  .hero__card--b { right: 0; }
}
@media (max-width: 480px) {
  .hero__card { font-size: .78rem; padding: 10px 12px; }
  .hero__card .ico { width: 32px; height: 32px; }
  .hero__card b { font-size: .88rem; }
}

/* ---------- Лента «Азбука» ---------- */
.ticker { background: var(--ink); color: var(--on-dark); overflow: hidden; padding-block: 18px; }
.ticker__track { display: flex; gap: 48px; width: max-content; animation: ticker 40s linear infinite; }
.ticker__item { display: flex; align-items: center; gap: 14px; white-space: nowrap; font-weight: 600; }
.ticker__item b { font-family: var(--f-display); color: var(--gold-light); font-size: 1.4rem; font-weight: 600; }

/* ---------- Цифры ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 26px 24px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 4px; }
.stat__num { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat__num small { font-size: .5em; color: var(--gold); margin-left: 2px; }
.stat p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stat { padding: 20px 16px; } }

/* ---------- Каталог услуг ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  border: 0; cursor: pointer; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .93rem;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); transition: all .25s var(--ease);
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; box-shadow: none; }

.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  background: var(--paper); border-radius: var(--r-l); padding: 28px; display: flex; flex-direction: column; gap: 18px;
  border: 1px solid var(--line); position: relative; overflow: hidden; min-width: 0;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, opacity .4s;
}
.svc::before {
  content: attr(data-letter); position: absolute; right: -6px; top: -26px;
  font-family: var(--f-display); font-size: 8.5rem; font-weight: 700; line-height: 1;
  color: var(--mist); z-index: 0; transition: color .4s, transform .6s var(--ease);
}
.svc > * { position: relative; z-index: 1; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: transparent; }
.svc:hover::before { color: rgba(198,154,63,.16); transform: translateY(8px) rotate(-6deg); }
.svc__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--ink); color: var(--gold-light); display: grid; place-items: center; }
.svc__icon svg { width: 28px; height: 28px; }
.svc h3 { font-size: 1.3rem; }
.svc__desc { color: var(--ink-soft); font-size: .96rem; }
.svc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.svc li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .95rem; line-height: 1.45; }
.svc li::before {
  content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: rgba(44,122,107,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232c7a6b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;
}
.svc__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; padding-top: 6px; }
.svc__more svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.svc__more:hover svg { transform: translateX(5px); }
.svc.is-hidden { display: none; }
@media (max-width: 1020px) { .catalog { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .catalog { grid-template-columns: 1fr; } .svc { padding: 22px; } }

/* ---------- Калькулятор ---------- */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.calc__form, .calc__result { border-radius: var(--r-l); padding: clamp(22px, 3.5vw, 36px); min-width: 0; }
.calc__form { background: var(--paper); border: 1px solid var(--line); display: grid; gap: 22px; }
.calc__result { background: var(--ink); color: var(--on-dark); position: sticky; top: 90px; display: grid; gap: 20px; overflow: hidden; }
.calc__result::after {
  content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198,154,63,.35), transparent 70%); pointer-events: none;
}

.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .field__label { font-weight: 700; font-size: .92rem; }
.field__hint { font-size: .82rem; color: var(--ink-soft); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

.seg { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  cursor: pointer; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: .9rem;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: all .2s; display: inline-flex; align-items: center; gap: 8px; user-select: none;
}
.seg label:hover { box-shadow: inset 0 0 0 1.5px var(--ink-soft); }
.seg input:checked + label { background: var(--ink); color: #fff; box-shadow: none; }
.seg input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }

.select, .input, .textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper);
  font-size: 1rem; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a44' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; cursor: pointer;
}
.select:focus, .input:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(15,42,68,.08); }
.input.is-invalid { border-color: var(--danger); }

.range-wrap { display: flex; align-items: center; gap: 14px; }
.range { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--gold) var(--p, 30%), var(--line) var(--p, 30%)); cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 6px solid var(--ink); box-shadow: var(--shadow-s); transition: transform .2s; }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 6px solid var(--ink); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range-num { width: 104px; flex: none; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.result__label { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-soft); font-weight: 700; }
.result__price { font-family: var(--f-display); font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; overflow-wrap: anywhere; }
.result__range { color: var(--gold-light); font-weight: 600; font-variant-numeric: tabular-nums; }
.result__rows { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.result__row { display: flex; justify-content: space-between; gap: 12px; font-size: .93rem; }
.result__row span { color: var(--on-dark-soft); }
.result__row b { font-variant-numeric: tabular-nums; text-align: right; }
.result__note { font-size: .8rem; color: var(--on-dark-soft); line-height: 1.5; }
.result__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; z-index: 1; }
.result__actions .btn { padding: 14px 12px; white-space: normal; text-align: center; }
.calc__result .btn--ghost { --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
.calc__result .btn--ghost:hover { box-shadow: inset 0 0 0 2px #fff; }
.bump { animation: bump .5s var(--ease); }
@media (max-width: 920px) { .calc { grid-template-columns: 1fr; } .calc__result { position: relative; top: 0; } }
@media (max-width: 400px) { .result__actions { grid-template-columns: 1fr; } }

/* ---------- Заявка ---------- */
.lead { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.lead__info { display: grid; gap: 22px; min-width: 0; }
.lead__info h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: #fff; }
.lead__info p { color: var(--on-dark-soft); }
.lead__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lead__points li { display: flex; gap: 12px; align-items: flex-start; }
.lead__points svg { width: 22px; height: 22px; color: var(--gold-light); flex: none; margin-top: 2px; }
.lead__form { background: var(--paper); color: var(--ink); border-radius: var(--r-l); padding: clamp(22px, 3.5vw, 36px); display: grid; gap: 18px; min-width: 0; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.intent { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.intent input { position: absolute; opacity: 0; pointer-events: none; }
.intent label {
  cursor: pointer; padding: 16px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line);
  display: flex; align-items: center; gap: 12px; font-weight: 700; transition: all .25s var(--ease);
}
.intent label svg { width: 26px; height: 26px; flex: none; color: var(--ink-soft); transition: color .25s; }
.intent input:checked + label { box-shadow: inset 0 0 0 2px var(--ink); background: var(--mist); }
.intent input:checked + label svg { color: var(--gold); }
.intent input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.lead__summary { background: var(--mist); border-radius: 14px; padding: 14px 16px; font-size: .9rem; display: none; gap: 4px; }
.lead__summary.is-shown { display: grid; animation: fadeUp .5s var(--ease); }
.lead__summary b { font-variant-numeric: tabular-nums; }
.consent { display: flex; gap: 10px; font-size: .84rem; color: var(--ink-soft); align-items: flex-start; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.form-error { color: var(--danger); font-size: .86rem; font-weight: 600; min-height: 1.2em; }
.lead__form .btn { width: 100%; }
.success { text-align: center; display: grid; gap: 14px; justify-items: center; padding-block: 24px; }
.success svg { width: 76px; height: 76px; color: var(--sea); }
.success svg path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .8s .2s var(--ease) forwards; }
@media (max-width: 920px) { .lead { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .intent { grid-template-columns: 1fr; } }

/* ---------- Этапы ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; padding: 26px 22px 24px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; min-width: 0; }
.step__num { font-family: var(--f-display); font-size: .9rem; font-weight: 600; color: var(--gold); display: flex; align-items: center; gap: 10px; }
.step__num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step p { color: var(--ink-soft); font-size: .94rem; }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Почему мы ---------- */
.why { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.why__quote { font-family: var(--f-display); font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.3; font-weight: 500; }
.why__quote b { color: var(--gold); font-weight: 500; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why__item { display: grid; gap: 8px; padding: 22px; border-radius: var(--r-m); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background .3s, transform .4s var(--ease); min-width: 0; }
.why__item:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.why__item svg { width: 30px; height: 30px; color: var(--gold-light); }
.why__item h3 { color: #fff; font-size: 1.05rem; }
.why__item p { color: var(--on-dark-soft); font-size: .92rem; }
@media (max-width: 920px) { .why { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .why__grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-m); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-weight: 700; position: relative; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2a44' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .faq__body { padding: 0 24px 22px; color: var(--ink-soft); }

/* ---------- Контакты и карта ---------- */
.contacts { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: stretch; }
.contacts__card { background: var(--ink); color: var(--on-dark); border-radius: var(--r-l); padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 24px; align-content: start; min-width: 0; }
.contacts__card h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.c-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.c-item__ico { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: var(--gold-light); }
.c-item__ico svg { width: 22px; height: 22px; }
.c-item__label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-soft); font-weight: 700; }
.c-item a { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.12rem; display: inline-block; font-variant-numeric: tabular-nums; }
.c-item a:hover { color: var(--gold-light); }
.c-item p { color: var(--on-dark); }
.c-item small { color: var(--on-dark-soft); display: block; font-size: .86rem; }
.hours { display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.hours div { display: flex; justify-content: space-between; gap: 12px; max-width: 280px; }
.hours .off { color: var(--on-dark-soft); }
.open-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(44,122,107,.25); color: #9fe0cf; width: fit-content; max-width: 100%; line-height: 1.35; }
.open-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
.open-badge.is-closed { background: rgba(255,255,255,.08); color: var(--on-dark-soft); }
.open-badge.is-closed::before { animation: none; }

.map { position: relative; border-radius: var(--r-l); overflow: hidden; min-height: 460px; background: #e6edf3; border: 1px solid var(--line); min-width: 0; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.map__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__pin { position: absolute; left: 50%; top: 43%; transform: translate(-50%, -100%); display: grid; justify-items: center; pointer-events: none; z-index: 2; }
.map__pin-dot { width: 54px; height: 54px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-m); animation: drop 1s var(--ease) both; }
.map__pin-dot img { width: 34px; height: 34px; transform: rotate(45deg); }
.map__pin::after { content: ""; width: 60px; height: 18px; border-radius: 50%; background: rgba(15,42,68,.18); margin-top: 6px; animation: ripple 2.4s infinite; }
.map__overlay {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 3;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-m); padding: 16px 18px; box-shadow: var(--shadow-m);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.map__overlay p { font-size: .92rem; line-height: 1.4; min-width: 0; }
.map__overlay b { display: block; font-size: 1rem; }
.map__overlay .btn { padding: 11px 18px; font-size: .9rem; }
.map.has-frame .map__art, .map.has-frame .map__pin { display: none; }
@media (max-width: 920px) { .contacts { grid-template-columns: 1fr; } .map { min-height: 400px; } }

/* ---------- Подвал ---------- */
.footer { background: var(--ink-deep); color: var(--on-dark-soft); padding-block: 48px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .92rem; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer .logo__name { color: #fff; }
.footer .logo__sub { color: var(--on-dark-soft); }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: .95rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: .84rem; }
@media (max-width: 1020px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Плавающая кнопка звонка (мобильные) ---------- */
.fab {
  position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: none; place-items: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--ink-deep); box-shadow: var(--shadow-m);
  transform: scale(0); transition: transform .4s var(--ease);
}
.fab svg { width: 26px; height: 26px; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(198,154,63,.6); animation: ring 2.4s infinite; }
.fab.is-shown { transform: scale(1); }
@media (max-width: 920px) { .fab { display: grid; } }

/* ---------- Анимации при скролле: блоки собираются и разбираются ---------- */
.js [data-reveal] {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .9s var(--ease), filter .8s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: transform, opacity;
}
.js [data-reveal="up"] { transform: translateY(48px); }
.js [data-reveal="down"] { transform: translateY(-36px); }
.js [data-reveal="left"] { transform: translateX(-64px) rotate(-2deg); }
.js [data-reveal="right"] { transform: translateX(64px) rotate(2deg); }
.js [data-reveal="zoom"] { transform: scale(.86); filter: blur(6px); }
.js [data-reveal="flip"] { transform: perspective(900px) rotateX(24deg) translateY(40px); transform-origin: 50% 100%; }
.js [data-reveal="scatter"] { transform: translate(var(--sx, 0px), var(--sy, 60px)) rotate(var(--sr, 0deg)) scale(.9); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Ключевые кадры ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drop { from { opacity: 0; transform: rotate(-45deg) translate(-40px, -40px); } to { opacity: 1; transform: rotate(-45deg); } }
@keyframes ripple { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(198,154,63,.55); } 80%, 100% { box-shadow: 0 0 0 18px rgba(198,154,63,0); } }

@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; filter: none; }
}

/* Узкие телефоны: заголовок помещается в строку */
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(1.45rem, 6.6vw, 2rem); }
}

/* SEO: подзаголовок внутри H1 и адрес */
.hero h1 .h1-kicker, .page-hero h1 .h1-kicker { display: flex; font-family: var(--f-body); line-height: 1.4; margin-bottom: 18px; }
.c-addr { font-style: normal; }
main, .footer { overflow-x: clip; }

/* =========================================================
   Страницы услуг
   ========================================================= */
.svc li a { color: inherit; text-decoration: underline; text-decoration-color: rgba(198,154,63,.6); text-underline-offset: 3px; }
.svc li a:hover { color: var(--gold); }

.page-hero {
  position: relative; overflow: hidden;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(24px, 4vw, 48px));
  padding-bottom: clamp(48px, 7vw, 88px);
  background:
    radial-gradient(800px 420px at 90% 0%, rgba(198,154,63,.16), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(44,122,107,.1), transparent 60%),
    linear-gradient(180deg, #f7f9fc, var(--paper));
}
.page-hero__grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.page-hero__text { display: grid; gap: 20px; min-width: 0; }
.page-hero h1 { font-size: clamp(1.8rem, 4.4vw, 3.1rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.quick { background: var(--ink); color: var(--on-dark); border-radius: var(--r-l); padding: clamp(22px, 3vw, 32px); display: grid; gap: 12px; box-shadow: var(--shadow-m); min-width: 0; }
.quick p { color: var(--on-dark-soft); font-size: .95rem; }
.quick__tel { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.quick__tel:hover { color: var(--gold-light); }
.quick small { color: var(--on-dark-soft); }

.inc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.inc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px; display: grid; gap: 10px; align-content: start; min-width: 0; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.inc:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.inc__ico { width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: var(--gold-light); display: grid; place-items: center; }
.inc__ico svg { width: 24px; height: 24px; }
.inc p { color: var(--ink-soft); font-size: .95rem; }

.article { display: grid; gap: clamp(24px, 4vw, 56px); }
.article--docs { grid-template-columns: 1.3fr .9fr; align-items: start; }
.article__text { display: grid; gap: 16px; max-width: 70ch; min-width: 0; }
.article__text h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 6px; }
.article__text p { color: var(--ink-soft); font-size: 1.04rem; }
.docs { background: var(--mist); border-radius: var(--r-l); padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; min-width: 0; }
.docs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.docs li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .95rem; }
.docs li::before { content: ""; width: 18px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c69a3f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6.5A1.5 1.5 0 005 4.5v15A1.5 1.5 0 006.5 21h11a1.5 1.5 0 001.5-1.5V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3C/svg%3E") center/18px no-repeat; }
.docs__note { font-size: .84rem; color: var(--ink-soft); }

.steps--5 { grid-template-columns: repeat(5, 1fr); }

.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.rel { position: relative; display: grid; gap: 4px; padding: 20px 52px 20px 20px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.rel span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.rel b { font-size: 1.05rem; }
.rel svg { position: absolute; right: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; transition: transform .3s var(--ease); }
.rel:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: transparent; }
.rel:hover svg { transform: translateX(4px); }

@media (max-width: 1020px) {
  .inc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps--5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .page-hero__grid, .article--docs { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .inc-grid, .steps--5 { grid-template-columns: 1fr; }
}

/* Карта: скриншот местности с меткой офиса */
.map { display: flex; flex-direction: column; background: var(--paper); }
.map__frame { position: relative; flex: 1; min-height: 300px; overflow: hidden; }
.map__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 80.9% 75%; }
.map .map__pin { left: 80.9%; top: 75%; }
.map__tag {
  position: absolute; left: 80.9%; top: 75%; transform: translate(-50%, 14px); z-index: 2; white-space: nowrap;
  background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow-s);
}
.map .map__pin::after { display: none; }
.map__overlay { position: static; margin: 0; border-radius: 0; box-shadow: none; background: var(--paper); border-top: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 920px) { .map__frame { min-height: 280px; } .map { min-height: 0; } }
.map { min-height: 0; align-self: start; }
.map__frame { flex: none; min-height: 0; aspect-ratio: 769 / 416; max-width: 100%; }
.map__tag { transform: translate(-82%, 12px); }
@media (max-width: 920px) { .map__frame { min-height: 0; } }
@media (max-width: 560px) {
  .map__pin-dot { width: 36px; height: 36px; }
  .map__pin-dot img { width: 22px; height: 22px; }
  .map__tag { font-size: .68rem; padding: 4px 8px; transform: translate(-82%, 8px); }
}
/* Метка офиса: узкое здание у ул. 8 Марта */
.map .map__pin, .map__tag { left: 29.1%; top: 49.3%; }
.map__tag { transform: translate(-50%, 12px); }
@media (max-width: 560px) { .map__tag { transform: translate(-50%, 8px); } }
