/* ==========================================================================
   SMS Gateway — стили сайта и кабинета
   Меняли файл — поднимите ?v= в resources/views/layouts/app.blade.php
   ========================================================================== */

:root {
    --ink: #16202E;
    --muted: #5B6675;
    --paper: #F3F5F7;
    --surface: #FFFFFF;
    --line: #DDE2E8;
    --signal: #1F6F5C;
    --signal-dark: #17574A;
    --signal-soft: #E3F0EC;
    --sim: #C8A44D;
    --danger: #B42318;
    --danger-soft: #FDECEA;

    --font-display: "Unbounded", "Golos Text", system-ui, sans-serif;
    --font-text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-code: ui-monospace, "Cascadia Mono", Consolas, monospace;

    --radius-s: 6px;
    --radius-m: 12px;
    --wrap: 1120px;
}

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

[hidden] { display: none !important; }

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ol { margin: 0; }

a { color: var(--signal); text-underline-offset: 3px; }
a:hover { color: var(--signal-dark); }

code {
    font-family: var(--font-code);
    font-size: .88em;
    background: var(--signal-soft);
    padding: .1em .35em;
    border-radius: 4px;
    white-space: nowrap;
}

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

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

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

.skip-link {
    position: absolute;
    left: 16px; top: -48px;
    background: var(--ink);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius-s);
    z-index: 10;
}
.skip-link:focus { top: 12px; }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 2px solid var(--signal);
    border-radius: var(--radius-s);
    background: var(--signal);
    color: #fff;
    font: 600 16px/1 var(--font-text);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--signal-dark); border-color: var(--signal-dark); color: #fff; }

.btn--ghost { background: transparent; color: var(--signal); }
.btn--ghost:hover { background: var(--signal-soft); color: var(--signal-dark); }

