/* «Юрчесть» — сайт юридической компании.
   Чернила, белый, латунь тонкими линиями. Source Serif 4 + Onest, локальные файлы. */

@font-face { font-family: "Source Serif"; src: url("../fonts/sourceserif-cyrillic-opsz.woff2") format("woff2"); font-weight: 200 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: "Source Serif"; src: url("../fonts/sourceserif-latin-opsz.woff2") format("woff2"); font-weight: 200 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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-cyrillic-var.woff2") format("woff2"); font-weight: 100 900; 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-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0f1a2b;
  --ink-2: #172438;
  --ink-3: #22324a;
  --paper: #ffffff;
  --mist: #f4f5f7;
  --line: #e3e6eb;
  --line-ink: rgba(255, 255, 255, .13);
  --text: #0f1a2b;
  --text-2: #4a5465;
  --on-ink: #f5f3ee;
  --on-ink-2: #aeb6c3;
  --brass: #b39256;       /* на тёмном */
  --brass-ink: #806330;   /* на светлом: ≥4.5:1 и на белом, и на тумане */
  --danger: #b42318;

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

  --wrap: 1280px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --section: clamp(80px, 11vw, 160px);
  --header-h: 76px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(15, 26, 43, .08); touch-action: manipulation; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); scrollbar-color: #9aa3b2 var(--mist); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 1.1875rem/1.62 var(--sans);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  caret-color: var(--brass-ink);
}
::selection { background: var(--ink); color: var(--on-ink); }
.section--ink ::selection, .hero ::selection, .foot ::selection { background: var(--brass); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--brass-ink); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .section--ink :focus-visible, .foot :focus-visible, .top:not(.is-scrolled) :focus-visible { outline-color: var(--brass); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; letter-spacing: -0.015em; line-height: 1.06; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--paper); color: var(--ink); padding: 12px 18px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Поле, которое заполняет компания: видно в прототипе, не выдаёт себя за факт */
.todo { font: 500 .82em/1.4 var(--sans); letter-spacing: .01em; color: #7a5a14; background: #fbf3e2; border: 1px dashed #c9a75d; padding: 1px 7px; border-radius: 2px; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.section--ink .todo, .foot .todo { color: #f0dcae; background: rgba(179, 146, 86, .14); border-color: rgba(240, 220, 174, .45); }

/* ---------- Кнопки и ссылки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 16px 28px; border-radius: 2px; background: transparent; font: 500 1.05rem/1.2 var(--sans); letter-spacing: .005em; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out); }
.btn--light { background: var(--on-ink); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost { color: var(--on-ink); border-color: rgba(245, 243, 238, .38); }
.btn--ghost:hover { border-color: var(--on-ink); background: rgba(255, 255, 255, .05); }
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink:hover { background: var(--ink-3); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; text-decoration: none; color: var(--text); border-bottom: 1px solid currentColor; padding-bottom: 2px; line-height: 1.2; }
.link-arrow .ico { transition: transform .25s var(--ease-out); }
.link-arrow:hover .ico { transform: translateX(4px); }
.section--ink .link-arrow { color: var(--on-ink); }

/* ---------- Шапка ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--on-ink); transition: background-color .3s var(--ease-out), color .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.top.is-scrolled, .top--solid { background: rgba(255, 255, 255, .97); color: var(--text); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(10px)) { .top.is-scrolled, .top--solid { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px); } }
.top__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; flex: none; }
.brand__mark { width: 32px; height: 37px; }
.brand__mark path { fill: none; stroke: currentColor; stroke-width: 1.4; }
.brand__mark text { font-family: var(--serif); font-size: 15px; font-weight: 500; fill: currentColor; }
.brand__mark .brand__col { stroke-width: 1.1; stroke-linecap: round; }
.brand__name { font-family: var(--serif); font-size: 1.55rem; font-weight: 450; letter-spacing: -.01em; line-height: 1; }
.menu { margin-left: auto; }
.menu ul { list-style: none; display: flex; gap: 4px; }
.menu a { display: block; white-space: nowrap; padding: 10px 12px; font-size: .97rem; text-decoration: none; color: inherit; opacity: .86; position: relative; }
.menu a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.menu a:hover { opacity: 1; }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.top__actions { display: flex; align-items: center; gap: 18px; flex: none; }
.top__phone { color: inherit; text-decoration: none; font-weight: 500; font-size: 1.02rem; }
.top__cta { min-height: 44px; padding: 10px 18px; font-size: .95rem; border: 1px solid currentColor; color: inherit; background: transparent; }
.top__cta:hover { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.top.is-scrolled .top__cta:hover, .top--solid .top__cta:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.top__toggle { display: none; width: 48px; height: 48px; margin-left: auto; border: 1px solid currentColor; border-radius: 2px; background: transparent; color: inherit; cursor: pointer; align-items: center; justify-content: center; }
.top__toggle .ico { width: 24px; height: 24px; }
.top__toggle .ico--close { display: none; }
.menu-open .top__toggle .ico--open { display: none; }
.menu-open .top__toggle .ico--close { display: block; }
.status.is-open::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5fc38a; margin-right: 8px; vertical-align: .12em; }

@media (max-width: 1240px) { .menu a { padding: 10px 8px; font-size: .93rem; } .menu a::after { left: 8px; right: 8px; } .top__phone { display: none; } }
@media (max-width: 1020px) {
  :root { --header-h: 64px; }
  .top__toggle { display: inline-flex; }
  .top__actions { display: none; }
  .menu { position: fixed; inset: var(--header-h) 0 auto 0; margin: 0; background: var(--ink); color: var(--on-ink); padding: 8px var(--gutter) 28px; max-height: calc(100dvh - var(--header-h)); overflow: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s var(--ease-out), transform .3s var(--ease-out), visibility 0s .3s; }
  .menu-open .menu { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease-out), transform .3s var(--ease-out); }
  .menu-open .top { background: var(--ink); color: var(--on-ink); box-shadow: none; backdrop-filter: none; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu a { font-family: var(--serif); font-size: 1.6rem; padding: 14px 0; border-bottom: 1px solid var(--line-ink); opacity: 1; }
  .menu a::after { display: none; }
  .menu :focus-visible { outline-color: var(--brass); }
}

/* ---------- Первый экран ---------- */
.hero { position: relative; background: var(--ink); color: var(--on-ink); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.055), transparent 55%); pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); min-height: clamp(680px, 100svh, 940px); padding-top: var(--header-h); }
.hero__text { align-self: center; padding: clamp(40px, 7vh, 96px) 0 clamp(48px, 8vh, 110px); }
.hero__title { font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: 1.02; letter-spacing: -0.028em; font-weight: 380; max-width: 15ch; }
.hero__lead { margin-top: clamp(24px, 3.4vh, 36px); font-size: clamp(1.12rem, 1.45vw, 1.3rem); line-height: 1.6; color: var(--on-ink-2); max-width: 36em; }
.hero__lead b { color: var(--on-ink); font-weight: 500; }
.hero__actions { margin-top: clamp(30px, 4.5vh, 48px); display: flex; flex-wrap: wrap; gap: 14px; }
.hero__meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: .98rem; color: var(--on-ink-2); }
/* Портреты команды: вертикальные полосы. Высота полос ограничена так,
   чтобы лицо при любой ширине экрана помещалось в полосу целиком. */
