.tsl-calculator {
    --tsl-calc-bg: #151819;
    --tsl-calc-panel: #202526;
    --tsl-calc-border: #3c4446;
    --tsl-calc-text: #ffffff;
    --tsl-calc-muted: #b9c2c6;
    --tsl-calc-accent: #69b6d7;
    --tsl-calc-accent-dark: #0d2630;
    width: min(100%, 1440px);
    margin-inline: auto;
    padding: clamp(24px, 3vw, 44px);
    overflow: hidden;
    color: var(--tsl-calc-text);
    background: var(--tsl-calc-bg);
    border-radius: 22px;
    font-family: "Manrope", Arial, sans-serif;
    box-sizing: border-box;
}

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

.tsl-calculator button,
.tsl-calculator input {
    font: inherit;
}

.tsl-calculator-intro {
    max-width: 940px;
    margin: 0 0 clamp(24px, 3vw, 34px);
}

.tsl-calculator-intro-eyebrow {
    margin: 0 0 10px;
    color: var(--tsl-calc-accent);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.tsl-calculator-intro-title {
    margin: 0;
    color: #fff;
    font-size: clamp(27px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.035em;
}

.tsl-calculator-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 4fr);
    gap: 18px;
    align-items: stretch;
}

.tsl-calculator-promo,
.tsl-calculator-panel,
.tsl-city-selector,
.tsl-field,
.tsl-main-result,
.tsl-result {
    border: 1px solid var(--tsl-calc-border);
}

.tsl-field,
.tsl-main-result,
.tsl-result {
    position: relative;
    overflow: visible;
}

.tsl-calculator-promo {
    display: flex;
    min-width: 0;
    min-height: 570px;
    padding: clamp(28px, 3.2vw, 46px);
    padding-right: clamp(18px, 2.25vw, 30px);
    padding-bottom: clamp(18px, 2.25vw, 30px);
    padding-left: clamp(18px, 2.25vw, 30px);
    flex-direction: column;
    background: var(--tsl-calc-panel);
    border-radius: 15px;
}

.tsl-calculator-promo h3 {
    max-width: 440px;
    margin: 0 0 25px;
    color: #fff;
    font-size: clamp(31px, 3.2vw, 48px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.04em;
}

.tsl-calculator-promo > p {
    max-width: 460px;
    margin: 0;
    padding-left: 18px;
    color: var(--tsl-calc-muted);
    border-left: 1px solid rgba(105, 182, 215, .4);
    font-size: 14px;
    line-height: 1.7;
}

.tsl-calculator-promo-accent {
    width: 58px;
    height: 3px;
    margin: 4px 0 46px;
    flex: 0 0 auto;
    background: var(--tsl-calc-accent);
    border-radius: 4px;
}

.tsl-calculator-guarantees {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: auto 0 0;
    padding-top: 38px;
}

.tsl-calculator-guarantees div {
    display: flex;
    position: relative;
    min-width: 0;
    min-height: 78px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 13px 14px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(105, 182, 215, .09), rgba(255, 255, 255, .018));
    border: 1px solid rgba(105, 182, 215, .2);
    border-radius: 11px;
    text-align: center;
}

.tsl-calculator-guarantees div::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 30px;
    height: 2px;
    background: var(--tsl-calc-accent);
    border-radius: 0 0 3px 3px;
    content: "";
    transform: translateX(-50%);
}

.tsl-calculator-guarantees dt {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

.tsl-calculator-guarantees dd {
    margin: 6px 0 0;
    color: #8fa6af;
    font-size: 10px;
    line-height: 1.4;
}

.tsl-calculator-panel {
    container: tsl-calc-panel / inline-size;
    width: 100%;
    min-width: 0;
    padding: clamp(18px, 2.25vw, 30px);
    background: var(--tsl-calc-panel);
    border-radius: 15px;
}

.tsl-calculator-panel-head {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 14px;
}

.tsl-calculator-panel-head h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
}

