/* Личный кабинет НДФЛ (СМАРТДЕЛО). Шрифты, логотип и шапка — как на основном сайте 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; }

/* сообщения */
.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); }
  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: 64px minmax(64px, 1fr) auto; gap: 6px; min-width: 200px; }
.credit-form input { padding: 8px 10px; font-size: 14px; }
td.p-main .tag { font-size: 11px; padding: 1px 8px; }
@media (max-width: 760px) {
  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, table.partners 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); }
}
