

/* Start:/local/components/micronet/zapravka-kartridgey/templates/.default/style.css?179033325913194*/
/* Стили страницы «Заправка картриджей» по макету zapravka-kartridgey/css/style.css.
   Общие для сайта правила (.container, .hero-top-nav-*, .custom-select,
   .order-form-field, .field-hint-*, .btn-yellow, .pricing-heading) — в css
   шаблона mainTpl; здесь только хероблок с подбором картриджа, заголовок
   прайса и таблица цен.
   Битрикс подключает css компонента РАНЬШЕ css шаблона, поэтому
   переопределения общих правил привязаны к .hero-row / .pricing-table-wrap
   (h2.pricing-heading) — иначе при равной специфичности побеждает шаблон. */

/* ===== Вкладки «Заправка картриджей / Ремонт оргтехники» ===== */
/* На мобильном вкладки не нужны сверху как переключатель — переносим блок
   в самый низ страницы (над футером), он превращается в «Часто заказывают»
   (стили — по образцу pechat-photo). */
@media (max-width: 768px) {
    .service-tabs.container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        width: calc(100% - 32px);
        margin-top: 16px;
        order: 10;
    }

    .service-tabs .hero-top-nav-item {
        justify-content: center;
        text-align: center;
        border-radius: 10px;
    }
}

/* ===== Hero row ===== */
.hero-row {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 0;
    margin-top: 0;
}

/* На 768px и уже хероблок растягивается на всю ширину экрана без
   боковых отступов container'а — тот же приём full-bleed, что и у
   .menu-row/.header-mobile-nav: 100vw не зависит от контейнера. */
@media (max-width: 768px) {
    .hero-row.container {
        width: 100vw;
        margin-right: 0;
        position: relative;
        left: 50%;
        margin-left: -50vw;
        order: 1;
    }

    .hero-row .hero-photo-block {
        border-radius: 0;
    }
}

/* Раскладка .hero-photo-content — общая, в css шаблона сайта; здесь
   только отступы по макету страницы */
.hero-row .hero-photo-content {
    padding: var(--large);
}

.hero-row .hero-photo-title {
    margin-top: var(--large);
    margin-bottom: 0;
}

/* Фото-карусели над заголовком на этой странице нет — заголовок
   начинается сразу от верха хероблока */
.hero-row .hero-photo-title-desktop {
    margin-top: 0;
}

.hero-row .order-form-intro {
    margin-top: var(--small);
    font-size: 18px;
    margin-bottom: 0;
}

/* ===== Подбор картриджа: марка, модель, поле поиска ===== */
.hero-row .order-form-selects {
    margin-top: var(--large);
}

.hero-row .order-form-field-select .order-checkout-hint {
    text-align: left;
}

/* Список моделей длинный — селект шире поля и со скроллом */
.hero-row .cartridge-model-field .custom-select-list {
    right: auto;
    width: 420px;
}

#cartridgeModelList {
    max-height: 320px;
    overflow-y: auto;
}

.hero-row .order-form-field input[type="text"] {
    height: 48px;
    padding: 0 16px;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body), sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--color-text);
    background: #ffffff;
}

.hero-row .order-form-field input[type="text"]:focus {
    outline: none;
}

/* Меньше 3 символов в поле «модель картриджа» — подсвечиваем, как
   обязательные поля чекаута */
.hero-row .order-form-field input[type="text"].is-invalid {
    background: #FFE5E5;
}

/* Ховер (белый фон) — общий, в css шаблона сайта */
.hero-row .hero-upload-btn {
    align-self: center;
    margin-top: var(--large);
    padding: 13.33px 33.33px;
    font-size: 16.67px;
    border-radius: 999px;
}

@media (max-width: 768px) {

    .hero-row .hero-photo-title-mobile {
        margin-top: 0;
    }

    .hero-row .order-form-selects {
        gap: var(--large);
    }

    .hero-row .cartridge-model-field .custom-select-list {
        width: 100%;
    }

    .hero-row .hero-upload-btn {
        align-self: stretch;
        width: 100%;
        font-size: 18px;
        margin-top: var(--large);
    }
}

/* ===== Заголовок прайса ===== */
/* Заголовок лежит вне .container (сразу под хероблоком), поэтому ширину
   контейнера задаём ему сами */
h2.pricing-heading {
    width: min(var(--container-width), calc(100% - 33.33px));
    margin-inline: auto;
    font-family: var(--font-heading), sans-serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.4;
    color: var(--color-text);
    margin-top: var(--large);
    margin-bottom: 0;
    text-align: center;
}

.pricing-heading[hidden] {
    display: none;
}

/* Перенос «для принтера …» на вторую строку — только на десктопе,
   на широких экранах заголовок влезает в одну */
.pricing-heading-break {
    display: none;
}

@media (min-width: 769px) and (max-width: 1920px) {
    .pricing-heading-break {
        display: inline;
    }
}

.pricing-section {
    margin-top: var(--large);
    margin-bottom: 0;
}

.pricing-section[hidden] {
    display: none;
}

@media (max-width: 768px) {
    h2.pricing-heading {
        font-size: 22px;
        margin-top: var(--large);
        margin-bottom: 0;
        order: 2;
    }

    .pricing-section {
        order: 3;
        margin-bottom: 0;
    }
}

/* Подсказки «Заправка / Восстановление» над таблицей на мобильном —
   в макете выключены (подсказки остались в шапке таблицы) */
.cartridge-mobile-hints {
    display: none;
}

