* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #111827;
    background: #f4f7fb;
}

.container {
    width: min(100% - 32px, 1100px);
    margin: 0 auto;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e8edf3;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.tagline {
    font-size: 14px;
    color: #667085;
}

.hero {
    padding: 70px 0 45px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #667085;
}

.hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero p:not(.eyebrow) {
    margin: 16px auto 0;
    max-width: 620px;
    color: #667085;
    font-size: 17px;
    line-height: 1.6;
}

.calculator-section {
    padding: 10px 0 0;
}

.calculator-card {
    max-width: 820px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e4e9f0;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 18px 45px rgba(16, 24, 40, 0.07);
}

.calculator-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.calculator-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #f0f7f8;
    font-size: 24px;
}

.calculator-heading h2 {
    margin: 2px 0 6px;
    font-size: 25px;
    letter-spacing: -0.02em;
}

.calculator-heading p {
    margin: 0;
    color: #667085;
    line-height: 1.5;
}

.divider {
    height: 1px;
    background: #e8edf3;
    margin: 28px 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1.7fr 0.7fr;
    gap: 12px;
    margin-bottom: 18px;
}

.field label {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #344054;
}

.field input,
.field select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d7dee8;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus {
    border-color: #98a7ba;
    box-shadow: 0 0 0 3px rgba(152, 167, 186, 0.14);
}

.error-message {
    min-height: 20px;
    margin: 2px 0 10px;
    color: #b42318;
    font-size: 14px;
    font-weight: 600;
    visibility: hidden;
}

.error-message.visible {
    visibility: visible;
}

button {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 10px;
    background: #121c2d;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
}

button:disabled {
    opacity: 0.72;
    cursor: wait;
}

.results {
    margin-top: 42px;
}

.hidden {
    display: none;
}

.results-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.results-title::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e8edf3;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.result-card {
    min-height: 114px;
    padding: 20px;
    border: 1px solid #e5ebf1;
    border-radius: 14px;
    background: #f8fafb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result-card span {
    color: #667085;
    font-size: 13px;
}

.result-card strong {
    font-size: 23px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.result-card-primary {
    background: #101827;
    border-color: #101827;
    color: #ffffff;
}

.result-card-primary span {
    color: #c6cfda;
}

.breakdown {
    margin-top: 28px;
}

.breakdown-title {
    margin-bottom: 14px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.breakdown-grid > div {
    padding: 16px;
    border: 1px solid #e5ebf1;
    border-radius: 12px;
    background: #ffffff;
}

.breakdown-grid span {
    display: block;
    margin-bottom: 8px;
    color: #667085;
    font-size: 12px;
}

.breakdown-grid strong {
    font-size: 17px;
}

.info-section {
    margin-top: 70px;
    background: #ffffff;
    padding-top: 85px;
    padding-bottom: 70px;
    border-top: 1px solid #e8edf3;
}

.info-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 70px;
}

.info-block h2 {
    margin: 0 0 20px;
    font-size: 13px;
    letter-spacing: 0.14em;
}

.info-block p {
    margin: 0 0 16px;
    color: #667085;
    line-height: 1.7;
}

.related-tools {
    display: grid;
    gap: 10px;
}

.related-tools a {
    color: #111827;
    font-weight: 700;
    text-decoration: none;
}

.related-tools a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .header-inner {
        min-height: 64px;
    }

    .tagline {
        display: none;
    }

    .hero {
        padding: 50px 0 35px;
    }

    .calculator-card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .calculator-heading h2 {
        font-size: 21px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .result-grid,
    .breakdown-grid {
        grid-template-columns: 1fr;
    }

    .info-section {
        margin-top: 55px;
        padding-top: 55px;
        padding-bottom: 60px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
