/*
 * Сайт и кабинет — по макетам design/dryry-account.pen (01–05): токены = переменные макета,
 * тёмная тема по умолчанию, светлая — по настройке системы. Шрифты — из assets/fonts (OFL).
 */

@font-face { font-family: 'Unbounded'; font-weight: 200 900; font-display: swap; src: url("../fonts/unbounded-cyrillic-wght-normal-_eBBxmp.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 200 900; font-display: swap; src: url("../fonts/unbounded-latin-wght-normal-boXcx2G.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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+221E, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-cyrillic-wght-normal-kKAg1t7.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal-Gz7AlRl.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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+221E, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Tight'; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-tight-cyrillic-wght-normal-VOI36mS.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter Tight'; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-tight-latin-wght-normal-eRUCCTh.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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+221E, U+FEFF, U+FFFD; }

:root {
    color-scheme: dark;
    --background: #0B0B10;
    --surface: #16161F;
    --surface-2: #22222E;
    --border: #2C2C3A;
    --foreground: #F5F5F7;
    --muted-foreground: #8E8EA3;
    --accent-start: #C6FF00;
    --accent-end: #00E5FF;
    --on-accent: #0B0B10;
    --success: #C6FF00;
    --danger: #FF4D5E;
    --phase-long-rest: #8B5CF6;
    --radius-s: 12px;
    --radius-m: 20px;
    --radius-l: 28px;
    --font-display: 'Unbounded', system-ui, sans-serif;
    --font-ui: 'Inter', system-ui, sans-serif;
    --font-digits: 'Inter Tight', 'Inter', system-ui, sans-serif;
    --gutter: 16px;
}

@media (prefers-color-scheme: light) {
    :root {
        color-scheme: light;
        --background: #F4F4F8;
        --surface: #FFFFFF;
        --surface-2: #EAEAF1;
        --border: #DDDDE6;
        --foreground: #0B0B10;
        --muted-foreground: #66667A;
        --accent-end: #0097B8;
        --success: #4F8F00;
    }
}

@media (max-width: 359px) { :root { --gutter: 12px; } }
@media (min-width: 768px) { :root { --gutter: 32px; } }

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

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    color: var(--foreground);
    font: 500 16px/1.4 var(--font-ui);
}

a { color: var(--accent-end); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
p { margin: 0; }
button { font: inherit; color: inherit; }
form { margin: 0; }
/* Атрибут hidden сильнее display из классов (иначе .field / .promo-link его перебивают). */
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.icon { display: inline-flex; flex: none; }
.icon svg { width: 100%; height: 100%; }

/* Каркас страницы */

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(460px + 2 * var(--gutter)); }

.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
@media (min-width: 768px) { .site-header .container { min-height: 80px; } }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--foreground); }
.logo:hover { text-decoration: none; }
.logo svg { width: 32px; height: 32px; flex: none; }
.logo__word { font: 700 22px/1 var(--font-display); white-space: nowrap; }
.logo__word span { font-weight: 300; }
/* «Dryry Timer Pro»: слово сервиса тонким — как «Account» в логотипе. */
.product-word { font-weight: 300; }
@media (max-width: 359px) { .logo__word { font-size: 18px; } }

.header-actions { display: flex; align-items: center; gap: 20px; font-size: 16px; }
/* Действия шапки: на телефоне — только иконки (просьба владельца 2026-10-14: «Админка» и «Выйти»
 * не помещались в 375). Подпись остаётся в DOM для скринридера и в title. */