.hero__people { list-style: none; align-self: center; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; height: clamp(440px, 60vh, 540px); margin: clamp(24px, 4vh, 48px) 0 calc(clamp(24px, 4vh, 48px) + 36px); }
.hero__people li { position: relative; min-width: 0; overflow: hidden; background: var(--ink-2); }
.hero__people--n3 li:nth-child(2) { transform: translateY(36px); }
.hero__people--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; justify-self: end; width: 100%; }
.hero__people--n1 { grid-template-columns: minmax(0, 1fr); max-width: 240px; justify-self: end; width: 100%; }
.hero__inner--solo { grid-template-columns: minmax(0, 1fr); }
.hero__people figure { margin: 0; height: 100%; }
.hero__people img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) 28%; filter: grayscale(1) contrast(1.04) brightness(.84); transition: filter .6s var(--ease-out); }
.hero__people li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,26,43,.92) 0%, rgba(15,26,43,.3) 30%, rgba(15,26,43,0) 50%); pointer-events: none; }
.hero__people li:hover img { filter: grayscale(.15) contrast(1.02) brightness(.96); }
.hero__people figcaption { position: absolute; z-index: 1; left: 16px; right: 12px; bottom: 18px; display: flex; flex-direction: column; gap: 3px; }
.hero__people figcaption b { font-family: var(--serif); font-weight: 400; font-size: 1.12rem; line-height: 1.15; color: var(--on-ink); }
.hero__people figcaption span { font-size: .86rem; color: var(--on-ink-2); line-height: 1.35; }
.hero__people figcaption::before { content: ""; width: 22px; height: 1px; background: var(--brass); margin-bottom: 8px; }

