/* ============================================================
   Семейный юрист Краснодар — стили лендинга
   ============================================================ */

:root {
  --navy: #0d1b2a;
  --navy-soft: #16293f;
  --navy-line: #24405e;
  --gold: #f0a500;
  --gold-dark: #d18f00;
  --text: #1c2733;
  --muted: #5c6b7a;
  --bg: #f5f7fa;
  --card: #ffffff;
  --line: #e2e8f0;
  --danger: #d64545;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 27, 42, .08);
  --shadow-lg: 0 24px 60px rgba(13, 27, 42, .18);
  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}

.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(240,165,0,.35); }
.btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.topbar {
  background: var(--navy);
  color: #cbd8e6;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}
.topbar__item { display: flex; align-items: center; gap: 8px; }
.topbar__item svg { flex: none; opacity: .8; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 27, 42, .96);
  backdrop-filter: blur(8px);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  background: var(--gold);
  color: var(--navy);
  border-radius: 10px;
  font-size: 22px;
}
.logo__text strong { display: block; font-size: 17px; letter-spacing: .2px; }
.logo__text > span { display: block; font-size: 12px; color: #9db0c4; letter-spacing: .5px; text-transform: uppercase; }

.nav { display: flex; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; color: #cdd9e6; transition: color .2s; }
.nav a:hover { color: var(--gold); }

.header__phone {
  text-align: right;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
}
.header__phone strong { display: block; font-size: 18px; letter-spacing: .3px; }
.header__phone span { font-size: 12px; color: var(--gold); }

/* ---------- Герой ---------- */
.hero {
  position: relative;
  padding: 0;
  color: #fff;
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(240,165,0,.20), transparent 60%),
    linear-gradient(160deg, #0d1b2a 0%, #16324e 55%, #0d1b2a 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -140px; bottom: -180px;
  width: 520px; height: 520px;
  border-radius: 50%;
  border: 60px solid rgba(240,165,0,.06);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-areas:
    "intro form"
    "card card";
  gap: 36px 56px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(240,165,0,.14);
  border: 1px solid rgba(240,165,0,.35);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(30px, 4.2vw, 50px); margin-bottom: 20px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero__lead { font-size: 18px; color: #c6d3e2; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__note { margin-top: 22px; font-size: 14px; color: #9db0c4; }

.hero__intro { grid-area: intro; min-width: 0; }
.hero__form {
  grid-area: form;
  justify-self: end;
  width: 100%;
  max-width: 430px;
  background: #fff;
  color: var(--text);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .3);
}
.hero__form h3 { font-size: 20px; margin-bottom: 6px; color: var(--navy); }
.hero__form #heroIntro p { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin-bottom: 16px; }
.hero__form .field { margin-bottom: 12px; }
.hero__form .form-consent { font-size: 11.5px; margin: 14px 0 0; }
.hero__form .form-note { margin-top: 10px; min-height: 0; }
.hero__form .form-success { padding: 0 0 4px; text-align: left; }
.hero__form .form-success__icon { margin-left: 0; width: 48px; height: 48px; font-size: 24px; }

.hero__card {
  grid-area: card;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 26px 30px;
  backdrop-filter: blur(6px);
}
.hero__card h3 { font-size: 19px; margin-bottom: 14px; }
.hero__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.hero__list li { display: block; }
.hero__chip {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #e3ecf5;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.hero__chip:hover,
.hero__chip:focus-visible {
  background: rgba(240, 165, 0, .12);
  border-color: rgba(240, 165, 0, .5);
  color: #fff;
  transform: translateY(-2px);
}
.hero__chip .check { width: 20px; height: 20px; font-size: 12px; }
.hero__chip-label { flex: 1; }
.hero__chip-arrow { flex: none; opacity: .55; }
.check {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(240,165,0,.16);
  color: var(--gold);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
}

/* ---------- Полоса статистики ---------- */
.stats {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 34px;
  padding-bottom: 34px;
}
.stat { text-align: center; border-right: 1px solid var(--line); }
.stat--link { display: block; text-decoration: none; color: inherit; transition: color .18s ease; }
.stat--link span::after { content: " \2197"; color: var(--gold-dark); font-size: 12px; }
.stat--link:hover strong { color: var(--gold-dark); }
.stat--link:hover span { color: var(--navy); }
.stat:last-child { border-right: none; }
.stat strong { display: block; font-size: 30px; color: var(--navy); }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- Секции ---------- */
section { padding: 78px 0; }
section[id] { scroll-margin-top: 90px; }
.section--alt { background: #fff; }

.section__head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section__head .eyebrow {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section__head h2 { font-size: clamp(24px, 3.2vw, 36px); }
.section__head p { color: var(--muted); font-size: 16px; margin: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdcea; }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: #eef3f9;
  color: var(--navy);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--gold-dark); }
.card p { font-size: 14.5px; color: var(--muted); margin: 0; }
.card[id] { scroll-margin-top: 104px; }
.card:target {
  border-color: rgba(240, 165, 0, .55);
  box-shadow: 0 0 0 3px rgba(240, 165, 0, .18), var(--shadow);
}

/* ---------- Преимущества / шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step__num {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold);
  display: grid; place-items: center;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Гарантии ---------- */
.guarantees {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.guarantee {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 24px 26px;
}
.guarantee__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(240, 165, 0, .14);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.guarantee h3 { font-size: 17px; margin-bottom: 8px; }
.guarantee p { font-size: 14.5px; color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .guarantees { grid-template-columns: 1fr; }
}

/* ---------- Частые ситуации ---------- */
.situations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.situation {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.situation:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfdcea; }
.situation__media { padding: 12px 12px 0; }
.situation__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.situation__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 22px 24px;
}
.situation__body h3 { font-size: 18px; margin-bottom: 8px; }
.situation__body p { font-size: 14.5px; color: var(--muted); margin: 0 0 18px; }
.situation__link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--gold-dark);
  text-decoration: none;
}
.situation__link::after { content: "\2192"; transition: transform .2s ease; }
.situation__link:hover::after { transform: translateX(3px); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq__item[open] { border-color: #cfdcea; box-shadow: var(--shadow); }
.faq__item summary {
  position: relative;
  padding: 18px 56px 18px 22px;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--gold-dark);
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item summary:hover { color: var(--gold-dark); }
.faq__answer { padding: 0 22px 20px; }
.faq__answer p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Форма ---------- */
.form-section {
  background:
    radial-gradient(700px 400px at 15% 0%, rgba(240,165,0,.15), transparent 60%),
    linear-gradient(160deg, #0d1b2a, #16324e);
  color: #fff;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 54px;
  align-items: center;
}
.form-info h2 { font-size: clamp(24px, 3.2vw, 36px); }
.form-info p { color: #c6d3e2; font-size: 16px; }
.form-info ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 13px; }
.form-info li { display: flex; gap: 12px; align-items: flex-start; color: #d7e2ee; font-size: 15px; }
.form-info .phone-big {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 14px 22px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .3px;
}
.form-info .phone-big:hover { border-color: var(--gold); color: var(--gold); }

.form-card {
  background: #fff;
  color: var(--text);
  border-radius: 18px;
  padding: 34px;
  box-shadow: var(--shadow-lg);
}
.form-card h3 { font-size: 22px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }

.field { margin-bottom: 18px; }
.field label,
.field .field__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
  color: #33475c;
}
.field .req { color: var(--danger); }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font-size: 15.5px;
  font-family: inherit;
  color: var(--text);
  background: #f8fafc;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  outline: none;
}
.field input::placeholder,
.field textarea::placeholder { color: #9aa8b6; }
.field input:focus,
.field textarea:focus {
  background: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(240,165,0,.16);
}
.field textarea { resize: vertical; min-height: 118px; }

.field__meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
  font-size: 12.5px;
  color: #8b99a7;
}
.field input:invalid:not(:placeholder-shown) { border-color: var(--line); }
.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--danger);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, .12);
}
.field.is-invalid input:focus,
.field.is-invalid textarea:focus { border-color: var(--danger); }

.field__optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}

