@charset "utf-8";
/* ==========================================================================
   Сайт адвоката Гильмутдинова А. А. — Новокузнецк
   Единственный файл стилей. Без внешних шрифтов и библиотек.
   ========================================================================== */

/* --- 1. Переменные ------------------------------------------------------- */
:root {
  --navy: #0d1b2a;
  --navy-2: #14293d;
  --ink: #17212b;
  --muted: #56626f;
  --line: #e3ded7;
  --bg: #ffffff;
  --bg-warm: #f7f5f2;
  --accent: #b01e23;
  --accent-dark: #8c161a;
  --gold: #a98b57;
  --radius: 6px;
  --shadow: 0 2px 14px rgba(13, 27, 42, .07);
  --shadow-lg: 0 10px 34px rgba(13, 27, 42, .12);
  --container: 1160px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", "PT Serif", serif;
}

/* --- 2. Сброс ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 .55em;
  color: var(--navy);
  letter-spacing: -.01em;
}

h1 { font-size: clamp(30px, 4.4vw, 50px); }
h2 { font-size: clamp(25px, 3.1vw, 36px); }
h3 { font-size: clamp(19px, 2vw, 23px); }
h4 { font-size: 18px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }

:focus-visible {
  outline: 3px solid #2a6fb0;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* --- 3. Сетка ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow { max-width: 860px; }

.section { padding: clamp(48px, 6vw, 84px) 0; }
.section--warm { background: var(--bg-warm); }
.section--tight { padding: clamp(34px, 4vw, 54px) 0; }
.section--dark { background: var(--navy); color: #d7dee6; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 3.4vw, 44px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 18px; }
.section--dark .section-head p { color: #b8c4d0; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section--dark .eyebrow { color: #e5a3a5; }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- 4. Кнопки ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}
.btn--outline:hover { background: var(--bg-warm); border-color: var(--navy); color: var(--navy); }

.btn--block { width: 100%; }

.btn svg { flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  color: var(--accent);
}
.link-arrow::after {
  content: "→";
  transition: transform .18s ease;
}
.link-arrow:hover::after { transform: translateX(4px); }

/* --- 5. Шапка ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-right: auto;
  flex: 0 0 auto;
}
.brand img { width: 40px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand__role {
  font-size: 11px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--bg-warm); color: var(--accent); }
.site-nav a[aria-current] { color: var(--accent); }
.site-nav a[aria-current]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 7px;
  background: var(--accent);
  border-radius: 2px;
}

/* Выпадающее подменю раздела «Гражданские дела» */
.site-nav .has-sub { position: relative; }
.submenu {
  position: absolute;
  top: 100%;
  left: -6px;
  z-index: 10;
  display: none;
  padding-top: 18px;   /* прозрачный мостик: меню не закрывается по пути к панели */
}
.site-nav .has-sub:hover > .submenu,
.site-nav .has-sub:focus-within > .submenu { display: block; }
.submenu ul {
  display: block;
  margin: 0;
  padding: 8px;
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.submenu li { margin: 0; }
.submenu a {
  display: block;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.submenu a:hover { background: var(--bg-warm); color: var(--accent); }
.submenu a[aria-current] { color: var(--accent); background: var(--bg-warm); }
.submenu a[aria-current]::after { display: none; }

.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}
.header-phone span { display: flex; flex-direction: column; line-height: 1.2; }
.header-phone b { font-size: 17px; font-weight: 700; white-space: nowrap; }
.header-phone small { font-size: 11.5px; color: var(--muted); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* --- 6. Первый экран ----------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(78vh, 720px);
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 8vw, 96px);
  background-color: var(--navy);
  color: #eef2f6;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(8, 17, 27, .92) 0%, rgba(8, 17, 27, .78) 42%, rgba(8, 17, 27, .42) 100%);
}
.hero__inner { max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero__lead {
  font-size: clamp(17px, 1.6vw, 19.5px);
  color: #cfd8e2;
  margin-bottom: 1.5em;
  max-width: 34em;
}
.hero__groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 1.9em;
  padding: 0;
  list-style: none;
  max-width: 660px;
}
.hero__groups li { margin: 0; }
.hero__groups a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}
.hero__groups a:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
}
.hero__groups b {
  font-family: var(--font-head);
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.2;
}
.hero__groups span {
  font-size: 13.5px;
  line-height: 1.4;
  color: #aebbc8;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero__note {
  margin-top: 1.5em;
  font-size: 14.5px;
  color: #a9b7c6;
}
.hero__note a { color: #fff; }

/* --- 7. Полоса фактов ---------------------------------------------------- */
.facts {
  border-bottom: 1px solid var(--line);
  background: var(--bg-warm);
}
.facts__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts__list li {
  margin: 0;
  padding: 20px 22px;
  border-left: 1px solid var(--line);
}
.facts__list li:first-child { border-left: 0; padding-left: 0; }
.facts b {
  display: block;
  font-family: var(--font-head);
  font-size: 25px;
  color: var(--navy);
  line-height: 1.1;
}
.facts small {
  display: block;
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.4;
  text-wrap: balance;
}

/* --- 8. Карточки --------------------------------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover {
  border-color: #c9c2b8;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: inherit;
}
.card h3, .card h4 { margin-bottom: .5em; }
.card h4 { font-size: clamp(19px, 2vw, 22px); }
.card p {
  font-size: 15.5px;
  color: var(--muted);
  margin-bottom: 1.1em;
}
.card ul {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 1.2em;
  padding-left: 1.1em;
}
.card__link {
  margin-top: auto;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--accent);
}
.card:hover .card__link { text-decoration: underline; }

.grid--1 { grid-template-columns: 1fr; }

/* Группы направлений: «Уголовные дела» / «Гражданские дела» */
.dir-group + .dir-group { margin-top: clamp(32px, 4vw, 52px); }
.dir-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.dir-group__head h3 { margin: 0; font-size: clamp(20px, 2.2vw, 26px); }
.dir-group__head p { margin: 0; font-size: 15px; color: var(--muted); }
.card--wide { padding: 28px 30px; }
.card--wide p { max-width: 62ch; }
.card--wide ul { columns: 2; column-gap: 44px; }
.card--wide ul li { break-inside: avoid; }

/* --- 9. Списки и текст --------------------------------------------------- */
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: #2b3644; }
.prose ul, .prose ol { padding-left: 1.3em; }

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: .6em;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  /* галочка — часть фона кружка: центрируется геометрически и не зависит
     ни от шрифта, ни от размера строки, поэтому не может «уехать» */
  background-color: rgba(176, 30, 35, .1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.25L7 10.75L11.5 5.25' fill='none' stroke='%23b01e23' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 15px 15px;
  border: 1px solid rgba(176, 30, 35, .35);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4.5vw, 62px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split--top { align-items: start; }
.split__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.split__media figcaption {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

/* --- 10. Причины / шаги -------------------------------------------------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 40px;
  counter-reset: reason;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reasons li {
  position: relative;
  counter-increment: reason;
  padding: 20px 0 20px 56px;
  margin: 0;
  border-top: 1px solid var(--line);
}
.reasons li::before {
  content: counter(reason, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 700;
  color: var(--accent);
  opacity: .55;
  line-height: 1;
}
.reasons b {
  display: block;
  font-family: var(--font-head);
  font-size: 19px;
  color: var(--navy);
  margin-bottom: .3em;
}
.reasons p {
  font-size: 15.5px;
  color: var(--muted);
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  counter-increment: step;
  margin: 0;
  padding-top: 54px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  /* без засечек: у Georgia цифры старостильные, и 3, 4, 5 висят ниже базовой линии */
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  /* сдвиг на 1px вверх: у цифр нет выносных элементов, поэтому центрируем сам глиф */
  padding-bottom: 2px;
}
.steps b {
  display: block;
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--navy);
  margin-bottom: .4em;
}
.steps p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* --- 11. Цены ------------------------------------------------------------ */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 12px;
  font-size: 14.5px;
  color: var(--muted);
}
.price-table th,
.price-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  vertical-align: top;
}
.price-table th {
  background: var(--bg-warm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child {
  white-space: nowrap;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
}
.price-table td.price-free {
  font-weight: 500;
  color: var(--muted);
}
.price-note {
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--muted);
}
.price-fact {
  margin: 20px 0 0;
  padding: 15px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-warm);
  font-size: 15.5px;
  color: var(--ink);
}

