/* ============================================================
   Масла.сайт — pages2.css (brand, maps hub/transport/equipment,
   map detail, analogs). Light, modern, on-brand.
   ============================================================ */

/* ---------------- BRAND ---------------- */
.brand-hero { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; padding: 22px 0 8px; }
.brand-logo-box { aspect-ratio: 1.4/1; border-radius: var(--r-lg); border: var(--hairline); background: linear-gradient(160deg, #fff, var(--soft)); display: flex; align-items: center; justify-content: center; }
.brand-logo-box .nm { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: 0.04em; color: var(--ink); }
.brand-hero .claim { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; line-height: 1.1; color: var(--masla-navy); margin: 4px 0 16px; }
.brand-hero .claim em { font-style: normal; color: var(--cyan); }
.brand-hero p { font-size: 15px; line-height: 1.6; color: var(--neutral-500); margin-bottom: 12px; max-width: 680px; }
.brand-hero .acts { display: flex; gap: 12px; margin-top: 20px; }

.brand-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.brand-cat { border: var(--hairline); border-radius: var(--r-md); padding: 22px; display: flex; gap: 14px; align-items: flex-start; transition: box-shadow 160ms, transform 150ms, border-color 160ms; }
.brand-cat:hover { box-shadow: var(--el-2); transform: translateY(-2px); border-color: transparent; }
.brand-cat .ic { width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--soft); color: var(--masla-navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 160ms, color 160ms; }
.brand-cat:hover .ic { background: var(--cyan-50); color: var(--cyan-700); }
.brand-cat .nm { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--masla-navy); margin-bottom: 4px; }
.brand-cat .d { font-size: 13px; color: var(--neutral-500); line-height: 1.45; }

/* страница бренда: счётчик товаров, заглушка «в разработке», пустой каталог */
.cwt-brand .brand-prod-count { font-size: 13px; color: var(--neutral-500); font-variant-numeric: tabular-nums; white-space: nowrap; }
.brand-wip {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--soft); border: var(--hairline); border-radius: var(--r-lg);
  padding: 26px 30px;
}
.brand-wip .ic {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--r-sm);
  background: rgba(190,159,99,0.16); color: var(--bronze-700);
  display: flex; align-items: center; justify-content: center;
}
.brand-wip h3 { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.015em; color: var(--masla-navy); margin: 2px 0 8px; }
.brand-wip p { font-size: 14px; line-height: 1.6; color: var(--neutral-500); max-width: 70ch; }
.brand-empty {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 36px; color: var(--neutral-500); font-size: 14.5px; line-height: 1.5;
  background: var(--soft); border-radius: var(--r-md); text-align: center;
}
.brand-empty svg { color: var(--neutral-400); flex-shrink: 0; }
/* логотип бренда в hero-боксе (реальная картинка вместо текста) */
.brand-logo-box .brand-logo-img { max-width: 82%; max-height: 72%; width: auto; height: auto; object-fit: contain; display: block; }
/* импортированное описание производителя — читаемая колонка */
.brand-about .prose { max-width: 860px; }
.brand-about .prose h2 { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.015em; color: var(--masla-navy); margin: 22px 0 12px; }
.brand-about .prose h4 { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--masla-navy); margin: 18px 0 8px; }
.brand-about .prose ul { margin: 0 0 14px; padding-left: 20px; }
.brand-about .prose li { font-size: 15px; line-height: 1.6; color: var(--neutral-700); margin-bottom: 6px; }
.brand-about .prose a { color: var(--cyan-700); }
.brand-about .prose a:hover { color: var(--cyan-900); }
/* логотип бренда на карточке листинга */
.bp-card-logo .bp-logo-img { max-height: 42px; max-width: 88%; width: auto; object-fit: contain; }
/* сетка товаров бренда: стандартный WC ul.products → грид карточек .pc (как .pgrid) */
.cwt-brand ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cwt-brand ul.products > li { margin: 0; width: auto; float: none; }
.cwt-brand .woocommerce-pagination { margin-top: 28px; }
@media (max-width: 1100px) { .cwt-brand ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .cwt-brand ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .cwt-brand ul.products { grid-template-columns: 1fr; } }

/* ---------------- MAPS HUB & landings ---------------- */
.maps-split { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; padding-top: 8px; }
.maps-intro h2 { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; color: var(--masla-navy); margin-bottom: 14px; }
.maps-intro p { font-size: 14.5px; color: var(--neutral-500); line-height: 1.55; margin-bottom: 22px; }
.maps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.map-cat {
  position: relative; border: var(--hairline); border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column; min-height: 150px; padding: 22px; background: #fff;
  transition: box-shadow 170ms, transform 150ms, border-color 170ms;
}
.map-cat:hover { box-shadow: var(--el-3); transform: translateY(-2px); border-color: transparent; }
.map-cat .ic { width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--soft); color: var(--masla-navy); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; transition: background 160ms, color 160ms; }
.map-cat:hover .ic { background: var(--cyan-50); color: var(--cyan-700); }
.map-cat .nm { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--masla-navy); margin-bottom: 5px; }
.map-cat .d { font-size: 13px; color: var(--neutral-500); line-height: 1.45; margin-bottom: 14px; }
.map-cat .ct { margin-top: auto; font-size: 12.5px; color: var(--neutral-400); display: flex; align-items: center; justify-content: space-between; }
.map-cat .ct b { color: var(--masla-navy); font-weight: 700; }
.map-cat .go { color: var(--neutral-300); transition: transform 150ms, color 150ms; }
.map-cat:hover .go { color: var(--cyan); transform: translateX(2px); }

/* equipment grouped maps */
.eq-section { margin-top: 8px; }
.eq-section + .eq-section { margin-top: 28px; }
.eq-cat-head { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.015em; color: var(--masla-navy); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.eq-cat-head .tag { font-size: 12px; font-weight: 500; color: var(--neutral-400); }
.eq-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.eq-group { border: var(--hairline); border-radius: var(--r-md); padding: 20px 22px; }
.eq-group .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: var(--hairline); }
.eq-group .brand .logo { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--masla-navy); filter: grayscale(1); }
.eq-group .brand .cnt { margin-left: auto; font-size: 12px; color: var(--neutral-400); }
.eq-group ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.eq-group li a { display: block; font-size: 13.5px; color: var(--neutral-700); padding: 6px 0; transition: color 120ms; }
.eq-group li a:hover { color: var(--cyan-700); }
.eq-group .more { margin-top: 10px; }

