/* ==========================================================================
   ООО «АудитГарант» — auditgarant16.ru

   Оформление: «ведомость». Сайт набран как официальный документ, а не как
   рекламная страница: бумажный фон, волосяные линейки, точечные выноски,
   номера разделов на полях, моноширинный шрифт на реквизитах и цифрах.

   Одна таблица стилей на весь сайт, сборщика нет.
   Правится руками: сначала переменные в :root, ниже — компоненты.
   ========================================================================== */

/* --- Шрифты (лежат в /assets/fonts, наружу не ходим) --------------------- */

/* Заголовки и крупные цифры */
@font-face {
  font-family: 'Source Serif 4';
  src: url('/assets/fonts/source-serif-4-cyrillic.woff2') format('woff2');
  font-weight: 200 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/assets/fonts/source-serif-4-latin.woff2') format('woff2');
  font-weight: 200 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2212;
}

/* Основной текст и интерфейс */
@font-face {
  font-family: 'Golos Text';
  src: url('/assets/fonts/golos-text-cyrillic.woff2') format('woff2');
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  src: url('/assets/fonts/golos-text-latin.woff2') format('woff2');
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2190-2193, U+2212, U+2215;
}

/* Подписи полей, реквизиты, номера — «машинописный» слой документа */
@font-face {
  font-family: 'Plex Mono';
  src: url('/assets/fonts/plex-mono-400-cyrillic.woff2') format('woff2');
  font-weight: 400; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/assets/fonts/plex-mono-400-latin.woff2') format('woff2');
  font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2212;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/assets/fonts/plex-mono-500-cyrillic.woff2') format('woff2');
  font-weight: 500; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/assets/fonts/plex-mono-500-latin.woff2') format('woff2');
  font-weight: 500; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2212;
}

/* --- Переменные ---------------------------------------------------------- */

:root {
  /* Бумага и чернила */
  --paper:     #f7f4ed;
  --paper-2:   #efeade;   /* подложка: паспарту под сканами, врезки */
  --paper-3:   #e7e1d2;
  --ink:       #14161a;
  --ink-2:     #4e545b;
  --ink-3:     #8a8f95;
  --rule:      #d8d2c4;   /* волосяная линейка */
  --rule-2:    #bdb5a2;   /* линейка потемнее и точечные выноски */

  /* Единственный цвет. Тёмно-зелёный: печатная краска, не «корпоративный синий» */
  --green:      #1c4034;
  --green-2:    #122c23;
  --green-soft: #e4ebe5;

  /* Резкий акцент. Только на отметке о членстве в СРО — один раз на сайт */
  --seal:      #97462f;

  /* Шрифты */
  --serif: 'Source Serif 4', 'Times New Roman', Georgia, serif;
  --sans:  'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono:  'Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Кегли */
  --t-micro: 0.72rem;
  --t-small: clamp(0.82rem, 0.79rem + 0.14vw, 0.89rem);
  --t-body:  clamp(1rem, 0.97rem + 0.18vw, 1.06rem);
  --t-lede:  clamp(1.12rem, 1.05rem + 0.35vw, 1.3rem);
  --t-h3:    clamp(1.06rem, 1.01rem + 0.24vw, 1.2rem);
  --t-h2:    clamp(1.5rem, 1.3rem + 1vw, 2.15rem);
  --t-h1:    clamp(2.2rem, 1.65rem + 2.6vw, 3.9rem);

  /* Размеры */
  --wrap: 1180px;
  --measure: 68ch;
  --rail: 8.5rem;          /* поле с номером раздела */
  --gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  --section: clamp(3rem, 2rem + 4.5vw, 5.5rem);

  --ease: cubic-bezier(.2,.7,.3,1);
}

/* --- Сброс и база -------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  /* Едва различимая фактура бумаги: две сетки под углом, почти прозрачные */
  background-image:
    repeating-linear-gradient(90deg, rgba(28,64,52,.013) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(0deg,  rgba(28,64,52,.013) 0 1px, transparent 1px 5px);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .55em;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
  /* «конфиденциальности» и подобные длинные слова не должны рвать вёрстку */
  overflow-wrap: break-word;
  hyphens: auto;
}
h1 { font-size: var(--t-h1); letter-spacing: -0.022em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
h4 { font-size: var(--t-body); font-family: var(--sans); font-weight: 600; }

p, ul, ol, table, figure, dl { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .45em; }
li::marker { color: var(--green); }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--rule-2); }
a:hover { text-decoration-color: var(--green); }

strong { font-weight: 600; }

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

::selection { background: var(--green-soft); }

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

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
@media (max-width: 520px) { .wrap { width: min(100% - 1.75rem, var(--wrap)); } }

.measure { max-width: var(--measure); }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--green); color: #fff; padding: .7rem 1.1rem;
  text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 1rem; }

/* Машинописная подпись поля */
.label {
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 400;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: var(--t-small); color: var(--ink-2); }

/* Двойная линейка — основной разделитель документа */
.rule-double {
  border: 0; height: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule-2);
  padding-top: 3px;
  margin: 1.75rem 0;
}

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

/* Зелёная лента с контактами */
.ribbon {
  background: var(--green-2);
  color: #b9c9bf;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: .04em;
}
.ribbon .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .25rem 1.5rem;
  min-height: 2.35rem; padding-block: .3rem;
}
.ribbon a { color: #f2efe6; text-decoration: none; }
.ribbon a:hover { text-decoration: underline; text-decoration-color: var(--seal); }
.ribbon__contacts { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; }

/* Титул: между лентой и логотипом должен быть воздух, иначе они сливаются */
.masthead { padding-block: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); }
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem 2rem; flex-wrap: wrap;
}

.brand { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; }
/* Знак «Литера»: «А» и «Г», перекладина «А» — галочка сверки. При загрузке галочка
   прочерчивается, прорезая «А» маской, и толкает «Г». При наведении — ещё раз:
   перезапуск делает main.js на mouseenter, чтобы уход мыши ничего не перезапускал. */
