@font-face {
    font-family: "OpenSans-Light";
    src: url("../assets/fonts/OpenSans/OpenSans-Light.ttf");
}

@font-face {
    font-family: "OpenSans-Regular";
    src: url("../assets/fonts/OpenSans/OpenSans-Regular.ttf");
}

@font-face {
    font-family: "OpenSans-Medium";
    src: url("../assets/fonts/OpenSans/OpenSans-Medium.ttf");
}

@font-face {
    font-family: "OpenSans-SemiBold";
    src: url("../assets/fonts/OpenSans/OpenSans-SemiBold.ttf");
}

@font-face {
    font-family: "OpenSans-Bold";
    src: url("../assets/fonts/OpenSans/OpenSans-Bold.ttf");
}

@font-face {
    font-family: "OpenSans-ExtraBold";
    src: url("../assets/fonts/OpenSans/OpenSans-ExtraBold.ttf");
}

@font-face {
    font-family: "Ubuntu-Light";
    src: url("../assets/fonts/Ubuntu/Ubuntu-Light.ttf");
}

@font-face {
    font-family: "Ubuntu-Regular";
    src: url("../assets/fonts/Ubuntu/Ubuntu-Regular.ttf");
}

@font-face {
    font-family: "Ubuntu-Medium";
    src: url("../assets/fonts/Ubuntu/Ubuntu-Medium.ttf");
}

@font-face {
    font-family: "Ubuntu-Bold";
    src: url("../assets/fonts/Ubuntu/Ubuntu-Bold.ttf");
}

html {
    scroll-behavior: smooth;
}

* {
    padding: 0;
    margin: 0;
    border: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #010201;
}

ul {
    list-style-type: none;
}

body {
    height: 100%;
    background: #f1f1f8;
}

.container {
    max-width: 1245px;
    margin: 0 auto;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    padding: 39px 0px 39px 10px;
}

.header-contacts {
    display: flex;
    justify-content: space-between;
    gap: 70px;
}

.header-contacts__items {
    display: flex;
    gap: 23px;
}

.header-contacts__items > span {
    white-space: nowrap;
    font-family: "OpenSans-Regular", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 17px;
    line-height: 21px;
    color: #5a5a5a;
}

.header-contacts__items > a {
    white-space: nowrap;
    font-family: "OpenSans-Regular", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 17px;
    line-height: 21px;
    color: #b2b2b2;
}

.main {
    margin-bottom: 100px;
}

.form {
    padding: 40px 50px;
    background-color: #ffffff;
}

.form-wrapper {
    max-width: 823px;
    margin: 0 auto;
}

.form-block__wrapper {
    border-radius: 8px;
    border: 1px solid #f2f2f9;
    background-color: #ffffff;
    margin-bottom: 20px;
    padding: 46px;
}

.form-title {
    margin-bottom: 20px;
    font-family: "Ubuntu-Bold", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 36px;
    line-height: 56px;
    color: #212121;
}

.form-block__inputs-wrapper {
    padding-right: 202px;
    border-bottom: 1px solid #e1e5e9;
}

.form-block__item {
    margin-bottom: 30px;
}

.form-block__item.form-block__modal {
    margin-bottom: 15px !important;
}

.form-block__content {
    margin-top: 30px;
    display: grid;
}

.form-block__label {
    display: inline-block;
    margin-bottom: 10px;
    font-family: "Ubuntu-Regular", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #212121;
}

.form-block__input {
    width: 100%;
    padding: 10px 0px 10px 20px;
    display: inline-block;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    outline: none;
    font-family: "Ubuntu-Regular", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    /*color: #76798a;*/
    color: #000000;
}

.inputBlock {
    display: flex;
}

.addInput:hover {
    cursor: pointer;
}

.form-block__select {
    display: flex;
    gap: 25px;
}

.form-block__select .form-block__item > input {
    padding: 9px 23px 9px 20px;
}