.btn--small { min-height: 38px; padding: 0 14px; font-size: 15px; }
.btn--block { width: 100%; }

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

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.site-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font: 600 17px/1 var(--font-display);
    text-decoration: none;
}
.logo:hover { color: var(--ink); }
.chip { flex: none; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav__link {
    padding: 8px 12px;
    border-radius: var(--radius-s);
    color: var(--ink);
    text-decoration: none;
    font-size: 16px;
}
.site-nav__link:hover { background: var(--paper); color: var(--ink); }
.site-nav__link.is-current { color: var(--signal); font-weight: 600; }

.site-nav__form { margin: 0; }
.site-nav__button {
    border: 0;
    background: none;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
}

/* ---------- Главная: первый экран ---------- */

.hero {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 72px 0 80px;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 56px;
    align-items: center;
}

.hero__title {
    font: 600 clamp(32px, 4.4vw, 52px)/1.12 var(--font-display);
    letter-spacing: -.01em;
    max-width: 14em;
}

.hero__lead {
    margin-top: 22px;
    max-width: 34em;
    color: var(--muted);
    font-size: 19px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero__note {
    margin-top: 16px;
    color: var(--muted);
    font-size: 15px;
}

/* Демо: код набирается по цифре, затем приходит SMS */

.otp-demo {
    padding: 28px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
}

.otp-demo__request {
    font: 14px/1.4 var(--font-code);
    color: var(--muted);
}
.otp-demo__request span {
    color: var(--signal);
    font-weight: 700;
    margin-right: 6px;
}

.otp-cells {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 22px 0 26px;
}

.otp-cell {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    background: var(--surface);
    border: 1px solid var(--line);
    border-bottom: 4px solid var(--sim);
    border-radius: var(--radius-s);
    font: 600 clamp(36px, 5vw, 60px)/1 var(--font-display);
    font-variant-numeric: tabular-nums;
}

.sms-bubble {
    position: relative;
    max-width: 290px;
    padding: 12px 16px 10px;
    background: var(--signal);
    color: #fff;
    border-radius: 18px 18px 18px 4px;
}
.sms-bubble p { font-size: 16px; line-height: 1.4; }
.sms-bubble b { letter-spacing: .06em; }
.sms-bubble time {
    display: block;
    margin-top: 2px;
    text-align: right;
    font-size: 12px;
    opacity: .75;
}

/* Состояния анимации — включаются из app.js */
.otp-demo.is-animating .otp-cell { color: transparent; }
.otp-demo.is-animating .otp-cell.is-filled { color: var(--ink); animation: cell-in .22s ease-out; }
.otp-demo.is-animating .otp-cell.is-caret { box-shadow: inset 0 -3px 0 var(--ink); }
.otp-demo.is-animating .sms-bubble { opacity: 0; transform: translateY(10px); }
.otp-demo.is-animating .sms-bubble.is-shown {
    opacity: 1;
    transform: none;
    transition: opacity .35s ease-out, transform .35s ease-out;
}

@keyframes cell-in {
    from { transform: scale(.85); }
    to   { transform: scale(1); }
}

/* ---------- Секции ---------- */

.section { padding: 80px 0; }
.section--tinted { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--flush { padding-top: 0; }

.section__title {
    font: 600 clamp(24px, 2.6vw, 32px)/1.2 var(--font-display);
    margin-bottom: 32px;
    max-width: 22em;
}

/* Шаги — это последовательность, поэтому нумерация */
.steps {
    list-style: none;
    padding: 0;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}
.steps__item {
    counter-increment: step;
    padding-top: 20px;
    border-top: 2px solid var(--ink);
}
.steps__item::before {
    content: counter(step);
    display: block;
    font: 600 15px/1 var(--font-display);
    color: var(--signal);
    margin-bottom: 14px;
}
.steps__item h3 { font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
.steps__item p { color: var(--muted); }

/* Код */
.code-split {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
}
.code-split__text p { color: var(--muted); max-width: 32em; }
.code-split .section__title { margin-bottom: 18px; }

.code {
    margin: 0;
    padding: 22px 24px;
    background: var(--ink);
    color: #E6EBF1;
    border-radius: var(--radius-m);
    overflow-x: auto;
    font: 14px/1.65 var(--font-code);
}
.code code { background: none; padding: 0; font-size: inherit; color: inherit; white-space: inherit; }
.code__comment { color: #8FA0B5; }

/* Возможности */
.features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 56px;
}
.features__item dt { font-weight: 600; font-size: 19px; margin-bottom: 6px; }
.features__item dd { color: var(--muted); max-width: 30em; }

/* Призыв */
.cta { background: var(--ink); color: #fff; padding: 64px 0; }
.cta__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.cta__title { font: 600 clamp(22px, 2.4vw, 30px)/1.25 var(--font-display); max-width: 18em; }
.cta .btn { background: var(--sim); border-color: var(--sim); color: var(--ink); }
.cta .btn:hover { background: #B8933D; border-color: #B8933D; }

/* ---------- Заголовок внутренних страниц ---------- */

.page-head { padding: 64px 0 40px; }
.page-head__title { font: 600 clamp(30px, 3.6vw, 44px)/1.15 var(--font-display); }
.page-head__lead { margin-top: 14px; color: var(--muted); font-size: 19px; max-width: 36em; }

/* ---------- Цены ---------- */

.plans-scroll {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
}

.plans {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 16px;
}

.plans th, .plans td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}
.plans tbody th { font-weight: 500; color: var(--muted); width: 22%; }
.plans tbody td { font-variant-numeric: tabular-nums; }
.plans tr:last-child th, .plans tr:last-child td { border-bottom: 0; }

.plans__head { padding-top: 28px !important; padding-bottom: 22px !important; }
.plans__name { display: block; font: 600 18px/1.2 var(--font-display); }
.plans__price { display: block; margin-top: 10px; font: 600 26px/1.1 var(--font-display); white-space: nowrap; }
.plans__price small { font: 400 15px var(--font-text); color: var(--muted); margin-left: 2px; }
.plans__for { display: block; margin-top: 8px; font-weight: 400; color: var(--muted); font-size: 15px; }

.plans__badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 8px;
    background: var(--sim);
    color: var(--ink);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.plans .is-featured { background: var(--signal-soft); }
.plans__actions td { padding-top: 20px; padding-bottom: 24px; }
.yes { color: var(--signal); font-weight: 500; }

.faq__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}
.faq__list dt { font-weight: 600; margin-bottom: 6px; }
.faq__list dd { color: var(--muted); }

/* ---------- Вход и регистрация ---------- */

.auth { padding: 64px 24px 96px; }

.auth__box {
    max-width: 420px;
    margin: 0 auto;
}

.auth__title { font: 600 32px/1.15 var(--font-display); }
.auth__lead { margin-top: 12px; color: var(--muted); }
.auth__switch { margin-top: 24px; color: var(--muted); }

.form { margin-top: 28px; display: grid; gap: 20px; }

.field { display: grid; gap: 6px; }
.field label { font-weight: 500; font-size: 15px; }
.field__optional { color: var(--muted); font-weight: 400; }

.field input {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid #C5CDD6;
    border-radius: var(--radius-s);
    color: var(--ink);
    font: 16px var(--font-text);
}
.field input:hover { border-color: var(--muted); }
.field input:focus-visible { outline: 3px solid var(--sim); outline-offset: 0; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--danger); }

.field__hint { color: var(--muted); font-size: 14px; }
.field__error { color: var(--danger); font-size: 14px; }

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    cursor: pointer;
}
.checkbox input { width: 18px; height: 18px; accent-color: var(--signal); }

/* ---------- Кабинет ---------- */

.cabinet { padding: 48px 0 96px; }

.cabinet__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    margin-bottom: 28px;
}
.cabinet__account { color: var(--muted); }

.cabinet__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    padding: 26px 28px;
}
.panel--wide { margin-bottom: 20px; }
.panel__title { font: 600 18px/1.3 var(--font-display); margin-bottom: 16px; }
.panel__muted { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.panel__link { display: inline-block; margin-top: 18px; font-size: 15px; }
.panel .code { margin-top: 4px; }

.usage__numbers { font-size: 17px; color: var(--muted); }
.usage__numbers b { font: 600 34px/1 var(--font-display); color: var(--ink); margin-right: 4px; }

.meter {
    height: 10px;
    margin: 16px 0 22px;
    background: var(--paper);
    border-radius: 5px;
    overflow: hidden;
}
.meter__bar { display: block; height: 100%; background: var(--signal); border-radius: 5px; }
.meter__bar.is-high { background: var(--danger); }

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.stats dt { color: var(--muted); font-size: 14px; }
.stats dd { font-weight: 600; font-size: 20px; }

.key-line code { font-size: 17px; padding: .3em .6em; }
.key-line { margin-bottom: 10px; }

.key-reveal {
    margin-bottom: 20px;
    padding: 24px 28px;
    background: var(--signal-soft);
    border: 2px solid var(--signal);
    border-radius: var(--radius-m);
}
.key-reveal__title { font: 600 18px/1.3 var(--font-display); margin-bottom: 14px; }
.key-reveal__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.key-reveal__key {
    flex: 1 1 320px;
    padding: 12px 14px;
    background: var(--surface);
    font-size: 15px;
    white-space: normal;
    word-break: break-all;
}
.key-reveal__note { margin-top: 12px; font-size: 15px; }

.notice { padding: 16px 20px; border-radius: var(--radius-s); margin-bottom: 20px; }
.notice--error { background: var(--danger-soft); color: var(--danger); }
.notice--ok { background: var(--signal-soft); color: var(--signal-dark); }

/* Подпись в SMS с кодом */
.signature-form { max-width: 520px; }
.signature-form__row { display: flex; gap: 10px; }
.signature-form__row input { flex: 1 1 auto; min-width: 0; }
.signature-form__preview { margin-top: 14px; color: var(--muted); font-size: 15px; }
.sms-inline {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 12px;
    border-radius: 14px 14px 14px 4px;
    background: var(--signal);
    color: #fff;
    font-size: 15px;
    overflow-wrap: anywhere;
}

/* Проверить отправку */
.test-form { display: grid; gap: 18px; max-width: 520px; }
.test-form .field textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid #C5CDD6;
    border-radius: var(--radius-s);
    color: var(--ink);
    font: 16px/1.5 var(--font-text);
    resize: vertical;
}
.test-form .field textarea:focus-visible { outline: 3px solid var(--sim); outline-offset: 0; border-color: var(--ink); }
.test-form .field textarea[aria-invalid="true"] { border-color: var(--danger); }

