:root, [data-theme="light"] {
  /* === НЕБЕСНО-ГОЛУБАЯ ПАЛИТРА — светлая тема (по умолчанию) === */
  --navy: #1E3A5F;          /* основной тёмно-синий — цвет пиджака */
  --navy-deep: #142845;     /* ещё темнее, для глубоких фонов */
  --navy-soft: #2C5285;     /* более светлый синий, для переливов */
  --sky: #6FA3D1;           /* небесно-голубой, акцентный */
  --sky-light: #BFD9EE;     /* светло-голубой, лёгкий акцент */
  --sky-pale: #E9F1F8;      /* почти белый с голубым оттенком */
  --bone: #F0EDE3;          /* кремово-белый */
  --bone-warm: #E5DDC9;     /* тёплый бежевый */
  --paper: #F6F9FC;         /* основной фон — холодноватый светлый */
  --bronze: #B8915C;        /* акцентный коричневый (бронза) */
  --bronze-deep: #8E6B3E;
  --bronze-light: #D4B584;
  --line: rgba(111, 163, 209, 0.28);
  --line-warm: rgba(184, 145, 92, 0.22);
  --text-on-dark: #E8EFF7;
  --text-muted-dark: rgba(232, 239, 247, 0.65);
  --text-on-light: #1E3A5F;
  --text-muted-light: rgba(30, 58, 95, 0.65);
  --surface-elev: #FFFFFF;
}

/* === ТЁМНАЯ ТЕМА === */
[data-theme="dark"] {
  --navy: #0F1F36;            /* фон ещё темнее, чтоб контрастировал */
  --navy-deep: #08111F;
  --navy-soft: #1B324F;
  --sky: #7FB3DF;
  --sky-light: #A8C8E3;
  --sky-pale: #1B2C44;
  --bone: #E8EFF7;
  --bone-warm: #D6E0EC;
  --paper: #0F1F36;           /* основной фон — тёмный */
  --bronze: #C9A878;
  --bronze-deep: #B8915C;
  --bronze-light: #DFC79A;
  --line: rgba(168, 200, 227, 0.22);
  --line-warm: rgba(201, 168, 120, 0.22);
  --text-on-dark: #E8EFF7;
  --text-muted-dark: rgba(232, 239, 247, 0.65);
  --text-on-light: #E8EFF7;
  --text-muted-light: rgba(232, 239, 247, 0.65);
  --surface-elev: #1A2D47;
}

[data-theme="dark"] body { color: var(--text-on-light); }
[data-theme="dark"] .section-light,
[data-theme="dark"] .section-white { background: var(--paper); color: var(--text-on-light); }
[data-theme="dark"] .section-bone { background: #1B2C44; }
[data-theme="dark"] .section h2 { color: var(--bone); }
[data-theme="dark"] .about-content p { color: var(--bone); }
[data-theme="dark"] .credential-value { color: var(--bone); }
[data-theme="dark"] .section-intro { color: var(--bone); }
[data-theme="dark"] .svc-column { background: var(--surface-elev); border-color: var(--line); }
[data-theme="dark"] .svc-column-title { color: var(--bone); }
[data-theme="dark"] .svc-item summary { color: var(--bone); }
[data-theme="dark"] .svc-item ul li { color: var(--text-muted-dark); }
[data-theme="dark"] .pricing-table { background: var(--surface-elev); }
[data-theme="dark"] .pricing-name { color: var(--bone); }
[data-theme="dark"] .pricing-desc { color: var(--text-muted-dark); opacity: 1; }
[data-theme="dark"] .price-block-title { color: var(--bone); }
[data-theme="dark"] .pricing-row:hover { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .header { background: rgba(15, 31, 54, 0.92); }
[data-theme="dark"] .legal-page { background: var(--paper); }
[data-theme="dark"] .legal-page h1,
[data-theme="dark"] .legal-page h2,
[data-theme="dark"] .legal-page p,
[data-theme="dark"] .legal-page li { color: var(--bone); }

/* Плавный переход между темами */
body, .section, .header, .svc-column, .pricing-table, .legal-page {
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Times New Roman', Times, Georgia, serif;
  background: var(--paper);
  color: var(--text-on-light);
  line-height: 1.55;
  font-weight: 400;
  font-size: 17px;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  font-style: normal !important;
}

/* убрать любой курсив на сайте */
em, i, .em-flat, h2 em, h1 em {
  font-style: normal !important;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* === SCROLL PROGRESS BAR — тонкая бронзовая полоса вверху, заполняется при скролле === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--bronze-deep), var(--bronze), var(--bronze-light));
  box-shadow: 0 0 8px rgba(184, 145, 92, 0.4);
  z-index: 200;
  pointer-events: none;
  transition: width 0.1s ease-out;
  will-change: width;
}

/* === HEADER === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(30, 58, 95, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(111, 163, 209, 0.2);
  z-index: 100;
  transition: transform 0.4s ease, background 0.3s ease;
}
.header.hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  font-family: 'Times New Roman', Times, Georgia, serif; font-weight: 700;
  font-size: 22px;
  color: var(--bone);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: 0.02em;
}
.logo-mark {
  width: 38px; height: 38px;
  border: 1px solid var(--bronze);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--bronze);
  font-weight: 600;
  font-family: 'Times New Roman', Times, Georgia, serif; font-weight: 700;
}
.logo-sub {
  display: block;
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--bronze);
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 500;
}

.nav { display: flex; gap: 36px; }
.nav a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.25s;
}
.nav a:hover { color: var(--bronze-light); }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--bronze);
  transition: width 0.3s ease;
}
.nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 24px; }
.header-phone {
  color: var(--bone);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.25s;
}
.header-phone:hover { color: var(--bronze-light); }
.header-phone svg { stroke: var(--bronze); flex-shrink: 0; }
.phone-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.phone-stack span {
  font-size: 13px;
  color: var(--text-muted-dark);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-pill { border-radius: 999px; }
.btn-primary {
  background: var(--bronze);
  color: var(--navy);
  border: 1px solid var(--bronze);
}
.btn-primary:hover {
  background: var(--bronze-light);
  border-color: var(--bronze-light);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -10px rgba(184, 145, 92, 0.5);
}
.btn-outline {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--bronze);
}
.btn-outline:hover { background: var(--bronze); color: var(--navy); }

/* Контекстный фикс: outline-кнопка внутри СВЕТЛЫХ карточек (quiz, калькулятор, модалка заявки) —
   кремовый текст на белом не виден, делаем тёмным.
   В тёмной теме карточки сами тёмные — возвращаем кремовый. */
.quiz-box .btn-outline,
.calc-box .btn-outline,
.lead-modal .btn-outline {
  color: var(--navy);
  border-color: var(--bronze-deep);
}
.quiz-box .btn-outline:hover,
.calc-box .btn-outline:hover,
.lead-modal .btn-outline:hover {
  background: var(--bronze);
  color: #FFFFFF;
  border-color: var(--bronze);
}
[data-theme="dark"] .quiz-box .btn-outline,
[data-theme="dark"] .calc-box .btn-outline,
[data-theme="dark"] .lead-modal .btn-outline {
  color: var(--bone);
  border-color: var(--bronze);
}

