: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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 36px; height: 40px;
  border: 0;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 44'%3E%3Cpath d='M20 2.2 36.2 8.1v13.8c0 9.9-7.9 16.9-16.2 19.9C11.7 38.8 3.8 31.8 3.8 21.9V8.1z' fill='none' stroke='%23B8915C' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  display: grid;
  place-items: center;
  padding-bottom: 3px;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--bronze);
  font-weight: 600;
  font-family: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-weight: 700;
}
[data-theme="dark"] .logo-mark { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 44'%3E%3Cpath d='M20 2.2 36.2 8.1v13.8c0 9.9-7.9 16.9-16.2 19.9C11.7 38.8 3.8 31.8 3.8 21.9V8.1z' fill='none' stroke='%23C9A878' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.logo-sub {
  display: block;
  font-family: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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);
}
.svc-item-more {
  margin: 0 0 18px 28px;
}
.svc-item-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--bronze-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.svc-item-more a::after {
  content: '→';
  transition: transform 0.2s;
}
.svc-item-more a:hover {
  color: var(--bronze);
  border-bottom-color: var(--bronze);
}
.svc-item-more a:hover::after { transform: translateX(3px); }
[data-theme="dark"] .svc-item-more a { color: var(--bronze-light); }

/* === 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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-weight: 700;
  font-size: 28px;
  color: var(--bronze);
  font-weight: 500;
  
}
.svc-group-title {
  font-family: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-weight: 700;
  font-size: 24px;
  font-weight: 500;
}
.process-title {
  font-family: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--bronze-deep);
  letter-spacing: 0.12em;
}
.price-summary-title {
  font-family: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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, minmax(0, 1fr)); gap: 40px 16px; }
  .process-line { display: none; }
  /* Правка 02.09: колонки не сжимались из-за длинного телефона внутри и
     правая уезжала за край экрана — отсюда разные поля слева и справа. */
  .process-step { min-width: 0; padding: 0 4px; overflow-wrap: break-word; }
  .process-desc { overflow-wrap: break-word; hyphens: auto; }
  /* телефон в первом шаге — единственное, что реально не влезает целиком */
  .process-step:first-child .process-desc { overflow-wrap: anywhere; }
  /* пятый этап один в нижнем ряду — растягиваем на обе колонки */
  .process-step:nth-child(6) { grid-column: 1 / -1; }
  .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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-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 {
  /* правка 31.08: итоговая сумма всегда синяя, вспышка только масштабом */
  color: var(--navy);
  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;
  }
}

/* ==================================================================
   ПРАВКИ АЛЕКСАНДРА от 31.08.2026 (партия 8)
   Опорный светлый цвет - бывший фон раздела 07: var(--bone) #F0EDE3
   ================================================================== */

/* --- 1. Сайт только светлый: темная тема нейтрализована --- */
:root { color-scheme: light; }

/* --- 2/3. Крупнее шрифт в шапке --- */
.nav { gap: 30px; }
.nav a { font-size: 17px; font-weight: 500; }
.header-phone { font-size: 17px; font-weight: 600; }
.header-cta .btn { font-size: 15px; }

/* --- 4/6. Кнопки светлым цветом раздела 07, надписи жирнее --- */
.btn-primary {
  background: var(--bone);
  color: var(--navy);
  border: 1px solid var(--bone-warm);
  font-weight: 700;
}
.btn-primary:hover {
  background: #FFFFFF;
  border-color: var(--bone-warm);
  transform: none;
  box-shadow: 0 10px 26px -12px rgba(30, 58, 95, 0.35);
}
.hero-clean-actions .btn,
.mobile-cta .btn { font-weight: 700; letter-spacing: 0.05em; }

/* --- 8. Цвет анимированных цифр --- */
.stat-num { color: var(--bone); }

/* --- 9. Убираем прыжки при наведении --- */
.header .btn:hover,
.header-icon-btn:hover,
.nav a:hover,
.logo:hover,
.section-num:hover,
.section-head h2:hover { transform: none !important; }
.section-num { animation: none !important; }
.header .btn, .header-icon-btn, .nav a, .logo { transition: color 0.25s ease, background 0.25s ease; }

