/* ==========================================================================
   Адвокатское бюро «Крюков, Анишин и партнёры» — стили сайта (редакция 2026)
   ========================================================================== */

/* ---------- Шрифты (размещены локально, без обращений к сторонним CDN) ---------- */

@font-face {
  font-family: "Onest";
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Serif";
  src: url("fonts/IBMPlexSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plex Serif";
  src: url("fonts/IBMPlexSerif-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Токены ---------- */

:root {
  --ink: #111316;
  --ink-2: #1a1d21;
  --ink-3: #25292e;
  --paper: #f6f4ef;
  --paper-2: #ece9e2;
  --white: #ffffff;
  --text: #15171a;
  --muted: #5c5f64;
  --line: #dcd8cf;
  --line-strong: #c9c4b9;

  --on-dark: #f2f0eb;
  --on-dark-muted: rgba(242, 240, 235, 0.64);
  --on-dark-line: rgba(242, 240, 235, 0.14);

  --red: #e2001a;
  --red-deep: #b80016;

  --serif: "Plex Serif", "Georgia", "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 76px;
  --section-y: clamp(72px, 9vw, 136px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
}

/* ---------- База ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

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

::selection { background: var(--red); color: #fff; }

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
}
.skip-link:focus { top: 12px; }

/* ---------- Типографические элементы ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 14px;
  background: var(--red);
  flex: none;
}
.on-dark .eyebrow,
.eyebrow--dark { color: var(--on-dark-muted); }

.lead {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 40em;
}
.on-dark .lead { color: var(--on-dark-muted); }

.statement {
  font-family: var(--serif);
  font-size: clamp(1.625rem, 1.1rem + 1.7vw, 2.5rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: gap 0.25s var(--ease), color 0.2s;
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { gap: 16px; color: var(--red-deep); }
.on-dark .link-arrow:hover { color: #fff; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 500 1rem/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }

.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); }

.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: #fff; }

.btn--ghost { border-color: var(--on-dark-line); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--on-dark); }

.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark:hover { background: var(--ink-3); }

.btn--outline { border-color: var(--line-strong); color: var(--text); }
.btn--outline:hover { border-color: var(--text); }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--on-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled {
  background: rgba(17, 19, 22, 0.9);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--on-dark-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--on-dark);
  flex: none;
}
.brand__mark { width: 26px; height: 32px; color: currentColor; }
.brand__name {
  display: flex;
  flex-direction: column;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brand__name span + span { color: var(--on-dark-muted); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav__list a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav__list a:hover { color: var(--on-dark); }
.site-nav__list a.is-active { color: var(--on-dark); }
.site-nav__list a.is-active::after { transform: scaleX(1); }

.site-nav__phone {
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  color: var(--on-dark);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav__phone:hover { color: #fff; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--on-dark);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle__bars { top: 50%; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; left: 0; }
.nav-toggle__bars::before { transform: translateY(-7px); }
.nav-toggle__bars::after { transform: translateY(7px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .site-nav__phone { display: none; }
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px var(--gutter) 40px;
    background: var(--ink);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s, transform 0.3s var(--ease);
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav__list li { border-bottom: 1px solid var(--on-dark-line); }
  .site-nav__list a {
    padding: 18px 0;
    font-family: var(--serif);
    font-size: 1.75rem;
    color: var(--on-dark);
  }
  .site-nav__list a::after { display: none; }
  .site-nav__list a.is-active { color: var(--on-dark); }
  .site-nav__list a.is-active::before {
    content: "";
    display: inline-block;
    width: 6px; height: 12px;
    margin-right: 14px;
    vertical-align: 0.2em;
    background: var(--red);
  }
  .site-nav__phone {
    display: block;
    margin: 32px 0 16px;
    font-size: 1.25rem;
  }
  .site-nav__cta { align-self: flex-start; min-height: 52px; padding: 0 28px; font-size: 1rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Секции ---------- */

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(56px, 6vw, 88px); }
.section--alt { background: var(--paper-2); }
.section--white { background: var(--white); }
.section--dark,
.on-dark {
  /* внутри тёмных секций переопределяем токены — компоненты адаптируются сами */
  --text: var(--on-dark);
  --muted: var(--on-dark-muted);
  --line: var(--on-dark-line);
  --line-strong: rgba(242, 240, 235, 0.26);
  --red-deep: #ff5a6a;
  background: var(--ink);
  color: var(--on-dark);
}
.section + .section:not(.section--alt):not(.section--dark):not(.section--white) { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head h2 {
  font-size: clamp(2rem, 1.35rem + 2.1vw, 3.25rem);
  max-width: 18em;
}
.section-head .lead { margin-top: 20px; }

.section-title {
  font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.625rem);
  max-width: 14em;
}
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(40px, 7vw, 120px);
}
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .split, .split--even { grid-template-columns: 1fr; }
}

/* ---------- Главный экран ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 78% 38%, #1d2126 0%, rgba(17, 19, 22, 0) 62%),
    var(--ink);
  color: var(--on-dark);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  gap: 48px clamp(40px, 6vw, 96px);
  padding-block: clamp(48px, 6vw, 88px) clamp(48px, 5vw, 72px);
}
.hero h1 {
  font-size: clamp(2.625rem, 1.3rem + 3.9vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.hero h1 em { font-style: italic; color: var(--on-dark-muted); }
.hero .lead { max-width: 34em; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(32px, 4vw, 48px);
}

.hero__art {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  color: var(--on-dark);
}
.hero__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hero__frame rect {
  fill: none;
  stroke: rgba(242, 240, 235, 0.55);
  stroke-width: 0.24;
}
.hero__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40%;
  height: auto;
  transform: translate(-50%, -50%);
  overflow: visible;
}
.hero__mark .stroke {
  fill: var(--on-dark);
  stroke: var(--on-dark);
  stroke-width: 2.5;
}
.hero__mark .accent { fill: var(--red); }
.hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9%;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* анимация отрисовки знака — как в прежнем видео-логотипе, но векторно */
.js .hero__frame rect {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.8s var(--ease) 0.2s forwards;
}
.js .hero__mark .stroke {
  fill-opacity: 0;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.4s var(--ease) 0.6s forwards, fill-in 0.8s ease 1.7s forwards;
}
.js .hero__mark .accent {
  opacity: 0;
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: center;
  animation: accent-in 0.6s var(--ease) 2.1s forwards;
}
.js .hero__caption {
  opacity: 0;
  animation: fade-in 0.8s ease 2.2s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill-in { to { fill-opacity: 1; } }
@keyframes accent-in { to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--on-dark-line);
}
.hero__fact {
  padding: 28px 24px 36px 0;
}
.hero__fact + .hero__fact {
  padding-left: 24px;
  border-left: 1px solid var(--on-dark-line);
}
.hero__fact strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.15rem + 0.6vw, 1.625rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--on-dark);
}
.hero__fact span {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--on-dark-muted);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__art { display: none; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero__fact:nth-child(n + 3) { border-top: 1px solid var(--on-dark-line); }
}
@media (max-width: 560px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Внутренние страницы: шапка раздела ---------- */

.page-head {
  background:
    radial-gradient(70% 120% at 85% 0%, #1d2126 0%, rgba(17, 19, 22, 0) 60%),
    var(--ink);
  color: var(--on-dark);
  padding-block: clamp(56px, 7vw, 104px) clamp(48px, 6vw, 80px);
}
.page-head h1 {
  font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 14em;
}
.page-head .lead { margin-top: 24px; max-width: 42em; }
.page-head--compact h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); max-width: 22em; }

