@font-face {
    font-family: Manrope;
    src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: Manrope;
    src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
    color-scheme: dark;
    /* графит */
    --bg: #0e0e10;
    --surface: #151517;
    --surface-2: #1b1b1e;
    --surface-3: #222226;
    --line: #242428;
    --line-2: #2f2f34;
    --line-3: #3a3a40;
    --text: #ececee;
    --text-2: #9d9da4;
    --text-3: #6b6b72;
    /* чёрно-белый акцент */
    --accent: #f2f2f3;
    --accent-hover: #d6d6d9;
    --on-accent: #0e0e10;
    --accent-soft: rgba(255, 255, 255, .08);
    /* единственный цвет — приглушённый красный для ошибок */
    --err: #e5706c;
    --err-soft: rgba(229, 112, 108, .08);
    --err-line: rgba(229, 112, 108, .3);

    --r-xl: 20px;
    --r-lg: 14px;
    --r-md: 12px;
    --font: Manrope, system-ui, "Segoe UI", sans-serif;
    --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --wrap: 1200px;
    --gutter: clamp(12px, 2.4vw, 24px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 var(--font);
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, label { touch-action: manipulation; }
svg { display: block; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap {
    width: min(100%, var(--wrap));
    margin-inline: auto;
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
}
noscript { display: block; }

/* ---------- Шапка ---------- */
.top {
    position: sticky;
    top: 0;
    z-index: 30;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: 6px;
    background: linear-gradient(var(--bg) 72%, rgba(14, 14, 16, 0));
}
.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
    padding: 8px 8px 8px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.logo-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--on-accent); }
.bar-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar-nav { display: flex; align-items: center; gap: 4px; }
.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color .15s, color .15s;
}
.nav-item:hover { background: var(--surface-3); color: var(--text); }
.nav-item:disabled { opacity: .5; cursor: default; }
.nav-item.is-id { background: var(--surface-2); color: var(--text); font-weight: 600; cursor: default; }
.lang { display: inline-flex; flex: none; padding: 3px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface-2); }
.lang button { min-width: 38px; height: 30px; padding: 0 9px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; transition: background-color .15s, color .15s; }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

main { display: grid; gap: 16px; align-content: start; padding-block: 10px calc(48px + env(safe-area-inset-bottom)); }
.view-enter > * { animation: rise .45s var(--ease) both; }
.view-enter > *:nth-child(2) { animation-delay: .05s; }
.view-enter > *:nth-child(3) { animation-delay: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Карточки ---------- */
.card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
.eyebrow { color: var(--text-3); font-size: 13px; font-weight: 600; }
h1 { font-size: clamp(22px, 2vw, 26px); font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
h2 { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
h1:focus, h2:focus { outline: none; }
.copy { margin-top: 4px; color: var(--text-2); font-size: 14.5px; overflow-wrap: anywhere; }

/* ---------- Карточка продукта ---------- */
.product { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); align-items: stretch; gap: 28px; padding: 16px; }
.product-body { display: grid; align-content: center; gap: 20px; min-width: 0; padding: 12px 12px 12px 0; }
.product-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; }
.meta { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; }
.meta b { padding: 2px 9px; border-radius: 7px; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.product-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, .45fr); gap: 10px; }
.product-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; }

/* обложка: типографика вместо картинки */
.art {
    position: relative;
    display: grid;
    align-content: space-between;
    min-height: 220px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background-color: var(--surface-2);
    background-image: radial-gradient(var(--line-2) 1px, transparent 1px);
    background-position: -8px -8px;
    background-size: 16px 16px;
}
.art-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.art-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.art-num { display: flex; align-items: baseline; gap: 10px; }
.art-num b { color: var(--accent); font-size: 104px; font-weight: 700; line-height: .82; letter-spacing: -.06em; }
.art-num span { color: var(--text); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.art-num small { display: block; color: var(--text-3); font-size: 13px; font-weight: 500; }

/* ---------- Поля ---------- */
.f {
    position: relative;
    display: block;
    min-width: 0;
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    background: var(--surface-2);
    transition: border-color .15s, background-color .15s;
}
.f:hover { border-color: var(--line-3); }
.f:focus-within { border-color: var(--accent); background: var(--surface-3); }
.f input {
    display: block;
    width: 100%;
    height: 58px;
    padding: 23px 16px 7px;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    outline: none;
}
.f.has-end input { padding-right: 52px; }
.f-label {
    position: absolute;
    top: 50%;
    left: 16px;
    right: 52px;
    overflow: hidden;
    color: var(--text-3);
    font-size: 15.5px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
    pointer-events: none;
    transform: translateY(-50%);
    transition: top .15s var(--ease), font-size .15s var(--ease), color .15s;
}
.f input:focus + .f-label, .f input:not(:placeholder-shown) + .f-label { top: 16px; color: var(--text-2); font-size: 12px; }
.f-end { position: absolute; top: 50%; right: 10px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--text-3); transform: translateY(-50%); }
button.f-end:hover { background: var(--line-2); color: var(--text); }
.code-input { text-transform: uppercase; letter-spacing: .08em; }
.fields { display: grid; gap: 10px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hint { display: flex; align-items: flex-start; gap: 8px; color: var(--text-3); font-size: 13px; }
.hint svg { margin-top: 2px; }
.hint code { padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--text-2); font: 500 12px/1.5 var(--mono); white-space: nowrap; }

