/* ====== RESET OLD main.css STYLES — удалено в C4.1 шаг 5 ======
   Эти 14 kill-правил были нужны чтобы скрыть legacy-элементы
   (.header.clearfix, .topPanel, .stickyHeader, .subHeader, .footer-1/2,
   .header-spacer и др.) из старого main.css на публичных страницах.
   После того как main.min.css снят со всех 6 публичных шаблонов
   (C4.1 шаги 1-4), эти селекторы там не рендерятся, и kill-правила
   стали мёртвыми. Legacy-страницы (gofrokorobki.tpl и пр.) грузят
   main.css напрямую и common-v2 не подключают — поэтому их вид
   не меняется.
   ====================================================================== */

/* Fast order modal */
.fastOrder__modal-background {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9998;
}
#fastOrderModal {
  display: none; position: fixed; top: 50%; left: 50%;
  transform: translate(-50%,-50%); z-index: 9999; background: #fff;
  border-radius: var(--radius-lg); padding: 24px 28px; max-width: 480px;
  width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  font-family: var(--font-base);
}
#fastOrderModal .shopView__modal-title h2 { font-size: 18px; font-weight: 600; margin: 0 0 16px; }
#fastOrderModal .shopView__modal-close { position: absolute; top: 16px; right: 16px; cursor: pointer; font-size: 18px; color: var(--c-text-secondary); }
#fastOrderModal .cartOrder__form-block { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
#fastOrderModal .cartOrder__form-input {
  flex: 1; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: var(--radius);
  font-size: 14px; font-family: inherit; outline: none;
}
#fastOrderModal .cartOrder__form-input:focus { border-color: var(--c-coral); }
#fastOrderModal .fa-check { font-family: FontAwesome; font-style: normal; font-size: 14px; }
#fastOrderModal .err { font-size: 12px; color: var(--c-coral); }
#fastOrderModal .goods__price-button {
  width: 100%; padding: 12px; background: var(--c-coral); color: #fff; border: none;
  border-radius: var(--radius); font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
}
#fastOrderModal .goods__price-button:hover { background: var(--c-coral-hover); }
/* .fastOrder-total / .fastOrder-total .fa-rub — финальное определение ниже,
   эти были дубликатами без эффекта (см. L~80). */
#fastOrderModal .fastOrder__modal-success h3 { font-size: 16px; font-weight: 600; color: var(--c-green); }
#fastOrderModal .shopView__counter-left {
  display: inline-flex !important; align-items: center; border: 1px solid var(--c-border);
  border-radius: var(--radius); margin-bottom: 12px; width: auto !important; max-width: 100px;
}
#fastOrderModal .goods__count-input {
  width: 44px !important; text-align: center; border: none !important; font-size: 14px;
  padding: 8px 4px !important; font-family: inherit; outline: none;
}
#fastOrderModal .goods__counter-right {
  display: flex !important; flex-direction: column; border-left: 1px solid var(--c-border);
}
#fastOrderModal .goods__counter-right i {
  display: flex !important; align-items: center; justify-content: center;
  width: 28px; height: 18px; cursor: pointer; font-size: 10px;
  font-family: FontAwesome !important; font-style: normal !important; color: var(--c-text-secondary);
}
#fastOrderModal .goods__counter-right i:hover { background: var(--c-bg-light); }
/* Промокод */
#fastOrderModal .fastOrder-promocode_block { margin: 8px 0; }
#fastOrderModal .fastOrder-promocode_block a,
#fastOrderModal .fastOrder-promocode_block .set_promocode { font-size: 13px; color: var(--c-coral); text-decoration: none; }
#fastOrderModal .fastOrder-promocode_block a:hover { text-decoration: underline; }
#fastOrderModal .fastOrder-promocode_form_block {
  display: flex; gap: 8px; margin-top: 8px; align-items: center;
}
#fastOrderModal .fastOrder-promocode_form_block .promocode_input {
  flex: 1; padding: 8px 12px; border: 1px solid var(--c-border); border-radius: var(--radius);
  font-size: 13px; font-family: inherit; outline: none;
}
#fastOrderModal .fastOrder-promocode_form_block .promocode_input:focus { border-color: var(--c-coral); }
#fastOrderModal .fastOrder-promocode_form_block .save_promocode {
  padding: 8px 16px; background: var(--c-slate); color: #fff; border: none;
  border-radius: var(--radius); font-size: 13px; cursor: pointer; font-family: inherit;
}
#fastOrderModal .fastOrder-promocode_form_block .save_promocode:hover { background: #505c6e; }
#fastOrderModal .fastOrder-promocode_existing_block {
  margin-top: 8px; font-size: 13px; color: var(--c-text-secondary);
}
#fastOrderModal .fastOrder-promocode_existing_block .del_promocode { color: var(--c-coral); font-size: 12px; }
#fastOrderModal .fastOrder-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; margin: 12px 0; padding: 12px; background: var(--c-bg-light);
  border-radius: var(--radius); font-weight: 600;
}
#fastOrderModal .fastOrder-total .fa-rub { font-family: FontAwesome !important; font-style: normal !important; }
#fastOrderModal .fastOrder-total__split {
  font-size: 12px; color: var(--c-text-muted);
  margin: -6px 0 12px; text-align: right;
}
#fastOrderModal > span,
#fastOrderModal .cartOrder__form-block > span { font-size: 11px; color: var(--c-text-muted); line-height: 1.4; }

/* Чекбокс согласия на обработку ПДн в быстром заказе (152-ФЗ ст.9).
   Селектор с #fastOrderModal — у модалки высокая специфичность правил,
   без неё общий .fastOrder__consent перебивался цветом/размером. */
#fastOrderModal .fastOrder__consent {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 14px 0 0; font-size: 11px; line-height: 1.4;
  color: var(--c-text-muted); cursor: pointer;
}
#fastOrderModal .fastOrder__consent input {
  flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0;
  accent-color: var(--c-coral); cursor: pointer;
}
#fastOrderModal .fastOrder__consent a { color: var(--c-text-secondary); text-decoration: underline; }
#fastOrderModal .fastOrder__consent a:hover { color: var(--c-coral); }
/* Подсветку непроставленного согласия вешает обработчик submit в modal.php */
#fastOrderModal .fastOrder__consent.is-error { color: var(--c-coral); }
#fastOrderModal .fastOrder__consent.is-error input {
  outline: 2px solid var(--c-coral); outline-offset: 1px;
}
#fastOrderModal .fastOrder__consent-err:not(:empty) {
  margin-top: 6px; font-size: 11px; color: var(--c-coral);
}
/* .cart-slidein-backdrop — основной блок определён ниже (L~1811) через
   opacity/visibility + transition. Старые display:none/block правила удалены —
   они мгновенно убирали элемент из render-tree и ломали fade-анимацию. */

/* ====== Contact Modal ====== */
.v2-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9998;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.v2-modal-backdrop.active { opacity: 1; visibility: visible; }
.v2-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95);
  z-index: 9999; background: #fff; border-radius: var(--radius-lg); padding: 0;
  width: 420px; max-width: 90vw; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.v2-modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.v2-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--c-border);
}
.v2-modal__title { font-size: 18px; font-weight: 600; }
.v2-modal__close {
  width: 32px; height: 32px; border: none; background: var(--c-bg-light);
  border-radius: 50%; cursor: pointer; font-size: 18px; color: var(--c-text-secondary);
  display: flex; align-items: center; justify-content: center;
}
.v2-modal__close:hover { background: var(--c-border); color: var(--c-text); }
.v2-modal__form { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.v2-modal__field input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: var(--radius);
  font-size: 14px; font-family: inherit; outline: none; box-sizing: border-box;
  transition: border-color 0.2s;
}
.v2-modal__field input:focus { border-color: var(--c-coral); }
.v2-modal__textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: var(--radius);
  font-size: 14px; font-family: inherit; outline: none; resize: vertical; box-sizing: border-box;
  transition: border-color 0.2s;
}
.v2-modal__textarea:focus { border-color: var(--c-coral); }
.v2-modal__hint { font-size: 12px; color: var(--c-text-muted); margin-top: -8px; }
.v2-modal__error { font-size: 13px; color: var(--c-coral); padding: 8px 12px; background: #fff0f2; border-radius: var(--radius); }
.v2-modal__submit {
  width: 100%; padding: 14px; background: var(--c-coral); color: #fff; border: none;
  border-radius: var(--radius); font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background 0.2s;
}
.v2-modal__submit:hover { background: var(--c-coral-hover); }
.v2-modal__submit:disabled { background: #b0b7c3; cursor: wait; }
.v2-modal__success {
  display: flex; align-items: center; gap: 10px; padding: 16px;
  background: #f0fdf4; border-radius: var(--radius); font-size: 15px;
  font-weight: 500; color: #166534;
}
.v2-modal__policy { font-size: 11px; color: var(--c-text-muted); text-align: center; }
.v2-modal__policy a { color: var(--c-text-secondary); }

/* Чекбокс согласия на обработку ПДн (152-ФЗ ст.9) — заменил подпись
   «Нажимая кнопку, вы соглашаетесь…»: та не является однозначным действием
   субъекта. Галка снята по умолчанию, ставит её только человек.
   align-items:flex-start — текст в две строки не должен утаскивать квадрат
   чекбокса в середину. */
.v2-modal__consent {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; line-height: 1.4; color: var(--c-text-muted); cursor: pointer;
}
.v2-modal__consent input {
  flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0;
  accent-color: var(--c-coral); cursor: pointer;
}
.v2-modal__consent a { color: var(--c-text-secondary); text-decoration: underline; }
.v2-modal__consent a:hover { color: var(--c-coral); }
/* Подсветка невыполненного согласия — ставится из JS (v2-common.js) */
.v2-modal__consent.is-error { color: var(--c-coral); }
.v2-modal__consent.is-error input { outline: 2px solid var(--c-coral); outline-offset: 1px; }

/* ====== Scroll-to-top — фирменный коралловый, прижат справа ======
   Раньше был slate-dark var(--c-dark): сливался с тёмным футером и казался
   неотстилованным (виден только белый chevron). Перевели на var(--c-coral)
   — контрастен и на белом контенте, и на тёмном футере. */
.v2-scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--c-coral);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(234, 91, 113, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: background 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease, visibility 0.3s ease;
}
.v2-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.v2-scroll-top:hover {
  background: var(--c-coral-hover, #d54861);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(234, 91, 113, 0.45), 0 4px 10px rgba(0, 0, 0, 0.2);
}
.v2-scroll-top:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(234, 91, 113, 0.3);
}
.v2-scroll-top svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 480px) {
  .v2-scroll-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}

/* ====== Floating Messenger Button ====== */
.v2-float-messenger {
  position: fixed; bottom: 24px; left: 24px; z-index: 950;
}
.v2-float-messenger__toggle {
  width: 56px; height: 56px; border: none; border-radius: 50%;
  background: var(--c-green); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(76,175,80,0.4);
  transition: all 0.3s ease; position: relative; z-index: 2;
}
.v2-float-messenger__toggle:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(76,175,80,0.5); }
.v2-float-messenger__icon-close { display: none; }
.v2-float-messenger.open .v2-float-messenger__icon-chat { display: none; }
.v2-float-messenger.open .v2-float-messenger__icon-close { display: block; }
.v2-float-messenger__menu {
  position: absolute; bottom: 68px; left: 0;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.25s ease;
}
.v2-float-messenger.open .v2-float-messenger__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.v2-float-messenger__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 14px; border-radius: 28px;
  color: #fff; text-decoration: none; font-size: 14px; font-weight: 500;
  font-family: var(--font-base);
  white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}
