:root {
    --ink: #1a1214;
    --ink-soft: #3d2a30;
    --muted: #6b5a60;
    --paper: #faf8f9;
    --paper-2: #f3ecef;
    --brand: #BE002D;
    --brand-deep: #950023;
    --brand-light: #E8365A;
    --teal: var(--brand);
    --teal-deep: var(--brand-deep);
    --mint: var(--brand-light);
    --line: rgba(42, 18, 24, 0.12);
    --danger: #b42318;
    --ok: #067647;
    --shadow: 0 18px 50px rgba(26, 10, 14, 0.12);
    --radius: 16px;
    --font: "Manrope", system-ui, sans-serif;
    --display: "Onest", "Manrope", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

[hidden] { display: none !important; }

a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--teal); }

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 248, 249, 0.96);
    border-bottom: 1px solid var(--line);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand-mark { display: block; }
.brand-name {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
}
.brand-edition {
    color: var(--brand);
    font-weight: 800;
}

.nav-desktop {
    display: flex;
    gap: 22px;
    margin-left: 12px;
    flex: 1;
}
.nav-desktop a {
    color: var(--ink-soft);
    font-weight: 550;
    font-size: 0.95rem;
}
.nav-desktop a:hover { color: var(--teal); }

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

.mobile-toggle { display: none; }

.mobile-menu {
    position: fixed;
    inset: 72px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    z-index: 49;
    padding: 16px 20px 24px;
    box-shadow: var(--shadow);
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mobile-menu a {
    color: var(--ink);
    font-weight: 600;
    font-size: 1.05rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    padding: 10px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--teal);
    color: #fff;
}
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid rgba(26, 46, 42, 0.28);
}
.btn-outline:hover {
    border-color: var(--teal);
    color: var(--teal-deep);
}
.btn-ghost {
    background: transparent;
    color: var(--ink-soft);
}
.btn-ghost:hover { color: var(--teal); }
.btn-lg { padding: 14px 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-icon {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink-soft);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-icon:hover { background: var(--paper-2); color: var(--ink); }

/* Hero */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 36px 0 56px;
    overflow: visible;
    isolation: isolate;
}

.hero-atmosphere {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 60% at 12% 18%, rgba(190, 0, 45, 0.14), transparent 55%),
        radial-gradient(ellipse 70% 50% at 92% 8%, rgba(232, 54, 90, 0.12), transparent 50%),
        radial-gradient(ellipse 55% 45% at 78% 88%, rgba(42, 18, 24, 0.08), transparent 55%),
        linear-gradient(165deg, #f9eef1 0%, var(--paper) 42%, #efe4e8 100%);
}
.hero-atmosphere::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%232a1218' stroke-opacity='0.04' stroke-width='1'%3E%3Cpath d='M0 40h160M0 80h160M0 120h160M40 0v160M80 0v160M120 0v160'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 48px;
    align-items: center;
}

.hero-grid > * {
    min-width: 0;
}

.hero-brand {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    letter-spacing: -0.045em;
    line-height: 0.95;
    margin: 0 0 16px;
    color: var(--ink);
}

.hero h1 {
    font-family: var(--display);
    font-weight: 650;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    letter-spacing: -0.025em;
    line-height: 1.3;
    margin: 0 0 14px;
    color: var(--ink-soft);
}

.hero-lead {
    margin: 0 0 24px;
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 34em;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-preview {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 520px;
}

.promo-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.promo-carousel-viewport {
    overflow: hidden;
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: #fff;
}

.promo-carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 200px;
}

.promo-carousel--right .promo-carousel-track {
    aspect-ratio: 16 / 10;
    min-height: 520px;
    background: #f6f3f4;
}

.promo-carousel-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.promo-carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.promo-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promo-carousel--right .promo-carousel-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-carousel--right .promo-carousel-slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.promo-zoom-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    overflow: hidden;
}

.promo-zoom-trigger img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.promo-zoom-trigger:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.promo-carousel--right .promo-zoom-hint,
.promo-feature-image--zoom .promo-zoom-hint {
    margin: 8px 0 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted);
}

.promo-feature-image--zoom .promo-zoom-trigger {
    display: block;
    width: 100%;
    cursor: zoom-in;
}

