.ctcost {
    --ctcost-red: #c70b0f;
    --ctcost-navy: #102638;
    --ctcost-gold: #f2c230;
    --ctcost-green: #138a63;
    --ctcost-line: #dce3e7;
    --ctcost-soft: #f3f6f7;
    width: 100%;
    color: #1c2831;
    background: #f7f9fa;
}

.ctcost,
.ctcost * {
    box-sizing: border-box;
    font-family: inherit;
}

.ctcost-hero {
    overflow: hidden;
    color: #fff;
    background: linear-gradient(125deg, #102638 0%, #173e54 62%, #4b3047 100%);
}

.ctcost-hero__inner {
    display: grid;
    min-height: 330px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 50px;
    padding-block: 54px;
}

.ctcost-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 13px;
    background: var(--ctcost-red);
    font-size: 12px;
    font-weight: 900;
}

.ctcost-hero h1 {
    max-width: 850px;
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(36px, 4.6vw, 66px);
    font-weight: 900;
    line-height: 1.28;
}

.ctcost-hero p {
    max-width: 800px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(16px, 1.45vw, 21px);
    line-height: 2;
}

.ctcost-hero__mark {
    display: grid;
    width: 190px;
    height: 190px;
    place-items: center;
    align-content: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    text-align: center;
}

.ctcost-hero__mark strong {
    font-size: 28px;
    font-weight: 900;
}

.ctcost-hero__mark span {
    margin-top: 5px;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
}

.ctcost-app {
    display: grid;
    grid-template-columns: minmax(290px, .72fr) minmax(0, 1.55fr);
    gap: 22px;
    align-items: start;
    padding-block: 34px 48px;
}

.ctcost-form,
.ctcost-city-card,
.ctcost-summary,
.ctcost-methodology article {
    border: 1px solid var(--ctcost-line);
    background: #fff;
    box-shadow: 0 5px 18px rgba(16, 38, 56, .06);
}

.ctcost-form {
    position: sticky;
    top: 92px;
    padding: 24px;
}

.ctcost-panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 17px;
    border-bottom: 3px solid var(--ctcost-red);
}

.ctcost-panel-heading span {
    color: var(--ctcost-red);
    font-size: 11px;
    font-weight: 900;
}

.ctcost-panel-heading h2 {
    margin: 3px 0 0;
    color: var(--ctcost-navy);
    font-size: 23px;
    font-weight: 900;
    line-height: 1.45;
}

.ctcost-panel-heading small {
    flex: 0 0 auto;
    padding: 5px 8px;
    color: #45616f;
    background: #edf3f5;
    font-size: 10px;
    font-weight: 800;
}

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

.ctcost-field {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: #223440;
    font-size: 13px;
    font-weight: 900;
}

.ctcost-field select {
    width: 100%;
    height: 48px;
    padding: 0 12px;
    border: 1px solid #cfd9de;
    border-radius: 0;
    outline: 0;
    color: #172833;
    background: #fff;
    font: inherit;
    font-weight: 700;
}

.ctcost-field select:focus {
    border-color: var(--ctcost-red);
    box-shadow: 0 0 0 3px rgba(199, 11, 15, .10);
}

.ctcost-form-note {
    margin: 18px 0 0;
    padding: 12px 14px;
    color: #51646e;
    border-right: 3px solid var(--ctcost-gold);
    background: #fff9e8;
    font-size: 12px;
    line-height: 1.8;
}

.ctcost-results {
    min-width: 0;
}

.ctcost-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 16px 20px;
    color: #fff;
    border: 0;
    background: var(--ctcost-green);
}

.ctcost-summary strong {
    font-size: 18px;
    font-weight: 900;
}

.ctcost-summary span {
    font-size: 13px;
    line-height: 1.7;
}

.ctcost-city-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ctcost-city-card {
    min-width: 0;
    overflow: hidden;
}

.ctcost-city-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 19px 20px;
    border-bottom: 1px solid var(--ctcost-line);
}

.ctcost-city-card__header small {
    color: #63747d;
    font-size: 11px;
    font-weight: 800;
}