.header-action { display: inline-flex; align-items: center; }
.header-action .icon { display: none; width: 22px; height: 22px; }
@media (max-width: 479px) {
    .header-actions { gap: 16px; }
    .header-action .icon { display: inline-flex; }
    .header-action__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.link-button { padding: 0; border: 0; background: none; color: var(--accent-end); font-weight: 600; cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.link-button--muted, .link-button[disabled] { color: var(--muted-foreground); }
.link-button[disabled] { cursor: default; text-decoration: none; }

main { flex: 1; }

.site-footer { margin-top: 32px; border-top: 1px solid var(--border); }
.site-footer .container { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 24px; padding-bottom: 32px; text-align: center; color: var(--muted-foreground); font-size: 12px; line-height: 1.4; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; font-size: 13px; }
.site-footer nav a, .site-footer p a { color: var(--muted-foreground); font-weight: 500; }

.flash { margin: 8px 0 0; padding: 12px 16px; border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--border); font-size: 14px; }
.flash--success { border-color: var(--success); }
.flash--error { border-color: var(--danger); background: #FF4D5E1A; color: var(--danger); font-weight: 600; }

/* Общие элементы */

.section-label { margin: 0; font: 700 12px/1.2 var(--font-display); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-foreground); }
.muted { color: var(--muted-foreground); }
.note { color: var(--muted-foreground); font-size: 13px; line-height: 1.4; }
.error-text { margin: 6px 0 0; color: var(--danger); font-size: 13px; font-weight: 600; }
.form-alert { padding: 12px 16px; border: 1px solid var(--danger); border-radius: var(--radius-m); background: #FF4D5E1A; color: var(--danger); font-size: 14px; font-weight: 600; line-height: 1.4; }
.form-alert p { margin: 0; }
.form-alert p + p { margin-top: 6px; }
.success-text { color: var(--success); font-size: 13px; font-weight: 600; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary {
    width: 100%; height: 60px; padding: 0 24px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    box-shadow: 0 8px 24px -4px #C6FF0055;
    color: var(--on-accent); font: 700 17px/1 var(--font-display);
}
.btn--secondary { height: 44px; padding: 0 16px; background: var(--surface-2); color: var(--foreground); font-size: 15px; font-weight: 600; }
.btn--small { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--danger { width: 100%; height: 52px; background: #FF4D5E1A; color: var(--danger); font-size: 16px; font-weight: 600; }
.btn--danger .icon { width: 18px; height: 18px; }
.btn[disabled] { opacity: .5; cursor: default; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field__box {
    display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 6px 0 16px;
    background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-m);
}
.field__box:focus-within { border-color: var(--accent-start); }
.field__box--success, .field__box--success:focus-within { border-color: var(--success); }
.field__box--error, .field__box--error:focus-within { border-color: var(--danger); }
.field__box input {
    flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none;
    color: var(--foreground); font: 600 17px/1 var(--font-ui);
}
.field__box input::placeholder { color: var(--muted-foreground); font-weight: 500; }
.field__box--code input { font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.field__box > .icon { width: 22px; height: 22px; color: var(--success); }
.field__hint { color: var(--muted-foreground); font-size: 13px; }
.field ul { margin: 0; padding: 0; list-style: none; color: var(--danger); font-size: 13px; font-weight: 600; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 999px; background: none; color: var(--muted-foreground); cursor: pointer; }
.icon-button .icon { width: 20px; height: 20px; }

ul.list { margin: 0; padding: 0; list-style: none; }
.list { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border-radius: var(--radius-l); }
.list__row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.list__row + .list__row { border-top: 1px solid var(--border); }
.list__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list__title { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.list__sub { color: var(--muted-foreground); font-size: 13px; }
.list__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: var(--radius-s); background: var(--surface-2); }
.list__icon .icon { width: 20px; height: 20px; }
.list__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.list__empty { padding: 16px 14px; color: var(--muted-foreground); font-size: 14px; }

/* 01 · Pro */

.pro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 16px; }
.pro__hero { display: flex; flex-direction: column; gap: 12px; }
.pro__hero h1 { font-size: 34px; }
.pro__lead { color: var(--muted-foreground); font-size: 16px; line-height: 1.35; }
.benefits { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 8px 0 0; list-style: none; font-size: 15px; }
.benefits li { display: flex; align-items: center; gap: 10px; }
.benefits .icon { width: 20px; height: 20px; color: var(--accent-start); }
.pro__order { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }
@media (min-width: 768px) { .pro { padding: 24px 98px 0; } }
@media (min-width: 1100px) {
    /* «Как получить Pro» — под преимуществами слева, форма — справа на всю высоту (макет 01, 1440). */
    .pro { grid-template-columns: minmax(0, 1fr) 480px; grid-template-rows: auto 1fr; gap: 0 64px; align-items: start; padding: 48px 0 0; }
    .pro__hero { grid-column: 1; grid-row: 1; }
    .pro__order { grid-column: 2; grid-row: 1 / span 2; }
    .pro__how { grid-column: 1; grid-row: 2; }
    .pro__hero { padding-top: 32px; }
    .pro__hero h1 { font-size: 56px; }
    .pro__order { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); }
    .pro__order .plan, .pro__order .field__box { background: var(--background); }
}

.plans { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.plans legend { padding: 0 0 10px; }

.plan {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer;
    background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-l);
}
.plan:has(input:checked) { border-color: var(--accent-start); }
.plan:has(input:focus-visible) { outline: 2px solid var(--accent-end); outline-offset: 2px; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan__radio { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border: 2px solid var(--muted-foreground); border-radius: 999px; }
.plan:has(input:checked) .plan__radio { border-color: var(--accent-start); }
.plan:has(input:checked) .plan__radio::after { content: ''; width: 12px; height: 12px; border-radius: 999px; background: var(--accent-start); }
.plan__texts { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.plan__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; }
.plan__sub { color: var(--muted-foreground); font-size: 14px; }
.plan__bonus { display: block; margin-top: 6px; color: var(--muted-foreground); font-size: 13px; line-height: 1.4; }
.plan__prices { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-family: var(--font-digits); white-space: nowrap; }
.plan__price { font-size: 22px; font-weight: 800; }
.plan__old { color: var(--muted-foreground); font-size: 14px; font-weight: 600; text-decoration: line-through; }
.badge { padding: 3px 8px; border-radius: 999px; background: var(--surface-2); font: 700 12px/1.2 var(--font-ui); white-space: nowrap; }
.badge--accent { background: var(--accent-start); color: var(--on-accent); }

.promo-link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 0; border: 0; background: none; color: var(--accent-end); font-size: 15px; font-weight: 600; cursor: pointer; }
.promo-link .icon { width: 18px; height: 18px; }
.pay-note { color: var(--muted-foreground); font-size: 12px; line-height: 1.4; text-align: center; }
/* Приём оплаты выключен в админке — сообщение вместо формы оплаты. */
.payments-off { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface); font-size: 15px; line-height: 1.4; }
.payments-off .icon { flex: none; width: 20px; height: 20px; color: var(--accent-end); }

/* Согласие на обработку ПД (макет 01): своя галочка поверх настоящего checkbox. */
.consent__label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.4; cursor: pointer; }
.consent__label input { position: absolute; opacity: 0; pointer-events: none; }
.consent__box { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none; border: 2px solid var(--muted-foreground); border-radius: 6px; }
.consent__box .icon { width: 14px; height: 14px; visibility: hidden; }
.consent__label input:checked + .consent__box { border-color: var(--accent-start); background: var(--accent-start); color: var(--on-accent); }
.consent__label input:checked + .consent__box .icon { visibility: visible; }
.consent__label input:focus-visible + .consent__box { outline: 2px solid var(--accent-end); outline-offset: 2px; }
.consent ul { margin: 6px 0 0; }

/* Способы оплаты под кнопкой — без названия и логотипа платёжного сервиса (решение владельца 2026-10-11). */
.pay-methods { margin: 0; color: var(--muted-foreground); font-size: 12px; text-align: center; }

/* «Как получить Pro» (макет 01). */
.pro__how { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
.steps { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; font-size: 14px; line-height: 1.4; }
.steps li { display: flex; align-items: flex-start; gap: 12px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 700; }

/* 02 · Результат оплаты — колонка по центру */

.center { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 32px; text-align: center; }
@media (min-width: 768px) { .center { padding-top: 96px; gap: 24px; } }
.center h1 { font-size: 28px; }
.center__text { color: var(--muted-foreground); font-size: 16px; line-height: 1.5; }
.status-icon { display: inline-flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 999px; }
.status-icon .icon { width: 44px; height: 44px; }
.status-icon--success { background: var(--accent-start); color: var(--on-accent); box-shadow: 0 0 40px #C6FF0066; }
.status-icon--error { background: var(--danger); color: #FFFFFF; box-shadow: 0 0 40px #FF4D5E55; }
.status-icon--pending { background: var(--surface-2); color: var(--accent-start); }
.status-icon--pending .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .status-icon--pending .icon { animation: none; } }

/* 02a · Счёт на ручную оплату (решение владельца 2026-10-15) */

.invoice__amount { margin: 0; font: 800 40px/1 var(--font-display); }
.invoice__timer { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.invoice__timer .icon { width: 18px; height: 18px; }
.invoice__code { font-family: var(--font-mono, ui-monospace, monospace); font-size: 17px; letter-spacing: 1px; user-select: all; }
.invoice__qr { align-self: center; width: 200px; padding: 8px; border-radius: var(--radius-m); background: #FFFFFF; }
.invoice__qr svg { display: block; width: 100%; height: auto; }
.invoice__action { width: 100%; }
/* Сумма и номер счёта — вручную (просьба владельца 2026-10-14): заметная плашка до кнопки банка. */
.transfer { display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 16px; border: 2px solid var(--accent-start); border-radius: var(--radius-l); background: #C6FF000F; text-align: left; }
.transfer__title { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 16px/1.3 var(--font-display); color: var(--accent-start); }
.transfer__title .icon { width: 20px; height: 20px; flex: none; }
.transfer__text { margin: 0; font-size: 14px; line-height: 1.4; }
.transfer__row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 10px 12px; border-radius: var(--radius-m); background: var(--surface); }
.transfer__label { grid-column: 1; color: var(--muted-foreground); font-size: 13px; }
.transfer__value { grid-column: 1; font: 800 22px/1.2 var(--font-display); letter-spacing: .5px; user-select: all; }
.transfer__row .btn { grid-column: 2; grid-row: 1 / span 2; flex: none; }
.transfer__row .btn .icon { width: 16px; height: 16px; }
.dialog-host { width: 100%; }
.dialog-host > .btn { width: 100%; }
/* Окна вместо window.confirm (dialog): перед банком и отмена счёта — в стиле карточек сайта. */
.dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--border); border-radius: var(--radius-l); background: var(--surface); color: var(--foreground); }
.dialog::backdrop { background: #0B0B10CC; backdrop-filter: blur(4px); }
.dialog__body { display: flex; flex-direction: column; gap: 14px; padding: 24px 20px 20px; text-align: left; }
.dialog__title { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 18px/1.3 var(--font-display); color: var(--accent-start); }
.dialog__title .icon { width: 22px; height: 22px; flex: none; }
.dialog__title--danger { color: var(--danger); }
.dialog__text { margin: 0; font-size: 15px; line-height: 1.45; }
.dialog__values { display: grid; gap: 4px; margin: 0; padding: 12px 14px; border-radius: var(--radius-m); background: var(--surface-2); }
.dialog__values dt { color: var(--muted-foreground); font-size: 13px; }
.dialog__values dd { margin: 0 0 6px; font: 800 22px/1.2 var(--font-display); letter-spacing: .5px; user-select: all; }
.dialog__values dd:last-child { margin-bottom: 0; }
.dialog .btn { width: 100%; }
.account-delete .btn { width: 100%; }
.account-delete .steps-card .note { margin: 0; }
.invoice__action .btn { width: 100%; }
.status-icon--pending-static { background: var(--surface-2); color: var(--muted-foreground); }

.steps-card { display: flex; flex-direction: column; gap: 14px; width: 100%; padding: 20px; background: var(--surface); border-radius: var(--radius-l); text-align: left; }
.steps { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: flex; gap: 12px; font-size: 15px; line-height: 1.4; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 700; }

/* 03 · Вход */

.login { display: flex; flex-direction: column; gap: 20px; padding-top: 40px; }
@media (min-width: 768px) { .login { padding-top: 140px; gap: 22px; } }
.login h1 { font-size: 28px; }
.login__lead { color: var(--muted-foreground); font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.login__form { display: flex; flex-direction: column; gap: inherit; }
.login__terms { margin: 0; font-size: 13px; line-height: 1.45; }
.login__links { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin: 0; font-size: 15px; }
.login__links .muted { font-weight: 600; }

.otp { position: relative; }
.otp__cells { display: none; gap: 8px; }
.otp--enhanced .otp__cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.otp__cell { display: flex; align-items: center; justify-content: center; height: 60px; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-s); font: 800 28px/1 var(--font-digits); }
.otp--focused .otp__cell--active { border-color: var(--accent-start); }
.otp input { width: 100%; height: 60px; padding: 0 16px; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-s); color: var(--foreground); font: 800 28px/1 var(--font-digits); letter-spacing: 8px; text-align: center; outline: 0; }
.otp input:focus { border-color: var(--accent-start); }
.otp--enhanced input { position: absolute; inset: 0; height: 100%; opacity: 0; caret-color: transparent; }

/* 04 · Кабинет */

.cabinet { display: flex; flex-direction: column; gap: 24px; padding-top: 16px; }
.cabinet__title { display: flex; flex-direction: column; gap: 4px; }
.cabinet__title h1 { font-size: 28px; }
.cabinet__title p { color: var(--muted-foreground); font-size: 15px; overflow-wrap: anywhere; }
.cabinet__column { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
/*
 * Порядок блоков: подписка и устройства сервиса — order в разметке (1, 2, 3, 4… по сервисам);
 * покупки — под подписками, «выйти везде» — под устройствами. На любой ширине: на компьютере
 * это порядок внутри колонки, на телефоне и планшете — в общей колонке.
 */
.cabinet__invoices { order: 0; }
/* Согласие на рекламу — под подписками (просьба владельца 2026-10-14), над покупками. */
.cabinet__marketing { order: 99; }
.cabinet__invoices .btn { flex: none; }
.cabinet__history { order: 100; }
.cabinet__logout-all { order: 101; }
.cabinet__delete { order: 102; align-self: center; color: var(--danger); font-size: 14px; font-weight: 600; }
/* Телефон и планшет — одна колонка в порядке макета: подписка, устройства, покупки, выход везде. */
@media (max-width: 1099px) {
    .cabinet__columns { display: flex; flex-direction: column; gap: 24px; }
    .cabinet__column { display: contents; }
}
@media (min-width: 768px) { .cabinet { padding: 32px 98px 0; gap: 28px; } }
@media (min-width: 1100px) {
    .cabinet { padding: 32px 0 0; gap: 32px; }
    .cabinet__columns { display: grid; grid-template-columns: 480px minmax(0, 1fr); gap: 32px; align-items: start; }
    .cabinet__column { gap: 28px; }
}
.section { display: flex; flex-direction: column; gap: 10px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; }
.section__count { color: var(--muted-foreground); font-size: 13px; font-weight: 600; }

/* Облачные копии в кабинете (макет «04 Кабинет — облачные копии»): устройство — <details>. */
.link-danger { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--danger); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.link-danger .icon { width: 16px; height: 16px; }
.backup + .backup { border-top: 1px solid var(--border); }
.backup__summary { cursor: pointer; list-style: none; }
.backup__summary::-webkit-details-marker { display: none; }
.backup__chevron { display: inline-flex; color: var(--muted-foreground); transition: transform .15s; }
.backup__chevron .icon { width: 20px; height: 20px; }
.backup[open] .backup__chevron { transform: rotate(180deg); }
.backup__versions { margin: 0; padding: 0 14px 0 66px; list-style: none; }
.backup__version { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; font-weight: 500; }
.backup__download { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; margin: -8px -8px -8px 0; color: var(--accent-end); }
.backup__download .icon { width: 20px; height: 20px; }
.backup__delete { padding: 10px 14px 12px 66px; }
.backup__delete .link-danger { font-size: 14px; }

.subscription { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; border-radius: var(--radius-l); background: linear-gradient(135deg, #2E6BFF, #8B5CF6); color: #FFFFFF; }
.subscription__head { display: flex; align-items: center; justify-content: space-between; align-self: stretch; }
.subscription__head .section-label { color: #FFFFFFB3; }
.subscription__badge { padding: 4px 10px; border-radius: 999px; background: var(--accent-start); color: var(--on-accent); font: 700 12px/1.2 var(--font-display); letter-spacing: 1px; }
.subscription__until { font: 700 30px/1.1 var(--font-display); }
.subscription__left { color: #FFFFFFCC; font-size: 14px; }
.subscription__extend { height: 48px; padding: 0 20px; background: #FFFFFF2E; color: #FFFFFF; font-size: 16px; font-weight: 700; }
.subscription--free { align-items: stretch; gap: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--foreground); }
.subscription--free h2 { font-size: 24px; }
.subscription--free p { color: var(--muted-foreground); font-size: 14px; line-height: 1.4; }

.purchase__title { font-size: 15px; }
.purchase__price { font: 800 17px/1.2 var(--font-digits); }

/* 05 · Документы */

.document { display: flex; flex-direction: column; gap: 16px; max-width: 680px; margin: 0 auto; padding-top: 16px; }
@media (min-width: 768px) { .document { padding-top: 40px; gap: 18px; } }
.document h1 { font-size: 26px; }
.document h2 { margin-top: 8px; font: 700 18px/1.3 var(--font-ui); }
.document p, .document li { font-size: 15px; font-weight: 400; line-height: 1.55; }
.document ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 20px; }