.promo-feature-image--zoom img {
    transition: transform 0.2s ease;
}

.promo-feature-image--zoom .promo-zoom-trigger:hover img {
    transform: scale(1.01);
}

.promo-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.promo-carousel-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: rgba(42, 18, 24, 0.2);
    cursor: pointer;
}

.promo-carousel-dot.is-active {
    background: var(--brand);
    transform: scale(1.15);
}

.promo-feature-image {
    margin: 1.25rem 0 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: #fff;
}

.promo-feature-image--zoom {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.promo-feature-image--zoom .promo-zoom-trigger {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: #fff;
}

.promo-feature-image img {
    display: block;
    width: 100%;
    height: auto;
}

.promo-feature-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    background: linear-gradient(135deg, #f9eef1, var(--paper));
    color: var(--muted);
    font-size: 0.9rem;
}

.crm-preview {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.crm-preview-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.crm-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--paper-2);
    border: 1px solid var(--line);
}
.crm-dot:nth-child(1) { background: #ff5f57; border-color: transparent; }
.crm-dot:nth-child(2) { background: #febc2e; border-color: transparent; }
.crm-dot:nth-child(3) { background: #28c840; border-color: transparent; }

.crm-preview-title {
    margin-left: auto;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
}

.crm-funnel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px;
    flex: 1;
    align-items: start;
}

.crm-col {
    background: var(--paper);
    border-radius: 12px;
    padding: 10px;
    min-height: 280px;
    border: 1px solid var(--line);
}

.crm-col-won {
    background: linear-gradient(180deg, rgba(190, 0, 45, 0.06) 0%, var(--paper) 100%);
    border-color: rgba(190, 0, 45, 0.15);
}

.crm-col-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.78rem;
    color: var(--muted);
}
.crm-col-head strong {
    color: var(--ink-soft);
    font-size: 0.85rem;
}
.crm-col-head span {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 700;
    color: var(--brand-deep);
}

.crm-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    font-size: 0.82rem;
    line-height: 1.35;
    box-shadow: 0 4px 14px rgba(26, 10, 14, 0.06);
}
.crm-card b { display: block; color: var(--ink); margin-bottom: 4px; }
.crm-card small { color: var(--muted); }
.crm-card-dim { opacity: 0.72; }

.hero-widget {
    width: 100%;
    min-height: 520px;
}

.hero-widget-mount {
    width: 100%;
    height: 520px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@keyframes heroWidgetIn {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy,
    .hero-widget,
    .benefit-list article,
    .reveal,
    .section-head,
    .assemble-item,
    .flow-step,
    .flow-arrow { animation: none !important; transition: none !important; filter: none !important; }
    .reveal,
    .section-head,
    .assemble-item,
    .flow-step,
    .flow-arrow { opacity: 1 !important; transform: none !important; }
}

/* Sections */
.section {
    padding: 88px 0;
}

.section-alt {
    background: linear-gradient(180deg, #f5e8ec 0%, var(--paper) 100%);
}

.section h2,
.cta-band h2,
.benefit-list h2 {
    font-family: var(--display);
    font-size: clamp(1.9rem, 4.2vw, 2.85rem);
    letter-spacing: -0.045em;
    line-height: 1.12;
    margin: 0 0 18px;
    font-weight: 800;
    color: var(--ink);
}

.section h2::after,
.cta-band h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 4px;
    margin-top: 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--teal) 0%, var(--mint) 100%);
}

.cta-band h2 {
    color: #fff;
}
.cta-band h2::after {
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.45) 100%);
}

.feature-split h2 {
    font-size: clamp(1.65rem, 3.2vw, 2.25rem);
}

.section h3 {
    font-family: var(--display);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    font-weight: 700;
}

.section-kicker {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-deep);
}

.section-lead {
    margin: 0 0 36px;
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 40em;
}

.narrow { max-width: 720px; }

/* Scroll assemble — только десктоп; на мобильной контент сразу виден */
.assemble-item {
    align-self: start;
}

