:root {
    --bg: #f5f7fa;
    --text: #12213a;
    --muted: #69778c;
    --line: #e2e7ee;
    --blue: #1765d1;
    --blue2: #eef4ff;
    --sea: #0795a1
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line)
}

.header-inner {
    max-width: 1120px;
    margin: auto;
    padding: 13px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    font-size: 25px;
    font-weight: 800
}

.brand span {
    font-weight: 400;
    color: #758198
}

.partner-logos {
    display: flex;
    align-items: center;
    gap: 10px
}

.partner-logos img {
    width: 62px;
    height: 30px;
    object-fit: contain
}

.partner-logos .sb-logo {
    width: 105px
}

.logo-divider {
    height: 28px;
    border-left: 1px solid #d7dce3
}

.hero {
    position: relative;
    min-height: 370px;
    overflow: hidden;
    background: #eaf2f7
}

.hero-image {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center 45%
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .94) 28%, rgba(255, 255, 255, .48) 52%, rgba(255, 255, 255, .02) 78%)
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: auto;
    padding: 34px 22px
}

.hero-logos {
    display: flex;
    align-items: center;
    gap: 13px;
    height: 48px;
    margin-bottom: 27px
}

.hero-logos img:first-child {
    width: 125px;
    height: 50px;
    object-fit: contain
}

.hero-logos img:last-child {
    width: 165px;
    height: 45px;
    object-fit: contain
}

.hero-logos span {
    height: 35px;
    border-left: 1px solid #aeb7c3
}

.hero h1 {
    font-size: 43px;
    letter-spacing: -1.8px;
    margin: 0 0 10px
}

.hero p {
    font-size: 17px;
    line-height: 1.55;
    color: #32435e;
    margin: 0
}

.rate-box {
    margin-top: 22px;
    width: 250px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid #e1e7ef;
    border-radius: 13px;
    padding: 11px 15px;
    display: flex;
    align-items: center;
    gap: 11px;
    box-shadow: 0 8px 25px #15324d12
}

.rate-icon {
    font-size: 28px;
    color: var(--blue)
}

.rate-box strong {
    display: block;
    color: #164eac;
    font-size: 17px
}

.rate-box small {
    display: block;
    color: #66748a;
    margin-top: 2px
}

.calculator {
    max-width: 1120px;
    margin: -45px auto 25px;
    padding: 0 22px;
    position: relative;
    z-index: 2
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 17px;
    box-shadow: 0 12px 35px rgba(21, 39, 63, .07)
}

.top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden
}

.panel {
    padding: 25px 26px
}

.left-panel {
    border-right: 1px solid var(--line)
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px
}

.section-title>span {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--blue2);
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 800;
    color: #173f83
}

.section-title h2 {
    font-size: 21px;
    margin: 0
}

.tabs {
    display: flex;
    background: #f2f4f7;
    padding: 3px;
    border-radius: 10px;
    margin-bottom: 17px
}

.tabs button {
    flex: 1;
    border: 0;
    background: transparent;
    border-radius: 8px;
    padding: 10px;
    color: #3f4c60;
    font-weight: 700;
    cursor: pointer
}

.tabs button.active {
    background: #2169c9;
    color: #fff
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px
}

.input-grid label {
    font-size: 12px;
    color: #3f4d62;
    font-weight: 600
}

.input-grid input {
    display: block;
    width: 100%;
    height: 43px;
    margin-top: 6px;
    border: 1px solid #d9e0e8;
    border-radius: 9px;
    padding: 0 12px;
    font-size: 15px;
    color: #18263a;
    background: #fff
}

.input-grid input:focus {
    outline: none;
    border-color: #6d92dd;
    box-shadow: 0 0 0 3px #2169c915
}

.input-grid input[readonly] {
    background: #f7f8fa
}

.full {
    grid-column: 1/-1
}

.hidden {
    display: none !important
}

.output-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    margin-top: 14px
}

.output-grid>div {
    padding: 15px;
    background: #f7f8fa;
    border-radius: 11px
}

.output-grid small {
    display: block;
    color: #556276;
    font-size: 11px
}

.output-grid strong {
    display: block;
    font-size: 21px;
    margin-top: 8px
}

.parameters {
    margin-top: 14px;
    padding: 20px 25px
}

.parameters .section-title {
    margin-bottom: 13px
}

.parameter-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border: 1px solid var(--line);
    border-radius: 11px;
    overflow: hidden
}

.parameter-grid>div {
    text-align: center;
    padding: 12px 8px;
    border-right: 1px solid var(--line)
}

.parameter-grid>div:last-child {
    border-right: 0
}

.parameter-grid i {
    display: block;
    font-style: normal;
    font-size: 21px;
    color: #154d91;
    height: 27px
}

.parameter-grid small {
    display: block;
    font-size: 11px;
    min-height: 29px
}

