@import url("fonts.css");


/* =========================
   ОБЩИЕ
========================= */

.wrapper {
    min-height: 100%;

    /* ВАЖНО:
       не обрезаем выпадающие списки по вертикали */

    overflow-x: clip;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
}

.wrapper > main {
    flex-grow: 1;
}

body {
    margin: 0 auto;
    background: linear-gradient(90deg, #959595, #f3f0f0, #959595);
    font-family: "Proxima Nova", sans-serif;
}


/* =========================
   HEADER
========================= */

.header {
    width: 100%;
    background-color: #9595956b;
    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: #000000;
    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: #000000;
    transition: color 0.3s ease;
}

.header__rules a:hover {
    color: #8d8d8d;
}

/* =========================
   ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА
========================= */

.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: #000000;
    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 {
    max-width: 1450px;
}
/* =========================
   БЛОК ОБМЕНА
========================= */

.title {
    font-size: 30px;
    text-align: center;
    color: #000000;
}


.exchange {
    width: 600px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 25px;
    position: relative;
    overflow: visible;
}


/* =========================
   ФОРМА
========================= */

.form-exchange {
    display: flex;
    justify-content: center;

    /*
       ВАЖНО:
       создаём нормальную область для select
    */
    position: relative;
}

.select__give-away {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 20px;
    width: 205px;
    position: relative;
}

.select__You-receive {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
    margin-left: 20px;
    width: 205px;
    position: relative;
}

.select__text {
    margin-bottom: 10px;
    margin-left: 10px;
    font-size: 18px;
    color: #000000;
}

/* =========================
   СТАРЫЙ SELECT
========================= */

.select-bloc1 {
    display: block;
    width: 205px;
    height: 30px;
    border-radius: 8px;
}

.select-with-icon select {
    font-size: 14px;
}

.select-with-icon {
    position: relative;
    width: 100%;
}

.select-with-icon img {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    pointer-events: none;
}

.select-with-icon select {
    padding-left: 40px;
    height: 40px;
}

/* =====================================================
   НОВЫЙ КАСТОМНЫЙ SELECT
   ИСПРАВЛЕНО:
   открытый select теперь поднимается выше второго select
===================================================== */

.crypto-select {
    position: relative;
    width: 205px;
    /*
       В закрытом состоянии обычный слой.
    */
    z-index: 1;
}

/*
   ГЛАВНОЕ ИСПРАВЛЕНИЕ
   Когда JavaScript добавляет .open,
   ВЕСЬ select поднимается наверх.
   Поэтому второй select больше не сможет
   перекрыть список первого.
*/
.crypto-select.open {
    z-index: 10000;
}

/* =========================
   ВЫБРАННАЯ МОНЕТА
========================= */

.crypto-current {
    width: 205px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border: 1px solid #999;
    border-radius: 8px;
    padding: 0 10px;
    cursor: pointer;
    font-size: 14px;
    color: black;
    position: relative;
    z-index: 2;
}

.crypto-current-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.crypto-current-left img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.crypto-current-left span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================
   СТРЕЛКА
========================= */

.crypto-arrow {
    font-size: 11px;
    margin-left: 8px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.crypto-select.open .crypto-arrow {
    transform: rotate(180deg);
}

/* =====================================================
   ВЫПАДАЮЩИЙ СПИСОК
===================================================== */

.crypto-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 205px;
    /*
       Высота списка.
       После неё появляется прокрутка.
    */
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: white;
    border: 1px solid #999;
    border-radius: 8px;
    /*
       Список находится выше остальных элементов.
    */
    z-index: 10001;
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.20);
}

/*
   Показываем список
*/

.crypto-select.open .crypto-list {
    display: block;
}

/* =====================================================
   ДОПОЛНИТЕЛЬНОЕ ИСПРАВЛЕНИЕ ДЛЯ ДВУХ SELECT
===================================================== */
/*
   Первый select
*/
#fromCryptoSelect {
    position: relative;
}

/*
   Второй select
*/
#toCryptoSelect {
    position: relative;
}

/*
   Если открыт первый
*/
#fromCryptoSelect.open {
    z-index: 20000;
}

/*
   Если открыт второй
*/
#toCryptoSelect.open {
    z-index: 20000;
}

/*
   Сами списки
*/
#fromCryptoList,
#toCryptoList {
    z-index: 20001;
}

/* =========================
   ЭЛЕМЕНТ МОНЕТЫ
========================= */

.crypto-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: none;
    background-color: white;
    color: black;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    box-sizing: border-box;
}

.crypto-item:hover {
    background-color: #0088cc1e;
}

.crypto-item.active {
    background-color: #1e70d1;
    color: white;
}

.crypto-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.crypto-item span {
    white-space: nowrap;
}

