/* шрифты */
@font-face {
    font-family: "PT Astra Fact";
    src: url("/local/templates/termidesk25/fonts/PTAstraFact-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "PT Astra Fact";
    src: url("/local/templates/termidesk25/fonts/PTAstraFact-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

#calculator h3 {
    font-size: 32px;
    line-height: 42px;
    font-weight: 400;
    color: #fff;
}

#calculator h3.bold {
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 32px;
}

#calculator h4 {
    font-size: 28px;
    line-height: 38px;
    font-weight: 400;
    color: #fff;
}

#calculator h4.bold {
    font-weight: 700;
}

#calculator h5 {
    font-size: 24px;
    line-height: 34px;
    font-weight: 400;
    color: #fff;
}

#calculator h5.bold {
    font-weight: 700;
}

#calculator h6 {
    font-size: 20px;
    line-height: 30px;
    font-weight: 400;
    color: #fff;
    margin-top: 0;
    margin-bottom: 24px;
}

#calculator h6.bold {
    font-weight: 700;
}

#calculator .text-xlarge {
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    color: #fff;
}

#calculator .text-large {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #fff;
    margin: 0;
}

#calculator .text-regular {
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
    color: #fff;
}

#calculator .text-small {
    font-size: 12px;
    line-height: 20px;
    font-weight: 400;
    color: var(--neutral-400);
    margin: 0;
}


body {
    margin: 0;
    padding: 0;
    border: 0;
}

/* переменные - цвета*/
#calculator {

    --accent-900: #002E52;
    --accent-700: #0071A8;
    --accent-600: #008DD4;
    --accent-500: #00AAFF;
    --accent-400: #57C7FF;

    --neutral-900: #14161B;
    --neutral-700: #43485B;
    --neutral-500: #788295;
    --neutral-400: #ABB2BD;
    --neutral-50: #84919E;

    font-family: "PT Astra Fact", "Arial", "Verdana", sans-serif !important;

    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--neutral-900);
    background-image: url(assets/img/bg_2.webp);
    background-repeat: no-repeat;
    background-position: top 96px right 0;
    background-size: cover;
}

#calculator header {
    height: 56px;
    width: 100vw;
    margin-bottom: 40px;
    background-color: var(--neutral-900);
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

#calculator header .container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1400px;
    padding: 0 24px;
    align-items: center;
    justify-content: space-between;
}

#calculator header .back-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-radius: 10px;
    background-color: var(--accent-500);
    transition: all ease 0.3s;
    height: 40px;
    padding: 0 16px;
    text-decoration: none;
}

#calculator header .back-btn:hover{
    background-color: var(--accent-600);
}

#calculator header .back-btn:hover back-btn__img svg path{
    fill: var(--accent-600);
}

#calculator header .back-btn:active{
    background-color: var(--accent-700);
}

#calculator header .back-btn:active back-btn__img svg path{
    fill: var(--accent-700);
}

#calculator header .back-btn__img{
    width: 20px;
    height: 20px;
    border-radius: 8px;
    display: flex;
    background-color: #fff;
    align-items: center;
    justify-content: center;
}
#calculator header .back-btn__img svg path{
    transition: all ease 0.3s;
}

#calculator header p{
   font-size: 12px;
   line-height: 20px;
   font-weight: 700;
   color: #fff; 
}

#calculator .container {
    width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

#calculator .section {
    box-sizing: border-box;
    padding: 32px;
    background: transparent;
    border: 1px solid var(--neutral-700);
    border-radius: 24px;
    flex-grow: 1;
    flex: 1 1 50%;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

#calculator .block-section {
    flex: 1 1 50%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-grow: 1;
    box-sizing: border-box;
}

#calculator .head-section .section {
    background-image: url('assets/img/header_bg.webp');
    background-repeat: no-repeat;
    background-position: top right;
}

#calculator .row-section {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    position: relative;
}

#calculator #BPM_parameters .form-row:first-of-type .form-group:first-of-type {
    flex: 2;
}

