/* =====================================================================
   CloudDesk — концепт лендинга B2B SaaS (WebChoice)
   Светлая тема · Inter · sky #0EA5E9 + navy #0F172A
   Только CSS + inline SVG. Анимируются transform / opacity.
   ===================================================================== */

/* Метрически подогнанный запасной шрифт: без «прыжка» текста при загрузке Inter */
@font-face {
    font-family: "Inter Fallback";
    src: local("Arial"), local("ArialMT");
    size-adjust: 107%;
    ascent-override: 90%;
    descent-override: 22.5%;
    line-gap-override: 0%;
}

:root {
    --cd-sky: #0EA5E9;
    --cd-sky-300: #7DD3FC;
    --cd-sky-400: #38BDF8;
    --cd-sky-600: #0284C7;
    --cd-sky-700: #0369A1;
    --cd-sky-200: #BAE6FD;
    --cd-sky-100: #E0F2FE;
    --cd-sky-50: #F0F9FF;
    --cd-navy: #0F172A;
    --cd-navy-2: #1E293B;
    --cd-text: #334155;
    --cd-muted: #64748B;
    --cd-faint: #94A3B8;
    --cd-line: #E2E8F0;
    --cd-line-2: #CBD5E1;
    --cd-bg: #FFFFFF;
    --cd-bg-2: #F8FAFC;
    --cd-bg-3: #F1F5F9;
    --cd-green: #10B981;
    --cd-green-700: #047857;
    --cd-amber: #F59E0B;
    --cd-amber-700: #B45309;
    --cd-red: #EF4444;
    --cd-red-700: #B91C1C;
    --cd-tg: #229ED9;

    --cd-font: "Rub", "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --cd-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --cd-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --cd-container: 1200px;
    --cd-gutter: clamp(16px, 4vw, 32px);
    --cd-header-h: 68px;
    --cd-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --cd-shadow-md: 0 8px 24px -10px rgba(15, 23, 42, 0.18);
    --cd-shadow-lg: 0 30px 60px -24px rgba(15, 23, 42, 0.28);

    /* Док концепта — тем же шрифтом, что и страница */
    --ck-font: var(--cd-font);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
    scroll-padding-top: calc(var(--cd-header-h) + 16px);
    -webkit-text-size-adjust: 100%;
    color-scheme: light;
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--cd-bg);
    color: var(--cd-text);
    font: 400 16px/1.6 var(--cd-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
b, strong { font-weight: 700; }

:focus-visible { outline: 2px solid var(--cd-sky-600); outline-offset: 3px; }
::selection { background: var(--cd-sky-100); color: var(--cd-navy); }

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

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

.cd-skip {
    position: fixed;
    top: -80px;
    left: 16px;
    z-index: 600;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--cd-navy);
    color: #fff;
    font-weight: 600;
    transition: transform 0.3s var(--cd-ease);
}
.cd-skip:focus { transform: translateY(96px); }

/* ---------- Buttons ---------- */
.cd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font: 600 15.5px/1.25 var(--cd-font);
    letter-spacing: -0.01em;
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s var(--cd-ease), box-shadow 0.25s, background-color 0.25s, border-color 0.25s, color 0.25s;
}
.cd-btn .i { font-size: 18px; }
.cd-btn:hover { transform: translateY(-1px); }
.cd-btn:active { transform: translateY(0); }
.cd-btn__arrow { transition: transform 0.3s var(--cd-ease); }
.cd-btn:hover .cd-btn__arrow { transform: translateX(3px); }

.cd-btn--sm { min-height: 44px; padding: 8px 16px; font-size: 14.5px; border-radius: 11px; }
.cd-btn--lg { min-height: 56px; padding: 12px 26px; font-size: 16.5px; border-radius: 14px; }

.cd-btn--primary { background: var(--cd-navy); color: #fff; }
.cd-btn--primary:hover { background: var(--cd-navy-2); box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.55), 0 0 0 4px rgba(14, 165, 233, 0.12); }

.cd-btn--accent { background: var(--cd-sky); color: var(--cd-navy); }
.cd-btn--accent:hover { background: var(--cd-sky-400); box-shadow: 0 12px 28px -10px rgba(14, 165, 233, 0.65); }

.cd-btn--ghost { background: #fff; border-color: var(--cd-line-2); color: var(--cd-navy); }
.cd-btn--ghost:hover { border-color: var(--cd-navy); box-shadow: var(--cd-shadow-md); }
.cd-btn--ghost .i { color: var(--cd-sky-600); }
.cd-btn__down { transition: transform 0.3s var(--cd-ease); }
.cd-btn:hover .cd-btn__down { transform: translateY(2px); }

.cd-btn--outline { background: transparent; border-color: var(--cd-line-2); color: var(--cd-navy); }
.cd-btn--outline:hover { border-color: var(--cd-navy); background: var(--cd-bg-2); }

.cd-link {
    color: var(--cd-sky-700);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(3, 105, 161, 0.35);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}
.cd-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.cd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    height: var(--cd-header-h);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.cd-header.is-scrolled {
    background: rgba(255, 255, 255, 0.86);
    border-bottom-color: var(--cd-line);
    box-shadow: 0 6px 24px -18px rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
}
/* Открытое меню: шапка не просвечивает сквозь затемнение */
.cd-header:has(.cd-nav.is-open) { background: #fff; border-bottom-color: var(--cd-line); }
.cd-header__inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.cd-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-right: auto;
    color: var(--cd-navy);
}
.cd-logo__mark { display: block; width: 32px; height: 32px; flex-shrink: 0; }
.cd-logo__name { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.cd-logo--light { color: #fff; }

.cd-nav { display: flex; align-items: center; gap: 8px; }
.cd-nav__list { display: flex; align-items: center; gap: 2px; }
.cd-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--cd-text);
    transition: color 0.2s, background-color 0.2s;
}
.cd-nav__link:hover { color: var(--cd-navy); background: rgba(15, 23, 42, 0.05); }
.cd-nav__cta { display: none; }

.cd-burger {
    display: none;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid var(--cd-line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    place-items: center;
    align-content: center;
    gap: 5px;
}
.cd-burger__line {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--cd-navy);
    transition: transform 0.35s var(--cd-ease);
}
.cd-burger.is-active .cd-burger__line:first-child { transform: translateY(3.5px) rotate(45deg); }
.cd-burger.is-active .cd-burger__line:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.cd-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 450;
    background: rgba(15, 23, 42, 0.32);
}
.cd-overlay.is-visible { display: block; animation: cd-fade 0.3s ease both; }

@media (max-width: 959px) {
    .cd-burger { display: grid; }
    .cd-nav {
        position: absolute;
        top: calc(100% + 4px);
        left: var(--cd-gutter);
        right: var(--cd-gutter);
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
        border: 1px solid var(--cd-line);
        border-radius: 20px;
        background: #fff;
        box-shadow: var(--cd-shadow-lg);
        visibility: hidden;
        clip-path: inset(0 0 100% 0 round 20px);
        transition: clip-path 0.45s var(--cd-ease), visibility 0s linear 0.45s;
    }
    .cd-nav.is-open {
        visibility: visible;
        clip-path: inset(0 0 0 0 round 20px);
        transition: clip-path 0.45s var(--cd-ease), visibility 0s;
    }
    .cd-nav__list { flex-direction: column; align-items: stretch; }
    .cd-nav__link { min-height: 50px; font-size: 17px; font-weight: 600; color: var(--cd-navy); }
    .cd-nav__cta { display: inline-flex; width: 100%; }
}
@media (max-width: 519px) {
    .cd-header__cta { display: none; }
}

/* ---------- Common section parts ---------- */
.cd-section { padding: clamp(72px, 10vw, 128px) 0; }

.cd-head {
    max-width: 780px;
    margin: 0 auto clamp(40px, 5vw, 64px);
    text-align: center;
}
.cd-head--left { margin-left: 0; text-align: left; }
/* Разворот: заголовок слева, пояснение справа — ломает монотонный «центр» секций */
@media (min-width: 960px) {
    .cd-head--split {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
        column-gap: clamp(40px, 6vw, 96px);
        align-items: end;
        max-width: none;
        text-align: left;
    }
    .cd-head--split .cd-eyebrow { grid-column: 1 / -1; justify-self: start; }
    .cd-head--split .cd-lead { margin-top: 0; padding-bottom: 6px; }
}

