/* Личный кабинет НДФЛ (СМАРТДЕЛО). Шрифты, логотип и шапка — как на основном сайте ndfl-help.ru:
   Oswald — заголовки (заглавные), Golos Text — текст, JetBrains Mono — надзаголовки и служебные подписи.
   Файлы шрифтов — те же, что на ndfl-help.ru (woff2, SIL OFL), лежат в /static/fonts; браузер грузит
   только нужные алфавиты (unicode-range), кириллица Golos и Oswald подгружаются заранее (preload).
   Палитра — голубая палитра кабинета. */
/* cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/golos-text-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/golos-text-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/golos-text-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/golos-text-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/golos-text-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/golos-text-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/golos-text-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/golos-text-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/golos-text-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/golos-text-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/golos-text-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/golos-text-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/oswald-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/oswald-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/oswald-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/oswald-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/oswald-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/oswald-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/oswald-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Палитра — мягкая, по рендерам сайта (голубая платформа, мятные предметы, светлый фон) и логотипу.
   Контраст проверен расчётом (WCAG): основной текст 11,8:1, второстепенный 5:1, белый на кнопке ≥ 4,5:1. */
:root {
  --bg: #F5F9FB;
  --surface: #FFFFFF;
  --surface-2: #F8FBFD;
  --ink: #1F3A52;
  --ink-2: #2B4A63;
  --muted: #5E7183;
  --line: #E3EBF1;
  --accent: #2A6FB0;
  --accent-hover: #245F98;
  --accent-soft: #EAF3FB;
  --bright: #6BC7D6;
  --neon: #8FDCE6;
  --mint: #7CCB9A;
  --mint-soft: #E9F6EF;
  --blue: #2A6FB0;
  --grad: linear-gradient(135deg, #2F78BD 0%, #2C7FAE 100%);
  --grad-deco: linear-gradient(135deg, #5AA2E0 0%, #6CC3CF 55%, #7CCB9A 100%);
  --grad-soft: linear-gradient(135deg, #EEF5FC 0%, #EEF8F8 55%, #EFF9F3 100%);
  --ok-bg: #E9F6EF; --ok-text: #1F6E5A;
  --err-bg: #FCEEEE; --err-text: #A33A3A;
  --warn-bg: #FFF6E0; --warn-text: #7A5300;
  --font-display: 'Oswald', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --font-body: 'Golos Text', 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;
  --font-sub: var(--font-mono);
  --radius: 20px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(31, 58, 82, .03), 0 6px 20px rgba(31, 58, 82, .05);
  --shadow-hover: 0 2px 4px rgba(31, 58, 82, .05), 0 12px 28px rgba(42, 111, 176, .10);
  --wrap: 1200px;
  --gutter: clamp(16px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: .005em; line-height: 1.15; margin: 0 0 .6em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(30px, 4vw, 48px); text-transform: uppercase; }
h2 { font-size: clamp(22px, 2.6vw, 32px); text-transform: uppercase; }
h3 { font: 600 20px/1.3 var(--font-body); letter-spacing: 0; }
/* надзаголовки и служебные подписи — JetBrains Mono, как на ndfl-help.ru */
.eyebrow, .subhead { font: 400 13px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.lead { font-size: 18px; color: var(--muted); max-width: 680px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* шапка — как на ndfl-help.ru (разметка и размеры), цвета кабинета */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(245, 249, 251, .94);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo img { width: 44px; height: 44px; }
.logo__name { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: .02em; line-height: 1; }
.logo__sub { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav form { margin: 0; }
.nav .btn { min-height: 44px; padding: 0 20px; color: #fff; }
.nav .btn.ghost { color: var(--ink); }
.nav__phone { font-weight: 600; white-space: nowrap; }
.nav .balance { color: var(--accent); background: var(--accent-soft); font: 600 14px/1 var(--font-body); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav-toggle { display: none; }
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; }
  .nav { display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav > a, .nav > span { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn, .nav form { margin-top: 12px; }
  .nav form .btn { width: 100%; }
  .nav .balance { align-self: flex-start; margin-top: 12px; }
}

main { padding: 40px 0 64px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card.dark { background: var(--ink); color: #E6EEF0; border-color: var(--ink-2); }
.card.dark h2, .card.dark h3 { color: #fff; }
.card.hl { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad-deco) border-box; box-shadow: var(--shadow-hover); }
.stat { font: 600 42px/1 var(--font-display); letter-spacing: .01em; background: var(--grad-deco); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* формы */
label { display: block; font-weight: 600; font-size: 15px; margin: 18px 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #D5E0EA; border-radius: var(--radius-s); font: inherit; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(42, 111, 176, .14); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--bright); outline-offset: 2px; }
input[type=file] { font: inherit; margin-top: 4px; width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px dashed #C9D6E0; border-radius: var(--radius-s); background: var(--surface-2); cursor: pointer; }
input[type=file]::file-selector-button { font: 600 15px/1.2 var(--font-body); padding: 8px 16px; margin-right: 12px; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent); cursor: pointer; }
.hint { color: var(--muted); font-size: 14px; margin-top: 4px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 10px 0; }
.choice input { margin-top: 5px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px;
  border: 1.5px solid transparent; font: 600 16px/1.2 var(--font-body); cursor: pointer; text-decoration: none; background: var(--grad); color: #fff;
  box-shadow: 0 4px 12px rgba(42, 111, 176, .16); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(42, 111, 176, .22); }
.btn:active { transform: none; }
.btn.ghost { background: #fff; color: var(--ink); border-color: #D5E0EA; box-shadow: none; }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft); }
.btn.light { background: #fff; color: var(--ink); box-shadow: none; }
.btn.danger { background: var(--err-text); box-shadow: none; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
form.inline { display: inline; margin: 0; }

/* скрытое поле-ловушка и ссылка-ловушка: человек их не видит */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
/* «Перейти к содержимому» — для клавиатуры: видна только при фокусе (Tab), первая на странице */
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 1000; padding: 10px 16px; border-radius: 10px;
  background: #2A6FB0; color: #fff; font-weight: 600; text-decoration: none; transition: top .15s ease; }
.skip-link:focus { top: 12px; outline: 3px solid #1FA3A8; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }

/* сообщения */
.alert { padding: 14px 18px; border-radius: var(--radius-s); margin: 0 0 20px; border: 1px solid transparent; }
.alert.ok { background: var(--ok-bg); color: var(--ok-text); border-color: #C6EEDD; }
.alert.err { background: var(--err-bg); color: var(--err-text); border-color: #F7D2D2; }
.alert.warn { background: var(--warn-bg); color: var(--warn-text); border-color: #F6E4AE; }

/* таблицы */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 400 12px/1.4 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
tbody tr:hover td { background: var(--surface-2); }
td.num, th.num { text-align: right; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge.queued, .badge.processing { background: var(--accent-soft); color: var(--accent); }
.badge.done, .badge.succeeded { background: var(--ok-bg); color: var(--ok-text); }
.badge.error, .badge.canceled { background: var(--err-bg); color: var(--err-text); }
.badge.pending { background: var(--warn-bg); color: var(--warn-text); }

.progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--bright)); transition: width .4s; }

/* тарифы */
.tariff { display: flex; flex-direction: column; }
.tariff .price { font: 600 38px/1 var(--font-display); letter-spacing: .01em; margin: 8px 0; }
.tariff ul { padding-left: 18px; margin: 12px 0 20px; flex: 1; }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent); font: 400 11px/1.5 var(--font-mono); padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }

/* первый экран */
.hero { background: var(--grad-soft); color: var(--ink); padding: 56px 0 64px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.hero h1 { max-width: 640px; }
.hero p { max-width: 600px; color: var(--muted); font-size: 18px; }
.hero-art { width: 100%; height: auto; display: block; }                     /* края картинки прозрачные — сливаются с фоном */
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 520px; } }
.steps { counter-reset: s; }
.steps .card::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 600 34px/1 var(--font-display); background: var(--grad-deco); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 10px; }

/* хранилище */
.letter { font: 600 30px/1 var(--font-display); color: var(--accent); margin: 28px 0 8px; }
details.folder { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 6px 0; padding: 10px 14px; }
details.folder summary { cursor: pointer; font-family: var(--font-mono); }

.progress > i.indeterminate { width: 40%; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
.w-80 { max-width: 90px; }
pre { white-space: pre-wrap; word-break: break-word; }
.progress > i.w-0 { width: 0%; }
.progress > i.w-1 { width: 1%; }
.progress > i.w-2 { width: 2%; }
.progress > i.w-3 { width: 3%; }
.progress > i.w-4 { width: 4%; }
.progress > i.w-5 { width: 5%; }
.progress > i.w-6 { width: 6%; }
.progress > i.w-7 { width: 7%; }
.progress > i.w-8 { width: 8%; }
.progress > i.w-9 { width: 9%; }
.progress > i.w-10 { width: 10%; }
.progress > i.w-11 { width: 11%; }
.progress > i.w-12 { width: 12%; }
.progress > i.w-13 { width: 13%; }
.progress > i.w-14 { width: 14%; }
.progress > i.w-15 { width: 15%; }
.progress > i.w-16 { width: 16%; }
.progress > i.w-17 { width: 17%; }
.progress > i.w-18 { width: 18%; }
.progress > i.w-19 { width: 19%; }
.progress > i.w-20 { width: 20%; }
.progress > i.w-21 { width: 21%; }
.progress > i.w-22 { width: 22%; }
.progress > i.w-23 { width: 23%; }
.progress > i.w-24 { width: 24%; }
.progress > i.w-25 { width: 25%; }
.progress > i.w-26 { width: 26%; }
.progress > i.w-27 { width: 27%; }
.progress > i.w-28 { width: 28%; }
.progress > i.w-29 { width: 29%; }
.progress > i.w-30 { width: 30%; }
.progress > i.w-31 { width: 31%; }
.progress > i.w-32 { width: 32%; }
.progress > i.w-33 { width: 33%; }
.progress > i.w-34 { width: 34%; }
.progress > i.w-35 { width: 35%; }
.progress > i.w-36 { width: 36%; }
.progress > i.w-37 { width: 37%; }
.progress > i.w-38 { width: 38%; }
.progress > i.w-39 { width: 39%; }
.progress > i.w-40 { width: 40%; }
.progress > i.w-41 { width: 41%; }
.progress > i.w-42 { width: 42%; }
.progress > i.w-43 { width: 43%; }
.progress > i.w-44 { width: 44%; }
.progress > i.w-45 { width: 45%; }
.progress > i.w-46 { width: 46%; }
.progress > i.w-47 { width: 47%; }
.progress > i.w-48 { width: 48%; }
.progress > i.w-49 { width: 49%; }
.progress > i.w-50 { width: 50%; }
.progress > i.w-51 { width: 51%; }
.progress > i.w-52 { width: 52%; }
.progress > i.w-53 { width: 53%; }
.progress > i.w-54 { width: 54%; }
.progress > i.w-55 { width: 55%; }
.progress > i.w-56 { width: 56%; }
.progress > i.w-57 { width: 57%; }
.progress > i.w-58 { width: 58%; }
.progress > i.w-59 { width: 59%; }
.progress > i.w-60 { width: 60%; }
.progress > i.w-61 { width: 61%; }
.progress > i.w-62 { width: 62%; }
.progress > i.w-63 { width: 63%; }
.progress > i.w-64 { width: 64%; }
.progress > i.w-65 { width: 65%; }
.progress > i.w-66 { width: 66%; }
.progress > i.w-67 { width: 67%; }
.progress > i.w-68 { width: 68%; }
.progress > i.w-69 { width: 69%; }
.progress > i.w-70 { width: 70%; }
.progress > i.w-71 { width: 71%; }
.progress > i.w-72 { width: 72%; }
.progress > i.w-73 { width: 73%; }
.progress > i.w-74 { width: 74%; }
.progress > i.w-75 { width: 75%; }
.progress > i.w-76 { width: 76%; }
.progress > i.w-77 { width: 77%; }
.progress > i.w-78 { width: 78%; }
.progress > i.w-79 { width: 79%; }
.progress > i.w-80 { width: 80%; }
.progress > i.w-81 { width: 81%; }
.progress > i.w-82 { width: 82%; }
.progress > i.w-83 { width: 83%; }
.progress > i.w-84 { width: 84%; }
.progress > i.w-85 { width: 85%; }
.progress > i.w-86 { width: 86%; }
.progress > i.w-87 { width: 87%; }
.progress > i.w-88 { width: 88%; }
.progress > i.w-89 { width: 89%; }
.progress > i.w-90 { width: 90%; }
.progress > i.w-91 { width: 91%; }
.progress > i.w-92 { width: 92%; }
.progress > i.w-93 { width: 93%; }
.progress > i.w-94 { width: 94%; }
.progress > i.w-95 { width: 95%; }
.progress > i.w-96 { width: 96%; }
.progress > i.w-97 { width: 97%; }
.progress > i.w-98 { width: 98%; }
.progress > i.w-99 { width: 99%; }
.progress > i.w-100 { width: 100%; }
/* кабинет: меню слева */
.who { color: var(--muted); font-size: 13px; padding: 0 6px; }
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 64px; align-items: start; }
.side { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.side-title { font: 400 12px/1.4 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px 10px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; font-weight: 500; transition: background .15s; }
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-link.on .ic { color: var(--accent); }
.side-link .ic { width: 22px; text-align: center; color: var(--accent); font-size: 17px; }
.side-sep { height: 1px; background: var(--line); margin: 10px 4px; }
.content { min-width: 0; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.seg { display: inline-flex; gap: 6px; }
.w-auto { width: auto; min-width: 220px; flex: 1; max-width: 360px; }
.w-120 { max-width: 140px; }
.sticky-actions { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 8px 0; }
td.cb { width: 28px; }
details.folder summary input { margin-right: 6px; }
div.folder { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 6px 0; padding: 10px 14px; }
.folder-head { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; cursor: pointer; }
div.folder table td { padding: 6px 10px; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .side { position: static; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding: 8px; }
  .side-title, .side-sep { display: none; }
  .side-link { white-space: nowrap; }
}

.narrow { max-width: 560px; margin: 0 auto; }
.mt { margin-top: 48px; }
.mt-s { margin-top: 24px; }

/* подвал — как на ndfl-help.ru (разметка, размеры и тёмная палитра основного сайта) */
.footer { --dark: #0E1F26; --dark-line: #2A4651; --dark-text: #E6EEF0; --dark-muted: #A9BCC2; --bright-main: #02CDC9;
  background: var(--dark); color: var(--dark-text); padding-block: 64px 40px; margin-top: 24px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr)); gap: 32px; }
.footer h2 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--dark-muted); font-weight: 400; margin-bottom: 12px; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer a { color: var(--dark-text); text-decoration: none; }
.footer a:hover { color: var(--bright-main); }
.footer .logo { color: var(--dark-text); }
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__about { color: var(--dark-muted); font-size: 15px; margin: 0; }
.footer__contacts { color: var(--dark-muted); }
.footer__note { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--dark-line); font-size: 13px; color: var(--dark-muted); max-width: 960px; }
.chat-link { position: relative; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.chat-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.chat-link::after { content: attr(data-hint); position: absolute; left: 0; bottom: calc(100% + 8px); transform: translateY(4px);
  padding: 5px 9px; border-radius: 6px; background: var(--dark-text); color: var(--ink); font-size: 12px; font-weight: 400; line-height: 1.3;
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s, transform .15s; z-index: 5; }
.chat-link:hover::after, .chat-link:focus-visible::after { opacity: 1; transform: translateY(0); }
/* подсказка прижата к правому краю ссылки (ссылка — в правой колонке), иначе она выступает за экран; на сенсорных экранах не нужна */
.footer .chat-link::after { left: auto; right: 0; }
@media (max-width: 900px), (hover: none) { .chat-link::after { display: none; } }
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 640px) {
  .nav { margin-left: 0; width: 100%; }
  main { padding-top: 24px; }
  .card { padding: 18px; }
}

/* карточка менеджера под меню и на странице «Поддержка» */
.manager { margin-top: 14px; border-top: 1px solid var(--line); padding: 12px 4px 4px; }
.card .manager { margin: 0; border: 0; padding: 0; }
.manager-head { display: flex; justify-content: space-between; align-items: center; font: 400 12px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.manager-call { color: var(--accent); text-decoration: none; font-size: 20px; line-height: 1; }
.manager-body { display: flex; gap: 12px; align-items: center; }
.manager-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.manager-photo.initials { display: inline-flex; align-items: center; justify-content: center; background: var(--grad-deco); color: #fff; font: 600 19px/1 var(--font-display); }
.manager-name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.manager-phone { display: block; color: var(--ink); text-decoration: none; font-size: 14px; margin-top: 2px; }
.manager-links { display: flex; gap: 6px; margin-top: 6px; }
.ms { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 999px; font: 700 10px/1 var(--font-body); color: #fff; text-decoration: none; }
.ms:hover { color: #fff; opacity: .85; }
.ms.tg { background: #2AABEE; } .ms.wa { background: #25D366; } .ms.max { background: #6B4CF6; }
.manager-mail { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); text-decoration: none; word-break: break-all; }
.manager-btn { margin-top: 10px; width: 100%; }
@media (max-width: 900px) { .side .manager { display: none; } }

/* справочник и статьи */
a.card.wiki-year, a.card.article-card { display: block; color: var(--ink); text-decoration: none; }
a.card.wiki-year, a.card.article-card { transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card.wiki-year:hover, a.card.article-card:hover { border-color: #CFE3F5; box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.wiki-year ul { padding-left: 18px; margin: 10px 0 0; }
.article h2 { font-size: 24px; margin-top: 1.2em; }
.article h3 { margin-top: 1em; }
.article p, .article li { max-width: 760px; }
.article code { font-family: var(--font-mono); background: var(--bg); padding: 1px 6px; border-radius: 6px; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* телефон: крупнее зоны нажатия, без «липкой» шапки, поля 16px — iOS не увеличивает страницу при вводе */
@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.65; }
  .btn { min-height: 44px; padding: 12px 18px; }
  .btn.small { min-height: 40px; }
  input[type=text], input[type=email], input[type=tel], input[type=search], input[type=password], input[type=number], select, textarea { font-size: 16px; }
  h1 { font-size: 28px; } h2 { font-size: 22px; }
  .hero { padding: 32px 0 40px; }
  .hero p { font-size: 16px; }
  th, td { padding: 9px 10px; }
  .side-link { padding: 11px 14px; }
}
.table-wrap { -webkit-overflow-scrolling: touch; }
.badge.done, .badge.succeeded { border: 1px solid #CFEBDD; }
/* меньше движения — для тех, кто отключил анимацию в системе */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* таблицы с действиями: кнопки не обрезаются, на узком экране строка становится карточкой */
.inline-label { margin: 0; }
.th-sub { font-size: 12px; letter-spacing: .03em; }
.stats-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stats-row > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 16px; display: flex; align-items: baseline; gap: 8px; }
.stat-s { font: 600 24px/1 var(--font-display); color: var(--ink); }
td.actions { white-space: nowrap; width: 1%; }
td.actions form { margin: 0 0 8px; }
td.actions form:last-child { margin-bottom: 0; }
td.actions .btn { width: 100%; }
.inline-edit { display: flex; gap: 8px; margin-top: 8px; max-width: 420px; }
.inline-edit input { padding: 8px 12px; font-size: 14px; }
.btn.danger-ghost { background: #fff; color: var(--err-text); border-color: #F0CFCF; box-shadow: none; }
.btn.danger-ghost:hover { background: var(--err-bg); color: var(--err-text); }
@media (max-width: 760px) {
  table.partners thead { display: none; }
  table.partners, table.partners tbody, table.partners tr, table.partners td { display: block; width: 100%; }
  table.partners tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
  table.partners td { border: 0; padding: 4px 0; text-align: left; }
  table.partners td.num::before { content: attr(data-label); color: var(--muted); font-family: var(--font-body); }
  td.actions { display: flex !important; gap: 8px; width: 100%; white-space: normal; }
  td.actions form { flex: 1; margin: 0; }
  .inline-edit { max-width: none; }
}
.credit-form { display: grid; grid-template-columns: 76px minmax(64px, 1fr) auto; gap: 6px; min-width: 200px; }
.cl-work { white-space: nowrap; }
.cl-work.hot { color: #C2415B; font-weight: 600; }
.credit-form input { padding: 8px 10px; font-size: 14px; }
td.p-main .tag { font-size: 11px; padding: 1px 8px; }
@media (max-width: 900px) {
  table.clients thead { display: none; }
  table.clients, table.clients tbody, table.clients tr, table.clients td { display: block; width: 100%; }
  table.clients tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
  table.clients td { border: 0; padding: 3px 0; text-align: left; }
  table.clients td.num::before { content: attr(data-label); color: var(--muted); font-family: var(--font-body); }
  .credit-form { min-width: 0; }
}
/* поля файлов и таблицы в папках архива не растягивают страницу на телефоне */
input[type=file] { max-width: 100%; }
div.folder, details.folder { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.side { scrollbar-width: thin; }

@media (max-width: 640px) { .header__in { min-height: 64px; } .logo__name { font-size: 21px; } .logo img { width: 40px; height: 40px; } }

/* телефон: разделы кабинета — в кнопке-меню шапки, боковая лента скрыта */
.nav-sections { display: none; }
@media (max-width: 900px) {
  .layout > .side { display: none; }
  .nav-sections { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
  .nav-sections .side-title { display: block; padding: 8px 10px 6px; }
  .nav-sections .side-sep { display: block; margin: 6px 4px; }
  .nav-sections .side-link { padding: 12px 10px; white-space: normal; }
  .nav.is-open { max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; }
}

/* мониторинг: на телефоне строка проверки — карточка с подписями */
table.monitor td:first-child { font-weight: 600; }
@media (max-width: 760px) {
  table.monitor thead { display: none; }
  table.monitor, table.monitor tbody, table.monitor tr, table.monitor td { display: block; width: 100%; }
  table.monitor tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
  table.monitor td { border: 0; padding: 3px 0; text-align: left; }
  table.monitor td.lbl::before { content: attr(data-label); color: var(--muted); }
  table.monitor td.small:not(.lbl) { display: none; }
}

/* сроки хранения на странице пакета: на телефоне строка — карточка */
table.storage td.num { font-family: var(--font-body); }
@media (max-width: 760px) {
  table.storage thead { display: none; }
  table.storage, table.storage tbody, table.storage tr, table.storage td { display: block; width: 100%; }
  table.storage tr { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; margin-bottom: 10px; }
  table.storage td { border: 0; padding: 3px 0; text-align: left; }
  table.storage td:first-child { font-weight: 600; }
  table.storage td.lbl::before { content: attr(data-label); color: var(--muted); }
}
/* промокоды (бэк-офис) */
.promo-form select { width: auto; min-width: 170px; }
.promo-list { display: block; margin-top: 8px; font-size: 14px; line-height: 1.6; resize: vertical; background: var(--surface); }
.tabs { margin: 12px 0 0; }
/* Архив: сворачиваемые папки (как в «Клиентах») */
details.folder table td { padding: 6px 10px; }
details.folder > summary.folder-head { list-style: none; margin: 0; }
details.folder > summary.folder-head::-webkit-details-marker { display: none; }
details.folder > summary.folder-head::before { content: "▸"; color: var(--muted); display: inline-block; width: 1em; transition: transform .15s; }
details.folder[open] > summary.folder-head::before { transform: rotate(90deg); }
details.folder[open] > summary.folder-head { margin-bottom: 4px; }
.fold-all { margin-top: 12px; }
/* Загрузить 2-НДФЛ: форма на один экран */
.upload-form label { margin: 12px 0 4px; }
.upload-form label:first-of-type { margin-top: 0; }
.ids-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; margin-top: 4px; align-items: end; }
.steps { padding-left: 22px; margin: 8px 0 0; }
.steps li { margin: 6px 0; }
/* ===== Кабинет на один экран (07.10.2026) ===== */
/* название раздела — мелко, справа от меню в начале рабочего поля; h1 страницы виден только экранным дикторам */
.page-head { font: 600 16px/1.2 var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
  padding: 6px 0 12px; }
.layout { padding-top: 20px; gap: 24px; grid-template-columns: 272px minmax(0, 1fr); }
.layout .content > h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.layout > main.content { padding-top: 0; }
.layout .content > .alert:first-child { margin-top: 0; }
.layout .content h2 { font-size: 20px; margin-bottom: .5em; }
.layout .content .mt { margin-top: 28px; }
.mt-xs { margin-top: 14px; }
/* меню: пункты в одну строку, всё меню — на высоту экрана */
.side { top: 86px; padding: 10px; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto; }
.side-title { padding: 4px 10px 6px; font-size: 11px; }
.side-link { padding: 7px 10px; font-size: 15px; line-height: 1.3; white-space: nowrap; gap: 8px; }
.side-link .ic { width: 20px; font-size: 15px; flex: none; }
.side-sep { margin: 6px 4px; }
.side .manager { margin-top: 8px; padding: 8px 4px 2px; }
.side .manager-head { margin-bottom: 6px; }
.side .manager-photo { width: 40px; height: 40px; }
.side .manager-photo.initials { font-size: 15px; }
.side .manager-mail, .side .manager-btn { display: none; }
@media (max-height: 760px) { .side .manager { display: none; } }
/* Личный кабинет: показатели одной строкой */
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 12px 16px; box-shadow: var(--shadow); min-width: 0; }
.kpi-label { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.kpi-num { font: 600 30px/1 var(--font-display); color: var(--accent); }
.kpi-sub { font-size: 14px; color: var(--muted); }
.kpi.dark { background: var(--ink); border-color: var(--ink-2); }
.kpi.dark .kpi-label, .kpi.dark .kpi-sub { color: #C9D6DE; }
.kpi.dark .kpi-num { color: #fff; }
.kpi.dark .btn { margin-left: auto; min-height: 32px; padding: 6px 14px; }
@media (max-width: 1100px) { .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .page-head { padding: 0 0 8px; } .layout { grid-template-columns: 1fr; gap: 12px; padding-top: 14px; } }
/* шапка: остаток деклараций — значок конверта, число и подпись в рамке (по рендеру заказчика) */
.nav a.balance { display: inline-flex; align-items: center; gap: 8px; background: none; padding: 4px 6px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font: 600 18px/1 var(--font-body); white-space: nowrap; }
.nav a.balance svg { color: var(--accent); flex: none; }
.nav a.balance:hover { background: var(--accent-soft); color: var(--ink); }
.balance-pill { font: 400 13px/1 var(--font-body); color: var(--muted); border: 1px solid #C9D6E0; border-radius: 999px; padding: 4px 10px; }
/* Платежи и прайс: баланс первой строкой, тарифы — низкие плитки в один ряд */
.balance-line { font-size: 18px; margin: 0 0 14px; }
.balance-line b { font: 600 22px/1 var(--font-display); color: var(--accent); }
.tariffs-compact { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 12px; }
.tariff-c { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 12px 16px; box-shadow: var(--shadow); min-width: 0; }
.tariff-c.hl { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad-deco) border-box; }
.tc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 17px; }
.tc-head .tag { margin: 0; }
.tc-price { font: 600 26px/1.1 var(--font-display); }
.tc-price .small { font: 400 13px/1.3 var(--font-body); }
.tc-feat { flex: 1; }
.tariff-c form, .tariff-c > .btn { margin-top: 8px; }
.tariff-c .btn { align-self: flex-start; }
.card.explain { padding: 16px 20px; }
.card.explain p { margin: 0 0 8px; }
.card.explain p:last-child { margin: 0; }
@media (max-width: 1100px) { .tariffs-compact { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .nav a.balance { margin-top: 8px; } }
/* телефон: тарифы друг под другом */
@media (max-width: 640px) { .tariffs-compact { grid-template-columns: 1fr; } }
/* баланс в рублях + декларации в рамке (шапка и «Платежи и прайс») */
.nav a.balance .balance-num { font: 600 17px/1 var(--font-body); }
.balance-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.balance-line .balance-pill { font-size: 14px; }
/* бэк-офис и кабинет: плотнее карточки и формы, чтобы раздел помещался на один экран */
.layout .card { padding: 16px 20px; }
.layout .card h2, .layout .card h3 { margin-bottom: 8px; }
.layout .grid { gap: 16px; }
.upload-form .choices { margin: 10px 0 12px; }
.upload-form .choices .choice { margin: 6px 0; font-size: 15px; }
.upload-form h2 { font-size: 18px; }
/* невысокий экран ноутбука: меню бэк-офиса (16 пунктов) — без прокрутки */
@media (max-height: 760px) and (min-width: 901px) {
  .side-link { padding: 4px 10px; }
  .side-sep { margin: 4px; }
  .side-title { padding-bottom: 4px; }
}
/* Декларация 3-НДФЛ: форма дополнения — два поля файлов в строку */
.merge-row { max-width: none; }
.merge-row input[type=file] { min-width: 0; }
@media (max-width: 700px) { .merge-row { grid-template-columns: 1fr; } }
/* выбранные файлы под полем (накапливаются при повторном выборе) */
.file-list { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 8px;
  border-bottom: 1px solid var(--line); word-break: break-all; }
.file-list .file-total { color: var(--muted); border-bottom: 0; }
.file-del { border: 0; background: none; color: var(--err-text); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.file-del:hover { background: var(--err-bg); border-radius: 6px; }
/* дополнение декларации: ИНН и ФИО — одной строкой */
.person-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 20px; }
/* дополнение декларации: «до изменения / новая декларация» */
.tax-change { display: grid; gap: 8px; }
.tax-change > div { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; }
.tax-change > div > b:first-child { min-width: 170px; }
/* меню: читаемость (Golos 15/500, строка 38 px, зазор 2 px, иконки приглушены, у активного — полоса слева) */
.side-link { position: relative; padding: 9px 10px 9px 12px; font-size: 15px; font-weight: 500; line-height: 20px; gap: 10px; letter-spacing: .005em; }
.side-link + .side-link { margin-top: 2px; }
.side-link .ic { width: 20px; font-size: 16px; color: #7C93A8; }
.side-link:hover .ic { color: var(--accent); }
.side-link.on { font-weight: 600; }
.side-link.on::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--accent); }
.side-sep { margin: 10px 6px; }
@media (max-height: 820px) and (min-width: 901px) { .side-link { padding-top: 6px; padding-bottom: 6px; } .side-sep { margin: 6px; } }
@media (max-height: 700px) and (min-width: 901px) { .side-link { padding-top: 4px; padding-bottom: 4px; } .side-link + .side-link { margin-top: 0; } }
@media (max-width: 900px) { .side-link.on::before { display: none; } .side-link + .side-link { margin-top: 0; } }
/* Личный кабинет: «Требует внимания» */
.attention h2 { display: flex; align-items: center; gap: 8px; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  background: var(--warn-bg); color: var(--warn-text); font: 600 14px/1 var(--font-body); }
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list li { padding: 7px 0 7px 14px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.todo-list li:last-child { border-bottom: 0; }
.todo-list li::before { content: ""; position: absolute; left: 0; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.todo-list li.error::before { background: var(--err-text); }
.todo-list li.pending::before { background: #E0A100; }
/* Клиенты: годы со статусом */
.year-chip { display: inline-flex; align-items: baseline; gap: 6px; margin: 2px 6px 2px 0; padding: 3px 10px; border-radius: 999px;
  font-size: 13px; text-decoration: none; background: var(--accent-soft); color: var(--accent); border: 1px solid transparent; white-space: nowrap; }
.year-chip b { font: 600 14px/1 var(--font-display); letter-spacing: .03em; }
.year-chip.done { background: var(--ok-bg); color: var(--ok-text); }
.year-chip.pending { background: var(--warn-bg); color: var(--warn-text); }
.year-chip.error { background: var(--err-bg); color: var(--err-text); }
.year-chip:hover { border-color: currentColor; }
.year-chip.on { border-color: currentColor; box-shadow: 0 0 0 2px var(--accent-soft); }
.years-cell { line-height: 1.9; }
table.people td { vertical-align: middle; }
.year-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 0; }
.year-tabs .year-chip { font-size: 14px; padding: 6px 14px; }
/* карточка клиента */
.card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.client-name { font: 600 20px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .03em; margin-right: 8px; }
.year-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.year-summary > div { display: flex; flex-direction: column; gap: 2px; }
.ys-form { margin-left: auto; flex-wrap: wrap; }
.ys-form select { width: auto; min-width: 200px; padding: 6px 10px; font-size: 14px; }
.inline-label { margin: 0; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 7px 0; border-bottom: 1px solid var(--line); word-break: break-word; }
.doc-list li:last-child { border-bottom: 0; }
.docs-head { align-items: center; }
.docs-head h2 { margin: 0 auto 0 0; }
.fns-how summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.fns-how .steps { margin: 8px 0 0; padding-left: 22px; }
.fns-how .steps li { margin: 4px 0; }
@media (max-width: 760px) {
  table.people thead { display: none; }
  table.people, table.people tbody, table.people tr, table.people td { display: block; width: 100%; }
  table.people tr { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 10px 44px;
    margin-bottom: 10px; box-shadow: var(--shadow); }
  table.people td { border: 0; padding: 2px 0; text-align: left; }
  table.people td.cb { position: absolute; left: 14px; top: 12px; width: auto; }
  table.people td[data-label]::before { content: attr(data-label); color: var(--muted); }
  .ys-form { margin-left: 0; }
  .ys-form select { min-width: 0; flex: 1; }
}
/* Клиенты: годы столбиком, статус рядом */
.year-line { display: flex; align-items: center; gap: 10px; padding: 2px 0; text-decoration: none; color: var(--ink); }
.year-line b { font: 600 15px/1 var(--font-display); letter-spacing: .03em; min-width: 40px; }
.year-line .badge { font-size: 12px; padding: 2px 9px; }
.year-line:hover .badge { box-shadow: 0 0 0 1px currentColor; }
.years-cell { line-height: 1.4; }
/* карточка клиента: строка года раскрывается */
.year-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow); }
.yr-sum { display: grid; grid-template-columns: 70px repeat(3, minmax(0, 1fr)) auto 20px; align-items: center; gap: 12px;
  padding: 12px 18px; cursor: pointer; list-style: none; }
.yr-sum::-webkit-details-marker { display: none; }
.yr-sum::after { content: ""; width: 9px; height: 9px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg);
  transition: transform .15s; justify-self: end; margin-top: -4px; }
.year-row[open] > .yr-sum::after { transform: rotate(225deg); margin-top: 4px; }
.year-row[open] > .yr-sum { border-bottom: 1px solid var(--line); }
.yr-year { font: 600 20px/1 var(--font-display); letter-spacing: .03em; color: var(--ink); }
.yr-cell { display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.lbl { font-size: 12px; color: var(--muted); }
.yr-body { padding: 14px 18px 16px; display: grid; gap: 12px; }
.yr-line { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 12px; align-items: baseline; padding-top: 10px;
  border-top: 1px solid var(--line); word-break: break-word; }
.yr-line > div > div { padding: 2px 0; }
.yr-line .lbl { font-size: 13px; font-weight: 600; color: var(--ink); }
.yr-del { margin: 0; }
.ys-form input[type=date] { width: auto; padding: 6px 10px; font-size: 14px; }
/* таймлайн проверки: Подача → Проверка → Возврат */
.timeline { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.timeline li:first-child::before { display: none; }
.timeline li.done::before, .timeline li.now::before { background: var(--accent); }
.timeline .dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: var(--surface);
  border: 3px solid var(--line); display: flex; align-items: center; justify-content: center; }
.timeline li.done .dot { background: var(--accent); border-color: var(--accent); }
.timeline li.done .dot::after { content: "✓"; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.timeline li.now .dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline li.todo b { color: var(--muted); font-weight: 500; }
@media (max-width: 760px) {
  .yr-sum { grid-template-columns: repeat(3, minmax(0, 1fr)) 20px; gap: 8px 10px; padding: 12px 14px; }
  .yr-year { grid-row: 1; grid-column: 1; }
  .yr-sum .badge { grid-row: 1; grid-column: 2 / 4; justify-self: end; }
  .yr-sum::after { grid-row: 1; grid-column: 4; }
  .yr-cell { grid-row: 2; font-size: 13px; }
  .yr-body { padding: 12px 14px; }
  .yr-line { grid-template-columns: 1fr; }
  .ys-form select { flex: 1 1 100%; max-width: 100%; box-sizing: border-box; }
  .ys-form input[type=date] { flex: 1; }
  .card-head .row { width: 100%; }
}
/* Мои клиенты */
.intro { margin: 0 0 12px; color: var(--muted); max-width: 760px; }
.mine { color: #E0A100; font-size: 15px; }
.card-head form.inline { display: inline; margin: 0; }
/* Личный кабинет: «Как создать декларацию» — 4 шага, «Что входит в пакет документов» */
.howto { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.howto li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; font-size: 15px; }
.howto li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--accent-soft); z-index: 0; }
.howto li:first-child::before { display: none; }
.howto .dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font: 600 16px/1 var(--font-display); }
.pack-list { margin: 0; padding-left: 22px; }
.pack-list > li { margin: 6px 0; }
.pack-list ul { margin: 4px 0 0; padding-left: 20px; }
.pack-list ul li { margin: 3px 0; }
.pack-list .badge { font-size: 11px; padding: 1px 8px; vertical-align: 1px; }
@media (max-width: 760px) {
  .howto { grid-template-columns: 1fr; gap: 10px; }
  .howto li { flex-direction: row; flex-wrap: wrap; text-align: left; align-items: center; gap: 4px 10px; }
  .howto li::before { display: none; }
  .howto li .small { flex-basis: 100%; padding-left: 42px; }
}
/* Личный кабинет: «Создать декларацию» → «Всего 4 шага» → шаги; «Сервисы ФНС» */
.create-box { text-align: left; }
.howto-lead { margin: 0 0 4px; color: var(--muted); font: 400 13px/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; }
.create-box .howto { margin-top: 12px; }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 24px; }
.link-list a::after { content: " ↗"; font-size: .85em; }
@media (max-width: 760px) { .link-list { grid-template-columns: 1fr; } }
/* «Декларация 3-НДФЛ»: подсказка в строке заголовка поля; «Поддержка»: тема и загрузка в одну строку */
.label-hint { font-weight: 400; font-size: 14px; color: var(--muted); margin-left: 8px; }
.d3-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 900px) { .d3-row { grid-template-columns: 1fr; } .label-hint { display: block; margin: 2px 0 0; } }
/* бэк-офис: число новых обращений в меню; «Поддержка» — тема и загрузка в одну строку */
.side-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #D9534F; color: #fff;
  font: 600 12px/22px var(--font-body); text-align: center; }
.support-form { max-width: 900px; }
.support-form select { width: 100%; }
.support-form .row .hint { margin: 0; }
@media (min-width: 1200px) { .decl3-form .ids-row label { white-space: nowrap; } }   /* подсказка после «ОКТМО» — в строку, вправо */
.create-btn { margin-top: 16px; }
/* «Декларация 3-НДФЛ»: название поля слева, подсказка внутри рамки выбора файла; галочки состава заказа */
.frow { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 12px; align-items: center; margin: 0 0 12px; }
.decl3-form .flabel { margin: 0; font-weight: 600; }
.filebox { position: relative; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 6px 14px;
  border: 1.5px dashed #C9D6E0; border-radius: var(--radius-s); background: var(--surface-2); cursor: pointer; min-width: 0; }
.filebox:hover { border-color: var(--accent); }
.filebox:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.filebox .fileinp { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; padding: 0;
  min-height: 0; border: 0; }
.filebtn { flex: none; font: 600 15px/1.2 var(--font-body); padding: 8px 16px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); }
.filehint { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.filebox.has-files .filehint { color: var(--ink); }
.decl3-form .file-list { margin: -6px 0 12px 222px; }
.opts { display: grid; gap: 6px; margin: 14px 0 0; }
.opts .choice { margin: 0; font-size: 15px; }
.opts .badge { font-size: 11px; padding: 1px 8px; margin-left: 4px; }
@media (max-width: 760px) {
  .frow { grid-template-columns: 1fr; gap: 4px; }
  .filebox { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; }
  .filehint { white-space: normal; }
  .decl3-form .file-list { margin-left: 0; }
  .decl3-form .ids-row { grid-template-columns: 1fr; }
  .decl3-form .ids-row label { white-space: normal; }
}

/* ===== Личный кабинет: новый стиль (утверждён заказчиком 08.10.2026; образец — data/макеты/рендеры_стиль_v1) =====
   Только для вошедших (body.app-shell); публичные страницы — прежние. Шрифты: Onest — текст, Oswald — заголовки
   и крупные цифры ЗАГЛАВНЫМИ, JetBrains Mono — подписи и метки. Onest — SIL OFL 1.1 (static/fonts/OFL-onest.txt). */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/onest-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/onest-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/fonts/onest-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* меню v2 (решение заказчика 13.10.2026; data/макеты/кабинет_v2/ТЗ_меню_v2.md): голубой фон, белая рамка,
   выбранный пункт — цветная «таблетка», единый шрифт Onest (заголовки — обычный регистр), JetBrains Mono — только ИНН и коды */
html:has(body.app-shell), body.app-shell { background: #fff; }
body.app-shell {
  --font-body: 'Onest', 'Segoe UI', Roboto, Arial, sans-serif;
  --page: #fff; --panel: #F3F7FB; --side-ink: #36506A; --side-ic: #7E97AD;   /* фон за рамкой — белый (решение заказчика 14.10.2026) */
  --teal: #1FA3A8; --teal-soft: #DDF3F3; --teal-ink: #127B7F;
  --grad-app: linear-gradient(135deg, #2A6FB0 0%, #2C8CB8 55%, #1FA3A8 100%);
  --r-xl: 28px; --r-l: 22px;
  background: var(--page); font-family: var(--font-body);
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* рамка */
.app-shell .shell { max-width: none; margin: 0; padding: 12px 16px; background: #fff; border-radius: 0;
  box-shadow: none;   /* без пустой полосы и рамки вокруг страницы (решение заказчика 14.10.2026) */
  display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 18px; align-items: start;
  min-height: 100vh; min-height: 100dvh;
  --font-display: var(--font-body); --font-mono: var(--font-body); --font-sub: var(--font-body); }
.app-shell .shell-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
/* единый шрифт: моноширинный — только ИНН и коды */
.app-shell .shell :is(.mono, code, kbd, samp) { font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace; }
.app-shell .shell :is(h1, h2, h3, .page-head, .n3-panel h2, .br-panel h2, .br-drop__t, .client-name, .search-group h2) {
  text-transform: none; letter-spacing: -.01em; }
.app-shell .shell :is(th, .eyebrow, .subhead, .howto-lead, .manager-head) { font-weight: 600; font-size: 11px; letter-spacing: .06em; }

/* меню слева */
.app-shell .side { position: sticky; top: 12px; background: var(--panel); border: 0; box-shadow: none; border-radius: var(--r-xl);
  padding: 16px 12px; display: flex; flex-direction: column; gap: 2px;
  min-height: calc(100vh - 24px); min-height: calc(100dvh - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; color: var(--ink); text-decoration: none; }
.side-brand:hover { text-decoration: none; color: var(--ink); }
.side-brand img { width: 40px; height: 40px; flex: none; }
.side-brand__name { font: 700 18px/1.1 var(--font-body); text-transform: uppercase; letter-spacing: -.01em; }
.side-brand__sub { display: block; font: 500 10.5px/1.3 var(--font-body); color: var(--muted); text-transform: none; letter-spacing: 0; margin-top: 2px; }
.app-shell .side-title { font: 600 11px/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px 12px 8px; }
.app-shell .side-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0; border-radius: 14px;
  color: var(--side-ink); font: 500 14.5px/1.3 var(--font-body); letter-spacing: 0; white-space: normal; text-decoration: none;
  transition: background .15s, color .15s; }
.app-shell .side-link:hover { background: #fff; color: var(--ink); }
.app-shell .side-link .ic { width: 20px; height: 20px; flex: none; color: var(--side-ic); }
.app-shell .side-link:hover .ic { color: var(--side-ink); }
.app-shell .side-link.on { background: var(--grad-app); color: #fff; font-weight: 600; box-shadow: 0 8px 18px rgba(42, 111, 176, .25); }
.app-shell .side-link.on .ic { color: #fff; }
.app-shell .side-link.on::before { display: none; }
.app-shell .side-txt { min-width: 0; }
.app-shell .side-count { background: var(--teal); }
.app-shell .side-link.on .side-count { background: rgba(255, 255, 255, .25); }
/* раздел «скоро»: не ссылка, серый, не подсвечивается */
.app-shell .side-link.soon { cursor: default; color: #8CA0B3; }
.app-shell .side-link.soon:hover { background: transparent; color: #8CA0B3; }
.app-shell .side-link.soon .ic { color: #B4C3CF; }
.soon-tag { margin-left: auto; flex: none; font: 600 10px/1 var(--font-body); background: #E9EEF3; color: #7E92A5; border-radius: 999px;
  padding: 4px 7px; text-transform: uppercase; letter-spacing: .04em; }
.app-shell .side-sep { display: block; height: 1px; background: var(--line); margin: 8px 12px; }
.side-help { position: relative; overflow: hidden; margin-top: auto; background: var(--grad-app); color: #fff; border-radius: var(--r-l); padding: 16px; }
.app-shell .side-help::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, .12); pointer-events: none; }
.side-help b { display: block; font-weight: 600; margin-bottom: 4px; }
.side-help p { margin: 0 0 12px; font-size: 13px; opacity: .9; }
.side-help a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--accent); border-radius: 999px;
  padding: 8px 14px; font-weight: 600; font-size: 13px; text-decoration: none; }
.side-help a:hover { color: var(--accent-hover); }
.side-help svg { flex: none; }
.side-help.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--teal); }
.app-shell .side > .side-help { margin-top: auto; }
/* невысокий экран ноутбука: меню плотнее, чтобы карточка «Написать в поддержку» была видна без прокрутки */
@media (min-width: 901px) and (max-height: 780px) {
  .app-shell .side { padding: 12px 10px; }
  .app-shell .side-brand { padding: 2px 8px 8px; }
  .app-shell .side-link { padding: 6px 12px; }
  .app-shell .side-sep { margin: 6px 12px; }
  .side-help { padding: 10px 14px; }
  .side-help p { margin-bottom: 8px; }
  .side-help a { padding: 6px 12px; }
}

/* строка сверху: поиск, хранилище, баланс, аватар (меню учётной записи) */
.app-shell .topbar { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 4px 6px 0; }
.app-shell .side-toggle, .app-shell .topbar__logo { display: none; }
.app-shell .side-toggle { flex: none; width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: var(--panel);
  color: var(--side-ink); place-items: center; cursor: pointer; }
.app-shell .side-toggle:hover { background: var(--accent-soft); color: var(--accent); }
.app-shell .top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; min-width: 0; }
.qmini { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border-radius: 999px; padding: 8px 12px;
  color: var(--side-ink); font: 600 12px/1 var(--font-body); white-space: nowrap; text-decoration: none; }
.qmini:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.qmini svg { flex: none; }
.qmini .qmini__bar { width: 54px; height: 6px; flex: none; }
.app-shell .top-right a.balance { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border-radius: 999px;
  padding: 6px 6px 6px 14px; color: var(--ink); font: 600 15px/1 var(--font-body); white-space: nowrap; text-decoration: none; }
.app-shell .top-right a.balance svg { color: var(--accent); flex: none; }
.app-shell .top-right a.balance:hover { background: var(--accent-soft); }
.app-shell .top-right .balance-num { font: 600 15px/1 var(--font-body); }
.app-shell .balance-pill { background: #fff; border: 0; font: 600 12px/1 var(--font-body); color: var(--side-ink); padding: 6px 10px; border-radius: 999px; }
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 10px; min-height: 0; padding: 0; border: 0; background: transparent; cursor: pointer; color: inherit; }
.app-shell .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-app); color: #fff; display: grid; place-items: center;
  font: 600 16px/1 var(--font-body); flex: none; }
.app-shell .who { font: 400 13px/1.3 var(--font-body); color: var(--muted); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; }
.acct-btn:hover .who { color: var(--ink); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 230px; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 24px 60px rgba(22, 50, 74, .18); padding: 6px; }
.acct-menu[hidden] { display: none; }
.acct-menu small { display: block; padding: 8px 12px 6px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu a, .acct-menu button { display: flex; width: 100%; gap: 10px; align-items: center; min-height: 0; padding: 10px 12px; border: 0; border-radius: 12px;
  background: none; color: var(--side-ink); font: 500 14.5px/1.3 var(--font-body); text-align: left; text-decoration: none; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover, .acct-menu a:focus-visible, .acct-menu button:focus-visible { background: var(--panel); color: var(--ink); text-decoration: none; }
.acct-menu svg { flex: none; color: var(--side-ic); }
.acct-menu hr { border: 0; height: 1px; background: var(--line); margin: 4px 6px; }
.acct-menu form { margin: 0; }

/* строка поиска «Что вы ищете?» (результаты — /app/search, /office/search) */
.app-shell .top-search { flex: 1 1 auto; max-width: 520px; min-width: 0; display: flex; align-items: center; gap: 8px;
  background: var(--panel); border-radius: 18px; padding: 0 6px 0 16px; color: var(--muted); }
.app-shell .top-search:focus-within { box-shadow: 0 0 0 2px var(--accent-soft); }
.app-shell .top-search__ic { flex: none; }
.app-shell .top-search input { flex: 1; min-width: 0; width: auto; height: 46px; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; outline: 0; font: 400 15px/1.2 var(--font-body); color: var(--ink); }
.app-shell .top-search input::placeholder { color: var(--muted); opacity: 1; }
.app-shell .top-search button { flex: none; width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.app-shell .top-search button:hover, .app-shell .top-search button:focus-visible { background: #fff; color: var(--accent); }
.search-group { margin-top: 18px; }
.search-group h2 { font: 600 18px/1.2 var(--font-display); text-transform: uppercase; margin: 0 0 8px; }
.search-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.search-list li { background: var(--panel, #F1F6FA); border-radius: 14px; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.search-list a { font-weight: 500; overflow-wrap: anywhere; }

/* рабочее поле: крупный заголовок и плитки подменю */
.app-shell .content { min-width: 0; padding: 0 6px 24px; }
.app-shell .page-head { font: 700 32px/1.1 var(--font-body); letter-spacing: -.02em; color: var(--ink); padding: 14px 0 16px; }
.sub-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.sub-tile { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 10px 12px 10px 14px; color: var(--side-ink); font: 500 14px/1.3 var(--font-body); text-decoration: none; }
.sub-tile svg { color: var(--muted); flex: none; }
.sub-tile:hover { border-color: #BFD3E4; color: var(--ink); text-decoration: none; }
.sub-tile.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.sub-tile.on svg { color: var(--accent); }
.app-shell .footer { margin-top: 0; }

@media (max-width: 1100px) { .app-shell .who { display: none; } }
/* телефон и планшет: меню — выезжающая слева панель, затемнение фона */
@media (max-width: 900px) {
  .app-shell .shell { margin: 0; border-radius: 0; box-shadow: none; padding: 12px var(--gutter) 24px; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .app-shell .layout > .side, .app-shell .side { display: flex; position: fixed; left: 0; top: 0; bottom: 0; z-index: 90; width: 290px; max-width: 86vw;
    min-height: 0; max-height: none; border-radius: 0 28px 28px 0; transform: translateX(-105%); transition: transform .2s; visibility: hidden;
    overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 24px 60px rgba(22, 50, 74, .18); }
  body.app-shell.drawer .side { transform: none; visibility: visible; }
  body.app-shell.drawer::after { content: ""; position: fixed; inset: 0; z-index: 85; background: rgba(14, 31, 38, .4); }
  body.app-shell.drawer { overflow: hidden; }
  .app-shell .topbar { flex-wrap: wrap; row-gap: 10px; padding: 0; gap: 8px; }
  .app-shell .side-toggle { display: grid; }
  .app-shell .topbar__logo { display: flex; }
  .app-shell .topbar__logo img { width: 40px; height: 40px; }
  .app-shell .top-search { order: 5; flex: 1 0 100%; max-width: none; }
  .app-shell .top-search input { height: 44px; font-size: 16px; }
  .qmini .qmini__bar, .qmini svg { display: none; }
  .app-shell .page-head { font-size: 26px; padding: 6px 0 12px; }
  .app-shell .content { padding: 0 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .app-shell .side { transition: none; } }
@media (max-width: 640px) {
  .app-shell .balance-pill { display: none; }
  .app-shell .top-right { gap: 6px; }
  .app-shell .top-right a.balance { padding: 0 12px; min-height: 40px; }
  .qmini { min-height: 40px; padding: 0 10px; }
  .app-shell .side-toggle, .app-shell .avatar { width: 40px; height: 40px; }
  .sub-tile { flex: 1 1 auto; justify-content: space-between; }
}
@media (max-width: 360px) { .app-shell .topbar__logo { display: none; } }

/* ===== «Декларация 3-НДФЛ» в новом стиле (макет согласован 08.10.2026) ===== */
.n3-cols { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.n3-panel { background: var(--panel, #F1F6FA); border-radius: 28px; padding: 18px; min-width: 0; }
.n3-panel h2 { font: 600 21px/1.15 var(--font-display); text-transform: uppercase; letter-spacing: .01em; margin: 0 0 14px; }
.n3-uploads { display: grid; gap: 8px; }
.n3-panel .n3-up.filebox { display: grid; grid-template-columns: 40px minmax(0, 1fr) 150px; align-items: center; gap: 12px;
  min-height: 0; background: #fff; border: 1.5px dashed transparent; border-radius: 18px; padding: 10px 12px 10px 14px; transition: border-color .15s; }
.n3-panel .n3-up.filebox:hover { border-color: #A9C7DF; }
.n3-panel .n3-up.filebox:focus-within { outline: 2px solid var(--accent-soft); outline-offset: 0; border-color: var(--accent); }
.n3-up__ic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.n3-up__ic.t { background: #DDF3F3; color: #127B7F; }
.n3-up__ic.g { background: var(--panel, #F1F6FA); color: #5D7489; }
.n3-up__txt { min-width: 0; display: grid; gap: 3px; }
.upload-form .n3-up__label, .upload-form .n3-up__label:first-of-type { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0;
  font: 600 15.5px/1.3 var(--font-body); color: var(--ink); }
.n3-tag { font: 500 10.5px/1 var(--font-mono); color: var(--muted); background: var(--panel, #F1F6FA); border-radius: 999px; padding: 4px 7px;
  text-transform: uppercase; letter-spacing: .04em; }
.n3-tag.req { color: var(--accent); background: var(--accent-soft); }
.n3-up .filehint { font: 400 12px/1.45 var(--font-mono); color: var(--muted); white-space: normal; overflow-wrap: anywhere; }
.n3-up.has-files .filehint { color: var(--ink); }
.n3-up .filebtn { display: block; width: 100%; text-align: center; background: var(--panel, #F1F6FA); color: var(--accent); font-size: 14px; padding: 10px 12px; }
.n3-panel .file-list { margin: 0 0 4px 66px; }
.n3-panel .file-list:empty { display: none; }   /* пустой список выбранных файлов не даёт лишнего отступа */

.n3-ids-box { margin-top: 12px; }
.n3-ids-title { margin: 0 0 6px 4px; font: 400 14.5px/1.4 var(--font-body); color: var(--ink); }
.n3-ids { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.upload-form label.n3-field { display: flex; align-items: center; gap: 12px; margin: 0; min-height: 46px; padding: 0 6px 0 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; cursor: text; transition: border-color .15s, box-shadow .15s; }
.n3-field span { flex: none; font: 500 14.5px/1.3 var(--font-body); color: var(--ink); }
.n3-field input { flex: 1; min-width: 0; height: 44px; padding: 0 6px; border: 0; background: transparent; outline: 0; box-shadow: none;
  font: 600 15px/1.3 var(--font-body); color: var(--ink); }
.n3-field input::placeholder { color: #9AAFC0; font-weight: 400; }
.upload-form label.n3-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.n3-switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 46px; height: 26px; margin: 0;
  border-radius: 999px; background: #C7D6E2; cursor: pointer; transition: background .2s; }
.n3-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.n3-switch:checked { background: var(--accent); }
.n3-switch:checked::after { transform: translateX(20px); }
.n3-switch:disabled { cursor: not-allowed; }
.n3-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.n3-submit { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 14px; }
.n3-go { padding: 13px 28px; font-size: 16px; background: var(--grad-app, var(--grad)); }
.n3-submit small { font: 400 12.5px/1.4 var(--font-mono); color: var(--muted); }

.n3-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.n3-notes li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; background: #fff; border-radius: 22px; padding: 14px; }
.n3-notes li > span:last-child { display: grid; justify-items: start; gap: 8px; min-width: 0; }
.n3-n { width: 36px; height: 36px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
  font: 600 17px/1 var(--font-display); }
.n3-notes li:nth-child(2) .n3-n { background: #DDF3F3; color: #127B7F; }
.n3-ext { padding: 10px 16px; font-size: 14px; white-space: normal; text-align: left; background: var(--grad-app, var(--grad)); }
.n3-note { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.n3-price { font-weight: 600; font-size: 15px; padding-top: 7px; }
.n3-foot { margin: 14px 6px 0; font: 400 12.5px/1.5 var(--font-mono); color: var(--muted); }

/* «Декларация 3-НДФЛ»: что подготовить — карточки файлов с ползунками (12.10.2026) */
.n3-outs { display: grid; gap: 8px; margin-top: 12px; }
.n3-out { display: flex; align-items: center; gap: 14px; margin: 0; background: #fff; border-radius: 16px; padding: 8px 14px 8px 10px; cursor: pointer; }
.upload-form label.n3-out { margin: 0; font-weight: 400; }
div.n3-out { cursor: default; }
.n3-doc { flex: none; width: 34px; height: 40px; display: grid; place-items: center; border-radius: 4px 12px 4px 4px;
  font: 600 10.5px/1 var(--font-mono); letter-spacing: .02em; }
.n3-doc.dc { background: var(--accent-soft); color: var(--accent); }
.n3-doc.pdf { background: #FCE9E9; color: #B23B3B; }
.n3-doc.xls { background: #DDF3F3; color: #127B7F; }
.n3-out__txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.n3-out__txt b { font: 600 14.5px/1.3 var(--font-body); color: var(--ink); overflow-wrap: anywhere; }
.n3-out__txt small { font: 400 12px/1.4 var(--font-mono); color: var(--muted); }
/* переключатель «Зачёт налога с дивидендов» (_credit_mode.html) */
.cm-box { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; border: 0; min-width: 0; }
.cm-title { padding: 0; margin-bottom: 4px; font: 600 15px/1.3 var(--font-body); color: var(--ink); }
.cm-note { margin: 2px 0 0; padding: 10px 14px; border-radius: 14px; background: #E6F4F4; color: var(--ink);
  font-size: 13px; line-height: 1.45; }
.n3-out .n3-switch:disabled { opacity: .75; }
@media (max-width: 1240px) { .n3-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .n3-panel { padding: 16px; }
  .n3-panel .n3-up.filebox { grid-template-columns: 40px minmax(0, 1fr); }
  .n3-up__ic { width: 40px; height: 40px; }
  .n3-up .filebtn { grid-column: 1 / -1; text-align: center; }
  .n3-panel .file-list { margin-left: 0; }
  .n3-ids { grid-template-columns: minmax(0, 1fr); }
  .n3-field span { font-size: 14px; }
  .n3-go { width: 100%; justify-content: center; }
}

/* ===== «Отчёт брокера» (макет согласован 13.10.2026: data/макеты/отчет_брокера_новый_стиль.html) ===== */
.br-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.br-load { display: grid; gap: 14px; border-radius: 28px; padding: 28px; min-width: 0;
  background: radial-gradient(1200px 400px at 85% -10%, rgba(31, 163, 168, .25), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(42, 111, 176, .22), transparent 60%),
    linear-gradient(135deg, #EAF3FB 0%, #E4F4F4 100%); }
.br-drop { position: relative; display: grid; justify-items: center; text-align: center; gap: 8px; padding: 26px;
  background: rgba(255, 255, 255, .72); border: 1.5px dashed #A9C7DF; border-radius: 22px; transition: border-color .15s; }
.br-drop:hover, .br-drop:focus-within { border-color: var(--accent); }
.br-drop__ic { width: 56px; height: 56px; border-radius: 18px; background: #fff; display: grid; place-items: center;
  color: var(--accent); box-shadow: 0 1px 2px rgba(22, 50, 74, .04), 0 8px 24px rgba(22, 50, 74, .06); }
.br-drop__t { font: 600 17px/1.3 var(--font-display); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.br-drop__hint, .br-drop .filehint { color: var(--muted); font-size: 13px; white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.br-drop__btn { margin-top: 6px; }
.br-open { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; margin: 0; padding: 12px 14px;
  border-radius: 16px; background: var(--accent-soft); color: var(--ink); font-size: 13.5px; line-height: 1.5; }
.br-open svg { color: var(--accent); margin-top: 2px; }
.br-drop .fileinp { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.br-years { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.br-years__t { grid-column: 1 / -1; padding: 0; margin: 4px 2px 8px; font-weight: 600; font-size: 15px; color: var(--ink); }
.br-year { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 14px;
  background: #fff; border: 2px solid transparent; border-radius: 22px; padding: 14px 16px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(22, 50, 74, .04), 0 8px 24px rgba(22, 50, 74, .06); transition: border-color .15s; }
.br-year:hover { border-color: #A9C7DF; }
.br-year input { position: absolute; opacity: 0; pointer-events: none; }
.br-year b { font: 600 22px/1 var(--font-display); color: var(--ink); }
.br-year span { font: 400 12.5px/1.3 var(--font-mono); color: var(--muted); }
.br-year i { font: 500 11.5px/1 var(--font-mono); font-style: normal; color: #127B7F; background: #DDF3F3; border-radius: 999px; padding: 4px 8px; }
.br-year.on { border-color: var(--accent); }
.br-year.on b { color: var(--accent); }
.br-year:focus-within { box-shadow: 0 0 0 3px var(--accent-soft); }
.br-ready, .br-wait { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px;
  background: rgba(22, 50, 74, .92); color: #fff; border-radius: 18px; padding: 12px 14px 12px 18px; }
.br-ready b, .br-wait b { font-weight: 600; }
.br-ready .btn { padding: 9px 18px; background: #fff; color: var(--accent); box-shadow: none; white-space: nowrap; min-height: 0; }
.br-wait span { font: 400 13px/1.3 var(--font-mono); opacity: .85; }
.br-go { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.br-go small { font: 400 12.5px/1.45 var(--font-mono); color: var(--muted); flex: 1 1 260px; }
.br-panel { background: var(--panel); border-radius: 28px; padding: 18px 20px 20px; min-width: 0; }
.br-panel h2 { font: 600 21px/1.15 var(--font-display); text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.br-sub { font: 400 12.5px/1.45 var(--font-mono); color: var(--muted); margin: 4px 0 14px; }
.br-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.br-files { display: grid; gap: 10px; }
.br-main .br-files { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }   /* под загрузкой — в ряд, если помещаются */
.br-file { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px; color: var(--ink);
  text-decoration: none; min-width: 0; }
.br-file b { display: block; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.br-file small { display: block; font: 400 12px/1.4 var(--font-mono); color: var(--muted); }
a.br-file:hover { box-shadow: 0 0 0 2px var(--accent-soft); color: var(--ink); }
.br-file.off { opacity: .8; }
.br-ext { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 600 11px/1 var(--font-mono); }
.br-ext.xlsx { background: #E2F3EE; color: #1E7B5A; } .br-ext.pdf { background: #FBE7E7; color: #B3261E; }
.br-ext.report { background: var(--accent-soft); color: var(--accent); }
.br-side { display: grid; gap: 18px; align-content: start; min-width: 0; }
.br-main { display: grid; gap: 18px; align-content: start; min-width: 0; }
.br-used { display: grid; gap: 6px; padding: 12px 16px; border-radius: 18px; background: #fff; font-size: 14px; }
.br-used small { color: var(--muted); font-size: 12.5px; }
.file-clear { border: 0; background: none; padding: 2px 6px; color: var(--accent); font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.br-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; align-items: start; }
.br-chips { display: grid; gap: 10px; }
.br-chips.two { margin-top: 12px; }
.br-chips.two > .br-chip { margin: 0; min-height: 0; }
.br-chips.two > .file-list:empty { display: none; }
.br-chip { position: relative; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 10px 14px;
  font-size: 13px; font-weight: 500; border: 1.5px solid transparent; color: var(--ink); cursor: pointer; list-style: none; min-width: 0; }
.br-chip::-webkit-details-marker { display: none; }
.br-chip svg { color: var(--teal); flex: none; }
.br-chip.on { border-color: var(--accent); color: var(--accent); }
.br-chip.off { opacity: .55; cursor: default; }
.br-chip .fileinp { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.br-chip:focus-within { box-shadow: 0 0 0 3px var(--accent-soft); }
.br-chip .filehint { white-space: normal; overflow-wrap: anywhere; color: inherit; font-size: 13px; }
.br-manual[open] { grid-column: 1 / -1; display: grid; gap: 10px; }
.br-manual .n3-field { display: grid; gap: 6px; font-size: 13px; }
.br-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.br-list li { background: #fff; border-radius: 14px; padding: 10px 14px; border-left: 4px solid var(--line); min-width: 0; }
.br-list li.ok { border-left-color: #2FA36B; } .br-list li.warn { border-left-color: #F0B429; } .br-list li.bad { border-left-color: #D64545; }
.br-list b { display: block; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.br-list small { display: block; font: 400 12px/1.45 var(--font-mono); color: var(--muted); overflow-wrap: anywhere; }
.br-light { flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 5px rgba(0, 0, 0, .04); margin-top: 4px; }
.br-light.green { background: #2FA36B; } .br-light.yellow { background: #F0B429; } .br-light.red { background: #D64545; }
@media (max-width: 1100px) { .br-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .br-row2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .br-load { padding: 14px; }
  .br-year { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; padding: 12px 14px; }
  .br-year span { grid-column: 1 / -1; grid-row: 2; overflow-wrap: anywhere; }
  .br-ready .btn, .br-go .btn { width: 100%; }
  .br-chips.two { grid-template-columns: minmax(0, 1fr); }
}

/* ===== хранилище по объёму (13.10.2026) ===== */
.quota__head { margin: 0 0 10px; }
.qbar { height: 10px; border-radius: 999px; background: #E3ECF3; overflow: hidden; }
.qbar__fill { display: block; height: 100%; background: linear-gradient(90deg, #2A6FB0, #1FA3A8); border-radius: inherit; }
.qbar.warn .qbar__fill { background: #E0A132; }
.qbar__fill--0 { width: 0%; }
.qbar__fill--5 { width: 5%; }
.qbar__fill--10 { width: 10%; }
.qbar__fill--15 { width: 15%; }
.qbar__fill--20 { width: 20%; }
.qbar__fill--25 { width: 25%; }
.qbar__fill--30 { width: 30%; }
.qbar__fill--35 { width: 35%; }
.qbar__fill--40 { width: 40%; }
.qbar__fill--45 { width: 45%; }
.qbar__fill--50 { width: 50%; }
.qbar__fill--55 { width: 55%; }
.qbar__fill--60 { width: 60%; }
.qbar__fill--65 { width: 65%; }
.qbar__fill--70 { width: 70%; }
.qbar__fill--75 { width: 75%; }
.qbar__fill--80 { width: 80%; }
.qbar__fill--85 { width: 85%; }
.qbar__fill--90 { width: 90%; }
.qbar__fill--95 { width: 95%; }
.qbar__fill--100 { width: 100%; }
.quota-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.quota-plan { display: grid; gap: 6px; align-content: start; }
.quota-plan.on { box-shadow: 0 0 0 2px #2A6FB0; }
.quota-plan__size { font-size: 22px; }
.quota-plan__price { font-weight: 600; }

/* ===== меню v2, дополнение (решение заказчика 13.10.2026): плашка режима, метка NEW, колокольчик ===== */
.mode-pill { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 10px 12px; margin: 0 0 10px; color: var(--ink); text-decoration: none; }
.mode-pill:hover, .mode-pill.on { border-color: #BFD3E4; color: var(--ink); text-decoration: none; }
.mode-pill__ic { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-ink); }
.mode-pill.consult .mode-pill__ic { background: #EEEAFB; color: #6A55C8; }
.mode-pill__txt { min-width: 0; }
.mode-pill__txt b { display: block; font: 600 13.5px/1.25 var(--font-body); }
.mode-pill__txt small { display: block; font: 400 11.5px/1.3 var(--font-body); color: var(--muted); }
.mode-pill__sw { margin-left: auto; flex: none; color: var(--muted); }
.new-tag { margin-left: auto; flex: none; font: 600 10px/1 var(--font-body); background: #EEEAFB; color: #6A55C8; border-radius: 999px;
  padding: 4px 6px; text-transform: uppercase; }
.app-shell .side-link.on .new-tag { background: rgba(255, 255, 255, .25); color: #fff; }

.bell { position: relative; }
.bell-btn { position: relative; width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: var(--panel);
  color: var(--side-ink); display: grid; place-items: center; cursor: pointer; }
.bell-btn:hover, .bell-btn[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); }
.bell-dot { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #E5484D;
  color: #fff; font: 600 10.5px/18px var(--font-body); text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.bell-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 340px; max-width: calc(100vw - 24px); background: #fff;
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(22, 50, 74, .18); padding: 8px; max-height: 70vh; overflow-y: auto; }
.bell-menu[hidden] { display: none; }
.bell-menu__t { display: block; padding: 8px 10px 6px; font: 600 15px/1.3 var(--font-body); }
.bell-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.bell-item:hover { background: var(--panel); text-decoration: none; color: var(--ink); }
.bell-item b { display: block; font: 600 13.5px/1.3 var(--font-body); }
.bell-item small { display: block; font-size: 12.5px; color: var(--muted); }
.bell-item__dot { width: 8px; height: 8px; flex: none; margin-top: 6px; border-radius: 50%; background: var(--accent); }
.bell-item.ok .bell-item__dot { background: #23885A; }
.bell-item.error .bell-item__dot { background: #C2415B; }
.bell-item.pending .bell-item__dot { background: #E0A132; }
.bell-empty { margin: 0; padding: 6px 10px 10px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .bell-btn { width: 40px; height: 40px; }
  .bell { position: static; }
  .bell-menu { left: 12px; right: 12px; width: auto; top: 60px; }
  .app-shell .topbar { position: relative; }
}

/* режим кабинета и разделы в разработке */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.mode-card { position: relative; background: var(--panel, #F3F7FB); border: 2px solid transparent; border-radius: 22px; padding: 20px; }
.mode-card.on { border-color: var(--teal); background: #fff; }
.mode-card__ic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-ink); }
.mode-card.consult .mode-card__ic { background: #EEEAFB; color: #6A55C8; }
.mode-card h2 { margin: 12px 0 0; font-size: 22px; }
.mode-card__sub { margin: 2px 0 10px; color: var(--muted); }
.mode-card ul { margin: 0 0 14px; padding-left: 20px; }
.mode-card li { margin: 4px 0; }
.soon-card { background: var(--panel, #F3F7FB); border-radius: 22px; padding: 22px; max-width: 760px; }
.soon-card h2 { margin: 12px 0 10px; font-size: 22px; }
.soon-card .soon-tag { margin-left: 0; }
@media (max-width: 760px) { .modes { grid-template-columns: minmax(0, 1fr); } }

/* ===== страница входа v2 (как в макете заказчика; логотип — свой) ===== */
body.auth-page { --font-body: 'Onest', 'Segoe UI', Roboto, Arial, sans-serif; --panel: #F3F7FB; --teal: #1FA3A8; --teal-soft: #DDF3F3; --teal-ink: #127B7F;
  --grad-app: linear-gradient(135deg, #2A6FB0 0%, #2C8CB8 55%, #1FA3A8 100%);
  margin: 0; background: #FAFCFE; font-family: var(--font-body); color: var(--ink); }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: 100vh; min-height: 100dvh; }
.auth__left { display: flex; flex-direction: column; padding: 40px clamp(24px, 4.4vw, 64px); background: #FAFCFE; }
.auth__right { display: grid; align-items: center; padding: 40px clamp(24px, 4.4vw, 64px);
  background: radial-gradient(700px 500px at 0% 0%, #DCEBFA 0%, transparent 70%), radial-gradient(700px 500px at 100% 100%, #D8F1F1 0%, transparent 70%), #E9F1F7; }
.auth__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.auth__brand:hover { text-decoration: none; color: var(--ink); }
.auth__brand img { width: 40px; height: 40px; flex: none; }
.auth__name { font: 700 18px/1.1 var(--font-body); text-transform: uppercase; letter-spacing: -.01em; }
.auth__name small { display: block; font: 500 10.5px/1.3 var(--font-body); color: var(--muted); text-transform: none; letter-spacing: 0; margin-top: 2px; }
.auth__site { font-size: 14px; }
.auth__form { width: 100%; max-width: 440px; margin: auto 0; padding: 48px 0 24px; }
.auth__eyebrow { margin: 0 0 12px; font: 600 11px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.auth__h1 { margin: 0 0 10px; font: 700 clamp(28px, 3vw, 36px)/1.1 var(--font-body); letter-spacing: -.02em; text-transform: none; }
.auth__lead { margin: 0 0 22px; color: var(--muted); font-size: 15.5px; }
.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #EEF3F8; border-radius: 999px; padding: 4px; margin: 0 0 22px; }
.auth__tabs a { display: block; text-align: center; padding: 10px 12px; border-radius: 999px; color: var(--side-ink, #36506A); font-weight: 500; font-size: 14px; text-decoration: none; }
.auth__tabs a.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(22, 50, 74, .08); }
.auth__tabs a:hover { text-decoration: none; color: var(--ink); }
.auth__fields { display: grid; gap: 8px; }
.auth__fields label { font-size: 14px; font-weight: 500; }
.auth__fields input[type=email], .auth__fields input[type=text], .auth__fields input[type=password] { height: 50px; border-radius: 14px; font-size: 16px; }
.auth__input { position: relative; display: block; }
.auth__input svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.auth__input input { width: 100%; padding-left: 46px; }
.auth__btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin-top: 10px;
  border-radius: 999px; background: var(--grad-app); border: 0; font-size: 16px; box-shadow: 0 10px 24px rgba(42, 111, 176, .25); }
.auth__note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 16px; border-radius: 14px; background: #E4EFFA;
  color: #1F5D99; font-size: 13.5px; }
.auth__note svg { flex: none; margin-top: 2px; }
.auth__or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 13px; }
.auth__or::before, .auth__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth__guest { display: flex; justify-content: center; align-items: center; text-align: center; width: 100%; min-height: 54px; border-radius: 999px; background: #fff; font-size: 15.5px; }
.auth__legal { margin: 0; font-size: 12.5px; color: var(--muted); max-width: 440px; }
.auth .alert { margin: 0 0 14px; }

.guest { width: 100%; max-width: 560px; margin: 0 auto; }
.guest__badge { display: inline-flex; align-items: center; gap: 6px; background: #E2F5EA; color: #23885A; border-radius: 999px; padding: 4px 10px;
  font: 600 11px/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .04em; }
.guest__title { margin: 14px 0 12px; font: 700 clamp(26px, 2.6vw, 34px)/1.15 var(--font-body); letter-spacing: -.02em; text-transform: none; }
.guest__title em { font-style: normal; background: linear-gradient(90deg, #2A6FB0, #1FA3A8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guest__lead { margin: 0 0 22px; color: var(--side-ink, #36506A); }
.guest__open { margin: 0; font-size: 13px; line-height: 1.45; color: var(--side-ink, #36506A); }
.guest__card { display: grid; gap: 16px; background: #fff; border-radius: 26px; padding: 20px; box-shadow: 0 24px 60px rgba(22, 50, 74, .12); }
.guest__drop { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 22px 16px; border: 2px dashed #C9D9E6;
  border-radius: 20px; }
.guest__drop:hover, .guest__drop:focus-within { border-color: var(--accent); }
.guest__drop.filebox { display: grid; align-items: initial; min-height: 0; padding: 22px 16px; background: none; }
.guest__drop .fileinp { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.guest__drop small { color: var(--muted); }
.guest__drop u { color: var(--accent); text-decoration: none; }
.guest__ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #E4EFFA; color: var(--accent); }
.guest__card .file-list { margin-top: -6px; }
.guest__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.guest__lbl { font: 600 11px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.guest__chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; }
.guest__go { justify-content: space-between; }
.guest__years { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.guest__years legend { float: left; }
.guest__year input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.guest__year span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; }
.guest__year input:checked + span { background: #E4EFFA; border-color: transparent; color: var(--accent); font-weight: 600; }
.guest__year input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.guest__btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: var(--grad-app); border: 0; min-height: 46px; padding: 0 22px; }
.guest__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.guest__stats b { display: block; font: 700 22px/1.2 var(--font-body); }
.guest__stats span { font-size: 13px; color: var(--side-ink, #36506A); }

/* итог гостевого расчёта */
.gres { max-width: 760px; margin: 0 auto; padding: 32px var(--gutter) 48px; }
.gres__card { margin-top: 32px; background: #fff; border-radius: 26px; padding: clamp(18px, 3vw, 32px); box-shadow: 0 24px 60px rgba(22, 50, 74, .10); }
.gres__sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.gres__sum div { background: var(--panel); border-radius: 18px; padding: 14px 16px; }
.gres__sum span { display: block; font-size: 13px; color: var(--muted); }
.gres__sum b { display: block; margin-top: 4px; font: 700 22px/1.2 var(--font-body); }
.gres__sum .pay { background: #DDF3F3; }
.gres__note { color: var(--side-ink, #36506A); }
.gres__files { margin: 16px 0 6px; }
.gres__files ul { margin: 6px 0 0; padding-left: 20px; }

@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__left, .auth__right { padding: 24px 16px; }
  .auth__form { padding: 32px 0 20px; max-width: none; }
  .gres__sum { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .guest__stats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .guest__go .guest__btn { width: 100%; justify-content: center; }
  .auth__tabs a { font-size: 13px; padding: 9px 6px; }
}

/* ===== Личный кабинет v2 (главная, согласована 14.10.2026): задачи → ваши дела → плашки ===== */
.btn.soft { background: var(--accent-soft); color: var(--accent); border-color: transparent; box-shadow: none; }
.btn.soft:hover { filter: brightness(.97); }
.home3 { display: grid; gap: 22px; max-width: 1180px; }
.h3-head h1 { margin: 0; font: 700 32px/1.15 var(--font-body); letter-spacing: -.02em; text-transform: none; }
.h3-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.h3-jobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.h3-job { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 18px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.h3-job:hover { text-decoration: none; color: var(--ink); border-color: #A9C7DF; box-shadow: 0 14px 34px rgba(22,50,74,.08); transform: translateY(-2px); }
.h3-job:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.h3-job--main { border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.h3-job__tag { align-self: flex-start; font: 600 11px/1 var(--font-body); text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 6px 9px; }
.h3-job--main .h3-job__tag { color: #8A5300; background: #FDEFC9; }      /* «Чаще всего» — жёлтая метка (15.10.2026) */
.h3-job__tag + .h3-job__ic { margin-top: 0; }
.h3-jobs--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }       /* 5 задач — по 3 в ряд */
.h3-job__ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.h3-job__ic.teal { background: #DDF3F3; color: #127B7F; }
.h3-job__ic.amber { background: #FFF3DC; color: #B7791F; }
.h3-job__ic.violet { background: #EEEAFB; color: #6A55C8; }
.h3-job__t { font-weight: 700; font-size: 16px; line-height: 1.25; letter-spacing: -.01em; }
.h3-job__d { font-size: 13.5px; color: var(--muted); }
.h3-job__need { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); background: var(--panel, #F3F7FB); border-radius: 12px; padding: 8px 10px; }
.h3-job__need svg { margin-top: 2px; flex: none; }
.h3-job__foot { margin-top: auto; padding-top: 4px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.h3-job__foot .btn { flex: none; margin-left: auto; white-space: nowrap; }
.h3-job__price { font-weight: 700; font-size: 15px; min-width: 0; }
.h3-job__price small { white-space: nowrap; }
.h3-job__price small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.h3-soon { font: 600 10px/1 var(--font-body); text-transform: uppercase; letter-spacing: .04em; background: #E9EEF3; color: #7E92A5; border-radius: 999px; padding: 4px 7px; vertical-align: 2px; }
.h3-cases { display: grid; gap: 8px; }
.h3-cases__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.h3-cases__head h2 { margin: 0; font: 700 19px/1.2 var(--font-body); text-transform: none; }
.h3-cases__head a { font-size: 14px; }
.h3-case { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; }
.h3-case__txt b { display: block; font-size: 14.5px; }
.h3-case__txt small { display: block; color: var(--muted); font-size: 13px; }
.h3-case__st { width: 12px; height: 12px; border-radius: 50%; background: #B4C3CF; }
.h3-case__st.ok { background: #23885A; box-shadow: 0 0 0 4px #E2F5EA; }
.h3-case__st.run { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.h3-case__st.warn { background: #E0A132; box-shadow: 0 0 0 4px #FFF3DC; }
.h3-case__run { width: 120px; height: 6px; border-radius: 999px; background: #E3ECF3; overflow: hidden; }
.h3-case__run i { display: block; width: 40%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2A6FB0, #1FA3A8); animation: h3run 1.4s ease-in-out infinite; }
@keyframes h3run { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .h3-case__run i { animation: none; } }
.h3-first { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #DDF3F3; border-radius: 18px; padding: 14px 16px; }
.h3-first > div { flex: 1; min-width: 240px; }
.h3-first b { display: block; }
.h3-first small { display: block; color: #2F6B6E; font-size: 13.5px; margin-top: 2px; }
.h3-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.h3-stat { display: flex; flex-direction: column; gap: 6px; min-height: 108px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; min-width: 0; }
.h3-stat:hover { text-decoration: none; color: var(--ink); border-color: #A9C7DF; transform: translateY(-2px); }
.h3-stat.accent { background: linear-gradient(135deg, #2A6FB0 0%, #2C8CB8 55%, #1FA3A8 100%); border-color: transparent; color: #fff; }
.h3-stat.accent:hover { color: #fff; }
.h3-stat__l { font: 600 11px/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.h3-stat.accent .h3-stat__l, .h3-stat.accent .h3-stat__d, .h3-stat.accent small { color: rgba(255,255,255,.82); }
.h3-stat__v { font: 700 26px/1.1 var(--font-body); letter-spacing: -.01em; white-space: nowrap; }
.h3-stat__v small { font-size: 15px; font-weight: 600; color: var(--muted); }
.h3-stat__d { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: auto; }
.h3-spark { display: flex; align-items: flex-end; gap: 5px; height: 30px; }
.h3-spark i { flex: 1; min-height: 3px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #2C8CB8, #1FA3A8); opacity: .85; }
.h3-spark .spk--0 { height: 0%; }
.h3-spark .spk--10 { height: 10%; }
.h3-spark .spk--20 { height: 20%; }
.h3-spark .spk--30 { height: 30%; }
.h3-spark .spk--40 { height: 40%; }
.h3-spark .spk--50 { height: 50%; }
.h3-spark .spk--60 { height: 60%; }
.h3-spark .spk--70 { height: 70%; }
.h3-spark .spk--80 { height: 80%; }
.h3-spark .spk--90 { height: 90%; }
.h3-spark .spk--100 { height: 100%; }
@media (max-width: 1200px) { .h3-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .h3-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .h3-jobs, .h3-stats { grid-template-columns: minmax(0, 1fr); }
  .h3-head h1 { font-size: 26px; }
  .h3-case { grid-template-columns: 12px minmax(0, 1fr); }
  .h3-case .btn, .h3-case__run { grid-column: 2; justify-self: start; }
}

/* меню закреплено у левого края и не двигается при прокрутке (решение заказчика 14.10.2026) */
@media (min-width: 901px) {
  .app-shell .shell { grid-template-columns: minmax(0, 1fr); padding-left: calc(16px + 252px + 18px); }
  .app-shell .shell > .side { position: fixed; left: 16px; top: 12px; bottom: 12px; width: 252px;
    min-height: 0; max-height: none; height: auto; z-index: 20; }
  body.app-shell > .footer { margin-left: calc(16px + 252px + 18px); border-radius: 28px 0 0 0; }
}

/* ===== «Платежи и прайс» v2 (согласовано 14.10.2026) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.btn.block { display: flex; width: 100%; justify-content: center; }
.bl3 { display: grid; gap: 16px; max-width: 1180px; }
.bl3-note { margin: -6px 0 0; }
.bl3-promo { cursor: default; }
.bl3-promo:hover { transform: none; border-color: var(--line); }
.bl3-promo__row { display: flex; gap: 6px; align-items: center; min-width: 0; }
.bl3-promo__row input { flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 10px; font-size: 13px; border: 1px solid var(--line); border-radius: 12px; }
.bl3-promo__row .btn { flex: none; }
.bl3-panel { background: var(--panel, #F3F7FB); border-radius: 24px; padding: 18px; display: grid; gap: 12px; }
.bl3-panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.bl3-panel__head h2 { margin: 0; font: 700 19px/1.2 var(--font-body); text-transform: none; }
.bl3-panel .table-wrap { background: #fff; border-radius: 16px; }
.bl3-quota { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.bl3-q { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bl3-q.on { border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.bl3-q__size { font: 700 22px/1.1 var(--font-body); letter-spacing: -.01em; white-space: nowrap; }
.bl3-q__price { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.bl3-q form { margin-top: auto; padding-top: 4px; }
.bl3-tag { align-self: flex-start; font: 600 10.5px/1 var(--font-body); text-transform: uppercase; letter-spacing: .05em; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 5px 8px; }
.bl3-tariffs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bl3-t { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bl3-t.hl { border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.bl3-t__price { font: 700 28px/1.1 var(--font-body); letter-spacing: -.01em; white-space: nowrap; }
.bl3-t__f { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; }
.bl3-t__f li { padding-left: 22px; position: relative; }
.bl3-t__f li::before { content: "✓"; position: absolute; left: 2px; color: var(--teal, #1FA3A8); font-weight: 700; }
.bl3-t form, .bl3-t > .btn { margin-top: auto; padding-top: 6px; }
.bl3-how summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.bl3-how p { margin: 8px 0 0; }
@media (max-width: 1200px) { .bl3-quota { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .bl3-tariffs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .bl3-quota { grid-template-columns: 1fr 1fr; } .bl3-panel { padding: 14px; } }

/* ===== «Профиль» и «Безопасность» v2 (согласовано 14.10.2026) ===== */
.pf-login { font-size: 17px; white-space: normal; overflow-wrap: anywhere; }
.pf-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.pf-field { display: grid; gap: 6px; background: #fff; border-radius: 16px; padding: 12px 14px; }
.pf-field label { font-weight: 600; font-size: 14px; margin: 0; }
.pf-field input { height: 44px; margin: 0; }
.pf-actions { grid-column: 1 / -1; margin: 0; }
.pf-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pf-list li { display: grid; gap: 2px; background: #fff; border-radius: 14px; padding: 10px 14px; }
.sec-rows { display: grid; gap: 8px; }
.sec-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #fff; border-radius: 16px; padding: 12px 14px; }
.sec-row b { display: block; }
.sec-row small { display: block; font-size: 13px; }
.sec-danger { background: #FDF1F3; }
.sec-del { display: grid; gap: 6px; max-width: 520px; }
.sec-del__row { display: flex; gap: 8px; flex-wrap: wrap; }
.sec-del__row input { flex: 1 1 200px; margin: 0; }
@media (max-width: 1000px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .pf-form { grid-template-columns: minmax(0, 1fr); } .sec-row { grid-template-columns: 42px minmax(0, 1fr); } .sec-row .bl3-tag { grid-column: 2; justify-self: start; } }

/* ===== «Документы» и карточка человека v2 (согласовано 14.10.2026) ===== */
.dc3 { display: grid; gap: 14px; max-width: 1180px; }
.dc3-lead { margin: -4px 0 0; }
.dc3-attn { background: #FFF8E8; border-color: #F6E4AE; border-radius: 20px; }
.dc3-search { gap: 8px; background: var(--panel, #F3F7FB); border-radius: 18px; padding: 10px; }
.dc3-search input[type=search] { flex: 1 1 240px; margin: 0; height: 42px; border-radius: 12px; }
.dc3-upload { margin-left: auto; }
.dc3-av { width: 40px; height: 40px; border-radius: 14px; display: inline-grid; place-items: center; flex: none; color: #fff; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, #2A6FB0 0%, #2C8CB8 55%, #1FA3A8 100%); }
.dc3-av--big { width: 64px; height: 64px; border-radius: 22px; font-size: 20px; }
/* список людей — карточки вместо таблицы */
.dc3-wrap { overflow: visible; background: transparent; }
.dc3-people, .dc3-people tbody { display: block; }
.dc3-people thead { display: none; }
.dc3-people tr { display: grid; grid-template-columns: 28px minmax(0, 1.2fr) minmax(0, 1.6fr) auto; gap: 8px 14px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; margin-bottom: 8px; transition: border-color .15s; }
.dc3-people tr:hover { border-color: #A9C7DF; }
.dc3-people td { border: 0; padding: 0; background: transparent; }
.dc3-people .p-main { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.dc3-people .p-main .dc3-av { grid-row: span 2; }
.dc3-people .p-main a { color: var(--ink); }
.dc3-people .p-main b { font-size: 15px; }
.dc3-people .years-cell { display: flex; flex-wrap: wrap; gap: 6px; }
.dc3-people .year-line { display: inline-flex; align-items: center; gap: 6px; background: var(--panel, #F3F7FB); border-radius: 12px; padding: 5px 8px;
  text-decoration: none; color: var(--ink); font-size: 13px; }
.dc3-people .year-line:hover { background: var(--accent-soft); text-decoration: none; }
.dc3-people .year-line .badge { font-size: 11px; }
.dc3-people td[data-label] { color: var(--muted); white-space: nowrap; }
/* карточка человека */
.dc3-back { font-size: 14px; color: var(--muted); }
.dc3-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: transparent; border: 0; padding: 0; }
.dc3-head__who { flex: 1; min-width: 220px; }
.dc3-head__who h1 { margin: 0; font: 700 28px/1.15 var(--font-body); letter-spacing: -.02em; text-transform: none; }
.dc3-head__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.dc3-pill { font-size: 12px; background: var(--panel, #F3F7FB); color: var(--muted); border-radius: 999px; padding: 4px 10px; }
.dc3-head__acts { gap: 8px; }
.dc3 .year-row { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 0; overflow: hidden; }
.dc3 .year-row[open] { border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.dc3 .yr-sum { padding: 14px 18px; cursor: pointer; }
.dc3 .yr-year { font: 700 20px/1.1 var(--font-body); }
.dc3 .yr-body { background: var(--panel, #F3F7FB); padding: 16px 18px; display: grid; gap: 12px; }
.dc3 .yr-line { background: #fff; border-radius: 14px; padding: 12px 14px; }
.dc3 .ys-form { background: #fff; border-radius: 14px; padding: 10px 12px; }
.dc3 .timeline { background: #fff; border-radius: 14px; padding: 14px; margin: 0; }
.dc3 .fns-how { background: #fff; border-radius: 14px; padding: 10px 14px; }
@media (max-width: 900px) {
  .dc3-people tr { grid-template-columns: 28px minmax(0, 1fr); }
  .dc3-people .years-cell, .dc3-people td[data-label] { grid-column: 2; }
}
@media (max-width: 640px) { .dc3-upload { margin-left: 0; } .dc3-head__who h1 { font-size: 22px; } }

/* ===== Результат загрузки v2 (согласовано 14.10.2026) ===== */
.rs3 { display: grid; gap: 14px; max-width: 1180px; }
.rs3-head h1 { margin: 4px 0 0; font: 700 28px/1.15 var(--font-body); letter-spacing: -.02em; text-transform: none; }
.rs3-head p { margin: 6px 0 0; }
.rs3-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rs3-step { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.rs3-step i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; background: #E2F5EA; color: #23885A; flex: none; }
.rs3-step.now { border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.rs3-step.now i { background: linear-gradient(135deg, #2A6FB0, #1FA3A8); color: #fff; }
.rs3-step b { display: block; font-size: 14px; }
.rs3-step small { display: block; color: var(--muted); font-size: 12.5px; }
.rs3-who { margin: 0; }
.rs3-year { display: grid; gap: 12px; }
.rs3-year__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rs3-year__head h2 { margin: 0; font: 700 21px/1.2 var(--font-body); text-transform: none; }
.rs3-big { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rs3-big__card { border-radius: 22px; padding: 18px 20px; color: #fff; display: grid; gap: 4px; }
.rs3-big__card.pay { background: linear-gradient(135deg, #2A6FB0 0%, #2C8CB8 55%, #1FA3A8 100%); }
.rs3-big__card.ret { background: linear-gradient(135deg, #1F8F5F, #1FA3A8); }
.rs3-big__card .h3-stat__l { color: rgba(255,255,255,.85); }
.rs3-big__card b { font: 700 32px/1.1 var(--font-body); letter-spacing: -.02em; white-space: nowrap; }
.rs3-big__card span:last-child { font-size: 13px; opacity: .92; }
.rs3-panel { background: var(--panel, #F3F7FB); border-radius: 20px; padding: 16px; display: grid; gap: 10px; }
.rs3-panel h3 { margin: 0; font: 700 16px/1.2 var(--font-body); text-transform: none; }
.rs3-panel .table-wrap { background: #fff; border-radius: 14px; }
.hint-ok { background: #DDF3F3; color: #0F6468; border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.rs3-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #0E1F26; color: #fff; border-radius: 22px; padding: 14px 16px 14px 20px; }
.rs3-bar.done { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.rs3-bar__txt { flex: 1; min-width: 220px; }
.rs3-bar__txt b { display: block; }
.rs3-bar__txt small { display: block; color: #9DB4C4; font-size: 13px; }
.rs3-bar.done .rs3-bar__txt small { color: var(--muted); }
.rs3-free { display: block; color: #8FE3C1; font: 600 11px/1 var(--font-body); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.rs3-bar form { margin: 0; }
.rs3-storage { border-radius: 20px; }
@media (max-width: 760px) { .rs3-steps, .rs3-big { grid-template-columns: minmax(0, 1fr); } .rs3-bar .btn { width: 100%; justify-content: center; } .rs3-bar form { width: 100%; } }

/* «Отчёт брокера»: итог расчёта v2 (.bk3-*) */
.bk3 { display: grid; gap: 14px; margin-bottom: 26px; }
.bk3-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bk3-kpi .h3-stat { min-height: 0; }
.bk3-kpi .h3-stat__v { font-size: 24px; }
.bk3-kpi .h3-stat__d { white-space: normal; }
.bk3-var { font-size: 14px; line-height: 1.35; }
.bk3-var b { font-size: 19px; font-weight: 700; white-space: nowrap; }
.bk3 .rs3-bar__txt a { color: var(--accent); }
.bk3-new { margin: 0 0 12px; font: 700 21px/1.2 var(--font-body); text-transform: none; }
@media (max-width: 760px) { .bk3-kpi { grid-template-columns: minmax(0, 1fr); } .bk3 .rs3-bar .btn { width: 100%; justify-content: center; } }

/* «Поддержка» v2 (.sp3-*): обращения слева, переписка справа */
.sp3 { display: grid; gap: 16px; max-width: 1180px; }
.sp3-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sp3-head h1 { margin: 4px 0 0; font: 700 28px/1.15 var(--font-body); letter-spacing: -.02em; text-transform: none; }
.sp3-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.sp3-list { display: flex; flex-direction: column; gap: 8px; background: var(--panel, #F3F7FB); border-radius: 22px; padding: 16px; min-width: 0; }
.sp3-list h2, .sp3-compose h2 { margin: 0 0 4px; font: 700 17px/1.2 var(--font-body); text-transform: none; }
.sp3-cnt { display: inline-block; min-width: 22px; padding: 3px 7px; border-radius: 999px; background: #fff; color: var(--muted); font-size: 12px; text-align: center; vertical-align: 2px; }
.sp3-ticket { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; padding: 12px 14px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
.sp3-ticket:hover { text-decoration: none; color: var(--ink); border-color: #A9C7DF; }
.sp3-ticket.on { border: 2px solid var(--accent); padding: 11px 13px; }
.sp3-ticket b { font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.sp3-ticket small { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; }
.sp3-st { align-self: start; font: 600 10.5px/1 var(--font-body); text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: 5px 8px; white-space: nowrap; }
.sp3-st.done { background: #E2F5EA; color: #23885A; }
.sp3-st.wait { background: #FFF3DC; color: #9A6412; }
.sp3-empty { margin: 4px 2px; font-size: 14px; }
.sp3-hint { display: flex; gap: 10px; align-items: flex-start; margin-top: 6px; padding: 12px 14px; border-radius: 16px; background: #E6F4F4; font-size: 13.5px; }
.sp3-hint svg { flex: none; color: #127B7F; margin-top: 1px; }
.sp3-stage { display: grid; gap: 16px; min-width: 0; }
.sp3-chat { display: grid; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; min-width: 0; }
.sp3-chat__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp3-chat__head .sp3-st { margin-left: auto; align-self: center; }
.sp3-no { font-size: 12.5px; color: var(--muted); background: var(--panel, #F3F7FB); border-radius: 999px; padding: 4px 9px; }
.sp3-bubble { max-width: 82%; padding: 12px 14px; border-radius: 18px; display: grid; gap: 6px; min-width: 0; }
.sp3-bubble pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 14.5px/1.5 var(--font-body); }
.sp3-bubble time { font-size: 12px; color: var(--muted); }
.sp3-bubble.me { justify-self: end; background: var(--accent-soft); border-bottom-right-radius: 6px; }
.sp3-bubble.them { justify-self: start; background: var(--panel, #F3F7FB); border-bottom-left-radius: 6px; }
.sp3-bubble.them b { font-size: 13.5px; }
.sp3-waiting { margin: 0; padding: 10px 14px; border-radius: 14px; background: #FFF8EA; color: #7A5410; font-size: 13.5px; }
.sp3-compose { display: grid; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; min-width: 0; }
.sp3-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sp3-field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); min-width: 0; }
.sp3-field select { width: 100%; min-width: 0; }
.sp3-compose textarea { width: 100%; min-height: 110px; resize: vertical; }
.sp3-compose__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sp3-compose__bar .hint { margin: 0; flex: 1; min-width: 200px; }
@media (max-width: 1000px) { .sp3-grid { grid-template-columns: minmax(0, 1fr); } .sp3-stage { order: -1; } }
@media (max-width: 640px) { .sp3-fields { grid-template-columns: minmax(0, 1fr); } .sp3-bubble { max-width: 100%; } .sp3-compose__bar .btn { width: 100%; justify-content: center; } }

/* «Инструкции» и «Статьи» v2 (.hp3-*) */
.hp3 { display: grid; gap: 16px; max-width: 1180px; }
.hp3-head h1 { margin: 4px 0 0; font: 700 28px/1.15 var(--font-body); letter-spacing: -.02em; text-transform: none; }
.hp3-head p { margin: 6px 0 0; }
.hp3-guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hp3-guide { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px;
  color: var(--ink); text-decoration: none; min-width: 0; transition: border-color .15s, transform .15s; }
.hp3-guide:hover { text-decoration: none; color: var(--ink); border-color: #A9C7DF; transform: translateY(-2px); }
.hp3-guide b { font-size: 15px; line-height: 1.3; }
.hp3-guide small { color: var(--muted); font-size: 13px; }
.hp3-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
.hp3-ic.teal { background: #DDF3F3; color: #127B7F; }
.hp3-ic.amber { background: #FFF3DC; color: #B7791F; }
.hp3-ic.violet { background: #EEEAFB; color: #6A55C8; }
.hp3-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.hp3-sec { background: var(--panel, #F3F7FB); border-radius: 20px; padding: 18px 20px; min-width: 0; scroll-margin-top: 16px; }
.hp3-sec h2 { margin: 0 0 8px; font: 700 18px/1.25 var(--font-body); text-transform: none; }
.hp3-sec h2 + p { margin-top: 0; }
.hp3-sec * + h2 { margin-top: 16px; }
.hp3-sec p, .hp3-sec li { font-size: 14.5px; }
.hp3-sec p:last-child { margin-bottom: 0; }
.hp3-callout { padding: 10px 14px; border-radius: 14px; background: #fff; }
.hp3-arts { display: grid; gap: 8px; }
.hp3-arts__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hp3-arts__head h2 { margin: 0; font: 700 21px/1.2 var(--font-body); text-transform: none; }
.hp3-art { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px;
  color: var(--ink); text-decoration: none; min-width: 0; }
.hp3-art:hover { text-decoration: none; color: var(--ink); border-color: #A9C7DF; }
.hp3-thumb { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #2A6FB0, #6FA8DC); }
.hp3-thumb.teal { background: linear-gradient(135deg, #1FA3A8, #7FD1C7); }
.hp3-art__t { display: grid; gap: 3px; flex: 1; min-width: 0; }
.hp3-art__t b { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.hp3-art__s { font-size: 13.5px; color: var(--ink); opacity: .85; }
.hp3-art__t small { color: var(--muted); font-size: 12.5px; }
.hp3-go { flex: none; color: var(--accent); }
.hp3-back { font-size: 14px; }
.hp3-prose { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px 28px; max-width: 860px; min-width: 0; }
.hp3-prose h1 { margin: 6px 0 14px; font: 700 28px/1.2 var(--font-body); letter-spacing: -.02em; text-transform: none; }
.hp3-prose h2 { font: 700 21px/1.25 var(--font-body); text-transform: none; }
.hp3-prose h3 { font: 700 17px/1.3 var(--font-body); text-transform: none; }
.hp3-meta { color: var(--muted); font-size: 13px; }
.hp3-prose__foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
@media (max-width: 1100px) { .hp3-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .hp3-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .hp3-guides { grid-template-columns: minmax(0, 1fr); } .hp3-prose { padding: 18px; } .hp3-prose h1 { font-size: 23px; }
  .hp3-thumb { width: 42px; height: 42px; } .hp3-prose__foot .btn { width: 100%; justify-content: center; } }

/* «AI-консультант» — будущий дизайн по макету v2 (.ai3-*); раздел в разработке */
.ai3 { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; max-width: 1240px; }
.ai3-stage { position: relative; display: grid; gap: 14px; padding: 28px 24px 24px; border-radius: 26px; border: 1px solid var(--line); min-width: 0;
  background: radial-gradient(120% 70% at 50% 0%, #E3EFFA 0%, #F4F9FD 45%, #fff 100%); }
.ai3-soon { position: absolute; top: 16px; right: 16px; font: 600 10.5px/1 var(--font-body); text-transform: uppercase; letter-spacing: .05em;
  background: #FFF3DC; color: #9A6412; border-radius: 999px; padding: 6px 9px; }
.ai3-welcome { display: grid; justify-items: center; gap: 10px; text-align: center; max-width: 680px; margin: 0 auto; }
.ai3-bot { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #2A6FB0, #1FA3A8); box-shadow: 0 0 0 8px rgba(42,111,176,.1), 0 14px 30px rgba(31,163,168,.25); }
.ai3-welcome h1 { margin: 6px 0 0; font: 700 26px/1.25 var(--font-body); letter-spacing: -.02em; text-transform: none; }
.ai3-welcome h1 span { color: var(--accent); }
.ai3-welcome p { margin: 0; color: var(--muted); font-size: 14.5px; }
.ai3-composer { display: grid; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 14px 16px;
  box-shadow: 0 12px 30px rgba(22,50,74,.06); }
.ai3-composer textarea { width: 100%; border: 0; resize: none; background: transparent; font: inherit; font-size: 15px; padding: 4px; min-height: 64px; }
.ai3-composer textarea:disabled { cursor: not-allowed; color: var(--muted); }
.ai3-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai3-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 13.5px; color: var(--ink); background: #fff; }
.ai3-chip.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; }
.ai3-send { margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #2A6FB0, #1FA3A8); opacity: .55; cursor: not-allowed; }
.ai3-disc { margin: 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.ai3-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ai3-card { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; min-width: 0; }
.ai3-card b { font-size: 14.5px; }
.ai3-card p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.ai3-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.ai3-ic.amber { background: #FFF3DC; color: #B7791F; }
.ai3-ic.teal { background: #DDF3F3; color: #127B7F; }
.ai3-ic.violet { background: #EEEAFB; color: #6A55C8; }
.ai3-ic.rose { background: #FDE8EC; color: #C2415B; }
.ai3-hist { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px; min-width: 0; }
.ai3-new { justify-content: center; opacity: .6; cursor: not-allowed; }
.ai3-hist h2 { margin: 4px 0 0; font: 700 16px/1.2 var(--font-body); text-transform: none; }
.ai3-cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; vertical-align: 1px; }
.ai3-empty { margin: 0; font-size: 13px; }
.ai3-grp { display: grid; border: 1px solid var(--line); border-radius: 16px; padding: 4px; }
.ai3-grp span { padding: 10px 12px; font-size: 13.5px; color: var(--muted); border-radius: 12px; }
@media (max-width: 1100px) { .ai3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .ai3-stage { padding: 44px 14px 16px; } .ai3-welcome h1 { font-size: 21px; } .ai3-cards { grid-template-columns: minmax(0, 1fr); } }

/* «Мои клиенты» v2 (.mc3-*) */
.mc3 { display: grid; gap: 14px; max-width: 1180px; }
.mc3-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mc3-head h1 { margin: 4px 0 0; font: 700 28px/1.15 var(--font-body); letter-spacing: -.02em; text-transform: none; }
.mc3-head p { margin: 6px 0 0; }
.mc3-stats .h3-stat { min-height: 0; }
.mc3-search { gap: 8px; }
.mc3-empty { background: var(--panel, #F3F7FB); border-radius: 20px; padding: 18px 20px; }
.mc3-empty p { margin: 0 0 6px; }
.mc3-panel { background: var(--panel, #F3F7FB); border-radius: 22px; padding: 14px; display: grid; gap: 10px; min-width: 0; }
.mc3-wrap { background: transparent; border: 0; }
.mc3-tbl { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.mc3-tbl th { text-align: left; font: 600 11px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px 12px; background: transparent; border: 0; }
.mc3-tbl td { background: #fff; padding: 12px; border: 0; vertical-align: middle; font-size: 14px; }
.mc3-tbl td:first-child { border-radius: 14px 0 0 14px; }
.mc3-tbl td:last-child { border-radius: 0 14px 14px 0; }
.mc3-tbl .cb { width: 34px; }
.mc3-who b { font-weight: 600; }
.mc3-who .mono { display: block; margin-top: 2px; }
.mc3-st { display: inline-block; font: 600 10.5px/1 var(--font-body); text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: 5px 8px; white-space: nowrap; }
.mc3-st.work { background: #E9EEF3; color: #5E7488; }
.mc3-st.pay { background: var(--accent-soft); color: var(--accent); }
.mc3-st.ready { background: #E2F5EA; color: #23885A; }
.mc3-st.filed { background: #EEEAFB; color: #6A55C8; }
.mc3-act { text-align: right; white-space: nowrap; }
@media (max-width: 1100px) { .mc3-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .mc3-tbl thead { display: none; }
  .mc3-tbl, .mc3-tbl tbody, .mc3-tbl tr, .mc3-tbl td { display: block; width: 100%; }
  .mc3-tbl tr { background: #fff; border-radius: 16px; padding: 10px 12px; margin-bottom: 8px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; }
  .mc3-tbl td { padding: 0; background: transparent; border-radius: 0 !important; grid-column: 2; }
  .mc3-tbl td.cb { grid-column: 1; grid-row: 1 / span 2; width: auto; }
  .mc3-tbl td[data-label]::before { content: attr(data-label); color: var(--muted); }
  .mc3-act { text-align: left; margin-top: 4px; white-space: normal; }
  .mc3-act .btn { width: 100%; justify-content: center; }
  .mc3-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Подсказки (макет v2, экраны 28–30): «?» и «Помощь по странице», знакомство при первом входе, «?» у термина */
.ph-btn { width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: var(--panel); color: var(--side-ink);
  display: grid; place-items: center; cursor: pointer; flex: none; }
.ph-btn:hover, .ph-btn[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); }
.ph-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(400px, 100vw); overflow-y: auto; background: #fff;
  box-shadow: -18px 0 50px rgba(22,50,74,.16); padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 12px; border-radius: 22px 0 0 22px; }
.ph-panel[hidden] { display: none; }
.ph-head { display: flex; gap: 12px; align-items: flex-start; }
.ph-head__ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ph-head > div { flex: 1; min-width: 0; }
.ph-eyebrow { display: block; font: 600 11px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ph-head h2 { margin: 2px 0 0; font: 700 20px/1.2 var(--font-body); text-transform: none; }
.ph-close { flex: none; width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: var(--panel); color: var(--ink);
  font-size: 22px; line-height: 1; cursor: pointer; }
.ph-panel h3 { margin: 6px 0 0; font: 700 15px/1.3 var(--font-body); text-transform: none; }
.ph-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ph-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.ph-steps i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px;
  background: var(--accent-soft); color: var(--accent); }
.ph-faq { border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; }
.ph-faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.ph-faq summary::-webkit-details-marker { display: none; }
.ph-faq summary::after { content: "+"; color: var(--muted); }
.ph-faq[open] summary::after { content: "−"; }
.ph-faq p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.ph-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ph-more { font-size: 14px; }
.tour { position: fixed; inset: 0; z-index: 70; background: rgba(14,31,38,.45); }
.tour-target { position: relative; z-index: 71; box-shadow: 0 0 0 4px #fff, 0 0 0 8px rgba(42,111,176,.55) !important; border-radius: 22px; }
body.tour-open .h3-stats.tour-target { background: #fff; }
.tour-pop { position: fixed; z-index: 72; width: min(340px, calc(100vw - 24px)); background: #fff; border-radius: 20px; padding: 16px 18px;
  box-shadow: 0 20px 50px rgba(14,31,38,.25); display: grid; gap: 6px; }
.tour-pop__step { font: 600 11px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tour-pop__t { font-size: 16px; }
.tour-pop__x { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.tour-pop__bar { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tour-dots { display: flex; gap: 5px; margin-right: auto; }
.tour-dots i { width: 6px; height: 6px; border-radius: 999px; background: #CFDCE7; }
.tour-dots i.on { width: 18px; background: var(--accent); }
.qtip { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; min-height: 0; padding: 0; margin-left: 4px; vertical-align: 1px;
  border: 0; border-radius: 50%; background: #E9EEF3; color: #5E7488; font: 700 11px/1 var(--font-body); cursor: help; }
.qtip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: 260px;
  background: #0E1F26; color: #fff; font: 400 12.5px/1.45 var(--font-body); text-align: left; padding: 8px 10px; border-radius: 10px;
  opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 20; white-space: normal; }
.qtip:hover::after, .qtip:focus-visible::after, .qtip:focus::after { opacity: 1; }
@media (max-width: 640px) { .ph-panel { border-radius: 0; } .qtip::after { max-width: 220px; } }

/* «Как показываем подсказки» (экран 30, .hg-*) */
.hg-rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hg-rules > div { display: grid; gap: 4px; align-content: start; }
.hg-rules .hp3-ic { font-weight: 700; font-size: 15px; }
.hg-rules small { color: var(--muted); font-size: 13px; }
.hg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hg-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.hg-k { font: 600 11px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hg-card h2 { margin: 0; font: 700 17px/1.25 var(--font-body); text-transform: none; }
.hg-when { margin: 0; background: var(--panel, #F3F7FB); border-radius: 14px; padding: 10px 12px; font-size: 13.5px; }
.hg-demo { border: 1.5px dashed var(--line); border-radius: 16px; padding: 14px; min-width: 0; }
.hg-static { position: static; width: auto; box-shadow: 0 8px 24px rgba(22,50,74,.08); }
.hg-stack { display: grid; gap: 8px; }
.hg-stack .alert { margin: 0; }
.hg-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; background: linear-gradient(135deg, #2A6FB0, #1FA3A8);
  color: #fff; border-radius: 16px; padding: 12px 14px; }
.hg-next small { grid-row: 2; opacity: .9; }
.hg-next .btn { grid-row: 1 / span 2; grid-column: 2; }
.hg-field { display: block; border: 1.5px solid #E0566B; border-radius: 12px; padding: 10px 12px; background: #fff; }
.hg-err { display: block; margin-top: 6px; color: #C2415B; font-size: 13px; }
@media (max-width: 1100px) { .hg-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .hg-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .hg-rules { grid-template-columns: minmax(0, 1fr); } }

/* Окно оплаты (макет v2, экран 07, .pay3-*): открывается по #pay-… (:target) */
.pay3 { display: none; position: fixed; inset: 0; z-index: 80; align-items: center; justify-content: center; padding: 16px; }
.pay3:target { display: flex; }
.pay3-veil { position: absolute; inset: 0; background: rgba(14,31,38,.45); backdrop-filter: blur(3px); }
.pay3-box { position: relative; width: min(540px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 26px;
  padding: 24px; display: grid; gap: 14px; box-shadow: 0 30px 70px rgba(14,31,38,.3); }
.pay3-box h2 { margin: -6px 0 0; font: 700 22px/1.25 var(--font-body); text-transform: none; padding-right: 40px; }
.pay3-box .eyebrow { margin: 0; }
.pay3-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel); color: var(--ink); font-size: 22px; line-height: 1; text-decoration: none; }
.pay3-close:hover { text-decoration: none; background: var(--accent-soft); }
.pay3-bill { background: var(--panel, #F3F7FB); border-radius: 18px; padding: 4px 16px; }
.pay3-bill > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #D5E1EA; font-size: 14.5px; }
.pay3-bill > div:last-child { border-bottom: 0; }
.pay3-bill > div > span:last-child { white-space: nowrap; color: var(--muted); }
.pay3-bill .total { font-weight: 700; font-size: 16px; }
.pay3-bill .total > span:last-child { color: var(--ink); }
.pay3-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pay3-m { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 14px; cursor: pointer; }
.pay3-m:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pay3-m:has(input:disabled) { opacity: .6; cursor: default; }
.pay3-m input { margin-top: 3px; accent-color: var(--accent); }
.pay3-m b { display: block; font-size: 14.5px; }
.pay3-m small { display: block; color: var(--muted); font-size: 12.5px; }
.pay3-btn { width: 100%; justify-content: center; min-height: 54px; font-size: 16px; gap: 12px; }
.pay3-price { background: rgba(255,255,255,.22); border-radius: 999px; padding: 6px 12px; font-weight: 700; white-space: nowrap; }
.pay3-go { margin: 0; }
.pay3:has(input[value=balance]:checked) .pay3-go--card, .pay3:has(input[value=card]:checked) .pay3-go--balance { display: none; }
.pay3-note { margin: 0; text-align: center; font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) { .pay3 { align-items: flex-end; padding: 0; } .pay3-box { border-radius: 24px 24px 0 0; padding: 20px 16px; max-height: 92vh; }
  .pay3-methods { grid-template-columns: minmax(0, 1fr); } .pay3-box h2 { font-size: 19px; } }

/* Бэк-офис v2 (макет кабинет_v2, экран 27): тёмное меню, «Сводка» (.of3-*) */
.office-shell .side { background: #13262E; color: #C9D6DF; border-color: transparent; }
.office-shell .side-brand__name { color: #fff; }
.office-shell .side-brand__sub { color: #8FA6B5; }
.office-shell .side-link { color: #C9D6DF; }
.office-shell .side-link .ic { color: #8FA6B5; }
.office-shell .side-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.office-shell .side-link.on, .office-shell .side-link.on .ic { color: #fff; }
.office-shell .side-sep { background: rgba(255,255,255,.12); }
.office-shell .side-count { background: #fff; color: #13262E; }
.role-tag { font: 600 11px/1 var(--font-body); text-transform: uppercase; letter-spacing: .05em; background: #EEEAFB; color: #6A55C8;
  border-radius: 999px; padding: 7px 10px; white-space: nowrap; align-self: center; }
.of3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 1240px; }
.of3-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.of3-head h1 { margin: 4px 0 0; font: 700 28px/1.15 var(--font-body); letter-spacing: -.02em; text-transform: none; }
.of3-head__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.of3-kpi .h3-stat { min-height: 112px; }
.of3-spark { margin-top: auto; height: 40px; }
.of3-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.of3-side { display: grid; gap: 14px; min-width: 0; }
.of3-panel { background: var(--panel, #F3F7FB); border-radius: 22px; padding: 16px; display: grid; gap: 8px; min-width: 0; }
.of3-panel.white { background: #fff; border: 1px solid var(--line); }
.of3-panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.of3-panel__head h2 { margin: 0; font: 700 17px/1.2 var(--font-body); text-transform: none; }
.of3-panel__head a { font-size: 13.5px; }
.of3-row { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 11px 14px; color: var(--ink); text-decoration: none; min-width: 0; }
a.of3-row:hover { text-decoration: none; color: var(--ink); box-shadow: 0 0 0 1px #A9C7DF inset; }
.of3-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.of3-ic.teal { background: #DDF3F3; color: #127B7F; }
.of3-ic.err { background: #FDE8EC; color: #C2415B; }
.of3-row__t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.of3-row__t b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.of3-row__t small { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.of3-st { flex: none; font: 600 10.5px/1 var(--font-body); text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: 5px 8px; white-space: nowrap; }
.of3-st.wait { background: #FFF3DC; color: #9A6412; }
.of3-st.run { background: var(--accent-soft); color: var(--accent); }
.of3-st.ok { background: #E2F5EA; color: #23885A; }
.of3-st.err { background: #FDE8EC; color: #C2415B; }
.of3-health { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
/* «Сводка»: блок «Диски и копии» (16.10.2026) */
.of3-disk { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.of3-disk__t { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.of3-disk__t span { color: var(--ink, #1F3A52); font-weight: 600; }
.of3-disk small { font-size: 12.5px; color: var(--muted, #6B7C8F); }
.of3-bar { display: block; height: 8px; border-radius: 99px; background: #E6EEF5; overflow: hidden; }
.of3-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2A6FB0, #1FA3A8); }
.of3-bar.warn i { background: #E0A43A; }
.of3-bar.err i { background: #C2415B; }
.of3-bar .spk--0 { width: 2%; }
.of3-bar .spk--10 { width: 10%; }
.of3-bar .spk--20 { width: 20%; }
.of3-bar .spk--30 { width: 30%; }
.of3-bar .spk--40 { width: 40%; }
.of3-bar .spk--50 { width: 50%; }
.of3-bar .spk--60 { width: 60%; }
.of3-bar .spk--70 { width: 70%; }
.of3-bar .spk--80 { width: 80%; }
.of3-bar .spk--90 { width: 90%; }
.of3-bar .spk--100 { width: 100%; }
.of3-bk { display: grid; gap: 6px; padding-top: 10px; font-size: 13px; }
.of3-bk > b { font-size: 14px; }
.of3-bk__r { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--muted, #6B7C8F); }
.of3-load { display: grid; gap: 8px; }
.of3-load__sub { font-size: 12.5px; color: var(--muted, #6B7C8F); }
.of3-load__big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.of3-load__big b { font-size: 34px; line-height: 1; font-weight: 700; color: var(--ink, #1F3A52); }
.of3-load__big span { font-size: 14px; color: var(--muted, #6B7C8F); }
.of3-load__nums { display: grid; gap: 3px; font-size: 13px; color: var(--muted, #6B7C8F); }
.of3-load__nums b { color: var(--ink, #1F3A52); font-weight: 600; }
.of3-load__adv { display: flex; gap: 8px; align-items: flex-start; margin: 2px 0 0; padding: 10px 12px; border-radius: 12px;
  font-size: 13.5px; background: #E2F5EA; color: #1C5E3E; overflow-wrap: anywhere; }
.of3-load__adv i { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: #23885A; }
.of3-load__adv.warn { background: #FFF3DC; color: #7A4E0E; }
.of3-load__adv.warn i { background: #D9921F; }
.of3-load__adv.fail { background: #FDE8E8; color: #8A1F1F; }
.of3-load__adv.fail i { background: #C93A3A; }
.of3-hc { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; }
.of3-hc i { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: #23885A; box-shadow: 0 0 0 3px #E2F5EA; }
.of3-hc.warn i { background: #D9921F; box-shadow: 0 0 0 3px #FFF3DC; }
.of3-hc.fail i { background: #C2415B; box-shadow: 0 0 0 3px #FDE8EC; }
.of3-empty { margin: 4px 2px; font-size: 13.5px; }
/* «Много без оплаты» (17.10.2026): клиенты, у кого сформировано больше порогов без оплаты */
.of3-heavy { margin: 0 0 16px; }
.of3-heavy__note { margin: 0 2px; }
.of3-heavy__tags { flex: none; display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 45%; }
@media (max-width: 480px) { .of3-heavy .of3-ic { display: none; } }
.of3-pay { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin: 0 0 16px; scroll-margin-top: 80px; }
.of3-pay h2 { margin: 0 0 8px; }
.of3-more { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; }
.of3-more summary { cursor: pointer; font-weight: 600; }
/* Бэк-офис общий для двух сайтов: каждый сайт — своя вкладка (lk.ndfl-help.ru / витрина lk.ndflkit.ru), метка в поиске */
.site-tag { display: inline-block; font: 600 10.5px/1.5 var(--font-body); letter-spacing: .02em; padding: 1px 8px; border-radius: 999px;
  background: var(--accent-soft, #E6F0FA); color: var(--accent, #2A6FB0); white-space: nowrap; vertical-align: 1px; }
.site-tag.kit { background: #E3F6F6; color: #137F83; }
.site-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 4px 0 14px; }
.site-tabs__t { padding: 9px 16px 10px; font-weight: 600; font-size: 14.5px; color: var(--muted); text-decoration: none;
  border-bottom: 3px solid transparent; margin-bottom: -1px; border-radius: 10px 10px 0 0; }
.site-tabs__t:hover { color: var(--ink); background: #F3F7FB; text-decoration: none; }
.site-tabs__t.on { color: var(--accent, #2A6FB0); border-bottom-color: var(--accent, #2A6FB0); }
.site-tabs__t.kit.on { color: #137F83; border-bottom-color: #1FA3A8; }
.of3 .site-tabs { margin: 0; }
.site-tabs__n { font-weight: 500; }
@media (max-width: 1100px) { .of3-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .of3-health { grid-template-columns: repeat(2, minmax(0, 1fr)); } .of3-head h1 { font-size: 24px; } .role-tag { display: none; } }

/* Строка сверху (14.10.2026): все элементы одной высоты 44 px; на узких экранах лишнее прячется, ничего не обрезается */
.app-shell .topbar { gap: 10px; }
.app-shell .top-search { flex: 1 1 280px; max-width: 520px; min-width: 160px; height: 44px; border-radius: 22px; }
.app-shell .top-search input { height: 44px; }
.app-shell .top-right { flex: none; gap: 8px; }
.app-shell .top-right > * { flex: none; }
.qmini { height: 44px; padding: 0 14px; box-sizing: border-box; }
.app-shell .top-right a.balance { height: 44px; box-sizing: border-box; padding: 0 5px 0 14px; }
.app-shell .top-right a.balance:not(:has(.balance-pill)) { padding-right: 14px; }
.app-shell .balance-pill { padding: 0 10px; height: 34px; display: inline-flex; align-items: center; }
.role-tag { height: 32px; display: inline-flex; align-items: center; box-sizing: border-box; }
@media (max-width: 1440px) { .app-shell .who { display: none; } }
@media (max-width: 1280px) { .app-shell .top-right a.balance .balance-pill { display: none; } .app-shell .top-right a.balance { padding-right: 14px; } }
@media (max-width: 1100px) { .qmini .qmini__bar { display: none; } }
@media (max-width: 900px) { .app-shell .top-search { flex-basis: 100%; max-width: none; } .qmini { padding: 0 10px; } .app-shell .top-right { flex: 0 1 auto; gap: 6px; } }
@media (max-width: 640px) { .qmini, .app-shell .top-right a.balance { height: 40px; } .ph-btn, .bell-btn { width: 40px; height: 40px; } }
@media (max-width: 420px) { .app-shell .topbar__logo { display: none; } .app-shell .topbar { gap: 8px; } .app-shell .top-right { gap: 4px; } .qmini { padding: 0 8px; } }   /* логотип есть в выезжающем меню — строка сверху в одну линию */

/* два варианта в окне оплаты расчёта брокера: «Получить расчёт» / «Получить налоговую декларацию» */
.pay3-want { display: grid; gap: 12px; }
.n3-bcalc { margin: 0 0 12px; }
.n3-bcalc input { display: none; }
