/* ============================================================================
   tg-price-matrix.css — оформление компонента RemotePriceList под дизайн-систему ВЭР.
   Подключается ПОСЛЕ site/css/RemotePriceList/main.css (см. matrix.html),
   поэтому при равной специфичности выигрывает этот файл.

   Разметку и JS-хуки бэкенда не трогаем:
   .focus, data-print-run, data-entry-id, input[name="processing[]"] — как были.

   Токены — из дизайн-системы ВЭР (/brand-system/), те же, что в tg-price.css.
   Тема одна — светлая, как и весь сайт: тёмного варианта у these-guys.ru нет,
   инвертировать один блок на белой странице нельзя.
   ============================================================================ */

.remote-price-list {
    --tgp-accent: #ffce00;
    --tgp-accent-hover: #fed501;
    --tgp-accent-border: #f2b705;
    --tgp-soft: #fffdf3;
    --tgp-ink: #1c1f24;
    --tgp-black: #0a0a0a;
    --tgp-muted: #5b6068;
    --tgp-muted-2: #9a9a9a;
    --tgp-border: #e7e8ea;
    --tgp-border-2: #d9d9d9;
    --tgp-surface: #ffffff;
    --tgp-surface-2: #fafafa;
    --tgp-radius: 16px;
    --tgp-radius-sm: 8px;
    --tgp-shadow: 0 8px 24px rgba(0, 0, 0, .10);
    --tgp-shadow-sm: 0 2px 8px rgba(28, 31, 36, .06);
    --tgp-display: 'Manrope', Arial, sans-serif;
    --tgp-body: 'Inter', Arial, sans-serif;
    --tgp-ease: cubic-bezier(.25, .46, .45, .94);
    --tgp-spring: cubic-bezier(.34, 1.56, .64, 1);

    font-family: var(--tgp-body);
    color: var(--tgp-ink);
    margin-bottom: 50px;
}

/* ----------------------------------------------------------------- заголовок */

/* один в один с остальными H2 внутренних страниц (.tg-related__title,
   .tg-gallery__title) — своей типографики не изобретаем */
.remote-price-list .tg-price-heading {
    font-family: var(--tgp-display);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -.005em;
    color: var(--tgp-black);
    margin: 0 0 24px;
    text-transform: none;
}

/* ------------------------------------------------------------------ фильтры */

.remote-price-list .remote-price-list__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 20px;
    margin-bottom: 24px;
    max-width: 100%;
}

.remote-price-list .remote-price-list__filters__item {
    flex: 1 1 220px;
    min-width: 0;
    max-width: 100%;
}

.remote-price-list .remote-price-list__filters__item__label {
    display: block;
    font-family: var(--tgp-display);
    font-weight: 700;
    font-size: 12.5px;
    line-height: 1.3;
    color: var(--tgp-ink);
    margin-bottom: 7px;
}

.remote-price-list .remote-price-list__filters__item__field {
    max-width: 100%;
}

.remote-price-list .remote-price-list__filters__item__field select {
    font-family: var(--tgp-body);
    font-size: 16px;
    line-height: 1.3;
    color: var(--tgp-ink);
    background-color: var(--tgp-surface);
    border: 1px solid var(--tgp-border-2);
    border-radius: var(--tgp-radius-sm);
    /* тап-таргет ≥44px */
    box-sizing: border-box;
    padding: 12px 34px 12px 12px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 46px;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' stroke='%235B6068' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    text-overflow: ellipsis;
}

/* Обводка селектов: после выбора мышью браузерный :focus-ринг оставался висеть
   и читался как баг. Гасим его для мыши и возвращаем только для клавиатуры —
   :focus-visible срабатывает на Tab, но не на клик. Полностью снимать
   focus-индикатор нельзя: без него клавиатурная навигация слепая. */
.remote-price-list .remote-price-list__filters__item__field select:focus,
.remote-price-list select.tgpp-opt__select:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--tgp-border-2);
}

.remote-price-list .remote-price-list__filters__item__field select:focus-visible,
.remote-price-list select.tgpp-opt__select:focus-visible {
    outline: 2px solid var(--tgp-ink);
    outline-offset: 2px;
    border-color: var(--tgp-ink);
}

