/* ============================================================
   Профи Стейдж — стили сайта
   Палитра и типографика взяты из Figma-шаблона Profi-Stage-v2
   ============================================================ */

@import url("fonts.css");

:root {
  --navy: #1f3755;
  --navy-2: #2d4868;
  --navy-dark: #152538;
  --olive: #a8a830;
  --olive-dark: #8c8c2a;
  --cream: #f7f7f2;
  --ink: #0a0a0a;
  --white: #ffffff;

  --text-strong: var(--navy);
  --text-muted: rgba(0, 0, 0, 0.6);
  --text-faint: rgba(0, 0, 0, 0.4);
  --border-soft: rgba(0, 0, 0, 0.06);
  --border-card: rgba(0, 0, 0, 0.08);

  --font-head: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1240px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 14px;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-pop: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-header: 0 16px 50px -16px rgba(31, 55, 85, 0.28);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* гасим горизонтальный «вылет» от slide-in reveal-анимаций
     (data-reveal=left/right сдвигают элементы по X до появления);
     clip не создаёт скролл-контейнер и не ломает position: sticky */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fbfbf3;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Фоновое свечение — оливковый градиент из правого верхнего угла */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 820px at 100% -60px,
      rgba(168, 168, 48, 0.30) 0%,
      rgba(168, 168, 48, 0.14) 32%,
      rgba(168, 168, 48, 0.04) 55%,
      transparent 72%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

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

/* ---- helpers ---- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--olive);
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero .eyebrow::before {
  content: "";
  width: 48px;
  height: 3px;
  background: var(--olive);
  flex: 0 0 auto;
}
.tick {
  width: 48px;
  height: 3px;
  background: var(--olive);
  border: 0;
  margin: 0 0 24px;
}
.h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--navy);
  margin: 14px 0 0;
}
.lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

section { position: relative; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="scale"] { transform: scale(0.94); }
/* На узких экранах боковой въезд заменяем вертикальным: при tight-полях
   translateX(±36px) у полноширинных блоков вылезает за вьюпорт, и мобильный
   layout viewport через пару секунд расширяется (шапка «уезжает» вправо). */
@media (max-width: 1180px) {
  [data-reveal="left"],
  [data-reveal="right"] { transform: translateY(28px); }
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
/* каскад внутри группы */
[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal-group].is-in > * {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-group] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 12px 0;
}
/* въезд шапки сверху при первой загрузке */
.site-header {
  transform: translateY(-140%);
  opacity: 0;
  transition:
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s ease;
  will-change: transform, opacity;
}
.site-header.is-ready {
  transform: none;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .site-header {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 78px;
  padding: 0 16px 0 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  box-shadow: var(--shadow-header);
}

/* logo */
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo-img { height: 40px; width: auto; display: block; }

/* nav */
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: 8px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.7);
  padding: 6px 0;
  position: relative;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--olive);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after,
.nav-item.is-open > .nav-link::after { width: 100%; }
.nav-link .chev { transition: transform 0.25s ease; }
.nav-item.is-open .nav-link .chev { transform: rotate(180deg); }

.header-spacer { flex: 1 1 auto; }
.header-actions { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.header-phone {
  font-weight: 700;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.78);
  white-space: nowrap;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 12px 22px;
  transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid rgba(0, 0, 0, 0.1);
}
.btn-ghost:hover { border-color: var(--navy); }
.btn-lg { padding: 16px 26px; font-size: 13px; }

/* mega menu */
.mega {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(560px, 92vw);
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(31, 55, 85, 0.35);
  padding: 24px 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.nav-item.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-col h4 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--olive);
}
.mega-link { display: block; margin-bottom: 12px; }
.mega-link:last-child { margin-bottom: 0; }
.mega-link .t {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.15s ease;
}
.mega-link .d {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 1px;
  line-height: 1.35;
}
.mega-link:hover .t { color: var(--olive-dark); }

/* burger (mobile) */
.burger { display: none; background: none; border: 0; padding: 8px; }
.burger svg { width: 26px; height: 26px; color: var(--navy); }

