/* ==========================================================================
   VipaScan — собственная система стилей
   Деловая палитра, спокойные поверхности, крупные действия.
   Ничего не унаследовано от оформления vipasoft.com, кроме родства по тону.
   ========================================================================== */

:root {
    /* Основные цвета */
    --ink: #11202e;
    --ink-soft: #3c4c5c;
    --muted: #64748b;
    --line: #e1e8ef;
    --line-strong: #cbd6e0;
    --page: #f5f8fa;
    --surface: #ffffff;
    --surface-tint: #eef4f7;

    --brand: #0f6f8c;
    --brand-strong: #0b566e;
    --brand-soft: #e3f0f5;
    --brand-ink: #063c4e;

    --ok: #1f8a5b;
    --ok-soft: #e6f4ec;
    --warn: #a9680f;
    --warn-soft: #fdf2e0;
    --danger: #b3261e;
    --danger-soft: #fbeae9;

    /* Размеры */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --container: 1280px;
    --gutter: 16px;

    --shadow-sm: 0 1px 2px rgba(17, 32, 46, .06);
    --shadow: 0 10px 30px rgba(17, 32, 46, .08);

    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--page);
}

h1, h2, h3, h4 {
    margin: 0 0 .6em;
    line-height: 1.2;
    letter-spacing: -.015em;
    font-weight: 700;
}

h1 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.1rem); }
h3 { font-size: 1.18rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: var(--brand);
}

ul { margin: 0 0 1em; padding-left: 1.2em; }

img, svg { max-width: 100%; }

:focus-visible {
    outline: 3px solid rgba(15, 111, 140, .45);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--surface);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    left: 12px;
    top: 12px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn--primary {
    background: var(--brand);
    color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--brand-strong);
    color: #fff;
}

.btn--ghost {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    border-color: var(--brand);
    color: var(--brand);
}

.btn--quiet {
    background: transparent;
    color: var(--brand);
    padding: 8px 10px;
    min-height: 0;
}

.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; min-height: 40px; font-size: .95rem; }

.btn[aria-busy="true"] {
    opacity: .7;
    pointer-events: none;
}

/* ===== Шапка ================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(6px);
}

.site-header__row {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
}

.logo:hover { color: var(--ink); }
.logo__mark { flex: 0 0 auto; }
.logo__name b { color: var(--brand); font-weight: 700; }

.logo__tag {
    display: block;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    min-width: 0;
}

.nav__link {
    padding: 9px 10px;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    font-size: .93rem;
    font-weight: 500;
    color: var(--ink-soft);
}

/* Пункты входа и заказа нужны только в узком меню */
.nav__link--auth { display: none; }

.nav__link:hover,
.nav__link:focus-visible {
    background: var(--surface-tint);
    color: var(--brand);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    margin-left: auto;
}

.lang-switch {
    display: inline-flex;
    flex: 0 0 auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    overflow: hidden;
    font-size: .88rem;
    font-weight: 600;
}

.lang-switch a,
.lang-switch span {
    padding: 8px 12px;
    color: var(--ink-soft);
    line-height: 1.2;
}

.lang-switch a:hover {
    background: var(--surface-tint);
    color: var(--brand);
}

.lang-switch [aria-current="true"] {
    background: var(--brand);
    color: #fff;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    cursor: pointer;
    color: var(--ink);
}

/* ===== Секции =============================================== */

.section {
    padding: 72px 0;
}

.section--tint { background: var(--surface-tint); }
.section--surface { background: var(--surface); }

.section__head {
    max-width: 760px;
    margin-bottom: 36px;
}

.section__head p {
    color: var(--ink-soft);
    font-size: 1.06rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--brand);
}

/* ===== Первый экран ========================================= */

.hero {
    background: linear-gradient(180deg, #fff 0%, var(--surface-tint) 100%);
    border-bottom: 1px solid var(--line);
    padding: 56px 0 64px;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    font-size: .88rem;
    color: var(--ink-soft);
}

.hero__lead {
    font-size: 1.14rem;
    color: var(--ink-soft);
    max-width: 36em;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 18px;
}

.hero__notes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .95rem;
    color: var(--muted);
}

.hero__notes strong { color: var(--ink); }

/* Снимки рабочих экранов расширения */
.shot {
    margin: 0;
    display: grid;
    gap: 12px;
}