.brand__mark { flex: none; display: block; width: 3.6rem; height: 3.6rem; }
.brand__mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lit path { fill: none; stroke-linejoin: miter; stroke-linecap: butt; }
.lit .a, .lit .g { stroke: var(--ink); stroke-width: 4; }
.lit .cut { stroke: #000; stroke-width: 9; stroke-dasharray: 1; animation: lit-draw .8s var(--ease) .35s both; }
.lit .tick { stroke: var(--green); stroke-width: 4; stroke-dasharray: 1; animation: lit-draw .8s var(--ease) .35s both; }
.lit .g { animation: lit-nudge 1.2s var(--ease) .35s both; }
@keyframes lit-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lit-nudge { 0%, 62% { transform: none; } 78% { transform: translateX(2px); } 100% { transform: none; } }
@media (max-width: 520px) { .brand__mark { width: 3.1rem; height: 3.1rem; } }
.brand__name {
  display: block;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.15rem, 1.05rem + .4vw, 1.45rem);
  line-height: 1.15; letter-spacing: -0.015em;
}
.brand__sub {
  display: block; margin-top: .3rem;
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .05em; color: var(--ink-2);
}

.masthead__meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: .1rem;
  font-family: var(--mono); font-size: var(--t-small);
}
.masthead__meta a { color: var(--ink); text-decoration: none; }
.masthead__meta a:hover { color: var(--green); text-decoration: underline; }
.masthead__meta .label { display: block; }
@media (max-width: 720px) { .masthead__meta { display: none; } }

/* Навигация — отдельная строка, липнет к верху при прокрутке */
.mainnav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px) saturate(1.4);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.mainnav .wrap { display: flex; align-items: stretch; gap: 0; }
.mainnav a {
  position: relative;
  display: flex; align-items: center;
  padding: .85rem .85rem;
  font-size: .9rem; line-height: 1.2;
  color: var(--ink); text-decoration: none;
  white-space: nowrap;
}
.mainnav a:first-child { padding-left: 0; }
.mainnav a::before {
  content: ''; position: absolute; left: .85rem; right: .85rem; bottom: -1px;
  height: 1px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform .22s;
}
.mainnav a:first-child::before { left: 0; }
.mainnav a:hover { color: var(--green); }
.mainnav a:hover::before { transform: scaleX(1); }
.mainnav a[aria-current='page'] { font-weight: 600; color: var(--green); }
.mainnav a[aria-current='page']::after {
  content: ''; position: absolute; left: .85rem; right: .85rem; bottom: -1px;
  height: 2px; background: var(--green);
}
.mainnav a:first-child[aria-current='page']::after { left: 0; }

.nav-toggle {
  display: none; align-items: center; gap: .6rem;
  background: none; border: 1px solid var(--ink); border-radius: 0;
  padding: .6rem .9rem; cursor: pointer;
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.nav-toggle__bars { display: block; width: 17px; height: 1px; background: var(--ink); position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ''; position: absolute; left: 0; width: 17px; height: 1px; background: var(--ink);
  transition: transform .18s, top .18s;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after  { top: 5px; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .mainnav { border-top: 0; }
  .mainnav .wrap { position: relative; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--ink);
    box-shadow: 0 20px 40px -30px rgba(20,22,26,.6);
    z-index: 30;
  }
  .nav[data-open='true'] { display: flex; }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current='page']::after { left: 0; right: auto; width: 1.75rem; bottom: .55rem; }
}
@media (min-width: 1081px) {
  .nav { display: flex; align-items: stretch; }
  .nav-toggle { display: none; }
}
/* С пунктом «Новости» в меню девять разделов: на средних ширинах
   ужимаем отступы, иначе последний пункт уезжает за край. */
@media (min-width: 1081px) and (max-width: 1260px) {
  .mainnav a { padding-inline: .55rem; font-size: .86rem; }
  .mainnav a::before, .mainnav a[aria-current='page']::after { left: .55rem; right: .55rem; }
  .mainnav a:first-child::before, .mainnav a:first-child[aria-current='page']::after { left: 0; }
}
.mainnav__current {
  display: none;
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2);
  align-self: center;
}
@media (max-width: 1080px) {
  .mainnav .wrap { justify-content: space-between; align-items: center; padding-block: .5rem; gap: 1rem; }
  .mainnav__current { display: block; text-align: right; }
}

/* Полоса прочитанного: тонкая линия под липкой навигацией.
   Ширину ставит main.js; без JS полосы просто нет. */
.progress {
  position: absolute; left: 0; bottom: -1px; height: 2px;
  background: var(--green); width: 0; transition: width .1s linear;
}

/* --- Разделы ------------------------------------------------------------- */

.sheet { --pt: var(--section); --pb: var(--section); padding-block: var(--pt) var(--pb); border-top: 1px solid var(--rule); }
.sheet:first-child { border-top: 0; }
.sheet--tight { --pt: calc(var(--section) * .6); --pb: calc(var(--section) * .6); }
.sheet--mat { background: rgba(231,225,210,.5); }
/* Без этого широкая таблица внутри раздела раздувает колонку,
   и страница едет по горизонтали вместо того, чтобы таблица прокручивалась. */
.sheet__grid > *, .hero__grid > *, .cards > * { min-width: 0; }

/* Раздел: текст на всю ширину колонки и строго по центру, а название раздела —
   мелко и вертикально вдоль пунктирной линии отреза на левом поле. Линия идёт
   от границы до границы раздела, подпись липнет при прокрутке. */
.sheet__grid { position: relative; }
.sheet__rail { position: absolute; top: calc(-1 * var(--pt)); bottom: calc(-1 * var(--pb)); left: -62px; width: 30px; }
.sheet__rail:empty { display: none; }
.sheet__rail::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; border-right: 1px dashed var(--rule-2); }
.sheet__rail > * { position: sticky; top: 5.5rem; margin-top: var(--pt); display: flex; flex-direction: column; align-items: center; gap: .9rem; padding-right: 6px; }
.sheet__mark { display: block; flex: none; width: 8px; height: 8px; border: 1px solid var(--green); transform: rotate(45deg); }
.sheet__label { display: block; writing-mode: vertical-rl; font-size: 10.5px; letter-spacing: .16em; white-space: nowrap; }
/* Поля слева от колонки не хватает — линия заходит внутрь колонки */
@media (max-width: 1320px) {
  .sheet__grid { padding-left: 52px; }
  .sheet__grid:has(> .sheet__rail:empty) { padding-left: 0; }
  .sheet__rail { left: 0; }
}
/* Телефон и планшет: название обычной строкой над разделом */
@media (max-width: 860px) {
  .sheet__grid { padding-left: 0; }
  .sheet__rail { position: static; width: auto; margin-bottom: 1.25rem; }
  .sheet__rail::after { display: none; }
  .sheet__rail > * { position: static; margin-top: 0; flex-direction: row; gap: .75rem; padding-right: 0; }
  .sheet__label { writing-mode: horizontal-tb; font-size: var(--t-micro); letter-spacing: .07em; }
}