/* Кнопки в hero — одинаковая ширина */
.hero-clean-actions .btn {
  min-width: 280px;
  justify-content: center;
}

.burger {
  display: none;
  background: none;
  border: none;
  width: 32px; height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--bone);
  transition: transform 0.3s, opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

/* === HERO CLEAN === */
.hero { background: var(--navy); color: var(--text-on-dark); position: relative; overflow: hidden; }
.hero-clean { padding: 200px 0 120px; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(111, 163, 209, 0.18), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(184, 145, 92, 0.08), transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(191, 217, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 217, 238, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  opacity: 0.5;
}
.hero-clean-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bronze-light);
  margin-bottom: 32px;
  font-weight: 500;
  justify-content: center;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--bronze);
}
.hero-clean-title {
  font-size: clamp(44px, 6.5vw, 76px);
  color: var(--bone);
  margin-bottom: 24px;
  line-height: 1.05;
}
.hero-clean-title em {
  color: inherit;
  font-weight: inherit;
  font-style: normal !important;
}
.hero-clean-sub {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted-dark);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-clean-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* === SECTION === */
.section { padding: 120px 0; position: relative; }
.section-dark { background: var(--navy); color: var(--text-on-dark); }
.section-light { background: var(--paper); }
.section-bone { background: var(--bone); }
.section-white { background: #FFFFFF; }

.section-head {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
}
.section-num {
  font-family: 'Times New Roman', Times, Georgia, serif; font-weight: 700;
  font-size: 14px;
  color: var(--bronze);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
.section h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  margin-bottom: 0;
  color: var(--navy);
}
.section-dark h2 { color: var(--bone); }
.section h2 em {
  color: inherit;
  font-weight: inherit;
  font-style: normal !important;
}
/* em-flat: один наклон/один цвет (правка из 3.1) — без курсива, цвет наследуется */
.section h2 em.em-flat {
  font-style: normal;
  color: inherit;
}
.section-intro {
  font-size: 18px;
  color: var(--navy);
  line-height: 1.6;
  max-width: 520px;
}
.section-dark .section-intro { color: var(--text-muted-dark); }

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.about-photo {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--navy-soft), var(--navy-deep));
  border: 1px solid var(--bronze);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.about-photo::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(184, 145, 92, 0.25);
  pointer-events: none;
}
.about-photo-real { background: var(--bone-warm); }
.about-photo-real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-photo-cap {
  position: absolute;
  bottom: 24px; left: 24px;
  font-family: 'Times New Roman', Times, Georgia, serif; font-weight: 700;
  color: var(--bone);
  font-size: 18px;
  
  z-index: 2;
  background: rgba(30, 58, 95, 0.6);
  padding: 4px 12px;
  backdrop-filter: blur(4px);
}
.about-content p {
  color: var(--navy);
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.7;
}
.about-credentials {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.credential {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.credential:last-child { border-bottom: none; }
.credential-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  flex: 0 0 140px;
  font-weight: 600;
  padding-top: 2px;
}
.credential-value {
  font-family: 'Times New Roman', Times, Georgia, serif; font-weight: 700;
  font-size: 19px;
  color: var(--navy);
}

/* === SERVICES — TWO COLUMNS WITH ACCORDION === */
.svc-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
}
/* Полоса-разделитель между разделом «Физлицам» и «Бизнесу» */
.svc-two-col::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--bronze);
  transform: translateX(-1px);
}
.svc-column {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 40px 40px;
}
.svc-column:first-child { border-right: none; }
.svc-column-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--bronze);
}
.svc-column-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bone-warm);
  color: var(--bronze-deep);
  flex-shrink: 0;
}
.svc-column-title {
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-size: 36px;
  color: var(--navy);
  font-weight: 700;
}

.svc-item {
  border-bottom: 1px solid var(--line);
}
.svc-item:last-child { border-bottom: none; }
.svc-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-size: 22px;
  color: var(--navy);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.25s;
}
.svc-item summary::-webkit-details-marker { display: none; }
.svc-item summary::after {
  content: '+';
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-size: 20px;
  color: var(--bronze);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--bronze);
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.25s, color 0.25s;
}
.svc-item[open] summary::after {
  content: '−';
  background: var(--bronze);
  color: var(--paper);
}
.svc-item summary:hover { color: var(--bronze-deep); }
.svc-item ul {
  margin: 0 0 18px 8px;
  padding-left: 20px;
  list-style: none;
}
.svc-item ul li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: 16px;
  color: var(--text-on-light);
  line-height: 1.55;
}
.svc-item ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 1px;
  background: var(--bronze);
}

/* === SERVICES — GROUPED (legacy, kept for reference) === */
.svc-group { margin-bottom: 64px; }
.svc-group:last-child { margin-bottom: 0; }
.svc-group-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.svc-group-num {
  font-family: 'Times New Roman', Times, Georgia, serif; font-weight: 700;
  font-size: 28px;
  color: var(--bronze);
  font-weight: 500;
  
}
.svc-group-title {
  font-family: 'Times New Roman', Times, Georgia, serif; font-weight: 700;
  font-size: 30px;
  color: var(--navy);
  font-weight: 500;
}
.svc-group-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-card {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background 0.3s ease;
  position: relative;
  cursor: pointer;
}
.service-card:hover {
  background: var(--navy);
  color: var(--text-on-dark);
}
.service-card:hover .service-icon { color: var(--bronze-light); }
.service-card:hover .service-desc { color: var(--text-muted-dark); }
.service-card:hover .service-more { color: var(--bronze-light); }

.service-icon {
  width: 38px; height: 38px;
  color: var(--bronze-deep);
  margin-bottom: 24px;
  transition: color 0.3s;
}
.service-title {
  font-family: 'Times New Roman', Times, Georgia, serif; font-weight: 700;
  font-size: 24px;
  margin-bottom: 12px;
  line-height: 1.2;
}
.service-desc {
  font-size: 14.5px;
  color: var(--text-muted-light);
  line-height: 1.65;
  margin-bottom: 20px;
  transition: color 0.3s;
}
.service-more {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: color 0.3s, gap 0.3s;
}
.service-card:hover .service-more { gap: 14px; }

/* === PROCESS === */
.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 60px;
  position: relative;
}
/* Жирнее линия между этапами (правка из 6.1) */
.process-line {
  position: absolute;
  top: 32px;
  left: 10%; right: 10%;
  height: 3px;
  background: var(--bronze);
  opacity: 0.55;
  z-index: 0;
}
.process-step { text-align: center; position: relative; padding: 0 12px; z-index: 1; }
.process-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--bronze);
  color: var(--bronze-light);
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  font-family: 'Times New Roman', Times, Georgia, serif; font-weight: 700;
  font-size: 24px;
  font-weight: 500;
}
.process-title {
  font-family: 'Times New Roman', Times, Georgia, serif; font-weight: 700;
  font-size: 19px;
  color: var(--bone);
  margin-bottom: 8px;
}
.process-desc {
  font-size: 13.5px;
  color: var(--text-muted-dark);
  line-height: 1.55;
}