.v2-float-messenger__item:hover { transform: translateX(4px); }
.v2-float-messenger__item--tg { background: #2AABEE; }
.v2-float-messenger__item--max { background: linear-gradient(135deg, #2B7FFF 0%, #7A4DFF 100%); }
.v2-float-messenger__item--wa { background: #25D366; }
.v2-float-messenger__item--vk { background: #07F; }
.v2-float-messenger__item--mail { background: var(--c-coral); }
.v2-float-messenger__item--phone { background: var(--c-dark); }
@media (max-width: 850px) {
  .v2-float-messenger { bottom: 16px; left: 16px; }
  .v2-float-messenger__toggle { width: 48px; height: 48px; }
}

/* ====== Trust Clients (logos) ====== */
.trust-clients__title {
  font-size: 16px; font-weight: 600; text-align: center; margin-bottom: 24px;
  color: var(--c-text-secondary);
}
.trust-clients__list {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 32px;
}
.trust-clients__item {
  display: flex; align-items: center; justify-content: center;
}
.trust-clients__item img {
  height: 36px; width: auto; object-fit: contain;
  filter: grayscale(100%); opacity: 0.6;
  transition: all 0.3s ease;
}
.trust-clients__item img:hover {
  filter: grayscale(0%); opacity: 1;
}
@media (max-width: 850px) {
  .trust-clients__list { gap: 20px; }
  .trust-clients__item img { height: 28px; }
}

/* "Kill ALL old float-based layout" — удалено после C4.1 (main.css снят с публики). */

/* ====== Old product card → v2 restyle ====== */
.goods__infoblock-content {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); overflow: hidden;
  font-family: var(--font-base);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  height: 100%;
}
.goods__list > div {
  float: none; width: auto; margin: 0; padding: 0;
  display: flex; flex-direction: column;
}
.goods__infoblock-content:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Reset wrappers to contents */
.goods__full-view, .highlightd, .goods__full-view-item,
.goods__full-top-left, .goods__opt-program, .goods__middle-block,
.goods__order-options, .goods__order-now { all: unset !important; display: contents !important; }

/* Image (object-fit + скруглённый top, аспект 1:1).
   border-radius перенесён сюда из дубля в Admin tooltip-секции. */
.goods__full-img {
  all: unset !important; display: block !important; aspect-ratio: 1/1 !important;
  overflow: hidden !important; background: #fafafa !important; position: relative !important;
  border-top-left-radius: var(--radius-lg) !important;
  border-top-right-radius: var(--radius-lg) !important;
}
.goods__full-img a { display: block; width: 100%; height: 100%; }
.goods__full-img-pic { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Print logo — subtle overlay at bottom of image */
.print_logo_div { all: unset !important; display: block !important; padding: 6px 14px !important; font-size: 12px !important; }
/* text-transform/font-weight ресетим явно: на страницах с легаси main.css
   (корзина — блок «С этими товарами часто берут») .print_logo_div-link
   наследовал оттуда uppercase + 600 и выглядел КАПСОМ. */
.print_logo_div-link { color: var(--c-coral); text-decoration: none; font-size: 11px; text-transform: none; font-weight: 400; }
.print_logo_div-link:hover { text-decoration: underline; }
.print_logo_div-link .fa { font-family: FontAwesome; font-style: normal; }

/* Card body */
.goods__bottom-infoblock { all: unset !important; display: flex !important; flex-direction: column !important; flex: 1 !important; padding: 0 14px 14px !important; gap: 6px !important; }

/* Title */
.good__title { all: unset !important; }
.good__title a, .good__title .list_header_tovar { all: unset !important; color: var(--c-text) !important; text-decoration: none !important; cursor: pointer !important; }
.good__title h2 {
  all: unset !important; font-size: 14px !important; font-weight: 500 !important; line-height: 1.4 !important;
  display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important;
}
/* :hover h2 нужен !important — база .good__title h2 имеет `all: unset !important`,
   color без !important проиграет all:unset (см. инцидент tooltip). */
.good__title a:hover h2 { color: var(--c-coral) !important; }
/* Фактически tpl (goods_list_item.tpl.php) рендерит заголовок как <h3> —
   h2-правила выше на него не действуют (истор. расхождение). Минимум:
   убрать дефолтные h3-margins и не давать длинному слову вылезать за
   карточку (раздувало документ шире 375px на мобиле). */
.good__title h3 { margin: 0; overflow-wrap: anywhere; }
.good__title a:hover h3 { color: var(--c-coral); }

/* Price area */
.goods__bottom-grey-block { all: unset !important; display: flex !important; flex-direction: column !important; flex: 1 !important; }
.goods__price.ev-coast { all: unset !important; display: block !important; margin-bottom: 2px !important; }
.good_price-left-status { all: unset !important; display: block !important; float: none !important; width: 100% !important; }
.price_list { all: unset !important; display: inline !important; font-size: 22px !important; font-weight: 700 !important; color: var(--c-text) !important; }
.price_list .fa-rub { font-size: 20px; font-family: FontAwesome; font-style: normal; font-weight: 700; }
.price_list-value-before-sale { all: unset !important; text-decoration: line-through !important; color: var(--c-text-muted) !important; font-size: 13px !important; font-weight: 400 !important; margin-right: 6px !important; }
.goods__retail { all: unset !important; display: block !important; font-size: 11px !important; color: var(--c-green) !important; margin-top: 2px !important; }
.goods__retail .rt_left { font-size: 11px; }
.goods__retail .fa-rub { font-family: FontAwesome; font-style: normal; font-size: 10px; }

/* ROADMAP 3.6 «Допродажи»: скидка за объём (крупный опт) в карточке каталога */
.goods__volume-discount {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 3px;
}
.goods__volume-tier {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-green);
}

/* Stock & pack info — single row (под блоком цены).
   width:100% + clear:both чтобы блок гарантированно был под левым (а не справа от
   него inline). Иначе на узкой карточке legacy float-left из main.css на главной
   мог прижимать right-status к концу retail-строки. */
.good__price-right-status {
  all: unset !important;
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  font-size: 11px !important;
  color: var(--c-text-secondary) !important;
  margin-top: 4px !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
}
.good__price-right-status .fa { font-family: FontAwesome; font-style: normal; }
.goods__min-parts { all: unset !important; font-size: 11px !important; color: var(--c-text-muted) !important; }
div[style*="clear: both"] { display: none; }

/* Counter + Button row */
.goods__counter {
  all: unset !important; display: grid !important;
  grid-template-columns: auto 1fr !important;
  grid-template-rows: auto auto !important;
  gap: 4px 8px !important;
  margin-top: auto !important; padding-top: 10px !important; align-items: center !important;
}
.goods__counter-left {
  all: unset !important; display: flex !important; align-items: center !important;
  border: 1px solid var(--c-border) !important; border-radius: var(--radius) !important;
  height: 38px !important; flex-shrink: 0 !important;
}
.goods__count-input {
  all: unset !important; width: 36px !important; text-align: center !important; font-size: 14px !important;
  font-weight: 600 !important; font-family: inherit !important; line-height: 38px !important;
}
.goods__counter-right {
  all: unset !important; display: flex !important; flex-direction: column !important;
  border-left: 1px solid var(--c-border) !important; height: 38px !important;
}
.goods__counter-right i {
  all: unset !important; display: flex !important; align-items: center !important; justify-content: center !important;
  width: 26px !important; flex: 1 !important; cursor: pointer !important; font-size: 10px !important;
  color: var(--c-text-secondary) !important; font-family: FontAwesome !important; font-style: normal !important;
}
/* hover нужен !important — база .goods__counter-right i имеет
   `all: unset !important + color !important`. */
.goods__counter-right i:hover { background: var(--c-bg-light) !important; color: var(--c-text) !important; }

/* Cart button */
.goods__order-add-cart { all: unset !important; display: contents !important; }
.goods__price-button.buttonAddToCart {
  all: unset !important; display: flex !important; align-items: center !important; justify-content: center !important;
  height: 38px !important; background: var(--c-coral) !important; color: #fff !important;
  border-radius: var(--radius) !important; font-size: 13px !important; font-weight: 600 !important;
  cursor: pointer !important; transition: background 0.2s !important;
  font-family: var(--font-base) !important; white-space: nowrap !important;
  grid-column: 2 !important; grid-row: 1 !important;
}
/* hover нужен !important — база .goods__price-button.buttonAddToCart имеет
   `all: unset !important + background !important`. */
.goods__price-button.buttonAddToCart:hover { background: var(--c-coral-hover) !important; }
.goods__price-added {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; font-size: 12px; color: var(--c-green);
}
.goods__price-added a { color: var(--c-green); font-weight: 500; text-decoration: none; }
.goods__price-added .fa { font-family: FontAwesome; font-style: normal; }

/* Fast order — below button */
.fastOrderButton {
  all: unset !important; display: block !important; text-align: center !important;
  padding: 4px !important; color: var(--c-coral) !important; font-size: 12px !important;
  cursor: pointer !important; font-family: var(--font-base) !important;
  grid-column: 1 / -1 !important; grid-row: 2 !important;
}
/* hover нужен !important — база .fastOrderButton имеет `all: unset !important`,
   которое ресетит text-decoration в initial. */
.fastOrderButton:hover { text-decoration: underline !important; }
.fastOrderButton .fa { font-family: FontAwesome; font-style: normal; margin-right: 4px; }

/* Hide old bottom-info section (moved to v2 badges) */
.goods__full-bottom-info {
  all: unset !important;
  display: block !important;
  position: absolute !important;
  top: 8px !important;
  left: 8px !important;
  right: 8px !important;
  z-index: 5 !important;
  pointer-events: none !important;
}
.goods__full-bottom-info * {
  pointer-events: auto;
}
/* Скрыть старые текстовые бейджи которые заменены на v2-badge-*.
   !important ОБЯЗАТЕЛЕН — базовые правила .goods__pls / .goods__pl и
   связанные имеют `all: unset !important + display !important` (см. L487+),
   которые без !important здесь побеждают каскад и дают дубль бейджей
   коллекции/VIP на карточке товара (инцидент 2026-05-28). */
.goods__full-bottom-info .good__status-left .good__sale,
.goods__full-bottom-info .goods__article,
.goods__full-bottom-info .art_id,
.goods__full-bottom-info .goods__pls {
  display: none !important;
}
/* Особая звёздочка action */
.goods__full-bottom-info .goods__special-prop-icon {
  display: inline-block !important;
}
/* VIP и Новинка — скрываем старые (есть v2-badge-*).
   !important нужен по той же причине: .goods_new img / .good__vip img правила
   с !important побеждают без него. */
.goods__full-bottom-info .good__vip,
.goods__full-bottom-info .goods_new {
  display: none !important;
}
.goods__article { display: none !important; }
.art_id { display: none !important; }

/* v2 overlay badges on image */
.v2-badge-art {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: var(--c-dark); color: #fff; padding: 4px 10px;
  border-radius: 6px; font-size: 12px; font-weight: 500;
  font-family: var(--font-base);
}
/* Контейнер левых бейджей (sale/new + collection) — стек вертикально */
.v2-badges-left {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  max-width: calc(100% - 80px); /* не наезжать на артикул справа */
  pointer-events: none;
}
.v2-badges-left > * { pointer-events: auto; }
.v2-badge-collection {
  background: rgba(255,255,255,0.9); color: var(--c-text); padding: 4px 10px;
  border-radius: 6px; font-size: 11px; font-weight: 500;
  font-family: var(--font-base);
  backdrop-filter: blur(4px); text-decoration: none; cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.v2-badge-collection:hover { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.v2-badge-sale {
  background: var(--c-coral); color: #fff; padding: 4px 10px;
  border-radius: 6px; font-size: 11px; font-weight: 600;
  font-family: var(--font-base);
}
.v2-badge-new {
  background: var(--c-green); color: #fff; padding: 4px 10px;
  border-radius: 6px; font-size: 11px; font-weight: 600;
  font-family: var(--font-base);
}

/* v2 "in cart" button state — зелёный = success.
   background !important обязателен: база .goods__price-button.buttonAddToCart
   задаёт background !important (all: unset-паттерн), иначе состояние не видно. */
.buttonAddToCart.v2-in-cart {
  background: var(--c-green) !important; cursor: default; pointer-events: none;
}
.buttonAddToCart.v2-in-cart:hover { background: var(--c-green-hover) !important; }
.goods__special-prop { all: unset !important; display: flex !important; align-items: center !important; gap: 4px !important; }
.good__status-left { all: unset !important; display: inline-flex !important; gap: 4px !important; align-items: center !important; }
.goods__special-prop-icon { font-family: FontAwesome; font-style: normal; color: #f5a623; font-size: 12px; }
.goods_new img, .good__vip img { height: 14px; }
.good__sale a { color: var(--c-coral); font-size: 11px; text-decoration: none; }
.good__sale .fa { font-family: FontAwesome; font-style: normal; }
.goods__pls { all: unset !important; display: flex !important; flex-wrap: wrap !important; gap: 4px !important; width: 100% !important; }
.goods__pl a {
  all: unset !important; display: inline-block !important; padding: 2px 8px !important;
  background: var(--c-bg-light) !important; border-radius: 4px !important;
  font-size: 10px !important; color: var(--c-text-secondary) !important; cursor: pointer !important;
}
/* hover нужен !important — база .goods__pl a имеет `all: unset !important + color !important`. */
.goods__pl a:hover { color: var(--c-coral) !important; }
/* Админ-панель (иконки редактирования/статистики/производства) */
.admin__option-panel {
  all: unset !important;
  display: flex !important;
  gap: 4px !important;
  position: absolute !important;
  top: 40px !important;
  right: 8px !important;
  z-index: 6 !important;
  padding: 4px !important;
  background: rgba(255,255,255,0.95) !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
  opacity: 0 !important;
  transition: opacity 0.2s !important;
}
/* hover нужен !important — база .admin__option-panel имеет
   `all: unset !important + opacity: 0 !important`. */
.goods__infoblock-content:hover .admin__option-panel {
  opacity: 1 !important;
}
.admin__option-panel a {
  all: unset !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 4px !important;
  transition: background 0.2s !important;
}
/* hover нужен !important — база .admin__option-panel a имеет `all: unset !important`,
   которое ресетит background в initial. */
.admin__option-panel a:hover {
  background: var(--c-bg-light) !important;
}
.admin__option-panel img {
  width: 14px;
  height: 14px;
}

/* На главной: ПК — 9 товаров (скрыть 10-й), мобилка — все 10 */
.section--gray .goods__list > .goods__infoblock-content:nth-child(10) {
  display: none;
}
@media (max-width: 850px) {
  .section--gray .goods__list > .goods__infoblock-content:nth-child(10) {
    display: flex;
  }
}

/* Force new product card grid on CMS wrapper */
.goods__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  float: none;
  clear: both;
  align-items: start; /* не растягивать карточки по высоте строки */
}

/* ROADMAP 3.6 «Допродажи»: блок «с этим часто берут» в корзине.
   Переиспользует карточку каталога (.goods__list), на десктопе — 4 в ряд;
   мобильные брейкпоинты .goods__list (!important) ниже сами вернут 2 в ряд. */
.cartCrossSell {
  margin-top: 48px;
  clear: both;
}
.cartCrossSell__title {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 700;
}
.cartCrossSell .goods__list {
  grid-template-columns: repeat(4, 1fr);
}

/* Force catalog layout */
.catalog-layout {
  display: flex;
  gap: 32px;
}
.catalog-layout .filters,
.catalog-layout .sidebar__filter {
  width: 260px;
  flex-shrink: 0;
}
.catalog-layout .products-area {
  flex: 1;
  min-width: 0;
}

/* CMS Sort Bar (.goods__sort) — определение перенесено ниже, к L2879
   (был дубль секций; этот был неактивен из-за более поздней версии с !important). */

/* ====== CMS Sidebar Filter (.sidebar__filter) ====== */
/* !important сняты после C4.1 (main.css не грузится; селекторы .sidebar__filter
   и потомки изолированы от каталога legacy). */
.sidebar__filter {
  font-family: var(--font-base);
}
.sidebar__filter .filter__item {
  margin-bottom: 20px;
  padding: 0;
  border: none;
  background: none;
  /* layout-ограничение перенесено из дубля в Color filter секции */
  width: 100%;
  max-width: 100%;
  overflow: visible;
  box-sizing: border-box;
}
.sidebar__filter .filter__item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 12px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  background: none;
}
.sidebar__filter .filter__block-slide {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
}
.sidebar__filter .filter__item-block {
  margin-bottom: 8px;
  padding: 0;
}
.sidebar__filter .filters_label {
  font-size: 13px;
  color: var(--c-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  transition: color 0.2s;
}
.sidebar__filter .filters_label:hover {
  color: var(--c-text);
}
.sidebar__filter .filters_label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--c-coral);
  flex-shrink: 0;
  cursor: pointer;
}
.sidebar__filter .filter__item-submit,
.sidebar__filter input[type="submit"],
.sidebar__filter button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: var(--c-coral);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-base);
  margin-top: 16px;
}
.sidebar__filter .filter__item-submit:hover,
.sidebar__filter input[type="submit"]:hover,
.sidebar__filter button[type="submit"]:hover {
  background: var(--c-coral-hover);
}
.sidebar__filter .filter__item-reset,
.sidebar__filter a[href*="reset"],
.sidebar__filter .reset-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--c-text-secondary);
  margin-top: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
  padding: 6px;
}
.sidebar__filter .filter__item-reset:hover,
.sidebar__filter a[href*="reset"]:hover {
  color: var(--c-text);
}
.sidebar__productline,
.sidebar__filter .sidebar__productline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--c-coral);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 24px;
  text-decoration: none;
  font-family: var(--font-base);
}
.sidebar__productline:hover {
  background: var(--c-coral-hover);
}

/* ====== Load More Button (.get-more) ======
   !important сняты после C4.1 (main.css снят с публики). */
.get-more {
  text-align: center;
  margin-top: 32px;
  padding: 0;
}
.get-more button,
.get-more #getMore {
  padding: 14px 28px;
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-base);
}
.get-more button:hover,
.get-more #getMore:hover {
  border-color: var(--c-slate);
  background: var(--c-bg-light);
}

/* ====== CSS Variables ====== */
:root {
  --c-coral: #ea5b71;
  --c-coral-hover: #d9485e;
  --c-slate: #67738a;
  --c-slate-hover: #556275;
  --c-green: #4CAF50;
  --c-green-hover: #43a047;
  --c-brand-green: #6db63e;     /* зелёный логотипа paketoff */
  --c-dark: #252A34;
  --c-dark-lighter: #2f3543;
  --c-bg: #fff;
  --c-bg-light: #f8f9fb;
  --c-white: #fff;
  --c-border: #e8eaee;
  --c-border-input: #d0d0d0;    /* серый для бордеров инпутов */
  --c-text: #1a1a2e;
  --c-text-secondary: #6b7280;
  --c-text-muted: #9ca3af;
  --c-text-dark: #211e1f;       /* тёмный для подписей в шапке/печати */
  --c-slate-dark: #414656;
  --c-accent-blue: rgb(62,184,229);
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --transition: 0.2s ease;

  /* --- Cart/checkout-specific tokens (раньше жили в cart-redesign.css :root) --- */
  --cart-radius: 12px;
  --cart-radius-sm: 8px;
  --cart-gap: 16px;
  --cart-gap-lg: 24px;
  --cart-border: #ececef;
  --cart-bg-soft: #f7f7f9;
  --cart-text: #1c1c1e;
  --cart-text-muted: #6b6b75;
  --cart-accent: #ea5b71;
  --cart-accent-hover: #d9485e;
  --cart-success: #1f9d55;
  --cart-warn-bg: #fff8e7;
  --cart-warn-border: #f1c40f;
  --cart-shadow: 0 2px 12px rgba(20, 20, 30, 0.06);
  --cart-shadow-lg: 0 6px 24px rgba(20, 20, 30, 0.10);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-base);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
button, input, select { font-family: inherit; }