/* =========================
   SCROLL
========================= */

.crypto-list::-webkit-scrollbar {
    width: 6px;
}

.crypto-list::-webkit-scrollbar-track {
    background-color: #eee;
}

.crypto-list::-webkit-scrollbar-thumb {
    background-color: #999;
    border-radius: 10px;
}


/* =========================
   НАСТОЯЩИЙ SELECT
   Он скрыт, но используется JS
========================= */

.real-crypto-select {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

/* =========================
   INPUT
========================= */

.input-give {
    width: 200px;
    height: 30px;
    border-radius: 8px;
    margin-top: 10px;
    background-color: #ffffffee;
    opacity: 1;
}

.limits-info {
    font-size: 9px;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
    color: #000000;
}

.input-email-wallet {
    width: 200px;
    height: 30px;
    border-radius: 8px;
}

/* =========================
   КНОПКА ОБМЕН
========================= */

.button-Exchange {
    display: block;
    margin: 0 auto;
    width: 300px;
    height: 40px;
    border-radius: 8px;
    background: #9595956b;
    color: #111127;
}

.button-Exchange:hover {
    background: #959595;
}



/* =========================
   ТРЕТИЙ БЛОК
========================= */

/* ================================
   НАША МИССИЯ И ФИЛОСОФИЯ
================================ */

.company-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px 30px;
    width: 100%;
    margin: 0 auto;
}

/* Карточки */

.company-card {
    padding: 20px 60px 40px;
    color: #000000;
    min-height: 500px;
}

/* Заголовок и иконка */

.company-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 45px;
}

.company-card-header h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.15;
    color: #000000;
}

/* Иконки */

.company-icon {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
    color: #0956a8;
}

/* Текст */

.company-card-content {
    max-width: 700px;
}

.company-card-content p {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 400;
    color: #000000;
}

.company-card-content p:last-child {
    margin-bottom: 0;
}

/* ================================
   ПЛАНШЕТ
================================ */

@media (max-width: 1024px) {

    .company-card-header h2 {
        font-size: 27px;
    }

    .company-icon {
        width: 60px;
        height: 60px;
    }

    .company-card-content p {
        font-size: 16px;
    }
}

/* ================================
   ТЕЛЕФОН
================================ */

@media (max-width: 767px) {

    .company-info {
        grid-template-columns: 1fr;
    }

    .company-info {
        padding-left: 10px;
        padding-right: 10px;
    }

    .company-card {
        padding-left: 20px;
        padding-right: 30px;
        margin: 0 auto;
        min-height: auto;
    }

    .company-card-header {
        margin-bottom: 30px;
    }

    .company-card-header h2 {
        font-size: 25px;
    }

    .company-icon {
        width: 55px;
        height: 55px;
    }

    .company-card-content p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
}


/* =========================
  ЧЕТВЕРТЫЙ БЛОК
========================= */


/* ==================================
   БЕЗОПАСНОСТЬ И ТЕХНОЛОГИИ
================================== */

.security-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px 30px;
    width: 100%;
    margin: 0 auto;
}

/* КАРТОЧКИ */

.security-card {
    padding: 20px 60px 40px;
    min-height: 500px;
    color: #000000;
}

/* ЗАГОЛОВКИ */

.security-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 50px;
}

.security-header h2 {
    margin: 0;
    color: #000000;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.15;
}

/* ИКОНКИ */

.security-icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    color: #0956a8;
}

/* ТЕКСТ */

.security-content {
    max-width: 700px;
}

.security-content p {
    margin: 0 0 18px;
    color: #000000;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
    text-align: justify;
}

.security-content p:last-child {
    margin-bottom: 0;
}

/* ==================================
   ПЛАНШЕТ
================================== */

@media (max-width: 1024px) {

    .security-header h2 {
        font-size: 27px;
    }

    .security-icon {
        width: 60px;
        height: 60px;
    }

    .security-content p {
        font-size: 16px;
    }
}

/* ==================================
   ТЕЛЕФОН
================================== */

@media (max-width: 767px) {

    .security-section {
        grid-template-columns: 1fr;
        padding-left: 10px;
        padding-right: 10px;
    }

    .security-card {
        padding-left: 20px;
        padding-right: 30px;
    }

    .security-header {
        margin-bottom: 30px;
    }

    .security-header h2 {
        font-size: 25px;
    }

    .security-icon {
        width: 55px;
        height: 55px;
    }

    .security-content p {
        font-size: 15px;
        line-height: 1.6;
        text-align: left;
    }
}


/* =========================

  ПЯТЫЙ БЛОК

========================= */


/* ==================================
   СИСТЕМА СКИДОК И ПЕРСОНАЛ
================================== */

.discount-team-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px 30px;
    width: 100%;
    margin: 0 auto;
}