@media (min-width: 961px) {
    .hero-copy {
        animation: heroIn 0.7s ease both;
    }

    .hero-preview {
        animation: heroWidgetIn 0.85s 0.12s ease both;
    }

    .hero-widget {
        animation: heroWidgetIn 0.85s 0.12s ease both;
    }

    .section-head,
    .reveal {
        opacity: 0;
        transform: translateY(32px) scale(0.98);
        filter: blur(3px);
        transition:
            opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
            filter 0.75s ease;
        transition-delay: var(--reveal-delay, 0ms);
    }

    .assemble-item {
        opacity: 0;
        transform: translateY(12px);
        transition:
            opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
        transition-delay: var(--reveal-delay, 0ms);
    }

    .section-head.is-visible,
    .reveal.is-visible {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .assemble-item.is-visible {
        opacity: 1;
        transform: none;
    }

    .flow-step {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.5s ease var(--flow-delay, 0ms), transform 0.5s ease var(--flow-delay, 0ms);
    }

    .flow-step.is-visible {
        opacity: 1;
        transform: none;
    }

    .flow-arrow {
        opacity: 0;
        transition: opacity 0.4s ease var(--flow-delay, 0ms);
    }

    .flow-arrow.is-visible {
        opacity: 1;
    }

    .benefit-list article {
        animation: benefitIn 0.55s ease both;
    }

    .benefit-list article:nth-child(2) { animation-delay: 0.06s; }
    .benefit-list article:nth-child(3) { animation-delay: 0.12s; }
    .benefit-list article:nth-child(4) { animation-delay: 0.18s; }
}

/* Why / contrast */
.contrast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 48px;
}

.contrast-col {
    padding-top: 14px;
    border-top: 2px solid var(--line);
}

.contrast-saas {
    border-top-color: rgba(26, 46, 42, 0.22);
}
.contrast-saas h3 { color: var(--ink-soft); }
.contrast-saas p { color: var(--muted); }

.contrast-rg {
    border-top-color: rgba(31, 138, 122, 0.55);
}
.contrast-rg h3 { color: var(--teal-deep); }
.contrast-rg p { color: var(--ink-soft); }

.contrast-col p { margin: 0 0 12px; }
.contrast-col p:last-child { margin-bottom: 0; }

/* Pillars */
.pillar-list {
    display: grid;
    gap: 32px 48px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pillar-list article {
    padding-top: 10px;
    border-top: 2px solid rgba(31, 138, 122, 0.35);
}
.pillar-list p {
    margin: 0;
    color: var(--muted);
}

/* Apps showcase: photo left | text right */
.section-apps {
    padding-top: 72px;
    padding-bottom: 72px;
    background:
        radial-gradient(ellipse 40% 55% at 8% 60%, rgba(60, 184, 156, 0.16), transparent 60%),
        radial-gradient(ellipse 45% 50% at 94% 40%, rgba(31, 138, 122, 0.14), transparent 55%),
        var(--paper);
}

.apps-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 36px 48px;
    align-items: center;
}

.apps-copy {
    text-align: left;
}
.apps-copy .section-lead {
    margin-left: 0;
    margin-right: 0;
}
.apps-copy .feature-bullets {
    text-align: left;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}
.apps-copy h2::after {
    margin-left: 0;
    margin-right: 0;
}

.apps-visual {
    margin: 0;
}
.apps-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    filter: drop-shadow(0 18px 40px rgba(15, 31, 28, 0.14));
}