/* затемнение под выезжающей панелью (создаётся в script.js) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 25, 40, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: transparent;
  padding: 168px 0 96px;
}

/* ===== Хореография появления hero при загрузке ===== */
.hero .hero-photo,
.hero .hero-badge,
.hero .eyebrow,
.hero h1,
.hero .lead,
.hero .hero-cta,
.hero .hero-points,
.hero .hero-chip {
  opacity: 0;
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.hero .hero-photo  { transform: scale(0.975); }
.hero .hero-badge  { transform: scale(0.7); }
.hero .eyebrow,
.hero h1,
.hero .lead,
.hero .hero-cta,
.hero .hero-points { transform: translateY(22px); }
.hero .hero-chip   { transform: translate(-26px, 30px); }

.hero.is-ready .hero-photo,
.hero.is-ready .hero-badge,
.hero.is-ready .eyebrow,
.hero.is-ready h1,
.hero.is-ready .lead,
.hero.is-ready .hero-cta,
.hero.is-ready .hero-points,
.hero.is-ready .hero-chip {
  opacity: 1;
  transform: none;
}
/* очерёдность: картинка → бейдж → текст сверху вниз → плашка */
.hero.is-ready .hero-photo  { transition-delay: 0.05s; }
.hero.is-ready .hero-badge  { transition-delay: 0.40s; }
.hero.is-ready .eyebrow     { transition-delay: 0.55s; }
.hero.is-ready h1           { transition-delay: 0.70s; }
.hero.is-ready .lead        { transition-delay: 0.92s; }
.hero.is-ready .hero-cta    { transition-delay: 1.08s; }
.hero.is-ready .hero-points { transition-delay: 1.22s; }
.hero.is-ready .hero-chip   { transition-delay: 1.45s; }

@media (prefers-reduced-motion: reduce) {
  .hero .hero-photo,
  .hero .hero-badge,
  .hero .eyebrow,
  .hero h1,
  .hero .lead,
  .hero .hero-cta,
  .hero .hero-points,
  .hero .hero-chip {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  color: var(--navy);
  margin: 22px 0 0;
}
.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--olive);
  margin-top: 6px;
}
.hero p.lead { max-width: 520px; margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 30px;
}
.hero-point {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.hero-point svg { width: 16px; height: 16px; color: var(--olive); }

/* hero visual */
.hero-visual { position: relative; }
.hero-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 6.2;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 55%);
}
.hero-badge {
  position: absolute;
  top: -22px; right: 16px;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid; place-content: center;
  text-align: center;
  z-index: 2;
}
.hero-badge b { font-family: var(--font-head); font-size: 24px; font-weight: 500; line-height: 1; }
.hero-badge span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.9;
  line-height: 1.15;
  max-width: 78px;
}
.hero-chip {
  position: absolute;
  left: -28px; bottom: 56px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  padding: 18px 20px;
  width: 220px;
  z-index: 2;
}
.hero-chip .row { display: flex; align-items: center; gap: 9px; }
.hero-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 4px rgba(168, 168, 48, 0.18);
  animation: dotPulse 1.8s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(168, 168, 48, 0.45);
  }
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 7px rgba(168, 168, 48, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-chip .dot { animation: none; }
}
.hero-chip .row span {
  font-size: 11px; letter-spacing: 0.5px; color: rgba(0, 0, 0, 0.5);
}
.hero-chip p { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--navy); }

/* Ротация регионов внутри чипа: все слайды лежат в одной grid-ячейке,
   поэтому высота подстраивается под самый длинный (без скачков). */
.hero-chip-slides { display: grid; margin-top: 12px; }
.hero-chip-slides .hero-chip-slide {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  transform: translateY(9px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.hero-chip-slides .hero-chip-slide.is-active {
  opacity: 1;
  transform: none;
}
.hero-chip-slides .hero-chip-slide.is-leaving {
  opacity: 0;
  transform: translateY(-9px);
}
@media (prefers-reduced-motion: reduce) {
  .hero-chip-slides .hero-chip-slide { transition: none; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--navy); color: #fff; padding: 80px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: start;
}
.stat .tick { margin-bottom: 22px; transition: width 0.3s cubic-bezier(.22,.61,.36,1); }
.stat:hover .tick { width: 72px; }
.stat b {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(30px, 3.2vw, 44px);
  letter-spacing: -1px;
  line-height: 1.1;
  text-wrap: balance;
}
.stat p { margin: 10px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.6); max-width: 230px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 110px 0; background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.about-right .lead + .lead { margin-top: 0; }
.about-sub {
  font-size: 13px;
  letter-spacing: 0.6px;
  color: var(--navy);
  margin: 28px 0 8px;
}
.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 28px;
}
.about-feature {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--navy);
}
.about-feature svg { width: 20px; height: 20px; color: var(--olive); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--cream); padding: 110px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
}
.section-head .lead { max-width: 440px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
  padding: 29px 29px 33px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.service-card:hover::after { transform: scaleX(1); }
.service-ico {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  display: grid; place-items: center;
  color: var(--navy);
  margin-bottom: 22px;
}
.service-ico svg { width: 28px; height: 28px; }
.service-card h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 20px;
  color: var(--navy);
  margin: 0 0 10px;
}
.service-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.service-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  opacity: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--olive-dark);
  transition: opacity 0.25s ease;
}
.service-more svg { width: 15px; height: 15px; }
.service-card:hover .service-more { opacity: 1; }
@media (hover: none) {
  .service-more { opacity: 1; }
}

/* ============================================================
   CALCULATOR
   ============================================================ */
.calc { background: var(--navy); color: #fff; padding: 110px 0; }
.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}
/* Грид-элементы по умолчанию имеют min-width:auto и не сжимаются ниже своего
   min-content. В узких контейнерах (особенно в модалке калькулятора) это
   раздувало колонку шире сетки — контент справа упирался в край без отступа.
   Разрешаем колонкам сжиматься. */
.calc-grid > *,
.calc-modal-grid > * { min-width: 0; }
.calc .h2 { color: #fff; }
.calc-controls > .lead { color: rgba(255, 255, 255, 0.6); margin-top: 22px; max-width: 480px; }

.calc-block { margin-top: 40px; }
.calc-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}
.calc-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.calc-label-row .calc-label { margin-bottom: 0; }
.calc-area-val {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #fff;
}
.calc-area-val input {
  width: 96px;
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 400;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  text-align: right;
  padding: 0 4px 4px 0;
  -moz-appearance: textfield;
}
.calc-area-val input::-webkit-outer-spin-button,
.calc-area-val input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-area-val input:focus { outline: none; border-bottom-color: var(--olive); }
.calc-area-val .unit { font-size: 16px; color: rgba(255, 255, 255, 0.5); }