.cd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cd-sky-700);
}
.cd-eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.cd-eyebrow--dark { color: var(--cd-sky-300); }

.cd-h2 {
    font-size: clamp(30px, 4.2vw, 48px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--cd-navy);
    text-wrap: balance;
}
.cd-lead {
    margin-top: 16px;
    font-size: clamp(16.5px, 1.6vw, 18.5px);
    line-height: 1.6;
    color: var(--cd-muted);
    text-wrap: pretty;
}

/* ---------- Avatars / stars / chips ---------- */
.cd-ava {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    background: var(--cd-navy);
}
.cd-ava--a { background: #DB2777; }
.cd-ava--b { background: #7C3AED; }
.cd-ava--c { background: var(--cd-sky-700); }
.cd-ava--d { background: var(--cd-green-700); }
.cd-ava--sm { width: 22px; height: 22px; font-size: 9px; }
.cd-ava--lg { width: 52px; height: 52px; font-size: 17px; }

.cd-stars { display: inline-flex; gap: 2px; color: var(--cd-amber); font-size: 15px; }

.cd-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.cd-chip--ok { background: #ECFDF5; color: var(--cd-green-700); }
.cd-chip--bad { background: #FEF2F2; color: var(--cd-red-700); }
.cd-chip--warn { background: #FFFBEB; color: var(--cd-amber-700); }

/* =====================================================================
   1. HERO
   ===================================================================== */
.cd-hero {
    position: relative;
    isolation: isolate;
    overflow: clip;
    padding: calc(var(--cd-header-h) + clamp(28px, 6vw, 72px)) 0 clamp(56px, 8vw, 96px);
}
.cd-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(55% 55% at 82% 8%, rgba(14, 165, 233, 0.2), transparent 70%),
        radial-gradient(40% 45% at 6% 28%, rgba(99, 102, 241, 0.1), transparent 70%),
        linear-gradient(180deg, #F5FAFF 0%, #FFFFFF 78%);
}
.cd-hero__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 20%, transparent 75%);
}

.cd-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(40px, 6vw, 56px);
    align-items: center;
}
/* Колонки выровнены по верху: когда доска растёт от перетаскивания, текст первого экрана не прыгает */
@media (min-width: 1080px) {
    .cd-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
}

.cd-hero__copy { max-width: 620px; }

.cd-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 14px 6px 6px;
    margin-bottom: 24px;
    border: 1px solid var(--cd-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--cd-shadow-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--cd-text);
    transition: border-color 0.25s, box-shadow 0.25s;
}
.cd-pill:hover { border-color: var(--cd-sky-200); box-shadow: var(--cd-shadow-md); }
.cd-pill .i { color: var(--cd-muted); transition: transform 0.3s var(--cd-ease); }
.cd-pill:hover .i { transform: translateX(2px); }
.cd-pill__tag {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--cd-sky-100);
    color: var(--cd-sky-700);
    font-size: 12px;
    font-weight: 700;
}

.cd-hero__title {
    font-size: clamp(38px, 5.6vw, 60px);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -0.045em;
    color: var(--cd-navy);
    text-wrap: balance;
    animation: cd-rise 0.9s var(--cd-ease) both;
}
/* В две колонки размер привязан к ширине колонки: заголовок всегда в три строки */
@media (min-width: 1080px) {
    .cd-hero__title { font-size: clamp(44px, 4.6vw, 60px); }
}
.cd-grad {
    background: linear-gradient(100deg, var(--cd-sky-600) 0%, var(--cd-sky-700) 45%, #4F46E5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
@media (forced-colors: active) {
    .cd-grad { background: none; color: CanvasText; }
}
.cd-hero__lead {
    margin-top: 22px;
    max-width: 560px;
    font-size: clamp(16.5px, 1.5vw, 18.5px);
    line-height: 1.6;
    color: var(--cd-muted);
}
.cd-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}
.cd-hero__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 22px;
    font-size: 14.5px;
    color: var(--cd-text);
}
.cd-hero__checks li { display: inline-flex; align-items: center; gap: 7px; }
.cd-hero__checks .i { color: var(--cd-green); font-size: 16px; stroke-width: 2.4; }

.cd-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--cd-line);
}
.cd-proof__faces { display: flex; }
.cd-proof__faces .cd-ava { width: 36px; height: 36px; box-shadow: 0 0 0 2.5px #fff; }
.cd-proof__faces .cd-ava + .cd-ava { margin-left: -6px; }
.cd-proof__stat {
    display: grid;
    gap: 3px;
    padding-left: 22px;
    border-left: 1px solid var(--cd-line);
}
.cd-proof__num {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--cd-navy);
    font-variant-numeric: tabular-nums;
}
.cd-proof__label { font-size: 13px; line-height: 1.3; color: var(--cd-muted); }

@media (max-width: 479px) {
    .cd-hero__actions .cd-btn { flex: 1 1 100%; }
    .cd-proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .cd-proof__faces { display: none; }
    .cd-proof__stat { padding-left: 16px; }
    .cd-proof__stat:first-of-type { padding-left: 0; border-left: 0; }
}

/* ---------- Hero demo: live kanban ---------- */
.cd-hero__demo {
    position: relative;
    isolation: isolate;
    min-width: 0;
    animation: cd-rise-lg 1s var(--cd-ease) 0.1s both;
}
/* Стопка «листов» под окном приложения: глубина без тяжёлых теней */
.cd-hero__demo::before,
.cd-hero__demo::after {
    content: "";
    position: absolute;
    z-index: -1;
    height: 50%;
    border: 1px solid var(--cd-line);
    border-radius: 20px;
    pointer-events: none;
}
.cd-hero__demo::before { left: 4%; right: 4%; bottom: -12px; background: rgba(255, 255, 255, 0.82); box-shadow: var(--cd-shadow-md); }
.cd-hero__demo::after { left: 9%; right: 9%; bottom: -24px; z-index: -2; background: rgba(255, 255, 255, 0.5); }

.cd-kb-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin: 0 0 6px 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--cd-sky-700);
}
.cd-kb-hint .i { font-size: 17px; }
.cd-kb-hint__arrow { animation: cd-nudge-x 1.8s ease-in-out infinite; }

/* Появляется после первой карточки в «Готово»: ловим интерес на пике */
.cd-kb-win {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin: 0 0 6px;
    padding: 4px 16px 4px 5px;
    border: 1px solid #A7F3D0;
    border-radius: 999px;
    background: #ECFDF5;
    color: var(--cd-green-700);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    transition: background-color 0.25s, border-color 0.25s;
    animation: cd-win-in 0.6s var(--cd-spring) both;
}
.cd-kb-win:hover { background: #D1FAE5; border-color: #6EE7B7; }
.cd-kb-win:hover .cd-btn__arrow { transform: translateX(3px); }
.cd-kb-win__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--cd-green);
    color: #fff;
    font-size: 16px;
}
.cd-kb-win__icon .i { stroke-width: 3; }
.cd-kb-win .cd-btn__arrow { font-size: 16px; }

/* «Коллега» показывает жест: курсор переносит карточку один раз */
.cd-ghost {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 6;
    display: flex;
    align-items: flex-start;
    pointer-events: none;
    transform-origin: 3px 2px;
    will-change: transform, opacity;
}
.cd-ghost__arrow {
    display: block;
    width: 20px;
    height: 22px;
    fill: #DB2777;
    stroke: #fff;
    stroke-width: 1.6;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.3));
}
.cd-ghost__name {
    margin: 17px 0 0 -5px;
    padding: 3px 8px;
    border-radius: 4px 999px 999px 999px;
    background: #DB2777;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.cd-app {
    position: relative;
    border: 1px solid var(--cd-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--cd-shadow-lg), 0 0 0 6px rgba(255, 255, 255, 0.6);
    overflow: hidden;
}
.cd-app__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--cd-line);
    font-size: 13px;
}
.cd-app__dots { display: flex; gap: 6px; flex-shrink: 0; }
.cd-app__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cd-line); }
.cd-app__dot:first-child { background: #FCA5A5; }
.cd-app__dot:nth-child(2) { background: #FCD34D; }
.cd-app__dot:last-child { background: #86EFAC; }
.cd-app__crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--cd-muted);
}
.cd-app__crumb .i { color: var(--cd-sky-600); font-size: 15px; }
.cd-app__crumb b { color: var(--cd-navy); font-weight: 600; }
.cd-app__sep { color: var(--cd-line-2); }
.cd-app__live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ECFDF5;
    color: var(--cd-green-700);
    font-size: 12px;
    font-weight: 600;
}
.cd-app__pulse {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cd-green);
}
.cd-app__pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--cd-green);
    animation: cd-ping 2s ease-out infinite;
}