/* ---------------- MAP DETAIL ---------------- */
.md-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding-top: 10px; }
.md-photo { border-radius: var(--r-lg); overflow: hidden; border: var(--hairline); background: linear-gradient(160deg, #fff, var(--soft)); min-height: 380px; display: flex; align-items: center; justify-content: center; position: relative; }
.md-photo .ph-ic { color: var(--neutral-300); }
.md-photo .badge-pill { position: absolute; top: 16px; left: 16px; }
.md-desc p { font-size: 14.5px; line-height: 1.6; color: var(--neutral-700); margin-bottom: 14px; }

.md-table-sec { padding-top: 44px; }
.md-table { width: 100%; border-collapse: collapse; border: var(--hairline); border-radius: var(--r-md); overflow: hidden; }
.md-table thead th { background: var(--soft); text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--neutral-500); padding: 14px 18px; }
.md-table tbody tr { border-top: var(--hairline); transition: background 120ms; }
.md-table tbody tr:hover { background: var(--soft); }
.md-table td { padding: 16px 18px; font-size: 14px; vertical-align: top; }
.md-table .node { font-weight: 600; color: var(--masla-navy); width: 24%; }
.md-table .prod a { color: var(--cyan-700); font-weight: 500; }
.md-table .prod a:hover { color: var(--cyan-900); }
.md-table .prod .sku { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--neutral-400); margin-top: 3px; }
.md-table .period { width: 22%; color: var(--masla-navy); font-weight: 600; white-space: nowrap; }
.md-table .add-cell { width: 130px; text-align: right; }

/* ---------------- ANALOGS ---------------- */
.an-intro { font-size: 15px; line-height: 1.6; color: var(--neutral-500); max-width: 880px; margin-top: 14px; }
.an-toolbar { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; }
.an-toolbar .spacer { flex: 1; }

.an-compare { display: grid; grid-template-columns: 200px 1fr 1fr; border: var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
.an-col-head { padding: 22px; border-bottom: var(--hairline); }
.an-col-head.label { background: var(--soft); }
.an-col-head .role { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--r-pill); margin-bottom: 14px; }
.an-col-head .role.orig { background: var(--soft-2); color: var(--neutral-500); }
.an-col-head .role.rf { background: var(--success-bg); color: var(--success); }
.an-col-head .pack-wrap { height: 120px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 14px; }
.an-col-head .pack-wrap .pdrum { width: 50px; height: 104px; margin: 0; }
.an-col-head .nm { font-size: 14.5px; font-weight: 600; color: var(--masla-navy); line-height: 1.35; min-height: 40px; }
.an-col-head .nm:hover { color: var(--cyan-700); }
.an-col-head .price { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--masla-navy); margin: 12px 0 4px; }
.an-col-head .price.muted { color: var(--neutral-400); font-size: 16px; }
.an-col-head .nds { font-size: 11px; color: var(--neutral-400); }
.an-col-head .stk { display: inline-flex; margin-top: 12px; }
.an-col-head .btn { width: 100%; margin-top: 16px; }
.an-label-cell { background: var(--soft); padding: 22px; display: flex; align-items: flex-end; }
.an-label-cell .t { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--masla-navy); }

.an-row { display: contents; }
.an-row .k { background: var(--soft); padding: 13px 22px; font-size: 13.5px; color: var(--neutral-500); border-top: var(--hairline); display: flex; align-items: center; }
.an-row .v { padding: 13px 22px; font-size: 14px; color: var(--masla-navy); font-weight: 600; border-top: var(--hairline); border-left: var(--hairline); display: flex; align-items: center; }
.an-row .v.best { color: var(--success); }
.an-desc-row .k { background: var(--soft); padding: 16px 22px; font-size: 13.5px; color: var(--neutral-500); border-top: var(--hairline); }
.an-desc-row .v { padding: 16px 22px; font-size: 13px; color: var(--neutral-500); line-height: 1.5; border-top: var(--hairline); border-left: var(--hairline); }

/* ---------------- БРЕНД-ПОСАДОЧНАЯ карт смазок (.bm-*) — порт pages2.css v6 ---------------- */
.bm-head { display: grid; grid-template-columns: 132px 1fr; gap: 30px; align-items: start; padding-top: 10px; }
.bm-plate { width: 132px; height: 132px; border: var(--hairline); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; line-height: 1.1; color: var(--masla-navy); background: linear-gradient(160deg, #fff, var(--soft)); filter: grayscale(1); }
.bm-head-tx h1 { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -0.024em; color: var(--masla-navy); line-height: 1.05; margin-top: 12px; }
.bm-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.bm-meta-i { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--neutral-500); }
.bm-head-tx .lead { font-size: 16px; line-height: 1.6; color: var(--neutral-500); max-width: 820px; margin-top: 16px; }

.bm-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: var(--hairline); border-radius: var(--r-md); overflow: hidden; }
.bm-stat { padding: 18px 22px; border-left: var(--hairline); }
.bm-stat:first-child { border-left: 0; }
.bm-stat .n { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; color: var(--masla-navy); }
.bm-stat .l { font-size: 12.5px; color: var(--neutral-500); margin-top: 4px; line-height: 1.35; }

.bm-toolbar { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; flex-wrap: wrap; }
.bm-toolbar h2 { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; color: var(--masla-navy); display: flex; align-items: baseline; gap: 10px; }
.bm-toolbar h2 .ct { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--neutral-400); }
.bm-search { display: flex; align-items: center; gap: 9px; margin-left: auto; min-width: 320px; background: #fff; border: var(--hairline); border-radius: var(--r-sm); height: 42px; padding: 0 14px; transition: border-color 150ms, box-shadow 150ms; }
.bm-search:focus-within { border-color: var(--cyan); box-shadow: var(--ring); }
.bm-search svg { color: var(--neutral-400); flex-shrink: 0; }
.bm-search input { flex: 1; border: 0; outline: none; background: transparent; font-family: var(--font-body); font-size: 14.5px; color: var(--masla-navy); min-width: 0; }

.bm-series { margin-top: 28px; }
.bm-series-head { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; color: var(--masla-navy); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.bm-series-head .tag { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--neutral-400); }
.bm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.bm-card { border: var(--hairline); border-radius: var(--r-md); padding: 0; background: #fff; display: flex; align-items: stretch; overflow: hidden; transition: box-shadow 170ms, transform 150ms, border-color 170ms; }
.bm-card:hover { box-shadow: var(--el-3); transform: translateY(-2px); border-color: transparent; }
.bm-card-img { position: relative; width: 30%; flex-shrink: 0; min-height: 168px; background: var(--soft); border-right: var(--hairline); display: flex; align-items: center; justify-content: center; }
.bm-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bm-card-img .bm-ph { color: var(--neutral-300); }
.bm-card-body { flex: 1; min-width: 0; padding: 18px 20px; display: flex; flex-direction: column; }
.bm-model { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--masla-navy); line-height: 1.25; }
.bm-chips { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.bm-chips span { font-size: 12px; font-weight: 600; color: var(--neutral-700); background: var(--soft); padding: 4px 11px; border-radius: var(--r-pill); }
.bm-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--neutral-500); }
.bm-foot b { color: var(--masla-navy); font-weight: 700; }
.bm-foot .go { display: inline-flex; align-items: center; gap: 6px; color: var(--cyan-700); font-weight: 600; }
.bm-foot .go svg { transition: transform 150ms; }
.bm-card:hover .bm-foot .go svg { transform: translateX(2px); }
.bm-empty { padding: 40px 22px; text-align: center; color: var(--neutral-400); font-size: 15px; border: 1.5px dashed var(--border-strong); border-radius: var(--r-md); }

