html {
    font-size: 16px;
}

body {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
}

h1, p {
    margin: 0 !important;
}

.section-header__content {
    max-width: 800px;
}

.section-header__content h1 {
    font-weight: 700;
}

#calculate {
    margin: 10px 0 200px;
}

select {
    padding: 0 1rem;
    height: 43px !important;
    color: #1E1E1E;
    font-size: 1rem;
    font-weight: 300;
}

input {
    height: 43px !important;
}

select:user-invalid, input[type="number"]:user-invalid, input[type="email"]:user-invalid, .invalid {
    box-shadow: 0 0 1px 1px red;
}

:focus:invalid {
    box-shadow: none;
}

.red {
    color: red;
}

td > input[type="checkbox"] {
    margin: 5px;
}

input {
    font-size: 1rem;
}

input[type="submit"]:disabled,
input[type="submit"]:disabled:hover {
    background-color: #ccc;
    border: none;
}

#calc-form code {
    white-space: wrap;
    margin-bottom: 16px;
}

#k2 {
    /*margin-bottom: 1.5rem;*/
    max-height: 43px;
}

.hide {
    display: none;
}

.flex30gap {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-end;
    column-gap: 30px;
}

label {
    line-height: 1.4;
    font-size: 1rem;
    font-weight: 700;
    color: #4B4B4B;
    margin-bottom: 0.4rem;
}

.flex30gap label {
    max-width: 200px;
}

#config-choose {
    margin-top: 100px;
}

.fixed-button-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f8f8f8;
    padding: 10px;
    border-top: 1px solid #ddd;
    text-align: center;
    z-index: 1000;
}

.fixed-button-panel button {
    margin: 0 10px;
}

#coefficients-container {
    margin-bottom: 100px;
}

/*для админки*/
.bred {
    color: red;
    font-weight: bold;
}

.bgreen {
    color: green;
    font-weight: bold;
}

.message-box {
    color: red;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hidden-field {
    display: none;
    margin-top: 5px;
    background: white;
    position: absolute;
    z-index: 10;
    padding: 1rem;
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.action-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
    min-width: 200px;
}

.action-container form button,
.action-container > div > button {
    width: 100%;
    padding: 0.8rem 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9em;
    border: 1px solid #ccc;
    background: #f7f7f7;
}

.action-container button span.icon {
    font-size: 1.618em;
    line-height: 1;
    margin-bottom: 0.2em;
}

.config-name {
    font-size: 0.85em;
    color: #555;
    margin-top: 0.2rem;
}

.edit-link {
    font-size: 0.75em;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
}

.edit-link:hover {
    color: #333;
}

.disabled {
    pointer-events: none;
    opacity: 0.5;
}


.container {
    /*max-width: 100% !important;*/
    max-width: 75rem !important;
    width: calc(100% - 40px) !important;
}

@media (min-width: 1340px) {
    .container {
        max-width: 75rem !important;
        /*width: calc(100% - 200px) !important;*/
    }
}

@media (max-width: 600px) {
    .container {
        width: calc(100% - 20px) !important;
    }

    .section.hero-calc {
        padding-left: 0;
        padding-right: 0;
    }
}

.flex {
    display: flex;
}

.gap-16 {
    gap: 16px;
}


#calc-form .columns:not(:first-child) {
    margin-left: 1.25rem;
}

#calc-form {
    gap: 1.5rem;
    display: flex;
    flex-direction: column;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.multi-select-header {
    position: relative;
    /*margin-bottom: 1.5rem;*/
}

.multi-select .multi-select-options {
    top: 43px !important;
}

.checkbox-list {
    display: flex;
    gap: 1rem;
    /*margin-bottom: 1.5rem;*/
}

.checkbox-std {
    max-height: 43px;
    padding: 1rem 1.575rem;
    border-radius: 4px;
    border: 1px solid #DDDDDD;

    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 72px;
    width: 100%;
}

.checkbox-std label {
    margin: 0;
    font-weight: 300;
}

.checkbox-std input {
    width: 100%;
    height: 100%;
    inset: 0;
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-std:has(input:checked) {
    border-color: #49C8F5;
}

.btn--custom {
    display: block !important;
    line-height: 1 !important;
    background-color: var(--custom-clr) !important;
    border-radius: 30px !important;
    color: #FFF !important;
    padding: 0.8rem 4rem !important;
    height: fit-content !important;
    white-space: nowrap !important;
    transition: 0.25s all ease !important;
    border: 1px solid transparent !important;
    width: max-content !important;
}

.btn--custom:hover {
    background-color: transparent !important;
    color: #111 !important;
    border-color: #49C8F5 !important;
}

.multi-select .multi-select-options .multi-select-option.multi-select-selected .multi-select-option-radio::after, .multi-select .multi-select-options .multi-select-all.multi-select-selected .multi-select-option-radio::after {
    width: 6px !important;
    height: 10px !important;
    margin: 1px 0 2px 4px !important;
}

#franchise-comment {
    line-height: 10px;
    padding: 0.625rem 2rem;
    font-weight: 300;
    font-size: 0.875rem;
    color: #1E1E1E;
    text-align: center;
    /*margin-bottom: 1.5rem;*/
    background-color: #F4F4F4;
}

th {
    border: none;
}

#submit-form thead th {
    font-size: 1rem;
    font-weight: 300;
}

