/*#region calculator*/
.calculator-page main {
    flex-grow: 1;
    background-image: linear-gradient(to top, var(--bodycolor) 120px, var(--blue) 120px);
}

main section.calculator:first-child {
    padding-top: calc(var(--menu-height) + 100px);
}

.calculator-page .calculator {
    background: transparent;
    overflow: hidden;
}

.calculator {
    background: var(--blue);
    padding-top: 100px;
    position: relative;
    z-index: 2;
}

.calculator.calculator-complete {
    margin-bottom: 0;
    background-image: none;
}

.calculator__header {
    max-width: 585px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: 120px;
}

.calculator__block {
    background: #fff;
    padding-bottom: 100px;
}
.js-calculator .hidden {
    display: none;
}
/* .calculator__nav */
.calculator__nav ul {
    --circle-size: 34px;
    --lr-padding: 80px;
    --transition: all .4s ease-in;
    position: relative;
    list-style: none;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--lr-padding);
    border-top: 3px solid #F2F2F2;
}

.calculator__nav ul::before,
.calculator__nav ul::after {
    position: absolute;
    content: '';
    width: var(--lr-padding);
    height: 3px;
    top: -3px;
    background: #000;
}

.calculator__nav ul::before {
    left: 0;
}

.calculator__nav ul::after {
    right: 0;
    opacity: 0;
}

.calculator-complete .calculator__nav ul::after {
    opacity: 1;
}

.calculator__nav li {
    position: relative;
    margin-top: calc((-1 * (var(--circle-size) / 2)) - 1px);
}