/* Yandex SmartCaptcha */
.field--captcha { margin-top: 4px; }
.field--captcha .smart-captcha {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.field__error {
  margin: 6px 0 0;
  min-height: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
}
.field__error:empty { display: none; }

.form-consent {
  font-size: 12.5px;
  color: var(--muted);
  margin: 16px 0 18px;
  line-height: 1.5;
}
.form-consent a { color: var(--gold-dark); }

.form-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--gold-dark);
  font-weight: 600;
  min-height: 18px;
  text-align: center;
}

/* ---------- Экран «заявка принята» ---------- */
[hidden] { display: none !important; }

.form-success { text-align: center; padding: 10px 0 4px; }
.form-success:focus { outline: none; }
.form-success__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(240, 165, 0, .16);
  color: var(--gold-dark);
  font-size: 28px;
  font-weight: 700;
}
.form-success h4 { font-size: 22px; margin: 0 0 10px; color: var(--navy); }
.form-success p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.form-success strong { color: var(--navy); }
.form-success__note { font-size: 13px; margin: 14px 0 0; }

/* ---------- Мобильная панель связи ---------- */
.mobile-cta { display: none; }

@media (max-width: 1000px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(13, 27, 42, .97);
    border-top: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    transform: translateY(110%);
    transition: transform .25s ease;
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
  }
  .mobile-cta__btn--call {
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .35);
  }
  .mobile-cta__btn--lead {
    background: var(--gold);
    color: var(--navy);
  }
}
@media (max-width: 360px) {
  .mobile-cta { grid-template-columns: 1fr 1fr; }
  .mobile-cta__btn { font-size: 14px; padding: 12px 8px; }
}