#calculator #BPM_parameters .form-row:first-of-type .form-group:last-of-type {
    flex: 1;
}

#calculator #BPM_template .form-row:nth-of-type(2) input {
    padding-top: 52px;
}

#calculator #BPM_template .form-group.Terminal_type input {
    padding-top: 52px;
}

#calculator #virtualization_node_parameters .form-row:last-of-type input {
    padding-top: 52px;
}

#calculator .row-section:last-of-type {
    margin-bottom: 40px;
}

#calculator .form-row {
    width: 100%;
    display: flex;
    gap: 16px;
    margin: 0;
}

#calculator .form-group {
    position: relative;
    flex: 1;
    flex-grow: 1;
    margin-bottom: 20px;
}

#calculator .form-input {
    width: 100%;
    padding: 32px 20px 10px 20px;
    border: 1px solid var(--neutral-500);
    border-radius: 12px;
    font-size: 16px;
    line-height: 24px;
    transition: all 0.3s ease;
    background: transparent;
    box-sizing: border-box;
    min-height: 66px;
    color: #fff;
}

#calculator .form-input:focus {
    outline: none;
    border-color: var(--accent-400);
}

#calculator .form-input:hover {
    outline: none;
    border-color: var(--accent-500);
}

#calculator .form-label {
    position: absolute;
    left: 20px;
    top: 26px;
    color: var(--neutral-400);
    font-size: 16px;
    line-height: 24px;
    pointer-events: none;
    transition: all 0.3s ease;
    padding: 0;
}

#calculator .form-input:focus+.form-label,
#calculator .form-input:not(:placeholder-shown)+.form-label {
    top: 7px;
    font-size: 12px;
    line-height: 20px;
    max-width: calc(100% - 40px);
}

#calculator .form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 48px;
}

#calculator .select-group {
    position: relative;
}

#calculator .form-group.select-group::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
    transform: translateY(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #fff;
    opacity: 0.8;
}

#calculator select option {
    background: var(--neutral-900);
    color: #fff;
    font-size: 16px;
}

#calculator select option:hover {
    background: var(--accent-500);
}

#calculator .form-select:focus+.form-label,
#calculator .form-select:valid+.form-label {
    top: 12px;
    font-size: 12px;
}

/* Chrome, Edge, Safari */
#calculator input[type="number"]::-webkit-inner-spin-button,
#calculator input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
#calculator input[type="number"] {
    -moz-appearance: textfield;
}


#calculator .checkbox-group {
    margin-top: 32px;
}

#calculator #virtualization_node_parameters .checkbox-group {
    margin-top: 16px;
    margin-bottom: 16px;
}


#calculator .custom-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 22px;
    color: #fff;
}

#calculator .custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

#calculator .checkmark {
    width: 20px;
    height: 20px;
    background: transparent;
    border: 1px solid var(--accent-600);
    border-radius: 6px;
    margin-right: 12px;
    margin-top: 3px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}



#calculator .custom-checkbox input[type="checkbox"]:checked+.checkmark {
    background: var(--accent-600);
    border-color: var(--accent-600);
}

#calculator .custom-checkbox input[type="checkbox"]:checked+.checkmark::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


#calculator .checkbox-text {
    margin-top: 3px;
    color: #fff;
    font-size: 16px;
}

#btnCalc {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    gap: 12px;
    border-radius: 12px;
    background-color: var(--accent-500);
    transition: all ease 0.3s;
    margin-top: 0;
    margin-bottom: 40px;
    cursor: pointer;
    border: none;
    outline: none;
}

#btnCalc svg {
    transition: all ease 0.3s;
}

#btnCalc p {
    font-size: 18px;
    line-height: 28px;
    margin: 0;
    font-weight: 400;
    color: #fff;
}

#btnCalc:hover {
    background-color: var(--accent-400);
}

#btnCalc:hover svg {
    transform: rotate(90deg);
}

