/* ==========================================================================
   MyCloud — дизайн-система сайта
   1. Токены (цвета, типографика, радиусы, тени) + тёмная тема
   2. База и типографика
   3. Сетка и утилиты
   4. Компоненты: кнопки, карточки, бейджи, формы, таблицы
   5. Шапка и навигация
   6. Секции: hero, статистика, фичи, тарифы, калькулятор, FAQ, форма, блог
   7. Подвал и мобильная панель
   8. Анимации и доступность
   ========================================================================== */

/* ---------- 1. Токены ---------- */
:root {
    color-scheme: light;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Manrope", var(--font-body);

    --bg: #f5f7fb;
    --bg-elev: #ffffff;
    --bg-soft: #eef2f8;
    --bg-tint: #e8f3fa;
    --text: #0f1b2d;
    --text-2: #4b5b70;
    --text-3: #7b8aa0;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;

    --brand: #0a7fc2;
    --brand-600: #086ba4;
    --brand-700: #075a8a;
    --brand-100: #d9edf8;
    --brand-50: #eef6fb;
    --navy: #214263;
    --navy-900: #14283d;
    --accent: #ff9933;
    --accent-600: #f08417;
    --accent-100: #ffeeda;
    --success: #11a54f;
    --success-100: #dcf5e6;
    --danger: #d64545;
    --danger-100: #fbe3e3;
    --warning: #e2a400;

    --on-brand: #ffffff;
    --grad-brand: linear-gradient(135deg, #0a7fc2 0%, #1a5fb4 100%);
    --grad-hero: radial-gradient(1200px 600px at 85% -10%, rgba(10, 127, 194, .18), transparent 60%),
                 radial-gradient(900px 500px at -10% 110%, rgba(255, 153, 51, .16), transparent 60%);

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 28px;
    --r-pill: 999px;

    --sh-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 1px 3px rgba(15, 27, 45, .04);
    --sh-md: 0 6px 20px -6px rgba(15, 27, 45, .14), 0 2px 6px rgba(15, 27, 45, .05);
    --sh-lg: 0 24px 50px -20px rgba(15, 27, 45, .25), 0 8px 20px -10px rgba(15, 27, 45, .10);
    --sh-brand: 0 10px 24px -8px rgba(10, 127, 194, .55);

    --header-h: 72px;
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(56px, 8vw, 104px);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b1220;
    --bg-elev: #111a2b;
    --bg-soft: #172236;
    --bg-tint: #13253a;
    --text: #e8eef7;
    --text-2: #aab8cc;
    --text-3: #7f8ea5;
    --line: #223049;
    --line-strong: #2f405c;

    --brand: #3ab0e8;
    --brand-600: #5cbfee;
    --brand-700: #8dd3f5;
    --brand-100: #16334a;
    --brand-50: #12283c;
    --navy: #dbe6f3;
    --navy-900: #eef4fb;
    --accent: #ffad5c;
    --accent-600: #ffbf80;
    --accent-100: #3a2a14;
    --success: #3ccf76;
    --success-100: #143424;
    --danger: #ff7a7a;
    --danger-100: #3d1d1d;

    --on-brand: #06131f;
    --grad-brand: linear-gradient(135deg, #3ab0e8 0%, #4f8cf0 100%);
    --grad-hero: radial-gradient(1200px 600px at 85% -10%, rgba(58, 176, 232, .18), transparent 60%),
                 radial-gradient(900px 500px at -10% 110%, rgba(255, 173, 92, .12), transparent 60%);
    --sh-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --sh-md: 0 8px 24px -8px rgba(0, 0, 0, .6);
    --sh-lg: 0 30px 60px -24px rgba(0, 0, 0, .7);
    --sh-brand: 0 10px 24px -8px rgba(58, 176, 232, .45);
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand-600); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { font-weight: 600; }
small { font-size: .875em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand-100); color: var(--text); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--navy-900);
    margin: 0 0 .5em;
    text-wrap: balance;
}
h1, .h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); font-weight: 800; }
h2, .h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); }
h4, .h4 { font-size: 1.15rem; }
h5, .h5 { font-size: 1rem; }
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--text-2); }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand); margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.eyebrow.eyebrow-accent { color: var(--accent-600); }
.eyebrow.eyebrow-accent::before { background: var(--accent); }
.text-muted { color: var(--text-2); }
.text-soft { color: var(--text-3); }
.text-brand { color: var(--brand); }
.text-accent { color: var(--accent-600); }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- 3. Сетка ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 860px; }
/* Широкие экраны: ширина контента (без боковых полей --gutter) — 1320 px на ноутбуках от 1440 px,
   1440 px на экранах от 1680 px, на Full HD и шире — не больше 1810 px (поля по 48 px) */