.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.choice__legend { font-weight: 500; font-size: 15px; margin-bottom: 8px; padding: 0; }
.choice__item { position: relative; cursor: pointer; }
.choice__item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__item span {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid #C5CDD6;
    border-radius: var(--radius-s);
    background: var(--surface);
    font-size: 15px;
}
.choice__item input:checked + span { border-color: var(--signal); background: var(--signal-soft); color: var(--signal-dark); font-weight: 600; }
.choice__item input:focus-visible + span { outline: 3px solid var(--sim); outline-offset: 2px; }

.verify-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.verify-form .field { min-width: 0; }
.verify-form__code { width: 160px !important; font: 600 22px/1 var(--font-display) !important; letter-spacing: .2em; }

.status.is-updated { animation: status-flash .9s ease-out; }
@keyframes status-flash { from { background: var(--signal-soft); } to { background: transparent; } }

.table-scroll { overflow-x: auto; position: relative; }

.messages { width: 100%; border-collapse: collapse; font-size: 15px; }
.messages th {
    text-align: left;
    font-weight: 500;
    color: var(--muted);
    padding: 0 12px 10px 0;
    border-bottom: 1px solid var(--line);
}
.messages td {
    padding: 10px 12px 10px 0;
    border-bottom: 1px solid var(--line);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.messages tr:last-child td { border-bottom: 0; }

.status { font-weight: 500; }
.status--sent, .status--delivered { color: var(--signal); }
.status--failed { color: var(--danger); }
.status--queued, .status--assigned, .status--sending, .status--pending { color: var(--muted); }

/* ---------- Инструкция по подключению ---------- */

.docs { padding: 48px 0 96px; }

.docs__grid {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.docs__toc {
    position: sticky;
    top: 24px;
    font-size: 15px;
}
.docs__toc-title { font-weight: 600; margin-bottom: 10px; }
.docs__toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.docs__toc a {
    display: block;
    padding: 6px 0 6px 14px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    color: var(--muted);
    text-decoration: none;
}
.docs__toc a:hover { color: var(--ink); border-left-color: var(--sim); }

.docs__body { max-width: 780px; }
.docs__lead { margin-top: 14px; color: var(--muted); font-size: 19px; max-width: 36em; }

.docs__section { padding-top: 48px; scroll-margin-top: 16px; }
.docs__section h2 { font: 600 clamp(22px, 2.4vw, 28px)/1.2 var(--font-display); margin-bottom: 18px; }
.docs__section h3 { font-size: 18px; margin: 28px 0 10px; }
.docs__section > p,
.docs__section .tabs,
.docs__section .table-scroll,
.docs__section .notice { margin-bottom: 16px; }
.docs__section > p { max-width: 42em; }
.docs__section .code { margin-bottom: 16px; }
.docs__section p code { white-space: normal; overflow-wrap: anywhere; }

.docs__endpoint {
    font: 15px/1.4 var(--font-code);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    padding: 10px 14px;
    overflow-x: auto;
    white-space: nowrap;
}
.docs__endpoint span { color: var(--signal); font-weight: 700; margin-right: 8px; }

.steps--docs { margin-bottom: 28px; gap: 28px; }
.steps--docs .steps__item h3 { margin: 0 0 6px; font-size: 17px; }
.steps--docs .steps__item p { font-size: 15px; }

.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
}
.doc-table th, .doc-table td {
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}
.doc-table th { font-weight: 500; color: var(--muted); background: var(--paper); }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table td:first-child { white-space: nowrap; }

.flow {
    counter-reset: flow;
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    display: grid;
    gap: 10px;
}
.flow li {
    counter-increment: flow;
    position: relative;
    padding-left: 40px;
}
.flow li::before {
    content: counter(flow);
    position: absolute;
    left: 0; top: -1px;
    width: 26px; height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--signal-soft);
    color: var(--signal-dark);
    font: 600 13px/1 var(--font-display);
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    overflow: hidden;
    margin-bottom: 16px;
}
.facts div { flex: 1 1 150px; background: var(--surface); padding: 12px 14px; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { font-weight: 600; font-size: 18px; }

.notice--warn { background: #FBF4E2; color: #5C4813; border-left: 4px solid var(--sim); }

.tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
}
.tabs__tab {
    padding: 10px 14px;
    border: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    background: none;
    color: var(--muted);
    font: 500 15px var(--font-text);
    cursor: pointer;
}
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--signal); }