@media (max-width: 1024px) {
  .brand-hero, .maps-split, .md-top { grid-template-columns: 1fr; }
  .brand-cats { grid-template-columns: repeat(2, 1fr); }
  .bm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .maps-grid, .eq-groups, .brand-cats { grid-template-columns: 1fr; }
  .eq-group ul { grid-template-columns: 1fr; }
  .an-compare { grid-template-columns: 140px 1fr 1fr; }
  .md-table .add-cell { display: none; }
  .bm-head { grid-template-columns: 1fr; gap: 18px; }
  .bm-head-tx h1 { font-size: 28px; }
  .bm-stats { grid-template-columns: repeat(2, 1fr); }
  .bm-stat:nth-child(3) { border-left: 0; }
  .bm-search { margin-left: 0; width: 100%; min-width: 0; }
}
@media (max-width: 600px) {
  .an-compare { grid-template-columns: 1fr; display: block; }
  .an-compare .an-col-head.label { display: none; }
  .an-row .k, .an-row .v { border-left: 0; }
  .bm-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   О компании (page-o-kompanii) — порт pages.css (About, v3).
   .cat-crumbs / .cat-help уже в catalog.css; адаптив — в market-responsive.css.
   ============================================================ */

/* page hero */
.pg-hero { padding: 14px 0 8px; }
.pg-hero .h-eyebrow { margin-bottom: 14px; }
.pg-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -0.024em; color: var(--masla-navy); line-height: 1.05; }
.pg-hero .lead { font-size: 17px; line-height: 1.55; color: var(--neutral-500); max-width: 720px; margin-top: 14px; }

/* generic prose */
.prose p { font-size: 15px; line-height: 1.65; color: var(--neutral-700); margin-bottom: 14px; max-width: 760px; }
.prose h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.015em; color: var(--masla-navy); margin: 8px 0 12px; }

/* stat band */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; border-top: var(--hairline); border-bottom: var(--hairline); }
.stat-cell .num { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; color: var(--masla-navy); line-height: 1; }
.stat-cell .num sup { font-size: 16px; color: var(--cyan); }
.stat-cell .lab { font-size: 13px; color: var(--neutral-500); margin-top: 8px; max-width: 200px; }

/* split: text + visual */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-visual { border-radius: var(--r-lg); overflow: hidden; min-height: 360px; position: relative;
  background:
    radial-gradient(120% 100% at 30% 20%, rgba(42,155,196,0.18), transparent 55%),
    linear-gradient(150deg, #0C141D 0%, #16273A 60%, #1E4A6B 100%);
  display: flex; align-items: center; justify-content: center; color: #fff; padding: 32px;
}
.split-visual .quote { max-width: 380px; }
.split-visual .quote .mark { font-family: var(--font-display); font-weight: 800; font-size: 56px; color: var(--bronze); line-height: 0.6; }
.split-visual .quote p { font-size: 18px; line-height: 1.45; margin: 16px 0; }
.split-visual .quote .by { font-size: 13px; color: rgba(255,255,255,0.6); }

/* principles / value list */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principle { border: var(--hairline); border-radius: var(--r-md); padding: 24px; transition: box-shadow 160ms, transform 150ms, border-color 160ms; }
.principle:hover { box-shadow: var(--el-2); transform: translateY(-2px); border-color: transparent; }
.principle .ic { width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--cyan-50); color: var(--cyan-700); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.principle h4 { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--masla-navy); margin-bottom: 8px; }
.principle p { font-size: 13.5px; color: var(--neutral-500); line-height: 1.5; }

/* audience cards */
.aud-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aud-card { background: var(--soft); border-radius: var(--r-md); padding: 24px; }
.aud-card .pct { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--cyan-700); letter-spacing: -0.02em; }
.aud-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--masla-navy); margin: 8px 0 6px; }
.aud-card p { font-size: 13.5px; color: var(--neutral-500); line-height: 1.5; }

/* requisites */
.req-card { background: var(--soft); border-radius: var(--r-lg); padding: 28px 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 40px; }
.req-card .r { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: var(--hairline); font-size: 14px; }
.req-card .r .k { color: var(--neutral-500); }
.req-card .r .v { color: var(--masla-navy); font-weight: 600; text-align: right; }

/* ============================================================
   Агентам/Дилерам (page-max-form-agent) — порт pages3.css (Agents).
   .pg-hero/.principles/.split/.sec-head — общие (уже выше/в base).
   Форма — нативная анкета по дизайн-системе (НЕ виджет Bitrix24):
   отправка через наш capture-эндпоинт, лиды уходят в CRM по вебхуку.
   ============================================================ */