/* Одно авторское появление: текст первого экрана проявляется */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rise .9s var(--ease-out) both; }
  .hero__text > *:nth-child(2) { animation-delay: .08s; }
  .hero__text > *:nth-child(3) { animation-delay: .16s; }
  .hero__text > *:nth-child(4) { animation-delay: .22s; }
  .hero__people li { animation: reveal 1.1s var(--ease-out) both; }
  .hero__people li:nth-child(2) { animation-delay: .1s; }
  .hero__people li:nth-child(3) { animation-delay: .2s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Секции ---------- */
.section { padding: var(--section) 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.section__head h2 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); letter-spacing: -0.024em; line-height: 1.02; }
.section__head p { font-size: 1.15rem; color: var(--text-2); max-width: 36em; padding-bottom: .4em; }
.section--ink .section__head p { color: var(--on-ink-2); }

/* О компании */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.about h2 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); letter-spacing: -0.024em; position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.about__statement { font-family: var(--serif); font-size: clamp(1.5rem, 2.3vw, 2.15rem); line-height: 1.32; letter-spacing: -0.01em; font-weight: 380; }
.facts { list-style: none; margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.facts li { padding: 22px 0 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.facts b { font-weight: 500; font-size: 1.08rem; }
.facts b::before { content: ""; display: block; width: 18px; height: 1px; background: var(--brass-ink); margin-bottom: 14px; }
.facts span { color: var(--text-2); font-size: 1.07rem; line-height: 1.5; }

/* Практики */
.practices { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 80px); align-items: start; border-top: 1px solid var(--text); }
.practices li { border-bottom: 1px solid #d5d9e0; }
.practices summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 6px 18px; padding: 26px 0 24px; }
.practices summary::-webkit-details-marker { display: none; }
.practices__title { font-family: var(--serif); font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.22; letter-spacing: -0.01em; transition: color .2s var(--ease-out); }
.practices__brief { grid-column: 1; color: var(--text-2); font-size: 1.02rem; }
.practices .ico { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 24px; height: 24px; color: var(--brass-ink); transition: transform .35s var(--ease-out); }
.practices details[open] .ico { transform: rotate(45deg); }
.practices summary:hover .practices__title { color: var(--brass-ink); }
.practices__body { padding: 0 46px 28px 0; }
.practices__body p { font-size: 1.06rem; color: var(--text); }
.practices__body .link-arrow { margin-top: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .practices details[open] .practices__body { animation: rise .5s var(--ease-out) both; }
}

/* Как мы работаем */
.process { --p: 0; list-style: none; position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: clamp(20px, 2.6vw, 40px); padding-top: 46px; counter-reset: step; }
.process::before, .process::after { content: ""; position: absolute; top: 15px; left: 0; right: 0; height: 1px; background: var(--line); }
.process::after { background: var(--brass-ink); height: 2px; top: 14.5px; transform-origin: left; transform: scaleX(var(--p)); }
.process__step { position: relative; counter-increment: step; }
.process__step::before { content: counter(step); position: absolute; top: -46px; left: 0; width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); font: 500 .9rem/1 var(--sans); color: var(--text-2); z-index: 1; transition: background-color .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out); }
.process__step.is-reached::before { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.process__step h3 { font-size: 1.42rem; line-height: 1.22; }
.process__step p { margin-top: 12px; font-size: 1.02rem; color: var(--text-2); }
.process__tag { display: inline-block; margin-top: 16px !important; font-size: .88rem !important; font-weight: 500; color: var(--brass-ink) !important; border-top: 1px solid currentColor; padding-top: 6px; }

/* Команда */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 48px); }
.person__photo { margin: 0 0 24px; overflow: hidden; background: var(--ink-2); aspect-ratio: 4 / 5; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.92); transition: filter .6s var(--ease-out), transform 1.2s var(--ease-out); }
.person:hover .person__photo img, .person:focus-within .person__photo img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.02); }
.person h3 { font-size: clamp(1.5rem, 2vw, 1.8rem); line-height: 1.2; }
.person__role { margin-top: 8px; color: var(--brass); font-size: 1rem; font-weight: 500; }
.person__facts { margin: 20px 0 0; }
.person__facts div { padding: 14px 0; border-top: 1px solid var(--line-ink); }
.person__facts dt { font-size: .94rem; color: var(--on-ink-2); letter-spacing: .02em; }
.person__facts dd { margin: 4px 0 0; font-size: 1.02rem; line-height: 1.55; color: var(--on-ink); }