/* ---------- Регистрация: защита от ботов ---------- */

.hp-field {
    position: absolute !important;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.field input.field__short { width: 120px; }

/* ---------- Админка ---------- */

.facts--admin { margin-bottom: 20px; }
.facts--admin dd small { font-weight: 400; font-size: 14px; color: var(--danger); margin-left: 6px; }

.setting {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
}
.setting .panel__title { margin-bottom: 6px; }
.setting__text { margin-bottom: 0; max-width: 40em; }

.users-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 16px;
}
.users-head .panel__title { margin-bottom: 0; }

.search { display: flex; gap: 8px; flex: 1 1 260px; max-width: 380px; }
.search input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 38px;
    padding: 6px 12px;
    border: 1px solid #C5CDD6;
    border-radius: var(--radius-s);
    font: 15px var(--font-text);
    background: var(--surface);
}
.search input:focus-visible { outline: 3px solid var(--sim); outline-offset: 0; border-color: var(--ink); }

.users { width: 100%; border-collapse: collapse; font-size: 15px; }
.users th {
    text-align: left;
    font-weight: 500;
    color: var(--muted);
    padding: 0 14px 10px 0;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.users td {
    padding: 12px 14px 12px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    line-height: 1.45;
}
.users tr:last-child td { border-bottom: 0; }
.users__muted { color: var(--muted); font-size: 14px; }
.users__actions { white-space: nowrap; text-align: right; }
.users__actions form { display: inline; }
.users__actions form + form { margin-left: 12px; }

.tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--sim);
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    vertical-align: 1px;
}