.ag-manager { display: grid; grid-template-columns: 64px 1fr; gap: 18px; border: var(--hairline); border-radius: var(--r-lg); padding: 24px; background: linear-gradient(160deg, #fff, var(--soft)); align-items: center; }
.ag-manager .ava { width: 64px; height: 64px; border-radius: var(--r-pill); background: linear-gradient(140deg, #1E4A6B, #0C141D); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; flex-shrink: 0; }
.ag-manager h3 { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--masla-navy); margin-bottom: 6px; }
.ag-manager p { font-size: 14px; color: var(--neutral-500); line-height: 1.55; max-width: 720px; }
.ag-manager .who { font-size: 13px; color: var(--cyan-700); font-weight: 600; margin-top: 8px; }

/* нативная анкета — структура из market/Agents.jsx + pages3.css */
.ag-form { border: var(--hairline); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--el-1); display: flex; flex-direction: column; gap: 16px; background: #fff; }
.ag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ag-field { display: flex; flex-direction: column; gap: 7px; }
.ag-field.full { grid-column: 1 / -1; }
.ag-field label { font-size: 13px; font-weight: 600; color: var(--masla-navy); }
.ag-field label .req { color: var(--danger); }
.ag-field input, .ag-field select, .ag-field textarea { box-sizing: border-box; width: 100%; border: var(--hairline); border-radius: var(--r-sm); padding: 12px 13px; font-family: var(--font-body); font-size: 14px; color: var(--masla-navy); outline: none; background: #fff; transition: border-color 140ms, box-shadow 140ms; }
.ag-field textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.ag-field input:focus, .ag-field select:focus, .ag-field textarea:focus { border-color: var(--cyan); box-shadow: var(--ring); }
.ag-field input::placeholder, .ag-field textarea::placeholder { color: var(--neutral-400); }
.ag-field .hint { font-size: 12px; color: var(--neutral-400); line-height: 1.45; }
.ag-file { display: inline-flex; align-items: center; gap: 9px; border: 1.5px dashed var(--border-strong); border-radius: var(--r-sm); padding: 11px 16px; font-size: 13px; font-weight: 600; color: var(--neutral-500); cursor: pointer; transition: border-color 140ms, color 140ms, background 140ms; width: fit-content; }
.ag-file:hover { border-color: var(--cyan); color: var(--cyan-700); background: var(--cyan-50); }
.ag-file svg { color: var(--cyan); flex-shrink: 0; }
.ag-file input[type="file"] { display: none; }
.ag-file .fname { color: var(--cyan-700); font-weight: 600; }
.ag-check { display: flex; gap: 11px; align-items: flex-start; padding: 14px 16px; background: var(--soft); border-radius: var(--r-md); cursor: pointer; }
.ag-check .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-strong); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; margin-top: 1px; transition: background 120ms, border-color 120ms; }
.ag-check.on .box { background: var(--cyan); border-color: var(--cyan); }
.ag-check .box svg { opacity: 0; transition: opacity 120ms; }
.ag-check.on .box svg { opacity: 1; }
.ag-check .t { font-size: 14px; font-weight: 600; color: var(--masla-navy); }
.ag-check .t span { display: block; font-weight: 400; color: var(--neutral-500); font-size: 12.5px; margin-top: 3px; line-height: 1.45; }
.ag-form .submit { width: 100%; margin-top: 4px; }
.ag-form .submit:disabled { background: var(--neutral-300); color: #fff; cursor: not-allowed; opacity: 1; }
.ag-collapse { display: none; }
.ag-collapse.show { display: block; }

/* служебные элементы нативных форм захвата (контакты + анкета) */
.cwt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cwt-form-msg { font-size: 13px; line-height: 1.45; margin-top: 12px; }
.cwt-form-msg:empty { display: none; }
.cwt-form-msg.is-sending { color: var(--neutral-500); }
.cwt-form-msg.is-error { color: var(--danger); }
.ct-success .cwt-again { margin-top: 4px; }

@media (max-width: 700px) {
  .ag-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ag-manager { grid-template-columns: 1fr; }
  .ag-form { padding: 20px; }
}

/* ============================================================
   Доставка и оплата (page-logistic) — порт pages.css (Delivery).
   Адаптив (.deliv-options/.steps-row/.pay-grid) — в market-responsive.css.
   ============================================================ */
.deliv-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.deliv-opt { border: var(--hairline); border-radius: var(--r-md); padding: 24px; }
.deliv-opt .ic { width: 50px; height: 50px; border-radius: var(--r-sm); background: var(--soft); color: var(--cyan-700); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.deliv-opt h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--masla-navy); margin-bottom: 6px; }
.deliv-opt .price-note { font-size: 13px; color: var(--cyan-700); font-weight: 600; margin-bottom: 12px; }
.deliv-opt p { font-size: 13.5px; color: var(--neutral-500); line-height: 1.55; }

.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pay-card { border: var(--hairline); border-radius: var(--r-md); padding: 24px; }
.pay-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--masla-navy); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.pay-card h4 .ic { color: var(--cyan); }
.pay-card ul { display: flex; flex-direction: column; gap: 10px; }
.pay-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--masla-navy); }
.pay-card li .ic { color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.pay-card li span { color: var(--neutral-500); font-size: 13px; }

.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-card { position: relative; padding: 22px; border-radius: var(--r-md); background: var(--soft); }
.step-card .n { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--cyan); line-height: 1; margin-bottom: 12px; }
.step-card h5 { font-weight: 700; font-size: 15px; color: var(--masla-navy); margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--neutral-500); line-height: 1.45; }

.faq { max-width: 820px; }
.faq-item { border-bottom: var(--hairline); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--masla-navy); }
.faq-q .ic { color: var(--neutral-400); transition: transform 200ms; flex-shrink: 0; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); color: var(--cyan); }
.faq-a { font-size: 14.5px; color: var(--neutral-500); line-height: 1.6; padding: 0 0 18px; max-width: 720px; display: none; }
.faq-item.open .faq-a { display: block; }

/* ============================================================
   КОНТАКТЫ (page-contact.php) — порт contacts.css из дизайна v4.
   Токены (--cyan/--soft/--hairline/--r-*/--el-*/--ring/--font-*) —
   из tokens.css темы (проверено: все есть).
   ============================================================ */
.ct-hero { padding: 30px 0 30px; }
.ct-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -0.02em; color: var(--masla-navy); margin: 12px 0 0; }
.ct-hero .lead { font-size: 16px; line-height: 1.6; color: var(--neutral-500); max-width: 70ch; margin-top: 14px; }