/* Стоимость */
.pricing { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.price { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; border-top: 1px solid var(--text); }
.price th, .price td { padding: 20px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.price th { text-align: left; font-weight: 400; font-size: 1.1rem; padding-right: 24px; }
.price td { text-align: right; white-space: nowrap; font-size: 1.05rem; }
.price__free { font-family: var(--serif); font-size: 1.35rem; color: var(--brass-ink); }
.pricing__note { padding: 32px; background: var(--mist); border-top: 2px solid var(--brass-ink); }
.pricing__note h3 { font-size: 1.55rem; line-height: 1.22; }
.pricing__note p { margin-top: 14px; color: var(--text-2); font-size: 1.04rem; }
.pricing__note p + p { margin-top: 10px; }
.pricing--solo { grid-template-columns: minmax(0, 1fr); }

/* Семьям военнослужащих */
.svo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.svo h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); letter-spacing: -0.02em; }
.svo p { font-size: 1.2rem; line-height: 1.6; max-width: 36em; }
.svo p + p { margin-top: 14px; color: var(--text-2); font-size: 1.06rem; }
.svo .link-arrow { margin-top: 26px; }

/* Вопросы */
.faq-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-layout .section__head { display: block; margin: 0; position: sticky; top: calc(var(--header-h) + 40px); }
.faq-layout .section__head p { margin-top: 18px; }
.faq { border-top: 1px solid var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--serif); font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.22; letter-spacing: -0.008em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 22px; height: 22px; color: var(--brass-ink); transition: transform .35s var(--ease-out); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq summary:hover { color: var(--brass-ink); }
.faq details > ul { margin: 0; padding: 0 48px 24px 1.3em; color: var(--text-2); }
.faq details > p + p { margin-top: -14px; }
.faq details > p { padding: 0 48px 28px 0; font-size: 1.08rem; color: var(--text-2); max-width: 44em; }
.faq a { color: var(--text); }
@media (prefers-reduced-motion: no-preference) { .faq details[open] > p { animation: rise .5s var(--ease-out) both; } }

