/* =========================================================================
   СФЕРА+ — юридический лендинг
   style.css — токены дизайн-системы, базовые стили, компоненты, секции
   ========================================================================= */

/* ------------------------------- 1. Токены ------------------------------- */
:root {
  /* Цвет */
  --c-bg: #f5f7fb;
  --c-surface: #ffffff;
  --c-panel: #eef3f8;
  --c-menu: #e5ebf3;
  --c-line: #dce3eb;
  --c-text: #17191e;
  --c-muted: #66707e;
  --c-accent: #2d5bee;
  --c-accent-dark: #1f47c9;
  --c-accent-deep: #075be8;
  --c-signal: #eaa629;

  --c-section-light: #f4f7fb;
  --c-section-pale: #eef3fa;
  --c-pale-blue: #eaf0ff;
  --c-field: #f7f8fb;

  --c-on-dark: #ffffff;
  --c-on-dark-80: rgba(255, 255, 255, 0.78);
  --c-on-dark-60: rgba(255, 255, 255, 0.56);
  --c-on-dark-18: rgba(255, 255, 255, 0.18);
  --c-on-dark-10: rgba(255, 255, 255, 0.1);
  --c-on-dark-line: rgba(255, 255, 255, 0.2);

  --c-footer-text: #14233c;
  --c-footer-muted: #526176;
  --c-footer-caption: #6e7b8f;

  /* Геометрия */
  --r-section: 22px;
  --r-card: 18px;
  --r-md: 14px;
  --r-sm: 12px;
  --r-xs: 10px;
  --r-2xs: 8px;

  /* Интервалы (база 4px) */
  --s-8: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-24: 24px;
  --s-36: 36px;
  --s-52: 52px;
  --s-72: 72px;

  /* Раскладка */
  --page-gutter: 20px;
  --header-x: 44px;
  --plate-pad-x: 36px;
  --plate-gap: 28px;
  --header-h: 51px;
  --answer-min: 130px;

  /* Типографика */
  --font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(28px, 3.05vw, 44px);
  --fs-h1: var(--fs-hero); /* заголовки секций — в размер главного оффера */
  --fs-h2: clamp(26px, 2.6vw, 36px);
  --fs-h3: clamp(24px, 2vw, 28px);
  --fs-title: clamp(20px, 1.55vw, 22px);
  --fs-lead: clamp(16px, 1.25vw, 18px);
  --fs-body: 16px;
  --fs-small: 16px; /* нижняя граница читаемого текста */
  --fs-caption: 10px;

  /* Движение */
  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
  --t-fast: 0.18s var(--ease);
  --t-base: 0.28s var(--ease);
  --t-slow: 0.6s var(--ease);

  /* Тени — намеренно лёгкие, деловой тон дизайн-системы */
  --shadow-sm: 0 1px 3px rgba(23, 25, 30, 0.04);
  --shadow-md: 0 3px 12px rgba(23, 25, 30, 0.055);
  --shadow-lg: 0 10px 34px rgba(23, 25, 30, 0.1);
  --shadow-accent: 0 3px 12px rgba(45, 91, 238, 0.16);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--c-surface);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

svg {
  display: block;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 0 0 var(--r-xs) 0;
}

.skip-link:focus-visible {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

/* --------------------------- 3. Иконки и мелочи -------------------------- */
.ic {
  fill: currentColor;
  flex: none;
}

.ic--14 { width: 14px; height: 14px; }
.ic--15 { width: 15px; height: 15px; }
.ic--16 { width: 16px; height: 16px; }
.ic--17 { width: 17px; height: 17px; }
.ic--18 { width: 18px; height: 18px; }
.ic--20 { width: 20px; height: 20px; }
.ic--21 { width: 21px; height: 21px; }
.ic--23 { width: 23px; height: 23px; }

.dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--c-accent);
}

.dot--signal {
  background: var(--c-signal);
}

.bullet {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 2px;
  background: currentColor;
}

.dash {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 2px;
  background: var(--c-accent);
}