/* Одного :focus-visible мало: Chrome считает его истинным у <select> и после
   клика мышью (селект открывает клавиатурный листбокс), поэтому обводка
   оставалась висеть. Способ ввода отслеживаем сами — см. price-list.html.
   Клавиатура сюда не попадает, focus-ринг для Tab остаётся на месте. */
.remote-price-list[data-tg-input="mouse"] .remote-price-list__filters__item__field select:focus,
.remote-price-list[data-tg-input="mouse"] .remote-price-list__filters__item__field select:focus-visible,
.remote-price-list[data-tg-input="mouse"] select.tgpp-opt__select:focus,
.remote-price-list[data-tg-input="mouse"] select.tgpp-opt__select:focus-visible {
    outline: none;
    box-shadow: none;
    border-color: var(--tgp-border-2);
}

/* ------------------------------------------------------------------- матрица */

.remote-price-list .remote-price-list__matrix {
    max-width: 100%;
    overflow: visible;
}

/* пока подгружается новая матрица после смены фильтра */
.remote-price-list .tg-matrix-body {
    transition: opacity .2s var(--tgp-ease);
}

.remote-price-list .tg-matrix-body.is-loading {
    opacity: .45;
    pointer-events: none;
}

.remote-price-list .tg-matrix-wrap {
    border: 1px solid var(--tgp-border);
    border-radius: var(--tgp-radius);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    background: var(--tgp-surface);
}

.remote-price-list .remote-price-list__matrix__table {
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    margin: 0;
    padding: 0;
    width: 100%;
    min-width: -webkit-max-content;
    min-width: max-content;
    font-family: var(--tgp-body);
}

/* шапка */
.remote-price-list .remote-price-list__matrix__table thead .remote-price-list__matrix__table__col {
    background-color: var(--tgp-accent);
    color: var(--tgp-black);
    font-family: var(--tgp-display);
    font-weight: 700;
    /* 12px = нижний токен шкалы ВЭР (.s-legal), ниже не опускаемся */
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-align: center;
    padding: 9px 14px;
    white-space: nowrap;
    border: none;
    border-bottom: 1px solid var(--tgp-accent-border);
}

/* «Тираж» растянут на все колонки тиражей: по центру он уезжал далеко вправо и
   при прокрутке пропадал из виду. Прижимаем влево и делаем липким — подпись
   всегда стоит сразу за колонкой «Размер». Смещение считает JS (--tgp-size-col),
   потому что ширина колонки размеров зависит от товара. */
.remote-price-list .remote-price-list__matrix__table thead td.tg-matrix-runs {
    text-align: left;
    padding-left: 0;
    padding-right: 0;
}

.remote-price-list .tg-matrix-runs__label {
    position: sticky;
    left: var(--tgp-size-col, 0px);
    display: inline-block;
    padding: 0 14px;
    background-color: var(--tgp-accent);
    z-index: 1;
}

/* угловая ячейка «Размер» — липнет и по горизонтали */
.remote-price-list .remote-price-list__matrix__table thead th.remote-price-list__matrix__table__col {
    position: sticky;
    left: 0;
    z-index: 3;
    text-align: left;
}

/* колонка размеров — липнет при горизонтальной прокрутке */
.remote-price-list .remote-price-list__matrix__table tbody .remote-price-list__matrix__table__col--head {
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: var(--tgp-surface);
    font-family: var(--tgp-display);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
    color: var(--tgp-black);
    text-align: left;
    white-space: nowrap;
    padding: 9px 14px;
    border: none;
    border-right: 2px solid var(--tgp-border);
    border-top: 1px solid var(--tgp-border);
    box-shadow: 1px 0 0 var(--tgp-border);
}