/* --- 10. Обо мне: текст на уровне фото, крупнее --- */
.about-grid { align-items: start; }
.about-content { padding-top: 0; }
.about-content p { font-size: 19px; line-height: 1.65; margin-bottom: 18px; }

/* --- 12. Услуги крупнее --- */
#services .section-intro { font-size: 21px; }
.svc-item summary { font-size: 20px; }
.svc-item ul li { font-size: 17px; line-height: 1.6; }
.svc-column-title { font-size: 22px; }

/* --- 13. Этапы: крупнее и белым --- */
#process .section-intro { font-size: 21px; color: #FFFFFF; }
#process .process-desc { font-size: 18px; color: #FFFFFF; opacity: 1; }
#process .process-title { color: #FFFFFF; }

/* --- 14. Стоимость + калькулятор --- */
#pricing .section-intro { font-size: 21px; }
.calc-box-lg {
  max-width: 1040px;
  background: #EAF3FB;
  border: 2px solid var(--navy);
  border-radius: 16px;
  padding: 40px 44px;
}
.calc-box-lg .calc-field > span { font-size: 15px; letter-spacing: 0.08em; }
.calc-box-lg select,
.calc-box-lg .calc-tog { font-size: 17px; }
.calc-box-lg .calc-amount-label { font-size: 15px; }
.calc-box-lg .calc-amount-num { font-size: clamp(34px, 4.4vw, 46px); }
.calc-box-lg .btn-primary,
.calc-box-lg .calc-tog.active {
  background: var(--bone);
  color: var(--navy);
  border-color: var(--bone-warm);
  font-weight: 700;
}
.calc-box-lg input[type="range"] { accent-color: var(--navy); }
.pricing-note { font-size: 18px; line-height: 1.6; }
.pricing-note a { font-weight: 700; }

/* --- 19. Сертификаты: сетка как была, крупнее лид --- */
#certificates .section-intro { font-size: 21px; }

/* Листание внутри увеличенного документа (правка 01.09) */
.cert-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(20, 40, 69, 0.55);
  color: #FFFFFF;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s;
}
.cert-lb-nav:hover { background: rgba(20, 40, 69, 0.85); border-color: var(--bone); }
.cert-lb-prev { left: 24px; }
.cert-lb-next { right: 24px; }
.cert-lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--bone);
  font-size: 15px;
  letter-spacing: 0.12em;
  background: rgba(20, 40, 69, 0.55);
  padding: 6px 16px;
  border-radius: 999px;
}
@media (max-width: 720px) {
  .cert-lb-nav { width: 44px; height: 44px; font-size: 26px; }
  .cert-lb-prev { left: 8px; }
  .cert-lb-next { right: 8px; }
}

/* --- 20. (MAX) в футере --- */
.footer-max { color: var(--bronze-light); font-weight: 700; letter-spacing: 0.04em; }

/* --- 21. Убираем пустые места между разделами --- */
.section { padding: 68px 0; }
.section-head { margin-bottom: 44px; }
@media (max-width: 720px) {
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 30px; }
}
@media (max-width: 720px) {
  .calc-box-lg { padding: 22px 16px; border-radius: 12px; }
  .calc-box-lg .calc-amount-num { font-size: 30px; }
  #services .section-intro, #process .section-intro,
  #pricing .section-intro, #certificates .section-intro { font-size: 18px; }
  .about-content p { font-size: 17px; }
  .pricing-note { font-size: 16px; }
  .nav a { font-size: 17px; }
}
/* фиксы после локального прогона 01.09 */
.calc-field[hidden] { display: none !important; }
.calc-box-lg .calc-amount-num { color: var(--navy); }
/* правка 01.09: текст «Обо мне» выключаем по формату, ровно по правому краю */
.about-content p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
/* Правка 02.09 (по решению клиента): на телефоне возвращаем выравнивание
   по левому краю — выключка растягивала пробелы на узкой колонке. */
@media (max-width: 560px) {
  .about-content p { text-align: left; hyphens: none; word-spacing: normal; }
}

