.escalc {
    padding: 100px 20px;
    background: #07111f;
    color: #fff;
}

.escalc__container {
    max-width: 1180px;
    margin: 0 auto;
}

.escalc__head {
    max-width: 760px;
    margin-bottom: 42px;
}

.escalc__badge {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(5, 200, 238, 0.12);
    color: #05c8ee;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.escalc__head h2 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    color: #fff;
}

.escalc__head p {
    margin: 0;
    color: rgba(255,255,255,0.72);
    font-size: 18px;
}

.escalc__form {
    padding: 30px;
    border-radius: 28px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
}

.escalc__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.escalc__field span {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    font-size: 14px;
}

.escalc__field input,
.escalc__field select {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.08);
    color: #fff;
    outline: none;
}

.escalc__field select option {
    color: #111;
}

.escalc__works {
    margin-top: 26px;
}

.escalc__works h3 {
    margin: 0 0 14px;
    color: #fff;
}

.escalc__works label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 14px 12px 0;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
}

.escalc__submit,
.escalc__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    margin-top: 22px;
    padding: 0 26px;
    border: 0;
    border-radius: 16px;
    background: #05c8ee;
    color: #06111f;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}

.escalc__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.escalc__result {
    margin-top: 34px;
    padding: 30px;
    border-radius: 28px;
    background: #fff;
    color: #08111f;
}

.escalc__result-main {
    margin-bottom: 24px;
}

.escalc__result-main span {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-weight: 800;
}

.escalc__range {
    display: block;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.05;
}

.escalc__average {
    margin: 12px 0 0;
    font-size: 18px;
    color: #475569;
}

.escalc__result-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.escalc__result-grid div {
    padding: 18px;
    border-radius: 18px;
    background: #f1f5f9;
}

.escalc__result-grid span {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.escalc__result-grid strong {
    font-size: 18px;
}

.escalc__future,
.escalc__cta {
    margin-top: 22px;
    padding: 22px;
    border-radius: 20px;
    background: #f8fafc;
}

.escalc__future h3 {
    margin: 0 0 12px;
}

.escalc__future p,
.escalc__cta p {
    margin: 8px 0;
    color: #475569;
}

@media (max-width: 1024px) {
    .escalc__grid,
    .escalc__result-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .escalc {
        padding: 70px 16px;
    }

    .escalc__form,
    .escalc__result {
        padding: 20px;
        border-radius: 22px;
    }

    .escalc__grid,
    .escalc__result-grid {
        grid-template-columns: 1fr;
    }
}


.escalc-dashboard {
    margin-top: 34px;
    padding: 30px;
    border-radius: 28px;
    background: #fff;
    color: #07111f;
}

.escalc-dashboard__top {
    padding: 10px 0 28px;
}

.escalc-dashboard__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #64748b;
    font-weight: 800;
}

.escalc-dashboard__badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.escalc-dashboard__badges span {
    padding: 10px 14px;
    border-radius: 12px;
    background: #eef6fb;
    color: #0f4660;
    font-weight: 800;
    font-size: 13px;
}

.escalc-dashboard__main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.escalc-card {
    padding: 22px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e5edf5;
}

.escalc-card h3 {
    margin: 0 0 18px;
    color: #07111f;
}

.escalc-cost div,
.escalc-flow div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #e5edf5;
}

.escalc-cost div:last-child,
.escalc-flow div:last-child {
    border-bottom: 0;
}

.escalc-cost span,
.escalc-flow span {
    color: #52657a;
    font-weight: 700;
}

.escalc-cost strong,
.escalc-flow strong {
    color: #07111f;
    white-space: nowrap;
}

.escalc-cost .is-total,
.escalc-flow .is-final {
    margin-top: 10px;
    padding: 14px;
    border-radius: 14px;
    background: #eef6fb;
    border-bottom: 0;
}

