/* РИТИЗ — тема OpenCart 4. Дополнения к стилям макетов (site.css, catalog.css): то, что появилось на движке. */

.nw { white-space: nowrap; }
.h2-mid { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; }
.h3-s { font-size: 16px; margin-bottom: 12px; }
.muted-p { color: var(--muted); margin-top: 10px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rz-alert:empty { display: none; }

/* Подразделы и сортировка ссылками (в макете были кнопки) */
.subtabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none; }
.subtabs a span { font-size: 13px; color: var(--muted); font-weight: 600; }
.subtabs a:hover { border-color: var(--accent); color: var(--accent); }
.subtabs a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.subtabs a[aria-current="page"] span { color: #F1DFC9; }
.subtabs a:active { transform: scale(.97); }
.seg a { min-height: 36px; padding: 0 12px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; text-decoration: none; }
.seg a:hover { color: var(--text); }
.seg a[aria-current="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* Колонка фильтра: панель модуля PS Filter, оформление — его переменными */
.cat-layout.no-filters { grid-template-columns: minmax(0, 1fr); }
.rz-filters { position: sticky; top: 148px; transition: top .25s ease; }
body.hdr-hidden .rz-filters { top: 20px; }
.rz-filters > aside, .rz-filters #column-left { width: auto; max-width: none; padding: 0; flex: none; display: block !important; }
html .psf, html .psf-drawer { /* фильтр задает свои переменные на .psf — переопределяем там же, но выше по весу */
  --psf-accent: var(--brand);
  --psf-accent-contrast: #fff;
  --psf-bg: var(--surface);
  --psf-bg-soft: var(--bg);
  --psf-border: var(--line);
  --psf-text: var(--text);
  --psf-muted: var(--muted);
  --psf-radius: var(--radius);
  --psf-font-size: 15px;
}
.rz-filters .psf { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px 12px; }
@media (max-width: 1023px) {
  .rz-filters { position: static; }
  .cat-layout { gap: 0; }
}
@media (max-width: 760px) {
  .toolbar .seg:not(.seg-ico) a { flex: 1; justify-content: center; padding: 0 8px; font-size: 13px; white-space: nowrap; }
}

/* Постраничная навигация */
.rz-pages:empty { display: none; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 24px 0 4px; }
.pg { min-width: 44px; height: 44px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; text-decoration: none; }
.pg:hover { border-color: var(--accent); color: var(--accent); }
.pg[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Таблица заказа: широкая таблица листается внутри своей рамки */
.mx-wrap { overflow-x: auto; margin: 0 -4px; }
.mx-1 { max-width: 360px; }
.mx-1 td { width: 120px; }
.order-one { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 12px; }
.order-one label { font-weight: 700; }
.order-one .preset { margin: 0; }
.spec caption { text-align: left; font-weight: 800; padding: 0 0 8px; }
.pd .pd-info { min-width: 0; }

/* Поиск на странице результатов и на 404 */
.search-page { display: flex; gap: 10px; max-width: 640px; margin: 0 0 22px; }
.search-page input { flex: 1; min-width: 0; height: 48px; border: 1px solid #CFC3B5; border-radius: 12px; padding: 0 14px; background: #fff; }
.search-page input:focus-visible { outline: 3px solid var(--brand); outline-offset: 0; }

/* Страницы компании */
.info-page { padding-bottom: 40px; }
.info-h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; margin: 4px 0 20px; hyphens: auto; overflow-wrap: anywhere; }
@media (max-width: 360px) { .info-h1 { font-size: 1.5rem; } }
.info-body { max-width: 820px; font-size: 16px; overflow-wrap: anywhere; }
.info-body p, .info-body ul, .info-body ol { margin: 0 0 14px; }
.info-body h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 30px 0 12px; }
.info-body h3 { font-size: 18px; margin: 22px 0 8px; }
.info-body ul { padding-left: 22px; }
.info-body li { margin-bottom: 6px; }
.info-body img { border-radius: var(--radius-s); height: auto; }
.info-body table { border-collapse: collapse; width: 100%; margin: 0 0 18px; }
.info-body th, .info-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-body th { width: 38%; color: var(--muted); font-weight: 600; }
@media (max-width: 480px) {
  .info-body table { table-layout: fixed; }
  .info-body th, .info-body td { padding-inline: 6px; }
  .info-body th { hyphens: auto; }
  .info-body td :is(.nw, rz-nw) { white-space: normal; }
}
.info-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 18px 0 26px; max-width: none; }
.info-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.info-lead { font-size: 18px; color: var(--text); }
.info-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 18px 0 24px; }
.info-facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.info-facts b { display: block; font-family: "Lora", Georgia, serif; font-size: 24px; font-weight: 600; }
.info-facts span { color: var(--muted); font-size: 14px; }
.info-block { margin-top: 26px; }
.info-page .wrap > .info-body:has(.info-gallery) { max-width: none; }

