.hero>.container {
    padding-block: 0;
    padding-inline: clamp(1rem,3vw,20px);
}

.hero__inner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: end;
    min-height: min(50.5rem,100svh - 1.5rem);
    padding: clamp(1.5rem,5vw,4rem);
    gap: clamp(1.25rem,3.2vw,2.5rem);
    border-radius: clamp(1rem,3vw,1.5rem);
    box-shadow: 0 21px 20px #a6a6a640;
    background: var(--color-neutral-0);
}

.hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem,2.6vw,2rem);
}

.hero__slides {
    display: grid;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero__slide {
    grid-area: 1/1;
    align-self: end;
    align-items: flex-start;
    gap: clamp(1.25rem,2.2vw,1.9375rem);
    opacity: 1;
    visibility: visible;
    transition: opacity .8s cubic-bezier(.22,1,.36,1),visibility 0s;
}

.hero__slide[hidden] {
    display: flex!important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .5s ease-out,visibility 0s .5s;
}

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

.hero__price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-google-sans);
    font-size: clamp(1.125rem,2vw,1.5rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.03em;
    font-feature-settings: "lnum" 1,"pnum" 1;
}

.hero__price-old {
    color: var(--primary-950);
}

.hero__price-current {
    color: var(--third-800);
}

.hero__discount {
    display: inline-flex;
    align-items: center;
    min-height: 1.375rem;
    padding: .25rem .5rem;
    border-radius: 3.3125rem;
    background: var(--third-800);
    color: var(--primary-50);
    font-family: var(--font-onest);
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.03em;
}

.hero__slider-controls {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    z-index: 2;
    display: flex;
    gap: 1rem;
}

.hero__slider-button {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--third-800);
    cursor: pointer;
    transition: background-color .18s ease-out;
}

.hero__slider-button:not(:disabled):hover {
    background: var(--third-700);
}

.hero__slider-button:not(:disabled):active {
    background: var(--third-900);
}

.hero__slider-button:disabled {
    cursor: default;
}

.hero__slider-button:focus-visible {
    outline: .125rem solid var(--secondary-700);
    outline-offset: .1875rem;
}

.hero__slider-button {
    color: var(--primary-50);
}

.hero__slider-button svg[hidden] {
    display: none;
}

.hero__slider-button img {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
}

.hero__slider-button--prev img {
    transform: rotate(-90deg);
}

.hero__slider-button--next img {
    transform: rotate(90deg);
}

.hero__title {
    max-width: 75rem;
    font-size: clamp(1.75rem,2.4vw + 1.125rem,3.5rem);
}

.hero__text {
    max-width: 58.25rem;
    font-size: clamp(1.125rem,1.2vw + .875rem,2rem);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(.75rem,2vw,1.25rem);
}

.hero__actions .button {
    max-width: 100%;
    padding-inline: clamp(1.125rem,6vw,2.25rem);
    font-size: clamp(.9375rem,4vw,1.125rem);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero__bg-image {
    position: absolute;
    max-width: none;
    width: auto;
    height: auto;
}

.hero__bg-image--start {
    top: clamp(-27.3125rem,-30vw,-13.75rem);
    left: clamp(-23.9375rem,-28vw,-12.5rem);
    width: clamp(23.75rem,58vw,46.4375rem);
    transform-origin: 50% 50%;
    animation: hero-start-sway 9s ease-in-out infinite;
    animation-play-state: paused;
}

.hero__bg-image--end {
    right: clamp(-27rem,-32vw,-12.5rem);
    bottom: clamp(-25.375rem,-30vw,-11.25rem);
    width: clamp(32.5rem,92vw,83.8125rem);
}

.hero:not(.hero--success) .hero__title {
    max-width: 80rem;
    line-height: 1.1;
}

.hero:not(.hero--success) .hero__text {
    line-height: 1.2;
}

@media(max-width:47.99rem) {
    .hero:not(.hero--success) .hero__inner {
        padding-bottom: 6.25rem;
    }
    .hero__slider-controls {
        right: 1.5rem;
        bottom: 1.5rem;
    }
}

@media(min-width:36rem) {
    .hero__actions {
        flex-flow: row wrap;
        align-items: center;
    }
    .hero__actions .button {
        padding-inline: 2.25rem;
        font-size: 1.125rem;
    }
}

@media(min-width:90rem) {
    .hero>.container {
        padding-inline: 20px;
    }
    .hero__inner {
        min-height: 50.5rem;
        padding: 4rem;
        gap: 2.5rem;
        border-radius: 1.5rem;
    }
    .hero__title {
        font-size: 3.5rem;
    }
    .hero__text {
        font-size: 2rem;
    }
    .hero__bg-image {
        width: auto;
    }
    .hero__bg-image--start {
        top: -27.3125rem;
        left: -23.9375rem;
        width: auto;
    }
    .hero__bg-image--end {
        right: -27rem;
        bottom: -25.375rem;
        width: auto;
    }
}

.page--order-success .page__content {
    padding-block: 1.5rem 7.5rem;
}

.hero--success .hero__inner {
    min-height: 50.5rem;
    padding-top: 8.75rem;
}

.hero--success .hero__content {
    gap: 1.9375rem;
}

.hero--success .hero__title {
    line-height: 1.1;
}

.hero--success .hero__actions {
    margin-top: .8125rem;
}

.hero--success .hero__actions .button {
    font-family: var(--second-family);
}

.hero__success-decor {
    position: absolute;
    max-width: none;
    transform: rotate(-164.7deg);
}

.hero__success-decor--start {
    left: -21.1875rem;
    top: -31rem;
    width: 50.375rem;
    height: 51.625rem;
}

.hero__success-decor--end {
    left: calc(100% - 42.25rem);
    top: 6.8125rem;
    width: 50.8125rem;
    height: 55.5625rem;
}