/* option grid (object type) */
.calc-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.calc-opt {
  padding: 14px 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.calc-opt:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.calc-opt.is-active {
  background: rgba(168, 168, 48, 0.18);
  border-color: var(--olive);
  color: #fff;
}

/* segmented (finish level) */
.calc-seg {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.calc-seg-btn {
  flex: 1 1 auto;
  white-space: nowrap;
  padding: 12px 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 0;
  border-radius: calc(var(--radius-sm) - 4px);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.calc-seg-btn:hover { color: #fff; }
.calc-seg-btn.is-active { background: var(--olive); color: #fff; }

/* addons */
.calc-addons { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-addon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px 11px 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.calc-addon::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background-repeat: no-repeat;
  background-position: center;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.calc-addon:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.calc-addon.is-active { border-color: var(--olive); color: #fff; }
.calc-addon.is-active::before {
  border-color: var(--olive);
  background-color: var(--olive);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 6L9 17l-5-5' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
}

/* range slider */
.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--olive);
  border: 3px solid var(--navy);
  box-shadow: 0 0 0 1px var(--olive);
  cursor: pointer;
}
.calc-range::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--olive);
  border: 3px solid var(--navy);
  box-shadow: 0 0 0 1px var(--olive);
  cursor: pointer;
}
.calc-range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* result card */
.calc-result { position: sticky; top: 102px; }
.calc-result-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5);
}
.calc-result-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.calc-total {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.05;
  color: var(--navy);
  margin: 10px 0 4px;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.calc-total-sub { display: block; font-size: 13px; color: var(--text-muted); }
.calc-total-sub b { font-weight: 600; color: var(--olive-dark); }
.calc-rows {
  margin: 28px 0;
  border-top: 1px solid var(--border-soft);
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.calc-row span { color: var(--text-muted); }
.calc-row b { font-weight: 500; color: var(--navy); font-size: 15px; }
.calc-extras { margin: 0 0 24px; }
.calc-extras-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.calc-extras-list { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-extra-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  font-size: 13px;
  color: var(--olive-dark);
  background: rgba(168, 168, 48, 0.12);
  border: 1px solid rgba(168, 168, 48, 0.32);
  border-radius: 999px;
}
.calc-extra-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--olive);
}
.calc-result-card .btn-primary { width: 100%; border-radius: var(--radius-sm); justify-content: center; }
.calc-note {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-faint);
}

/* ============================================================
   PROCESS (timeline)
   ============================================================ */
.process { padding: 110px 0; background: #fff; }
.process-head { max-width: 680px; margin-bottom: 64px; }
.process-head .lead { margin-top: 24px; }

.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 50%; top: 8px; bottom: 8px;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
  transform: translateX(-50%);
}
.tl-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 96px 1fr;
  align-items: start;
  margin-bottom: 56px;
}
.tl-step:last-child { margin-bottom: 0; }
.tl-num {
  grid-column: 2;
  justify-self: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-size: 13px;
  z-index: 2;
}
.tl-body { padding-top: 4px; }
.tl-step .tl-day { font-size: 12px; letter-spacing: 0.6px; color: var(--olive); display: block; margin-bottom: 6px; }
.tl-step h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 8px;
}
.tl-step p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* odd → right side, even → left side */
.tl-step.right .tl-body { grid-column: 3; text-align: left; }
.tl-step.left .tl-body { grid-column: 1; text-align: right; }
.tl-step.left .tl-day { }

/* ============================================================
   CASES
   ============================================================ */
.cases { background: var(--cream); padding: 110px 0; }
.cases-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; color: var(--navy);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.link-arrow:hover svg { transform: translate(3px, -3px); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.chip {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.18s ease;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.case-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 387 / 290;
  box-shadow: var(--shadow-card);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.case-card.is-hidden { display: none; }
.cases-empty {
  margin: 40px 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}
.case-bg { position: absolute; inset: 0; }
.case-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.12) 52%, rgba(0,0,0,0) 100%);
}
.case-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 11px;
  letter-spacing: 0.5px;
  z-index: 2;
}
.case-info { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; }
.case-info h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 8px;
}
.case-meta { font-size: 13px; color: rgba(255, 255, 255, 0.85); }

/* ============================================================
   TEAM
   ============================================================ */
.team { padding: 110px 0; background: #fff; }
.team-head { max-width: 680px; margin-bottom: 56px; }
.team-head .lead { margin-top: 22px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 72px;
}
.member-ava {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 34px;
  margin-bottom: 18px;
  overflow: hidden;
}
.member-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.member h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  margin: 0;
}
.member .role { font-size: 13px; color: var(--olive); margin: 4px 0 8px; }
.member p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* trust strip */
.trust {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
}
.trust-label {
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
}
.trust-logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 48px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 8px;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.trust-logos::-webkit-scrollbar { display: none; }
.trust-logos.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.trust-logos span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  opacity: 0.9;
  flex: 0 0 auto;
  scroll-snap-align: center;
  white-space: nowrap;
  user-select: none;
  padding: 12px 22px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}
.trust-logos span:hover {
  opacity: 1;
  border-color: rgba(0, 0, 0, 0.32);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}