/* ячейки цен */
.remote-price-list .remote-price-list__matrix__table tbody .remote-price-list__matrix__table__col {
    /* 13px = токен .s-caption дизайн-системы ВЭР */
    padding: 9px 14px;
    text-align: right;
    font-size: 13px;
    line-height: 1.3;
    color: var(--tgp-ink);
    /* цена не должна ломаться посередине числа */
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    background-color: var(--tgp-surface);
    border: none;
    border-top: 1px solid var(--tgp-border);
    border-left: 1px solid var(--tgp-border);
    cursor: pointer;
    transition: background-color .15s var(--tgp-ease), color .15s var(--tgp-ease);
}

/* зебра — на ячейках, а не на строках: иначе sticky-колонка станет прозрачной */
.remote-price-list .remote-price-list__matrix__table tbody tr:nth-child(even) .remote-price-list__matrix__table__col,
.remote-price-list .remote-price-list__matrix__table tbody tr:nth-child(even) .remote-price-list__matrix__table__col--head {
    background-color: var(--tgp-surface-2);
}

.remote-price-list .remote-price-list__matrix__table tbody tr:first-child .remote-price-list__matrix__table__col {
    border-top: none;
}

.remote-price-list .remote-price-list__matrix__table__row .remote-price-list__matrix__table__col:not(.remote-price-list__matrix__table__col--head):hover,
.remote-price-list .remote-price-list__matrix__table__row .remote-price-list__matrix__table__col:not(.remote-price-list__matrix__table__col--head):focus {
    background-color: var(--tgp-soft);
}

.remote-price-list .remote-price-list__matrix__table__row .remote-price-list__matrix__table__col:not(.remote-price-list__matrix__table__col--head).focus {
    background-color: var(--tgp-accent);
    color: var(--tgp-black);
    font-weight: 700;
    box-shadow: inset 0 0 0 2px var(--tgp-black);
}

.remote-price-list .tg-matrix-hint {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--tgp-muted);
}

.remote-price-list .tg-matrix-hint svg {
    flex: none;
}

@media (max-width: 900px) {
    .remote-price-list .tg-matrix-hint {
        display: flex;
    }
}

/* ================================================== постпечатная обработка */

.remote-price-list .remote-price-list__description {
    margin-top: 22px;
}

.remote-price-list .remote-price-list__description .text-muted {
    border: 1px dashed var(--tgp-border-2);
    border-radius: var(--tgp-radius);
    padding: 22px 20px;
    font-size: 14px;
    color: var(--tgp-muted);
    background: var(--tgp-surface);
}

/* уровень 1 — блок целиком */
.remote-price-list .tgpp {
    border: 1px solid var(--tgp-border);
    border-radius: var(--tgp-radius);
    overflow: hidden;
    background: var(--tgp-surface);
}

.remote-price-list .tgpp__head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    min-height: 56px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--tgp-display);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    color: var(--tgp-black);
}

.remote-price-list .tgpp__head:focus-visible,
.remote-price-list .tgpp-cat__head:focus-visible {
    outline: 2px solid var(--tgp-ink);
    outline-offset: -2px;
}

.remote-price-list .tgpp__head-txt {
    min-width: 0;
}

.remote-price-list .tgpp__cnt {
    font-family: var(--tgp-body);
    font-weight: 400;
    font-size: 13px;
    color: var(--tgp-muted);
    margin-left: 8px;
    white-space: nowrap;
}

/* значок «+» — акцентный: чёрно-белый читался как декор, а не как «здесь есть
   платные опции». Жёлтая заливка с чёрным глифом (21:1), а не жёлтый глиф на
   белом (1.6:1 — не проходит по контрасту). */
.remote-price-list .tgpp__icon {
    position: relative;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--tgp-accent-border);
    background-color: var(--tgp-accent);
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tgp-black);
    transition: transform .3s var(--tgp-spring);
}

/* расходящееся кольцо-подсказка: живёт, пока блок ни разу не раскрывали */
.remote-price-list .tgpp__icon::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 2px solid var(--tgp-accent);
    opacity: 0;
    pointer-events: none;
}

.remote-price-list .tgpp:not(.was-opened) .tgpp__icon::after {
    animation: tgpp-pulse 2.4s var(--tgp-ease) infinite;
}

