/* =========================================================
   Карточка товара ЖБИ — pbkbeton.ru
   Блок .pc (product card). Все классы с префиксом pc-, чтобы
   не конфликтовать с main.css сайта. Без зависимостей.
   Брейкпоинты: ≥1140 десктоп · 768–1139 планшет · <768 мобайл
   ========================================================= */

.pc {
  /* цвета — по main.css сайта (жёлтый #FBBE37, текст #333) */
  --pc-yellow: #FBBE37;
  --pc-yellow-hover: #F0B020;
  --pc-yellow-soft: #FFF4D6;
  --pc-navy: #294A6C;          /* theme-color сайта */
  --pc-navy-hover: #1F3B58;
  --pc-navy-soft: #E8EEF5;
  --pc-text: #333333;
  --pc-text-2: #6B7280;
  --pc-text-3: #9CA3AF;
  --pc-line: #E3E6EA;
  --pc-dots: #C4C9D0;
  --pc-bg: #F4F5F7;
  --pc-white: #FFFFFF;
  --pc-green: #1E9E4A;

  /* радиусы и отступы */
  --pc-r-s: 4px;
  --pc-r-m: 6px;
  --pc-r-l: 8px;
  --pc-gap: 20px;

  /* типографика — десктоп */
  --pc-h1: 900 30px/36px Roboto, Arial, sans-serif;
  --pc-h2: 700 24px/30px Roboto, Arial, sans-serif;
  --pc-h3: 700 14px/20px Roboto, Arial, sans-serif;
  --pc-price: 700 32px/38px Roboto, Arial, sans-serif;
  --pc-total: 700 20px/26px Roboto, Arial, sans-serif;
  --pc-body: 400 14px/20px Roboto, Arial, sans-serif;
  --pc-small: 400 13px/18px Roboto, Arial, sans-serif;
  --pc-cap: 400 12px/16px Roboto, Arial, sans-serif;
  --pc-btn: 700 14px/20px Roboto, Arial, sans-serif;

  font: var(--pc-body);
  color: var(--pc-text);
}
.pc *, .pc *::before, .pc *::after { box-sizing: border-box; }
.pc button { font: inherit; cursor: pointer; }
.pc a { color: var(--pc-navy); }
.pc [hidden] { display: none !important; }
.pc-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- кнопки ---------- */
.pc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px; border: 0; border-radius: var(--pc-r-m);
  font: var(--pc-btn); text-transform: uppercase; letter-spacing: .02em; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.pc-btn--yellow { background: var(--pc-yellow); color: var(--pc-text); }
.pc-btn--yellow:hover { background: var(--pc-yellow-hover); }
.pc-btn--navy { background: var(--pc-navy); color: var(--pc-white); }
.pc-btn--navy:hover { background: var(--pc-navy-hover); }
.pc-btn--outline { background: var(--pc-white); color: var(--pc-navy); border: 1px solid var(--pc-line); text-transform: none; letter-spacing: 0; font-weight: 500; }
.pc-btn--outline:hover { border-color: var(--pc-navy); }
.pc-btn--block { width: 100%; }
.pc-btn:focus-visible, .pc-icon-btn:focus-visible, .pc-step button:focus-visible { outline: 2px solid var(--pc-navy); outline-offset: 2px; }

.pc-icon-btn {
  width: 40px; height: 40px; border: 1px solid var(--pc-line); border-radius: var(--pc-r-m);
  background: var(--pc-white); display: inline-flex; align-items: center; justify-content: center; color: var(--pc-text);
}
.pc-icon-btn:hover { border-color: var(--pc-navy); color: var(--pc-navy); }
.pc-icon-btn.is-active { color: var(--pc-navy); background: var(--pc-navy-soft); border-color: var(--pc-navy); }
.pc-icon-btn svg { width: 20px; height: 20px; }

/* ---------- верхний блок: сетка ---------- */
.pc-top {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr) 380px;
  grid-template-areas:
    "crumbs  crumbs  crumbs"
    "title   title   actions"
    "chips   chips   chips"
    "gallery specs   buy"
    "adv     specs   buy"
    ".       .       buy";
  grid-template-rows: auto auto auto auto auto 1fr;
  column-gap: var(--pc-gap);
}
.pc-crumbs   { grid-area: crumbs; }
.pc-title    { grid-area: title; }
.pc-actions  { grid-area: actions; }
.pc-chips    { grid-area: chips; }
.pc-gallery  { grid-area: gallery; }
.pc-specs    { grid-area: specs; }
.pc-adv      { grid-area: adv; }
.pc-buy      { grid-area: buy; }

