@import url("fonts.css");


* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;
}

.wrapper {
    min-height: 100vh;
    overflow: clip;
    display: flex;
    flex-direction: column;
}

.wrapper > main {
    flex-grow: 1;
}

body {
    /* max-width: 1280px; */
    margin: 0 auto;
    background-color: #E99635;
    font-family: "Proxima Nova", sans-serif;
}


/* =========================================
   HEADER
========================================= */

.header {
    /* width: 100%; */
    background-color: #FFF500;
}

.header__panel {
    display: flex;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.header__logo {
    display: flex;
}

.button__logo {
    /* margin-left: 100px; */
    margin-top: 5px;
}

.icon_logo {
    height: 50px;
    width: 55px;
    /* object-fit: contain; */
}

.inscription__logo {
    font-size: 20px;
    margin-left: 15px;
    margin-top: 14px;
    color: #C84B30;
    font-family: Comic Sans MS, Comic Sans;
}


/* =========================================
   DESKTOP MENU
========================================= */

.header__rules {
    display: flex;
    margin-left: 150px;
}

.header__rules a {
    padding-left: 30px;
    font-size: 16px;
    margin-top: 23px;
    text-decoration: none;
    /* color: #000; */
}


/* =========================================
   LANGUAGE
========================================= */

.lang-switch {
    margin-left: auto;
    /* margin-right: 100px; */
    display: flex;
    gap: 10px;
    padding: 10px;
}

.lang-switch a {
    padding: 12px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #E46F2E;
    font-weight: bold;
    text-decoration: none;
    color: #faf8f6;
}


/* =========================================
   MAIN
========================================= */

.main {
    width: 100%;
}

.main-form {
    width: 100%;
}

.main-title {
    text-align: center;
    font-size: 32px;
    transform: skew(-12deg, 0);
}

.main-blok {
    /* background-color: #0088cc1e; */
    margin: 0 auto;
    max-width: 1080px;
    border-radius: 24px;
    padding: 20px;
}

.main-title__two {
    font-size: 26px;
    text-align: center;
}

.main-subtitle {
    font-size: 22px;
}

.main-list li {
    font-size: 16px;
}

.main-blok p {
    font-size: 16px;
    line-height: 1.5;
}

.main-list-tabl li {
    font-size: 16px;
}


/* =========================================
   BURGER
========================================= */

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
    margin-right: 30px;
    z-index: 1001;
}

.burger span {
    width: 28px;
    height: 3px;
    background: black;
    margin: 5px 0;
    transition: 0.4s;
}


/* =========================================
   BURGER → X
========================================= */

.burger.active span:nth-child(1) {
    transform:
        rotate(45deg)
        translate(5px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform:
        rotate(-45deg)
        translate(6px, -6px);
}


/* =========================================
   MOBILE MENU
========================================= */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -220px;
    width: 180px;
    height: 100vh;
    background: #e99637d0;
    display: flex;
    flex-direction: column;
    padding: 80px 20px 30px;
    transition: right 0.4s ease;
    z-index: 1000;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu > a {
    margin-bottom: 20px;
    font-size: 18px;
    text-decoration: none;
    color: rgb(246, 242, 242);
}


/* =========================================
   MOBILE LANGUAGE
========================================= */

.mobile-language {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.mobile-language a {
    background: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    color: black;
    margin-bottom: 0;
}


/* =========================================
   OVERLAY
========================================= */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1060px) {
    .header__rules {
        margin-left: 20px;
    }
}

@media (max-width: 770px) {

    /* скрываем desktop */

    .header__rules,
    .lang-switch {
        display: none;
    }

    /* HEADER */

    .header__panel {
        position: relative;
        width: 100%;
        height: 65px;
        display: flex;
        align-items: center;
    }

    /* блок логотипа */

    .header__logo {
        width: 100%;
        height: 65px;
        display: flex;
        align-items: center;
        position: relative;
    }

    /* =====================================
       ЛОГОТИП СЛЕВА
    ===================================== */

    .button__logo {
        position: absolute;
        left: 30px;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        z-index: 2;
    }

    .icon_logo {
        width: 55px;
        height: 45px;
        object-fit: contain;
        display: block;
    }

    /* =====================================
       НАЗВАНИЕ ПО ЦЕНТРУ
    ===================================== */

    .inscription__logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        font-size: 18px;
        text-align: center;
        white-space: nowrap;
        z-index: 1;
    }

    /* =====================================
       БУРГЕР СПРАВА
    ===================================== */

    .burger {
        display: flex;
        position: absolute;
        top: 8px;
        right: 20px;
        margin: 0;
        z-index: 1001;
    }

    /* MAIN */

    .main-blok {
        width: calc(100% - 30px);
        padding: 20px;
    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 530px) {
    body {
        width: 100%;
    }

    /* =====================================
       HEADER
    ===================================== */

    .header__panel {
        position: relative;
        justify-content: center;
        height: 65px;
    }

    /* ЛОГОТИП */

    .button__logo {
        left: 15px;
        margin: 0;
    }

    /* .icon_logo {
        width: 50px;
        height: 42px;
    } */

    /* НАЗВАНИЕ */

    .inscription__logo {
        font-size: 17px;
    }

    /* БУРГЕР */

    .burger {
        position: absolute;
        right: 5px;
        margin-right: 10px;
    }

    /* =====================================
       MAIN
    ===================================== */

    .main-title {
        font-size: 26px;
        padding: 0 15px;
    }

    .main-blok {
        width: calc(100% - 20px);
        padding: 15px;
        border-radius: 18px;
    }

    .main-title__two {
        font-size: 21px;
        line-height: 1.3;
    }

    .main-subtitle {
        font-size: 19px;
        line-height: 1.3;
    }

    .main-blok p {
        font-size: 15px;
        line-height: 1.5;
    }

    .main-list {
        padding-left: 25px;
    }

    .main-list li {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 5px;
    }
}