.ctcost-city-card__header h3 {
    margin: 2px 0 0;
    color: var(--ctcost-navy);
    font-size: 25px;
    font-weight: 900;
}

.ctcost-city-card__header > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: var(--ctcost-red);
    font-size: 11px;
    font-weight: 900;
}

.ctcost-total {
    display: grid;
    padding: 23px 20px;
    color: #fff;
    background: var(--ctcost-navy);
}

.ctcost-total span {
    color: rgba(255, 255, 255, .76);
    font-size: 12px;
    font-weight: 800;
}

.ctcost-total strong {
    margin: 5px 0 1px;
    color: #fff;
    font-size: clamp(30px, 3vw, 43px);
    font-weight: 900;
    line-height: 1.25;
}

.ctcost-total small {
    color: #f3c54b;
    font-size: 11px;
    font-weight: 800;
}

.ctcost-income {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--ctcost-line);
}

.ctcost-income > div {
    display: grid;
    gap: 5px;
    padding: 16px 18px;
}

.ctcost-income > div + div {
    border-inline-start: 1px solid var(--ctcost-line);
}

.ctcost-income span {
    color: #687983;
    font-size: 10px;
    font-weight: 800;
}

.ctcost-income strong {
    color: var(--ctcost-red);
    font-size: 19px;
    font-weight: 900;
}

.ctcost-income strong small {
    margin-inline-start: 3px;
    color: #71808a;
    font-size: 9px;
}

.ctcost-breakdown {
    padding: 19px 20px 12px;
}

.ctcost-breakdown h4 {
    margin: 0 0 13px;
    color: var(--ctcost-navy);
    font-size: 15px;
    font-weight: 900;
}

.ctcost-breakdown__row {
    margin-bottom: 12px;
}

.ctcost-breakdown__row > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 5px;
    color: #53656f;
    font-size: 11px;
}

.ctcost-breakdown__row strong {
    color: #253943;
    font-size: 12px;
    font-weight: 900;
}

.ctcost-breakdown__row > i {
    display: block;
    overflow: hidden;
    height: 5px;
    background: #e9eef0;
}

.ctcost-breakdown__row > i > b {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--ctcost-gold), var(--ctcost-red));
}

.ctcost-source {
    margin: 0;
    padding: 11px 20px 15px;
    color: #77858d;
    border-top: 1px solid #edf1f2;
    font-size: 10px;
    line-height: 1.65;
}

.ctcost-methodology {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 56px;
}

.ctcost-methodology article {
    padding: 23px;
}

.ctcost-methodology h2 {
    margin: 0 0 9px;
    color: var(--ctcost-navy);
    font-size: 19px;
    font-weight: 900;
}

.ctcost-methodology p,
.ctcost-methodology small {
    margin: 0;
    color: #596a74;
    font-size: 13px;
    line-height: 1.9;
}

.ctcost-methodology p + p {
    margin-top: 5px;
}

.ctcost-methodology a {
    color: var(--ctcost-red);
    font-weight: 800;
}

@media (max-width: 1180px) {
    .ctcost-app {
        grid-template-columns: 1fr;
    }

    .ctcost-form {
        position: static;
    }
}

@media (max-width: 760px) {
    .ctcost-hero__inner {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 22px;
        padding-block: 34px;
    }

    .ctcost-hero__mark {
        display: none;
    }

    .ctcost-hero h1 {
        font-size: 37px;
    }

    .ctcost-app {
        width: min(calc(100% - 20px), 1440px);
        padding-block: 20px 34px;
    }

    .ctcost-form {
        padding: 18px 15px;
    }

    .ctcost-panel-heading,
    .ctcost-summary {
        align-items: start;
        flex-direction: column;
    }

    .ctcost-fields,
    .ctcost-city-grid,
    .ctcost-methodology {
        grid-template-columns: 1fr;
    }

    .ctcost-income {
        grid-template-columns: 1fr;
    }

    .ctcost-income > div + div {
        border-top: 1px solid var(--ctcost-line);
        border-inline-start: 0;
    }

    .ctcost-methodology {
        width: min(calc(100% - 20px), 1440px);
        padding-bottom: 35px;
    }
}