.trust-logos span:active { transform: translateY(0); }
.trust-logos .trust-logo-img {
  flex: 0 0 auto;
  scroll-snap-align: center;
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.82;
  user-select: none;
  -webkit-user-drag: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease, filter 0.2s ease;
}
.trust-logos .trust-logo-img:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.trust-logos .trust-logo-img:active { transform: translateY(0); }

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts {
  background: radial-gradient(1500px 1100px at -5% -12%, rgba(168, 168, 48, 0.26) 0%, rgba(168, 168, 48, 0.13) 30%, rgba(168, 168, 48, 0.05) 52%, rgba(168, 168, 48, 0.015) 70%, rgba(168, 168, 48, 0) 85%), #1f3755;
  color: #fff;
  padding: 110px 0;
  overflow: hidden;
  position: relative;
}
.contacts::before {
  content: "";
  position: absolute;
  left: -360px; top: -420px;
  width: 1050px; height: 1050px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 168, 48, 0.34) 0%, rgba(168, 168, 48, 0.12) 45%, rgba(168, 168, 48, 0) 72%);
  filter: blur(150px);
  pointer-events: none;
}
.contacts-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contacts-left .h2 { color: #fff; }
.contacts-left .lead { color: rgba(255, 255, 255, 0.6); margin-top: 24px; max-width: 460px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.contact-ico {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid; place-items: center;
  color: var(--olive);
  flex: 0 0 auto;
}
.contact-ico svg { width: 20px; height: 20px; }
.contact-row .ct b { display: block; font-weight: 400; font-size: 16px; color: #fff; }
.contact-row .ct span { font-size: 13px; color: rgba(255, 255, 255, 0.4); }
.contacts-left .link-arrow { color: var(--olive); margin-top: 36px; font-size: 13px; letter-spacing: 0.6px; }

/* form card */
.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--navy);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.18s ease, background 0.18s ease;
  resize: vertical;
}
.field textarea { min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(0, 0, 0, 0.35); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--olive);
  background: #fff;
}
.form-card .btn-primary { width: 100%; border-radius: var(--radius-sm); padding: 16px; margin-top: 4px; }
.form-note { text-align: center; font-size: 12px; color: var(--text-faint); margin: 16px 0 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-dark); color: #fff; padding: 80px 0 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-about .logo-img { height: 54px; filter: brightness(0) invert(1); }
.footer-about p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  margin: 24px 0;
  max-width: 320px;
}
.footer-contact { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-contact .ic {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid; place-items: center;
  color: var(--olive);
  flex: 0 0 auto;
}
.footer-contact .ic svg { width: 16px; height: 16px; }
.footer-contact b { font-weight: 400; font-size: 16px; }
.footer-contact span { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.4); }
.footer-social { display: flex; gap: 12px; margin-top: 26px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid; place-items: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.18s ease;
}
.footer-social a:hover { color: var(--olive); border-color: var(--olive); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 22px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 13px; }
.footer-col a { font-size: 14px; color: rgba(255, 255, 255, 0.7); transition: color 0.15s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-bottom-links a:hover { color: #fff; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 17, 20, 0.62);
  -webkit-backdrop-filter: saturate(115%) blur(0px);
  backdrop-filter: saturate(115%) blur(0px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  -webkit-backdrop-filter: saturate(115%) blur(10px);
  backdrop-filter: saturate(115%) blur(10px);
}
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  padding: 40px;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.05);
  color: var(--navy);
  display: grid; place-items: center;
  transition: background 0.18s ease;
}
.modal-close:hover { background: rgba(0, 0, 0, 0.1); }
.modal-close svg { width: 18px; height: 18px; }
.modal h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.3px;
  color: var(--navy);
  margin: 14px 0 0;
}
.modal > .lead { font-size: 14px; margin: 12px 0 0; max-width: 460px; }

/* Модалка юридических документов (политика, согласие) — широкая, со скроллом текста */
.modal-doc {
  max-width: 780px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  padding: 34px 40px;
}
.modal-doc .modal-doc-title {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 23px;
  letter-spacing: -0.3px;
  color: var(--navy);
  margin: 12px 44px 0 0;
}
.modal-doc-body {
  margin-top: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 12px;
  flex: 1 1 auto;
}
.modal-doc-foot { margin: 14px 0 0; font-size: 13px; }
.modal-doc-foot a { color: var(--olive); }
.modal-doc-loading { color: var(--text-muted); font-size: 14px; }

/* Читаемый текст документов — общий для страницы (page.php) и модалки */
.prose { color: var(--text); font-size: 15px; line-height: 1.65; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.2px;
  color: var(--navy);
  margin: 28px 0 10px;
}
.prose h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin: 20px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 0 0 7px; }
.prose a { color: var(--olive); text-decoration: underline; }
.prose strong { color: var(--navy); }
.prose em { color: var(--text-muted); }
.doc-page .doc-content { max-width: 820px; margin-top: 26px; }