@media (max-width: 960px) {
    .apps-showcase {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* Skills flow diagram */
.section-flow {
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(60, 184, 156, 0.18), transparent 60%),
        linear-gradient(180deg, #e4efea 0%, var(--paper) 100%);
}

.skills-flow {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px 0 20px;
    -webkit-overflow-scrolling: touch;
}

.flow-step {
    flex: 1 1 0;
    min-width: 132px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.flow-step-accent {
    border-color: rgba(31, 138, 122, 0.45);
    box-shadow: 0 10px 28px rgba(31, 138, 122, 0.12);
}
.flow-num {
    font-family: var(--display);
    font-weight: 800;
    font-size: 0.78rem;
    color: var(--teal);
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.flow-step strong {
    font-family: var(--display);
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}
.flow-step span:last-child {
    color: var(--muted);
    font-size: 0.88rem;
}

.flow-arrow {
    flex: 0 0 28px;
    align-self: center;
    height: 2px;
    background: linear-gradient(90deg, rgba(31, 138, 122, 0.15), rgba(31, 138, 122, 0.65));
    position: relative;
}
.flow-arrow::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--teal);
    border-top: 2px solid var(--teal);
    transform: translateY(-50%) rotate(45deg);
}

.flow-note {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 1.02rem;
    max-width: 42em;
    padding-left: 14px;
    border-left: 3px solid var(--mint);
}

/* Limits strip */
.section-limits {
    padding-top: 56px;
    padding-bottom: 56px;
}

.limits-strip {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}
.limits-strip li {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid rgba(31, 138, 122, 0.28);
    border-radius: 12px;
    color: var(--teal-deep);
}
.limits-strip li::after {
    content: " · без квот";
    font-weight: 500;
    color: var(--muted);
    font-size: 0.86rem;
    font-family: var(--font);
}

/* Delivery + skills grids */
.delivery-grid,
.skills-list {
    display: grid;
    gap: 28px 36px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.delivery-grid article,
.skills-list article {
    padding-top: 10px;
    border-top: 2px solid rgba(31, 138, 122, 0.28);
}
.delivery-grid p,
.skills-list p {
    margin: 0;
    color: var(--muted);
}

.benefit-list {
    display: grid;
    gap: 36px 56px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.benefit-list article {
    padding-top: 8px;
    border-top: 2px solid rgba(31, 138, 122, 0.35);
}

.benefit-list p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 32em;
}

@keyframes benefitIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

/* Feature sections */
.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 56px;
    align-items: start;
}

.feature-bullets {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}
.feature-bullets li {
    padding-left: 18px;
    position: relative;
    color: var(--ink-soft);
}
.feature-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint);
}
.feature-bullets code {
    font-size: 0.92em;
    background: var(--paper-2);
    padding: 1px 6px;
    border-radius: 6px;
}

.feature-sub {
    margin: 18px 0 8px;
    font-weight: 700;
    color: var(--ink-soft);
}

.provider-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}
.provider-list li {
    font-weight: 650;
    font-size: 0.92rem;
    padding: 8px 12px;
    border-bottom: 2px solid rgba(31, 138, 122, 0.4);
    color: var(--teal-deep);
}

/* Install */
.install-steps {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 16px;
    max-width: 52em;
}
.install-steps li {
    counter-increment: step;
    position: relative;
    padding-left: 54px;
    min-height: 40px;
    color: var(--ink-soft);
    line-height: 1.5;
}
.install-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.05rem;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(31, 138, 122, 0.12);
    color: var(--teal-deep);
    display: grid;
    place-items: center;
}
.install-steps code {
    font-size: 0.92em;
    background: var(--paper-2);
    padding: 1px 6px;
    border-radius: 6px;
}
.install-note,
.install-reqs {
    margin: 0 0 10px;
    color: var(--muted);
    max-width: 48em;
}
.install-reqs strong { color: var(--ink-soft); }

/* License */
.license-skills {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 2px solid rgba(31, 138, 122, 0.28);
    max-width: 48em;
}
.license-skills p {
    margin: 0;
    color: var(--muted);
}

/* Pricing */
.section-pricing {
    background: linear-gradient(180deg, #eaf1ee 0%, var(--paper) 100%);
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 28px;
    max-width: 1180px;
    align-items: start;
}
.pricing-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(15, 31, 28, 0.06);
}
.pricing-card-accent {
    border-color: rgba(190, 0, 45, 0.35);
    box-shadow: 0 14px 36px rgba(190, 0, 45, 0.12);
}
.pricing-card-updates {
    border-color: rgba(42, 18, 24, 0.14);
}
.pricing-card-lead {
    margin: -4px 0 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--muted);
}
.pricing-mode-caption {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.pricing-pay-now[hidden] {
    display: none !important;
}

.pricing-pay-now {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    margin: 0 0 8px;
    border-radius: 12px;
    background: rgba(190, 0, 45, 0.05);
    border: 1px solid rgba(190, 0, 45, 0.12);
}
.pricing-pay-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-deep);
}
.pricing-pay-note {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.35;
}
.pricing-sum-compact {
    margin: 0;
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
}
.pricing-label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-deep);
}
.pricing-card h3 {
    margin: 0;
    font-size: 1.35rem;
}
.pricing-sum {
    margin: 4px 0 8px;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2rem);
    letter-spacing: -0.03em;
    color: var(--ink);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 14px;
}
.pricing-was {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: line-through;
}
.pricing-now {
    color: var(--teal-deep);
}
.pricing-card .feature-bullets {
    margin: 0 0 8px;
    flex: 1;
}
.pricing-card .btn {
    align-self: flex-start;
    margin-top: 8px;
}