/* --- правка 01.09: плюс в услугах рисуем линиями, а не глифом шрифта.
   Текстовые «+» и «−» в Inter сидят не по оптическому центру кружка
   и визуально съезжают; две полоски всегда ровно в середине. --- */
.svc-item summary::after {
  content: '' !important;
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 11px no-repeat;
  color: var(--bronze);
}
.svc-item[open] summary::after {
  content: '' !important;
  /* открыто — остается только горизонтальная линия (минус) */
  background:
    linear-gradient(var(--paper), var(--paper)) center / 11px 1.6px no-repeat,
    var(--bronze);
}

/* --- правка 01.09: синюю плашку выравниваем по границам калькулятора,
   иначе строка тянется на всю ширину экрана и тяжело читается --- */
#pricing .pricing-note {
  max-width: 1040px;
  margin: 28px auto 0;
  border-radius: 14px;
  padding: 26px 32px;
  align-items: flex-start;
}
#pricing .pricing-note svg { margin-top: 3px; }
@media (max-width: 720px) {
  #pricing .pricing-note { padding: 20px 18px; border-radius: 12px; }
}

/* --- правка 01.09: планшеты 721-1100px.
   После увеличения шрифта в шапке (пункт 3) меню перестало помещаться:
   логотип ломался на две строки, кнопка «Консультация» уезжала за экран. --- */
@media (min-width: 721px) and (max-width: 1100px) {
  .header-inner { gap: 14px; }
  .logo, .logo-sub { white-space: nowrap; }
  .nav { gap: 16px; }
  .nav a { font-size: 15px; white-space: nowrap; }
  .header-phone { font-size: 15px; white-space: nowrap; }
  .header-cta { gap: 12px; }
  /* кнопка дублирует плавающую панель и hero — на планшете убираем */
  .header-cta .btn { display: none; }
}
@media (min-width: 721px) and (max-width: 950px) {
  /* телефон остается в плавающей панели справа и в hero */
  .header-phone { display: none; }
  .nav { gap: 14px; }
  .nav a { font-size: 14px; }
}
@media (min-width: 1101px) and (max-width: 1280px) {
  .nav { gap: 24px; }
  .nav a { font-size: 16px; }
  .header-phone { font-size: 16px; }
  .header-cta { gap: 18px; }
}

/* --- правка 01.09: бургер-меню на телефоне.
   Правило .burger { display: flex } отсутствовало вообще — кнопка меню
   не показывалась ни на одном размере, и разделы с телефона были
   недоступны. Раньше это маскировали иконки темы и поиска, теперь
   в шапке остался только логотип. --- */
@media (max-width: 720px) {
  .burger { display: flex; }
  .header-cta { gap: 12px; align-items: center; }
  .header.menu-open .nav a {
    font-size: 18px;
    padding: 6px 0;
  }
}

/* --- правка 01.09: лайтбокс на узких экранах.
   Стрелки и крестик стояли по краям экрана и наполовину обрезались.
   Сужаем документ и уводим управление вниз, под изображение. --- */
@media (max-width: 560px) {
  .cert-lightbox { padding: 56px 12px 96px; }
  .cert-lightbox img { max-height: calc(100vh - 170px); }
  .cert-lb-nav {
    top: auto;
    bottom: 20px;
    transform: none;
    width: 52px;
    height: 52px;
    font-size: 28px;
  }
  .cert-lb-prev { left: 18px; }
  .cert-lb-next { right: 18px; }
  .cert-lb-counter { bottom: 34px; }
  .cert-lightbox-close { top: 12px; right: 12px; }
}

/* --- правка 02.09: текст в синей плашке выключаем по формату --- */
#pricing .pricing-note span {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
@media (max-width: 560px) {
  #pricing .pricing-note span { text-align: left; hyphens: none; }
}

/* --- правка 02.09: на телефоне убираем боковую колонку кнопок.
   Она перекрывала плюсы в услугах и правый край калькулятора, а снизу
   к ней добавлялась панель браузера. Все иконки уводим в одну нижнюю
   строку рядом с кнопкой записи. --- */
