.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height, 114px));
    min-height: 420px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__slides {
    position: absolute;
    inset: 0;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}
.hero__slide.is-active {
    opacity: 1;
}


.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(47 147 198 / 0%) 0%, rgb(31 111 156 / 90%) 100%);
}


.hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero__title {
    margin: 0;
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.25;
    max-width: 900px;
}

.hero__subtitle {
    margin: 16px 0 0;
    font-size: clamp(14px, 1.6vw, 18px);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    max-width: 640px;
}

.hero__advantages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
    max-width: 1100px;
}

.hero__advantage {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 240px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    backdrop-filter: blur(6px);
    text-align: left;
}

.hero__advantage-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero__advantage-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.hero__advantage-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}
.hero__advantage-desc {
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* ===== Стрелки ===== */

.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(20, 30, 45, 0.35);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}
.hero__arrow:hover {
    background: rgba(20, 30, 45, 0.55);
}
.hero__arrow svg {
    width: 20px;
    height: 20px;
}
.hero__arrow--prev {
    left: 24px;
}
.hero__arrow--next {
    right: 24px;
}

/* ===== Точки-пагинация ===== */

.hero__dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hero__dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    color: #1f2937;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.hero__dot.is-active {
    background: var(--color-accent);
    color: #1f2937;
}

@media (max-width: 767px) {
    .hero {
        flex-direction: column;
        justify-content: flex-end;
        height: auto;
        min-height: calc(100vh - var(--header-height, 190px));
        padding: 40px 0 32px;
    }

.hero__overlay {
    background: linear-gradient(180deg, rgb(47 147 198 / 25%) 21%, rgb(31 111 156 / 100%) 100%);
}


    .hero__content {
        gap: 0;
    }
    .hero__advantages {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 32px;
    }
    .hero__advantage {
        width: auto;
        flex-direction: column;
        text-align: center;
        padding: 14px 10px;
    }
    .hero__advantage-desc {
        display: none;
    }
    .hero__arrow {
        display: none;
    }
    .hero__dots {
        position: static;
        transform: none;
        margin-top: 28px;
        justify-content: center;
    }
}
