.homepage-calculator--imt {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 22px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background-color: #f8f9fb;
    box-shadow: 0 18px 42px -34px rgba(28, 37, 46, .55);
}

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

.homepage-calculator--imt [hidden] {
    display: none !important;
}

.homepage-calculator--imt .calculator-form {
    width: 100%;
}

.homepage-calculator--imt .imt-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: stretch;
}

.homepage-calculator--imt .imt-panel {
    min-width: 0;
}

.homepage-calculator--imt .imt-panel--form {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.homepage-calculator--imt .imt-panel--result {
    padding-left: 22px;
    border-left: 1px solid #dfe3e7;
}

.homepage-calculator--imt .imt-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.homepage-calculator--imt .imt-field {
    display: block;
    min-width: 0;
}

.homepage-calculator--imt .imt-field-label {
    display: block;
    margin-bottom: 7px;
    color: #273340;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
}

.homepage-calculator--imt .imt-input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d9dee3;
    border-radius: 9px;
    background-color: #fff;
    color: #222c38;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    line-height: 46px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.homepage-calculator--imt .imt-input::placeholder {
    color: #a2a8ae;
}

.homepage-calculator--imt .imt-input:focus,
.homepage-calculator--imt .imt-input:active {
    border-color: rgba(255, 72, 91, .5);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 72, 91, .12);
}

.homepage-calculator--imt .imt-select {
    cursor: pointer;
}

