/* ═══════════════════════════════════════════════════════
   ВЕКТОР ПРАВА — style.css
   Общие стили. Страничные — в <style> внутри HTML.
   ═══════════════════════════════════════════════════════ */

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DESIGN TOKENS (п.7: единый :root) ──────────────── */
:root {
  /* Цвета */
  --ink:        #111318;
  --graphite:   #2a2d35;
  --mid:        #4a4f5e;
  --muted:      #8a8f9e;
  --rule:       #e2e4ea;
  --snow:       #f8f9fc;
  --white:      #ffffff;
  --navy:       #0e1a3a;
  --navy-deep:  #090f28;
  --gold:       #b8922a;
  --gold-light: #d4aa4a;
  /* п.12: --gold-rgb — legacy-подход для rgba().
     В браузерах с поддержкой color-mix() заменить на:
     color-mix(in srgb, var(--gold) 30%, transparent)  */
  --gold-rgb:   184, 146, 42;
  --success:    #16a34a;
  --error:      #dc2626;

  /* Геометрия */
  --radius:    2px;
  --header-h:  80px;

  /* п.14: spacing-токены — используются в section и утилитах */
  --space-sm:  28px;
  --space-md:  36px;
  --space-lg:  48px;
  --space-xl: 100px;  /* секционный отступ (desktop) */

  /* п.15: именованные z-index слои */
  --z-bg:       0;
  --z-above-bg: 2;
  --z-sticky:  50;
  --z-header: 100;
  --z-overlay: 200;
  --z-modal:   300;
}

/* ── BASE ────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  /* п.9: действует при обычной прокрутке; при lockScroll (position:fixed)
     scroll-padding-top не влияет — это известный edge-case */
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

/* п.15: убран глобальный a { transition } — теперь только в нужных компонентах */

/* ── TYPOGRAPHY ──────────────────────────────────────── */
.display { font-family: 'Cormorant Garamond', serif; font-weight: 300; line-height: 1.1; }
h1, h2, h3 { font-weight: 400; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: 1.05rem; font-family: 'Inter', sans-serif; font-weight: 600; }
.eyebrow { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; }

/* ── LAYOUT ──────────────────────────────────────────── */
.container       { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container--wide { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
/* п.14: padding из токена вместо магического 100px */
section { padding: var(--space-xl) 0; }

/* ── UTILITY CLASSES ─────────────────────────────────── */
.text-center       { text-align: center; }
.mt-sm             { margin-top: var(--space-sm); }
.mt-md             { margin-top: var(--space-md); }
.mt-lg             { margin-top: var(--space-lg); }
.color-white       { color: var(--white); }
.color-muted-white { color: rgba(255,255,255,.5); }
.pos-relative      { position: relative; z-index: var(--z-above-bg); }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 30px;
  font-size: 0.85rem; font-family: 'Inter', sans-serif;
  font-weight: 500; letter-spacing: 0.06em;
  cursor: pointer; border: none; text-decoration: none;
  border-radius: var(--radius); white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, transform 0.2s ease,
              box-shadow 0.25s ease;
}
.btn:disabled,
.btn[disabled] { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover:not(:disabled) {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(var(--gold-rgb), 0.3);
}
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.35); }
.btn-outline:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.btn-dark    { background: var(--navy); color: var(--white); }
.btn-dark:hover:not(:disabled)    { background: var(--graphite); transform: translateY(-1px); }

/* .btn-outline-gold: самодостаточен — работает без .btn */
.btn-outline-gold {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px;
  font-size: 0.83rem; font-family: 'Inter', sans-serif;
  font-weight: 500; letter-spacing: 0.06em;
  cursor: pointer; text-decoration: none;
  border-radius: var(--radius); white-space: nowrap;
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn-outline-gold:hover:not(:disabled) {
  border-color: var(--gold);
  background: rgba(var(--gold-rgb), 0.08);
}
.btn-outline-gold:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

/* п.17: btn-sm уточняет gap и letter-spacing для малого размера */
.btn-sm {
  padding: 10px 20px;
  font-size: 0.8rem;
  gap: 6px;
  letter-spacing: 0.04em;
}
.btn-full { width: 100%; justify-content: center; }

/* Form submit states */
.form-submit.success     { background: var(--success); }
.form-submit.error-state { background: var(--error); }

/* ── HEADER ──────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-header); height: var(--header-h);
  transition: background-color 0.3s ease, border-color 0.3s ease,
              backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}
.site-header.scrolled,
.site-header.solid {
  background-color: rgba(14,26,58,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 40px; height: 100%;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px;
  border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; fill: var(--gold); }
.logo-name {
  font-family: 'Cormorant Garamond', serif; font-size: 1.2rem;
  font-weight: 400; letter-spacing: 0.05em;
  display: block; line-height: 1.1; color: var(--white);
}
.logo-tag {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); display: block; margin-top: 2px;
}
/* п.15: transition только на nav-ссылках, не на всех <a> */
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
  font-size: 0.82rem; color: rgba(255,255,255,0.7);
  text-decoration: none; letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--gold); }