@keyframes tgpp-pulse {
    0% {
        transform: scale(1);
        opacity: .85;
    }

    60% {
        transform: scale(1.75);
        opacity: 0;
    }

    100% {
        transform: scale(1.75);
        opacity: 0;
    }
}

.remote-price-list .tgpp.is-open .tgpp__icon,
.remote-price-list .tgpp-cat.is-open .tgpp-cat__icon {
    transform: rotate(45deg);
}

.remote-price-list .tgpp__panel,
.remote-price-list .tgpp-cat__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .32s var(--tgp-ease);
}

.remote-price-list .tgpp-cat__panel {
    transition-duration: .28s;
}

.remote-price-list .tgpp.is-open > .tgpp__panel,
.remote-price-list .tgpp-cat.is-open > .tgpp-cat__panel {
    grid-template-rows: 1fr;
}

.remote-price-list .tgpp__panel-inner,
.remote-price-list .tgpp-cat__panel-inner {
    overflow: hidden;
    min-height: 0;
}

/* уровень 2 — категории */
.remote-price-list .tgpp-cats {
    border-top: 1px solid var(--tgp-border);
}

.remote-price-list .tgpp-cat {
    border-bottom: 1px solid var(--tgp-border);
    background: var(--tgp-surface);
}

.remote-price-list .tgpp-cat:last-child {
    border-bottom: none;
}

.remote-price-list .tgpp-cat__head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    min-height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
}

.remote-price-list .tgpp-cat__name {
    font-family: var(--tgp-display);
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.3;
    color: var(--tgp-black);
}

.remote-price-list .tgpp-cat__meta {
    font-family: var(--tgp-body);
    font-weight: 400;
    font-size: 12px;
    color: var(--tgp-muted);
    white-space: nowrap;
}

.remote-price-list .tgpp-cat__sel {
    font-family: var(--tgp-body);
    font-weight: 600;
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--tgp-black);
    background: var(--tgp-soft);
    border: 1px solid var(--tgp-accent-border);
    border-radius: 999px;
    padding: 2px 9px;
    display: none;
    white-space: nowrap;
}

.remote-price-list .tgpp-cat.has-selection .tgpp-cat__sel {
    display: inline-block;
}

.remote-price-list .tgpp-cat__spacer {
    flex: 1;
}

.remote-price-list .tgpp-cat__icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--tgp-border-2);
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tgp-ink);
    transition: transform .3s var(--tgp-spring);
}

/* сетка опций внутри категории */
.remote-price-list .tgpp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--tgp-border);
    border-top: 1px solid var(--tgp-border);
    list-style: none;
    margin: 0;
    padding: 0;
    /* column-count из main.css здесь не нужен */
    -webkit-column-count: auto;
    -moz-column-count: auto;
    column-count: auto;
}

@media (min-width: 600px) {
    .remote-price-list .tgpp-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.remote-price-list .tgpp-opt {
    background: var(--tgp-surface);
    margin: 0;
    display: block;
    overflow: visible;
}

.remote-price-list .tgpp-opt[hidden] {
    display: none;
}

.remote-price-list .tgpp-opt__label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    /* тап-таргет ≥44px даётся паддингом, а не высотой чекбокса */
    padding: 14px 20px;
    min-height: 44px;
    cursor: pointer;
    transition: background-color .15s var(--tgp-ease);
    font-family: var(--tgp-body);
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.remote-price-list .tgpp-opt__label:hover {
    background: var(--tgp-soft);
}

.remote-price-list .tgpp-opt .remote-price-list__checkbox__input {
    position: absolute;
    opacity: 0;
    width: 22px;
    height: 22px;
    margin: 0;
}

.remote-price-list .tgpp-opt .remote-price-list__checkbox__fake-input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    position: relative;
    border: 1.5px solid var(--tgp-border-2);
    border-radius: 5px;
    background: var(--tgp-surface);
    transition: background-color .2s var(--tgp-spring), border-color .2s var(--tgp-spring);
}

.remote-price-list .tgpp-opt .remote-price-list__checkbox__fake-input::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--tgp-black);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .2s var(--tgp-spring);
}

