/* =====================================================
   PAGES.CSS — Стили для внутренних страниц
   ===================================================== */

/* Sticky nav на внутренних страницах (pages.css грузится поверх styles.css) */
.main-nav { position: sticky; top: 0; }

/* ── Обёртка страницы ── */
.page-body { min-height: 60vh; }

/* =====================================================
   ХЛЕБНЫЕ КРОШКИ
   ===================================================== */
.breadcrumbs { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; padding: 16px 0 0; }
.breadcrumbs__item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--clr-text-2); }
.breadcrumbs__item a { color: var(--clr-text-2); text-decoration: none; transition: color .15s; }
.breadcrumbs__item a:hover { color: var(--clr-primary); }
.breadcrumbs__sep { color: var(--clr-border); user-select: none; font-size: 15px; line-height: 1; }
.breadcrumbs__item--current { color: var(--clr-text-muted); }

/* ── Заголовок страницы ── */
.page-header { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 22px; flex-wrap: wrap; gap: 12px; }
.page-header__title { font-size: 24px; font-weight: 700; color: var(--clr-text); }
.page-header__meta { font-size: 14px; color: var(--clr-text-2); }
.page-header__action { font-size: 13px; color: var(--clr-red); cursor: pointer; background: none; border: none; font-family: inherit; padding: 0; }
.page-header__action:hover { text-decoration: underline; }

/* =====================================================
   СТРАНИЦА КАТАЛОГА
   ===================================================== */
.catalog-page { padding: 0 0 56px; }
.catalog-layout { display: grid; grid-template-columns: 248px 1fr; gap: 24px; padding-top: 16px; }

/* ── Sidebar / Фильтры ── */
.filters-sidebar {
  background: var(--clr-white); border: 1px solid var(--clr-border);
  border-radius: var(--radius-md); align-self: start; position: sticky; top: 76px;
}
.filters-header { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--clr-border); }
.filters-title { font-size: 14px; font-weight: 600; color: var(--clr-text); }
.filters-reset { font-size: 12px; color: var(--clr-primary); cursor: pointer; background: none; border: none; font-family: inherit; padding: 0; }
.filters-reset:hover { text-decoration: underline; }
.filters-close { display: none; }

/* Catalog page title */
.catalog-page-title { font-size: 22px; font-weight: 700; color: var(--clr-text); margin: 0 0 16px; line-height: 1.2; }
.filter-section { padding: 12px 16px; border-bottom: 1px solid var(--clr-border); }
.filter-section:last-child { border-bottom: none; }
.filter-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; cursor: pointer; user-select: none; }
.filter-section__name { font-size: 13px; font-weight: 600; color: var(--clr-text); }
.filter-section__arrow { width: 16px; height: 16px; color: var(--clr-text-2); transition: transform .2s; flex-shrink: 0; }
.filter-section.is-collapsed .filter-section__arrow { transform: rotate(-90deg); }
.filter-section.is-collapsed .filter-section__body { display: none; }
.filter-search-wrap { display: flex; align-items: center; border: 1px solid var(--clr-border); border-radius: 6px; margin-bottom: 8px; transition: border-color .18s; }
.filter-search-wrap:focus-within { border-color: var(--clr-primary); }
.filter-search-wrap input { flex: 1; padding: 6px 9px; font-size: 12px; color: var(--clr-text); background: none; border: none; outline: none; font-family: inherit; }
.filter-search-wrap input::placeholder { color: var(--clr-text-muted); }
.filter-search-wrap svg { width: 13px; height: 13px; color: var(--clr-text-muted); margin-right: 8px; flex-shrink: 0; }
.filter-list { display: flex; flex-direction: column; gap: 1px; }
.filter-list--scroll { max-height: 260px; overflow-y: auto; padding-right: 4px; }
.filter-checkbox { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; }
.filter-checkbox input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--clr-primary); cursor: pointer; flex-shrink: 0; }
.filter-checkbox__label { font-size: 12.5px; color: var(--clr-text); flex: 1; line-height: 1.35; }
.filter-checkbox__count { font-size: 11px; color: var(--clr-text-muted); }
.filter-show-more { font-size: 12px; color: var(--clr-primary); cursor: pointer; margin-top: 5px; background: none; border: none; font-family: inherit; padding: 0; display: block; }
.filter-show-more:hover { text-decoration: underline; }

/* ── Category drill-down (catalog sidebar) — one level at a time, mirrors the CRM's /crm/catalog nav ── */
.cat-drilldown { gap: 0; }
.cat-row { border-radius: 6px; padding: 5px 6px; margin: 0 -6px; display: flex; align-items: center; }
.cat-row:hover { background: var(--clr-primary-light); }
.cat-row.active { background: var(--clr-primary-light); }
.cat-row.active .filter-checkbox__label { color: var(--clr-primary); font-weight: 600; }
.cat-row__chev { width: 13px; height: 13px; color: var(--clr-text-muted); flex-shrink: 0; opacity: .6; }
.cat-row--back { gap: 6px; font-size: 12.5px; color: var(--clr-text-2); text-decoration: none; margin-bottom: 2px; }
.cat-row--back .cat-row__chev--back { opacity: 1; }
.cat-row--current { font-size: 13px; font-weight: 700; color: var(--clr-text); border-left: 3px solid var(--clr-primary); padding-left: 8px; margin: 2px -6px 6px; }
/* ── Price filter: dual-handle range slider ──
   Standard overlay technique: two native <input type="range"> stacked on the same
   track. Each input's own hit area is transparent/pointer-events:none — only its
   thumb (::-webkit-slider-thumb / ::-moz-range-thumb) is clickable — so dragging
   never accidentally grabs the wrong handle. */
.price-slider { position: relative; padding-top: 2px; }
.price-slider__values { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--clr-text); margin-bottom: 16px; }
.price-slider__values-sep { color: var(--clr-text-muted); font-weight: 400; }
.price-slider__track { position: relative; height: 4px; background: var(--clr-border); border-radius: 100px; margin: 0 2px; }
.price-slider__range { position: absolute; top: 0; bottom: 0; background: var(--clr-primary); border-radius: 100px; }
.price-slider__input {
  position: absolute; top: 50%; left: 0; width: 100%; height: 20px; margin: 0;
  transform: translateY(-50%);
  -webkit-appearance: none; appearance: none; background: none; pointer-events: none; outline: none;
}
.price-slider__input--min { z-index: 3; }
.price-slider__input--max { z-index: 4; }
.price-slider__input::-webkit-slider-runnable-track { -webkit-appearance: none; background: none; height: 20px; }
.price-slider__input::-moz-range-track { background: none; border: none; height: 20px; }
.price-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 16px; height: 16px; border-radius: 50%; background: var(--clr-white);
  border: 2px solid var(--clr-primary); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.price-slider__input::-moz-range-thumb {
  pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--clr-white);
  border: 2px solid var(--clr-primary); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.price-slider__apply { width: 100%; margin-top: 14px; }