.tsl-calculator-panel-head p {
    margin: 3px 0 0;
    color: #83a2ae;
    font-size: 10px;
    line-height: 1.4;
}

.tsl-city-selector {
    min-width: 0;
    margin: 0 0 18px;
    padding: 16px 18px 13px;
    border-radius: 14px;
}

.tsl-city-selector legend {
    padding: 0 4px;
    color: var(--tsl-calc-muted);
    font-size: 11px;
}

.tsl-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tsl-tab {
    display: flex;
    min-width: 0;
    min-height: 58px;
    padding: 9px 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    background: transparent;
    border: 1px solid var(--tsl-calc-border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.tsl-tab:hover,
.tsl-tab.active {
    color: #fff;
    background: var(--tsl-calc-accent);
    border-color: var(--tsl-calc-accent);
}

.tsl-tab__city {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.tsl-tab__region {
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: currentColor;
    font-size: 8px;
    line-height: 1.25;
    opacity: .86;
}

.tsl-city-heading-note {
    margin: 10px 0 0;
    color: #a9b9bf;
    font-size: 9px;
    line-height: 1.5;
}

.tsl-city-heading-note strong {
    color: var(--tsl-calc-accent);
}

.tsl-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 18px;
    margin-bottom: 18px;
}

.tsl-field {
    min-width: 0;
    padding: 18px;
    border-radius: 14px;
}

.tsl-field-title {
    position: absolute;
    top: -8px;
    left: 14px;
    z-index: 1;
    display: block;
    width: auto;
    margin: 0;
    padding: 0 5px;
    color: var(--tsl-calc-muted);
    background: var(--tsl-calc-panel);
    font-size: 11px;
    line-height: 1.4;
}

.tsl-input-wrap {
    display: flex;
    min-width: 0;
    gap: 7px;
    align-items: baseline;
    margin-bottom: 14px;
}

.tsl-input-wrap input[type="number"] {
    width: 100%;
    min-width: 0;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    outline: 0;
    appearance: textfield;
    font-size: clamp(23px, 2.35vw, 34px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.tsl-input-wrap input[type="number"]::-webkit-inner-spin-button,
.tsl-input-wrap input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.tsl-input-wrap span {
    flex: 0 0 auto;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.tsl-field input[type="range"] {
    --tsl-range-progress: 0%;
    display: block;
    width: 100%;
    height: 4px;
    margin: 0;
    padding: 0;
    appearance: none;
    background: linear-gradient(to right, var(--tsl-calc-accent) 0 var(--tsl-range-progress), #4a5254 var(--tsl-range-progress) 100%);
    border: 0;
    border-radius: 99px;
    cursor: pointer;
}

.tsl-field input[type="range"]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    appearance: none;
    background: var(--tsl-calc-accent);
    border: 4px solid #31515e;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #24373e;
}

.tsl-field input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--tsl-calc-accent);
    border: 4px solid #31515e;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #24373e;
}

.tsl-range-info {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 10px;
    color: #83a2ae;
    font-size: 9px;
    line-height: 1.35;
}

.tsl-main-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 230px);
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    padding: 20px;
    border-radius: 14px;
}

.tsl-main-result-content {
    min-width: 0;
    text-align: center;
}

.tsl-result-label {
    color: var(--tsl-calc-muted);
    font-size: 10px;
    line-height: 1.4;
}

.tsl-main-result-content > .tsl-result-label,
.tsl-result > .tsl-result-label {
    position: absolute;
    top: -8px;
    left: 14px;
    z-index: 1;
    width: auto;
    margin: 0;
    padding: 0 5px;
    background: var(--tsl-calc-panel);
    font-size: 10px;
    white-space: nowrap;
}

.tsl-main-result .tsl-result-value {
    margin-top: 6px;
    color: var(--tsl-calc-accent);
    font-size: clamp(31px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.tsl-main-result .tsl-monthly-unit {
    margin-left: 4px;
    color: #fff;
    font-size: .62em;
    letter-spacing: -.02em;
}

.tsl-main-result-content p {
    margin: 9px auto 0;
    color: #8fa6af;
    font-size: 10.5px;
    line-height: 1.5;
}

.tsl-button {
    display: inline-flex;
    position: relative;
    isolation: isolate;
    min-height: 64px;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(110deg, #69b6d7 0%, #69b6d7 42%, #8ed2ec 50%, #69b6d7 58%, #52a8ce 100%);
    background-position: 100% 50%;
    background-size: 220% 100%;
    border: 1px solid var(--tsl-calc-accent);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(27, 119, 158, .12), inset 0 1px 0 rgba(255, 255, 255, .18);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background-position .55s ease, border-color .25s ease, box-shadow .25s ease;
}

.tsl-button:hover {
    color: #fff;
    background-position: 0 50%;
    border-color: #8ed2ec;
    box-shadow: 0 10px 30px rgba(56, 164, 207, .28), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.tsl-button span {
    display: inline-block;
    transition: opacity .25s ease, filter .25s ease;
}

.tsl-button:hover span {
    opacity: .9;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, .75));
}

.tsl-results-secondary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 18px;
}

.tsl-result {
    display: flex;
    container: tsl-calc-result / inline-size;
    min-width: 0;
    min-height: 78px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 13px 14px;
    border-radius: 11px;
    text-align: center;
}

.tsl-result .tsl-result-value {
    width: 100%;
    margin-top: 0;
    overflow-wrap: normal;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: #fff;
    font-size: clamp(15px, 1.6vw, 19px);
    font-size: min(19px, 12cqi);
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

.tsl-result > .tsl-result-label {
    left: 50%;
    text-align: center;
    transform: translateX(-50%);
}

.tsl-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.tsl-calculator :focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

@container tsl-calc-panel (max-width: 600px) {
    .tsl-results-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .tsl-calculator-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tsl-calculator-promo {
        min-height: 0;
    }

    .tsl-calculator-guarantees {
        margin-top: 28px;
    }
}

@media (max-width: 767px) {
    .tsl-calculator {
        width: 100%;
        padding: 24px 18px;
        border-radius: 16px;
    }

    .tsl-calculator-intro-title {
        font-size: clamp(26px, 7.5vw, 34px);
    }

    .tsl-calculator-promo {
        padding: 25px 22px;
    }

    .tsl-calculator-promo h3 {
        font-size: clamp(29px, 8vw, 39px);
    }

    .tsl-calculator-promo-accent {
        margin-bottom: 34px;
    }

    .tsl-calculator-panel {
        padding: 18px;
    }

    .tsl-controls {
        grid-template-columns: minmax(0, 1fr);
    }

    .tsl-main-result {
        grid-template-columns: minmax(0, 1fr);
    }

    .tsl-button {
        width: 100%;
    }

    .tsl-results-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .tsl-tabs {
        grid-template-columns: minmax(0, 1fr);
    }

    .tsl-tab {
        min-height: 54px;
    }

    .tsl-calculator-guarantees {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin-top: 26px;
        padding-top: 0;
    }

    .tsl-calculator-guarantees div {
        display: flex;
        padding: 13px 4px 11px;
        text-align: center;
    }

    .tsl-calculator-guarantees dt {
        font-size: 14px;
    }

    .tsl-calculator-guarantees dd {
        margin-top: 5px;
        font-size: 9px;
    }

}

@media (max-width: 380px) {
    .tsl-calculator {
        padding-inline: 14px;
    }

    .tsl-calculator-panel,
    .tsl-field,
    .tsl-main-result {
        padding: 14px;
    }

    .tsl-results-secondary {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .tsl-calculator *,
    .tsl-calculator *::before,
    .tsl-calculator *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