/* обычные подписанные поля (форма жалобы) */
.control { display: grid; gap: 6px; }
.control label { color: var(--text-2); font-size: 13px; font-weight: 600; }
.control select, .control textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    background: var(--surface-2);
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: border-color .15s;
}
.control select:focus, .control textarea:focus { border-color: var(--accent); }
.control textarea { min-height: 96px; resize: vertical; }
.report { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-lg); }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    max-width: 100%;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: background-color .15s, border-color .15s, color .15s, transform .15s, opacity .15s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary { border-color: var(--line-2); background: var(--surface-2); color: var(--text); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-3); }
.btn-lg { min-height: 58px; border-radius: var(--r-lg); font-size: 16px; }
.btn-wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] svg { animation: nudge .9s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(3px); } }
.link { display: inline-flex; align-items: center; gap: 2px; padding: 4px 0; border: 0; background: none; color: var(--text-2); font-size: 14px; font-weight: 600; }
.link:hover { color: var(--text); }

/* ---------- Теги и статус ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.tag { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--text-2); font-size: 13px; font-weight: 600; line-height: 1.4; }
.tag svg { color: var(--text-3); }
.tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag.accent { border-color: transparent; background: var(--accent-soft); color: var(--accent); }
.tag.accent svg { color: var(--accent); }

.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.tone-active i, .tone-go i, .tone-hold i { background: var(--accent); }
.tone-active i { animation: pulse 1.4s ease-in-out infinite; }
.tone-hold i { animation: pulse .9s ease-in-out infinite; }
.tone-stop i { background: var(--err); }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- Прогресс ---------- */
.progress { display: grid; gap: 10px; }
.progress-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; color: var(--text-2); font-size: 13.5px; }
.progress-top b { color: var(--text); font-weight: 700; }
.segments { display: grid; grid-template-columns: repeat(var(--n, 8), minmax(0, 1fr)); gap: 4px; }
.seg { position: relative; height: 6px; overflow: hidden; border-radius: 3px; background: var(--line-2); }
.seg.done { background: var(--accent); }
.seg.active { background: var(--accent-soft); }
.seg.active::after { content: ""; position: absolute; inset: 0; width: 50%; border-radius: inherit; background: var(--accent); animation: load 1.6s ease-in-out infinite; }
.seg.tap { background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.seg.error { background: var(--err); }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }

/* ---------- Сетка заявки ---------- */
.session-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.action { display: grid; gap: 20px; padding: 26px; }

.live { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface-2); }
.live b { display: block; font-size: 14.5px; font-weight: 700; }
.live span { display: block; color: var(--text-2); font-size: 13.5px; overflow-wrap: anywhere; }
.spinner { width: 20px; height: 20px; flex: none; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: rotate .8s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }

.tap-box { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 22px; padding: 20px; border: 1px solid var(--line-3); border-radius: var(--r-lg); background: var(--surface-2); }
.tap-box.is-text { grid-template-columns: minmax(0, 1fr); }
.tap-num { display: grid; place-items: center; min-width: 116px; padding: 14px 20px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-size: 54px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.tap-steps { display: grid; gap: 9px; counter-reset: s; }
.tap-steps li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; counter-increment: s; }
.tap-steps li::before { content: counter(s); display: grid; place-items: center; width: 22px; height: 22px; flex: none; border: 1px solid var(--line-2); border-radius: 6px; color: var(--text); font-size: 12px; font-weight: 700; }
.tap-steps b { color: var(--text); font-weight: 700; }
.resend-count { color: var(--text-3); font-size: 13px; align-self: center; }