/* --------------------------------- Чипы ---------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-2xs);
  font-size: 11px;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.chip--white {
  background: var(--c-surface);
  color: var(--c-text);
}

.chip--sm {
  height: auto;
  padding: 10px 12px;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0;
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, 0.91);
}

.chip--xs {
  height: 30px;
  gap: 7px;
  padding: 0 11px;
  font-size: 9px;
  letter-spacing: 0.9px;
  border-radius: var(--r-xs);
}

/* -------------------------------- Кнопки --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--t-fast), color var(--t-fast),
    box-shadow var(--t-base), transform var(--t-fast), border-color var(--t-fast);
}

.btn__arrow {
  transition: transform var(--t-base);
}

.btn--accent {
  background: var(--c-accent);
  color: var(--c-on-dark);
}

.btn--soft {
  background: var(--c-menu);
  color: var(--c-text);
}

.btn--white {
  background: var(--c-surface);
  color: var(--c-accent);
}

.btn--outline {
  background: var(--c-menu);
  color: var(--c-text);
  border: 1px solid var(--c-line);
}

.btn__arrow--accent {
  color: var(--c-accent);
}

.btn--sm {
  height: 35px;
  padding: 0 18px;
  gap: 9px;
  border-radius: var(--r-2xs);
  font-size: 12px;
  font-weight: 400;
}

.btn--lg {
  height: 58px;
  padding: 0 22px;
  border-radius: var(--r-xs);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 400;
}

.btn--block {
  width: 100%;
  height: 54px;
  border-radius: var(--r-2xs);
  font-size: var(--fs-small);
  font-weight: 600;
}

/* ------------------------------ Иконка-плашка ---------------------------- */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--r-sm);
}

.icon-box--pale {
  background: var(--c-bg);
  color: var(--c-accent);
}

.icon-box--accent {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--c-accent);
  color: var(--c-on-dark);
}

.icon-box--white {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-accent);
}

/* -------------------------------- Статусы -------------------------------- */
.status {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--r-2xs);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.55px;
  white-space: nowrap;
}

.status--accent {
  background: var(--c-accent-deep);
  color: #f2f3f0;
}

/* ------------------------------- 4. Шапка -------------------------------- */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 38px var(--header-x) 0;
}

/* Подложка под шапкой: по ширине плит лендинга, появляется при прокрутке.
   Отступы считаются от поля страницы, поэтому совпадают на всех брейкпоинтах. */
.site-header::before {
  content: "";
  position: absolute;
  left: calc(var(--page-gutter) - var(--header-x));
  right: calc(var(--page-gutter) - var(--header-x));
  top: -12px;
  z-index: -1;
  height: calc(100% + 24px);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r-section);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px;
  flex: none;
  background: var(--c-surface);
  border-radius: var(--r-xs);
  transition: box-shadow var(--t-base);
}

.logo__name {
  font-size: 22px;
  letter-spacing: -0.8px;
}

.logo__mark {
  font-size: 22px;
  color: var(--c-accent);
}

.nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 26px;
  height: 51px;
  padding: 0 24px;
  background: var(--c-menu);
  border-radius: var(--r-xs);
}

.nav__link {
  position: relative;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--c-muted);
  white-space: nowrap;
  transition: color var(--t-fast);
}

/* ------------------------ Раскрывающийся список услуг --------------------- */
.nav__item {
  position: relative;
  display: flex;
  align-self: stretch;
  align-items: center;
}

.nav__link--has-menu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav__chevron {
  width: 10px;
  height: 6px;
  flex: none;
  transition: transform var(--t-base);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 5;
  width: 320px;
  /* Верхний отступ работает мостиком: курсор идёт от пункта к списку,
     не выходя за пределы области наведения */
  padding-top: 14px;
  transform: translateX(-50%) translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base);
}

.nav__item:hover .submenu,
.nav__item:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__item:hover .nav__chevron,
.nav__item:focus-within .nav__chevron {
  transform: rotate(180deg);
}

.submenu__inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  background: var(--c-surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}

.submenu__link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 13px;
  border-radius: var(--r-xs);
  white-space: normal;
  transition: background-color var(--t-fast);
}

.submenu__link:hover {
  background: var(--c-bg);
}

.submenu__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
}

