.events-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 33px;
    width: 100%;
    color: #127a8d;
    font-weight: 400;
    font-size: clamp(1.25rem, 1.1923rem + 0.2564vw, 1.5rem);
    line-height: 100%;
    font-family: "Manrope", sans-serif;
}

.events-switch__btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: #127a8d;
    line-height: 130%;
    text-decoration: none;
}

.events-switch__btn svg {
    display: block;
    transition: transform 0.3s ease;
}

.events-switch__btn:hover svg {
    transform: rotate(30deg);
}

.active-event {
    font-size: clamp(2rem, 1.8846rem + 0.5128vw, 2.5rem);
    text-transform: uppercase;
}

.events-list {
    display: flex;
    flex: 1 0 50%;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 1131px;
    color: #262626;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    font-family: "Manrope", sans-serif;
}

.events-list__item {
    display: grid;
    grid-template-columns: 74px 175px minmax(0, 550px) 83px 30px;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
    transition: box-shadow 0.3s ease;
    box-shadow: 0px -2px 9.8px 0px #127a8d29;
    border-radius: 4px;
    background: linear-gradient(
        146.12deg,
        rgba(255, 255, 255, 0.7744) 54.24%,
        rgba(255, 255, 255, 0.4224) 97.96%
    );
    padding: clamp(1.25rem, 1.1944rem + 0.2469vw, 1.5rem);
    width: 100%;
    color: inherit;
    text-decoration: none;
}

@media (width: 1440px) {
    .events-list__item {
        gap: 8px;
    }
}

.events-list__item:hover {
    cursor: pointer;
    outline: 1px solid #127a8d;
    outline-offset: -1px;
    box-shadow: 0px -4px 20px 0px #127a8d29;
    color: inherit;
    text-decoration: none;
}

.events-list__value--whom {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #127a8d;
    font-weight: 700;
    font-size: 14px;
    line-height: 130%;
    font-family: "Manrope", sans-serif;
    text-overflow: ellipsis;
}

.events-list__item--for-clients {
    background: #f4fafd;
}

.events-list__datetime {
    display: flex;
    grid-column: 1;
    flex-direction: column;
    gap: 4px;
    max-width: 74px;
}

.events-list__category {
    display: flex;
    grid-column: 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    /* max-width: 88px; */
    font-size: 14px;
}

.events-list__category-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.events-list__title {
    grid-column: 3;
    margin: 0;
    max-width: 582px;
    color: #127a8d;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    font-family: "Manrope", sans-serif;
}

.events-list__title-link,
.events-list__title-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    color: #127a8d;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.3;
    font-family: "Manrope", sans-serif;
    text-decoration: none;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
}

.events-list__title-link:hover {
    text-decoration: none;
}

.events-list__cost {
    grid-column: 4;
    max-width: 83px;
}

.events-list__more {
    display: flex;
    grid-column: 5;
    justify-content: center;
    align-items: center;
    max-width: 30px;
}

.events-list__more svg {
    display: block;
    transition: transform 0.3s ease;
}

.events-list__item:hover .events-list__more svg {
    transform: rotate(30deg);
}

.events-list__more-link {
    display: inline-block;
    transition: transform 0.3s ease;
    line-height: 0;
}

.events-list__more-link svg {
    display: block;
}

.events-list__item:visited {
    color: inherit;
    text-decoration: none;
}

.events-list__item:focus {
    outline: none;
    color: inherit;
    text-decoration: none;
}

.events-list__item:active {
    color: inherit;
    text-decoration: none;
}
.events-list__empty {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}
.events-list__empty-text--title {
    color: #82aeb7;
    font-weight: 400;
    font-size: 24px;
    line-height: 130%;
    font-family: "Manrope", sans-serif;
    text-align: left;
    text-transform: uppercase;
}
.events-list__empty-text {
    color: #6c6c6c;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    font-family: "Manrope", sans-serif;
    text-align: left;
}

.navigation {
    color: #127a8d;
    font-weight: 400;
    font-size: 24px;
    line-height: 100%;
    font-family: "Manrope", sans-serif;
}

.comp {
    flex: 1 0 100%;
}

@media screen and (max-width: 767.9px) {
    .events-list {
        gap: 10px;
    }

    .events-list__item {
        grid-template-rows: auto auto auto;
        grid-template-columns: 2fr 1fr;
        grid-template-areas:
            "category datetime"
            "title title"
            "cost more";
        column-gap: 12px;
        row-gap: 10px;
        padding: 20px;
        text-align: left;
    }

    .events-list__value--whom {
        font-size: 16px;
    }

    .events-list__category {
        grid-area: category;
        align-items: flex-start;
        max-width: none;
    }

    .events-list__datetime {
        grid-area: datetime;
        justify-self: end;
        max-width: none;
        text-align: right;
    }

    .events-list__title {
        grid-area: title;
        max-width: none;
    }

    .events-list__cost {
        grid-area: cost;
        align-self: flex-end;
        max-width: none;
    }

    .events-list__more {
        grid-area: more;
        justify-self: end;
        max-width: none;
    }

    .events-list__value,
    .events-list__time {
        font-size: 16px;
    }

    .events-list__title-text {
        font-size: 18px;
    }

    .events-list-desktop {
        display: none;
    }
}

@media screen and (min-width: 768px) {
    .events-list-desktop {
        display: flex;
    }

    .events-switch-mobile {
        display: none;
    }
}

@media screen and (max-width: 767.9px) {
    .events-switch-mobile {
        display: flex;
    }
}

@media (min-width: 768px) {
    .events-list {
        font-size: clamp(0.875rem, 0.7917rem + 0.1736vw, 1rem);
    }
}

@media screen and (min-width: 768px) and (max-width: 1439.9px) {
    .events-list__item {
        grid-template-rows: auto auto auto;
        grid-template-columns: 2fr 1fr;
        grid-template-areas:
            "category datetime"
            "title title"
            "cost more";
        column-gap: 16px;
        row-gap: 8px;
    }

    .events-list__datetime {
        grid-area: datetime;
        max-width: none;
        text-align: right;
    }

    .events-list__category {
        grid-area: category;
        max-width: none;
    }

    .events-list__title {
        grid-area: title;
        align-self: flex-start;
        max-width: none;
    }

    .events-list__more {
        grid-area: more;
        justify-self: end;
        max-width: none;
    }

    .events-list__cost {
        grid-area: cost;
        align-self: flex-end;
        align-self: flex-end;
        justify-self: start;
        max-width: none;
    }
}
