@charset "UTF-8";

/**
 * Внутренние: плоская .header--inner (и без hero, напр. товар)
 * + компактный .hero--inner без островов
 * Откат разметки: в hero.tpl {var $innerHero = 0}
 */
@layer pages {
    .header--inner {
        --inner-header-pad-block: 1.85rem;
        --inner-logo-h: 2.75rem;
        position: relative;
        z-index: 12;
        top: auto;
        right: auto;
        left: auto;
        width: min(100% - var(--container-padding-inline) * 2, var(--container-max-width));
        margin-inline: auto;
        padding-block: var(--inner-header-pad-block);
        padding-inline: var(--container-padding-inline);
        background: var(--color-white);
        align-items: center;
        gap: calc(var(--gap) * 2);
    }

    .header--inner .header__logo {
        padding: 0;
        background: transparent;
        border-radius: 0;
        filter: none;
    }

    .header--inner .header__logo::before,
    .header--inner .header__logo::after {
        content: none;
        display: none;
    }

    .header--inner .header__logo-img {
        height: var(--inner-logo-h);
    }

    .header--inner .header__actions {
        height: auto;
        padding-inline: 0;
        gap: 1.25rem;
        background: transparent;
        border-radius: 0;
        filter: none;
    }

    .header--inner .header__actions::before,
    .header--inner .header__actions::after {
        content: none;
        display: none;
    }

    .header--inner .header__actions-contacts a {
        font-size: 1rem;
        gap: 0.45rem;
    }

    .header--inner .header__actions-contacts .header__phone {
        font-size: 1.2rem;
        font-weight: 600;
    }

    .header--inner .header__actions-icon {
        display: none;
    }

    .header--inner .header__nav {
        padding: 0.25rem 1rem;
    }

    .hero--inner {
        --inner-banner-gap: 1rem;
        --inner-copy-pad: max(
            var(--container-padding-inline),
            calc(50% - var(--container-max-width) / 2 + var(--container-padding-inline))
        );
        padding: 0;
    }

    /* ------------------------------------------------------------ */
    /* Viewport                                                     */
    /* ------------------------------------------------------------ */
    .hero--inner .hero__viewport {
        position: relative;
        width: min(100% - var(--inner-banner-gap) * 2, var(--body-max-width, 2400px));
        margin-inline: auto;
        margin-bottom: 0;
        min-height: max(24rem, 50vh);
        border-radius: var(--radius-large);
        overflow: visible;
    }

    :is(.page-template-4, .page-template-5) .hero--inner .hero__viewport {
        min-height: max(24rem, 50vh);
    }

    .hero--inner .hero__media {
        border-radius: inherit;
    }
    
    .hero--inner .hero__bg {
        object-position: right bottom;
        height: 100%;
        min-height: 100%;
    }

    .hero--inner .hero__copy {
        inset: 0 auto 0 0;
        left: 0;
        width: min(76rem, 64vw);;
        max-width: calc(100% - 2rem);
        padding-top: clamp(1.25rem, 4vh, 2.5rem);
        padding-bottom: clamp(1.25rem, 4vh, 2.5rem);
        padding-right: 1rem;
        padding-left: var(--inner-copy-pad);
        justify-content: center;
        gap: clamp(0.65rem, 2vh, 1.35rem);
        transform: none;
    }

    .hero--inner .hero__copy::before {
        inset: -1rem;
        filter: blur(28px);
        background: color-mix(in oklch, var(--color-white-featured), transparent 45%);
    }

    :is(.page-template-4, .page-template-5) .hero--inner .hero__title {
        font-size: clamp(1.35rem, 3.4vw, 2.75rem);
    }

    .hero--inner .hero__product {
        right: clamp(1rem, 5vw, 4rem);
        bottom: clamp(0.75rem, 3vh, 2rem);
        top: auto;
        height: min(88%, 22rem);
        max-height: none;
    }

    .page-chloramine .hero--inner .hero__product,
    .page-chlor-tabs .hero--inner .hero__product,
    :is(.page-template-4, .page-template-5) .hero--inner .hero__product {
        bottom: clamp(0.75rem, 3vh, 2rem);
        height: min(88%, 22rem);
    }

    .page-chlor-tabs .hero--inner .hero__product {
        right: clamp(1rem, 4vw, 6rem);
    }

    .hero--inner .hero__price {
        display: none !important;
    }

    @media (width <= 1400px) {
        .header--inner {
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 0.75rem 1rem;
        }

        .header--inner .header__nav {
            order: 2;
            flex: 0 0 100%;
            padding-inline: 0;
        }

        .hero--inner .hero__copy {
            width: min(44rem, 58%);
        }
    }

    @media (width <= 992px) {
        .header--inner {
            width: 100%;
            padding-inline: 1rem;
            flex-wrap: nowrap;
        }

        .header--inner .header__nav,
        .header--inner .header__actions {
            display: none;
        }

        .header--inner .header__burger {
            display: grid;
            place-items: center;
            margin-top: 0;
        }

        .hero--inner .hero__viewport {
            width: calc(100% - 2rem);
            min-height: clamp(18rem, 46vh, 26rem);
        }

        :is(.page-template-4, .page-template-5) .hero--inner .hero__viewport {
            min-height: clamp(18rem, 46vh, 26rem);
        }

        .hero--inner .hero__copy {
            width: min(40rem, 70%);
            --inner-copy-pad: 1.25rem;
            padding-left: var(--inner-copy-pad);
        }

        .hero--inner .hero__product {
            height: min(78%, 18rem);
            right: 0.75rem;
        }

        :is(.page-template-4, .page-template-5) .hero--inner .hero__product {
            height: min(78%, 18rem);
        }
    }

    @media (width <= 768px) {
        .hero--inner .hero__viewport {
            min-height: clamp(20rem, 58vh, 28rem);
        }

        :is(.page-template-4, .page-template-5) .hero--inner .hero__viewport {
            min-height: clamp(20rem, 58vh, 28rem);
        }

        .hero--inner .hero__copy {
            inset: auto 0 0 0;
            width: 100%;
            max-width: none;
            left: 0;
            top: auto;
            bottom: 0;
            transform: none;
            padding: 1.25rem 1.25rem 2.25rem;
            padding-left: 1.25rem;
            justify-content: flex-end;
        }

        .hero--inner .hero__copy::before {
            inset: -0.5rem;
            background: color-mix(in oklch, var(--color-white-featured), transparent 28%);
            filter: blur(22px);
        }

        .hero--inner .hero__buttons {
            flex-direction: column;
            align-items: stretch;
            width: max-content;
            max-width: 100%;
            gap: 0.5rem;
        }

        .hero--inner .hero__buttons .btn-primary {
            width: 100%;
        }

        .hero--inner .hero__product {
            height: 40%;
            right: 0.75rem;
            bottom: auto;
            top: 0.75rem;
        }
    }

    @media (width <= 576px) {
        .header--inner {
            --inner-logo-h: 2.25rem;
            --inner-header-pad-block: 1rem;
        }

        .hero--inner .hero__viewport {
            width: calc(100% - 1.5rem);
            border-radius: var(--radius);
            min-height: 19rem;
        }

        :is(.page-template-4, .page-template-5) .hero--inner .hero__viewport {
            min-height: 24rem;
        }

        .hero--inner .hero__copy {
            padding: 1rem 1rem 2.25rem;
        }

        .hero--inner .hero__product {
            height: 32%;
            top: 0.5rem;
            right: 0.5rem;
        }

        :is(.page-template-4, .page-template-5) .hero--inner .hero__title {
            font-size: clamp(1.2rem, 6vw, 1.6rem);
        }
    }
}