@media (max-width: 768px) {
    .cartridge-mobile-hints {
        display: none;
    }

    .cartridge-mobile-hints .field-hint-wrap {
        margin-left: 0;
        top: 0;
    }

    .cartridge-mobile-hints .field-hint-btn {
        width: auto;
        height: auto;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.2);
        color: #ffffff;
        font-family: var(--font-body), sans-serif;
        font-size: 14px;
        font-weight: 500;
    }
}

.cartridge-empty-message {
    font-family: var(--font-body), sans-serif;
    font-size: 16px;
    color: var(--color-text);
    text-align: left;
    padding: 20px;
    margin: 0;
}

/* ===== Таблица цен ===== */
.pricing-table-wrap {
    border-radius: 10px;
    background: #D3EFFC;
    overflow: hidden;
    position: relative;
}

.pricing-panel {
    overflow-x: auto;
    scrollbar-width: none;
}

.pricing-panel::-webkit-scrollbar {
    display: none;
}

.price-table {
    width: 100%;
    min-width: 720px;
    table-layout: fixed;
    border-collapse: collapse;
}

/* В отличие от макета, в таблице есть колонка «Марка принтера» (поиск по
   модели картриджа находит картриджи разных марок) — 6 колонок вместо 5.
   «Восстановление» с подсказкой шире остальных заголовков — даём ему 20%,
   иначе значок «?» переносится на вторую строку; место берём у «Ресурса».
   Только для десктопа: на мобильном ячейки — строки карточки на всю ширину,
   а nth-child по специфичности перебил бы там width: auto */
@media (min-width: 769px) {
    .price-table th,
    .price-table td {
        width: 16%;
    }

    .price-table th:nth-child(1),
    .price-table td:nth-child(1) {
        width: 20%;
    }

    .price-table th:nth-child(2),
    .price-table td:nth-child(2) {
        width: 15%;
    }

    .price-table th:nth-child(3),
    .price-table td:nth-child(3) {
        width: 13%;
    }

    .price-table th:nth-child(6),
    .price-table td:nth-child(6) {
        width: 20%;
    }
}

.price-table th,
.price-table td {
    padding: 20px;
    text-align: left;
    font-family: var(--font-body), sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--color-text);
    white-space: normal;
    overflow-wrap: break-word;
}

.price-table-row td:nth-child(1) {
    font-weight: 700;
}

.price-table thead th {
    background: #359FE7;
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.02em;
    border-bottom: none;
    overflow: visible;
}

@media (min-width: 769px) {
    .price-table td {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
}

.price-table-category td {
    font-weight: 400;
    font-size: 16px;
}

.price-table tbody tr.is-last-visible td {
    border-bottom: none;
}

.price-table .field-hint-wrap {
    margin-left: 6px;
}

.price-table .field-hint-btn {
    color: #ffffff;
}

/* Подсказка в шапке таблицы — position: fixed, иначе её обрезает
   .pricing-table-wrap с overflow: hidden; позицию считает script.js */
.pricing-table-wrap .field-hint-popover {
    position: fixed;
    bottom: auto;
    transform: none;
    width: 200px;
    padding: 10px 12px;
    background: #ffffff;
    color: var(--color-text);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(16, 17, 18, 0.2);
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    display: none;
    z-index: 40;
}

.pricing-table-wrap .field-hint-wrap.is-open .field-hint-popover,
.pricing-table-wrap .field-hint-wrap:hover .field-hint-popover {
    display: block;
}

.pricing-table-wrap .field-hint-popover-wide {
    width: 280px;
}

.pricing-table-wrap .field-hint-popover-wide p {
    margin-bottom: 8px;
}

.pricing-table-wrap .field-hint-popover-wide p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .pricing-table-wrap .field-hint-popover {
        max-width: calc(100vw - 32px);
    }

    .pricing-table-wrap .field-hint-popover-wide {
        width: calc(100vw - 32px);
    }
}

/* На 768px и уже таблица разворачивается в карточки: заголовок строки —
   модель картриджа, ниже подписи колонок и значения в строку */
@media (max-width: 768px) {
    .pricing-table-wrap {
        width: 100vw;
        position: relative;
        left: 50%;
        margin-left: -50vw;
        border-radius: 0;
    }

    .price-table {
        width: 100%;
        min-width: 0;
        table-layout: auto;
    }

    .price-table thead {
        display: none;
    }

    .price-table,
    .price-table tbody,
    .price-table tr,
    .price-table td {
        display: block;
        width: auto;
    }

    .price-table td {
        padding: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .price-table-category {
        padding: 14px 20px;
        background: #359FE7;
        color: #ffffff;
    }

    .price-table-row {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .price-table-row.is-last-visible {
        border-bottom: none;
    }

    .price-table-row td:nth-child(1) {
        font-weight: 700;
        font-size: 16px;
        color: var(--color-text);
        margin-bottom: 8px;
    }

    .price-table-row td:nth-child(n+2) {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 8px;
        font-size: 16px;
        color: var(--color-text);
    }

    .price-table-row td:nth-child(n+2)::before {
        font-weight: 400;
        font-size: 16px;
        color: var(--color-text);
    }

    .price-table-row td:last-child {
        margin-bottom: 0;
    }

    .price-table-row td:nth-child(2)::before {
        content: "Марка принтера";
    }

    .price-table-row td:nth-child(3)::before {
        content: "Ресурс";
    }

    .price-table-row td:nth-child(4),
    .price-table-row td:nth-child(4)::before {
        font-weight: 700;
    }

    .price-table-row td:nth-child(4)::before {
        content: "Заправка";
    }

    .price-table-row td:nth-child(5)::before {
        content: "Замена чипа";
    }

    .price-table-row td:nth-child(6)::before {
        content: "Восстановление";
    }
}

/* End */
/* /local/components/micronet/zapravka-kartridgey/templates/.default/style.css?179033325913194 */