/* сводка расчёта в форме заявки */
.modal-summary {
  margin-top: 20px;
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.modal-summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.modal-summary-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.modal-summary-total {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 18px;
  color: var(--navy);
  white-space: nowrap;
}
.modal-summary-rows { margin: 14px 0 0; }
.ms-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  font-size: 14px;
}
.ms-row dt { color: var(--text-muted); }
.ms-row dd { margin: 0; font-weight: 500; color: var(--navy); text-align: right; }
.modal-summary-extras { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.modal-summary-extras-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.modal-summary-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--olive-dark);
  background: rgba(168, 168, 48, 0.12);
  border: 1px solid rgba(168, 168, 48, 0.32);
  border-radius: 999px;
}
.ms-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--olive);
}
.modal-form { margin-top: 20px; }
.modal-form {
  margin-top: 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* success state */
.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(168, 168, 48, 0.12);
  border: 1px solid rgba(168, 168, 48, 0.4);
  color: var(--olive-dark);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  margin-top: 14px;
}
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; flex: 0 0 auto; }

/* ============================================================
   КАЛЬКУЛЯТОР В МОДАЛЬНОМ ОКНЕ
   (тёмная панель — элементы калькулятора рассчитаны на тёмный фон)
   ============================================================ */
.modal-calc {
  max-width: 920px;
  background: var(--navy);
  color: #fff;
}
.modal-calc .eyebrow { color: var(--olive); }
.modal-calc h3 { color: #fff; }
.modal-calc > .lead { color: rgba(255, 255, 255, 0.6); max-width: 520px; }
.modal-calc .modal-close { background: rgba(255, 255, 255, 0.12); color: #fff; }
.modal-calc .modal-close:hover { background: rgba(255, 255, 255, 0.22); }

.calc-modal-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
  margin-top: 26px;
}
.calc-modal-grid .calc-block:first-child { margin-top: 0; }
.calc-modal-grid .calc-result { position: static; top: auto; }
.calc-modal-grid .calc-result-card {
  padding: 28px;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.55);
}
@media (max-width: 760px) {
  .calc-modal-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1180px) {
  /* в баре остаётся только логотип + бургер */
  .burger { display: inline-flex; position: relative; z-index: 90; }
  .header-bar { padding-right: 10px; gap: 12px; }
  /* убираем containing-block у предков, иначе fixed-панель привяжется к шапке;
     поднимаем весь контекст шапки выше .nav-backdrop (80) — иначе панель,
     лежащая ВНУТРИ .site-header, оказывается под затемнением */
  .site-header { will-change: auto; z-index: 90; }
  .header-bar { backdrop-filter: none; }
  /* телефон/кнопку переносим в панель (JS); если остались в баре — прячем */
  .header-phone { display: none; }
  .header-bar > .header-actions { display: none; }

  /* ---- .main-nav превращается в выезжающую справа панель ---- */
  .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    padding: 84px 24px 32px;
    background: #fff;
    border-left: 1px solid var(--border-soft);
    box-shadow: -24px 0 70px -24px rgba(31, 55, 85, 0.5);
    transform: translateX(105%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 85;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body.nav-open .main-nav { transform: none; }

  .main-nav .nav-item { position: static; width: 100%; }
  .main-nav .nav-link {
    width: 100%;
    justify-content: space-between;
    font-size: 17px;
    color: var(--navy);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .main-nav .nav-link::after { display: none; }
  /* Активный раздел в мобильном меню: подчёркивание скрыто — выделяем акцентом. */
  .main-nav .nav-link[aria-current="page"] { color: var(--olive); font-weight: 600; }

  /* «Услуги» — аккордеон (тоггл .is-open переиспользуется из десктопа) */
  .main-nav .mega {
    position: static;
    transform: none;
    width: auto;
    display: block;
    opacity: 1;
    visibility: visible;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.34s ease;
  }
  .main-nav .nav-item.is-open .mega { transform: none; max-height: 1600px; }
  .main-nav .mega-col { padding: 14px 0 6px; }
  .main-nav .mega-col h4 { margin: 0 0 8px; }
  .main-nav .mega-link { padding: 8px 0; margin-bottom: 0; }
  .main-nav .mega-link .d { font-size: 12px; }

  /* перенесённый блок «телефон + Получить смету» внизу панели */
  .main-nav .header-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border-soft);
  }
  .main-nav .header-phone {
    display: block;
    font-size: 18px;
    text-align: center;
    color: var(--navy);
  }
  .main-nav .header-actions .btn { width: 100%; }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: 1fr; gap: 48px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }

  /* калькулятор → одна колонка, результат не липкий */
  .calc-grid { grid-template-columns: 1fr; gap: 44px; }
  .calc-result { position: static; top: auto; }

  /* timeline → single column, left aligned */
  .timeline::before { left: 24px; }
  .tl-step { grid-template-columns: 48px 1fr; gap: 0 24px; }
  .tl-num { grid-column: 1; justify-self: start; }
  .tl-step.left .tl-body,
  .tl-step.right .tl-body { grid-column: 2; text-align: left; }
}
/* ============================================================
   CONTACTS PAGE (contacts.html)
   ============================================================ */
.nav-link.is-active,
.nav-link[aria-current="page"] { color: var(--navy); }
.nav-link.is-active::after,
.nav-link[aria-current="page"]::after { width: 100%; }

/* page hero */
.page-hero { padding: 170px 0 64px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
  transition: color 0.18s ease;
}
.back-link svg {
  width: 16px; height: 16px;
  color: var(--olive);
  transition: transform 0.2s ease;
}
.back-link:hover { color: var(--navy); }
.back-link:hover svg { transform: translateX(-4px); }
.page-hero-intro { max-width: 760px; }
.page-hero h1 {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -1.2px;
  color: var(--navy);
  margin: 18px 0 0;
}
.page-hero h1 em { font-style: normal; color: var(--olive); }
.page-hero .lead { max-width: 560px; margin-top: 22px; }