/* крошки */
.pc-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; font: var(--pc-cap); color: var(--pc-text-2); list-style: none; padding: 0; }
.pc-crumbs a { color: var(--pc-text-2); text-decoration: none; }
.pc-crumbs a:hover { color: var(--pc-navy); }
.pc-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--pc-text-3); }

/* заголовок */
.pc-title { font: var(--pc-h1); margin: 0; align-self: center; }
.pc-actions { display: flex; gap: 8px; justify-self: end; align-self: center; }

/* чипы */
.pc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; padding: 0; list-style: none; }
.pc-chip { font: 500 12px/16px Roboto, Arial, sans-serif; border: 1px solid var(--pc-line); border-radius: var(--pc-r-s); padding: 5px 9px; background: var(--pc-white); }
.pc-chip--ok { color: var(--pc-green); border-color: var(--pc-green); }
.pc-chip--ok::before { content: "✓ "; }
.pc-chip--low { color: #B7791F; border-color: #E8B04B; }       /* заканчивается */
.pc-chip--order { color: var(--pc-text-2); }                   /* под заказ */

/* ---------- галерея ---------- */
.pc-gallery { position: relative; min-width: 0; }
.pc-gallery__track {
  position: relative; height: 300px; border: 1px solid var(--pc-line); border-radius: var(--pc-r-l);
  background: var(--pc-white); overflow: hidden;
}
.pc-gallery__slide { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 16px; margin: 0; }
.pc-gallery__slide.is-active { display: flex; }
.pc-gallery__slide img, .pc-gallery__slide svg { max-width: 100%; max-height: 100%; object-fit: contain; }
.pc-gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; padding: 0; list-style: none; }
.pc-gallery__thumb {
  width: 100%; height: 72px; border: 1px solid var(--pc-line); border-radius: var(--pc-r-m); background: var(--pc-bg);
  display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--pc-text-2); font: var(--pc-cap); padding: 0;
}
.pc-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pc-gallery__thumb.is-active { border: 2px solid var(--pc-navy); }
.pc-gallery__thumb--draw { background: var(--pc-white); color: var(--pc-navy); font-weight: 700; }
.pc-gallery__counter, .pc-gallery__dots, .pc-gallery__draw { display: none; }

/* ---------- короткие характеристики ---------- */
.pc-specs__title { font: var(--pc-h3); margin: 0 0 8px; }
.pc-specs__list { margin: 0; }
.pc-specs__row { display: flex; align-items: baseline; gap: 6px; padding: 3px 0; font: var(--pc-small); }
.pc-specs__row dt { color: var(--pc-text-2); }
.pc-specs__row dd { margin: 0; font-weight: 500; white-space: nowrap; }
.pc-specs__row::after { content: none; }
.pc-dots { flex: 1; border-bottom: 1px dotted var(--pc-dots); transform: translateY(-4px); min-width: 12px; }
.pc-specs__more { display: inline-block; margin-top: 10px; font: 500 14px/20px Roboto, Arial, sans-serif; text-decoration: underline; }

/* преимущества */
.pc-adv { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; align-self: start; }
.pc-adv li { display: flex; gap: 8px; align-items: center; font: var(--pc-small); }
.pc-adv svg { width: 18px; height: 18px; flex: none; color: var(--pc-navy); }