.header-cta { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-phone {
  font-size: 0.95rem; font-weight: 600;
  color: var(--white); text-decoration: none; white-space: nowrap;
  transition: color 0.2s ease;
}
.header-phone:hover { color: var(--gold); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px; padding: 8px;
  background: none; border: none; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white); border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU ─────────────────────────────────────── */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: var(--navy);
  display: flex; flex-direction: column; overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateX(100%);
  transition:
    transform  0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    0.32s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s   linear 0.32s;
}
.mobile-menu.open {
  visibility: visible; opacity: 1; transform: translateX(0);
  transition:
    transform  0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    0.32s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s   linear 0s;
}
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08); flex-shrink: 0;
}
.mobile-menu-close {
  background: none; border: none; color: rgba(255,255,255,0.6);
  font-size: 1.4rem; cursor: pointer; padding: 8px;
  transition: color 0.2s; line-height: 1;
}
.mobile-menu-close:hover { color: var(--white); }
.mobile-menu-nav { flex: 1; padding: 4px 0; }
.mobile-menu-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; font-size: 1rem; font-weight: 500;
  color: rgba(255,255,255,0.75); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, background-color 0.2s;
}
.mobile-menu-nav a:hover { color: var(--white); background-color: rgba(255,255,255,0.04); }
.mobile-menu-nav a .arr { font-size: 0.75rem; color: rgba(255,255,255,0.2); }
.mobile-menu-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; }
.mobile-menu-phone {
  display: block; font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 300; color: var(--white);
  text-decoration: none; margin-bottom: 14px; line-height: 1.1;
  transition: color 0.2s ease;
}
.mobile-menu-phone:hover { color: var(--gold); }
.mobile-menu-cta {
  display: block; padding: 15px; background: var(--gold); color: var(--white);
  text-align: center; text-decoration: none; font-size: 0.88rem;
  font-weight: 600; letter-spacing: 0.06em;
  border-radius: 2px; margin-bottom: 12px;
  transition: background-color 0.25s;
  cursor: pointer; border: none; font-family: 'Inter', sans-serif; width: 100%;
}
.mobile-menu-cta:hover { background-color: var(--gold-light); }
.mobile-menu-msgs { display: flex; gap: 10px; }
.mobile-menu-msg {
  flex: 1; padding: 12px; border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55); text-decoration: none;
  text-align: center; font-size: 0.8rem; border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.mobile-menu-msg:hover { border-color: var(--gold); color: var(--gold); }

/* ── MODAL ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: flex; align-items: flex-end; justify-content: center;
  visibility: hidden;
  background-color: rgba(0,0,0,0);
  transition: background-color 0.3s ease, visibility 0s linear 0.3s;
}
.modal-overlay.open {
  visibility: visible;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color 0.3s ease, visibility 0s linear 0s;
}
.modal-sheet {
  background: var(--white); width: 100%; max-width: 520px;
  border-radius: 12px 12px 0 0; padding: 28px 24px 32px;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-handle {
  width: 40px; height: 4px; background: var(--rule);
  border-radius: 2px; margin: 0 auto 20px;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--muted);
  font-size: 1.2rem; cursor: pointer; padding: 4px;
  transition: color 0.2s; line-height: 1;
}
.modal-close:hover { color: var(--ink); }
.modal-title { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.modal-sub   { font-size: 0.8rem; color: var(--muted); margin-bottom: 20px; }

/* ── FORMS ───────────────────────────────────────────── */
.form-group { margin-bottom: 12px; }
.form-group label {
  display: block; font-size: 0.72rem; font-weight: 500;
  color: var(--mid); margin-bottom: 5px; letter-spacing: 0.03em;
}
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--rule); border-radius: var(--radius);
  font-size: 0.88rem; font-family: 'Inter', sans-serif; color: var(--ink);
  background-color: var(--snow);
  outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.form-control:focus { border-color: var(--gold); background-color: var(--white); }