/* "Сейчас на связи" card */
.page-hero-aside {
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px 28px;
}
.page-hero-aside .row { display: flex; align-items: center; gap: 10px; }
.page-hero-aside .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 4px rgba(168, 168, 48, 0.18);
  animation: dotPulse 1.8s ease-in-out infinite;
}
.page-hero-aside .row span { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-faint); }
.page-hero-aside b {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 24px;
  color: var(--navy);
  margin: 14px 0 6px;
  letter-spacing: -0.3px;
}
.page-hero-aside p { margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* hours highlight inside navy contacts block */
.hours-card {
  margin-top: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}
.hours-card .row { display: flex; align-items: center; gap: 10px; }
.hours-card .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 4px rgba(168, 168, 48, 0.18);
  animation: dotPulse 1.8s ease-in-out infinite;
}
.hours-card .row span { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.hours-card b {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 24px;
  color: #fff;
  margin: 14px 0 6px;
  letter-spacing: -0.3px;
}
.hours-card p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.55); line-height: 1.55; }

/* contact methods */
.methods { padding: 8px 0 96px; }
.methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.method-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
  padding: 28px 26px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.method-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.method-ico {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  display: grid; place-items: center;
  color: var(--navy);
  margin-bottom: 20px;
}
.method-ico svg { width: 26px; height: 26px; }
.method-card .label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--olive);
}
.method-card .val {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 19px;
  color: var(--navy);
  margin: 10px 0 6px;
  letter-spacing: -0.2px;
}
.method-card .sub { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.method-card .val:hover { color: var(--olive-dark); }

/* office info inside navy contacts block */
.office-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.office-stat b {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 26px;
  color: #fff;
  letter-spacing: -0.4px;
}
.office-stat span { font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.messengers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.messenger-btn svg { width: 18px; height: 18px; color: var(--olive); }
.messenger-btn:hover { border-color: var(--olive); background: rgba(168, 168, 48, 0.12); }

/* map */
.map-section { padding: 0 0 110px; background: #fff; }
.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  aspect-ratio: 1240 / 460;
  background: var(--cream);
  box-shadow: var(--shadow-card);
}
.map-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.25) contrast(1.02);
}
.map-card {
  position: absolute;
  left: 28px; top: 28px;
  width: 320px;
  max-width: calc(100% - 56px);
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  padding: 22px 24px;
  z-index: 2;
}
.map-card-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 10px;
}
.map-card b {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.2px;
}
.map-card-sub { display: block; font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.map-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}
.map-card-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.map-card-link:hover { color: var(--olive-dark); }
.map-card-link:hover svg { transform: translate(2px, -2px); }

/* requisites */
.requisites { padding: 96px 0; background: var(--cream); }
.req-head { max-width: 640px; margin-bottom: 48px; }
.req-head .lead { margin-top: 20px; }
.req-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.req-item { background: #fff; padding: 26px 28px; }
.req-item .k {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-faint);
}
.req-item .v { font-size: 16px; color: var(--navy); margin-top: 8px; font-weight: 500; }