/* Раздел с оглавлением: слева не подпись, а оглавление — колонка остаётся как была.
   На узком поле (8.5rem) пункты вроде «Международная сеть» наезжали на текст — отсюда 15rem. */
.sheet--index { --rail: 15rem; }
.sheet--index .sheet__grid { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: var(--gap); padding-left: 0; }
.sheet--index .sheet__rail { position: relative; top: auto; bottom: auto; left: auto; width: auto; margin: 0; text-align: left; border-right: 1px solid var(--rule); padding-right: var(--gap); }
.sheet--index .sheet__rail::after { display: none; }
.sheet--index .sheet__rail > * { display: block; position: sticky; top: 5rem; margin-top: 0; padding-right: 0; }
.sheet--index .sheet__mark { margin-bottom: 1.1rem; }
.sheet--index .sheet__label { writing-mode: horizontal-tb; font-size: var(--t-micro); letter-spacing: .07em; }
@media (max-width: 1023px) {
  .sheet--index .sheet__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .sheet--index .sheet__rail { border-right: 0; padding-right: 0; }
  .sheet--index .sheet__rail > * { position: static !important; }
  .sheet--index .toc ol { columns: 2; column-gap: 1.75rem; }
}
@media (max-width: 480px) { .sheet--index .toc ol { columns: 1; } }

/* --- Ведомость: подпись поля, точечная выноска, значение ----------------- */

.ledger { margin: 0 0 1.15em; }
.ledger > div {
  display: grid;
  grid-template-columns: minmax(9rem, 17rem) 1fr auto;
  align-items: baseline; gap: .5rem;
  padding-block: .8rem;
  border-bottom: 1px solid var(--rule);
}
.ledger > div:first-child { border-top: 1px solid var(--rule-2); }
.ledger > div { transition: background-color .18s; }
.ledger > div:hover { background: rgba(255,255,255,.5); }
.ledger > div:hover .leader { border-bottom-color: var(--green); }
.ledger > div:hover dt { color: var(--green); }
.ledger dt { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin: 0; }
.ledger .leader { border-bottom: 1px dotted var(--rule-2); transform: translateY(-.28em); min-width: 1.5rem; }
.ledger dd { margin: 0; text-align: right; font-size: var(--t-small); }
.ledger dd .num { font-size: 1.02em; font-weight: 500; letter-spacing: -0.01em; }
@media (max-width: 700px) {
  .ledger > div { grid-template-columns: 1fr; gap: .2rem; }
  .ledger .leader { display: none; }
  .ledger dd { text-align: left; }
}

/* --- Карточки ------------------------------------------------------------ */

.cards { display: grid; gap: 1px; }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); }
.card {
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule);
  padding: clamp(1.25rem, 1rem + 1vw, 1.85rem);
  display: flex; flex-direction: column; gap: .55rem;
  transition: background-color .2s;
}
.card:hover { background: #fbf9f4; }

.card__index {
  font-family: var(--serif); font-size: 1.5rem; line-height: 1;
  color: var(--green); font-variant-numeric: lining-nums;
}
.card__title { font-family: var(--sans); font-weight: 600; font-size: var(--t-h3); line-height: 1.3; margin: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: var(--t-small); }
.card__value {
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(1.15rem, 1.05rem + .5vw, 1.45rem);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
  color: var(--green);
  overflow-wrap: anywhere;
}
/* Расчётный и корреспондентский счёт — двадцать знаков, в общий кегль не лезут */
.card__value--acct { font-size: clamp(.95rem, .88rem + .3vw, 1.08rem); letter-spacing: 0; }

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

.people { display: grid; gap: 1px;
          grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); list-style: none; padding: 0; margin: 0; }
.people > li { background: var(--paper); box-shadow: 0 0 0 1px var(--rule); padding: clamp(1.25rem, 1rem + 1vw, 1.85rem); margin: 0; }
.person__name { font-family: var(--serif); font-size: var(--t-h3); font-weight: 600; line-height: 1.2; margin-bottom: .35rem; }
.person__role { margin-bottom: 1.1rem; }
.person__orn { font-family: var(--mono); font-weight: 500; font-size: 1.3rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--green); display: block; }

/* --- Инфографика по выручке --------------------------------------------- */

.bars { display: grid; gap: 0; margin: 0 0 1.15em; }
.bars__row { display: grid; grid-template-columns: 4.5rem 1fr auto; align-items: center; gap: 1rem; padding-block: .85rem; border-bottom: 1px solid var(--rule); }
.bars__row:first-child { border-top: 1px solid var(--rule-2); }
.bars__year { font-family: var(--serif); font-size: 1.2rem; font-variant-numeric: lining-nums; }
.bars__track { height: 1.6rem; background: var(--paper-3); position: relative; overflow: hidden; }
.bars__fill { position: absolute; inset: 0 auto 0 0; background: var(--green); width: var(--w); transform-origin: left; animation: bar-in .9s cubic-bezier(.2,.7,.3,1) both; }
.bars__value { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; font-size: var(--t-small); white-space: nowrap; }
@keyframes bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 600px) {
  .bars__row { grid-template-columns: 3.5rem 1fr; grid-template-areas: 'year value' 'track track'; gap: .5rem 1rem; }
  .bars__year { grid-area: year; }
  .bars__value { grid-area: value; text-align: right; }
  .bars__track { grid-area: track; }
}

/* --- Таблицы ------------------------------------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); }
table { width: 100%; border-collapse: collapse; font-size: var(--t-small); margin: 0; background: var(--paper); }
caption { text-align: left; padding: .9rem 1.1rem .2rem; font-weight: 600; }
th, td { padding: .8rem 1.1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
thead th {
  background: var(--paper-2);
  font-family: var(--mono); font-weight: 400; font-size: var(--t-micro);
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --- Документы (сканы) --------------------------------------------------- */

.docs { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr));
        list-style: none; padding: 0; margin: 0; }
