@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;
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0 40px 40px;

    &::after {
        content: '';
        position: absolute;
        top: -82px;
        right: 0;
        width: 90%;
        height: calc(100% + 82px);
        background-color: #FDDA64; /* оттенок желтого */
        clip-path: polygon(20% 0, 100% 0, 100% 100%, 52% 91%);
        z-index: -1;

        @media (max-width: 768px) {
            width: 108%;
            height: 430px;
            position: absolute;
            top: 332px;
        }

        @media (max-width: 748px) {
            top: 342px;
        }

        @media (max-width: 683px) {
            top: 372px;
        }

        @media (max-width: 548px) {
            top: 392px;
        }

        @media (max-width: 480px) {
            height: 420px;
            clip-path: polygon(100% 0, 100% 100%, 35% 87%, 0 40%, 0 0);
            top: 462px;
        }

        @media (max-width: 412px) {
            top: 472px;
        }
    }

    @media (max-width: 768px) {
        flex-direction: column;
        padding: 20px;
        gap: 40px;
    }

    @media (max-width: 480px) {
        padding: 40px 20px;
        gap: 80px;
    }

    > * {
        z-index: 2;
    }
}

.hero-content {
    flex: 1;
    padding-right: 20px;

    @media (max-width: 768px) {
        padding: 0 15px !important;
    }
}

.hero-title {
    font-family: 'Arame_Mono_Bold', monospace;
    font-size: 54px;
    font-weight: 700;
    line-height: 59.4px;
    letter-spacing: -0.5px;
    text-align: start;
    text-transform: uppercase;
    margin-bottom: 20px;

    @media (max-width: 768px) {
        font-size: 24px;
        line-height: 29.7px;
    }
}

.hero-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 22px;
    font-weight: 400;
    line-height: 30.8px;
    letter-spacing: -0.5px;
    text-align: left;
    margin-bottom: 30px;

    @media (max-width: 768px) {
        font-size: 16px;
        line-height: 22.4px;
    }
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-button {
    padding: 15px 30px;
    font-size: 1em;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;

    @media (max-width: 480px) {
        padding: 11px 17px;
    }
}

.hero-button-1 {
    background-color: #FDDA64; /* Цвет желтой линии */
    color: #151515;
    border: none;
    padding: 19px 34px;
    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;

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

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

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

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

    @media (max-width: 768px) {
        font-size: 15px;
        font-weight: 700;
        line-height: 16.5px;
        padding: 17px 14px;
    }

    @media (max-width: 480px) {
        font-size: 12px;
        padding: 6px 12px;
    }
}

.hero-button-2 {
    background-color: #ffffff;
    color: #151515;
    border: 2px solid #151515;
    padding: 17px 32px;
    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;

    &: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: white;
        clip-path: polygon(22px 0, 22px 22px, 0% 22px);

        @media (max-width: 860px) {
            background: #FDDA64;
        }

        @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);
    }

    @media (max-width: 768px) {
        font-size: 15px;
        font-weight: 700;
        line-height: 16.5px;
        padding: 17px 14px;
    }

    @media (max-width: 480px) {
        font-size: 12px;
        padding: 6px 12px;
    }
}

.hero-button:hover {
    opacity: 0.9;
}

.hero-image {
    /*flex: auto;*/
    max-width: 640px;

    @media (max-width: 768px) {
        max-width: 90vw;
        height: clamp(22.375rem, 18rem + 14.583vw, 25rem);
        margin-left: auto;
        margin-right: 0;
    }
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;

    @media (max-width: 768px) {
        max-width: 90vw;
        height: clamp(22.375rem, 18rem + 14.583vw, 25rem);
        margin-left: auto;
        margin-right: -20px;
    }
}