@font-face {
    font-family: 'Arame_Mono_Bold';
    src: url('/public/wp-content/plugins/custom-slider-carousel/assets/css/Arame_Mono_Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

.custom-header {
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    height: 80px;

    @media (max-width: 768px) {
        padding: 0 clamp(0.938rem, -3.75rem + 15.625vw, 3.75rem);
    }
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    img {
        width: 140px;
        height: 27px;

        @media (max-width: 768px) {
            width: 100px;
            height: 19.33px;
        }
    }
}

.header-left, .header-center, .header-right {
    display: flex;
    align-items: center;

    @media (max-width: 768px) {
        gap: clamp(0rem, -3.125rem + 10.417vw, 1.875rem);
    }
}

/* Центральный блок: Ссылки */
.header-center ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 52px;
}

.header-center a {
    color: #151515;
    text-decoration: none;
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    font-weight: 500;
    line-height: 17.6px;
}

/* Правый блок: Кнопки */
.header-right .button-style {
    background-color: rgba(0,0,0,0);
    color: #151515;
    border: 2px solid #151515;
    padding: 11px 20px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease; /* Добавляем плавный переход для transform */
    align-self: center;
    font-family: 'Arame_Mono_Bold', monospace;
    font-size: 16px;
    font-weight: 700;
    line-height: 17.6px;
    letter-spacing: -0.25px;
    position: relative;
    text-wrap: nowrap;
    text-decoration: none !important;

    &:focus {
        outline: none; /* Убираем обвод при фокусе */
    }

    &:active {
        border: 2px solid #151515; /* Оставляем ту же толщину бордера */
        outline: none; /* Убираем обвод при нажатии */
        transform: scale(1); /* Предотвращаем увеличение */
    }

    &::after {
        content: '';
        position: absolute;
        bottom: -2px;
        right: -8px;
        width: 22px;
        height: 22px;
        background: #FDDA64;
        clip-path: polygon(22px 0, 22px 22px, 0% 22px);

        @media (max-width: 768px) {
            background: white;
        }
    }

    &::before {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 15px;
        height: 15px;
        background: #151515;
        clip-path: polygon(15px 0, 15px 15px, 0% 15px);
    }
}

/* Бургер-кнопка */
.header-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-left: 15px;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
    .header-center ul {
        display: none;
        flex-direction: column;
        gap: 10px;
        background-color: #f9f9f9;
        position: absolute;
        top: 112px;
        left: 0px;
        right: 0px;
        padding: 40px 60px;
        /*border: 1px solid #333;*/
        border-radius: 5px;
        z-index: 999;

        > li {
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }


        &::after {
            content: "";
            min-width: 100vw;
            min-height: 100vh;
            background: rgba(12, 37, 33, 0.7); /* задаем прозрачность для overlay */
            z-index: -1;
            position: fixed;
            top: 390px;
            left: 0;
        }

    }

    .header-center ul.active {
        display: flex;
        text-align: center;
        font-family: 'Roboto Mono', monospace;
        font-size: 18px;
        font-weight: 500;
        line-height: 19.8px;
        color: #151515;
    }

    .header-center a {
        font-family: 'Roboto Mono', monospace;
        font-size: 18px;
        font-weight: 500;
        line-height: 19.8px;
        color: #151515;
    }

    .header-toggle {
        display: inline-block;
    }

    /* Центрируем элементы и скрываем лого и кнопки, если не нужны */
    .header-left, .header-right {
        display: flex;
    }

    .header-right .button-style {
        display: flex; /* Скрыть кнопки на мобильных устройствах */
        width: 85px;
        height: 38px;
        padding: 0 15px !important;
        text-align: center;
        font-family: 'Arame_Mono_Bold', monospace;
        font-size: 14px;
        font-weight: 700;
        line-height: 15.4px;
        letter-spacing: -0.25px;
        justify-content: center;
        border: 2px solid #151515;


        svg {
            display: none;
        }
    }
}