.submenu__text {
  font-size: 13px;
  line-height: 1.3;
  color: var(--c-muted);
}

.header-contacts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  height: 51px;
  padding: 0 9px 0 18px;
  flex: none;
  background: var(--c-surface);
  border-radius: var(--r-xs);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-body);
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--t-fast);
}

.burger {
  display: none;
  width: 51px;
  height: 51px;
  flex: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: var(--c-surface);
  border-radius: var(--r-xs);
}

.burger span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-text);
  transition: transform var(--t-base), opacity var(--t-fast);
}

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0 0 auto;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: var(--s-24);
  padding: 110px 20px 28px;
  background: var(--c-panel);
  border-radius: 0 0 var(--r-section) var(--r-section);
  box-shadow: var(--shadow-lg);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu__nav a {
  display: block;
  padding: 14px 4px;
  font-size: 20px;
  border-bottom: 1px solid var(--c-line);
}

/* Вложенные услуги в мобильном меню — обычным списком со сдвигом */
.mobile-menu__sub {
  display: flex;
  flex-direction: column;
}

.mobile-menu__sub a {
  padding: 12px 4px 12px 18px;
  font-size: 16px;
  color: var(--c-muted);
}

.mobile-menu__foot {
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
  align-items: stretch;
}

/* ------------------------------ 5. Плиты --------------------------------- */
.plate {
  position: relative;
  margin: 0 var(--page-gutter);
  border-radius: var(--r-section);
  overflow: hidden;
}

.plate + .plate {
  margin-top: var(--plate-gap);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: var(--s-72) var(--plate-pad-x);
}

.section--light {
  background: var(--c-section-light);
}

.section--pale {
  background: var(--c-section-pale);
}

.section--accent {
  background: var(--c-accent);
  color: var(--c-on-dark);
}

.section__intro {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-bottom: 10px;
}

.section__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
  /* 740px на широком экране, но не больше 58% строки — чтобы описание
     справа не сжималось на промежуточных ширинах */
  width: min(740px, 58%);
  flex: none;
}

.section__head--wide {
  width: 820px;
}

.section__title {
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.section__title--on-accent {
  color: var(--c-on-dark);
}

.section__lead {
  max-width: 455px;
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--c-muted);
}

.section__lead--on-accent {
  color: var(--c-on-dark-80);
  max-width: 560px;
}

/* -------------------------------- 6. Hero -------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
  min-height: 816px;
  margin-top: -71px;
  padding: 108px var(--plate-pad-x) 32px;
  background: var(--c-panel);
  border-radius: 20px;
}

.hero__offer {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  max-width: 1035px;
}

.hero__title {
  display: flex;
  flex-direction: column;
  max-width: 830px;
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.hero__title-line--accent {
  color: var(--c-accent);
}

.hero__lead {
  max-width: 650px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.4;
  color: #414852;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__strip {
  display: flex;
  gap: var(--s-16);
  flex: none;
}

/* Синяя панель «что вы получите на старте» */
.start-panel {
  display: flex;
  flex-direction: column;
  width: 590px;
  flex: none;
  padding: 16px 20px;
  background: var(--c-accent);
  color: var(--c-on-dark);
  border-radius: var(--r-xs);
}

.start-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-16);
  height: 46px;
  flex: none;
}

.start-panel__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.start-panel__note {
  font-size: 8px;
  letter-spacing: 0.8px;
  color: var(--c-on-dark-60);
}

.start-panel__list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.start-panel__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 0;
  padding: 0 2px;
  font-size: var(--fs-small);
  line-height: 1.15;
}

.start-panel__list li:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Карточка с портретом */
.lawyer-card {
  flex: 1 1 auto;
  min-width: 0;
  height: 262px;
  padding: 18px 20px;
  background: #d7dee7;
  border-radius: var(--r-xs);
}

.hero__person {
  position: absolute;
  right: 481px;
  bottom: 44px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--r-sm);
  backdrop-filter: blur(4px);
}

.hero__person-name {
  font-size: 15px;
  white-space: nowrap;
}

.hero__person-role {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-muted);
  white-space: nowrap;
}