#submit-form tbody tr {
    transition: background-color 0.25s ease;
    position: relative;
    background-color: transparent !important;
}

#submit-form tr:has(input:checked) {
    background-color: #49C8F533 !important;
}

#submit-form tbody tr:has(input:hover) {
    background-color: #49C8F533 !important;
}

#submit-form tbody tr input {
    opacity: 0;
    cursor: pointer;
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

#submit-form tbody tr td:first-child::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 27px;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: 1px solid #8E8E8E;
    border-radius: 4px;
}

#submit-form tbody tr td:first-child:has(input:checked)::before {
    background-color: #49C8F5;
    background-position: center;
    background-repeat: no-repeat;
    background-size: calc(100% - 10px);
    background-image: url('data:image/svg+xml,<svg width="22" height="19" viewBox="0 0 22 19" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 10.4118L6.71429 17L21 1" stroke="white" stroke-width="2"/></svg>');
}

#submit-form td:first-child {
    padding-left: 0;
    padding-right: 40px;
}

#submit-form tbody tr td:nth-child(3) {
    color: #1E1E1E;
    font-weight: 700;
    font-size: 1.25rem;
}

#rate {
    text-align: center;
}

#submit-body {
    margin: 0 auto;
    /*width: 610px;*/
    width: 100%;
    margin-bottom: 4rem;
}

#submit-body .btn--custom {
    margin: 0 auto 20px auto;
}

tr:nth-child(2n) {
    background: transparent !important;
}

.result-wrapper #result {
    margin-bottom: clamp(2rem, 0rem + 6.4vw, 4rem);
}

@media (max-width: 1100px) {
    #submit-form {
        overflow: hidden;
    }

    .result-wrapper {
        overflow-x: auto;
        width: 100%;
    }

    #result {
        min-width: 1300px;
    }
}

@media (max-width: 1000px) {
    #calc-form > .row {
        gap: 20px;
        display: flex;
        flex-direction: column;
    }

    #calc-form > .row .four {
        width: 100% !important;
        margin: 0 !important;
    }

    #calc-form > .row .four:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 660px) {
    #calc-form > .row {
        display: flex;
        flex-direction: column;
    }

    #submit-body > .row {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}

#fraud-comment {
    margin-top: 1rem;
}

#calc-form code {
    margin-bottom: 0;
}

.popup-inputs label,
.popup-inputs input,
.popup-inputs .input--std {
    height: max-content;
    margin: 0 !important;
}

.popup-inputs button {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.header-wrapper > .bx-breadcrumb {
    display: none !important;
}

.hero-calc {
    position: relative;
}

.hero-calc .bx-breadcrumb {
    position: absolute;
    top: 2rem;
    left: calc((100% - 75rem) / 2);
}

@media (max-width: 1340px) {
    .hero-calc .bx-breadcrumb {
        top: 1.25rem;
        left: 20px;
    }
}


@media (max-width: 700px) {
    #submit-body {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .hero-calc .bx-breadcrumb {
        top: 0;
    }
}

select {
    appearance: none;
    background-repeat: no-repeat;
    background-position-y: 50%;
    background-position-x: calc(100% - 16px);
    background-image: url('data:image/svg+xml,<svg width="16" height="11" viewBox="0 0 16 11" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(%23clip0_728_191)"><path d="M13.6569 3.17158L8 8.82843L2.34315 3.17158" stroke="%231E1E1E"/></g><defs><clipPath id="clip0_728_191"><rect width="16" height="11" fill="white"/></clipPath></defs></svg>');
}

.multi-select .multi-select-header::after {
    background-image: url('data:image/svg+xml,<svg width="16" height="11" viewBox="0 0 16 11" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(%23clip0_728_191)"><path d="M13.6569 3.17158L8 8.82843L2.34315 3.17158" stroke="%231E1E1E"/></g><defs><clipPath id="clip0_728_191"><rect width="16" height="11" fill="white"/></clipPath></defs></svg>');
}

.flex.row > div {
    flex-grow: 1;
}

.row::after {
    display: none !important;
}

#calculate {
    font-size: 1rem;
    margin: 1.5rem auto 0 auto !important;
}

.submit--mb {
    display: none !important;
}

.submit--pc {
    display: inline-block !important;
}

@media (max-width: 1000px) {
    .submit--pc {
        display: none !important;
    }

    .submit--mb {
        display: inline-block !important;
    }
}

.multi-select-header-placeholder {
    color: #8E8E8E !important;
    font-weight: 300;
}

.multi-select .multi-select-header {
    min-height: 43px;
}

.form-group__row {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 0.625rem;
}

@media (max-width: 520px) {
    .form-group__row {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-group__row label {
        opacity: 1 !important;
    }
}

.calc-form__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1.25rem;
}

@media (min-width: 1000px) {
    .form-group .pt-22 {
        padding-top: 22px;
    }
}

.form-group select {
    margin-bottom: 0;
}

.cookie-checkbox input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
}

.cookie-checkbox {
    color: #FFF !important;
}

.cookie-checkbox {
    margin-bottom: 0 !important;
}

.cookie-warning__buttons button {
    height: auto;
    margin: 0;
    line-height: 1;
    text-transform: none !important;
}

.tariff-form__inner input {
    margin: 0;
}