/* Шапка и навигация */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 19px;
    color: var(--ink);
}

.brand:hover {
    color: var(--ink);
}

.brand__mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-size: 14px;
    letter-spacing: .5px;
}

.brand__text {
    letter-spacing: -.2px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav a {
    color: var(--ink);
    font-weight: 500;
    font-size: 15px;
}

.nav a:hover {
    color: var(--brand);
}

.nav .btn {
    margin-left: 4px;
}

.nav-toggle,
.nav-burger {
    display: none;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1000px 500px at 80% -10%, rgba(124, 58, 237, .55), transparent 60%),
        radial-gradient(800px 400px at 0% 10%, rgba(37, 99, 235, .45), transparent 55%),
        var(--dark);
    color: #fff;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
    padding: 84px 0 76px;
}

.hero__badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(32px, 4.6vw, 54px);
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.hero h1 span {
    background: linear-gradient(120deg, #60a5fa, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    font-size: 18px;
    color: #cbd5e1;
    max-width: 560px;
    margin-bottom: 26px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.hero__stat b {
    display: block;
    font-size: 24px;
}

.hero__stat span {
    font-size: 13px;
    color: #94a3b8;
}

.hero__shot {
    position: relative;
}

.hero__shot img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, .14);
}

/* Секции */
.section {
    padding: 84px 0;
}

.section--tint {
    background: var(--surface-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section__head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.section__eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 10px;
}

.section h2 {
    font-size: clamp(26px, 3.2vw, 38px);
    letter-spacing: -.5px;
}

.section__sub {
    color: var(--muted);
    font-size: 17px;
}

/* Карточки возможностей */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #cbd5e1;
}

.feature__icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 22px;
    margin-bottom: 14px;
    background: #eff6ff;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature p {
    color: var(--muted);
    font-size: 15px;
    margin: 0;
}

/* Галерея скриншотов */
.gallery {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 22px;
}

.shot {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.shot--wide {
    grid-row: span 2;
}

.shot img {
    width: 100%;
}

.shot__cap {
    padding: 14px 18px;
    font-size: 14px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.shot__cap b {
    color: var(--ink);
    display: block;
    font-size: 15px;
}

/* CTA */
.cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
    color: #fff;
    border-radius: 24px;
    padding: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: var(--shadow-lg);
}

.cta h2 {
    color: #fff;
    margin-bottom: 8px;
}

.cta p {
    color: #e0e7ff;
    margin: 0;
    max-width: 560px;
}

/* Внутренние страницы */
.page-hero {
    background: var(--dark);
    color: #fff;
    padding: 64px 0 56px;
}

.page-hero h1 {
    font-size: clamp(28px, 3.6vw, 42px);
    letter-spacing: -.5px;
    margin-bottom: 12px;
}

.page-hero p {
    color: #cbd5e1;
    max-width: 680px;
    margin: 0;
}

.prose {
    max-width: 820px;
}

.prose h2 {
    margin-top: 40px;
    font-size: 24px;
}

.prose h3 {
    margin-top: 28px;
    font-size: 19px;
}

.prose p,
.prose li {
    color: #334155;
}

.prose ul {
    padding-left: 22px;
}

.prose code {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 14px;
}

/* Документация: сетка разделов */
.docs-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
}

.docs-toc {
    position: sticky;
    top: 92px;
    align-self: start;
    border-left: 2px solid var(--line);
    padding-left: 18px;
}

.docs-toc a {
    display: block;
    padding: 6px 0;
    color: var(--muted);
    font-size: 15px;
}

.docs-toc a:hover {
    color: var(--brand);
}

.docs-section {
    scroll-margin-top: 96px;
    padding-bottom: 12px;
}

.docs-section + .docs-section {
    border-top: 1px solid var(--line);
    margin-top: 36px;
    padding-top: 36px;
}

.card-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 24px 0;
}

.card-list .feature {
    padding: 22px;
}

/* Футер */
.site-footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 44px 0;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    font-size: 15px;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.site-footer__nav a {
    color: #cbd5e1;
    font-size: 15px;
}

.site-footer__nav a:hover {
    color: #fff;
}

.site-footer__copy {
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 14px;
}

/* Адаптив */
@media (max-width: 900px) {
    .hero__inner,
    .gallery,
    .docs-grid,
    .features,
    .card-list {
        grid-template-columns: 1fr;
    }

    .shot--wide {
        grid-row: auto;
    }

    .docs-toc {
        position: static;
        border-left: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 16px;
        margin-bottom: 8px;
    }

    .cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 36px;
    }
}

@media (max-width: 720px) {
    .nav-burger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 8px;
    }

    .nav-burger span {
        width: 24px;
        height: 2px;
        background: var(--ink);
        border-radius: 2px;
    }

    .nav {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 14px 24px 20px;
        box-shadow: var(--shadow);
    }

    .nav-toggle:checked ~ .nav {
        display: flex;
    }

    .section {
        padding: 56px 0;
    }
}
