:root {
    --accent: #5E695B;
    --black: #141414;
    --dark-green: #051914;
    --green: #1A2723;
    --light: #E0E0D3;
    --gray: #848480;
    --error: #FF2204;
    --general-font: "Manrope", sans-serif, system-ui;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--general-font);
    background: #ffffff;
    font-size: 20px;
    font-weight: 400;
    color: var(--black);
    margin: 0;
    padding: 0;
    position: relative;
}

*,
*:after,
*:before {
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
    padding: 0;
    line-height: 1.2em;
}

.--mobile {
    display: none !important;
}

strong, b {
    font-weight: 700;
}

.btn {
    color: var(--dark-green);
    text-align: center;
    font-size: 16px;
    border: 1px solid var(--light);
    background-color: var(--light);
    width: 190px;
    display: block;
    padding: 12px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: .3s;
}

.btn:hover {
    background-color: transparent;
    color: var(--light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light);
}

.btn-secondary:hover {
    background-color: var(--light);
    color: var(--dark-green);
}

.btn-support {
    background-color: var(--dark-green);
    color: var(--light);
}

.btn-support:hover {
    background-color: transparent;
    color: var(--dark-green);
    border-color: var(--dark-green);
}

.btn-link {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.8em;
    padding: 12px 0;
    text-align: left;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.container {
    max-width: 1280px;
    width: 95%;
    margin: 0 auto;
}

.mb-8 {
    margin-bottom: 8px;
}

/* Header */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
}

.header {
    background-color: var(--green);
    padding: 15px 0;
}

.header__wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
}

.header__logo {
    display: flex;
}

.header__logo img {
    object-fit: contain;
}

.header__menuWrapper {
    max-width: 408px;
    width: 100%;
}

.header__burger {
    display: none;
}

.header__menuWrapper .menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

.header__menuWrapper .menu .menu-item {
    width: 100%;
}

.header__menuWrapper .menu .menu-item a {
    color: #FFFFFF;
    font-size: 14px;
    text-decoration: none;
}

.header__menuWrapper .menu .menu-item-has-children {
    position: relative;
}

.header__menuWrapper .menu .menu-item-has-children > a {
    pointer-events: none;
}

.header__menuWrapper .menu .menu-item-has-children:before {
    content: '';
    position: absolute;
    width: 6px;
    height: 10px;
    top: 10px;
    right: 10px;
    background-image: url("../images/icons/carret.svg");
}

.header__menuWrapper .menu .menu-item-has-children:hover > .sub-menu {
    height: auto;
    padding: 24px 16px;
}

.header__menuWrapper .menu .sub-menu {
    position: absolute;
    height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    background: #FFF;
    width: 400px;
}

.header__menuWrapper .menu .sub-menu > li {
    display: flex;
}

.header__menuWrapper .menu .sub-menu > li a {
    color: var(--black);
    font-size: 16px;
    white-space: nowrap;
    display: flex;
    overflow: hidden;
    gap: 8px;
    padding: 12px 10px;
}

.header__menuWrapper .menu .sub-menu > li a:before {
    content: '';
    background-image: url("../images/icons/menu_arrow_right.svg");
    width: 24px;
    height: 24px;
    margin-left: -32px;
    transition: .3s;
}

.header__menuWrapper .menu .sub-menu > li a:hover:before {
    margin-left: 0;
}

.header__contacts {
    display: flex;
    gap: 80px;
    list-style: none;
}

.header__contacts li a {
    color: #767d7b;
    font-size: 14px;
    text-decoration: none;
    display: block;
}

/* General */

.section__titleWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.section__preTitle {
    font-size: 14px;
}

.section__title {
    font-size: 36px;
    max-width: 620px;
    text-align: center;
}

/* Footer */

.footer {
    padding: 80px 0 72px;
    background-color: #F8F7F6;
}

.footer__inner {
    display: flex;
    gap: 32px;
}