.hero__portrait {
  position: absolute;
  right: 36px;
  bottom: 32px;
  z-index: 3;
  width: min(961px, 68vw);
  max-width: none; /* общий сброс img ограничил бы ширину контейнером */
  height: auto;
  aspect-ratio: 961 / 637;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* ------------------------- 7. Карточки направлений ------------------------ */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
  padding: 26px;
  background: var(--c-surface);
  border-radius: var(--r-card);
}

.card--wide {
  flex-direction: row;
  align-items: stretch;
  gap: 28px;
  padding: 28px;
}

.card--accent {
  background: var(--c-accent);
  color: var(--c-on-dark);
}

.card__body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-16);
}

.card__body--center {
  justify-content: center;
  gap: 18px;
}

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-16);
  width: 100%;
  min-height: 30px;
}

.card__num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--c-accent);
}

.card--accent .card__num {
  color: var(--c-on-dark);
}

.card__title {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.card__title--lg {
  font-size: clamp(25px, 2.2vw, 31px);
}

.card__text {
  font-size: var(--fs-body);
  line-height: 1.44;
  color: var(--c-muted);
}

.card--accent .card__text {
  color: var(--c-on-dark-80);
}

/* Список пунктов услуги внутри карточки */
.row-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1 1 auto;
}

.row-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 8px 0;
  font-size: var(--fs-small);
  line-height: 1.32;
}

.row-list li:not(:last-child) {
  border-bottom: 1px solid var(--c-line);
}

/* На синей карточке линии и маркеры — светлые */
.card--accent .row-list li:not(:last-child) {
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

.card--accent .dash {
  background: var(--c-on-dark);
}

/* Фото */
.photo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 16px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: var(--r-md);
  overflow: hidden;
}

.photo--tall {
  width: 470px;
  flex: none;
  min-height: 353px;
}

.photo--portrait {
  width: 470px;
  flex: none;
  align-self: stretch;
}

/* --------------------------- 8. Первичная оценка -------------------------- */
.protocol {
  display: flex;
  background: var(--c-surface);
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: var(--r-card);
  overflow: hidden;
}

.protocol__aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-24);
  width: 300px;
  flex: none;
  padding: 28px;
  background: var(--c-pale-blue);
  color: var(--c-text);
}

.protocol__aside > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.protocol__title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.protocol__text {
  font-size: var(--fs-body);
  line-height: 1.44;
  color: var(--c-muted);
}

.protocol__total {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}

.protocol__count {
  font-size: 58px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--c-accent);
}

.protocol__caption {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--c-muted);
}

/* Сетка вместо колонки: строки выравниваются по самой высокой,
   поэтому все шаги одинаковые независимо от длины текста */
.answers {
  display: grid;
  grid-auto-rows: minmax(var(--answer-min), 1fr);
  flex: 1 1 auto;
  min-width: 0;
  color: var(--c-text);
}

.answer {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
}

.answer:not(:last-child) {
  border-bottom: 1px solid var(--c-line);
}

.answer__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 13px;
  background: var(--c-menu);
  color: var(--c-accent);
  font-size: 18px;
  font-weight: 700;
}

.answer__body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: var(--s-8);
}

.answer__title {
  font-size: var(--fs-title);
  font-weight: 600;
  letter-spacing: -0.014em;
}

.answer__text {
  font-size: var(--fs-body);
  line-height: 1.38;
  color: var(--c-muted);
}

.assessment__foot {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.disclaimer {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-card);
}

.disclaimer > div {
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}

.disclaimer__title {
  font-size: clamp(20px, 1.6vw, 23px);
  font-weight: 600;
  letter-spacing: -0.014em;
}

.disclaimer__text {
  font-size: var(--fs-body);
  line-height: 1.44;
  color: var(--c-on-dark-80);
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--s-16);
  width: 440px;
  flex: none;
  padding: 26px;
  background: var(--c-surface);
  color: var(--c-text);
  border-radius: var(--r-card);
}

