.ip-hero {
    box-sizing: border-box;
    width: 100%;
    padding: 30px 20px 110px;
    overflow: hidden;
    background: #fff;
    color: #292727;
    text-align: center;
}

.ip-hero *,
.ip-hero *::before,
.ip-hero *::after {
    box-sizing: inherit;
}

.ip-hero__content {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

.ip-hero__title {
    margin: 0 0 28px;
    color: #292424;
    font-size: 45px;
    font-weight: 800;
    line-height: 1.15;
}

.ip-hero__lead {
    margin-bottom: 2px;
    color: #595757;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.ip-hero__description {
    color: #5b5959;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
}

.ip-hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 31px;
}

.ip-hero__feedback,
.ip-hero__tariffs {
    display: inline-flex;
    min-height: 57px;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ip-hero__feedback {
    border: 1px solid #ef3c54;
    background: #ef3c54;
    color: #fff;
    cursor: pointer;
}

.ip-hero__feedback:hover {
    border-color: #dc263e;
    background: #dc263e;
}

.ip-hero__tariffs {
    border: 1px solid #d8d6d6;
    background: #fff;
    color: #292727;
}

.ip-hero__tariffs:hover {
    border-color: #292727;
}

.ip-hero__gallery {
    position: relative;
    width: min(1390px, 100%);
    height: 520px;
    margin: 0 auto 0;
    overflow: visible;
}

.ip-hero__gallery-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.ip-hero__gallery-viewport {
    position: absolute;
    top: -90px;
    right: -90px;
    left: -90px;
    height: calc(100% + 90px);
    overflow: hidden;
    padding-top: 162px;
    pointer-events: none;
}

.ip-hero__gallery-stage {
    position: relative;
    width: min(1390px, calc(100% - 180px));
    height: 100%;
    clip-path: inset(-90px -90px 0 -90px);
    margin: 0 auto;
}

.ip-hero__gallery-item {
    --gallery-left: 50%;
    --gallery-lift: 0px;
    --gallery-drop: 0px;
    --gallery-rotate: 0deg;
    --gallery-scale: 1;
    --gallery-clip: inset(0 0 0 0);

    position: absolute;
    top: 0;
    left: var(--gallery-left);
    z-index: 2;
    display: block;
    width: var(--ip-hero-image-width);
    max-width: 100%;
    transform: translate3d(-50%, calc(var(--gallery-drop) + var(--gallery-lift)), 0) scale(var(--gallery-scale)) rotate(var(--gallery-rotate));
    transform-origin: center bottom;
    cursor: pointer;
    pointer-events: auto;
    filter: drop-shadow(0 18px 34px rgba(33, 41, 56, 0.096));
    opacity: 1;
    transition:
        left 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.36s ease,
        filter 0.36s ease;
}

.ip-hero__gallery-item:hover {
    --gallery-lift: -10px;
}

.ip-hero__gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    clip-path: var(--gallery-clip);
    object-fit: contain;
    user-select: none;
}

.ip-hero__gallery::after {
    position: absolute;
    right: -90px;
    bottom: 0;
    left: -90px;
    z-index: 10;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
    content: "";
    pointer-events: none;
}

.ip-hero__gallery-toggle:nth-of-type(1):checked ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--1,
.ip-hero__gallery-toggle:nth-of-type(2):checked ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--2,
.ip-hero__gallery-toggle:nth-of-type(3):checked ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--3 {
    --gallery-left: 50%;
    --gallery-drop: 0px;
    --gallery-rotate: 0deg;
    --gallery-scale: 1;
    --gallery-clip: inset(0 0 0 0);
    --gallery-lift: 0px;

    z-index: 4;
    filter: drop-shadow(0 19px 38px rgba(33, 41, 56, 0.128));
    opacity: 1;
    cursor: default;
}