.escalc-card__note {
    margin: 18px 0 0;
    padding: 14px;
    border-radius: 14px;
    background: #eef6fb;
    color: #52657a;
}

.escalc-risk {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.escalc-risk strong {
    font-size: 34px;
    color: #07111f;
}

.escalc-risk span {
    color: #64748b;
    font-weight: 700;
}

.escalc-dashboard__cta {
    margin-top: 20px;
    padding: 28px;
    border-radius: 22px;
    background: linear-gradient(135deg, #06294a, #07111f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.escalc-dashboard__cta h3 {
    margin: 0 0 8px;
    color: #fff;
}

.escalc-dashboard__cta p {
    margin: 0;
    color: rgba(255,255,255,0.76);
}

@media (max-width: 1024px) {
    .escalc-dashboard__main {
        grid-template-columns: 1fr;
    }

    .escalc-dashboard__cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .escalc-dashboard {
        padding: 20px;
        border-radius: 22px;
    }

    .escalc__range {
        font-size: 34px;
    }

    .escalc-dashboard__badges {
        flex-direction: column;
    }

    .escalc-card {
        padding: 18px;
    }

    .escalc-cost div,
    .escalc-flow div {
        flex-direction: column;
        gap: 6px;
    }

    .escalc-cost strong,
    .escalc-flow strong {
        white-space: normal;
    }

    .escalc-dashboard__cta {
        padding: 22px;
    }

    .escalc__cta-btn {
        width: 100%;
    }
}


.escalc-donut-wrap {
    position: relative;
    width: 230px;
    height: 230px;
    margin: 10px auto 24px;
}

.escalc-donut {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #e5edf5;
}

.escalc-donut::after {
    content: "";
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    background: #fff;
}

.escalc-donut__center {
    position: absolute;
    inset: 62px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.escalc-donut__center strong {
    font-size: 18px;
    color: #07111f;
}

.escalc-donut__center span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.escalc-waterfall {
    display: grid;
    gap: 18px;
}

.escalc-waterfall div {
    display: grid;
    gap: 8px;
}

.escalc-waterfall span {
    color: #52657a;
    font-weight: 800;
}

.escalc-waterfall strong {
    color: #07111f;
    font-size: 18px;
}

.escalc-waterfall i {
    display: block;
    height: 18px;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #06294a, #05c8ee);
    transition: width 0.6s ease;
}

.escalc-waterfall .is-final i {
    background: linear-gradient(90deg, #05c8ee, #22c55e);
}

.escalc-forecast {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.escalc-forecast div,
.escalc-factors div {
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5edf5;
}

.escalc-forecast span,
.escalc-factors span {
    display: block;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 8px;
}

.escalc-forecast strong {
    font-size: 20px;
    color: #07111f;
}

.escalc-risk-meter {
    text-align: center;
}


.escalc-risk-meter__scale {
    position: relative;
    width: 240px;
    height: 120px;
    margin: 0 auto 18px;
    border-radius: 240px 240px 0 0;
    background: conic-gradient(
        from 270deg at 50% 100%,
        #22c55e 0deg 60deg,
        #f5b700 60deg 120deg,
        #ef4444 120deg 180deg,
        transparent 180deg 360deg
    );
    overflow: hidden;
}

.escalc-risk-meter__scale::after {
    content: "";
    position: absolute;
    left: 38px;
    right: 38px;
    bottom: 0;
    height: 82px;
    border-radius: 180px 180px 0 0;
    background: #f8fafc;
}

.escalc-risk-meter__scale span {
    position: absolute;
    z-index: 3;
    width: 6px;
    height: 92px;
    background: #07111f;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) rotate(-90deg);
    transform-origin: bottom center;
    border-radius: 999px;
    transition: transform 1.2s cubic-bezier(.22, 1, .36, 1);
}

.escalc-risk-meter__scale span::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 16px solid #07111f;
}

@media (max-width: 640px) {
    .escalc-risk-meter__scale {
        width: 210px;
        height: 105px;
        border-radius: 210px 210px 0 0;
    }

    .escalc-risk-meter__scale::after {
        left: 34px;
        right: 34px;
        height: 72px;
    }

    .escalc-risk-meter__scale span {
        height: 80px;
    }
}

.escalc-risk-meter strong {
    display: block;
    font-size: 30px;
    color: #07111f;
}

.escalc-risk-meter p {
    margin: 6px 0 0;
    color: #64748b;
    font-weight: 700;
}

.escalc-card--wide {
    grid-column: 1 / -1;
}

.escalc-factors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 1024px) {
    .escalc-factors {
        grid-template-columns: repeat(2, 1fr);
    }

    .escalc-forecast {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .escalc-donut-wrap {
        width: 250px;
        height: 250px;
    }

    .escalc-donut::after {
        inset: 30px;
    }

    .escalc-donut__center {
        inset: 52px;
    }

    .escalc-factors {
        grid-template-columns: 1fr;
    }
}


.escalc-card--growth {
    min-height: 320px;
}

.escalc-growth-chart {
    height: 210px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: end;
    gap: 16px;
    padding: 18px 8px 0;
    border-bottom: 1px solid #dbe7f1;
}

.escalc-growth-chart__item {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.escalc-growth-chart__bar {
    width: 44px;
    height: 18%;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, #05c8ee, #06294a);
    transition: height 0.9s cubic-bezier(.22, 1, .36, 1);
}

.escalc-growth-chart__item strong {
    font-size: 15px;
    color: #07111f;
    white-space: nowrap;
}

.escalc-growth-chart__item span {
    min-height: 38px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 640px) {
    .escalc-growth-chart {
        gap: 10px;
        padding-left: 0;
        padding-right: 0;
    }

    .escalc-growth-chart__bar {
        width: 32px;
    }

    .escalc-growth-chart__item strong {
        font-size: 13px;
    }

    .escalc-growth-chart__item span {
        font-size: 12px;
    }
}


.escalc-growth-chart--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 420px;
    margin: 0 auto;
}






.escalc__field input,
.escalc__field select {
    appearance: none;
    -webkit-appearance: none;
    height: 54px;
    padding: 0 46px 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.16);
    background-color: rgba(255,255,255,0.08);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
}

.escalc__field select {
    background-image:
        linear-gradient(45deg, transparent 50%, #ffffff 50%),
        linear-gradient(135deg, #ffffff 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 23px,
        calc(100% - 16px) 23px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.escalc__field input {
    background: #fff;
    color: #1f2937;
}

.escalc__field select option {
    background: #101b2a;
    color: #fff;
    font-weight: 700;
}

.escalc__field select:focus,
.escalc__field input:focus {
    border-color: #05c8ee;
    box-shadow: 0 0 0 4px rgba(5, 200, 238, 0.16);
}

.escalc__field select:invalid {
    color: rgba(255,255,255,0.55);
}

.escalc__field select option {
    color: #fff;
}

.escalc__field select option[value=""] {
    color: rgba(255,255,255,0.55);
}


.escalc__field input {
    border-radius: 18px !important;
    overflow: hidden;
}

.escalc-growth-chart {
    height: 240px;
    align-items: end;
}

.escalc-growth-chart__item {
    justify-content: flex-end;
}

.escalc-growth-chart__bar {
    min-height: 70px;
    max-height: 180px;
}


.escalc__cta-btn{
    text-align: center;
}

.escalc-forecast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.escalc-forecast-box {
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e5edf5;
}

.escalc-forecast-box h4 {
    margin: 0 0 16px;
    color: #07111f;
    font-size: 16px;
    font-weight: 900;
}

.escalc-mini-chart {
    height: 210px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 6px 0;
    border-bottom: 1px solid #dbe7f1;
}

.escalc-mini-chart__item {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    text-align: center;
}

.escalc-mini-chart__item i {
    display: block;
    width: 42px;
    height: 30%;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, #05c8ee 0%, #06294a 100%);
    transition: height 0.9s cubic-bezier(.22, 1, .36, 1);
}

.escalc-mini-chart__item strong {
    color: #07111f;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.escalc-mini-chart__item span {
    min-height: 34px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 1024px) {
    .escalc-forecast-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .escalc-mini-chart {
        height: 190px;
        gap: 8px;
        padding-left: 0;
        padding-right: 0;
    }

    .escalc-mini-chart__item i {
        width: 30px;
    }

    .escalc-mini-chart__item strong {
        font-size: 11px;
    }

    .escalc-mini-chart__item span {
        font-size: 11px;
    }
}


.escalc-card--growth {
    grid-column: span 2;
}

.escalc-card--risk {
    min-width: 280px;
}

.escalc-forecast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.escalc-mini-chart__item strong {
    font-size: 12px;
}

.escalc-mini-chart__item span {
    font-size: 11px;
}

.escalc-dashboard__main {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
}

@media (max-width: 1024px) {
    .escalc-dashboard__main {
        grid-template-columns: 1fr;
    }

    .escalc-card--growth,
    .escalc-card--risk {
        grid-column: auto;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .escalc-forecast-grid {
        grid-template-columns: 1fr;
    }

    .escalc-mini-chart {
        overflow-x: auto;
    }

    .escalc-mini-chart__item {
        min-width: 68px;
    }
}


@media (max-width: 1000px) {

    .escalc-forecast-grid {
        grid-template-columns: 1fr;
    }

    .escalc-forecast-box {
        width: 100%;
    }

}
@media (max-width: 768px) {

    .escalc-forecast-grid {
        grid-template-columns: 1fr;
    }

    .escalc-mini-chart {
        gap: 6px;
        padding: 10px 0 0;
    }

    .escalc-mini-chart__item {
        flex: 1;
        min-width: 0;
    }

    .escalc-mini-chart__item i {
        width: 24px;
    }

    .escalc-mini-chart__item strong {
        font-size: 10px;
        line-height: 1.2;
        white-space: normal;
    }

    .escalc-mini-chart__item span {
        font-size: 10px;
        min-height: auto;
    }

}


.escalc-card--risk {
    grid-column: 1 / -1;
    width: 100%;
}

.escalc-card--risk .escalc-risk-meter {
    max-width: 520px;
    margin: 0 auto;
}


.escalc-card--risk {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.escalc-card--risk h3 {
    max-width: 320px;
}

@media (max-width: 768px) {
    .escalc-card--risk {
        display: block;
    }
}

.escalc-card {
    grid-column: 1 / -1;
    width: 100%;
}

.escalc-card .escalc-risk-meter {
    max-width: 520px;
    margin: 0 auto;
}

.escalc-forecast-summary {
    position: relative;
    padding-left: 56px;
}

.escalc-forecast-summary::before {
    content: "↗";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    border-radius: 8px;
    background: rgba(5, 200, 238, 0.12);
    color: #0ea5c8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
}


/* new required fields same style as selects */
.escalc__field input[type="text"],
.escalc__field input[type="tel"],
.escalc__field input[type="number"],
.escalc__field input[type="date"] {
    width: 100%;
    height: 56px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #26313e;
    color: #ffffff;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 800;
    outline: none;
}

.escalc__field input[type="text"]:focus,
.escalc__field input[type="tel"]:focus,
.escalc__field input[type="number"]:focus,
.escalc__field input[type="date"]:focus {
    border-color: #05c8ee;
    box-shadow: 0 0 0 3px rgba(5, 200, 238, 0.16);
}

.escalc__field input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* date icon красивее */
.escalc__field input[type="date"] {
    color-scheme: dark;
}

.escalc__field input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(1);
    opacity: 0.9;
}