.form-block__select .form-block__item > select {
    padding: 10px 23px 10px 20px;
    appearance: none;
    background: url("../assets/images/icons/arrow_down.svg") no-repeat right;
    background-position-x: calc(100% - 23px);
}

.form-block__select2 {
    width: 180px;
    padding: 10px 0px 10px 20px;
    margin-bottom: 25px;
    display: block;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    outline: none;
    font-family: "Ubuntu-Regular", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #76798a;
    appearance: none;
    background: url("../assets/images/icons/arrow_down.svg") no-repeat right;
    background-position-x: calc(100% - 23px);
}

.form-block__check {
    margin-bottom: 30px;
}

.form-block__check:last-child {
    margin-bottom: 0px;
}

.form-block__check-title {
    margin-bottom: 15px;
    font-family: "Ubuntu-Regular", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #212121;
}

.form-block__check-item {
    margin-bottom: 15px;
}

.form-block__radio {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.form-block__radio + label {
    cursor: pointer;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    user-select: none;
}

.form-block__radio + label::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 25px;
    flex-shrink: 0;
    flex-grow: 0;
    border: 1px solid #212121;
    border-radius: 50px;
    margin-right: 8px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
}

.form-block__radio:checked + label::before {
    border: 1px solid #48ab41;
    background-image: url("../assets/images/icons/radio.svg");
    background-size: 16px;
}

.form-block__checkbox {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.form-block__checkbox + label {
    cursor: pointer;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    user-select: none;
}

.form-block__checkbox + label::before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 25px;
    flex-shrink: 0;
    flex-grow: 0;
    border: 1px solid #212121;
    border-radius: 5px;
    margin-right: 8px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
}

.form-block__checkbox:checked + label::before {
    border-color: #48ab41;
    background-color: #48ab41;
    background-image: url("../assets/images/icons/check.svg");
    background-size: 16px;
}

.form-block__check-label {
    font-family: "Ubuntu-Regular", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    color: #212121;
}

.form-block__btns {
    text-align: center;
}

.form-block__btn--add-section {
    margin-bottom: 30px;
    background-color: transparent;
    font-family: "Ubuntu-Regular", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #48ab41;
}

.form-block__btn--add-section::after {
    content: "\002B";
}

.form-block__btn--add-section:hover {
    color: #4b9245;
    transition: 0.3s ease;
}

.form-block__btn {
    display: block;
    cursor: pointer;
}

.form-block__btn--send {
    width: 100%;
    padding: 7px 0;
    margin-bottom: 20px;
    background-color: #48ab41;
    border-radius: 8px;
    font-family: "OpenSans-Bold", sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 44px;
    text-align: center;
    color: #ececec;
}

.form-block__btn--send:hover {
    background-color: #4b9245;
    transition: 0.3s ease;
}

.form-block__btn--rest {
    text-align: center;
    margin: 0 auto;
    font-family: "Ubuntu-Regular", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #48ab41;
    background: transparent;
}

.form-block__btn--rest:hover {
    color: #4b9245;
    transition: 0.3s ease;
}

.footer {
    border-top: 1px solid rgba(51, 51, 51, 0.1);
}

.footer-wrapper {
    display: flex;
    gap: 166px;
    padding: 45px 0px;
}

.footer__copyright {
    white-space: nowrap;
    font-family: "OpenSans", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 17px;
    line-height: 21px;
    color: #a7c816;
}

.footer-contacts {
    display: flex;
    justify-content: space-between;
    gap: 70px;
}

.footer-contacts__items {
    display: flex;
    gap: 23px;
}

.footer-contacts__items > span {
    white-space: nowrap;
    font-family: "OpenSans-Regular", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 17px;
    line-height: 21px;
    color: #5a5a5a;
}

.footer-contacts__items > a {
    white-space: nowrap;
    font-family: "OpenSans-Regular", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 17px;
    line-height: 21px;
    color: #b2b2b2;
}