@media (min-width: 1440px) { :root { --container: 1384px; } }
@media (min-width: 1680px) { :root { --container: 1504px; } }
@media (min-width: 1920px) { :root { --container: 1906px; --gutter: 48px; } }
.section { padding-block: var(--section); }
.section-sm { padding-block: calc(var(--section) * .6); }
.section-soft { background: var(--bg-soft); }
.section-elev { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head p { color: var(--text-2); font-size: 1.05rem; margin: 0; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
.split > *, .calc > *, .calc-controls > *, .calc-summary > * { min-width: 0; }
.calc-summary-row > :first-child { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; } .split.even { grid-template-columns: 1fr 1fr; } }

.stack > * + * { margin-top: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.cluster.center { justify-content: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
@media (max-width: 899px) { .hide-mobile { display: none !important; } }
@media (min-width: 900px) { .hide-desktop { display: none !important; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 4. Компоненты ---------- */
.ico { width: 1.25em; height: 1.25em; flex: 0 0 auto; display: inline-block; vertical-align: -.25em; }
i.ico { font-size: 1.1em; line-height: 1; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .8rem 1.35rem; border-radius: var(--r-pill);
    font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap;
    border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(10, 127, 194, .6); }
.btn-accent { background: var(--accent); color: #1a1205; box-shadow: 0 10px 24px -8px rgba(255, 153, 51, .55); }
.btn-accent:hover { background: var(--accent-600); color: #1a1205; transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.btn-ghost { background: transparent; color: var(--text-2); padding-inline: .9rem; }
.btn-ghost:hover { color: var(--brand); background: var(--brand-50); }
.btn-soft { background: var(--brand-50); color: var(--brand-700); }
.btn-soft:hover { background: var(--brand-100); color: var(--brand-700); }
.btn-white { background: #fff; color: var(--navy); box-shadow: var(--sh-md); }
.btn-white:hover { color: var(--brand); transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem .95rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.card {
    background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 1.6rem; box-shadow: var(--sh-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.card-soft { background: var(--bg-soft); box-shadow: none; }
.card-tint { background: var(--bg-tint); border-color: transparent; box-shadow: none; }
.card h3, .card h4 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }

.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .28rem .7rem; border-radius: var(--r-pill);
    font-size: .75rem; font-weight: 600; letter-spacing: .02em; line-height: 1.2;
    background: var(--brand-100); color: var(--brand-700);
}
.badge-accent { background: var(--accent-100); color: #9a4d00; }
[data-theme="dark"] .badge-accent { color: var(--accent-600); }
.badge-success { background: var(--success-100); color: #0b6b33; }
[data-theme="dark"] .badge-success { color: var(--success); }
.badge-soft { background: var(--bg-soft); color: var(--text-2); }
.badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-100); }

.pill-list { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; list-style: none; }
.pill {
    display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem;
    border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--bg-elev);
    color: var(--text); font-weight: 500; font-size: .9rem; transition: all .2s var(--ease);
}
.pill:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.pill .ico { color: var(--brand); }

.icon-box {
    width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-50); color: var(--brand); font-size: 1.5rem; flex: 0 0 auto;
}
.icon-box .ico { width: 26px; height: 26px; }
.icon-box.accent { background: var(--accent-100); color: var(--accent-600); }
.icon-box.success { background: var(--success-100); color: var(--success); }
.icon-box.lg { width: 64px; height: 64px; border-radius: 18px; }
.icon-box.lg .ico { width: 30px; height: 30px; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; color: var(--text-2); }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
    background: var(--success-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311a54f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E") center/60% no-repeat;
}
.check-list.compact li { margin-bottom: .35rem; font-size: .95rem; }
.check-list.dark li { color: var(--text); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-elev); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.table th, .table td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); background: var(--bg-soft); font-weight: 600; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg-soft); }
.table th[scope="row"] { font-weight: 600; color: var(--text); }
.table .price { font-weight: 700; color: var(--navy-900); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .btn { padding: .45rem .9rem; font-size: .82rem; }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; }
.form-control {
    width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
    background: var(--bg-elev); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.form-control::placeholder { color: var(--text-3); }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control {
    appearance: none; padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8aa0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.1rem;
}
.was-validated .form-control:invalid { border-color: var(--danger); }
.alert { padding: .9rem 1.1rem; border-radius: var(--r-md); font-size: .95rem; }
.alert-success { background: var(--success-100); color: #0b6b33; }
.alert-danger { background: var(--danger-100); color: #9c2b2b; }
[data-theme="dark"] .alert-success { color: var(--success); }
[data-theme="dark"] .alert-danger { color: var(--danger); }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .875rem; color: var(--text-3); }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line-strong); }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs a:hover { color: var(--brand); }

/* ---------- 5. Шапка ---------- */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: var(--r-md); }
.skip-link:focus { top: 1rem; color: #fff; }

.topbar { background: var(--navy-900); color: #cfdbe9; font-size: .82rem; }
[data-theme="dark"] .topbar { background: #070d18; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 1rem; }
.topbar a { color: #cfdbe9; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: #fff; }
.topbar .ico { width: 1em; height: 1em; }
.topbar-group { display: flex; gap: 1.25rem; align-items: center; }

.header {
    position: sticky; top: 0; z-index: 900;
    background: color-mix(in srgb, var(--bg-elev) 86%, transparent);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--sh-sm); }
.header .container { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); position: relative; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 40px; width: auto; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

.nav { display: none; margin-left: 1rem; }
.nav > ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
    display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .85rem; border-radius: var(--r-pill);
    color: var(--text); font-weight: 500; font-size: .95rem; background: none; border: 0;
}
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link.is-active { color: var(--brand); background: var(--brand-50); }
.nav-link .ico { width: 1em; height: 1em; transition: transform .2s; opacity: .7; }
.nav-link[aria-expanded="true"] .ico { transform: rotate(180deg); }

.menu {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px;
    background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--sh-lg); padding: .75rem; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item.has-mega { position: static; }
.menu-mega { left: 0; right: 0; width: auto; padding: 1.25rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.menu-mega .menu-link { font-size: .86rem; padding: .4rem .5rem; }
.menu-mega.cols-2 { width: 600px; grid-template-columns: repeat(2, 1fr); }
.menu-col h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: .25rem .6rem .5rem; font-family: var(--font-body); font-weight: 600; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu-link {
    display: flex; align-items: center; gap: .65rem; padding: .55rem .65rem; border-radius: var(--r-md);
    color: var(--text); font-size: .92rem; font-weight: 500; line-height: 1.3;
}
.menu-link:hover { background: var(--brand-50); color: var(--brand); }
.menu-link .ico { color: var(--brand); opacity: .9; width: 1.15em; height: 1.15em; }
.menu-link.is-main { font-weight: 700; }
.menu-link small { display: block; font-weight: 400; color: var(--text-3); font-size: .8rem; }
.menu-cta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border-radius: var(--r-md); background: var(--bg-tint); font-size: .9rem; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
/* Поле поиска в мобильном меню и на странице 404 */
.drawer-search { display: flex; gap: .5rem; margin-bottom: 1rem; }
.drawer-search .form-control { flex: 1; min-width: 0; }
.icon-btn {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-elev);
    display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); transition: all .2s var(--ease);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn .ico { width: 20px; height: 20px; }
.theme-toggle .ico-sun { display: none; }
[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
.lang-switch { font-weight: 700; font-size: .85rem; width: auto; padding-inline: .8rem; border-radius: var(--r-pill); gap: .4rem; }
.lang-menu { position: relative; }
.menu-lang { left: auto; right: 0; min-width: 190px; padding: .4rem; list-style: none; margin: 0; z-index: 60; }
.menu-lang .menu-link { gap: .6rem; }
.menu-lang .menu-link .ico { margin-left: auto; }
.lang-code { display: inline-grid; place-items: center; min-width: 2rem; padding: .1rem .3rem; border-radius: var(--r-sm, 6px); background: var(--bg-tint); font-size: .72rem; font-weight: 700; color: var(--text-2); letter-spacing: .04em; }
.menu-link.is-main .lang-code { background: var(--brand-50); color: var(--brand); }

@media (min-width: 1100px) {
    .nav { display: block; }
    .burger { display: none; }
}

/* Мобильное меню */
.drawer { position: fixed; inset: 0; z-index: 950; visibility: hidden; pointer-events: none; transition: visibility .3s; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(6, 12, 24, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw);
    background: var(--bg-elev); overflow-y: auto; padding: 1.25rem var(--gutter) 6rem;
    box-shadow: var(--sh-lg); transform: translateX(100%); transition: transform .3s var(--ease);
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary {
    list-style: none; display: flex; justify-content: space-between; align-items: center;
    padding: .9rem 0; font-weight: 600; cursor: pointer; font-family: var(--font-display); font-size: 1.05rem;
}
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary .ico { transition: transform .2s; color: var(--text-3); }
.drawer details[open] summary .ico { transform: rotate(180deg); }
.drawer h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: .75rem 0 .25rem; font-family: var(--font-body); }
.drawer-list { list-style: none; margin: 0 0 .75rem; padding: 0; }
.drawer .menu-link { padding: .55rem 0; }
.drawer .drawer-links a { display: flex; align-items: center; gap: .6rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-weight: 600; font-family: var(--font-display); font-size: 1.05rem; color: var(--text); }
.drawer-foot { margin-top: 1.5rem; display: grid; gap: .6rem; }
.drawer-contacts { display: grid; gap: .5rem; margin-top: 1.25rem; font-size: .95rem; }
.drawer-contacts a { display: flex; align-items: center; gap: .6rem; color: var(--text-2); }

/* ---------- 6. Секции ---------- */
/* Hero */
.hero { position: relative; overflow: hidden; background: var(--bg-elev); background-image: var(--grad-hero); border-bottom: 1px solid var(--line); }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero .container { position: relative; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; padding-block: clamp(48px, 7vw, 96px); }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; } }
.hero h1 { margin-bottom: 1rem; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); }
.hero-compact h1 { font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.5rem); }
.hero h1 em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 560px; margin-bottom: 1.6rem; }
.hero-price { display: inline-flex; align-items: baseline; gap: .5rem; margin-bottom: 1.4rem; font-family: var(--font-display); }
.hero-price strong { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); color: var(--brand); font-weight: 800; letter-spacing: -.02em; }
.hero-price span { color: var(--text-2); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-note { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.5rem; color: var(--text-2); font-size: .9rem; }
.hero-note span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-note .ico { color: var(--success); }
.hero-visual { position: relative; }
.hero-art { max-width: min(460px, 100%); margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(15, 27, 45, .18)); }
.hero-compact .hero-grid { padding-block: clamp(36px, 5vw, 64px); }

