/* ==========================================================================
   Московское адвокатское бюро
   1. Переменные, сброс, типографика, контейнер, кнопки, формы, утилиты
   ========================================================================== */

:root {
  /* Тёмная база */
  --ink-900: #14161C;
  --ink-800: #1A1D24;
  --ink-700: #20242D;
  --tile-dark: #373A37;
  --footer: #171717;
  --footer-bottom: #000000;

  /* Свет */
  --bg: #F7F7F7;
  --surface: #FFFFFF;
  --line: #E4E4E4;
  --line-dark: rgba(255, 255, 255, .16);

  /* Текст */
  --text: #171717;
  --text-muted: #7B7B7B;
  --on-dark: #FFFFFF;
  --on-dark-muted: #C7C9CE;
  --on-dark-soft: rgba(255, 255, 255, .72);

  /* Единственный акцент */
  --accent: #EF3842;
  --accent-hover: #D82833;

  --font: 'Jost', 'Futura PT', 'Trebuchet MS', system-ui, -apple-system, sans-serif;

  --container: 1160px;
  --pad: 24px;

  --gap: 40px;
  --sec-y: 120px;

  --header-h: 96px;
  --t: 160ms;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t) ease;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

strong, b { font-weight: 600; }

table { border-collapse: collapse; width: 100%; }

/* ---------- Типографика ---------------------------------------------- */

/* Длинные неразрывные слова («Политика конфиденциальности») на узком экране
   не должны выпирать за контейнер и давать горизонтальную прокрутку. */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h3-block { overflow-wrap: break-word; }

.h1,
h1 {
  font-size: clamp(34px, 5.6vw, 68px);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 700;
}

.h1--inner,
.hero-inner h1 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.08;
}

.h1--article { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.12; }

.h2,
h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -.015em;
  font-weight: 700;
}

.h3-block { font-size: clamp(20px, 2vw, 26px); line-height: 1.25; font-weight: 600; }

.h3,
h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

.h2--on-dark { color: var(--on-dark); }

.lead,
.section__lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--text);
}

/* Красная точка после каждого H1/H2 — знак референса */
.dot { color: var(--accent); }

/* Надзаголовок-рубрика */
.overline,
.kicker {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.overline--on-dark,
.kicker-on-dark { color: var(--accent); }

.accent { color: var(--accent); font-weight: 600; }

.num { color: var(--accent); font-weight: 600; }

/* ---------- Контейнер и секции ---------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: 72px;
}

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

.section--white,
.section-white { background: var(--surface); }

.section--dark,
.section-dark {
  background: var(--ink-900);
  color: var(--on-dark);
}

.section--dark p,
.section-dark p { color: var(--on-dark-soft); }

.section__head,
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: 40px;
}

.section__lead { max-width: 760px; margin-top: 18px; }

/* ---------- Кнопки ----------------------------------------------------- */

.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  cursor: pointer;
  transition: background-color var(--t) ease, color var(--t) ease,
              border-color var(--t) ease, transform var(--t) ease;
}

.btn--primary,
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn--primary:hover,
.btn-primary:hover { background: var(--accent-hover); }

.btn--secondary,
.btn-secondary {
  background: var(--bg);
  color: var(--accent);
}

.btn--secondary:hover,
.btn-secondary:hover { background: #EDEDED; }

.btn--ghost,
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .28);
  color: #FFFFFF;
}

.btn--ghost:hover,
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Ghost на светлом фоне */
.section--white .btn--ghost,
.section--light .btn--ghost,
.section-white .btn-ghost,
.section-light .btn-ghost {
  border-color: rgba(23, 23, 23, .22);
  color: var(--text);
}

.section--white .btn--ghost:hover,
.section--light .btn--ghost:hover,
.section-white .btn-ghost:hover,
.section-light .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--white {
  background: #FFFFFF;
  color: var(--accent);
}

.btn--white:hover { background: #F1F1F1; }

.btn--sm,
.btn-sm {
  --btn-h: 42px;
  padding: 0 22px;
  font-size: 15px;
}

.btn--block,
.btn-block {
  display: flex;
  width: 100%;
}

.btn:active { transform: translateY(1px); }

.btn .ic { flex: 0 0 auto; }

/* Текстовая ссылка-действие со стрелкой */
.link-action,
.action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.link-action:hover,
.action-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.link-action .ic,
.action-link .ic { transition: transform var(--t) ease; }

.link-action:hover .ic,
.action-link:hover .ic { transform: translate(2px, -2px); }

.link-action--sm { font-size: 14px; }

/* Круглая красная кнопка-иконка */
.icon-btn,
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  flex: 0 0 auto;
  transition: background-color var(--t) ease;
}

.icon-btn:hover,
.social-btn:hover { background: var(--accent-hover); }

/* Красный кружок-иконка в контактных строках */
.dot-icon,
.dot-ic,
.chip__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  flex: 0 0 auto;
}

.dot-ic { width: 26px; height: 26px; }

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

/* ---------- Формы ------------------------------------------------------ */

.field { display: block; margin-bottom: 20px; }

.field > label,
.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.req { color: var(--accent); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea,
input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color var(--t) ease, box-shadow var(--t) ease;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover { border-color: #C9C9C9; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(239, 56, 66, .16);
}

.field__hint {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}

.field__err {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--accent);
}

.field.is-invalid .field__err { display: block; }

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--accent); }

.field--check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.field--check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 3px 0 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.field--check label {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
}

.field--check a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 20px;
}