@media (max-width: 1080px) {
  .methods-grid { grid-template-columns: repeat(2, 1fr); }
  .req-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   CONTACTS — Figma template layout (contacts.html)
   ============================================================ */
.contact-main { padding: 8px 0 110px; }
.contact-layout {
  display: grid;
  grid-template-columns: 552px 1fr;
  gap: 40px;
  align-items: start;
}
.contact-aside { display: flex; flex-direction: column; gap: 24px; }

/* 2×2 info cards */
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.info-ico {
  width: 40px; height: 40px;
  border-radius: 14px;
  background: var(--cream);
  display: grid; place-items: center;
  color: var(--navy);
  margin-bottom: 16px;
}
.info-ico svg { width: 20px; height: 20px; }
.info-val { font-size: 16px; color: var(--navy); font-weight: 500; letter-spacing: -0.1px; }
a.info-val { transition: color 0.15s ease; }
a.info-val:hover { color: var(--olive-dark); }
.info-sub { font-size: 13px; color: rgba(0, 0, 0, 0.45); margin-top: 6px; line-height: 1.5; }

/* messenger chips inside an info card */
.info-card--msg .info-val { margin-bottom: 14px; }
.msg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.msg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px 7px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.msg-chip svg { width: 15px; height: 15px; color: var(--olive); }
.msg-chip:hover { background: #fff; border-color: var(--olive); color: var(--olive-dark); }

/* map frame */
.map-frame-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: var(--cream);
  aspect-ratio: 552 / 322;
}

/* requisites — navy block */
.req-block { background: var(--navy); border-radius: 16px; padding: 28px; }
.req-block .eyebrow { color: var(--olive); margin-bottom: 16px; }
.req-lines { display: flex; flex-direction: column; gap: 7px; }
.req-lines span { font-size: 14px; color: rgba(255, 255, 255, 0.8); line-height: 1.5; }
.req-lines .req-name { color: #fff; font-weight: 500; }
.req-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.65px; text-transform: uppercase;
  color: var(--olive);
}
.req-link svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.req-link:hover { color: #c2c23c; }
.req-link:hover svg { transform: translate(2px, -2px); }

/* right column: “Сейчас на связи” stacked above the form */
.contact-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: start;
}

/* form card */
.contact-form-card { padding: 40px; }
.contact-form-card .field label { text-transform: uppercase; letter-spacing: 0.6px; font-size: 12px; font-weight: 500; color: rgba(0, 0, 0, 0.5); }

@media (max-width: 980px) {
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .map-frame-wrap { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .info-cards { grid-template-columns: 1fr; }
  .contact-form-card { padding: 26px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero { padding: 132px 0 72px; }
  .hero h1 { font-size: clamp(28px, 8vw, 38px); letter-spacing: -0.6px; }
  .hero p.lead { max-width: none; }
  /* CTA-кнопки в столбец на всю ширину */
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta .btn { width: 100%; }
  .hero-chip { left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .services-grid, .cases-grid, .team-grid { grid-template-columns: 1fr; }
  .mega { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .calc-options { grid-template-columns: repeat(2, 1fr); }
  .modal, .form-card { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .about, .services, .process, .cases, .team, .contacts { padding: 72px 0; }
  .methods-grid, .req-grid { grid-template-columns: 1fr; }
  .office-stats { grid-template-columns: 1fr 1fr; }
  .map-wrap { aspect-ratio: 3 / 4; }
  .map-card { left: 16px; top: 16px; padding: 18px 20px; }
}

/* ============================================================
   ABOUT PAGE (about.html)
   ============================================================ */

/* page hero with key facts */
.about-hero { padding: 170px 0 72px; }
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 72px;
  align-items: end;
}
.about-hero-grid .page-hero-intro { max-width: none; }
.about-keyfacts {
  display: grid;
  gap: 14px;
}
.keyfact {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}
.keyfact:first-child { border-top: 1px solid var(--border-soft); }
.keyfact b {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.6px;
  color: var(--navy);
  line-height: 1.15;
  flex: 0 0 42%;
  max-width: 170px;
  text-wrap: balance;
}
.keyfact span { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* mission: text + real photo */
.mission { padding: 96px 0 110px; background: #fff; }
.mission-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.mission-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  box-shadow: 0 25px 50px -16px rgba(31, 55, 85, 0.3);
}
.mission-photo img { width: 100%; height: 100%; object-fit: cover; }
.mission-photo .mission-tag {
  position: absolute;
  left: 22px; bottom: 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-pop);
}
.mission-tag b { display: block; font-family: var(--font-head); font-weight: 500; font-size: 17px; color: var(--navy); }
.mission-tag span { font-size: 12px; color: var(--text-muted); }
.mission-copy .lead + .lead { margin-top: 18px; }
.mission-quote {
  margin: 30px 0 0;
  padding-left: 22px;
  border-left: 3px solid var(--olive);
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.5;
  color: var(--navy);
  letter-spacing: -0.2px;
}
.mission-sign { display: block; margin-top: 14px; font-family: var(--font-body); font-size: 13px; color: var(--text-muted); letter-spacing: 0.3px; }
.mission-clients {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  font-size: 15px;
}
.mission-clients b { color: var(--navy); font-weight: 600; }

/* history timeline by years */
.history { padding: 110px 0; background: var(--cream); }
.history-head { max-width: 680px; margin-bottom: 56px; }
.history-head .lead { margin-top: 22px; }
.hist-line {
  position: relative;
  max-width: 780px;
}
.hist-line::before {
  content: "";
  position: absolute;
  left: 9px; top: 10px; bottom: 10px;
  width: 1px;
  background: rgba(0, 0, 0, 0.12);
}
.hist-step {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  padding-left: 40px;
  padding-bottom: 40px;
}
.hist-step:last-child { padding-bottom: 0; }
.hist-dot {
  position: absolute;
  left: 1px; top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--olive);
  border: 4px solid var(--cream);
  box-shadow: 0 0 0 1px rgba(168, 168, 48, 0.5);
}
.hist-year {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.4px;
  color: var(--olive-dark);
  padding-top: 1px;
}
.hist-body h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 19px;
  color: var(--navy);
  margin: 0 0 7px;
}
.hist-body p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); max-width: 480px; }

/* documents & guarantees */
.docs { padding: 100px 0; background: #fff; }
.docs-head { max-width: 680px; margin-bottom: 52px; }
.docs-head .lead { margin-top: 22px; }
.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.doc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 28px 26px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); border-color: transparent; }
.doc-ico {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  display: grid; place-items: center;
  color: var(--navy);
  margin-bottom: 20px;
}
.doc-ico svg { width: 26px; height: 26px; }
.doc-card h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 8px;
}
.doc-card p { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--olive-dark);
}
.doc-link svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.doc-link:hover svg { transform: translate(2px, -2px); }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1300px 760px at 100% -10%, rgba(168, 168, 48, 0.28) 0%, rgba(168, 168, 48, 0.12) 34%, rgba(168, 168, 48, 0.03) 56%, transparent 72%), var(--navy);
  color: #fff;
  padding: 96px 0;
}
.cta-inner {
  position: relative;
  max-width: 740px;
  text-align: center;
  margin: 0 auto;
}
.cta-inner .tick { margin: 0 auto 24px; }
.cta-inner .eyebrow { color: var(--olive); }
.cta-inner h2 {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.8px;
  color: #fff;
  margin: 14px 0 0;
}
.cta-inner h2 em { font-style: normal; color: var(--olive); }
.cta-inner p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  max-width: 520px;
  margin: 22px auto 0;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
}
.cta-actions .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.cta-actions .btn-ghost:hover { border-color: #fff; }
.cta-phone {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.2px;
}

@media (max-width: 920px) {
  .about-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .mission-grid { grid-template-columns: 1fr; gap: 40px; }
  .mission-photo { order: -1; }
  .docs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .about-hero { padding: 132px 0 56px; }
  .history, .docs, .cta-band { padding: 72px 0; }
  .hist-step { grid-template-columns: 1fr; gap: 4px; padding-left: 36px; }
}

/* ============================================================
   ПОДЛОЖКА ВТОРОСТЕПЕННЫХ СТРАНИЦ
   Вместо радиального свечения справа — мягкий вертикальный
   градиент: оливковый у шапки, плавно тающий в белый к футеру.
   Привязан к высоте документа (absolute, inset:0), поэтому
   тянется от самого верха до низа страницы.
   ============================================================ */
body.subpage {
  position: relative;
  background: #ffffff;
}
/* отключаем общий радиальный градиент справа */
body.subpage::before {
  position: absolute;
  inset: 0;
  height: 100%;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(168, 168, 48, 0.10) 0%,
    rgba(168, 168, 48, 0.075) 8%,
    rgba(168, 168, 48, 0.05) 20%,
    rgba(168, 168, 48, 0.03) 34%,
    rgba(168, 168, 48, 0.015) 48%,
    rgba(168, 168, 48, 0.006) 60%,
    #ffffff 74%,
    #ffffff 100%
  );
}

