:root {
    --color-text-primary: #606060;
    --color-bg-white: rgba(255, 255, 255, 0.65);
    --color-bg-green-light: #80B33D;
    --color-bg-blue: #009BD0;
    --color-button-light-blue: rgba(135, 206, 250, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text-primary);
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(to right, var(--color-bg-green-light) 0%, var(--color-bg-blue) 20%, var(--color-bg-blue) 80%, var(--color-bg-green-light) 100%);
    overflow-x: hidden;
}

.page__background-image {
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    bottom: 0;
    background-image: url('./img/background.png');
    background-repeat: repeat;
    background-size: 1000px auto;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.header__top {
    font-size: 14px;
    color: var(--color-text-primary);
}

.nav {
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 84px;
}

.nav__logo {
    display: flex;
    align-items: center;
    background-color: var(--color-bg-white);
    padding: 8px 15px;
    border-radius: 20px;
    position: relative;
    width: 390px;
    height: 113px;
}

.nav__logo-image {
    height: 100%;
    width: auto;
    display: block;
}

.nav__menu {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.nav__button {
    background-color: var(--color-bg-white);
    border: none;
    width: 232px;
    height: 113px;
    padding: 0;
    border-radius: 20px;
    font-size: 32px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
}

.nav__button_active::before {
    content: '';
    display: block;
    width: 6px;
    height: 32px;
    background-color: #DB2E2E;
    margin-right: 8px;
}


.header__bottom {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.header__burger span {
    width: 100%;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

.header__mobile-top {
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, var(--color-bg-green-light) 0%, var(--color-bg-blue) 20%, var(--color-bg-blue) 80%, var(--color-bg-green-light) 100%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu_active {
    transform: translateX(0);
}

.mobile-menu__header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 60px;
}

.mobile-menu__logo {
    background-color: var(--color-bg-white);
    padding: 8px 15px;
    border-radius: 10px;
}

.mobile-menu__close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-menu__link {
    font-size: 24px;
    color: white;
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 410px) {
    .header {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
    }

    .header__mobile-top {
        display: block;
        margin-top: 20px;
    }

    .header__burger {
        display: flex;
    }

    .nav {
        order: 2;
        padding: 10px 0;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        width: auto;
    }

    .nav__menu {
        display: none;
    }

    .nav__logo {
        width: auto;
        height: auto;
        padding: 5px 10px;
    }

    .nav__logo-image {
        height: 30px;
    }

    .header__bottom {
        order: 3;
        margin-top: 0;
        width: auto;
        justify-content: flex-end;
    }

    .language-selector {
        width: auto;
    }

    .language-selector__current {
        padding: 8px 12px;
        font-size: 12px;
    }

    .main {
        padding-top: 20px;
    }

    .main__content {
        padding: 20px;
        border-radius: 15px;
    }

    .main__title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .main__paragraph {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .footer {
        margin: 20px 0;
    }

    .footer__copyright {
        font-size: 14px;
    }
}

.language-selector {
    position: relative;
    width: 232px;
}

.language-selector__current {
    background-color: var(--color-bg-white);
    border-radius: 10px;
    padding: 19px 16px;
    color: var(--color-text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    list-style: none;
}

.language-selector__current::-webkit-details-marker {
    display: none;
}

.language-selector__arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #606060;
    border-bottom: 2px solid #606060;
    transform: rotate(45deg);
    margin-bottom: 3px;
    transition: transform 0.3s;
}

.language-selector__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 12px;
    margin-top: 10px;
    padding: 5px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-height: 160px;
    overflow-y: auto;
    z-index: 100;
}

.language-selector__option {
    padding: 10px 20px;
    cursor: pointer;
    color: var(--color-text-primary);
    font-size: 16px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}

.language-selector__option:hover {
    background-color: #f5f5f5;
}


.main {
    flex: 1;
    position: relative;
    padding: 40px 0 0 0;
    display: flex;
    flex-direction: column;
}

.main__content {
    position: relative;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 40px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.main__title {
    font-size: 32px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 40px;
}

.main__text {
    line-height: 1.8;
    flex: 1;
}

.main__paragraph {
    font-size: 24px;
    color: #333333;
    margin-bottom: 40px;
}


.footer {
    padding: 15px 20px;
    background-color: var(--color-bg-white);
    border-radius: 20px;
    margin: 40px 0;
}

.footer__copyright {
    color: var(--color-text-primary);
    font-size: 18px;
}