.payment-mode-row-light {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 4px 0 8px;
}
.payment-mode-row-light .payment-mode-option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.payment-mode-row-light .payment-mode-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    text-align: left;
    padding: 12px 14px;
    border: 2px solid var(--line);
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    background: #f7faf9;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.payment-mode-row-light .payment-mode-card strong {
    color: var(--ink);
    font-size: 0.92rem;
}
.payment-mode-row-light .payment-mode-price {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--brand-deep);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}
.payment-mode-row-light .payment-mode-card small {
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--muted);
}
.payment-mode-row-light .payment-mode-option.is-selected .payment-mode-card {
    border-color: var(--brand);
    color: var(--brand-deep);
    background: rgba(190, 0, 45, 0.06);
    box-shadow: 0 0 0 3px rgba(190, 0, 45, 0.18), 0 8px 24px rgba(190, 0, 45, 0.12);
}
.payment-mode-row-light .payment-mode-option:focus-visible .payment-mode-card {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.pricing-note {
    font-size: 1rem;
    font-weight: 600;
    color: var(--muted);
}
.pricing-footnote {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
}

@media (max-width: 960px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .payment-mode-row-light .payment-mode-option,
    .payment-mode-row-light .payment-mode-card {
        pointer-events: auto;
        touch-action: manipulation;
    }
    .pricing-card-accent {
        position: relative;
        z-index: 2;
    }
    .modal-content,
    .modal-body,
    .form-group,
    .check-row {
        pointer-events: auto;
    }
    .cookie-banner {
        z-index: 60;
    }
}

@media (max-width: 720px) {
    .hero-preview {
        min-height: 0;
    }
    .promo-carousel--right .promo-carousel-track {
        min-height: 0;
        aspect-ratio: 16 / 10;
        width: 100%;
    }
}
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
}
.image-lightbox.is-open {
    display: flex;
    pointer-events: auto;
}
.image-lightbox[hidden] {
    display: none !important;
    pointer-events: none !important;
}
.image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(18, 8, 10, 0.82);
    cursor: zoom-out;
}
.image-lightbox-dialog {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 1400px);
    max-height: 92vh;
}
.image-lightbox-dialog img {
    display: block;
    max-width: 100%;
    max-height: 92vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.image-lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.cta-band {
    background:
        radial-gradient(ellipse 70% 80% at 0% 50%, rgba(232, 54, 90, 0.28), transparent 60%),
        linear-gradient(135deg, #2a1218 0%, #BE002D 100%);
    color: #fdf8fa;
    text-align: center;
}

.cta-band p {
    color: rgba(253, 248, 250, 0.85);
    margin: 0 auto 24px;
    max-width: 36em;
}
.cta-band .btn-primary {
    background: #fff;
    color: var(--ink);
}
.cta-band .btn-primary:hover {
    background: #e8eeec;
    color: var(--ink);
}

/* Footer */
.site-footer {
    background: #1a0a0e;
    color: rgba(253, 248, 250, 0.78);
    padding: 36px 0;
}

.footer-inner {
    display: grid;
    gap: 18px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}
.footer-brand strong {
    font-family: var(--display);
    font-weight: 750;
    letter-spacing: -0.02em;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
}
.footer-nav a { color: rgba(244, 247, 246, 0.78); }
.footer-nav a:hover { color: #fff; }

.footer-copy { margin: 0; font-size: 0.9rem; opacity: 0.7; }

/* Flash / cookie / modal */
.flash {
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.flash-success { background: #e8f7f1; }
.flash-error { background: #fdecec; }
.flash-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}
.flash-inner button {
    border: 0;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
    color: inherit;
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 18px;
    display: flex;
    gap: 14px;
    align-items: center;
}
.cookie-banner p { margin: 0; flex: 1; font-size: 0.92rem; color: var(--muted); }

.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal:not([hidden]) {
    display: flex;
}
.modal[hidden] { display: none !important; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(15, 31, 28, 0.45);
    cursor: pointer;
}

.modal-content {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    max-height: min(92vh, 720px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    pointer-events: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}
.modal-header h2 {
    margin: 0;
    font-family: var(--display);
    font-size: 1.35rem;
}
.modal-close {
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    color: var(--muted);
}
.modal-body { padding: 20px; }

.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink-soft);
}
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    font-size: 16px;
    background: var(--paper);
    pointer-events: auto;
    -webkit-user-select: text;
    user-select: text;
}
.form-group input:focus {
    outline: 2px solid rgba(31, 138, 122, 0.35);
    border-color: var(--teal);
}
.check-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}
.check-row input[type="checkbox"] {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 2px 0 0;
    pointer-events: auto;
    accent-color: var(--brand);
}
.check-row label { margin: 0; font-weight: 500; line-height: 1.35; cursor: pointer; }
.form-switch {
    text-align: center;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.page-wrap {
    padding: 48px 0 80px;
}
.page-wrap h1 {
    font-family: var(--display);
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}

/* Legal pages */
.legal-page .legal-inner {
    max-width: 820px;
}
.legal-header {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 2px solid rgba(31, 138, 122, 0.28);
}
.legal-header h1 {
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    line-height: 1.25;
    margin-bottom: 10px;
}
.legal-header p {
    margin: 0;
    color: var(--muted);
}
.legal-page h2 {
    font-family: var(--display);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    margin: 28px 0 12px;
    font-weight: 750;
}
.legal-page h3 {
    font-family: var(--display);
    font-size: 1.05rem;
    margin: 18px 0 10px;
}
.legal-page p,
.legal-page li {
    color: var(--ink-soft);
}
.legal-page ul,
.legal-page ol {
    margin: 0 0 16px;
    padding-left: 1.25em;
}
.legal-page li { margin-bottom: 6px; }
.legal-page hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 32px 0;
}
.legal-table-wrap {
    overflow-x: auto;
    margin-top: 12px;
}
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.legal-table th,
.legal-table td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
.legal-table th {
    background: var(--paper-2);
    font-family: var(--display);
    font-weight: 700;
}

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .hero-preview {
        min-height: 0;
    }
    .promo-carousel--right .promo-carousel-track {
        min-height: 0;
        width: 100%;
    }
    .hero {
        overflow-x: hidden;
        min-height: auto;
        padding-top: 28px;
        align-items: flex-start;
    }
    body.modal-open {
        overflow: auto;
    }
    .site-header {
        backdrop-filter: none;
        background: #faf8f9;
    }
    .section {
        padding: 56px 0;
    }
    html {
        scroll-behavior: auto;
    }
    .hero-copy,
    .hero-preview,
    .hero-widget,
    .benefit-list article,
    .section-head,
    .reveal,
    .assemble-item,
    .flow-step,
    .flow-arrow,
    .promo-carousel-slide {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
        animation: none !important;
    }
    .promo-carousel-slide:not(.is-active) {
        pointer-events: none !important;
        visibility: hidden;
    }
    .promo-carousel-slide.is-active {
        pointer-events: auto;
        visibility: visible;
    }
    .crm-funnel {
        grid-template-columns: 1fr;
    }
    .crm-col {
        min-height: auto;
    }
    .hero-widget,
    .hero-widget-mount {
        min-height: 440px;
        height: 440px;
    }
    .contrast-grid,
    .feature-split,
    .pillar-list {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .delivery-grid,
    .skills-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .nav-desktop { display: none; }
    .mobile-toggle { display: inline-flex; }
    .brand-name { display: none; }
    .header-inner { gap: 10px; min-height: 60px; }
    .header-actions { gap: 8px; }
    .benefit-list { grid-template-columns: 1fr; gap: 28px; }

    .skills-flow {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .flow-step { min-width: 0; }
    .flow-arrow {
        flex: 0 0 24px;
        width: 2px;
        height: 24px;
        align-self: center;
        background: linear-gradient(180deg, rgba(31, 138, 122, 0.15), rgba(31, 138, 122, 0.65));
    }
    .flow-arrow::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -1px;
        transform: translateX(-50%) rotate(135deg);
    }
}

@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .delivery-grid,
    .skills-list { grid-template-columns: 1fr; }
    .limits-strip li::after { display: none; }
}

/* ——— База знаний ——— */
.kb-page { padding-bottom: 72px; }
.kb-hero { margin-bottom: 28px; max-width: 720px; }
.kb-hero h1 { margin-bottom: 10px; }

.kb-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.kb-nav {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(15, 31, 28, 0.04);
}

.kb-nav-label {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.kb-nav-link {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.3;
}
.kb-nav-link:hover { background: var(--paper-2); color: var(--teal-deep); }
.kb-nav-link.is-active {
    background: rgba(31, 138, 122, 0.12);
    color: var(--teal-deep);
}

.kb-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.kb-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 28px 32px;
    scroll-margin-top: 96px;
}
.kb-section h2 {
    font-family: var(--display);
    font-size: 1.45rem;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.kb-section h3 {
    font-family: var(--display);
    font-size: 1.08rem;
    margin: 22px 0 10px;
}
.kb-section p,
.kb-section li { color: var(--ink-soft); }
.kb-section ul,
.kb-section ol { margin: 0 0 14px; padding-left: 1.2em; }
.kb-section li { margin-bottom: 6px; }
.kb-section code {
    font-size: 0.88em;
    background: var(--paper-2);
    padding: 0.1em 0.4em;
    border-radius: 6px;
}

.kb-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    counter-reset: kbstep;
}
.kb-steps > li {
    position: relative;
    padding: 12px 14px 12px 48px;
    margin-bottom: 8px;
    background: var(--paper);
    border-radius: 12px;
    border: 1px solid transparent;
}
.kb-steps > li::before {
    counter-increment: kbstep;
    content: counter(kbstep);
    position: absolute;
    left: 12px;
    top: 12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kb-download {
    margin: 16px 0 22px;
    padding: 18px;
    background: linear-gradient(160deg, #eef8f5 0%, #f7fbf9 100%);
    border: 1px solid rgba(31, 138, 122, 0.22);
    border-radius: 14px;
}
.kb-download label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
}
.kb-download-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.kb-download input[type="text"] {
    flex: 1 1 220px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    background: #fff;
}
.kb-download input:focus {
    outline: 2px solid rgba(31, 138, 122, 0.35);
    border-color: var(--teal);
}
.kb-hint {
    margin: 10px 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.kb-callout {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--paper);
    border-left: 3px solid var(--teal);
    border-radius: 0 10px 10px 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}
.kb-callout-warn {
    border-left-color: #c47a00;
    background: #fff9ef;
}

.kb-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.kb-inline-btn {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: var(--teal-deep);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.kb-path {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    counter-reset: kbpath;
}
.kb-path > li {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 14px 16px 14px 52px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #f3faf7 100%);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.kb-path > li::before {
    counter-increment: kbpath;
    content: counter(kbpath);
    position: absolute;
    left: 14px;
    top: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kb-path strong { color: var(--ink); }
.kb-path span,
.kb-path em { color: var(--ink-soft); font-size: 0.95rem; font-style: normal; }

.kb-mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}
.kb-mode-card {
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--paper);
}
.kb-mode-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}
.kb-mode-card p { margin: 0; font-size: 0.92rem; }
.kb-mode-card-accent {
    background: linear-gradient(160deg, #e8f7f2 0%, #f7fbf9 100%);
    border-color: rgba(31, 138, 122, 0.28);
}

.kb-mock-widget {
    position: relative;
    min-height: 220px;
    padding: 20px;
    background: linear-gradient(160deg, #dfe8e4 0%, #f0f4f2 100%);
}
.kb-mock-widget-btn {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(22, 107, 94, 0.35);
}
.kb-mock-widget-win {
    width: min(280px, 100%);
    margin-left: auto;
    margin-right: 80px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--line);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 31, 28, 0.12);
}
.kb-mock-widget-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #e8f4f0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
}
.kb-mock-widget-head .logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--teal);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}
.kb-mock-widget-msg {
    padding: 14px 12px;
    font-size: 0.85rem;
    color: var(--ink-soft);
    min-height: 72px;
}
.kb-mock-widget-foot {
    padding: 8px 12px;
    border-top: 1px solid var(--line);
    font-size: 0.72rem;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 900px) {
    .kb-mode-grid { grid-template-columns: 1fr; }
}