/* нейтральные секции делаем прозрачными, чтобы градиент-подложка
   был непрерывным от шапки до футера */
body.subpage .cases-catalog,
body.subpage .cd-section.alt,
body.subpage .mission,
body.subpage .services,
body.subpage .history,
body.subpage .docs,
body.subpage .team {
  background: transparent;
}

/* ============================================================
   СРАВНЕНИЕ ВИДОВ РЕМОНТА (страница услуги)
   ============================================================ */
.compare { padding: 110px 0; background: #fff; }
.compare-head { max-width: 680px; margin-bottom: 52px; }
.compare-head .lead { margin-top: 22px; }
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.compare-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 32px 28px;
}
.compare-card.is-featured {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: var(--shadow-pop);
}
.compare-badge {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--olive);
  border-radius: 999px;
}
.compare-card h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 22px;
  color: var(--navy);
}
.compare-card.is-featured h3 { color: #fff; }
.compare-tag { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.compare-card.is-featured .compare-tag { color: rgba(255, 255, 255, 0.65); }
.compare-price {
  margin: 16px 0 2px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 18px;
  color: var(--olive-dark);
}
.compare-card.is-featured .compare-price { color: var(--olive); }
.compare-features {
  list-style: none;
  margin: 18px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border-card);
  display: grid;
  gap: 12px;
}
.compare-card.is-featured .compare-features { border-top-color: rgba(255, 255, 255, 0.16); }
.compare-features li {
  position: relative;
  padding-left: 27px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--navy);
}
.compare-card.is-featured .compare-features li { color: rgba(255, 255, 255, 0.88); }
.compare-features li svg {
  position: absolute;
  left: 0;
  top: 2px;
  width: 17px;
  height: 17px;
  color: var(--olive-dark);
}
.compare-card.is-featured .compare-features li svg { color: var(--olive); }

/* ============================================================
   FAQ (страница услуги) — нативный аккордеон details/summary
   ============================================================ */
.faq { padding: 100px 0; background: var(--cream); }
.faq-head { max-width: 680px; margin-bottom: 40px; }
.faq-list { max-width: 880px; display: grid; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0 26px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-card); border-color: rgba(0, 0, 0, 0.12); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.4;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; border-radius: 4px; }
.faq-icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--olive-dark);
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  margin: 0;
  padding: 0 0 24px;
  max-width: 72ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

@media (max-width: 920px) {
  .compare-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .compare, .faq { padding: 72px 0; }
  .compare-card { padding: 26px 22px; }
  .faq-item { padding: 0 20px; }
  .faq-item summary { font-size: 16px; }
}

/* ===== Свободный блок редактора WordPress на странице услуги (single-service.php) ===== */
.service-content { padding: 60px 0; }
/* В полную ширину контейнера (в отличие от узкой .doc-page .doc-content). */
.service-content .service-prose { max-width: 100%; }
.service-content .service-prose > :last-child { margin-bottom: 0; }
/* Картинки и медиа не вылезают за контейнер. */
.service-content .service-prose img,
.service-content .service-prose video,
.service-content .service-prose iframe { max-width: 100%; height: auto; }
/* Выравнивания блоков Gutenberg (тема классическая — поддержку добавляем сами). */
.service-content .alignwide { margin-left: calc(-1 * clamp(0px, 6vw, 120px)); margin-right: calc(-1 * clamp(0px, 6vw, 120px)); }
.service-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; max-width: 100vw; }
.service-content .aligncenter { margin-left: auto; margin-right: auto; }
@media (max-width: 920px) {
  .service-content { padding: 48px 0; }
  .service-content .alignwide { margin-left: 0; margin-right: 0; }
}