/* main grid: channels/info + form */
.ct-main { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.ct-left { display: flex; flex-direction: column; gap: 18px; }

/* channel cards */
.ct-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-channel {
  display: flex; flex-direction: column; background: #fff; border: var(--hairline);
  border-radius: var(--r-md); padding: 20px; transition: border-color 150ms, box-shadow 150ms, transform 150ms;
}
.ct-channel:hover { border-color: var(--cyan); box-shadow: var(--el-2); transform: translateY(-2px); }
.ct-channel .ic { width: 46px; height: 46px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.ct-channel.cyan .ic { background: var(--cyan-50); color: var(--cyan); }
.ct-channel.navy .ic { background: #EDF1F5; color: var(--masla-navy); }
.ct-channel.bronze .ic { background: rgba(190,159,99,0.16); color: var(--bronze-700); }
.ct-channel .lab { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--neutral-400); }
.ct-channel .val { font-size: 18px; font-weight: 700; color: var(--masla-navy); margin-top: 5px; }
.ct-channel .sub { font-size: 13px; color: var(--neutral-500); margin-top: 6px; line-height: 1.4; }

/* info block */
.ct-info { background: var(--soft); border-radius: var(--r-md); padding: 22px 24px; }
.ct-info-row { display: flex; gap: 14px; padding: 12px 0; }
.ct-info-row + .ct-info-row { border-top: var(--hairline); }
.ct-info-row .ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: var(--r-sm); background: #fff; color: var(--cyan); display: flex; align-items: center; justify-content: center; }
.ct-info-row .k { font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--neutral-400); margin-bottom: 4px; }
.ct-info-row .v { font-size: 14.5px; color: var(--masla-navy); line-height: 1.5; }
.ct-msgrs { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 14px; padding-top: 16px; border-top: var(--hairline); }
.ct-msgrs .ml { font-size: 13px; color: var(--neutral-500); }
.mchip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; color: #fff; transition: transform 120ms, filter 120ms; }
.mchip:hover { transform: translateY(-1px); filter: brightness(1.06); }
.mchip.tg { background: #2AABEE; }
.mchip.max { background: var(--masla-navy); }

/* form */
.ct-form-wrap { position: sticky; top: 92px; }
.ct-form { background: #fff; border: var(--hairline); border-radius: var(--r-lg); box-shadow: var(--el-2); padding: 28px; }
.ct-form-head h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; color: var(--masla-navy); }
.ct-form-head p { font-size: 14px; color: var(--neutral-500); line-height: 1.5; margin: 8px 0 22px; }
.ct-field { margin-bottom: 16px; }
.ct-field-row { display: flex; gap: 12px; }
.ct-field-row .ct-field { flex: 1; }
.ct-field label { display: block; font-size: 13px; font-weight: 600; color: var(--masla-navy); margin-bottom: 7px; }
.ct-field label .req { color: var(--cyan); }
.ct-field input, .ct-field textarea {
  width: 100%; box-sizing: border-box; border: var(--hairline); border-radius: var(--r-sm);
  padding: 13px 14px; font-family: var(--font-body); font-size: 15px; color: var(--masla-navy);
  outline: none; transition: border-color 140ms, box-shadow 140ms; background: #fff;
}
.ct-field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.ct-field input:focus, .ct-field textarea:focus { border-color: var(--cyan); box-shadow: var(--ring); }
.ct-field input::placeholder, .ct-field textarea::placeholder { color: var(--neutral-400); }
.ct-form .btn { width: 100%; margin-top: 4px; }
.ct-priv { font-size: 12px; color: var(--neutral-400); line-height: 1.45; margin-top: 14px; text-align: center; }

/* success */
.ct-success { background: #fff; border: var(--hairline); border-radius: var(--r-lg); box-shadow: var(--el-2); padding: 40px 30px; text-align: center; }
.ct-success-ic { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: flex; align-items: center; justify-content: center; }
.ct-success h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--masla-navy); }
.ct-success p { font-size: 14.5px; color: var(--neutral-500); line-height: 1.55; margin: 10px auto 22px; max-width: 42ch; }

/* departments */
.ct-depts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ct-dept { background: #fff; border: var(--hairline); border-radius: var(--r-md); padding: 22px; transition: border-color 150ms, box-shadow 150ms; }
.ct-dept:hover { border-color: var(--cyan); box-shadow: var(--el-2); }
.ct-dept h4 { font-size: 15.5px; font-weight: 700; color: var(--masla-navy); line-height: 1.3; }
.ct-dept p { font-size: 13px; color: var(--neutral-500); line-height: 1.45; margin: 8px 0 16px; min-height: 38px; }
.ct-dept .dl { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--masla-navy); padding: 6px 0; transition: color 120ms; }
.ct-dept .dl:hover { color: var(--cyan-700); }
.ct-dept .dl svg { color: var(--cyan); flex-shrink: 0; }

/* office: map + requisites */
.ct-office { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: stretch; }
.ct-map {
  position: relative; min-height: 320px; border-radius: var(--r-lg); overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(42,155,196,0.10), transparent 60%),
    linear-gradient(160deg, #EAF0F4, #DCE6EC);
  background-color: #E4EBEF;
  border: var(--hairline);
}
.ct-map::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(41,51,61,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41,51,61,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.ct-map::after {
  content: ""; position: absolute; left: -10%; top: 56%; width: 130%; height: 16px;
  background: rgba(42,155,196,0.22); transform: rotate(-7deg); filter: blur(1px);
}
.ct-map-pin {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%,-100%);
  width: 46px; height: 46px; border-radius: 50% 50% 50% 0; rotate: -45deg;
  background: var(--cyan); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(42,155,196,0.45);
}
.ct-map-pin svg { rotate: 45deg; }
.ct-map-card {
  position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: 320px;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--el-3); padding: 16px 18px;
}
.ct-map-card .t { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--neutral-400); }
.ct-map-card .a { font-size: 14.5px; font-weight: 600; color: var(--masla-navy); margin: 6px 0 10px; line-height: 1.4; }

.ct-req { background: var(--soft); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; }
.ct-req h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--masla-navy); }
.ct-req-rows { margin: 18px 0; flex: 1; }
.ct-req-rows .r { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: var(--hairline); font-size: 14px; }
.ct-req-rows .r .k { color: var(--neutral-500); }
.ct-req-rows .r .v { color: var(--masla-navy); font-weight: 600; font-family: var(--font-mono); }
.ct-req-acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* responsive */
@media (max-width: 980px) {
  .ct-main { grid-template-columns: 1fr; }
  .ct-form-wrap { position: static; }
  .ct-depts { grid-template-columns: repeat(2, 1fr); }
  .ct-office { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ct-hero h1 { font-size: 30px; }
  .ct-channels { grid-template-columns: 1fr; }
  .ct-field-row { flex-direction: column; gap: 0; }
  .ct-depts { grid-template-columns: 1fr; }
  .ct-dept p { min-height: 0; }
}

/* Контакты: ссылка «Открыть в Яндекс.Картах» на карточке карты */
.ct-map-card .tlink { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--cyan); }
.ct-map-card .tlink:hover { color: var(--cyan-700); }
.ct-map-card .tlink svg { width: 15px; height: 15px; }