.cta-card__title {
  font-size: clamp(21px, 1.7vw, 24px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.017em;
}

.cta-card .btn {
  height: 54px;
  padding: 0 18px;
  border-radius: 13px;
  font-size: var(--fs-small);
  font-weight: 600;
}

.cta-card__hint {
  font-size: var(--fs-small);
  line-height: 1.42;
  color: var(--c-muted);
}

/* ------------------------------ 9. Практика ------------------------------- */
.grid {
  display: grid;
  gap: 18px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--cases {
  grid-template-columns: repeat(24, minmax(0, 1fr));
}

/* Широкие карточки чуть уже — разница с узкими стала мягче */
.grid--cases > :nth-child(1) { grid-column: span 13; }
.grid--cases > :nth-child(2) { grid-column: span 11; }
.grid--cases > :nth-child(3) { grid-column: span 11; }
.grid--cases > :nth-child(4) { grid-column: span 13; }

.case {
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
  padding: 26px;
  background: var(--c-surface);
  border-radius: var(--r-card);
}

.case--accent {
  background: var(--c-accent);
  color: var(--c-on-dark);
}

.case--pale {
  background: var(--c-pale-blue);
}

.case__title {
  font-size: clamp(22px, 1.85vw, 25px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* Шаги кейса: подзаголовок внутри строки, текст на всю ширину карточки */
.case__steps {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--s-16);
}

.case__step {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--c-muted);
}

.case--accent .case__step {
  color: var(--c-on-dark-80);
}

.case__label {
  font-weight: 600;
  color: var(--c-text);
}

.case--accent .case__label {
  color: var(--c-on-dark);
}

/* Результат — ради него блок и читают: подложка + плотное начертание */
.case__step--result {
  margin-top: auto;
  padding: 14px 16px;
  background: var(--c-pale-blue);
  border-radius: var(--r-sm);
  color: var(--c-text);
  font-weight: 500;
}

.case--accent .case__step--result {
  background: rgba(255, 255, 255, 0.14);
  color: var(--c-on-dark);
}

.case--pale .case__step--result {
  background: var(--c-surface);
}

/* ------------------------------ 10. О юристе ------------------------------ */
.dossier {
  display: flex;
  gap: 30px;
  padding: 28px;
  background: var(--c-surface);
  border-radius: var(--r-card);
}

.dossier__body {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
}

.dossier__name {
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.028em;
}

.dossier__text {
  font-size: var(--fs-body);
  line-height: 1.44;
}

.dossier__text--muted {
  color: var(--c-muted);
}

.facts {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 12px 18px;
  background: #f6f8fc;
  border-radius: var(--r-md);
}

.facts > div {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 0;
  min-height: 58px;
  border-bottom: 1px solid var(--c-line);
}

.facts > div:last-child {
  border-bottom: 0;
}

.facts dt {
  width: 190px;
  flex: none;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1.3;
  color: var(--c-muted);
}

.facts dd {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--fs-small);
  line-height: 1.28;
}

.facts__link dd {
  color: var(--c-text);
}

.facts__link .ic {
  color: var(--c-accent);
}

/* ------------------------------ 11. Обращение ----------------------------- */
.contact {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.contact__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 570px;
  flex: none;
  padding-top: 6px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
  width: 727px;
  flex: none;
  padding: 26px;
  background: var(--c-surface);
  color: var(--c-text);
  border-radius: var(--r-card);
}

.form__row {
  display: flex;
  gap: var(--s-12);
}

.field {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  gap: var(--s-8);
}

.field--grow {
  flex: 1 1 auto;
}

.field__label {
  font-size: var(--fs-small);
}

.field__input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--c-field);
  border: 1px solid var(--c-line);
  border-radius: 11px;
  font-size: var(--fs-small);
  transition: border-color var(--t-fast), box-shadow var(--t-fast),
    background-color var(--t-fast);
}

.field__input::placeholder {
  color: var(--c-muted);
}

.field__input:focus {
  outline: none;
  border-color: var(--c-accent);
  background: var(--c-surface);
  box-shadow: 0 0 0 3px rgba(45, 91, 238, 0.14);
}

.field__input--area {
  height: 80px;
  padding: 14px;
  line-height: 1.42;
  resize: vertical;
}

.field__error {
  display: none;
  font-size: 12px;
  color: #d33a3a;
}

.field.is-invalid .field__input {
  border-color: #d33a3a;
  background: #fdf5f5;
}