.plan-form select {
    min-height: 34px;
    padding: 4px 8px;
    border: 1px solid #C5CDD6;
    border-radius: var(--radius-s);
    background: var(--surface);
    font: 15px var(--font-text);
    color: var(--ink);
}

.link-action {
    border: 0;
    background: none;
    padding: 0;
    color: var(--signal);
    font: 500 15px var(--font-text);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.link-action:hover { color: var(--signal-dark); }
.link-action--danger { color: var(--danger); }
.link-action--danger:hover { color: #8F1B12; }

.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    font-size: 15px;
}
.pager__link.is-disabled { color: var(--muted); opacity: .5; }
.pager__info { color: var(--muted); }

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

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 15px;
}
.site-footer__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 28px;
    padding-bottom: 28px;
}
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer__nav a { color: var(--muted); }
.site-footer__nav a:hover { color: var(--ink); }

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
    .hero { padding: 48px 0 56px; }
    .hero__grid, .code-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .otp-demo { max-width: 460px; }
    .steps, .faq__list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .features { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .cabinet__grid { grid-template-columns: minmax(0, 1fr); }
    .docs__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .docs__toc { position: static; }
    .docs__toc ol { display: flex; flex-wrap: wrap; gap: 4px 0; border-left: 0; }
    .docs__toc a { border-left: 0; padding: 4px 12px 4px 0; margin-left: 0; }
    .section { padding: 56px 0; }
    .section--flush { padding-top: 0; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .auth { padding: 40px 16px 64px; }
    .site-header__row { min-height: 60px; }
    .logo span { display: none; }
    .site-header__row { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
    .site-nav { gap: 0; flex-wrap: wrap; justify-content: flex-end; }
    .site-nav__link { padding: 8px 6px; font-size: 15px; }
    .hero__actions .btn { width: 100%; }
    .otp-demo { padding: 20px; }
    .otp-cells { gap: 8px; }
    .panel, .key-reveal { padding: 20px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .code { padding: 18px; font-size: 13px; }
}

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