:root {
    --bg: #f7f9ff;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-strong: #ffffff;
    --surface-soft: #eef3ff;
    --panel: #edf2fe;
    --text: #0a1f59;
    --muted: #60708f;
    --line: #d7e0f0;
    --brand: #106aa8;
    --brand-dark: #0b356f;
    --brand-mid: #215fb0;
    --badge: #a56909;
    --shadow: 0 18px 46px rgba(14, 41, 88, 0.08);
    --success: #eefaf0;
    --error: #fff1f1;
    --heading-font: "Poppins", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(179, 212, 255, 0.42), transparent 30%),
        linear-gradient(180deg, #f9fbff 0%, #f5f7ff 48%, #f1f4fc 100%);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
}

a { color: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(214, 224, 239, 0.92);
}

.brand {
    font-size: 24px;
    font-weight: 900;
    color: #193e97;
    letter-spacing: -0.03em;
    font-family: var(--heading-font);
}

.brand img {
    display: block;
    max-height: 42px;
    width: auto;
}

.site-nav {
    display: flex;
    gap: 28px;
    align-items: center;
    color: var(--muted);
    font-weight: 600;
}

.site-nav a {
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.nav-button {
    padding: 12px 22px;
    border-radius: 16px;
    background: var(--brand);
    color: #fff !important;
    box-shadow: 0 12px 22px rgba(16, 106, 168, 0.24);
}

.hero {
    min-height: 322px;
    display: flex;
    align-items: stretch;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.hero-content {
    flex: 1 1 auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    min-width: 0;
    padding-left: max(24px, calc((100vw - 1180px) / 2));
    padding-right: 24px;
}

.hero-inner {
    max-width: 720px;
    padding: 58px 0 66px;
}

.hero-media {
    flex: 0 0 auto;
    align-self: stretch;
    width: clamp(483px, 42%, 620px);
    max-height: 440px;
    position: relative;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg,
        rgba(var(--hero-rgb), 0.97) 0%,
        rgba(var(--hero-rgb), 0.88) 12%,
        rgba(var(--hero-rgb), 0.62) 24%,
        rgba(var(--hero-rgb), 0.36) 36%,
        rgba(var(--hero-rgb), 0.15) 48%,
        rgba(var(--hero-rgb), 0.03) 58%,
        rgba(var(--hero-rgb), 0) 66%
    );
    pointer-events: none;
}

.hero-divider {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    height: 100%;
    width: auto;
    z-index: 2;
    pointer-events: none;
}

.badge {
    display: inline-block;
    margin-bottom: 20px;
    border-radius: 999px;
    background: var(--badge);
    color: #fff;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.hero-kicker {
    display: block;
    margin: 0 0 8px;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: clamp(18px, 2.4vw, 26px);
    letter-spacing: -0.01em;
    opacity: 0.82;
}

.hero h1 {
    margin: 0 0 14px;
    max-width: 760px;
    font-size: clamp(44px, 8vw, 78px);
    line-height: 0.97;
    letter-spacing: -0.04em;
    font-family: var(--heading-font);
}

.hero p {
    max-width: 650px;
    margin: 0;
    font-size: clamp(20px, 3vw, 25px);
    line-height: 1.36;
    opacity: 0.96;
}

.page-shell {
    width: min(1180px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 28px 0 72px;
}

.notice,
.success-card {
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.notice.error { background: var(--error); border-color: #f0c5c5; }
.notice.success { background: var(--success); border-color: #cde5d2; }

.success-card h2 {
    margin-top: 0;
    font-size: 34px;
    font-family: var(--heading-font);
}

.primary-link {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 388px);
    gap: 34px;
    align-items: start;
}

.promo-form { min-width: 0; }

.step-card,
.summary-card {
    background: var(--surface);
    border: 1px solid rgba(217, 226, 239, 0.88);
    border-radius: 30px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.step-card + .step-card { margin-top: 24px; }

.step-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.step-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-family: var(--heading-font);
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: #dcebff;
    color: var(--brand);
    font-weight: 800;
}

.section-intro,
.step-hint {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

#invoice-hint {
    margin-top: 14px;
}

.option-grid {
    display: grid;
    gap: 18px;
}

.contract-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.selection-card {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 28px;
    border-radius: 24px;
    border: 2px solid transparent;
    background: linear-gradient(180deg, #fbfdff 0%, #eef3ff 100%);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.selection-card:hover,
.package-card:hover {
    transform: translateY(-2px);
}

.selection-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.selection-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.48;
}

.radio-dot {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #b8c5db;
    margin-top: 2px;
    background: #fff;
}

.selection-card.is-active {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 12px 30px rgba(16, 106, 168, 0.12);
}

.selection-card.is-active .radio-dot {
    border-color: var(--brand);
    box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 20px var(--brand);
}

.toggle-bar {
    display: inline-flex;
    gap: 8px;
    padding: 8px;
    border-radius: 22px;
    background: linear-gradient(180deg, #f3f6fd 0%, #e9eef9 100%);
}

.toggle-button {
    border: 0;
    border-radius: 16px;
    padding: 15px 28px;
    background: transparent;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.toggle-button.is-active {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 12px 22px rgba(17, 103, 168, 0.24);
}

.package-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
}

.package-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface-strong);
    border: 1px solid rgba(216, 226, 240, 0.95);
    box-shadow: 0 14px 28px rgba(17, 41, 87, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.package-card.is-selected {
    border: 3px solid var(--brand);
    box-shadow: 0 18px 36px rgba(16, 74, 140, 0.14);
}

.package-badge {
    position: absolute;
    top: -13px;
    left: 22px;
    border-radius: 999px;
    padding: 8px 16px;
    background: var(--brand);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.package-label {
    margin-top: 8px;
    color: var(--brand);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.package-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-family: var(--heading-font);
}

.package-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 8px;
}

.package-desc {
    margin: 0 0 12px;
    min-height: 0;
    color: var(--muted);
    line-height: 1.35;
    font-size: 14px;
}

.price-line {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 18px;
    margin-bottom: 22px;
    border-top: 1px solid var(--line);
}

.price-line span {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.price-line.compact {
    margin: 0;
    padding: 0;
    border: 0;
}

.price-line.compact small {
    display: none;
}

.price-line small {
    color: var(--muted);
    font-size: 15px;
}

.package-action,
.primary-button,
.secondary-button {
    width: 100%;
    border-radius: 16px;
    padding: 16px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.package-action {
    margin-top: auto;
    border: 2px solid var(--brand);
    background: #fff;
    color: var(--brand);
    padding: 10px 14px;
    font-size: 16px;
}

.package-card.is-selected .package-action {
    background: var(--brand);
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-grid label,
.consents label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 700;
}

.contact-grid input {
    border: 1px solid #ccd7e8;
    border-radius: 18px;
    padding: 15px 16px;
    font-size: 16px;
    background: #fff;
}

.contact-grid input:focus {
    outline: 0;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(16, 106, 168, 0.12);
}

.consents {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
}

.check-row {
    flex-direction: row !important;
    align-items: center;
    gap: 10px !important;
    font-weight: 700;
}

.consent-copy {
    color: var(--muted);
    line-height: 1.58;
    padding-left: 2px;
}

.validation-hint {
    margin: 12px 0 0;
    color: #b42318;
    font-size: 14px;
    font-weight: 600;
}

.summary-card {
    position: sticky;
    top: 98px;
    background: linear-gradient(180deg, #f2f5ff 0%, #edf1fb 100%);
}

.summary-head {
    margin-bottom: 22px;
}

.summary-kicker {
    margin-bottom: 8px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.summary-card h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-family: var(--heading-font);
}

.summary-section {
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(206, 216, 232, 0.92);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    margin-bottom: 16px;
}

.summary-row span {
    color: var(--muted);
}

.summary-row strong {
    text-align: right;
    font-size: 18px;
}

.summary-row-top {
    margin-bottom: 6px;
}

.summary-row-top a {
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.summary-value {
    margin-bottom: 18px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-family: var(--heading-font);
}

.summary-total {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
}

.summary-total span {
    font-size: 18px;
    font-weight: 700;
}

.summary-total strong {
    font-size: clamp(34px, 4vw, 56px);
    line-height: 0.98;
    color: var(--brand);
    letter-spacing: -0.05em;
    font-family: var(--heading-font);
}

.summary-total small {
    color: var(--muted);
}

.primary-button {
    border: 0;
    background: linear-gradient(180deg, #1470b0 0%, #0f5f9a 100%);
    color: #fff;
    box-shadow: 0 14px 26px rgba(17, 103, 168, 0.25);
}

.primary-button[disabled] {
    background: #b9c7d9;
    box-shadow: none;
    cursor: not-allowed;
}

.secondary-button {
    margin-top: 12px;
    border: 0;
    background: transparent;
    color: var(--text);
}

.submit-help {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #f0c5c5;
    background: #fff4f4;
    color: #8b1f1f;
    font-size: 13px;
    line-height: 1.45;
}

.submit-help.is-ok {
    border-color: #cde5d2;
    background: #eefaf0;
    color: #215732;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 28px 32px;
    color: var(--muted);
}

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

    .summary-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .site-header,
    .site-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-shell {
        width: min(100vw - 24px, 100%);
    }

    .hero-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-media {
        width: clamp(360px, 46%, 435px);
        max-height: 380px;
    }

    .site-nav {
        gap: 14px;
        font-size: 14px;
    }

    .nav-button {
        padding: 10px 14px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .toggle-bar {
        display: flex;
        width: 100%;
    }

    .toggle-button {
        flex: 1;
        padding-inline: 16px;
    }

    .step-card,
    .summary-card {
        padding: 22px;
        border-radius: 24px;
    }

    .step-heading h2 {
        font-size: 28px;
    }

    .hero {
        min-height: 290px;
    }
}

@media (max-width: 560px) {
    .hero-content {
        padding-left: 16px;
        padding-right: 10px;
    }

    .hero-inner {
        padding: 40px 0 48px;
    }

    .hero h1 {
        font-size: clamp(30px, 9vw, 60px);
    }

    .hero-media {
        width: 34%;
        max-height: 340px;
    }

    .hero-divider {
        max-width: 56px;
    }
}