/* === PRICING BLOCKS (multi-section) === */
/* === АККОРДЕОН ПРАЙСА (details) === */
.price-group {
  margin-bottom: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.price-group[open] {
  border-color: var(--bronze);
  box-shadow: 0 4px 24px rgba(20, 40, 69, 0.06);
}
.price-summary {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 22px 32px 22px 28px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}
.price-summary::-webkit-details-marker { display: none; }
.price-summary:hover { background: var(--bone-warm); }
.price-summary-num {
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--bronze-deep);
  letter-spacing: 0.12em;
}
.price-summary-title {
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
  line-height: 1.2;
}
.price-summary-meta {
  font-size: 14.5px;
  color: var(--navy);
  opacity: 0.7;
  white-space: nowrap;
}
.price-summary-icon {
  font-size: 18px;
  color: var(--bronze-deep);
  transition: transform 0.3s ease;
  display: inline-block;
}
.price-group[open] .price-summary-icon { transform: rotate(180deg); }
.price-group .pricing-table {
  border: none;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
  .price-summary {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "num title icon"
      "meta meta meta";
    gap: 8px 16px;
    padding: 18px 20px;
  }
  .price-summary-num   { grid-area: num; }
  .price-summary-title { grid-area: title; font-size: 19px; }
  .price-summary-meta  { grid-area: meta; opacity: 0.6; }
  .price-summary-icon  { grid-area: icon; }
}

/* legacy — старые блоки price-block, оставлены для совместимости */
.price-block { margin-bottom: 48px; }
.price-block:last-of-type { margin-bottom: 32px; }
.price-block-title {
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bronze);
}

/* === PRICING === */
.pricing-table {
  background: var(--paper);
  border: 1px solid var(--line);
}
.pricing-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 28px 100px 28px 40px; /* правый отступ 100px чтобы цена не залезала под плавающие кнопки */
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row:hover { background: var(--bone-warm); }
.pricing-service { display: flex; flex-direction: column; gap: 4px; }
.pricing-name {
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
}
.pricing-desc { font-size: 15px; color: var(--navy); opacity: 0.78; }
.pricing-price {
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--bronze-deep);
  white-space: nowrap;
}
.pricing-note {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--navy);
  color: var(--text-on-dark);
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 3px solid var(--bronze);
}
.pricing-note a {
  color: var(--bronze-light);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.pricing-note a:hover { text-decoration: underline; }

/* === CONTACTS === */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}
.contacts-list { display: flex; flex-direction: column; gap: 28px; }
.contact-block {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(232, 239, 247, 0.15);
}
.contact-block:last-child { border-bottom: none; }
.contact-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bronze-light);
  margin-bottom: 10px;
  font-weight: 600;
}
.contact-value {
  font-family: 'Times New Roman', Times, Georgia, serif; font-weight: 700;
  font-size: 26px;
  color: var(--bone);
  text-decoration: none;
  display: inline-block;
  transition: color 0.25s;
}
.contact-value:hover { color: var(--bronze-light); }

.contacts-map {
  background: var(--navy-soft);
  border: 1px solid rgba(184, 145, 92, 0.3);
  min-height: 480px;
  position: relative;
  overflow: hidden;
}
.contacts-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.3) contrast(0.95);
}

/* === CONTACT ACTIONS (карточки «Позвонить / MAX / Email») === */
.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.contact-action {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(111, 163, 209, 0.25);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-on-dark);
  transition: all 0.25s ease;
}
.contact-action:hover {
  background: rgba(111, 163, 209, 0.12);
  border-color: var(--sky);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -14px rgba(111, 163, 209, 0.5);
}
.contact-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s;
}
.contact-action:hover .contact-action-icon {
  background: var(--bronze);
}
.contact-action-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.contact-action-title {
  font-family: 'Times New Roman', Times, Georgia, serif; font-weight: 700;
  font-size: 20px;
  color: var(--bone);
  line-height: 1.1;
}
.contact-action-sub {
  font-size: 13px;
  color: var(--text-muted-dark);
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1024px) {
  .contact-actions { grid-template-columns: 1fr; }
}

/* === FOOTER === */
.footer {
  background: var(--navy-deep);
  color: var(--text-on-dark);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(184, 145, 92, 0.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-logo {
  font-family: 'Times New Roman', Times, Georgia, serif; font-weight: 700;
  font-size: 28px;
  color: var(--bone);
  margin-bottom: 16px;
}
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bronze-light);
  margin-bottom: 20px;
  font-weight: 600;
  font-family: 'Times New Roman', Times, Georgia, serif;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 14.5px;
  margin-bottom: 10px;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--bronze-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(184, 145, 92, 0.15);
  font-size: 12.5px;
  color: var(--text-muted-dark);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-disclaimer { max-width: 600px; line-height: 1.6; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--text-muted-dark);
  text-decoration: none;
  font-size: 12.5px;
}
.footer-links a:hover { color: var(--bronze-light); }

/* === STICKY (плавающие кнопки связи) === */
.sticky-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 90;
}
.sticky-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bronze);
  display: grid;
  place-items: center;
  color: white;
  text-decoration: none;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.sticky-btn:hover {
  transform: scale(1.08);
  background: var(--bronze-light);
  box-shadow: 0 12px 28px -8px rgba(184, 145, 92, 0.55);
}
.sticky-btn.top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.25s ease, background 0.25s ease;
}
.sticky-btn.top.visible { opacity: 1; pointer-events: auto; }

/* === КНОПКИ В ШАПКЕ: ТЕМА + ПОИСК === */
.header-icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid rgba(232, 239, 247, 0.18);
  border-radius: 50%;
  color: var(--bone);
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.header-icon-btn:hover {
  border-color: var(--bronze);
  color: var(--bronze-light);
  transform: translateY(-1px);
}
.header-icon-btn svg { display: block; }
.header-icon-btn .icon-sun { display: none; }
.header-icon-btn .icon-moon { display: block; }
[data-theme="dark"] .header-icon-btn .icon-sun { display: block; }
[data-theme="dark"] .header-icon-btn .icon-moon { display: none; }
.search-kbd {
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-size: 11px;
  padding: 1px 5px;
  border: 1px solid rgba(232, 239, 247, 0.25);
  border-radius: 4px;
  margin-left: 4px;
  color: var(--text-muted-dark);
}

