

/* Start:/local/templates/erma/components/bitrix/catalog/erma/style.css?17907711008026*/
/*
 * Общий слой каталога.
 * Здесь живут только оболочка страниц и переиспользуемые карточки товаров.
 * Сетка, фильтр и детальная страница оформляются в CSS своих подкомпонентов.
 */

.page-catalog {
    overflow-x: clip;
    color: var(--ui-black);
    background: var(--ui-white);
}

.page-catalog .site-header { color: var(--ui-black); }

.catalog-page {
    width: min(calc(100% - 80px), var(--ui-container));
    min-height: 60vh;
    margin-inline: auto;
    padding: 144px 0 96px;
    background: var(--ui-white);
}

.product-grid {
    display: grid;
    gap: 50px 15px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.product-card__media {
    position: relative;
    display: flex;
    aspect-ratio: 1.16 / 1;
    align-items: center;
    justify-content: center;
    padding: 28px;
    overflow: hidden;
    background: var(--ui-gray-50);
}

.product-card__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* Картинка карточки при наведении не увеличивается — по просьбе заказчика. */

.product-card__badges,
.product-detail__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
}

.product-card__badges {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
}

/*
 * Метки товара. Размер шрифта задан по макетам:
 * 1920 — 18px, 1366 — 14px, 768 — 12px, 360 — 10px.
 * Высота и отступы растут вместе с кеглем, иначе текст упирается в края.
 */
.product-badge {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 6px 12px;
    font-family: var(--ui-font);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.product-badge--new { color: var(--ui-green); background: #dff5e9; }
.product-badge--action { color: var(--ui-orange); background: #fff0d3; }
.product-badge--discount { color: var(--ui-pink); background: #ffe1ec; }

.product-card__title {
    margin: 18px 0 8px;
    font-family: var(--ui-display);
    font-size: 32px;
    font-style: italic;
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1;
    text-transform: uppercase;
}

.product-card__title a {
    transition: color .2s ease;
}

.product-card__title a:hover { color: var(--ui-blue); }

/*
 * Свойства карточки — чипы стиля Tag из макета: подложка rgba(19,19,19,.05),
 * радиус 1px, внутренний отступ 6px, Manrope 600, верхний регистр, line-height 1.
 * Кегль: 1920 — 18px, 1366 — 14px, 768 — 12px, 360 — 10px (как у меток товара).
 */
.product-card__props {
    display: flex;
    min-height: 30px;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 12px;
    font-family: var(--ui-font);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.product-card__props span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 1px;
    background: rgba(19, 19, 19, .05);
    color: rgba(19, 19, 19, .7);
}

.product-card__price,
.product-detail__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-family: var(--ui-display);
    font-style: italic;
}

.product-card__price {
    margin: auto 0 14px;
    flex-wrap: wrap;
}

/*
 * Цена — стиль H3, старая цена — H4: Svarog2 500, letter-spacing -.05em, line-height 1.
 * Кегль: 1920 — 48/32, 1366 — 34/22, 768 — 28/20, 360 — 20/16.
 * Детальная страница задаёт свои размеры через .product-detail__price.
 */
.product-card__price-current {
    font-size: 48px;
    font-weight: 500;
    letter-spacing: -.05em;
    line-height: 1;
}

.product-card__price-old {
    color: rgba(19, 19, 19, .3);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -.05em;
    line-height: 1;
}

/*
 * Кнопка карточки — Button text: 1920 — 20px при высоте 60, 1366 — 16/50,
 * 768 — 14/45, 360 — 12/40. Ширина по содержимому: расстояние между текстом
 * и стрелкой задаёт gap из макета (120 / 80 / 15 / 15).
 */
.product-card__button {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    gap: 120px;
    padding: 0 20px;
    border: 1px solid rgba(19, 19, 19, .15);
    border-radius: 2px;
    font-family: var(--ui-font);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.product-card__button:hover {
    border-color: var(--ui-blue);
    color: var(--ui-white);
    background: var(--ui-blue);
}

.product-card__button .ui-icon,
.product-detail__related-link .ui-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0);
}

.product-card__button:hover .ui-icon {
    filter: none;
}


@media (max-width: 1400px) {
    .catalog-page {
        width: calc(100% - 60px);
        padding: 112px 0 72px;
    }

    .product-grid { gap: 40px 30px; }

    .product-badge {
        min-height: 26px;
        padding: 6px;
        font-size: 14px;
    }

    .product-card__media { aspect-ratio: 1 / 1; padding: 24px; }
    .product-card__props { min-height: 26px; font-size: 14px; }
    .product-card__title { margin: 15px 0 8px; font-size: 22px; }
    .product-card__price-current { font-size: 34px; }
    .product-card__price-old { font-size: 22px; }

    .product-card__button {
        min-height: 50px;
        gap: 80px;
        padding: 0 20px;
        font-size: 16px;
    }
}

@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .catalog-page {
        width: calc(100% - 40px);
        padding: 140px 0 64px;
    }

    .product-grid { gap: 40px 10px; }

    .product-badge {
        min-height: 24px;
        padding: 6px;
        font-size: 12px;
    }

    .product-card__media { aspect-ratio: 1 / 1; padding: 22px; }
    .product-card__props { min-height: 24px; font-size: 12px; }
    .product-card__title { margin: 15px 0 8px; font-size: 20px; }
    .product-card__price-current { font-size: 28px; }
    .product-card__price-old { font-size: 20px; }

    .product-card__button {
        min-height: 45px;
        gap: 15px;
        padding: 0 15px;
        font-size: 14px;
    }

    .product-card__button .ui-icon { width: 12px; height: 12px; }
}

@media (max-width: 600px) {
    .catalog-page {
        width: calc(100% - 30px);
        padding: 120px 0 48px;
    }

    .product-badge {
        min-height: 16px;
        padding: 3px 5px;
        font-size: 10px;
    }

    .product-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .product-card__media { aspect-ratio: 1.18 / 1; padding: 18px; }
    .product-card__props { min-height: 16px; gap: 5px; font-size: 10px; }
    .product-card__props span { padding: 3px; }
    .product-card__title { margin: 15px 0 8px; font-size: 16px; }
    .product-card__price-current { font-size: 20px; }
    .product-card__price-old { font-size: 16px; }

    .product-card__button {
        min-height: 40px;
        gap: 15px;
        padding: 0 15px;
        font-size: 12px;
    }

    .product-card__button .ui-icon { width: 10px; height: 10px; }
}

/* End */


/* Start:/local/templates/erma/components/bitrix/catalog.section.list/erma_sections/style.css?17907678568131*/
.catalog-card__title {
    margin: 0;
    font-family: var(--ui-display);
    font-style: italic;
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: .94;
    text-transform: uppercase;}

.catalog-card {
    display: flex;
    flex-direction: column;
    position: relative;
    height: auto;
    min-height: 470px;
    overflow: hidden;
    padding: 32px 30px;
    background: #f2f2f2;
    transition: background-color .35s cubic-bezier(.4, 0, .2, 1);}

.catalog-card__title {
    position: relative;
    z-index: 1;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;}

.catalog-card__description {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 14px 0 0;
    color: #929294;
    font-size: 15px;
    line-height: 1.2;}

.catalog-card__image {
    object-fit: contain;
    width: 100%;
    height: 100%;}

.catalog-card:hover {
    background-color: #e8e8e8c4;}

.wrap_catalog-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-height: 340px;
    margin-top: 20px;}

.catalog-page__heading {
    width: 59.3%;
    max-width: 1080px;
    margin: 0 0 70px auto;}

.catalog-page__heading h1 {
    margin: 0 0 34px;
    font-family: var(--ui-display);
    font-size: 72px;
    font-style: italic;
    font-weight: 400;
    line-height: .95;
    text-transform: uppercase;}

.catalog-page__heading p {
    max-width: 1067px;
    margin: 0;
    color: #77797c;
    font-size: 18px;
    line-height: 1.35;
    text-wrap: pretty;}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;}