/* ---------- Принципы ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.principle {
  padding: 32px 28px 8px 0;
}
.principle + .principle {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.principle__num {
  display: block;
  margin-bottom: 48px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--red-deep);
  font-variant-numeric: tabular-nums;
}
.principle h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.principle p { color: var(--muted); font-size: 1rem; }

@media (max-width: 1000px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 24px; }
  .principle__num { margin-bottom: 28px; }
}
@media (max-width: 600px) {
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding-left: 0; border-left: 0; }
  .principle + .principle { border-top: 1px solid var(--line); margin-top: 24px; }
}

/* ---------- Список направлений (индекс) ---------- */

.index-list { border-top: 1px solid var(--line-strong); counter-reset: idx; }
.index-list__item {
  display: grid;
  grid-template-columns: 64px minmax(0, 5fr) minmax(0, 6fr) 32px;
  align-items: baseline;
  gap: 16px 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.25s;
}
.index-list__item::before {
  counter-increment: idx;
  content: counter(idx, decimal-leading-zero);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.index-list__item h3 {
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem);
  transition: color 0.2s;
}
.index-list__item p { margin: 0; color: var(--muted); }
.index-list__item::after {
  content: "→";
  justify-self: end;
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.2s;
}
a.index-list__item:hover h3 { color: var(--red-deep); }
a.index-list__item:hover::after { transform: translateX(6px); color: var(--red-deep); }

