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

.narrow {
    width: min(820px, calc(100% - 40px));
    max-width: calc(100vw - 40px);
}

.section {
    padding: 112px 0;
}

.section-muted {
    background: var(--color-bg-muted);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--color-border);
    background: color-mix(in srgb, var(--color-bg) 88%, transparent);
    backdrop-filter: blur(18px);
    transition: background .2s var(--ease-out), box-shadow .2s var(--ease-out);
}

.site-header.is-scrolled {
    background: color-mix(in srgb, var(--color-bg) 94%, transparent);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.header-inner {
    min-height: 68px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.header-controls {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 10px;
}

.hero {
    position: relative;
    min-height: min(780px, calc(100vh - 68px));
    display: grid;
    align-items: center;
    padding: 78px 0 34px;
    overflow: hidden;
}

.hero-simple {
    padding-top: 116px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 56px;
    align-items: center;
}

.two-column,
.product-form-grid,
.process-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 56px;
    align-items: start;
}

.hero-grid > *,
.two-column > *,
.product-form-grid > *,
.process-grid > *,
.contact-grid > *,
.product-proof > *,
.footer-grid > * {
    min-width: 0;
}

.split-cards,
.pricing-grid,
.product-grid,
.article-grid,
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-grid,
.product-proof {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 34px;
    align-items: start;
}

.section-heading {
    width: min(760px, 100%);
    margin-bottom: 34px;
}

.site-footer {
    padding: 72px 0 28px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, .75fr);
    gap: 36px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 14px;
}

@media (max-width: 980px) {
    .header-inner {
        grid-template-columns: auto 1fr auto;
    }

    .nav-toggle {
        display: inline-flex;
        justify-self: center;
    }

    .site-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 68px;
        display: none;
        padding: 14px;
        background: var(--color-bg-elevated);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-card);
        box-shadow: var(--shadow-soft);
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav.is-open {
        display: flex;
    }

    .hero-grid,
    .two-column,
    .product-form-grid,
    .process-grid,
    .contact-grid,
    .product-proof,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .product-grid,
    .pricing-grid,
    .split-cards,
    .article-grid,
    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .container,
    .narrow {
        width: min(1180px, calc(100% - 28px));
        max-width: calc(100vw - 28px);
    }

    .section {
        padding: 76px 0;
    }

    .hero {
        min-height: auto;
        padding-top: 58px;
    }

    .header-inner {
        gap: 8px;
        grid-template-columns: auto auto auto;
        justify-content: space-between;
    }

    .brand-word {
        display: none;
    }

    .product-grid,
    .pricing-grid,
    .split-cards,
    .article-grid,
    .value-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