.footer__logo {
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer__logo a {
    color: var(--dark-green);
    font-size: 96px;
    line-height: 70%;
    text-decoration: none;
}

.footer__copyright {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.8em;
}

.footer__column {
    width: 16.66%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__columnLabel {
    font-size: 16px;
    line-height: 1.8em;
}

.footer__column ul {
    list-style: none;
    display: flex;
    gap: 16px;
    flex-direction: column;
}

.footer__column ul li {
    display: flex;
}

.footer__column ul li span,
.footer__column ul li a {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.8em;
    text-decoration: none;
    transition: .3s;
}

.footer__column ul li a:hover {
    color: var(--black);
}

ul.footer__socialList {
    flex-direction: row;
    gap: 8px;
}

.footer__socialItem a {
    width: 32px;
    height: 32px;
}

.footer__socialItem a img {
    width: 100%;
}

/* Form */

.form__wrapper {
    border-radius: 4px;
    background: #FFFFFF;
    padding: 32px 54px 56px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form__label label br {
    display: none;
}

.form__label label span {
    font-size: 14px;
    line-height: 1.8em;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form__label input,
.form__label textarea {
    border: 0;
    border-bottom: 1px solid #D9D9D9;
    padding: 8px 0;
    height: 45px;
    width: 100%;
    resize: none;
    font-size: 16px;
    line-height: 1.8em;
    font-family: var(--general-font);
}

.form__label select {
    border: 1px solid #D9D9D9;
    padding: 8px 0;
    height: 45px;
    width: 100%;
    resize: none;
    font-size: 16px;
    line-height: 1.8em;
}

.form__label input:hover,
.form__label input:focus,
.form__label input:active,
.form__label textarea:hover,
.form__label textarea:focus,
.form__label textarea:active {
    border-color: #848480;
    outline: none !important;
}

.form__label input.wpcf7-not-valid,
.form__label textarea.wpcf7-not-valid {
    border-color: var(--error);
}

.form__label .wpcf7-not-valid-tip {
    color: var(--error);
    font-size: 12px;
    line-height: normal;
}

.form__label input::placeholder {
    color: #D9D9D9;
}

.form__label textarea::placeholder {
    color: #D9D9D9;
}

.form__btn {
    display: flex;
    margin-top: 40px;
    width: 100%;
}

.form__btn > p {
    width: 100%;
}

.form__btn .btn {
    width: 100%;
}

.form__btn .wpcf7-spinner,
.wpcf7-response-output {
    display: none !important;
}

/* Modal */

.modal {
    display: none;
    position: fixed;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    z-index: 200;
    background: #F0F0F0;
    width: 100vw;
    height: 100vh;
}

.modal.active {
    display: flex;
}

.modal__close {
    cursor: pointer;
    position: absolute;
    top: 64px;
    right: 85px;
    display: flex;
}

.modal__wrapper {
    width: 410px;
}

.modal__title {
    font-size: 24px;
    line-height: 1.5em;
    margin-bottom: 54px;
    text-align: center;
}

.modal__contacts {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.modal__contacts-text {
    font-size: 14px;
    line-height: 1.8em;
    text-align: center;
}

.modal__contacts-email {
    color: var(--accent);
    font-size: 14px;
    line-height: 1.8em;
    text-decoration: none;
    text-align: center;
}

.modal__contacts-email:hover {
    color: var(--green);
}

.modal__form {
    display: none;
    flex-direction: column;
    align-items: center;
}

.modal__form.active {
    display: flex;
}

.modal__img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 30px;
}

.modal__img img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Form thanks */

.form__thanks {
    position: absolute;
    top: 0;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 44px;
    padding: 32px;
}

.form__thanks.active {
    display: flex;
}

.form__thanks-img {
    height: 116px;
    width: 116px;
    border-radius: 50%;
    background-color: #D9D9D9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form__thanks-img img {
    width: 52px;
    height: 52px;
}

.form__thanks-title {
    line-height: 1.8em;
    text-align: center;
}

@media (max-width: 1280px) {
    .footer__logo a {
        font-size: 64px;
    }
}

@media (max-width: 1024px) {

    .--mobile {
        display: block !important;
    }

    .header__contacts {
        display: none;
    }

    .header__wrapper .btn-modalForm {
        display: none;
    }

    .header__menuWrapper .menu .sub-menu {
        right: 0;
    }

    .footer {
        padding: 40px 0 64px;
    }

    .footer__inner {
        flex-direction: column;
        max-width: 250px;
        margin: 0 auto;
    }

    .footer__logo .footer__copyright {
        display: none;
    }

    .footer__logo,
    .footer__column {
        width: 100%;
        max-width: 100%;
    }

    .footer__logo a {
        font-size: 36px;
    }

    ul.footer__socialList {
        gap: 24px;
    }

    .footer__copyright {
        margin: 0 -40px;
        text-align: center;
    }

}

@media (max-width: 768px) {

    .header__menuWrapper {
        display: flex;
        justify-content: flex-end;
    }

    .menu-header-menu-container {
        position: fixed;
        width: 100%;
        left: 0;
        top: 90px;
        display: none;
        background: #848480;
        height: calc(100vh - 90px);
        flex-direction: column;
    }

    .menu-header-menu-container.show {
        display: flex;
    }

    .menu-header-menu-container .menu {
        flex-direction: column;
        padding: 24px;
        background: #FFFFFF;
        gap: 0;
    }

    .header__menuWrapper .menu .menu-item {
        padding: 8px;
    }

    .header__menuWrapper .menu .menu-item-has-children:before {
        background-image: url("../images/icons/carret_mob.svg");
        width: 16px;
        height: 16px;
        top: 18px;
        background-repeat: no-repeat;
        background-position: center;
    }

    .header__menuWrapper .menu .menu-item-has-children:before {
        background-image: url("../images/icons/carret_mob.svg");
        width: 16px;
        height: 16px;
        top: 18px;
        background-repeat: no-repeat;
        background-position: center;
    }

    .header__menuWrapper .menu .menu-item-has-children:hover > .sub-menu {
        position: relative;
        padding: 8px 4px;
        height: auto;
        margin: 4px -8px -8px;
        width: calc(100% + 16px);
        border-radius: 0;
    }

    .header__menuWrapper .menu .menu-item-has-children:hover {
        background-color: #F0F0F0;
    }

    .header__menuWrapper .menu .menu-item-has-children:hover > .sub-menu li {
        padding: 0;
    }

    .header__menuWrapper .menu .menu-item a {
        color: #1A2723;
        font-size: 24px;
        line-height: 1.5em;
    }

    .header__burger {
        display: flex;
        justify-content: flex-end;
    }

    .header__burger #close_menu {
        display: none;
    }

    .header__burger.active #close_menu {
        display: block;
    }

    .header__burger.active #burger {
        display: none;
    }

    .modal__wrapper {
        max-height: 90vh;
        overflow-y: scroll;
        padding: 0 10px;
    }

    .modal__close {
        top: 10px;
        right: 10px;
    }

}

@media (max-width: 480px) {

    .footer__copyright {
        margin: 0 -20px;
    }

    .header__menuWrapper .menu .sub-menu > li a {
        white-space: normal;
    }

}