/* Панель «сервер» на главной */
.panel {
    position: relative; max-width: 480px; margin-inline: auto;
    background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-lg); overflow: hidden;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--bg-soft); font-size: .85rem; }
.panel-head strong { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.panel-body { padding: 1.25rem; display: grid; gap: 1rem; }
.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel-row .label { display: flex; align-items: center; gap: .6rem; color: var(--text-2); font-size: .9rem; }
.panel-row .label .ico { color: var(--brand); }
.panel-row .val { font-weight: 600; font-variant-numeric: tabular-nums; }
.meter { height: 8px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; flex: 1; }
.meter i { display: block; height: 100%; border-radius: 4px; background: var(--grad-brand); transform-origin: left; animation: meter 2.4s var(--ease) infinite alternate; }
.meter i.m2 { animation-duration: 3.1s; background: linear-gradient(90deg, var(--accent), var(--accent-600)); }
.meter i.m3 { animation-duration: 2.7s; background: linear-gradient(90deg, var(--success), #4fd08a); }
@keyframes meter { from { transform: scaleX(.35); } to { transform: scaleX(.82); } }
.panel-total { display: flex; align-items: flex-end; justify-content: space-between; padding: 1rem 1.25rem; background: var(--bg-tint); border-top: 1px solid var(--line); }
.panel-total .sum { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.panel-total .sum small { font-size: .85rem; color: var(--text-2); font-weight: 500; font-family: var(--font-body); }
.panel-float {
    position: absolute; padding: .7rem 1rem; border-radius: var(--r-md); background: var(--bg-elev); border: 1px solid var(--line);
    box-shadow: var(--sh-md); font-size: .85rem; display: flex; align-items: center; gap: .6rem; animation: float 5s ease-in-out infinite;
}
.panel-float .ico { color: var(--success); }
.panel-float.f1 { left: -12px; top: 22%; }
.panel-float.f2 { right: -10px; bottom: 18%; animation-delay: -2.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 560px) { .panel-float { display: none; } }

/* Статистика */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 1.25rem 1rem; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; color: var(--brand); line-height: 1.1; }
.stat span { color: var(--text-2); font-size: .9rem; }

/* Услуги на главной */
.service-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem; position: relative; overflow: hidden; }
.service-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--brand-50); opacity: .7; transition: transform .3s var(--ease); }
.service-card:hover::after { transform: scale(1.4); }
.service-card > * { position: relative; }
.service-card .price { font-family: var(--font-display); font-weight: 700; color: var(--navy-900); }
.service-card .price small { color: var(--text-3); font-weight: 500; font-family: var(--font-body); }
.service-card .btn { align-self: flex-start; margin-top: auto; }
.service-card.accent::after { background: var(--accent-100); }

/* Фичи */
.feature { display: flex; flex-direction: column; gap: .9rem; padding: 1.6rem; }
.feature h3 { font-size: 1.1rem; margin: 0; }
.feature p { color: var(--text-2); margin: 0; font-size: .95rem; }
.feature-row { flex-direction: row; align-items: flex-start; }
.feature-row .icon-box { width: 44px; height: 44px; border-radius: 12px; }
.feature-row .icon-box .ico { width: 22px; height: 22px; }