.cd-kb {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    background: var(--cd-bg-2);
}
.cd-kb__col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 10px;
    border-radius: 14px;
    background: var(--cd-bg-3);
    outline: 2px dashed transparent;
    outline-offset: -2px;
    transition: background-color 0.25s, outline-color 0.25s;
}
.cd-kb__col.is-over { background: var(--cd-sky-50); outline-color: var(--cd-sky-200); }
.cd-kb__head {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 2px 4px 10px;
}
.cd-kb__dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--cd-faint); }
.cd-kb__col--todo .cd-kb__dot { background: var(--cd-amber); }
.cd-kb__col--doing .cd-kb__dot { background: var(--cd-sky); }
.cd-kb__col--done .cd-kb__dot { background: var(--cd-green); }
.cd-kb__name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 700;
    color: var(--cd-navy);
}
.cd-kb__count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    margin-left: auto;
    padding: 0 6px;
    flex-shrink: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--cd-text);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.cd-kb__count.is-bump { animation: cd-bump 0.5s var(--cd-spring); }
.cd-kb__col--done .cd-kb__count { background: #D1FAE5; color: var(--cd-green-700); }

.cd-kb__list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-height: 72px;
}

/* Card */
.cd-card {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--cd-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--cd-shadow-sm);
    cursor: grab;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s var(--cd-ease), box-shadow 0.25s, border-color 0.25s;
}
.cd-card:hover { transform: translateY(-2px); border-color: var(--cd-sky-200); box-shadow: var(--cd-shadow-md); }
.cd-card:focus-visible { outline: 2px solid var(--cd-sky-600); outline-offset: 2px; }
.cd-card__tag {
    justify-self: start;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.3;
}
.cd-card__tag--mkt { background: #FDF2F8; color: #BE185D; }
.cd-card__tag--dev { background: #F5F3FF; color: #6D28D9; }
.cd-card__tag--design { background: #FFFBEB; color: var(--cd-amber-700); }
.cd-card__tag--front { background: var(--cd-sky-50); color: var(--cd-sky-700); }
.cd-card__tag--qa { background: #ECFDF5; color: var(--cd-green-700); }
.cd-card__tag--data { background: #EEF2FF; color: #4338CA; }
.cd-card__title {
    font-size: 13.5px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--cd-navy);
    overflow-wrap: anywhere;
    transition: color 0.3s;
}
.cd-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.cd-card__due {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--cd-muted);
    white-space: nowrap;
}
.cd-card__check {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cd-green);
    color: #fff;
    font-size: 12px;
    transform: scale(0);
    transition: transform 0.45s var(--cd-spring);
}
.cd-card__check .i { stroke-width: 3; }
.cd-card.is-done .cd-card__check { transform: scale(1); }
.cd-card.is-done .cd-card__title {
    color: var(--cd-muted);
    text-decoration: line-through;
    text-decoration-color: rgba(100, 116, 139, 0.5);
}

/* Слот, где карточка окажется после отпускания */
.cd-card.is-dragging {
    border: 2px dashed var(--cd-sky-300);
    background: rgba(240, 249, 255, 0.7);
    box-shadow: none;
    transform: none;
}
.cd-card.is-dragging > * { visibility: hidden; }

/* Карточка «в руке» — клон, прикреплённый к body */
.cd-card--float {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 700;
    margin: 0;
    pointer-events: none;
    border-color: var(--cd-sky-300);
    box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.45), 0 0 0 4px rgba(14, 165, 233, 0.12);
    cursor: grabbing;
    transition: none;
    will-change: transform;
}

.cd-card.is-landed { animation: cd-land 0.6s var(--cd-spring); }
.cd-card.is-landed::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 13px;
    border: 2px solid var(--cd-green);
    pointer-events: none;
    animation: cd-ring 0.9s ease-out forwards;
}
/* Карточку «держит» курсор коллеги */
.cd-card.is-held {
    z-index: 3;
    border-color: var(--cd-sky-300);
    box-shadow: 0 18px 36px -14px rgba(15, 23, 42, 0.4), 0 0 0 3px rgba(14, 165, 233, 0.14);
    transform: rotate(-2deg) scale(1.03);
}

.cd-is-grabbing, .cd-is-grabbing * {
    cursor: grabbing !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

.cd-app__foot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--cd-line);
}
.cd-app__label { font-size: 12.5px; color: var(--cd-muted); white-space: nowrap; }
.cd-meter {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: var(--cd-line);
    overflow: hidden;
}
.cd-meter__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cd-sky), var(--cd-green));
    transform: scaleX(var(--p, 0));
    transform-origin: left;
    transition: transform 0.7s var(--cd-ease);
}
.cd-app__pct {
    min-width: 3.4ch;
    text-align: right;
    font-size: 13px;
    color: var(--cd-navy);
    font-variant-numeric: tabular-nums;
}
.cd-app__foot.is-complete .cd-app__label,
.cd-app__foot.is-complete .cd-app__pct { color: var(--cd-green-700); font-weight: 700; }

.cd-toast {
    position: absolute;
    right: -14px;
    bottom: 64px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(320px, 90%);
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--cd-navy);
    color: #fff;
    box-shadow: 0 24px 48px -18px rgba(15, 23, 42, 0.6);
    pointer-events: none;
    animation: cd-toast-in 0.5s var(--cd-spring) both;
}
.cd-toast.is-out { animation: cd-toast-out 0.25s ease-in both; }
.cd-toast__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--cd-tg);
    font-size: 18px;
}
.cd-toast__body { display: grid; gap: 2px; min-width: 0; font-size: 12.5px; line-height: 1.4; color: #CBD5E1; }
.cd-toast__body b { font-size: 13px; font-weight: 600; color: #fff; }

@media (max-width: 1240px) {
    .cd-toast { right: 12px; }
}
@media (max-width: 639px) {
    .cd-toast { left: 12px; right: 12px; width: auto; bottom: 58px; }
}

@media (max-width: 479px) {
    .cd-app__bar { padding: 10px 12px; gap: 10px; }
    .cd-app__dots { display: none; }
    .cd-kb { gap: 6px; padding: 8px; }
    .cd-kb__col { padding: 6px; border-radius: 12px; }
    .cd-kb__head { gap: 5px; padding: 2px 2px 8px; }
    .cd-kb__dot { display: none; }
    .cd-kb__name { font-size: 11.5px; }
    .cd-kb__count { min-width: 19px; height: 19px; font-size: 11px; padding: 0 4px; }
    .cd-kb__list { gap: 6px; }
    .cd-card { gap: 6px; padding: 8px; border-radius: 10px; }
    .cd-card__tag { font-size: 9.5px; padding: 2px 5px; }
    .cd-card__title { font-size: 12px; }
    .cd-card__due { display: none; }
    /* Срок скрыт — отметка «готово» занимает свободный угол рядом с аватаром и не наезжает на тег */
    .cd-card__check { top: auto; bottom: 8px; right: 8px; width: 18px; height: 18px; font-size: 10px; }
    .cd-app__foot { padding: 10px 12px; gap: 10px; }
    .cd-kb-hint { font-size: 13px; }
    .cd-kb-win { gap: 8px; padding-right: 12px; border-radius: 18px; font-size: 13px; }
    .cd-kb-win__icon { width: 28px; height: 28px; font-size: 14px; }
}
@media (max-width: 359px) {
    .cd-app__project { display: none; }
    .cd-kb { gap: 5px; padding: 6px; }
    .cd-kb__col { padding: 5px; }
    .cd-kb__name { font-size: 11px; letter-spacing: -0.01em; }
}

/* =====================================================================
   2. LOGOS
   ===================================================================== */
.cd-logos { padding: 8px 0 clamp(56px, 7vw, 80px); }
.cd-logos__title {
    max-width: 640px;
    margin: 0 auto 28px;
    text-align: center;
    font-size: 15px;
    color: var(--cd-muted);
}
.cd-logos__title b { color: var(--cd-navy); }
.cd-logos__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 22px clamp(28px, 5vw, 56px);
}
.cd-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--cd-muted);
    font-size: 21px;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.3s;
}
.cd-brand:hover { color: var(--cd-navy); }
.cd-brand__mark { display: block; width: 22px; height: 22px; flex-shrink: 0; }
.cd-brand--kvarta { font-weight: 800; letter-spacing: -0.045em; font-size: 22px; }
.cd-brand--nordfin { font-weight: 600; letter-spacing: 0.01em; }
.cd-brand--biryuza { font-weight: 600; font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; }
.cd-brand--orbita { font-weight: 700; letter-spacing: -0.03em; font-size: 23px; }
.cd-brand--tundra { font-weight: 800; font-size: 15px; letter-spacing: 0.22em; text-transform: uppercase; }
.cd-brand--meridian { font-weight: 500; letter-spacing: -0.02em; }