/* --- 12. Аккордеон ------------------------------------------------------- */
.faq { margin: 0; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
/* иконка «плюс / минус»: горизонтальная полоска неподвижна,
   вертикальная при раскрытии поворачивается на 90° и сливается с ней */
.faq-icon {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent);
  border-radius: 1px;
}
.faq-icon::before {
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
}
.faq-icon::after {
  width: 2px;
  height: 12px;
  margin: -6px 0 0 -1px;
  transition: transform .32s ease;
}
.faq details[open] .faq-icon::after {
  transform: rotate(90deg);
}
/* при закрытии панель ещё раскрыта, но полоска уже возвращается на место */
.faq details.is-closing .faq-icon::after {
  transform: rotate(0deg);
}
.faq .faq__body {
  overflow: hidden;
  transition: height .32s ease;
  font-size: 16px;
  color: #2b3644;
  max-width: 60em;
}
.faq .faq__body-inner {
  padding: 0 0 22px;
}
.faq summary:hover { color: var(--accent); }

/* --- 13. Хлебные крошки и заголовок страницы ----------------------------- */
.breadcrumbs {
  padding: 16px 0;
  font-size: 13.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #b9b2a8;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }

.page-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(40px, 6vw, 72px) 0 clamp(38px, 5vw, 60px);
  background: var(--navy);
  color: #d9e2eb;
  overflow: hidden;
}
.page-hero--image .page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 17, 27, .93) 0%, rgba(8, 17, 27, .8) 55%, rgba(8, 17, 27, .55) 100%);
}
.page-hero h1 { color: #fff; margin-bottom: .4em; max-width: 20em; }
.page-hero__lead { font-size: 18px; color: #c6d1dc; max-width: 44em; margin-bottom: 1.6em; }
.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: #aebbc8;
}
.page-hero__meta li { margin: 0; }
.page-hero__meta a { color: #fff; font-weight: 600; }

/* --- 14. Контакты -------------------------------------------------------- */
.contact-block {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  padding: 17px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  font-size: 16.5px;
}
.contact-list li:first-child { padding-top: 0; }
.contact-list dt,
.contact-list .label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.contact-list .value { color: var(--ink); }
.contact-list .value b { display: block; font-size: 20px; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--accent); text-decoration: underline; }
.contact-list small { display: block; color: var(--muted); font-size: 14px; font-weight: 400; margin-top: 3px; }

.map-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-warm);
}
.map-card h3 { font-size: 19px; }
.map-card p { font-size: 15px; color: var(--muted); }
.map-card .btn { margin-top: 8px; }

