:root {
    --ink: #0f1f1c;
    --ink-soft: #2a3f3a;
    --muted: #5a726c;
    --paper: #f3f7f5;
    --paper-2: #e7efeb;
    --teal: #1f8a7a;
    --teal-deep: #166b5e;
    --mint: #3cb89c;
    --line: rgba(26, 46, 42, 0.12);
    --danger: #b42318;
    --ok: #067647;
    --shadow: 0 18px 50px rgba(15, 31, 28, 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;
}

body.modal-open { overflow: hidden; }

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;
    backdrop-filter: blur(12px);
    background: rgba(243, 247, 245, 0.88);
    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;
}

.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(60, 184, 156, 0.35), transparent 55%),
        radial-gradient(ellipse 70% 50% at 92% 8%, rgba(31, 138, 122, 0.28), transparent 50%),
        radial-gradient(ellipse 55% 45% at 78% 88%, rgba(26, 46, 42, 0.16), transparent 55%),
        linear-gradient(165deg, #eaf3ef 0%, #f3f7f5 42%, #dfeae5 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='%231a2e2a' 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-copy {
    animation: heroIn 0.7s ease both;
}

.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-widget {
    width: 100%;
    min-height: 520px;
    animation: heroWidgetIn 0.85s 0.12s ease both;
}

.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, #eaf1ee 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 */
.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(22px);
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.55s 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;
}

/* 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;
    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-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;
    opacity: 0;
    transition: opacity 0.4s ease var(--flow-delay, 0ms);
}
.flow-arrow.is-visible { opacity: 1; }
.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);
    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; }

.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(2, minmax(0, 1fr));
    gap: 24px 28px;
    max-width: 860px;
}
.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(31, 138, 122, 0.45);
    box-shadow: 0 14px 36px rgba(31, 138, 122, 0.14);
}
.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;
}

@media (max-width: 720px) {
    .pricing-grid { grid-template-columns: 1fr; }
}

.cta-band {
    background:
        radial-gradient(ellipse 70% 80% at 0% 50%, rgba(60, 184, 156, 0.25), transparent 60%),
        linear-gradient(135deg, #1a2e2a 0%, #1f8a7a 100%);
    color: #f4f7f6;
    text-align: center;
}

.cta-band p {
    color: rgba(244, 247, 246, 0.82);
    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: #0f1f1c;
    color: rgba(244, 247, 246, 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: 100;
    background: rgba(15, 31, 28, 0.45);
    display: grid;
    place-items: center;
    padding: 20px;
}
.modal[hidden] { display: none !important; }

.modal-content {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.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;
    background: var(--paper);
}
.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;
}
.check-row label { margin: 0; font-weight: 500; line-height: 1.35; }
.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 {
        min-height: auto;
        padding-top: 28px;
        align-items: flex-start;
    }
    .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; }
    .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; }
}