.docs > li { margin: 0; }
.doc { display: block; text-decoration: none; color: inherit; }
.doc__frame {
  display: block; background: var(--paper-2); padding: .85rem;
  border: 1px solid var(--rule-2);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.doc:hover .doc__frame { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(20,22,26,.55); }
.doc__frame img { width: 100%; box-shadow: 0 8px 22px -18px rgba(0,0,0,.7); }
.doc__note { display: block; margin-top: .7rem; }

/* Просмотр скана во весь экран */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center;
  background: rgba(18,44,35,.94); padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[data-open='true'] { display: grid; animation: fade .22s ease both; }
.lightbox[data-open='true'] img { animation: pop .28s cubic-bezier(.2,.7,.3,1) both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lightbox img { max-width: 100%; max-height: 86vh; width: auto; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center; background: rgba(255,255,255,.12);
  color: #fff; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,.24); }
.lightbox__caption {
  position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center;
  color: #c3d3c9; font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .05em; padding-inline: 1rem;
}

/* --- Правовой текст (цитаты закона, политика, раскрытие) ---------------- */

.legal { max-width: var(--measure); }
.legal h3 { margin-top: 2em; color: var(--green); }
.legal ol { counter-reset: item; list-style: none; padding-left: 0; }
.legal ol > li { counter-increment: item; position: relative; padding-left: 2.4rem; }
.legal ol > li::before {
  content: counter(item) ')';
  position: absolute; left: 0; top: 0;
  font-family: var(--mono); font-size: var(--t-small); color: var(--green);
}

.clause { scroll-margin-top: 5rem; }
.clause + .clause { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); border-top: 1px solid var(--rule); }
.clause__head { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1rem; align-items: start; margin-bottom: 1.25rem; }
.clause__n { font-family: var(--serif); font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); line-height: 1; color: var(--green); font-variant-numeric: lining-nums; }
.clause__title { font-family: var(--sans); font-size: var(--t-body); font-weight: 600; line-height: 1.45; margin: 0; letter-spacing: 0; }
.clause__body { padding-left: 4.25rem; }
@media (max-width: 700px) {
  .clause__head { grid-template-columns: 2.25rem minmax(0, 1fr); gap: .75rem; }
  .clause__body { padding-left: 0; }
}

/* Оглавление раскрытия */
.toc { font-size: var(--t-small); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: .55rem; display: grid; grid-template-columns: 1.6rem 1fr; }
.toc li::before { content: counter(toc) '.'; font-family: var(--mono); color: var(--ink-3); }
.toc a { color: var(--ink); text-decoration: none; transition: color .18s; }
.toc a:hover { color: var(--green); }
/* Пункт, до которого долистали, отмечается как в оглавлении с закладкой */
.toc a[data-active] { color: var(--green); font-weight: 600; }
.toc a[data-active]::before {
  content: ''; position: absolute; left: -1.1rem; top: .55em;
  width: .5rem; height: 1px; background: var(--green);
}
.toc li { position: relative; }

/* --- Карта --------------------------------------------------------------- */

.map { border: 1px solid var(--rule-2); background: var(--paper-2); line-height: 0; }
.map iframe { width: 100%; height: clamp(300px, 42vw, 460px); border: 0; display: block; }

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

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem; border: 1px solid var(--green); border-radius: 0;
  font-family: var(--sans); font-size: .95rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; background: var(--green); color: #fff;
  transition: background-color .18s, color .18s;
}
.btn:hover { background: var(--green-2); border-color: var(--green-2); }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

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

.site-footer {
  margin-top: auto;
  background: var(--green-2); color: #a6b9ad;
  font-size: var(--t-small);
  padding-block: clamp(2.5rem, 2rem + 2.5vw, 3.75rem) 2rem;
}
.site-footer a { color: #edf1ec; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--seal); }
.site-footer h2 {
  font-family: var(--mono); font-size: var(--t-micro); font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase; color: #6f8878; margin-bottom: 1rem;
}
.footer__grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.footer__brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: #fff; margin-bottom: .6rem; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer__grid li { margin: 0; }
.footer__req { font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .03em; }
.footer__bottom {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .04em; color: #6f8878;
}

/* --- Появление блоков --------------------------------------------------- */

/* Класс .reveal проставляет main.js, поэтому без JS страница видна целиком. */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .65s cubic-bezier(.2,.7,.3,1), transform .65s cubic-bezier(.2,.7,.3,1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.is-in .reveal { opacity: 1; transform: none; }

/* Двойная линейка прочерчивается слева направо */
.reveal.rule-double { transform: none; opacity: 1; clip-path: inset(0 100% 0 0); transition: clip-path .8s cubic-bezier(.2,.7,.3,1); }
.is-in .reveal.rule-double { clip-path: inset(0 0 0 0); }

/* Полосы выручки растут, когда до них долистали */
.bars__fill { animation: none; transform: scaleX(0); transition: transform .9s cubic-bezier(.2,.7,.3,1); transition-delay: calc(var(--i, 0) * 90ms); }
.is-in .bars__fill { transform: scaleX(1); }

/* Галочка сверки на карточках услуг прочерчивается */
.tick { width: 1.15rem; height: 1.15rem; overflow: visible; color: var(--green); }
.tick path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: square; stroke-linejoin: miter;
             stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset .55s ease .15s; }
.is-in .tick path { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.rule-double { opacity: 1; transform: none; clip-path: none; }
  .bars__fill { transform: scaleX(1); }
  .tick path { stroke-dashoffset: 0; }
}

/* --- Новости ------------------------------------------------------------- */
/* Страницы /novosti/ собирает сервис новостей (news/ в репозитории), шапка
   и подвал у них те же, что у статических страниц. */

.news-tabs {
  display: flex; flex-wrap: wrap; gap: .3rem 1.6rem;
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .07em; text-transform: uppercase;
}
.news-tabs a {
  color: var(--ink-2); text-decoration: none;
  padding-block: .3rem; border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}
.news-tabs a:hover { color: var(--green); border-bottom-color: var(--rule-2); }
.news-tabs a[aria-current='page'] { color: var(--green); border-bottom: 2px solid var(--green); }

.news-list { list-style: none; padding: 0; margin: 0 0 2.25rem; border-top: 1px solid var(--rule-2); }
.news-item {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.5rem;
  margin: 0; padding-block: 1.35rem; border-bottom: 1px solid var(--rule);
  transition: background-color .18s;
}
.news-item:hover { background: rgba(255,255,255,.45); }
.news-item__date {
  padding-top: .3rem;
  font-family: var(--mono); font-size: var(--t-small);
  font-variant-numeric: tabular-nums; color: var(--ink-2);
}
.news-item__cat { display: inline-block; margin-bottom: .3rem; color: var(--green); text-decoration: none; }
.news-item__cat:hover { text-decoration: underline; }
.news-item__title {
  margin: 0 0 .4rem;
  font-size: clamp(1.1rem, 1.02rem + .4vw, 1.35rem); line-height: 1.3; letter-spacing: -.005em;
  hyphens: manual;
}
.news-item__title a { color: var(--ink); text-decoration: none; }
.news-item__title a:hover { color: var(--green); text-decoration: underline; text-decoration-color: var(--rule-2); }
.news-item__excerpt { margin: 0; max-width: var(--measure); font-size: var(--t-small); color: var(--ink-2); }
@media (max-width: 640px) {
  .news-item { grid-template-columns: 1fr; gap: .3rem; }
  .news-item__date { padding-top: 0; }
}

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-family: var(--mono); font-size: var(--t-small); }
.pager a, .pager span {
  display: inline-grid; place-items: center; min-width: 2.4rem; height: 2.4rem; padding: 0 .6rem;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink); text-decoration: none;
}
.pager a:hover { border-color: var(--green); color: var(--green); }
.pager [aria-current='page'] { background: var(--green); border-color: var(--green); color: #fff; }
.pager .pager__gap { border-color: transparent; background: none; min-width: 1.2rem; padding: 0; }
.pager .pager__step { padding-inline: .9rem; }

.news-crumbs { margin: 0 0 1.1rem; }
.news-crumbs a { color: var(--ink-3); text-decoration: none; }
.news-crumbs a:hover { color: var(--green); }
.news-title { font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.7rem); max-width: 34ch; hyphens: manual; }
.news-meta { margin: 0; font-family: var(--mono); font-size: var(--t-small); color: var(--ink-2); }

