﻿html {
    font-size: 10px;
    font-family: var(--font-sans);
    font-weight: 400;
    scroll-behavior: smooth;
    color: var(--black-color);
}

body {
    position: relative;
    background-color: #f9fafc;
    font-size: 1.7rem;
    overflow-x: hidden;
}

header.nav-header {
    background-color: #fff;
    box-shadow: 0 1px 20px 4px rgba(0,0,0,.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 3;
}

    header > nav {
        align-items: center;
        display: flex;
        height: 80px;
        justify-content: space-between;
        margin: 0 auto;
        max-width: var(--max-container-width);
        padding: 0 15px;
        gap: 15px;
        overflow: hidden;
    }

        header > nav .logo-wrapper {
            flex: 1 1 auto;
        }

            header > nav .logo-wrapper img {
                max-width: 140px;
                width: 100%;
            }

        header > nav .head-links {
            display: flex;
            flex: 1 1 auto;
            justify-content: space-evenly;
            /*flex: 0.3 1 auto;*/
            /*gap: 30px;*/
        }

    header > .menu-mobile .telegram-img {
        width: 24px;
        height: 24px;
        filter: invert(19%) sepia(2%) saturate(1410%) hue-rotate(177deg) brightness(91%) contrast(91%);
    }

    header > nav .log-in {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 0 1 auto;
    }

    header > nav #sign-in-head-btn {
        padding: 0.7rem 1.5rem;
    }

    header > nav #sign-up-head-btn {
        padding: 1.2rem 2rem;
        transition: unset;
    }

main {
    margin: 80px auto 100px;
}

footer.main-footer {
    background-color: #ebebeb;
}

    footer > .footer-information {
        display: flex;
        justify-content: space-between;
        padding: 40px 15px;
        max-width: var(--max-container-width);
        margin: 0 auto;
    }

        footer > .footer-information .links {
            display: flex;
            flex-direction: column;
        }

        footer > .footer-information > .licenses, footer > .footer-information > .contacts {
            color: var(--grey-color);
        }

#mobile-menu-toggle {
    display: none;
}

.mobile-menu-toggle-button {
    display: none;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

    .mobile-menu-toggle-button * {
        font-size: 4rem;
    }

    .mobile-menu-toggle-button .close {
        display: none;
    }

.menu-mobile {
    overflow: hidden;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows ease 400ms;
}

.head-links-mobile {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
    border-top: 1px solid var(--grey-border);
    margin-top: 8px;
    padding: 24px 20px;
}

    .head-links-mobile a.log-in {
        width: 160px;
        justify-content: start;
        gap: 28px;
        margin-bottom: 6px;
    }

.page-container, .page-container-limited {
    padding: 70px 15px 0;
}

.page-container-limited {
    max-width: var(--max-container-width);
    margin-inline: auto;
    text-align: center;
}

.cookies-consent-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: var(--white-color);
    box-shadow: 0 0 20px 4px rgba(0,0,0,.05);
    width: 100%;
    z-index: 100;
}

.cookies-consent-container {
    max-width: var(--max-container-width);
    margin-inline: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    row-gap: 25px;
    column-gap: 40px;
    padding: 25px;
}

    .cookies-consent-container p {
        font-weight: 300;
        max-width: 800px;
    }

.fixed-telegram-link {
    display: block;
    position: fixed;
    bottom: 80px;
    right: 60px;
    z-index: 2;
}

    .fixed-telegram-link > img {
        width: 80px;
        height: 80px;
        border-radius: 100px;
        box-shadow: 0 1px 3px 0 rgba(0,0,0,.33);
        filter: hue-rotate(20deg);
    }

        .fixed-telegram-link > img:hover {
            filter: hue-rotate(7deg);
        }

    .fixed-telegram-link > .fixed-telegram-link__hover {
        position: absolute;
        right: 0;
        top: 20px;
        margin-right: 90px;
        width: max-content;
        border-radius: 24px;
        padding: 8px 16px;
        color: white;
        background-color: rgba(0, 0, 0, .78);
        display: none;
    }

    .fixed-telegram-link:has(> img:hover) > .fixed-telegram-link__hover {
        display: block;
    }

@media (max-width: 1000px) {
    header {
        border-radius: 0 0 10px 10px;
    }

    .mobile-menu-toggle-button {
        display: inline-flex;
        padding: 7px;
        flex: 0.1 1 auto;
    }

    #mobile-menu-toggle:checked ~ .mobile-menu-toggle-button .open {
        display: none;
    }

    #mobile-menu-toggle:checked ~ .mobile-menu-toggle-button .close {
        display: inline-block;
    }

    header > nav .head-links {
        display: none;
    }

    header:has(#mobile-menu-toggle:checked) .menu-mobile {
        grid-template-rows: 1fr;
    }

    .page-container, .page-container-limited {
        padding: 60px 0 0;
    }
}

@media (max-width: 800px) {
    footer > .footer-information {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

        footer > .footer-information * {
            align-items: center;
            text-align: center;
        }
}

@media (max-width: 500px) {
    html {
        font-size: 9px;
    }

    #sign-in-head-btn {
        display: none;
    }

    header > nav {
        height: 70px;
    }

        header > nav #sign-up-head-btn {
            padding: 1rem 1.8rem;
        }

        header > nav .logo-wrapper img {
            max-width: 120px;
        }

    main {
        margin-top: 70px;
    }

    .account-head-links-mobile {
        display: block;
    }

    .cookies-consent-container {
        flex-direction: column;
    }

    .fixed-telegram-link {
        bottom: 45px;
        right: 30px;
    }

        .fixed-telegram-link > img {
            width: 60px;
            height: 60px;
        }

        .fixed-telegram-link > .fixed-telegram-link__hover {
            top: 12px;
            margin-right: 70px;
            padding: 6px 14px;
        }
}