/* ====== Header ====== */
/* Top bar */
.topbar {
  background: var(--c-bg-light);
  border-bottom: 1px solid var(--c-border);
  font-size: 12px;
}
.topbar__inner {
  max-width: 1440px; margin: 0 auto; padding: 0 40px;
  height: 32px; display: flex; align-items: center; justify-content: space-between;
}
.topbar__links { display: flex; gap: 20px; }
.topbar__links a {
  color: var(--c-text-secondary); transition: color 0.2s ease;
}
.topbar__links a:hover { color: var(--c-coral); }
/* Выделенная ссылка «Пакет знаний» — акцентный текст со значком молнии слева (без кнопки/фона) */
.topbar__links a.topbar__link--knowledge {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--c-coral); font-weight: 700;
}
.topbar__links a.topbar__link--knowledge::before { content: "\26A1"; font-size: 12px; line-height: 1; }
.topbar__links a.topbar__link--knowledge:hover { color: var(--c-coral-hover); }
.topbar__right { display: flex; align-items: center; gap: 16px; color: var(--c-text-secondary); }
.topbar__right a { color: var(--c-text-secondary); transition: color 0.2s ease; }
.topbar__right a:hover { color: var(--c-coral); }
/* Topbar: CMS login form & admin menu */
.topbar__right ul.login { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; }
.topbar__right .login__item { position: relative; display: flex; align-items: center; gap: 6px; }
.topbar__right .login__item a,
.topbar__right .login__item-link,
.topbar__right .login__item-user,
.topbar__right .login__item-email { color: var(--c-text-secondary); font-size: 12px; text-decoration: none; transition: color 0.2s ease; cursor: pointer; }
.topbar__right .login__item a:hover,
.topbar__right .login__item-link:hover { color: var(--c-coral); }
/* Auth dropdown */
.topbar__right .form__auth-modal {
  display: none; position: absolute; top: 100%; right: 0; z-index: 1000;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 16px; min-width: 260px; margin-top: 8px;
}
.topbar__right .form__auth-modal.open { display: block; }
.topbar__right .form__auth-modal form { display: flex; flex-direction: column; gap: 10px; }
.topbar__right .form__auth-modal input[type="text"],
.topbar__right .form__auth-modal input[type="password"] {
  width: 100%; padding: 8px 12px; border: 1px solid var(--c-border); border-radius: var(--radius);
  font-size: 13px; font-family: inherit; outline: none; box-sizing: border-box;
}
.topbar__right .form__auth-modal input[type="text"]:focus,
.topbar__right .form__auth-modal input[type="password"]:focus { border-color: var(--c-coral); }
.topbar__right .form__auth-modal input[type="submit"] {
  padding: 8px 16px; background: var(--c-coral); color: #fff; border: none;
  border-radius: var(--radius); font-size: 13px; font-family: inherit; cursor: pointer; transition: background 0.2s;
}
.topbar__right .form__auth-modal input[type="submit"]:hover { background: var(--c-coral-hover); }
.topbar__right .form__auth-modal a { font-size: 12px; color: var(--c-text-secondary); }
.topbar__right .login__item-link-admin,
.topbar__right .login__item-link-admin-shop { font-size: 12px; color: var(--c-text-secondary); text-decoration: none; }
.topbar__right .login__item-link-admin:hover,
.topbar__right .login__item-link-admin-shop:hover { color: var(--c-coral); }
/* Сброс легаси-стилей из main.css: он грузится на /cart и /checkout и красит
   ссылки логина/«Управление» в старый красный absolute-бейдж (position:absolute;
   background:#E53944) + навешивает border/padding. На v2-страницах main.css нет,
   поэтому здесь эти свойства и так дефолтные — сброс безвреден, а на корзине
   возвращает шапке единый v2-вид. Специфичность (.topbar__right + класс) бьёт
   одиночный .login__item-* из main.css. */
.topbar__right .login__item-link,
.topbar__right .login__item-link-admin,
.topbar__right .login__item-link-admin-shop {
  position: static;
  background: none;
  width: auto;
  padding: 0;
  transform: none;
  border: 0;
  border-radius: 0;
}
.topbar__right .popup__menu { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 8px 0; z-index: 1000; min-width: 180px; }
.topbar__right .popup__menu a { display: block; padding: 6px 16px; font-size: 13px; color: var(--c-text); text-decoration: none; }
.topbar__right .popup__menu a:hover { background: var(--c-bg-light); color: var(--c-coral); }

@media (max-width: 850px) {
  .topbar { display: none; }
}

/* .header — cart.tpl грузит main.css, поэтому в cart.tpl main.css теперь
   подключается ПЕРЕД common-v2/cart-v2 (см. cart.tpl). Source-order побеждает
   без !important. На остальных публичных шаблонах main.css не грузится. */
.header {
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 200;
  height: auto;
  margin-bottom: 0;
}
.header.scrolled {
  box-shadow: var(--shadow-md);
}
.header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: auto;
  height: auto;
  margin: 0;
  position: static;
}
.header__logo img { height: 42px; width: auto; }
.header__nav { display: flex; gap: 28px; flex-wrap: nowrap; }
.header__nav a {
  font-size: 14px; font-weight: 500; color: var(--c-text);
  transition: color var(--transition); position: relative;
  white-space: nowrap;
  line-height: 21px;
  height: auto;
}
.header__nav a:hover, .header__nav a.active { color: var(--c-coral); }
.header__nav a.active::after {
  content: ''; position: absolute; bottom: -24px; left: 0; right: 0;
  height: 2px; background: var(--c-coral); border-radius: 1px;
}

