@font-face {
    font-family: 'Gilroy';
    src: url(../fonts/Gilroy-Regular.woff2);
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url(../fonts/Gilroy-Medium.woff2);
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Gilroy';
    src: url(../fonts/Gilroy-SemiBold.woff2);
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'icon';
    src: url(../fonts/icon.woff2);
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
:root {
    --main-bg: #fff;
    --bg-2: #fafafa;
    --text: #5c6663;
    --border: #ebedec;
    --text-2: #9ba5a3;
    --text-3: #226f6b;
    --title: #1a1e1d;
    --green-bg: #009b97;
    --green-bg-2: #14524f;
    --green-bg-3: #edfffa;
    --green-soft-bg: #effffa;
    --green-text: #00807c;
    --green-text-2: #d9fff4;
    --green-link: #226f6b;
    --green-accent: #a8cdc3;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: 0;
    font-family: 'Gilroy', sans-serif;
    color: var(--text);
    font-size: 16px;
    font-weight: 400;
}
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
    min-height: 100dvh;
}
body {
    position: relative;
    min-height: 100dvh;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: var(--main-bg);
}
a {
    text-decoration: none;
    transition: .3s linear;
}
img {
    display: block;
    width: 100%;
    object-fit: cover;
}
input,
button {
    border-radius: 0;
    touch-action: manipulation;
    appearance: none;
}
label, button {
    cursor: pointer;
    appearance: none;
    border: none;
}
button {
    cursor: pointer;
}
textarea {
    appearance: none;
    resize: none;
    overflow: auto;
    border: none;
}
input[type="submit"] {
    border: none;
    cursor: pointer;
}
input:-webkit-autofill {
    -webkit-box-shadow: inset 0 0 0 50px var(--main-bg) !important;
    box-shadow: inset 0 0 0 50px var(--main-bg) !important;
}
input.error {
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(to right, var(--error-text-2), var(--error-text-2), var(--error-text-2)) border-box;
}
input::placeholder, textarea::placeholder {
    opacity: 1;
    transition: opacity 0.3s ease;
}
input:focus::placeholder, textarea:focus::placeholder {
    opacity: 0; 
}
*::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}
*::-webkit-scrollbar-track {
    background: var(--main-bg);
}
*::-webkit-scrollbar-thumb {
    border-radius: 4px;
    border: 2px solid var(--main-bg);
    background-color: var(--green-bg-2);
}
.wrapper {
    width: 100%;
    max-width: 1216px;
    margin: 0 auto;
}
.btn, .btn-white {
    font-weight: 600;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: 0%;
    background: var(--green-bg);
    border: 1px solid var(--green-bg);
    color: var(--main-bg);
    padding: 12px 24px;
    white-space: nowrap;
    box-shadow: 0px 1px 2px 0px #0A0D120D, 0px -2px 0px 0px #0A0D120D inset;
    border-radius: 999px;
    text-align: center;
    transition: .3s;
}
.btn-white {
    background: var(--main-bg);
    color: var(--green-text);
    box-shadow: unset;
}
header {
    padding-top: 12px;
    background: var(--bg-2);
    z-index: 999;
    .wrapper {
        padding: 16px;
        border-radius: 40px;
        background: var(--main-bg);
        display: flex;
        align-items: center;
        gap: 16px;
        position: relative;
        .logo {
            max-width: 142px;
            margin-right: 24px;
        }
        .menu {
            display: flex;
            margin-right: auto;
        }
        nav {
            display: flex;
            align-items: center;
            .ws-menu {
                display: grid;
                grid-auto-flow: column;
                gap: 24px;
                .item {
                    a, p {
                        font-weight: 600;
                        line-height: 20px;
                        color: var(--title);
                        transition: 0.3s;
                        position: relative;
                        z-index: 2;
                        user-select: none;
                    }
                }
                >.item:has(.sub-menu) {
                    >p {
                        transition: 0.3s;
                        display: flex;
                        align-items: center;
                        gap: 4px;
                        cursor: pointer;
                        &::after {
                            font-family: 'icon';
                            content: '\e001';
                            font-size: 10px;
                            transition: 0.3s;
                            transform: rotate(0);
                        }
                    }
                    >.sub-menu {
                        position: absolute;
                        width: 100%;
                        left: 0;
                        right: 0;
                        top: 0;
                        opacity: 0;
                        z-index: -2;
                        transition: 0.3s;
                        background: var(--main-bg);
                        border-radius: 40px;
                        padding: 16px;
                        display: grid;
                        grid-template-columns: repeat(4, 1fr);
                        gap: 8px;
                        .item {
                            display: grid;
                            grid-template-columns: 48px 1fr;
                            align-items: start;
                            grid-auto-rows: auto;
                            border-radius: 32px;
                            padding: 12px;
                            gap: 3px 12px;
                            background: var(--main-bg);
                            transition: 0.3s;
                            img {
                                width: 48px;
                                grid-area: 1/1/3/2;
                            }
                            p {
                                font-size: 14px;
                                font-weight: 400;
                                line-height: 20px;
                                color: var(--text);
                            }
                        }
                    }
                }
                .item.active {
                    >p {
                        color: var(--green-text);
                        &::after {
                            transform: rotate(180deg);
                        }
                    }
                    >.sub-menu {
                        opacity: 1;
                        z-index: 1;
                        top: calc(100% + 12px);
                    }
                }
            }
        }
        .lang {
            width: 93px;
            height: 38px;
            padding: 4px;
            border-radius: 999px;
            display: grid;
            grid-template-columns: repeat(2,1fr);
            background: var(--bg-2);
            cursor: pointer;
            position: relative;
            &::before {
                content: '';
                position: absolute;
                width: 42px;
                height: 30px;
                background: var(--main-bg);
                border-radius: 999px;
                top: 4px;
                left: 4px;
                transform: translateX(0);
                transition: 0.3s;
            }
            &:has(label + label input:checked)::before {
                transform: translateX(100%);
            }
            label {
                padding: 6px 12px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-weight: 600;
                font-size: 13px;
                line-height: 100%;
                color: var(--text-2);
                z-index: 2;
                transition: 0.3s;
                &:has(input:checked) {
                    color: var(--green-text);
                }
                input {
                    position: absolute;
                    z-index: -11;
                    left: 0;
                    top: 0;
                    opacity: 0;
                }
            }
        }
        .burger {
            display: none;
            justify-content: center;
            align-items: center;
            width: 40px;
            height: 40px;
            position: relative;
            overflow: hidden;
            background: var(--main-bg);
            transition: 0.3s;
            .icon {
                pointer-events: none;
                width: 18px;
                height: 12px;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: space-between;
                &::before,
                &::after {
                    content: '';
                }
                &::before,
                &::after,
                >span {
                    width: 100%;
                    height: 2px;
                    background-color: #434B49;
                    transition: 0.3s;
                }
            }
            &.open {
                .icon {
                    >span {
                        background: rgba(0, 0, 0, 0);
                    }
                    &::before {
                        transform: rotateZ(-45deg) translate(-3px, 4px);
                    }
                    &::after {
                        transform: rotateZ(45deg) translate(-3px, -4px);
                    }
                }
            }
        }

    }
}
footer {
    padding: 64px 0;
    background: var(--green-bg-2);
    display: flex;
    flex-direction: column;
    gap: 64px;
    margin-top: auto;
    .top {
        display: flex;
        justify-content: space-between;
        .left {
            display: flex;
            flex-direction: column;
            gap: 16px;
            max-width: 160px;
            .social {
                display: grid;
                grid-template-columns: repeat(3, 40px);
                gap: 8px;
                a {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    aspect-ratio: 1/1;
                    &::before {
                        font-family: 'icon';
                        color: var(--green-accent);
                        transition: .3s linear;
                    }
                    &.vk::before {
                        content: '\e005';
                        font-size: 27px;
                    }
                    &.max::before {
                        content: '\e004';
                        font-size: 23px;
                    }
                    &.tg::before {
                        content: '\e003';
                        font-size: 22px;
                    }
                }
            }
        }
        .ws-menu {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 40px;
            max-width: 832px;
            width: 100%;
            .item {
                display: flex;
                flex-direction: column;
                gap: 16px;
                p {
                    font-size: 14px;
                    line-height: 20px;
                    color: rgba(255, 255, 255, 0.5);
                    font-weight: 500;
                }
                &:first-child {
                    p {
                        color: var(--text-2);
                    }
                }
                .sub-menu {
                    display: flex;
                    flex-direction: column;
                    gap: 11px;
                    a {
                        font-size: 16px;
                        line-height: 24px;
                        font-weight: 500;
                        color: var(--main-bg);
                    }
                }
            }
        }
    }
    .bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--green-text);
        padding-top: 32px;
        p {
            font-size: 14px;
            line-height: 20px;
            color: var(--green-text-2);
        }
        .lang {
            width: 93px;
            height: 38px;
            padding: 4px;
            border-radius: 999px;
            display: grid;
            grid-template-columns: repeat(2,1fr);
            background: var(--green-link);
            cursor: pointer;
            position: relative;
            &::before {
                content: '';
                position: absolute;
                width: 42px;
                height: 30px;
                background: var(--main-bg);
                border-radius: 999px;
                top: 4px;
                left: 4px;
                transform: translateX(0);
                transition: 0.3s;
            }
            &:has(label + label input:checked)::before {
                transform: translateX(100%);
            }
            label {
                padding: 6px 12px;
                display: flex;
                align-items: center;
                justify-content: center;
                font-weight: 600;
                font-size: 13px;
                line-height: 100%;
                color: var(--main-bg);
                z-index: 2;
                transition: 0.3s;
                &:has(input:checked) {
                    color: var(--green-text);
                }
                input {
                    position: absolute;
                    z-index: -11;
                    left: 0;
                    top: 0;
                    opacity: 0;
                }
            }
        }
    }
}
@media screen and (max-width: 1340px) {
    .wrapper {
        width: calc(100% - 80px);
    }
}
@media screen and (max-width: 1279px) {
    .wrapper {
        width: calc(100% - 44px);
    }
    .btn, .btn-white {
        padding: 12px 20px;
    }
    header {
        .wrapper {
            display: grid;
            grid-template-columns: 1fr 93px 40px;
            gap: 0 12px;
            grid-template-rows: 48px auto 74px;
            transition: 0.5s;
            will-change: max-height;
            max-height: 80px;
            overflow: hidden;
            .logo {
                grid-area: 1/1/2/2;
                order: 1;
            }
            .menu {
                grid-column: 1/-1;
                order: 4;
                overflow: hidden;
                flex-direction: column;
                width: 100%;
            }
            nav {
                margin-top: 44px;
                margin-bottom: 44px;
                width: 100%;
                .ws-menu {
                    width: 100%;
                    grid-auto-flow: unset;
                    grid-template-columns: auto auto auto auto auto auto;
                    grid-template-rows: 20px 1fr;
                    max-height: 20px;
                    transition: 0.5s;
                    gap: 0 24px;
                    >.item {
                        display: flex;
                        align-items: center;
                        justify-content: center;
                    }
                    > .item:has(.sub-menu)  {
                        display: contents;
                        >p {
                            justify-content: center;
                        }
                        >.sub-menu {
                            position: static;
                            grid-column: 1/-1;
                            order: 7;
                            overflow: hidden;
                            padding: 0;
                            grid-template-columns: repeat(auto-fill, minmax(343px, 1fr));
                            opacity: 1;
                            border-radius: 0;
                            transition: 0.5s;
                            z-index: unset;
                        }
                    }
                    &:has(> .item.active ) {
                        max-height: 900px;
                        gap: 24px;
                        > .item.active {
                            >.sub-menu {
                                opacity: 1;
                                z-index: unset;
                            }
                        }
                    }
                }
            }
            .lang {
                margin-left: auto;
                order: 2;
            }
            .burger {
                display: flex;
                order: 3;
            }
            .login {
                grid-column: 1/-1;
                display: flex;
                align-items: center;
                justify-content: center;
                height: 100%;
                width: 100%;
                order: 5;
                border-top: 1px solid #EBEDEC;
                position: relative;
                &::before, &::after {
                    content: '';
                    position: absolute;
                    width: 16px;
                    height: 1px;
                    background: #EBEDEC;
                    top: -1px;
                }
                &::before {
                    right: 100%;
                }
                &::after {
                    left: 100%;
                }
                .btn {
                    width: 100%;
                    margin-top: 14px;
                }
            }
            &:has(.burger.open) {
                max-height: 900px;
            }
        }
    }
    footer {
        padding: 40px 0;
        .top {
            .ws-menu {
                grid-template-columns: repeat(2, 1fr);
                gap: 32px;
                max-width: 440px;
            }
        }
        .bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid var(--green-text);
            padding-top: 32px;
            p {
                font-size: 12px;
            }
        }
    }
}
@media screen and (max-width: 767px) {
    .wrapper {
        width: calc(100% - 32px);
    }
    header {
        .wrapper {
            nav {
                margin-top: 26px;
                margin-bottom: 8px;
                .ws-menu {
                    grid-template-columns: 100%;
                    grid-template-rows: repeat(auto-fit, minmax(48px, max-content));
                    gap: 4px;
                    grid-auto-rows: minmax(48px, max-content);
                    grid-auto-flow: row dense; 
                    max-height: unset;
                    gap: 4px;
                    &:has(> .item.active ) {
                        gap: 4px;
                    }
                    .item {
                        justify-content: flex-start;
                    }
                    >.item:has(.sub-menu) {
                        display: flex;
                        flex-direction: column;
                        overflow: hidden;
                        transition: 0.3s;
                        max-height: 48px;
                        &.active {
                            max-height: 500px;
                        }
                        >p {
                            display: flex;
                            min-height: 48px;
                            width: 100%;
                            justify-content: space-between;
                        }
                        >.sub-menu {
                            grid-template-columns: repeat(auto-fill, minmax(259px, 1fr));
                            .item {
                                padding: 12px 0;
                            }
                        }
                    }
                }
            }
        }
    }
    footer {
        padding: 32px 0;
        .top {
            flex-direction: column;
            gap: 24px;
            .left {
                gap: 12px;
            }
            .ws-menu {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 24px;
                max-width: 100%;
                .item {
                    &:nth-child(3) {
                        grid-column: 1/-1;
                    }
                }
            }
        }
        .bottom {
            gap: 32px;
        }
    }
}
@media (hover:hover) {
    .btn:hover, .btn-white:hover {
        background: var(--green-bg-2);
        border-color: var(--green-bg-2);
    }
    .btn-white:hover {
        color: var(--main-bg);
    }
    header {
        .wrapper {
            nav {
                .ws-menu {
                    >.item {
                        >a:hover, >p:hover {
                            color: var(--green-text);
                        }
                        >.sub-menu {
                            >.item:hover {
                                background: var(--bg-2);
                            }
                        }
                    }
                }
            }
        }
    }
    footer .top {
        .left .social a:hover::before {
            color: var(--green-text-2);
        }
        .ws-menu .item .sub-menu a:hover {
            color: var(--green-text-2);
        }
    }
}