/*
 * Шаблон rolf страницы подбора: заголовок, лоадер, баннер ошибки и кнопка
 * «Наверх». Корень .podbor.main__wrap несёт скоуп .t91857ea7 и объявляет
 * переменные --rolf-*: их наследуют дочерние компоненты (ui.podbor.search,
 * ui.podbor.by.steps, ui.products.list, ui.search.result), поэтому блок
 * переменных живёт здесь, а не в каждом из них.
 * Легаси-свойства -webkit-box-* оставлены там, где Blink отдаёт их в computed
 * styles: снятие меняет вычисленный стиль блока при том же виде на экране.
 */
@font-face {
    font-family: 'DIN 2014';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/DIN2014-Regular.woff) format('woff');
}

@font-face {
    font-family: 'DIN 2014';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(fonts/DIN2014-DemiBold.woff) format('woff');
}

@font-face {
    font-family: 'DIN 2014';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(fonts/DIN2014-Bold.woff) format('woff');
}

@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(fonts/roboto-condensed-300-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(fonts/roboto-condensed-300-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/roboto-condensed-400-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/roboto-condensed-400-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(fonts/roboto-condensed-700-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(fonts/roboto-condensed-700-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.t91857ea7.podbor.main__wrap {
    --rolf-yellow: var(--theme-accent, #FFCD00);
    --rolf-yellow-dark: var(--theme-accent-dark, #E6B800);
    --rolf-black: var(--theme-dark, #111111);
    --rolf-gray: var(--theme-gray, #5D6067);
    --rolf-gray-light: var(--theme-gray-light, #B0B5BA);
    --rolf-border: var(--theme-border, #D2D4D8);
    --rolf-red: var(--theme-error, #CE0E2D);
    --rolf-font: 'DIN 2014', 'DIN2014', var(--theme-font, 'Roboto Condensed'), 'Arial Narrow', Arial, sans-serif;
    --rolf-white: var(--theme-light, #FFFFFF);
    --rolf-card: var(--theme-card-bg, #1E1E1E);
    --rolf-muted: var(--theme-text-muted, #A0A0A0);

    font-family: var(--rolf-font);
    color: var(--rolf-black);
    letter-spacing: 0.005em;

    .podbor.title__wrap {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 24px;
        margin: 24px 0;
    }

    .section__title {
        display: flex;
        flex-direction: column;
        -webkit-box-orient: vertical;
        align-items: start;
        -webkit-box-align: start;
        -webkit-box-pack: justify;
        justify-content: space-between;
        gap: 7px;
        margin: 40px 0 24px;
        padding: 0;
    }

    .podbor-title {
        display: block;
        font-family: var(--rolf-font);
        font-size: 48px;
        font-weight: 700;
        line-height: 1.12;
        letter-spacing: -2%;
        color: var(--rolf-black);
    }

    .podbor-title__word,
    .podbor-title__space,
    .podbor-title__and {
        text-transform: uppercase;
    }

    .podbor-title__br-mobile {
        display: none;
    }

    .podbor-title__br-desktop {
        display: none;
    }

    *:focus,
    *:focus-visible {
        outline: 2px solid var(--rolf-yellow);
        outline-offset: 1px;
    }

    .search_loader {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 24px 0;

        .preloader {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            max-width: 420px;
        }

        .preloader__logo {
            display: block;
            width: auto;
            height: 20px;
            margin-bottom: 20px;
        }

        .preloader__loader {
            position: relative;
            width: 100%;
            max-width: 420px;
            height: 4px;
            margin-bottom: 20px;
            overflow: hidden;
            background: var(--rolf-yellow);

            &::before {
                content: "";
                position: relative;
                display: block;
                width: 300px;
                max-width: 100%;
                height: 4px;
                background: #000000;
                transform: translateX(-100%);
                animation: rolf-preloader-slide 3s linear infinite;
            }
        }

        .preloader__title {
            font-size: 18px;
            line-height: 24px;
            color: var(--rolf-black);
        }

        .preloader__subtitle {
            margin-top: 4px;
            font-size: 12px;
            line-height: 16px;
            color: #8B8B8B;
        }
    }

    .rolf-to-top {
        position: fixed;
        right: 24px;
        bottom: 54px;
        z-index: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        min-width: 56px;
        min-height: 56px;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        background: var(--rolf-yellow);
        border: 2px solid var(--rolf-black);
        border-radius: 0;
        color: var(--rolf-black);
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
        font-family: var(--rolf-font);

        &.rolf-to-top--visible {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .rolf-to-top__icon {
            display: block;
            width: 24px;
            height: 24px;
            fill: none;
            stroke: currentColor;
        }

        &:focus-visible {
            background: var(--rolf-black);
            border-color: var(--rolf-yellow);
            color: var(--rolf-yellow);
        }

        @media (hover: hover) and (pointer: fine) {
            &:hover {
                background: var(--rolf-black);
                border-color: var(--rolf-yellow);
                color: var(--rolf-yellow);
            }
        }

        @media (max-width: 767px) {
            right: 16px;
        }
    }

    .banner__not-found {
        display: block;
        width: 100%;
        gap: 0;
        margin: 30px 0 0;
        padding: 0;
        border-radius: 0;
        background: none;
        /* Blink отдаёт -webkit-box-align в computed styles и при display: block:
        снятие меняет замер вида, не раскладку */
        align-items: flex-start;
        -webkit-box-align: end;

        .banner__not-found-text {
            display: flex;
            flex-direction: column;
            -webkit-box-orient: vertical;
            align-items: flex-start;
            gap: 15px;
            width: 100%;
        }

        .banner__not-found-title {
            margin: 0;
            font-size: 32px;
            font-weight: 700;
            line-height: 1.1;
            text-transform: uppercase;
            text-align: left;
            color: var(--rolf-black);
        }

        .banner__not-found-desc {
            margin: 0;
            font-size: 13px;
            font-weight: 400;
            line-height: 16px;
            text-align: left;
            color: var(--rolf-black);
        }

        @media (max-width: 768px) {
            flex-direction: column;
            -webkit-box-orient: vertical;
            -webkit-box-align: center;
        }
    }

    @media (max-width: 780px) {
        .podbor.title__wrap {
            flex-direction: column;
            -webkit-box-orient: vertical;
        }
    }

    @media (max-width: 767px) {
        .podbor.title__wrap {
            margin: 16px 0;
        }

        .podbor-title {
            font-size: 24px;
            line-height: 1.15;
        }

        .podbor-title__space {
            display: none;
        }

        .podbor-title__br-mobile {
            display: inline;
        }
    }
}

@media (max-width: 767px) {
    .t91857ea7 {
        width: calc(100% + 54px);
        max-width: none;
        margin-left: -27px;
        margin-right: -27px;
        padding-left: var(--oil-mobile-side-padding, 12px);
        padding-right: var(--oil-mobile-side-padding, 12px);
        box-sizing: border-box;
    }
}

@keyframes rolf-preloader-slide {
    0% {
        left: 0;
    }
    50% {
        left: 90%;
    }
    100% {
        left: 180%;
    }
}
