.events-list {
    margin-block: 100px;
}

.events-list__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1274px;
    width: 100%;
    margin: 0 auto;
}

.events-list__card {
    background: var(--neutral-900);
    border-radius: 32px;
    overflow: hidden;
    padding: 56px 44px;
}

.events-list__card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    background: none;
    border: none;
}

.events-list__title {
    font-family: "Days One", sans-serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 110%;
    color: transparent;
    background: var(--gradient-light);
    background-clip: text;
    -webkit-background-clip: text;
    cursor: pointer;
}

.events-list__arrow-icon {
    width: 32px;
    height: 35px;
    transform: rotate(60deg);
    transition: transform 0.3s;
    overflow: visible;
}

.events-list__arrow-block {
    background: rgba(0, 0, 0, 0.23);
    width: 91px;
    height: 91px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    box-shadow: 0px 7.58px 7.58px 0px rgba(0, 0, 0, 0.25) inset;
}

.events-list__card-body {
    max-height: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.49, 0.42, 0.3, 1.2),
    opacity 0.4s cubic-bezier(0.49, 0.42, 0.3, 1.2);
}

.events-list__card.active {
    min-height: 668px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.events-list__card.active .events-list__card-body {
    max-height: 421px;
    height: 100%;
    opacity: 1;
    padding-bottom: 28px;

}

.events-list__card:hover .events-list__arrow-icon {
    transform: rotate(90deg);
}

.events-list__card.active .events-list__arrow-icon {
    transform: rotate(120deg);
}

.events-list__card-description {
    font-family: "PT Sans", sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 120%;
    color: var(--primary-50);
    max-width: 582px;
    width: 100%;
}

.events-list__image-block {
    position: relative;
    background-color: var(--primary-500);
    border-radius: 44px;
    width: 492px;
    min-height: 431px;
}

.events-list__image {
    position: absolute;
    left: -70px;
    transform: rotate(-9deg);
    border-radius: 44px;
    max-width: 492px;
    height: 100%;
}

@media (max-width: 1250px) {
    .events-list__title {
        font-size: 32px;
    }

    .events-list__image {
        position: relative;
        transform: none;
        left: 0;
        height: 100%;
        max-height: 100%;
    }

    .events-list__image-block {
        min-height: 0;
        background-color: transparent;
    }

    .events-list__card {
        padding: 20px 25px;
    }

    .events-list__card-body {
        flex-direction: column-reverse;
    }

    .events-list__card-description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .events-list__arrow-block {
        width: 50px;
        height: 50px;
    }

    .events-list__arrow-icon {
        width: 25px;
        height: 25px;
    }

    .events-list__card-description {
        font-size: 16px;
    }

    .events-list__card.active > .events-list__card-body {
        max-height: 600px;
        justify-content: flex-end;
        gap: 10px;
    }
}

@media (max-width: 530px) {
    .events-list__title {
        font-size: 24px;
    }

    .events-list__image {
        max-width: 300px;
    }
    .events-list__image-block{
        display: flex;
        justify-content: center;
    }
}