/* Шаги */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.step { position: relative; padding: 1.75rem 1.5rem 1.5rem; }
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--brand); opacity: .35; line-height: 1; margin-bottom: .75rem; letter-spacing: -.04em;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--text-2); margin: 0; font-size: .95rem; }

/* Тарифы */
.plans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 1.75rem 1.5rem; }
.plan-popular { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--sh-md); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.plan h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.plan .for { color: var(--text-3); font-size: .875rem; min-height: 2.6em; margin-bottom: 1rem; }
.plan-spec { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .45rem; font-size: .93rem; }
.plan-spec li { display: flex; align-items: center; gap: .6rem; color: var(--text-2); }
.plan-spec .ico { color: var(--brand); width: 1.1em; height: 1.1em; }
.plan-price { margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--line); }
.plan-price .day { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--navy-900); letter-spacing: -.03em; line-height: 1.1; }
.plan-price .day small { font-size: .85rem; font-weight: 500; color: var(--text-3); font-family: var(--font-body); letter-spacing: 0; }
.plan-price .month { color: var(--text-2); font-size: .9rem; margin: .25rem 0 1rem; }
.plan .btn + .btn { margin-top: .5rem; }

/* Список «что входит» */
.included { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.included .card h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; margin-bottom: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.included .card h3 .ico { color: var(--brand); }

/* Калькулятор */
.calc { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .calc { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.calc-controls { display: grid; gap: .5rem; }
.calc-row { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.calc-row:last-child { border-bottom: 0; }
.calc-row-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.calc-label { display: flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .95rem; }
.calc-label .ico { color: var(--brand); }
.calc-value { font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-input { display: flex; align-items: center; gap: 1rem; }
.calc-number { width: 96px; text-align: center; padding: .55rem .5rem; }
.calc-hint { font-size: .82rem; color: var(--text-3); margin-top: .5rem; }
.calc-check { display: flex; align-items: center; gap: .7rem; font-weight: 500; cursor: pointer; }
.calc-check input { width: 20px; height: 20px; accent-color: var(--brand); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; background: var(--bg-soft); border-radius: 3px; outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-elev); border: 3px solid var(--brand); box-shadow: var(--sh-md); cursor: grab; transition: transform .15s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-elev); border: 3px solid var(--brand); box-shadow: var(--sh-md); cursor: grab; }
input[type="range"]::-moz-range-track { height: 6px; background: var(--bg-soft); border-radius: 3px; }
input[type="range"]:focus-visible { outline-offset: 6px; }
.calc-total { position: sticky; top: calc(var(--header-h) + 16px); background: var(--navy-900); color: #e6eef8; border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--sh-lg); }
[data-theme="dark"] .calc-total { background: var(--bg-tint); color: var(--text); border: 1px solid var(--line); }
.calc-total h3 { color: inherit; font-size: 1.1rem; margin-bottom: 1rem; }
.calc-summary { display: grid; gap: .4rem; font-size: .88rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .15); }
[data-theme="dark"] .calc-summary { border-color: var(--line); }
.calc-summary-row { display: flex; justify-content: space-between; gap: 1rem; opacity: .9; }
.calc-summary-row-empty { opacity: .45; }
.calc-summary-row span:last-child, .calc-summary-row strong:last-child { white-space: nowrap; }
.calc-total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .35rem 0; font-size: .95rem; }
.calc-total-row strong { font-variant-numeric: tabular-nums; }
.calc-total-main { font-size: 1.05rem; }
.calc-total-main strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.calc-total .calc-hint { color: rgba(230, 238, 248, .7); }
[data-theme="dark"] .calc-total .calc-hint { color: var(--text-3); }
.calc-total .btn-outline { border-color: rgba(255, 255, 255, .3); color: #fff; }
.calc-total .btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
[data-theme="dark"] .calc-total .btn-outline { border-color: var(--line-strong); color: var(--text); }
.calc-actions { display: grid; gap: .6rem; margin-top: 1rem; }

/* Пример расчёта */
.example { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 640px) { .example { grid-template-columns: repeat(4, 1fr); } }
.example b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--navy-900); }
.example .main b { color: var(--brand); font-size: 1.7rem; }
.example span { font-size: .82rem; color: var(--text-3); }

/* FAQ */
.faq { display: grid; gap: .75rem; max-width: 860px; margin-inline: auto; }
.faq-item { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--brand); box-shadow: var(--sh-sm); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; font-weight: 600; cursor: pointer; font-size: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { flex: 0 0 auto; width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--bg-soft); color: var(--text-2); transition: transform .25s var(--ease), background .2s; }
.faq-item[open] summary .ico { transform: rotate(45deg); background: var(--brand-100); color: var(--brand); }
.faq-item .faq-body { padding: 0 1.25rem 1.2rem; color: var(--text-2); }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* Клиенты */
.clients { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .clients { grid-template-columns: repeat(7, 1fr); } }
/* Каждый клиент — своим цветом (--c из clients-data.php): название, полоска сверху, фон при наведении */
.client { --c: var(--brand); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1.4rem .75rem 1.1rem; text-align: center; color: var(--text); }
.client::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); }
.client:hover { background: color-mix(in srgb, var(--c) 7%, var(--bg-elev)); border-color: color-mix(in srgb, var(--c) 35%, transparent); }
.client-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: var(--c); }
[data-theme="dark"] .client-name { color: color-mix(in srgb, var(--c) 65%, #fff); }
.client small { color: var(--text-3); font-size: .75rem; line-height: 1.3; }

/* ОС */
.os-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 720px) { .os-grid { grid-template-columns: repeat(6, 1fr); } }
.os { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 1.25rem .75rem; font-weight: 600; font-size: .9rem; }
.os img { height: 44px; width: 44px; object-fit: contain; }

/* CTA-баннер */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--navy-900); color: #fff; padding: clamp(2rem, 4vw, 3.5rem); text-align: center; }
[data-theme="dark"] .cta-band { background: var(--bg-tint); border: 1px solid var(--line); color: var(--text); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 20% 0%, rgba(58, 176, 232, .35), transparent 60%), radial-gradient(500px 300px at 90% 100%, rgba(255, 153, 51, .3), transparent 60%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { color: inherit; margin-bottom: .5rem; }
.cta-band p { color: rgba(255, 255, 255, .78); max-width: 620px; margin: 0 auto 1.5rem; }
[data-theme="dark"] .cta-band p { color: var(--text-2); }

/* Форма заявки */
.lead-wrap { display: grid; gap: 2rem; }
@media (min-width: 960px) { .lead-wrap { grid-template-columns: .9fr 1.1fr; align-items: center; } }
.lead-form { display: grid; gap: 1rem; }
.lead-form .row2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.lead-hp { position: absolute; left: -9999px; top: -9999px; }
.lead-contacts { display: grid; gap: .75rem; margin-top: 1.5rem; }
.lead-contacts a { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 500; }
.lead-contacts a:hover { color: var(--brand); }
.lead-contacts .ico { color: var(--brand); }
.consent { font-size: .8rem; color: var(--text-3); margin: 0; }

/* Блог */
.post-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; }
.post-card .meta { display: flex; gap: .6rem; align-items: center; font-size: .8rem; color: var(--text-3); }
.post-card h3 { font-size: 1.1rem; margin: 0; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--brand); }
.post-card p { color: var(--text-2); font-size: .93rem; margin: 0; flex: 1; }
.post-card .more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .9rem; }
.prose { font-size: 1.05rem; line-height: 1.75; }
.prose h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.prose th { background: var(--bg-soft); }
.prose blockquote { margin: 1.5em 0; padding: 1rem 1.25rem; border-left: 4px solid var(--brand); background: var(--bg-soft); border-radius: 0 var(--r-md) var(--r-md) 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--bg-soft); padding: .1em .35em; border-radius: 4px; }
.prose pre { background: var(--navy-900); color: #e6eef8; padding: 1rem 1.25rem; border-radius: var(--r-md); overflow-x: auto; font-size: .9rem; }
.prose pre code { background: none; padding: 0; color: inherit; }
.article-layout { display: grid; gap: 2.5rem; }
.article-layout > * { min-width: 0; }
@media (max-width: 767px) { .prose table { display: block; overflow-x: auto; min-width: 0; } .prose td, .prose th { min-width: 7rem; } }
.prose { overflow-wrap: break-word; }
@media (min-width: 960px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
/* На широком контейнере колонка текста не растягивается — длинные строки трудно читать */
@media (min-width: 1440px) { .article-layout { grid-template-columns: minmax(0, 900px) 320px; justify-content: center; gap: 3.5rem; } }
.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.legal { max-width: 860px; margin-inline: auto; }
.legal h2, .legal h3 { margin-top: 2rem; }
.legal table { font-size: .9rem; }

/* Страница «Документы» */
.doc-card { text-align: center; align-items: center; }
.doc-card .icon-box { margin-bottom: .5rem; }

/* Контакты */
.contact-card { display: flex; flex-direction: column; gap: .75rem; }
.contact-card .btn { margin-top: auto; align-self: flex-start; }

/* Реквизиты */
.props { display: grid; gap: .5rem .75rem; grid-template-columns: max-content 1fr; font-size: .95rem; }
.props dt { color: var(--text-3); }
.props dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .props { grid-template-columns: 1fr; gap: .1rem; } .props dd { margin-bottom: .6rem; } }

/* 404 */
.big-404 { font-family: var(--font-display); font-size: clamp(5rem, 15vw, 10rem); font-weight: 800; line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.05em; }

/* ---------- 7. Подвал ---------- */
.footer { background: var(--navy-900); color: #b7c6d8; padding-top: var(--section); margin-top: 0; }
[data-theme="dark"] .footer { background: #070d18; border-top: 1px solid var(--line); }
.footer a { color: #b7c6d8; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-bottom: 3rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr 1fr; } .footer ul { font-size: .85rem; } }
.footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-body); font-weight: 600; margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .92rem; }
.footer-brand p { font-size: .92rem; max-width: 320px; }
.footer-brand .logo img { height: 36px; }
.footer-contacts { display: grid; gap: .6rem; margin-top: 1.25rem; font-size: .92rem; }
.footer-contacts a, .footer-contacts span { display: flex; align-items: flex-start; gap: .6rem; }
.footer-contacts .ico { color: var(--brand); margin-top: .2em; width: 1.05em; height: 1.05em; }
[data-theme="dark"] .footer-contacts .ico { color: var(--brand); }
.footer-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); display: inline-flex; align-items: center; justify-content: center; transition: all .2s; }
.footer-social a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.footer-social .ico { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.25rem 0; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* Мобильная панель действий */
.sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; display: grid; grid-template-columns: 1fr 1fr 1.4fr;
    background: var(--bg-elev); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .25);
    padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom, 0px)); gap: .5rem;
}
.sticky-cta a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; padding: .5rem .25rem; border-radius: var(--r-md); font-size: .72rem; font-weight: 600; color: var(--text-2); }
.sticky-cta a .ico { width: 20px; height: 20px; }
.sticky-cta .main { background: var(--grad-brand); color: #fff; flex-direction: row; gap: .5rem; font-size: .9rem; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 72px; } }

.to-top {
    position: fixed; right: 1.25rem; bottom: 5.5rem; z-index: 790; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
    background: var(--bg-elev); color: var(--brand); box-shadow: var(--sh-md); display: inline-flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top .ico { transform: rotate(-90deg); }
@media (min-width: 900px) { .to-top { bottom: 1.5rem; } }

/* ---------- 8. Анимации и доступность ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; } [data-reveal-delay="2"] { transition-delay: .16s; } [data-reveal-delay="3"] { transition-delay: .24s; } [data-reveal-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
.no-js [data-reveal] { opacity: 1; transform: none; }
@media print {
    .header, .topbar, .footer, .sticky-cta, .to-top, .lead-section, .drawer { display: none !important; }
    body { background: #fff; color: #000; }
}

/* Ссылка «подробнее» внутри карточек */
.link-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--brand); margin-top: auto; font-size: .92rem; }
.card-hover:hover .link-more .ico { transform: translateX(3px); }
.link-more .ico { transition: transform .2s var(--ease); }
a.card { color: inherit; }