/* =====================================================================
   3. BENEFITS
   ===================================================================== */
.cd-benefits {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}
@media (min-width: 860px) {
    .cd-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Бенто 7/5 · 5/7: асимметрия вместо шаблонной сетки 2×2 */
@media (min-width: 1024px) {
    .cd-benefits { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .cd-benefit:nth-child(1), .cd-benefit:nth-child(4) { grid-column: span 7; }
    .cd-benefit:nth-child(2), .cd-benefit:nth-child(3) { grid-column: span 5; }
}
.cd-benefit {
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid var(--cd-line);
    border-radius: 24px;
    background: #fff;
    transition: transform 0.35s var(--cd-ease), box-shadow 0.35s, border-color 0.35s;
}
.cd-benefit:hover { transform: translateY(-4px); border-color: var(--cd-sky-200); box-shadow: var(--cd-shadow-lg); }

/* Тёмная карточка — акцент ритма в бенто */
.cd-benefit--dark {
    border-color: var(--cd-navy);
    background:
        radial-gradient(90% 70% at 100% 0%, rgba(14, 165, 233, 0.24), transparent 70%),
        var(--cd-navy);
}
.cd-benefit--dark:hover { border-color: var(--cd-navy-2); box-shadow: 0 30px 60px -24px rgba(14, 165, 233, 0.45); }
.cd-benefit--dark .cd-benefit__art { border-color: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); }
.cd-benefit--dark .cd-benefit__feature { background: rgba(56, 189, 248, 0.14); color: var(--cd-sky-300); }
.cd-benefit--dark .cd-benefit__title { color: #fff; }
.cd-benefit--dark .cd-benefit__text { color: #CBD5E1; }
.cd-benefit--dark .cd-flow__node { border-color: rgba(255, 255, 255, 0.14); box-shadow: none; }
.cd-benefit--dark .cd-flow__node--out { background: var(--cd-sky); border-color: var(--cd-sky); color: var(--cd-navy); }
.cd-benefit--dark .cd-flow__node--out .i { color: var(--cd-navy); }
.cd-benefit--dark .cd-flow__line { background: rgba(255, 255, 255, 0.22); }
.cd-benefit--dark .cd-flow__dot { background: var(--cd-sky-300); }
.cd-benefit__art {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    min-height: 200px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--cd-line);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--cd-sky-50), var(--cd-bg-2));
    overflow: hidden;
}
/* Одинаковая высота иллюстраций — заголовки карточек в ряду стоят на одной линии */
@media (min-width: 860px) {
    .cd-benefit__art { min-height: 244px; }
}
.cd-benefit__feature {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--cd-sky-50);
    color: var(--cd-sky-700);
    font-size: 12.5px;
    font-weight: 600;
}
.cd-benefit__title {
    font-size: clamp(20px, 2vw, 23px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--cd-navy);
}
.cd-benefit__text { margin-top: 10px; font-size: 15.5px; color: var(--cd-muted); }

/* Art: светофор сроков */
.cd-art-rows { display: grid; gap: 10px; width: 100%; max-width: 400px; }
.cd-art-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--cd-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--cd-shadow-sm);
}
.cd-art-row__name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--cd-navy);
}
.cd-art-bar { height: 6px; border-radius: 999px; background: var(--cd-line); overflow: hidden; }
.cd-art-bar__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--cd-sky);
    transform: scaleX(var(--p, 0.5));
    transform-origin: left;
}
.cd-art-row.is-alert { border-color: #FECACA; background: #FFF7F7; }
.cd-art-row.is-alert .cd-art-bar__fill { background: var(--cd-red); }
@media (max-width: 479px) {
    .cd-art-row { grid-template-columns: minmax(0, 1fr) 40px auto; gap: 8px; padding: 10px; }
}

/* Art: лента активности */
.cd-feed { display: grid; gap: 8px; width: 100%; max-width: 400px; }
.cd-feed__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--cd-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--cd-shadow-sm);
}
.cd-feed__text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 12.5px;
    color: var(--cd-text);
}
.cd-feed__text b { color: var(--cd-navy); font-weight: 600; }
.cd-feed__text em { font-style: normal; font-weight: 600; color: var(--cd-green-700); }
.cd-feed__at { padding: 1px 5px; border-radius: 5px; background: var(--cd-sky-50); color: var(--cd-sky-700); font-weight: 600; }
.cd-feed__time { flex-shrink: 0; font-size: 11px; color: var(--cd-muted); }
@media (max-width: 479px) {
    .cd-feed__text { white-space: normal; line-height: 1.4; }
}

/* Art: цепочка автоматизации */
.cd-flow { display: flex; flex-direction: column; align-items: center; }
.cd-flow__node {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--cd-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--cd-shadow-sm);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--cd-navy);
    white-space: nowrap;
}
.cd-flow__node .i { color: var(--cd-sky-600); font-size: 15px; }
.cd-flow__node--out { background: var(--cd-navy); border-color: var(--cd-navy); color: #fff; }
.cd-flow__node--out .i { color: var(--cd-sky-400); }
.cd-flow__line {
    position: relative;
    width: 2px;
    height: 24px;
    background: var(--cd-line-2);
    overflow: hidden;
}
.cd-flow__dot {
    position: absolute;
    top: 0;
    left: -2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cd-sky);
    animation: cd-flow-dot 1.8s ease-in-out infinite;
}
.cd-flow__line:last-of-type .cd-flow__dot { animation-delay: 0.9s; }