/* === SEARCH OVERLAY (Ctrl+K) === */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 31, 54, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.search-overlay.visible { display: flex; opacity: 1; }
.search-modal {
  width: 100%;
  max-width: 640px;
  background: var(--surface-elev, #FFFFFF);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}
[data-theme="dark"] .search-input-wrap { color: var(--bone); }
.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-size: 17px;
  color: inherit;
}
.search-input-wrap input::placeholder { color: var(--text-muted-light); }
.search-input-wrap kbd {
  font-family: inherit;
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-muted-light);
}
.search-results {
  list-style: none;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  flex: 1;
}
.search-result {
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.search-result.active { background: rgba(111, 163, 209, 0.15); }
.search-result:hover { background: rgba(111, 163, 209, 0.12); }
.sr-section {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  font-weight: 700;
  margin-bottom: 2px;
}
.sr-title {
  font-size: 16px;
  color: var(--navy);
  font-weight: 700;
}
[data-theme="dark"] .sr-title { color: var(--bone); }
.search-result mark {
  background: rgba(184, 145, 92, 0.3);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}
.search-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted-light);
}
.search-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted-light);
}
.search-footer kbd {
  font-family: inherit;
  font-size: 10px;
  padding: 2px 6px;
  margin: 0 2px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
@media (max-width: 720px) {
  .search-modal { max-height: 80vh; }
  .search-overlay { padding-top: 8vh; }
  .search-footer { display: none; }
}

/* === REVEAL === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .about-grid, .contacts-grid, .svc-two-col { grid-template-columns: 1fr; gap: 48px; }
  /* На мобильном колонки идут друг под другом — вертикальный разделитель скрываем */
  .svc-two-col::before { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .process-list { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .process-line { display: none; }
  .contacts-map { min-height: 360px; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav, .header-phone { display: none; }
  /* CTA-кнопка в шапке на мобильном не помещается — скрываем, оставляем только лого + тема/поиск + бургер */
  .header-cta .btn { display: none; }
  .header-cta { gap: 10px; }
  .header.menu-open .nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
  }

  /* Плавающие кнопки: меньше и плотнее к краю, чтобы не наезжали на контент */
  .sticky-buttons {
    bottom: 14px;
    right: 10px;
    gap: 10px;
  }
  .sticky-btn {
    width: 44px;
    height: 44px;
  }
  .sticky-btn svg { width: 20px; height: 20px; }

  /* Прайс: имя сверху, цена снизу — чтобы цена не упиралась в плавающие кнопки */
  .pricing-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 22px;
  }
  .pricing-price {
    font-size: 22px;
    justify-self: start;
  }
  .pricing-name { font-size: 18px; }
  .pricing-desc { font-size: 14px; }

  /* Заголовки колонок «Физическим лицам» / «Для бизнеса» — уменьшаем чтобы не выезжали */
  .svc-column-title { font-size: 26px; line-height: 1.15; }
  .svc-column { padding: 28px 22px; }
  .svc-item summary { font-size: 18px; padding: 16px 0; gap: 10px; }

  /* Footer — в одну колонку, контакты не обрезаются */
  .footer-grid { grid-template-columns: 1fr !important; gap: 32px; }
  .footer { padding: 56px 0 32px; }
  .footer-logo { font-size: 22px; }

  /* Контакты на главной — стек, карта во всю ширину */
  .contacts-grid { grid-template-columns: 1fr; gap: 32px; }

  /* Заголовки разделов прайса (1. Консультации, 2. Судопроизводство...) */
  .price-block-title { font-size: 20px; line-height: 1.2; }

  /* Контейнер: запас справа, чтобы контент не залезал под sticky-кнопки */
  body { padding-right: 0; }
  section, .footer { padding-right: 6px; }
}

/* === СТАТИСТИКА (счётчики) === */
.stats-strip {
  background: var(--navy);
  color: var(--bone);
  padding: 60px 0;
  border-top: 1px solid rgba(111, 163, 209, 0.18);
  border-bottom: 1px solid rgba(111, 163, 209, 0.18);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.stat-card {
  text-align: center;
  padding: 20px 16px;
  position: relative;
}
.stat-card + .stat-card::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(111, 163, 209, 0.25);
}
.stat-num {
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 700;
  color: var(--bronze-light);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.stat-num-text { font-size: clamp(34px, 5vw, 56px); }
.stat-label {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted-dark);
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .stats-strip { padding: 40px 0; }
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .stat-card + .stat-card::before { display: none; }
}

/* === FAQ === */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  width: 28px;
  height: 28px;
  border: 1px solid var(--bronze);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--bronze);
  font-weight: 400;
  font-size: 18px;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.faq-item[open] summary::after {
  content: '−';
  background: var(--bronze);
  color: var(--paper);
}
.faq-item summary:hover { color: var(--bronze-deep); }
.faq-a {
  padding: 0 0 22px;
  max-width: 90%;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.7;
}
[data-theme="dark"] .faq-item summary { color: var(--bone); }
[data-theme="dark"] .faq-a { color: var(--bone); opacity: 0.86; }

/* === ЧЕКЛИСТ ПОДГОТОВКИ К КОНСУЛЬТАЦИИ === */
.checklist-card {
  max-width: 900px;
  margin: 56px auto 0;
  padding: 32px 36px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 3px solid var(--bronze);
}
[data-theme="dark"] .checklist-card {
  background: var(--surface-elev);
}
.checklist-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.checklist-head h3 {
  font-size: 24px;
  color: var(--navy);
  font-weight: 700;
}
[data-theme="dark"] .checklist-head h3 { color: var(--bone); }
.checklist-reset {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--bronze-deep);
  font-size: 13px;
  text-decoration: underline dotted;
  padding: 4px 6px;
}
.checklist-reset:hover { color: var(--bronze); }
.checklist-sub {
  color: var(--text-muted-light);
  font-size: 14.5px;
  margin-bottom: 20px;
  line-height: 1.55;
}
[data-theme="dark"] .checklist-sub { color: var(--text-muted-dark); }
.checklist-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist-items li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.checklist-items li:last-child { border-bottom: none; }
.checklist-items label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  font-size: 16px;
  color: var(--navy);
  line-height: 1.5;
}
[data-theme="dark"] .checklist-items label { color: var(--bone); }
.checklist-items input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--bronze);
  flex-shrink: 0;
  cursor: pointer;
}
.checklist-items label:has(input:checked) {
  color: var(--text-muted-light);
  text-decoration: line-through;
}
[data-theme="dark"] .checklist-items label:has(input:checked) {
  color: var(--text-muted-dark);
}

@media (max-width: 720px) {
  .checklist-card { padding: 24px 20px; }
  .checklist-head { flex-direction: column; align-items: flex-start; }
  .faq-item summary { font-size: 17px; }
}

/* === МОДАЛКА-ФОРМА ЗАЯВКИ === */
.lead-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 31, 54, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px 16px;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lead-overlay.visible { display: flex; opacity: 1; }
.lead-modal {
  width: 100%;
  max-width: 620px;
  background: var(--surface-elev, #FFFFFF);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.4);
  padding: 36px 36px 32px;
  position: relative;
}
[data-theme="dark"] .lead-modal { background: var(--surface-elev); }
.lead-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 26px;
  color: var(--text-muted-light);
  cursor: pointer;
  line-height: 1;
}
.lead-close:hover { color: var(--bronze-deep); }

.lead-progress {
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}
.lead-progress-bar {
  height: 100%;
  background: var(--bronze);
  width: 33%;
  transition: width 0.35s ease;
}
.lead-steps-count {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  font-weight: 700;
  margin-bottom: 22px;
}

.lead-step { display: none; }
.lead-step.active { display: block; }

.lead-title {
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
[data-theme="dark"] .lead-title { color: var(--bone); }
.lead-sub {
  font-size: 15px;
  color: var(--text-muted-light);
  line-height: 1.55;
  margin-bottom: 22px;
}
[data-theme="dark"] .lead-sub { color: var(--text-muted-dark); }

/* Шаг 1: категории */
.lead-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.lead-cat {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  background: transparent;
  transition: all 0.18s ease;
  font-size: 15px;
  color: var(--navy);
  text-align: center;
  display: block;
}
[data-theme="dark"] .lead-cat { color: var(--bone); }
.lead-cat input { position: absolute; opacity: 0; pointer-events: none; }
.lead-cat:hover { border-color: var(--bronze); }
.lead-cat:has(input:checked) {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--navy);
}