/* ---------- Визуалы hero-блоков услуг ---------- */
.visual { position: relative; max-width: 480px; margin-inline: auto; }
/* Чат поддержки (visual 'support') */
.chat-body { padding: 1.1rem 1.25rem; display: grid; gap: .6rem; background: var(--bg-soft); }
.chat .msg { position: relative; max-width: 86%; padding: .6rem .8rem 1.1rem; border-radius: 14px; font-size: .86rem; line-height: 1.4; }
.chat .msg.in { background: var(--bg-elev); border: 1px solid var(--line); border-bottom-left-radius: 4px; justify-self: start; }
.chat .msg.out { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.chat .msg time { position: absolute; right: .7rem; bottom: .3rem; font-size: .68rem; opacity: .65; }
.chat .panel-total .sum { font-size: 1rem; }
.chat .panel-total .sum small { font-size: .85rem; }

/* Стойка colocation */
.rack { background: var(--navy-900); border-radius: var(--r-xl); padding: 1.25rem; box-shadow: var(--sh-lg); display: grid; gap: .5rem; border: 1px solid rgba(255,255,255,.08); }
[data-theme="dark"] .rack { background: #0d1626; }
.rack-head { display: flex; justify-content: space-between; align-items: center; color: #9fb3c8; font-size: .8rem; padding: 0 .25rem .5rem; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: .25rem; }
.rack-head b { color: #fff; display: flex; align-items: center; gap: .5rem; }
.unit { height: 34px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.12); display: flex; align-items: center; justify-content: space-between; padding: 0 .75rem; color: #7f93ab; font-size: .75rem; }
.unit.on { background: linear-gradient(90deg, #1c2d45, #223a5c); border: 1px solid rgba(255,255,255,.12); color: #dbe6f3; }
.unit.on.tall { height: 72px; }
.unit .leds { display: flex; gap: 5px; }
.unit .leds i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 6px var(--success); animation: blink 1.6s infinite; }
.unit .leds i:nth-child(2) { background: var(--brand); box-shadow: 0 0 6px var(--brand); animation-delay: .4s; }
.unit .leds i:nth-child(3) { background: var(--accent); box-shadow: 0 0 6px var(--accent); animation-delay: .9s; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.unit .vents { flex: 1; margin: 0 1rem; height: 60%; background: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 2px, transparent 2px 6px); border-radius: 3px; opacity: .6; }
.rack-foot { display: flex; justify-content: space-between; color: #9fb3c8; font-size: .78rem; padding-top: .5rem; border-top: 1px solid rgba(255,255,255,.1); }
.rack-foot span { display: flex; align-items: center; gap: .35rem; }
/* Хранилище MCDrive */
.drive { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-lg); overflow: hidden; }
.drive-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--bg-soft); font-size: .85rem; }
.drive-head b { display: flex; align-items: center; gap: .5rem; }
.drive-list { padding: .5rem .75rem; display: grid; gap: .15rem; }
.drive-row { display: flex; align-items: center; gap: .75rem; padding: .55rem .5rem; border-radius: var(--r-sm); font-size: .88rem; }
.drive-row:hover { background: var(--bg-soft); }
.drive-row .ico { color: var(--brand); }
.drive-row .name { flex: 1; font-weight: 500; }
.drive-row .size { color: var(--text-3); font-variant-numeric: tabular-nums; font-size: .8rem; }
.drive-row .who { display: flex; }
.drive-row .who i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bg-elev); background: var(--brand-100); margin-left: -6px; display: inline-block; }
.drive-row .who i:nth-child(2) { background: var(--accent-100); } .drive-row .who i:nth-child(3) { background: var(--success-100); }
.drive-cap { padding: 1rem 1.25rem; border-top: 1px solid var(--line); font-size: .85rem; }
.drive-cap .row { display: flex; justify-content: space-between; margin-bottom: .5rem; }
.drive-cap .bar { height: 10px; border-radius: 5px; background: var(--bg-soft); overflow: hidden; display: flex; }
.drive-cap .bar i { display: block; height: 100%; } .drive-cap .bar i:nth-child(1) { width: 38%; background: var(--brand); } .drive-cap .bar i:nth-child(2) { width: 22%; background: var(--accent); } .drive-cap .bar i:nth-child(3) { width: 12%; background: var(--success); }
/* Камеры MCVMS */
.cams { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .6rem; background: var(--navy-900); border-radius: var(--r-xl); box-shadow: var(--sh-lg); border: 1px solid rgba(255,255,255,.08); }
[data-theme="dark"] .cams { background: #0d1626; }
.cam { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #26405f, #16283d); }
.cam::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 0 70%, rgba(0,0,0,.45)), repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px); }
.cam::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 22%; height: 30%; border-radius: 40% 40% 8px 8px; background: rgba(255,255,255,.08); }
.cam.c2::after { left: 10%; right: 45%; bottom: 18%; height: 40%; }
.cam.c3::after { left: 35%; right: 15%; bottom: 25%; height: 22%; }
.cam.c4::after { display: none; }
.cam .tag { position: absolute; top: .5rem; left: .5rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .68rem; font-weight: 600; color: #fff; background: rgba(0,0,0,.45); padding: .2rem .5rem; border-radius: 999px; letter-spacing: .04em; }
.cam .tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff4d4d; animation: blink 1.2s infinite; }
.cam .time { position: absolute; bottom: .45rem; right: .55rem; font-size: .65rem; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
.cam .motion { position: absolute; inset: 22% 30% 28% 25%; border: 2px solid var(--accent); border-radius: 6px; box-shadow: 0 0 0 4px rgba(255,153,51,.25); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: .9; } 50% { opacity: .4; } }
.cams-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; color: #9fb3c8; font-size: .78rem; padding: .35rem .5rem .2rem; }
.cams-foot b { color: #fff; }

/* Быстрые варианты в форме заявки */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .85rem; }
.chip { padding: .4rem .8rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--bg-soft); font-size: .82rem; font-weight: 500; color: var(--text-2); transition: all .2s var(--ease); }
.chip:hover, .chip.is-active { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }

/* Сравнительная таблица */
.compare th:first-child, .compare td:first-child { font-weight: 600; color: var(--text); }
.compare .ok { color: var(--success); font-weight: 600; }
.compare .no { color: var(--danger); }
.compare .hl { background: var(--bg-tint); }
.compare thead .hl { color: var(--brand); }

/* Промо-плашка в hero */
.promo { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.25rem; padding: .6rem 1rem .6rem .8rem; border-radius: var(--r-pill); background: var(--accent-100); color: #7a3d00; font-weight: 600; font-size: .9rem; border: 1px solid transparent; transition: all .2s var(--ease); }
.promo:hover { border-color: var(--accent); color: #7a3d00; transform: translateY(-1px); }
.promo .ico:first-child { color: var(--accent-600); width: 1.3em; height: 1.3em; }
[data-theme="dark"] .promo, [data-theme="dark"] .promo:hover { color: var(--accent-600); }

/* Мастер «Что выбрать» */
.wizard { padding: clamp(1.25rem, 3vw, 2.5rem); position: relative; overflow: hidden; }
.wizard-progress { position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--bg-soft); }
.wizard-progress i { display: block; height: 100%; width: 0; background: var(--grad-brand); transition: width .4s var(--ease); }
.wizard-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.wizard-step legend { padding: 0; margin-bottom: 1.25rem; }
.wizard-step legend h2 { margin: 0; }
.wizard-options { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.wizard-option { cursor: pointer; }
.wizard-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.wizard-option-body { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--bg-elev); height: 100%; transition: all .2s var(--ease); }
.wizard-option-body .ico { color: var(--brand); width: 1.6em; height: 1.6em; flex: 0 0 auto; }
.wizard-option-body b { display: block; font-weight: 600; }
.wizard-option-body small { color: var(--text-3); line-height: 1.35; display: block; margin-top: .2rem; }
.wizard-option:hover .wizard-option-body { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--sh-sm); }
.wizard-option input:checked + .wizard-option-body { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px var(--brand-100); }
.wizard-option input:focus-visible + .wizard-option-body { outline: 3px solid var(--brand); outline-offset: 2px; }
.wizard-primary { flex-direction: row; align-items: flex-start; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--sh-md); }
.wizard-primary h3 { font-size: 1.3rem; }
.wizard-result .feature-row h3 { font-size: 1rem; }
.wizard-result .feature-row p { font-size: .88rem; }