.shot picture,
.shot a {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.shot a { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }

.shot a picture {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.shot a:hover,
.shot a:focus-visible {
    border-color: var(--brand);
    box-shadow: 0 14px 34px rgba(15, 111, 140, .18);
    transform: translateY(-2px);
}

.shot img {
    display: block;
    width: 100%;
    height: auto;
}

.shot figcaption {
    display: grid;
    gap: 4px;
    font-size: .93rem;
    color: var(--muted);
    line-height: 1.5;
}

.shot figcaption strong {
    color: var(--ink);
    font-size: 1rem;
}

.shot--hero figcaption { text-align: center; }

.shots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.shots__note {
    margin: 22px 0 0;
    font-size: .85rem;
    color: var(--muted);
}

.mock__note {
    margin-top: 12px;
    font-size: .8rem;
    color: var(--muted);
    text-align: center;
}

/* Схема процесса */
.flow {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.flow__step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 500;
}

.flow__num {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-ink);
    font-size: .85rem;
    font-weight: 700;
}

/* ===== Сетки и карточки ===================================== */

.grid {
    display: grid;
    gap: 20px;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.card--flat { box-shadow: none; }
.card--tint { background: var(--brand-soft); border-color: #cfe3ea; }

.card h3 { margin-bottom: .4em; }

.card p {
    color: var(--ink-soft);
    font-size: .97rem;
    margin-bottom: 0;
}

.card__icon {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: var(--brand-soft);
    color: var(--brand);
}

.card__icon svg { width: 22px; height: 22px; }

/* Шаги «как это работает» */
.steps {
    counter-reset: step;
    display: grid;
    gap: 16px;
}

.step {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.step::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.step h3 { margin-bottom: .3em; }
.step p { margin: 0; color: var(--ink-soft); font-size: .99rem; }

/* Бейджи */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.badge--ok { background: var(--ok-soft); color: #166534; }
.badge--soon { background: var(--warn-soft); color: var(--warn); }
.badge--muted { background: var(--surface-tint); color: var(--muted); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }

/* Список с галочками */
.ticks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.ticks li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--ink-soft);
}

.ticks svg {
    width: 20px; height: 20px;
    color: var(--ok);
    margin-top: 3px;
}

/* Заметка-врезка */
.note {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: var(--surface-tint);
    border: 1px solid var(--line);
    font-size: .95rem;
    color: var(--ink-soft);
}

.note svg { width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.note--warn { background: var(--warn-soft); border-color: #f0dcb8; }
.note--warn svg { color: var(--warn); }

/* ===== Кабинет: плитки показателей ========================== */

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.metric {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}

.metric__label {
    display: block;
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.metric__value {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.metric__value--muted { color: var(--muted); font-size: 1.2rem; font-weight: 600; }
.metric__hint { display: block; margin-top: 6px; font-size: .85rem; color: var(--muted); }

.bar {
    height: 8px;
    margin-top: 12px;
    border-radius: 999px;
    background: var(--surface-tint);
    overflow: hidden;
}

.bar__fill {
    height: 100%;
    border-radius: 999px;
    background: var(--brand);
}

/* Таблица */
.table-wrap { overflow-x: auto; }

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
    background: var(--surface);
}

table.data th,
table.data td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

table.data th {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    background: var(--surface-tint);
}

table.data td.num,
table.data th.num { text-align: right; }

/* Пустое состояние */
.empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 44px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}

.empty svg { width: 46px; height: 46px; color: var(--line-strong); }
.empty h3 { margin: 0; }
.empty p { max-width: 46em; color: var(--ink-soft); margin: 0; }

/* ===== Формы ================================================ */

.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }

.field > label {
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink);
}

.field .req { color: var(--danger); }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    min-height: 48px;
}

.field textarea { min-height: 104px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--brand);
    outline: 3px solid rgba(15, 111, 140, .18);
    outline-offset: 0;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: var(--danger);
    background: #fffafa;
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
    background: var(--surface-tint);
    color: var(--muted);
    cursor: not-allowed;
}

.field__error {
    font-size: .87rem;
    color: var(--danger);
}

.field__hint {
    font-size: .87rem;
    color: var(--muted);
}

.check {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    font-size: .93rem;
    color: var(--ink-soft);
}

.check input {
    width: 20px; height: 20px;
    min-height: 0;
    margin-top: 3px;
    accent-color: var(--brand);
}

.check a { color: var(--brand); text-decoration: underline; }

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Сообщения */
.alert {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
    border: 1px solid;
    font-size: .97rem;
}

.alert svg { width: 22px; height: 22px; margin-top: 1px; }
.alert--success { background: var(--ok-soft); border-color: #bfe3cf; color: #14532d; }
.alert--error { background: var(--danger-soft); border-color: #f1c6c3; color: #7f1d1d; }
.alert--info { background: var(--brand-soft); border-color: #cfe3ea; color: var(--brand-ink); }

.alert__close {
    background: none;
    border: 0;
    cursor: pointer;
    color: inherit;
    font-size: 1.1rem;
    line-height: 1;
    padding: 2px 6px;
}

.flash-area { padding-top: 18px; }

/* ===== FAQ ================================================== */

.faq { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; }

.faq details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0;
}

.faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--brand);
    line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq__answer {
    padding: 0 22px 20px;
    color: var(--ink-soft);
    font-size: .99rem;
}

/* ===== Страницы входа ======================================= */

.auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 48px;
    align-items: start;
    padding: 56px 0 72px;
}

.auth__aside h1 { margin-bottom: .5em; }
.auth__aside p { color: var(--ink-soft); }

.auth .form-card { padding: 26px; }
.auth .form-grid { grid-template-columns: minmax(0, 1fr); }

.auth__alt {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: .95rem;
    color: var(--muted);
}

.auth__alt a { color: var(--brand); font-weight: 600; }

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

.cab-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 36px 0 24px;
}

