.sw-hero {
    margin: 18px auto 28px;
    max-width: 1220px;
    padding: 0 16px;
}

.sw-hero__viewport {
    position: relative;
    aspect-ratio: 1200 / 430;
    min-height: 190px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f7f4;
    box-shadow: 0 10px 30px rgba(22, 31, 22, 0.08);
}

.sw-hero__slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.01);
    transition: opacity 260ms ease, visibility 260ms ease, transform 500ms ease;
}

.sw-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}

.sw-hero__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.sw-hero__control {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #1f2a1f;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

.sw-hero__control:hover,
.sw-hero__control:focus {
    background: #ffffff;
    transform: translateY(-50%) scale(1.04);
}

.sw-hero__control:focus {
    outline: 2px solid #2f855a;
    outline-offset: 2px;
}

.sw-hero__control span {
    display: block;
    font-size: 32px;
    line-height: 1;
    margin-top: -2px;
}

.sw-hero__control--prev {
    left: 16px;
}

.sw-hero__control--next {
    right: 16px;
}

.sw-hero__dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(20, 28, 20, 0.34);
    transform: translateX(-50%);
}

.sw-hero__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
}

.sw-hero__dot.is-active {
    width: 24px;
    border-radius: 999px;
    background: #ffffff;
}

.sw-hero__dot:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .sw-hero__slide,
    .sw-hero__control {
        transition: none;
    }
}

@media (max-width: 767px) {
    .sw-hero {
        margin: 12px auto 22px;
        padding: 0 10px;
    }

    .sw-hero__viewport {
        aspect-ratio: 16 / 9;
        min-height: 168px;
        border-radius: 6px;
    }

    .sw-hero__control {
        width: 34px;
        height: 34px;
    }

    .sw-hero__control--prev {
        left: 8px;
    }

    .sw-hero__control--next {
        right: 8px;
    }

    .sw-hero__control span {
        font-size: 26px;
    }

    .sw-hero__dots {
        bottom: 10px;
        gap: 6px;
    }
}