/* ---------- Утилиты ---------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  outline: 2px solid #FFFFFF;
  outline-offset: -4px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Списки с линиями-разделителями */
.line-list > li { border-bottom: 1px solid var(--line); }

.line-list > li > a,
.line-list > li > span {
  display: block;
  padding: 14px 0;
  font-size: 17px;
}

.line-list > li > a:hover { color: var(--accent); }

/* Список с красными маркерами */
.marker-list > li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
}

.marker-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

/* Чек-лист с красными галочками */
.check-list > li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.check-list .ic { flex: 0 0 auto; margin-top: 4px; color: var(--accent); }

/* ==========================================================================
   2. Шапка, навигация, бургер, мобильное меню, футер
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(105deg, var(--ink-700) 0%, var(--ink-900) 100%);
  color: var(--on-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  transition: min-height var(--t) ease;
}

.site-header.is-stuck { background: var(--ink-900); }

/* Логотип */
.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo .brand-mark { flex: 0 0 auto; }

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.logo-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #FFFFFF;
  white-space: nowrap;
}

.logo-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .55);
  white-space: nowrap;
}

/* Основная навигация */
.main-nav { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--on-dark-muted);
  white-space: nowrap;
  transition: color var(--t) ease;
}

.nav-link:hover,
.nav-link.is-active { color: var(--accent); }

.nav-caret { transition: transform var(--t) ease; }

.nav-toggle[aria-expanded="true"] .nav-caret { transform: rotate(45deg); }

/* Выпадающая панель «Практика» */
.mega {
  position: absolute;
  top: calc(100% + 12px);
  left: -24px;
  width: min(640px, 78vw);
  padding: 26px 28px 22px;
  background: var(--ink-800);
  border: 1px solid rgba(255, 255, 255, .1);
  z-index: 40;
}

.mega[hidden] { display: none; }

.mega-title {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.mega-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 32px;
}

.mega-list a {
  display: block;
  padding: 9px 0;
  font-size: 16px;
  color: var(--on-dark-muted);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.mega-list a:hover { color: var(--accent); }

.mega-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
}

.mega-all:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Правая часть шапки */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.header-cta { display: none; }

/* Бургер */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #FFFFFF;
  transition: transform var(--t) ease, opacity var(--t) ease;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  padding: 20px var(--pad) 32px;
  background: var(--ink-900);
  color: var(--on-dark);
  overflow-y: auto;
}

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

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
}

.mobile-menu-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.mobile-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #FFFFFF;
}

.mobile-nav { flex: 1 1 auto; padding: 12px 0; }

.mobile-nav > ul > li { border-bottom: 1px solid var(--line-dark); }

.mobile-nav > ul > li > a {
  display: block;
  padding: 16px 0;
  font-size: 22px;
  font-weight: 600;
  color: #FFFFFF;
}

.mobile-nav > ul > li > a.is-active,
.mobile-nav > ul > li > a:hover { color: var(--accent); }

/* Пункт «Практика» — аккордеон */
.mobile-acc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 0;
  font: inherit;
  font-size: 22px;
  font-weight: 600;
  text-align: left;
  color: #FFFFFF;
  background: none;
  border: 0;
  cursor: pointer;
}

.mobile-acc__toggle.is-active,
.mobile-acc__toggle:hover { color: var(--accent); }

.mobile-acc__sign {
  flex: 0 0 auto;
  transition: transform var(--t) ease;
}

.mobile-acc__toggle[aria-expanded="true"] .mobile-acc__sign { transform: rotate(45deg); }

.mobile-sub { padding: 0 0 18px 2px; }

.mobile-sub__title {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.mobile-sub a {
  display: block;
  padding: 8px 0;
  font-size: 16px;
  color: var(--on-dark-muted);
}

.mobile-sub a:hover { color: var(--accent); }

.mobile-sub .mobile-sub__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

.mobile-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}

.mobile-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
}

.mobile-phone:hover { color: var(--accent); }

/* ---------- Футер ------------------------------------------------------ */

.site-footer {
  background: var(--footer);
  color: var(--on-dark);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding-block: 56px 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-logo-text {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .1em;
  color: #FFFFFF;
}

.footer-about {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .72);
}

.footer-address {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .5);
}

.footer-duty {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
}

.footer-kicker {
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-links li + li { margin-top: 10px; }

.footer-links a {
  font-size: 16px;
  color: rgba(255, 255, 255, .78);
}

.footer-links a:hover { color: var(--accent); }

.footer-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 16px;
  color: rgba(255, 255, 255, .9);
}

.footer-contact:hover { color: var(--accent); }

.footer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.footer-bottom {
  background: var(--footer-bottom);
  padding-block: 20px;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-copy a:hover { color: var(--accent); }

.footer-disclaimer {
  max-width: 620px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .45);
}

/* ==========================================================================
   3. Секции
   ========================================================================== */

/* ---------- Первый экран главной ------------------------------------- */

.hero {
  background: linear-gradient(105deg, var(--ink-700) 0%, var(--ink-900) 100%);
  color: var(--on-dark);
  padding-block: 64px 56px;
}

.hero .h1 { color: #FFFFFF; max-width: 15ch; }

.hero__lead {
  max-width: 60ch;
  margin-top: 26px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--on-dark-soft);
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.ratings,
.cred-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 52px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.ratings__item,
.cred-strip-item {
  padding: 10px 24px 10px 0;
  opacity: .85;
}

.ratings__item + .ratings__item,
.cred-strip-item + .cred-strip-item {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, .18);
}