.cab-head h1 { margin: 0 0 .2em; }
.cab-head p { margin: 0; color: var(--muted); }

.cab-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: 24px;
    align-items: start;
    padding-bottom: 72px;
}

/* Короткий нумерованный список внутри панели (кабинет партнёра) */
.steps-mini {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
    color: var(--ink-soft);
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 20px;
}

.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.panel__head h2 { margin: 0; font-size: 1.2rem; }

.kv { display: grid; gap: 12px; margin: 0; }

.kv > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: .96rem;
    border-bottom: 1px dashed var(--line);
    padding-bottom: 10px;
}

.kv > div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dt { color: var(--muted); margin: 0; }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

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

.site-footer {
    background: var(--brand-ink);
    color: #cfe0e7;
    padding: 56px 0 24px;
    font-size: .96rem;
}

.site-footer a { color: #e6f1f5; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
}

.site-footer h3 {
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #8fb4c1;
    margin-bottom: 14px;
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 9px;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: .88rem;
    color: #9bbcc8;
}

.footer__bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ===== Cookie ============================================== */

.cookie {
    position: fixed;
    inset: auto 16px 16px;
    z-index: 60;
    max-width: 560px;
    margin-left: auto;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.cookie h3 { font-size: 1.05rem; margin-bottom: .4em; }
.cookie p { font-size: .93rem; color: var(--ink-soft); }

.cookie__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

/* ===== Тарифы =============================================== */

.switch {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 28px;
    padding: 4px;
    background: var(--surface-tint);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.switch__btn {
    border: 0;
    border-radius: 999px;
    padding: 9px 18px;
    background: transparent;
    font: inherit;
    font-size: .95rem;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.switch__btn:hover { color: var(--brand); }

.switch__btn.is-active {
    background: var(--brand);
    color: #fff;
    font-weight: 600;
}

.plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.plan--highlight {
    border-color: var(--brand);
    box-shadow: 0 12px 30px rgba(15, 111, 140, .14);
}

.plan__flag {
    position: absolute;
    top: -12px;
    left: 24px;
    padding: 4px 12px;
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.plan__name {
    margin: 0;
    font-size: 1.1rem;
}

.plan__box { margin: 0; }

.plan__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}

.plan__price span {
    font-size: .92rem;
    font-weight: 500;
    color: var(--muted);
}

.plan__price--text {
    font-size: 1.45rem;
    color: var(--brand-ink);
}

.plan__hint,
.plan__per {
    margin: 4px 0 0;
    font-size: .9rem;
    color: var(--muted);
}

.plan__hint { color: var(--brand-ink); font-weight: 600; }

.plan__volume {
    margin: 6px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-weight: 600;
}

/* Кнопка прижата к низу, чтобы карточки с разной высотой выглядели ровно */
.plan .btn { margin-top: auto; }

/* Переключение «помесячно / за год»: без скрипта видна месячная цена */
.plans[data-period="month"] .plan__box[data-for="year"],
.plans[data-period="year"] .plan__box[data-for="month"] { display: none; }

/* ===== Вкладки кабинета ===================================== */

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.tabs__link {
    padding: 10px 16px;
    font-weight: 600;
    font-size: .98rem;
    color: var(--ink-soft);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tabs__link:hover { color: var(--brand); }

.tabs__link.is-active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

/* Выбор тарифа в кабинете */
.plan-pick {
    display: grid;
    gap: 10px;
}

.plan-pick__item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
}

.plan-pick__item:hover { border-color: var(--brand); }
.plan-pick__item.is-current { background: var(--brand-soft); border-color: var(--brand); }
.plan-pick__item input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.plan-pick__item strong { display: block; }

.plan-pick__meta {
    display: block;
    font-size: .92rem;
    color: var(--muted);
}

/* ===== Админка VIPASOFT ===================================== */

.adm { background: var(--page); }

.adm__top {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.adm__row {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 12px var(--gutter);
}

.adm__logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--brand-ink);
    white-space: nowrap;
}

.adm__logo span {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.adm__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-right: auto;
}

.adm__nav a {
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .96rem;
    color: var(--ink-soft);
}

.adm__nav a:hover { background: var(--surface-tint); color: var(--brand); }

.adm__user {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .92rem;
    color: var(--muted);
}

.adm__main { padding: 28px 0 64px; }

.adm__wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.adm__title { margin: 0 0 22px; font-size: 1.7rem; }

.adm__cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.adm-card {
    display: grid;
    gap: 4px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.adm-card__label {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
}

.adm-card__value { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.adm-card__value--muted { font-size: 1.2rem; color: var(--ink-soft); }
.adm-card__hint { font-size: .88rem; color: var(--muted); }

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

.adm__cols--wide { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }

.adm-muted { color: var(--muted); font-size: .9rem; }

.adm-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.adm-filter .field { min-width: 190px; }
.adm-filter .field--grow { flex: 1 1 260px; }

.adm-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.adm-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.adm-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.adm-back { margin: 0 0 16px; }

.adm-token {
    display: block;
    margin-top: 8px;
    padding: 10px 12px;
    background: #fff;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: .92rem;
    word-break: break-all;
}

.adm-requests { display: grid; gap: 16px; }

.adm-request {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.adm-request__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

/* В широкой карточке заявки список «ключ — значение» не растягиваем */
.adm-request .kv { max-width: 620px; }

.adm-request__message {
    margin: 12px 0;
    padding: 12px 14px;
    background: var(--surface-tint);
    border-radius: var(--radius-sm);
    font-size: .95rem;
}

.adm-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
}

.adm-pages__link {
    min-width: 38px;
    padding: 8px 10px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.adm-pages__link.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

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

@media (max-width: 1140px) {
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1140px) {
    /* Три снимка в ряд становятся нечитабельными раньше, чем прочие сетки */
    .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adm__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adm__cols { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1300px) {
    .hero__grid,
    .auth,
    .cab-grid { grid-template-columns: minmax(0, 1fr); }

    .hero { padding-top: 36px; }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* В одну колонку снимок уже не нужен во всю ширину экрана */
    .shot--hero { max-width: 760px; margin: 0 auto; }

    .nav-toggle { display: inline-flex; }

    .nav {
        display: none;
        position: absolute;
        left: 0; right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0;
        padding: 12px var(--gutter) 18px;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .nav.is-open { display: flex; }
    .nav__link { padding: 12px 10px; font-size: 1.02rem; }

    /* Телефон и планшет: логотип слева, действия и бургер справа */
    .site-header__row { position: relative; min-height: 64px; gap: 12px; }
    .nav-toggle { margin-left: 0; order: 3; }
    .header__actions { order: 2; }
}

@media (max-width: 620px) {
    body { font-size: 16px; }

    .section { padding: 48px 0; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
    .metrics { grid-template-columns: minmax(0, 1fr); }
    .shots { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .plans { grid-template-columns: minmax(0, 1fr); }
    .switch { width: 100%; justify-content: center; }
    .adm__cards { grid-template-columns: minmax(0, 1fr); }
    .adm__row { flex-wrap: wrap; gap: 12px; }
    .adm-request__head { flex-direction: column; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .footer__grid { grid-template-columns: minmax(0, 1fr); }

    .form-card { padding: 20px; }
    .step { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 18px; }
    .step::before { width: 38px; height: 38px; font-size: .95rem; }

    .hero__actions .btn { width: 100%; }

    /* На телефоне в шапке остаются логотип, язык и бургер */
    .header__actions .btn { display: none; }
    .nav__link--auth { display: block; font-weight: 600; color: var(--brand); }
    .logo { font-size: 1.1rem; }
    .logo__tag { display: none; }
    .cookie { inset: auto 10px 10px; padding: 16px; }
    .header__actions .lang-switch { font-size: .82rem; }
}

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

@media print {
    .site-header, .site-footer, .cookie, .hero__actions { display: none; }
    .shot a, .shot picture { box-shadow: none; }
    body { background: #fff; }
}