@media (max-width: 720px) {
  .sticky-buttons {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    /* Правка 02.09: при появлении адресной строки браузера панель уходила
       под нее. Android отдает системную зону нулевой, поэтому кроме
       env() добавляем фиксированный запас. Фон дотягивается до низа. */
    height: calc(64px + env(safe-area-inset-bottom, 0px) + 26px);
    padding: 0 12px calc(env(safe-area-inset-bottom, 0px) + 26px);
    align-items: center;
    z-index: 96;
    pointer-events: none;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  body:has(.mobile-cta.visible) .sticky-buttons {
    transform: translateY(0);
    /* перебиваем старое правило, поднимавшее колонку над плашкой */
    bottom: 0;
  }
  .sticky-buttons .sticky-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    pointer-events: auto;
    box-shadow: none;
  }
  .sticky-btn svg { width: 19px; height: 19px; display: block; }
  .sticky-btn img { width: 21px; height: 21px; display: block; }
  /* «наверх» в общем ряду: без отдельного появления по скроллу */
  .sticky-btn.top { opacity: 1; pointer-events: auto; }

  /* нижняя плашка становится подложкой для всего ряда */
  .mobile-cta {
    height: calc(64px + env(safe-area-inset-bottom, 0px) + 26px);
    align-items: center;
    padding: 0 12px calc(env(safe-area-inset-bottom, 0px) + 26px);
    justify-content: flex-end;
    gap: 8px;
  }
  .mobile-cta .btn { padding: 11px 20px; font-size: 13px; }
  /* «Позвонить» дублирует иконку звонка в том же ряду */
  .mobile-cta a[href^="tel:"] { display: none; }
}
@media (max-width: 380px) {
  .sticky-buttons { gap: 6px; padding: 0 8px; }
  .sticky-buttons .sticky-btn { width: 36px; height: 36px; }
  .sticky-btn svg { width: 17px; height: 17px; }
  .sticky-btn img { width: 19px; height: 19px; }
  .mobile-cta .btn { padding: 10px 14px; font-size: 12px; }
}

/* ===================================================================
   РАЗДЕЛ "СТАТЬИ" (добавлено 05.09.2026)
   Маркер: __articles_v1
   Используется на главной (секция #articles), в /articles/index.html
   и на страницах отдельных статей.
   =================================================================== */

/* --- Сетка карточек --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 1024px) { .articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (max-width: 680px)  { .articles-grid { grid-template-columns: 1fr; gap: 18px; } }

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.article-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--bronze);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(30, 58, 95, 0.13);
  border-color: var(--line-warm);
}
.article-card:hover::before { transform: scaleY(1); }

.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted-light);
  margin-bottom: 14px;
}
.article-card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  border: 1px solid var(--line-warm);
  border-radius: 999px;
  padding: 4px 10px;
}
.article-card-title {
  font-size: 21px;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 12px;
}
.article-card-lead {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted-light);
  margin-bottom: 20px;
  flex-grow: 1;
}
.article-card-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--bronze-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.article-card-more svg { transition: transform 0.25s ease; }
.article-card:hover .article-card-more svg { transform: translateX(4px); }

.articles-cta {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}

[data-theme="dark"] .article-card { background: var(--surface-elev); border-color: var(--line); }
[data-theme="dark"] .article-card-title { color: var(--bone); }
[data-theme="dark"] .article-card-lead,
[data-theme="dark"] .article-card-meta { color: var(--text-muted-dark); }
[data-theme="dark"] .article-card-more { color: var(--bronze-light); }
[data-theme="dark"] .article-card-tag { color: var(--bronze-light); }

/* --- Страница списка и страница статьи --- */
.article-page { padding: 140px 0 80px; background: var(--paper); min-height: 100vh; }

