/* ============================================================
   «Метры под защитой» — базовая тема
   Палитра: белый фон, бирюза + золото, премиальный минимализм
   Шрифты: Inter (текст) + Playfair Display (заголовки, цифры)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap');

:root {
  --bg: #edf0ef;
  --card: #ffffff;
  --ink: #14201d;
  --ink-soft: #33413e;
  --muted: #6b7673;
  --teal: #0e8f8a;
  --teal-deep: #0a5f5c;
  --teal-soft: #e4f2ef;
  --teal-mist: #f1f7f5;
  --gold: #c39a4e;
  --gold-deep: #a87f33;
  --gold-soft: #f0e7cd;
  --gold-mist: #faf5e9;
  --line: #e6ebe9;
  --dark: #0e4436;
  --footer-bg: #0d1b1a;
  --section-bg: #f2f5f4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { min-height: 100%; }

body {
  background: var(--bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  padding: 16px 24px 28px;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

::selection { background: var(--teal-soft); color: var(--teal-deep); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

img { max-width: 100%; }

/* ---------- Карточка сайта ---------- */
.site {
  width: min(1180px, 100%);
  margin: 0 auto;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03), 0 24px 60px rgba(13,31,29,0.10);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   Кнопки
   ============================================================ */
.btn-primary {
  background: var(--dark);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 9px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: background .2s ease;
  white-space: nowrap;
}
.btn-primary:hover { background: #155f4d; }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-primary.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-primary.btn-block { width: 100%; text-align: center; padding: 13px 22px; }

.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border: 1px solid rgba(14,143,138,0.4);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-ghost:hover { background: var(--teal-mist); border-color: var(--teal); }
.btn-ghost.btn-sm { padding: 7px 14px; font-size: 12px; }

.btn-gold {
  background: linear-gradient(135deg, #d9b872 0%, #c39a4e 100%);
  color: #1c1406;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  transition: filter .2s ease;
}
.btn-gold:hover { filter: brightness(1.06); }
.btn-gold:disabled { opacity: .6; cursor: default; }

/* ============================================================
   Header (единый для всех страниц)
   ============================================================ */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 13px 40px;
  background: #ffffff;
  border-bottom: 1px solid #eef1f0;
  position: relative;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  text-decoration: none;
}
.brand-logo { height: 30px; width: auto; display: block; }
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink);
}