/* ---------- карточка покупки ---------- */
.pc-buy {
  align-self: start; border: 1px solid var(--pc-line); border-radius: var(--pc-r-l); padding: 16px;
  background: var(--pc-white); box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.pc-price { display: flex; align-items: baseline; gap: 6px; }
.pc-price__value { font: var(--pc-price); }
.pc-price__unit { color: var(--pc-text-2); }
.pc-price__vat { font: var(--pc-cap); color: var(--pc-text-2); margin-top: 2px; }
.pc-opt { margin-top: 10px; padding: 8px 10px; background: var(--pc-navy-soft); color: var(--pc-navy); border-radius: var(--pc-r-s); font: 500 12px/16px Roboto, Arial, sans-serif; }
.pc-opt.is-applied { background: var(--pc-yellow-soft); color: var(--pc-text); }

.pc-cart { display: flex; gap: 8px; margin-top: 12px; }
.pc-cart .pc-btn { flex: 1; }
.pc-step { display: flex; width: 124px; flex: none; height: 48px; border: 1px solid var(--pc-line); border-radius: var(--pc-r-m); overflow: hidden; }
.pc-step button { width: 38px; border: 0; background: var(--pc-white); font-size: 18px; color: var(--pc-text); }
.pc-step button:hover { background: var(--pc-bg); }
.pc-step input {
  width: 0; flex: 1; border: 0; border-left: 1px solid var(--pc-line); border-right: 1px solid var(--pc-line);
  text-align: center; font: 500 16px/22px Roboto, Arial, sans-serif; color: var(--pc-text); -moz-appearance: textfield; appearance: textfield;
}
.pc-step input::-webkit-outer-spin-button, .pc-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* доставка */
.pc-delivery { border: 0; margin: 16px 0 0; padding: 0; }
.pc-delivery__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.pc-delivery__title { font: var(--pc-h3); }
.pc-delivery__per-note { font: var(--pc-cap); color: var(--pc-text-2); }
.pc-delivery__opt {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; margin-top: 6px;
  border: 1px solid var(--pc-line); border-radius: var(--pc-r-m); cursor: pointer; font: var(--pc-small);
}
.pc-delivery__opt:hover { border-color: var(--pc-navy); }
.pc-delivery__opt input { position: absolute; opacity: 0; pointer-events: none; }
.pc-delivery__radio { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px solid var(--pc-text-3); background: var(--pc-white); }
.pc-delivery__name { font-weight: 700; color: var(--pc-text-2); }
.pc-delivery__cap { color: var(--pc-text-3); font: var(--pc-cap); }
.pc-delivery__price { margin-left: auto; font-weight: 700; white-space: nowrap; color: var(--pc-text-2); }
.pc-delivery__opt:has(input:checked) .pc-delivery__name { color: var(--pc-text); }
.pc-delivery__opt:has(input:checked) .pc-delivery__price { color: var(--pc-navy); }
/* транспорт, который не увезёт заказ за один рейс */
.pc-delivery__opt.is-disabled { cursor: not-allowed; background: var(--pc-bg); border-color: var(--pc-line); opacity: .5; }
.pc-delivery__opt.is-disabled:hover { border-color: var(--pc-line); }
.pc-delivery__opt.is-disabled .pc-delivery__radio { background: var(--pc-bg); }
.pc-delivery__opt:has(input:checked) { border: 2px solid var(--pc-navy); background: var(--pc-navy-soft); padding: 0 11px; }
.pc-delivery__opt:has(input:checked) .pc-delivery__radio { border: 5px solid var(--pc-navy); }
.pc-delivery__opt:has(input:focus-visible) { outline: 2px solid var(--pc-navy); outline-offset: 2px; }
.pc-delivery__note { font: var(--pc-cap); color: var(--pc-text-2); margin-top: 6px; }

/* итоги */
.pc-sum { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--pc-line); }
.pc-sum__row { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; font: var(--pc-small); }
.pc-sum__row dt { color: var(--pc-text-2); }
.pc-sum__row dd { margin: 0; font-weight: 500; text-align: right; }
.pc-sum__row--total { margin-top: 6px; align-items: baseline; }
.pc-sum__row--total dt { color: var(--pc-text); font-weight: 700; }
.pc-sum__row--total dd { font: var(--pc-total); }
.pc-buy__calc { margin-top: 12px; }

/* связь */
.pc-contact { margin: 12px 0 0; }
.pc-contact__row { display: flex; align-items: baseline; gap: 6px; font: var(--pc-cap); color: var(--pc-text-2); padding: 2px 0; }
.pc-contact__row a { color: var(--pc-text); text-decoration: none; white-space: nowrap; }
.pc-contact__row a:hover { color: var(--pc-navy); }
.pc-contact__btns, .pc-contact__hint { display: none; }

/* ---------- вкладки / аккордеон ---------- */
.pc-tabs { margin-top: 40px; }
.pc-tabs__list { display: flex; gap: 0; border-bottom: 1px solid var(--pc-line); }
.pc-tabs__tab {
  border: 1px solid transparent; border-bottom: 0; background: none; padding: 12px 18px; margin-bottom: -1px;
  color: var(--pc-text-2); font: var(--pc-body); border-radius: var(--pc-r-m) var(--pc-r-m) 0 0;
}
.pc-tabs__tab:hover { color: var(--pc-navy); }
.pc-tabs__tab[aria-selected="true"] { color: var(--pc-navy); font-weight: 700; background: var(--pc-white); border-color: var(--pc-line); }
.pc-tabs__acc { display: none; }
.pc-tabs__panel { border: 1px solid var(--pc-line); border-top: 0; padding: 20px; background: var(--pc-white); }
.pc-tabs__panel:not(.is-open) { display: none; }