.alert { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--err-line); border-radius: var(--r-lg); background: var(--err-soft); color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.alert svg { margin-top: 1px; color: var(--err); }
.alert b { display: block; margin-bottom: 2px; color: var(--text); font-weight: 700; }
.alert .note-text { white-space: pre-wrap; }
.notice { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface-2); color: var(--text-2); font-size: 14px; }
.notice svg { margin-top: 1px; color: var(--text-3); }
.notice b { display: block; margin-bottom: 2px; color: var(--text); font-weight: 700; }

.message { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2); color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.message.error { border-color: var(--err-line); background: var(--err-soft); color: #f0b4b2; }

.success { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface-2); }
.success-ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--accent); color: var(--on-accent); animation: pop .45s cubic-bezier(.2, 1.5, .4, 1) .1s both; }
.success h3 { font-size: 16px; font-weight: 700; }
.success p { margin-top: 2px; color: var(--text-2); font-size: 14px; }
@keyframes pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
.summary { display: grid; border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; font-size: 14px; }
.summary div + div { border-top: 1px solid var(--line); }
.summary dt { color: var(--text-2); }
.summary dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.note { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; }

/* ---------- Вкладки и списки ---------- */
.side { padding: 6px 22px 18px; }
.tabs { display: flex; gap: 4px; margin-inline: -4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 14px 8px 12px; border: 0; background: none; color: var(--text-3); font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: color .15s; }
.tab:hover { color: var(--text-2); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; right: 4px; bottom: -1px; left: 4px; height: 2px; border-radius: 2px; background: var(--text); }
.tab-count { padding: 0 6px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 700; }

.rows { display: grid; gap: 2px; margin-top: 10px; }
.row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-inline: -10px; padding: 9px 10px; border-radius: 12px; }
.row.is-current { background: var(--surface-2); }
.row b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.row small { display: block; color: var(--text-3); font-size: 12.5px; line-height: 1.4; overflow-wrap: anywhere; }
.row .event-note { margin-top: 2px; color: var(--text-2); white-space: pre-wrap; }
.row .row-end { color: var(--text-3); font-size: 12.5px; white-space: nowrap; }
.row.pending b { color: var(--text-2); font-weight: 500; }
.ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); color: var(--text-3); font-size: 13px; font-weight: 700; }
.ico.done, .ico.go { color: var(--accent); }
.ico.active { border-color: transparent; background: var(--accent); color: var(--on-accent); }
.ico.active .spinner { width: 16px; height: 16px; border-color: rgba(14, 14, 16, .25); border-top-color: var(--on-accent); }
.ico.tap, .ico.hold { border-color: var(--text); color: var(--text); }
.ico.error, .ico.stop { border-color: var(--err-line); background: var(--err-soft); color: var(--err); }
.ico.idle { color: var(--text-2); }
.empty { padding: 18px 0 6px; color: var(--text-3); font-size: 14px; }

/* ---------- Как это работает ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin: 8px 2px 12px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.step { display: grid; gap: 14px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.step-top { display: flex; justify-content: space-between; align-items: center; }
.step-top > span:last-child { color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.step-ico { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); color: var(--text); }
.step:last-child .step-ico { border-color: transparent; background: var(--accent); color: var(--on-accent); }
.step b { display: block; font-size: 15px; font-weight: 700; }
.step p { margin-top: 2px; color: var(--text-3); font-size: 13.5px; }
[id] { scroll-margin-top: 92px; }

.hint-pop { display: flex; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface-2); color: var(--text-2); font-size: 14px; }
.hint-pop svg { margin-top: 2px; color: var(--text-3); }

/* ---------- Инструкция 2FA ---------- */
.guide { display: grid; gap: 18px; }
.guide-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.guide-head .copy { margin-top: 0; }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.guide-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; padding-block: 14px; border-top: 1px solid var(--line); }
.guide-num { color: var(--text-3); font-size: 12.5px; font-weight: 700; line-height: 1.6; letter-spacing: .04em; }
.guide-item b { color: var(--text); font-weight: 600; }
.guide-title { display: block; color: var(--text); font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.guide-item p { margin-top: 4px; color: var(--text-2); font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; }
.guide-item a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.guide-item a:hover { text-decoration-color: var(--accent); }
.guide-note b { display: block; margin-bottom: 2px; color: var(--text); font-weight: 700; }
.guide-note code { padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--text); font: 500 12px/1.5 var(--mono); white-space: nowrap; }

