* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #172233;
    background: #f6f7f8;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.header-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 16px 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand img {
    width: 235px;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-menu a {
    color: #2f3746;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
}

.nav-menu a:hover {
    color: #263b64;
}

.hero-section {
    max-width: 1500px;
    margin: 0 auto;
    padding: 86px 90px 74px;
    display: grid;
    grid-template-columns: 1fr 560px;
    align-items: center;
    gap: 78px;
    background: linear-gradient(135deg, #fafafa 0%, #f6f6f4 55%, #f1f0eb 100%);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 24px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #faf4e6;
    color: #9a6b16;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
}

.hero-content h1 {
    margin: 0;
    max-width: 720px;
    color: #111827;
    font-size: 64px;
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 400;
}

.hero-content p {
    max-width: 680px;
    margin: 30px 0 0;
    color: #4b5563;
    font-size: 20px;
    line-height: 1.65;
    font-weight: 400;
}

.hero-btn {
    display: inline-block;
    margin-top: 34px;
    background: #263b64;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 400;
}

.hero-image {
    width: 100%;
    display: block;
    border-radius: 28px;
    border: 1px solid #e1e5ea;
}

.benefits-section {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 72px 90px;
}

.section-heading {
    max-width: 1500px;
    margin: 0 auto 34px;
}

.section-heading span,
.card-header span {
    color: #a87924;
    font-size: 13px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-weight: 500;
}

.section-heading h2 {
    max-width: 720px;
    margin: 12px 0 0;
    color: #243b63;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 400;
}

.benefits-grid {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.benefit-card {
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 26px;
    background: #fafafa;
}

.benefit-card span {
    display: block;
    margin-bottom: 28px;
    color: #a87924;
    font-size: 13px;
    letter-spacing: 0.12em;
}

.benefit-card h3 {
    margin: 0;
    color: #172233;
    font-size: 20px;
    font-weight: 400;
}

.benefit-card p {
    margin: 12px 0 0;
    color: #5f6672;
    font-size: 15px;
    line-height: 1.55;
}

.calculator-section {
    max-width: 980px;
    margin: 0 auto;
    padding: 72px 24px;
}

.calculator-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 34px;
    padding: 46px 54px;
}

.card-header {
    max-width: 620px;
    margin-bottom: 34px;
}

.card-header h2 {
    margin: 12px 0 0;
    color: #172233;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 400;
}

.card-header p {
    margin: 14px 0 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    color: #172233;
    font-size: 14px;
    font-weight: 400;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 52px;
    border: 1px solid #d7dde5;
    border-radius: 14px;
    padding: 0 15px;
    color: #172233;
    background: #ffffff;
    font-size: 15px;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #263b64;
}

.btn-submit {
    width: 100%;
    height: 54px;
    margin-top: 26px;
    border: 0;
    border-radius: 16px;
    background: #263b64;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}

.btn-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.result-box {
    margin-top: 30px;
    border: 1px solid #d7dde5;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
}

.result-main {
    padding: 26px;
    background: #fafafa;
    border-bottom: 1px solid #e5e7eb;
}

.result-main small {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.result-main h3 {
    margin: 0;
    color: #172233;
    font-size: 36px;
    font-weight: 400;
}

.result-detail {
    padding: 20px 26px;
}

.result-detail p {
    margin: 0;
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 15px;
}

.result-detail span {
    color: #172233;
}

.result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 0 26px 26px;
}

.btn-outline,
.btn-primary {
    min-height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
}

.btn-outline {
    border: 1px solid #263b64;
    color: #263b64;
    background: #ffffff;
}

.btn-primary {
    background: #263b64;
    color: #ffffff;
}

.site-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.footer-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px 90px;
    text-align: center;
}

.footer-container p {
    max-width: 900px;
    margin: 0 auto 10px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.footer-container small {
    color: #9ca3af;
    font-size: 12px;
}

.hidden {
    display: none !important;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 99;
}

.modal-box {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 24px;
    padding: 34px;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: transparent;
    font-size: 26px;
    color: #9ca3af;
    cursor: pointer;
}

.modal-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #263b64;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.modal-icon.error {
    background: #991b1b;
}

.modal-box h3 {
    margin: 0;
    color: #172233;
    font-size: 24px;
    font-weight: 400;
}

.modal-box p {
    margin: 12px 0 24px;
    color: #64748b;
    line-height: 1.55;
}

.modal-button {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: #263b64;
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .header-container,
    .hero-section,
    .benefits-section,
    .footer-container {
        padding-left: 40px;
        padding-right: 40px;
    }

    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-image {
        max-width: 680px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 16px 22px;
        flex-wrap: wrap;
        gap: 18px;
    }

    .brand img {
        width: 210px;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        gap: 18px;
    }

    .hero-section {
        padding: 50px 22px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .benefits-section {
        padding: 54px 22px;
    }

    .benefits-grid,
    .form-grid,
    .result-actions {
        grid-template-columns: 1fr;
    }

    .calculator-card {
        padding: 30px 22px;
        border-radius: 26px;
    }

    .card-header h2 {
        font-size: 32px;
    }

    .footer-container {
        padding: 26px 22px;
    }
}