/* ============================================================
   БРЕНДЫ (page-brands.php) — порт brands.css из дизайна v4.
   Данные: таксономия pa_manufacturer. Токены из tokens.css темы.
   Фильтр/поиск — navigation.js (делегирование, data-bp-*).
   ============================================================ */
/* hero */
.bp-hero {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  padding: 30px 0 36px; border-bottom: var(--hairline);
}
.bp-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -0.02em; color: var(--masla-navy); margin: 12px 0 0; }
.bp-hero .lead { font-size: 16px; line-height: 1.6; color: var(--neutral-500); max-width: 60ch; margin-top: 14px; }
.bp-hero-stats { display: flex; gap: 14px; }
.bp-stat { background: var(--soft); border-radius: var(--r-md); padding: 18px 22px; text-align: center; min-width: 116px; }
.bp-stat .num { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--cyan); letter-spacing: -0.01em; }
.bp-stat .lab { font-size: 12.5px; color: var(--neutral-500); margin-top: 6px; line-height: 1.35; }

/* featured / key partners */
.bp-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bp-feat-card {
  display: flex; flex-direction: column; background: var(--masla-navy);
  border-radius: var(--r-lg); padding: 24px; color: #fff; overflow: hidden; position: relative;
  transition: transform 150ms var(--ease-out), box-shadow 150ms;
}
.bp-feat-card:nth-child(1) { background: linear-gradient(150deg, #13161D, #1E2A33 70%, #244050); }
.bp-feat-card:hover { transform: translateY(-3px); box-shadow: var(--el-pop); }
.bp-feat-top { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.bp-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: var(--cyan); padding: 5px 11px; border-radius: var(--r-pill); }
.bp-feat-card:nth-child(2) .bp-tag { background: var(--bronze); }
.bp-feat-logo { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: 0.01em; line-height: 1; }
.bp-feat-desc { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.78); flex: 1; }
.bp-feat-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,0.6); margin-top: 16px; }
.bp-feat-meta .o { color: var(--cyan); font-weight: 600; }
.bp-feat-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.12); }
.bp-feat-foot .sk { font-size: 13px; color: rgba(255,255,255,0.7); }
.bp-feat-foot .sk b { color: #fff; font-weight: 700; }
.bp-feat-foot .go { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--cyan); transition: gap 150ms; }
.bp-feat-card:hover .go { gap: 11px; }
/* Контраст тёмных featured-карточек: `.bp-feat-card` — это <a>, и `.mk a{color:inherit}`
   (market-base, спец. 0,1,1) перебивал `.bp-feat-card{color:#fff}` (0,1,0); `.bp-feat-desc`
   (это <p>) перебивался `.cwt-main p:not([class*="ms-"])` (components, 0,2,1). В итоге имя
   бренда и описание уходили в тёмный ink на тёмном фоне (невидимо). Поднимаем специфичность. */
