.modern-hero-slider {
    position: relative;
    overflow: hidden;
    min-height: clamp(560px, 74vh, 760px);
    background: #071a2d;
    color: #fff;
}

.modern-hero-slider__track,
.modern-hero-slide {
    position: absolute;
    inset: 0;
}

.modern-hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity .75s ease, visibility .75s ease;
}

.modern-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.modern-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 7s ease;
}

.modern-hero-slide.is-active img {
    transform: scale(1.12);
}

.modern-hero-slide__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7,26,45,.95) 0%, rgba(7,26,45,.82) 39%, rgba(7,26,45,.38) 70%, rgba(7,26,45,.16) 100%),
        radial-gradient(circle at 25% 42%, rgba(0,159,223,.22), transparent 30%),
        linear-gradient(0deg, rgba(7,26,45,.5), transparent 48%);
}

.modern-hero-slide::after {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: 8%;
    width: 34%;
    background: linear-gradient(90deg, rgba(255,255,255,.055), transparent);
    transform: skewX(-17deg);
    pointer-events: none;
}

.modern-hero-slide .container {
    position: relative;
    z-index: 2;
    min-height: clamp(560px, 74vh, 760px);
    display: flex;
    align-items: center;
}

.modern-hero-slide__content {
    max-width: 770px;
    padding-block: 80px;
}

.modern-hero-slide__content span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #9be4c6;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.modern-hero-slide__content span::before {
    content: "";
    width: 42px;
    height: 2px;
    background: #009fdf;
}

.modern-hero-slide__content h1,
.modern-hero-slide__content h2 {
    margin: 0 0 24px;
    color: #fff;
    font-family: "Roboto", Arial, sans-serif;
    font-size: clamp(2.6rem, 5vw, 5.4rem);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.modern-hero-slide__content p {
    max-width: 650px;
    margin: 0 0 34px;
    color: rgba(255,255,255,.82);
    font-size: clamp(1rem, 1.45vw, 1.2rem);
    line-height: 1.8;
}

.modern-hero-slide__btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 28px;
    color: #fff;
    background:
        linear-gradient(to top, #071a2d, #071a2d) bottom / 100% 0 no-repeat,
        #009fdf;
    border: 1px solid #009fdf;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background-size .32s cubic-bezier(.22, 1, .36, 1), border-color .32s ease, transform .2s ease;
}

.modern-hero-slide__btn:hover {
    color: #fff;
    border-color: #071a2d;
    background-size: 100% 100%, auto;
    transform: translateY(-2px);
}

.modern-hero-slider__controls {
    position: absolute;
    z-index: 4;
    inset-inline-start: 50%;
    bottom: 38px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(12px);
}

.modern-hero-slider__arrow,
.modern-hero-slider__dots button {
    border: 0;
    cursor: pointer;
}

.modern-hero-slider__arrow {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: rgba(255,255,255,.1);
    font-size: 2rem;
    line-height: 1;
    transition: background .2s ease, transform .2s ease;
}

.modern-hero-slider__arrow:hover {
    background: #009fdf;
    transform: translateY(-1px);
}

.modern-hero-slider__dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

.modern-hero-slider__dots button {
    width: 34px;
    height: 4px;
    padding: 0;
    background: rgba(255,255,255,.34);
    transition: width .25s ease, background .25s ease;
}

.modern-hero-slider__dots button.is-active {
    width: 54px;
    background: #009fdf;
}

@media (max-width: 767px) {
    .modern-hero-slider,
    .modern-hero-slide .container {
        min-height: 640px;
    }

    .modern-hero-slide__shade {
        background:
            linear-gradient(90deg, rgba(7,26,45,.95), rgba(7,26,45,.74)),
            radial-gradient(circle at 32% 38%, rgba(0,159,223,.2), transparent 34%);
    }

    .modern-hero-slide__content {
        padding-block: 92px 120px;
    }

    .modern-hero-slide__content h1,
    .modern-hero-slide__content h2 {
        font-size: clamp(2.35rem, 12vw, 3.35rem);
    }
}