/* Схематичная админка */
.kb-mock {
    margin: 18px 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #f0f4f2;
}
.kb-mock-bar {
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    background: #e4ebe8;
    border-bottom: 1px solid var(--line);
}
.kb-mock-body { padding: 16px; }
.kb-mock-install { max-width: 420px; }
.kb-mock-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.kb-mock-checks .ok {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ok);
    background: #e8f6ef;
    padding: 4px 8px;
    border-radius: 999px;
}
.kb-mock-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}
.kb-mock-field > span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
}
.kb-mock-field > i {
    display: block;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    font-style: normal;
    font-size: 0.85rem;
    color: var(--ink-soft);
    padding: 8px 10px;
    line-height: 1.2;
}
.kb-mock-btn {
    margin-top: 6px;
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--teal);
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
}

.kb-mock-shell {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 200px;
}
.kb-mock-side {
    background: #16352f;
    color: rgba(255, 255, 255, 0.72);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.78rem;
}
.kb-mock-side b {
    color: #fff;
    font-family: var(--display);
    font-size: 0.92rem;
    margin-bottom: 8px;
}
.kb-mock-side span {
    padding: 6px 8px;
    border-radius: 8px;
}
.kb-mock-side span.on {
    background: rgba(60, 184, 156, 0.28);
    color: #fff;
    font-weight: 700;
}
.kb-mock-main {
    padding: 14px 16px 18px;
    background: #f7faf8;
}
.kb-mock-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: var(--ink);
}
.kb-mock-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}
.kb-mock-tabs i {
    font-style: normal;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
}
.kb-mock-tabs i.on {
    background: rgba(31, 138, 122, 0.12);
    border-color: transparent;
    color: var(--teal-deep);
}
.kb-mock-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    margin-top: 10px;
}
.kb-mock-card strong {
    display: block;
    font-size: 0.9rem;
    color: var(--ink);
}
.kb-mock-card em {
    display: block;
    font-style: normal;
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 4px;
}
.kb-mock-card.ghost {
    border-style: dashed;
    color: var(--teal-deep);
    font-weight: 600;
    text-align: center;
}
.kb-mock-code {
    display: block;
    margin-top: 8px;
    font-size: 0.72rem;
    background: var(--paper-2);
    padding: 8px;
    border-radius: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kb-mock-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}
