

/* Start:/local/templates/project/components/project/facet.detail/.default/style.css?179205758815258*/
/* ==========================================================================
   Карточка товара
   ========================================================================== */

body.page-product { --page-bg: #fff; background: var(--page-bg); }

/* --- Верх карточки ------------------------------------------------------ */
.product {
    display: grid;
    grid-template-areas:
        "title"
        "gallery"
        "actions"
        "buy";
}

.product__title {
    grid-area: title;
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.product__actions {
    grid-area: actions;
    display: flex;
    gap: 28px;
    margin: 14px 0 18px;
}

.product__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.product__action:hover { color: var(--accent); }
.product__action .icon { width: 20px; height: 20px; }
.product__action[aria-pressed="true"] .icon { fill: currentColor; }

.product__gallery { grid-area: gallery; }
.product__buy { grid-area: buy; }

/* Блок покупки */
.product__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.product__badges {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product__badges .badge { border-radius: 2px; font-size: 13px; }

.product__brand img { display: block; width: 110px; height: 40px; object-fit: cover; mix-blend-mode: multiply; }

.product__price { display: grid; justify-items: start; margin: 14px 0 0; }

.product__old {
    color: var(--text-muted);
    font-size: 15px;
}

.product__current {
    color: var(--wine-700);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.product__stock { margin: 6px 0 0; color: var(--text-muted); font-size: 13px; }

.product__cart {
    width: 100%;
    margin-top: 18px;
    padding: 16px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.product__note { display: none; }

@media (min-width: 1024px) {
    .product {
        grid-template-columns: minmax(0, 853px) minmax(0, 1fr);
        grid-template-areas:
            "title   title"
            "actions ."
            "gallery buy";
        column-gap: 45px;
    }

    .product__title { max-width: 900px; margin: 34px 0 0; font-size: 32px; line-height: 1.25; }
    .product__actions { gap: 56px; margin: 22px 0 18px; }
    .product__action { font-size: 17px; }
    .product__action .icon { width: 24px; height: 24px; }

    .product__buy { padding-top: 14px; }
    .product__brand img { width: 130px; height: 46px; }
    .product__price { margin-top: 18px; }
    .product__old { font-size: 16px; }
    .product__current { font-size: 34px; }
    .product__stock { margin-top: 10px; font-size: 15px; }
    .product__cart { width: auto; min-width: 324px; margin-top: 36px; }

    .product__note {
        display: block;
        max-width: 500px;
        margin: 36px 0 0;
        color: var(--accent);
        font-size: 15px;
        line-height: 1.35;
    }
}

/* --- Галерея ------------------------------------------------------------ */
.gallery__main { overflow: hidden; border-radius: 12px; background: #fff; box-shadow: var(--shadow-card); }
/* .carousel__track.gallery__track: перебиваем --per-view карусели (на десктопе там 4)
   независимо от порядка подключения css расширения и шаблона */
.carousel__track.gallery__track { --per-view: 1; --gap: 0px; margin: 0; padding: 0; }

.gallery__slide img,
.gallery__play img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
}

.gallery__play {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.gallery__play .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    translate: -50% -50%;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgb(0 0 0 / .4));
}

.carousel__dots.gallery__dots { margin: 12px 0 0; padding-bottom: 4px; }
.gallery__nav { display: none; }

@media (min-width: 1024px) {
    .gallery__main { border-radius: 20px; box-shadow: 0 4px 30px rgb(58 9 13 / .07); }
    .gallery__slide img,
    .gallery__play img { aspect-ratio: 853 / 586; padding: 37px 0; }
    .carousel__dots.gallery__dots { display: none; }

    .gallery__nav {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 20px;
    }

    .gallery__arrow {
        display: inline-grid;
        place-items: center;
        flex: none;
        width: 50px;
        height: 50px;
        padding: 0;
        border: 0;
        border-radius: 8px;
        background: #fff;
        box-shadow: var(--shadow-card);
        color: var(--wine-700);
        cursor: pointer;
    }

    .gallery__arrow:hover { box-shadow: var(--shadow-card-hover); }
    .gallery__arrow .icon { width: 26px; height: 26px; stroke-width: 2; }

    .gallery__thumbs {
        display: flex;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .gallery__thumb {
        position: relative;
        display: block;
        width: 74px;
        height: 74px;
        padding: 4px;
        overflow: hidden;
        border: 2px solid transparent;
        border-radius: 6px;
        background: #fff;
        cursor: pointer;
    }

    .gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
    .gallery__thumb[aria-current="true"] { border-color: var(--wine-700); }
    .gallery__thumb:hover { border-color: var(--dot); }
    .gallery__thumb[aria-current="true"]:hover { border-color: var(--wine-700); }

    .gallery__thumb--video { padding: 0; background: #222; }
    .gallery__thumb--video img { object-fit: cover; opacity: .5; }

    .gallery__thumb--video .icon {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 38px;
        height: 38px;
        translate: -50% -50%;
        color: #fff;
    }

    .gallery__arrow:focus-visible,
    .gallery__thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
}

/* --- Товары коллекции / аналогичные / похожие --------------------------- */
.related { padding-top: 40px; }

.related__tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.related__tab {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    padding: 7px 14px;
    border: 0;
    border-radius: 6px;
    background: var(--band);
    color: var(--text);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.related__tab:hover { background: var(--band-deep); }
.related__count { display: none; color: var(--text-muted); font-size: 13px; font-weight: 400; text-transform: none; }

/* Активная подборка выглядит как заголовок секции и стоит первой */
.related__tab[aria-selected="true"] {
    order: -1;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 0;
    margin-bottom: 4px;
    background: none;
    font-size: 24px;
    font-weight: 500;
    text-align: left;
    text-transform: uppercase;
    cursor: default;
}

.related__tab[aria-selected="true"] .related__count { display: inline; }

.related__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (min-width: 1024px) {
    .related { padding-top: 70px; }
    .related__tabs { gap: 18px; margin-bottom: 40px; }
    .related__tab { padding: 8px 18px; font-size: 15px; }

    .related__tab[aria-selected="true"] {
        flex-direction: row;
        gap: 22px;
        width: auto;
        margin: 0 26px 0 0;
        font-size: 28px;
        font-weight: 600;
    }

    .related__count { font-size: 14px; }
}

.section-title--sm { font-size: 24px; }

@media (min-width: 1024px) {
    .section-title--sm { font-size: 28px; font-weight: 600; }
}

/* --- Характеристики и вкладки ------------------------------------------- */
.info { padding-top: 40px; }

.info__box {
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 30px rgb(58 9 13 / .08);
}

.info__tabs {
    display: flex;
    gap: 22px;
    padding: 18px 16px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.info__tabs::-webkit-scrollbar { display: none; }

.info__tab {
    flex: none;
    padding: 0 0 10px;
    border: 0;
    border-bottom: 2px solid var(--band-deep);
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

.info__tab[aria-selected="true"] { border-bottom-color: var(--wine-700); font-weight: 500; }
.info__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.info__card { padding: 18px 16px 24px; }

.info__note {
    margin: 20px 0 16px;
    color: #BCBCBC;
    font-size: 11px;
    line-height: 1.4;
}

.info__text { font-size: 15px; line-height: 1.55; }
.info__text p { margin: 0 0 1em; }
.info__text p:last-child { margin-bottom: 0; }

@media (min-width: 1024px) {
    .info { padding-top: 70px; }

    .info__box { overflow: visible; border-radius: 0; background: none; box-shadow: none; }

    .info__tabs { position: relative; z-index: 1; gap: 0; padding: 0; overflow: visible; }

    .info__tab {
        padding: 22px 26px;
        border: 0;
        border-radius: 10px 10px 0 0;
        color: var(--wine-800);
        font-size: 15px;
    }

    .info__tab:first-child { padding-inline: 56px; }
    .info__tab:hover { color: var(--accent); }

    .info__tab[aria-selected="true"] {
        background: #fff;
        box-shadow: 0 -10px 20px -8px rgb(58 9 13 / .08);
        color: var(--text);
        font-weight: 700;
    }

    .info__card {
        padding: 40px 50px 32px;
        border-radius: 0 10px 10px 10px;
        background: #fff;
        box-shadow: 0 6px 30px rgb(58 9 13 / .08);
    }

    .info__note { margin-top: 28px; }
    .info__text { line-height: 1.75; }
}

/* Характеристики */
.specs__group + .specs__group { margin-top: 24px; }

.specs__title {
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--band-deep);
    font-size: 16px;
    font-weight: 600;
}

.specs__list { margin: 0; }

.spec {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 0;
    font-size: 14px;
    line-height: 1.35;
}

.spec__label { margin: 0; }
.spec__value { margin: 0; text-align: right; }
.spec__link { color: inherit; text-decoration: none; }

.specs__col + .specs__col { margin-top: 24px; }

@media (min-width: 1024px) {
    .specs {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 60px;
    }

    .specs__col + .specs__col { margin-top: 0; }
    .specs__group + .specs__group { margin-top: 34px; }
    .specs__title { margin-bottom: 18px; padding: 0; border: 0; font-size: 15px; }

    .spec { gap: 0; padding: 4px 0; font-size: 14px; }

    /* Пунктир между названием и значением */
    .spec__label {
        display: flex;
        flex: 1;
        align-items: baseline;
        min-width: 0;
    }

    .spec__label::after {
        content: "";
        flex: 1;
        min-width: 12px;
        margin: 0 6px;
        border-bottom: 1px dotted #B9BEC1;
    }

    .spec__value { flex: none; max-width: 55%; }
    .spec__link { color: #AD8038; }
    .spec__link:hover { text-decoration: underline; }

    .spec__term { text-decoration: underline; text-underline-offset: 3px; cursor: help; }
}

/* Подсказки (термины и варианты товара) */
[data-hint] { position: relative; }

[data-hint]:is(:hover, :focus-visible)::before {
    content: attr(data-hint);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    z-index: 5;
    width: max-content;
    max-width: 180px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 16px rgb(58 9 13 / .14);
    color: var(--text);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    translate: -50% 0;
    pointer-events: none;
}

/* Варианты товара по свойству (количество ламп и т.п.) */
.variants { display: inline-flex; gap: 6px; }

.variant {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 4px;
    border-radius: 4px;
    background: var(--band);
    color: #AD8038;
    font-size: 13px;
    text-decoration: none;
}

.variant:hover { background: var(--band-deep); }
.variant[aria-current="true"] { background: #7B4C18; color: #fff; }
.variant:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Нижние карусели ---------------------------------------------------- */
.page-product .partners { padding-top: 48px; }

@media (min-width: 1024px) {
    .page-product .partners { padding-block: 96px 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .gallery__thumb, .gallery__arrow { transition: none; }
}

/* --- Вкладки «Подробности о товаре»: свайп по содержимому на мобильных ---
   Класс .is-swipe ставит js/tabs.js, только когда он сработал */
@media (max-width: 1023px) {
    .info__card.is-swipe {
        display: flex;
        align-items: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        transition: height .2s ease-out;
    }

    .info__card.is-swipe::-webkit-scrollbar { display: none; }

    .info__card.is-swipe > .info__panel {
        flex: 0 0 100%;
        min-width: 0;
        padding: 18px 16px 24px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    /* Отступы теперь у каждой панели, а не у ленты */
    .info__card.is-swipe { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .info__card.is-swipe { transition: none; }
}

/* --- Дополнения к вёрстке: состояний ниже в макете нет ------------------ */

/* товар без фото */
.gallery__empty {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    color: var(--text-muted);
}

@media (min-width: 1024px) {
    .gallery__empty { aspect-ratio: 853 / 586; }
}

/* бренд без логотипа */
.product__brand:not(:has(img)) { color: var(--text); font-weight: 600; text-decoration: none; }

/* товар без цены */
.product__current--request { font-size: 22px; }
/* End */


/* Start:/local/js/project/carousel/style.css?17920500277305*/
/* ==========================================================================
   Карусель (scroll-snap). Поведение — script.js этого расширения.
   Вид --overlay — баннер на главной и похожие блоки.
   ========================================================================== */

/* --- Карусель (scroll-snap, точки рисует js/carousel.js) ---------------- */
.carousel { position: relative; }

.carousel__track {
    --gap: 12px;
    --per-view: 1.12;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - var(--gap) * (var(--per-view) - 1)) / var(--per-view));
    gap: var(--gap);
    margin: -12px 0;
    padding: 12px 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    list-style: none;
}

.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { scroll-snap-align: start; min-width: 0; }

.carousel__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.carousel__dots:empty { display: none; }

.carousel__dot {
    width: 20px;
    height: 15px;
    padding: 6px 0;
    border: 0;
    background: var(--dot);
    background-clip: content-box;
    border-radius: 0;
    cursor: pointer;
    transition: width .2s, background-color .2s;
}

.carousel__dot[aria-current="true"] { width: 48px; background-color: var(--text); }

.carousel__dot:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (min-width: 1024px) {
    .carousel__track { --gap: 40px; --per-view: 4; }
    .carousel__dots { justify-content: flex-end; margin-top: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
    .carousel__track { scroll-behavior: smooth; }
}
/* Стрелки: только десктоп с мышью, появляются при наведении на карусель */
.carousel__arrow { display: none; }

@media (min-width: 1024px) and (hover: hover) {
    .carousel__arrow {
        position: absolute;
        top: var(--arrows-top, 50%);
        z-index: 2;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        margin-top: -22px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #fff;
        box-shadow: var(--shadow-card-hover);
        color: var(--text);
        opacity: 0;
        cursor: pointer;
        transition: opacity .2s, background-color .15s;
    }

    .carousel__arrow .icon { width: 22px; height: 22px; stroke-width: 2; }
    .carousel__arrow--prev { left: -22px; }
    .carousel__arrow--next { right: -22px; }

    .carousel:hover .carousel__arrow,
    .carousel__arrow:focus-visible { opacity: 1; }

    .carousel__arrow:hover { background: var(--band); }
    .carousel__arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
    .carousel__arrow:disabled { opacity: 0 !important; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
    .carousel__arrow { transition: none; }
}

/* --- Карусель с управлением поверх картинки (баннер на главной и похожие блоки) ---
   Разметка: .carousel.carousel--overlay > .carousel__controls с точками,
   счётчиком [data-carousel-counter] и кнопками [data-carousel-prev] / [data-carousel-next].
   Мобильные: тонкие полоски под картинкой, без счётчика и кнопок.
   Десктоп: точки, счётчик и кнопки поверх картинки справа внизу. */
.carousel--overlay .carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
}

.carousel--overlay.is-single .carousel__controls { display: none; }

.carousel--overlay .carousel__dots { gap: 5px; margin: 0; }

/* Кнопка-точка выше видимой части — в неё проще попасть;
   видимую часть рисует ::before, чтобы форма и скругление были у неё, а не у кнопки */
.carousel--overlay .carousel__dot {
    display: grid;
    align-items: center;
    width: 24px;
    height: 14px;
    padding: 0;
    background: none;
}

.carousel--overlay .carousel__dot::before {
    content: "";
    height: 2px;
    background: var(--line);
    transition: background-color .2s;
}

.carousel--overlay .carousel__dot[aria-current="true"] { width: 24px; background: none; }
.carousel--overlay .carousel__dot[aria-current="true"]::before { background: var(--accent); }

.carousel--overlay .carousel__counter { display: none; }

/* Кнопки «назад/вперёд» — только десктоп с мышью */
.carousel__nav { display: none; }

@media (min-width: 1024px) {
    .carousel--overlay .carousel__controls {
        position: absolute;
        right: 56px;
        bottom: 32px;
        z-index: 2;
        gap: 24px;
        margin: 0;
        color: #fff;
        pointer-events: none; /* клики по пустому месту проходят на слайд */
    }

    .carousel--overlay .carousel__controls > * { pointer-events: auto; }

    .carousel--overlay .carousel__dots { gap: 6px; }

    .carousel--overlay .carousel__dot {
        width: 6px;
        height: 16px;
        filter: drop-shadow(0 1px 2px rgb(0 0 0 / .35));
    }

    .carousel--overlay .carousel__dot::before {
        height: 6px;
        border-radius: 3px;
        background: rgb(255 255 255 / .55);
    }

    .carousel--overlay .carousel__dot[aria-current="true"] { width: 28px; }
    .carousel--overlay .carousel__dot[aria-current="true"]::before { background: #fff; }

    .carousel--overlay .carousel__counter {
        display: block;
        min-width: 3.2em;
        font-size: 14px;
        text-align: center;
        text-shadow: 0 1px 3px rgb(0 0 0 / .45);
        font-variant-numeric: tabular-nums;
    }

    .carousel--overlay .carousel__counter:empty { display: none; }
}

@media (min-width: 1024px) and (hover: hover) {
    .carousel--overlay .carousel__controls { gap: 12px; }
    .carousel--overlay .carousel__counter { margin-right: 12px; }

    .carousel__nav {
        display: inline-grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgb(255 255 255 / .6);
        border-radius: 50%;
        background: rgb(0 0 0 / .12);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        color: #fff;
        cursor: pointer;
        transition: background-color .15s, border-color .15s;
    }

    .carousel__nav .icon { width: 20px; height: 20px; stroke-width: 2; }
    .carousel__nav:hover { border-color: #fff; background: rgb(255 255 255 / .2); }
    .carousel__nav:disabled { opacity: .4; cursor: default; }
    .carousel__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
}

@media (prefers-reduced-motion: reduce) {
    .carousel__nav,
    .carousel--overlay .carousel__dot::before { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
    .carousel__dot { transition: none; }
}

/* End */


/* Start:/local/templates/project/components/project/favorites.button/.default/style.css?17920581851097*/
/* local/components/project/favorites.button/templates/.default/style.css
 *
 * Только вид по умолчанию (.favorite-btn) - когда место в макете не передало свой CLASS.
 * С CLASS (например product__action на детальной) кнопка целиком в стилях того места:
 * правила здесь на неё не действуют и не спорят с ними из-за порядка подключения css.
 */

.favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.favorite-btn .icon { width: 24px; height: 24px; transition: color .15s; }
.favorite-btn:hover { color: var(--accent); }
.favorite-btn[aria-pressed="true"] .icon { color: var(--accent); fill: currentColor; }

.favorite-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .favorite-btn .icon { transition: none; }
}
/* End */


/* Start:/local/templates/project/components/project/basket.button/.default/style.css?179154247358*/
.js-buy.js-do--loading { opacity: .6; cursor: progress; }

/* End */


/* Start:/local/templates/project/components/project/facet.list/carousel/../.default/style.css?17920558453069*/
/* ==========================================================================
   Карточка товара в списках (.product-card) и сетка списка.
   Шаблон carousel берёт этот же файл: $this->addExternalCss($templateFolder . '/../.default/style.css').
   Бейджи (.badge), кнопки (.btn-accent) и карусель (.carousel) — в шаблоне сайта.
   ========================================================================== */

/* --- Сетка списка ------------------------------------------------------- */
/* TODO: временная сетка - в вёрстке пока нет страницы раздела, заменить по её макету */
.facet-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* --- Карточка товара ---------------------------------------------------- */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: box-shadow .2s;
}

.product-card:hover { box-shadow: var(--shadow-card-hover); }

.product-card__media { display: block; }

.product-card__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 340 / 266;
    object-fit: cover;
}

/* нет фото: держим высоту, чтобы карточки в ряду не прыгали */
.product-card__media--empty {
    aspect-ratio: 340 / 266;
    background: #f2f2f2;
}

.product-card__badges {
    position: absolute;
    top: 14px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-card__body {
    display: grid;
    flex: 1;
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr auto auto;
    column-gap: 12px;
    padding: 14px 13px 18px;
}

.product-card__title {
    grid-column: 1 / -1;
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.product-card__title a { color: inherit; text-decoration: none; }
.product-card__title a:hover { color: var(--accent); }

.product-card__price {
    grid-row: 2;
    grid-column: 1;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 8px;
    margin: 0;
}

.product-card__current { font-size: 22px; font-weight: 700; white-space: nowrap; }

.product-card__old {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}

/* кнопка project:basket.button (CLASS = product-card__cart) */
.product-card__cart { grid-row: 2; grid-column: 2; align-self: center; }

.product-card__stock {
    grid-row: 3;
    grid-column: 1;
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .product-card { transition: none; }
}
/* End */


/* Start:/local/js/project/ui/style.css?17920500278046*/
/* ==========================================================================
   project.ui — элементы форм: поле с подписью, радио-карточки, сегменты,
   тумблер, чекбокс, счётчик количества, кнопки, плашка .notice.
   Нужно корзине, оформлению, будущему кабинету.
   ========================================================================== */

/* --- Поле с подписью ---------------------------------------------------- */
.form-field { display: grid; gap: 6px; min-width: 0; }

.form-field__label { color: var(--text-muted); font-size: 12px; }

.input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 15px;
    appearance: none;
}

.input::placeholder { color: #B5A3A4; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(140 96 97 / .15); }
.input:user-invalid { border-color: var(--danger); }

.form-grid { display: grid; gap: 14px; }

@media (min-width: 768px) {
    .form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
    .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
}

/* --- Кнопки ------------------------------------------------------------- */
.btn-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.btn-block:hover { border-color: var(--accent-hover); background: var(--accent-hover); }

.btn-block--outline { border-color: var(--text); background: #fff; color: var(--text); }
.btn-block--outline:hover { border-color: var(--text); background: var(--text); color: #fff; }

.btn-block--lg { width: 100%; min-height: 52px; border-radius: 6px; font-size: 16px; }

.btn-block:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Радио-карточка (доставка, оплата) ---------------------------------- */
.choices { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }

.choice {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.choice:hover { border-color: var(--accent); }

.choice:has(.choice__input:checked) {
    border-color: var(--accent);
    background: var(--band);
}

.choice:has(.choice__input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.choice__input,
.check-box {
    flex: none;
    margin: 0;
    appearance: none;
    cursor: pointer;
}

.choice__input {
    width: 18px;
    height: 18px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
}

.choice__input:checked { border: 5px solid var(--accent); }
.choice__input:focus-visible { outline: none; }

.choice__icon { width: 20px; height: 20px; color: var(--text); }

.choice__body { display: grid; gap: 2px; min-width: 0; }
.choice__title { font-size: 14px; font-weight: 500; line-height: 1.25; }
.choice__sub { color: var(--accent); font-size: 12px; line-height: 1.3; }
.choice__aside { font-size: 14px; font-weight: 500; text-align: right; white-space: nowrap; }

.choice__badge {
    justify-self: start;
    padding: 2px 8px;
    border-radius: 3px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

/* --- Переключатель «физлицо / юрлицо» ----------------------------------- */
.segmented {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin: 0;
    border: 0;
    border-radius: 6px;
    background: var(--band);
}

.segmented__option { position: relative; }

.segmented__option input { position: absolute; opacity: 0; pointer-events: none; }

.segmented__option span {
    display: block;
    padding: 10px 22px;
    border-radius: 4px;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.segmented__option input:checked + span { background: var(--accent); color: #fff; font-weight: 600; }
.segmented__option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Тумблер ------------------------------------------------------------ */
.switch {
    position: relative;
    flex: none;
    width: 38px;
    height: 22px;
    margin: 0;
    border-radius: 11px;
    background: var(--line);
    appearance: none;
    cursor: pointer;
    transition: background-color .2s;
}

.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: translate .2s;
}

.switch:checked { background: var(--accent); }
.switch:checked::after { translate: 16px 0; }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Чекбокс ------------------------------------------------------------ */
.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--accent);
    font-size: 13px;
    line-height: 1.35;
    cursor: pointer;
}

.check-box {
    width: 18px;
    height: 18px;
    border: 1px solid var(--accent);
    border-radius: 3px;
    background: #fff;
}

.check-box:checked {
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.check-box:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent a { color: inherit; }

/* --- Счётчик количества ------------------------------------------------- */
.qty {
    display: inline-flex;
    align-items: center;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}

.qty__btn {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    cursor: pointer;
}

.qty__btn:disabled { color: var(--line); cursor: default; }
.qty__btn .icon { width: 16px; height: 16px; }
.qty__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }

.qty__input {
    width: 30px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 17px;
    text-align: center;
    appearance: textfield;
}

.qty__input::-webkit-inner-spin-button,
.qty__input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.qty__input:focus { outline: none; }

/* --- Инфо-плашка -------------------------------------------------------- */
.notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 14px;
    padding: 16px 18px;
    border-radius: 6px;
    background: var(--band);
    font-size: 13px;
    line-height: 1.45;
}

.notice .icon { grid-row: span 2; width: 20px; height: 20px; }
.notice__title { margin: 0; font-size: 14px; font-weight: 500; }
.notice__text { margin: 0; color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
    .choice, .switch, .switch::after, .segmented__option span, .btn-block { transition: none; }
}

/* End */


/* Start:/local/js/project/forms/style.css?17920611976545*/
/* ==========================================================================
   PROJECT.FORMS — то, что есть только у форм project:form.
   Общие элементы (чекбокс согласия .consent/.check-box, поле .input, кнопки .btn-block,
   цвет ошибки --danger) — в project.ui, оно подключается через rel в config.php.
   Разметка: [data-project-form] > [data-role="success"] + form.
   Раскладка блока вокруг формы (.partners и т.п.) — в шаблоне сайта.
   ========================================================================== */

/* Скрытие через [hidden] — своё и сильное: .lead-form и подобные задают display и перебили бы атрибут */
[data-project-form] [hidden] { display: none !important; }

/* --- Поле-подчёркивание на светлом фоне (форма-карточка) ----------------- */
.field { display: block; }

.field__input {
	width: 100%;
	padding: 8px 12px;
	border: 0;
	border-bottom: 1px solid var(--accent);
	border-radius: 0;
	background: transparent;
	color: var(--text);
	font: inherit;
	font-size: 14px;
}

.field__input::placeholder { color: var(--text-muted); }
.field__input:focus { outline: none; border-bottom-color: var(--text); box-shadow: 0 1px 0 var(--text); }

textarea.field__input { min-height: 90px; resize: vertical; }

/* --- Форма-карточка (заявка дизайнера и подобные) ----------------------- */
.lead-form {
	display: grid;
	gap: 14px;
	padding: 24px 16px;
	border-radius: 12px;
	background: var(--band-deep);
	box-shadow: var(--shadow-card);
}

.lead-form__checks { display: grid; gap: 12px; margin-top: 10px; }

/* согласия в карточке мельче и без белой подложки, как в вёрстке формы дизайнера */
.lead-form .consent { gap: 12px; font-size: 11px; line-height: 1.3; }
.lead-form .check-box:not(:checked) { background: transparent; }

.lead-form__submit {
	width: 100%;
	margin-top: 10px;
	padding: 14px 20px;
	border-radius: 8px;
	font-size: 15px;
	text-transform: uppercase;
}

/* «Спасибо» на месте формы */
.lead-form--done {
	place-items: center;
	min-height: 240px;
	color: var(--accent);
	font-size: 22px;
	text-align: center;
}

@media (min-width: 1024px) {
	.lead-form {
		gap: 18px;
		padding: 52px 78px 40px;
		border-radius: var(--radius-card);
		box-shadow: none;
	}

	.lead-form__checks { margin-top: 12px; }

	.lead-form__submit {
		justify-self: start;
		width: auto;
		margin-top: 20px;
		padding: 10px 20px;
		border-radius: 4px;
		box-shadow: 0 4px 8px rgb(58 9 13 / .2);
	}

	.lead-form--done { min-height: 360px; font-size: 28px; }
}

/* --- Ошибки от сервера ---------------------------------------------------
   [data-field] получает .has-error, текст — в его [data-error] (.field__error).
   Поля: .field (подчёркивание) и .form-field/.input из project.ui; чекбокс — .consent. */
.field__error {
	display: none;
	margin-top: 6px;
	color: var(--danger);
	font-size: 12px;
	line-height: 1.3;
}

.has-error > .field__error { display: block; }

.field.has-error .field__input { border-bottom-color: var(--danger); }
.field.has-error .field__input::placeholder { color: var(--danger); }
.form-field.has-error .input { border-color: var(--danger); }

/* чекбокс: ошибка отдельной строкой под текстом (18px квадрат + отступ) */
[data-project-form] .consent { flex-wrap: wrap; }
[data-project-form] .consent > span:not(.field__error) { flex: 1; min-width: 0; }
.consent .field__error { flex-basis: 100%; margin-top: 0; padding-left: 30px; }
.consent.has-error .check-box { border-color: var(--danger); }

/* общая ошибка формы: капча, CSRF, сеть */
.form-error { margin: 0; color: var(--danger); font-size: 13px; line-height: 1.3; }

[data-project-form] [type="submit"]:disabled { opacity: .6; cursor: progress; }

/* --- Файл ---------------------------------------------------------------
   <label class="file" data-file>
       <input class="file__input" type="file" name="file">
       <span class="file__button">Прикрепить файл</span>
       <span class="file__name is-empty" data-file-name>PDF, JPG или PNG, до 5 МБ</span>
   </label> */
.file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	cursor: pointer;
}

/* скрыт визуально, но остаётся в фокусе с клавиатуры */
.file__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.file__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 18px;
	border: 1px solid var(--accent);
	border-radius: 4px;
	color: var(--accent);
	font-size: 13px;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color .2s, color .2s;
}

/* скрепка */
.file__button::before {
	content: "";
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E") center / contain no-repeat;
}

.file:hover .file__button { background: var(--accent); color: #fff; }
.file__input:focus-visible + .file__button { outline: 2px solid var(--accent); outline-offset: 2px; }

.file__name {
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	color: var(--text);
	font-size: 13px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.file__name.is-empty { color: var(--text-muted); }

.has-error .file__button,
.has-error .file__name { border-color: var(--danger); color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
	.file__button { transition: none; }
}
/* End */
/* /local/templates/project/components/project/facet.detail/.default/style.css?179205758815258 */
/* /local/js/project/carousel/style.css?17920500277305 */
/* /local/templates/project/components/project/favorites.button/.default/style.css?17920581851097 */
/* /local/templates/project/components/project/basket.button/.default/style.css?179154247358 */
/* /local/templates/project/components/project/facet.list/carousel/../.default/style.css?17920558453069 */
/* /local/js/project/ui/style.css?17920500278046 */
/* /local/js/project/forms/style.css?17920611976545 */