#btnCalc:active {
    background-color: var(--accent-600);
}

#btnCalc:active svg {
    transform: rotate(90deg);
}

.hide {
    display: none !important;
}

#calculator .switch-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

#calculator .switch {
    position: relative;
    display: inline-block;
    width: 94px;
    height: 31px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
#calculator .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #1e2028;
    border-radius: 999px;
    transition: background 0.3s ease;
    box-shadow: inset 0 0 0 1px var(--neutral-500);
}

#calculator .slider:before {
    content: "";
    position: absolute;
    height: 19px;
    width: 38px;
    left: 6px;
    top: 6px;
    background: #fff;
    border-radius: 28px;
    transition: transform 0.3s ease;
}

#calculator input:checked+.slider {
    background: var(--accent-500);
    box-shadow: inset 0 0 0 1px var(--accent-500);
}

#calculator .switch:hover .slider {
    box-shadow: inset 0 0 0 1px var(--accent-400);
}

#calculator input:focus+.slider {
    box-shadow: inset 0 0 0 1px var(--accent-400);
}

#calculator input:checked+.slider:before {
    -webkit-transform: translateX(44px);
    -ms-transform: translateX(44px);
    transform: translateX(44px);
}

#calculator .bottom-section {
    background-color: var(--accent-900);
    border-radius: 24px;
    padding: 32px;
}

#calculator .bottom-section .section {
    border-color: var(--accent-700);
}

#calculator .table-wrapper {
    width: 100%;
    position: relative;
}

#calculator table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: transparent;
    padding: 0;
    text-align: left;
    position: relative;
}

th .text-small {
    max-width: 86%;
}

td {
    padding-top: 2px;
    background: transparent;
    word-break: break-word;
}

#StorageGrowth td:first-of-type,
#StorageGrowth th:first-of-type,
#resources_storage_stock td:first-of-type,
#resources_storage_stock th:first-of-type {
    width: 50%;
}


@media (max-width: 1065px) {
    #calculator {
        background-image: url(assets/img/bg_2_tablet.webp);
    }

    #calculator .container {
        width: 688px;
    }

    #calculator .head-section .section {
        background-image: url('assets/img/header_bg__mobile.webp');
        background-repeat: no-repeat;
        background-position: top -30px center;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 175px 32px 32px 32px;
    }

    #calculator .row-section {
        flex-direction: column;
        gap: 24px;
    }

    #calculator .top-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #BPM_template_average_network_traffic_resource_BPM,
    #BPM_template_average_network_traffic_storage,
    #BPM_template_average_VDI_network_traffic,
    #virtualization_node_parameters_incremental_performance {
        padding-top: 32px !important;
    }

    #virtualization_node_parameters_incremental_performance {
        padding-top: 52px !important;
    }
}


@media (max-width: 768px) {
    #calculator {
        background-image: url(assets/img/bg_2_mobile.webp);
    }
    
    #calculator header img{
        width: 128px;
        height: 26px;
    }

    #BPM_template_average_network_traffic_resource_BPM {
        padding-top: 52px !important;
    }

    #btnCalc {
        width: 100%;
    }

    #calculator header {}

    #calculator .container {
        width: 100%;
        padding: 0 20px;
    }

    #calculator .section {
        align-items: center;
    }

    #calculator h3 {
        text-align: center;
    }

    #calculator .head-section .section {
        background-image: url('assets/img/header_bg__mobile.webp');
        background-repeat: no-repeat;
        background-position: top -30px center;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 175px 32px 32px 32px;
    }

    #calculator .row-section {
        flex-direction: column;
        gap: 24px;
    }

    #calculator .top-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #calculator .form-row {
        flex-direction: column;
        gap: 0;
    }

}

@media (max-width: 476px) {
    #BPM_parameters_simultaneously_connected_users {
        padding-top: 52px !important;
    }

    #virtualization_node_parameters_incremental_performance {
        padding-top: 72px !important;
    }
}