/* ── Основная область каталога ── */
.catalog-main { min-width: 0; }
.catalog-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.catalog-count { font-size: 13px; color: var(--clr-text-2); }
.catalog-count strong { color: var(--clr-text); font-weight: 600; }
/* Chips on their own row inside toolbar */
.catalog-toolbar .filter-chips { flex-basis: 100%; order: 10; margin-bottom: 0; margin-top: 2px; }
.catalog-sort-wrap { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.catalog-sort-label { font-size: 12.5px; color: var(--clr-text-2); white-space: nowrap; }
.catalog-sort-select {
  padding: 7px 28px 7px 10px; border: 1px solid var(--clr-border); border-radius: 6px;
  font-size: 12.5px; color: var(--clr-text); font-family: inherit;
  background: var(--clr-white) url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa0a6' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 9px center / 11px;
  -webkit-appearance: none; appearance: none; cursor: pointer; outline: none; transition: border-color .18s;
}
.catalog-sort-select:focus { border-color: var(--clr-primary); }
.view-toggle { display: flex; gap: 3px; }
.view-toggle__btn { width: 32px; height: 32px; border: 1px solid var(--clr-border); border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--clr-text-2); transition: all .15s; background: var(--clr-white); }
.view-toggle__btn:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.view-toggle__btn.is-active { background: var(--clr-primary); border-color: var(--clr-primary); color: #fff; }
.view-toggle__btn svg { width: 15px; height: 15px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; align-items: center; }
.filter-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 10px; background: var(--clr-primary-light); border-radius: 20px; font-size: 12px; color: var(--clr-primary); }
.filter-chip__remove { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; background: none; color: var(--clr-primary); padding: 0; opacity: .7; }
.filter-chip__remove:hover { opacity: 1; }
.filter-chip__remove svg { width: 10px; height: 10px; }
.filter-chips-clear { font-size: 12px; color: var(--clr-red); cursor: pointer; background: none; border: none; font-family: inherit; padding: 0; }
.filter-chips-clear:hover { text-decoration: underline; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; }
.pagination__btn { min-width: 36px; height: 36px; padding: 0 6px; border: 1px solid var(--clr-border); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--clr-text-2); cursor: pointer; transition: all .15s; background: var(--clr-white); font-family: inherit; }
.pagination__btn:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.pagination__btn.is-active { background: var(--clr-primary); border-color: var(--clr-primary); color: #fff; font-weight: 600; }
.pagination__btn:disabled { opacity: .4; pointer-events: none; }
.pagination__btn svg { width: 14px; height: 14px; }
.pagination__dots { padding: 0 4px; color: var(--clr-text-muted); }
.mobile-filter-btn { display: none; }

/* =====================================================
   СТРАНИЦА ТОВАРА
   ===================================================== */
.product-page { padding: 0 0 56px; }
.product-layout { display: grid; grid-template-columns: 1fr 410px; gap: 44px; align-items: start; margin-top: 16px; margin-bottom: 48px; }
/* min-width:0 overrides the grid item's default min-width:auto, which otherwise
   lets the gallery track grow to the image's natural intrinsic size (826px+) instead
   of shrinking to fit the 1fr column — the classic CSS Grid "image blows out the
   layout" bug, worst on mobile where it forces the whole page to scroll sideways. */
.product-gallery { position: sticky; top: 68px; min-width: 0; }
/* Same fix, same reason, other grid item: without min-width:0 here, this column's
   default min-width:auto uses its content's un-shrunk min-content size as the floor.
   #productQtyControl's two hard-pinned 40px +/- buttons have a wider min-content
   floor than the single "В корзину" button they replace once the item is in the
   cart, so the whole product-info column (and the page) grew and shifted right
   the moment an item was added — only visible after add-to-cart, easy to miss. */
.product-info { min-width: 0; }
.product-gallery__main { aspect-ratio: 1; background: var(--clr-white); border: 1px solid var(--clr-border); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; overflow: hidden; position: relative; cursor: zoom-in; }
.product-gallery__main svg { width: 42%; height: 42%; }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
/* The store's default/fallback image (shown when a product has no photo of
   its own) is a wide banner-style graphic, not a square product shot —
   object-fit:cover crops most of it away in this square container. Show it
   whole instead, like product cards already do (.product-card__img img). */
.product-gallery__main img.is-fallback-img { object-fit: contain; }
.product-gallery__zoom-hint {
  position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
  color: var(--clr-text-2); pointer-events: none;
}
.product-gallery__zoom-hint svg { width: 17px; height: 17px; }
/* No max-width previously — with flex-shrink:0 thumbs (fixed 68px each), a product
   with many photos overflowed the row past the gallery column and blew out the page
   width, same root cause as the main image fix above. overflow-x:auto scrolls the
   row in place instead; max-width:100% is the actual fix (caps it to the parent). */
.product-gallery__thumbs { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; padding-bottom: 2px; }
.product-gallery__thumb { width: 68px; height: 68px; border: 1.5px solid var(--clr-border); border-radius: var(--radius-sm); background: var(--clr-bg); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: border-color .15s; flex-shrink: 0; overflow: hidden; }
.product-gallery__thumb.is-active { border-color: var(--clr-primary); background: var(--clr-primary-light); }
.product-gallery__thumb svg { width: 30px; height: 30px; color: var(--clr-primary); opacity: .55; }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.product-gallery__thumb.is-active svg { opacity: 1; }

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 700;
  background: rgba(10,12,20,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.lightbox-overlay.is-open { opacity: 1; pointer-events: auto; }
.lightbox__stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 60px; touch-action: pan-y; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox__close {
  position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; font-size: 26px; font-weight: 300; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .15s; z-index: 2;
}
.lightbox__close:hover { background: rgba(255,255,255,.2); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background .15s; z-index: 2;
}
.lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__counter { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: 13px; }

@media (max-width: 900px) {
  .lightbox__stage { padding: 24px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
  .lightbox__close { top: 10px; right: 10px; }
}

.product-info__badges { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 4px; margin-bottom: 10px; }
.product-info__title { font-size: 24px; font-weight: 700; color: var(--clr-text); line-height: 1.25; margin-bottom: 10px; }
.product-code {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; margin-bottom: 14px;
  background: var(--clr-bg); border: 1px solid var(--clr-border); border-radius: var(--radius-sm);
  font: inherit; cursor: pointer; transition: border-color .15s, background .15s;
}
.product-code:hover { border-color: var(--clr-primary); background: var(--clr-primary-light); }
.product-code__label { font-size: 12.5px; color: var(--clr-text-2); }
.product-code__value { font-size: 14px; font-weight: 700; color: var(--clr-text); font-family: ui-monospace, 'SF Mono', Consolas, monospace; letter-spacing: .01em; }
.product-code__icon { width: 14px; height: 14px; color: var(--clr-text-muted); flex-shrink: 0; }
.product-code.is-copied .product-code__icon { color: var(--clr-green, #2E7D32); }
.product-info__meta { display: flex; flex-direction: column; gap: 5px; margin-bottom: 18px; }
.product-info__meta-row { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--clr-text-2); }
.product-info__meta-row a { color: var(--clr-primary); text-decoration: none; }
.product-info__meta-row a:hover { text-decoration: underline; }
.product-info__meta-label { color: var(--clr-text-muted); min-width: 80px; }
.product-price-block { padding: 16px; background: var(--clr-bg); border-radius: var(--radius-md); margin-bottom: 18px; }
.product-price { font-size: 32px; font-weight: 700; color: var(--clr-text); line-height: 1; }
.product-price__old { font-size: 16px; color: var(--clr-text-muted); text-decoration: line-through; margin-top: 4px; }
.product-price__unit { font-size: 12px; color: var(--clr-text-muted); margin-top: 3px; }
.product-modifiers { margin-bottom: 18px; }
.mod-group { margin-bottom: 14px; }
.mod-group-title { font-size: 13px; font-weight: 600; color: var(--clr-text); margin-bottom: 7px; }
.mod-required { color: var(--clr-red); }
.mod-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.mod-chip { padding: 7px 13px; border: 1.5px solid var(--clr-border); border-radius: var(--radius-sm); font-size: 13px; color: var(--clr-text); background: var(--clr-white); cursor: pointer; transition: border-color .15s, background .15s, color .15s; font-family: inherit; }
.mod-chip:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.mod-chip.is-selected { border-color: var(--clr-primary); background: var(--clr-primary); color: #fff; }
.mod-delta { font-size: 11px; opacity: .85; margin-left: 4px; }
.product-add-btn:disabled { opacity: .55; cursor: not-allowed; }
.product-add-btn:disabled:hover { background: var(--clr-primary); }
.product-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.product-actions__btn-row { display: flex; gap: 10px; }
/* Same rule as product cards: the qty-control only exists once the item is actually in the
   cart. Before that, there's nothing to adjust — just the "В корзину" button. Clicking it
   always adds 1, then this same control appears to adjust the real cart quantity. */
.product-actions__qty { display: none; height: 46px; flex: 1; min-width: 0; }
.product-actions__qty .qty-btn { width: 40px; height: 44px; font-size: 19px; flex-shrink: 0; }
.product-actions__qty .qty-value { flex: 1; width: auto; min-width: 0; height: 44px; font-size: 14px; }
#productActions.is-in-cart #productAddBtn { display: none; }
#productActions.is-in-cart .product-actions__qty { display: flex; }
.product-add-btn { flex: 1; height: 46px; background: var(--clr-primary); color: #fff; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; transition: background .2s; border: none; font-family: inherit; }
.product-add-btn:hover { background: var(--clr-primary-dark); }
.product-add-btn svg { width: 18px; height: 18px; }
.product-wish-btn { width: 46px; height: 46px; border: 1.5px solid var(--clr-border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; transition: all .2s; color: var(--clr-text-2); background: var(--clr-white); }
.product-wish-btn:hover, .product-wish-btn.is-active { border-color: #C62828; color: #C62828; }
.product-wish-btn.is-active svg { fill: #C62828; }
.product-wish-btn svg { width: 20px; height: 20px; }
.product-cart-link-btn { width: 46px; height: 46px; border: 1.5px solid var(--clr-border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; transition: all .2s; color: var(--clr-text-2); background: var(--clr-white); }
.product-cart-link-btn:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.product-cart-link-btn svg { width: 20px; height: 20px; }
/* Same /contact submission as "Заказать звонок" (see assets/js/site.js's shared call/
   quick-order modal) — most buyers reach for this instead of adding to cart, so it
   gets its own full-width row rather than being squeezed into the icon-button row. */
.product-quick-order-btn { width: 100%; height: 46px; background: var(--clr-white); color: var(--clr-primary); border: 1.5px solid var(--clr-primary); border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; transition: all .2s; font-family: inherit; }
.product-quick-order-btn:hover { background: var(--clr-primary-light); }
.product-quick-order-btn svg { width: 18px; height: 18px; }
.product-features { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--clr-border); }
.product-feature { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--clr-text-2); }
.product-feature svg { width: 15px; height: 15px; color: var(--clr-primary); flex-shrink: 0; }
.product-contacts { display: flex; flex-direction: column; gap: 6px; }
.product-contacts__label { font-size: 12px; color: var(--clr-text-muted); }
.product-contacts__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.product-contacts__btns .btn { padding: 8px 14px; font-size: 12.5px; }
.product-contacts__btns .btn svg { width: 15px; height: 15px; }
/* ── Trust badges (product page, above "Похожие товары") ── */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0; }
.trust-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  background: var(--clr-white); border: 1px solid var(--clr-border); border-radius: var(--radius-md);
  text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.trust-card:hover { border-color: var(--clr-primary); box-shadow: 0 4px 16px rgba(21,101,192,.08); }
.trust-card__head { display: flex; align-items: center; gap: 12px; }
.trust-card__icon { width: 34px; height: 34px; color: var(--clr-primary); flex-shrink: 0; }
.trust-card__title { font-size: 17px; font-weight: 700; color: var(--clr-text); margin: 0; }
.trust-card__text { font-size: 13.5px; line-height: 1.6; color: var(--clr-text-2); margin: 0; }
@media (max-width: 680px) { .trust-grid { grid-template-columns: 1fr; } }

.product-tabs-section { margin-bottom: 48px; }
.product-tabs-nav { display: flex; border-bottom: 2px solid var(--clr-border); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.product-tabs-nav::-webkit-scrollbar { display: none; }
.product-tab-btn { padding: 11px 18px; font-size: 14px; font-weight: 500; color: var(--clr-text-2); border: none; border-bottom: 2.5px solid transparent; margin-bottom: -2px; cursor: pointer; transition: color .18s, border-color .18s; white-space: nowrap; background: none; font-family: inherit; }
.product-tab-btn:hover { color: var(--clr-text); }
.product-tab-btn.is-active { color: var(--clr-primary); border-bottom-color: var(--clr-primary); }
.product-tab-panel { display: none; }
.product-tab-panel.is-active { display: block; }
.product-description { font-size: 14px; line-height: 1.7; color: var(--clr-text); max-width: 720px; }
.product-description p { margin-bottom: 14px; }
/* A short label paragraph ("Применение:", "Тип:", "Размер:") right before a list
   reads as its intro line, not a standalone paragraph — tighten the gap so the
   list feels attached to its label instead of getting the same 14px every
   paragraph-to-paragraph break gets. */
.product-description p:has(+ ul),
.product-description p:has(+ ol) { margin-bottom: 6px; }
.product-description ul { padding-left: 22px; margin-bottom: 14px; }
.product-description li { margin-bottom: 6px; }
/* Supplier-authored HTML (this is the raw product description, sanitized but not
   rewritten) sometimes hardcodes a fixed width/height on embedded media, e.g.
   <video width="600" height="600">. Without this, that renders at its literal
   pixel size regardless of the actual (often much narrower, on mobile) container
   width, overflowing the description block and pushing the whole page sideways. */
.product-description img,
.product-description video,
.product-description iframe,
.product-description embed,
.product-description object { max-width: 100%; height: auto; }
.characteristics-table { width: 100%; border-collapse: collapse; max-width: 680px; }
.characteristics-table tr:nth-child(even) { background: var(--clr-bg); }
.characteristics-table td { padding: 10px 16px; font-size: 13.5px; border-bottom: 1px solid var(--clr-border); }
.characteristics-table td:first-child { color: var(--clr-text-2); width: 44%; }
.characteristics-table td:last-child { color: var(--clr-text); font-weight: 500; }
.reviews-summary { display: flex; align-items: center; gap: 24px; padding: 18px; background: var(--clr-bg); border-radius: var(--radius-md); margin-bottom: 24px; }
.reviews-big-score { font-size: 46px; font-weight: 700; color: var(--clr-text); line-height: 1; }
.reviews-stars-row { display: flex; gap: 3px; margin-bottom: 3px; }
.star-icon { width: 17px; height: 17px; color: #F5A623; }
.reviews-count-text { font-size: 13px; color: var(--clr-text-2); }
.review-card { padding: 18px 0; border-bottom: 1px solid var(--clr-border); }
.review-card:last-child { border-bottom: none; }
.review-card__head { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }
.review-card__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--clr-primary-light); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; color: var(--clr-primary); flex-shrink: 0; }
.review-card__name { font-size: 13.5px; font-weight: 600; color: var(--clr-text); }
.review-card__date { font-size: 12px; color: var(--clr-text-muted); }
.review-card__stars { display: flex; gap: 2px; margin-bottom: 6px; }
.review-card__stars .star-icon { width: 13px; height: 13px; }
.review-card__text { font-size: 13.5px; color: var(--clr-text); line-height: 1.6; }
.review-empty-note { font-size: 13.5px; color: var(--clr-text-2); margin-bottom: 20px; }
.reviews-load-more { display: block; margin: 4px auto 8px; padding: 10px 28px; }
.reviews-load-more:disabled { opacity: .6; cursor: default; }
.review-form { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--clr-border); display: flex; flex-direction: column; gap: 13px; }
.review-form h4 { font-size: 15px; font-weight: 700; color: var(--clr-text); }
.review-form__row { display: flex; gap: 20px; align-items: flex-start; }
.review-form__row .form-field { flex: 1; }
@media (max-width: 680px) { .review-form__row { flex-direction: column; gap: 13px; } }
.review-form__stars { display: flex; gap: 4px; }
.review-form__star { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: none; border: none; padding: 0; }
.review-form__star .star-icon { width: 20px; height: 20px; fill: none; color: var(--clr-border); transition: fill .15s, color .15s; }
.review-form__star:hover .star-icon,
.review-form__star.is-active .star-icon { fill: #F5A623; color: #F5A623; }
.review-form__success { font-size: 13.5px; color: var(--clr-green); font-weight: 500; margin-top: 13px; }
.documents-list { display: flex; flex-direction: column; gap: 8px; }
.document-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--clr-border); border-radius: 8px; text-decoration: none; color: var(--clr-text); transition: border-color .15s; }
.document-item:hover { border-color: var(--clr-primary); }
.document-item__icon { width: 38px; height: 38px; background: #FFEDED; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.document-item__icon svg { width: 20px; height: 20px; color: #C62828; }
.document-item__name { font-size: 13.5px; font-weight: 500; flex: 1; }
.document-item__size { font-size: 12px; color: var(--clr-text-muted); }

/* =====================================================
   СТРАНИЦА ИЗБРАННОГО
   ===================================================== */
.favorites-page { padding: 0 0 56px; }
.favorites-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.product-card--removable { position: relative; }
.product-card__remove-overlay { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s; border: none; box-shadow: 0 1px 4px rgba(0,0,0,.1); z-index: 2; }
.product-card__remove-overlay:hover { background: #FFEDED; }
.product-card__remove-overlay svg { width: 13px; height: 13px; color: #C62828; }
.favorites-empty { text-align: center; padding: 80px 20px; background: var(--clr-white); border: 1px solid var(--clr-border); border-radius: var(--radius-md); }
.favorites-empty__icon { width: 72px; height: 72px; background: var(--clr-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.favorites-empty__icon svg { width: 36px; height: 36px; color: var(--clr-text-muted); }
.favorites-empty h3 { font-size: 20px; font-weight: 700; color: var(--clr-text); margin-bottom: 8px; }
.favorites-empty p { font-size: 14px; color: var(--clr-text-2); margin-bottom: 24px; }

/* =====================================================
   СТРАНИЦА КОРЗИНЫ
   ===================================================== */
.cart-page { padding: 0 0 56px; }
.cart-layout { display: grid; grid-template-columns: 1fr 308px; gap: 24px; align-items: start; }
.cart-table { background: var(--clr-white); border: 1px solid var(--clr-border); border-radius: var(--radius-md); overflow: hidden; }
.cart-table__head { display: grid; grid-template-columns: 1fr 90px 130px 100px 40px; gap: 12px; padding: 11px 16px; background: var(--clr-bg); border-bottom: 1px solid var(--clr-border); }
.cart-table__head-cell { font-size: 11.5px; font-weight: 600; color: var(--clr-text-2); text-transform: uppercase; letter-spacing: .04em; }
.cart-item { display: grid; grid-template-columns: 1fr 90px 130px 100px 40px; gap: 12px; padding: 16px; border-bottom: 1px solid var(--clr-border); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.cart-item__info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cart-item__img { width: 62px; height: 62px; background: var(--clr-primary-light); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.cart-item__img svg { width: 36px; height: 28px; }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.cart-item__img img.is-fallback-img { object-fit: contain; }
.cart-item__name { font-size: 13px; font-weight: 500; color: var(--clr-text); line-height: 1.3; margin-bottom: 2px; }
.cart-item__brand { font-size: 12px; color: var(--clr-text-2); }
.cart-item__art { font-size: 11px; color: var(--clr-text-muted); }
.cart-item__unit-price { font-size: 13px; color: var(--clr-text-2); text-align: center; }
.cart-item__total { font-size: 15px; font-weight: 700; color: var(--clr-text); }
.cart-item__remove { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; transition: background .15s; color: var(--clr-text-muted); border: none; background: none; }
.cart-item__remove:hover { background: #FFEDED; color: #C62828; }
.cart-item__remove svg { width: 15px; height: 15px; }
.ci-stock { font-size: 11.5px; margin-top: 3px; font-weight: 500; }
.ci-stock--ok   { color: var(--clr-green); }
.ci-stock--warn { color: var(--clr-orange); }
.ci-stock--nope { color: var(--clr-red); }
.cart-item--unavail { opacity: .6; }
.cart-item--unavail .cart-item__total { color: var(--clr-red); font-size: 12px; font-weight: 500; }
.cart-warn-box { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #FFF4E5; border: 1px solid #FFD9A0; border-radius: var(--radius-md); color: #8A5A00; font-size: 13px; margin-bottom: 14px; }
.cart-summary { background: var(--clr-white); border: 1px solid var(--clr-border); border-radius: var(--radius-md); padding: 20px; position: sticky; top: 68px; }
.cart-summary__title { font-size: 16px; font-weight: 700; color: var(--clr-text); margin-bottom: 16px; }
.cart-summary__row { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--clr-text-2); margin-bottom: 9px; }
.cart-summary__row--total { font-size: 18px; font-weight: 700; color: var(--clr-text); padding-top: 12px; border-top: 1px solid var(--clr-border); margin-top: 4px; margin-bottom: 18px; }
.cart-summary__row--total span:last-child { color: var(--clr-primary); }
.cart-summary .btn { width: 100%; padding: 13px; font-size: 15px; margin-bottom: 8px; }
.cart-summary__note { font-size: 12px; color: var(--clr-text-muted); text-align: center; line-height: 1.5; }
.cart-empty { text-align: center; padding: 80px 20px; background: var(--clr-white); border: 1px solid var(--clr-border); border-radius: var(--radius-md); }
.cart-empty__icon { width: 72px; height: 72px; background: var(--clr-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.cart-empty__icon svg { width: 36px; height: 36px; color: var(--clr-text-muted); }
.cart-empty h3 { font-size: 20px; font-weight: 700; color: var(--clr-text); margin-bottom: 8px; }
.cart-empty p { font-size: 14px; color: var(--clr-text-2); margin-bottom: 24px; }

/* =====================================================
   ОФОРМЛЕНИЕ ЗАКАЗА
   ===================================================== */
.checkout-page { padding: 0 0 56px; }
.checkout-steps { display: flex; align-items: center; margin: 20px 0 28px; }
.checkout-step { display: flex; align-items: center; gap: 8px; }
.checkout-step__num { width: 28px; height: 28px; border-radius: 50%; background: var(--clr-border); color: var(--clr-text-2); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .2s; }
.checkout-step.is-active .checkout-step__num { background: var(--clr-primary); color: #fff; }
.checkout-step.is-done .checkout-step__num { background: var(--clr-green); color: #fff; }
.checkout-step__label { font-size: 13px; color: var(--clr-text-2); white-space: nowrap; }
.checkout-step.is-active .checkout-step__label { color: var(--clr-text); font-weight: 500; }
.checkout-step__line { flex: 1; height: 1px; background: var(--clr-border); margin: 0 10px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.checkout-section { background: var(--clr-white); border: 1px solid var(--clr-border); border-radius: var(--radius-md); padding: 22px; margin-bottom: 14px; }
.checkout-section__title { font-size: 15px; font-weight: 700; color: var(--clr-text); margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 12.5px; font-weight: 500; color: var(--clr-text-2); }
.form-field input, .form-field select, .form-field textarea { border: 1.5px solid var(--clr-border); border-radius: 8px; padding: 10px 13px; font-size: 14px; font-family: inherit; color: var(--clr-text); transition: border-color .2s; background: var(--clr-white); -webkit-appearance: none; appearance: none; outline: none; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--clr-primary); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--clr-text-muted); }
.form-field select { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa0a6' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 11px; padding-right: 32px; cursor: pointer; }
.delivery-option { display: flex; align-items: flex-start; gap: 11px; padding: 13px; border: 1.5px solid var(--clr-border); border-radius: 8px; cursor: pointer; transition: border-color .18s; margin-bottom: 8px; }
.delivery-option:last-child { margin-bottom: 0; }
.delivery-option.is-selected { border-color: var(--clr-primary); background: var(--clr-primary-light); }
.delivery-option input[type="radio"] { margin-top: 2px; accent-color: var(--clr-primary); flex-shrink: 0; width: 16px; height: 16px; cursor: pointer; }
.delivery-option__name { font-size: 13.5px; font-weight: 500; color: var(--clr-text); margin-bottom: 2px; }
.delivery-option__desc { font-size: 12px; color: var(--clr-text-2); }
.delivery-option__price { font-size: 13.5px; font-weight: 600; color: var(--clr-text); white-space: nowrap; margin-left: auto; }
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.payment-option { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1.5px solid var(--clr-border); border-radius: 8px; cursor: pointer; transition: border-color .18s; }
.payment-option.is-selected { border-color: var(--clr-primary); background: var(--clr-primary-light); }
.payment-option input[type="radio"] { accent-color: var(--clr-primary); width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; }
.payment-option__icon { width: 32px; height: 32px; background: var(--clr-bg); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.payment-option__icon svg { width: 17px; height: 17px; color: var(--clr-primary); }
.payment-option__name { font-size: 13px; font-weight: 500; color: var(--clr-text); }

.docs-upload-zone { margin-top: 14px; border: 1.5px dashed var(--clr-border); border-radius: 10px; padding: 14px 16px; cursor: pointer; transition: border-color .15s; }
.docs-upload-zone:hover { border-color: var(--clr-primary); }
.docs-upload-zone__label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--clr-text); }
.docs-upload-zone__label svg { width: 16px; height: 16px; color: var(--clr-primary); flex-shrink: 0; }
.docs-upload-zone__hint { font-size: 11.5px; color: var(--clr-text-muted); margin-top: 3px; margin-left: 24px; }
.docs-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.docs-list:empty { margin-top: 0; }
.docs-list-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--clr-bg); border-radius: 7px; font-size: 12.5px; cursor: default; }
.docs-list-row.is-uploading { opacity: .65; }
.docs-list-row.is-err { background: #FFEDED; }
.docs-list-row__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--clr-text); }
.docs-list-row__size { color: var(--clr-text-muted); white-space: nowrap; }
.docs-list-row__status { font-size: 11px; color: var(--clr-text-muted); white-space: nowrap; }
.docs-list-row__status--err { color: #C62828; }
.docs-list-row__rm { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 5px; color: var(--clr-text-muted); flex-shrink: 0; font-size: 13px; line-height: 1; }
.docs-list-row__rm:hover { background: #FFEDED; color: #C62828; }
.checkout-summary { background: var(--clr-white); border: 1px solid var(--clr-border); border-radius: var(--radius-md); padding: 20px; position: sticky; top: 68px; }
.checkout-summary__title { font-size: 15px; font-weight: 700; color: var(--clr-text); margin-bottom: 14px; }
.checkout-items { display: flex; flex-direction: column; gap: 11px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--clr-border); }
.checkout-item { display: flex; align-items: center; gap: 10px; }
.checkout-item__img { width: 46px; height: 46px; background: var(--clr-primary-light); border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.checkout-item__img svg { width: 26px; height: 20px; }
.checkout-item__name { font-size: 12.5px; color: var(--clr-text); flex: 1; min-width: 0; line-height: 1.35; }
.checkout-item__price { font-size: 13px; font-weight: 600; color: var(--clr-text); white-space: nowrap; }
.checkout-totals { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.checkout-total-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--clr-text-2); }
.checkout-total-row--main { font-size: 16px; font-weight: 700; color: var(--clr-text); padding-top: 10px; border-top: 1px solid var(--clr-border); margin-top: 4px; }
.checkout-total-row--main span:last-child { color: var(--clr-primary); }
.checkout-agree { font-size: 12px; color: var(--clr-text-muted); line-height: 1.5; margin-bottom: 12px; }
.checkout-agree a { color: var(--clr-primary); }
.checkout-summary .btn { width: 100%; padding: 13px; font-size: 15px; }

/* =====================================================
   ИНФОРМАЦИОННЫЕ СТРАНИЦЫ
   ===================================================== */
.info-page { padding: 0 0 56px; }
.info-hero { padding: 32px 0 38px; background: linear-gradient(135deg, #EEF5FF 0%, #F5F9FF 100%); }
.info-hero__title { font-size: 30px; font-weight: 700; color: var(--clr-text); margin-bottom: 10px; }
.info-hero__subtitle { font-size: 14px; color: var(--clr-text-2); max-width: 500px; line-height: 1.6; }
.info-content { padding-top: 40px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.stat-card { text-align: center; padding: 22px 14px; background: var(--clr-white); border: 1px solid var(--clr-border); border-radius: var(--radius-md); }
.stat-card__num { font-size: 34px; font-weight: 700; color: var(--clr-primary); line-height: 1; margin-bottom: 6px; }
.stat-card__label { font-size: 12.5px; color: var(--clr-text-2); line-height: 1.4; }
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 48px; }
.about-section__text h3 { font-size: 21px; font-weight: 700; color: var(--clr-text); margin-bottom: 12px; }
.about-section__text p { font-size: 14px; color: var(--clr-text-2); line-height: 1.7; margin-bottom: 12px; }
.about-section__img { background: var(--clr-primary-light); border-radius: var(--radius-lg); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.about-section__img svg { width: 38%; height: 38%; color: var(--clr-primary); opacity: .3; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 48px; }
.team-card { text-align: center; }
.team-card__photo { width: 100%; aspect-ratio: 1; background: var(--clr-primary-light); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin-bottom: 11px; }
.team-card__photo svg { width: 38%; height: 38%; color: var(--clr-primary); opacity: .4; }
.team-card__name { font-size: 14px; font-weight: 600; color: var(--clr-text); margin-bottom: 3px; }
.team-card__role { font-size: 12.5px; color: var(--clr-text-2); }
.partners-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.partner-badge { padding: 10px 20px; border: 1px solid var(--clr-border); border-radius: 8px; font-size: 13px; color: var(--clr-text-2); background: var(--clr-white); }

/* Контакты */
.breadcrumbs--plain { padding-bottom: 4px; }

.contacts-hero { position: relative; margin: 18px 0 36px; }
.contacts-hero__map { width: 100%; height: 520px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--clr-border); }
.contacts-hero__map iframe { display: block; width: 100% !important; height: 100% !important; border: 0; }

.contacts-card { background: var(--clr-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px 26px; }
.contacts-card__header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; }
.contacts-card__header h1 { font-size: 20px; font-weight: 700; color: var(--clr-text); margin: 0; }
.contacts-card__company { font-size: 13px; font-weight: 600; color: var(--clr-text-2); }
.contacts-card__row { padding: 10px 0; border-top: 1px solid var(--clr-border); }
.contacts-card__row:first-of-type { border-top: none; padding-top: 0; }
.contacts-card__row--pairs { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.contacts-card__field { font-size: 13px; }
.contacts-card__field .contacts-card__label { color: var(--clr-text-2); }
.contacts-card__field .contacts-card__value { color: var(--clr-text); font-weight: 600; margin-left: 3px; }
.contacts-card__row > .contacts-card__label { color: var(--clr-text-2); font-size: 13px; }
.contacts-card__row > .contacts-card__value { display: block; font-size: 13.5px; color: var(--clr-text); font-weight: 500; margin-top: 2px; line-height: 1.5; }
.contacts-card__channels { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.contacts-card__channel { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--clr-text); text-decoration: none; }
.contacts-card__channel svg { width: 17px; height: 17px; color: var(--clr-primary); flex-shrink: 0; }
.contacts-card__channel:hover { color: var(--clr-primary); }
.contacts-card__hours { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--clr-border); font-size: 12.5px; color: var(--clr-text-2); }

@media (min-width: 861px) {
  .contacts-card { position: absolute; left: 24px; bottom: 24px; z-index: 5; max-width: 480px; }
}
@media (max-width: 860px) {
  .contacts-hero { display: flex; flex-direction: column; gap: 16px; }
  .contacts-card { order: -1; }
  .contacts-hero__map { height: 300px; }
}

.contact-form-section { margin-bottom: 40px; }
.contact-form-card { background: var(--clr-white); border: 1px solid var(--clr-border); border-radius: var(--radius-md); padding: 26px 28px; }
.contact-form-card h3 { font-size: 16px; font-weight: 700; color: var(--clr-text); margin-bottom: 18px; }
.contact-form-card form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.contact-form-card .form-field:nth-child(3) { grid-column: 1 / -1; }
.contact-form-card button { grid-column: 1 / -1; width: auto; justify-self: start; min-width: 220px; }
@media (max-width: 640px) {
  .contact-form-card form { grid-template-columns: 1fr; }
  .contact-form-card button { width: 100%; }
}

/* Доставка */
.delivery-page-section { margin-bottom: 40px; }
.delivery-page-section h2 { font-size: 20px; font-weight: 700; color: var(--clr-text); margin-bottom: 18px; }
.delivery-page-section p { font-size: 14px; line-height: 1.7; color: var(--clr-text); margin-bottom: 14px; }
.delivery-page-section p:last-child { margin-bottom: 0; }
.delivery-page-section ul { margin: 0 0 14px; padding-left: 22px; }
.delivery-page-section ul:last-child { margin-bottom: 0; }
.delivery-page-section ul li { list-style: disc; font-size: 14px; line-height: 1.7; color: var(--clr-text); margin-bottom: 6px; }
/* :not(.btn) — a button-styled link (e.g. warranty.php's "Связаться с нами")
   needs its own white/outline color from .btn--primary/.btn--outline, not this
   plain-text-link blue; without the exclusion this rule's higher specificity
   overrode it, rendering blue text on a blue background until hover. */
.delivery-page-section a:not(.btn) { color: var(--clr-primary); }
.delivery-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.delivery-card { background: var(--clr-white); border: 1px solid var(--clr-border); border-radius: var(--radius-md); padding: 18px; }
.delivery-card__icon { width: 42px; height: 42px; background: var(--clr-primary-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--clr-primary); margin-bottom: 11px; }
.delivery-card__icon svg { width: 21px; height: 21px; }
.delivery-card h4 { font-size: 14px; font-weight: 600; color: var(--clr-text); margin-bottom: 5px; }
.delivery-card p { font-size: 13px; color: var(--clr-text-2); line-height: 1.55; }
.payment-table { width: 100%; border-collapse: collapse; background: var(--clr-white); border: 1px solid var(--clr-border); border-radius: var(--radius-md); overflow: hidden; }
.payment-table th { padding: 11px 16px; text-align: left; font-size: 12px; font-weight: 600; color: var(--clr-text-2); background: var(--clr-bg); border-bottom: 1px solid var(--clr-border); text-transform: uppercase; letter-spacing: .04em; }
.payment-table td { padding: 12px 16px; font-size: 13.5px; color: var(--clr-text); border-bottom: 1px solid var(--clr-border); }
.payment-table tr:last-child td { border-bottom: none; }
.info-callout { display: flex; gap: 14px; padding: 16px; background: var(--clr-primary-light); border-radius: var(--radius-md); border-left: 3px solid var(--clr-primary); margin-bottom: 24px; }
.info-callout svg { width: 20px; height: 20px; color: var(--clr-primary); flex-shrink: 0; margin-top: 1px; }
.info-callout p { font-size: 13.5px; color: var(--clr-text); line-height: 1.6; }

/* =====================================================
   СТРАНИЦА БРЕНДА
   ===================================================== */
.brand-page { padding: 0 0 56px; }
.brand-hero { display: flex; align-items: center; gap: 28px; padding: 24px 0 28px; border-bottom: 1px solid var(--clr-border); margin-bottom: 28px; }
.brand-hero__logo { width: 110px; height: 72px; background: var(--clr-white); border: 1px solid var(--clr-border); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; object-fit: contain; padding: 8px; box-sizing: border-box; }
.brand-hero__info { flex: 1; }
.brand-hero__name { font-size: 28px; font-weight: 700; color: var(--clr-text); margin-bottom: 5px; }
.brand-hero__desc { font-size: 14px; color: var(--clr-text-2); line-height: 1.6; max-width: 560px; }
.brand-hero__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.brand-hero__tag { padding: 3px 10px; background: var(--clr-bg); border: 1px solid var(--clr-border); border-radius: 20px; font-size: 12px; color: var(--clr-text-2); }

/* =====================================================
   БЛОГ
   ===================================================== */
.blog-page { padding: 0 0 56px; }
.blog-filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.blog-filter-btn { padding: 7px 16px; border: 1px solid var(--clr-border); border-radius: 20px; font-size: 13px; color: var(--clr-text-2); cursor: pointer; background: var(--clr-white); font-family: inherit; transition: all .15s; }
.blog-filter-btn:hover, .blog-filter-btn.is-active { background: var(--clr-primary); border-color: var(--clr-primary); color: #fff; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.blog-card { background: var(--clr-white); border: 1px solid var(--clr-border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; text-decoration: none; color: inherit; }
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-card__img { aspect-ratio: 16/9; background: var(--clr-primary-light); display: flex; align-items: center; justify-content: center; }
.blog-card__img svg { width: 28%; height: 28%; color: var(--clr-primary); opacity: .38; }
.blog-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.blog-card__cat { font-size: 11px; font-weight: 600; color: var(--clr-primary); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.blog-card__title { font-size: 15px; font-weight: 600; color: var(--clr-text); line-height: 1.35; margin-bottom: 7px; text-wrap: pretty; }
.blog-card__excerpt { font-size: 13px; color: var(--clr-text-2); line-height: 1.55; flex: 1; margin-bottom: 12px; }
.blog-card__footer { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--clr-text-muted); }
.blog-card__read { color: var(--clr-primary); font-weight: 500; }

/* =====================================================
   АДАПТИВНОСТЬ
   ===================================================== */
@media (max-width: 1060px) {
  .catalog-layout { grid-template-columns: 220px 1fr; }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .product-layout { grid-template-columns: 1fr 340px; gap: 28px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .checkout-layout { grid-template-columns: 1fr 270px; }
}

@media (max-width: 900px) {
  .favorites-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-layout { grid-template-columns: 1fr; }
  /* Sticky-bottom checkout bar instead of a static block at the end of the item
     list — with several items, scrolling all the way down to "Оформить заказ"
     every time got tedious; the total + CTA now stay reachable no matter how long
     the list is. Trimmed to just those two (title/item-count line/"Продолжить
     покупки" hidden below) so the bar stays a thin strip, not a second page. */
  .cart-summary {
    /* top:auto cancels the base (desktop sticky-sidebar) rule's top:68px — with
       both top and bottom set on a fixed element it stretches to fill the span
       between them instead of sizing to its own content. */
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 250;
    margin: 0; border-radius: 0; border-width: 1px 0 0; box-shadow: 0 -6px 20px rgba(0,0,0,.08);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }
  .cart-summary__title,
  .cart-summary__row:not(.cart-summary__row--total),
  .cart-summary > a.btn--outline {
    display: none;
  }
  .cart-summary__row--total { margin: 0 0 10px; padding-top: 0; border-top: none; }
  .cart-summary .btn { margin-bottom: 0; }
  /* Reserves room at the bottom of the page so the last item/warning box isn't
     hidden behind the now-fixed bar, and keeps ↑scroll-top clear of it too. */
  .cart-page { padding-bottom: 92px; }
  /* #scrollTopBtn lives in footer.php, a sibling of <main>, not a descendant of
     .cart-page — ".cart-page .scroll-top-btn" would never match; :has() scopes off
     <body> instead, which is a real ancestor of both. */
  body:has(.cart-page) .scroll-top-btn { bottom: 126px; }
  .cart-table__head { display: none; }
  /* Photo + name/art/stock no longer fit on one row with qty/total/remove
     once the item thumbnail was added — row 1 is the product (full width,
     room for the name to wrap), row 2 is qty + total + remove. */
  .cart-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
  .cart-item__info { flex: 1 1 100%; }
  .cart-item__unit-price { display: none; }
  /* .qty-control's width:100% (desktop: fills its grid column) would otherwise
     fill this whole flex row and push .cart-item__remove onto a 3rd row. */
  .cart-item .qty-control { width: auto; }
  .cart-item__remove { margin-left: auto; }
  .delivery-cards { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .about-section { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .main-nav { position: sticky; top: 0; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters-sidebar { display: none; position: fixed; left: 0; top: 0; bottom: 0; height: 100vh; height: 100dvh; width: min(300px, 88vw); margin: 0; z-index: 350; border-radius: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; box-shadow: 4px 0 24px rgba(0,0,0,.2); }
  .filters-sidebar.is-open { display: flex; flex-direction: column; }
  .filters-sidebar.is-open .filters-header,
  .filters-sidebar.is-open .filter-section { flex-shrink: 0; }
  .filters-backdrop { display: none; position: fixed; inset: 0; background: rgba(15,20,40,.45); z-index: 349; }
  .filters-backdrop.is-open { display: block; }
  .mobile-filter-btn { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1.5px solid var(--clr-primary); border-radius: var(--radius-sm); font-size: 13.5px; color: var(--clr-primary); background: none; font-family: inherit; cursor: pointer; margin-bottom: 14px; }
  .mobile-filter-btn svg { width: 15px; height: 15px; }
  .filters-close { display: flex; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--clr-border); background: none; cursor: pointer; color: var(--clr-text-2); align-items: center; justify-content: center; margin-left: 6px; flex-shrink: 0; }
  .filters-close:hover { background: var(--clr-bg); }
  .filters-close svg { width: 15px; height: 15px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mobile-filter-btn { width: 100%; justify-content: center; margin: 12px 0; }
  .catalog-page-title { font-size: 19px; margin: 0 0 8px; }
  .catalog-toolbar { margin-bottom: 12px; gap: 8px; }
  .catalog-sort-wrap { margin-left: 0; width: 100%; }
  .catalog-sort-label { display: none; }
  .catalog-sort-select { flex: 1; }
  .product-layout { grid-template-columns: 1fr; gap: 20px; }
  .product-gallery { position: static; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .favorites-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .delivery-cards { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .payment-options { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .brand-hero { flex-direction: column; align-items: flex-start; gap: 14px; }
  .info-hero__title { font-size: 24px; }
  .page-header__title { font-size: 20px; }
  .checkout-steps { overflow-x: auto; padding-bottom: 4px; }
  .checkout-step__label { display: none; }
  .checkout-step.is-active .checkout-step__label { display: block; }
  /* Hiding the line total outright (as before) left mobile shoppers with no way
     to see what each cart line costs — only the page-bottom grand total. Give
     it its own full-width row (via `order`, independent of DOM order) instead
     of competing for space with the qty-control on the same row. */
  .cart-item__info { order: 1; }
  .cart-item__total { display: block; order: 2; width: 100%; text-align: left; }
  .cart-item .qty-control { order: 3; }
  .cart-item__remove { order: 4; }
}

@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: 1fr 1fr; }
  .favorites-grid { grid-template-columns: 1fr 1fr; }
}