@media (max-width: 800px) {
  .index-list__item { grid-template-columns: 40px minmax(0, 1fr) 24px; }
  .index-list__item p { grid-column: 2 / 3; }
  .index-list__item::after { grid-column: 3; grid-row: 1; }
}

/* ---------- Люди ---------- */

.people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px);
}
.people--partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.people--partners .person {
  display: grid;
  grid-template-columns: minmax(160px, 5fr) minmax(0, 7fr);
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(20px, 2.5vw, 32px);
  align-content: start;
}
.people--partners .person__photo { grid-row: 1 / -1; margin-bottom: 0; align-self: start; }
@media (max-width: 1100px) {
  .people--partners { grid-template-columns: 1fr; max-width: 720px; }
}
@media (max-width: 560px) {
  .people { gap: 40px; }
  .person,
  .people--partners .person {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "photo head"
      "meta meta"
      "links links";
    column-gap: 18px;
    align-content: start;
  }
  .person__photo,
  .people--partners .person__photo { grid-area: photo; grid-row: auto; margin-bottom: 20px; }
  .person__head { grid-area: head; align-self: end; padding-bottom: 20px; }
  .person h3 { margin-bottom: 0; }
  .person__meta { grid-area: meta; }
  .person__links { grid-area: links; }
}

.person__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 24px;
  overflow: hidden;
  background: var(--paper-2);
}
.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.6s var(--ease), transform 0.8s var(--ease);
}
.person:hover .person__photo img { filter: grayscale(0.15) contrast(1); transform: scale(1.015); }
.person__photo::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 7px; height: 28px;
  background: var(--red);
  opacity: 0;
  transition: opacity 0.3s;
}
.person:hover .person__photo::after { opacity: 1; }

.person__role {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-deep);
}
.person h3 {
  font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.625rem);
  margin-bottom: 14px;
}
.person__meta {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}
.person__meta p { margin-bottom: 0.6em; }
.person__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.person__links a { text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.person__links a:hover { border-color: var(--text); }

.people-group + .people-group { margin-top: clamp(72px, 8vw, 120px); }
.people-group__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-strong);
}
.people-group__title h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.people-group__title span { font-size: 0.9375rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Этапы ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 36px 28px 0 0;
  border-top: 1px solid var(--line-strong);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -1px;
  left: 0;
  padding-top: 12px;
  border-top: 2px solid var(--red);
  width: 40px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.step h3 { font-size: 1.5rem; margin: 32px 0 14px; }
.step p { font-size: 1rem; color: var(--muted); }
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 0; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step { padding-right: 0; }
}

