/* ==========================================================================
   ИИ Право — iilaw.ru
   Практика TROFIMOV ADVISORY по технологиям и искусственному интеллекту.
   Коммерческие страницы тёмные, страницы для чтения светлые.
   ========================================================================== */

@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/cormorant.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('../fonts/cormorant-italic.woff2') format('woff2'); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Literata'; src: url('../fonts/literata.woff2') format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Literata'; src: url('../fonts/literata-italic.woff2') format('woff2'); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  /* тёмная часть */
  --bg: #0b0d10;
  --bg2: #111419;
  --line: rgba(237, 233, 225, 0.12);
  --line2: rgba(237, 233, 225, 0.22);
  --text-d: #ede9e1;
  --soft-d: #b9b5ad;
  --muted-d: #9d9a93;
  --champ: #c8b58a;

  /* светлая часть */
  --paper: #f7f7f5;
  --paper2: #e9eaea;
  --tint: #eeede9;
  --ink: #1b1d21;
  --body: #26292e;
  --muted: #62666c;
  --rule: #d9d8d3;
  --link: #7a6438;

  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --text: 'Literata', Georgia, 'Times New Roman', serif;
  --ui: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --pad: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--ui); -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
body.dark { background: var(--bg); color: var(--text-d); }
body.light { background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; font-feature-settings: 'lnum' 1; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--champ); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--link); }
.nb { white-space: nowrap; }
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------ служебное */

.kicker { display: flex; align-items: center; gap: 18px; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: #cfcac0; }
.kicker::before { content: ''; width: 56px; height: 1px; background: var(--champ); flex-shrink: 0; }
.label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--champ); }

