/* Стили сайта. Перенесены из утверждённого прототипа 30.10.2026 (tools/extract-web.py). */

/* Главная на основе концепции 6 «Доказательства», черновик 1:
   первый экран, направления, избранная практика. Остальные блоки — после выбора. */
:root {
  --red: #be0e1e;
  --red-deep: #9e0a17;
  --paper: #ffffff;
  --warm: #f7f3ef;
  --ink: #1b1b1b;
  --muted: #5d5a57;
  --line: #e3ddd7;
  --graphite: #24272c;
  --graphite-2: #2f333a;
  --graphite-text: #c9ccd1;
  --serif: "Prata", Georgia, serif;
  --sans: "Commissioner", system-ui, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-red :focus-visible, .graphite :focus-visible { outline-color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.note-proto { background: #fff6d6; color: #5a4a00; font-size: 13px; padding: 8px var(--gutter); text-align: center; }
.on-red { background: var(--red); color: #fff; }

/* Кнопки и ссылки: три стиля на весь сайт */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border: 0; font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center; transition: background-color .15s, color .15s, box-shadow .15s; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-secondary:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.on-red .btn-primary { background: #fff; color: var(--red); }
.on-red .btn-primary:hover { background: var(--ink); color: #fff; }
.on-red .btn-secondary { color: #fff; }
.on-red .btn-secondary:hover { background: #fff; color: var(--red); box-shadow: inset 0 0 0 1.5px #fff; }
.graphite .btn-primary { background: #fff; color: var(--graphite); }
.graphite .btn-primary:hover { background: var(--red); color: #fff; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.link { font-weight: 600; color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link:hover { text-decoration-thickness: 2px; }
.on-red .link, .graphite .link, .invest-sec .link { color: #fff; }
/* Минимальная зона касания 44 px для ссылок и маленьких кнопок */
.link, .txt-btn, .top .phone, .logo { display: inline-flex; align-items: center; min-height: 44px; }
.copy { min-height: 36px; }
@media (pointer: coarse) { .copy { min-height: 44px; padding: 0 14px; } }

/* Шапка */
.top .wrap { display: flex; align-items: center; gap: 14px; height: 72px; max-width: 1360px; }
.logo { flex-shrink: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo .z { width: 28px; filter: brightness(0) invert(1); }
.logo .name { font: 400 20px/1 var(--serif); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 6px; margin-right: auto; }
.nav > a, .nav .drop > button { white-space: nowrap; text-decoration: none; font: 500 15px/1 var(--sans); color: #fff; background: none; border: 0; padding: 10px 8px; cursor: pointer; }
.nav > a:hover, .nav .drop > button:hover { text-decoration: underline; text-underline-offset: 6px; }
.drop { position: relative; }
.drop > button::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 8px; }
.drop .menu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; color: var(--ink); padding: 8px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.35); z-index: 20; }
.drop.open .menu { display: block; }
.drop .menu a { display: block; padding: 10px 12px; text-decoration: none; font-size: 15px; }
.drop .menu a:hover { background: var(--warm); }
.drop .menu a span { display: block; font-size: 13px; color: var(--muted); }

.top .phone { white-space: nowrap; font-weight: 600; text-decoration: none; font-size: 15px; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* Первый экран */
.hero .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-top: clamp(24px, 3.5vw, 48px); padding-bottom: clamp(36px, 4.5vw, 64px); }
.hero h1 { font: 400 clamp(34px, 3.7vw, 54px)/1.1 var(--serif); margin: 0 0 18px; }
.hero h1 span { display: block; }
.hero .lead { font-size: clamp(17px, 1.35vw, 19px); color: rgba(255,255,255,.92); margin: 0 0 28px; max-width: 31em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.proof { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 14px 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.28); font-size: 14px; color: rgba(255,255,255,.85); }
.proof b { display: block; font: 400 26px/1.15 var(--serif); color: #fff; }
.proof .unconfirmed { outline: 1px dashed rgba(255,246,214,.9); outline-offset: 6px; }
.proof .unconfirmed em { display: block; font-style: normal; font-size: 12px; color: #fff6d6; }

.docs { position: relative; padding: 70px 0 0 0; }
.doc { display: block; width: 100%; background: #fff; color: var(--ink); text-align: left; border: 0; padding: 18px 20px 14px; box-shadow: 0 28px 60px -24px rgba(0,0,0,.6); cursor: zoom-in; font: inherit; }
.doc img { width: 100%; }
.doc .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; }
.doc .cap b { font: 400 22px/1 var(--serif); color: var(--red); white-space: nowrap; }
.doc.main { position: relative; z-index: 2; transform: rotate(-1.5deg); }
.doc.second { position: absolute; z-index: 1; width: 64%; right: -12px; top: 0; transform: rotate(3deg); padding: 12px 14px 10px; }
.doc.main { width: 88%; }
.doc.second .cap b { font-size: 18px; }
.doc:hover .cap span { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .doc.main { animation: settle .9s cubic-bezier(.2,.7,.1,1) .1s both; }
  .doc.second { animation: settle2 .9s cubic-bezier(.2,.7,.1,1) .25s both; }
  @keyframes settle { from { opacity: 0; transform: translateY(-18px) rotate(-4deg); } }
  @keyframes settle2 { from { opacity: 0; transform: translateY(-12px) rotate(6deg); } }
}

/* Разделы */
section.block { padding: clamp(64px, 7vw, 104px) 0; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: 36px; }
h2 { font: 400 clamp(30px, 3.4vw, 46px)/1.12 var(--serif); margin: 0; max-width: 18em; }
.sec-head p { margin: 8px 0 0; color: var(--muted); max-width: 38em; }

/* Направления */
.dirs { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: auto auto; gap: 16px; }
.dir { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; }
.dir h3 { font: 400 clamp(28px, 2.8vw, 40px)/1.1 var(--serif); margin: 0 0 10px; }
.dir h3 a { text-decoration: none; }
.dir h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.dir .what { margin: 0 0 20px; color: var(--muted); max-width: 34em; }
.dir ul { list-style: none; margin: 0 0 24px; padding: 0; }
.dir li a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.dir li a::after { content: "→"; color: var(--red); }
.dir li a:hover { color: var(--red); }
.dir .foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.dir-citizens { grid-row: 1 / span 2; background: var(--warm); position: relative; overflow: hidden; }
.dir-photo { margin: 28px calc(clamp(24px, 3vw, 40px) * -1) calc(clamp(24px, 3vw, 40px) * -1); }
.dir-photo { flex: 1 0 auto; display: flex; min-height: 220px; }
.dir-photo img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; object-position: 55% 40%; }
.dir-citizens .foot { margin-top: 0; }
.dir .small { font-size: 14px; color: var(--muted); }
.dir-citizens .tag { font-size: 14px; font-weight: 600; color: var(--red); margin: 0 0 8px; }
.dir-business { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.dir-business ul { columns: 1; }
.graphite { background: var(--graphite); color: #fff; }
.dir-invest { display: block; }
.dir-invest .what { color: var(--graphite-text); }
.dir-invest img { width: 92px; align-self: start; }
.dir-invest .rel { grid-column: 1 / -1; font-size: 14px; color: var(--graphite-text); margin: 0 0 18px; padding-top: 12px; border-top: 1px solid var(--graphite-2); }
.dir-invest .foot { grid-column: 1 / -1; }

/* Избранная практика */
.practice { background: var(--warm); }
.case-main { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); background: #fff; padding: clamp(24px, 3.5vw, 48px); align-items: start; }
.case-main .doc { box-shadow: 0 18px 40px -22px rgba(0,0,0,.45); transform: none; }
.said { margin: 28px 0 0; padding-left: 18px; border-left: 3px solid var(--red); font: 400 20px/1.45 var(--serif); }
.said cite { display: block; margin-top: 8px; font: 400 14px/1.4 var(--sans); color: var(--muted); font-style: normal; }
.case-main .doc-hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.case-num { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 15px; margin: 0 0 6px; }
.copy { font: 600 13px/1 var(--sans); padding: 8px 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.copy:hover { border-color: var(--ink); }
.copy.done { border-color: #1f7a4d; color: #1f7a4d; }
.case-main .sum { font: 400 clamp(36px, 4vw, 56px)/1.05 var(--serif); color: var(--red); margin: 0 0 4px; }
.case-main .client { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.story { margin: 0; display: grid; grid-template-columns: 150px 1fr; gap: 0; }
.story dt { font-weight: 600; font-size: 15px; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); }
.story dd { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.case-main .check { margin: 22px 0 0; font-size: 14px; color: var(--muted); }
.case-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.case-small { display: block; background: #fff; padding: 24px 28px; align-items: start; }
.case-small .sum { font: 400 30px/1.1 var(--serif); margin: 0 0 4px; }
.case-small .num { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.case-small p.txt { margin: 0 0 14px; font-size: 16px; }
.case-small .doc { padding: 8px 8px 6px; box-shadow: 0 10px 24px -14px rgba(0,0,0,.5); transform: rotate(1.5deg); }
.case-small .doc .cap { display: none; }
.links { display: flex; gap: 20px; align-items: center; }
.txt-btn { background: none; border: 0; padding: 0; font: 600 16px/1.6 var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: zoom-in; }
.practice .more { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

/* Следующие блоки — заглушка */
.next { padding: 48px 0; border-top: 1px solid var(--line); color: var(--muted); }
.next ol { margin: 8px 0 0; padding-left: 20px; columns: 2; }

/* Просмотр документа */
dialog { border: 0; padding: 0; max-width: min(920px, 94vw); width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
dialog::backdrop { background: rgba(20,20,20,.6); }
.viewer { padding: clamp(18px, 3vw, 32px); }
.viewer img { width: 100%; border: 1px solid var(--line); }
.viewer h3 { font: 400 24px/1.2 var(--serif); margin: 0 0 6px; padding-right: 48px; }
.viewer p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.viewer .row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 18px; }
.viewer .close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: var(--warm); font-size: 24px; cursor: pointer; }

/* Сообщение «раздел позже» */
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; font-size: 15px; z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; }

/* Подвал-заглушка */
.foot-min { background: var(--red-deep); color: rgba(255,255,255,.88); padding: 32px 0; font-size: 14px; }

/* Панель на телефоне */
.mbar { display: none; }

@media (max-width: 1300px) {
  .nav { display: none; }
  .top .phone { margin-left: auto; }
  .menu-btn { display: block; }
  .top { position: relative; }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 72px; left: 0; right: 0; background: var(--red-deep); padding: 8px var(--gutter) 20px; margin: 0; z-index: 30; }
  .nav.open > a, .nav.open .drop > button { text-align: left; padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.2); width: 100%; }
  .nav.open .drop > button::after { display: none; }
  .nav.open .drop .menu { display: block; position: static; background: none; box-shadow: none; padding: 0 0 8px 16px; min-width: 0; }
  .nav.open .drop .menu a { color: #fff; padding: 10px 0; }
  .nav.open .drop .menu a:hover { background: none; text-decoration: underline; }
  .nav.open .drop .menu a span { color: rgba(255,255,255,.7); }

}
@media (max-width: 900px) {
  .hero .wrap, .case-main, .dirs { grid-template-columns: 1fr; }
  .dir-citizens { grid-row: auto; }
  .docs { padding: 60px 0 0; max-width: 560px; }
  .case-row { grid-template-columns: 1fr; }
  .next ol { columns: 1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; padding-bottom: 60px; }
  .top .wrap { height: 64px; gap: 10px; }
  .nav.open { top: 64px; }
  .logo .name { font-size: 18px; }
  .logo .z { width: 24px; }
  .top .btn { display: none; }
  .top .phone { font-size: 14px; }
  .hero h1 { font-size: 34px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .proof { grid-template-columns: 1fr 1fr; gap: 14px 24px; }
  .proof .unconfirmed { grid-column: 1 / -1; }
  .proof b { font-size: 22px; }
  .doc.second { display: none; }
  .docs { padding: 0 0 8px; }
  .doc.main { width: 100%; }
  .doc.main { transform: none; }
  .story { grid-template-columns: 1fr; }
  .story dt { padding-bottom: 2px; }
  .story dd { border-top: 0; padding-top: 0; }
  .case-small { grid-template-columns: 1fr; }
  .dir-invest img { width: 64px; }
  .mbar { display: grid; grid-template-columns: 1fr 1.6fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; box-shadow: 0 -6px 20px rgba(0,0,0,.15); }
  .mbar a { display: grid; place-items: center; min-height: 56px; font-weight: 600; text-decoration: none; }
  .mbar .call { background: #fff; color: var(--ink); }
  .mbar .consult { background: var(--red); color: #fff; }
  .toast { bottom: 72px; }
}
@media (max-width: 400px) {
  .logo .name { font-size: 16px; }
  .logo { gap: 8px; }
  .top .wrap { gap: 8px; }
  .menu-btn { padding: 8px 0 8px 4px; }
}

/* Пометка мест, которые ждут данных (только в прототипе) */
.pending { outline: 1.5px dashed #c9a400; outline-offset: 4px; }
.pending-note { display: inline-block; font-size: 12px; line-height: 1.4; color: #6b5600; background: #fff6d6; padding: 3px 8px; }
.graphite .pending { outline-color: #b39a3a; }

/* Компания и команда: большое фото и текст без рамок */
.company .photo { margin: 0; position: relative; }
.company .photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 40%; }
.company .photo figcaption { position: absolute; left: var(--gutter); bottom: 14px; color: #fff; font-size: 14px; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.company .body { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); padding-top: clamp(36px, 4vw, 56px); }
.company .body .intro p { color: var(--muted); margin: 14px 0 22px; }
.roles { margin: 0; padding: 0; list-style: none; }
.roles li { display: grid; grid-template-columns: 44px 1fr; gap: 0 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.roles li:last-child { border-bottom: 1px solid var(--line); }
.roles .n { font: 400 28px/1 var(--serif); color: var(--red); }
.roles b { display: block; font-weight: 600; margin-bottom: 2px; }
.roles span { color: var(--muted); font-size: 16px; }
.company .links-row { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; }

/* Отзывы: одна выразительная цитата и две короткие */
.reviews { background: var(--warm); }
.rv-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.rv-main blockquote { margin: 0; font: 400 clamp(24px, 2.4vw, 32px)/1.35 var(--serif); }
.rv-main blockquote::before { content: "«"; color: var(--red); }
.rv-main blockquote::after { content: "»"; color: var(--red); }
.rv-meta { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.rv-meta b { color: var(--ink); font-weight: 600; }
.rv-side { display: grid; gap: 0; }
.rv-side article { padding: 22px 0; border-top: 1px solid var(--line); }
.rv-side article:last-child { border-bottom: 1px solid var(--line); }
.rv-side blockquote { margin: 0 0 10px; font-size: 17px; }
.rv-side .rv-meta { margin: 0; font-size: 14px; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; margin-top: 36px; padding-top: 20px; font-size: 15px; color: var(--muted); }

/* Инвестиции: графит, фото объектов, срок, прибыль */
.invest-sec { background: var(--graphite); color: #fff; }
.invest-sec .sec-head p { color: var(--graphite-text); }
.inv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.inv { background: var(--graphite-2); display: flex; flex-direction: column; }
.inv .ph { aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 16px; font-size: 14px; color: var(--graphite-text); background: repeating-linear-gradient(-45deg, #2b2f36 0 12px, #30343c 12px 24px); }
.inv .in { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.inv h3 { font: 400 22px/1.25 var(--serif); margin: 0 0 4px; }
.inv .where { margin: 0 0 18px; font-size: 14px; color: var(--graphite-text); }
.inv .nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 20px; }
.inv dt { font-size: 13px; color: var(--graphite-text); }
.inv dd { margin: 2px 0 0; font: 400 24px/1.15 var(--serif); }
.inv .profit dd { color: #fff; }
.inv .profit dt::after { content: " проекта"; }
.inv .in > .link { margin-top: auto; align-self: start; }
.inv-foot { display: grid; grid-template-columns: 7fr 5fr; gap: 24px 48px; align-items: center; margin-top: 36px; padding-top: 28px; border-top: 1px solid #3a3f47; }
.inv-foot p { margin: 0; font-size: 15px; color: var(--graphite-text); }
.inv-foot .acts { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: flex-end; }

/* Блог: один выделенный материал и короткие ссылки */
.blog-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); }
.feature { display: grid; grid-template-columns: 1fr; gap: 0; text-decoration: none; }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 45%; }
.feature .rub { margin: 18px 0 6px; font-size: 14px; font-weight: 600; color: var(--red); }
.feature h3 { font: 400 clamp(24px, 2.4vw, 32px)/1.2 var(--serif); margin: 0 0 10px; }
.feature:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.feature p { margin: 0; color: var(--muted); }
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { border-top: 1px solid var(--line); }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.posts a { display: block; padding: 18px 0; text-decoration: none; }
.posts a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.posts span { display: block; font-size: 13px; font-weight: 600; color: var(--red); margin-bottom: 4px; }
.posts b { font-weight: 600; font-size: 18px; line-height: 1.35; }

/* Партнёрская программа: компактная полоса */
.partner { padding: 0 0 clamp(64px, 7vw, 104px); }
.partner .strip { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; padding: 28px clamp(20px, 3vw, 40px); background: var(--warm); border-left: 4px solid var(--red); }
.partner h2 { font-size: clamp(24px, 2.4vw, 32px); }
.partner p { margin: 0; color: var(--muted); max-width: 40em; }

/* Консультация и контакты */
.consult .grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.consult h2 { margin-bottom: 14px; }
.consult .lead { color: rgba(255,255,255,.9); margin: 0 0 28px; max-width: 34em; }
.how { list-style: none; margin: 0 0 32px; padding: 0; counter-reset: h; }
.how li { counter-increment: h; display: grid; grid-template-columns: 40px 1fr; gap: 0 14px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.25); }
.how li::before { content: counter(h); font: 400 24px/1.1 var(--serif); }
.office { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.25); font-size: 15px; }
.office b { display: block; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); margin-bottom: 4px; }
.office a { text-decoration: none; }
.office a:hover { text-decoration: underline; }
.form { background: #fff; color: var(--ink); padding: clamp(22px, 3vw, 36px); }
.form h3 { font: 400 26px/1.2 var(--serif); margin: 0 0 6px; }
.form .hint { margin: 0 0 20px; font-size: 15px; color: var(--muted); }
.field { margin-bottom: 16px; }
.field label, .field legend { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; padding: 0; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select { width: 100%; font: 400 17px/1.3 var(--sans); padding: 13px 14px; border: 1.5px solid #cfc8c1; background: #fff; color: var(--ink); border-radius: 0; }
.field input:focus, .field select:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field .err { display: none; margin: 6px 0 0; font-size: 14px; color: var(--red); }
.field .err.show { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0 0 16px; }
.ways { display: flex; flex-wrap: wrap; gap: 8px; }
.ways label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid #cfc8c1; font-weight: 500; font-size: 15px; cursor: pointer; margin: 0; }
.ways input { width: auto; margin: 0; accent-color: var(--red); }
.ways label:has(input:checked) { border-color: var(--ink); background: var(--warm); }
.form .btn { width: 100%; margin-top: 4px; }
.form .ref summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
.on-red .form .btn-primary { background: var(--red); color: #fff; }
.on-red .form .btn-primary:hover { background: var(--red-deep); }
.on-red .form .btn-primary:disabled { opacity: .7; cursor: progress; }
.form .agree { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.form .agree a { color: inherit; }
.result { display: none; margin-top: 16px; padding: 14px 16px; font-size: 15px; }
.result.show { display: block; }
.result.warn { background: #fff6d6; color: #5a4a00; }
.result.ok { background: #e8f3ec; color: #1f5c3b; }
.result.bad { background: var(--red-soft, #fbeceb); color: #8a0d18; }

/* Подвал */
.site-foot { background: var(--ink); color: #d6d2ce; font-size: 15px; padding: 56px 0 28px; }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-foot h3 { font: 600 14px/1.3 var(--sans); color: #fff; margin: 0 0 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: #fff; }
.site-foot .brand .name { font: 400 22px/1 var(--serif); color: #fff; letter-spacing: .04em; margin: 0 0 14px; }
.site-foot .brand p { margin: 0 0 8px; }
.site-foot .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid #3a3a3a; font-size: 13px; color: #a8a39e; display: grid; gap: 8px; }
.site-foot .legal p { margin: 0; max-width: 80em; }

@media (max-width: 1000px) {
  .company .body, .rv-grid, .blog-grid, .consult .grid, .inv-foot { grid-template-columns: 1fr; }
  .inv-grid { grid-template-columns: 1fr 1fr; }
  .inv-grid .inv:nth-child(3) { display: none; }
  .inv-foot .acts { justify-content: flex-start; }
  .partner .strip { grid-template-columns: 1fr; }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .company .photo img { aspect-ratio: 4 / 3; }
  .inv-grid { grid-template-columns: 1fr; }
  .inv-grid .inv:nth-child(2) { display: none; }
  .office { grid-template-columns: 1fr; }
  .site-foot .cols { grid-template-columns: 1fr; }
}

/* «Инвестиции» и «ЛК инвестора»: пара одинаковых кнопок вплотную, каждая в своей рамке.
   ЛК — на более тёмном оттенке фирменного красного. */
:root { --red-dark: #870914; }
.nav .nav-invest, .nav .nav-lk, .lk-top {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  width: 122px; height: 36px; padding: 0 12px; margin: 0;
  font: 500 15px/1 var(--sans); color: #fff; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.nav .nav-invest { margin-left: 8px; background: transparent; }
.nav .nav-lk, .lk-top { background: var(--red-dark); }
.nav .nav-lk { margin-left: -2px; }
@media (max-width: 1300px) { .nav.open .nav-lk { margin-left: 0; } }
.nav .nav-invest:hover { background: rgba(255,255,255,.14); text-decoration: none; }
.nav .nav-lk:hover, .lk-top:hover { background: #6a0710; text-decoration: none; }
.lk-top { display: none; }
@media (max-width: 1300px) {
  .lk-top { display: inline-flex; }
  .nav.open .nav-lk { display: none; }
  .nav.open .nav-invest { width: 100%; height: 52px; margin: 14px 0 0; font-size: 17px; padding: 0 14px; border-bottom: 0; }
}
@media (max-width: 760px) {
  .lk-top { display: none; }
  .nav.open .nav-lk { display: inline-flex; width: 100%; height: 52px; font-size: 17px; }
}

/* ===== Вариант 3: светлая шапка ===== */
.top { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); position: relative; z-index: 30; }
.top .wrap { gap: 0; height: 76px; }
.top .logo { margin-right: 32px; }
.top .logo .z { filter: none; width: 28px; }
.top .logo .name { color: var(--red); }
.top .nav { margin: 0 auto 0 0; gap: 6px; }
.top .nav > a, .top .nav .drop > button { color: var(--ink); padding: 0 10px; height: 44px; display: inline-flex; align-items: center; position: relative; }
.top .phone { color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; }
.hdr-sep { flex: none; width: 1px; height: 28px; background: var(--line); margin: 0 24px 0 20px; }
.top .phone { margin-right: 20px; }
.top .btn-primary { background: var(--red); color: #fff; white-space: nowrap; flex: none; min-height: 44px; padding: 0 20px; }
.top .btn-primary:hover { background: var(--red-deep); color: #fff; }
.top .menu-btn span { background: var(--ink); }

/* Состояния пунктов: линия при наведении, у открытого меню и текущего раздела */
.top .nav > a::after, .top .nav .drop > button:not(.nav-invest)::before {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .18s ease;
}
.top .nav > a:hover, .top .nav .drop > button:hover { text-decoration: none; }
.top .nav > a:hover::after, .top .nav > a[aria-current]::after,
.top .nav .drop > button:not(.nav-invest):hover::before, .top .drop.open > button:not(.nav-invest)::before,
.top .drop.current > button:not(.nav-invest)::before { transform: scaleX(1); }
.top .nav > a:focus-visible, .top .nav .drop > button:focus-visible, .top .phone:focus-visible, .top .btn:focus-visible, .top .logo:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.drop > button::after { transition: transform .18s ease; }
.drop.open > button::after { transform: rotate(-135deg) translate(-2px, -2px); }

/* «Инвестиции» — отдельный выделенный пункт с контуром */
.top .nav .nav-invest { margin-left: 10px; padding: 0 14px; height: 40px; color: var(--red-dark); box-shadow: inset 0 0 0 1.5px var(--red-dark); }
.top .nav .nav-invest:hover, .top .drop.open > .nav-invest { background: #fbeeee; }

/* Выпадающие меню: мостик над меню, чтобы оно не закрывалось по пути указателя */
.top .drop .menu { display: block; visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
  top: calc(100% + 10px); left: 0; min-width: 280px; padding: 8px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 18px 40px -20px rgba(30, 10, 10, .3); }
.top .drop .menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.top .drop.open .menu { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.top .drop .menu a { position: relative; padding: 11px 14px; font-weight: 500; color: var(--ink); }
.top .drop .menu a:hover, .top .drop .menu a:focus-visible { background: var(--warm); outline: none; }
.top .drop .menu a:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.top .drop .menu a[aria-current] { color: var(--red); }
.top .drop .menu a span { font-weight: 400; margin-top: 2px; }
.top .drop-invest .menu { left: auto; right: 0; }
.top .drop .menu a.quiet { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--muted); }
.top .drop .menu a.quiet::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; }
@media (prefers-reduced-motion: reduce) { .top .drop .menu, .top .nav > a::after, .top .nav .drop > button::before { transition: none; } }

/* Первый экран */
.hero .wrap { grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 88px); align-items: center; padding-top: clamp(32px, 4vw, 60px); padding-bottom: clamp(40px, 5vw, 72px); }
.hero h1 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.12; letter-spacing: -.005em; margin: 0 0 20px; max-width: 15em; text-wrap: balance; }
.hero .lead { font-size: clamp(17px, 1.3vw, 18px); line-height: 1.6; max-width: 34em; text-wrap: pretty; }
.hero .actions { margin-bottom: 36px; }
.hero .actions .btn { white-space: nowrap; }

/* Строка фактов: колонки подстраиваются под число подтверждённых фактов */
.facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; max-width: 600px; border-top: 1px solid rgba(255, 255, 255, .26); }
.facts > div { padding: 18px 20px 2px; border-left: 1px solid rgba(255, 255, 255, .26); }
.facts > div:first-child { padding-left: 0; border-left: 0; }
.facts dt { font: 400 26px/1.15 var(--serif); white-space: nowrap; }
.facts dd { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .82); }
.facts .tag { display: inline-block; margin-top: 6px; font-size: 12px; padding: 2px 6px; background: #fff6d6; color: #5a4a00; }

/* Документы: прежняя лёгкая композиция, мягкие тени */
.hero .docs { padding: 56px 0 0; }
.hero .doc { box-shadow: 0 1px 2px rgba(60, 0, 8, .14), 0 10px 22px -12px rgba(60, 0, 8, .32); }
.hero .doc.main { width: 88%; transform: rotate(-1.5deg); }
.hero .doc.second { width: 64%; right: -8px; top: 0; transform: rotate(3deg); box-shadow: 0 1px 2px rgba(60, 0, 8, .12), 0 8px 16px -10px rgba(60, 0, 8, .28); }
.hero .doc:hover { box-shadow: 0 1px 2px rgba(60, 0, 8, .14), 0 14px 28px -12px rgba(60, 0, 8, .38); }
/* У заднего листа подпись наполовину скрыта — убираем её, остаётся только документ */
.hero .doc.second { padding-bottom: 22px; }
.hero .doc.second .cap { display: none; }
.top .nav .nav-invest { color: var(--red-dark); }

/* Описание дела под документами — на фоне, без карточки */
.case-note { margin-top: 26px; max-width: 30em; }
.case-note .kicker { margin: 0 0 6px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.case-note h2 { font: 400 24px/1.25 var(--serif); margin: 0 0 8px; color: #fff; max-width: none; }
.case-note p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .9); }
.case-note .link { color: #fff; }

/* Рамка кейса: документы и описание — одно целое */
.case-frame { position: relative; margin: 14px 0 0; padding: 40px clamp(22px, 2.6vw, 36px) 30px; border: 1px solid rgba(255, 255, 255, .42); }
.case-frame .frame-label { position: absolute; top: 0; left: clamp(16px, 2vw, 28px); transform: translateY(-50%); margin: 0; padding: 0 10px;
  background: var(--red); font-size: 13px; font-weight: 600; line-height: 1.2; color: rgba(255, 255, 255, .92); white-space: nowrap; }
.case-frame .docs { padding: 34px 18px 0 0; }
.case-frame .doc.main { width: 84%; }
.case-frame .doc.second { width: 58%; right: 0; }
.case-frame .case-note { max-width: none; }
.case-note .nw { white-space: nowrap; }
.case-frame .doc.main { padding: 14px 16px 12px; }
.case-frame .doc .cap { font-size: 13px; }
.case-frame .doc .cap span { white-space: nowrap; }
.case-frame .doc .cap b { font-size: 19px; }
@media (max-width: 1100px) and (min-width: 901px) { .hero .wrap { grid-template-columns: 6fr 5fr; } .case-frame .doc.main { width: 92%; } .case-frame .doc.second { width: 62%; } }
.case-frame .case-note h2 { font-size: 23px; }
.case-frame .case-note p:last-of-type { margin-bottom: 8px; }

@media (max-width: 1300px) {
  .hdr-sep { display: none; }
  .top .wrap { gap: 16px; height: 68px; }
  .top .logo { margin-right: auto; }
  .top .phone { margin: 0; }
  .top .nav.open { top: 68px; background: #fff; color: var(--ink); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .35); border-top: 1px solid var(--line); }
  .top .nav.open > a, .top .nav.open .drop > button { color: var(--ink); height: auto; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .top .nav.open > a::after, .top .nav.open .drop > button::before { display: none; }
  .top .nav.open .nav-invest { margin: 0; width: 100%; justify-content: flex-start; font-size: 17px; box-shadow: none; color: var(--red-dark); }
  .top .nav.open .nav-invest::after { display: none; }
  .top .nav.open .drop .menu { visibility: visible; opacity: 1; transform: none; position: static; border: 0; box-shadow: none; padding: 0 0 8px 16px; min-width: 0; background: none; }
  .top .nav.open .drop .menu a { color: var(--ink); padding: 10px 0; }
  .top .nav.open .drop .menu a span { color: var(--muted); }
  .top .nav.open .drop .menu a.quiet { margin-top: 0; border-top: 0; padding-top: 10px; color: var(--muted); }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .docs { max-width: 520px; }
}
@media (max-width: 560px) {
  .top .wrap { height: 64px; }
  .top .nav.open { top: 64px; }
  .top .btn-primary.btn-small { display: none; }
  .top .logo .z { width: 22px; }
  .top .logo { gap: 8px; }
  .hero h1 { text-wrap: wrap; }
  .facts { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .facts dt { font-size: 22px; }
  .facts > div { padding-right: 12px; }
  .facts > div + div { padding-left: 14px; }
  .facts > div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .26); margin-top: 14px; }
  .hero .doc.main { width: 100%; transform: none; }
  .case-frame { padding: 30px 16px 20px; margin-top: 8px; }
  .case-frame .docs { padding: 0; }
  .case-frame .doc.main { width: 100%; }
  .case-frame .case-note { margin-top: 20px; }
  .case-frame .case-note h2 { font-size: 21px; }
  .case-frame { min-width: 0; }
  .case-frame .doc .cap { flex-wrap: wrap; gap: 2px 12px; }
}
@media (max-width: 400px) {
  .hero .actions .btn { white-space: normal; font-size: 15px; padding: 0 12px; }
  .top .wrap { gap: 10px; }
  .top .phone { font-size: 14px; }
}

/* Внутренние страницы */
.page-head { padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 4.5vw, 64px); }
.crumbs { font-size: 14px; color: rgba(255,255,255,.8); margin: 0 0 14px; }
.crumbs a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.crumbs a:hover { text-decoration: underline; }
.page-head h1 { font: 400 clamp(34px, 4.2vw, 58px)/1.08 var(--serif); margin: 0 0 16px; max-width: 17em; }
.page-head .lead { font-size: clamp(17px, 1.35vw, 19px); color: rgba(255,255,255,.92); margin: 0 0 26px; max-width: 38em; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-head.split .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-head figure { margin: 0; }
.page-head figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.toc { position: sticky; top: 0; z-index: 15; background: #fff; border-bottom: 1px solid var(--line); }
.toc .wrap { display: flex; gap: 4px 24px; overflow-x: auto; scrollbar-width: none; }
.toc a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 52px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; }
.toc a:hover { color: var(--ink); border-bottom-color: var(--red); }
[id] { scroll-margin-top: 64px; }
.prose { max-width: 44em; }
.prose p { margin: 0 0 16px; }
.two { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.lst { list-style: none; margin: 0; padding: 0; }
.lst li { padding: 14px 0 14px 30px; border-top: 1px solid var(--line); position: relative; }
.lst li:last-child { border-bottom: 1px solid var(--line); }
.lst li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 14px; height: 2px; background: var(--red); }
.lst li b { display: block; }
.lst li span { color: var(--muted); font-size: 16px; }
.draft-legal { margin-top: 18px; }

/* Ситуации (выбор) */
.sit { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { font: 500 15px/1.25 var(--sans); min-height: 44px; padding: 10px 16px; border: 1.5px solid #cfc8c1; background: #fff; color: var(--ink); cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.answer { background: #fff; padding: clamp(22px, 3vw, 36px); border-left: 4px solid var(--red); }
.answer .text { font-size: 19px; line-height: 1.55; margin: 0 0 18px; min-height: 5em; }
.answer .acts { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

/* Услуги-строки */
.svc-list { border-top: 2px solid var(--ink); }
.svc-row { display: grid; grid-template-columns: 4fr 6fr 2fr; gap: 12px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.svc-row h3 { font: 400 26px/1.2 var(--serif); margin: 0; }
.svc-row h3 a { text-decoration: none; }
.svc-row h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.svc-row p { margin: 0; color: var(--muted); }
.svc-row .price { font-weight: 600; text-align: right; white-space: nowrap; }

/* Этапы */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 160px 1fr; gap: 0 20px; padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font: 400 34px/1 var(--serif); color: var(--red); }
.steps .time { font-weight: 600; font-size: 15px; }
.steps b { display: block; font-size: 19px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }

/* Последствия */
.cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cons > div { background: #fff; padding: clamp(22px, 3vw, 36px); border-top: 4px solid #1f7a4d; }
.cons > div.limits { border-top-color: var(--red); }
.cons h3 { font: 400 26px/1.2 var(--serif); margin: 0 0 14px; }
.cons ul { margin: 0; padding-left: 20px; }
.cons li { margin-bottom: 10px; }

/* Калькулятор */
.calc { display: grid; grid-template-columns: 6fr 5fr; border: 1px solid var(--line); background: #fff; }
.calc .in, .calc .out { padding: clamp(22px, 3vw, 40px); }
.calc .out { background: var(--warm); }
.calc label, .calc .lbl { display: block; font-weight: 600; margin-bottom: 8px; }
.calc .debt { font: 400 clamp(32px, 4vw, 48px)/1 var(--serif); margin: 4px 0 14px; }
.calc input[type=range] { width: 100%; accent-color: var(--red); height: 32px; }
.calc .scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.calc .toggle { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.calc .toggle button { font: 500 15px/1.2 var(--sans); min-height: 44px; padding: 10px 16px; border: 1.5px solid #cfc8c1; background: #fff; cursor: pointer; color: var(--ink); }
.calc .toggle button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.calc .total { font: 400 clamp(36px, 4.4vw, 56px)/1.05 var(--serif); color: var(--red); margin: 6px 0 4px; }
.calc .small-l { font-size: 14px; color: var(--muted); margin: 0; }
.calc ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.calc li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.calc li b { white-space: nowrap; }

/* Частые вопросы */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font: 400 21px/1.35 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 300 30px/1 var(--sans); color: var(--red); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; max-width: 46em; color: var(--muted); }

/* Полоса консультации */
.cta-band { background: var(--warm); }
.cta-band .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 24px 48px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.cta-band h2 { font-size: clamp(26px, 2.6vw, 36px); }
.cta-band p { margin: 10px 0 0; color: var(--muted); }
.cta-band .acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* Практика */
.filters { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; margin-bottom: 28px; }
.filters label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.filters select, .filters input { font: 400 16px/1.3 var(--sans); padding: 11px 12px; border: 1.5px solid #cfc8c1; background: #fff; min-height: 46px; color: var(--ink); }
.filters .count { margin-left: auto; color: var(--muted); font-size: 15px; }
.cases-table { width: 100%; border-collapse: collapse; }
.cases-table th { text-align: left; font-size: 14px; font-weight: 600; color: var(--muted); padding: 0 16px 10px 0; border-bottom: 2px solid var(--ink); }
.cases-table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cases-table .sum { font: 400 22px/1.2 var(--serif); white-space: nowrap; }
.cases-table .num { white-space: nowrap; }
.cases-table .acts { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: flex-end; }
.cases-table tr.has-story .sum { color: var(--red); }
.note-mini { font-size: 13px; color: var(--muted); display: block; }
.feature-case { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); background: var(--warm); padding: clamp(24px, 3.5vw, 48px); margin-bottom: 48px; align-items: center; }
.feature-case .sum { font: 400 clamp(34px, 3.8vw, 52px)/1.05 var(--serif); color: var(--red); margin: 6px 0 10px; }
.feature-case p { margin: 0 0 14px; }

/* Страница дела */
.case-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.3); margin-top: 8px; }
.case-facts div { padding: 16px 20px 0 0; }
.case-facts b { display: block; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); }
.case-facts span { font-size: 17px; }
.case-body { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 170px 1fr; gap: 0 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline h3 { font: 400 22px/1.25 var(--serif); margin: 0; }
.timeline p { margin: 0; }
.case-side { position: sticky; top: 76px; }
.case-side .doc { transform: none; box-shadow: 0 18px 40px -22px rgba(0,0,0,.45); }
.verify { background: var(--warm); padding: 22px 24px; margin-top: 20px; font-size: 15px; }
.verify h3 { font: 600 16px/1.3 var(--sans); margin: 0 0 10px; }
.verify ol { margin: 0 0 14px; padding-left: 20px; }
.verify li { margin-bottom: 6px; }
.said { margin: 36px 0 0; padding-left: 18px; border-left: 3px solid var(--red); font: 400 22px/1.45 var(--serif); }
.said cite { display: block; margin-top: 8px; font: 400 14px/1.4 var(--sans); color: var(--muted); font-style: normal; }

/* Команда */
.people { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px 20px; }
.people figure { margin: 0; }
.people img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; background: #ece6df; }
.people figcaption { padding-top: 12px; }
.people figcaption b { display: block; font: 400 20px/1.25 var(--serif); }
.people figcaption span { color: var(--muted); font-size: 15px; }
.big-photo { margin: 0; }
.big-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 42%; }

/* Контакты */
.offices { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.main-office img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 24px; }
.main-office dl { margin: 0; display: grid; grid-template-columns: 170px 1fr; }
.main-office dt { font-weight: 600; font-size: 15px; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); }
.main-office dd { margin: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.branches article { padding: 20px 0; border-top: 1px solid var(--line); }
.branches article:last-child { border-bottom: 1px solid var(--line); }
.branches h3 { font: 400 22px/1.2 var(--serif); margin: 0 0 4px; }
.branches p { margin: 0; color: var(--muted); }

@media (max-width: 1000px) {
  .page-head.split .wrap, .two, .sit, .calc, .cons, .cta-band .wrap, .feature-case, .case-body, .offices { grid-template-columns: 1fr; }
  .cta-band .acts { justify-content: flex-start; }
  .svc-row { grid-template-columns: 1fr; }
  .svc-row .price { text-align: left; }
  .steps li { grid-template-columns: 48px 1fr; }
  .steps li .time { grid-column: 2; }
  .steps li > div { grid-column: 2; }
  .case-facts { grid-template-columns: 1fr 1fr; }
  .case-side { position: static; }
  .people { grid-template-columns: repeat(3, 1fr); }
  .cases-table thead { display: none; }
  .cases-table, .cases-table tbody, .cases-table tr, .cases-table td { display: block; }
  .cases-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .cases-table td { border: 0; padding: 2px 0; }
  .cases-table .acts { justify-content: flex-start; margin-top: 6px; }
}
@media (max-width: 560px) {
  .page-head .actions .btn { flex: 1 1 100%; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .main-office dl { grid-template-columns: 1fr; }
  .main-office dt { padding-bottom: 0; }
  .main-office dd { border-top: 0; padding-top: 4px; }
  .people { grid-template-columns: 1fr 1fr; }
  .big-photo img { aspect-ratio: 4 / 3; }
  .filters .count { margin-left: 0; width: 100%; }
}

.rubrics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.rubrics button { font: 500 15px/1.2 var(--sans); min-height: 44px; padding: 10px 16px; border: 1.5px solid #cfc8c1; background: #fff; color: var(--ink); cursor: pointer; }
.rubrics button:hover { border-color: var(--ink); }
.rubrics button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; }
.post { display: flex; flex-direction: column; border-top: 2px solid var(--ink); padding-top: 16px; }
.post .rub { font-size: 13px; font-weight: 600; color: var(--red); margin: 0 0 6px; }
.post h3 { font: 400 22px/1.3 var(--serif); margin: 0 0 10px; }
.post h3 a { text-decoration: none; }
.post h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.post p { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.post .meta { margin-top: auto; font-size: 13px; color: var(--muted); }
.post.post-inv { border-top-color: var(--graphite); }
.post.post-inv .rub { color: var(--graphite); }
.blog-feature { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: 48px; text-decoration: none; }
.blog-feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-feature .rub { font-size: 14px; font-weight: 600; color: var(--red); margin: 0 0 8px; }
.blog-feature h2 { margin: 0 0 12px; }
.blog-feature:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.blog-feature p { color: var(--muted); margin: 0 0 12px; }
.empty { color: var(--muted); }
/* Статья */
.article { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.article .byline { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: rgba(255,255,255,.85); margin-top: 6px; }
.article .byline b { color: #fff; font-weight: 600; }
.short { background: var(--warm); border-left: 4px solid var(--red); padding: 22px 26px; margin: 0 0 36px; }
.short h2 { font: 600 15px/1.3 var(--sans); margin: 0 0 8px; color: var(--red); }
.short p { margin: 0; font-size: 19px; line-height: 1.55; }
.article-body { max-width: 42em; }
.article-body h2 { font: 400 clamp(26px, 2.6vw, 34px)/1.2 var(--serif); margin: 44px 0 14px; scroll-margin-top: 24px; }
.article-body p { margin: 0 0 16px; }
.article-body ol, .article-body ul { margin: 0 0 16px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body .example { background: var(--warm); padding: 18px 22px; margin: 0 0 18px; font-size: 16px; }
.sources { font-size: 15px; color: var(--muted); }
.side-toc { position: sticky; top: 24px; border-top: 2px solid var(--ink); padding-top: 14px; }
.side-toc h2 { font: 600 15px/1.3 var(--sans); margin: 0 0 10px; }
.side-toc ol { margin: 0 0 24px; padding-left: 20px; font-size: 15px; }
.side-toc li { margin-bottom: 8px; }
.side-toc a { text-decoration: none; }
.side-toc a:hover { text-decoration: underline; }
.side-toc .rel { border-top: 1px solid var(--line); padding-top: 14px; font-size: 15px; }
.side-toc .rel a { display: block; padding: 6px 0; color: var(--red); font-weight: 600; }
@media (max-width: 1000px) { .posts-grid { grid-template-columns: 1fr 1fr; } .blog-feature, .article { grid-template-columns: 1fr; } .side-toc { position: static; order: -1; } }
@media (max-width: 560px) { .posts-grid { grid-template-columns: 1fr; } }

.legal h3{font:400 26px/1.25 var(--serif);margin:36px 0 12px}.legal ul{padding-left:20px;margin:0 0 16px}.legal li{margin-bottom:6px}.legal .tbl{overflow-x:auto;margin:0 0 20px}.legal table{border-collapse:collapse;min-width:640px;font-size:15px}.legal th,.legal td{text-align:left;vertical-align:top;padding:10px 12px 10px 0;border-bottom:1px solid var(--line)}.legal th{font-weight:600;border-bottom:2px solid var(--ink)}.legal mark.todo{background:#fff6d6;color:#5a4a00;padding:0 3px}

/* Поле-ловушка для ботов: скрыто от людей и экранных дикторов */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