.cwt-main .bp-feat-card,
.cwt-main .bp-feat-card .bp-feat-logo { color: #fff; }
.cwt-main .bp-feat-card .bp-feat-desc { color: rgba(255,255,255,0.78); }
.cwt-main .bp-feat-card .bp-feat-meta { color: rgba(255,255,255,0.6); }
.cwt-main .bp-feat-card .bp-feat-foot .sk { color: rgba(255,255,255,0.7); }

/* toolbar: tabs + search */
.bp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.bp-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.bp-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-pill);
  border: var(--hairline); background: #fff; font-size: 14px; font-weight: 600; color: var(--masla-navy);
  transition: background 150ms, border-color 150ms, color 150ms;
}
.bp-tab:hover { border-color: var(--cyan); color: var(--cyan-700); }
.bp-tab.on { background: var(--cyan); border-color: var(--cyan); color: #fff; }
.bp-tab .ct { font-size: 12px; font-weight: 700; background: var(--soft-2); color: var(--neutral-500); border-radius: var(--r-pill); padding: 1px 8px; }
.bp-tab.on .ct { background: rgba(255,255,255,0.22); color: #fff; }
.bp-find { display: flex; align-items: center; gap: 8px; background: var(--soft); border: 1px solid transparent; border-radius: var(--r-md); height: 44px; padding: 0 14px; min-width: 240px; transition: background 150ms, border-color 150ms, box-shadow 150ms; }
.bp-find:focus-within { background: #fff; border-color: var(--cyan); box-shadow: var(--ring); }
.bp-find .ic { color: var(--neutral-400); flex-shrink: 0; }
.bp-find input { flex: 1; border: 0; outline: none; background: transparent; font-family: var(--font-body); font-size: 14.5px; color: var(--masla-navy); min-width: 0; }
.bp-find .x { color: var(--neutral-400); display: flex; align-items: center; }
.bp-find .x:hover { color: var(--ink); }

/* фильтр-бар категорий поставки (новый дизайн) */
.bp-catbar { display: flex; align-items: flex-start; gap: 16px; background: var(--soft); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 18px; }
.bp-catbar-lab { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12.5px; font-weight: 700; color: var(--neutral-500); padding-top: 7px; }
.bp-catbar-lab svg { color: var(--neutral-400); flex-shrink: 0; }
.bp-cats { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.bp-catchip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: var(--r-pill); border: var(--hairline); background: #fff; font-size: 13px; font-weight: 600; color: var(--masla-navy); cursor: pointer; transition: background 150ms, border-color 150ms, color 150ms; }
.bp-catchip:hover { border-color: var(--cyan); color: var(--cyan-700); }
.bp-catchip.on { background: var(--cyan-50); border-color: var(--cyan); color: var(--cyan-700); }
.bp-catchip .ct { font-size: 11px; font-weight: 700; color: var(--neutral-400); font-variant-numeric: tabular-nums; }
.bp-catchip.on .ct { color: var(--cyan); }

.bp-resultline { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--neutral-500); margin-bottom: 14px; }
.bp-reset { display: inline-flex; align-items: center; gap: 4px; color: var(--cyan-700); font-weight: 600; font-size: 13px; cursor: pointer; background: none; border: 0; padding: 0; }
.bp-reset:hover { color: var(--cyan-900); }

.bp-impnote { display: flex; align-items: center; gap: 10px; background: #FBEFD9; color: #8A5A12; border-radius: var(--r-md); padding: 13px 16px; font-size: 13.5px; line-height: 1.45; margin-bottom: 20px; }
.bp-impnote svg { color: #C77A1A; flex-shrink: 0; }

/* portfolio grid */
.bp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bp-card {
  display: flex; flex-direction: column; background: #fff; border: var(--hairline);
  border-radius: var(--r-md); padding: 18px; transition: border-color 150ms, box-shadow 150ms, transform 150ms;
}
.bp-card:hover { border-color: var(--cyan); box-shadow: var(--el-2); transform: translateY(-2px); }
.bp-card-logo {
  height: 58px; display: flex; align-items: center; justify-content: center;
  background: var(--soft); border-radius: var(--r-sm); margin-bottom: 14px;
  font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: 0.02em;
  color: var(--masla-navy); filter: grayscale(1); opacity: 0.92; text-align: center; padding: 0 10px;
}
.bp-card:hover .bp-card-logo { filter: none; opacity: 1; }
.bp-card-body { flex: 1; }
.bp-card-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--masla-navy); }
.bp-card-name .goic { color: var(--neutral-300); margin-left: auto; transition: color 150ms, transform 150ms; }
.bp-card:hover .bp-card-name .goic { color: var(--cyan); transform: translateX(2px); }
.bp-card-kind { font-size: 13px; color: var(--neutral-500); margin-top: 5px; line-height: 1.4; }
/* чипы категорий поставки на карточке бренда (новый дизайн) */
.bp-card-cats { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.bp-cattag { font-size: 11.5px; font-weight: 600; line-height: 1.3; color: var(--neutral-500); background: var(--soft); border-radius: var(--r-sm); padding: 3px 8px; transition: background 150ms, color 150ms; }
.bp-card:hover .bp-cattag { background: var(--soft-2); }
.bp-cattag.more { background: transparent; border: var(--hairline); color: var(--neutral-400); }
.bp-card.is-hidden { display: none; }
.bp-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: var(--hairline); }
.bp-orig { font-size: 11px; font-weight: 700; letter-spacing: 0.02em; padding: 4px 10px; border-radius: var(--r-pill); }
.bp-orig.ru { background: var(--success-bg); color: var(--success); }
.bp-orig.imp { background: rgba(190,159,99,0.16); color: var(--bronze-700); }
.bp-sku { font-size: 12.5px; color: var(--neutral-500); font-variant-numeric: tabular-nums; }

.bp-empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; justify-content: center; padding: 40px; color: var(--neutral-400); font-size: 14.5px; }
.bp-empty a { color: var(--cyan-700); font-weight: 600; }

/* responsive */
@media (max-width: 1100px) {
  .bp-grid { grid-template-columns: repeat(3, 1fr); }
  .bp-feat { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .bp-hero { grid-template-columns: 1fr; gap: 24px; }
  .bp-hero h1 { font-size: 32px; }
  .bp-hero-stats { width: 100%; }
  .bp-stat { flex: 1; min-width: 0; }
  .bp-grid { grid-template-columns: repeat(2, 1fr); }
  .bp-toolbar { flex-direction: column; align-items: stretch; }
  .bp-find { min-width: 0; }
  .bp-catbar { flex-direction: column; gap: 12px; }
  .bp-catbar-lab { padding-top: 0; }
}
@media (max-width: 480px) {
  .bp-grid { grid-template-columns: 1fr; }
  .bp-hero-stats { flex-wrap: wrap; }
}

/* ============================================================
   НОВОСТИ / СТАТЬЯ — порт pages3.css (MNews / MArticle, v4).
   Изображения карточек = реальные post thumbnail (<img> fill),
   фолбэк — градиент .th1..4 как в дизайне.
   ============================================================ */
.news-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 24px; }
.news-filter .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.news-feat { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border: var(--hairline); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 18px; transition: box-shadow 180ms, transform 150ms; }
.news-feat:hover { box-shadow: var(--el-3); transform: translateY(-2px); }
.news-feat .img { min-height: 320px; position: relative; overflow: hidden; }
.news-feat .img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.news-feat .img .tag { position: absolute; top: 16px; left: 16px; z-index: 2; background: rgba(255,255,255,0.92); color: var(--cyan-900); font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: var(--r-pill); }
.news-feat .body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.news-feat .meta { font-size: 12.5px; color: var(--neutral-400); margin-bottom: 12px; display: flex; gap: 10px; }
.news-feat h2 { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; line-height: 1.12; color: var(--masla-navy); margin-bottom: 14px; }
.news-feat p { font-size: 15px; color: var(--neutral-500); line-height: 1.55; margin-bottom: 22px; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { display: flex; flex-direction: column; background: #fff; border: var(--hairline); border-radius: var(--r-md); overflow: hidden; transition: box-shadow 180ms, transform 150ms, border-color 180ms; }
.news-card:hover { box-shadow: var(--el-3); transform: translateY(-3px); border-color: transparent; }
.news-card .thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.news-card .thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card .thumb .tag { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(255,255,255,0.92); color: var(--cyan-900); font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: var(--r-pill); }
.news-card .thumb .date { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--ink); color: #fff; border-radius: var(--r-sm); padding: 7px 9px; text-align: center; line-height: 1.05; font-size: 10px; font-weight: 600; text-transform: uppercase; display: flex; flex-direction: column; gap: 1px; }
.news-card .thumb .date b { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.news-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.news-card .ttl { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.25; letter-spacing: -0.01em; color: var(--masla-navy); margin-bottom: 8px; }
.news-card .lead { font-size: 13px; color: var(--neutral-500); line-height: 1.5; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--cyan-700); }
.news-card .more .ar { transition: transform 150ms; }
.news-card:hover .more .ar { transform: translateX(3px); }

/* thumb-фолбэк градиенты */
.th1 { background: linear-gradient(135deg, #1d242b, #34403c 60%, #5a4a32); }
.th2 { background: linear-gradient(135deg, #0f1620, #1c2e44 60%, #2e4a6b); }
.th3 { background: linear-gradient(135deg, #1f1611, #3a2a1c 60%, #5b3f24); }
.th4 { background: linear-gradient(135deg, #0e1822, #1e3242 60%, #3f5564); }

/* ---------- СТАТЬЯ ---------- */
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding-top: 18px; }
.art-main { min-width: 0; max-width: 800px; }
.art-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.art-side-block { border: var(--hairline); border-radius: var(--r-lg); padding: 20px; }
.art-side-block h4 { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--masla-navy); margin-bottom: 12px; }
.art-prod { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 14px 0; border-top: var(--hairline); align-items: center; }
.art-prod:first-of-type { border-top: 0; padding-top: 2px; }
.art-prod .media { height: 58px; display: flex; align-items: center; justify-content: center; }
.art-prod .media img { max-width: 56px; max-height: 58px; object-fit: contain; }
.art-prod .nm { font-size: 12.5px; font-weight: 500; color: var(--masla-navy); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.art-prod .nm:hover { color: var(--cyan-700); }
.art-prod .price { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--masla-navy); margin: 5px 0 8px; }
.art-prod .art-add { display: inline-flex; align-items: center; gap: 6px; background: var(--cyan); color: #fff; border-radius: 6px; font-size: 12px; font-weight: 600; padding: 7px 12px; transition: background 140ms; }
.art-prod .art-add:hover { background: var(--cyan-700); }

.art-side-cta { border-radius: var(--r-lg); padding: 24px; background: linear-gradient(160deg, #0C141D, #16273A 70%, #1E4A6B); color: #fff; display: flex; flex-direction: column; }
.art-side-cta .ic { width: 46px; height: 46px; border-radius: var(--r-sm); background: rgba(255,255,255,0.08); color: var(--bronze); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.art-side-cta h4 { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1.2; margin-bottom: 8px; }
.art-side-cta p { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.72); margin-bottom: 16px; }
.art-side-cta .btn { width: 100%; }
.art-side-cta .btn + .btn { margin-top: 10px; }
.art-side-cta .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.art-side-cta .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

.art-head .tag { display: inline-flex; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cyan-700); background: var(--cyan-50); padding: 5px 12px; border-radius: var(--r-pill); margin-bottom: 16px; }
.art-head h1 { font-family: var(--font-display); font-weight: 800; font-size: 38px; letter-spacing: -0.024em; line-height: 1.08; color: var(--masla-navy); margin-bottom: 16px; }
.art-head .meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--neutral-500); padding-bottom: 22px; border-bottom: var(--hairline); }
.art-head .meta .it { display: inline-flex; align-items: center; gap: 7px; }
.art-head .meta .ic { color: var(--cyan); }
.art-cover { aspect-ratio: 21/9; border-radius: var(--r-lg); margin: 24px 0 28px; overflow: hidden; }
.art-cover > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-lead { font-size: 18px; line-height: 1.55; color: var(--masla-navy); font-weight: 500; margin-bottom: 24px; }
.art-body p { font-size: 16px; line-height: 1.7; color: var(--neutral-700); margin-bottom: 18px; }
.art-body h2, .art-body h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.015em; color: var(--masla-navy); margin: 30px 0 14px; }
.art-body h2 { font-size: 26px; } .art-body h3 { font-size: 22px; }
.art-body ul { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 20px; padding-left: 0; list-style: none; }
.art-body li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.6; color: var(--neutral-700); }
.art-body li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--cyan); }
.art-body img { max-width: 100%; height: auto; border-radius: var(--r-md); margin: 8px 0; }
/* Текстовые ссылки в теле статьи — cyan + подчёркивание. НЕ трогаем кнопки
   masla-блоков (.ms-btn*): для них «.art-body a» (0,1,1) перебивал «.ms-btn--cyan»
   (0,1,0) → cyan-текст на cyan-фоне (контраст 1.42). Исключаем ms-классы. */
.art-body a:not([class*="ms-"]) { color: var(--cyan-700); text-decoration: underline; }
.art-share { display: flex; align-items: center; gap: 12px; margin: 32px 0; padding: 20px 0; border-top: var(--hairline); border-bottom: var(--hairline); }
.art-share .lbl { font-size: 14px; font-weight: 600; color: var(--masla-navy); }
.art-share .btns { display: flex; gap: 8px; }
.art-share .sbtn { width: 38px; height: 38px; border-radius: var(--r-pill); border: var(--hairline); display: flex; align-items: center; justify-content: center; color: var(--neutral-500); transition: all 140ms; }
.art-share .sbtn:hover { border-color: var(--cyan); color: var(--cyan-700); }

@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-feat { grid-template-columns: 1fr; }
  .news-feat .img { min-height: 220px; }
  .art-layout { grid-template-columns: 1fr; }
  .art-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .art-side-block, .art-side-cta { flex: 1; min-width: 280px; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .art-head h1 { font-size: 28px; }
  .art-aside { flex-direction: column; }
}

/* ──────────────────────────────────────────────────────────────────────────
   Карточки товаров-аналогов (.analog-item) на под-страницах брендов.
   Контент мигрирован из the7-карусели [dt_carousel]; обёртку срезает фильтр
   cwt_strip_orphan_shortcodes() → раскладываем карточки сеткой и оформляем по
   дизайн-системе (the7-стилей .aio-icon на новой теме нет).
   ────────────────────────────────────────────────────────────────────────── */
.cwt-entry-content :where(*:has(> .analog-item)) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 18px;
  margin: 18px 0 30px;
}
/* Не-карточки в том же родителе (заголовки/текст между каруселями) — на всю ширину сетки */
.cwt-entry-content :where(*:has(> .analog-item)) > :not(.analog-item) { grid-column: 1 / -1; }
.analog-item { display: flex; text-align: left; min-width: 0; }
.cwt-entry-content .analog-item > .aio-icon-box-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--neutral-300), 0 1px 2px rgba(16, 24, 40, .04); /* контур через shadow: border у <a> ресетит the7 */
  padding: 16px 16px 18px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.cwt-entry-content .analog-item > .aio-icon-box-link:hover {
  box-shadow: inset 0 0 0 1px var(--cyan), var(--el-2);
  transform: translateY(-2px);
}
.analog-item .aio-icon-default { display: none; } /* плейсхолдер-иконка the7 не нужна */
.analog-item .aio-icon-box,
.analog-item .aio-ibd-block,
.analog-item .aio-icon-header { text-align: left; }
.analog-item .aio-icon-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.3;
  text-align: left;
  color: var(--masla-navy);
}
.analog-item .aio-icon-description { font-size: 13px; line-height: 1.5; color: var(--neutral-500); text-align: left; }
.analog-item .aio-icon-description p { margin: 0 0 4px; }
.analog-item .aio-icon-description strong { color: var(--ink); font-weight: 600; }
@media (max-width: 600px) {
  .cwt-entry-content :where(*:has(> .analog-item)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 420px) {
  .cwt-entry-content :where(*:has(> .analog-item)) { grid-template-columns: minmax(0, 1fr); }
}