.ip-hero__gallery-toggle:nth-of-type(1):checked ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--2,
.ip-hero__gallery-toggle:nth-of-type(2):checked ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--3,
.ip-hero__gallery-toggle:nth-of-type(3):checked ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--1 {
    --gallery-left: calc(100% - (var(--ip-hero-image-width) / 2));
    --gallery-drop: 86px;
    --gallery-rotate: 8deg;
    --gallery-scale: 1;
    --gallery-clip: inset(0 0 14% 52%);
    z-index: 2;
}

.ip-hero__gallery-toggle:nth-of-type(1):checked ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--3,
.ip-hero__gallery-toggle:nth-of-type(2):checked ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--1,
.ip-hero__gallery-toggle:nth-of-type(3):checked ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--2 {
    --gallery-left: calc(var(--ip-hero-image-width) / 2);
    --gallery-drop: 86px;
    --gallery-rotate: -8deg;
    --gallery-scale: 1;
    --gallery-clip: inset(0 52% 14% 0);
    z-index: 2;
}

.ip-hero__gallery-toggle:nth-of-type(1):focus-visible ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--1,
.ip-hero__gallery-toggle:nth-of-type(2):focus-visible ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--2,
.ip-hero__gallery-toggle:nth-of-type(3):focus-visible ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--3 {
    outline: 3px solid rgba(239, 60, 84, 0.36);
    outline-offset: 8px;
}

@media (max-width: 1530px) {
    .ip-hero__gallery {
        height: clamp(350px, 34vw, 520px);
    }
}

@media (max-width: 1199px) {
    .ip-hero__gallery {
        height: max(105px, calc((100vw - 40px) * 0.3741));
    }

    .ip-hero__gallery::after {
        right: -6.48%;
        left: -6.48%;
        height: 40%;
    }

    .ip-hero__gallery-viewport {
        top: -17.31%;
        right: -6.48%;
        left: -6.48%;
        height: 117.31%;
        padding-top: 0;
    }

    .ip-hero__gallery-stage {
        top: 26.56%;
        width: 88.53%;
        height: 100%;
        clip-path: none;
    }

    .ip-hero__gallery-item {
        width: 64.75%;
        max-width: none;
    }

    .ip-hero__gallery-toggle:nth-of-type(1):checked ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--1,
    .ip-hero__gallery-toggle:nth-of-type(2):checked ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--2,
    .ip-hero__gallery-toggle:nth-of-type(3):checked ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--3 {
        --gallery-left: 50%;
        --gallery-drop: 0px;
        --gallery-scale: 1;
        --gallery-clip: inset(0 0 0 0);
    }

    .ip-hero__gallery-toggle:nth-of-type(1):checked ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--2,
    .ip-hero__gallery-toggle:nth-of-type(2):checked ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--3,
    .ip-hero__gallery-toggle:nth-of-type(3):checked ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--1 {
        --gallery-left: 67.63%;
        --gallery-drop: clamp(17px, 6.19vw, 74px);
        --gallery-scale: 1;
        --gallery-clip: inset(0 0 14% 52%);
    }

    .ip-hero__gallery-toggle:nth-of-type(1):checked ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--3,
    .ip-hero__gallery-toggle:nth-of-type(2):checked ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--1,
    .ip-hero__gallery-toggle:nth-of-type(3):checked ~ .ip-hero__gallery-viewport .ip-hero__gallery-item--2 {
        --gallery-left: 32.37%;
        --gallery-drop: clamp(17px, 6.19vw, 74px);
        --gallery-scale: 1;
        --gallery-clip: inset(0 52% 14% 0);
    }
}

@media (max-width: 991px) {
    .ip-hero__gallery-item:hover {
        --gallery-lift: 0px;
    }
}

@media (max-width: 767px) {
    .ip-hero {
        padding: 30px 20px 70px;
    }

    .ip-hero__title {
        margin-bottom: 20px;
        font-size: 36px;
    }

    .ip-hero__lead,
    .ip-hero__description {
        font-size: 17px;
    }

    .ip-hero__actions {
        flex-direction: column;
        margin-top: 24px;
    }

    .ip-hero__feedback,
    .ip-hero__tariffs {
        width: 100%;
        max-width: 360px;
    }

    .ip-hero__gallery {
        margin-top: 30px;
    }

}