/* Шаг 2 */
.lead-modal textarea,
.lead-modal input[type="text"],
.lead-modal input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  background: transparent;
  color: var(--navy);
  transition: border-color 0.2s;
}
[data-theme="dark"] .lead-modal textarea,
[data-theme="dark"] .lead-modal input[type="text"],
[data-theme="dark"] .lead-modal input[type="tel"] { color: var(--bone); }
.lead-modal textarea:focus,
.lead-modal input:focus {
  outline: none;
  border-color: var(--bronze);
}
.lead-urgent, .lead-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--text-muted-light);
  line-height: 1.5;
  cursor: pointer;
}
[data-theme="dark"] .lead-urgent,
[data-theme="dark"] .lead-consent { color: var(--text-muted-dark); }
.lead-urgent input, .lead-consent input {
  width: 18px; height: 18px;
  accent-color: var(--bronze);
  margin-top: 2px;
  flex-shrink: 0;
}
.lead-consent a { color: var(--bronze-deep); }

/* Шаг 3 поля */
.lead-field {
  display: block;
  margin-bottom: 14px;
}
.lead-field span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin-bottom: 6px;
  font-weight: 700;
}

/* Действия */
.lead-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.lead-actions .btn { min-width: 0; }
.lead-error {
  color: #C44;
  font-size: 13px;
  margin-top: 8px;
  min-height: 16px;
}
.lead-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-muted-light);
  text-align: center;
}

/* Спасибо */
.lead-thanks { text-align: center; padding: 20px 0; }
.lead-thanks-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #4BA876;
  color: white;
  font-size: 32px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}
.lead-thanks h3 {
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-size: 26px;
  margin-bottom: 12px;
  color: var(--navy);
}
[data-theme="dark"] .lead-thanks h3 { color: var(--bone); }
.lead-thanks p {
  color: var(--text-muted-light);
  margin-bottom: 20px;
  font-size: 15px;
}

@media (max-width: 720px) {
  .lead-modal { padding: 28px 22px 22px; max-width: none; }
  .lead-cats { grid-template-columns: 1fr; }
  .lead-actions { flex-direction: column-reverse; gap: 10px; }
  .lead-actions .btn { width: 100%; justify-content: center; }
}

/* === КАЛЬКУЛЯТОР === */
.calc-box {
  max-width: 960px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 36px;
}
[data-theme="dark"] .calc-box { background: var(--surface-elev); }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  margin-bottom: 28px;
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-field > span {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  font-weight: 700;
}
.calc-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  color: var(--navy);
  cursor: pointer;
}
/* Опции выпадающего списка — явные цвета, иначе на тёмной теме текст сливается с фоном (правка от Александра, 11 июня) */
.calc-field select option {
  background: #FFFFFF;
  color: var(--navy);
  padding: 6px 8px;
}
[data-theme="dark"] .calc-field select {
  background: #1A2D47;
  color: var(--bone);
  border-color: rgba(168, 200, 227, 0.3);
}
[data-theme="dark"] .calc-field select option {
  background: #1A2D47;
  color: var(--bone);
}
.calc-field select:focus { outline: none; border-color: var(--bronze); }
.calc-field input[type="range"] {
  width: 100%;
  accent-color: var(--bronze);
  cursor: pointer;
}
.calc-toggle {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.calc-tog {
  flex: 1;
  min-width: 100px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--navy);
  transition: all 0.18s;
}
[data-theme="dark"] .calc-tog { color: var(--bone); }
.calc-tog:hover { border-color: var(--bronze); }
.calc-tog.active {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--navy);
  font-weight: 700;
}

.calc-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 24px;
  background: var(--bone-warm);
  border-radius: 10px;
  margin-bottom: 16px;
}
[data-theme="dark"] .calc-result { background: rgba(184, 145, 92, 0.18); }
.calc-amount { display: flex; flex-direction: column; gap: 4px; }
.calc-amount-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  font-weight: 700;
}
.calc-amount-num {
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--navy);
}
[data-theme="dark"] .calc-amount-num { color: var(--bone); }
.calc-note {
  font-size: 13.5px;
  color: var(--text-muted-light);
  line-height: 1.55;
}
[data-theme="dark"] .calc-note { color: var(--text-muted-dark); }

@media (max-width: 720px) {
  .calc-box { padding: 24px 20px; }
  .calc-grid { grid-template-columns: 1fr; gap: 16px; }
  .calc-result { flex-direction: column; align-items: stretch; gap: 14px; text-align: center; }
  .calc-result .btn { width: 100%; justify-content: center; }
  .calc-toggle { flex-wrap: nowrap; }
  .calc-tog { min-width: 0; padding: 10px 6px; font-size: 13px; }
}

/* === ТЕСТ "ПЕРСПЕКТИВА ДЕЛА" === */
.quiz-box {
  max-width: 760px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 36px 28px;
}
[data-theme="dark"] .quiz-box { background: var(--surface-elev); }
.quiz-progress {
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}
.quiz-progress-bar {
  height: 100%;
  background: var(--bronze);
  width: 25%;
  transition: width 0.35s ease;
}
.quiz-counter {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  font-weight: 700;
  margin-bottom: 22px;
}
.quiz-step { display: none; animation: quizFade .25s ease; }
.quiz-step.active { display: block; }
@keyframes quizFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.quiz-q {
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 22px;
  line-height: 1.3;
}
[data-theme="dark"] .quiz-q { color: var(--bone); }

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-opt {
  text-align: left;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  color: var(--navy);
  transition: all 0.16s ease;
}
[data-theme="dark"] .quiz-opt { color: var(--bone); }
.quiz-opt:hover {
  border-color: var(--bronze);
  background: rgba(184, 145, 92, 0.08);
}
.quiz-opt.picked {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--navy);
  font-weight: 700;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.quiz-hint { font-size: 12.5px; color: var(--text-muted-light); }
[data-theme="dark"] .quiz-hint { color: var(--text-muted-dark); }

.quiz-result {
  text-align: center;
  padding: 12px 4px 4px;
}
.quiz-result-title {
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
[data-theme="dark"] .quiz-result-title { color: var(--bone); }
.quiz-advice {
  text-align: left;
  max-width: 560px;
  margin: 0 auto 22px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--navy);
}
[data-theme="dark"] .quiz-advice { color: var(--bone); }
.quiz-result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.quiz-disclaimer {
  font-size: 12.5px;
  color: var(--text-muted-light);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}
[data-theme="dark"] .quiz-disclaimer { color: var(--text-muted-dark); }

@media (max-width: 720px) {
  .quiz-box { padding: 24px 18px 20px; }
  .quiz-q { font-size: 19px; }
  .quiz-summary li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .quiz-result-actions { flex-direction: column; }
  .quiz-result-actions .btn { width: 100%; }
}


/* === CERTIFICATES === */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.cert-item {
  background: var(--surface-elev);
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 0;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: block;
  width: 100%;
}
.cert-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -16px rgba(30, 58, 95, 0.35);
  border-color: var(--bronze);
}
.cert-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
}
[data-theme="dark"] .cert-item { background: var(--surface-elev); border-color: var(--line); }