/* === Dropdown в основном меню === */
.header__nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.header__nav-link-with-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  transition: color var(--transition);
  white-space: nowrap;
  line-height: 21px;
  position: relative;
}
.header__nav-link-with-arrow:hover {
  color: var(--c-coral);
}
/* Span-триггер ("Продукция на заказ" — не ссылка) */
.header__nav-trigger {
  user-select: none;
  font-family: inherit;
}
.header__nav-chevron {
  transition: transform 0.2s ease;
  margin-top: 1px;
  color: currentColor;
}
.header__nav-item--has-sub:hover .header__nav-chevron {
  transform: rotate(-180deg);
}
.header__submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px; /* hover-bridge между триггером и меню */
}
/* Невидимый "мостик" чтобы при движении мыши с триггера на меню оно не закрывалось */
.header__submenu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.header__nav-item--has-sub:hover .header__submenu,
.header__nav-item--has-sub:focus-within .header__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.header__submenu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
  transition: background 0.15s, color 0.15s;
}
.header__submenu a:hover {
  background: var(--c-bg-light, #f8f9fb);
  color: var(--c-coral);
}
.header__submenu a::after { display: none; }

/* === Featured-пункт в submenu (например «Коллекции») — ненавязчивый акцент === */
.header__submenu a.header__submenu-featured {
  font-weight: 600;
  color: var(--c-coral);
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  margin-bottom: 4px;
  padding-bottom: 12px;
}
.header__submenu a.header__submenu-featured::before {
  content: '✦';
  margin-right: 6px;
  font-size: 11px;
  opacity: 0.7;
}
.header__submenu a.header__submenu-featured:hover {
  background: rgba(var(--c-coral-rgb, 255, 95, 86), 0.06);
}

/* Mobile-аналог */
.mobile-nav__sublink.mobile-nav__sublink--featured {
  font-weight: 600;
  color: var(--c-coral);
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.mobile-nav__sublink.mobile-nav__sublink--featured::before {
  content: '✦';
  margin-right: 6px;
  font-size: 11px;
  opacity: 0.7;
}

/* === Mobile nav: подменю — группа === */
.mobile-nav__group {
  margin: 6px 0;
  padding: 6px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.mobile-nav__group-title {
  padding: 8px 16px 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-text-muted);
  letter-spacing: 0.4px;
}
.mobile-nav__sublink {
  padding-left: 28px;
  font-size: 14px;
  color: var(--c-text-secondary);
}
.mobile-nav__sublink:hover { color: var(--c-coral); }
.header__right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header__phone {
  font-size: 14px; font-weight: 600; color: var(--c-text);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
  text-decoration: none;
}
.header__phone svg { width: 16px; height: 16px; color: var(--c-slate); }
.header__cart {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: var(--c-coral); border-radius: var(--radius);
  color: #fff; transition: background var(--transition); cursor: pointer; border: none;
}
.header__cart:hover { background: var(--c-coral-hover); }
.header__cart svg { width: 20px; height: 20px; }
/* Иконка ЛК в шапке — по умолчанию скрыта; показывается только авторизованному
   и только на мобиле (body.is-auth + мобильный @media ниже). */
.header__account { display: none; }
.header__cart-badge {
  position: absolute; top: -4px; right: -4px; background: var(--c-dark); color: #fff;
  font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.header__search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--c-border); border-radius: var(--radius);
  background: transparent; cursor: pointer; color: var(--c-text-secondary);
  transition: all var(--transition);
}
.header__search-btn:hover { border-color: var(--c-slate); color: var(--c-text); }
/* Inline search in header */
.header__search {
  display: flex;
  flex: 1;
  margin: 0 24px;
  position: relative;
  width: auto;
  min-width: 280px;
  max-width: 600px;
}

/* ====== Topbar "Войти" — стили для шапки v2 ======
   (раньше тут было override main.css с !important — после C4.1 main
   на публике не грузится, !important сняты) */
.topbar .login__item-link,
.topbar__right .login__item-link {
  padding: 4px 12px;
  border: none;
  border-right: none;
  text-decoration: none;
  color: var(--c-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
  font-family: var(--font-base);
}
.topbar .login__item-link:hover,
.topbar__right .login__item-link:hover {
  color: var(--c-coral);
}
.topbar .login__item-link .fa-sign-in {
  font-family: FontAwesome;
  font-style: normal;
  font-size: 13px;
}
.topbar ul.login {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
}
.topbar .login__item {
  list-style: none;
  margin: 0;
  padding: 0;
}
.header__search-input {
  width: 100%; padding: 8px 38px 8px 12px; border: 1px solid var(--c-border);
  border-radius: var(--radius); font-size: 13px; outline: none;
  transition: border-color var(--transition);
}
.header__search-input:focus { border-color: var(--c-coral); }
.header__search-submit {
  position: absolute; right: 2px; top: 2px; bottom: 2px; width: 34px;
  border: none; background: var(--c-slate); color: #fff;
  border-radius: 0 6px 6px 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.header__search-submit:hover { background: var(--c-coral); }

/* ====== Live Search Dropdown ====== */
.live-search-wrap { position: relative; }
.live-search-results {
  /* По умолчанию скрыт (раньше было inline style="display:none" в header_v2.php).
     JS показывает через el.style.display = 'block' — inline перебивает CSS. */
  display: none;
  position: absolute; top: 100%; left: 0; z-index: 1000;
  min-width: 420px; width: max-content; max-width: 560px;
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-top: none; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg); max-height: 480px; overflow-y: auto;
}
.live-search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; text-decoration: none; color: var(--c-text);
  transition: background 0.15s;
  border-bottom: 1px solid var(--c-border);
}
.live-search-item:last-child { border-bottom: none; }
.live-search-item:hover { background: var(--c-bg-light); }
.live-search-item__img {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 6px; overflow: hidden; background: var(--c-bg-light);
  display: flex; align-items: center; justify-content: center;
}
.live-search-item__img img {
  width: 100%; height: 100%; object-fit: contain;
}
.live-search-item__info { flex: 1; min-width: 0; }
.live-search-item__title {
  font-size: 13px; font-weight: 500; line-height: 1.3;
  color: var(--c-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.live-search-item__art {
  font-size: 11px; color: var(--c-text-muted); margin-top: 2px;
}
.live-search-item__price {
  flex-shrink: 0; text-align: right; white-space: nowrap;
}
.live-search-item__price-current {
  font-size: 14px; font-weight: 600; color: var(--c-text);
}
.live-search-item__price-old {
  font-size: 11px; color: var(--c-text-muted);
  text-decoration: line-through; display: block;
}
.live-search-item__title mark {
  background: #fff3cd; color: inherit; padding: 0 1px; border-radius: 2px;
}
.live-search-empty {
  padding: 20px 12px; text-align: center;
  font-size: 13px; color: var(--c-text-secondary);
}
.live-search-loader {
  padding: 16px 12px; text-align: center;
  font-size: 13px; color: var(--c-text-muted);
}
/* ROADMAP 3.5: подсказка-заголовок над популярными товарами при пустой выдаче */
.live-search-suggest {
  padding: 10px 12px 6px; font-size: 12px;
  color: var(--c-text-secondary); border-bottom: 1px solid var(--c-border);
}
/* Этап 2 «Поиск»: честная подпись каскада на странице результатов —
   человек должен видеть, что ему показывают аналоги, а не точное совпадение. */
.search-notice {
  margin: 0 0 18px; padding: 12px 16px;
  background: var(--c-bg-secondary, #f6f7f9);
  border-left: 3px solid var(--c-accent, #d94f2b);
  border-radius: 4px;
  font-size: 15px; line-height: 1.4;
  color: var(--c-text-primary, #23262f);
}
@media (max-width: 767px) {
  .search-notice { margin-bottom: 12px; padding: 10px 12px; font-size: 14px; }
}

/* Sticky header search position fix */
.header-sticky__search.live-search-wrap { position: relative; }
.header-sticky__search .live-search-results {
  left: 0; right: 0;
}

/* ====== Sticky Header ====== */
.header-sticky {
  display: none !important;
}
.header-sticky__inner {
  max-width: 1440px; margin: 0 auto; padding: 0 40px;
  height: 56px; display: flex; align-items: center; gap: 24px;
}
.header-sticky__logo { flex-shrink: 0; }
.header-sticky__logo img { height: 32px; }
.header-sticky__search {
  flex: 1; margin: 0 24px; position: relative;
}
.header-sticky__search input {
  width: 100%; padding: 8px 40px 8px 14px; border: 1px solid var(--c-border);
  border-radius: var(--radius); font-size: 13px; outline: none;
  transition: border-color var(--transition);
}
.header-sticky__search input:focus { border-color: var(--c-coral); }
.header-sticky__search button {
  position: absolute; right: 0; top: 0; bottom: 0; width: 38px;
  border: none; background: var(--c-slate); color: #fff; border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.header-sticky__search button:hover { background: var(--c-coral); }
.header-sticky__phone {
  font-size: 13px; font-weight: 600; color: var(--c-text);
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.header-sticky__phone svg { width: 14px; height: 14px; color: var(--c-slate); }
.header-sticky__cart {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; background: var(--c-coral); border-radius: var(--radius);
  color: #fff; cursor: pointer; border: none; flex-shrink: 0;
  transition: background var(--transition);
}
.header-sticky__cart:hover { background: var(--c-coral-hover); }
.header-sticky__cart svg { width: 18px; height: 18px; }
/* Search toggle & mobile search — hidden on desktop */
.header__search-toggle { display: none; }
.header-sticky__menu-btn { display: none; }
.header__mobile-search { display: none; }

.header-sticky__cart-badge {
  position: absolute; top: -4px; right: -4px; background: var(--c-dark); color: #fff;
  font-size: 9px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ====== Main Layout ====== */
.page { max-width: 1440px; margin: 0 auto; padding: 24px 40px 60px; }
/* Единые хлебные крошки на весь сайт. Стиль — как на /contacts.
   Разметку отдаёт render_breadcrumbs() (docs/includes/breadcrumbs_render.php). */
.breadcrumbs { display: flex; align-items: center; flex-wrap: nowrap; font-size: 13px; color: #999; margin-bottom: 16px; }
.breadcrumbs a { color: #999; text-decoration: none; white-space: nowrap; }
.breadcrumbs a:hover { color: #ea5b71; }
.breadcrumbs__sep { flex: none; margin: 0 6px; color: #999; }
/* Текущая крошка (название товара/страницы) — обрезаем многоточием, без переноса. */
.breadcrumbs__current { color: #999; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-title { font-size: 28px; font-weight: 700; margin-bottom: 20px; }
/* H1 категории/подборки магазина — вставляется SeoApplier перед сеткой товаров */
.catalog-title { font-size: 28px; font-weight: 700; line-height: 1.25; margin: 0 0 20px; color: #1a1a1a; }
@media (max-width: 850px) { .catalog-title { font-size: 22px; margin-bottom: 14px; } }

/* ====== Rubrics (подборки) ====== */
.rubrics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.rubric-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: var(--c-bg-light); border: 1px solid var(--c-border);
  border-radius: 20px; font-size: 13px; font-weight: 500; color: var(--c-text-secondary);
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.rubric-tag:hover { border-color: var(--c-coral); color: var(--c-coral); }
.rubric-tag.active {
  background: var(--c-slate); border-color: var(--c-slate); color: #fff;
}
.rubric-tag.highlight {
  background: var(--c-coral); border-color: var(--c-coral); color: #fff;
}
.rubric-tag.highlight-green {
  background: var(--c-green); border-color: var(--c-green); color: #fff;
}
.rubric-tag__icon { font-size: 14px; }

/* .catalog-layout — основное определение выше с !important (Force catalog layout).
   Здесь был дубль без эффекта (тот же selector, без !important — перебивался). */

/* ====== Sidebar Filters ====== */
.filters { width: 260px; flex-shrink: 0; }
.filters__section { margin-bottom: 24px; }
.filters__title {
  font-size: 14px; font-weight: 600; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
}
.filters__title svg { width: 16px; height: 16px; color: var(--c-text-muted); transition: transform var(--transition); }
.filters__list { display: flex; flex-direction: column; gap: 8px; }
.filters__item {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  color: var(--c-text-secondary); cursor: pointer;
}
.filters__item:hover { color: var(--c-text); }
.filters__checkbox {
  width: 16px; height: 16px; border: 1.5px solid var(--c-border); border-radius: 3px;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.filters__item.checked .filters__checkbox {
  background: var(--c-coral); border-color: var(--c-coral);
}
.filters__item.checked .filters__checkbox::after {
  content: ''; width: 8px; height: 5px; border: 2px solid #fff;
  border-top: none; border-right: none; transform: rotate(-45deg); margin-top: -2px;
}
.filters__price-row { display: flex; gap: 8px; align-items: center; }
.filters__price-input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--c-border);
  border-radius: var(--radius); font-size: 13px; outline: none;
  transition: border-color var(--transition);
}
.filters__price-input:focus { border-color: var(--c-coral); }
.filters__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.btn-apply {
  width: 100%; padding: 12px; background: var(--c-coral); color: #fff; border: none;
  border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background var(--transition);
}
.btn-apply:hover { background: var(--c-coral-hover); }
.btn-reset {
  width: 100%; padding: 10px; background: transparent; color: var(--c-text-secondary);
  border: 1px solid var(--c-border); border-radius: var(--radius); font-size: 13px;
  font-weight: 500; cursor: pointer; transition: all var(--transition);
}
.btn-reset:hover { border-color: var(--c-slate); color: var(--c-text); }
.btn-collections {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; background: var(--c-coral); color: #fff; border: none;
  border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background var(--transition); margin-bottom: 24px; text-decoration: none;
}
.btn-collections:hover { background: var(--c-coral-hover); }

/* ====== Products Area ====== */
.products-area { flex: 1; min-width: 0; }
.sort-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--c-border);
}
.sort-bar__left { display: flex; align-items: center; gap: 12px; }
.sort-bar__left .breadcrumbs { margin-bottom: 0; font-size: 12px; }
.sort-bar__label { font-size: 13px; color: var(--c-text-secondary); white-space: nowrap; }
.sort-bar__select {
  padding: 6px 12px; border: 1px solid var(--c-border); border-radius: var(--radius);
  font-size: 13px; background: #fff; outline: none; cursor: pointer;
}
.sort-bar__right { display: flex; align-items: center; gap: 8px; }

/* ====== Product Grid + Product Card — DEAD CODE удалён ======
   .product-grid / .product-card.* — markup существует только в
   docs/modules/shop/backend/goods_list_item_v2.tpl.php, который НИГДЕ
   не include-ится. Активный шаблон каталога — goods_list_item.tpl.php (v1),
   рендерит .goods__infoblock-content (см. секцию 'Old product card').
   Блок ~360 строк CSS удалён. Если решим мигрировать каталог на v2-классы,
   будет проще написать заново под актуальный layout. */

/* ====== Cart / Fast Order Buttons ======
   !important сняты после C4.1 (main.css не грузится). */
.btn-cart {
  width: 100%;
  padding: 10px;
  background: var(--c-coral);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background var(--transition);
  font-family: var(--font-base);
  text-decoration: none;
  line-height: 1.4;
}
.btn-cart:hover { background: var(--c-coral-hover); }
.btn-cart--in-cart { background: var(--c-green); cursor: default; pointer-events: none; }
.btn-cart svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-fast-order {
  width: 100%;
  padding: 8px;
  background: transparent;
  color: var(--c-coral);
  border: none;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition);
  font-family: var(--font-base);
  text-decoration: none;
}
.btn-fast-order:hover {
  color: var(--c-coral-hover);
  text-decoration: underline;
}

/* ====== Responsive: CMS grid + product cards ======
   .goods__list — !important сохранён, базовое правило (L534) тоже с !important.
   .goods__sort / .sidebar__filter — !important снят, базы без !important.
   .btn-cart / .btn-fast-order — обычные базы без !important, чисто снимается.
   .product-card__* responsive — УДАЛЕНО (dead code, см. Product Card блок). */
/* minmax(0,1fr) вместо 1fr: на страницах без catalog-v2.css (коллекции
   /shop/productline через index.tpl) min-content карточки (~208px)
   распирал колонку и сетка вылезала за 375px-экран. */
@media (max-width: 1024px) {
  .goods__list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
  .goods__list > * { min-width: 0; }
}
@media (max-width: 850px) {
  .goods__list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .goods__sort {
    flex-wrap: wrap;
    gap: 8px;
  }
  .sidebar__filter {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .goods__list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .btn-cart {
    padding: 8px;
    font-size: 12px;
  }
  .btn-fast-order {
    font-size: 11px;
    padding: 4px;
  }
}

/* DEAD CODE удалён: .pagination / .pagination__item / .pagination__dots —
   v2-mockup стили, в HTML не используются. Активная пагинация — legacy
   .admin__pages-* в admin.css. */

/* ====== Slide-in Cart Panel ====== */
.cart-slidein-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 999;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.cart-slidein-backdrop.active { opacity: 1; visibility: visible; }
.cart-slidein {
  position: fixed; top: 0; right: 0; width: 400px; max-width: 100vw; height: 100dvh;
  background: #fff; z-index: 10000; box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  flex-direction: column; display: none; box-sizing: border-box; overflow: hidden;
}
.cart-slidein__header {
  padding: 20px 24px; border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-slidein__title {
  font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.cart-slidein__title svg { color: var(--c-green); }
.cart-slidein__close {
  width: 32px; height: 32px; border: none; background: var(--c-bg-light);
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--c-text-secondary); font-size: 18px; transition: all var(--transition);
}
.cart-slidein__close:hover { background: var(--c-border); color: var(--c-text); }
.cart-slidein__body { flex: 1; padding: 24px; overflow-y: auto; }
.cart-slidein__item {
  display: flex; gap: 12px; padding: 16px 28px 16px 0; border-bottom: 1px solid var(--c-border);
  position: relative;
  /* без min-width:0 вложенная JS-строка (.cart-slidein__item-row) не может
     ужаться ниже min-content — длинное название распирало панель за экран */
  min-width: 0;
}
.cart-slidein__item .cart-slidein__item-row { min-width: 0; width: 100%; }
.cart-slidein__item-del {
  position: absolute; top: 12px; right: 0; width: 22px; height: 22px; border: none;
  background: var(--c-bg-light); border-radius: 50%; cursor: pointer; font-size: 14px;
  color: var(--c-text-muted); display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; line-height: 1;
}
.cart-slidein__item-del:hover { background: var(--c-coral); color: #fff; }
.cart-slidein__item-counter {
  display: flex; align-items: center; gap: 2px; margin-top: 4px;
}
.cart-slidein__qty-btn {
  width: 24px; height: 24px; border: 1px solid var(--c-border); border-radius: 4px;
  background: #fff; cursor: pointer; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; color: var(--c-text);
  transition: all 0.15s;
}
.cart-slidein__qty-btn:hover { border-color: var(--c-coral); color: var(--c-coral); }
.cart-slidein__qty-val {
  min-width: 28px; text-align: center; font-size: 13px; font-weight: 600;
}
/* Заблокированный счётчик для позиций с нанесением */
.cart-slidein__item-counter--locked { cursor: not-allowed; }
.cart-slidein__qty-fixed {
  font-size: 13px; font-weight: 600; color: var(--c-text);
  padding: 3px 8px; background: var(--c-bg-light); border: 1px dashed var(--c-border);
  border-radius: 4px; display: inline-flex; align-items: center; gap: 4px;
}
.cart-slidein__qty-fixed::before {
  content: '🔒';
  font-size: 11px;
  opacity: 0.6;
}

/* Админ-меню (popup__menu при клике на ключик) — центрируем на экране, шире */
.admin-panel_popup .popup__menu,
.popup__menu {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  transform: translate(-50%, -50%) !important;
  width: calc(100vw - 40px) !important;
  max-width: 1500px !important;
  min-width: min(1200px, calc(100vw - 40px)) !important;
  max-height: calc(100vh - 60px) !important;
  overflow: auto !important;
  box-shadow: 0 12px 48px rgba(0,0,0,0.35) !important;
  border-radius: 8px !important;
  z-index: 99999999 !important;
}
/* Затемнить фон когда меню открыто */
.popup__menu[style*="display: block"]::before,
.popup__menu[style*="display:block"]::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: -1;
}
.cart-slidein__item-img {
  width: 64px; height: 64px; border-radius: 6px; background: var(--c-bg-light);
  overflow: hidden; flex-shrink: 0;
}
.cart-slidein__item-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-slidein__item-info { flex: 1; min-width: 0; }
.cart-slidein__item-title { font-size: 13px; font-weight: 500; margin-bottom: 4px; line-height: 1.3; }
.cart-slidein__item-qty { font-size: 12px; color: var(--c-text-muted); }
.cart-slidein__item-price { font-size: 15px; font-weight: 700; white-space: nowrap; align-self: flex-start; flex-shrink: 0; margin-left: 8px; }
.cart-slidein__summary {
  padding: 16px; background: var(--c-bg-light); border-radius: var(--radius); margin-top: 16px;
}
.cart-slidein__row {
  display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px;
}
.cart-slidein__row:last-child { margin-bottom: 0; }
.cart-slidein__total { font-weight: 700; font-size: 18px; }
.cart-slidein__footer { padding: 20px 24px; border-top: 1px solid var(--c-border); }
.cart-slidein__btn-primary {
  display: block; width: 100%; padding: 14px; background: var(--c-coral); color: #fff;
  border: none; border-radius: var(--radius); font-size: 15px; font-weight: 600;
  cursor: pointer; text-align: center; transition: background var(--transition);
  margin-bottom: 8px; text-decoration: none;
}
.cart-slidein__btn-primary:hover { background: var(--c-coral-hover); }
.cart-slidein__btn-secondary {
  display: block; width: 100%; padding: 10px; background: transparent;
  color: var(--c-text-secondary); border: 1px solid var(--c-border); border-radius: var(--radius);
  font-size: 13px; font-weight: 500; cursor: pointer; text-align: center;
  transition: all var(--transition);
}
.cart-slidein__btn-secondary:hover { border-color: var(--c-slate); color: var(--c-text); }

/* ====== Fast Order Modal ====== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
  display: flex; align-items: center; justify-content: center;
}
.modal-backdrop.active { opacity: 1; visibility: visible; }
.modal {
  background: #fff; border-radius: var(--radius-lg); width: 480px; max-width: 95vw;
  box-shadow: var(--shadow-lg); transform: scale(0.9); opacity: 0;
  transition: all 0.3s ease; overflow: hidden;
}
.modal-backdrop.active .modal { transform: scale(1); opacity: 1; }
/* DEAD CODE удалён: .modal__header / .modal__title / .modal__close /
   .modal__body / .modal__product* / .modal__form* / .modal__input /
   .modal__row / .modal__submit / .modal__note — старые v2-mockup-классы.
   Активная модалка — .v2-modal* / fastOrder modal (см. выше). */

/* ====== Footer ====== */
.footer { background: var(--c-dark); color: #fff; margin-top: 60px; }
.footer__inner { max-width: 1440px; margin: 0 auto; padding: 48px 40px 24px; }
.footer__grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr 1.15fr; gap: 40px 32px; margin-bottom: 40px; }
.footer__brand-name { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.footer__brand-desc { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.footer__col-title {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 16px; color: rgba(255,255,255,0.5);
}
/* Заголовок-ссылка («Каталог продукции» → /shop, «Контакты» → /contacts) */
a.footer__col-title { display: block; transition: color var(--transition); }
a.footer__col-title:hover { color: var(--c-coral); }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 14px; color: rgba(255,255,255,0.8); transition: color var(--transition); }
.footer__links a:hover { color: var(--c-coral); }
/* «Коллекции» — выделенный пункт, зеркалит featured-ссылку сабменю шапки */
.footer__links a.footer__link--featured { color: #fff; font-weight: 600; }
.footer__links a.footer__link--featured:hover { color: var(--c-coral); }
/* Выделенная ссылка «Пакет знаний» в футере — акцентный цвет + значок */
.footer__links a.footer__link--knowledge { color: var(--c-coral); font-weight: 700; }
.footer__links a.footer__link--knowledge::before { content: "\2726"; font-size: 12px; margin-right: 5px; }
.footer__links a.footer__link--knowledge:hover { color: #f7846f; }
/* Колонка «Контакты»: телефон / почта / часы приёма звонков с иконками */
.footer__contacts { display: flex; flex-direction: column; gap: 14px; }
.footer__contact { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.8); }
.footer__contact svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.55; }
a.footer__contact { transition: color var(--transition); }
a.footer__contact:hover { color: var(--c-coral); }
.footer__contact--phone { font-size: 17px; font-weight: 700; color: #fff; white-space: nowrap; }
.footer__contact--hours { color: rgba(255,255,255,0.5); font-size: 13px; line-height: 1.5; align-items: flex-start; }
.footer__contact--hours svg { margin-top: 2px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.4);
}
/* Соцсети живут в бренд-колонке под описанием */
.footer__socials { display: flex; gap: 10px; margin-top: 20px; }
.footer__social-vk { font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.footer__socials a {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); transition: all var(--transition); font-size: 14px;
}
.footer__socials a:hover { border-color: var(--c-coral); color: var(--c-coral); }
/* Правовые документы в нижней строке футера (152-ФЗ ст.18.1 ч.2 п.2 —
   неограниченный доступ к Политике). Средняя ячейка flex-строки: копирайт
   слева, бейдж справа. flex-wrap — чтобы длинное название Политики
   переносилось, а не распирало строку. */
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.footer__legal a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color var(--transition); }
.footer__legal a:hover { color: var(--c-coral); text-decoration: underline; }

/* Бейдж «Проверено Чисто152» (152-ФЗ) в нижней строке футера.
   margin-right уводит его из-под плавающей кнопки «наверх» (fixed справа внизу). */
.footer__badge152 { display: inline-flex; line-height: 0; opacity: 0.85; transition: opacity var(--transition); margin-right: 76px; }
.footer__badge152:hover { opacity: 1; }
.footer__badge152 img { display: block; }
@media (max-width: 850px) {
  .footer__badge152 { margin-right: 0; } /* на мобиле footer__bottom центрируется */
}
/* Footer responsive: 5 колонок → бренд на всю ширину + 4 колонки → 2 колонки.
   Правила для ≤850 и ≤480 — в общих media-блоках ниже по файлу. */
@media (max-width: 1200px) {
  .footer__grid { grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }
  .footer__col--brand { grid-column: 1 / -1; max-width: 560px; }
}
@media (max-width: 850px) {
  .footer__inner { padding: 40px 24px 20px; }
  .footer__bottom { flex-wrap: wrap; gap: 14px; justify-content: center; text-align: center; }
}

/* ====== Cookie Consent Banner ====== */
.cookies-info {
  display: none; box-sizing: border-box; position: fixed; bottom: 0; left: 50%;
  transform: translate(-50%, 0); z-index: 999999; width: 100%; max-width: 1200px;
  padding: 16px 45px 16px 55px; box-shadow: 0 2px 10px 0 rgba(0,0,0,0.12);
  border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg);
  background-color: var(--c-dark); font-size: 13px; line-height: 1.43; color: #fff;
}
.cookies-info a { color: #fff; text-decoration: underline; }
.cookies-info a:hover { color: var(--c-coral); }
.cookies-info .close {
  font-size: 16px; color: #fff; position: absolute; border: none;
  top: 5px; right: 0; width: 30px; height: 30px; background: none; outline: none; cursor: pointer;
}
.cookies-info .close:hover { color: var(--c-coral); }
.cookies-info .icon { position: absolute; top: 14px; left: 24px; color: #fff; }
/* Кнопки согласия: реальный выбор «Принять / Отклонить» (152-ФЗ) */
.cookies-info__actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.cookies-info__btn {
  border: none; border-radius: var(--radius); padding: 9px 24px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--transition);
}
.cookies-info__btn--accept { background: var(--c-coral); color: #fff; }
.cookies-info__btn--accept:hover { background: var(--c-coral-hover); }
.cookies-info__btn--decline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.cookies-info__btn--decline:hover { border-color: #fff; }
@media (max-width: 850px) {
  .cookies-info { max-width: 100%; padding: 12px 35px 12px 16px; border-radius: 0; font-size: 12px; }
  .cookies-info .icon { display: none; }
  .cookies-info .close { top: 2px; right: 2px; }
  .cookies-info__btn { padding: 8px 18px; }
}

/* ====== Mobile Menu Button ====== */
.header__menu-btn {
  /* ROADMAP 3.2: тач-таргет ≥44px (было 42 — на 2px меньше нормы). */
  display: none; width: 44px; height: 44px; border: 1px solid var(--c-border);
  border-radius: var(--radius); background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.header__menu-btn span {
  display: block; width: 18px; height: 2px; background: var(--c-text); border-radius: 1px;
  transition: all var(--transition);
}
/* Mobile filter button */
.filter-mobile-btn {
  display: none; width: 100%; padding: 12px; background: var(--c-bg-light);
  border: 1px solid var(--c-border); border-radius: var(--radius); font-size: 14px;
  font-weight: 600; cursor: pointer; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 16px; color: var(--c-text);
  transition: all var(--transition);
}
.filter-mobile-btn:hover { border-color: var(--c-slate); }
.filter-mobile-btn svg { width: 16px; height: 16px; }
/* Mobile nav overlay */
.mobile-nav-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 998;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.mobile-nav-backdrop.active { opacity: 1; visibility: visible; }
.mobile-nav {
  position: fixed; top: 0; left: -300px; width: 280px; height: 100vh;
  height: 100dvh; /* мобильные браузеры: реальная высота с учётом адресной строки */
  background: #fff; z-index: 999; transition: left 0.3s ease;
  display: flex; flex-direction: column; box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}
.mobile-nav.active { left: 0; }
.mobile-nav__header {
  padding: 16px 20px; border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.mobile-nav__close {
  /* ROADMAP 3.2: тач-таргет ≥44px (было 32 — тяжело попасть пальцем).
     flex-shrink:0 — иначе flex-родитель (space-between) сжимает кнопку по ширине. */
  width: 44px; height: 44px; flex-shrink: 0; border: none; background: var(--c-bg-light);
  border-radius: 50%; cursor: pointer; font-size: 20px; color: var(--c-text-secondary);
  display: flex; align-items: center; justify-content: center;
}
.mobile-nav__links {
  padding: 16px 20px; display: flex; flex-direction: column; gap: 4px;
  /* Меню длиннее вьюпорта: скроллим список, шапка и телефон остаются на месте */
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.mobile-nav__links a {
  /* ROADMAP 3.2: тач-таргет ≥44px. min-height + flex-центрирование держит
     высоту даже у подпунктов с меньшим шрифтом (было 38–43px). */
  display: flex; align-items: center; min-height: 44px;
  padding: 10px 12px; font-size: 15px; font-weight: 500; color: var(--c-text);
  border-radius: var(--radius); transition: all var(--transition);
}
.mobile-nav__links a:hover, .mobile-nav__links a.active {
  background: var(--c-bg-light); color: var(--c-coral);
}
/* «Пакет знаний» в мобильном меню — тот же акцент, что у topbar__link--knowledge
   в ПК-шапке (коралловый, жирный, молния слева). */
.mobile-nav__links a.mobile-nav__link--knowledge {
  color: var(--c-coral); font-weight: 700; gap: 5px;
}
.mobile-nav__links a.mobile-nav__link--knowledge::before { content: "\26A1"; font-size: 13px; line-height: 1; }
/* «Личный кабинет» — единственный путь в ЛК на мобиле (topbar с формой входа скрыт @850px) */
.mobile-nav__links a.mobile-nav__link--account { gap: 6px; }
.mobile-nav__links a.mobile-nav__link--account::before { content: "\1F464"; font-size: 14px; line-height: 1; }
.mobile-nav__phone {
  padding: 16px 20px; margin-top: auto; border-top: 1px solid var(--c-border);
  flex-shrink: 0;
}
.mobile-nav__phone a {
  font-size: 18px; font-weight: 700; color: var(--c-text);
  display: flex; align-items: center; gap: 8px;
}
.mobile-nav__phone span { font-size: 12px; color: var(--c-text-muted); font-weight: 400; display: block; margin-top: 2px; }

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .header__nav { gap: 16px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .page { padding: 20px 24px 40px; }
  .filters { width: 220px; }
  .cart-slidein { width: 360px; }
}
@media (max-width: 850px) {
  .header__inner { padding: 0 16px; height: 60px; }
  .header__nav { display: none; }
  .header__menu-btn { display: flex; }
  /* Легаси main.css в @media 850px даёт .header__cart { margin-top: 10px } —
     красная корзина стояла ниже лупы и бургера. Прибиваем margin и
     выравниваем размер с тач-таргетами 44px (как у лупы/бургера, ROADMAP 3.2). */
  .header__cart { margin-top: 0; width: 44px; height: 44px; }
  .header__phone { display: none; }
  .header__search { display: none; }
  .header__search-btn { display: none; }
  .header__breadcrumbs-inner { padding: 4px 16px; }
  .search-bar { max-width: 100%; }

  .catalog-layout { flex-direction: column; }
  .filters { display: none; width: 100%; }
  .filters.mobile-open { display: block; }
  /* form#filters сам носит класс .filters — правило выше прятало его и внутри
     открытого мобильного сайдбара (пустой слой). Показываем принудительно. */
  .filters.mobile-open #filters,
  .filters.mobile-open form.filters { display: block; }
  .filter-mobile-btn { display: flex; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .page { padding: 16px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .sort-bar { flex-wrap: wrap; gap: 8px 12px; align-items: center; }
  /* Коллекции (index.tpl без catalog-v2.css): «Найдено N» и сортировка
     в одну строку — зеркало правила из catalog-v2.css @850. */
  .sort-bar__left { flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
  .sort-bar__left .gltit,
  .sort-bar__left h1 { flex: 1 1 100%; }
  .sort-bar__label { display: none; }
  .sort-bar__right { justify-content: flex-end; flex: 0 0 auto; }
  .sort-bar__select { max-width: 190px; }
  /* Крошки: nowrap-цепочка длинных ссылок (Главная › Каталог › <тип>)
     на 375px зажимает текущую крошку в «…» или уводит строку за экран. */
  .breadcrumbs { flex-wrap: wrap; row-gap: 2px; }
  .cart-slidein { width: 100%; }
  .rubrics { gap: 6px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .rubric-tag { padding: 6px 12px; font-size: 12px; flex-shrink: 0; }

  /* sticky header скрыт — основной header sticky */
  .live-search-item__img { width: 44px; height: 44px; }
  .live-search-item { padding: 8px 10px; gap: 10px; }
  .live-search-item__title { font-size: 12px; }
  .live-search-item__price-current { font-size: 13px; }
  .header-sticky__phone { display: none; }
  .header-sticky__inner { padding: 0 16px; }

  .modal { width: 95vw; }
  .modal__row { flex-direction: column; gap: 0; }
  .get-more__content { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pl_filter { flex-direction: column; gap: 10px; padding: 10px 12px; align-items: flex-start; }
  /* Свотчи цветов коллекций: без переноса строка из 10+ цветов вылезала
     за экран 375px (горизонтальный скролл страницы). */
  .pl_filter .filter-colors { flex-wrap: wrap; max-width: 100%; }
  .pl_filter .filter-color { flex-wrap: wrap; min-width: 0; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .get-more__content { gap: 8px; }
  .product-card__body { padding: 10px; }
  .product-card__title { font-size: 12px; min-height: 34px; }
  .product-card__price { font-size: 16px; }
  .product-card__dims { font-size: 11px; margin-bottom: 6px; }
  .btn-cart { padding: 8px; font-size: 12px; }
  .btn-fast-order { font-size: 11px; padding: 4px; }
  .footer__inner { padding: 36px 16px 16px; }
  .footer__grid { gap: 28px 16px; }
  .footer__col--contacts { grid-column: 1 / -1; }
  .breadcrumbs { font-size: 12px; }
  .sort-bar__left { font-size: 12px; }
  .sort-bar__select { font-size: 12px; }
  .pagination__item { width: 32px; height: 32px; font-size: 12px; }
}

/* ====== Hero Section (Landing) ====== */
.hero { padding: 60px 0; overflow: hidden; }
.hero__inner { max-width: 1440px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; gap: 48px; }
.hero__content { flex: 1; }
.hero__badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--c-bg-light); border: 1px solid var(--c-border); border-radius: 20px; font-size: 13px; font-weight: 500; color: var(--c-coral); margin-bottom: 20px; }
.hero__title { font-size: 42px; font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.hero__subtitle { font-size: 16px; color: var(--c-text-secondary); line-height: 1.6; margin-bottom: 28px; max-width: 480px; }
.hero__buttons { display: flex; gap: 12px; margin-bottom: 32px; }
.btn-primary { padding: 14px 28px; background: var(--c-coral); color: #fff; border: none; border-radius: var(--radius); font-size: 15px; font-weight: 600; cursor: pointer; transition: background var(--transition); box-shadow: 0 4px 12px rgba(234,91,113,0.3); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--c-coral-hover); }
.btn-secondary { padding: 14px 28px; background: transparent; color: var(--c-text); border: 1px solid var(--c-border); border-radius: var(--radius); font-size: 15px; font-weight: 500; cursor: pointer; transition: all var(--transition); text-decoration: none; }
.btn-secondary:hover { border-color: var(--c-slate); }
/* === Hero trust block === */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(234,91,113,0.04) 0%, rgba(74,144,226,0.04) 100%);
  border: 1px solid var(--c-border, #e8eaee);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.hero__trust::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(234,91,113,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 130px;
  padding: 6px 12px 6px 0;
  position: relative;
  transition: transform 0.25s ease;
  z-index: 1;
}
.hero__trust-item:hover { transform: translateY(-2px); }
.hero__trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--c-border, #e8eaee) 30%, var(--c-border, #e8eaee) 70%, transparent 100%);
}
.hero__trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  color: var(--c-coral, #ea5b71);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero__trust-item:hover .hero__trust-icon {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 4px 14px rgba(234,91,113,0.18);
}
.hero__trust-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.hero__trust-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--c-dark, #252A34);
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #252A34 0%, #ea5b71 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__trust-plus {
  font-weight: 700;
  margin-left: 1px;
  font-size: 0.78em;
  vertical-align: top;
  -webkit-text-fill-color: var(--c-coral, #ea5b71);
}
.hero__trust-label {
  font-size: 12px;
  color: var(--c-text-muted, #6b7280);
  font-weight: 500;
  letter-spacing: 0.1px;
}
/* Широкий вариант (4+ пункта на полную ширину) */
.hero__trust--wide {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 22px 28px;
}
.hero__trust--wide .hero__trust-num { font-size: 24px; }
.hero__trust--wide .hero__trust-icon { width: 44px; height: 44px; }
/* FIX: было "px) {" без префикса @media — hero trust-row на мобиле должен
   переходить в столбец. Восстановлен 600px. */
@media (max-width: 600px) {
  .hero__trust { flex-direction: column; gap: 10px; padding: 14px 16px; }
  .hero__trust-item:not(:last-child)::after { display: none; }
  .hero__trust-item { padding: 6px 0; border-bottom: 1px solid var(--c-border, #e8eaee); }
  .hero__trust-item:last-child { border-bottom: none; }
}
/* Hero slider */
.hero__slider {
  flex: 1; max-width: 500px; position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 8px -8px 24px rgba(0,0,0,0.15), 2px -2px 8px rgba(0,0,0,0.08);
}
.hero__slider-track { display: flex; transition: transform 0.5s ease; width: 100%; will-change: transform; }
.hero__slide { flex: 0 0 100%; width: 0; overflow: hidden; }
.hero__slide img { width: 100%; height: 400px; object-fit: cover; display: block; }
.hero__slider-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.hero__slider-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5);
  cursor: pointer; transition: all 0.2s ease; border: none;
}
.hero__slider-dot.active { background: #fff; width: 20px; border-radius: 4px; }
.hero__slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.85); color: #1a1a2e; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); opacity: 0; transition: opacity 0.2s;
}
.hero__slider:hover .hero__slider-arrow { opacity: 1; }
.hero__slider-arrow:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.hero__slider-arrow--prev { left: 10px; }
.hero__slider-arrow--next { right: 10px; }

.hero__image { flex: 1; max-width: 500px; }
.hero__image img { width: 100%; border-radius: var(--radius-lg); }
.section { padding: 60px 0; }
.section--gray { background: var(--c-bg-light); }
.section__inner { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.section__title { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.section__subtitle { font-size: 14px; color: var(--c-text-secondary); text-align: center; margin-bottom: 40px; }

/* ===== /proizvodstvo — секции в стиле pbp-section (страница proizvodstvo_bumajnih_paketov) ===== */
.proizvodstvo-v2 .section { padding: 48px 0; }
.proizvodstvo-v2 .section--gray { background: transparent; padding-top: 0; padding-bottom: 0; }
.proizvodstvo-v2 .section--gray .section__inner { background: var(--c-bg-light); border-radius: var(--radius-lg); padding: 48px 28px; }
.proizvodstvo-v2 .section__title { font-size: 30px; }
.proizvodstvo-v2 .section__subtitle { font-size: 15px; max-width: 720px; margin-left: auto; margin-right: auto; margin-bottom: 36px; }
@media (max-width: 600px) {
  .proizvodstvo-v2 .section { padding: 32px 0; }
  .proizvodstvo-v2 .section--gray { padding-top: 0; padding-bottom: 0; }
  .proizvodstvo-v2 .section--gray .section__inner { padding: 32px 18px; }
  .proizvodstvo-v2 .section__title { font-size: 24px; }
}

.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 24px; text-align: center; transition: all 0.25s ease; cursor: pointer; text-decoration: none; color: var(--c-text); box-shadow: var(--shadow-sm); }
.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.category-card__icon { width: 56px; height: 56px; margin: 0 auto 12px; background: var(--c-bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.category-card__name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.category-card__price { font-size: 12px; color: var(--c-text-muted); }
.stats-row { display: flex; justify-content: center; gap: 60px; padding: 40px 0; }
.stat-item { text-align: center; }
.stat-num { font-size: 36px; font-weight: 700; color: var(--c-dark, #252A34); }
.stat-label { font-size: 13px; color: var(--c-text-secondary); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 28px; text-align: center; box-shadow: var(--shadow-sm); transition: all 0.25s ease; }
.benefit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.benefit-card__icon { width: 64px; height: 64px; margin: 0 auto 16px; background: linear-gradient(135deg, #fff5f6, #fce4ec); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--c-coral); }
.benefit-card__title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.benefit-card__text { font-size: 13px; color: var(--c-text-secondary); line-height: 1.6; }
.cta-banner { background: var(--c-coral); padding: 48px 0; }
.cta-banner__inner { max-width: 1440px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; }
.cta-banner__title { font-size: 24px; font-weight: 700; color: #fff; }
.cta-banner__subtitle { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 4px; }
.cta-banner__right { display: flex; align-items: center; gap: 20px; }
.cta-banner__btn { padding: 14px 28px; background: #fff; color: var(--c-coral); border: none; border-radius: var(--radius); font-size: 15px; font-weight: 600; cursor: pointer; transition: all var(--transition); text-decoration: none; }
.cta-banner__btn:hover { background: rgba(255,255,255,0.9); }

/* ====== SEO Section ====== */
.seo-section { padding: 60px 0; background: #fff; }
.seo-section__inner {
  max-width: 1440px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.seo-section__content h2 {
  font-size: 26px; font-weight: 700; color: var(--c-text); margin-bottom: 16px; line-height: 1.3;
}
.seo-section__content p {
  font-size: 14px; line-height: 1.7; color: var(--c-text-secondary); margin-bottom: 16px;
}
.seo-section__features {
  display: flex; flex-direction: column; gap: 12px; margin: 24px 0;
  padding: 20px; background: var(--c-bg-light); border-radius: var(--radius-lg);
}
.seo-section__feature {
  display: flex; flex-direction: column; gap: 2px;
}
.seo-section__feature strong {
  font-size: 14px; font-weight: 600; color: var(--c-text);
}
.seo-section__feature span {
  font-size: 13px; color: var(--c-text-secondary);
}
.seo-section__gallery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.seo-section__gallery img {
  width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-lg);
  transition: transform 0.3s ease;
}
.seo-section__gallery img:hover { transform: scale(1.03); }
@media (max-width: 850px) {
  .seo-section__inner { grid-template-columns: 1fr; gap: 32px; padding: 0 16px; }
  .seo-section__gallery { grid-template-columns: 1fr 1fr; }
  .seo-section__gallery img { height: 150px; }
}
@media (max-width: 480px) {
  .seo-section__gallery { grid-template-columns: 1fr; }
}
.cta-banner__phone { color: #fff; font-size: 18px; font-weight: 700; }
.production-hero { background: var(--c-dark); color: #fff; padding: 60px 0; position: relative; overflow: hidden; }
.production-hero__inner { max-width: 1440px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }
.production-hero__title { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.production-hero__subtitle { font-size: 16px; color: rgba(255,255,255,0.7); max-width: 500px; }
.production-hero__img { position: absolute; right: 40px; top: 0; bottom: 0; width: 45%; object-fit: cover; opacity: 0.3; }
/* Split-вариант hero производственных лендингов — карточка «текст слева, фото справа»
   в стиле плашки /proizvodstvo_bumajnih_paketov (pbp-hero, живёт в БД) */
.production-hero--split { display: flex; align-items: stretch; min-height: 400px; padding: 0; border-radius: var(--radius-lg); }
.production-hero--split .production-hero__inner { flex: 1 1 55%; padding: 48px 44px; margin: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; z-index: 2; max-width: none; }
.production-hero--split .production-hero__title { font-size: 38px; line-height: 1.15; }
.production-hero__accent { color: var(--c-coral); }
.production-hero__media { flex: 1 1 45%; position: relative; min-height: 240px; }
.production-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.production-hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--c-dark) 0%, rgba(37,42,52,0.4) 35%, transparent 70%); }
.production-hero__stats { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 28px; }
.production-hero__stat b { display: block; font-size: 30px; font-weight: 700; color: var(--c-coral); line-height: 1; }
.production-hero__stat span { font-size: 13px; color: rgba(255,255,255,0.7); }
.production-hero__btn { display: inline-flex; align-items: center; gap: 10px; background: var(--c-coral); color: #fff; border-radius: var(--radius); padding: 15px 30px; font-size: 16px; font-weight: 600; text-decoration: none; margin-top: 30px; transition: background var(--transition); }
.production-hero__btn:hover { background: var(--c-coral-hover); color: #fff; }
/* Видео-вариант hero-медиа: ролик поверх статичного первого кадра (img-подложки).
   Видео без loop — JS гасит его к подложке и перезапускает, получая мягкий цикл. */
.production-hero__media--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.6s ease; }
.production-hero__media--video video.is-resting { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .production-hero__media--video video { display: none; }
}
@media (max-width: 600px) {
  .production-hero--split { flex-direction: column; min-height: 0; }
  .production-hero--split .production-hero__inner { padding: 32px 22px; order: 2; }
  .production-hero--split .production-hero__title { font-size: 28px; }
  .production-hero__media { order: 1; flex: none; width: 100%; height: 200px; min-height: 200px; }
  .production-hero__media::before { background: linear-gradient(0deg, var(--c-dark) 0%, transparent 60%); }
  .production-hero__stats { gap: 28px; }
}
.timeline { display: flex; justify-content: space-between; position: relative; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; top: 30px; left: 40px; right: 40px; height: 2px; background: var(--c-border); }
.timeline__step { text-align: center; flex: 1; position: relative; }
.timeline__num { width: 48px; height: 48px; background: var(--c-coral); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; margin: 0 auto 12px; position: relative; z-index: 1; }
.timeline__label { font-size: 13px; font-weight: 500; }
.timeline__desc { font-size: 12px; color: var(--c-text-muted); margin-top: 4px; }
.equipment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
/* /about «Наше производство»: ровно 3 карточки в ряд (6 карточек = 2 ряда) */
.equipment-grid--cols3 { grid-template-columns: repeat(3, 1fr); }
.equipment-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-border); }
/* Карточка-ссылка: услуги в «Печать и отделка»/«Оборудование» ведут на свои лендинги */
a.equipment-card { display: block; text-decoration: none; color: inherit; transition: border-color var(--transition), box-shadow var(--transition); }
a.equipment-card:hover { border-color: var(--c-coral); box-shadow: var(--shadow-md); }
a.equipment-card:hover .equipment-card__title { color: var(--c-coral); }
.equipment-card__img { width: 100%; height: 200px; object-fit: cover; background: var(--c-bg-light); }
.equipment-card__body { padding: 16px; }
.equipment-card__title { font-size: 14px; font-weight: 600; }
.equipment-card__desc { font-size: 12px; color: var(--c-text-secondary); margin-top: 4px; }
.materials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
/* Центрированный вариант для неполного ряда (/about «Для кого мы работаем»: 3 карточки).
   flex вместо grid — ряд собирается к центру, на мобильном одиночная карточка тоже по центру. */
.materials-grid--center { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.materials-grid--center .material-card { flex: 1 1 280px; max-width: 400px; }
.material-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.material-card__name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.material-card__desc { font-size: 12px; color: var(--c-text-secondary); }
/* ====== DEAD CODE удалён (~93 строки) ======
   .product-detail*, .specs-table, .tabs*, .cart-layout, .cart-main,
   .cart-summary*, .cart-table*, .cart-continue, .collections-hero*,
   .collections-grid, .collection-card*, .category-hero* — старые
   black-mockup-классы. Активная разметка использует:
   - карточка товара /shop/view? → .product-v2-page (product-v2.css)
   - корзина /shop/cart → .page--cart / .cartBlock__* (cart-v2.css +
     cart-redesign.css)
   - коллекции /shop/productline → .collections / .collection
     (collections-v2.css) */

/* ====== Additional Responsive ====== */
@media (max-width: 850px) {
  .hero__inner { flex-direction: column; text-align: center; }
  .hero__title { font-size: 28px; }
  .hero__subtitle { margin: 0 auto 28px; }
  .hero__buttons { justify-content: center; }
  .hero__trust { justify-content: center; }
  .hero__image { max-width: 100%; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { gap: 24px; flex-wrap: wrap; }
  .cta-banner__inner { flex-direction: column; text-align: center; gap: 20px; }
  .cta-banner__right { flex-direction: column; }
  .product-detail { flex-direction: column; }
  .product-detail__info { max-width: 100%; }
  .cart-layout { flex-direction: column; }
  .cart-summary { width: 100%; position: static; }
  .cart-table__header { display: none; }
  .cart-table__item { grid-template-columns: 1fr; gap: 8px; }
  /* Этапы производства: не узкая колонка, а 2 шага в ряд — плотнее и читаемее */
  .timeline { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .timeline::before { display: none; }
  .equipment-grid { grid-template-columns: 1fr; }
  .materials-grid { grid-template-columns: repeat(2, 1fr); }
  /* Карточки material-card на мобиле центрованы (базовое правило выше),
     остальные карточные блоки — влево. Единый вид для лендингов
     /proizvodstvo/* и /about. */
  .material-card { text-align: left; }
  .collections-grid { grid-template-columns: 1fr; }
  .category-hero__inner { flex-direction: column; text-align: center; }
  .production-hero__img { display: none; }
}
@media (max-width: 480px) {
  .hero__title { font-size: 24px; }
  .hero__buttons { flex-direction: column; }
  /* Кнопки hero: у flex-кнопок (btn-primary, «Наши работы») контент прижат
     влево, а «Коллекции» (блок) центрируется от text-align .hero__inner.
     Приводим все к единому центру. */
  .hero__buttons .btn-primary,
  .hero__buttons .btn-secondary { justify-content: center; text-align: center; }
  .categories-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 16px; }
  .stat-num { font-size: 28px; }
}

/* .v2-search-mobile стили удалены — секция убрана из shop_index.tpl
   (заменена на .header__search-toggle лупу в шапке как на главной). */

/* ====== Mobile: CMS product cards & search ======
   ВАЖНО: правила для селекторов, у которых базовый блок (выше в файле)
   имеет `all: unset !important` (.goods__counter, .price_list, .goods__retail,
   .good__title h2, .goods__bottom-infoblock, .goods__price-button и т.д.),
   ОБЯЗАНЫ оставаться с !important — иначе all:unset побеждает.
   Снято !important там, где база — обычные правила без !important. */
@media (max-width: 850px) {
  /* Секции: уменьшить padding на мобилке */
  .section__inner { padding: 0 16px; }
  .hero__inner { padding: 0 16px; }
  .hero { padding: 16px 0; }
  .hero__buttons { flex-wrap: wrap; gap: 8px; }
  .hero__trust { gap: 16px; }
  .section { padding: 24px 0; }
  .hero__slider { max-width: 100%; width: 100%; flex: none; margin-top: 16px; }
  .hero__slide { width: 100%; flex: 0 0 100%; }
  .hero__slide img { height: 220px; }

  /* Рубрики: перенос строки, ширина как section__inner */
  .rubrics { padding: 0; }
  .rubrics,
  .rubrics__list {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
  }
  .rubrics .rubric_pc { display: block; }
  .rubrics .rubric_mobile_search { display: none; }
  .rubrics__link {
    padding: 6px 12px; font-size: 12px;
  }
  .rubrics__link img { width: 16px; height: 16px; }

  /* .v2-search-mobile padding-правило удалено — секции в DOM больше нет. */
  .page { padding-top: 8px; }

  /* Карточки товаров: счётчик + кнопка в одну строку */
  .goods__counter {
    grid-template-columns: auto 1fr !important;
    gap: 4px 6px !important;
  }
  .goods__price-button.buttonAddToCart {
    grid-column: 2 !important;
    grid-row: 1 !important;
    font-size: 12px !important;
    height: 34px !important;
    padding: 0 8px !important;
  }
  .fastOrderButton { grid-column: 1 / -1 !important; grid-row: 2 !important; }
  .goods__count-input { width: 28px !important; font-size: 12px !important; }
  .goods__counter-right i { width: 22px !important; }
  .goods__counter-left { height: 32px !important; }
  .goods__counter-right { height: 32px !important; }

  .price_list { font-size: 16px !important; }
  .price_list .fa-rub { font-size: 14px !important; }
  .goods__retail { font-size: 10px !important; }
  .good__title h2 { font-size: 12px !important; }
  .goods__bottom-infoblock { padding: 0 10px 10px !important; gap: 4px !important; }

  .v2-badge-art { font-size: 10px; padding: 3px 7px; top: 8px; right: 8px; }
  .v2-badges-left { top: 8px; left: 8px; gap: 4px; }
  .v2-badge-collection { font-size: 9px; padding: 3px 7px; }
  .v2-badge-sale, .v2-badge-new { font-size: 9px; padding: 3px 7px; }

  /* Мобильная кнопка лупы */
  .header__search-toggle {
    /* ROADMAP 3.2: тач-таргет ≥44px (было 38) */
    display: flex; width: 44px; height: 44px;
    border: 1px solid var(--c-border); border-radius: var(--radius);
    background: transparent; cursor: pointer;
    align-items: center; justify-content: center; flex-shrink: 0;
    color: var(--c-text);
  }
  .header__search-toggle:hover { border-color: var(--c-coral); color: var(--c-coral); }

  /* Иконка «Личный кабинет» — тач-таргет 44px, показываем авторизованному.
     Модификатор --auth ставит СЕРВЕР (PageRenderer, [::sys_auth_class::]), т.к.
     кука user_shop httpOnly и JS её прочитать не может. */
  .header__account--auth {
    display: flex; width: 44px; height: 44px;
    border: 1px solid var(--c-border); border-radius: var(--radius);
    background: transparent; cursor: pointer;
    align-items: center; justify-content: center; flex-shrink: 0;
    color: var(--c-text); text-decoration: none;
  }
  .header__account--auth:hover { border-color: var(--c-coral); color: var(--c-coral); }
  .header__account--auth svg { width: 20px; height: 20px; }

  /* Мобильная выпадающая форма поиска */
  .header__mobile-search {
    display: none; padding: 0 16px 12px; background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
  }
  .header__mobile-search.active { display: block; }
  .header__mobile-search-form {
    display: flex; align-items: center; gap: 0; position: relative;
  }
  /* Mobile search results — !important нужен потому что
     базовое правило .live-search-results задаёт fixed positioning, мы
     переписываем его на absolute в контексте мобильного header. */
  .header__mobile-search-form .live-search-results {
    position: absolute !important;
    top: 100% !important;
    left: -16px !important;
    right: -16px !important;
    bottom: auto !important;
    max-height: 60vh !important;
    border-radius: 0 !important;
    z-index: 10001 !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
  }
  .header__mobile-search-input {
    flex: 1; padding: 10px 70px 10px 14px; border: 1px solid var(--c-border);
    border-radius: var(--radius); font-size: 16px; font-family: inherit; outline: none;
    color: var(--c-text); background: #fff; -webkit-appearance: none;
  }
  .header__mobile-search-input:focus { border-color: var(--c-coral); }
  .header__mobile-search-submit {
    position: absolute; right: 36px; top: 0; bottom: 0; width: 34px;
    border: none; background: transparent; color: var(--c-slate); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .header__mobile-search-close {
    position: absolute; right: 0; top: 0; bottom: 0; width: 36px;
    border: none; background: transparent; color: var(--c-text-secondary); cursor: pointer;
    font-size: 22px; display: flex; align-items: center; justify-content: center;
  }
  .header__mobile-search-close:hover { color: var(--c-coral); }

  /* Sticky header: кнопка меню на мобилке */
  .header-sticky__menu-btn {
    display: flex; width: 38px; height: 38px;
    border: 1px solid var(--c-border); border-radius: var(--radius);
    background: transparent; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    flex-shrink: 0;
  }
  .header-sticky__menu-btn span {
    display: block; width: 16px; height: 2px; background: var(--c-text); border-radius: 1px;
  }

  /* Кнопка корзины: короткий текст на мобилке */
  .v2-btn-text { font-size: 0; }
  .v2-btn-text::after { font-size: 12px; }
  .buttonAddToCart:not(.v2-in-cart) .v2-btn-text::after { content: 'Добавить'; }
  .buttonAddToCart.v2-in-cart .v2-btn-text::after { content: 'В корзине'; }

  /* Поиск: результаты не обрезать.
     !important нужен — базовое правило live-search-results использует
     absolute-позиционирование от родителя, на мобилке переписываем на
     fixed относительно viewport. */
  .live-search-results {
    position: fixed !important;
    top: 60px !important;
    left: 8px !important;
    right: 8px !important;
    /* база задаёт min-width:420px + width:max-content — на 375px дропдаун
       вылезал за экран; на мобиле ширину диктуют left/right. */
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    max-height: 70vh !important;
    border-radius: var(--radius) !important;
    border: 1px solid var(--c-border) !important;
  }
  /* sticky header search — removed, main header is sticky now */
}

/* @media 480px: .goods__bottom-infoblock, .good__title h2, .price_list,
   .goods__price-button.buttonAddToCart имеют `all: unset !important` в базе —
   !important здесь ОБЯЗАТЕЛЕН. .goods__list имеет !important в базе (L534) — тоже. */
@media (max-width: 480px) {
  .goods__list { gap: 8px !important; }
  .goods__bottom-infoblock { padding: 0 8px 8px !important; }
  .good__title h2 { font-size: 11px !important; -webkit-line-clamp: 2 !important; }
  .price_list { font-size: 14px !important; }
  .goods__price-button.buttonAddToCart { font-size: 11px !important; height: 32px !important; }
}

/* ====== CMS Rubrics (.rubrics__list) ====== */
/* CMS generates: .rubric_pc > ul.rubrics__list > li.rubrics__item > a.rubrics__link[style] > div > img + span */
.rubric_pc {
  margin-bottom: 8px;
}
.rubric_mobile_search {
  display: none; /* скрыто на десктопе — рубрики показываются через rubric_pc; !important снят после C4.1 */
}
/* !important сняты после C4.1 (main.css не грузится на публике) */
.rubrics__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.rubrics__item {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rubrics__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  margin: 0;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-base);
  line-height: 1.3;
}
.rubrics__link:hover {
  border-color: var(--c-coral);
  color: var(--c-coral);
}

/* Скрыть стрелочки fa-sort-desc из main.css в фильтрах */
.sidebar__filter .filter__item-title .fa-sort-desc,
.sidebar__filter .filter__item-title .fa,
.sidebar__filter .filter__color-title .fa-sort-desc,
.sidebar__filter .filter__color-title .fa {
  display: none;
}
/* ::before-reset для legacy main.css правил (main не грузится — но reset
   страховочный на случай возврата). !important сняты — main не определяет ::before
   для этих селекторов. */
.rubrics__link::before,
.rubrics__link:hover::before,
.rubrics__link_active::before,
.rubrics__link_active:hover::before,
.rubrics__item.selected .rubrics__link::before,
.rubrics__item.selected .rubrics__link_active::before,
.rubrics__item.green a::before,
.rubrics__item.green .rubrics__link:hover::before,
.rubrics__item.red a::before,
.rubrics__item.red .rubrics__link:hover::before,
.rubrics__item.black a::before,
.rubrics__item.black .rubrics__link:hover::before {
  content: none;
  display: none;
  background: transparent;
  border: none;
  width: 0;
  height: 0;
  transition: none;
}
/* Transition для рубрик-ссылок */
.rubrics__link,
.rubrics__link:hover,
.rubrics__link_active,
.rubrics__link_active:hover {
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
/* Вложенные элементы рубрик — без анимаций */
.rubrics__item,
.rubrics__link div,
.rubrics__link img,
.rubrics__link span {
  transition: none;
  animation: none;
}
/* Иконки внутри рубрик */
.rubrics__link div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rubrics__link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
/* Темный фон (VIP и др.) — белый текст
   !important снят с color/border-color: inline-стиль PHP-шаблона ставит только
   background-color, поэтому CSS color/border-color побеждают сами по специфичности. */
.rubrics__link[style*="background-color: #190b0b"],
.rubrics__link[style*="background-color: #1"],
.rubrics__link[style*="background-color: #2"],
.rubrics__link[style*="background-color: #3"],
.rubrics__link[style*="background-color: #4"],
.rubrics__link[style*="background-color: #5"] {
  color: #fff;
  border-color: transparent;
}
/* Цветной фон (Новинки и др.) — белый текст */
.rubrics__link[style*="background-color: #d7"],
.rubrics__link[style*="background-color: #e"],
.rubrics__link[style*="background-color: #c"],
.rubrics__link[style*="background-color: #a"],
.rubrics__link[style*="background-color: #b"] {
  color: #fff;
  border-color: transparent;
}
/* Светлый фон (#f0f0f0) — переопределяем на v2-стиль
   !important НУЖЕН: inline `background-color: #f0f0f0` иначе побеждает CSS. */
.rubrics__link[style*="background-color: #f0f0f0"] {
  background-color: var(--c-bg-light) !important;
}
.rubrics__link.active,
.rubrics__link[style*="bold"] {
  border-color: var(--c-coral);
  color: var(--c-coral);
  font-weight: 600;
}

/* ====== CMS Sidebar Switch ======
   !important сняты после C4.1 (main.css не грузится). */
.sidebar__switch {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: none; /* скрываем "Фильтры" заголовок — он виден через close-row в мобильной версии */
}

/* ====== CMS Promotions wrapper ====== */
.v2-promotions {
  margin-bottom: 16px;
}
.v2-promotions:empty,
.v2-promotions:not(:has(*)) {
  display: none;
  margin: 0;
}

/* ====== Responsive: CMS rubrics ======
   !important сняты после C4.1 (main.css не грузится на публике). */
@media (max-width: 850px) {
  .rubric_pc {
    display: block;
  }
  .rubric_mobile_search {
    display: none;
  }
  .rubrics__list {
    gap: 6px;
    overflow: visible;
    flex-wrap: wrap;
    padding-bottom: 8px;
  }
  .rubrics__link {
    padding: 6px 12px;
    font-size: 12px;
  }
  .rubrics__link img {
    width: 16px;
    height: 16px;
  }
  /* Filters close row */
  .filters__close-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--c-border);
  }
  .filters__close-title {
    font-size: 18px;
    font-weight: 700;
  }
  .filters__close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--c-bg-light);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* Mobile sidebar slide-in */
  .filters.mobile-open {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 998;
    overflow-y: auto;
    padding: 16px 20px;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  }
}

/* ==============================================================
   CARD CLEANUP — скрываем лишнее, оставляем как в catalog-v2.html
   ============================================================== */

/* Карточка v2 — компактная, без лишних элементов (убраны из PHP) */
.goods__list .product-card__body {
  flex: initial !important;
}
.goods__list .product-card__actions {
  margin-top: 12px !important;
}

/* ==============================================================
   SORT BAR (.goods__sort) — единственное определение после дедупа.
   !important сняты после C4.1 (main.css не грузится на публике).
   ============================================================== */
.goods__sort {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
  height: auto;
  float: none;
  width: 100%;
  gap: 12px;
  font-family: var(--font-base);
}
/* Скрыть заголовок h1 "Каталог товаров" из sort bar */
.goods__sort .gltit {
  display: none;
}
/* Стилизовать div с сортировкой */
.goods__sort > div {
  float: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.goods__sort h3 {
  font-size: 13px;
  font-weight: 400;
  color: var(--c-text-secondary);
  display: inline;
  margin: 0;
  padding: 0;
  float: none;
  white-space: nowrap;
}
.goods__sort a {
  font-size: 13px;
  color: var(--c-text-secondary);
  transition: color 0.2s;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.goods__sort a:hover { color: var(--c-coral); }
.goods__sort a.active,
.goods__sort a[style*="bold"] {
  color: var(--c-text);
  font-weight: 600;
}
/* FontAwesome стрелки в сортировке */
.goods__sort .fa {
  font-size: 10px;
  margin-right: 2px;
}

/* ==============================================================
   SIDEBAR FILTER (.sidebar__filter) — улучшения
   ============================================================== */

/* .sidebar__switch уже скрыт через display:none выше (см. секцию CMS Sidebar Switch).
   Стили дочерних .sidebar__switch-item оставляем на случай если кто-то его покажет. */
.sidebar__switch-item {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  list-style: none;
  padding: 0;
}
/* Скрыть вложенные элементы switch (шестерёнки и т.п.) */
.sidebar__switch-item .fa {
  margin-right: 6px;
  color: var(--c-text-muted);
}

/* Улучшить размерный фильтр (шир/выс/дно inputs) */
.sidebar__filter input[type="text"],
.sidebar__filter input[type="number"] {
  padding: 8px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 13px;
  outline: none;
  font-family: var(--font-base);
  transition: border-color 0.2s;
}
.sidebar__filter input[type="text"]:focus,
.sidebar__filter input[type="number"]:focus {
  border-color: var(--c-coral);
}

/* Заголовки секций фильтра */
.sidebar__filter .name_filter,
.sidebar__filter #head_filter {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 12px;
  cursor: pointer;
}

/* Скрыть промо-контент (.pl_filter) если нет дочерних элементов */
.pl_filter:empty,
.pl_filter:not(:has(.filter-colors)):not(:has(.filter-sizes)):not(:has(.filter-color)) {
  display: none;
}

/* ====== CMS Filter header — hide duplicate heading ====== */
.sidebar__filter #head_filter {
  display: none;
}
.sidebar__filter .name_filter {
  display: none;
}

/* ====== Color filter — v2 collapsible grid ======
   !important сняты после C4.1 (main.css не грузится). JS в shop_index.tpl
   ставит inline display сам, что естественно перебивает CSS без !important. */
.sidebar__filter .filter__color-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0;
  padding: 8px 0;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  user-select: none;
}
/* Chevron после заголовка */
.sidebar__filter .filter__color-title::after,
.sidebar__filter .filter__item-title::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--c-text-muted);
  border-bottom: 1.5px solid var(--c-text-muted);
  transform: rotate(45deg);
  margin-left: auto;
  margin-top: -3px;
  transition: transform 0.2s;
}
.sidebar__filter .filter__color-title.collapsed::after,
.sidebar__filter .filter__item-title.collapsed::after {
  transform: rotate(-45deg);
  margin-top: 3px;
}
/* Свернуть цветовой фильтр по умолчанию — display переключается JS-ом (inline) */
.sidebar__filter .filter__item-colors {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 0 0;
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.sidebar__filter .filter__item-colors.v2-open,
.sidebar__filter .filter__color-title.v2-expanded + .filter__item-colors {
  display: flex;
}
.sidebar__filter .colors__list-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  width: 26px;
  height: 26px;
  position: relative;
  flex-shrink: 0;
}
.sidebar__filter .colors__list-item.disabled {
  opacity: 0.3;
  pointer-events: none;
}
/* Label-обёртка — compact, фиксирован под ~кружок */
.sidebar__filter .filters_label-color {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: 26px;
  height: 26px;
  position: relative;
}
/* Скрыть нативный checkbox */
.sidebar__filter .filters_label-color input[type="checkbox"],
.sidebar__filter .filter__item-block-color {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  display: none;
  visibility: hidden;
}
/* Скрыть дублирующий "custom-color" span (серый чекбокс-обёртку) */
.sidebar__filter .filter__item-block-box-custom-color {
  display: none;
}
/* Кружок цвета — только .colors__block */
.sidebar__filter .colors__block {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--c-border);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}
.sidebar__filter .filters_label-color:hover .colors__block {
  transform: scale(1.15);
  box-shadow: 0 0 0 1.5px var(--c-slate);
}
.sidebar__filter input[type="checkbox"]:checked ~ .colors__block,
.sidebar__filter .colors__list-item.selected .colors__block {
  box-shadow: 0 0 0 2px var(--c-coral);
}
/* Подпись (название цвета) — скрыть */
.sidebar__filter .filter__item-block-label-color,
.sidebar__filter .filter__color-label {
  display: none;
}

/* ====== Disabled filter items ======
   !important сняты после C4.1 (main.css не грузится). */
.sidebar__filter .filter__item-block.disabled,
.sidebar__filter .filter__type-item.disabled,
.sidebar__filter .filter__material-item.disabled,
.sidebar__filter .filter__additionally-item.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ====== Collection filter (.pl_filter) — v2 ======
   !important сняты после C4.1 (main.css не грузится). */
.pl_filter {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--c-bg-light);
  border-radius: var(--radius);
  font-family: var(--font-base);
}
.pl_filter .filter-colors {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-secondary);
}
.pl_filter .filter-colors span {
  font-size: 13px;
  color: var(--c-text-secondary);
  white-space: nowrap;
}
.pl_filter .filter-color {
  display: flex;
  gap: 6px;
  align-items: center;
}
.pl_filter .filter-color a {
  display: inline-block;
  text-decoration: none;
}
.pl_filter .filter-colors__item {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pl_filter .filter-colors__item:hover {
  border-color: var(--c-slate);
  box-shadow: 0 0 0 2px rgba(103,115,138,0.2);
}
.pl_filter .filter-color a.selected .filter-colors__item {
  border-color: var(--c-coral);
  box-shadow: 0 0 0 2px rgba(234,91,113,0.3);
}
.pl_filter .filter-sizes {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-secondary);
}
.pl_filter .filter-sizes span {
  font-size: 13px;
  white-space: nowrap;
}
.pl_filter .filter-size {
  padding: 6px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-base);
  background: #fff;
  outline: none;
  cursor: pointer;
}

/* ====== .get-more__content — grid for lazy-loaded products ======
   !important сняты после C4.1 (main.css не грузится; правила дублируют
   catalog-v2.css). */
.get-more__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  align-items: start;
}

/* ====== Warning modal — v2 style ======
   !important сняты после C4.1 (main.css не грузится).
   display:none без !important позволяет JS-у управлять видимостью через
   inline style (.style.display = 'block'). */
.goods__smallSkladInfo-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  z-index: 10000;
  max-width: 440px;
  width: 90%;
  font-family: var(--font-base);
}
.goods__smallSkladInfo-modal .warning__header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 12px;
}
.goods__smallSkladInfo-modal .warning__content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-secondary);
  margin-bottom: 16px;
}

/* ====== REVIEWS ====== */
.reviews-section { background: var(--c-bg-light, #f8f9fb); }
.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.reviews-rating-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  flex-shrink: 0;
}
.reviews-rating-badge__score {
  font-size: 36px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1;
}
.reviews-rating-badge__stars {
  color: #f5a623;
  font-size: 16px;
  letter-spacing: 1px;
}
.reviews-rating-badge__count {
  font-size: 12px;
  color: var(--c-text-muted);
  margin-top: 2px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg, 12px);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.review-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}
.review-card__quote {
  position: absolute;
  top: 16px;
  right: 20px;
  color: var(--c-coral);
}
.review-card__stars {
  color: #f5a623;
  font-size: 18px;
  letter-spacing: 2px;
}
.review-card__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-text-secondary, #6b7280);
  flex: 1;
}
.review-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}
.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.review-card__meta { display: flex; flex-direction: column; gap: 2px; }
.review-card__author {
  font-weight: 600;
  font-size: 14px;
  color: var(--c-text, #1a1a2e);
}
.review-card__source {
  font-size: 12px;
  color: var(--c-text-muted, #9ca3af);
  display: flex;
  align-items: center;
  gap: 4px;
}
@media (max-width: 1024px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-header { flex-direction: column; gap: 16px; }
}
/* FIX: было "px) {" без префикса @media — reviews-grid на мобиле должен быть
   1 col, review-card компактнее. Восстановлен 600px. */
@media (max-width: 600px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .review-card { padding: 24px 20px 20px; }
  .reviews-rating-badge { align-self: flex-start; }
}

/* ====== FIX: Slide-in cart panel — отсутствовало парное правило к .cart-slidein { display: none }
   !important сняты после C4.1 — .cart-slidein.open имеет выше специфичность,
   чем базовое .cart-slidein. */
.cart-slidein.open { display: flex; }

/* ====== FIX: убираем pointer-events:none с кнопок "Товар в корзине",
   чтобы клик мог открыть slidein-корзину.
   !important сняты — двойной класс .buttonAddToCart.btn-cart--in-cart
   и .buttonAddToCart.v2-in-cart выше специфичности базового .btn-cart--in-cart. */
.buttonAddToCart.btn-cart--in-cart,
.buttonAddToCart.v2-in-cart {
  pointer-events: auto;
  cursor: pointer;
}

/* ====== Mobile layout для cart-flow страниц (cart.php, payment.php) ======
   Body-класс is-cart-layout выставляется JS-ом из этих модулей.
   Раньше эти правила дублировались двумя одинаковыми inline style-блоками. */
@media screen and (max-width: 480px) {
  .is-cart-layout .sidebar,
  .is-cart-layout .mobile-rubrics { display: none; }
  .is-cart-layout .content { margin-top: 0; }
}

/* ====== Валидация полей формы оформления заказа ======
   Раньше: style="color: <?= ... ? 'green' : 'red' ?>" в cart.php + checkout.php (37×).
   Теперь: data-valid="ok|err" + CSS-селекторы. */
[data-valid="ok"]  { color: #1f9d55; }
[data-valid="err"] { color: #c00; }

/* ============================================================
   Admin stock tooltip — общий блок для всех страниц со списком товаров.
   Раньше эти стили жили только в catalog-v2.css и product-v2.css,
   поэтому на главной и /shop/productline tooltip "На складе X шт. ..."
   был всегда виден и ломал вёрстку карточки.
   ============================================================ */

/* Карточкам нужен overflow:visible, иначе абсолютно-позиционированный
   tooltip обрезается родителями. Картинку оставляем с overflow:hidden
   ради скруглённых углов.
   !important сняты после C4.1 — main.css не грузится на публике, конфликтов нет. */
.goods__infoblock-content,
.goods__bottom-grey-block,
.goods__order-options,
.goods__bottom-infoblock,
.highlightd,
.goods__full-view {
  overflow: visible;
}

.goods__sklad-wrap {
  position: relative;
  display: inline-block;
}
/* ВНИМАНИЕ: `all: unset !important` нужен для жёсткого ресета legacy-стилей,
   но он перебивает по приоритету ОБЫЧНЫЕ декларации в том же блоке. Поэтому
   ВСЕ свойства ниже обязаны быть с !important — иначе они проигрывают `all`
   и tooltip течёт inline вместо absolute display:none (инцидент 2026-05-27,
   /shop/view + admin-режим). */
.goods__sklad-wrap .goods__sklad-tooltip,
.goods__min-parts.goods__sklad-tooltip {
  all: unset !important;
  display: none !important;
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  background: var(--c-dark) !important;
  color: #fff !important;
  padding: 10px 12px !important;
  border-radius: var(--radius) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
  box-shadow: var(--shadow-lg) !important;
  z-index: 1000 !important;
  font-family: var(--font-base) !important;
  pointer-events: auto !important;
}
.goods__sklad-tooltip b { color: #fff; font-weight: 700; }
.goods__sklad-tooltip a {
  color: #ffc107;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,193,7,0.5);
}
.goods__sklad-tooltip a:hover {
  color: #fff;
  border-bottom-color: #fff;
}
.goods__sklad-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--c-dark);
}
/* Показ при hover — !important нужен потому что база `display: none !important`
   (специфичность здесь даже не имеет значения при равном !important — выигрывает
   более специфичный селектор, что и так наш случай). */
.goods__sklad-wrap:hover .goods__sklad-tooltip,
.goods__sklad-wrap:hover .goods__min-parts.goods__sklad-tooltip {
  display: block !important;
}

/* ====== Реквизиты (/shop/rekv) ====== */
.rekv { max-width: 920px; }
.rekv__title { font-size: 28px; font-weight: 700; color: var(--c-text); margin: 0 0 6px; }
.rekv__lead { font-size: 16px; color: var(--c-text-secondary); margin: 0 0 28px; }
.rekv__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rekv__card {
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 20px 22px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.rekv__card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.rekv__card--wide { grid-column: 1 / -1; }
.rekv__card-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--c-slate); margin: 0 0 16px;
}
.rekv__card-title::before {
  content: ''; flex-shrink: 0; width: 4px; height: 15px; border-radius: 2px; background: var(--c-coral);
}
.rekv__list { display: flex; flex-direction: column; gap: 13px; margin: 0; }
.rekv__row { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.rekv__row dt, .rekv__row dd { margin: 0; }
.rekv__label { font-size: 12px; color: var(--c-text-muted); }
.rekv__value-wrap { display: flex; align-items: center; gap: 8px; }
.rekv__value { font-size: 15px; font-weight: 600; color: var(--c-text); overflow-wrap: anywhere; }
.rekv__value--mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.rekv__copy {
  flex-shrink: 0; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-bg-light);
  color: var(--c-text-secondary); cursor: pointer; transition: all var(--transition); padding: 0; font: inherit;
}
.rekv__copy:hover { border-color: var(--c-coral); color: var(--c-coral); }
.rekv__copy:focus-visible { outline: 2px solid var(--c-coral); outline-offset: 1px; }
.rekv__copy svg { width: 14px; height: 14px; display: block; }
.rekv__copy.is-copied { border-color: var(--c-green); color: var(--c-green); background: #f0fdf4; }
.rekv__footer { margin-top: 26px; }
.rekv__download {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; background: var(--c-coral); color: #fff; text-decoration: none;
  border-radius: var(--radius); font-size: 14px; font-weight: 600; transition: background var(--transition);
}
.rekv__download:hover { background: var(--c-coral-hover); }
.rekv__download svg { width: 16px; height: 16px; flex-shrink: 0; }

@media (max-width: 720px) {
  .rekv__grid { grid-template-columns: 1fr; }
  .rekv__title { font-size: 22px; }
  .rekv__download { width: 100%; justify-content: center; }
}

/* ====== Отказ, возврат, гарантии (/shop/vozvrat) ====== */
.vozvrat { max-width: 920px; }
.vozvrat__title { font-size: 28px; font-weight: 700; color: var(--c-text); margin: 0 0 6px; }
.vozvrat__lead { font-size: 16px; color: var(--c-text-secondary); margin: 0 0 28px; }
.vozvrat__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.vozvrat__card {
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 22px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.vozvrat__card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.vozvrat__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: #fff0f2; color: var(--c-coral); margin-bottom: 14px;
}
.vozvrat__icon svg { width: 20px; height: 20px; display: block; }
.vozvrat__card-title { font-size: 16px; font-weight: 700; color: var(--c-text); margin: 0 0 10px; }
.vozvrat__text { font-size: 14px; line-height: 1.6; color: var(--c-text-secondary); margin: 0; }
.vozvrat__text a { color: var(--c-coral); text-decoration: none; }
.vozvrat__text a:hover { text-decoration: underline; }

.vozvrat__discounts {
  margin-top: 28px; padding: 26px 28px;
  background: var(--c-bg-light); border: 1px solid var(--c-border); border-radius: var(--radius-lg);
}
.vozvrat__section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: var(--c-text); margin: 0 0 4px;
}
.vozvrat__section-title::before {
  content: ''; flex-shrink: 0; width: 4px; height: 18px; border-radius: 2px; background: var(--c-coral);
}
.vozvrat__lead-sm { font-size: 14px; color: var(--c-text-secondary); margin: 0 0 18px; }
.vozvrat__tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vozvrat__tier {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 20px 12px; text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.vozvrat__tier:hover { border-color: var(--c-coral); box-shadow: var(--shadow-sm); }
.vozvrat__tier-sum { font-size: 13px; color: var(--c-text-secondary); }
.vozvrat__tier-pct { font-size: 30px; font-weight: 700; color: var(--c-coral); line-height: 1; }
.vozvrat__tier-label { font-size: 11px; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.vozvrat__note { font-size: 13px; color: var(--c-text-muted); margin: 18px 0 0; }
.vozvrat__footer { margin-top: 22px; }
.vozvrat__offer {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border: 1px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-bg); color: var(--c-text); text-decoration: none;
  font-size: 14px; font-weight: 600;
  transition: border-color var(--transition), color var(--transition);
}
.vozvrat__offer:hover { border-color: var(--c-coral); color: var(--c-coral); }
.vozvrat__offer svg { width: 16px; height: 16px; flex-shrink: 0; display: block; }

@media (max-width: 720px) {
  .vozvrat__grid { grid-template-columns: 1fr; }
  .vozvrat__tiers { grid-template-columns: 1fr; }
  .vozvrat__title { font-size: 22px; }
  .vozvrat__discounts { padding: 20px; }
  .vozvrat__offer { width: 100%; justify-content: center; }
}

/* /shop/dostavka: контейнер .dlv задан инлайном в контенте страницы (БД) как
   max-width:960px + margin:0 auto, из-за чего блок центрировался и уезжал вправо.
   Приводим к стандарту инфо-страниц (как .vozvrat): 920px, прижат влево.
   Селектор .v2-content .dlv специфичнее инлайнового .dlv и переопределяет его. */
.v2-content .dlv { max-width: 920px; margin-left: 0; margin-right: 0; }

/* /shop/dostavka, мобила: инлайновый <style> контента (БД) на max-width:760px
   делает ячейки тарифной таблицы flex-строками (.dlv__cell { display:flex;
   justify-content:space-between }). Ячейки со смешанным инлайн-контентом
   (strong + текст + span-бейджи) дробятся на несжимаемые flex-колонки и
   разъезжаются узкими столбиками на 375px. Переводим ячейку в обычный поток:
   лейбл (::before, data-label) сверху, значение под ним. Специфичность
   .v2-content .dlv__cell выше инлайновой .dlv__cell — переопределяет её.
   white-space:normal у цены/бейджа — страховка от горизонтального скролла. */
@media (max-width: 760px) {
  .v2-content .dlv__cell { display: block; }
  .v2-content .dlv__cell::before { display: block; margin-bottom: 4px; }
  .v2-content .dlv__price,
  .v2-content .dlv__badge { white-space: normal; }
}

/* ROADMAP 3.3: выпадашка автоподсказок адреса (DaData). Позиционируется
   относительно .cartOrder__form-block (его делает position:relative сам JS). */
.dadata-suggest {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.dadata-suggest__item {
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
  color: #333;
}
.dadata-suggest__item:hover,
.dadata-suggest__item:focus {
  background: #f3f6fb;
}

/* ====== Легаси DB-контент на мобиле ======
   Старые тексты страниц из БД (pages.text) содержат колонки
   .preview__infoblock-* и табличную разметку фиксированной ширины: карта
   /img/map.jpg («Мы всего в 20 км от Москвы») стоит в правой колонке и на
   375px обрезается правым краем экрана (стили этих классов живут в main.css,
   который на v2-страницах не подключён). Разметка в БД — фикс глобальный. */
@media (max-width: 850px) {
  .preview__infoblock-content,
  .preview__infoblock-text,
  .preview__infoblock-map { float: none; display: block; width: 100%; box-sizing: border-box; text-align: center; }
  .preview__infoblock-map img { max-width: 100%; height: auto; }
  .v2-content table { display: block; width: 100% !important; max-width: 100%; overflow-x: auto; }
  .v2-content table img { max-width: 100% !important; height: auto !important; }

  /* Карта «Мы всего в 20 км от Москвы» (/proizvodstvo_bumajnih_paketov,
     DB-контент): картинка 1200x800 с надписью в правом верхнем углу, инлайн
     style задаёт height:100%+object-fit:cover — в узком высоком контейнере
     бока обрезались («Мы всег...»). !important — перебиваем инлайн-атрибут. */
  #pbp .pbp-deliv__map { min-height: 0 !important; align-self: auto !important; }
  #pbp .pbp-deliv__map img {
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
  }
}

/* /proizvodstvo_bumajnih_paketov (DB-контент): на мобиле над hero-видео
   зияла тёмная пустая полоса — padding-top:32px тёмной секции при видео,
   идущем первым элементом. Прижимаем видео к верху карточки, скругляя
   верхние углы под радиус секции (12px). */
@media (max-width: 850px) {
  #pbp .pbp-hero { padding-top: 0 !important; }
  #pbp .pbp-hero__media {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    overflow: hidden;
  }
}

/* /proizvodstvo_bumajnih_paketov (DB-контент): на мобиле карточки «Почему
   заказывают пакеты у нас» (pbp-adv) центрованы инлайн-<style> страницы,
   а остальные карточные блоки (pbp-tile «Материалы»/«Печать и отделка»,
   pbp-step) — влево. Приводим к единому виду. Селектор специфичнее
   инлайн-правила #pbp .pbp-adv__card, поэтому побеждает без !important. */
@media (max-width: 600px) {
  #pbp .pbp-adv .pbp-adv__card { text-align: left; }
  #pbp .pbp-adv .pbp-adv__ico { margin-left: 0; margin-right: 0; }
}

/* ====== Восстановление пароля (/shop/remember + /shop/remembok) ====== */
.recover { display: flex; justify-content: center; padding: 16px 0 8px; }
.recover__card {
  width: 100%; max-width: 440px; background: var(--c-bg);
  border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 32px 28px;
  display: flex; flex-direction: column;
}
.recover__icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-bg-light); color: var(--c-coral);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin: 0 auto 14px;
}
.recover__icon--ok { color: var(--c-green); background: #eaf7ea; }
.recover__title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.recover__hint {
  font-size: 14px; color: var(--c-text-secondary); text-align: center;
  line-height: 1.5; margin-bottom: 20px;
}
.recover__label { font-size: 13px; font-weight: 500; color: var(--c-text-secondary); margin-bottom: 6px; }
.recover__input {
  width: 100%; padding: 11px 14px; font-size: 16px; color: var(--c-text);
  border: 1px solid var(--c-border-input); border-radius: var(--radius);
  outline: none; transition: border-color var(--transition); margin-bottom: 14px;
}
.recover__input:focus { border-color: var(--c-coral); }
.recover__input_error { border-color: var(--c-coral); }
.recover__btn {
  display: block; box-sizing: border-box; width: 100%; padding: 12px;
  background: var(--c-coral); color: #fff; text-align: center; text-decoration: none;
  border: none; border-radius: var(--radius); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background var(--transition);
}
.recover__btn:hover { background: var(--c-coral-hover); color: #fff; }
.recover__btn:disabled { opacity: .6; cursor: not-allowed; }
.recover__err { color: var(--c-coral); font-size: 13px; line-height: 1.45; text-align: left; }
.recover__err:not(:empty) { margin-top: 10px; }
.recover__ok { color: var(--c-green); }
.recover__back { margin-top: 16px; text-align: center; font-size: 13px; color: var(--c-text-secondary); }
.recover__back:hover { color: var(--c-coral); }
@media (max-width: 480px) {
  .recover { padding-top: 4px; }
  .recover__card { border: none; box-shadow: none; padding: 20px 4px; }
}

/* «Перейти к полной версии сайта» / «Вернуться к мобильной» — брендовая кнопка
   вместо серой 3rem из main.css (жалоба 2026-07-18). Показывается на мобиле. */
.full-version { background: #f7f7f9; border-top: 1px solid var(--c-border, #ececef); padding: 12px 10px; text-align: center; }
.full-version span { margin: 0; }
.full-version__btn { display: inline-block; font-size: 14px; font-weight: 600; line-height: 1.2; color: #fff; background: var(--c-coral, #ea5b71); border: none; border-radius: var(--radius, 8px); padding: 11px 20px; text-decoration: none; transition: background .15s; }
.full-version__btn:hover { background: var(--c-coral-hover, #d9485e); color: #fff; }

/* ── Перекрёстные ссылки «каталог ⇄ Пакет знаний» ────────────────────────────
   Один блок на три контекста: карточка товара, рубрика каталога, страница
   статьи. Намеренно текстовый и негромкий — это подсказка «почитать перед
   заказом», а не второй призыв купить. Рендерит ContentLinks\Render::block();
   когда подбирать нечего, блока на странице нет вовсе. */
.content-links {
  display: block;
  margin: 28px 0;
  padding: 18px 20px;
  background: var(--c-bg-light, #f8f9fb);
  border: 1px solid var(--c-border, #e8eaee);
  border-radius: var(--radius-lg, 12px);
}
.content-links__title {
  margin: 0 0 10px;
  font-family: var(--font-base, sans-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-text-secondary, #6b7280);
}
.content-links__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.content-links__list li:before { content: none; } /* гасим маркеры из main.css */
.content-links__item { margin: 0; padding: 0; }
.content-links__link {
  font-family: var(--font-base, sans-serif);
  font-size: 15px;
  line-height: 1.35;
  color: var(--c-text, #1a1a2e);
  /* text-decoration, а не border-bottom: длинная подпись на мобиле переносится
     на две строки, и бордер inline-block'а тянулся линией во всю ширину блока. */
  text-decoration: underline;
  text-decoration-color: rgba(109, 182, 62, .6);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
.content-links__link:hover,
.content-links__link:focus {
  color: var(--c-brand-green, #6db63e);
  text-decoration-color: var(--c-brand-green, #6db63e);
}
/* В каталоге блок читается как навигация — ссылки в строку, компактнее. */
.content-links--rubric .content-links__list,
.content-links--catalog .content-links__list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 22px;
}
@media (max-width: 640px) {
  .content-links { margin: 22px 0; padding: 16px; }
  .content-links__link { font-size: 14px; }
  .content-links--rubric .content-links__list,
  .content-links--catalog .content-links__list { flex-direction: column; gap: 8px; }
}