/* Консультация и контакты */
.consult { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.consult h2 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); letter-spacing: -0.024em; line-height: 1.02; max-width: 14ch; }
.consult__lead { margin-top: 22px; font-size: 1.15rem; color: var(--on-ink-2); max-width: 32em; }
.contact-list { margin: 44px 0 0; }
.contact-list div { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: 6px 20px; padding: 18px 0; border-top: 1px solid var(--line-ink); }
.contact-list dt { font-size: .95rem; color: var(--on-ink-2); padding-top: 2px; }
.contact-list dd { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-list a { color: var(--on-ink); }
.contact-list .big { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; letter-spacing: -0.01em; }
.contact-list .status { display: block; margin-top: 8px; font-size: .95rem; color: var(--on-ink-2); }

.form-card { background: var(--paper); color: var(--text); padding: clamp(28px, 3.4vw, 48px); scroll-margin-top: calc(var(--header-h) + 16px); }
.form-card h3 { font-size: 1.9rem; line-height: 1.18; }
.form-card__hint { margin-top: 10px; color: var(--text-2); font-size: 1.02rem; }
.field { margin-top: 22px; }
.field label { display: block; font-size: .95rem; font-weight: 500; margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--text-2); }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea { width: 100%; min-height: 56px; padding: 14px 16px; border: 1px solid #8a93a3; border-radius: 2px; background: #fff; color: var(--text); font: 400 1.08rem/1.3 var(--sans); appearance: none; -webkit-appearance: none; transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.field textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230f1a2b' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: #6b7483; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #5f6878; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 26, 43, .14); }
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
.field__error { margin-top: 8px; color: var(--danger); font-size: .95rem; font-weight: 500; }
.field--check { margin-top: 24px; }
.check { display: grid !important; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0 !important; padding: 4px 0; font-weight: 400 !important; font-size: 1rem !important; line-height: 1.45; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.form-card .btn { margin-top: 26px; }
.form-card__note { margin-top: 16px; font-size: .9rem; color: var(--text-2); line-height: 1.5; }
.form-card a:not(.btn) { color: var(--text); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-done { padding: 8px 0; }
.form-done__mark { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--brass-ink); display: grid; place-items: center; color: var(--brass-ink); margin-bottom: 22px; }
.form-done__mark .ico { width: 26px; height: 26px; stroke-width: 1.8; }
.form-done h3 { outline: none; }
.form-done p { margin-top: 12px; color: var(--text-2); }
.form-done p b { color: var(--text); font-weight: 500; }
.link-btn { margin-top: 18px; background: none; border: 0; padding: 8px 0; font: inherit; font-size: 1rem; color: var(--text); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
@media (prefers-reduced-motion: no-preference) {
  .form-done.is-shown > * { animation: rise .6s var(--ease-out) both; }
  .form-done.is-shown > *:nth-child(2) { animation-delay: .06s; }
  .form-done.is-shown > *:nth-child(3) { animation-delay: .12s; }
}

.call-card__phone { margin-top: 26px; font-size: 1.2rem; letter-spacing: .01em; }
.call-card__status { margin-top: 14px; color: var(--text-2); font-size: .98rem; }
.call-card__visit { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 1rem; }
.call-card__visit b { display: block; color: var(--text); font-weight: 500; margin-bottom: 2px; }
.map { position: relative; margin-top: 36px; min-height: 280px; border: 1px solid var(--line-ink); background: var(--ink-2); overflow: hidden; }
.map__face { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 14px; min-height: 240px; padding: 28px; }
.map__addr { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 6px; }
.map__face .btn { min-height: 50px; padding: 12px 20px; font-size: 1rem; }
.map__note { font-size: .9rem; color: var(--on-ink-2); }
.map__note a { color: var(--on-ink); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Подвал ---------- */
.foot { background: var(--ink); color: var(--on-ink); padding: clamp(64px, 8vw, 112px) 0 clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-ink); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 56px); padding-bottom: 56px; border-bottom: 1px solid var(--line-ink); }
.foot__h { font-size: .95rem; font-weight: 500; color: var(--on-ink-2); letter-spacing: .02em; margin-bottom: 12px; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.foot ul a { display: inline-block; padding: 8px 0; }
.foot a { color: var(--on-ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__brand p { margin-top: 18px; color: var(--on-ink-2); font-size: 1rem; max-width: 26em; }
.foot__legal { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 3fr); gap: 24px clamp(24px, 4vw, 56px); padding: 32px 0; font-size: .92rem; color: var(--on-ink-2); line-height: 1.7; }
.foot__legal p + p { margin-top: 8px; }

/* Панель связи на телефоне */
.dock { display: none; }

/* ---------- Внутренние страницы ---------- */
.page-head { background: var(--ink); color: var(--on-ink); padding: calc(var(--header-h) + clamp(56px, 8vw, 120px)) 0 clamp(56px, 7vw, 100px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .92rem; color: var(--on-ink-2); margin-bottom: 28px; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: var(--on-ink-2); }
.page-head h1 { font-size: clamp(2.6rem, 5.4vw, 5.2rem); letter-spacing: -0.026em; line-height: 1.02; font-weight: 380; max-width: 16ch; }
.page-head__lead { margin-top: 26px; font-size: clamp(1.12rem, 1.4vw, 1.28rem); color: var(--on-ink-2); max-width: 40em; }
.page-head .hero__actions { margin-top: 36px; }
.doc { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.doc__toc { position: sticky; top: calc(var(--header-h) + 32px); font-size: .95rem; }
.doc__toc p { color: var(--text-2); font-size: .9rem; margin-bottom: 14px; }
.doc__toc ol { list-style: none; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--line); padding-left: 16px; }
.doc__toc a { color: var(--text-2); text-decoration: none; }
.doc__toc a:hover { color: var(--text); text-decoration: underline; }
.prose { max-width: 46em; }
.prose h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.12; margin: 64px 0 18px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.35rem; margin: 32px 0 10px; }
.prose p, .prose li { font-size: 1.08rem; line-height: 1.68; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--brass-ink); }
.prose a { color: var(--text); }
.prose .note { margin-top: 24px; padding: 22px 24px; background: var(--mist); border-top: 2px solid var(--brass-ink); }
.prose .meta { color: var(--text-2); font-size: .98rem; }
.steps-list { list-style: none !important; padding: 0 !important; margin-top: 22px !important; counter-reset: s; border-top: 1px solid var(--text); }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.steps-list li::before { content: counter(s); font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: var(--brass-ink); }
.steps-list b { display: block; font-weight: 500; }

@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero__text { padding: clamp(48px, 9vw, 80px) 0 40px; }
  .hero__people { height: clamp(300px, 50vw, 420px); margin: 0 0 8px; }
  .hero__people--n3 li:nth-child(2) { transform: none; }
  .hero__people--n1, .hero__people--n2 { justify-self: stretch; max-width: none; }
  .section__head, .about, .svo, .pricing, .consult, .doc, .faq-layout { grid-template-columns: 1fr; }
  .about h2, .faq-layout .section__head { position: static; }
  .faq-layout .section__head { margin-bottom: 8px; }
  .process { grid-template-columns: 1fr; padding-top: 0; padding-left: 52px; gap: 34px; }
  .process::before, .process::after { top: 0; bottom: 0; left: 15px; right: auto; width: 1px; height: auto; }
  .process::after { width: 2px; left: 14.5px; transform: scaleY(var(--p)); transform-origin: top; }
  .process__step::before { top: -2px; left: -52px; }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__legal { grid-template-columns: 1fr; }
  .doc__toc { position: static; }
}
@media (max-width: 760px) {
  html { scroll-padding-bottom: 96px; }
  body { font-size: 1.125rem; }
  .hero__text { display: contents; }
  .hero__title { order: 1; padding-top: 28px; font-size: clamp(2.35rem, 10.4vw, 3rem); }
  .hero__lead { order: 2; margin-top: 16px; font-size: 1.08rem; }
  .hero__people { order: 3; height: 250px; margin: 24px calc(-1 * var(--gutter)) 0; gap: 3px; }
  .hero__actions { order: 4; margin-top: 26px; }
  .hero__meta { order: 5; margin-top: 18px; padding-bottom: 44px; }
  .hero__actions .btn { width: 100%; }
  .hero .hero__actions .btn--ghost { display: none; } /* звонок — в нижней панели */
  .hero__people figcaption { left: 10px; right: 8px; bottom: 14px; }
  .hero__people figcaption b { font-size: 1rem; }
  .hero__people figcaption span { font-size: .875rem; }
  .facts { grid-template-columns: 1fr; }
  .practices { grid-template-columns: 1fr; }
  .practices__body { padding-right: 0; }
  .team { grid-template-columns: 1fr; gap: 56px; }
  .person__photo { max-width: 460px; }
  .price th { font-size: 1.02rem; padding-right: 12px; }
  .price td { white-space: normal; }
  .contact-list div { grid-template-columns: 1fr; }
  .faq details > p { padding-right: 0; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .dock { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 6px; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(15, 26, 43, .97); box-shadow: 0 -8px 24px rgba(15, 26, 43, .2); }
  .dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; border-radius: 2px; color: var(--on-ink); text-decoration: none; font-size: .9rem; font-weight: 500; border: 1px solid var(--line-ink); }
  .dock .ico { width: 22px; height: 22px; }
  .dock .dock__main { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
  .dock :focus-visible { outline-color: var(--brass); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .top, .dock, .map, .hero__people { display: none; }
  .hero, .section--ink, .page-head, .foot { background: #fff; color: #000; }
}