/* Текст новости: только то, что пропускает белый список сервиса */
.article { max-width: var(--measure); }
.article > :first-child { margin-top: 0; }
.article h2 { font-size: clamp(1.25rem, 1.15rem + .5vw, 1.55rem); margin-top: 1.9em; }
.article h3 { margin-top: 1.7em; color: var(--green); }
.article blockquote {
  margin: 1.6em 0; padding: .15em 0 .15em 1.4rem;
  border-left: 2px solid var(--green); color: var(--ink-2);
}
.article blockquote > :last-child { margin-bottom: 0; }
.article table { display: block; overflow-x: auto; max-width: 100%; border: 1px solid var(--rule); }
.article a { overflow-wrap: anywhere; }
.article__source {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem;
  max-width: var(--measure); margin: 2.25rem 0 2rem; padding-top: 1rem;
  border-top: 1px solid var(--rule); font-size: var(--t-small);
}

/* Блок на главной: по три последние новости каждой рубрики, колонками */
.home-news__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .5rem 1.5rem; margin-bottom: 1.75rem;
}
.home-news__head h2 { margin: 0; }
.home-news__all, .news-col__more {
  font-family: var(--mono); font-size: var(--t-micro);
  letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
}
.home-news__all:hover, .news-col__more:hover { text-decoration: underline; }
.news-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: var(--gap); }
.news-col { display: flex; flex-direction: column; min-width: 0; }
.news-col__cat {
  display: block; padding-bottom: .65rem; border-bottom: 2px solid var(--ink);
  font-family: var(--mono); font-size: var(--t-micro); font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase; color: var(--green); text-decoration: none;
}
.news-col__cat:hover { text-decoration: underline; }
.news-list--compact { border-top: 0; margin-bottom: 1.1rem; }
.news-list--compact .news-item { grid-template-columns: 1fr; gap: .3rem; padding-block: 1rem; }
.news-list--compact .news-item__date { padding-top: 0; font-size: var(--t-micro); }
.news-list--compact .news-item__title { margin: 0; font-size: clamp(1rem, .96rem + .2vw, 1.1rem); line-height: 1.35; }
.news-col__more { margin-top: auto; align-self: flex-start; }

/* Полоса предпросмотра черновика из админки */
.preview-bar {
  background: var(--paper-3); border-bottom: 1px solid var(--rule-2);
  padding-block: .6rem; font-family: var(--mono); font-size: var(--t-micro); letter-spacing: .04em;
}

/* --- Главная ------------------------------------------------------------- */
/* Классы главной живут только здесь. Имена, занятые на других страницах
   (.ledger, .docs, .tick, .card__title, .map), сюда намеренно не берём. */

