@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: linear-gradient(90deg, #1381A3, #34426C, #793D85, #D622DD);
    font-family: "Proxima Nova", sans-serif;

}


/* =========================
   HEADER
========================= */

.header {
    width: 100%;
    background-color: #040A33;
    padding: 0 30px;
    box-sizing: border-box;
}

.header__panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1300px;
    min-height: 90px;
    margin: 0 auto;
    position: relative;
}

/* =========================
   ЛОГОТИП
========================= */

.header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0;
}

.button__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.icon_logo {
    display: block;
    width: auto;
    height: 50px;
    object-fit: contain;
}

.icon_logo-tetl {
    display: flex;
    align-items: center;
    margin: 0;
    color: #ffffff;
    font-size: 35px;
    font-weight: 400;
}

.icon_logo-tetl p {
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* =========================
   НАВИГАЦИЯ
========================= */

.header__rules {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    white-space: nowrap;
}

.header__rules a {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 400;
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

.header__rules a:hover {
    color: #ffffff;
}

/* =========================
   ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА
========================= */

.lang-switch {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    padding: 0;
    flex-shrink: 0;
}

.language-menu {
    position: relative;
}

/* КНОПКА ЯЗЫКА */

.language-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 0;
    margin: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.2;
    cursor: pointer;
    list-style: none;
}

.language-btn::-webkit-details-marker {
    display: none;
}

.language-btn::marker {
    content: "";
}

.language-btn img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* =========================
   ВЫПАДАЮЩЕЕ МЕНЮ
========================= */

.language-list {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 230px;
    padding: 10px 0;
    background: #190823;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

/* ПУНКТЫ ЯЗЫКА */

.language-list a {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 25px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

/* КРУГЛЫЕ ФЛАГИ */

.language-list a img {
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* НАВЕДЕНИЕ */

.language-list a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* =========================
   ЯЗЫК В МОБИЛЬНОМ МЕНЮ
========================= */

.mobile-language {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.mobile-language .language-list {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}



/* =========================================
   MAIN
========================================= */

.main {
    width: 100%;
    color: #000000;
}

.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 {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
    margin-right: 30px;
    z-index: 1001;
}

.burger span {
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #1381A3, #34426C, #793D85, #D622DD);
    margin: 5px 0;
    transition: 0.4s;
}


/* =========================
   АНИМАЦИЯ БУРГЕРА
========================= */

.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: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(
        90deg,
        #1381A3,
        #34426C,
        #793D85,
        #D622DD
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 90px 20px 30px;
    box-sizing: border-box;
    overflow-y: auto;
    transition: right 0.4s ease;
    z-index: 1000;
}

/* =========================
   ЛОГОТИП ВВЕРХУ
========================= */

.mobile-menu .button__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    order: -1;
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    margin: 0 0 35px 0;
    padding: 0;
    transform: none;
}

/* ИКОНКА ЛОГОТИПА */

.mobile-menu .icon_logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

/* НАЗВАНИЕ AL TCOINTURK */

.mobile-menu .icon_logo-tetl {
    margin: 0;
    padding: 0;
}

.mobile-menu .icon_logo-tetl p {
    margin: 0;
    font-size: 30px;
    font-weight: 500;
    color: #ffffff;
    transform: none;
}

/* =========================
   ССЫЛКИ МЕНЮ
========================= */

.mobile-menu > a {
    display: block;
    margin-bottom: 20px;
    font-size: 25px;
    text-align: center;
    transform: skew(-12deg, 0);
    text-decoration: none;
    color: #fffdfd;
}

/* =========================
   ЯЗЫК
========================= */

.mobile-menu .mobile-language {
    margin-top: 25px;
    position: relative;
}

/* =========================
   АКТИВНОЕ MOBILE MENU
========================= */

.mobile-menu.active {
    right: 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: 0.3s;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1060px) {
    .header__rules {
        margin-left: 50px;
    }
}

@media (max-width: 770px) {

    .header {
        padding-left: 10px;
    }

    .header__rules,
    .lang-switch {
        display: none;
    }

    .burger {
        margin-top: 8px;
        display: flex;
    }


    /* =====================
       ШАПКА
    ===================== */

    .header__logo {
        width: 95%;
        height: 65px;
        display: flex;
        align-items: center;
        position: relative;
        margin-left: 10px;
    }


    /* =====================
       ЛОГОТИП СЛЕВА
    ===================== */

    .button__logo {
        position: absolute;
        left: 10px;
        top: 55%;
        transform: translateY(-50%);
        margin: 0;
        z-index: 2;
    }

    .icon_logo {
        height: 45px;
        width: 80px;
        object-fit: contain;
        display: block;
    }

    /* MAIN */

    .main-blok {
        width: calc(100% - 30px);
        padding: 20px;
    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 530px) {
    body {
        width: 100%;
    }

    /* =====================
       HEADER
    ===================== */

     .header {
        /* padding-left: 10px; */
        padding-right: 10px;
    }

    .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;
    }
}




/* =========================
   ИСПРАВЛЕНИЕ МЕНЮ ЯЗЫКА
========================= */

.language-menu {
    position: relative;
    z-index: 10000;
}

/* Список скрыт по умолчанию */
.language-menu .language-list {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    left: auto;
    width: 160px;
    padding: 8px 0;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 10001;
}

/* Открывается при нажатии */
.language-menu[open] .language-list {
    display: block;
}

/* Ссылки */
.language-menu .language-list a {
    display: block;
    padding: 12px 15px;
    margin: 0;
    color: #111127;
    background: #ffffff;
    font-size: 15px;
    text-decoration: none;
}

.language-menu .language-list a:hover {
    background: linear-gradient(90deg, #1381A3, #34426C, #793D85, #D622DD);
}

/* Убираем стрелку */
.language-menu summary {
    list-style: none;
    cursor: pointer;
}

.language-menu summary::-webkit-details-marker {
    display: none;
}

.language-menu summary::marker {
    content: "";
}

/* Мобильная версия */
.mobile-language .language-list {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}