/* ---------- Посадочные страницы ---------- */
.hero--landing .wrap { grid-template-areas: "intro form"; }
@media (max-width: 1000px) {
  .hero--landing .wrap { grid-template-areas: "intro" "form"; }
}

/* ---------- Подвал ---------- */
.footer { background: #0a1622; color: #93a5b8; font-size: 14.5px; padding: 54px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr .9fr 1fr;
  gap: 34px;
  padding-bottom: 40px;
}
.footer h4 { color: #fff; font-size: 15px; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: #93a5b8; }
.footer a:hover { color: var(--gold); }
.footer .logo__text > span { color: #6d8298; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: #6d8298;
}

/* ---------- Юридические страницы ---------- */
.legal { padding: 56px 0 72px; }
.legal__head { max-width: 860px; margin: 0 auto 26px; }
.legal__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
}
.legal__crumbs a { color: var(--muted); text-decoration: none; }
.legal__crumbs a:hover { color: var(--gold-dark); }
.legal__crumbs [aria-current="page"] { color: var(--text); }
.legal__head h1 { font-size: clamp(26px, 3.4vw, 40px); color: var(--navy); margin-bottom: 12px; }
.legal__meta { margin: 0; font-size: 14px; color: var(--muted); }

.legal__content {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 46px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.legal__content h2 {
  font-size: clamp(19px, 2vw, 23px);
  color: var(--navy);
  margin: 1.7em 0 .6em;
}
.legal__content h2:first-child { margin-top: 0; }
.legal__content h3 { font-size: 17px; margin: 1.3em 0 .5em; }
.legal__content p,
.legal__content li { font-size: 15.5px; }
.legal__content ul,
.legal__content ol { margin: 0 0 1em; padding-left: 1.4em; }
.legal__content li { margin-bottom: .45em; }
.legal__content a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal__content a:hover { color: var(--navy); }
.legal__content code {
  padding: 1px 5px;
  background: #eef3f9;
  border-radius: 4px;
  font-size: .92em;
}
.legal__note {
  margin: 0 0 1.6em;
  padding: 14px 18px;
  background: #fff7e6;
  border: 1px solid #f3d9a4;
  border-radius: 10px;
  font-size: 14.5px;
  color: #6b4e00;
}

.legal__table-wrap { margin: 0 0 1.6em; overflow-x: auto; }
.legal__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.legal__table th,
.legal__table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal__table th { background: #eef3f9; color: var(--navy); font-weight: 700; }
.legal__table td { color: var(--text); }
.legal__table caption {
  caption-side: top;
  padding: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
  text-align: left;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "form" "card";
    gap: 34px;
    padding-top: 54px;
    padding-bottom: 60px;
  }
  .hero__form { justify-self: center; max-width: 480px; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .situations { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .stat { border-right: none; }
}
@media (max-width: 620px) {
  section { padding: 54px 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .situations { grid-template-columns: 1fr; }
  .hero__list { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .header__phone span { display: none; }
  .logo__text > span { display: none; }
  .logo__city { display: none; }
  .hero__actions .btn { width: 100%; }
  .form-card { padding: 24px; }
}

/* ============================================================
   Тема B — «Светлый редакционный»
   Переопределяет базовую тему. Шрифты системные.
   ============================================================ */

:root {
  --navy: #274c77;
  --navy-soft: #335c8a;
  --navy-line: #d7e2ec;
  --gold: #c97b5a;
  --gold-dark: #a85f42;
  --text: #1b2a38;
  --muted: #5c6b7a;
  --bg: #e9eff6;
  --card: #ffffff;
  --line: #d5e0ea;
  --danger: #b04a45;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(27, 42, 56, .07);
  --shadow-lg: 0 26px 60px rgba(27, 42, 56, .16);
}

body {
  background: var(--bg);
  color: var(--text);
}

h1, h2, h3, h4,
.logo__text strong,
.stat strong,
.form-success h4 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  letter-spacing: -.015em;
}

/* ---------- Верхняя полоса и шапка ---------- */
.topbar {
  background: #ffffff;
  color: #5c6b7a;
  border-bottom: 1px solid #e5ebf1;
}

.topbar__item svg { opacity: .65; }

.header {
  background: rgba(255, 255, 255, .97);
  color: #1b2a38;
  border-bottom: 1px solid #cfdae6;
  box-shadow: 0 6px 18px rgba(27, 42, 56, .05);
}

.logo__mark {
  background: #274c77;
  color: #ffffff;
  border-radius: 8px;
}

.logo__text strong { color: #1b2a38; }
.logo__text > span { color: #7a8b9c; }

.nav a { color: #526578; }
.nav a:hover { color: #c97b5a; }

.header__phone strong { color: #1b2a38; }
.header__phone span { color: #a85f42; }

/* ---------- Герой ---------- */
.hero {
  color: #1b2a38;
  background:
    radial-gradient(900px 420px at 86% 0%, rgba(201, 123, 90, .14), transparent 60%),
    linear-gradient(180deg, #f8fbfd 0%, #e9eff6 100%);
  border-bottom: 1px solid #d5e0ea;
}

.hero::after {
  border-color: rgba(39, 76, 119, .06);
}

.hero h1 em { color: #a85f42; }
.hero__lead { color: #526578; }
.hero__note { color: #7a8b9c; }

.badge {
  background: rgba(201, 123, 90, .12);
  border-color: rgba(201, 123, 90, .32);
  color: #a85f42;
}

.btn--gold {
  background: #274c77;
  color: #ffffff;
  border-radius: 10px;
}

.btn--gold:hover {
  background: #1e3d60;
  box-shadow: 0 12px 26px rgba(39, 76, 119, .26);
}

.btn--ghost {
  color: #274c77;
  border: 2px solid #c9d6e3;
}

.btn--ghost:hover {
  border-color: #c97b5a;
  color: #a85f42;
}

.hero__form {
  background: #ffffff;
  border: 1px solid #e5ebf1;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(27, 42, 56, .1);
}

.hero__form h3 { color: #1b2a38; }

.hero__card {
  background: #ffffff;
  border-color: #dde5ec;
  border-radius: 14px;
}

.hero__card h3 { color: #1b2a38; }

.hero__chip {
  background: #f7f9fb;
  border-color: #dde5ec;
  color: #274c77;
}

.hero__chip:hover,
.hero__chip:focus-visible {
  background: #fff6f1;
  border-color: rgba(201, 123, 90, .5);
  color: #a85f42;
}

.check {
  background: rgba(39, 76, 119, .1);
  color: #274c77;
}

.hero__chip .check {
  background: rgba(201, 123, 90, .12);
  color: #a85f42;
}

/* ---------- Статистика ---------- */
.stats {
  background: #ffffff;
  border-bottom-color: var(--line);
}

.stat strong {
  color: #274c77;
  font-size: 32px;
}

.stat--link:hover strong { color: #a85f42; }

/* ---------- Секции и карточки ---------- */
.section--alt { background: #eaf1f7; }

.section__head .eyebrow {
  color: #a85f42;
  letter-spacing: 1.8px;
}

.card {
  background: #ffffff;
  border-color: var(--line);
  border-radius: 14px;
}

.card:hover {
  border-color: #c9d6e3;
  box-shadow: 0 16px 34px rgba(27, 42, 56, .08);
}

.card__icon {
  background: #eef4fa;
  color: #274c77;
  border-radius: 10px;
}

.card h3 { font-size: 18px; }
.card h3 a:hover { color: #a85f42; }

/* ---------- Шаги ---------- */
.step {
  background: #ffffff;
  border-color: var(--line);
  border-radius: 14px;
}

.step__num {
  background: #274c77;
  color: #ffffff;
  border-radius: 10px;
}

/* ---------- Гарантии ---------- */
.guarantee {
  background: #ffffff;
  border-color: var(--line);
  border-left-color: var(--gold);
  border-radius: 14px;
}

.guarantee__icon {
  background: #fdeee8;
  color: #a85f42;
}

/* ---------- FAQ ---------- */
.faq__item {
  background: #ffffff;
  border-color: var(--line);
}

.faq__item summary {
  color: #1b2a38;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 17.5px;
}

.faq__item summary::after { color: #a85f42; }
.faq__item summary:hover { color: #a85f42; }

/* ---------- Форма ---------- */
.form-section {
  background:
    radial-gradient(700px 400px at 15% 0%, rgba(201, 123, 90, .18), transparent 60%),
    linear-gradient(160deg, #1b2a38, #274c77);
}

.form-info .check {
  background: rgba(201, 123, 90, .22);
  color: #e8b29d;
}

.form-card {
  background: #ffffff;
  border-radius: 16px;
}

.form-card h3 { color: #1b2a38; }

.field label,
.field .field__label { color: #33475c; }

.field input,
.field textarea {
  background: #f8fafc;
  border-color: var(--line);
}

.field input:focus,
.field textarea:focus {
  border-color: #274c77;
  box-shadow: 0 0 0 4px rgba(39, 76, 119, .14);
}

.form-consent a,
.form-note { color: #a85f42; }

.form-success__icon {
  background: rgba(39, 76, 119, .1);
  color: #274c77;
}

.form-success h4 { color: #1b2a38; }

/* ---------- Подвал ---------- */
.footer {
  background: #14212e;
  color: #93a5b8;
}

.footer h4 { color: #ffffff; }
.footer a { color: #93a5b8; }
.footer a:hover { color: #d99a80; }
.footer .logo__text > span { color: #6d8298; }

.footer__bottom {
  border-top-color: rgba(255, 255, 255, .08);
  color: #6d8298;
}

/* ---------- Мобильная панель ---------- */
.mobile-cta {
  background: rgba(20, 33, 46, .97);
  border-top-color: rgba(255, 255, 255, .1);
}

.mobile-cta__btn--lead {
  background: #274c77;
  color: #ffffff;
}

/* ---------- Юридические страницы ---------- */
.legal__content h2,
.legal__head h1 { color: #1b2a38; }
.legal__note {
  background: #fdf3ee;
  border-color: #ecd3c5;
  color: #7a3f29;
}