.nav { display: flex; align-items: center; gap: 17px; }
.nav a {
  text-decoration: none;
  color: #2b3533;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 1px;
  position: relative;
}
.nav a:hover { color: var(--teal-deep); }
.nav a.active { color: var(--teal-deep); font-weight: 600; }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.cta-side { justify-self: end; display: flex; align-items: center; gap: 8px; }

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Мобильное меню — часть общей шапки */
.mobile-nav {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 6px 20px 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav nav { display: flex; flex-direction: column; }
.m-link {
  font-size: 14px;
  font-weight: 500;
  color: #22302d;
  text-decoration: none;
  padding: 11px 4px;
  border-bottom: 1px solid #f0f4f3;
}
.m-link:hover { color: var(--teal-deep); }
.m-cta { margin-top: 14px; width: 100%; text-align: center; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: linear-gradient(180deg, #edf6f3 0%, #e9f3ec 52%, #f6eedb 100%);
  text-align: center;
  padding: 50px 48px 40px;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--teal-deep);
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(14,143,138,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.15;
  color: #10201d;
}
.hero-subtitle {
  margin: 14px auto 0;
  max-width: 640px;
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 500;
  font-style: italic;
  color: var(--teal-deep);
  line-height: 1.45;
  letter-spacing: 0.2px;
}
.hero-sub {
  margin: 16px auto 0;
  max-width: 660px;
  font-size: 14px;
  line-height: 1.7;
  color: #3d4a47;
}
.hero-meta { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.hero-actions { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 12px; color: var(--muted); }

.hero-media {
  margin: 34px auto 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 24px 60px rgba(13,31,29,0.18);
}
.hero-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.hero-media svg {
  width: 100%;
  height: 420px;
  display: block;
}

.hero-media-crop-bottom img { object-position: center top; }


/* ============================================================
   Общие элементы секций
   ============================================================ */
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
}
.section-eyebrow.gold { color: var(--gold); }

.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2,
h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: #12211f;
  line-height: 1.25;
}
.section-head h2 { margin-top: 10px; }

/* ============================================================
   Этапы покупки
   ============================================================ */
.stages { padding: 46px 48px 8px; }
.stages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}
.stage {
  border-radius: 16px;
  padding: 22px 22px 24px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.stage.s1 { background: linear-gradient(135deg, #e1f2ee 0%, #d8ece6 48%, #f0e6cb 100%); }
.stage.s2 { background: linear-gradient(160deg, #d6ede8 0%, #eaf6f1 58%, #f5eeda 100%); }
.stage.s3 { background: linear-gradient(135deg, #f0e7cc 0%, #e7d9b5 100%); }
.stage-num {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  color: var(--teal-deep);
}
.stage.s3 .stage-num { color: var(--gold-deep); }
.stage h3 {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
  color: #14201d;
  margin: 12px 0 10px;
}
.stage p {
  font-size: 12.5px;
  line-height: 1.65;
  color: #42524e;
  flex: 1;
}
.stage .btn-ghost { margin-top: 16px; align-self: flex-start; }

/* ============================================================
   Принцип + кейс
   ============================================================ */
.principle { padding: 44px 48px 10px; }
.principle-grid {
  display: grid;
  grid-template-columns: 46% 1fr;
  gap: 48px;
  align-items: center;
}
.principle-grid--full { grid-template-columns: 1fr; }
.principle-grid--full .principle-text { max-width: 760px; justify-self: start; }
.principle-text h2 { margin: 12px 0 6px; }
.principle-text p {
  font-size: 13px;
  line-height: 1.75;
  color: #4a5754;
  margin-top: 14px;
}
.principle-text .btn-primary { margin-top: 22px; }

.case-card {
  background: linear-gradient(150deg, #f4ecd8 0%, #e9f2ee 100%);
  border-radius: 18px;
  padding: 28px 30px;
  border: 1px solid rgba(195,154,78,0.25);
}
.case-tag {
  font-size: 10.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
}
.case-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  color: #12211f;
  margin: 16px 0 6px;
}
.case-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: #14201d; }
.case-card p { font-size: 13px; line-height: 1.7; color: #4a5754; }
.case-card .case-takeaway {
  margin-top: 14px;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  font-weight: 600;
  color: #14201d;
}

/* Портрет в сетке «Кто я»: слева текст, справа фото */
.principle-grid .hero-media { margin: 0; align-self: center; }

/* Широкая карточка профиля под текстом и фото */
.case-card-wide {
  margin-top: 34px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 30px;
  align-items: center;
}
.case-card-wide .case-num { margin: 0; font-size: 64px; }
.case-card-wide .case-tag { display: block; margin-bottom: 10px; }
.case-card-wide h3 { margin: 0 0 10px; }
.case-card-wide p { margin: 0; }

/* ============================================================
   Что я проверяю
   ============================================================ */
.checklist { background: var(--section-bg); padding: 46px 48px 44px; }
.checklist .section-head { margin-bottom: 18px; }
.checklist-lead {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
  line-height: 1.75;
  color: #4a5754;
  margin-bottom: 30px;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.check-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}
.check-item .tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-mist);
  color: var(--teal-deep);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.check-item h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: #14201d; }
.check-item p { font-size: 12px; line-height: 1.6; color: #4a5754; }
.check-result {
  margin: 28px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.7;
  color: #3d4a47;
  background: #fff;
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 16px 22px;
}

/* ============================================================
   Услуги
   ============================================================ */
.services { padding: 48px 48px 44px; }
.services-sub {
  max-width: 720px;
  margin: 12px auto 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.service-name { font-size: 15.5px; font-weight: 700; color: #14201d; }
.service-name-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
}
.service-price {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 23px;
  color: var(--teal-deep);
  margin: 8px 0 12px;
  line-height: 1.2;
}
.service p {
  font-size: 12.5px;
  line-height: 1.65;
  color: #4a5754;
  flex: 1;
}
.service-tag {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-deep);
  background: var(--gold-mist);
  padding: 5px 12px;
  border-radius: 999px;
  align-self: flex-start;
}
.service .btn-ghost { margin-top: 14px; align-self: flex-start; }

/* Форматы сопровождения */
.formats {
  margin-top: 30px;
  background: var(--teal-mist);
  border-radius: 16px;
  padding: 26px 28px;
  border: 1px solid rgba(14,143,138,0.12);
}
.formats-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.format-row {
  display: grid;
  grid-template-columns: 210px 1fr 130px;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid rgba(14,143,138,0.15);
  align-items: baseline;
}
.f-name { font-size: 13.5px; font-weight: 600; color: #14201d; }
.f-desc { font-size: 12.5px; line-height: 1.6; color: #42524e; }
.f-price {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 19px;
  color: #12211f;
  text-align: right;
  white-space: nowrap;
}

.pay-note {
  margin-top: 22px;
  background: var(--gold-mist);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 16px 20px;
}
.pay-note p { font-size: 12.5px; line-height: 1.65; color: #3d4a47; }

/* CTA-баннер */
.cta-banner {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 14px;
  padding: 18px 24px;
  background: linear-gradient(90deg, #e5f4f0 0%, #eef3e2 45%, #f4ead0 100%);
}
.cta-banner .txt,
.cta-banner .txt-wrap {
  font-size: 13px;
  font-weight: 500;
  color: #1c2624;
  line-height: 1.55;
}
.cta-banner .txt-wrap strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.cta-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

/* ============================================================
   Судебный опыт
   ============================================================ */
.court { background: var(--section-bg); padding: 48px 48px 44px; }
.court-grid {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 48px;
  align-items: start;
}
.court-text h2 { margin: 12px 0 6px; }
.court-text p { font-size: 13px; line-height: 1.75; color: #4a5754; margin-top: 14px; }
.court-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.court-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.court-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 6px; color: #14201d; }
.court-card p { font-size: 12px; line-height: 1.6; color: #4a5754; }
.court-cta { margin-top: 30px; }

/* ============================================================
   Процесс
   ============================================================ */
.process { padding: 46px 48px 10px; }
.process-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 32px;
  counter-reset: step;
}
.process-grid li {
  border-top: 2px solid var(--gold-soft);
  padding-top: 16px;
}
.p-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  color: var(--teal);
  margin-bottom: 12px;
}
.process-grid h3 { font-size: 13.5px; font-weight: 700; margin-bottom: 8px; color: #14201d; }
.process-grid p { font-size: 12px; line-height: 1.6; color: #4a5754; }
.process-short {
  max-width: 760px;
  margin: 32px auto 0;
  display: grid;
  gap: 14px;
}
.process-short p {
  font-size: 13px;
  line-height: 1.75;
  color: #4a5754;
}

/* ============================================================
   Обо мне + отзывы
   ============================================================ */
.about { background: var(--section-bg); padding: 48px 48px 44px; }
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 44px;
  align-items: start;
}
.about-photo img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: 0 18px 44px rgba(13,31,29,0.14);
}
.about-name { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.about-name strong { font-size: 16px; font-weight: 700; color: #14201d; }
.about-name span { font-size: 12px; color: var(--muted); }
.about-text h2 { margin: 12px 0 6px; }
.about-text p { font-size: 13px; line-height: 1.75; color: #4a5754; margin-top: 14px; }
.about-text .btn-ghost { margin-top: 20px; }

.reviews-title { margin: 44px 0 22px; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.review {
  background: linear-gradient(180deg, #fbfdfc 0%, #f4f8f6 100%);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  padding: 20px 22px;
}
.review-meta {
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.review .quote { font-size: 13px; line-height: 1.7; color: #33413e; }
.reviews-note { margin-top: 18px; font-size: 12px; color: var(--muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 46px 48px 10px; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  margin-top: 30px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: #fff;
}
.faq-item summary {
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: #14201d;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 17px;
  font-weight: 400;
  color: var(--teal);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 10px; font-size: 12.5px; line-height: 1.65; color: #4a5754; }

/* ============================================================
   Финальный CTA
   ============================================================ */
.final-cta {
  margin: 44px 48px 0;
  background: linear-gradient(120deg, #0c2321 0%, #10403a 55%, #1a554b 100%);
  border-radius: 20px;
  padding: 46px 48px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195,154,78,0.22), transparent 70%);
  right: -120px;
  top: -120px;
  pointer-events: none;
}
.final-copy { position: relative; }
.final-copy h2 { color: #fff; font-size: 30px; line-height: 1.25; margin: 12px 0 14px; }
.final-copy > p { color: #b9d4cf; font-size: 13.5px; line-height: 1.7; }
.final-points { margin: 18px 0 0; list-style: none; display: grid; gap: 10px; }
.final-points li { color: #d7e8e4; font-size: 13px; line-height: 1.5; padding-left: 20px; position: relative; }
.final-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.final-form {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.final-form h3 { font-size: 17px; font-weight: 700; color: #14201d; margin-bottom: 4px; }
.form-sub { font-size: 12px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }

/* Поля форм */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #33413e;
  margin-bottom: 6px;
}
.field .req { color: #b0483f; }
.field .opt { font-weight: 400; color: #9aa5a2; }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d9e2df;
  border-radius: 9px;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 13px;
  color: #14201d;
  background: #fbfdfc;
}
.field input::placeholder { color: #a5b1ad; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,143,138,0.12);
}

.form-consent {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: #9aa5a2;
}
.form-consent .consent-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.form-consent .consent-item input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--teal);
  cursor: pointer;
}
.form-consent .consent-item a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-consent .consent-item a:hover {
  color: var(--gold-deep);
}

.form-msg { margin-top: 12px; font-size: 12.5px; line-height: 1.5; padding: 10px 12px; border-radius: 9px; }
.form-msg.err { background: #fdeeee; color: #8a2f2f; }
.form-msg.ok { background: #e7f4ef; color: #0a5f5c; }

.form-success {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #0a5f5c;
  background: #e7f4ef;
  border-radius: 10px;
  padding: 14px 16px;
}
.lead-form.is-sent .field,
.lead-form.is-sent button[type="submit"],
.lead-form.is-sent .form-consent { display: none; }

/* ============================================================
   Footer (единый для всех страниц)
   ============================================================ */
.footer {
  background: var(--footer-bg);
  color: #cfe0dc;
  padding: 42px 48px 26px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 32px;
}
.f-brand .brand { margin-bottom: 4px; }
.f-brand .brand-name { color: #fff; }
.f-brand > p { font-size: 12px; line-height: 1.65; color: #9fb8b3; margin-top: 12px; max-width: 260px; }
.f-menu, .f-services, .f-contacts { display: flex; flex-direction: column; gap: 9px; }
.f-col-title {
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 4px;
}
.f-menu a, .f-services a {
  color: #cfe0dc;
  font-size: 12.5px;
  text-decoration: none;
}
.f-menu a:hover, .f-services a:hover { color: var(--gold); }
.f-contacts a { color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.f-contacts a:hover { color: var(--gold); }
.f-contacts p { font-size: 12px; line-height: 1.55; color: #9fb8b3; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: #7f9a95;
}

/* ============================================================
   Модальное окно (универсальная форма)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 20, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  width: min(460px, 100%);
  position: relative;
  box-shadow: 0 40px 90px rgba(0,0,0,0.3);
  max-height: 92vh;
  overflow: auto;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f0f4f3;
  font-size: 14px;
  cursor: pointer;
  color: #33413e;
  line-height: 1;
}
.modal-close:hover { background: var(--teal-mist); }
.modal h3 { font-size: 20px; font-weight: 700; color: #14201d; margin: 6px 0 8px; }
.modal-sub { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }

/* ============================================================
   Адаптивность
   ============================================================ */
@media (max-width: 980px) {
  body { padding: 10px 12px 20px; }

  .header {
    grid-template-columns: 1fr auto;
    padding: 12px 20px;
  }
  .nav { display: none; }
  .burger { display: inline-flex; }

  .hero { padding: 38px 22px 30px; }
  .hero h1 { font-size: 34px; }
  .hero-media img { height: 260px; }
  .hero-media svg { height: 260px; }

  .stages,
  .principle,
  .checklist,
  .services,
  .court,
  .process,
  .about,
  .faq { padding-left: 22px; padding-right: 22px; }

  .stages-grid,
  .services-grid,
  .check-grid,
  .reviews-grid { grid-template-columns: 1fr; }

  .principle-grid,
  .court-grid,
  .about-grid { grid-template-columns: 1fr; gap: 28px; }

  .court-cards { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }

  .final-cta {
    grid-template-columns: 1fr;
    margin: 30px 22px 0;
    padding: 32px 24px;
    gap: 30px;
  }
  .final-copy h2 { font-size: 25px; }

  .format-row { grid-template-columns: 1fr; gap: 6px; }
  .f-price { text-align: left; }

  .cta-banner { flex-direction: column; align-items: flex-start; }

  .footer { padding: 32px 22px 22px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }

  .case-num { font-size: 46px; }
  .about-photo img { height: 360px; }
}

@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .court-cards { grid-template-columns: 1fr; }
  .cta-actions { width: 100%; }
  .cta-actions .btn-primary,
  .cta-actions .btn-ghost { flex: 1; text-align: center; }

  .hero h1 { font-size: 30px; }
  .brand-name { font-size: 14.5px; }
  .cta-side .btn-primary { padding: 8px 12px; font-size: 11px; }
  .hero-media img { height: 200px; }
  .hero-media svg { height: 200px; }
  .about-photo img { height: 300px; }
  .case-card-wide { grid-template-columns: 1fr; gap: 14px; }
  .case-card-wide .case-num { font-size: 48px; }
}

/* ============================================================
   Добавочные блоки: заметка в тарифе и блок «До подписания»
   ============================================================ */
.service-note {
  display: block;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--gold-mist);
  border-left: 2px solid var(--gold);
  font-size: 11.5px;
  line-height: 1.55;
  color: #4a5754;
  align-self: flex-start;
}
.pre-sign {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 12px;
  padding: 20px 22px;
}
.pre-sign h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #14201d;
}
.pre-sign ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.pre-sign li {
  position: relative;
  padding-left: 18px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #42524e;
}
.pre-sign li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.pre-sign li strong { color: #14201d; }
.pre-sign .pre-sign-note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #3d4a47;
}
@media (max-width: 980px) {
  .pre-sign ul { grid-template-columns: 1fr; }
}
.sources {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.source-item {
  overflow-wrap: anywhere;
  word-break: break-word;
}