.article-crumbs {
  font-size: 13px;
  color: var(--text-muted-light);
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.article-crumbs a { color: var(--bronze-deep); text-decoration: none; }
.article-crumbs a:hover { text-decoration: underline; }
.article-crumbs span { opacity: 0.6; }

.article-head { max-width: 820px; margin-left: auto; margin-right: auto; margin-bottom: 44px; }
.article-head h1 {
  color: var(--navy);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.22;
  margin-bottom: 16px;
}
.article-head .article-lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-muted-light);
  margin-top: 18px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
  color: var(--text-muted-light);
}

/* Текст статьи */
.article-body { max-width: 760px; margin-left: auto; margin-right: auto; }
.article-body h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--navy);
  margin: 44px 0 14px;
  line-height: 1.3;
}
.article-body h3 {
  font-size: 19px;
  color: var(--navy);
  margin: 30px 0 10px;
}
.article-body p,
.article-body li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--navy);
  margin-bottom: 14px;
}
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--bronze-deep); }
.article-body strong { font-weight: 700; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 28px;
  font-size: 15px;
  background: var(--surface-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.article-body th,
.article-body td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  vertical-align: top;
}
.article-body th {
  background: var(--sky-pale);
  font-weight: 700;
  font-size: 14px;
}
.article-body tr:last-child td { border-bottom: none; }
.article-table-wrap { overflow-x: auto; }

/* Врезка с нормой закона */
.article-note {
  border-left: 3px solid var(--bronze);
  background: var(--sky-pale);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 26px 0;
}
.article-note p { margin-bottom: 0; font-size: 16px; }
.article-note-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin-bottom: 8px;
}