/* ---------- Полоса цифр ----------------------------------------------- */

.stats {
  background: var(--ink-900);
  color: var(--on-dark);
  padding-block: 8px 40px;
}

.stats__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .14);
}

.stats__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 20px;
  background: var(--ink-900);
}

.stats__num {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: #FFFFFF;
}

.stats__label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--on-dark-muted);
}

/* ---------- Первый экран внутренней страницы -------------------------- */

.hero-inner {
  background: linear-gradient(105deg, var(--ink-700) 0%, var(--ink-900) 100%);
  color: var(--on-dark);
  padding-block: 44px 56px;
}

.hero-inner h1 { color: #FFFFFF; }

.hero-inner-lead {
  max-width: 68ch;
  margin-top: 22px;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--on-dark-soft);
}

.crumbs {
  margin-bottom: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crumbs ol li + li::before {
  content: "/";
  margin-right: 6px;
  color: rgba(255, 255, 255, .3);
}

.crumbs a:hover { color: var(--accent); }

.crumbs-current { color: rgba(255, 255, 255, .8); }

.hero-inner .crumbs span[aria-hidden] { margin: 0 6px; opacity: .4; }

/* На светлом фоне (страница статьи) */
.article-meta .crumbs { color: var(--text-muted); }
.article-meta .crumbs ol li + li::before { color: #BFBFBF; }

/* ---------- О практике (превью на главной) ---------------------------- */

.about-preview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.about-preview__figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(.15) contrast(1.02);
}

.about-preview__figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
}

.portrait__name { font-size: 18px; font-weight: 600; color: var(--accent); }
.portrait__role { font-size: 14px; color: var(--text-muted); }

.portrait__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 15px;
}

.portrait__mail:hover { color: var(--accent); }

.about-preview__text p + p { margin-top: 18px; }
.about-preview__text .link-action { margin-top: 26px; }

/* ---------- Преимущества ---------------------------------------------- */

.advantages__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.advantage {
  padding: 28px 26px;
  background: var(--bg);
}

.section--white .advantage { background: var(--surface); }

.advantage__title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.advantage__text { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--text); }

/* ---------- Направления практики -------------------------------------- */

.practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.practice-item {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: var(--surface);
  transition: background-color var(--t) ease;
}

.section-light .practice-item,
.section--light .practice-item { background: var(--bg); }

.practice-item:hover { background: #FDF4F4; }

.practice-title { font-size: 21px; font-weight: 600; line-height: 1.3; }
.practice-title a:hover { color: var(--accent); }

.practice-desc {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

.practice-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
}

.practice-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Две колонки со списками и амперсандом (services.php) */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}

.two-col p + p { margin-top: 16px; }
.two-col .h3-block { margin-bottom: 16px; }

.columns-amp {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.columns-amp__title {
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  font-size: 20px;
  font-weight: 600;
}

.columns-amp__amp {
  display: block;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  text-align: center;
}

/* ---------- Дела ------------------------------------------------------- */

.cases-grid,
.cases__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.case-card {
  padding: 24px 26px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
}

.section--white .case-card,
.section-white .case-card { background: var(--bg); }

.case-result,
.case-card__result {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.case-text,
.case-card__text { font-size: 17px; line-height: 1.55; }

.cases-group + .cases-group { margin-top: 48px; }

.cases-group__title {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 24px;
  font-weight: 600;
}

/* Фильтры-капсулы */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-chip {
  min-height: 40px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: background-color var(--t) ease, border-color var(--t) ease, color var(--t) ease;
}

.filter-chip:hover { border-color: var(--accent); color: var(--accent); }

.filter-chip.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.filters__empty {
  margin-bottom: 32px;
  padding: 20px 24px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
}

.disclaimer-tile {
  margin-top: 48px;
  padding: 30px 32px;
  background: var(--surface);
}

.section--white .disclaimer-tile { background: var(--bg); }

.disclaimer-tile__title {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}

.disclaimer-tile p { font-size: 16px; line-height: 1.6; color: var(--text-muted); }

/* ---------- База документов (главная) --------------------------------- */

.docs-teaser__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.docs-teaser__light {
  padding: 40px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.docs-teaser__light p { margin-top: 16px; font-size: 16px; line-height: 1.65; }
.docs-teaser__light .btn { margin-top: 28px; }

.docs-teaser__dark {
  padding: 40px 34px;
  background: var(--ink-900);
  color: var(--on-dark);
}

.docs-teaser__num {
  display: block;
  font-size: 92px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.docs-teaser__cap {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--on-dark-muted);
}

.docs-teaser__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.docs-teaser__tags li {
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
}

/* Список отраслей (articles.php) */
.branch-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: 36px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.branch-list li { padding: 26px 24px; background: var(--surface); }

.branch-list__n {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--accent);
}

.branch-list h3 { font-size: 19px; }
.branch-list p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Экспресс-связь -------------------------------------------- */

.express-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.express-text p { margin-top: 18px; font-size: 16px; line-height: 1.65; }

.express-list { margin-top: 26px; }

.express-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.express-list .ic { flex: 0 0 auto; margin-top: 3px; color: var(--accent); }

.express-tile {
  position: relative;
  padding: 36px 32px;
  background: var(--ink-900);
  color: var(--on-dark);
}

.express-bracket {
  position: absolute;
  top: 32px;
  right: 30px;
  opacity: .9;
}

.express-tile-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.express-phone {
  display: inline-block;
  margin-top: 14px;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  color: #FFFFFF;
}

.express-phone:hover { color: var(--accent); }

.express-tile-note {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark-muted);
}

.express-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Цитата ----------------------------------------------------- */

.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.quote-tile {
  position: relative;
  padding: 36px 32px;
  background: var(--tile-dark);
  color: #FFFFFF;
  border-bottom: 3px solid var(--accent);
}

.quote-text {
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 600;
  line-height: 1.35;
}

.quote-amp {
  position: absolute;
  right: 26px;
  bottom: 16px;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  opacity: .5;
}

.quote-body p + p { margin-top: 18px; }

.quote-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.quote-author-name { font-size: 17px; font-weight: 600; color: var(--accent); }
.quote-author-role { font-size: 14px; color: var(--text-muted); }

/* ---------- Вопрос — ответ -------------------------------------------- */

.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q:hover { color: var(--accent); }

.faq-sign {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  transition: transform var(--t) ease, border-color var(--t) ease;
}

.faq-item[open] .faq-sign { transform: rotate(45deg); border-color: var(--accent); }

.faq-a { padding: 0 60px 24px 0; }
.faq-a p { font-size: 16px; line-height: 1.7; color: var(--text-muted); }

/* ---------- Аккредитации ---------------------------------------------- */

.cred-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cred-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  padding: 20px;
  background: #1E222A;
}