/* ---------- Блок «Связаться» ---------- */

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: start;
}
.cta-band h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); line-height: 1.06; margin-bottom: 24px; }
.cta-band__contacts { display: grid; gap: 0; border-top: 1px solid var(--on-dark-line); }
.cta-contact {
  display: grid;
  gap: 4px;
  padding: 24px 0;
  border-bottom: 1px solid var(--on-dark-line);
}
.cta-contact__name { font-size: 0.9375rem; color: var(--on-dark-muted); }
.cta-contact__phone {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s;
}
.cta-contact__phone:hover { color: #fff; }
.cta-contact__email { font-size: 0.9375rem; color: var(--on-dark-muted); text-decoration: none; }
.cta-contact__email:hover { color: var(--on-dark); }
.cta-band__note { margin-top: 24px; font-size: 0.9375rem; color: var(--on-dark-muted); }
@media (max-width: 900px) {
  .cta-band { grid-template-columns: 1fr; }
}

/* ---------- О бюро: хронология ---------- */

.timeline { border-top: 1px solid var(--line-strong); }
.timeline__item {
  display: grid;
  grid-template-columns: minmax(120px, 2fr) minmax(0, 3fr) minmax(0, 6fr);
  gap: 12px 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.timeline__year {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.5rem + 1.5vw, 3rem);
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.timeline__item h3 { font-size: 1.375rem; padding-top: 6px; }
.timeline__item p { color: var(--muted); padding-top: 6px; margin: 0; }
.timeline__item:last-child .timeline__year { color: var(--red-deep); }
@media (max-width: 800px) {
  .timeline__item { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Практика ---------- */

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.practice-card {
  padding: clamp(32px, 4vw, 48px) clamp(24px, 3.5vw, 48px) clamp(32px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}
.practice-card:nth-child(even) {
  padding-left: clamp(24px, 3.5vw, 48px);
  padding-right: 0;
  border-left: 1px solid var(--line);
}
.practice-card__num {
  display: block;
  margin-bottom: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--red-deep);
  font-variant-numeric: tabular-nums;
}
.practice-card h2 { font-size: clamp(1.625rem, 1.3rem + 0.9vw, 2.125rem); margin-bottom: 14px; }
.practice-card > p { color: var(--muted); margin-bottom: 24px; }
@media (max-width: 860px) {
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card,
  .practice-card:nth-child(even) { padding-left: 0; padding-right: 0; border-left: 0; }
}

.ticks li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 10px;
  height: 1px;
  background: var(--red);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-block + .contact-block { margin-top: 48px; }
.contact-block__label {
  margin-bottom: 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-person {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.contact-person:last-child { border-bottom: 1px solid var(--line); }
.contact-person__name { font-family: var(--serif); font-size: 1.375rem; margin-bottom: 2px; }
.contact-person__role { font-size: 0.9375rem; color: var(--muted); margin-bottom: 12px; }
.contact-person__line { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.contact-person__line a {
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}
.contact-person__line a:hover { border-color: var(--text); }
.address {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.35;
  font-style: normal;
  margin-bottom: 12px;
}
.map {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.02);
}
.map__facade {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background:
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(21, 23, 26, 0.05) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(21, 23, 26, 0.05) 47px 48px),
    var(--paper-2);
}
.map__pin { width: 30px; height: 37px; color: var(--ink); margin-bottom: 4px; }
.map__address { margin: 0; font-family: var(--serif); font-size: 1.25rem; }
.map__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.map__note { margin: 0; font-size: 0.8125rem; color: var(--muted); }
@media (max-width: 600px) {
  .map { aspect-ratio: 1; }
}

/* ---------- Текстовые страницы ---------- */

.prose {
  max-width: 46em;
  font-size: 1.0625rem;
}
.prose h2,
.prose h3 {
  font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem);
  margin: 2.2em 0 0.8em;
}
.prose h4 {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 1.8em 0 0.6em;
}
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul { padding-left: 0; }
.prose ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 0.5em;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 1px;
  background: var(--red);
}
.prose a { text-decoration-color: var(--line-strong); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 600; }
@media (max-width: 600px) {
  .prose { hyphens: auto; }
}

/* ---------- Подвал ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
  padding-top: clamp(56px, 6vw, 88px);
}
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--on-dark); }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr));
  gap: 40px;
  padding-bottom: 56px;
}
.brand--footer { margin-bottom: 20px; }
.site-footer__brand p { max-width: 20em; }
.site-footer__label {
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
}
.site-footer__list li + li { margin-top: 8px; }
.site-footer__list a { font-variant-numeric: tabular-nums; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.8125rem;
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 24px; }
@media (max-width: 960px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

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

/* класс .reveal-on ставит сам site.js — без скрипта всё содержимое видно сразу */
.reveal-on [data-reveal] {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal-on [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}

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

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

@media print {
  .site-header, .site-footer, .hero__art, .map, .skip-link { display: none !important; }
  .hero, .page-head, .section--dark, .on-dark { background: none !important; color: #000 !important; }
  body { background: #fff; }
}
