/*
 * Первый экран продуктовых страниц (views/layouts/landing/product-hero-decor.php).
 * На мобильном декор — блок под кнопкой, на десктопе — фон справа.
 * Здесь общая геометрия: два стеклянных лепестка и четыре листа (верхний, левый, правый, средний),
 * а также текст и кнопка под заголовком.
 * Страница задаёт высоту блока, заголовок, картинку и отличия в координатах.
 */

.product-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.product-hero__decor {
    position: relative;
}

/* Координаты на мобильном — от левого края экрана шириной 375px, выровненного по центру */
.product-hero__decor > * {
    --x: calc(50% - 187px);

    position: absolute;
    max-width: none;
}

.product-hero__glass {
    width: 151px;
    height: 200px;
    background-color: rgb(251 252 253 / 50%);
    backdrop-filter: blur(30px);
}

.product-hero__glass--left {
    top: 23px;
    left: calc(var(--x) + 38px);
}

.product-hero__glass--right {
    top: 1px;
    left: calc(var(--x) + 189px);
}

.product-hero__leaf--top {
    top: -97px;
    left: calc(var(--x) + 353px);
    width: 104px;
}

.product-hero__leaf--left {
    top: -47px;
    left: calc(var(--x) - 129px);
    width: 145px;
}

.product-hero__leaf--right {
    top: 53px;
    left: calc(var(--x) + 263px);
    width: 367px;
}

.product-hero__leaf--middle {
    top: 161px;
    left: calc(var(--x) + 36px);
    width: 59px;
}

/* Тип продукта второй строкой в заголовке, под крупным названием: «Форма — конструктор …» */
.product-hero__kind {
    display: block;
    margin-top: 8px;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.36;
}

.product-hero__text {
    margin-top: 12px;
    font-size: 18px;
    line-height: 1.39;
    color: var(--color-ink);
}

.product-hero__button {
    min-height: 40px;
    margin-top: 32px;
    padding: 8px 24px;
    font-size: var(--fs-caption);
    box-shadow: 0 0 48px rgb(163 209 247 / 20%);
}

@media (min-width: 980px) {
    .product-hero__decor {
        position: absolute;
        inset: 0;
        z-index: -1;
    }

    /* На десктопе декор привязан к сетке 1200px и к краям окна */
    .product-hero__decor > * {
        --x: calc(50% - 600px);
    }

    .product-hero__glass {
        width: 484px;
        height: 540px;
    }

    .product-hero__glass--left {
        top: 101px;
        left: calc(var(--x) + 225px);
    }

    .product-hero__glass--right {
        top: 61px;
        left: calc(var(--x) + 709px);
    }

    .product-hero__leaf--top {
        top: -111px;
        left: auto;
        right: 4%;
        width: 239px;
    }

    .product-hero__leaf--left {
        top: 150px;
        left: -220px;
        width: 244px;
    }

    .product-hero__leaf--right {
        top: 370px;
        left: auto;
        right: -12%;
        width: 510px;
    }

    .product-hero__leaf--middle {
        top: 493px;
        left: calc(var(--x) + 410px);
        width: 167px;
    }

    .product-hero__kind {
        font-size: 24px;
        line-height: 1.375;
    }

    .product-hero__text {
        font-size: var(--fs-lead);
        line-height: 1.4;
    }

    .product-hero__button {
        min-height: 48px;
        margin-top: 48px;
        padding: 12px 28px;
        font-size: var(--fs-body);
    }
}