/* Lightbox */
.cert-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 17, 31, 0.92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.cert-lightbox.visible { display: flex; }
.cert-lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.cert-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.cert-lightbox-close:hover { background: rgba(255,255,255,0.22); }

@media (max-width: 720px) {
  .cert-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cert-item { padding: 8px; }
  .cert-lightbox { padding: 16px; }
  .cert-lightbox-close { top: 10px; right: 10px; }
}


/* ==================================================================
   ✦ УЛУЧШЕНИЯ ВИЗУАЛА И ИНТЕРАКТИВА (23 июня 2026)
   ================================================================== */

/* №2 — Mouse-following gradient в hero */
.hero-clean { position: relative; overflow: hidden; }
.hero-clean::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 600px at var(--mx, 50%) var(--my, 50%),
                              rgba(184, 145, 92, 0.18),
                              transparent 60%);
  pointer-events: none;
  transition: background 0.15s ease-out;
  z-index: 1;
}
.hero-clean .container { position: relative; z-index: 2; }

/* №3 — Reveal со stagger */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* №4 — Drop cap отключён (первый абзац "Обо мне" начинается с цифры "2010" — буквица из цифры выглядит неестественно) */

/* №5 — Декоративные засечки в углах (тонкие, ненавязчивые) */
.section { position: relative; }
.section.section-light::before,
.section.section-light::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--bronze);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.section.section-light::before {
  top: 20px; left: 20px;
  border-right: none;
  border-bottom: none;
}
.section.section-light::after {
  bottom: 20px; right: 20px;
  border-left: none;
  border-top: none;
}
.section .container { position: relative; z-index: 1; }
@media (max-width: 720px) {
  .section.section-light::before,
  .section.section-light::after { display: none; }
}

/* №6 — Прилипающее активное меню (подсветка текущей секции) */
.nav a {
  position: relative;
  transition: color 0.25s ease;
}
.nav a.is-active {
  color: var(--bronze-light);
}
.nav a.is-active::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--bronze);
  border-radius: 1px;
}

/* №7 — Улучшенный hover сертификатов */
.cert-item {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}
.cert-item::after {
  content: 'УВЕЛИЧИТЬ';
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bronze);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}


/* === ВОССТАНОВЛЕНО: .cert-item:hover (был побит при автоправке) === */
.cert-item:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 28px 60px -20px rgba(30, 58, 95, 0.45);
  border-color: var(--bronze);
}

/* === ВОССТАНОВЛЕНО: Mobile sticky CTA (плашка снизу на мобильном) === */
.mobile-cta {
  display: none;
}
@media (max-width: 720px) {
  .mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(to top, rgba(20, 40, 69, 0.98), rgba(20, 40, 69, 0.92));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--bronze);
    z-index: 95;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 10px;
  }
  .mobile-cta.visible { transform: translateY(0); }
  .mobile-cta { justify-content: center; }
  .mobile-cta .btn { flex: 0 0 auto; padding: 12px 28px; font-size: 13px; }
}

/* === АНИМАЦИЯ #1 (CSS-only) — Дышащее фото адвоката ===
   Очень слабый zoom 1.0 -> 1.025 -> 1.0 за 8 секунд. Бесконечно. */
@keyframes az-breath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.025); }
}
.about-photo-real img {
  animation: az-breath 8s ease-in-out infinite;
  transform-origin: 50% 45%;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .about-photo-real img { animation: none; }
}

/* === АНИМАЦИЯ #2 (CSS-only) — Короткий глитч у section-num каждые 7 сек ===
   Маркер: __glitch_anim_v1
   95% времени тихо, ~3% — короткий хроматический сдвиг с лёгким дрожанием. */
@keyframes az-glitch {
  0%, 95%, 100% {
    text-shadow: none;
    transform: translate(0, 0);
  }
  96% {
    text-shadow: -1.5px 0 rgba(212, 181, 132, 0.9), 1.5px 0 rgba(120, 170, 220, 0.6);
    transform: translate(-1px, 0);
  }
  97% {
    text-shadow: 1.5px 0 rgba(212, 181, 132, 0.9), -1.5px 0 rgba(120, 170, 220, 0.6);
    transform: translate(1px, 0);
  }
  98% {
    text-shadow: -1px 0 rgba(212, 181, 132, 0.7);
    transform: translate(-0.5px, 0);
  }
}
.section-num {
  animation: az-glitch 7s infinite;
  animation-delay: calc(var(--g-delay, 0) * 1s);
}
/* Чтобы глитч не срабатывал одновременно у всех секций — разные задержки */
.section-head:nth-of-type(2n) .section-num { --g-delay: 2; }
.section-head:nth-of-type(3n) .section-num { --g-delay: 4; }
.section-head:nth-of-type(4n) .section-num { --g-delay: 1; }
@media (prefers-reduced-motion: reduce) {
  .section-num { animation: none; }
}

/* === АНИМАЦИЯ #3 — Бронзовая линия прорисовывается под h2 ===
   Маркер: __line_anim_v1
   Использует существующий класс .reveal.visible, добавляемый IntersectionObserver'ом.
   Линия скрыта scaleX(0), становится scaleX(1) при появлении секции. */
.section-head h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 2px;
  background: var(--bronze, #D4B584);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.0s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s;
}
.section-head.reveal.visible h2::after,
.section-head.visible h2::after {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  .section-head h2::after { transition: none; transform: scaleX(1); }
}

/* === АНИМАЦИЯ #4 — Параллакс сетки в hero ===
   Маркер: __parallax_grid_v1
   Тонкая бронзовая сетка на фоне hero сдвигается вниз медленнее скролла. */
.hero-clean::after {
  content: '';
  position: absolute;
  inset: -100px 0 0 0;  /* -100px сверху — запас для параллакса */
  background-image:
    linear-gradient(rgba(212, 181, 132, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 181, 132, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
  transform: translateY(var(--parallax-y, 0px));
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-clean::after { transform: none; }
}

/* === АНИМАЦИЯ #6 (упрощённая) — Подсветка суммы калькулятора при изменении ===
   Маркер: __calc_flash_v1
   При обновлении числа spans ставится класс .calc-flash с бронзовой вспышкой. */
#calcAmount {
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}
#calcAmount.calc-flash {
  color: var(--bronze-deep, #B8915C);
  animation: az-calc-flash 0.5s ease-out;
}
@keyframes az-calc-flash {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  #calcAmount.calc-flash { animation: none; color: inherit; }
}

/* === АНИМАЦИЯ #7 — Reveal слов у h2 секций ===
   Маркер: __h2words_v1
   Слова начинают невидимыми под клипом и поднимаются каскадом. */
.section-head h2 .h2-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.05em;
  line-height: 1.15;
}
.section-head h2 .h2-word-inner {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1),
              opacity 0.6s ease;
}
.section-head.reveal.visible h2 .h2-word-inner,
.section-head.visible h2 .h2-word-inner {
  transform: translateY(0);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .section-head h2 .h2-word-inner { transform: none; opacity: 1; transition: none; }
}