.btn-solid { height: 58px; padding: 0 34px; display: inline-flex; align-items: center; justify-content: center; background: var(--text-d); color: var(--bg); border: 0; font-family: var(--ui); font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background .2s; }
.btn-solid:hover { background: #fff; }
.btn-solid[disabled] { background: #8a877f; cursor: default; }
.btn-line { height: 48px; padding: 0 26px; display: inline-flex; align-items: center; border: 1px solid var(--champ); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; transition: background .2s, color .2s; }
.btn-line:hover { background: var(--champ); color: var(--bg); }
.link { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding-bottom: 6px; border-bottom: 1px solid var(--line2); transition: border-color .2s; }
.link:hover { border-color: var(--champ); }
.light .link { border-color: rgba(27, 29, 33, 0.3); }
.light .link:hover { border-color: var(--ink); }

/* ------------------------------------------------------------------ шапка */

.topline { height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 12px; letter-spacing: 0.04em; color: #8f8c86; border-bottom: 1px solid rgba(237, 233, 225, 0.08); }
.topline b { color: #cfcac0; font-weight: 500; }
.topline__r { display: flex; gap: 28px; }

.site-header { position: relative; z-index: 20; background: var(--bg); color: var(--text-d); }
.site-header--over { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.nav { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-header--compact .nav { height: 76px; }
.brand { display: flex; flex-direction: column; gap: 5px; text-decoration: none; }
.brand__name { font-family: var(--display); font-size: 27px; font-weight: 500; letter-spacing: 0.3em; line-height: 1; color: inherit; text-decoration: none; }
.brand__sub { font-size: 9.5px; letter-spacing: 0.26em; color: #8f8c86; text-transform: uppercase; }
.brand__sub .brand-ta { color: var(--champ); font-weight: 600; }
.site-header--compact .brand__name { font-size: 23px; }

/* Фирменная ссылка на TROFIMOV ADVISORY (золотистый цвет) */
.brand-ta, a.brand-ta {
  color: var(--champ);
  font-weight: 600;
  letter-spacing: inherit;
  text-decoration: none;
  transition: color .2s, border-color .2s;
  border-bottom: 1px solid transparent;
}
.brand-ta:hover, a.brand-ta:hover {
  color: #f0e6cf;
  border-bottom-color: var(--champ);
}
.topline .brand-ta {
  color: var(--champ);
  font-weight: 600;
}
.menu { display: flex; gap: 44px; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: #cfcac0; }
.menu a { padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.menu a:hover { color: var(--text-d); }
.menu a.is-active { color: var(--text-d); border-bottom-color: var(--champ); }
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; background: none; border: 0; cursor: pointer; flex-direction: column; align-items: flex-end; justify-content: center; gap: 7px; }
.burger span { display: block; height: 1px; background: var(--text-d); transition: transform .25s, width .25s; }
.burger span:first-child { width: 24px; }
.burger span:last-child { width: 16px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { width: 24px; transform: translateY(-4px) rotate(-45deg); }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--champ); z-index: 50; }

/* --------------------------------------------------------------- главная */

.hero { position: relative; min-height: 940px; overflow: hidden; background: var(--bg); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__content { position: absolute; z-index: 2; left: var(--pad); bottom: 170px; width: 760px; max-width: calc(100% - 2 * var(--pad)); }
.hero h1 { margin-top: 34px; font-family: var(--display); font-weight: 300; font-size: 108px; line-height: 0.96; letter-spacing: -0.015em; }
.hero__lead { margin-top: 34px; max-width: 560px; font-size: 17px; line-height: 1.75; color: var(--soft-d); }
.actions { margin-top: 44px; display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.creds { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line2); }
.cred { padding: 26px 28px 40px 0; }
.cred + .cred { padding-left: 28px; border-left: 1px solid var(--line); }
.cred__big { font-family: var(--display); font-size: 30px; }
.cred__small { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--muted-d); }

.statement { padding-top: 150px; padding-bottom: 130px; display: grid; grid-template-columns: 260px 1fr; gap: 60px; }
.statement .label { padding-top: 18px; }
.statement h2 { font-family: var(--display); font-weight: 300; font-size: 62px; line-height: 1.12; letter-spacing: -0.01em; }
.clients { grid-column: 2; margin-top: 84px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line2); }
.client { padding: 26px 24px 0 0; }
.client + .client { padding-left: 24px; border-left: 1px solid var(--line); }
.client b { display: block; font-size: 15px; font-weight: 600; }
.client span { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.6; color: var(--muted-d); }

.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 56px; }
.head h2 { font-family: var(--display); font-weight: 300; font-size: 76px; line-height: 1; letter-spacing: -0.015em; }

.practices { padding-top: 30px; padding-bottom: 120px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--bg2); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .25s; }
.card:hover { border-color: rgba(200, 181, 138, 0.5); }
.card__img { height: 236px; border-bottom: 1px solid var(--line); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 32px 34px 38px; display: flex; flex-direction: column; flex: 1; }
.card__en { font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; color: var(--champ); }
.card h3 { margin-top: 16px; font-family: var(--display); font-size: 33px; line-height: 1.12; }
.card p { margin-top: 16px; font-size: 14.5px; line-height: 1.7; color: var(--muted-d); }
.card .link { margin-top: auto; padding-top: 26px; align-self: flex-start; border-bottom: 0; }
.card .link span { padding-bottom: 5px; border-bottom: 1px solid var(--line2); }

.method { padding-top: 120px; padding-bottom: 140px; background: linear-gradient(180deg, #0e1115 0%, #0b0d10 100%); border-top: 1px solid var(--line); }
.method__intro { display: grid; grid-template-columns: 1fr 460px; align-items: end; gap: 80px; }
.method__intro h2 { font-family: var(--display); font-weight: 300; font-size: 76px; line-height: 1; }
.method__intro p { font-size: 16px; line-height: 1.75; color: var(--muted-d); }
.steps { position: relative; margin: 96px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 36px; }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: linear-gradient(90deg, var(--champ), rgba(200, 181, 138, 0.15)); }
.step__dot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--champ); background: var(--bg); position: relative; }
.step__num { margin-top: 34px; font-family: var(--display); font-style: italic; font-size: 26px; color: var(--champ); }
.step__title { margin-top: 12px; font-size: 17px; font-weight: 600; }
.step p { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--muted-d); }

.partner { padding-top: 150px; padding-bottom: 150px; display: grid; grid-template-columns: 560px 1fr; gap: 110px; border-top: 1px solid var(--line); }
.portrait { position: relative; height: 700px; background: radial-gradient(120% 90% at 70% 20%, #2a2c30 0%, #15181c 45%, #0c0e11 100%); border: 1px solid var(--line); overflow: hidden; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.portrait__cap { position: absolute; left: 28px; bottom: 26px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #6f6c67; }
.partner__body { padding-top: 20px; }
.partner h2 { margin-top: 28px; font-family: var(--display); font-weight: 300; font-size: 92px; line-height: 0.98; letter-spacing: -0.015em; }
.partner__text { margin-top: 36px; max-width: 600px; font-size: 17px; line-height: 1.8; color: var(--soft-d); }
.partner__text + .partner__text { margin-top: 18px; }

.bookrow { margin-top: 60px; padding-top: 44px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 48px; }
.book3d { width: 150px; height: 214px; flex-shrink: 0; transform: perspective(900px) rotateY(-24deg) rotateX(3deg); background: linear-gradient(135deg, #1c1f24 0%, #0d0f12 100%); box-shadow: 26px 30px 50px rgba(0, 0, 0, 0.6), inset 3px 0 0 #2b2e33, inset -1px 0 0 #000; padding: 22px 18px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .35s ease, box-shadow .35s ease; position: relative; }
.book3d--lg { width: 300px; height: 428px; padding: 42px 34px; }
.book3d__t { font-family: var(--display); font-size: 19px; line-height: 1.1; color: #e9dfc6; }
.book3d--lg .book3d__t { font-size: 38px; }
.book3d__r { height: 1px; background: var(--champ); }
.book3d__a { margin-top: 10px; font-size: 8px; letter-spacing: 0.2em; color: #8f8c86; }
.book3d--lg .book3d__a { font-size: 12px; margin-top: 14px; }
.book3d--img { padding: 0; overflow: hidden; border-radius: 2px 6px 6px 2px; text-decoration: none; display: block; border: 1px solid rgba(255, 255, 255, 0.1); }
.book3d--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book3d--img::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 4%, rgba(0,0,0,0.2) 8%, rgba(0,0,0,0) 22%); z-index: 2; }
.book3d--img:hover, a.book3d:hover { transform: perspective(900px) rotateY(-12deg) rotateX(1deg) translateY(-4px); box-shadow: 32px 38px 60px rgba(0, 0, 0, 0.8), inset 3px 0 0 rgba(255, 255, 255, 0.25); }
.bookrow h3 { font-family: var(--display); font-size: 32px; line-height: 1.15; }
.bookrow p { margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--muted-d); }
.bookrow .link { margin-top: 0; }
.bookrow__btns { margin-top: 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.insights { background: var(--paper2); color: var(--ink); padding-top: 140px; padding-bottom: 150px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.post { display: block; border-top: 1px solid var(--ink); padding-top: 28px; }
.post__meta { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #6b6e72; }
.post h3 { margin-top: 22px; font-family: var(--display); font-size: 36px; line-height: 1.12; transition: color .2s; }
.post:hover h3 { color: var(--link); }
.post p { margin-top: 18px; font-size: 15px; line-height: 1.7; color: #454a50; }

.contact { position: relative; min-height: 760px; overflow: hidden; background: var(--bg); }
.contact__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.contact__in { position: relative; z-index: 2; padding-top: 150px; padding-bottom: 120px; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(32px, 5vw, 64px); }
.contact h2 { margin-top: 34px; font-family: var(--display); font-weight: 300; font-size: 120px; line-height: 0.95; letter-spacing: -0.02em; }
.contact__lead { margin-top: 34px; max-width: 520px; font-size: 17px; line-height: 1.75; color: var(--soft-d); }
.contact > div > a.btn-solid { margin-top: 44px; }
.channels { border-top: 1px solid var(--line2); margin-top: 26px; }
.ch { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); transition: color .2s; }
.ch span { font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-d); }
.ch b { font-family: var(--display); font-weight: 400; font-size: 28px; }
a.ch:hover b { color: var(--champ); }

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

.site-footer { background: var(--bg); color: #7d7a74; border-top: 1px solid var(--line); padding-top: 44px; padding-bottom: 52px; display: grid; grid-template-columns: 1fr auto auto; gap: 60px; align-items: end; font-size: 12.5px; line-height: 1.6; }
.site-footer .brand__name { font-size: 22px; color: var(--text-d); }
.site-footer a:hover { color: var(--text-d); }
.site-footer__links { display: flex; gap: 24px; flex-wrap: wrap; }

/* --------------------------------------------- внутренние тёмные страницы */

.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero__img { position: absolute; top: 0; right: 0; width: 62%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: 0.55; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.page-hero__in { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 110px; max-width: 1000px; }
.page-hero h1 { margin-top: 30px; font-family: var(--display); font-weight: 300; font-size: 92px; line-height: 0.98; letter-spacing: -0.015em; }
.page-hero__lead { margin-top: 30px; max-width: 620px; font-size: 17px; line-height: 1.75; color: var(--soft-d); }

.section { padding-top: 120px; padding-bottom: 120px; }
.section + .section { border-top: 1px solid var(--line); }

.formats { border-top: 1px solid var(--line2); }
.formats__head, .format { display: grid; grid-template-columns: minmax(0, 1fr) 320px 200px; gap: 48px; align-items: start; }
.formats__head { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-d); }
.format { padding: 36px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 40px; }
.format--lead { background: linear-gradient(90deg, rgba(200, 181, 138, 0.08), rgba(200, 181, 138, 0)); margin: 0 calc(-1 * 28px); padding-left: 28px; padding-right: 28px; }
.format__en { font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; color: var(--champ); }
.format h3 { margin-top: 12px; font-family: var(--display); font-size: 36px; line-height: 1.1; }
.format__desc { margin-top: 12px; font-size: 15px; line-height: 1.7; color: var(--muted-d); max-width: 560px; }
.format__res { font-size: 15px; line-height: 1.7; color: var(--soft-d); padding-top: 6px; }
.format__price { padding-top: 4px; }
.format__price b { display: block; font-family: var(--display); font-size: 32px; font-weight: 400; line-height: 1.1; }
.format__price span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted-d); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line2); }
.cell { padding: 40px 36px 48px 0; border-bottom: 1px solid var(--line); }
.cell:not(:nth-child(3n + 1)) { padding-left: 36px; border-left: 1px solid var(--line); }
.cell h3 { font-family: var(--display); font-size: 34px; line-height: 1.1; }
.cell p { margin-top: 16px; font-size: 15px; line-height: 1.7; color: var(--soft-d); }
.cell__note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.65; color: var(--muted-d); }
.cell__note b { display: block; margin-bottom: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--champ); }

.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 80px; border-top: 1px solid var(--line2); }
.principle { padding: 34px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 60px 1fr; gap: 20px; }
.principle .num { font-family: var(--display); font-style: italic; font-size: 26px; color: var(--champ); }
.principle h3 { font-family: var(--display); font-size: 30px; line-height: 1.15; }
.principle p { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--muted-d); }

.facts { border-top: 1px solid var(--line2); }
.fact { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fact span:first-child { color: var(--muted-d); }
.fact a:hover { color: var(--champ); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 110px; align-items: start; }
.split--book { grid-template-columns: minmax(0, 380px) 1fr; align-items: center; gap: 80px; }

/* ------------------------------------------------------------------ формы */

.form { display: flex; flex-direction: column; gap: 30px; }
.form__pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field > label { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-d); }
.field input, .field select, .field textarea { width: 100%; font-family: var(--ui); font-size: 17px; color: var(--text-d); background: transparent; border: 0; border-bottom: 1px solid var(--line2); border-radius: 0; padding: 12px 0 14px; appearance: none; transition: border-color .2s; }
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--champ) 50%), linear-gradient(135deg, var(--champ) 50%, transparent 50%); background-position: calc(100% - 12px) 22px, calc(100% - 6px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: #000; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #6f6c67; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--champ); }
.field__error { display: none; font-size: 13px; color: #e09a7c; }
.field.has-error input, .field.has-error textarea { border-bottom-color: #e09a7c; }
.field.has-error .field__error { display: block; }
.consent { display: flex; align-items: flex-start; gap: 14px; font-size: 14px; line-height: 1.6; color: var(--muted-d); }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--champ); flex-shrink: 0; }
.consent a { color: var(--soft-d); border-bottom: 1px solid var(--line2); }
.consent.has-error { color: #e09a7c; }
.form__submit { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.form__note { font-size: 13.5px; color: var(--muted-d); }
.form-status { display: none; }
.form-status.is-visible { display: block; }
.form-status--ok { border: 1px solid var(--champ); padding: 40px 44px; }
.form-status--ok h2 { font-family: var(--display); font-size: 44px; font-weight: 300; }
.form-status--ok p { margin-top: 14px; font-size: 16px; line-height: 1.7; color: var(--soft-d); }
.form-status--fail { margin-top: 24px; border: 1px solid #e09a7c; padding: 22px 26px; font-size: 15px; line-height: 1.7; color: var(--soft-d); }
.form-status--fail b { color: #e09a7c; font-weight: 600; }
.form-status--fail a { border-bottom: 1px solid var(--line2); }

/* ---- Однострочная форма обращения (по образцу TROFIMOV ADVISORY) ---- */
.line-form { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 620px; }
.line-form-row {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  width: 100%;
}
.line-form-row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 54px;
  line-height: 54px;
  margin: 0 !important;
  padding: 0 18px;
  font-family: var(--ui);
  font-size: 16px;
  color: var(--text-d);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line2);
  border-radius: 2px;
  box-sizing: border-box;
  transition: border-color .2s, background .2s;
}
.line-form-row input::placeholder { color: #85827c; }
.line-form-row input:focus { outline: none; border-color: var(--champ); background: rgba(255, 255, 255, 0.07); }
.line-form-row.has-error input { border-color: #e09a7c; }
.line-form-row .btn-solid {
  flex: none;
  min-width: 170px;
  height: 54px;
  margin: 0 !important;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  box-sizing: border-box;
  vertical-align: middle;
}
.line-form-messengers { display: flex; align-items: center; gap: 12px; margin-top: 4px; flex-wrap: wrap; font-size: 13px; color: var(--muted-d); }
.line-form-messengers span { color: var(--muted-d); }
.line-form-messengers a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--soft-d);
  font-size: 12.5px;
  transition: border-color .2s, color .2s;
}
.line-form-messengers a:hover { border-color: var(--champ); color: var(--champ); }

.form-status__btns {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.form-status__btns a,
.form-status__btns .btn-solid,
.form-status__btns .btn-line {
  margin: 0 !important;
  height: 52px;
  min-height: 52px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ui);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 2px;
  box-sizing: border-box;
  vertical-align: middle;
}
.form-status__btns .btn-solid {
  background: var(--text-d);
  color: var(--bg);
  border: 1px solid var(--text-d);
}
.form-status__btns .btn-solid:hover {
  background: #fff;
  border-color: #fff;
}
.form-status__btns .btn-line {
  background: transparent;
  color: var(--text-d);
  border: 1px solid var(--champ);
}
.form-status__btns .btn-line:hover {
  background: var(--champ);
  color: var(--bg);
}

/* ------------------------------------------------ светлые страницы: списки */

.lhead { padding-top: 88px; padding-bottom: 64px; border-bottom: 1px solid var(--rule); }
.lhead h1 { margin-top: 26px; font-family: var(--display); font-weight: 400; font-size: 84px; line-height: 1; letter-spacing: -0.015em; }
.lhead p { margin-top: 26px; max-width: 700px; font-family: var(--text); font-size: 20px; line-height: 1.6; color: #3a3d42; font-weight: 350; }
.crumbs { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--link); font-weight: 600; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; margin-top: 64px; padding: 48px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.feature__meta { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.feature__meta b { color: var(--link); font-weight: 600; }
.feature h2 { margin-top: 20px; font-family: var(--display); font-size: 54px; line-height: 1.06; transition: color .2s; }
.feature:hover h2 { color: var(--link); }
.feature p { margin-top: 20px; font-family: var(--text); font-size: 18px; line-height: 1.65; color: var(--body); max-width: 720px; }
.feature__brief { background: var(--tint); padding: 28px 30px; align-self: start; }
.feature__brief b { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.feature__brief p { margin-top: 14px; font-family: var(--text); font-size: 15.5px; line-height: 1.6; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.chip { height: 40px; padding: 0 18px; display: inline-flex; align-items: center; border: 1px solid #c9c7c0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink); background: none; cursor: pointer; transition: background .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.alist { margin-top: 24px; }
.aitem { display: grid; grid-template-columns: 180px minmax(0, 1fr) 120px; gap: 48px; padding: 34px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.aitem[hidden] { display: none; }
.aitem__date { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.aitem h3 { font-family: var(--display); font-size: 36px; line-height: 1.1; transition: color .2s; }
.aitem:hover h3 { color: var(--link); }
.aitem p { margin-top: 10px; font-family: var(--text); font-size: 17px; line-height: 1.6; color: var(--body); max-width: 760px; }
.aitem__tag { margin-top: 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--link); }
.aitem__time { font-size: 13px; color: var(--muted); text-align: right; }

.newslist { border-top: 2px solid var(--ink); margin-top: 64px; }
.nitem { display: grid; grid-template-columns: 180px minmax(0, 1fr) 260px; gap: 48px; padding: 34px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.nitem__date { font-family: var(--display); font-size: 26px; color: var(--link); }
.nitem h3 { font-family: var(--display); font-size: 32px; line-height: 1.12; }
.nitem p { margin-top: 10px; font-family: var(--text); font-size: 17px; line-height: 1.6; color: var(--body); }
.nitem__who { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.nitem__who b { display: block; margin-bottom: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }

.light-band { margin-top: 120px; background: var(--bg); color: var(--text-d); }
.light-band .wrap { padding-top: 72px; padding-bottom: 72px; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.light-band h2 { font-family: var(--display); font-weight: 300; font-size: 52px; line-height: 1.08; }
.light-band p { margin-top: 14px; font-size: 16px; line-height: 1.7; color: var(--soft-d); max-width: 620px; }

/* ----------------------------------------------------------------- статья */

.ahead { padding-top: 88px; padding-bottom: 64px; border-bottom: 1px solid var(--rule); }
.ahead__in { margin-left: 280px; max-width: 980px; }
.ahead h1 { margin-top: 30px; font-family: var(--display); font-weight: 400; font-size: 70px; line-height: 1.04; letter-spacing: -0.012em; }
.lead { margin-top: 34px; max-width: 780px; font-family: var(--text); font-size: 23px; line-height: 1.6; color: #3a3d42; font-weight: 350; }
.meta { margin-top: 44px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.ava { position: relative; width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #4a4d52, #1b1d21); overflow: hidden; flex-shrink: 0; }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.meta b { color: var(--ink); font-weight: 600; }
.meta__sep { width: 1px; height: 22px; background: var(--rule); }
.meta__tools { margin-left: auto; display: flex; gap: 12px; }
.tool { height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border: 1px solid #c9c7c0; background: none; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); cursor: pointer; transition: border-color .2s; }
.tool:hover { border-color: var(--ink); }

.abody { padding-top: 72px; padding-bottom: 40px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 60px; }
.toc { position: sticky; top: 40px; align-self: start; }
.toc__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.toc__title { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.toc__toggle { display: none; }
.toc__list a { display: block; padding: 11px 0 11px 14px; font-size: 13.5px; line-height: 1.45; color: var(--muted); border-left: 1px solid transparent; transition: color .2s, border-color .2s; }
.toc__list a:hover { color: var(--ink); }
.toc__list a.is-active { color: var(--ink); font-weight: 600; border-left-color: var(--champ); }
.toc__time { margin-top: 18px; font-size: 12px; color: var(--muted); }

.prose .row { display: grid; grid-template-columns: 660px 260px; gap: 60px; }
.prose .row--wide { grid-template-columns: minmax(0, 980px); }
.prose p { margin: 0 0 30px; font-family: var(--text); font-size: 20px; line-height: 1.72; color: var(--body); font-weight: 380; hyphens: auto; -webkit-hyphens: auto; }
.prose p strong { font-weight: 600; color: var(--ink); }
.prose p a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.prose h2 { margin: 34px 0 22px; font-family: var(--display); font-weight: 500; font-size: 44px; line-height: 1.12; letter-spacing: -0.01em; scroll-margin-top: 30px; }
.ref { font-family: var(--ui); font-size: 11px; font-weight: 700; margin-left: 2px; }
.ref a { color: var(--link); }

.note { font-size: 13px; line-height: 1.6; color: var(--muted); display: flex; gap: 12px; padding-top: 6px; align-self: start; }
.note b { color: var(--ink); font-weight: 600; }
.note__n { flex-shrink: 0; width: 22px; height: 22px; border: 1px solid var(--link); color: var(--link); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.note a { display: inline-block; margin-top: 6px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

.brief { background: var(--tint); padding: 34px 38px 32px; margin-bottom: 44px; border-top: 2px solid var(--ink); }
.brief__t { font-size: 11.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.brief ol { list-style: none; margin: 22px 0 0; padding: 0; }
.brief li { display: grid; grid-template-columns: 36px 1fr; gap: 6px; padding: 14px 0; border-top: 1px solid #d6d4ce; font-family: var(--text); font-size: 17.5px; line-height: 1.6; color: var(--body); }
.brief li:first-child { border-top: 0; padding-top: 0; }
.brief .num { font-family: var(--display); font-size: 26px; line-height: 1; color: var(--link); font-weight: 500; }

.quote { margin: 26px 0 52px; padding: 40px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); font-family: var(--display); font-style: italic; font-weight: 400; font-size: 46px; line-height: 1.2; color: var(--ink); max-width: 920px; }

.chain { margin: 14px 0 52px; }
.chain__g { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--ink); margin: 0; padding: 0; list-style: none; }
.chain__c { padding: 20px 16px 22px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); min-height: 110px; display: flex; flex-direction: column; justify-content: space-between; background: #fff; }
.chain__c + .chain__c { border-left: 1px solid var(--rule); }
.chain__c .num { font-family: var(--display); font-size: 24px; font-weight: 500; color: var(--link); }
.chain figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); }

.tiers { margin: 6px 0 40px; border-top: 2px solid var(--ink); }
.tiers figcaption { padding: 14px 0; font-size: 13px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--rule); }
.tier { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.tier__lvl { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--link); display: inline-block; }
.dots i.on { background: var(--link); }
.tier__txt { font-family: var(--text); font-size: 17px; line-height: 1.6; color: var(--body); }

.timeline { margin: 6px 0 40px; border-top: 2px solid var(--ink); }
.timeline div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.timeline dt { font-size: 15px; font-weight: 700; }
.timeline dd { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.6; color: var(--body); }

.sources { display: none; }

.aend { padding-top: 30px; margin-left: 280px; max-width: 980px; }
.author { display: grid; grid-template-columns: 96px 1fr; gap: 28px; padding: 36px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.author .ava { width: 96px; height: 96px; }
.author__n { font-family: var(--display); font-size: 32px; font-weight: 500; }
.author__r { margin-top: 6px; font-size: 14px; color: var(--muted); }
.author p { margin-top: 14px; font-family: var(--text); font-size: 17px; line-height: 1.65; color: var(--body); max-width: 700px; }
.acta { margin-top: 56px; background: var(--bg); color: var(--text-d); padding: 52px 56px; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.acta h2 { font-family: var(--display); font-size: 40px; line-height: 1.12; }
.acta p { margin-top: 14px; font-size: 15px; line-height: 1.7; color: var(--soft-d); max-width: 560px; }

.related { margin-top: 110px; }
.related__h { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; border-bottom: 1px solid var(--ink); padding-bottom: 22px; }
.related__h h2 { font-family: var(--display); font-size: 52px; }
.related .posts { padding-top: 30px; }
.related .post { border-top: 0; padding-top: 0; }
.related .post h3 { margin-top: 16px; font-size: 31px; font-weight: 500; }
.related .post p { margin-top: 12px; font-family: var(--text); font-size: 16px; line-height: 1.6; }
.light .site-footer { margin-top: 120px; }

.doc { padding-top: 64px; padding-bottom: 40px; max-width: 900px; margin-left: 360px; }
.doc h2 { margin: 44px 0 18px; font-family: var(--display); font-weight: 500; font-size: 34px; color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.doc h3 { margin: 28px 0 14px; font-family: var(--display); font-weight: 500; font-size: 24px; color: var(--ink); }
.doc p { margin-bottom: 18px; font-family: var(--text); font-size: 17.5px; line-height: 1.7; color: var(--body); }
.doc ul, .doc ol { margin: 0 0 22px 24px; padding: 0; font-family: var(--text); font-size: 17.5px; line-height: 1.7; color: var(--body); }
.doc li { margin-bottom: 8px; }
.doc li strong { color: var(--ink); font-weight: 600; }
.doc p strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: var(--ink); }
.doc-table { width: 100%; border-collapse: collapse; margin: 24px 0 32px; font-size: 15.5px; font-family: var(--text); }
.doc-table th, .doc-table td { padding: 12px 16px; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.doc-table th { background: var(--tint); font-weight: 600; color: var(--ink); font-family: var(--ui); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.doc-callout { background: var(--tint); border-left: 3px solid var(--champ); padding: 18px 22px; margin: 24px 0; font-size: 16.5px; line-height: 1.65; }

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

.e404 { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: center; }
.e404 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.e404__in { position: relative; z-index: 2; }
.e404__code { font-family: var(--display); font-weight: 300; font-size: 200px; line-height: 0.9; color: var(--champ); }
.e404 h1 { margin-top: 20px; font-family: var(--display); font-weight: 300; font-size: 64px; }
.e404 p { margin-top: 20px; max-width: 520px; font-size: 17px; line-height: 1.75; color: var(--soft-d); }
.e404 .actions { margin-top: 36px; }

/* ======================================================= адаптивность */

@media (max-width: 1360px) {
  :root { --pad: 56px; }
  .hero h1 { font-size: 92px; }
  .partner { grid-template-columns: 440px 1fr; gap: 72px; }
  .portrait { height: 580px; }
  .prose .row { grid-template-columns: minmax(0, 620px) 220px; gap: 44px; }
  .ahead__in, .aend { margin-left: 264px; }
  .doc { margin-left: 264px; }
}

@media (max-width: 1180px) {
  :root { --pad: 40px; }
  .menu { gap: 28px; }
  .hero h1 { font-size: 78px; }
  .cred__big { font-size: 25px; }
  .statement { grid-template-columns: 1fr; gap: 24px; padding-top: 110px; padding-bottom: 100px; }
  .statement h2 { font-size: 50px; }
  .clients { grid-column: 1; margin-top: 56px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .head h2, .method__intro h2 { font-size: 62px; }
  .method__intro { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 56px; }
  .steps::before { display: none; }
  .partner { grid-template-columns: 1fr; gap: 56px; }
  .portrait { height: 520px; max-width: 460px; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .posts .post:nth-child(3) { display: none; }
  .contact__in { grid-template-columns: 1fr; gap: 40px; }
  .contact h2 { font-size: 96px; }
  .formats__head, .format { grid-template-columns: minmax(0, 1fr) 240px 170px; gap: 32px; }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .cell:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .cell:nth-child(2n) { padding-left: 36px; border-left: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; gap: 72px; }
  .feature { grid-template-columns: 1fr; gap: 32px; }

  .abody { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; }
  .ahead__in, .aend, .doc { margin-left: 0; }
  .toc { position: static; border: 1px solid var(--ink); padding: 16px 20px; max-width: 660px; }
  .toc__head { border-bottom: 0; padding-bottom: 0; }
  .toc__toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 32px; margin-right: -10px; border: 0; background: none; font-family: var(--display); font-size: 26px; line-height: 1; color: var(--ink); cursor: pointer; }
  .toc__list, .toc__time { display: none; }
  .toc.is-open .toc__list { display: block; margin-top: 10px; }
  .prose .row { grid-template-columns: minmax(0, 660px); gap: 0; }
  .note { margin: -12px 0 30px; background: var(--tint); padding: 14px 16px; max-width: 660px; }
  .quote { font-size: 38px; }
  .chain__g { grid-template-columns: repeat(4, 1fr); }
  .chain__c:nth-child(5) { border-left: 0; }
  .chain__c:nth-child(n + 5) { border-top: 1px solid var(--rule); }
}

@media (max-width: 900px) {
  :root { --pad: 20px; }
  .topline { display: none; }
  .nav, .site-header--compact .nav { height: 64px; }
  .brand__name, .site-header--compact .brand__name { font-size: 19px; letter-spacing: 0.28em; }
  .brand__sub { font-size: 8.5px; }
  .burger { display: flex; }
  .nav > .btn-line { display: none; }
  .menu { display: none; position: fixed; inset: 64px 0 0 0; z-index: 30; background: var(--bg); flex-direction: column; gap: 0; padding: 12px var(--pad) 40px; font-size: 14px; }
  .menu.is-open { display: flex; }
  .menu a { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .menu a.is-active { border-bottom-color: var(--line); color: var(--champ); }
  .menu__cta { margin-top: 28px; }
  body.menu-open { overflow: hidden; }

  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero__img { height: 520px; object-position: 70% 50%; opacity: 0.7; }
  .hero__content { position: relative; left: auto; bottom: auto; width: auto; max-width: none; margin: 0 var(--pad); padding-top: 110px; }
  .hero h1 { font-size: 46px; line-height: 1.02; margin-top: 22px; }
  .hero__lead { font-size: 16px; margin-top: 22px; }
  .actions { flex-direction: column; align-items: stretch; gap: 18px; margin-top: 32px; }
  .actions .btn-solid { width: 100%; }
  .actions .link { align-self: flex-start; }
  .creds { position: relative; left: auto; right: auto; margin: 48px var(--pad) 0; grid-template-columns: 1fr 1fr; }
  .cred, .cred + .cred { padding: 20px 12px 24px 0; border-left: 0; }
  .cred:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
  .cred:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cred__big { font-size: 22px; }
  .kicker { font-size: 10.5px; gap: 12px; }
  .kicker::before { width: 32px; }

  .statement { padding-top: 72px; padding-bottom: 64px; }
  .statement h2 { font-size: 32px; line-height: 1.2; }
  .clients { grid-template-columns: 1fr; margin-top: 36px; }
  .client, .client + .client { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }

  .head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 32px; }
  .head h2, .method__intro h2 { font-size: 42px; }
  .practices { padding-bottom: 72px; }
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .card__img { height: 180px; }
  .card__body { padding: 24px 22px 28px; }
  .card h3 { font-size: 28px; }

  .method { padding-top: 72px; padding-bottom: 72px; }
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 40px; border-left: 1px solid var(--champ); padding-left: 24px; }
  .step { padding-bottom: 28px; }
  .step__dot { display: none; }
  .step__num { margin-top: 0; font-size: 22px; }

  .partner { padding-top: 72px; padding-bottom: 72px; gap: 36px; }
  .portrait { height: 380px; }
  .partner h2 { font-size: 52px; }
  .partner__text { font-size: 16px; }
  .bookrow { flex-direction: column; align-items: flex-start; gap: 32px; }

  .insights { padding-top: 72px; padding-bottom: 72px; }
  .posts { grid-template-columns: 1fr; gap: 36px; }
  .posts .post:nth-child(3) { display: block; }
  .post h3 { font-size: 28px; }

  .contact__img { opacity: 0.3; }
  .contact__in { padding-top: 80px; padding-bottom: 72px; grid-template-columns: 1fr; gap: 48px; }
  .contact h2 { font-size: 60px; }
  .line-form-row { flex-direction: column; align-items: stretch; }
  .line-form-row input { width: 100%; }
  .line-form-row .btn-solid { width: 100%; }
  .form-status__btns { flex-direction: column; align-items: stretch; }
  .form-status__btns a, .form-status__btns .btn-solid, .form-status__btns .btn-line { width: 100%; }
  .ch b { font-size: 21px; }
  .ch { flex-direction: column; gap: 6px; }

  .site-footer { grid-template-columns: 1fr; gap: 18px; }

  .page-hero__img { width: 100%; opacity: 0.3; -webkit-mask-image: none; mask-image: none; }
  .page-hero__in { padding-top: 72px; padding-bottom: 64px; }
  .page-hero h1 { font-size: 48px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .split, .split--book { grid-template-columns: 1fr; gap: 48px; }
  .book3d--lg { width: 220px; height: 314px; }
  .formats__head { display: none; }
  .formats__head, .format { grid-template-columns: 1fr; gap: 14px; }
  .format--lead { margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
  .format h3 { font-size: 30px; }
  .grid3 { grid-template-columns: 1fr; }
  .cell, .cell:nth-child(2n) { padding: 32px 0; border-left: 0; }
  .principles { grid-template-columns: 1fr; }
  .form__pair { grid-template-columns: 1fr; }
  .form__submit .btn-solid { width: 100%; }

  .lhead { padding-top: 48px; padding-bottom: 40px; }
  .lhead h1 { font-size: 48px; }
  .lhead p { font-size: 17.5px; }
  .feature { margin-top: 36px; padding: 32px 0; }
  .feature h2 { font-size: 36px; }
  .aitem, .nitem { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
  .aitem h3 { font-size: 28px; }
  .aitem__time { text-align: left; }
  .nitem h3 { font-size: 26px; }
  .light-band { margin-top: 72px; }
  .light-band .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .light-band h2 { font-size: 36px; }

  .ahead { padding-top: 32px; padding-bottom: 28px; }
  .ahead h1 { font-size: 36px; line-height: 1.08; margin-top: 16px; font-weight: 500; }
  .lead { font-size: 18px; margin-top: 18px; }
  .meta { margin-top: 22px; gap: 12px; font-size: 12.5px; }
  .meta__sep { display: none; }
  .meta__tools { margin-left: 0; width: 100%; }
  .abody { padding-top: 24px; }
  .prose p { font-size: 18px; line-height: 1.7; margin-bottom: 22px; }
  .prose h2 { font-size: 30px; margin: 18px 0 14px; }
  .brief { padding: 22px 20px 18px; }
  .brief li { font-size: 16px; grid-template-columns: 26px 1fr; }
  .quote { font-size: 30px; padding: 22px 0; margin-bottom: 30px; }
  .chain__g { grid-template-columns: 1fr 1fr; }
  .chain__c { min-height: 90px; }
  .chain__c:nth-child(odd) { border-left: 0; }
  .chain__c:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .tier, .timeline div { grid-template-columns: 1fr; gap: 8px; }
  .author { grid-template-columns: 64px 1fr; gap: 18px; }
  .author .ava { width: 64px; height: 64px; }
  .acta { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
  .acta h2 { font-size: 30px; }
  .acta .btn-solid { width: 100%; }
  .related { margin-top: 72px; }
  .related__h h2 { font-size: 36px; }
  .doc h2 { font-size: 28px; }

  .e404__code { font-size: 120px; }
  .e404 h1 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .progress, .toc, .acta, .related, .meta__tools { display: none !important; }
  body.light { background: #fff; }
  .ahead__in, .aend { margin-left: 0; }
  .abody { display: block; }
  .prose .row { display: block; }
  .note { display: block; font-size: 10pt; margin: -10px 0 16px; }
  .prose p { font-size: 11.5pt; }
}

/* кнопка в мобильном меню */
.menu a.menu__cta { display: none; }
@media (max-width: 900px) {
  .menu a.menu__cta { display: inline-flex; justify-content: center; margin-top: 28px; padding: 0; height: 54px; border: 1px solid var(--champ); color: var(--text-d); }
}

/* вертикальные шаги на странице контактов */
.steps--v::before { display: none; }
.steps--v .step__num { font-size: 22px; }

/* Список других направлений на страницах направлений */
.facts--dirs .fact a { transition: color .2s; }
.facts--dirs .fact span { color: var(--muted-d); font-size: 12px; letter-spacing: 0.14em; }
@media (max-width: 900px) { .facts--dirs .fact span { display: none; } }

/* Схемы-цепочки в статьях: число звеньев и перестройка на узких экранах */
.chain__g--4 { grid-template-columns: repeat(4, 1fr); }
.chain__g--5 { grid-template-columns: repeat(5, 1fr); }
.chain__g--6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px) {
  .chain__g--5, .chain__g--6 { grid-template-columns: repeat(3, 1fr); }
  .chain__g--5 .chain__c:nth-child(3n + 1), .chain__g--6 .chain__c:nth-child(3n + 1) { border-left: 0; }
  .chain__g--5 .chain__c:nth-child(n + 4), .chain__g--6 .chain__c:nth-child(n + 4) { border-top: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  .chain__g, .chain__g--4, .chain__g--5, .chain__g--6 { grid-template-columns: repeat(2, 1fr); }
  .chain__c { min-height: 84px; }
  .chain__g .chain__c:nth-child(odd) { border-left: 0; }
  .chain__g .chain__c:nth-child(n + 3) { border-top: 1px solid var(--rule); }
}