.catalog-page__note {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) minmax(max-content, 310px);
    align-items: center;
    gap: 28px;
    min-height: 150px;
    margin-top: 14px;
    padding: 24px 28px;
    background: #f2f2f2;}

.catalog-page__note-icon {
    position: relative;
    display: grid;
    width: 100px;
    height: 100px;
    place-items: center;
    border-radius: 3px;
    background: transparent;
    color: #fff;}

.catalog-page__note-icon span {
    position: absolute;
    top: 7px;
    font-size: 13px;
    font-weight: 700;}

.catalog-page__note-icon > img {
    position: static;
    width: 70px;
    height: 87px;
    filter: none;
    opacity: 1;}

.catalog-page__note-copy {
    min-width: 0;}

.catalog-page__note-copy h2 {
    margin: 0 0 15px;
    font-family: var(--ui-display);
    font-size: 24px;
    font-style: italic;
    font-weight: 400;
    text-transform: uppercase;}

.catalog-page__note-copy p {
    max-width: 800px;
    margin: 0;
    color: #929294;
    font-size: 14px;}

.catalog-page__note-button {
    box-sizing: border-box;
    width: min(100%, 417px);
    min-width: max-content;
    max-width: 100%;
    height: 60px;
    min-height: 60px;
    justify-self: end;
    gap: 120px !important;
    padding: 20px;
    border-radius: 2px;
    white-space: nowrap;}

.catalog-page__note-button > span {
    min-width: 0;
    white-space: nowrap;}

.catalog-page__note-button > .ui-icon {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;}

@media (max-width: 1600px) {
    .wrap_catalog-card__image {
        max-height: 288px;}
}

@media (max-width: 1400px) {
    .wrap_catalog-card__image {
        max-height: 240px;}
    .catalog-card {
        height: auto;
        min-height: 350px;
        padding: 24px 20px;}
    .catalog-card__title {
        font-size: 21px;}
    .catalog-card__description {
        font-size: 12px;}
    .catalog-page__heading {
        margin-bottom: 48px;}
    .catalog-page__heading h1 {
        margin-bottom: 24px;
        font-size: 52px;}
    .catalog-page__heading p {
        font-size: 14px;}
    .catalog-grid {
        gap: 10px;}
    .catalog-page__note {
        gap: 20px;
        min-height: 110px;
        padding: 18px 20px;}
    .catalog-page__note-copy h2 {
        font-size: 19px;}
    .catalog-page__note-copy p {
        font-size: 11px;}
    .catalog-page__note-button {
        font-size: 11px;}
}

@media (min-width: 901px) and (max-width: 1400px) {
    .catalog-page__note-button {
        width: min(100%, 330px);
        height: 50px;
        min-height: 50px;
        gap: 80px !important;
        padding: 20px;}
}

@media (min-width: 901px) and (max-width: 1199px) {
    .catalog-page__note {
        grid-template-columns: 100px minmax(0, 1fr);}
    .catalog-page__note-button {
        grid-column: 2;
        justify-self: start;}
}

@media (max-width: 900px) {
    .wrap_catalog-card__image {
        max-height: 200px;}
    .catalog-card {
        height: auto;
        min-height: 320px;}
    .catalog-page__heading {
        width: 100%;
        margin-bottom: 40px;}
    .catalog-page__heading h1 {
        font-size: 42px;}
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));}
    .catalog-page__note {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 16px;}
    .catalog-page__note-button {
        grid-column: 2;
        width: min(100%, 271px);
        height: 45px;
        min-height: 45px;
        justify-self: start;
        gap: 60px !important;
        padding: 15px;}
}