.kb-mock-chips i {
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink-soft);
}
.kb-mock-chips i.on {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

@media (max-width: 900px) {
    .kb-layout {
        grid-template-columns: 1fr;
    }
    .kb-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .kb-nav-label { width: 100%; }
    .kb-nav-link { font-size: 0.85rem; padding: 8px 10px; }
    .kb-section { padding: 22px 18px 26px; }
    .kb-mock-shell { grid-template-columns: 1fr; }
    .kb-mock-side {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    .kb-mock-side b { width: 100%; margin-bottom: 0; }
}

.kb-nav-sub {
    margin: 14px 0 6px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.kb-nav-sub:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }

.kb-spec-meta { margin-bottom: 12px; font-size: 0.92rem; }
.kb-spec-meta p { margin: 0 0 8px; }
.kb-table-wrap { overflow-x: auto; margin: 12px 0 18px; }
.kb-spec-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.84rem;
}
.kb-spec-table th,
.kb-spec-table td {
    border: 1px solid var(--line);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}
.kb-spec-table th {
    background: var(--paper-2);
    font-weight: 700;
    color: var(--ink);
}
.kb-spec-aliases { font-size: 0.8rem; color: var(--muted); max-width: 220px; }
.kb-spec-pre {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    overflow-x: auto;
    font-size: 0.76rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-all;
}
.kb-section h4 {
    margin: 18px 0 8px;
    font-size: 0.95rem;
    color: var(--ink);
}