.calculator__nav li:not(:last-child) {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.calculator__nav li:not(:last-child)::after {
    content: "";
    display: block;
    flex-grow: 0;
    height: 3px;
    flex-basis: 0;
    background: #000;
}

.calculator__nav .name {
    position: absolute;
    width: 110px;
    left: calc(var(--circle-size) / 2);
    top: calc(100% + 10px);
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    color: rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    opacity: 0;
}

.calculator__nav .circle {
    flex-shrink: 0;
    position: relative;
    width: var(--circle-size);
    height: var(--circle-size);
}

.calculator__nav .circle::before,
.calculator__nav .circle::after {
    position: absolute;
    content: '';
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.calculator__nav .circle::before {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    background: #F2F2F2;
    z-index: 1;
}

.calculator__nav .circle::after {
    width: 0;
    height: 0;
    border: 1px solid #000;
}

.calculator__nav li:not(:last-child)::after,
.calculator__nav .name,
.calculator__nav .circle::before,
.calculator__nav .circle::after {
    transition: var(--transition);
}

.calculator__nav li.done:not(:last-child)::after {
    flex-grow: 1;
    flex-basis: 5px;
}

.calculator__nav li.done .name {
    opacity: 1;
}

.calculator__nav li.done .circle {
    cursor: pointer;
}

.calculator__nav li.done .circle::before,
.calculator__nav li.active .circle::before {
    background: #000;
}

.calculator__nav li.done .circle::after,
.calculator__nav li.active .circle::after {
    width: calc(100% - 8px);
    height: calc(100% - 8px);
}

/* calculator__stap */
.calculator__staps form {
    overflow: hidden;
}

.calculator input[type="text"],
.calculator input[type="tel"],
.calculator input[type="email"],
.calculator textarea,
select {
    border: 1px solid #000;
}

.calculator__stap {
    padding: 85px 20px 0 20px;
    width: 100%;
    max-width: 930px;
    margin-left: auto;
    margin-right: auto;
    transition: transform .4s;
}

.calculator__stap[hidden] {
    transform: translateX(100%);
}

.calculator__stap-header {
    text-align: center;
    margin-bottom: 60px;
}

.calculator__stap-header .like-h4 {
    font-size: 2rem;
    font-weight: 400;
}

.calculator__stap-header .like-h4:not(:last-child) {
    margin-bottom: 20px;
}

.calculator__stap-footer {
    margin-top: 80px;
}

.calculator__stap-footer .btn-block {
    justify-content: center;
    gap: 10px 20px;
    margin: 0;
}

.calculator__stap-footer .btn-block .btn {
    margin: 0;
}

.stap__radio-row input[type="checkbox"],
.stap__radio-row input[type="checkbox"]:required,
.stap__radio-row input[type="radio"],
.stap__radio-row input[type="radio"]:required {
    display: none;
}

.stap__radio-row input[type="checkbox"]+label::before,
.stap__radio-row input[type="radio"]+label::before {
    display: none;
}

.stap__radio-row input[type="checkbox"]+label,
.stap__radio-row input[type="radio"]+label {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    text-align: center;
    color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: .2s;
    padding: 15px;
}

.stap__radio-row input[type="checkbox"]+label:hover,
.stap__radio-row input[type="checkbox"]:checked+label,
.stap__radio-row input[type="radio"]+label:hover,
.stap__radio-row input[type="radio"]:checked+label {
    background: rgba(0, 0, 0, 0.3);
}

.stap__radio-row input[type="checkbox"]:checked+label,
.stap__radio-row input[type="radio"]:checked+label {
    color: rgba(0, 0, 0, 1);
}

/* stap__radio-row */
.stap__radio-row {
    display: grid;
    gap: 20px;
}

.stap__radio-col input[type="checkbox"]+label,
.stap__radio-col input[type="radio"]+label {
    font-size: 2rem;
}

.invalid-msg {
    flex-basis: 100%;
    text-align: center;
    font-size: 1rem;
}

/* stap-1 */
.stap-1 .stap__radio-row {
    grid-template-columns: 1fr 1fr;
}

.stap-1 .stap__radio-col input[type="checkbox"]+label,
.stap-1 .stap__radio-col input[type="radio"]+label {
    min-height: 158px;
}

/* stap-2 */
.stap-2 .stap__radio-row {
    grid-template-columns: repeat(3, 1fr);
}

.stap-2 .stap__radio-col input[type="checkbox"]+label,
.stap-2 .stap__radio-col input[type="radio"]+label {
    min-height: 125px;
}

.stap-2__additional-fields {
    display: none;
    max-width: 385px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
}

/* stap-3 */
.stap-3 .stap__radio-row {
    grid-template-columns: repeat(2, 1fr);
}

.stap-3 .stap__radio-col input[type="checkbox"]+label,
.stap-3 .stap__radio-col input[type="radio"]+label {
    min-height: 125px;
    font-size: 1.875rem;
    line-height: 1.2;
}

.stap-3 .stap__radio-col input[type="checkbox"]+label span,
.stap-3 .stap__radio-col input[type="radio"]+label span {
    font-size: 1.0625rem;
    display: block;
    line-height: 1.5;
}

/* stap-4 */
.stap-4 .stap__radio-row {
    grid-template-columns: repeat(3, 1fr);
}

.stap-4 .stap__radio-col input[type="checkbox"]+label,
.stap-4 .stap__radio-col input[type="radio"]+label {
    font-size: inherit;
    justify-content: flex-start;
    padding-top: 40px;
    padding-bottom: 30px;
}

.security-type__img {
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.security-type__img svg {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.stap__radio-row input[type="checkbox"]:not(:checked)+label:hover .security-type__red-el,
.stap__radio-row input[type="radio"]:not(:checked)+label:hover .security-type__red-el {
    animation: flash-pulse 1s ease 0s infinite normal;
    transform-origin: center;
}

.stap__radio-row input[type="checkbox"]:checked+label .security-type__red-el,
.stap__radio-row input[type="radio"]:checked+label .security-type__red-el {
    animation: flash-pulse .5s ease;
    transform-origin: center;
}

@keyframes flash-pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* stap-5 */
.stap-5 .stap__radio-row {
    grid-template-columns: repeat(3, 1fr);
}

.stap-5 .stap__radio-col input[type="checkbox"]+label,
.stap-5 .stap__radio-col input[type="radio"]+label {
    font-size: inherit;
    justify-content: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
}

.security-layout__img {
    height: 175px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.stap-5__additional-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px 20px;
    margin-top: 80px;
}

.stap-5__additional-fields-col input[type="text"] {
    width: 185px;
    padding: 5px 25px;
}

.stap-5__additional-fields-col label {
    font-size: 1.375rem;
    margin-top: 20px;
}

/* stap-6 */
.stap-6__row {
    display: grid;
    width: 100%;
    max-width: 385px;
    margin-left: auto;
    margin-right: auto;
    gap: 40px;
}

.stap-6__col.privacy-col {
    justify-self: center;
}

@media (max-width: 1024px) {
    main section.calculator:first-child {
        padding-top: 100px;
    }

    .calculator__header {
        margin-bottom: 100px;
    }
}

@media (max-width: 768px) {
    .calculator__nav ul {
        --lr-padding: 40px;
    }

    .calculator__nav .name {
        font-size: 12px;
    }

    .stap__radio-col input[type="checkbox"]+label,
    .stap-3 .stap__radio-col input[type="checkbox"]+label,
    .stap__radio-col input[type="radio"]+label,
    .stap-3 .stap__radio-col input[type="radio"]+label {
        font-size: 1.625rem;
    }

    .security-type__img {
        height: 130px;
    }

    .security-layout__img {
        height: 90px;
    }

    .stap-5__additional-fields-col label {
        font-size: 1rem;
        margin-top: 10px;
    }
}

@media (max-width: 650px) {
    main section.calculator:first-child {
        padding-top: 40px;
    }

    .calculator__header {
        margin-bottom: 50px;
    }

    .calculator__header h1 {
        margin-bottom: 20px;
    }

    .calculator__stap-header {
        margin-bottom: 40px;
    }

    .calculator__stap-header .like-h4:not(:last-child) {
        margin-bottom: 10px;
    }

    .calculator__stap-footer {
        margin-top: 50px;
    }

    .calculator__block {
        padding-bottom: 50px;
    }

    .calculator__nav ul {
        --lr-padding: 30px;
        --circle-size: 30px;
    }

    .calculator__nav .name {
        display: none;
    }

    .calculator__stap {
        padding-top: 50px;
    }

    .stap__radio-row,
    .stap-1 .stap__radio-row,
    .stap-2 .stap__radio-row,
    .stap-3 .stap__radio-row,
    .stap-4 .stap__radio-row,
    .stap-5 .stap__radio-row,
    .stap-5__additional-fields-row {
        grid-template-columns: 1fr;
        max-width: 385px;
        margin-left: auto;
        margin-right: auto;
    }

    .stap-5__additional-fields-row {
        gap: 20px;
    }

    .stap-5__additional-fields-col input[type="text"] {
        width: 100%;
    }

    .stap-1 .stap__radio-col input[type="checkbox"]+label,
    .stap-2 .stap__radio-col input[type="checkbox"]+label,
    .stap-3 .stap__radio-col input[type="checkbox"]+label,
    .stap-1 .stap__radio-col input[type="radio"]+label,
    .stap-2 .stap__radio-col input[type="radio"]+label,
    .stap-3 .stap__radio-col input[type="radio"]+label {
        min-height: 90px;
    }

    .stap__radio-col input[type="checkbox"]+label,
    .stap-3 .stap__radio-col input[type="checkbox"]+label,
    .stap__radio-col input[type="radio"]+label,
    .stap-3 .stap__radio-col input[type="radio"]+label {
        font-size: 1.5rem;
    }

    .stap-4 .stap__radio-col input[type="checkbox"]+label,
    .stap-5 .stap__radio-col input[type="checkbox"]+label,
    .stap-4 .stap__radio-col input[type="radio"]+label,
    .stap-5 .stap__radio-col input[type="radio"]+label {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .security-type__img,
    .security-layout__img {
        margin-bottom: 10px;
    }
}

/*#endregion*/

/*#region ajax-homesiren*/
.ajax-homesiren {
    margin: 120px 0;
}

.ajax-homesiren__inner {
    max-width: 990px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    gap: 30px 50px;
    grid-template-columns: 1fr 1fr;
}

.ajax-homesiren__img {
    align-self: self-start;
    display: flex;
    justify-content: center;
}

.ajax-homesiren__content {
    max-width: 440px;
}

.ajax-homesiren__content .btn {
    margin-top: 60px;
}

.ajax-homesiren__header {
    margin-bottom: 25px;
}

.ajax-homesiren__header .like-h2 {
    font-size: 2.25rem;
    font-weight: 400;
    max-width: 385px;
}

.ajax-homesiren__header .like-h2 span {
    font-size: 1.27em;
    font-weight: 500;
    display: block;
}

@media (max-width: 700px) {
    .ajax-homesiren__inner {
        grid-template-columns: 1fr;
    }

    .ajax-homesiren__content {
        max-width: 100%;
    }

}

/*#endregion*/

/*#region calc-img-section*/
.calc-img-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
    max-height: 700px;
}

/*#endregion*/

/*#region calc-contact*/
.calc-contact {
    background: var(--blue);
    padding: 120px 0;
}

.calc-contact__header {
    max-width: 790px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
    text-align: center;
}

/*#endregion*/

/*#region calc-contact-form*/
.contact-form.calc-contact-form {
    padding: 120px 0;
}

.calc-contact-form input[type="text"],
.calc-contact-form input[type="tel"],
.calc-contact-form input[type="email"],
.calc-contact-form textarea,
.calc-contact-form select,
.calc-contact-form input:focus,
.calc-contact-form textarea:focus,
.calc-contact-form select:focus {
    border-color: #000;
}

.calc-contact-form .form-row {
    gap: 20px;
}

.calc-contact-form .contact-form__inner {
    gap: 20px;
}

.contact-form__left .desc {
    max-width: 425px;
    margin-bottom: 30px;
}

.calc-contact-form .contact-form__right {
    margin-top: 20px;
}

/*#endregion*/

/*#region media*/
@media (max-width: 768px) {
    .ajax-homesiren {
        margin: 70px 0;
    }

    .calc-contact,
    .contact-form.calc-contact-form {
        padding: 70px 0;
    }
}

/*#endregion*/