/* ===== Home Carousel ===== */

.hc {
    max-width: 100%;
    margin: 51px auto 0 auto;
}

.hc__viewport {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #111;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

/* Track is sliding container */
.hc__track {
    display: flex;
    width: 100%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: transform 520ms ease;
}

/* Slide */
.hc__slide {
    flex: 0 0 100%;
    position: relative;
    min-height: 600px;
    height: clamp(320px, 38vw, 430px);
    color: #fff;
    overflow: hidden;
}

.hc__slide a {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.hc__img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: all 0.2s;
}

/* Overlay gradient for readability */
.hc__overlay {
    position: absolute;
    inset: 0;
    transition: all 0.2;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, .62) 0%,
            rgba(0, 0, 0, .35) 40%,
            rgba(0, 0, 0, .10) 72%,
            rgba(0, 0, 0, 0) 100%);
}

.hc:hover .hc__img {
    transition: all 0.2s;
    transform: scale(1.01);
    object-fit: cover;
}

/* Content */
.hc__content {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 26px;
    max-width: 760px;
    padding-left: 45px;
}

.hc__badge {
    position: absolute;
    top: 28px;
    left: 29px;
    color: #fff;
    padding: 10px 29px;
    border-radius: 8px;
    font-family: "Inter";
    font-size: 18px;
    z-index: 999;
    /* дефолт */
}

.hc__title {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 27px;
    color: #fff;
}

.hc__text {
    font-weight: 400;
    margin-bottom: 50px;
    color: #fff;
}

/* Nav buttons */
.hc__btn {
    position: absolute;
    bottom: 74px;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, .85);
    color: #111;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
    transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.hc__btn span {
    font-size: 30px;
    line-height: 1;
    transform: translateY(-1px);
}

.hc__btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

.hc__btn:active {
    transform: translateY(0);
}

.hc__btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .9);
    outline-offset: 3px;
}

.hc__btn--prev {
    right: 133px;
}

.hc__btn--next {
    right: 63px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hc__track {
        transition: none;
    }

    .hc__btn {
        transition: none;
    }
}

@media (max-width: 1012px) {

    .hc__content {
        padding-left: 0px;
    }

    .hc__title {
        font-size: 34px;
    }

    .hc__text {
        margin-bottom: 150px;
    }

    .hc__btn {
        bottom: 46px;
    }
}