/* Первый экран: тёмный лист с гильошем, как бланк строгой отчётности */
.hero { --mx: 0; --my: 0; position: relative; overflow: hidden; isolation: isolate; background: var(--green-2); color: #f2efe6; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    repeating-linear-gradient(0deg, rgba(242,239,230,.035) 0 1px, transparent 1px 34px),
    radial-gradient(120% 80% at 78% 40%, rgba(28,64,52,.95), rgba(18,44,35,1) 70%);
}
.guilloche {
  position: absolute; z-index: -1; right: -180px; top: 50%; width: 900px; height: 900px; margin-top: -450px; pointer-events: none;
  translate: calc(var(--mx) * -18px) calc(var(--my) * -18px); transition: translate .6s var(--ease);
}
.guilloche svg, .rose svg { display: block; width: 100%; height: 100%; animation: h-spin 180s linear infinite; }
.guilloche path { fill: none; stroke-width: .7; }
@keyframes h-spin { to { transform: rotate(360deg); } }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: center; min-height: 740px; padding-block: 90px 120px; }
.hero__kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 30px; color: #8fb09f; animation: h-fade .9s var(--ease) .1s both; }
.hero__kicker .label { color: inherit; }
.hero__kicker::after { content: ''; width: 120px; height: 1px; background: rgba(242,239,230,.25); }
.hero h1 { margin: 0; font-size: clamp(44px, 5.4vw, 84px); line-height: .98; letter-spacing: -0.03em; font-weight: 600; color: #f7f4ed; hyphens: manual; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .ln span { display: inline-block; animation: h-rise 1.1s var(--ease) both; }
.hero h1 .ln:nth-child(2) span { animation-delay: .14s; }
.hero h1 .ln:nth-child(1) span { color: #8fb09f; font-weight: 400; }
.hero__rule { border: 0; height: 0; border-top: 2px solid #f2efe6; border-bottom: 1px solid rgba(242,239,230,.35); padding-top: 3px; margin: 34px 0 30px; width: 100%; animation: h-draw 1.2s var(--ease) .45s both; }
.hero__lede { max-width: 38em; margin: 0; font-size: 18.5px; line-height: 1.62; color: #b9c9bf; animation: h-fade 1s var(--ease) .7s both; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; animation: h-fade 1s var(--ease) .9s both; }
@keyframes h-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes h-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes h-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.btn svg { width: 18px; height: 18px; flex: none; }
.hero .btn, .find__info > .btn { gap: 12px; padding: 16px 24px; font-size: 16px; transition: background-color .2s, color .2s, border-color .2s, gap .2s; }
.find__info > .btn:hover { gap: 16px; }
.btn--paper { background: #f7f4ed; border-color: #f7f4ed; color: var(--green-2); }
.btn--paper:hover { background: #fff; border-color: #fff; color: var(--green-2); gap: 16px; }
.btn--line { background: transparent; border-color: rgba(242,239,230,.35); color: #f2efe6; }
.btn--line:hover { background: transparent; border-color: #f2efe6; color: #fff; gap: 16px; }

/* Лист «Карта организации»: строки сверяются по очереди, потом ставится печать СРО.
   Параллакс — через translate, анимация появления — через transform: друг другу не мешают */
.desk {
  position: relative; justify-self: center; width: min(100%, 450px);
  translate: calc(var(--mx) * 10px) calc(var(--my) * 10px); transition: translate .6s var(--ease);
  animation: h-land 1.2s var(--ease) .25s both;
}
@keyframes h-land { from { opacity: 0; transform: translateY(40px) rotate(4deg); } to { opacity: 1; transform: none; } }
.desk::before, .desk::after { content: ''; position: absolute; inset: 0; background: var(--paper-3); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.desk::before { transform: rotate(4.5deg) translate(14px, 6px); background: #d9d2c0; }
.desk::after { transform: rotate(1.8deg) translate(6px, 2px); }
.docsheet { position: relative; z-index: 1; background: var(--paper); color: var(--ink); padding: 34px 36px 44px; transform: rotate(-2.2deg); box-shadow: 0 50px 90px -40px rgba(0,0,0,.75); cursor: pointer; transition: transform .5s var(--ease); }
.docsheet:hover { transform: rotate(0deg) translateY(-6px); }
.docsheet__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.docsheet__title { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.2; }
.docsheet__rule { border: 0; height: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule-2); padding-top: 3px; margin: 14px 0 6px; }
.docsheet__list { margin: 0; }
.ds-row { display: grid; grid-template-columns: 70px 1fr auto 22px; align-items: baseline; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--rule); line-height: 1.4; }
.ds-row dt { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .07em; color: var(--ink-3); }
.ds-lead { border-bottom: 1px dotted var(--rule-2); transform: translateY(-4px); }
.ds-row dd { margin: 0; font-family: var(--mono); font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.ds-tick { width: 18px; height: 18px; color: var(--green); align-self: center; }
.ds-tick path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-dasharray: 26; stroke-dashoffset: 0; }
.docsheet.is-run .ds-row > * { animation: h-rowin .6s var(--ease) both; animation-delay: calc(.9s + var(--i) * .26s); }
.docsheet.is-run .ds-tick path { animation: h-tick .45s ease both; animation-delay: calc(1.25s + var(--i) * .26s); }
@keyframes h-rowin { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes h-tick { from { stroke-dashoffset: 26; } to { stroke-dashoffset: 0; } }
.docsheet__foot { margin: 20px 0 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }
.stamp { position: absolute; z-index: 2; right: -58px; bottom: -64px; width: 196px; height: 196px; pointer-events: none; opacity: .93; mix-blend-mode: multiply; transform: rotate(-11deg); }
.docsheet.is-run .stamp { animation: h-stamp .55s cubic-bezier(.3,1.6,.5,1) 2.55s both; }
@keyframes h-stamp { 0% { opacity: 0; transform: scale(1.9) rotate(-26deg); } 60% { opacity: .95; transform: scale(.94) rotate(-9deg); } 100% { opacity: .93; transform: scale(1) rotate(-11deg); } }

/* Перфорация — край отрывного бланка */
.perf { height: 14px; background: radial-gradient(circle at 7px 0, var(--paper-2) 5px, transparent 5.5px) 0 0 / 14px 14px repeat-x, var(--green-2); }

/* Бегущая строка реквизитов */
.ticker { background: var(--paper-2); border-bottom: 1px solid var(--rule); overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: h-marquee 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__set { display: flex; align-items: center; gap: 34px; padding: 18px 17px; font-family: var(--mono); font-size: 13.5px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.ticker__set b { font-weight: 500; color: var(--ink); }
.ticker__mark { display: block; width: 8px; height: 8px; border: 1px solid var(--green); transform: rotate(45deg); }
@keyframes h-marquee { to { transform: translateX(-50%); } }

/* Гильош-водяной знак для тёмной плитки и фона раздела */
.rose { position: absolute; z-index: 0; pointer-events: none; }
.rose svg { animation-duration: 120s; }
.rose path { fill: none; stroke-width: 1.1; }

/* О компании и сведения об организации — один экран.
   overflow: clip, а не hidden: hidden ломает липкую подпись раздела */
.sheet.org { --pt: 48px; --pb: 52px; position: relative; overflow: hidden; overflow: clip; border-top: 0; }
.org > .rose { width: 760px; height: 760px; left: -300px; top: -220px; }
.org > .rose svg { animation-direction: reverse; animation-duration: 260s; }
.org > .rose path { stroke: rgba(28,64,52,.06); }
.org > .wrap { position: relative; z-index: 1; }
.org__top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px 40px; align-items: start; }
.about__big { margin: 0; font-family: var(--serif); font-size: clamp(18px, 1.55vw, 23px); line-height: 1.42; letter-spacing: -0.005em; color: var(--ink-2); text-wrap: pretty; }
.about__big .in { color: var(--ink); font-weight: 600; }
.hl { background-image: linear-gradient(var(--green-soft), var(--green-soft)); background-repeat: no-repeat; background-position: 0 90%; background-size: 100% 40%; }
.about__rule { border: 0; height: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule-2); padding-top: 3px; margin: 24px 0 0; width: 140px; }

/* Удостоверение: ОРНЗ, ОКВЭД и оба подтверждения — тёмная плитка с гильошем и метками реза */
.cert { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 12px; padding: 22px 26px 6px; background: var(--green-2); color: #f2efe6; box-shadow: 0 30px 50px -40px rgba(18,44,35,.9); }
.cert > .rose { width: 520px; height: 520px; right: -200px; top: -190px; z-index: -1; }
.cert > .rose path { stroke: rgba(143,176,159,.2); }
.cert:hover > .rose svg { animation-duration: 18s; }
.cert::before, .cert::after { content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none; }
.cert::before { top: 10px; left: 10px; border-top: 1px solid rgba(242,239,230,.45); border-left: 1px solid rgba(242,239,230,.45); }
.cert::after { bottom: 10px; right: 10px; border-bottom: 1px solid rgba(242,239,230,.45); border-right: 1px solid rgba(242,239,230,.45); }
.cert .label { color: #8fb09f; }
.cert__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.cert__okved { display: inline-flex; align-items: center; gap: 10px; }
.cert__list { border-top: 1px solid rgba(242,239,230,.18); }
.cert__item { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 9px 0; }
.cert__item + .cert__item { border-top: 1px solid rgba(242,239,230,.18); }
.cert__item > svg { width: 22px; height: 22px; margin-top: 2px; color: #8fb09f; }
.cert__item p { margin: 0; font-size: 15px; line-height: 1.45; color: #f2efe6; }
.cert__item a { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: #8fb09f; text-decoration: none; transition: gap .2s, color .2s; }
.cert__item a:hover { gap: 13px; color: #fff; }

/* Цифры прокручиваются, как в счётчике: у каждой цифры лента 0–9 дважды.
   Без JS и при выключенном движении ленты сразу стоят на своей цифре */
.odo { display: flex; font-family: var(--mono); font-weight: 500; line-height: 1; letter-spacing: 0; }
.odo--xl { font-size: clamp(32px, 3.4vw, 52px); color: #f7f4ed; }
.odo--sm { font-size: 19px; color: #f7f4ed; }
.odo .w { display: inline-block; height: 1em; overflow: hidden; margin-right: -0.04em; }
.odo .strip { display: block; width: 1ch; line-height: 1; word-break: break-all; transform: translateY(calc((var(--d) + 10) * -1em)); }
.odo .sep { display: inline-block; }

.org__sub { display: flex; align-items: center; gap: 18px; margin: 18px 0 8px; }
.org__sub::after { content: ''; flex: 1; border-top: 1px solid var(--rule-2); }
.org__h { margin: 0; font-size: 22px; line-height: 1.2; }
.facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.1fr); gap: 12px; }
.tile { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 8px; padding: 16px 20px; background: var(--paper); border: 1px solid var(--rule); transition: transform .4s var(--ease), box-shadow .4s, border-color .2s; }
.tile:hover { transform: translateY(-4px); border-color: var(--rule-2); box-shadow: 0 30px 50px -40px rgba(20,22,26,.55); }
.tile__row { display: flex; align-items: center; gap: 12px; }
.tile__title { margin: 0; font-family: var(--sans); font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.tile__meta { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.monogram { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid var(--green); border-radius: 50%; font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1; color: var(--green); }
.monogram::after { content: ''; position: absolute; inset: 3px; border: 1px solid var(--rule-2); border-radius: 50%; }
.tile--own { flex-direction: row; align-items: center; gap: 20px; }
.donut { width: 80px; height: 80px; flex: none; }
.donut .seg { transition: stroke-width .3s; }
.tile--own:hover .donut .seg { stroke-width: 17; }
.own-list { flex: 1; min-width: 0; display: grid; gap: 8px; }
.own { display: grid; grid-template-columns: 10px 1fr; gap: 12px; align-items: start; }
.own i { width: 10px; height: 10px; margin-top: 4px; }
.own div { display: flex; flex-direction: column; gap: 2px; }
.own .label { font-size: 11px; }
.loc__pin { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--green); color: #fff; }
.loc__pin svg { width: 20px; height: 20px; }
.tile--loc:hover .loc__pin { animation: h-hop .6s var(--ease); }
@keyframes h-hop { 40% { transform: translateY(-6px); } }
.zip { position: absolute; z-index: -1; right: -6px; bottom: -12px; font-family: var(--serif); font-weight: 700; font-size: clamp(60px, 5.4vw, 80px); line-height: .8; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1.2px var(--rule-2); transition: color .5s, -webkit-text-stroke-color .5s; user-select: none; }
.tile--loc:hover .zip { color: var(--green-soft); -webkit-text-stroke-color: var(--green); }

/* Появление блока, когда до него долистали (класс .is-in ставит main.js).
   Прячем только при работающем JS — без него всё видно сразу */
.js .org:not(.is-in) .tile, .js .org:not(.is-in) .cert { opacity: 0; }
.org.is-in .tile, .org.is-in .cert { animation: h-tilein .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms); }
@keyframes h-tilein { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: none; } }
.js .org:not(.is-in) .hl { background-size: 0% 40%; }
.org.is-in .hl { animation: h-marker 1.3s var(--ease) .45s both; }
@keyframes h-marker { from { background-size: 0% 40%; } }
.js .org:not(.is-in) .odo .strip { transform: translateY(0); }
.org.is-in .odo .strip { animation: h-roll 1.8s cubic-bezier(.16,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms + .15s); }
@keyframes h-roll { from { transform: translateY(0); } }
.js .org:not(.is-in) .donut .seg { stroke-dasharray: 0 100; }
.org.is-in .donut .seg1 { animation: h-seg1 1.4s var(--ease) .3s both; }
.org.is-in .donut .seg2 { animation: h-seg2 1.2s var(--ease) 1s both; }
@keyframes h-seg1 { from { stroke-dasharray: 0 100; } }
@keyframes h-seg2 { from { stroke-dasharray: 0 100; } }

/* Реквизиты — бланк в два столбца */
.blank { gap: 0; margin-top: 12px; padding: 0 20px 2px; }
.blank:hover { transform: none; box-shadow: none; border-color: var(--rule); }
.blank__head { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0 7px; border-bottom: 2px solid var(--ink); }
.reqs { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 36px; }
.reqs__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 14px; padding: 8px 10px; margin-inline: -10px; border-bottom: 1px solid var(--rule); line-height: 1.45; cursor: copy; transition: background-color .25s; }
.reqs__row:nth-last-child(-n+2) { border-bottom: 0; }
.reqs__row:hover { background: rgba(228,235,229,.5); }
.reqs__row[data-copied] { background: var(--green-soft); }
.reqs__k { grid-column: 1; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.reqs__v { grid-column: 1; font-size: 15px; font-weight: 500; }
.reqs__copy { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 8px; margin: -6px; padding: 6px; background: none; border: 0; cursor: copy; font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); transition: color .2s; }
.reqs__copy svg { width: 16px; height: 16px; }
.reqs__done { display: none; }
.reqs__row:hover .reqs__copy, .reqs__row[data-copied] .reqs__copy, .reqs__copy:focus-visible { color: var(--green); }
.reqs__row[data-copied] .reqs__copy svg { display: none; }
.reqs__row[data-copied] .reqs__done { display: inline; }

/* Документы: сканы веером */
.homedocs { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; }
.homedocs__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.homedocs__head h2 { margin: 0; font-size: 24px; }
.more { display: inline-flex; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: gap .2s; }
.more:hover { gap: 12px; }
.fan { position: relative; display: flex; justify-content: center; padding: 26px 0 10px; }
.scan { position: relative; flex: 0 0 auto; display: block; width: 44%; margin-inline: -4.5%; background: var(--paper-2); border: 1px solid var(--rule-2); padding: 12px; color: inherit; text-decoration: none; cursor: zoom-in; box-shadow: 0 24px 40px -28px rgba(20,22,26,.6); transition: transform .45s var(--ease), box-shadow .45s; }
.scan img { display: block; width: 100%; height: auto; aspect-ratio: 7 / 10; object-fit: cover; object-position: top; }
.scan:nth-child(1) { transform: rotate(-6deg) translateY(12px); z-index: 1; }
.scan:nth-child(2) { transform: rotate(0.5deg); z-index: 3; }
.scan:nth-child(3) { transform: rotate(6deg) translateY(12px); z-index: 2; }
.fan--two .scan { width: 58%; margin-inline: -6%; }
.fan--two .scan:nth-child(1) { transform: rotate(-4deg); }
.fan--two .scan:nth-child(2) { transform: rotate(4deg) translateY(16px); }
.scan:hover, .scan:focus-visible { transform: rotate(0) translateY(-18px) scale(1.04); z-index: 5; box-shadow: 0 40px 60px -30px rgba(20,22,26,.7); }
.scan__cap { display: block; margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; line-height: 1.4; color: var(--ink-2); }

/* Как нас найти: контакты и живая Яндекс.Карта */
.find { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.find__info { background: var(--paper); padding: 40px; display: flex; flex-direction: column; gap: 26px; }
.find__row { display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: start; }
.find__row svg { width: 22px; height: 22px; color: var(--green); margin-top: 3px; }
.find__row p { margin: 4px 0 0; }
.find__col { display: flex; flex-direction: column; gap: 2px; }
.find__row a { color: var(--ink); text-decoration: none; font-family: var(--mono); font-size: 17px; }
.find__row a:hover { color: var(--green); }
.find__info > .btn { align-self: flex-start; margin-top: auto; }
.find__map { position: relative; min-height: 440px; background: var(--paper-2); }
.find__map iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 1fr; gap: 90px; min-height: 0; padding-block: 70px 140px; }
  .desk { width: min(100% - 60px, 440px); }
}
@media (max-width: 860px) {
  /* сканы в одну колонку: 3 × (37% − 9%) и 2 × (50% − 12%) помещаются с запасом на поворот */
  .fan .scan { width: 37%; }
  .fan--two .scan { width: 50%; }
  .homedocs, .find { grid-template-columns: minmax(0, 1fr); }
  .homedocs { gap: 44px; }
  .org__top { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--own { grid-column: 1 / -1; order: 3; }
  .reqs { grid-template-columns: 1fr; }
  .reqs__row:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
  .find__map { min-height: 360px; }
}
/* Планшет: карта под контактами на всю ширину, а сами контакты — одной строкой в три колонки */
@media (min-width: 541px) and (max-width: 860px) {
  .find__info { display: grid; grid-template-columns: minmax(0, 1fr) max-content max-content; align-items: start; gap: 24px 28px; padding: 30px 32px; }
  .find__row { grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
  .find__row a { font-size: 15px; white-space: nowrap; }
  .find__info > .btn { grid-column: 1 / -1; justify-self: start; margin-top: 0; }
}
/* Узкий планшет: три колонки не помещаются — адрес и телефоны рядом, почта строкой ниже */
@media (min-width: 541px) and (max-width: 680px) {
  .find__info { grid-template-columns: minmax(0, 1fr) max-content; }
}
@media (max-width: 540px) {
  .hero__grid { padding-block: 54px 130px; gap: 80px; }
  .hero__lede { font-size: 16.5px; }
  .hero .btn { width: 100%; justify-content: center; }
  .docsheet { padding: 26px 22px 36px; }
  .ds-row { grid-template-columns: 54px 1fr auto 18px; }
  .ds-row dd { font-size: 14px; }
  .stamp { width: 150px; height: 150px; right: -26px; bottom: -58px; }
  .sheet.org { --pt: 40px; --pb: 48px; }
  .facts { grid-template-columns: 1fr; }
  .tile--own { grid-column: auto; order: 0; }
  .cert { padding: 24px 22px 10px; }
  .zip { font-size: 52px; bottom: -8px; }
  .tile--loc .tile__title { padding-bottom: 44px; }
  .blank { padding: 0 18px 2px; }
  .blank__head .label:last-child { display: none; }
  .find__info { padding: 28px 22px; }
  .find__map { min-height: 320px; }
}

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

@media print {
  .ribbon, .mainnav, .site-footer, .nav-toggle, .btn-row, .map, .toc,
  .guilloche, .perf, .ticker, .find__map, .reqs__copy { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .sheet { padding-block: 0; border: 0; }
  .clause { page-break-inside: avoid; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
}