/* Страница статуса */
.status-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); font-weight: 500; }
.status-row:last-child { border-bottom: 0; }
.status-row .ico { color: var(--success); margin-right: .35rem; }
.badge-danger { background: var(--danger-100); color: #9c2b2b; }
[data-theme="dark"] .badge-danger { color: var(--danger); }

/* Конструктор КП для клиента */
.pp-list { display: grid; gap: .5rem; }
.pp-item { display: grid; grid-template-columns: 1fr auto auto; gap: .75rem 1rem; align-items: center; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--r-md); transition: all .2s var(--ease); }
.pp-item.is-on { border-color: var(--brand); background: var(--brand-50); }
.pp-name b { display: block; font-weight: 600; font-size: .95rem; }
.pp-name small { color: var(--text-3); display: block; line-height: 1.35; }
.pp-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.pp-price small { display: block; font-weight: 500; color: var(--text-3); font-size: .75rem; }
.pp-qty { display: flex; align-items: center; gap: .35rem; }
.pp-qty .form-control { width: 76px; text-align: center; padding: .45rem .3rem; }
.pp-qty .icon-btn { width: 36px; height: 36px; }
@media (max-width: 640px) { .pp-item { grid-template-columns: 1fr auto; } .pp-price { grid-column: 1 / -1; text-align: left; } .pp-price small { display: inline; margin-left: .35rem; } }
.was-validated .pp-item:not(.is-on) { }

/* Конфигуратор VPS в конструкторе КП */
.vm-list { display: grid; gap: .75rem; }
.vm-row { border: 1px solid var(--brand); background: var(--brand-50); border-radius: var(--r-md); padding: .9rem 1rem; }
.vm-head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.vm-head b { font-size: .92rem; flex: 1 1 260px; }
.vm-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vm-price small { font-weight: 500; color: var(--text-2); }
.vm-head .icon-btn { width: 34px; height: 34px; }
.vm-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.vm-grid label { display: grid; gap: .3rem; font-size: .8rem; color: var(--text-2); }
.vm-grid label span { display: flex; align-items: center; gap: .3rem; }
.vm-grid .form-control { padding: .5rem .6rem; font-size: .95rem; }
.vm-grid select.form-control { padding-right: 2rem; }

/* Баннер согласия на аналитические cookie */
.cookie-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 850; max-width: 560px; margin-inline: auto;
    display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: 1rem 1.1rem;
    background: var(--bg-elev); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
}
.cookie-banner p { margin: 0; flex: 1 1 260px; font-size: .9rem; color: var(--text-2); }
.cookie-banner .cookie-actions { display: flex; gap: .5rem; margin-left: auto; }
.cookie-banner[hidden] { display: none; }
@media (max-width: 899px) { .cookie-banner { bottom: 5rem; } }