/* Art: прогноз релиза */
.cd-forecast { width: 100%; max-width: 340px; }
.cd-forecast__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    font-size: 12px;
    color: var(--cd-muted);
}
.cd-forecast__head b { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--cd-navy); }
.cd-forecast__head .cd-chip { margin-left: auto; }
.cd-forecast__svg { display: block; width: 100%; height: auto; margin: 10px 0 8px; overflow: visible; }
.cd-forecast__grid { fill: none; stroke: var(--cd-line); stroke-width: 1; }
.cd-forecast__deadline { fill: none; stroke: var(--cd-faint); stroke-width: 1.5; stroke-dasharray: 3 4; }
.cd-forecast__area { fill: rgba(14, 165, 233, 0.12); }
.cd-forecast__line { fill: none; stroke: var(--cd-sky); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.cd-forecast__plan { fill: none; stroke: var(--cd-sky); stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; }
.cd-forecast__dot { fill: #fff; stroke: var(--cd-sky); stroke-width: 2.5; }
.cd-forecast__goal { fill: var(--cd-green); stroke: #fff; stroke-width: 2.5; }

.cd-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.cd-legend__item { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--cd-muted); }
.cd-legend__swatch { width: 16px; height: 0; border-top: 2.5px solid var(--cd-sky); }
.cd-legend__swatch--dash { border-top-style: dashed; }
.cd-legend__swatch--muted { border-top-color: var(--cd-faint); }

/* =====================================================================
   4. PRODUCT TOUR
   ===================================================================== */
.cd-tour { background: var(--cd-bg-2); border-top: 1px solid var(--cd-line); border-bottom: 1px solid var(--cd-line); }

.cd-tour__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 1024px) {
    .cd-tour__layout { grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }
}

.cd-tour__tabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 561px) and (max-width: 1023px) {
    .cd-tour__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.cd-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 56px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.cd-tab::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 3px;
    background: var(--cd-sky);
    transform: scaleY(0);
    transition: transform 0.35s var(--cd-ease);
}
.cd-tab:hover { background: rgba(255, 255, 255, 0.7); }
.cd-tab[aria-selected="true"] { background: #fff; border-color: var(--cd-line); box-shadow: var(--cd-shadow-md); }
.cd-tab[aria-selected="true"]::before { transform: scaleY(1); }
.cd-tab__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid var(--cd-line);
    border-radius: 12px;
    background: #fff;
    color: var(--cd-sky-700);
    font-size: 19px;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.cd-tab[aria-selected="true"] .cd-tab__icon { background: var(--cd-sky); border-color: var(--cd-sky); color: var(--cd-navy); }
.cd-tab__body { display: grid; gap: 3px; min-width: 0; }
.cd-tab__name { font-size: 16px; font-weight: 700; color: var(--cd-navy); }
.cd-tab__desc { font-size: 13.5px; line-height: 1.45; color: var(--cd-muted); }

@media (min-width: 561px) and (max-width: 1023px) {
    .cd-tab { flex-direction: column; justify-content: center; gap: 8px; padding: 14px 10px; text-align: center; }
    .cd-tab::before { top: auto; bottom: 0; left: 24px; right: 24px; width: auto; height: 3px; transform: scaleX(0); }
    .cd-tab[aria-selected="true"]::before { transform: scaleX(1); }
    .cd-tab__desc { display: none; }
}
@media (max-width: 560px) {
    .cd-tab { padding: 10px 14px; gap: 12px; }
    .cd-tab__icon { width: 38px; height: 38px; font-size: 17px; }
    .cd-tab__desc { font-size: 13px; }
    /* На телефоне описание — только у открытой вкладки: экран тура ближе к первому взгляду */
    .cd-tab:not([aria-selected="true"]) .cd-tab__desc { display: none; }
}

.cd-tour__stage { min-width: 0; }
.js .cd-tpanel:not(.is-active) { display: none; }
.cd-tpanel + .cd-tpanel { margin-top: 32px; }
.js .cd-tpanel + .cd-tpanel { margin-top: 0; }
.cd-tpanel.is-active { animation: cd-panel-in 0.5s var(--cd-ease) both; }
.cd-tpanel:focus-visible { outline-offset: 6px; border-radius: 20px; }

.cd-screen {
    padding: clamp(14px, 2.4vw, 22px);
    border: 1px solid var(--cd-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--cd-shadow-lg);
    overflow: hidden;
}
.cd-screen__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    margin-bottom: 18px;
}
.cd-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--cd-bg-3); }
.cd-seg__item { padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: #475569; }
.cd-seg__item.is-on { background: #fff; color: var(--cd-navy); box-shadow: var(--cd-shadow-sm); }
.cd-screen__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--cd-muted); }

.cd-tpanel__points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 20px;
    padding: 0 4px;
}
.cd-tpanel__points li { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 14.5px; color: var(--cd-text); }
.cd-tpanel__points .i { margin-top: 4px; color: var(--cd-green); stroke-width: 2.4; }

/* Gantt */
.cd-gantt {
    --name: 112px;
    position: relative;
    display: grid;
    gap: 10px;
    padding-bottom: 26px;
}
.cd-gantt__weeks, .cd-gantt__row {
    display: grid;
    grid-template-columns: var(--name) minmax(0, 1fr);
    align-items: center;
}
.cd-gantt__scale { display: grid; grid-template-columns: repeat(4, 1fr); }
.cd-gantt__scale span {
    padding-left: 6px;
    border-left: 1px dashed var(--cd-line-2);
    font-size: 11px;
    color: var(--cd-muted);
    white-space: nowrap;
}
.cd-gantt__name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--cd-text);
}
.cd-gantt__track {
    position: relative;
    height: 32px;
    border-radius: 8px;
    background:
        linear-gradient(90deg, var(--cd-line) 1px, transparent 1px) 0 0 / 25% 100%,
        var(--cd-bg-2);
}
.cd-gantt__bar {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: var(--s);
    width: var(--w);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 4px;
    border-radius: 7px;
    transform-origin: left;
}
.cd-gantt__bar .cd-ava { box-shadow: 0 0 0 2px #fff; }
.cd-gantt__bar--done { background: var(--cd-sky-100); border: 1px solid var(--cd-sky-200); }
.cd-gantt__bar--violet { background: #DDD6FE; border: 1px solid #C4B5FD; }
.cd-gantt__bar--active { background: linear-gradient(90deg, var(--cd-sky), var(--cd-sky-400)); box-shadow: 0 6px 14px -6px rgba(14, 165, 233, 0.7); }
.cd-gantt__bar--amber { background: #FDE68A; border: 1px solid #FCD34D; }
.cd-gantt__milestone {
    position: absolute;
    top: 50%;
    left: var(--s);
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: var(--cd-navy);
    transform: translate(-50%, -50%) rotate(45deg);
}
.cd-gantt__ms-label {
    position: absolute;
    top: 50%;
    left: var(--s);
    transform: translate(calc(-100% - 14px), -50%);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--cd-navy);
    white-space: nowrap;
}
.cd-gantt__today {
    position: absolute;
    top: 22px;
    bottom: 26px;
    left: calc(var(--name) + (100% - var(--name)) * 0.5);
    width: 2px;
    border-radius: 2px;
    background: var(--cd-sky-600);
    pointer-events: none;
}
.cd-gantt__today-label {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--cd-sky-700);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .cd-gantt { --name: 82px; }
    .cd-gantt__name { font-size: 11.5px; padding-right: 6px; }
    .cd-gantt__scale span { font-size: 10px; padding-left: 4px; }
    .cd-gantt__track { height: 28px; }
}

/* Analytics */
.cd-analytics { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.cd-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cd-kpi {
    display: grid;
    gap: 4px;
    align-content: start;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--cd-line);
    border-radius: 14px;
    background: var(--cd-bg-2);
}
.cd-kpi__label { font-size: 12px; line-height: 1.3; color: var(--cd-muted); }
.cd-kpi__val { font-size: clamp(19px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.03em; color: var(--cd-navy); white-space: nowrap; }
.cd-kpi__delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--cd-green-700); white-space: nowrap; }