.cred-note {
  margin-top: 28px;
  max-width: 74ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Карточки статей ------------------------------------------- */

.articles-grid,
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}

.article-card {
  display: flex;
  flex-direction: column;
  padding-top: 18px;
  border-top: 2px solid var(--accent);
}

.article-date,
.article-card__date {
  font-size: 13px;
  color: var(--text-muted);
}

.article-title,
.article-card__title {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.article-title a:hover,
.article-card__title a:hover { color: var(--accent); }

.article-lead,
.article-card__lead {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.article-foot,
.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.article-card--soon { border-top-color: var(--line); }

.article-soon,
.article-card__soon {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Тёмная плитка-анонс */
.featured-tile {
  position: relative;
  display: grid;
  gap: 20px;
  margin-bottom: 44px;
  padding: 34px 32px 30px;
  background: var(--tile-dark);
  color: #FFFFFF;
  border-bottom: 3px solid var(--accent);
}

.featured-tile .bracket {
  position: absolute;
  left: 0;
  top: 34px;
  width: 4px;
  height: 72px;
  background: var(--accent);
}

.featured-tile__body { padding-left: 16px; }

.featured-tile__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--accent);
}

.featured-tile__title {
  margin-top: 14px;
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.25;
}

.featured-tile__title a:hover { color: var(--accent); }

.featured-tile__lead {
  margin-top: 14px;
  max-width: 76ch;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .76);
}

.featured-tile__meta {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

.featured-tile__mark {
  position: absolute;
  right: 26px;
  bottom: 22px;
  opacity: .55;
}

/* ---------- Этапы работы ---------------------------------------------- */

.steps-list { border-top: 1px solid var(--line); }

.step-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.step-body h3 { font-size: 20px; }
.step-body p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }

/* Горизонтальная лента этапов (service.php) */
.stages {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.stage { padding: 26px 24px; background: var(--bg); }
.section--white .stage { background: var(--surface); }

.stage__n {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--accent);
}

.stage__title { font-size: 19px; }
.stage__text { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* ---------- Срочная помощь (финальный блок) --------------------------- */

.emergency-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.emergency-text h2 { color: #FFFFFF; }
.emergency-text p { margin-top: 20px; font-size: 17px; line-height: 1.65; }

.contact-pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px 10px 10px;
  background: #FFFFFF;
  border-radius: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  transition: color var(--t) ease;
}

.pill:hover { color: var(--accent); }

/* ---------- О бюро ----------------------------------------------------- */

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--bg);
}

.about-hero__text {
  padding: 44px var(--pad) 52px;
  background: var(--bg);
}

.about-hero__inner {
  max-width: var(--container);
  margin-inline: auto;
}

.about-hero .crumbs { color: var(--text-muted); }
.about-hero .crumbs ol li + li::before { color: #BFBFBF; }

.about-hero__lead {
  max-width: 62ch;
  margin-top: 22px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--text);
}

.about-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  filter: grayscale(.2) contrast(1.02);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.mini-stats__num {
  display: block;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--accent);
}

.mini-stats__label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-muted);
}

.about-manifest__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}

.about-manifest__grid p { margin-top: 16px; font-size: 16px; line-height: 1.7; }
.about-manifest__grid strong { color: #FFFFFF; font-weight: 600; }

.timeline { border-top: 1px solid var(--line); }

.timeline__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline__year { font-size: 17px; font-weight: 500; color: var(--accent); }

.timeline__place {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.timeline__role { margin-top: 6px; font-size: 20px; }
.timeline__text { margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--text-muted); }

.academic__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.academic__cell { padding: 28px 26px; background: var(--bg); }
.academic__cell h3 { font-size: 20px; }
.academic__cell p { margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--text-muted); }

.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.team__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(.25) contrast(1.02);
}

.team__name { margin-top: 14px; font-size: 17px; font-weight: 600; color: var(--accent); }
.team__role { margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--text-muted); }

/* ---------- Направление практики (service.php) ------------------------ */

.service-lead__back { margin-bottom: 28px; }

.service-lead__body { max-width: 78ch; }
.service-lead__body p + p { margin-top: 18px; }