.remote-price-list .tgpp-opt input:checked ~ .remote-price-list__checkbox__fake-input {
    background: var(--tgp-accent);
    border-color: var(--tgp-accent-border);
}

.remote-price-list .tgpp-opt input:checked ~ .remote-price-list__checkbox__fake-input::after {
    transform: rotate(45deg) scale(1);
}

.remote-price-list .tgpp-opt input:focus-visible ~ .remote-price-list__checkbox__fake-input {
    outline: 2px solid var(--tgp-ink);
    outline-offset: 2px;
}

.remote-price-list .tgpp-opt__txt {
    flex: 1;
    min-width: 0;
}

.remote-price-list .tgpp-opt__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.remote-price-list .tgpp-opt__name {
    font-family: var(--tgp-display);
    font-weight: 600;
    font-size: 14.5px;
    line-height: 1.35;
    color: var(--tgp-black);
}

.remote-price-list .tgpp-opt__price {
    font-family: var(--tgp-body);
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.35;
    color: var(--tgp-muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.remote-price-list .tgpp-opt__desc {
    display: block;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--tgp-muted);
    margin-top: 3px;
}

.remote-price-list .tgpp-opt__desc:empty {
    display: none;
}

/* «Сверление»: 9 диаметров схлопнуты в один чекбокс + нативный select */
.remote-price-list .tgpp-opt__real {
    display: none;
}

/* select лежит СНАРУЖИ <label> — иначе тап по нему переключал бы чекбокс,
   поэтому отступ слева повторяет геометрию строки: 20 паддинг + 20 бокс + 12 gap */
.remote-price-list .tgpp-opt__diam {
    padding: 0 20px 14px 52px;
    transition: opacity .2s var(--tgp-ease);
}

.remote-price-list .tgpp-opt__diam-label {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    color: var(--tgp-muted);
    margin-bottom: 4px;
}

.remote-price-list select.tgpp-opt__select {
    font-family: var(--tgp-body);
    font-size: 16px;
    line-height: 1.3;
    color: var(--tgp-ink);
    background: var(--tgp-surface);
    border: 1px solid var(--tgp-border-2);
    border-radius: var(--tgp-radius-sm);
    /* видимая высота компактная, тап-таргет добирается паддингом */
    box-sizing: border-box;
    padding: 12px;
    height: auto;
    min-height: 46px;
    width: auto;
    min-width: 150px;
    max-width: 100%;
    cursor: pointer;
}

/* пока «Сверление» не отмечено — диаметр выбирать нечему */
.remote-price-list .tgpp-opt:not(.is-checked) .tgpp-opt__diam {
    opacity: .5;
}

.remote-price-list .tgpp-opt:not(.is-checked) select.tgpp-opt__select {
    pointer-events: none;
}

/* ==================================================== заявка: заголовок + 2 колонки */

.remote-price-list .tg-order-heading {
    margin-top: 40px;
}

/* Ступень H3 по шкале ВЭР (/brand-system/, уровень 03E — 22–36px Manrope):
   прежние 19px выпадали из шкалы вниз и терялись рядом с таблицей.
   24px держит явный шаг вниз от H2 блока (32px) и при этом читается
   как заголовок нового смыслового раздела, а не как подпись. */
.remote-price-list .tg-order-heading h3 {
    font-family: var(--tgp-display);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -.005em;
    color: var(--tgp-black);
    margin: 0 0 6px;
    text-transform: none;
}

/* Стрелка живёт только там, где форма действительно справа (2 колонки с 761px).
   Ниже этого порога форма уходит под сводку, и стрелка указывала бы в пустоту. */
.remote-price-list .tg-order-heading__arrow {
    display: none;
}

@media (min-width: 761px) {
    .remote-price-list .tg-order-heading__arrow {
        display: inline;
    }
}

.remote-price-list .tg-order-heading p {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--tgp-muted);
    margin: 0;
}