.parameter-grid strong {
    display: block;
    font-size: 18px;
    margin-top: 4px
}

.abb-text {
    color: #155fce
}

.sea-text {
    color: var(--sea)
}

.results {
    margin-top: 14px;
    padding: 22px 25px
}

.results-title {
    text-align: center;
    font-size: 24px;
    margin: 0 0 17px
}

.payments {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.payment {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 14px;
    background: #f0f5ff
}

.payment.later {
    background: #f0f8f8
}

.payment-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e2ecff;
    color: #1663cb;
    font-size: 30px
}

.later .payment-icon {
    background: #e2f3f3;
    color: var(--sea)
}

.payment small {
    font-size: 16px;
    font-weight: 800;
    color: #165ac0
}

.later small {
    color: var(--sea)
}

.payment p {
    font-size: 11px;
    color: #526075;
    margin: 4px 0 8px
}

.payment strong {
    font-size: 30px;
    letter-spacing: -1px
}

.later strong {
    color: #0795a1
}

.summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 9px 14px
}

.summary-col:first-child {
    border-right: 1px solid var(--line);
    padding-right: 22px
}

.summary-col:last-child {
    padding-left: 22px
}

.summary-col>div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 0
}

.summary span {
    font-size: 12px;
    color: #47556a
}

.summary b {
    font-size: 13px;
    white-space: nowrap
}

.total-row span,
.total-row b {
    color: #1459c3;
    font-size: 15px;
    font-weight: 800
}

.insurance {
    margin-top: 14px;
    display: flex;
    align-items: stretch;
    background: #fff9e9;
    border: 1px solid #efd48b;
    border-radius: 12px;
    overflow: hidden;
    min-height: 90px
}

.warning {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 20px;
    flex: 1
}

.warning>span {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #ffb52c;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 800
}

.warning strong {
    display: block;
    font-size: 14px;
    color: #24282f
}

.warning p {
    font-size: 11px;
    line-height: 1.55;
    color: #75663f;
    margin: 5px 0 0
}

.insurance img {
    width: 50%;
    object-fit: cover;
    object-position: center
}

.schedule-button {
    display: block;
    width: 58%;
    margin: 15px auto 0;
    padding: 15px;
    border: 0;
    border-radius: 12px;
    background: #1765d1;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer
}

.schedule {
    display: none;
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    overflow: hidden
}

.schedule.show {
    display: block
}

.schedule-scroll {
    max-height: 430px;
    overflow: auto
}

table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse
}

th,
td {
    padding: 9px;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    text-align: right
}

th:first-child,
td:first-child {
    text-align: center
}

th {
    background: #f7f8fa;
    position: sticky;
    top: 0
}

.footer {
    background: #061c35;
    color: #fff;
    min-height: 82px;
    padding: 15px max(22px, calc((100% - 1120px)/2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    text-align: center;
    font-size: 11px
}

.footer img {
    width: 110px;
    height: 42px;
    object-fit: contain
}

.footer .footer-sb {
    width: 165px
}

@media(max-width:850px) {
    .top-grid {
        grid-template-columns: 1fr
    }

    .left-panel {
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }

    .parameter-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .parameter-grid>div:nth-child(3) {
        border-right: 0
    }

    .parameter-grid>div:nth-child(-n+3) {
        border-bottom: 1px solid var(--line)
    }

    .hero h1 {
        font-size: 36px
    }

    .calculator {
        margin-top: -25px
    }

    .footer {
        flex-wrap: wrap;
        justify-content: center
    }
}

@media(max-width:600px) {
    .site-header .partner-logos {
        display: none
    }

    .hero {
        min-height: 430px
    }

    .hero-content {
        padding-top: 25px
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .87) 55%, rgba(255, 255, 255, .2) 100%)
    }

    .hero-logos img:first-child {
        width: 90px
    }

    .hero-logos img:last-child {
        width: 120px
    }

    .hero h1 {
        font-size: 31px
    }

    .hero p {
        font-size: 15px
    }

    .top-grid,
    .payments,
    .input-grid,
    .output-grid,
    .summary {
        grid-template-columns: 1fr
    }

    .parameter-grid {
        grid-template-columns: 1fr 1fr
    }

    .parameter-grid>div {
        border-right: 1px solid var(--line) !important;
        border-bottom: 1px solid var(--line)
    }

    .parameter-grid>div:nth-child(even) {
        border-right: 0 !important
    }

    .parameter-grid>div:last-child,
    .parameter-grid>div:nth-last-child(2) {
        border-bottom: 0
    }

    .summary-col:first-child {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 0 0 8px
    }

    .summary-col:last-child {
        padding: 8px 0 0
    }

    .insurance img {
        display: none
    }

    .schedule-button {
        width: 100%
    }

    .panel,
    .results,
    .parameters {
        padding: 19px
    }

    .calculator {
        padding: 0 12px
    }
}