@media (max-width: 768px) {
    .wrap_catalog-card__image {
        max-height: 170px;}
    .catalog-card {
        height: auto;
        min-height: 285px;
        padding: 20px 16px;}
    .catalog-card__title {
        font-size: 18px;}
    .catalog-card__description {
        font-size: 10px;}
    .catalog-page__heading {
        margin-bottom: 30px;}
    .catalog-page__heading h1 {
        margin-bottom: 18px;
        font-size: 29px;}
    .catalog-page__heading p {
        font-size: 10px;}
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 8px;}
    .catalog-page__note {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        min-height: 0;
        margin-top: 8px;
        padding: 14px;}
    .catalog-page__note-icon {
        display: none;}
    .catalog-page__note-icon span {
        top: 3px;
        font-size: 9px;}
    .catalog-page__note-copy h2 {
        max-width: 80%;
        font-size: 15px;}
    .catalog-page__note-copy p {
        font-size: 9px;}
    .catalog-page__note-button {
        grid-column: 1 / -1;
        width: min(100%, 199px);
        min-width: 0;
        height: 40px;
        min-height: 40px;
        margin-top: 6px;
        justify-self: start;
        gap: 15px !important;
        padding: 15px;
        font-size: 9px;}
    .catalog-page__note-button > .ui-icon {
        flex-basis: 14px;
        width: 14px;
        height: 14px;}
}

/* Карточка раздела на странице каталога: изображение сверху, подпись снизу. */
.catalog-card--media-top {
    justify-content: flex-start;
    color: inherit;
}

.catalog-card--media-top .wrap_catalog-card__image {
    flex: 1 1 auto;
    margin-top: 0;
    margin-bottom: 24px;
}

.catalog-card--media-top .catalog-card__body {
    display: block;
}

.catalog-card--media-top .catalog-card__title,
.catalog-card--media-top .catalog-card__description {
    display: block;
}

@media (max-width: 1400px) {
    .catalog-card--media-top .wrap_catalog-card__image { margin-bottom: 18px; }
}

@media (max-width: 600px) {
    .catalog-card--media-top .wrap_catalog-card__image { margin-bottom: 12px; }
}

/* Видно только администратору, пока PDF-каталог не загружен (вместо кнопки «Посмотреть PDF файл»). */
.catalog-page__note-hint {
    max-width: 360px;
    margin: 0;
    color: var(--ui-pink);
    font-size: 14px;
    line-height: 1.3;
}

/* End */
/* /local/templates/erma/components/bitrix/catalog/erma/style.css?17907711008026 */
/* /local/templates/erma/components/bitrix/catalog.section.list/erma_sections/style.css?17907678568131 */