/* Инструкция «Как заказать VPS» */
.guide-need { display: flex; flex-direction: column; gap: .9rem; }
.guide-need .icon-box { flex: none; width: 48px; height: 48px; border-radius: 14px; }
.guide-need .icon-box .ico { width: 22px; height: 22px; }
.guide-need p { color: var(--text-2); font-size: .93rem; }
.guide-steps { position: relative; }
.guide-steps::before { content: ""; position: absolute; left: 1.4rem; top: 1.5rem; bottom: 3rem; width: 2px; background: linear-gradient(var(--brand), var(--line-strong)); opacity: .5; }
.guide-step, .guide-done { position: relative; padding-left: 4.25rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.guide-step + .guide-step, .guide-done { margin-top: 1.75rem; }
.guide-num { position: absolute; left: 0; top: .75rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; box-shadow: var(--sh-brand), 0 0 0 6px var(--bg-soft); }
.guide-num .ico { width: 1.3rem; height: 1.3rem; }
.guide-done .guide-num { background: var(--success); box-shadow: 0 0 0 6px var(--bg-soft); }
.guide-card { padding: clamp(1.25rem, 3vw, 2rem); }
.guide-head { margin-bottom: 1rem; }
.guide-head h2 { margin: .35rem 0 .6rem; }
.guide-kicker { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.guide-kicker .ico { width: .95rem; height: .95rem; margin-left: .25rem; }
.guide-where { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; padding: .35rem .75rem; border-radius: var(--r-pill); background: var(--brand-50); color: var(--brand-700); font-size: .85rem; font-weight: 600; }
.guide-where .ico { width: 1rem; height: 1rem; flex: none; }
.guide-body { font-size: 1rem; }
.guide-body h3 { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
.guide-body > :last-child { margin-bottom: 0; }
.guide-body ol, .guide-body ul { padding-left: 1.25rem; }
.guide-note { display: flex; gap: .75rem; margin-top: 1.25rem; padding: .9rem 1.1rem; border-radius: var(--r-md); background: var(--brand-50); border-left: 3px solid var(--brand); font-size: .95rem; color: var(--text); }
.guide-note > .ico { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .15rem; color: var(--brand); }
.guide-note-warn { background: var(--accent-100); border-left-color: var(--accent); }
.guide-note-warn > .ico { color: var(--accent-600); }
kbd { display: inline-block; padding: .05em .45em; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--bg-elev); font: 600 .82em ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.guide-mock, .guide-term { margin-top: 1.25rem; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.guide-mock-head, .guide-term-head { display: flex; align-items: center; gap: .5rem; padding: .55rem .9rem; font-size: .8rem; font-weight: 600; }
.guide-mock-head { background: var(--bg-soft); color: var(--text-2); border-bottom: 1px solid var(--line); }
.guide-mock-head .dots, .guide-term-head .dots { display: inline-flex; gap: 5px; margin-right: .35rem; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.guide-mock-body { display: grid; gap: 1rem; padding: 1rem; background: var(--bg-elev); }
@media (min-width: 640px) { .guide-mock-body { grid-template-columns: minmax(0, 1fr) 220px; } }
.guide-mock-form { display: grid; gap: .45rem; }
.guide-mock-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .9rem; }
.guide-mock-row span { color: var(--text-3); }
.guide-mock-total { display: flex; flex-direction: column; justify-content: center; gap: .2rem; padding: 1rem; border-radius: var(--r-md); background: var(--bg-tint); }
.guide-mock-total > span:first-child { font-size: .8rem; color: var(--text-2); }
.guide-mock-total strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--brand); line-height: 1.1; }
.guide-mock-total small { color: var(--text-2); margin-bottom: .75rem; }
.guide-mock-total .btn { pointer-events: none; }
.guide-mail .guide-mock-body { grid-template-columns: 1fr; }
.guide-mail .guide-mock-row strong { overflow-wrap: anywhere; text-align: right; }
.guide-access { gap: 1rem; }
.guide-access .guide-term { margin-top: 1.25rem; }
.guide-term { background: #0f1b2d; border-color: #0f1b2d; color: #e6eef8; }
.guide-term-head { background: #1a2a40; color: #aab8cc; }
.guide-term-head .ico { width: 1rem; height: 1rem; }
.guide-term pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; font: .88rem/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; color: #e6eef8; background: none; }
.guide-term .c { color: #7f93ad; }
.guide-term .p { color: #4cc38a; user-select: none; }
.guide-rdp ol { margin: 0; padding: 1rem 1.1rem 1rem 2.4rem; font-size: .9rem; line-height: 1.6; }
.guide-rdp li + li { margin-top: .45rem; }
.guide-rdp code { background: rgba(255, 255, 255, .1); color: #fff; padding: .1em .35em; border-radius: 4px; }
.guide-rdp kbd { background: #24364f; border-color: #3a4f6c; color: #fff; }
.guide-toc ol { list-style: none; margin: .5rem 0 1rem; padding: 0; display: grid; gap: .15rem; }
.guide-toc a { display: flex; align-items: center; gap: .65rem; padding: .45rem .6rem; border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; font-size: .95rem; text-decoration: none; transition: background .2s, color .2s; }
.guide-toc a span { flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--bg-soft); font-size: .8rem; font-weight: 700; color: var(--text-2); }
.guide-toc a:hover, .guide-toc a.is-active { background: var(--brand-50); color: var(--brand-700); }
.guide-toc a.is-active span { background: var(--brand); color: #fff; }
.guide-list { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .7rem; }
.guide-list li { position: relative; padding-left: 1.6rem; color: var(--text-2); font-size: .97rem; }
.guide-list li::before { content: ""; position: absolute; left: .15rem; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand); opacity: .7; }
@media (max-width: 959px) { .guide-toc { display: none; } }
@media (max-width: 575px) {
    .guide-step, .guide-done { padding-left: 0; }
    .guide-steps::before { display: none; }
    .guide-num { position: static; width: 2.4rem; height: 2.4rem; margin-bottom: -1.2rem; margin-left: 1rem; position: relative; z-index: 1; box-shadow: var(--sh-brand); }
    .guide-done .guide-num { box-shadow: none; }
    .guide-step .guide-card, .guide-done .card { padding-top: 2.1rem; }
}
.promo-guide { background: var(--brand-50); color: var(--brand-700); }
.promo-guide:hover { border-color: var(--brand); color: var(--brand-700); }
.promo-guide .ico:first-child { color: var(--brand); }
.promo + .promo-guide { margin-top: .6rem; }
.hero .promo-guide { display: flex; width: fit-content; max-width: 100%; }
.guide-link { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: var(--r-pill); background: var(--brand-50); color: var(--brand-700); font-weight: 600; text-decoration: none; transition: background .2s, transform .2s; }
.guide-link:hover { background: var(--brand-100); transform: translateY(-1px); }
.guide-link .ico { width: 1.1rem; height: 1.1rem; flex: none; }
[data-theme="dark"] .promo-guide, [data-theme="dark"] .promo-guide:hover { color: var(--brand-700); }
@media (min-width: 900px) { .steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1279px) { .topbar-guide { display: none !important; } }

/* Пункт меню, который помещается в шапку только на широких экранах (дублируется в выпадающем меню) */
.nav-item-wide { display: none; }
@media (min-width: 1320px) { .nav-item-wide { display: block; } }