/* === Правки прайс-аккордеона для тёмной темы === */
/* __accordion_dark_v1 */
[data-theme="dark"] .price-group {
  background: var(--surface-elev, #12253F);
  border-color: rgba(212, 181, 132, 0.18);
}
[data-theme="dark"] .price-group[open] {
  border-color: var(--bronze, #D4B584);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .price-summary:hover {
  background: rgba(212, 181, 132, 0.08);
}
[data-theme="dark"] .price-summary-num {
  color: var(--bronze, #D4B584);
}
[data-theme="dark"] .price-summary-title {
  color: #F4EEE0;
}
[data-theme="dark"] .price-summary-meta {
  color: #F4EEE0;
  opacity: 0.6;
}
[data-theme="dark"] .price-summary-icon {
  color: var(--bronze, #D4B584);
}
[data-theme="dark"] .price-group .pricing-table {
  border-top-color: rgba(212, 181, 132, 0.15);
}

/* === Плашка «А. Загиров» — усиление контраста в тёмной теме === */
/* __cap_dark_v1 */
[data-theme="dark"] .about-photo-cap {
  background: rgba(20, 40, 69, 0.92);
  border: 1px solid rgba(212, 181, 132, 0.55);
  color: #F4EEE0;
  padding: 8px 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* === Анимация «Этапы работы» (03) === */
/* __process_anim_v1 */
/* Начальное состояние — линия сжата слева, кружки прячутся снизу */
.process-list .process-line {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s;
}
.process-list .process-step {
  opacity: 0;
  transform: translateY(24px) scale(0.85);
  transition: opacity 0.6s ease,
              transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* Триггер — когда section-head рядом становится visible */
.section-head.reveal.visible + .process-list .process-line,
.section-head.visible + .process-list .process-line {
  transform: scaleX(1);
}
.section-head.reveal.visible + .process-list .process-step,
.section-head.visible + .process-list .process-step {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Каскад по шагам (I → V) */
.section-head.visible + .process-list .process-step:nth-child(2) { transition-delay: 0.15s; }
.section-head.visible + .process-list .process-step:nth-child(3) { transition-delay: 0.35s; }
.section-head.visible + .process-list .process-step:nth-child(4) { transition-delay: 0.55s; }
.section-head.visible + .process-list .process-step:nth-child(5) { transition-delay: 0.75s; }
.section-head.visible + .process-list .process-step:nth-child(6) { transition-delay: 0.95s; }

@media (prefers-reduced-motion: reduce) {
  .process-list .process-line,
  .process-list .process-step {
    transform: none; opacity: 1; transition: none;
  }
}

/* === Замедление анимации «Этапы работы» === */
/* __process_anim_slow */
.process-list .process-line {
  transition: transform 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.20s;
}
.process-list .process-step {
  transition: opacity 1.0s ease,
              transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.section-head.visible + .process-list .process-step:nth-child(2) { transition-delay: 0.25s; }
.section-head.visible + .process-list .process-step:nth-child(3) { transition-delay: 0.60s; }
.section-head.visible + .process-list .process-step:nth-child(4) { transition-delay: 0.95s; }
.section-head.visible + .process-list .process-step:nth-child(5) { transition-delay: 1.30s; }
.section-head.visible + .process-list .process-step:nth-child(6) { transition-delay: 1.65s; }

/* === Разделение анимации step на num + title + desc для задержки подписи === */
/* __process_hover_pulse */
.process-list .process-step { opacity: 1; transform: none; transition: none; }
.process-list .process-num,
.process-list .process-title,
.process-list .process-desc {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.0s ease, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.process-list .process-title { transition-delay: 0.25s; }
.process-list .process-desc  { transition-delay: 0.40s; }
.section-head.visible + .process-list .process-num,
.section-head.visible + .process-list .process-title,
.section-head.visible + .process-list .process-desc {
  opacity: 1; transform: translateY(0);
}
/* Stagger по шагам — сам круг + смещённые подписи */
.section-head.visible + .process-list .process-step:nth-child(2) .process-num  { transition-delay: 0.25s; }
.section-head.visible + .process-list .process-step:nth-child(2) .process-title{ transition-delay: 0.50s; }
.section-head.visible + .process-list .process-step:nth-child(2) .process-desc { transition-delay: 0.65s; }
.section-head.visible + .process-list .process-step:nth-child(3) .process-num  { transition-delay: 0.60s; }
.section-head.visible + .process-list .process-step:nth-child(3) .process-title{ transition-delay: 0.85s; }
.section-head.visible + .process-list .process-step:nth-child(3) .process-desc { transition-delay: 1.00s; }
.section-head.visible + .process-list .process-step:nth-child(4) .process-num  { transition-delay: 0.95s; }
.section-head.visible + .process-list .process-step:nth-child(4) .process-title{ transition-delay: 1.20s; }
.section-head.visible + .process-list .process-step:nth-child(4) .process-desc { transition-delay: 1.35s; }
.section-head.visible + .process-list .process-step:nth-child(5) .process-num  { transition-delay: 1.30s; }
.section-head.visible + .process-list .process-step:nth-child(5) .process-title{ transition-delay: 1.55s; }
.section-head.visible + .process-list .process-step:nth-child(5) .process-desc { transition-delay: 1.70s; }
.section-head.visible + .process-list .process-step:nth-child(6) .process-num  { transition-delay: 1.65s; }
.section-head.visible + .process-list .process-step:nth-child(6) .process-title{ transition-delay: 1.90s; }
.section-head.visible + .process-list .process-step:nth-child(6) .process-desc { transition-delay: 2.05s; }

/* Hover-подсветка кружков */
.process-list .process-num {
  transition: opacity 1.0s ease, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.process-list .process-step:hover .process-num {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 0 0 4px rgba(212, 181, 132, 0.14), 0 0 32px rgba(212, 181, 132, 0.35);
  background: rgba(212, 181, 132, 0.14);
  color: #F4EEE0;
}

/* Тонкая пульсация первого шага (после reveal) */
@keyframes az-process-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212, 181, 132, 0.45); }
  70%  { box-shadow: 0 0 0 16px rgba(212, 181, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 181, 132, 0); }
}
.section-head.visible + .process-list .process-step:first-of-type .process-num {
  animation: az-process-pulse 2.6s ease-out 3.5s infinite;
}
@media (prefers-reduced-motion: reduce) {
  .process-list .process-num, .process-list .process-title, .process-list .process-desc { transition: none; }
  .section-head.visible + .process-list .process-step:first-of-type .process-num { animation: none; }
}

/* === Ещё замедление + фикс просвечивания линии === */
/* __process_slow2_no_bg */
.process-list .process-line {
  transition: transform 3.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s;
}
.process-list .process-num,
.process-list .process-title,
.process-list .process-desc {
  transition: opacity 1.4s ease, transform 1.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.process-list .process-title { transition-delay: 0.35s; }
.process-list .process-desc  { transition-delay: 0.55s; }
/* Каскад между шагами — интервал ~0.5с вместо 0.35с */
.section-head.visible + .process-list .process-step:nth-child(2) .process-num  { transition-delay: 0.35s; }
.section-head.visible + .process-list .process-step:nth-child(2) .process-title{ transition-delay: 0.70s; }
.section-head.visible + .process-list .process-step:nth-child(2) .process-desc { transition-delay: 0.90s; }
.section-head.visible + .process-list .process-step:nth-child(3) .process-num  { transition-delay: 0.85s; }
.section-head.visible + .process-list .process-step:nth-child(3) .process-title{ transition-delay: 1.20s; }
.section-head.visible + .process-list .process-step:nth-child(3) .process-desc { transition-delay: 1.40s; }
.section-head.visible + .process-list .process-step:nth-child(4) .process-num  { transition-delay: 1.35s; }
.section-head.visible + .process-list .process-step:nth-child(4) .process-title{ transition-delay: 1.70s; }
.section-head.visible + .process-list .process-step:nth-child(4) .process-desc { transition-delay: 1.90s; }
.section-head.visible + .process-list .process-step:nth-child(5) .process-num  { transition-delay: 1.85s; }
.section-head.visible + .process-list .process-step:nth-child(5) .process-title{ transition-delay: 2.20s; }
.section-head.visible + .process-list .process-step:nth-child(5) .process-desc { transition-delay: 2.40s; }
.section-head.visible + .process-list .process-step:nth-child(6) .process-num  { transition-delay: 2.35s; }
.section-head.visible + .process-list .process-step:nth-child(6) .process-title{ transition-delay: 2.70s; }
.section-head.visible + .process-list .process-step:nth-child(6) .process-desc { transition-delay: 2.90s; }

/* Пульсация первого — сдвинута дальше, чтобы вся анимация успевала закончиться */
.section-head.visible + .process-list .process-step:first-of-type .process-num {
  animation: az-process-pulse 3.0s ease-out 5.0s infinite;
}

/* Hover без изменения фона — линия больше не просвечивает */
.process-list .process-step:hover .process-num {
  background: var(--navy);
}

/* === Гирлянда: бегущая пульсация по кружкам слева направо === */
/* __process_garland_v1 */
@keyframes az-garland {
  0%   { box-shadow: 0 0 0 0 rgba(212, 181, 132, 0);    background: var(--navy); color: #d4b584; }
  8%   { box-shadow: 0 0 0 6px rgba(212, 181, 132, 0.35), 0 0 28px rgba(212, 181, 132, 0.55); background: rgba(212,181,132,0.20); color: #F4EEE0; }
  20%  { box-shadow: 0 0 0 14px rgba(212, 181, 132, 0); background: var(--navy); color: #d4b584; }
  100% { box-shadow: 0 0 0 0 rgba(212, 181, 132, 0);    background: var(--navy); color: #d4b584; }
}

/* Отключаем прежнюю pulse на первом шаге, включаем garland на всех */
.section-head.visible + .process-list .process-step:first-of-type .process-num {
  animation: none;
}
.section-head.visible + .process-list .process-step:nth-child(1) .process-num { animation: az-garland 4.8s ease-out 6.0s infinite; }
.section-head.visible + .process-list .process-step:nth-child(2) .process-num { animation: az-garland 4.8s ease-out 6.4s infinite; }
.section-head.visible + .process-list .process-step:nth-child(3) .process-num { animation: az-garland 4.8s ease-out 6.8s infinite; }
.section-head.visible + .process-list .process-step:nth-child(4) .process-num { animation: az-garland 4.8s ease-out 7.2s infinite; }
.section-head.visible + .process-list .process-step:nth-child(5) .process-num { animation: az-garland 4.8s ease-out 7.6s infinite; }
.section-head.visible + .process-list .process-step:nth-child(6) .process-num { animation: az-garland 4.8s ease-out 8.0s infinite; }

/* На hover — гирлянда паузится, чтобы hover-эффект был читаемым */
.process-list .process-step:hover .process-num {
  animation-play-state: paused;
}

/* === Гирлянда v2: непрозрачный фон, линия больше не просвечивает === */
/* __process_garland_v2_opaque */
@keyframes az-garland-v2 {
  0%   { box-shadow: 0 0 0 0 rgba(212, 181, 132, 0);    background: var(--navy); color: #d4b584; }
  8%   { box-shadow: 0 0 0 6px rgba(212, 181, 132, 0.35), 0 0 28px rgba(212, 181, 132, 0.55); background: #3a3320; color: #F4EEE0; }
  20%  { box-shadow: 0 0 0 14px rgba(212, 181, 132, 0); background: var(--navy); color: #d4b584; }
  100% { box-shadow: 0 0 0 0 rgba(212, 181, 132, 0);    background: var(--navy); color: #d4b584; }
}
.section-head.visible + .process-list .process-step:nth-child(1) .process-num { animation: az-garland-v2 4.8s ease-out 6.0s infinite; }
.section-head.visible + .process-list .process-step:nth-child(2) .process-num { animation: az-garland-v2 4.8s ease-out 6.4s infinite; }
.section-head.visible + .process-list .process-step:nth-child(3) .process-num { animation: az-garland-v2 4.8s ease-out 6.8s infinite; }
.section-head.visible + .process-list .process-step:nth-child(4) .process-num { animation: az-garland-v2 4.8s ease-out 7.2s infinite; }
.section-head.visible + .process-list .process-step:nth-child(5) .process-num { animation: az-garland-v2 4.8s ease-out 7.6s infinite; }
.section-head.visible + .process-list .process-step:nth-child(6) .process-num { animation: az-garland-v2 4.8s ease-out 8.0s infinite; }

/* === Hover fix v3: перебиваем keyframes и делаем фон непрозрачным === */
/* __process_hover_fix_v3 */
.process-list .process-step:hover .process-num {
  animation-play-state: paused !important;
  background: #3a3320 !important;
  color: #F4EEE0 !important;
  transform: translateY(-4px) scale(1.08) !important;
  box-shadow: 0 0 0 5px rgba(212, 181, 132, 0.30), 0 0 32px rgba(212, 181, 132, 0.55) !important;
  transition: background 0.28s ease, color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease !important;
}

/* __process_hover_pause_all_v1 — при hover на любой шаг паузим гирлянду у всех */
.process-list:has(.process-step:hover) .process-num {
  animation-play-state: paused !important;
}

/* __cap_hidden — плашка «А. Загиров» скрыта по просьбе Александра */
.about-photo-cap { display: none !important; }

/* __thanks_checklist_hint — приписка про чек-лист на экране «Заявка принята» */
.lead-thanks-checklist-hint {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted-light);
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
[data-theme="dark"] .lead-thanks-checklist-hint {
  color: var(--text-muted-dark);
}
.lead-thanks-checklist-hint a {
  color: var(--bronze-deep);
  border-bottom: 1px solid rgba(184, 145, 92, 0.4);
  transition: border-color 0.2s ease;
}
[data-theme="dark"] .lead-thanks-checklist-hint a {
  color: var(--bronze-light);
  border-bottom-color: rgba(212, 181, 132, 0.5);
}
.lead-thanks-checklist-hint a:hover {
  border-bottom-color: currentColor;
}

/* __sticky_lift_mobile — сдвигаем плавающие кнопки вверх, когда мобильная CTA-плашка видна */
@media (max-width: 720px) {
  /* Когда MOBILE-CTA видна, поднимаем sticky-buttons над ней */
  body:has(.mobile-cta.visible) .sticky-buttons {
    bottom: 88px;
  }
  /* Плавно, чтобы совпало с анимацией самой плашки */
  .sticky-buttons {
    transition: bottom 0.3s ease;
  }
}
