*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --amort-green: #0ea964;
    --amort-green-dark: #08723f;
    --amort-dark: #10251d;
    --amort-text: #17212b;
    --amort-muted: #5f6f67;
    --amort-line: #dfe8e3;
    --amort-bg: #f6f9f7;
    --amort-soft: #eaf9f1;
    --amort-shadow: 0 16px 44px rgba(15, 23, 42, .07);
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.amort-page {
    background: var(--amort-bg);
    color: var(--amort-text);
}

.amort-wrap {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.amort-hero {
    padding: 36px 0 22px;
    background:
        radial-gradient(circle at top left, rgba(14,169,100,.16), transparent 34%),
        linear-gradient(180deg, #f9fcfa 0%, var(--amort-bg) 100%);
}

.amort-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: 24px;
    align-items: stretch;
}

.amort-hero-copy,
.amort-hero-card,
.amort-answer-box,
.amort-tool,
.amort-details,
.amort-card,
.amort-factor-grid article,
.amort-faq {
    border: 1px solid var(--amort-line);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--amort-shadow);
}

.amort-hero-copy {
    padding: 34px;
}

.amort-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--amort-soft);
    color: var(--amort-green-dark);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.amort-hero h1 {
    margin: 0;
    color: var(--amort-dark);
    font-size: clamp(38px, 5vw, 68px);
    line-height: .98;
    letter-spacing: -.05em;
}

.amort-lead,
.amort-hero p,
.amort-section-head p,
.amort-card p,
.amort-answer-box p,
.amort-factor-grid p,
.amort-faq p {
    color: var(--amort-muted);
    line-height: 1.7;
}

.amort-lead {
    max-width: 760px;
    margin: 18px 0 0;
    font-size: 18px;
}

.amort-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.amort-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.amort-btn:hover {
    transform: translateY(-1px);
}

.amort-btn--primary {
    background: var(--amort-green);
    color: #fff;
    box-shadow: 0 12px 28px rgba(14,169,100,.24);
}

.amort-btn--primary:hover {
    background: var(--amort-green-dark);
    color: #fff;
}

.amort-btn--secondary {
    background: #fff;
    border-color: var(--amort-line);
    color: var(--amort-dark);
}

.amort-hero-card {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 30px;
    background: linear-gradient(145deg, #ffffff, #eefaf4);
}

.amort-hero-card span {
    color: var(--amort-green-dark);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.amort-hero-card strong {
    color: var(--amort-green);
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1;
}

.amort-hero-card div {
    padding: 13px;
    border-radius: 16px;
    background: #fff8e6;
    color: #735000;
    line-height: 1.55;
}

.amort-answer-box,
.amort-tool,
.amort-details,
.amort-faq {
    margin-top: 20px;
    padding: 28px;
}

.amort-answer-box h2,
.amort-section-head h2,
.amort-card h2,
.amort-faq h2 {
    margin: 0;
    color: var(--amort-dark);
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.1;
    letter-spacing: -.04em;
}

.amort-section-head {
    display: grid;
    gap: 9px;
    margin-bottom: 20px;
}

.amort-tool-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
    gap: 20px;
    align-items: start;
}

.amort-form {
    display: grid;
    gap: 16px;
}

.amort-form-section {
    padding: 18px;
    border: 1px solid #e4ece8;
    border-radius: 20px;
    background: #fbfdfc;
}

.amort-form-section h3 {
    margin: 0 0 13px;
    color: var(--amort-dark);
}

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

.amort-fields label {
    display: grid;
    gap: 6px;
    color: #46564f;
    font-size: 13px;
    font-weight: 850;
}

.amort-fields input,
.amort-fields select {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 12px 13px;
    border: 1px solid #dce5e0;
    border-radius: 13px;
    background: #fff;
    font: inherit;
    font-size: 15px;
}

.amort-fields small {
    color: #7b8a83;
    font-size: 11px;
    font-weight: 700;
}

.amort-submit {
    width: 100%;
}

.amort-submit:disabled {
    opacity: .75;
    cursor: wait;
}

.amort-result {
    position: sticky;
    top: 108px;
    min-width: 0;
    padding: 24px;
    border: 1px solid rgba(14,169,100,.22);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--amort-shadow);
}

.amort-result h2 {
    margin: 0 0 8px;
    color: var(--amort-dark);
    font-size: 28px;
    line-height: 1.15;
}

.amort-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.amort-result-grid div {
    min-width: 0;
    padding: 13px;
    border-radius: 16px;
    background: var(--amort-soft);
}

.amort-result-grid span {
    display: block;
    color: #64746c;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.amort-result-grid strong {
    display: block;
    margin-top: 4px;
    color: var(--amort-green-dark);
    font-size: 22px;
    overflow-wrap: anywhere;
}

.amort-chart-box {
    height: 280px;
    margin-top: 18px;
}

.amort-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--amort-line);
    border-radius: 18px;
}

.amort-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.amort-table th,
.amort-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #edf2ef;
    text-align: right;
    font-size: 13px;
}

.amort-table th {
    background: #f4f8f6;
    color: #52635b;
    font-weight: 900;
}

.amort-table th:first-child,
.amort-table td:first-child {
    text-align: left;
}

.amort-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.amort-card {
    min-width: 0;
    padding: 26px;
}

.amort-card ul {
    display: grid;
    gap: 9px;
    margin: 16px 0 0;
    padding-left: 20px;
    color: #405047;
    line-height: 1.55;
}

.amort-factor-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.amort-factor-grid article {
    padding: 20px;
}

.amort-factor-grid strong {
    color: var(--amort-green-dark);
    font-size: 19px;
}

.amort-faq details {
    border: 1px solid var(--amort-line);
    border-radius: 17px;
    background: #fff;
}

.amort-faq details + details {
    margin-top: 10px;
}

.amort-faq summary {
    cursor: pointer;
    padding: 17px 18px;
    color: var(--amort-dark);
    font-weight: 950;
}

.amort-faq details[open] summary {
    color: var(--amort-green-dark);
}

.amort-faq details p {
    margin: 0;
    padding: 0 18px 18px;
}

@media (max-width: 980px) {
    .amort-hero-grid,
    .amort-tool-grid,
    .amort-content-grid,
    .amort-factor-grid {
        grid-template-columns: 1fr;
    }

    .amort-result {
        position: static;
    }
}

@media (max-width: 680px) {
    .amort-wrap {
        width: min(100% - 24px, 1180px);
    }

    .amort-hero-copy,
    .amort-hero-card,
    .amort-answer-box,
    .amort-tool,
    .amort-details,
    .amort-card,
    .amort-faq {
        padding: 20px;
        border-radius: 22px;
    }

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