.sdh-media {
    --sdh-media-radius: 28px;
    --sdh-media-surface: #ffffff;
    --sdh-media-border: #dbe6ee;
    --sdh-media-shadow: 0 24px 50px rgba(16, 35, 60, 0.08);
    --sdh-media-stage-bg: linear-gradient(135deg, #10233c 0%, #135e96 100%);
    background: var(--sdh-media-surface);
    border: 1px solid var(--sdh-media-border);
    border-radius: var(--sdh-media-radius);
    box-shadow: var(--sdh-media-shadow);
    margin: 28px 0;
    overflow: hidden;
    padding: 28px;
}

.sdh-media--fullscreen {
    background: #08111f;
    border-color: #12263e;
    color: #fff;
}

.sdh-media__head {
    align-items: start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sdh-media__title {
    color: inherit;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    line-height: 1.2;
    margin: 0;
}

.sdh-media__description {
    color: #526678;
    line-height: 1.7;
    margin: 8px 0 0;
    max-width: 760px;
}

.sdh-media--fullscreen .sdh-media__description {
    color: rgba(255, 255, 255, 0.78);
}

.sdh-media__nav {
    display: flex;
    gap: 10px;
}

.sdh-media__nav-button,
.sdh-media__dot {
    border: 0;
    cursor: pointer;
}

.sdh-media__nav-button {
    align-items: center;
    background: #e8f1f7;
    border-radius: 999px;
    color: #135e96;
    display: inline-flex;
    height: 48px;
    justify-content: center;
    min-width: 48px;
}

.sdh-media--fullscreen .sdh-media__nav-button {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.sdh-media__stage {
    background: var(--sdh-media-stage-bg);
    border-radius: 24px;
    min-height: 360px;
    overflow: hidden;
    position: relative;
}

.sdh-media__slide {
    align-items: stretch;
    display: grid;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: translateX(4%);
    transition: opacity 420ms ease, transform 420ms ease;
}

.sdh-media__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    transform: translateX(0);
}

.sdh-media-transition-none .sdh-media__slide,
.sdh-media-transition-none .sdh-media__dot {
    transition: none;
}

.sdh-media-transition-fade .sdh-media__slide {
    transform: none;
}

.sdh-media__image-wrap,
.sdh-media__video-wrap {
    display: grid;
    height: 100%;
    margin: 0;
    position: relative;
}

.sdh-media__image,
.sdh-media__video {
    background: #07111d;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.sdh-media--slider .sdh-media__image,
.sdh-media--slider .sdh-media__video {
    min-height: 500px;
}

.sdh-media--fullscreen .sdh-media__stage {
    min-height: 70vh;
}

.sdh-media__caption {
    backdrop-filter: blur(14px);
    background: linear-gradient(180deg, rgba(8, 17, 31, 0) 0%, rgba(8, 17, 31, 0.75) 100%);
    bottom: 0;
    color: #fff;
    display: grid;
    gap: 6px;
    left: 0;
    padding: 32px 26px 22px;
    position: absolute;
    right: 0;
}

.sdh-media__caption strong {
    font-size: 1.08rem;
}

.sdh-media__gallery {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sdh-media__tile {
    background: #f6fafc;
    border: 1px solid #dbe6ee;
    border-radius: 22px;
    overflow: hidden;
}

.sdh-media__tile .sdh-media__image,
.sdh-media__tile .sdh-media__video {
    min-height: 260px;
}

.sdh-media__tile .sdh-media__caption {
    padding: 22px 18px 18px;
}

.sdh-media__dots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
}

.sdh-media__dot {
    background: #d7e6f1;
    border-radius: 999px;
    height: 10px;
    padding: 0;
    width: 10px;
}

.sdh-media__dot.is-active {
    background: #135e96;
    transform: scale(1.2);
}

.sdh-media-empty {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 16px 18px;
}

@media (max-width: 980px) {
    .sdh-media {
        padding: 22px;
    }

    .sdh-media__head {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .sdh-media,
    .sdh-media__stage,
    .sdh-media__tile {
        border-radius: 20px;
    }

    .sdh-media--slider .sdh-media__image,
    .sdh-media--slider .sdh-media__video {
        min-height: 320px;
    }
}