.cd-charts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 761px) {
    .cd-charts { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}
.cd-chart { min-width: 0; padding: 14px; border: 1px solid var(--cd-line); border-radius: 14px; }
.cd-chart__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    font-size: 13px;
    color: var(--cd-navy);
}
.cd-chart__plot { position: relative; margin-top: 10px; }
.cd-chart__svg { display: block; width: 100%; height: auto; }
.cd-chart__grid { fill: none; stroke: #EEF2F7; stroke-width: 1; }
.cd-chart__ideal { fill: none; stroke: var(--cd-faint); stroke-width: 1.5; stroke-dasharray: 5 5; }
.cd-chart__line { fill: none; stroke: var(--cd-sky); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cd-chart__dot { fill: #fff; stroke: var(--cd-sky); stroke-width: 3; }
.cd-chart__wipe {
    position: absolute;
    inset: 0 -2px 0 0;
    background: #fff;
    transform: scaleX(0);
    transform-origin: right;
    pointer-events: none;
}
.cd-chart__tip {
    position: absolute;
    left: 76%;
    top: 79%;
    transform: translate(-50%, calc(-100% - 12px));
    padding: 4px 8px;
    border-radius: 7px;
    background: var(--cd-navy);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.cd-chart__tip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 8px;
    height: 8px;
    background: inherit;
    transform: translateX(-50%) rotate(45deg);
}
.cd-chart__x { display: flex; justify-content: space-between; margin-top: 6px; padding: 0 1%; font-size: 10.5px; color: var(--cd-muted); }

.cd-vbars {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    align-items: end;
    gap: 8px;
    height: 170px;
    padding-top: 26px;
    margin-top: 10px;
}
.cd-vbar {
    position: relative;
    height: calc(var(--h) * 100%);
    border-radius: 7px 7px 3px 3px;
    background: var(--cd-sky-100);
    transform-origin: bottom;
}
.cd-vbar.is-now { background: linear-gradient(180deg, var(--cd-sky-400), var(--cd-sky)); }
.cd-vbar__val {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12.5px;
    font-weight: 800;
    color: var(--cd-navy);
}
.cd-vbars__x { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 6px; text-align: center; font-size: 10.5px; color: var(--cd-muted); }

@media (max-width: 480px) {
    .cd-kpis { gap: 8px; }
    .cd-kpi { padding: 10px; }
    .cd-kpi__label { font-size: 11px; }
    .cd-kpi__delta { font-size: 11px; }
    .cd-kpi__delta .i { display: none; }
    .cd-vbars { height: 150px; }
}

/* Automations */
.cd-auto { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 761px) {
    .cd-auto { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}
.cd-rule {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--cd-line);
    border-radius: 16px;
    background: var(--cd-bg-2);
}
.cd-rule__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cd-rule__title { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--cd-navy); }
.cd-rule__title .i { color: var(--cd-amber); }

.cd-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 2px;
    border: 0;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
}
.cd-switch__label { min-width: 4ch; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--cd-muted); }
.cd-switch__track {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: var(--cd-line-2);
    transition: background-color 0.3s;
}
.cd-switch__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
    transition: transform 0.35s var(--cd-spring);
}
.cd-switch[aria-checked="true"] .cd-switch__track { background: var(--cd-green); }
.cd-switch[aria-checked="true"] .cd-switch__track::after { transform: translateX(18px); }
.cd-switch[aria-checked="true"] .cd-switch__label { color: var(--cd-green-700); }

.cd-steps { display: grid; gap: 8px; margin: 14px 0; transition: opacity 0.3s; }
.cd-rule.is-off .cd-steps { opacity: 0.45; }
.cd-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--cd-line);
    border-radius: 12px;
    background: #fff;
}
.cd-step + .cd-step::before {
    content: "";
    position: absolute;
    left: 36px;
    top: -9px;
    width: 2px;
    height: 8px;
    background: var(--cd-line-2);
}
.cd-step__kw {
    min-width: 50px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cd-sky-700);
}
.cd-step__body { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; font-size: 13.5px; color: var(--cd-muted); }
.cd-token {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid var(--cd-line);
    border-radius: 8px;
    background: var(--cd-bg-3);
    font-size: 13px;
    font-weight: 600;
    color: var(--cd-navy);
}
.cd-token--accent { background: #ECFDF5; border-color: #A7F3D0; color: var(--cd-green-700); }
.cd-token--tg { background: var(--cd-sky-50); border-color: var(--cd-sky-200); color: var(--cd-sky-700); }
.cd-token--tg .i { color: var(--cd-tg); }
.cd-rule__foot { font-size: 12.5px; line-height: 1.6; color: var(--cd-muted); }
.cd-rule__foot .i { margin-right: 4px; }
.cd-rule__foot b { display: inline-block; color: var(--cd-navy); font-variant-numeric: tabular-nums; }
.cd-rule__foot b.is-bump { animation: cd-bump 0.5s var(--cd-spring); }

.cd-tg {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 16px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.5) 0 2px, transparent 3px) 0 0 / 22px 22px,
        linear-gradient(160deg, #DCEEFB, #E8F1E4);
}
.cd-tg__head { display: flex; align-items: center; gap: 10px; margin-bottom: auto; padding-bottom: 6px; }
.cd-tg__head b { display: block; font-size: 13.5px; color: var(--cd-navy); }
.cd-tg__ava {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--cd-tg);
    color: #fff;
    font-size: 18px;
}
.cd-tg__sub { display: block; font-size: 12px; color: #475569; }
.cd-tg__msg {
    padding: 10px 12px 8px;
    border-radius: 14px 14px 14px 4px;
    background: #fff;
    box-shadow: var(--cd-shadow-sm);
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--cd-text);
    transform-origin: bottom left;
}
.cd-tg__msg--old { color: var(--cd-muted); }
.cd-tg__ok { color: var(--cd-green); stroke-width: 2.6; }
.cd-tg__time { display: block; margin-top: 2px; text-align: right; font-size: 11px; color: var(--cd-muted); }

@media (max-width: 480px) {
    .cd-step { flex-direction: column; align-items: flex-start; gap: 6px; }
    .cd-step + .cd-step::before { left: 20px; }
}

/* Стартовые анимации экранов тура — только когда блок в зоне видимости (класс ставит JS) */
.is-live .cd-tpanel.is-active .cd-gantt__bar { animation: cd-grow-x 0.9s var(--cd-ease) calc(var(--d, 0) * 90ms + 0.15s) backwards; }
.is-live .cd-tpanel.is-active .cd-gantt__milestone { animation: cd-pop-diamond 0.5s var(--cd-spring) 0.7s backwards; }
.is-live .cd-tpanel.is-active .cd-chart__wipe { animation: cd-wipe 1.3s var(--cd-ease) 0.2s backwards; }
.is-live .cd-tpanel.is-active .cd-chart__tip { animation: cd-rise 0.5s var(--cd-ease) 1.2s backwards; }
.is-live .cd-tpanel.is-active .cd-vbar { animation: cd-grow-y 0.8s var(--cd-ease) calc(var(--d, 0) * 80ms + 0.2s) backwards; }
.is-live .cd-tpanel.is-active .cd-step { animation: cd-rise 0.6s var(--cd-ease) backwards; }
.is-live .cd-tpanel.is-active .cd-step:nth-child(2) { animation-delay: 0.08s; }
.is-live .cd-tpanel.is-active .cd-step:nth-child(3) { animation-delay: 0.16s; }
.is-live .cd-tpanel.is-active .cd-step:nth-child(4) { animation-delay: 0.24s; }
.is-live .cd-tpanel.is-active .cd-tg__msg:last-child { animation: cd-msg-in 0.6s var(--cd-spring) 0.45s backwards; }

/* Integrations */
.cd-integrations { margin-top: clamp(48px, 6vw, 72px); text-align: center; }
.cd-integrations__label { margin-bottom: 18px; font-size: 14.5px; color: var(--cd-muted); }
.cd-integrations__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cd-int {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--cd-line);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--cd-text);
}
.cd-int .i { color: var(--cd-muted); font-size: 16px; }
.cd-int--tg .i { color: var(--cd-tg); }

/* =====================================================================
   5. CASE
   ===================================================================== */
.cd-case { padding-bottom: clamp(24px, 4vw, 48px); }
.cd-case__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border: 1px solid var(--cd-line);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--cd-shadow-lg);
    overflow: hidden;
}
@media (min-width: 900px) {
    .cd-case__card { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
.cd-quote { padding: clamp(24px, 4vw, 48px); }
.cd-quote__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cd-quote__case {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--cd-sky-50);
    color: var(--cd-sky-700);
    font-size: 13px;
    font-weight: 600;
}
.cd-quote__text { margin: 26px 0 30px; }
.cd-quote__text p {
    font-size: clamp(18.5px, 2.1vw, 24px);
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--cd-navy);
    text-wrap: pretty;
}
.cd-quote__author { display: flex; align-items: center; gap: 14px; }
.cd-quote__name { display: block; font-size: 16px; color: var(--cd-navy); }
.cd-quote__role { display: block; font-size: 14px; color: var(--cd-muted); }