/* Контакты */
.contacts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.c-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 10px; align-content: start; }
.c-card h2 { font-size: 20px; }
.c-big { font-size: 24px; font-weight: 800; }
.c-big a { color: var(--text); text-decoration: none; }
.c-big a:hover { color: var(--accent); text-decoration: underline; }
.c-note { color: var(--muted); font-size: 14px; }
.c-list { margin: 0; display: grid; gap: 8px; }
.c-list div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; }
.c-list dt { color: var(--muted); font-size: 14px; }
.c-list dd { margin: 0; }
@media (max-width: 760px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .c-list div { grid-template-columns: 1fr; gap: 2px; }
}

/* 404 */
.nf { max-width: 720px; padding: 30px 0 10px; }
.nf-code { font-family: "Lora", Georgia, serif; font-size: 72px; line-height: 1; color: var(--amber); font-weight: 600; }
.nf p { color: var(--muted); margin-bottom: 18px; }
.nf-cats { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }

/* Подвал: строка с реквизитами и политикой */
.f-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Заявка: ссылки на товар в списке, кнопки оформления без позиций */
.d-item b a { color: inherit; text-decoration: none; }
.d-item b a:hover { text-decoration: underline; }
.btn.is-off { opacity: .5; }

/* Cookie */
.cookie { position: fixed; left: 16px; right: 16px; z-index: 55; max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: grid; gap: 12px; font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie {
  bottom: calc(var(--rz-bottom, 0px) + 12px);
  max-block-size: calc(100dvh - var(--rz-bottom, 0px) - 24px);
  overflow: auto;
  overscroll-behavior: contain;
}
@media (max-width: 480px) {
  .cookie { inset-inline: 12px; padding: 12px; gap: 8px; }
  .cookie-btns { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .cookie-btns button { min-height: 44px; padding: 5px 7px; line-height: 1.2; }
  .pd-tabs { position: static; }
  .pd-tabs .in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .pd-tabs a { text-align: center; }
}
body:has(.footer :focus-visible) .cookie { top: max(12px, env(safe-area-inset-top)); bottom: auto; }

/* ---------- Оформление заявки и кабинет модуля PS Checkout ---------- */
.psc, .psc-account {
  --psc-accent: var(--brand);
  --psc-accent-text: #fff;
  --psc-text: var(--text);
  --psc-muted: var(--muted);
  --psc-border: #CFC3B5;
  --psc-line: var(--line);
  --psc-bg: var(--bg);
  --psc-surface: var(--surface);
  --psc-radius: var(--radius-s);
  --psc-focus-color: var(--brand);
  --psc-sticky-top: 20px;
}
main > #checkout-checkout, main > #checkout-cart, main > #account-account, main > .container { max-width: var(--wrap); margin: 0 auto; padding: 20px 24px 48px; }
#checkout-checkout > .row, #checkout-cart > .row { display: block; }
.psc h1, .psc__title { font-family: "Lora", Georgia, serif; font-weight: 600; font-size: clamp(28px, 3.2vw, 40px); }
#checkout-checkout .psc__grid { gap: clamp(18px, 2vw, 30px); }
@media (min-width: 992px) {
  #checkout-checkout .psc--two .psc__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  #checkout-checkout .psc--two .psc__aside { margin-block-start: var(--rz-recipient-offset, 0px); }
}
#checkout-checkout .psc-block--contacts, #checkout-checkout .psc-summary,
#checkout-checkout .psc-block:has(.psc-request) {
  padding: clamp(16px, 2vw, 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
#checkout-checkout .psc-block__title { margin-bottom: 18px; }
#checkout-checkout .psc-b2b { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
#checkout-checkout .psc-b2b__title { margin: 0 0 14px; }
#checkout-checkout .psc-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
#checkout-checkout :is(.psc-field--telephone, .psc-field--email, .psc-field--company, .psc-field--legal_address) { grid-column: 1 / -1; }
#checkout-checkout .psc-input { background: #fff; }
#checkout-checkout .psc-request__files { position: relative; margin-top: 20px; }
#checkout-checkout .psc-request__files > label {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 18px; border: 1px solid var(--brand); border-radius: var(--radius-s);
  color: var(--brand); cursor: pointer;
}
#checkout-checkout .psc-request__files > label:hover { background: var(--bg); }
#checkout-checkout .psc-request__files:has(input:focus-visible) > label { outline: 3px solid var(--brand); outline-offset: 3px; }
#checkout-checkout .psc-request__input {
  position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0;
  overflow: hidden; clip-path: inset(50%);
}
#checkout-checkout .psc-request__list:empty { display: none; }
@media (max-width: 700px) {
  #checkout-checkout .psc-fields { grid-template-columns: minmax(0, 1fr); }
  main > #checkout-checkout { padding-inline: 12px; }
  #checkout-checkout .psc-field__opt { font-size: .85em; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  #checkout-checkout .psc-field--ogrn { grid-column: 1 / -1; }
}
/* цепочка ссылок модулей и штатных страниц — как на страницах темы */
main .breadcrumb { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted); background: none; }
main .breadcrumb li + li::before { content: "/"; margin: 0 8px; color: #B9AB9B; float: none; padding: 0; }
main .breadcrumb a { color: var(--muted); text-decoration: none; }
main .breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
main .breadcrumb li:first-child a:empty::before, main .breadcrumb li:first-child a > i:only-child::after { content: "Главная"; font-style: normal; font-family: "Montserrat", Arial, sans-serif; }
main .breadcrumb li:first-child a > i.fa-solid::before { content: none; }
main .breadcrumb li:last-child a { color: var(--text); font-weight: 600; pointer-events: none; }

/* ---------- Штатные страницы на Bootstrap (кабинет, сравнение и т. п.): мосты к стилю темы ---------- */
html.rz-bs body { font: 400 16px/1.55 "Montserrat", Arial, sans-serif; background: var(--bg); color: var(--text); }
html.rz-bs main.rz-std { padding: 20px 0 48px; }
html.rz-bs main.rz-std > .container { max-width: var(--wrap); padding-left: 24px; padding-right: 24px; }
html.rz-bs main.rz-std .breadcrumb { font-size: 14px; background: none; padding: 0; margin: 0 0 16px; }
html.rz-bs main.rz-std .breadcrumb a { color: var(--muted); text-decoration: none; }
html.rz-bs main.rz-std .breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
html.rz-bs main.rz-std h1 { font-family: "Lora", Georgia, serif; font-weight: 600; font-size: clamp(26px, 3vw, 36px); margin-bottom: 18px; }
html.rz-bs main.rz-std h2 { font-family: "Lora", Georgia, serif; font-size: 22px; margin: 18px 0 12px; }
html.rz-bs main.rz-std a { color: var(--accent); }
html.rz-bs main.rz-std a:hover, html.rz-bs main.rz-std a:focus { color: var(--brand-700); }
html.rz-bs main.rz-std .btn { min-height: 44px; border-radius: 12px; font-weight: 700; padding: 0 20px; display: inline-flex; align-items: center; }
html.rz-bs main.rz-std .btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
html.rz-bs main.rz-std .btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
html.rz-bs main.rz-std .btn-light, html.rz-bs main.rz-std .btn-secondary { background: var(--surface); border: 1px solid var(--line); color: var(--text); }
html.rz-bs main.rz-std .form-control, html.rz-bs main.rz-std .form-select { min-height: 46px; border-color: #CFC3B5; border-radius: 10px; }
html.rz-bs main.rz-std .form-control:focus, html.rz-bs main.rz-std .form-select:focus { border-color: var(--brand); box-shadow: none; outline: 3px solid var(--brand); outline-offset: 0; }
html.rz-bs main.rz-std .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
html.rz-bs main.rz-std .list-group-item.active { background: var(--brand); border-color: var(--brand); }
html.rz-bs main.rz-std .list-group-item { color: var(--text); }
html.rz-bs main.rz-std .table { --bs-table-bg: var(--surface); }
html.rz-bs main.rz-std .card { border-color: var(--line); border-radius: var(--radius); }
html.rz-bs main.rz-std .alert { border-radius: var(--radius-s); }
/* ссылки и рамка фокуса Bootstrap не должны трогать шапку и подвал */
html.rz-bs .header a, html.rz-bs .topbar a, html.rz-bs .tabbar a { text-decoration: none; }
html.rz-bs .header a:hover, html.rz-bs .header a:focus { color: inherit; }
html.rz-bs .topbar a:hover { color: var(--accent); text-decoration: underline; }
html.rz-bs .nav a:hover { color: var(--accent); }
html.rz-bs .footer a { color: #E9DCC8; }
html.rz-bs .footer a:hover, html.rz-bs .footer a:focus { color: var(--amber); }
html.rz-bs .footer h3 { font-size: 15px; }
html.rz-bs h1, html.rz-bs h2, html.rz-bs h3 { line-height: 1.15; }
html.rz-bs :focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
html.rz-bs .on-dark :focus-visible { outline-color: var(--amber); }
html.rz-bs .search input { border-radius: 12px; }
html.rz-bs .badge { padding: 0; }
html.rz-bs p { margin: 0; }
html.rz-bs main.rz-std p { margin: 0 0 12px; }

/* Карта сайта */
.sm-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sm-list ul { list-style: none; padding: 6px 0 4px 16px; margin: 0; display: grid; gap: 6px; font-size: 15px; }

/* Типограф: «6-гранный», «Р-2», «30–100» не переносятся */
rz-nw { white-space: nowrap; }

/* Полоса цифр на планшете: 3 + 2 */
@media (min-width: 761px) and (max-width: 1100px) {
  .facts.facts-wide { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .facts-wide .fact:nth-child(4) { padding-left: 0; border-left: 0; }
}
/* Кнопки заказа в узкой колонке карточки — одна под другой */
@media (min-width: 1024px) and (max-width: 1180px) {
  .order .row2 { grid-template-columns: 1fr; }
}
/* Схема доставки на узком телефоне: подписи городов не наезжают */
@media (max-width: 400px) {
  .radius .city:nth-of-type(6) { display: none; }
}

/* Фото в карточке — ссылка на товар, как и название */
.card a.ph { text-decoration: none; cursor: pointer; }
.card a.ph img { transition: opacity .15s, transform .2s; }
.card a.ph:hover img { opacity: .9; }
@media (hover: none) { .card a.ph:active img { opacity: .75; } }

/* Блоки «Похожие», «Недавно смотрели» модуля PS SeeAlso — в стиле карточек сайта (только переменные модуля) */
html:root {
  --psa-accent: var(--brand);
  --psa-accent-fg: #fff;
  --psa-accent-hover: var(--brand-700);
  --psa-card-bg: var(--surface);
  --psa-card-border: var(--line);
  --psa-card-active: var(--brand-50);
  --psa-text: var(--text);
  --psa-muted: var(--muted);
  --psa-radius: var(--radius);
  --psa-focus-color: var(--brand);
  --psa-nav-bg: var(--surface);
  --psa-nav-bg-hover: var(--brand-50);
  --psa-nav-border: var(--line);
  --psa-nav-fg: var(--text);
  --psa-mark-bg: var(--amber-100);
  --psa-mark-fg: var(--accent);
  --psa-title-weight: 600;
}
.psa h2, .psa-place h2 { font-family: "Lora", Georgia, serif; }
.psa-block--similar .psa-list {
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  overflow: visible;
  scroll-snap-type: none;
  padding: 0;
}
.psa-block--similar .psa-card__image img { aspect-ratio: 3 / 2; }
.psa-block--similar .psa-item { min-inline-size: 0; }
.psa-block--similar .psa-block__nav { display: none; }
@media (max-width: 575px) {
  .psa-block--similar .psa-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Фото в карточке товара — по клику крупно */
.gal-track img { cursor: zoom-in; }
.gal-zoom { position: absolute; right: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .92); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; }
.gal-zoom:hover { border-color: var(--accent); color: var(--accent); }
.gal-zoom:active { transform: scale(.97); }
.lb { border: 0; padding: 0; margin: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; background: rgba(28, 22, 17, .94); color: #fff; }
.lb::backdrop { background: rgba(28, 22, 17, .94); }
.lb-in { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 56px 64px; box-sizing: border-box; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 12px; cursor: zoom-out; }
.lb-count { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font-size: 14px; font-weight: 700; color: #F1DFC9; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(28, 22, 17, .6); color: #fff; font-size: 28px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .15); }
.lb-btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.lb-close { right: 12px; top: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }
@media (max-width: 760px) {
  .lb-in { padding: 64px 8px 48px; }
  .lb-prev, .lb-next { top: auto; bottom: 6px; transform: none; }
}

/* Варианты с кнопками «−» и «+» */
.mx-1 { max-width: 420px; }
.mx-1 td { width: auto; }
.mx-qty { width: 168px; margin-left: auto; }
.mx-qty input { height: 44px; }
.mx-qty input.has { background: var(--amber-100); }

/* Плитки каталога на главной: фото без белых полей и крупнее */
.hc-tile:not(.big) img { width: 78%; height: 86px; padding-top: 8px; }
@media (max-width: 760px) { .hc-tile:not(.big) img { width: 100%; height: 96px; } }

/* Скрытое атрибутом hidden остается скрытым, даже если у блока свой display (подборки на главной, вкладки цветов) */
[hidden] { display: none !important; }

/* Варианты строками: название, «−» число «+», быстрые +10 / +25 / +50 */
.vtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.vtabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--text); cursor: pointer; }
.vtabs button:hover { border-color: var(--accent); color: var(--accent); }
.vtabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.vtabs button:active { transform: scale(.97); }
.vtabs .sw { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); }
.vtabs .vt-n { font-size: 12px; font-weight: 800; background: var(--amber); color: var(--ink); border-radius: 8px; padding: 1px 6px; }
.vpanel { display: grid; gap: 6px; margin-bottom: 8px; }
.vr { display: grid; grid-template-columns: minmax(64px, 1fr) auto auto; align-items: center; gap: 10px 12px; padding: 4px 0; }
.vr-name { font-weight: 700; font-size: 15px; }
.vr .qty { width: 132px; }
.vr .qty input.has { background: var(--amber-100); }
.vr .preset { margin: 0; }
@media (max-width: 420px) {
  .vr { grid-template-columns: 1fr auto; }
  .vr .preset { grid-column: 1 / -1; justify-self: end; }
}

/* Превью фото под главным: постоянного размера, много фото — в две строки */
.gal-thumbs { flex-wrap: wrap; }
.gal-thumbs button { flex: none; width: 88px; }

/* Подсказки поиска модуля PS Search — цвета сайта (переменные модуля) */
html:root {
  --pss-accent: var(--accent);
  --pss-accent-hover: var(--brand-700);
  --pss-bg: var(--surface);
  --pss-border: var(--line);
  --pss-hover: var(--brand-50);
  --pss-mark: var(--amber-100);
  --pss-muted: var(--muted);
  --pss-text: var(--text);
  --pss-radius: var(--radius-s);
  --pss-shadow: var(--shadow);
}

/* Главная страница кабинета: крупные пункты вместо списка ссылок */
.rz-acc { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.rz-acc a { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); min-height: 44px; }
.rz-acc a:hover { border-color: var(--accent); }
.rz-acc span { color: var(--muted); font-size: 14px; }
@media (hover: none) { .rz-acc a:active { background: var(--brand-50); } }

/* Контакты: реквизиты с неразрывными кусками адреса не помещаются в две колонки на планшете */
.c-card { min-width: 0; }
@media (max-width: 900px) {
  .contacts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .c-list dd .nw { white-space: normal; }
}

/* Переход к месту на странице: цель встает под шапкой, а не под нее */
html { scroll-padding-top: 96px; }
#request, #catalog, #production, #delivery, #expo { scroll-margin-top: 96px; }
@media (max-width: 760px) { html { scroll-padding-top: 16px; } #request, #catalog, #production, #delivery, #expo { scroll-margin-top: 16px; } }
[tabindex="-1"]:focus { outline: none; }

/* Баннер влияет только на прокрутку к фокусу. Геометрия подвала от согласия не зависит. */
.footer { padding-bottom: 24px; }
html { scroll-padding-bottom: calc(var(--rz-bottom, 0px) + 16px + var(--rz-cookie-height, 0px)); }
@media (max-width: 760px) {
  html { --rz-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
  html:has(body.has-pdbar) { --rz-bottom: calc(var(--tabbar) + 64px + env(safe-area-inset-bottom)); }
  body, body.has-pdbar { padding-bottom: 0; }
  .footer { padding-bottom: calc(32px + var(--rz-bottom)); }
}
/* Уведомление скрыто — его кнопка не попадает в обход клавиатурой */
.toast:not(.show) { visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s; }
/* Служебная строка поиска для экранного доступа (невидимая) не удлиняет страницу под подвалом */
body > .pss__status { top: 0; left: 0; }
/* Прокрутка к фокусу с клавиатуры — сразу; плавно едут только ссылки на место на странице (site.js, goTo) */
html { scroll-behavior: auto; }

/* Ссылки внутри текста отличаются не только цветом (WCAG 1.4.1) */
.f-bottom span a { text-decoration: underline; text-underline-offset: .18em; }
html.rz-bs main.rz-std p a, html.rz-bs main.rz-std .form-check-label a { text-decoration: underline; text-underline-offset: .18em; }
.cookie a { text-decoration: underline; text-underline-offset: .18em; }
