.events-item {
    width: 100%;
    height: 703px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    display: block;
}

.events-item__blur-title {
    position: absolute;
    border-radius: 5px;

    padding: 20px 20px 15px 20px;
    max-width: 646.141px;
    background: rgba(16, 16, 16, 0.01);
    backdrop-filter: blur(25px);

    bottom: 20px;
    left: 20px;

    h3 {
        font-size: 48px;
        font-style: normal;
        font-weight: 400;
        line-height: 100%; /* 48px */
        color: var(--White, #fff);
        margin: 0;

        padding-top: 6px;
    }

    span {
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 140%; /* 19.6px */
        color: var(--gley_light, var(--Color-background, #f7f7f7));
    }
}

.events-item__event-spans {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;

    position: absolute;
    top: 20px;
    left: 20px;
}

.events-item__event-spans .events-item__event-span {
    position: static;
}

.events-item__event-span {
    position: absolute;
    border-radius: 500px;
    background: var(--Black, #101010);
    backdrop-filter: blur(41px);
    padding: 5px 15px;

    color: var(--White, #fff);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;

    top: 20px;
    left: 20px;
}

.events-item_large {
    height: auto !important;
}

.events-item .events-item__cover {
    border-radius: 5px;
    overflow: hidden;
}

.events-item_large .events-item__cover {
    height: 701px;
    border-radius: 5px;
    overflow: hidden;
}

.events-item_large .events-item__cover,
.events-item_medium .events-item__cover,
.events-item_small .events-item__cover {
    margin-bottom: 19px;

}

.events-item .events-item__title {
    /* padding-top: 19px; */
    h5 {
        margin: 0;
        color: var(--Black, #101010);
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 110%; /* 22px */

        display: -webkit-box;
        -webkit-line-clamp: 4; /* Количество видимых строк */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.events-item__info {
    color: var(--Grey, #b2b2b2);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 19.6px */

    margin-bottom: 5px;

    display: flex;
    align-items: center;
    gap: 10px;
}

.events-item__views {
    display: flex;
    align-items: center;
    gap: 10px;
}

.events-item__views::before {
    background-image: url("../images/views-icon.svg");
    background-position: center;
    background-repeat: no-repeat;
    width: 18px;
    height: 18px;
    content: "";
}

.events-item_medium {
    height: auto !important;
}

.events-item_medium .events-item__cover {
    height: 527px;
}

.events-item__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.link-block {
    height: 100%;
    width: 100%;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.link-block__absolute {
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px 30px;

    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

h3.link-block__title {
    color: var(--White, #fff);

    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 41.6px */
    margin: 0;
    margin-bottom: 6px;

    max-width: 700px;
}

h2.link-block__title {
    color: var(--White, #fff);

    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 48px */
    max-width: 700px;
    margin: 0;

    display: -webkit-box;
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical;
    overflow: hidden;

}

.link-block__description {
    color: var(--White, #fff);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;

    max-width: 586px;
}

.link-block__text {
    color: var(--White, #fff);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 24px */
    margin-top: auto;
    max-width: 561px;
}

.link-block__text + .link-block__btn {
    width: 439px;
    margin-top: 27px;
}

.link-block__btn {
    margin-top: auto;
}

.events-contacts__container .link-block {
    max-height: 597px;
}

.events-contacts__container .pr-contacts {
    width: 500px;
}

.pr-contacts {
    border-radius: 5px;
    background: var(--White, #fff);

    box-shadow: -12px 183px 51px 0px rgba(0, 0, 0, 0), -7px 117px 47px 0px rgba(0, 0, 0, 0.01),
        -4px 66px 40px 0px rgba(0, 0, 0, 0.05), -2px 29px 29px 0px rgba(0, 0, 0, 0.09),
        0px 7px 16px 0px rgba(0, 0, 0, 0.1);
    padding: 25px 30px 24px 25px;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pr-contacts__title {
    color: var(--Black, #101010);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    max-width: 300px;
}

.pr-contacts__phone {
    color: var(--Black, #101010);
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 41.6px */

    margin-top: auto;
}

.pr-contacts__phone-add {
    color: var(--Grey, #b2b2b2);

    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.pr-contacts__email {
    color: var(--orange-gradient, #f54500);

    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.events-contacts {
    display: flex;
    gap: 10px;

    border-bottom: 1px solid var(--Black, #101010);
    padding-bottom: 18px;
}

.event-input {
    width: 100%;
    padding: 0 30px;

    border-radius: 5px;
    border: 1px solid var(--Black, #101010);

    color: var(--Black, #101010);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 24px */

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-input input {
    border: none;
    width: 100%;
    height: 100%;
    outline: none;
    padding: 30px 0;
    background-color: transparent;
}

.event-select {
    color: var(--Black, #101010);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 19.6px */

    padding: 10px 15px;
    border-radius: 58px;
    background: var(--grey_select, #e8e8e8);

    width: fit-content;
}

.event-select span {
    display: flex;
    align-items: center;
    gap: 52px;
    width: 100%;
}

.event-select span::after {
    content: "";
    width: 10px;
    height: 10px;
    background-image: url("../images/arrow_down.svg");
}

.events-main__container {
    padding-top: 30px;
    margin-bottom: 99px;
}

.events-main__container .main-title {
    margin-bottom: 24px;
}

.events-main__container .events-item {
    margin-bottom: 10px;
}

.event-sec__container {
    margin-bottom: 98px;

    border-bottom: 1px solid var(--Black, #101010);
    padding-bottom: 27px;
}

.past-events__title {
    color: var(--Black, #101010);
    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 48px */

    margin: 0;
    margin-bottom: 22px;
}

.events-contacts__container {
    margin-bottom: 93px;
}

.past-events__form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;

    border-bottom: 1px solid var(--Black, #101010);
    padding-bottom: 14px;
    margin-bottom: 51px;
}

.past-events__result-search {
    margin-bottom: 46px;

    /*
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 26px 10px;

     */
}

.events-item_medium {
    grid-column: span 4;
}

.past-events__result-search .events-item__row {
    margin-bottom: 28px;
}

.past-events__result-search .events-item__row:nth-child(2) {
    margin-bottom: 27px;
}

.events-item_small {
    height: auto !important;
    grid-column: span 3;
}

.events-item_small .events-item__cover {
    height:392px;
}

.pagination__arrow {
    width: 32px;
    height: 32px;
}

.pagination__arrow_right {
    transform: rotate(180deg);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pagination:has(.pagination__items:empty) {
    display: none;
}

.pagination__items {
    display: flex;
    align-items: center;
    gap: 50px;
}

.pagination__item {
    color: var(--Black, #101010);

    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: 100%; /* 20px */
    cursor: pointer;
}

.pagination__item_active {
    color: var(--blue-gradient, #1c86ff);
}

.past-events__container {
    border-bottom: 1px solid var(--Black, #101010);
    padding-bottom: 30px;
    margin-bottom: 101px;
}

.excursions__container .link-block {
    height: 417px;
}

.excursions__container {
    border-bottom: 1px solid var(--Black, #101010);
    padding-bottom: 30px;
    margin-bottom: 90px;
}

.events-item_medium:nth-child(4) {
    display: none;
}

@media (max-width: 1440px) {
    .events-main__container:not(.events-main__container_events) {
        padding-top: 0;
    }

    .events-item {
        height: 587px;
    }

    .events-item_large .events-item__cover {
        height: 587px;
    }

    .events-main__container {
        margin-bottom: 17px;
    }

    .events-item_medium .events-item__cover {
        height: 436px;
    }

    .events-contacts__container .link-block {
        max-height: 501px;
    }

    .events-contacts__container .pr-contacts {
        width: 419px;
    }

    .events-contacts {
        padding-bottom: 30px;
    }

    .events-item_small .events-item__cover {
        height: 230.5px;
    }

    .past-events__result-search .events-item__row:nth-child(2) {
        margin-bottom: 46px;
    }

    .excursions__container .link-block {
        height: 599px;
    }
}

@media (max-width: 1340px) {
    .events-main__container .main-title {
        font-size: 48px;
    }

    .events-main__container:not(.events-main__container_events) {
        padding-top: 5px;
    }

    .events-item {
        height: 422px;
    }

    .events-item__blur-title {
        h3 {
            font-size: 32px;

            line-height: 128%;
            padding-top: 4px;
        }
    }

    .events-item__blur-title {
        max-width: 458.141px;
        padding: 15px 20px 15px 20px;
    }

    .events-item_large .events-item__cover {
        height: 422px;
    }

    .events-item_large .events-item__event-span {
        top: 11px;
        left: 9px;
    }

    .events-item_medium .events-item__event-span {
        top: 8px;
        left: 9px;
        padding: 6px 19px;
    }

    .events-item_medium .events-item__cover {
        height: 306px;
    }

    .event-sec__container {
        padding-bottom: 18px;
    }

    .pr-contacts__title,
    .pr-contacts__email,
    .pr-contacts__phone-add {
        font-size: 16px;
    }

    .pr-contacts__phone {
        font-size: 20px;
    }

    .events-contacts__container .pr-contacts {
        width: 294px;
    }

    .events-contacts__container .link-block {
        max-height: 361px;
    }

    .pr-contacts {
        padding: 17px 30px 16px 18px;
        gap: 9px;
    }

    h3.link-block__title {
        font-size: 32px;
    }

    .link-block__absolute {
        padding: 10px 20px;
    }

    .events-contacts {
        padding-bottom: 20px;
    }

    .past-events__result-search .events-item__row {
        margin-bottom: 47px;
    }

    .events-item_small .events-item__event-span {
        padding: 5px 17px;
        top: 11px;
        left: 11px;
    }

    .events-item_small .events-item__cover {
        height: 227px;
        margin-bottom: 10px;
    }

    .excursions__container .link-block {
        height: 429px;
    }

    .link-block__absolute {
        padding: 20px 30px;
    }

    .events-item {
        height: 422px;
    }
}

@media (max-width: 964px) {
    .events-main__container .main-title {
        font-size: 32px;
    }

    .events-main__container:not(.events-main__container_events) {
        padding-top: 0;
    }

    .events-item {
        height: 308px;
    }

    .events-item__event-span {
        top: 9px;
        left: 5px;
    }

    .events-item__blur-title {
        max-width: 226.141px;
        bottom: 9px;
        left: 5px;
        padding: 9px 20px 10px 17px;

        h3 {
            font-size: 18px;
            padding-top: 9px;
        }

        span {
            font-size: 12px;
        }
    }

    .events-item_large .events-item__event-span {
        top: 7px;
        left: 5px;
    }

    .events-item_large .events-item__cover {
        height: 305px;
    }

    .events-item .events-item__title {
        h5 {
            font-size: 14px;
            line-height: 140%;
        }
    }

    .events-item_large .events-item__cover {
        margin-bottom: 17px;
    }

    .events-item__info {
        font-size: 12px;
        gap: 7px;
    }

    .events-item_medium .events-item__event-span {
        left: 5px;
    }

    .news .events-item__event-span {
        display: none;
    }

    .events-item_medium .events-item__cover {
        height: 228px;
    }

    .events-item_medium .events-item__views {
        margin-left: auto;
        padding-right: 10px;
    }

    .events-item_medium .events-item__cover {
        margin-bottom: 16px;
    }

    .event-sec__container {
        padding-bottom: 14px;
        margin-bottom: 66px;
    }

    .events-contacts {
        flex-direction: column;
    }

    h3.link-block__title {
        font-size: 24px;
        max-width: 467px;
        line-height: 105%;
    }

    .events-contacts__container .link-block {
        max-height: 350px;
    }

    .link-block__absolute {
        padding: 10px 15px;
    }

    .link-block__description {
        font-size: 14px;
        line-height: 150%; /* 21px */
        max-width: 396px;
    }

    .events-contacts__container .pr-contacts {
        flex-direction: row;
        width: 100%;
    }

    .pr-contacts__title,
    .pr-contacts__email,
    .pr-contacts__phone-add {
        font-size: 14px;
    }

    .pr-contacts__phone {
        font-size: 18px;
    }

    .events-contacts {
        gap: 15px;
    }

    .pr-contacts {
        padding: 15px 15px 8px 15px;
        gap: 15px;
    }

    .pr-contacts__phone {
        margin-top: 0;
        margin-left: auto;
    }

    .events-contacts {
        padding-bottom: 16px;
    }

    .past-events__title {
        font-size: 24px;
    }

    .events-contacts__container {
        margin-bottom: 60px;
    }

    .past-events__title {
        margin-bottom: 29px;
    }

    .event-input {
        padding: 0px 15px;
    }

    .past-events__form {
        padding-bottom: 11px;
        margin-bottom: 31px;
    }

    .events-item_small:nth-child(4) {
        display: none;
    }

    .past-events__result-search .events-item__row {
        margin-bottom: 32px;
    }

    .past-events__result-search .events-item__row:nth-child(2) {
        margin-bottom: 70px;
    }

    .pagination {
        display: none;
    }

    .past-events__container {
        padding-bottom: 14px;
        margin-bottom: 65px;
    }

    h2.link-block__title {
        font-size: 24px;
        max-width: 645px;
    }

    .link-block__text {
        font-size: 14px;
        max-width: 610px;
    }

    .excursions__container .link-block {
        height: 315px;
    }

    .link-block__text + .link-block__btn {
        margin-top: 9px;
    }

    .excursions__container {
        margin-bottom: 50px;
    }

    .events-item {
        height: 308px;
        grid-column: span 4;
    }

    .events-item_medium {
        grid-column: span 4;
    }

    h2.link-block__title {
        font-size: 24px;
        max-width: 645px;
    }

    .link-block__text {
        font-size: 14px;
        max-width: 610px;
    }
}



@media (max-width: 700px) {
    .events-main__container .main-title {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .events-main__container:not(.events-main__container_events) {
        padding-top: 11px;
    }

    .events-item {
        height: auto;
    }

    .events-item .cover {
        height: 302px;
        max-height: 100%;
        border-radius: 5px;

        margin-bottom: 19px;
    }

    .events-item__blur-title {
        padding: 0;
        position: static;
        background: none;
        backdrop-filter: none;
        max-width: none;
        h3 {
            color: var(--Black, #101010);
            font-size: 18px;
            font-style: normal;
            font-weight: 400;
            line-height: 130%; /* 23.4px */
            padding-top: 7px;
            max-width: 346px;
            margin-bottom: 52px;
        }

        span {
            color: var(--Gray_black-background, #57585a);
            font-size: 12px;
            font-style: normal;
            font-weight: 400;
            line-height: 140%; /* 16.8px */
        }
    }

    .events-item__row_large {
        flex-direction: column;
    }

    .events-main__container .events-item {
        margin-bottom: 0;
    }

    .events-item__row {
        gap: 30px;
    }

    .events-item__row_medium,
    .events-item__row_small {
        flex-wrap: wrap;
        gap: 17px 10px;
        justify-content: space-between;
    }

    .events-item_medium,
    .events-item_small {
        height: 217px !important;
    }

    .events-item_medium .events-item__cover,
    .events-item_small .events-item__cover {
        height: 133px;
    }

    .events-main .events-item__row {
        margin-bottom: 27px;
    }

    .events-item_medium:nth-child(4) {
        display: block;
    }

    .event-sec__container {
        padding-bottom: 18px;
        margin-bottom: 32px;

        .events-item__row {
            display: grid;
            grid-template-columns: repeat(2, 1fr);

            .events-item_medium {
                grid-column: span 1;
            }
        }
    }

    .link-block__absolute {
        position: static;
        padding: 0;
    }

    h3.link-block__title {
        color: var(--Black, #101010);
        font-size: 24px;
        font-style: normal;
        font-weight: 400;
        line-height: 100%; /* 24px */
    }

    .link-block__description {
        color: var(--Black, #101010);
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 150%; /* 21px */
    }

    .events-contacts__container .link-block {
        max-height: none;
    }

    .link-block .cover {
        height: 171px;
        border-radius: 5px;
        margin-bottom: 8px;
    }

    .link-block__description {
        margin-bottom: 10px;
    }

    .pr-contacts {
        flex-wrap: wrap;
    }

    .pr-contacts__title {
        width: 100%;
    }

    .pr-contacts__phone {
        margin-left: 0;
    }

    .events-contacts {
        padding-bottom: 6px;
    }

    .events-contacts__container {
        margin-bottom: 28px;
    }



    .events-item_medium, .events-item_small {
        height: 217px !important;
    }

    h2.link-block__title {
        color: var(--Black, #101010);
    }

    .link-block__text {
        color: var(--Black, #101010);
        font-size: 14px;
    }

    .excursions__container .link-block {
        height: auto;
    }

    .link-block__text + .link-block__btn {
        width: 100%;
    }

    .excursions__container {
        .link-block .cover {
            height: 154px;
            margin-bottom: 20px;
        }

        h2.link-block__title {
            margin-bottom: 9px;
        }
    }

    .past-events__result-search {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 500px) {

}