:root {
    --navy: #2C3D4F;
    --deep-navy: #243548;
    --teal: #197064;
    --mid-teal: #268377;
    --button-teal: #198F87;
    --page-bg: #F1F4F4;
    --gold: #D2AD63;
    --text: #172432;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top right, #ffffff 0%, var(--page-bg) 50%, #e8eff0 100%);
    line-height: 1.5;
}

.container {
    width: min(1500px, calc(100% - 96px));
    margin: 0 auto;
}

.site-header {
    background: #344659;
    color: var(--white);
    height: 258px;
    position: relative;
    z-index: 20;
    overflow: hidden;
}

.nav-shell {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    height: 100%;
    padding-top: 0;
    position: relative;
}

.brand {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    margin-top: 0;
}

.logo {
    width: 323px;
    height: 178px;
    object-fit: contain;
    object-position: left top;
    max-width: none;
}

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

.nav-groups {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin-left: 42px;
    margin-top: 78px;
}

.nav-left {
    justify-content: flex-start;
}

.nav-right {
    justify-content: flex-end;
    gap: 22px;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 31px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.main-nav a.active,
.main-nav a:hover {
    background: rgba(255, 255, 255, 0.16);
}

.nav-right .btn-link {
    border: 0;
    padding: 10px 14px;
    border-radius: 10px;
}

.nav-right .btn-solid {
    background: #1f938d;
    color: var(--white);
    padding: 14px 28px;
}

.nav-toggle {
    display: none;
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border: 0;
    border-radius: 12px;
    padding: 14px 24px;
    cursor: pointer;
    font-weight: 700;
}

.btn-primary {
    background: var(--button-teal);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.86);
}

.btn-link {
    border: 1px solid rgba(255, 255, 255, 0.54);
}