.lawyer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding: 32px;
  background: var(--bg);
  align-items: start;
}

.lawyer-card__photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(.2) contrast(1.02);
}

.lawyer-card__name { color: var(--accent); }
.lawyer-card__role { margin-top: 6px; font-size: 14px; color: var(--text-muted); }
.lawyer-card__text { margin-top: 16px; font-size: 16px; line-height: 1.65; }

.contact-lines { margin-top: 22px; }

.contact-lines li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-size: 16px;
}

.contact-lines a:hover { color: var(--accent); }

/* ---------- Тарифы ----------------------------------------------------- */

.price-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
  background: var(--surface);
  border-top: 3px solid var(--accent);
}

.price-card--dark-line { border-top-color: var(--text); }

.price-card__badge {
  align-self: flex-start;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.price-card--accent .price-card__badge {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.price-card__name { margin-top: 20px; font-size: 24px; font-weight: 700; line-height: 1.2; }
.price-card__term { margin-top: 8px; font-size: 14px; color: var(--text-muted); }

.price-card__sum {
  margin-top: 20px;
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
}

.price-card--dark-line .price-card__sum { color: var(--text); }

.price-card__list { margin: 24px 0 28px; }

.price-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
}

.price-card__list .ic { flex: 0 0 auto; margin-top: 3px; color: var(--accent); }

.price-card .btn { margin-top: auto; }

.price-hourly__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.price-hourly__text p { margin-top: 16px; font-size: 16px; line-height: 1.7; }

.price-hourly__quote {
  margin-top: 24px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFFFFF;
}

.price-hourly__box { padding: 32px 30px; background: #1E222A; }

.price-hourly__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.price-hourly__rate {
  margin-top: 12px;
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  color: #FFFFFF;
}

.price-hourly__list { margin: 22px 0 26px; }

.price-hourly__list li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  font-size: 15px;
  color: var(--on-dark-muted);
}

.price-urgent {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 34px 32px;
  background: var(--accent);
  color: #FFFFFF;
  align-items: center;
}

.price-urgent__badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.price-urgent__title { margin-top: 16px; font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.15; }
.price-urgent__text { margin-top: 12px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.price-urgent__sum { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; line-height: 1.1; }
.price-urgent__action { display: flex; flex-direction: column; gap: 14px; }

.price-table th,
.price-table td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 16px;
}

.price-table thead th {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.price-table tbody th { font-weight: 500; }
.price-table td:last-child { padding-right: 0; white-space: nowrap; font-weight: 600; color: var(--accent); }

.price-note {
  margin-top: 26px;
  max-width: 84ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- Статья ----------------------------------------------------- */

.article-col { max-width: calc(760px + var(--pad) * 2); margin-inline: auto; }

.article-meta__lead {
  margin-top: 22px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

.article-meta__by {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-muted);
}

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
  padding: 22px 26px;
  background: var(--bg);
  border-left: 3px solid var(--accent);
}

.callout__title { font-size: 18px; font-weight: 600; }
.callout__text { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }

.article-body h2 {
  margin-top: 44px;
  margin-bottom: 16px;
  font-size: clamp(22px, 2.4vw, 30px);
}

.article-body h3 { margin-top: 30px; margin-bottom: 12px; font-size: 20px; }
.article-body p { margin-top: 16px; font-size: 17px; line-height: 1.7; }
.article-body ul { margin-top: 16px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.note-box {
  margin-top: 28px;
  padding: 22px 26px;
  background: #FDF6E3;
  border-left: 3px solid #E0A800;
}

.note-box__title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.note-box p { margin-top: 6px; font-size: 16px; line-height: 1.6; }

.norm {
  display: block;
  margin-top: 26px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}

.norm-table { margin-top: 26px; }

.norm-table th,
.norm-table td {
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 16px;
}

.norm-table thead th {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.article-legal {
  margin-top: 40px;
  padding: 24px 26px;
  border: 1px solid var(--line);
}

.article-legal__title {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.article-legal p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }

.article-cta {
  margin-top: 40px;
  padding: 34px 32px;
  background: var(--ink-900);
  color: var(--on-dark);
}

.article-cta__title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.2; }
.article-cta__text { margin-top: 14px; font-size: 16px; line-height: 1.65; color: var(--on-dark-soft); }

.article-cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- Контакты --------------------------------------------------- */

.contacts-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 22px 8px 8px;
  background: var(--surface);
  border-radius: 0;
  font-size: 16px;
  font-weight: 500;
  transition: color var(--t) ease;
}

.section--light .chip { background: var(--surface); }
.chip:hover { color: var(--accent); }

.chip__ic { width: 32px; height: 32px; }

.contacts-chips__social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contacts-chips__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contacts-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.contacts-split__addr {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.4;
}

.contacts-split__hours {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 16px;
}

.contacts-split__note {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.contacts-split__links { margin-top: 22px; }
.contacts-split__links li + li { margin-top: 10px; }
.contacts-split__links .link-action { gap: 10px; }

/* Яндекс.Карта в блоке адреса */
.map-frame {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

@media (min-width: 680px) {
  .map-frame iframe { height: 400px; }
}

@media (min-width: 960px) {
  .map-frame iframe { height: 460px; }
}

.contacts-split__map figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.form-card {
  padding: 32px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.form-card__status {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--accent);
}

.privacy-tile {
  padding: 30px 28px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
}

.privacy-tile__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  margin-bottom: 18px;
}

.privacy-tile__title { font-size: 20px; font-weight: 600; }
.privacy-tile p { margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--text-muted); }

.privacy-tile__foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

/* ---------- Карта сайта ------------------------------------------------ */

.sitemap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.sitemap__title {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.sitemap__legal { margin-top: 28px; }

.sitemap__legal-title {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.sitemap__legal p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.sitemap__legal p + p { margin-top: 10px; }

/* ---------- 404 -------------------------------------------------------- */

.error-block {
  background: var(--ink-900);
  color: var(--on-dark);
  padding-block: 80px 88px;
}

.error-block__code {
  font-size: clamp(72px, 14vw, 150px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.03em;
  color: #FFFFFF;
}

.error-block h1 { margin-top: 18px; color: #FFFFFF; }

.error-block__text {
  max-width: 62ch;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--on-dark-soft);
}

.error-block__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.error-block__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.error-block__links li { border-bottom: 1px solid rgba(255, 255, 255, .1); }

.error-block__links a {
  display: block;
  padding: 12px 0;
  color: var(--on-dark-muted);
  font-size: 16px;
}

.error-block__links a:hover { color: var(--accent); }

/* ==========================================================================
   4. Медиазапросы, доступность, печать
   ========================================================================== */

/* На узком экране длинная надпись кнопки должна переноситься, а не раздвигать
   колонку сетки шире контейнера (иначе страница получает горизонтальную прокрутку). */
@media (max-width: 559px) {
  .btn { white-space: normal; padding: 10px 20px; }
}

@media (min-width: 560px) {
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-urgent { grid-template-columns: minmax(0, 1.6fr) auto; }
  .price-urgent__action { flex-direction: row; align-items: center; }
  .error-block__links { gap: 0 40px; }
}

@media (min-width: 680px) {
  :root { --pad: 32px; }

  .section { padding-block: 88px; }

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

  .advantages__grid,
  .practice-grid,
  .academic__grid,
  .branch-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

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

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

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

  .docs-teaser__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }

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

  .lawyer-card { grid-template-columns: 280px minmax(0, 1fr); }

  .timeline__row { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; }

  .contacts-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 44px; }

  .about-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .about-hero__text { padding-block: 64px 72px; }

  .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; }

  .columns-amp { grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr); gap: 32px; }
  .columns-amp__amp { padding-top: 8px; }

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

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

  .express-grid,
  .quote-grid,
  .emergency-grid,
  .about-manifest__grid,
  .price-hourly__grid,
  .form-layout,
  .about-preview__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .contact-pills { flex-direction: row; flex-wrap: wrap; }

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

  .mini-stats { gap: 24px; }
}

@media (min-width: 960px) {
  :root { --pad: 40px; }

  .section { padding-block: 104px; }

  .stats { padding-block: 0 56px; }
  .stats__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .hero { padding-block: 92px 76px; }
  .hero-inner { padding-block: 56px 84px; }

  .advantages__grid,
  .practice-grid,
  .cases-grid,
  .cases__grid,
  .articles-grid,
  .article-grid,
  .branch-list,
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }

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

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

  .about-preview__grid { grid-template-columns: 440px minmax(0, 1fr); gap: 56px; }

  .express-grid,
  .quote-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; }

  .emergency-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; }

  .price-hourly__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; }

  .form-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }

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

  .footer-top {
    grid-template-columns: minmax(0, 400px) repeat(3, minmax(0, 240px));
    gap: 40px;
    padding-block: 88px 64px;
  }

  .footer-bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .footer-disclaimer { text-align: right; }

  .about-hero__media img { min-height: 520px; }

  .step-row { grid-template-columns: 90px minmax(0, 1fr); gap: 32px; }

  .featured-tile { grid-template-columns: minmax(0, 1fr); padding: 40px 40px 34px; }

  .article-body h2 { margin-top: 52px; }
}