.field.is-invalid .field__error,
.field__error.is-visible {
  display: block;
}

/* Согласие */
.consent {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}

.consent input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.consent__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: none;
  border: 1.5px solid #aab8dc;
  border-radius: 5px;
  color: transparent;
  transition: background-color var(--t-fast), border-color var(--t-fast),
    color var(--t-fast);
}

.consent input:checked + .consent__box {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}

.consent input:focus-visible + .consent__box {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.consent__text {
  font-size: 13px;
}

.form__status {
  display: none;
  padding: 12px 14px;
  border-radius: var(--r-xs);
  font-size: 13px;
  line-height: 1.4;
}

.form__status.is-success {
  display: block;
  background: rgba(45, 91, 238, 0.09);
  color: var(--c-accent);
}

/* Прямая связь */
.direct {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 118px;
  margin-top: 4px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: var(--r-md);
}

.direct__info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 7px;
}

.direct__caption {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--c-on-dark-60);
}

.direct__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  color: var(--c-on-dark);
}

.direct__messengers {
  display: flex;
  gap: 10px;
  flex: none;
}

/* Плитка мессенджера: фирменная иконка занимает её целиком */
.messenger {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.messenger svg {
  width: 100%;
  height: 100%;
}

/* ------------------------- 12. Попап «быстрая заявка» --------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.modal[hidden] {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 25, 30, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal__window {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-16);
  width: 100%;
  max-width: 460px;
  margin: auto;
  padding: 30px;
  background: var(--c-surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-xs);
  background: var(--c-bg);
  color: var(--c-muted);
  transition: background-color var(--t-fast), color var(--t-fast);
}

.modal__close:hover {
  background: var(--c-menu);
  color: var(--c-text);
}

.chip--pale {
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.9px;
}

.modal__title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 320px;
}

.modal__text {
  font-size: var(--fs-small);
  line-height: 1.44;
  color: var(--c-muted);
}

/* Двойной класс — чтобы правила ширины из responsive.css не перебивали попап */
.form.form--modal {
  width: 100%;
  gap: var(--s-12);
  padding: 0;
  border-radius: 0;
}

/* ------------------------------- 13. Подвал ------------------------------- */
.footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: var(--plate-gap) var(--page-gutter) 0;
  padding: 44px var(--plate-pad-x);
  background: var(--c-menu);
  border-radius: var(--r-section) var(--r-section) 0 0;
  color: var(--c-footer-text);
}

.footer__main {
  display: flex;
  gap: 44px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-16);
  width: 430px;
  flex: none;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-8);
  height: 36px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--r-xs);
}

.footer__logo-name {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer__logo-mark {
  font-size: 15px;
  font-weight: 700;
}

.footer__title {
  font-size: clamp(21px, 1.8vw, 25px);
  font-weight: 600;
  letter-spacing: -0.016em;
}

.footer__sub {
  font-size: var(--fs-small);
  color: var(--c-footer-muted);
}

.footer__col {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: var(--s-16);
}

.footer__col--req {
  width: 390px;
  flex: none;
}

.footer__caption {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--c-footer-caption);
}

.footer__list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.footer__list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-16);
  flex: 1 1 0;
  min-height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.footer__list > div:last-child {
  border-bottom: 0;
}

.footer__list dt {
  font-size: 11px;
  color: var(--c-footer-muted);
}

.footer__list dd {
  font-size: 13px;
}

.footer__req {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--s-12);
  padding: 18px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: var(--r-sm);
  font-size: 13px;
}

.footer__req-note {
  font-size: 11px;
  line-height: 1.36;
  color: var(--c-footer-muted);
}

.footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}

.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-24);
  min-height: 37px;
}

.footer__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 11px;
  font-weight: 500;
  color: var(--c-footer-muted);
  transition: color var(--t-fast);
}

.footer__geo {
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--c-footer-caption);
  white-space: nowrap;
}

/* ------------------------- 14. Ограничение по ширине ---------------------- */
@media (min-width: 1441px) {
  .site-header,
  .plate,
  .footer {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }

  .site-header {
    max-width: 1352px;
  }
}