.legal-note {
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--bg-warm);
  font-size: 14.5px;
  color: var(--muted);
}
.legal-note + .legal-note { margin-top: 14px; }

/* --- 15. Подвал ---------------------------------------------------------- */
.site-footer {
  padding: clamp(40px, 5vw, 62px) 0 28px;
  background: var(--navy);
  color: #a8b6c3;
  font-size: 15px;
}
.site-footer a { color: #dbe4ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #93a1af;
  margin-bottom: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px 30px;
}
.footer-brand {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.footer-brand img { width: 44px; height: auto; }
.footer-brand b {
  display: block;
  font-family: var(--font-head);
  font-size: 19px;
  color: #fff;
}
.footer-brand span { font-size: 13px; color: #9fadbb; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer strong { color: #fff; }
.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: #94a2b0;
}
.footer-disclaimer {
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #94a2b0;
  max-width: 60em;
}
.footer-hours-note {
  font-size: 13px;
  color: #94a2b0;
}
.footer-dir {
  margin: 0 0 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #cbd7e2;
}
ul + .footer-dir { margin-top: 20px; }

/* --- 16. Мобильная кнопка звонка ----------------------------------------- */
.call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  gap: 1px;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.call-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  background: var(--accent);
}
.call-bar a + a {
  background: var(--navy-2);
}

/* --- 17. Адаптив --------------------------------------------------------- */
@media (max-width: 1040px) {
  .site-nav a { padding: 9px 9px; font-size: 14.5px; }
  .brand__role { display: none; }
}

/* шапка переходит в мобильный режим раньше, чем сетки */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header-phone { display: none; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 20px 18px;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .site-nav a {
    padding: 13px 10px;
    font-size: 16.5px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a[aria-current]::after { display: none; }

  /* подменю в мобильном меню — обычный вложенный список */
  .submenu {
    position: static;
    display: block;
    padding: 0;
  }
  .submenu ul {
    min-width: 0;
    padding: 0 0 6px;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .submenu a {
    padding: 11px 10px 11px 22px;
    font-size: 15px;
    font-weight: 400;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 920px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .facts__list { grid-template-columns: repeat(2, 1fr); }
  .facts__list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts__list li:nth-child(3),
  .facts__list li:nth-child(4) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .contact-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .call-bar { display: flex; }
  body { padding-bottom: 56px; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero__bg { object-position: 58% 45%; }
  .hero__groups { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .card--wide { padding: 22px 20px; }
  .card--wide ul { columns: 1; }
  .facts__list { grid-template-columns: 1fr; }
  .facts__list li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .facts__list li:first-child { border-top: 0; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .price-table th, .price-table td { padding: 13px 14px; font-size: 15px; }
  .price-table td:last-child { white-space: normal; text-align: right; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand__name { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* --- 18. Печать ---------------------------------------------------------- */
@media print {
  .site-header, .call-bar, .hero__actions, .breadcrumbs, .site-footer { display: none; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}