/* КАРТОЧКИ */

.discount-team-card {
    padding: 20px 60px 40px;
    min-height: 500px;
    color: #000000;
}

/* ЗАГОЛОВОК И ИКОНКА */

.discount-team-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 50px;
}

.discount-team-header h2 {
    margin: 0;
    color: #000000;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.15;
}

/* ИКОНКИ */

.discount-team-icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    color: #0956a8;
}

/* ТЕКСТ */

.discount-team-content {
    max-width: 700px;
}

.discount-team-content p {
    margin: 0 0 18px;
    color: #000000;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
    text-align: justify;
}

.discount-team-content p:last-child {
    margin-bottom: 0;
}

/* ==================================
   ПЛАНШЕТ
================================== */

@media (max-width: 1024px) {

    .discount-team-header h2 {
        font-size: 27px;
    }

    .discount-team-icon {
        width: 60px;
        height: 60px;
    }

    .discount-team-content p {
        font-size: 16px;
    }
}

/* ==================================
   ТЕЛЕФОН
================================== */

@media (max-width: 767px) {

    .discount-team-section {
        grid-template-columns: 1fr;
        padding-left: 10px;
        padding-right: 10px;
    }

    .discount-team-card {
        padding-left: 20px;
        padding-right: 30px;
        min-height: auto;
    }

    .discount-team-header {
        margin-bottom: 30px;
    }

    .discount-team-header h2 {
        font-size: 25px;
    }

    .discount-team-icon {
        width: 55px;
        height: 55px;
    }

    .discount-team-content p {
        font-size: 15px;
        line-height: 1.6;
        text-align: left;
    }
}



/* =========================

   FOOTER

========================= */


.license-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 30px;
    flex-wrap: nowrap;
    white-space: nowrap;
    font-size: 15px;
}

.license-info a {
    color: inherit;
    text-decoration: underline;
}

.license-info a:hover {
    color: #00aaff;
}

/* Для телефона */
@media (max-width: 767px) {
    .license-info {
        flex-wrap: wrap;
        gap: 10px;
        text-align: center;
    }
}




/* =========================

   БУРГЕР

========================= */

.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( #464ffb);
    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: #959595;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 50px 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: #000000;
    transform: none;
}

/* =========================
   ССЫЛКИ МЕНЮ
========================= */

.mobile-menu > a {
    display: block;
    margin-bottom: 20px;
    font-size: 25px;
    text-align: center;
    transform: skew(-12deg, 0);
    text-decoration: none;
    color: #000000;
}

/* =========================
   ЯЗЫК
========================= */

.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;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 530px) {

    body {
        width: 100%;
    }


    /* =====================
       HEADER
    ===================== */

     .header {
        padding-right: 10px;
    }

    .burger {
        position: absolute;
        right: 5px;
        margin-right: 10px;
    }

    /* =====================

       MAIN

    ===================== */

    .title {
        font-size: 26px;
    }

    /* =====================

       EXCHANGE

    ===================== */

    .exchange {
        width: calc(100% - 20px);
        height: auto;
        padding-top: 10px;
        padding-bottom: 20px;
        /*
           ВАЖНО:
           список не обрезается
        */
        overflow: visible;
    }

    /* =====================
       ФОРМА В КОЛОНКУ
    ===================== */

    .form-exchange {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        position: relative;
    }

    .select__give-away,
    .select__You-receive {
        width: 90%;
        margin-left: 0;
        margin-right: 0;
        position: relative;
    }

    .select__text {
        font-size: 18px;
    }

    /* =================================================
       CUSTOM SELECT MOBILE
    ================================================= */

    .crypto-select {
        width: 100%;
        z-index: 1;
    }

    /*
       ГЛАВНОЕ ИСПРАВЛЕНИЕ НА МОБИЛЬНОМ
       Открытый список всегда находится
       поверх второго select.
    */

    .crypto-select.open {
        z-index: 20000;
    }

    .crypto-current {
        width: 100%;
        height: 44px;
        font-size: 15px;
        box-sizing: border-box;
    }

    .crypto-current-left img {
        width: 23px;
        height: 23px;
    }

    .crypto-list {
        width: 100%;
        /*
           Высота списка на телефоне
        */
        max-height: 300px;
        z-index: 20001;
        box-sizing: border-box;
    }

    /*
       Первый список
    */

    #fromCryptoSelect.open {
        z-index: 30000;
    }

    /*
       Второй список
    */

    #toCryptoSelect.open {
        z-index: 30000;
    }

    #fromCryptoList,
    #toCryptoList {
        z-index: 30001;
    }

    .crypto-item {
        font-size: 15px;
        padding: 9px 10px;
    }

    .crypto-item img {
        width: 23px;
        height: 23px;
    }

    /* =====================
       INPUT
    ===================== */

    .input-give {
        width: 100%;
        height: 36px;
        box-sizing: border-box;
    }

    .input-email-wallet {
        width: 100%;
        height: 36px;
        box-sizing: border-box;
    }

    .limits-info {
        font-size: 12px;
    }

    /* =====================
       КНОПКА ОБМЕНА
    ===================== */

    .button-Exchange {
        width: 90%;
        margin-top: 10px;
    }
}