/* п.5: при фокусе показываем gold-border даже если поле в состоянии error */
.form-control:focus.error { border-color: var(--gold); }
.form-control.error { border-color: var(--error); }
select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='none' stroke='%238a8f9e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 7px;
  padding-right: 38px;
}
textarea.form-control { resize: vertical; min-height: 80px; }
.form-error-msg { font-size: 0.72rem; color: var(--error); margin-top: 4px; display: none; }
.form-group.has-error .form-error-msg { display: block; }
.form-submit {
  width: 100%; padding: 14px; background: var(--navy); color: var(--white);
  border: none; border-radius: var(--radius);
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.05em;
  cursor: pointer; font-family: 'Inter', sans-serif; margin-top: 6px;
  transition: background-color 0.25s ease, transform 0.2s ease;
}
.form-submit:hover:not(:disabled) { background-color: var(--gold); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.form-privacy { font-size: 0.7rem; color: var(--muted); margin-top: 10px; text-align: center; line-height: 1.5; }
.form-guarantee-text strong { display: block; font-size: .75rem; color: var(--ink); margin-bottom: 2px; }
.form-guarantee-text { font-size: .72rem; color: var(--mid); line-height: 1.4; }

/* ── FLOATING BUTTONS ────────────────────────────────── */
/* ── ВИДЖЕТ БЫСТРОЙ СВЯЗИ (стиль fire-sistema.ru) ──────────
   Кнопка «+» внизу справа. При клике раскрывает контакты
   с подписями. Анимация через CSS transform.
───────────────────────────────────────────────────────── */
.flo {
  position: fixed; bottom: 28px; right: 24px;
  z-index: var(--z-sticky);
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}

/* Список контактов — скрыт по умолчанию */
.flo-items {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
  transform: translateY(8px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.flo.open .flo-items {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}

/* Строка: подпись + кнопка */
.flo-item { display: flex; align-items: center; gap: 10px; }

.flo-label {
  background: rgba(14,26,58,.92); backdrop-filter: blur(6px);
  color: rgba(255,255,255,.9); font-size: .75rem;
  padding: 5px 12px; border-radius: 20px;
  border: 0.5px solid rgba(255,255,255,.12);
  white-space: nowrap; font-family: 'Inter', sans-serif;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Кнопки контактов */
.flo-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.flo-btn svg { width: 22px; height: 22px; fill: white; }
.flo-btn:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.flo-btn-call { background: var(--gold); }
.flo-btn-wa   { background: #25D366; }
.flo-btn-max  { background: #0077FF; }

/* Главная кнопка «+» / «✕» */
.flo-toggle {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,.4);
  transition: background .2s ease, transform .2s ease;
  flex-shrink: 0;
}
.flo-toggle:hover { background: var(--gold); transform: scale(1.06); }
.flo-toggle svg { width: 22px; height: 22px; stroke: white; color: white; }

/* Иконка «+» / «×» — переключение */
.flo-icon-close { display: none; }
.flo.open .flo-icon-plus  { display: none; }
.flo.open .flo-icon-close { display: block; }
.flo.open .flo-toggle { background: var(--gold); }

/* Мобильный */
@media (max-width: 600px) {
  .flo { bottom: 14px; right: 12px; }
  .flo-toggle { width: 48px; height: 48px; }
  .flo-btn { width: 44px; height: 44px; }
}

/* ── SECTION HEADER ──────────────────────────────────── */
.section-header { margin-bottom: 56px; }
.section-header .eyebrow { color: var(--gold); margin-bottom: 14px; }
.section-header p { color: var(--muted); margin-top: 14px; max-width: 500px; font-size: 0.95rem; }

/* ── BREADCRUMB ──────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
/* п.15: transition только на breadcrumb-ссылках */
.breadcrumb a {
  font-size: 0.75rem; color: rgba(255,255,255,0.4); text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep, .breadcrumb > span { font-size: 0.75rem; color: rgba(255,255,255,0.25); }

/* ── PAGE HEADER ─────────────────────────────────────── */
.page-header { background: var(--navy); padding: 160px 0 80px; position: relative; overflow: hidden; }
.page-header-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 80% 30%, rgba(107,26,42,.15) 0%, transparent 60%),
              linear-gradient(135deg, #0e1a3a, #172248);
}
.page-header-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, rgba(0,0,0,.5) 0%, transparent 70%);
  mask-image:         radial-gradient(ellipse at 30% 50%, rgba(0,0,0,.5) 0%, transparent 70%);
}
.page-header-inner { position: relative; z-index: var(--z-above-bg); max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.page-header-eyebrow { color: var(--gold); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.page-header-eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); }
.page-header h1 { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(2.2rem, 4.5vw, 4rem); color: var(--white); margin-bottom: 20px; }
.page-header-sub { color: rgba(255,255,255,.55); font-size: .98rem; max-width: 500px; line-height: 1.75; }

/* ── REVEAL / STAGGER ────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.stagger-children > * {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-children.visible > *:nth-child(1)   { opacity:1;transform:none;transition-delay:.04s; }
.stagger-children.visible > *:nth-child(2)   { opacity:1;transform:none;transition-delay:.10s; }
.stagger-children.visible > *:nth-child(3)   { opacity:1;transform:none;transition-delay:.16s; }
.stagger-children.visible > *:nth-child(4)   { opacity:1;transform:none;transition-delay:.22s; }
.stagger-children.visible > *:nth-child(5)   { opacity:1;transform:none;transition-delay:.28s; }
.stagger-children.visible > *:nth-child(6)   { opacity:1;transform:none;transition-delay:.34s; }
.stagger-children.visible > *:nth-child(7)   { opacity:1;transform:none;transition-delay:.38s; }
.stagger-children.visible > *:nth-child(8)   { opacity:1;transform:none;transition-delay:.42s; }
.stagger-children.visible > *:nth-child(n+9) { opacity:1;transform:none;transition-delay:.46s; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item:first-child { border-top: 1px solid var(--rule); }

/* п.11: полный сброс <button> стилей */
.faq-question {
  /* button reset */
  -webkit-appearance: none; appearance: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'Inter', sans-serif;
  /* component styles */
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; cursor: pointer; font-weight: 500;
  font-size: .9rem; color: var(--ink); gap: 16px; user-select: none;
  transition: color 0.2s ease;
}
.faq-question:hover { color: var(--gold); }
.faq-toggle {
  color: var(--muted); font-size: 1.1rem; flex-shrink: 0;
  transition: transform .3s ease, color .2s ease; line-height: 1;
  /* не позволяем +/- менять выравнивание при смене символа */
  min-width: 1em; text-align: center;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); color: var(--gold); }

/* п.10: JS управляет высотой через scrollHeight.
   CSS задаёт только overflow и transition — никакого grid-rows trick */
.faq-answer {
  overflow: hidden;
  /* height управляется JS через scrollHeight (initFaq).
     Fallback без JS: содержимое видно (progressive enhancement) */
  transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
/* п.5: JS добавляет этот класс при инициализации чтобы отключить transition
   без инлайн style.transition='none' (избегаем хрупкой JS↔CSS зависимости) */
/* Только .faq-answer — не трогаем потомков, чтобы не подавить их анимации */
.faq-no-transition .faq-answer {
  transition: none !important;
}
.faq-answer-inner {
  padding: 0 0 20px;
  font-size: .83rem; color: var(--muted); line-height: 1.85;
}

/* ── FOOTER ──────────────────────────────────────────── */
footer { background: var(--navy-deep); padding: 64px 0 32px; color: rgba(255,255,255,.4); }
.footer-top {
  display: grid; grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 52px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 32px;
}
.footer-col h4 { font-size:.75rem; letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.55); margin-bottom:18px; font-weight:500; }
.footer-intro  { margin-top: 14px; }
.footer-col p  { font-size:.82rem; line-height:1.7; margin-bottom:16px; }
/* п.15: transition на конкретных footer-ссылках */
.footer-col-phone { color: rgba(255,255,255,.65); text-decoration: none; font-size: .92rem; display: block; transition: color 0.2s ease; }
.footer-col-phone:hover { color: var(--gold); }
.footer-col-meta { color: rgba(255,255,255,.28); font-size: .8rem; margin-top: 4px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size:.82rem; color:rgba(255,255,255,.38); text-decoration:none; transition: color 0.2s ease; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; font-size:.75rem; }
.footer-legal  { display:flex; gap:20px; }
.footer-legal a { color:rgba(255,255,255,.28); text-decoration:none; transition: color 0.2s ease; }
.footer-legal a:hover { color:rgba(255,255,255,.6); }

/* ── REVIEW PLATFORM ─────────────────────────────────── */
.review-platform { display:flex; align-items:center; gap:5px; font-size:.68rem; color:var(--muted); }
.review-platform svg { width:14px; height:14px; flex-shrink:0; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-top .footer-col:first-child { grid-column: 1 / -1; }
}

/* 1024px breakpoint merged into 900px */
  .header-inner { padding: 0 24px; }
  .site-nav { gap: 22px; }
  .site-nav a { font-size: .8rem; }
}

@media (max-width: 900px) {
  .container, .container--wide { padding: 0 28px; }
  .header-inner { padding: 0 24px; }
  .site-nav { gap: 22px; }
  .site-nav a { font-size: .8rem; }
  :root { --header-h: 64px; --space-xl: 60px; }
  .site-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .container, .container--wide { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
  .page-header { padding: 108px 0 52px; }
  .page-header-inner { padding: 0 16px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-top .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --space-xl: 48px; }
  body { padding-bottom: 84px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-top .footer-col:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-legal  { flex-wrap: wrap; justify-content: center; }
  .floating-cta  { bottom: 14px; right: 12px; gap: 8px; }
  .float-btn     { width: 46px; height: 46px; }
  .float-btn svg { width: 20px; height: 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration:  0.01ms !important;
  }
  html { scroll-behavior: auto; }
  /* FAQ: при reduced-motion раскрываем без анимации */
  .faq-answer { transition: none; }
}

/* ── UTILITY CLASSES (additional) ────────────────────────── */
.sticky-sidebar  { position: sticky; top: 100px; align-self: start; }
.w-zero          { width: 0; }               /* grid spacer */
.max-w-560       { max-width: 560px; }
.max-w-500       { max-width: 500px; }
.footer-mini     { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 32px; }
.footer-mini-col-phone { font-size: .9rem; color: rgba(255,255,255,.7); text-decoration: none; display: block; margin-bottom: 6px; transition: color 0.2s ease; }
.footer-mini-col-phone:hover { color: var(--gold); }
.footer-mini-hours { font-size: .75rem; color: rgba(255,255,255,.3); }
.footer-mini-h4 { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 14px; font-weight: 500; }
.footer-mini-li  { margin-bottom: 8px; }
.footer-mini-a   { font-size: .8rem; color: rgba(255,255,255,.35); text-decoration: none; transition: color 0.2s ease; }
.footer-mini-a:hover { color: var(--gold); }
.footer-mini-a--active { color: rgba(255,255,255,.6); }
.price-note-dark  { color: rgba(255,255,255,.35); }
.cta-pos-relative { position: relative; z-index: 2; }
.faq-phone-link   { display: block; margin-top: 20px; font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--ink); text-decoration: none; font-weight: 300; transition: color 0.2s ease; }
.faq-phone-link:hover { color: var(--gold); }
.cases-cta-center { text-align: center; margin-top: 36px; }
.way-featured-text { color: rgba(255,255,255,.55); }
.lead-constrained  { max-width: 560px; }
.lead-constrained-sm { max-width: 500px; }

.faq-sub-text { font-size: .9rem; color: var(--muted); line-height: 1.7; }

/* ── SHARED: cases + blog utility classes ────────────────── */
/* header CTA row */
.header-cta-row   { display: flex; align-items: center; gap: 20px; }

/* case problem text */
.case-problem-text { font-size: .8rem; color: var(--muted); margin-top: 10px; }

/* case quote attribution */
.case-quote-attr  { color: rgba(255,255,255,.6); font-size: .72rem; }

/* cases pagination / "показаны N из M" */
.cases-more       { text-align: center; margin-top: 48px; padding: 24px; border: 1px dashed var(--rule); color: var(--muted); font-size: .85rem; }
.cases-more a     { color: var(--gold); text-decoration: none; transition: opacity 0.2s; }
.cases-more a:hover { opacity: .75; }

/* CTA section (dark bg) shared pattern */
.cta-eyebrow      { color: var(--gold); margin-bottom: 14px; }
.cta-title-white  { color: var(--white); font-size: clamp(2rem,3.5vw,3rem); margin-bottom: 14px; }
.cta-sub-muted    { color: rgba(255,255,255,.5); max-width: 440px; margin: 0 auto 36px; font-size: .92rem; }
.cta-actions-row  { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* footer-mini (same pattern used across inner pages) */
.footer-bottom-copy  { font-size: .75rem; }
.footer-bottom-legal { display: flex; gap: 20px; }

/* breadcrumb arrow */
.bc-arrow { color: rgba(255,255,255,.2); }

/* blog glossary CTA link */
.glossary-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: .82rem; color: var(--gold); text-decoration: none; font-weight: 500; transition: opacity 0.2s; }
.glossary-link:hover { opacity: .75; }

/* ── TOPBAR ──────────────────────────────────────────── */
.topbar{background:rgba(9,16,40,.97);border-bottom:1px solid rgba(255,255,255,.06);font-size:.7rem;color:rgba(255,255,255,.45);letter-spacing:.02em}
.topbar-inner{max-width:1200px;margin:0 auto;padding:7px 40px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.topbar-left{display:flex;align-items:center;gap:10px}
.topbar-right{display:flex;align-items:center;gap:12px}
.topbar-item{display:flex;align-items:center;gap:5px}
.topbar-sep{color:rgba(255,255,255,.15)}
.topbar-social{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:rgba(255,255,255,.07);color:rgba(255,255,255,.5);transition:background .2s,color .2s;text-decoration:none}
.topbar-social:hover{background:rgba(184,146,42,.25);color:var(--gold)}
.topbar-phone{color:rgba(255,255,255,.65);text-decoration:none;font-weight:500;transition:color .2s}
.topbar-phone:hover{color:var(--gold)}
@media(max-width:768px){.topbar{display:none}}

/* ── CALL-BACK DROP ──────────────────────────────────── */
.call-back-drop{position:fixed;top:0;left:0;right:0;z-index:calc(var(--z-sticky) + 10);background:var(--white);border-bottom:1px solid var(--rule);box-shadow:0 8px 32px rgba(0,0,0,.15);transform:translateY(-110%);transition:transform .3s cubic-bezier(0.4,0,0.2,1);pointer-events:none}
.call-back-drop.open{transform:translateY(0);pointer-events:auto}
.call-back-drop-inner{max-width:600px;margin:0 auto;padding:24px 40px;position:relative}
.call-back-drop-title{font-size:.85rem;font-weight:600;color:var(--ink);margin-bottom:14px}
.call-back-drop-form{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:start}
.call-back-drop-form .form-group{margin:0}
.call-back-drop-form .btn{padding:10px 20px;white-space:nowrap;align-self:end;margin-bottom:1px}
.call-back-drop-close{position:absolute;top:16px;right:16px;background:none;border:none;cursor:pointer;color:var(--muted);font-size:1.1rem;line-height:1;padding:4px;transition:color .2s}
.call-back-drop-close:hover{color:var(--ink)}
@media(max-width:600px){.call-back-drop-form{grid-template-columns:1fr}.call-back-drop-inner{padding:20px 16px}}

/* ── STATS SECTION ───────────────────────────────────── */
.stats-section{background:var(--navy);border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06)}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.stats-card{padding:40px 32px;text-align:center;border-right:1px solid rgba(255,255,255,.07);transition:background .2s}
.stats-card:last-child{border-right:none}
.stats-card:hover{background:rgba(255,255,255,.03)}
.stats-val{font-family:'Cormorant Garamond',serif;font-size:clamp(2.5rem,4vw,3.5rem);font-weight:300;color:var(--gold);line-height:1;margin-bottom:8px}
.stats-label{font-size:.8rem;font-weight:500;color:var(--white);margin-bottom:4px}
.stats-sub{font-size:.68rem;color:rgba(255,255,255,.35);letter-spacing:.04em;text-transform:uppercase}
@media(max-width:900px){.stats-grid{grid-template-columns:repeat(2,1fr)}.stats-card{border-bottom:1px solid rgba(255,255,255,.07)}}
@media(max-width:480px){.stats-card{padding:28px 16px}.stats-val{font-size:2.2rem}}

/* ── SERVICE CARDS UPGRADE ───────────────────────────── */
.service-card-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:14px}
.service-card{display:flex;flex-direction:column}
.service-card h3{font-size:1rem;font-weight:600;color:var(--ink);margin-bottom:10px;line-height:1.3}
.service-card p{font-size:.8rem;color:var(--muted);line-height:1.7;margin-bottom:20px;flex:1}
.service-badge{font-size:.6rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;padding:3px 8px;border-radius:2px;background:rgba(184,146,42,.12);color:var(--gold);border:.5px solid rgba(184,146,42,.3);white-space:nowrap}
.service-badge--hot{background:rgba(220,50,50,.1);color:#e05050;border-color:rgba(220,50,50,.25)}
.service-footer{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:14px;border-top:1px solid var(--rule)}
.service-cta{font-size:.75rem;font-weight:500;color:var(--gold);letter-spacing:.02em}
.service-card--featured{background:rgba(184,146,42,.03);border:1px solid rgba(184,146,42,.18)!important}
.service-card--featured:hover{background:rgba(184,146,42,.06)}