.guide-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--line-3);
    border-radius: var(--r-lg);
    background: var(--surface-2);
    color: var(--text);
    text-align: left;
    transition: border-color .15s, background-color .15s;
}
.guide-trigger:hover { border-color: var(--accent); background: var(--surface-3); }
.guide-trigger-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.guide-trigger-main svg { color: var(--accent); }
.guide-trigger-main b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.guide-trigger-main small { display: block; margin-top: 2px; color: var(--text-2); font-size: 12.5px; font-weight: 500; line-height: 1.35; }
.guide-trigger-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: none;
    padding: 6px 10px;
    border-radius: 9px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

/* ---------- Модальное окно ---------- */
.modal {
    width: min(620px, calc(100vw - 24px));
    max-height: min(86vh, 760px);
    max-height: min(86svh, 760px);
    margin: auto;
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: var(--r-xl);
    background: var(--surface);
    color: var(--text);
    overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; animation: modal-in .2s var(--ease) both; }
.modal::backdrop { background: rgba(6, 6, 8, .74); backdrop-filter: blur(4px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 17px; line-height: 1.3; }
.modal-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text-2);
    transition: background-color .15s, color .15s, border-color .15s;
}
.modal-close:hover { border-color: var(--line-3); background: var(--surface-3); color: var(--text); }
.modal-body { display: grid; gap: 16px; padding: 18px 20px; overflow-y: auto; overscroll-behavior: contain; }
.modal-body .copy { margin-top: 0; }
.modal-body .guide-list { grid-template-columns: minmax(0, 1fr); }
.modal-body .guide-item { padding-block: 12px; }
.modal-body .guide-item:first-child { padding-top: 0; border-top: 0; }
.modal-body .guide-item:last-child { padding-bottom: 0; }
.modal-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

/* ---------- Адаптив ---------- */
@media (max-width: 1040px) {
    .session-grid { grid-template-columns: minmax(0, 1fr); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .product { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .product-body { padding: 4px 8px 8px; }
    .art { min-height: 168px; }
    .art-num b { font-size: 84px; }
    .session .art { display: none; }
    .session .product-body { padding: 8px; }
    .product-form { grid-template-columns: minmax(0, 1fr); }
    .guide-list { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- Телефон ---------- */
@media (max-width: 600px) {
    main { gap: 12px; }
    .top { padding-top: max(8px, env(safe-area-inset-top)); }
    .bar { min-height: 56px; padding: 6px 6px 6px 12px; border-radius: 14px; }
    .logo { font-size: 16px; }
    .logo-mark { width: 28px; height: 28px; }
    .nav-item { padding: 0 10px; }
    .nav-item .lbl { display: none; }
    .nav-item.is-id .lbl { display: inline; }
    .lang button { height: 34px; }
    .card { padding: 18px; }
    .action { padding: 20px 18px; }
    .side { padding: 4px 18px 14px; }

    /* обложка превращается в компактную полосу */
    .product { gap: 14px; padding: 12px; }
    .product-body, .session .product-body { gap: 16px; padding: 4px 6px 6px; }
    .art { grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 0; padding: 14px 16px; }
    .art-num { gap: 8px; }
    .art-num b { font-size: 54px; }
    .art-num span { font-size: 15px; }
    .product-head .meta { display: none; }
    .product-foot { gap: 10px; }
    .link { min-height: 40px; }

    /* теги заявки — одной строкой с прокруткой */
    .session .tags {
        flex-wrap: nowrap;
        margin-inline: -18px;
        padding-inline: 18px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
        mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    }
    .session .tags::-webkit-scrollbar { display: none; }
    .session .tag { flex: none; }
    .session .tag span { overflow: visible; }

    .field-row, .steps { grid-template-columns: minmax(0, 1fr); }
    .step { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
    .step-top > span:last-child { display: none; }
    .btn-row .btn { flex: 1 1 100%; }
    .tap-box { grid-template-columns: minmax(0, 1fr); justify-items: stretch; gap: 16px; padding: 16px; }
    .tap-num { padding: 18px; font-size: 64px; }
    .success { padding: 16px; }
    .row.pending small { display: none; }
    .guide-trigger { flex-wrap: wrap; padding: 12px 14px; }
    .guide-trigger-cta { width: 100%; justify-content: center; }
    .modal { width: calc(100vw - 16px); max-height: 90svh; border-radius: 16px; }
    .modal-head, .modal-body, .modal-foot { padding-inline: 16px; }
    .modal-foot .btn { flex: 1 1 100%; }
}
@media (max-width: 480px) {
    .bar { gap: 8px; }
    .bar-right { gap: 4px; }
    .nav-item.is-id { display: none; }
    .lang button { min-width: 36px; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