.homepage-calculator--imt .imt-field-hint {
    display: block;
    margin-top: 7px;
    color: #667482;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.homepage-calculator--imt .imt-reset {
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    padding: 0 16px;
    border: 1px solid #dfe3e7;
    border-radius: 9px;
    background-color: #fff;
    color: #273340;
    font-family: inherit;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.homepage-calculator--imt .imt-reset:hover {
    border-color: rgba(255, 72, 91, .42);
    color: var(--color-accent, #ff485b);
    box-shadow: 0 10px 22px -18px rgba(28, 37, 46, .45);
}

.homepage-calculator--imt .imt-reset:active {
    transform: translateY(1px);
    box-shadow: none;
}

.homepage-calculator--imt .imt-reset:focus {
    outline: none;
}

.homepage-calculator--imt .imt-reset:focus-visible {
    border-color: var(--color-accent, #ff485b);
    box-shadow: 0 0 0 3px rgba(255, 72, 91, .14);
}

.homepage-calculator--imt .imt-info {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid rgba(255, 72, 91, .22);
    border-left: 4px solid var(--color-accent, #ff485b);
    border-radius: 10px;
    background-color: rgba(255, 72, 91, .06);
}

.homepage-calculator--imt .imt-info-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 2px solid var(--color-accent, #ff485b);
    border-radius: 50%;
    color: var(--color-accent, #ff485b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.homepage-calculator--imt .imt-info-text {
    min-width: 0;
}

.homepage-calculator--imt .imt-info-text strong {
    display: block;
    margin-bottom: 5px;
    color: #273340;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.3;
}

.homepage-calculator--imt .imt-info-text p {
    margin: 0;
    color: #667482;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.homepage-calculator--imt .imt-empty {
    min-height: 300px;
    padding: 24px;
    border: 1px dashed #cfd6dc;
    border-radius: 12px;
    background-color: #fff;
    color: #667482;
    place-items: center;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.homepage-calculator--imt .imt-empty:not([hidden]) {
    display: grid;
}

.homepage-calculator--imt .imt-result {
    min-width: 0;
}

.homepage-calculator--imt .imt-result-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.homepage-calculator--imt .imt-result-main {
    min-width: 0;
}

.homepage-calculator--imt .imt-value {
    color: #222c38;
    font-size: 58px;
    font-weight: 900;
    line-height: .95;
    letter-spacing: -0.04em;
}

.homepage-calculator--imt .imt-value-label {
    margin-top: 7px;
    color: #667482;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
}

.homepage-calculator--imt .imt-status {
    flex: 0 0 auto;
    max-width: 210px;
    min-height: 42px;
    padding: 12px 16px;
    border: 1px solid #dfe3e7;
    border-radius: 999px;
    background-color: #fff;
    color: #273340;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
}

.homepage-calculator--imt .imt-status.is-low {
    border-color: rgba(14, 116, 144, .22);
    background-color: rgba(14, 165, 233, .08);
    color: #0e7490;
}

.homepage-calculator--imt .imt-status.is-normal {
    border-color: rgba(22, 163, 74, .24);
    background-color: rgba(34, 197, 94, .1);
    color: #15803d;
}

.homepage-calculator--imt .imt-status.is-over {
    border-color: rgba(202, 138, 4, .28);
    background-color: rgba(250, 204, 21, .13);
    color: #a16207;
}

.homepage-calculator--imt .imt-status.is-obese {
    border-color: rgba(234, 88, 12, .28);
    background-color: rgba(249, 115, 22, .1);
    color: #c2410c;
}

.homepage-calculator--imt .imt-status.is-high {
    border-color: rgba(220, 38, 38, .28);
    background-color: rgba(239, 68, 68, .1);
    color: #b91c1c;
}

.homepage-calculator--imt .imt-status.is-teen {
    border-color: rgba(255, 72, 91, .3);
    background-color: rgba(255, 72, 91, .08);
    color: var(--color-accent, #ff485b);
}

.homepage-calculator--imt .imt-scale-wrap {
    margin-top: 4px;
}

.homepage-calculator--imt .imt-scale-labels {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
    color: #667482;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
}

.homepage-calculator--imt .imt-scale {
    position: relative;
    height: 14px;
    border-radius: 999px;
    background:
        linear-gradient(
            to right,
            #7dd3fc 0%,
            #7dd3fc 19.7%,
            #86efac 19.7%,
            #86efac 39.1%,
            #fde047 39.1%,
            #fde047 54.2%,
            #fb923c 54.2%,
            #fb923c 69.4%,
            #ef4444 69.4%,
            #ef4444 100%
        );
    box-shadow: inset 0 1px 2px rgba(28, 37, 46, .15);
}

.homepage-calculator--imt .imt-marker {
    position: absolute;
    top: -10px;
    left: 0;
    transform: translateX(-50%);
    transition: left .25s ease;
    pointer-events: none;
}

.homepage-calculator--imt .imt-marker span {
    display: block;
    width: 20px;
    height: 28px;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    background-color: #222c38;
    box-shadow: 0 8px 18px -10px rgba(28, 37, 46, .8);
    transform: rotate(-45deg);
}

.homepage-calculator--imt .imt-marker-value {
    margin-top: 14px;
    color: #222c38;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
}

.homepage-calculator--imt .imt-recommendation {
    display: flex;
    gap: 13px;
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background-color: #fff;
}

.homepage-calculator--imt .imt-recommendation-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(34, 197, 94, .12);
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}

.homepage-calculator--imt .imt-recommendation-text {
    min-width: 0;
}

.homepage-calculator--imt .imt-recommendation-text strong {
    display: block;
    margin-bottom: 6px;
    color: #273340;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.3;
}

.homepage-calculator--imt .imt-recommendation-text p {
    margin: 0;
    color: #667482;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.homepage-calculator--imt .imt-extra {
    margin-top: 10px;
    padding: 13px 14px;
    border: 1px solid #dfe3e7;
    border-radius: 10px;
    background-color: #fff;
    color: #667482;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.homepage-calculator--imt .imt-extra strong {
    color: #273340;
    font-weight: 900;
}

.homepage-calculator--imt .imt-note {
    margin-top: 10px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 72, 91, .22);
    border-left: 4px solid var(--color-accent, #ff485b);
    border-radius: 10px;
    background-color: rgba(255, 72, 91, .06);
    color: #667482;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .homepage-calculator--imt {
        max-width: 100%;
        padding: 16px;
        border-radius: 12px;
    }

    .homepage-calculator--imt .imt-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .homepage-calculator--imt .imt-panel--result {
        padding-left: 0;
        padding-top: 18px;
        border-left: 0;
        border-top: 1px solid #dfe3e7;
    }

    .homepage-calculator--imt .imt-fields {
        gap: 12px;
    }

    .homepage-calculator--imt .imt-input {
        height: 46px;
        font-size: 15px;
        line-height: 44px;
    }

    .homepage-calculator--imt .imt-reset {
        min-height: 46px;
        margin-top: 16px;
        font-size: 14px;
    }

    .homepage-calculator--imt .imt-info {
        margin-top: 16px;
        padding: 13px;
    }

    .homepage-calculator--imt .imt-result-top {
        align-items: stretch;
        margin-bottom: 20px;
    }

    .homepage-calculator--imt .imt-value {
        font-size: 52px;
    }

    .homepage-calculator--imt .imt-status {
        max-width: 190px;
        padding: 10px 13px;
        font-size: 12px;
    }

    .homepage-calculator--imt .imt-scale-labels {
        gap: 5px;
        font-size: 10px;
    }

    .homepage-calculator--imt .imt-recommendation {
        padding: 14px;
    }
}

@media (max-width: 520px) {
    .homepage-calculator--imt .imt-fields {
        grid-template-columns: 1fr;
    }

    .homepage-calculator--imt .imt-result-top {
        flex-direction: column;
        gap: 12px;
    }

    .homepage-calculator--imt .imt-status {
        width: 100%;
        max-width: none;
        justify-content: center;
    }

    .homepage-calculator--imt .imt-scale-labels {
        display: none;
    }

    .homepage-calculator--imt .imt-scale-wrap {
        margin-top: 18px;
    }
}

@media (max-width: 420px) {
    .homepage-calculator--imt {
        padding: 14px;
        border-radius: 11px;
    }

    .homepage-calculator--imt .imt-value {
        font-size: 46px;
    }

    .homepage-calculator--imt .imt-input {
        height: 44px;
        font-size: 14px;
        line-height: 42px;
    }

    .homepage-calculator--imt .imt-field-label {
        font-size: 12px;
    }

    .homepage-calculator--imt .imt-info-text p,
    .homepage-calculator--imt .imt-recommendation-text p,
    .homepage-calculator--imt .imt-extra,
    .homepage-calculator--imt .imt-note {
        font-size: 13px;
    }
}