.pc-chars { columns: 2; column-gap: 40px; margin: 0; }
.pc-chars__row { display: flex; align-items: baseline; gap: 6px; padding: 5px 0; break-inside: avoid; font: var(--pc-small); }
.pc-chars__row dt { color: var(--pc-text-2); }
.pc-chars__row dd { margin: 0; font-weight: 700; white-space: nowrap; }
.pc-text p { margin: 0 0 10px; }

/* ---------- серия ---------- */
.pc-series { margin-top: 32px; border: 1px solid var(--pc-line); border-radius: var(--pc-r-l); padding: 24px 20px; }
.pc-series__title { font: var(--pc-h2); margin: 0 0 16px; }
.pc-series__table { width: 100%; border-collapse: collapse; }
.pc-series__table th { font: var(--pc-cap); color: var(--pc-text-2); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--pc-line); }
.pc-series__table td { padding: 12px; border-bottom: 1px solid var(--pc-line); font: var(--pc-body); }
.pc-series__table .pc-series__price { text-align: right; }
.pc-series__table td.pc-series__price { font-weight: 700; white-space: nowrap; }
.pc-series__table tbody tr:hover { background: var(--pc-bg); }
.pc-series__table tr.is-current { background: var(--pc-yellow-soft); }
.pc-series__table tr.is-current td:first-child { font-weight: 700; }
.pc-series__table a { font-weight: 500; }
.pc-series__note { font: var(--pc-cap); color: var(--pc-text-3); margin-top: 10px; }
.pc-series__more { display: none; }
.pc-series__more[hidden] { display: none !important; }
.pc-series__table td.pc-series__meta { display: none; }

/* ---------- липкая панель (только мобайл) ---------- */
.pc-sticky { display: none; }

/* ---------- модалка / bottom sheet ---------- */
.pc-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pc-modal[hidden] { display: none; }
.pc-modal__overlay { position: absolute; inset: 0; background: rgba(17,24,39,.55); }
.pc-modal__box {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--pc-white); border-radius: var(--pc-r-l); padding: 24px;
}
.pc-modal__handle { display: none; }
.pc-modal__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; background: none; color: var(--pc-text-2); }
.pc-modal__title { font: 700 20px/26px Roboto, Arial, sans-serif; margin: 0 40px 4px 0; }
.pc-modal__sub { font: var(--pc-cap); color: var(--pc-text-2); margin: 0 0 8px; }
.pc-field { display: block; margin-top: 12px; }
.pc-field__label { display: block; font: var(--pc-cap); color: var(--pc-text-2); margin-bottom: 4px; }
.pc-field input, .pc-field select {
  width: 100%; height: 48px; border: 1px solid var(--pc-line); border-radius: var(--pc-r-m); padding: 0 12px;
  font: 400 16px/22px Roboto, Arial, sans-serif; color: var(--pc-text); background: var(--pc-white);
}
.pc-field input:focus, .pc-field select:focus { outline: none; border-color: var(--pc-navy); }
.pc-field.error input, .pc-field input.error { border-color: #D93025; }
.pc-field__row { display: flex; gap: 8px; }
.pc-field__row .pc-field { flex: 1; }
.pc-field__row .pc-field--qty { flex: none; }
.pc-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font: var(--pc-cap); color: var(--pc-text-2); }
.pc-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--pc-navy); flex: none; }
.pc-modal__submit { margin-top: 16px; }
.pc-modal__hint { font: var(--pc-cap); color: var(--pc-text-2); text-align: center; margin-top: 8px; }
.pc-modal__success { text-align: center; padding: 24px 0 8px; }
.pc-modal__success-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--pc-navy-soft); color: var(--pc-navy); display: inline-flex; align-items: center; justify-content: center; font-size: 28px; }
body.pc-lock { overflow: hidden; }

/* =========================================================
   ПЛАНШЕТ 768–1139
   ========================================================= */
@media (max-width: 1139px) {
  .pc-top {
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas:
      "crumbs  crumbs"
      "title   actions"
      "chips   chips"
      "gallery buy"
      "adv     buy"
      "specs   buy"
      ".       buy";
    grid-template-rows: auto auto auto auto auto auto 1fr;
  }
  .pc-specs { margin-top: 20px; }
}

/* =========================================================
   МОБАЙЛ < 768
   ========================================================= */
