.hero {
    position: relative;
    overflow: hidden;
    padding: 40px var(--gutter) 24px;
    border-radius: 0 0 36px 36px;
    color: var(--color-white);
}

.hero__bg {
    inset: 0;
    position: absolute;
    pointer-events: none;
    overflow: hidden;
}

.hero__bg::after {
    position: absolute;
    content: "";
    background-color: rgba(0, 0, 0, 0.26);
    inset: 0;
}

.hero__bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

.hero__inner {
    position: relative;
    flex-direction: column;
    gap: 96px;
    display: flex;
}

.hero__top {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.hero__content {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 56px;
}

.hero__text {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    min-width: 0;
}

.hero__title {
    font-family: var(--font-accent);
    font-size: 52px;
    line-height: 58px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.hero__description {
    font-size: 18px;
    line-height: 27px;
    text-wrap: balance;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero__cards {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    padding-right: 36px;
}

.hero__cards-item_shifted {
    margin-right: 48px;
}

.hero-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 360px;
    height: 116px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background-color 0.2s;
}

.hero-card:hover {
    background-color: rgba(255, 255, 255, 0.75);
}

.hero-card__body {
    flex-direction: column;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.hero-card__number {
    color: #787878;
    font-family: var(--font-accent);
    font-size: 15px;
    font-weight: 500;
    line-height: normal;
}

.hero-card__title {
    width: 240px;
    color: var(--color-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 23px;
}

.hero-card__arrow {
    flex-shrink: 0;
}

.hero__slides {
    display: grid;
}

.hero__slide {
    display: flex;
    flex-direction: column;
    gap: 26px;
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.5s, transform 0.5s, visibility 0.5s;
}

.hero__slide_active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.hero__pagination {
    display: flex;
    gap: 8px;
}

.hero__dot {
    position: relative;
    width: 10px;
    height: 10px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 100px;
    background-color: var(--color-white);
    cursor: pointer;
    transition: width 0.3s;
}

.hero__dot:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 3px;
}

.hero__dot_active {
    width: 80px;
    cursor: default;
}

.hero__dot-progress {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    background-color: var(--color-gray-dark);
}

.hero__dot_active .hero__dot-progress {
    animation: hero-progress var(--hero-delay, 6s) linear forwards;
}

.hero_paused .hero__dot-progress {
    animation-play-state: paused;
}

@keyframes hero-progress {
    to {
        width: 100%;
    }
}

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

    .hero__dot_active .hero__dot-progress {
        width: 100%;
        animation: none;
    }
}

@media (max-width: 1180px) {
    .hero__content {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__cards {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        padding-right: 0;
    }

    .hero__cards-item_shifted {
        margin-right: 0;
    }

    .hero-card {
        width: 300px;
    }
}

@media (max-width: 767px) {
    .hero {
        padding-top: 16px;
    }

    .hero__inner {
        gap: 48px;
    }

    .hero__top {
        gap: 40px;
    }

    .hero__title {
        font-size: 30px;
        line-height: 34px;
    }

    .hero__description {
        font-size: 16px;
        line-height: 24px;
    }

    .hero-card {
        width: 100%;
    }

    .hero__cards-item {
        width: 100%;
    }
}