/* =========================

   ИСПРАВЛЕНИЕ МЕНЮ ЯЗЫКА

========================= */

.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-list a{
    transform: skew(-0deg, 0);
}

.language-menu .language-list a:hover {
    background: #f2f2f2;
    background: linear-gradient(90deg, #9595956b, #9595956b, #9595956b, #9595956b);
}

/* Убираем стрелку */

.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%);
}



/* =========================

   MOBILE EXCHANGE FORM

========================= */



@media (max-width: 650px) {

    .exchange-form {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;

    }

    /* ОТДАЁТЕ */

    .exchange-give {
        order: 1;
        width: 100%;
    }

    /* ПОЛУЧАЕТЕ */

    .exchange-receive {
        order: 2;
        width: 100%;
    }

    /* КОШЕЛЁК */

    .exchange-wallet {
        order: 3;
        width: 100%;
    }

    /* EMAIL */

    .exchange-email {
        order: 4;
        width: 100%;
    }

    /* КНОПКА */

    .exchange-button {
        order: 5;
        width: 100%;
    }

    .exchange-wallet input,
    .exchange-email input {
        width: 100%;
        height: 45px;
        padding: 0 12px;
        border: 2px solid #cccccc;
        border-radius: 10px;
        background: #ffffff;
        font-size: 16px;
        box-sizing: border-box;
    }

    .exchange-button {
        height: 50px;
        border: 2px solid #aaaaaa;
        border-radius: 10px;
        background: transparent;
        font-size: 16px;
        cursor: pointer;
    }

}
    /* ==================================================
    ИСПРАВЛЕНИЕ ФОРМЫ ОБМЕНА: DESKTOP + MOBILE
    Поля в единственном экземпляре, без дублей.
    ================================================== */
    .exchange {
    width: min(750px, calc(100% - 24px));
    height: auto;
    padding: 20px;
    box-sizing: border-box;
    overflow: visible;
    }
    .exchange .form-exchange {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 35px;
    }
    .exchange .select__give-away,
    .exchange .select__You-receive {
    width: 100%;
    min-width: 0;
    margin: 0;
    }
    .exchange .crypto-select,
    .exchange .crypto-current,
    .exchange .crypto-list { width: 100%; box-sizing: border-box; }
    .exchange .input-give,
    .exchange .input-email-wallet {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 10px;
    border-radius: 9px;
    background: #fff;
    box-sizing: border-box;
    font-size: 16px;
    }
    .exchange .input-give { margin-top: 12px; }
    .exchange .limits-info { margin: 12px 0; font-size: 11px; text-align: center; }
    .exchange .exchange-wallet,
    .exchange .exchange-email {
    width: 100%;
    max-width: 400px;
    margin: 15px auto;
    }
    .exchange .button-Exchange {
    display: block;
    width: 100%;
    max-width: 400px;
    height: 48px;
    margin: 20px auto 0;
    cursor: pointer;
    }



    @media (max-width: 650px) {
    .exchange {
        width: calc(100% - 24px);
        height: auto;
        padding: 20px 16px;
        margin: 0 auto 30px;
        border-radius: 20px;
        overflow: visible;
    }
    .exchange .form-exchange {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 25px;
    }
    .exchange .select__give-away,
    .exchange .select__You-receive { width: 100%; margin: 0; }
    .exchange .select__text { font-size: 23px; margin: 0 0 14px 10px; }
    .exchange .crypto-current { height: 55px; padding: 0 12px; font-size: 17px; }
    .exchange .crypto-current-left img { width: 28px; height: 28px; }
    .exchange .input-give { height: 45px; margin-top: 12px; }
    .exchange .limits-info { font-size: 11px; margin: 12px 0 0; }
    .exchange .exchange-wallet { max-width: none; margin: 25px 0 0; }
    .exchange .exchange-email { max-width: none; margin: 15px 0 0; }
    .exchange .exchange-wallet input,
    .exchange .exchange-email input {
        width: 100%; height: 48px; padding: 0 12px;
        font-size: 16px; border: 2px solid #ccc; border-radius: 10px;
        background: #fff; box-sizing: border-box;
    }
    .exchange .button-Exchange {
        width: 100%; max-width: none; height: 52px;
        margin: 20px 0 0; font-size: 18px; border-radius: 10px;
    }
}