@media (max-width: 767px) {
  .pc {
    --pc-h1: 700 22px/28px Roboto, Arial, sans-serif;
    --pc-h2: 700 20px/26px Roboto, Arial, sans-serif;
    --pc-h3: 700 16px/22px Roboto, Arial, sans-serif;
    --pc-price: 700 28px/34px Roboto, Arial, sans-serif;
    --pc-body: 400 15px/22px Roboto, Arial, sans-serif;
    --pc-small: 400 14px/20px Roboto, Arial, sans-serif;
  }
  .pc { padding-bottom: 88px; } /* место под липкую панель */
  .pc-top {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "crumbs" "title" "chips" "gallery" "adv" "specs" "buy";
    grid-template-rows: none;
  }

  .pc-crumbs { margin: 10px 0 6px; }
  .pc-crumbs li { display: none; }
  .pc-crumbs li.pc-crumbs__back { display: block; }
  .pc-crumbs li.pc-crumbs__back::before { content: none; }
  .pc-crumbs li.pc-crumbs__back a { color: var(--pc-navy); font-weight: 500; }

  .pc-chips { gap: 6px; margin: 10px 0 14px; }

  /* иконки поверх фото */
  .pc-actions { grid-area: gallery; justify-self: end; align-self: start; flex-direction: column; margin: 10px; z-index: 2; }
  .pc-actions .pc-icon-btn { width: 36px; height: 36px; border-radius: 50%; }

  /* галерея — свайп */
  .pc-gallery__track {
    height: 240px; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .pc-gallery__track::-webkit-scrollbar { display: none; }
  .pc-gallery__slide { position: relative; inset: auto; display: flex; flex: 0 0 100%; scroll-snap-align: start; }
  .pc-gallery__thumbs { display: none; }
  .pc-gallery__counter {
    display: block; position: absolute; left: 10px; top: 210px; background: rgba(31,31,31,.7); color: #fff;
    font: var(--pc-cap); border-radius: 10px; padding: 2px 8px; pointer-events: none;
  }
  .pc-gallery__draw {
    display: block; position: absolute; right: 10px; top: 204px; background: var(--pc-white); border: 1px solid var(--pc-line);
    border-radius: var(--pc-r-s); padding: 4px 8px; font: 500 12px/16px Roboto, Arial, sans-serif; color: var(--pc-navy);
  }
  .pc-gallery__dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
  .pc-gallery__dots span { width: 6px; height: 6px; border-radius: 3px; background: #D1D5DB; transition: width .2s; }
  .pc-gallery__dots span.is-active { width: 18px; background: var(--pc-navy); }

  /* характеристики — плитки 3×2 */
  .pc-specs { margin-top: 16px; }
  .pc-specs__title { display: none; }
  .pc-specs__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pc-specs__row { flex-direction: column; align-items: flex-start; gap: 2px; background: var(--pc-bg); border-radius: var(--pc-r-m); padding: 8px 10px; font: var(--pc-cap); }
  .pc-specs__row dd { font: 700 15px/20px Roboto, Arial, sans-serif; white-space: normal; }
  .pc-specs__row .pc-dots { display: none; }
  .pc-specs__row dd { order: 2; }

  .pc-buy { margin-top: 16px; }
  .pc-delivery__opt { height: 48px; }

  .pc-contact__rows { display: none; }
  .pc-contact__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pc-contact__btns .pc-btn { height: 44px; }
  .pc-contact__hint { display: block; font: var(--pc-cap); color: var(--pc-text-2); text-align: center; margin-top: 8px; }

  .pc-adv { margin-top: 14px; gap: 8px 16px; }

  /* табы → аккордеон */
  .pc-tabs { margin-top: 24px; border: 1px solid var(--pc-line); border-radius: var(--pc-r-l); overflow: hidden; }
  .pc-tabs__list { display: none; }
  .pc-tabs__acc {
    display: flex; justify-content: space-between; align-items: center; width: 100%; height: 52px; padding: 0 16px;
    border: 0; border-top: 1px solid var(--pc-line); background: var(--pc-white); font: 500 16px/22px Roboto, Arial, sans-serif; color: var(--pc-text); text-align: left;
  }
  .pc-tabs__acc:first-of-type { border-top: 0; }
  .pc-tabs__acc::after { content: "+"; color: var(--pc-text-2); font-size: 18px; }
  .pc-tabs__acc[aria-expanded="true"] { background: var(--pc-navy-soft); color: var(--pc-navy); font-weight: 700; }
  .pc-tabs__acc[aria-expanded="true"]::after { content: "−"; color: var(--pc-navy); }
  .pc-tabs__panel { border: 0; padding: 10px 16px 14px; }
  .pc-chars { columns: 1; }
  .pc-chars__row dd { font-weight: 500; }

  /* серия — список в две строки */
  .pc-series { border: 0; padding: 0; margin-top: 24px; }
  .pc-series__title { margin-bottom: 12px; }
  .pc-series__table thead { display: none; }
  .pc-series__table, .pc-series__table tbody { display: block; }
  .pc-series__table tr {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "mark price" "meta meta";
    padding: 10px 8px; border-bottom: 1px solid var(--pc-line); column-gap: 8px;
  }
  .pc-series__table tr.is-current { border-radius: var(--pc-r-s); border-bottom-color: transparent; }
  .pc-series__table td { display: inline; padding: 0; border: 0; font: var(--pc-cap); color: var(--pc-text-2); }
  .pc-series__table td:nth-child(1) { grid-area: mark; font: 500 15px/22px Roboto, Arial, sans-serif; color: var(--pc-text); }
  .pc-series__table td.pc-series__price { grid-area: price; font: 700 15px/22px Roboto, Arial, sans-serif; color: var(--pc-text); }
  .pc-series__table td:not(:first-child):not(.pc-series__price):not(.pc-series__meta) { display: none; }
  .pc-series__table td.pc-series__meta { display: block; grid-area: meta; margin-top: 2px; }
  .pc-series__table tr.is-collapsed { display: none; }
  .pc-series__more { display: flex; margin-top: 12px; }
  .pc-series__note { display: none; }

  /* липкая панель */
  .pc-sticky {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; gap: 10px; align-items: center;
    background: var(--pc-white); border-top: 1px solid var(--pc-line); box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    transform: translateY(110%); transition: transform .25s;
  }
  .pc-sticky.is-visible { transform: none; }
  .pc-sticky__info { flex: 1; min-width: 0; }
  .pc-sticky__cap { font: var(--pc-cap); color: var(--pc-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pc-sticky__total { font: 700 20px/26px Roboto, Arial, sans-serif; }
  .pc-sticky .pc-btn { padding: 0 18px; }

  /* модалка → bottom sheet */
  .pc-modal { align-items: flex-end; padding: 0; }
  .pc-modal__box {
    max-width: none; border-radius: 16px 16px 0 0; padding: 8px 16px calc(24px + env(safe-area-inset-bottom));
    max-height: 92vh; animation: pc-sheet .25s ease-out;
  }
  .pc-modal__handle { display: block; width: 40px; height: 4px; border-radius: 2px; background: #D1D5DB; margin: 0 auto 14px; }
  .pc-modal__title { font: 700 18px/24px Roboto, Arial, sans-serif; }
  .pc-modal__close { top: 16px; }
}
@keyframes pc-sheet { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .pc-sticky, .pc-modal__box { transition: none; animation: none; } }

/* =========================================================
   Дополнения при переносе в MODX
   ========================================================= */
/* фото в слайде — ссылка на увеличение (fancybox сайта) */
.pc-gallery__slide > a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.pc-gallery__slide img { width: auto; height: auto; }
.pc-gallery__thumb img { display: block; }

/* без цены — «Цена по запросу», считаем только доставку */
.pc-price__value--request { font: var(--pc-total); }

/* документы */
.pc-docs { margin: 0; padding: 0 0 0 18px; }
.pc-docs li + li { margin-top: 6px; }

/* попап: ошибки AjaxForm и согласие в формате форм сайта */
.pc-field__error { display: block; font: var(--pc-cap); color: #D93025; margin-top: 4px; }
.pc-field__error:empty { display: none; }
.pc-field input.error { border-color: #D93025; }
.pc-modal__error { margin-top: 12px; padding: 10px 12px; border-radius: var(--pc-r-s); background: #FDECEA; color: #B3261E; font: var(--pc-small); }
.pc-check label { cursor: pointer; }
.pc-check .policy-error { flex-basis: 100%; color: #D93025; }
.pc-check { flex-wrap: wrap; }
.pc-field--qty { width: 110px; }
.pc-modal__title--center { margin: 12px 0 4px; }

/* списки в тексте вкладок */
.pc-text ul { padding-left: 18px; margin: 0 0 10px; }

/* узкие экраны (320–375): не переносить «до 5 т» и «В корзину» */
.pc-delivery__cap { white-space: nowrap; }
@media (max-width: 767px) {
  .pc-cart .pc-btn { padding: 0 12px; white-space: nowrap; }
}
