.xl-page {
    width: min(72rem, calc(100% - 2rem));
    margin: 1.4rem auto 3.5rem;
    color: #102a43;
    font-family: Poppins, "Plus Jakarta Sans", sans-serif;
}

.xl-hero {
    margin-bottom: 1.35rem;
}

.xl-kicker {
    margin: 0 0 0.35rem;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.xl-hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    letter-spacing: -0.045em;
    line-height: 0.95;
}

.xl-hero p {
    margin: 0;
    max-width: 36rem;
    color: #3d5166;
    font-size: 1.02rem;
    line-height: 1.5;
}

.xl-aside {
    padding: 1rem 1.05rem;
    background: #102a43;
    color: #e7eef6;
    border-radius: 18px;
}

.xl-aside strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.xl-aside p {
    margin: 0;
    color: #d5e3f2;
    font-size: 0.88rem;
    line-height: 1.45;
}

.xl-group {
    margin-top: 1.5rem;
}

.xl-group h2 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.xl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.xl-card,
.xl-tier {
    display: grid;
    gap: 0.55rem;
    padding: 1rem 1rem 0.9rem;
    background: #fff;
    border: 1px solid rgba(16, 42, 67, 0.08);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(16, 42, 67, 0.05);
}

.xl-card header,
.xl-tier header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.xl-tag {
    margin: 0;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.xl-card h3,
.xl-tier h3 {
    margin: 0.15rem 0 0;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.xl-card p,
.xl-tier p {
    margin: 0.35rem 0 0;
    color: #3d5166;
    font-size: 0.92rem;
    line-height: 1.4;
}

.xl-note {
    margin: 0.35rem 0 0;
    color: #9a3412;
    font-size: 0.78rem;
    font-weight: 700;
}

.xl-price {
    text-align: right;
    font-weight: 800;
    line-height: 1.15;
}

.xl-price small {
    font-weight: 600;
    font-size: 0.72rem;
}

.xl-price .old {
    display: block;
    color: #8aa0b5;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: line-through;
}

.xl-price .sub {
    display: block;
    margin-top: 0.15rem;
    color: #4c6278;
    font-size: 0.78rem;
    font-weight: 600;
}

.xl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.xl-actions a,
.xl-actions button {
    border-radius: 999px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.48rem 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.xl-buy {
    border: 0;
    background: #102a43;
    color: #fff;
}

.xl-ghost {
    border: 1px solid rgba(16, 42, 67, 0.14);
    background: #fff;
    color: #102a43;
}

.xl-tiers {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
}

.xl-tier {
    background:
        linear-gradient(180deg, rgba(16, 42, 67, 0.04), transparent 42%),
        #fff;
}

.xl-tier header {
    display: block;
}

.xl-tier .xl-price {
    text-align: left;
    margin-top: 0.2rem;
}

.xl-dialog {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(16, 42, 67, 0.46);
}

.xl-dialog[hidden] {
    display: none;
}

.xl-dialog form {
    width: min(28rem, 100%);
    padding: 1.1rem;
    background: #fff;
    border-radius: 16px;
}

.xl-dialog h2 {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
}

.xl-dialog p {
    margin: 0 0 0.75rem;
    color: #3d5166;
    font-size: 0.9rem;
}

.xl-dialog select {
    width: 100%;
    min-height: 44px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(16, 42, 67, 0.16);
    border-radius: 10px;
    padding: 0 0.7rem;
    font: inherit;
}

.xl-dialog .xl-actions {
    justify-content: flex-end;
}

.xl-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 10010;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0.7rem 0.8rem;
    background: #102a43;
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(16, 42, 67, 0.25);
}

.xl-toast[hidden] {
    display: none;
}

.xl-toast a {
    color: #fff;
    font-weight: 800;
}

@media (max-width: 900px) {
    .xl-hero,
    .xl-grid,
    .xl-tiers {
        grid-template-columns: 1fr;
    }

    .xl-price {
        text-align: left;
    }
}
