.event {
    color: #222;
}

.event .body {
    color: #222;
}

.cases .body .head{
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 40px;
margin-bottom: 20px;
}
/* Модальное окно */
.share-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 9999;
}
.share-modal-content {
background: #fff;
border-radius: 12px;
width: 280px;
max-width: 90%;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
overflow: hidden;
}
.share-modal-header {
padding: 15px;
border-bottom: 1px solid #eee;
display: flex;
justify-content: space-between;
align-items: center;
font-weight: bold;
font-size: 18px;
}
.share-modal-header span{
color:#5c5c5c;
}
.share-modal-close {
background: none;
border: none;
font-size: 24px;
cursor: pointer;
color: #999;
}
.share-modal-close:hover {
color: #333;
}
.share-modal-body {
padding: 15px;
display: flex;
gap: 10px;
flex-direction: column;
}
.share-social {
padding: 10px 15px;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
transition: 0.2s;
}
.share-social.vk {
background: #0077FF;
color: white;
}
.share-social.vk:hover {
background: #005bb5;
}
.share-social.ok {
background: #EE8208;
color: white;
}
.share-social.ok:hover {
background: #c96a00;
}
/* Стили для Telegram */
.share-social.tg {
background: #26A5E4;
color: white;
}
.share-social.tg:hover {
background: #1e8ac1;
}
/* Стили для кнопки копирования */
.share-social.copy {
background: #4CAF50;
color: white;
}
.share-social.copy:hover {
background: #45a049;
}
/* Состояние для скопированной ссылки */
.share-social.copy.copied {
background: #2e7d32;
}

/* Фотогалерея / Фото с мероприятия */
.event-gallery {
    margin-top: 40px;
}

.event-gallery .head .title {
    margin: 0;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
    color: #164B93;
}

.event-gallery--no-arrows .splide__arrows {
    display: none !important;
}

.event-gallery__link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    cursor: zoom-in;
    background: #f1f5f9;
}

.event-gallery__zoom-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(4px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.event-gallery__link:hover .event-gallery__zoom-badge,
.event-gallery__link:focus-visible .event-gallery__zoom-badge {
    opacity: 1;
    transform: scale(1);
}

@media (hover: none) {
    .event-gallery__zoom-badge {
        opacity: 0.85;
        transform: scale(1);
    }
}

.event-gallery .splide__slide img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.25s ease;
}

.event-gallery__link:hover img {
    transform: scale(1.02);
}

.event-gallery-single {
    max-width: 760px;
}

.event-gallery-single img {
    width: 100%;
    max-height: 520px;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.25s ease;
}

/* Полноэкранный просмотрщик (Lightbox) */
.event-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    overscroll-behavior: contain;
}

.event-lightbox.is-open {
    display: flex;
}

.event-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(4px);
}

.event-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 68px 64px 48px;
    box-sizing: border-box;
    pointer-events: none;
}

.event-lightbox__stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    pointer-events: none;
}

.event-lightbox__figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 92vw;
    max-height: 85vh;
    overflow: visible;
    pointer-events: none;
}

.event-lightbox__img {
    max-width: 92vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
    touch-action: none;
    transform-origin: center center;
    will-change: transform;
    cursor: zoom-in;
}

.event-lightbox__img.is-animating {
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.event-lightbox.is-zoomed .event-lightbox__img {
    cursor: grab;
    border-radius: 0;
}

.event-lightbox.is-dragging .event-lightbox__img {
    cursor: grabbing;
}

.event-lightbox__caption {
    margin-top: 14px;
    color: #f8fafc;
    font-size: 15px;
    line-height: 1.45;
    text-align: center;
    max-width: 760px;
    pointer-events: auto;
    transition: opacity 0.2s ease;
    position: relative;
    z-index: 2;
}

.event-lightbox.is-zoomed .event-lightbox__caption {
    opacity: 0;
    pointer-events: none;
}

.event-lightbox__counter {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    z-index: 10;
}

.event-lightbox__toolbar {
    position: fixed;
    top: 16px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    z-index: 10;
}

.event-lightbox__btn,
.event-lightbox__close,
.event-lightbox__zoom-level {
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(6px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
    pointer-events: auto;
}

.event-lightbox__btn,
.event-lightbox__close {
    width: 44px;
    border-radius: 50%;
    padding: 0;
}

.event-lightbox__close {
    font-size: 28px;
    line-height: 1;
}

.event-lightbox__zoom-level {
    min-width: 62px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.event-lightbox__btn:hover:not(:disabled),
.event-lightbox__close:hover,
.event-lightbox__zoom-level:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.34);
}

.event-lightbox__btn:disabled,
.event-lightbox__zoom-level:disabled {
    opacity: 0.45;
    cursor: default;
}

.event-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    pointer-events: auto;
    z-index: 10;
}

.event-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.34);
}

.event-lightbox__nav--prev {
    left: 20px;
}

.event-lightbox__nav--next {
    right: 20px;
}

@media (max-width: 1023px) {
    .page_activity .event .event-gallery .splide__track {
        margin: 0 calc((100vw - 100%) / -2);
    }
}

@media (max-width: 768px) {
    .event .title {
        font-size: 24px;
        line-height: 1.25;
    }
    .event .body {
        font-size: 15px;
        line-height: 1.6;
    }
    .event .body img,
    .event .body iframe,
    .event .body video {
        max-width: 100% !important;
        height: auto !important;
    }
    .event .event-gallery .head .title {
        font-size: 22px;
    }
    .event .event-gallery .splide__slide img {
        height: 210px !important;
        width: 100% !important;
        object-fit: cover;
    }
    .event-lightbox__dialog {
        padding: 64px 16px 32px;
    }
    .event-lightbox__counter {
        top: 14px;
        left: 12px;
        font-size: 13px;
        padding: 5px 10px;
    }
    .event-lightbox__toolbar {
        top: 12px;
        right: 12px;
        gap: 6px;
    }
    .event-lightbox__btn,
    .event-lightbox__close,
    .event-lightbox__zoom-level {
        height: 38px;
    }
    .event-lightbox__btn,
    .event-lightbox__close {
        width: 38px;
    }
    .event-lightbox__close {
        font-size: 24px;
    }
    .event-lightbox__zoom-level {
        min-width: 52px;
        padding: 0 9px;
        font-size: 12px;
    }
    .event-lightbox__nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .event-lightbox__nav--prev {
        left: 10px;
    }
    .event-lightbox__nav--next {
        right: 10px;
    }
    .next-news {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}