.remote-price-list .tg-order-layout {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

@media (min-width: 761px) {
    .remote-price-list .tg-order-layout {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

.remote-price-list .tg-order-layout__summary,
.remote-price-list .tg-order-layout__form {
    min-width: 0;
}

/* ------------------------------------------------------------ карточка сводки */

.remote-price-list .tg-summary {
    border: 1px solid var(--tgp-border);
    border-radius: var(--tgp-radius);
    background: var(--tgp-surface);
    box-shadow: var(--tgp-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color .25s var(--tgp-ease);
}

.remote-price-list .tg-summary.is-empty {
    border-style: dashed;
    box-shadow: none;
}

.remote-price-list .tg-summary__main {
    flex: 1 0 auto;
    padding: 20px 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px 20px;
}

.remote-price-list .tg-summary__label {
    font-family: var(--tgp-display);
    font-weight: 700;
    font-size: 11.5px;
    line-height: 1.3;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--tgp-muted);
    margin-bottom: 10px;
}

.remote-price-list .tg-summary__list {
    display: grid;
    grid-template-columns: auto auto;
    gap: 6px 16px;
    margin: 0;
    font-size: 13.5px;
    line-height: 1.4;
}

.remote-price-list .tg-summary__list dt {
    grid-column: 1;
    color: var(--tgp-muted);
    font-weight: 400;
}

.remote-price-list .tg-summary__list dd {
    grid-column: 2;
    margin: 0;
    color: var(--tgp-ink);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.remote-price-list .tg-summary__empty {
    font-size: 14px;
    line-height: 1.5;
    color: var(--tgp-muted);
    margin: 0;
}

.remote-price-list .tg-summary__total {
    flex: none;
    text-align: right;
}

.remote-price-list .tg-summary__total-label {
    font-family: var(--tgp-display);
    font-weight: 700;
    font-size: 11.5px;
    line-height: 1.3;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--tgp-muted);
    margin-bottom: 6px;
}

.remote-price-list .tg-summary__total-num {
    font-family: var(--tgp-display);
    font-weight: 800;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -.01em;
    color: var(--tgp-black);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .remote-price-list .tg-summary__main {
        flex-direction: column;
    }

    .remote-price-list .tg-summary__total {
        text-align: left;
    }

    .remote-price-list .tg-summary__total-num {
        font-size: 26px;
    }
}

.remote-price-list .tg-summary__note {
    border-top: 1px solid var(--tgp-border);
    background: var(--tgp-surface-2);
    padding: 14px 22px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--tgp-muted);
}

.remote-price-list .tg-summary__note b {
    color: var(--tgp-ink);
    font-weight: 600;
}

.remote-price-list .tg-summary__note a {
    color: var(--tgp-ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.remote-price-list .tg-summary__note a:hover,
.remote-price-list .tg-summary__note a:focus {
    color: var(--tgp-black);
    background: var(--tgp-accent);
    text-decoration: none;
}

/* ------------------------------------------------------------------- форма */

.remote-price-list .remote-price-list__submit {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.remote-price-list .remote-price-list__submit .field-title {
    margin: 0;
}

.remote-price-list .remote-price-list__submit .field-title span {
    font-family: var(--tgp-display);
    font-weight: 700;
    font-size: 12.5px;
    line-height: 1.3;
    color: var(--tgp-ink);
}

.remote-price-list .remote-price-list__submit .field {
    margin: 0;
}

.remote-price-list .remote-price-list__submit .field input {
    font-family: var(--tgp-body);
    /* 16px — иначе iOS зумит страницу на фокусе */
    font-size: 16px;
    line-height: 1.3;
    color: var(--tgp-ink);
    padding: 13px 16px;
    width: 100%;
    height: auto;
    background: var(--tgp-surface);
    border: 1px solid var(--tgp-border-2);
    border-radius: var(--tgp-radius-sm);
    box-shadow: none;
}

.remote-price-list .remote-price-list__submit .field input::-webkit-input-placeholder {
    color: var(--tgp-muted-2);
}

.remote-price-list .remote-price-list__submit .field input::placeholder {
    color: var(--tgp-muted-2);
}

.remote-price-list .remote-price-list__submit .field input:focus {
    border-color: var(--tgp-ink);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 206, 0, .35);
}

.remote-price-list .remote-price-list__submit .field input.error {
    border-color: #b4232a;
}

.remote-price-list .remote-price-list__submit .agreement-with-policy {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--tgp-muted);
}

.remote-price-list .remote-price-list__submit .wrapper-btn {
    display: block;
    width: 100%;
}

.remote-price-list .remote-price-list__submit .wbtn {
    font-family: var(--tgp-display);
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.2;
    letter-spacing: .02em;
    width: 100%;
    padding: 16px 20px;
    min-height: 52px;
    border: none;
    border-radius: 15px;
    background: var(--tgp-accent);
    color: var(--tgp-black);
    cursor: pointer;
    transition: background-color .2s var(--tgp-ease), transform .2s var(--tgp-ease), box-shadow .2s var(--tgp-ease);
}

.remote-price-list .remote-price-list__submit .wbtn:not(:disabled):hover {
    background: var(--tgp-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--tgp-shadow-sm);
}

.remote-price-list .remote-price-list__submit .wbtn:not(:disabled):active {
    transform: translateY(0);
}

/* disabled: сайт гасит кнопку прозрачностью, из-за чего серый текст ложился на
   бледно-жёлтый и не добирал AA. Задаём пару явно: #4a4e54 на #e7e8ea = 6.7:1 */
.remote-price-list .remote-price-list__submit .wrapper-btn .wbtn:disabled,
.remote-price-list .remote-price-list__submit .wbtn[disabled] {
    background: #e7e8ea;
    color: #4a4e54;
    opacity: 1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.remote-price-list .tg-submit-hint {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--tgp-muted);
    margin: 0;
}

.remote-price-list .tg-submit-hint:empty {
    display: none;
}

/* --------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {

    .remote-price-list .tgpp__panel,
    .remote-price-list .tgpp-cat__panel,
    .remote-price-list .tgpp__icon,
    .remote-price-list .tgpp-cat__icon,
    .remote-price-list .tgpp-opt__label,
    .remote-price-list .remote-price-list__checkbox__fake-input,
    .remote-price-list .remote-price-list__checkbox__fake-input::after,
    .remote-price-list .remote-price-list__matrix__table tbody .remote-price-list__matrix__table__col,
    .remote-price-list .remote-price-list__submit .wbtn {
        transition: none;
    }

    .remote-price-list .tgpp:not(.was-opened) .tgpp__icon::after {
        animation: none;
    }

    .remote-price-list .remote-price-list__submit .wbtn:not(:disabled):hover {
        transform: none;
    }
}

/* ------------------------------------------------------------------ мобайл */

@media (max-width: 640px) {
    .remote-price-list {
        margin-bottom: 36px;
    }

    /* мобайл: таблица максимально компактная, но не мельче 12px
       (нижний токен шкалы ВЭР .s-legal и практический порог читаемости) */
    .remote-price-list .remote-price-list__matrix__table thead .remote-price-list__matrix__table__col {
        padding: 8px 10px;
        letter-spacing: .02em;
    }

    .remote-price-list .tg-matrix-runs__label {
        padding: 0 10px;
    }

    .remote-price-list .remote-price-list__matrix__table tbody .remote-price-list__matrix__table__col,
    .remote-price-list .remote-price-list__matrix__table tbody .remote-price-list__matrix__table__col--head {
        padding: 8px 10px;
        font-size: 12px;
    }

    .remote-price-list .tgpp__head {
        padding: 15px 16px;
        font-size: 14.5px;
    }

    .remote-price-list .tgpp-cat__head,
    .remote-price-list .tgpp-opt__label {
        padding-left: 16px;
        padding-right: 16px;
    }

    .remote-price-list .tg-summary__main,
    .remote-price-list .tg-summary__note {
        padding-left: 18px;
        padding-right: 18px;
    }

    .remote-price-list .tg-order-heading h3 {
        font-size: 20px;
    }
}

/* Цена за штуку — вторая строка в ячейке матрицы (визитки).
   Тише основной цены, чтобы не спорить с ней за внимание. */
.remote-price-list .tg-matrix-unit {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--tgp-muted);
    white-space: nowrap;
}