@media screen and (max-width: 928px) {
    .footer-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

@media screen and (max-width: 928px) {
    .header-wrapper {
        flex-wrap: wrap;
        /* justify-content: center; */
    }

    .header-logo {
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 840px) {
    .main {
        margin-bottom: 30px;
    }


    .form-block__input-wrapper {
        padding-right: 160px;
    }

    .form-block__btns {
        padding: 0 20px;
    }
}


/* adaptability */
@media screen and (max-width: 800px) {
    .form-block__input-wrapper {
        padding-right: 120px;
    }

    .form-block__select {
        flex-wrap: wrap;
        gap: 0;
    }

    #survey
    > div.form-block__wrapper
    > div.form-block__input-wrapper
    > div.form-block__select
    > div:nth-child(1) {
        width: 100%;
    }

    #survey
    > div.form-block__wrapper
    > div.form-block__input-wrapper
    > div.form-block__select
    > div:nth-child(2) {
        width: 100%;
    }
}

@media screen and (max-width: 720px) {
    .form-block__input-wrapper {
        padding-right: 40px;
    }
}

@media screen and (max-width: 650px) {
    .header-contacts {
        flex-wrap: wrap;
        gap: 20px;
    }

    .form-block__input-wrapper {
        padding-right: 0px;
    }

    .footer-contacts {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media screen and (max-width: 576px) {
    .form-block__wrapper {
        padding-right: 100px;
    }
}

@media screen and (max-width: 450px) {
    .form-block__wrapper {
        padding: 46px 30px;
    }
}

.contact__part__full {
    width: 100%;
    margin-bottom: 20px;
}

.form-block__input__number {
    width: 50px;
}

.alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #1d643b;
    background-color: #d7f3e3;
    border-color: #c7eed8;
}

.alert-success hr {
    border-top-color: #b3e8ca;
}

.alert-success .alert-link {
    color: #123c24;
}

.alert-dismissible {
    padding-right: 3.85rem;
}

.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 0.75rem 1.25rem;
    color: inherit;
}

.semi_container {
    width: 50%;
    text-align: center;
    margin: 0 auto 25px;
}


/*MODAL BOOTSTRAP*/

.modal-container {
    position: relative;
    max-width: max-content;
}

.modal-container__btn {
    padding: 0 25px;
}

.modal-container .modal-backdrop {
    height: 0;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.2s ease-in;
}

.modal-container #modal-toggle {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.modal-container #modal-toggle:checked {
    width: 100vw;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9;
    opacity: 0;
}

.modal-container #modal-toggle:checked ~ .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
    width: 100vw;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9;
    pointer-events: none;
    opacity: 1;
}

.modal-container #modal-toggle:checked ~ .modal-backdrop .modal-content {
    background-color: #fff;
    max-width: 400px;
    width: 100%;
    padding: 10px 30px;
    position: absolute;
    left: calc(50% - 200px);
    top: 5%;
    border-radius: 4px;
    z-index: 999;
    pointer-events: auto;
    cursor: auto;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.6);
}

@media (max-width: 400px) {
    .modal-container #modal-toggle:checked ~ .modal-backdrop .modal-content {
        left: 0;
    }
}

.modal-container #modal-toggle:checked ~ .modal-backdrop .modal-content .modal-close {
    color: #666;
    position: absolute;
    right: 2px;
    top: 0;
    padding-top: 7px;
    background: #fff;
    font-size: 16px;
    width: 25px;
    height: 28px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}

.modal-container #modal-toggle:checked ~ .modal-backdrop .modal-content .modal-close.button {
    top: initial;
    bottom: 20px;
    right: 20px;
    background: #4CAF50;
    color: #fff;
    width: 50px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: normal;
}

.modal-container #modal-toggle:checked ~ .modal-backdrop .modal-content .modal-close.button:hover {
    color: #fff;
    background: #1E824C;
}

.modal-container #modal-toggle:checked ~ .modal-backdrop .modal-content .modal-close:hover {
    color: #333;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
