.content-page-main {
    width: min(1120px, calc(100% - 32px));
    margin: clamp(16px, 3vh, 28px) auto 72px;
}

.content-page-hero {
    position: relative;
    overflow: hidden;
    max-width: 760px;
    margin-bottom: 32px;
    max-height: calc(var(--first-fold-height) - 32px);
}

.content-page-hero-has-image {
    display: grid;
    align-items: end;
    height: clamp(320px, calc(var(--first-fold-height) - 32px), 520px);
    min-height: min(320px, calc(var(--first-fold-height) - 32px));
    max-height: calc(var(--first-fold-height) - 32px);
    max-width: none;
    margin: 0 0 30px;
    padding: clamp(24px, 5vw, 52px);
    border-radius: 0;
    color: #ffffff;
    isolation: isolate;
}

.content-page-hero-media,
.content-page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.content-page-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--content-page-hero-image-position, center center);
}

.content-page-hero-overlay {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(12, 40, 82, 0.50), rgba(16, 61, 110, 0.24) 48%, rgba(8, 26, 48, 0.08)),
        linear-gradient(0deg, rgba(6, 19, 36, 0.20), rgba(6, 19, 36, 0.04));
}

.content-page-hero-content {
    max-width: 760px;
    max-height: 100%;
    overflow: hidden;
}

.content-page-kicker {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.content-page-hero h1,
.content-page-section-heading h2,
.content-page-split h2 {
    margin: 0;
    color: var(--brand-deep);
    letter-spacing: -0.04em;
}

.content-page-hero h1 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    max-width: 15ch;
    font-size: clamp(1.9rem, 3.8vw, 3.4rem);
    line-height: 1.02;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.content-page-hero-has-image .content-page-kicker,
.content-page-hero-has-image h1,
.content-page-hero-has-image p:last-child {
    color: #ffffff;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.content-page-hero-has-image .content-page-kicker {
    opacity: 0.86;
}

.content-page-hero p:last-child,
.content-page-section p,
.content-page-card p,
.content-page-split p {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.65;
}

.content-page-hero p:last-child {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    max-width: 620px;
    margin: 14px 0 0;
    font-size: clamp(0.96rem, 1.25vw, 1.04rem);
    line-height: 1.5;
    overflow: hidden;
}

.content-page-section-list,
.content-page-grid,
.content-page-products,
.content-page-split {
    margin-top: 22px;
}

.content-page-section-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.content-page-section,
.content-page-card,
.content-page-split {
    border: 1px solid rgba(16, 32, 56, 0.08);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(16, 32, 56, 0.06);
}

.content-page-section,
.content-page-card {
    padding: 20px;
}

.content-page-section h2,
.content-page-card h3 {
    margin: 0;
    color: var(--brand-deep);
    font-size: 1.1rem;
}

.content-page-section p,
.content-page-card p {
    margin: 10px 0 0;
}

.content-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.content-page-section-heading {
    grid-column: 1 / -1;
    max-width: 620px;
}

.content-page-section-heading h2,
.content-page-split h2 {
    font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.content-page-products {
    display: grid;
    gap: 18px;
}

.content-page-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
    gap: 24px;
    align-items: start;
    padding: 24px;
}

.content-page-facts {
    display: grid;
    gap: 10px;
}

.content-page-facts span {
    border: 1px solid rgba(31, 75, 153, 0.14);
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--brand-deep);
    background: #f0f6ff;
    font-weight: 850;
}

.auth-page {
    width: min(100% - 32px, 1120px);
    min-height: min(620px, calc(var(--first-fold-height) - 32px));
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 460px);
    align-items: center;
    gap: clamp(28px, 6vw, 76px);
    margin: clamp(22px, 5vh, 54px) auto 72px;
}

.auth-page-copy {
    max-width: 620px;
}

.auth-page-title {
    max-width: 12ch;
    margin: 0;
    color: var(--brand-deep);
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.auth-page-subtitle {
    max-width: 560px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    font-weight: 750;
    line-height: 1.55;
}

.auth-page-panel {
    width: 100%;
}

@media (max-width: 900px) {
    .content-page-section-list,
    .content-page-grid,
    .content-page-split,
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-page {
        align-items: start;
    }
}

@media (max-width: 640px) {
    .content-page-main {
        width: min(100% - 20px, 1120px);
        margin-top: 20px;
    }

    .content-page-hero-has-image {
        height: min(500px, calc(var(--first-fold-height) - 24px));
        min-height: min(320px, calc(var(--first-fold-height) - 24px));
        max-height: calc(var(--first-fold-height) - 24px);
        padding: 28px 20px;
    }

    .content-page-hero-media img {
        object-position: var(--content-page-hero-image-position-mobile, center center);
    }

    .content-page-hero h1 {
        max-width: 13ch;
        font-size: clamp(2rem, 9vw, 3.1rem);
    }

    .auth-page {
        width: min(100% - 20px, 1120px);
        min-height: auto;
        margin-top: 24px;
        gap: 22px;
    }

    .auth-page-title {
        font-size: clamp(2rem, 10vw, 3.2rem);
    }
}
