/* Golos Text – тот же шрифт, что на других сайтах экосистемы. */
@font-face { font-family: 'Golos Text'; font-weight: 400; font-display: swap; src: url(fonts/GolosText-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 400; font-display: swap; src: url(fonts/GolosText-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'Golos Text'; font-weight: 500; font-display: swap; src: url(fonts/GolosText-500-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 500; font-display: swap; src: url(fonts/GolosText-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'Golos Text'; font-weight: 600; font-display: swap; src: url(fonts/GolosText-600-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-weight: 600; font-display: swap; src: url(fonts/GolosText-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212, U+2215; }
/* PT Serif (ParaType) – заголовки и пометки. Шрифт «документа»:
   с 20.10.2026 сайт в строгом стиле, на белом фоне (Семён). */
@font-face { font-family: 'PT Serif'; font-weight: 400; font-display: swap; src: url(fonts/PTSerif-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Serif'; font-weight: 400; font-display: swap; src: url(fonts/PTSerif-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'PT Serif'; font-weight: 700; font-display: swap; src: url(fonts/PTSerif-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'PT Serif'; font-weight: 700; font-display: swap; src: url(fonts/PTSerif-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'PT Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/PTSerif-400i-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ============================================================
   ОФОРМЛЕНИЕ. С 20.10.2026 – строгий «юридический» стиль (палитра ниже, в :root) по
   просьбе Семёна: белый фон, как на адвокатских сайтах, заголовки
   антиквой PT Serif, тонкие линейки, прямоугольные кнопки.
   Цвета: чернильный текст, бордо для действий, латунь для линеек.
   Срочное – тем же бордо, без кислотного красного.

   Образец, который прислал Семён: spka-plevako.ru. Брали приёмы
   (антиква заглавными, оглавление с отточием, курсивные пометки),
   а не цвета и картинки – сайт не должен быть похож на чужой.
   ============================================================ */
:root {
  /* 20.10.2026, второй заход (Семён): «частные сайты, которые мне
     нравятся, бежевые, светлые», государственные – просто белые.
     Тёплая бумага, тёмно-коричневый текст, каштан для действий,
     латунь для линеек, тёмная кожа в подвале – кабинет адвоката,
     а не канцелярия. Образцы: naryishkin.spb.ru, balticlaw.ru. */
  --ink: #3A2317;
  --ink-2: #4A3022;
  --text: #3B2F27;
  --muted: #7C6B5D;
  --paper: #F6EFE3;
  --paper-2: #EEE3D0;
  --card: #FFFCF6;
  --line: #DCCAAE;
  --line-2: #E8DCC8;
  --accent: #7B3A24;
  --accent-2: #94482D;
  --brass: #B08D57;
  --leather: #2F1E15;
  --wrap: 1180px;
  --sans: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'PT Serif', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.65 var(--sans); }
body.modal-open { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration-color: rgba(123, 58, 36, .35); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 4.8vw, 60px); letter-spacing: -.005em; }
h2 { font-size: clamp(27px, 3.1vw, 40px); }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; }
b, strong { font-weight: 600; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section { padding: 84px 0; }
section.alt { background: var(--paper-2); }
.sub { color: var(--muted); max-width: 760px; font-size: 18px; }
.muted { color: var(--muted); font-size: 15px; }
.kicker { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--accent); margin-bottom: 16px; }
.aside-note { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 16px; margin: 0; max-width: 320px; text-align: right; }

/* --- кнопки: прямоугольные, без овалов ------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 28px; border-radius: 2px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: 500 14px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.sm { padding: 11px 18px; font-size: 13px; }

/* --- шапка ---------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(246, 239, 227, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.hrow { max-width: 1320px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 40px; height: 40px; }
.lm-shield { fill: none; stroke: var(--brass); stroke-width: 1.4; stroke-linejoin: round; }
.lm-scale { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.logo-txt { display: flex; flex-direction: column; line-height: 1.1; padding-left: 12px; border-left: 1px solid var(--line); }
.logo-name { font-family: var(--serif); font-weight: 700; font-size: 21px; text-transform: uppercase; letter-spacing: .14em; }
.logo-sub { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--muted); }
.menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.menu > a, .dd > a { color: var(--ink); text-decoration: none; font-size: 14.5px; padding: 9px 10px; display: inline-block; white-space: nowrap; }
.menu > a:hover, .dd > a:hover, .menu a[aria-current] { color: var(--accent); }
.dd { position: relative; display: flex; align-items: center; }
.dd-t { display: none; }
.dd-p { position: absolute; top: 100%; left: -10px; min-width: 300px; background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--accent); box-shadow: 0 18px 40px rgba(58, 35, 23, .14); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.dd:hover .dd-p, .dd:focus-within .dd-p { opacity: 1; visibility: visible; transform: none; }
.dd-p a { display: block; padding: 8px 18px; color: var(--ink); text-decoration: none; font-size: 15px; }
.dd-p a:hover { background: var(--paper-2); color: var(--accent); }
.dd-p small { display: block; color: var(--muted); font-size: 12.5px; font-family: var(--serif); font-style: italic; }
.urgent { flex: none; display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--accent); border: 0; padding: 8px 4px; font: 500 14px/1.2 var(--sans); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(123, 58, 36, .35); text-underline-offset: 4px; }
.urgent i, .ucard-k i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(123, 58, 36, .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(123, 58, 36, 0); } }
.hbtn { flex: none; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink); content: ''; transition: .2s; }
.burger span { top: 21px; }
.burger span::before { top: -7px; left: 0; }
.burger span::after { top: 7px; left: 0; }
.top.open .burger span { background: transparent; }
.top.open .burger span::before { top: 0; transform: rotate(45deg); }
.top.open .burger span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1560px) { .urgent { display: none; } }
@media (max-width: 1200px) {
  .burger { display: block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 4px 20px 20px; max-height: calc(100vh - 72px); overflow: auto; gap: 0; }
  .top.open .menu { display: flex; }
  .dd { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--line-2); }
  .dd > a, .menu > a { padding: 14px 0; font-size: 17px; font-family: var(--serif); }
  .menu > a { border-bottom: 1px solid var(--line-2); }
  .dd-t { display: block; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
  .dd-t::after { content: ''; position: absolute; left: 18px; top: 15px; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: .2s; }
  .dd.open .dd-t::after { transform: rotate(-135deg); top: 20px; }
  .dd-p { position: static; display: none; opacity: 1; visibility: visible; transform: none; width: 100%; box-shadow: none; border: 0; border-left: 2px solid var(--accent); margin: 0 0 12px; padding: 0; }
  .dd.open .dd-p { display: block; }
  .hbtn { display: none; }
}

/* --- первый экран --------------------------------------------- */
.hero { background: var(--paper); padding: 56px 0 72px; border-bottom: 1px solid var(--line); }
.hero h1 span { color: var(--accent); }
.hero .lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--text); max-width: 680px; }
.hero--home h1 { font-size: clamp(36px, 5.2vw, 70px); line-height: 1.08; padding-bottom: 26px; margin-bottom: 28px; background: linear-gradient(var(--ink), var(--ink)) left bottom / 100% 3px no-repeat, linear-gradient(var(--ink), var(--ink)) left calc(100% - 7px) / 100% 1px no-repeat; }
.hero--page { padding: 40px 0 56px; }
.hero--page h1 { font-size: clamp(30px, 4.2vw, 52px); padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: end; }
.hero--home .hero-grid { align-items: start; }
.hero-grid--solo { grid-template-columns: minmax(0, 1fr); }
.heroctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.tel { color: var(--ink); font-family: var(--serif); font-size: 22px; text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.tel small { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.hero-note { margin-top: 20px; font-size: 15px; color: var(--muted); }
.crumbs { padding-top: 16px; padding-bottom: 0; font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs i { font-style: normal; margin: 0 8px; opacity: .5; }

.ucard { border: 1px solid var(--ink); padding: 26px 26px 22px; position: relative; background: var(--card); }
.ucard::before { content: ''; position: absolute; inset: 5px; border: 1px solid var(--line); pointer-events: none; }
.ucard-k { display: flex; align-items: center; gap: 10px; color: var(--accent); font-family: var(--serif); font-style: italic; font-size: 16px; margin-bottom: 10px; }
.ucard h2 { font-size: 24px; }
.ucard .dots li { font-size: 15.5px; }
.ucard .btn { width: 100%; margin: 8px 0 14px; position: relative; }
.ucard-more { font-size: 15px; position: relative; }

.marks-band { background: var(--paper); padding: 0; border-bottom: 1px solid var(--line); }
.marks { display: grid; grid-template-columns: repeat(4, 1fr); }
.marks > div { padding: 26px 24px; border-left: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.marks > div:first-child { border-left: 0; padding-left: 0; }
.marks b { display: block; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 19px; margin-bottom: 4px; }

/* --- списки --------------------------------------------------- */
.dots { list-style: none; padding: 0; margin: 0 0 1em; }
.dots li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.dots li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 10px; height: 1px; background: var(--accent); }
.checks { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.checks li { border-bottom: 1px solid var(--line); padding: 14px 0 14px 34px; position: relative; }
.checks li::before { content: '§'; position: absolute; left: 4px; top: 12px; font-family: var(--serif); color: var(--accent); font-size: 18px; }

/* --- оглавление направлений ---------------------------------- */
.toc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; border-bottom: 1px solid var(--ink); padding-bottom: 18px; margin-bottom: 8px; }
.toc-head h2 { margin: 0; }
.toc { list-style: none; margin: 0; padding: 0; }
.toc-i { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.toc-n { font-family: var(--serif); font-size: 22px; color: var(--brass); padding-top: 4px; }
.toc-t { display: flex; align-items: baseline; gap: 14px; margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 30px); }
.toc-t > a:first-child { text-decoration: none; color: var(--ink); }
.toc-t > a:first-child:hover { color: var(--accent); }
.toc-dots { flex: 1; border-bottom: 1px dotted #A9A397; transform: translateY(-6px); min-width: 30px; }
.toc-more { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.toc-s { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.9; }
.toc-s a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.toc-s a:hover { color: var(--accent); border-color: var(--accent); }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.rows a { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ink); }
.rows a b { font-family: var(--serif); font-weight: 700; font-size: 21px; }
.rows a span { color: var(--accent); }
.rows a:hover b { color: var(--accent); }
.rows p { margin: 4px 0 0; color: var(--muted); font-size: 15px; max-width: 760px; }

/* --- сетки ---------------------------------------------------- */
.two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.two--wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(23px, 2.4vw, 30px); margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose.legal h2 { font-size: 22px; }
.ic { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

.who { display: flex; gap: 16px; border-top: 3px double var(--ink); border-bottom: 1px solid var(--line); padding: 22px 0; }
.who h3 { margin-bottom: 6px; }
.who p { color: var(--muted); font-size: 15.5px; }
.when h2, .docs h2, .faq h2 { font-size: clamp(24px, 2.6vw, 32px); }
.docs { border: 1px solid var(--line); background: var(--card); padding: 26px; }
.docs h2 { font-size: 22px; }

.steps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.steps li { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps .num { font-family: var(--serif); font-size: 26px; color: var(--brass); flex: none; width: 48px; line-height: 1.1; }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

.pr { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 36px; margin-top: 28px; }
.pr-i { border-top: 1px solid var(--ink); padding: 22px 0; }
.pr-i .ic { margin-bottom: 12px; }
.pr-i p { color: var(--muted); font-size: 15.5px; margin: 0; }

.faq .items { max-width: 920px; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 52px 20px 0; font-family: var(--serif); font-size: 19px; color: var(--ink); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font-size: 26px; color: var(--accent); font-family: var(--sans); font-weight: 300; }
.faq details[open] summary::after { content: '–'; }
.faq .ans { padding: 0 0 8px; color: var(--muted); max-width: 820px; }

.cloud { margin-bottom: 28px; }
.cloud h3 { font-size: 18px; margin-bottom: 10px; }
.cloud p { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.cloud a { color: var(--text); font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--line); }
.cloud a:hover { color: var(--accent); border-color: var(--accent); }
.cloud a.more { font-family: var(--serif); font-style: italic; color: var(--muted); border: 0; }
section.links { padding: 56px 0; border-top: 1px solid var(--line); }

.arts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 36px; }
.art { display: block; border-top: 1px solid var(--ink); padding: 22px 0 28px; text-decoration: none; color: var(--text); }
.art:hover b { color: var(--accent); }
.art b { display: block; font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--ink); margin-bottom: 8px; line-height: 1.25; }
.art span { color: var(--muted); font-size: 15px; }
.side .cloud p { flex-direction: column; gap: 10px; }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.group h3 { border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.group ul { list-style: none; padding: 0; margin: 0; }
.group li { padding: 5px 0; font-size: 15.5px; }
.team { display: grid; gap: 24px; }
.tm { border-top: 3px double var(--ink); padding: 26px 0; }

/* --- заявка --------------------------------------------------- */
.band { background: var(--paper-2); border-top: 1px solid var(--line); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; align-items: start; }
.band h2 { margin-bottom: 18px; }
.band-tel a { color: var(--ink); font-family: var(--serif); font-size: 26px; text-decoration: none; }
.lf { background: var(--card); color: var(--text); border: 1px solid var(--line); padding: 28px; }
.lf h3 { margin-bottom: 4px; }
.f { display: block; margin-bottom: 14px; }
.f span { display: block; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.f input, .f select, .f textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--text); padding: 12px 14px; border: 1px solid var(--line); border-radius: 0; background: #fff; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--ink); }
.f.is-bad input, .f.is-bad select { border-color: var(--accent); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); margin: 4px 0 16px; }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.consent.is-bad { color: var(--accent); }
.lf .btn { width: 100%; }
.lf.is-sending .btn { opacity: .6; pointer-events: none; }
.lead-status { margin: 10px 0 0; font-size: 14.5px; min-height: 1px; }
.lead-status.is-ok { color: #2E6B47; }
.lead-status.is-err { color: var(--accent); }
.lf .note { font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.hp { position: absolute; left: -9999px; opacity: 0; }

.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(47, 30, 21, .6); display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; }
.modal-bg[hidden] { display: none; }
.modal { position: relative; background: var(--card); border-top: 3px solid var(--accent); max-width: 480px; width: 100%; padding: 32px 28px 26px; max-height: calc(100vh - 32px); overflow: auto; }
.modal h3 { font-size: 26px; }
.modal .lf { border: 0; padding: 0; }
.modal .msub { color: var(--muted); font-size: 15px; }
.mclose { position: absolute; right: 10px; top: 8px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; color: var(--muted); cursor: pointer; }

/* --- подвал --------------------------------------------------- */
.foot { background: var(--leather); color: #A8968A; padding: 60px 0 28px; font-size: 14.5px; }
.fcols { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.fh { color: #fff; font-family: var(--serif); font-size: 16px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.fcol a { display: block; color: #CDBFB3; text-decoration: none; padding: 3px 0; }
.fcol a:hover { color: #fff; }
.trust { display: flex; align-items: center; gap: 24px; justify-content: space-between; margin: 40px 0 22px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .15); border-bottom: 1px solid rgba(255, 255, 255, .15); color: #D9CCBF; font-family: var(--serif); font-style: italic; font-size: 16px; }
.trust-btn { flex: none; background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); border-radius: 2px; padding: 11px 18px; font: 500 13px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; text-decoration: none; font-style: normal; }
.trust-btn:hover { background: #fff; color: var(--ink); }
.frow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.frow a { color: #CDBFB3; }
.metanote { font-size: 12.5px; color: #8E7D70; margin-top: 14px; }

/* --- телефон и планшет ---------------------------------------- */
@media (max-width: 1000px) {
  .hero-grid, .two, .two--wide, .steps-grid, .band-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .fcols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .marks { grid-template-columns: repeat(2, 1fr); }
  .marks > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .wrap { padding: 0 16px; }
  .hrow { padding: 8px 16px; min-height: 64px; }
  .hero { padding: 36px 0 48px; }
  .marks { grid-template-columns: 1fr; }
  .fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { flex-direction: column; align-items: flex-start; }
  .heroctas .btn { width: 100%; }
  .lf { padding: 20px; }
  .logo-sub { display: none; }
  .logo-txt { border-left: 0; padding-left: 0; }
  .toc-i { grid-template-columns: 40px minmax(0, 1fr); }
  .toc-dots, .toc-more { display: none; }
  .toc-head { flex-direction: column; align-items: flex-start; }
  .aside-note { text-align: left; }
}

/* Знак параграфа водяным знаком на первом экране главной –
   своя деталь сайта вместо фотографий колонн и кабинетов. */
.hero--home { position: relative; overflow: hidden; }
.hero--home::after { content: '§'; position: absolute; right: -60px; top: -170px; font-family: var(--serif); font-size: 720px; line-height: 1; color: rgba(176, 141, 87, .1); pointer-events: none; }
.hero--home .wrap { position: relative; z-index: 1; }
@media (max-width: 1000px) { .hero--home::after { font-size: 420px; top: -90px; right: -60px; } }
section.ruled { border-top: 1px solid var(--line); }
.dline { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; }
.dline li { padding: 24px 0 8px; border-bottom: 1px solid var(--line); position: relative; }
.dline li:not(:last-child)::after { content: '→'; position: absolute; right: -28px; top: 22px; color: var(--brass); font-size: 22px; }
.dline .toc-n { display: block; margin-bottom: 6px; }
.dline p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .dline { grid-template-columns: minmax(0, 1fr); } .dline li::after { display: none; } }
.fcols { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 56px; }
.story-lead { font-family: var(--serif); font-size: clamp(21px, 2vw, 26px); line-height: 1.4; color: var(--ink); }
.story-t p:not(.story-lead) { color: var(--text); }
@media (max-width: 1000px) { .story { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