/* Десктопная навигация вместо бургера */
@media (min-width: 1024px) {
  .header-inner { min-height: var(--header-h); }

  .site-header.is-stuck .header-inner { min-height: 72px; }

  .main-nav { display: block; }

  .header-cta { display: inline-flex; }

  .burger { display: none; }

  .mobile-menu { display: none !important; }

  .nav-list { gap: clamp(16px, 1.9vw, 26px); }
}

@media (min-width: 1200px) {
  .section { padding-block: var(--sec-y); }
  .hero { padding-block: 116px 88px; }
  .cases-grid,
  .cases__grid { gap: var(--gap); }
  .articles-grid,
  .article-grid { gap: var(--gap); }
}

/* ---------- Доступность ------------------------------------------------ */

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-header a:focus-visible,
.site-header button:focus-visible,
.mobile-menu a:focus-visible,
.mobile-menu button:focus-visible,
.section--dark a:focus-visible,
.section-dark a:focus-visible,
.hero a:focus-visible,
.hero-inner a:focus-visible,
.error-block a:focus-visible,
.site-footer a:focus-visible,
.express-tile a:focus-visible,
.article-cta a:focus-visible,
.price-hourly a:focus-visible {
  outline-color: #FFFFFF;
}

.price-urgent a:focus-visible { outline-color: #FFFFFF; }

/* ---------- Появление при скролле -------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Уважение к настройкам движения ----------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Печать ------------------------------------------------------ */

@media print {
  .site-header,
  .mobile-menu,
  .burger,
  .skip-link,
  .emergency-section,
  .express-section,
  .site-footer .footer-pills,
  .filters,
  .btn { display: none !important; }

  body {
    background: #FFFFFF;
    color: #000000;
    font-size: 12pt;
    line-height: 1.5;
  }

  .section,
  .section--dark,
  .section-dark,
  .hero,
  .hero-inner,
  .article-cta,
  .price-hourly,
  .error-block {
    background: #FFFFFF !important;
    color: #000000 !important;
    padding-block: 12pt !important;
  }

  .section--dark p,
  .section-dark p,
  .hero__lead,
  .hero-inner-lead,
  h1, h2, h3 { color: #000000 !important; }

  .case-card,
  .price-card,
  .form-card,
  .article-legal { border-color: #999999; }

  a { color: #000000; text-decoration: underline; }

  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }

  .container { max-width: none; padding: 0; }

  img { max-width: 100% !important; }

  h2, h3 { break-after: avoid; }
  .case-card, .price-card, .faq-item { break-inside: avoid; }
}

/* Атрибут hidden всегда сильнее раскладочных display */
[hidden] { display: none !important; }

/* ==========================================================================
   5. Донастройка отдельных элементов
   ========================================================================== */

.rating-logo {
  width: auto;
  height: 42px;
  max-width: 168px;
}

.cred-tile .rating-logo { height: 46px; }

.article-read {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.footer-brand,
.footer-col { min-width: 0; }

.emergency-side { min-width: 0; }

.lawyer-card__body,
.contacts-split__info,
.columns-amp__col,
.timeline__body,
.sitemap__col { min-width: 0; }

.section-head-link { flex: 0 0 auto; }

/* Левая колонка первого экрана «О бюро» — по сетке контейнера */
@media (min-width: 1240px) {
  .about-hero__text {
    padding-left: max(var(--pad), calc((100vw - var(--container)) / 2));
    padding-right: 56px;
  }

  .about-hero__inner { max-width: none; margin-inline: 0; }
}

/* Длинные слова и ссылки не ломают колонки */
.case-text,
.case-card__text,
.article-lead,
.article-card__lead,
.practice-desc,
.article-body p,
.footer-links a,
.contact-lines a { overflow-wrap: anywhere; }

/* Тёмные секции: ссылки-действия остаются читаемыми */
.section--dark .link-action,
.section-dark .action-link,
.section--dark .action-link { color: var(--accent); }

/* Иконки внутри красных кружков не наследуют обводку */
.dot-icon .ic,
.dot-ic .ic,
.chip__ic .ic,
.privacy-tile__ic .ic { color: #FFFFFF; }

/* ==========================================================================
   6. Контраст WCAG AA
   Фирменный красный #EF3842 сохранён для графики: полос, рамок, точек,
   кружков-иконок и текста на тёмном фоне (там он даёт 4.6:1).
   Для мелкого красного текста на светлом фоне и для заливки кнопок
   используется --accent-ink — тот же оттенок, но с контрастом ≥ 4.9:1.
   ========================================================================== */

:root {
  --accent-ink: #D42C36;
  --accent-ink-hover: #B92028;
  --text-muted: #6B6B6B;
}

/* Кнопки */
.btn--primary,
.btn-primary { background: var(--accent-ink); }

.btn--primary:hover,
.btn-primary:hover { background: var(--accent-ink-hover); }

.btn--secondary,
.btn-secondary,
.btn--white { color: var(--accent-ink); }

.section--white .btn--ghost:hover,
.section--light .btn--ghost:hover,
.section-white .btn-ghost:hover,
.section-light .btn-ghost:hover { color: var(--accent-ink); }

.icon-btn,
.social-btn,
.privacy-tile__ic { background: var(--accent-ink); }

.icon-btn:hover,
.social-btn:hover { background: var(--accent-ink-hover); }

/* Мелкий красный текст на светлых полосах */
.section--light .overline,
.section--white .overline,
.section--light .kicker,
.section--white .kicker,
.about-hero .overline,
.article-meta .overline,
.hero-inner-light .kicker { color: var(--accent-ink); }

.link-action,
.action-link { color: var(--accent-ink); }

.link-action:hover,
.action-link:hover { color: var(--accent-ink-hover); }

.case-result,
.case-card__result,
.practice-more,
.stage__n,
.branch-list__n,
.timeline__year,
.quote-author-name,
.sitemap__title,
.sitemap__legal-title,
.article-legal__title,
.lawyer-card__name,
.portrait__name,
.team__name,
.filters__empty strong,
.accent,
.num,
.article-body a,
.field--check a,
.mini-stats__num,
.faq-sign { color: var(--accent-ink); }

.section--light .practice-title a:hover,
.section--white .practice-title a:hover,
.article-title a:hover,
.article-card__title a:hover,
.line-list > li > a:hover,
.footer-copy a:hover,
.chip:hover,
.pill:hover,
.contact-lines a:hover,
.portrait__mail:hover,
.crumbs a:hover { color: var(--accent-ink); }

.filter-chip:hover { color: var(--accent-ink); }

.filter-chip.is-on {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}

.price-card__sum { color: var(--accent-ink); }
.price-table td:last-child { color: var(--accent-ink); }
.price-card--accent .price-card__badge {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}

/* Красная полоса с белым текстом */
.price-urgent { background: var(--accent-ink); }

/* На тёмных фонах фирменный красный оставляем как есть */
.section--dark .overline,
.section-dark .kicker,
.kicker-on-dark,
.overline--on-dark,
.hero .overline,
.hero-inner .kicker,
.footer-kicker,
.express-tile-kicker,
.featured-tile__label,
.price-hourly__label,
.mobile-menu-title,
.mega-title { color: var(--accent); }

.section--dark .link-action,
.section-dark .action-link,
.section--dark .action-link,
.express-phone:hover,
.mobile-phone:hover,
.footer-links a:hover,
.footer-contact:hover,
.mega-list a:hover,
.mega-all,
.nav-link:hover,
.nav-link.is-active,
.error-block__links a:hover,
.featured-tile__title a:hover { color: var(--accent); }

/* Фокус-кольцо тоже читаемое на светлом */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible { outline-color: var(--accent-ink); }

.site-header a:focus-visible,
.site-header button:focus-visible,
.mobile-menu a:focus-visible,
.mobile-menu button:focus-visible,
.section--dark a:focus-visible,
.section-dark a:focus-visible,
.hero a:focus-visible,
.hero-inner a:focus-visible,
.error-block a:focus-visible,
.site-footer a:focus-visible,
.express-tile a:focus-visible,
.article-cta a:focus-visible,
.price-hourly a:focus-visible,
.price-urgent a:focus-visible { outline-color: #FFFFFF; }

/* ==========================================================================
   7. Кнопки в текстовых блоках и на тёмных врезках внутри светлых секций
   Ссылочные правила .article-body a и светлые варианты .btn--ghost
   перебивали собственные цвета кнопок: текст сливался с заливкой.
   ========================================================================== */

.article-body .btn { text-decoration: none; }

.article-body .btn--primary,
.article-body .btn-primary { color: #FFFFFF; }

.article-body .btn--secondary,
.article-body .btn-secondary,
.article-body .btn--white { color: var(--accent-ink); }

/* Тёмные врезки внутри светлых секций: ghost-кнопка остаётся светлой.
   Без этого срабатывало правило .section--white .btn--ghost и текст
   кнопки становился тёмным на тёмном. */
.article-cta .btn--ghost,   .article-cta .btn-ghost,
.express-tile .btn--ghost,  .express-tile .btn-ghost,
.price-hourly .btn--ghost,  .price-hourly .btn-ghost,
.price-urgent .btn--ghost,  .price-urgent .btn-ghost,
.docs-teaser .btn--ghost,   .docs-teaser .btn-ghost,
.featured-tile .btn--ghost, .featured-tile .btn-ghost,
.emergency-section .btn--ghost, .emergency-section .btn-ghost,
.error-block .btn--ghost,   .error-block .btn-ghost {
  border-color: rgba(255, 255, 255, .28);
  color: #FFFFFF;
}

.article-cta .btn--ghost:hover,   .article-cta .btn-ghost:hover,
.express-tile .btn--ghost:hover,  .express-tile .btn-ghost:hover,
.price-hourly .btn--ghost:hover,  .price-hourly .btn-ghost:hover,
.price-urgent .btn--ghost:hover,  .price-urgent .btn-ghost:hover,
.docs-teaser .btn--ghost:hover,   .docs-teaser .btn-ghost:hover,
.featured-tile .btn--ghost:hover, .featured-tile .btn-ghost:hover,
.emergency-section .btn--ghost:hover, .emergency-section .btn-ghost:hover,
.error-block .btn--ghost:hover,   .error-block .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Мелкий красный текст на светлых секциях: у сквозных секций класс
   пишется с одним дефисом (section-light), и правила раздела 6 его
   не покрывали — красный оставался в варианте для тёмного фона. */
.section-light .overline,
.section-white .overline,
.section-light .kicker,
.section-white .kicker,
.section-light .practice-title a:hover,
.section-white .practice-title a:hover,
.section-light .link-action,
.section-white .link-action,
.section-light .action-link,
.section-white .action-link { color: var(--accent-ink); }

/* Ссылка «Перейти к содержанию»: белым по фирменному красному было 3.95:1 */
.skip-link { background: var(--accent-ink); }

/* Панель мегаменю: на --ink-800 фирменный красный давал 4.27:1 */
.mega { background: var(--ink-900); }

/* Тёмная плитка была светло-серой (#373A37): фирменный красный на ней
   давал 2.92:1. Приводим её к основному тёмному тону палитры — красный
   кикер снова читается (4.58:1), а плитка совпадает по тону с остальными
   тёмными блоками. */
:root { --tile-dark: #14161C; }

/* ==========================================================================
   8. Плитка бюро на главной (вместо портрета в блоке «О практике»)
   ========================================================================== */

.firm-tile {
  display: flex;
  flex-direction: column;
  padding: 36px 32px 30px;
  background: var(--ink-900);
  color: var(--on-dark);
  border-top: 4px solid var(--accent);
}

.firm-tile__mark {
  display: block;
  margin-bottom: auto;
  padding-bottom: 40px;
}

.firm-tile__kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.firm-tile__name {
  margin-top: 10px;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  color: #FFFFFF;
}

.firm-tile__role {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--on-dark-muted);
}

.firm-tile__lines {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}

.firm-tile__lines li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--on-dark-muted);
}

.firm-tile__lines .dot-ic { flex: 0 0 auto; }

.firm-tile__lines li > span:last-child,
.firm-tile__lines a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.firm-tile__lines a { color: #FFFFFF; }
.firm-tile__lines a:hover { color: var(--accent); }
.firm-tile a:focus-visible { outline-color: #FFFFFF; }

@media (min-width: 960px) {
  .firm-tile { min-height: 440px; }
}