.cd-metrics {
    position: relative;
    display: grid;
    align-content: center;
    gap: 22px;
    padding: clamp(24px, 4vw, 48px);
    background:
        radial-gradient(80% 60% at 100% 0%, rgba(14, 165, 233, 0.32), transparent 70%),
        var(--cd-navy);
}
@media (min-width: 600px) and (max-width: 899px) {
    .cd-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.cd-metric { padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.cd-metric:last-child { padding-bottom: 0; border-bottom: 0; }
@media (min-width: 600px) and (max-width: 899px) {
    .cd-metric { padding-bottom: 0; border-bottom: 0; }
}
.cd-metric__val {
    display: block;
    font-size: clamp(36px, 4.4vw, 48px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.cd-metric__label { display: block; margin-top: 4px; font-size: 14.5px; color: #CBD5E1; }

/* =====================================================================
   6. PRICING
   ===================================================================== */
.cd-pricing { background: linear-gradient(180deg, #fff 0%, var(--cd-bg-2) 45%, #fff 100%); }
.cd-billing {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: max-content;
    max-width: 100%;
    margin: 0 auto clamp(40px, 5vw, 56px);
    padding: 5px;
    border: 1px solid var(--cd-line);
    border-radius: 999px;
    background: var(--cd-bg-3);
}
.cd-billing__thumb {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: calc(50% - 5px);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--cd-shadow-md);
    transition: transform 0.45s var(--cd-ease);
}
.cd-billing[data-period="year"] .cd-billing__thumb { transform: translateX(100%); }
.cd-billing__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: none;
    font-size: 14.5px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.3s;
}
.cd-billing__btn[aria-pressed="true"] { color: var(--cd-navy); }
.cd-billing__save {
    padding: 2px 7px;
    border-radius: 999px;
    background: #DCFCE7;
    color: #15803D;
    font-size: 11.5px;
    font-weight: 800;
}
@media (max-width: 420px) {
    .cd-billing__btn { padding: 0 14px; font-size: 14px; }
}

.cd-plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: stretch; }
@media (min-width: 960px) {
    .cd-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 959px) {
    .cd-plans { max-width: 520px; margin: 0 auto; }
}

.cd-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 3vw, 32px) clamp(20px, 2.6vw, 28px);
    border: 1px solid var(--cd-line);
    border-radius: 24px;
    background: #fff;
    transition: transform 0.35s var(--cd-ease), box-shadow 0.35s;
}
.cd-plan:hover { transform: translateY(-4px); box-shadow: var(--cd-shadow-lg); }
.cd-plan__name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--cd-navy); }
.cd-plan__for { margin: 6px 0 22px; font-size: 14.5px; line-height: 1.5; color: var(--cd-muted); }
.cd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.cd-price__old { font-size: 15px; color: var(--cd-muted); text-decoration-color: rgba(100, 116, 139, 0.7); }
.cd-price__num {
    display: inline-block;
    font-size: clamp(40px, 4vw, 48px);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.045em;
    color: var(--cd-navy);
    font-variant-numeric: tabular-nums;
}
.cd-price__num.is-bump { animation: cd-price-bump 0.45s var(--cd-ease); }
.cd-price__unit { font-size: 15px; color: var(--cd-muted); }
.cd-plan__note { min-height: 22px; margin: 10px 0 22px; font-size: 13.5px; color: var(--cd-muted); }
.cd-plan__note b { color: var(--cd-green-700); }
.cd-plan__btn { width: 100%; }
.cd-plan__micro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--cd-muted);
}
.cd-plan__list {
    display: grid;
    gap: 11px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--cd-line);
}
.cd-plan__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.45; color: var(--cd-text); }
.cd-plan__list .i { margin-top: 2px; font-size: 16px; color: var(--cd-green); stroke-width: 2.4; }
.cd-plan__list .cd-plan__lead { font-size: 13px; font-weight: 700; color: var(--cd-navy); }

.cd-plan--pop {
    border-color: var(--cd-navy);
    background:
        radial-gradient(90% 50% at 50% 0%, rgba(14, 165, 233, 0.28), transparent 70%),
        var(--cd-navy);
    box-shadow: 0 30px 60px -24px rgba(14, 165, 233, 0.55), 0 0 0 1px rgba(56, 189, 248, 0.35);
}
.cd-plan--pop:hover { box-shadow: 0 36px 70px -24px rgba(14, 165, 233, 0.65), 0 0 0 1px rgba(56, 189, 248, 0.5); }
.cd-plan--pop .cd-plan__name, .cd-plan--pop .cd-price__num { color: #fff; }
.cd-plan--pop .cd-plan__for, .cd-plan--pop .cd-plan__note { color: #CBD5E1; }
.cd-plan--pop .cd-price__old, .cd-plan--pop .cd-price__unit, .cd-plan--pop .cd-plan__micro { color: var(--cd-faint); }
.cd-plan--pop .cd-plan__note b { color: #4ADE80; }
.cd-plan--pop .cd-plan__list { border-top-color: rgba(255, 255, 255, 0.12); }
.cd-plan--pop .cd-plan__list li { color: #E2E8F0; }
.cd-plan--pop .cd-plan__list .i { color: var(--cd-sky-400); }
.cd-plan--pop .cd-plan__list .cd-plan__lead { color: #fff; }
.cd-plan--pop :focus-visible { outline-color: var(--cd-sky-300); }
.cd-plan__badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--cd-sky);
    color: var(--cd-navy);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 20px -8px rgba(14, 165, 233, 0.8);
}

.cd-plans__more { margin-top: 28px; text-align: center; font-size: 14.5px; color: var(--cd-muted); }

.cd-risk {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: clamp(40px, 5vw, 56px);
}
@media (min-width: 561px) {
    .cd-risk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .cd-risk { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.cd-risk__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--cd-line);
    border-radius: 16px;
    background: var(--cd-bg-2);
}
.cd-risk__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid var(--cd-line);
    border-radius: 12px;
    background: #fff;
    color: var(--cd-sky-700);
    font-size: 19px;
}
.cd-risk__text { font-size: 13.5px; line-height: 1.45; color: var(--cd-muted); }
.cd-risk__text b { display: block; margin-bottom: 2px; font-size: 14.5px; color: var(--cd-navy); }

/* =====================================================================
   7. FAQ
   ===================================================================== */
.cd-faq { padding-top: 0; }
.cd-faq__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 960px) {
    .cd-faq__grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
    .cd-faq__grid .cd-head { position: sticky; top: calc(var(--cd-header-h) + 32px); margin-bottom: 0; }
}
.cd-faq__list { border-top: 1px solid var(--cd-line); }
.cd-faq__item { border-bottom: 1px solid var(--cd-line); }
.cd-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    padding: 22px 0;
    font-size: clamp(16px, 1.6vw, 17.5px);
    font-weight: 600;
    line-height: 1.4;
    color: var(--cd-navy);
    list-style: none;
    cursor: pointer;
}
.cd-faq__q::-webkit-details-marker { display: none; }
.cd-faq__q:focus-visible { outline-offset: 4px; border-radius: 8px; }
.cd-faq__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--cd-line-2);
    border-radius: 50%;
    color: var(--cd-navy);
    font-size: 16px;
    transition: transform 0.35s var(--cd-ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.cd-faq__item[open] .cd-faq__icon { transform: rotate(45deg); background: var(--cd-navy); border-color: var(--cd-navy); color: #fff; }
.cd-faq__q:hover .cd-faq__icon { border-color: var(--cd-navy); }
.cd-faq__a { padding: 0 50px 22px 0; font-size: 15.5px; color: var(--cd-muted); }
.cd-faq__item[open] .cd-faq__a { animation: cd-rise 0.4s var(--cd-ease); }

/* =====================================================================
   8. FINAL CTA
   ===================================================================== */
.cd-cta {
    position: relative;
    overflow: clip;
    padding: clamp(80px, 10vw, 128px) 0;
    background: var(--cd-navy);
    color: #CBD5E1;
}
.cd-cta__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(50% 60% at 15% 0%, rgba(14, 165, 233, 0.34), transparent 70%),
        radial-gradient(40% 55% at 100% 100%, rgba(99, 102, 241, 0.26), transparent 70%);
    pointer-events: none;
}
.cd-cta__glow::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 25% 30%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse 60% 70% at 25% 30%, #000 10%, transparent 70%);
}
.cd-cta__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 960px) {
    .cd-cta__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; }
}
.cd-cta__copy { max-width: 580px; }
.cd-cta__title { color: #fff; }
.cd-cta__points { display: grid; gap: 12px; margin-top: 28px; }
.cd-cta__points li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; }
.cd-cta__points .i { margin-top: 4px; color: var(--cd-sky-400); stroke-width: 2.4; }
.cd-cta__quote {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 520px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.cd-cta__quote .cd-ava { width: 40px; height: 40px; font-size: 13px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }
.cd-cta__said p { font-size: 15.5px; line-height: 1.55; color: #E2E8F0; text-wrap: pretty; }
.cd-cta__by { margin-top: 6px; font-size: 13.5px; color: var(--cd-faint); }
.cd-cta :focus-visible { outline-color: var(--cd-sky-300); }

.cd-form-card {
    padding: clamp(22px, 3.4vw, 34px);
    border-radius: 24px;
    background: #fff;
    color: var(--cd-text);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.cd-form-card :focus-visible { outline-color: var(--cd-sky-600); }
.cd-form { position: relative; }
.cd-form__title { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -0.025em; color: var(--cd-navy); }
.cd-form__sub { margin: 4px 0 22px; font-size: 14.5px; color: var(--cd-muted); }
.cd-form__fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.cd-field { min-width: 0; }
.cd-field__label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--cd-text); }
.cd-field__input {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1.5px solid var(--cd-line-2);
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
    color: var(--cd-navy);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cd-field__input::placeholder { color: var(--cd-muted); opacity: 1; }
.cd-field__input:hover { border-color: var(--cd-faint); }
.cd-field__input:focus { outline: none; border-color: var(--cd-sky-600); box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2); }
.cd-field__input[aria-invalid="true"] { border-color: var(--cd-red); }
.cd-field__input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18); }
.cd-select { position: relative; }
.cd-select .i {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--cd-muted);
    font-size: 18px;
    pointer-events: none;
}
.cd-field__input--select {
    padding-right: 46px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.cd-field__input--select:invalid { color: var(--cd-muted); }
.cd-field__input--select option { color: var(--cd-navy); }
.cd-field__error { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--cd-red-700); }