.btn-solid {
    background: var(--gold);
    color: #1f1b11;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(132deg, #1c8b84 0%, #1c7f77 48%, #176d66 100%);
    min-height: calc(100vh - 258px);
    display: flex;
    align-items: center;
    padding: 52px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(560px, 780px) minmax(390px, 1fr);
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-copy {
    color: #f7fffe;
}

h1 {
    font-size: clamp(64px, 5.9vw, 118px);
    line-height: 0.96;
    margin: 0 0 28px;
    letter-spacing: -0.025em;
}

.lead {
    max-width: 620px;
    font-size: clamp(20px, 1.6vw, 30px);
    line-height: 1.42;
    color: rgba(242, 255, 252, 0.95);
    margin: 0 0 34px;
}

.hero-buttons {
    gap: 20px;
    margin: 0;
}

.hero-buttons .btn {
    min-width: 272px;
    min-height: 66px;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-buttons .btn-primary {
    box-shadow: 0 18px 36px rgba(15, 75, 69, 0.35);
}

.notice {
    color: rgba(240, 254, 252, 0.92);
    max-width: 710px;
    font-size: 15px;
    margin: 8px 0 0;
}

.hero-orb {
    position: absolute;
    right: -126px;
    top: -52px;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(166, 231, 225, 0.22) 0%, rgba(132, 213, 205, 0.11) 48%, rgba(48, 137, 128, 0.03) 74%, rgba(25, 98, 90, 0) 100%);
    pointer-events: none;
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.document-display {
    width: 610px;
    min-height: 380px;
    border-radius: 20px;
    border: 1px solid rgba(176, 235, 229, 0.3);
    background: linear-gradient(145deg, rgba(102, 180, 171, 0.46) 0%, rgba(86, 162, 154, 0.42) 100%);
    box-shadow: inset 0 0 0 1px rgba(205, 244, 239, 0.12);
    padding: 56px 52px;
    position: relative;
    backdrop-filter: blur(2px);
}

.document-label {
    font-size: 42px;
    letter-spacing: 0.22em;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    color: rgba(232, 250, 246, 0.95);
}

.document-lines {
    margin-top: 46px;
    display: grid;
    gap: 12px;
}

.document-lines div {
    height: 4px;
    border-radius: 10px;
    background: rgba(184, 231, 226, 0.5);
}

.document-lines .doc-short {
    width: 58%;
}

.document-seal {
    position: absolute;
    right: 38px;
    bottom: 30px;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(159, 221, 214, 0.2);
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(196, 237, 232, 0.4);
}

.seal-inner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(196, 237, 232, 0.45);
    display: grid;
    place-items: center;
    font-size: 24px;
    color: rgba(210, 245, 240, 0.92);
}

.hero-card,
.price-card,
.counter-grid article,
.step-grid article,
.simple-table,
.stack-form,
fieldset {
    background: var(--white);
    border: 1px solid #d6e0e2;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(17, 39, 51, 0.07);
}

.hero-card {
    padding: 1rem;
}

.hero-card ul {
    padding-left: 1rem;
}

.counter-section {
    padding: 1.2rem 0 2.2rem;
    background: var(--page-bg);
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}

.counter-grid article {
    padding: 1rem;
    text-align: center;
}

.content-section {
    padding: 2.3rem 0;
}

.narrow {
    max-width: 720px;
}

.pricing-grid,
.step-grid,
.two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.price-card {
    padding: 1rem;
}

.price-card.featured {
    border: 2px solid var(--gold);
}

.price {
    font-size: 2rem;
    margin: 0;
    color: var(--teal);
}

.old-price {
    color: #6f7f8b;
    text-decoration: line-through;
    margin: 0;
}

.discount {
    font-weight: 700;
    color: #7b5f1f;
}

.stack-form {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.stack-form label {
    display: grid;
    gap: 0.3rem;
}

input,
textarea,
select,
button {
    font: inherit;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid #c4d1d3;
    border-radius: 8px;
}

fieldset {
    padding: 0.9rem;
    margin: 0;
}

.cta-row {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.flash {
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    margin: 0.7rem 0;
}

.flash.error {
    background: #ffe3e2;
    color: #7c1f20;
}

.flash.success {
    background: #def6ed;
    color: #165b43;
}

.simple-table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 0.9rem;
    overflow: hidden;
}

.simple-table th,
.simple-table td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid #e1e8ea;
}

.site-footer {
    background: var(--deep-navy);
    color: #ebf4f5;
    padding: 1.2rem 0;
    margin-top: 2rem;
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #ebf4f5;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    border-bottom-color: #ebf4f5;
}

.footer-copy {
    margin-top: 0.8rem;
    opacity: 0.95;
}

@media (max-width: 1400px) {
    .container {
        width: min(1500px, calc(100% - 56px));
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
    }

    .main-nav a {
        font-size: 26px;
    }

    .document-display {
        width: 520px;
        min-height: 350px;
        padding: 44px 38px;
    }

    .document-label {
        font-size: 34px;
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .counter-grid,
    .pricing-grid,
    .step-grid,
    .two-col {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .site-header {
        height: auto;
        min-height: 126px;
    }

    .nav-shell {
        min-height: 126px;
        padding: 14px 0 16px;
        align-items: center;
    }

    .logo {
        width: 220px;
        height: 120px;
    }

    .main-nav a {
        font-size: 18px;
    }

    .nav-groups {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(140deg, #254155 0%, #2a4c63 100%);
        padding: 16px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-left: 0;
        margin-top: 0;
    }

    .nav-groups.open {
        display: flex;
    }

    .nav-left,
    .nav-right {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 8px;
    }

    .nav-toggle {
        display: inline-block;
        margin-top: 6px;
    }

    .hero-section {
        min-height: calc(100vh - 126px);
        padding-top: 30px;
    }

    h1 {
        font-size: clamp(42px, 11vw, 64px);
    }

    .lead {
        font-size: clamp(18px, 4.8vw, 24px);
    }

    .hero-buttons .btn {
        min-width: 0;
        width: 100%;
    }

    .hero-orb {
        width: 560px;
        height: 560px;
        right: -220px;
        top: 10px;
    }

    .hero-visual {
        justify-content: center;
    }

    .document-display {
        width: min(96vw, 520px);
        min-height: 320px;
        padding: 32px 26px;
    }

    .document-label {
        font-size: clamp(20px, 4vw, 28px);
        letter-spacing: 0.16em;
    }

    .document-seal {
        width: 66px;
        height: 66px;
    }

    .seal-inner {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
