/* production.css — дополнения продакшн-сборки (формы, корзина, cookie-бар, изображения) */

/* Изображения вместо image-slot */
.hero-frame .img-fill, .split-media .img-fill {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Фото товаров (из Битрикс24) — целиком, без обрезки */
.pcard-shot img.pcard-img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; padding: 12px; box-sizing: border-box; }
.pdp-shot img.pdp-img, .pdp-img { width: 100%; height: auto; max-height: 560px; object-fit: contain; display: block; background: #fff; padding: 16px; box-sizing: border-box; }
.pcard-price .from { font-size: 0.72em; font-weight: 400; color: var(--gray-500); }

/* Описание товара из Битрикса */
.prod-desc { max-width: 860px; color: var(--gray-700); font-size: 15.5px; line-height: 1.75; }
.prod-desc p { margin: 0 0 14px; }
.prod-desc b, .prod-desc strong { color: var(--gray-900); }

/* Таблица физико-химических показателей из Битрикса */
.spectable-html { max-width: 860px; overflow-x: auto; }
.spectable-html table { width: 100% !important; float: none !important; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.spectable-html td, .spectable-html th { border: 1px solid var(--border); padding: 10px 14px; vertical-align: top; text-align: left; }
.spectable-html tr:first-child td { background: var(--bg-muted); font-weight: 700; color: var(--gray-900); }
.spectable-html p { margin: 0; }

/* Статусы отправки форм */
.lead-form .lead-note { margin-top: 12px; font-size: 13.5px; line-height: 1.55; padding: 10px 14px; border-radius: var(--r-md); background: var(--bg-muted); color: var(--gray-700); }
.lead-note--ok { background: var(--success-bg); color: var(--success); }
.lead-note--err { background: var(--danger-bg); color: var(--danger); }
.lead-fine { font-size: 12px; color: var(--gray-400); line-height: 1.5; margin: 10px 0 0; }
.lead-fine a { color: var(--gray-500); text-decoration: underline; }

/* Корзина: фото позиции */
.citem-shot .citem-img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; padding: 4px; box-sizing: border-box; }

/* Корзина: количество и удаление */
.citem-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.stepper--sm button { width: 26px; height: 26px; padding: 0; align-items: center; justify-content: center; }
.stepper--sm .qn { min-width: 28px; font-size: 13px; }
.citem-del { display: inline-flex; align-items: center; gap: 5px; border: none; background: none; color: var(--gray-400); font-size: 12.5px; cursor: pointer; padding: 2px 4px; font-family: inherit; }
.citem-del:hover { color: var(--danger); }

/* Мини-сводка заказа в форме */
.order-mini { background: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; font-size: 12.5px; margin-bottom: 14px; }
.order-mini-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.order-mini-total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 8px; }

/* Селект: своя стрелка с нормальными отступами (нативная прижата к краю) */
.select {
  -webkit-appearance: none; appearance: none;
  padding-right: 38px !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a9099' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* Видео-фон интерьерного hero (новости) */
.phero--photo .phero-bg .phero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 32%; display: block;
}

/* Сканы благодарственных писем */
.ed-arrow--light { color: rgba(255,255,255,0.85); }
.ed-arrow--light:hover { color: #fff; }
.letter-sheet .letter-scan { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.modal-letter { max-width: 560px; }
.modal-letter .letter-full { display: block; width: 100%; height: auto; max-height: 74vh; object-fit: contain; background: #fff; border-bottom: 1px solid var(--border); }

/* Бейдж «Честный знак»: чёрный квадрат с галкой + подпись */
.badge--chz { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border-strong); color: var(--gray-900); }

/* Видеоплеер на карточке товара */
.pdp-video-wrap { margin-top: 12px; }
.pdp-video-label { font-size: 11.5px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.pdp-video { width: 100%; border-radius: var(--r-md); display: block; background: #000; max-height: 320px; object-fit: contain; }

/* Полоса «Честный знак» на карточке товара */
.chz-strip { display: flex; align-items: center; gap: 16px; background: var(--bg-muted); border: 1px solid var(--border); border-left: 3px solid #F6F42E; border-radius: var(--r-md); padding: 14px 16px; margin: 16px 0; }
.chz-strip-logo { flex: none; height: 32px; width: auto; display: block; }
.chz-strip-body { min-width: 0; }
.chz-strip-title { font-size: 13px; font-weight: 700; color: var(--gray-900); line-height: 1.4; margin-bottom: 2px; }
.chz-strip-sub { font-size: 12px; color: var(--gray-500); line-height: 1.5; }
.chz-strip-sub a { color: var(--fg-link); text-decoration: underline; text-underline-offset: 2px; }

/* Ссылки на свидетельства товарных знаков */
.spectable .v .tm-link { color: var(--fg-link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.spectable .v .tm-link:hover { color: var(--fg-link-hover); }
a.badge.badge--ok { cursor: pointer; text-decoration: none; }

/* Компактные карточки документов (страница «Безопасность») */
.safety-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 200px)); gap: 16px; }
.sdoc { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.sdoc:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.sdoc-sheet { aspect-ratio: 0.72; background: var(--gray-50); border-bottom: 1px solid var(--border); overflow: hidden; }
.sdoc-sheet img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.sdoc-cap { padding: 10px 12px; font-size: 11.5px; font-weight: 700; color: var(--gray-800); line-height: 1.35; }
.sdoc-cap .role { display: block; font-weight: 400; color: var(--gray-500); font-size: 10.5px; margin-top: 3px; font-family: var(--font-mono); }

/* Подзаголовок h3 внутри статьи */
.article .article-h3 { font-size: 17px; font-weight: 700; color: var(--gray-900); margin: 28px 0 10px; }

/* Трёхколоночная галерея (питч) */
.article-gallery--3 { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 640px) {
  .article-gallery--3 { grid-template-columns: 1fr !important; }
}

/* Cookie-бар */
.cookiebar { position: fixed; left: 18px; bottom: 18px; z-index: 96; max-width: 460px; background: var(--gray-0, #fff); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-3); padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.cookiebar p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--gray-700); }
.cookiebar a { color: var(--fg-link); text-decoration: underline; cursor: pointer; }
@media (max-width: 560px) {
  .cookiebar { left: 10px; right: 10px; bottom: 10px; flex-direction: column; align-items: stretch; }
}