/* Оглавление */
.article-toc {
  background: var(--surface-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 40px;
}
.article-toc h2 {
  font-size: 13px !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin: 0 0 12px !important;
}
.article-toc ol { padding-left: 20px; margin-bottom: 0; }
.article-toc li { margin-bottom: 6px; font-size: 15px; }
.article-toc a { color: var(--navy); text-decoration: none; }
.article-toc a:hover { color: var(--bronze-deep); text-decoration: underline; }

/* Дисклеймер и блок записи */
.article-disclaimer {
  margin-top: 44px;
  padding: 18px 22px;
  border: 1px dashed var(--line-warm);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted-light);
}
.article-cta-box {
  margin-top: 40px;
  background: var(--navy);
  border-radius: 14px;
  padding: 36px 34px;
  color: var(--text-on-dark);
}
.article-cta-box h2 {
  color: var(--bone) !important;
  font-size: 24px !important;
  margin: 0 0 10px !important;
}
.article-cta-box p { color: var(--text-muted-dark); margin-bottom: 22px; font-size: 16px; }
.article-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Соседние статьи */
.article-next { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.article-next h2 { font-size: 20px !important; margin: 0 0 22px !important; color: var(--navy); }

/* Блок "Записаться на консультацию" и "Смежные направления" на страницах
   услуг/статей — эти div лежат вне .article-body, поэтому ссылки не
   наследовали .article-body a и оставались дефолтными синими. */
.contacts,
.rel {
  max-width: 760px;
  margin: 32px auto 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--navy);
}
.rel {
  padding-top: 20px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-muted-light);
}
.contacts a,
.rel a {
  color: var(--bronze-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.contacts a:hover,
.rel a:hover {
  color: var(--bronze);
  border-bottom-color: var(--bronze);
}
[data-theme="dark"] .contacts,
[data-theme="dark"] .rel { color: var(--text-muted-dark); }
[data-theme="dark"] .contacts a,
[data-theme="dark"] .rel a { color: var(--bronze-light); }

[data-theme="dark"] .article-page { background: var(--paper); }
[data-theme="dark"] .article-head h1,
[data-theme="dark"] .article-body h2,
[data-theme="dark"] .article-body h3,
[data-theme="dark"] .article-body p,
[data-theme="dark"] .article-body li,
[data-theme="dark"] .article-body td,
[data-theme="dark"] .article-body th,
[data-theme="dark"] .article-next h2,
[data-theme="dark"] .article-toc a { color: var(--bone); }
[data-theme="dark"] .article-head .article-lead,
[data-theme="dark"] .article-meta,
[data-theme="dark"] .article-crumbs,
[data-theme="dark"] .article-disclaimer { color: var(--text-muted-dark); }
[data-theme="dark"] .article-note { background: #1B2C44; }
[data-theme="dark"] .article-body th { background: #1B2C44; }
[data-theme="dark"] .article-toc,
[data-theme="dark"] .article-body table { background: var(--surface-elev); }

@media (max-width: 680px) {
  .article-page { padding: 110px 0 60px; }
  .article-body p, .article-body li { font-size: 16px; }
  .article-cta-box { padding: 26px 22px; }
}

/* --- Компактный подвал для внутренних страниц (перенесен из privacy.html,
       чтобы работал на страницах раздела "Статьи"). Маркер: __articles_v1 --- */
.legal-footer {
  background: var(--navy); color: var(--bone);
  padding: 40px 0 24px;
  border-top: 1px solid rgba(184, 145, 92, 0.3);
}
.legal-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .legal-footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.legal-footer h4 {
  font-size: 14px; color: var(--bronze-light);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 16px; font-weight: 600;
}
.legal-footer a {
  display: block; color: var(--bone); text-decoration: none;
  margin-bottom: 10px; transition: color 0.2s ease;
}
.legal-footer a:hover { color: var(--bronze-light); }
.legal-footer p { color: rgba(232, 239, 247, 0.75); font-size: 14px; margin-bottom: 12px; line-height: 1.5; }
.legal-footer .legal-footer-logo {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 22px; font-weight: 700; color: var(--bone);
  margin-bottom: 10px;
}
.legal-footer-bottom {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px solid rgba(184, 145, 92, 0.2);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  font-size: 13px; color: rgba(232, 239, 247, 0.65);
}
@media (max-width: 720px) { .legal-footer-bottom { flex-direction: column; gap: 12px; } }
.legal-footer-bottom a { display: inline; margin-right: 18px; }

/* --- Правки после визуальной проверки 05.09.2026. Маркер: __articles_v1 --- */

/* Кнопка "Все статьи" на светлой секции: btn-outline рассчитан на темный фон
   и на белом почти не читается. Задаем контрастные цвета. */
.articles-cta .btn-outline {
  color: var(--bronze-deep);
  border-color: var(--bronze);
}
.articles-cta .btn-outline:hover { background: var(--bronze); color: #FFFFFF; }
[data-theme="dark"] .articles-cta .btn-outline { color: var(--bronze-light); }

/* На мобильном общий CSS прячет кнопки в шапке: на главной их заменяет нижняя
   плашка .mobile-cta, а в разделе статей ее нет. Возвращаем кнопку записи. */
@media (max-width: 640px) {
  .article-header .header-cta .btn-primary {
    display: inline-flex;
    padding: 9px 16px;
    font-size: 12px;
  }
  .article-header .header-cta .btn-outline { display: none; }
}

/* --- правка 13.09: cookie-уведомление (всплывающее окно) --- */
.cookie-bar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 9000;
  display: none;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 22px;
  background: #FFFFFF;
  border: 1px solid rgba(30,58,95,0.12);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(16,32,54,0.18);
}
.cookie-bar.is-visible { display: flex; }
.cookie-bar__text {
  margin: 0;
  font-family: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #23303F;
}
.cookie-bar__text a { color: var(--bronze-deep); text-decoration: underline; }
.cookie-bar__text a:hover { color: var(--bronze); }
.cookie-bar__btn {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  padding: 14px 34px;
  border-radius: 999px;
  background: var(--navy);
  color: #FFFFFF;
  font-family: 'Inter','Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s ease;
}
.cookie-bar__btn:hover { background: var(--bronze-deep); }
[data-theme="dark"] .cookie-bar { background: #16283F; border-color: rgba(212,181,132,0.22); }
[data-theme="dark"] .cookie-bar__text { color: #E8EDF3; }
[data-theme="dark"] .cookie-bar__text a { color: var(--bronze-light); }
@media (max-width: 720px) {
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; left: 10px; right: 10px; bottom: 10px; }
  .cookie-bar__text { font-size: 13px; }
  .cookie-bar__btn { width: 100%; }
}