/* Согласие на обработку ПДн — отдельная галочка (152-ФЗ): зона нажатия 44×44, видимый бокс 22×22 */
.cd-consent { margin-top: 12px; }
.cd-consent__label {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    min-height: 44px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--cd-text);
    cursor: pointer;
}
.cd-consent__control {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: -11px; /* бокс встаёт по левому краю полей */
}
.cd-consent__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.cd-consent__box {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 2px solid var(--cd-muted);
    border-radius: 6px;
    background: #fff;
    color: #fff;
    font-size: 14px;
    pointer-events: none;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.cd-consent__box .i { stroke-width: 3.2; transform: scale(0); transition: transform 0.25s var(--cd-spring); }
.cd-consent__label:hover .cd-consent__box { border-color: var(--cd-sky-700); }
.cd-consent__input:checked + .cd-consent__box { border-color: var(--cd-sky-600); background: var(--cd-sky-600); }
.cd-consent__input:checked + .cd-consent__box .i { transform: scale(1); }
.cd-consent__input:focus-visible + .cd-consent__box { outline: 2px solid var(--cd-sky-600); outline-offset: 3px; }
.cd-consent__input[aria-invalid="true"] + .cd-consent__box { border-color: var(--cd-red-700); box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18); }
.cd-consent__text { min-width: 0; padding-top: 12px; text-wrap: pretty; }
.cd-consent__more {
    border-radius: 4px;
    font-weight: 600;
    color: var(--cd-sky-700);
    text-decoration: underline;
    text-decoration-color: rgba(3, 105, 161, 0.45);
    text-underline-offset: 3px;
    cursor: pointer;
}
.cd-consent__more:hover,
.cd-consent__more[aria-expanded="true"] { text-decoration-color: currentColor; }
.cd-consent__more:focus-visible { outline-offset: 2px; }
.cd-consent__doc {
    margin: 2px 0 0 37px;
    padding: 10px 12px;
    border-left: 3px solid var(--cd-sky);
    border-radius: 0 10px 10px 0;
    background: var(--cd-sky-50);
    font-size: 13px;
    line-height: 1.5;
    color: var(--cd-text);
    animation: cd-rise 0.3s var(--cd-ease);
}
.cd-consent__error { margin-left: 37px; }

.cd-form__submit { position: relative; width: 100%; margin-top: 22px; }
.cd-consent + .cd-form__submit { margin-top: 14px; }
.cd-form__submit.is-loading { cursor: progress; }
.cd-form__submit.is-loading .cd-btn__arrow { display: none; }
.cd-form__submit.is-loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(15, 23, 42, 0.25);
    border-top-color: var(--cd-navy);
    border-radius: 50%;
    animation: cd-spin 0.7s linear infinite;
}
.cd-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--cd-line);
}
.cd-trust li { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--cd-text); }
.cd-trust .i { color: var(--cd-green); }

.cd-success { padding: 12px 0; text-align: center; animation: cd-rise 0.5s var(--cd-ease); }
.cd-success:focus { outline: none; }
.cd-success__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--cd-green);
    color: #fff;
    font-size: 32px;
    animation: cd-land 0.6s var(--cd-spring) 0.1s backwards;
}
.cd-success__icon .i { stroke-width: 2.6; }
.cd-success__icon::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--cd-green);
    animation: cd-ring 1.2s ease-out 0.3s both;
}
.cd-success__title { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; color: var(--cd-navy); }
.cd-success__text { margin: 10px 0 24px; font-size: 15px; color: var(--cd-muted); }
.cd-success__cta { width: 100%; }
.cd-success__again {
    min-height: 44px;
    margin-top: 10px;
    padding: 0 12px;
    border: 0;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--cd-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.cd-success__again:hover { color: var(--cd-navy); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.cd-footer {
    padding-top: 56px;
    padding-bottom: calc(32px + var(--ck-dock-space));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--cd-navy);
    color: var(--cd-faint);
}
.cd-footer :focus-visible { outline-color: var(--cd-sky-300); }
.cd-footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.cd-footer__brand { max-width: 360px; }
.cd-footer__tag { max-width: 320px; margin-top: 10px; font-size: 14.5px; }
.cd-footer__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.cd-footer__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14.5px;
    color: #CBD5E1;
    transition: color 0.2s;
}
.cd-footer__link:hover { color: #fff; }
.cd-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cd-footer__note { max-width: 620px; font-size: 13px; }
.cd-footer__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 13.5px;
    font-weight: 600;
    color: #E2E8F0;
    transition: color 0.2s;
}
.cd-footer__back:hover { color: var(--cd-sky-300); }
.cd-footer__back .i { transition: transform 0.3s var(--cd-ease); }
.cd-footer__back:hover .i { transform: translateX(-3px); }

/* =====================================================================
   KEYFRAMES
   ===================================================================== */
@keyframes cd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cd-rise { from { transform: translateY(14px); } to { transform: none; } }
@keyframes cd-rise-lg { from { transform: translateY(28px) scale(0.98); } to { transform: none; } }
@keyframes cd-panel-in { from { transform: translateY(12px); } to { transform: none; } }
@keyframes cd-nudge-x { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes cd-ping { 0% { transform: scale(1); opacity: 0.6; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
@keyframes cd-bump { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes cd-land { 0% { transform: scale(0.94); } 45% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes cd-ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.14); opacity: 0; } }
@keyframes cd-win-in { from { opacity: 0; transform: translateY(8px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes cd-toast-in { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes cd-toast-out { to { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes cd-flow-dot { 0% { transform: translateY(-8px); } 100% { transform: translateY(26px); } }
@keyframes cd-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cd-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes cd-wipe { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes cd-pop-diamond { from { transform: translate(-50%, -50%) rotate(45deg) scale(0); } to { transform: translate(-50%, -50%) rotate(45deg) scale(1); } }
@keyframes cd-msg-in { from { transform: scale(0.9) translateY(6px); } to { transform: none; } }
@keyframes cd-price-bump { 0% { transform: translateY(0); } 35% { transform: translateY(-4px); } 100% { transform: none; } }
@keyframes cd-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
    .cd-form__submit.is-loading::after { display: none; }
}
