/* First slide, Figma «ПМ редактирование», 3513:9443.
   The existing hero/button primitives and local original image are reused. */
.custom-hero-pm,
.custom-hero-pm .custom-hero-pm__slide,
.custom-hero-pm .custom-hero-pm__container {
    min-height: 660px;
}

.custom-hero-pm .custom-hero-pm__slide {
    background: var(--color-text);
}

.custom-hero-pm .custom-hero-pm__image {
    position: absolute;
    top: 0.01%;
    left: -19.49%;
    width: 138.92%;
    height: 104.3%;
    max-width: none;
}

.custom-hero-pm .custom-hero-pm__overlay {
    background: linear-gradient(90deg, rgb(0 0 0 / 11%), rgb(0 0 0 / 11%)),
        linear-gradient(118.487deg, rgb(0 0 0 / 59%) 39.882%, rgb(102 102 102 / 0%) 82.983%);
}

.custom-hero-pm .custom-hero-pm__container {
    padding: 211px 24px 100px;
    align-items: flex-start;
}

.custom-hero-pm .custom-hero-pm__content {
    display: flex;
    width: min(540px, 100%);
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.custom-hero-pm .custom-hero-pm__title {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0;
}

.custom-hero-pm .custom-hero-pm__description {
    width: min(347px, 100%);
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0;
}

.custom-hero-pm .custom-hero-pm__actions {
    margin: 0;
    padding-block: 8px;
    gap: 12px;
}

.custom-hero-pm .custom-hero-pm__primary {
    padding: 14px 22px;
    border: 0;
    line-height: normal;
}

.custom-hero-pm .custom-hero-pm__secondary {
    padding: 13px 16px;
    border-color: var(--color-surface);
    line-height: normal;
}

.custom-hero-pm .button:focus-visible {
    outline-color: var(--color-white);
}

@media (max-width: 900px) {
    .custom-hero-pm,
    .custom-hero-pm .custom-hero-pm__slide,
    .custom-hero-pm .custom-hero-pm__container {
        min-height: 560px;
    }

    .custom-hero-pm .custom-hero-pm__container {
        padding-block: 160px 80px;
    }
}

@media (max-width: 620px) {
    .custom-hero-pm,
    .custom-hero-pm .custom-hero-pm__slide,
    .custom-hero-pm .custom-hero-pm__container {
        min-height: 500px;
    }

    .custom-hero-pm .custom-hero-pm__image {
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 61% center;
    }

    .custom-hero-pm .custom-hero-pm__container {
        padding: 96px 0 64px;
    }

    .custom-hero-pm .custom-hero-pm__title {
        font-size: 26px;
    }
}

@media (max-width: 420px) {
    .custom-hero-pm .custom-hero-pm__actions {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .custom-hero-pm .custom-hero-pm__actions .button {
        width: min(224px, 100%);
    }
}
