/* ============================================================
   VoicePA (voice-pa.com) — тема ZH (Китай / материк, B2B).
   Плотный маркетплейс-стиль в духе 1688 / JD / Taobao:
   светлый серый фон, белые компактные карточки, красно-оранжевые
   торговые акценты, золото точечно, крупные бейджи и сигналы доверия.
   Standalone: подключается ВМЕСТО site.css. Разметка и классы —
   те же, что генерирует build.py. Mobile-first (базовые стили = 375px),
   расширение через min-width. Шрифт — системный CJK-стек.
   ============================================================ */
@import url('/assets/fonts/fonts.css');

:root{
  /* торговая палитра */
  --red:#e1251b;          /* главный акцент — «купить», шапка */
  --red-h:#c81810;
  --red-deep:#a5140c;
  --orange:#ff6a00;       /* цена, вторичный акцент */
  --orange-h:#ff8320;
  --gold:#d4a017;         /* золото точечно (бейджи доверия) */
  --gold-soft:#f6e6bf;
  --wechat:#07c160;       /* фирменный зелёный WeChat */

  /* поверхности маркетплейса */
  --bg:#f2f3f5;           /* серый фон витрины */
  --bg2:#eceef0;          /* чуть темнее для полос */
  --card:#ffffff;
  --panel:#fff7f5;        /* мягкая красноватая подложка */
  --line:#e6e8ea;
  --line2:#eef0f2;

  /* текст */
  --ink:#1f2226;          /* основной */
  --mut:#61666d;          /* приглушённый */
  --mut2:#9198a0;         /* мелкие подписи */
  --ink-on-red:#ffffff;

  /* шрифты: CJK-стек + локальный моно для цен/кодов */
  --font:"PingFang SC","Microsoft YaHei","Noto Sans SC","Hiragino Sans GB",-apple-system,"Helvetica Neue",Arial,sans-serif;
  --mono:"JetBrains Mono",ui-monospace,"SF Mono",Consolas,"PingFang SC",monospace;

  --radius:10px;
  --radius-sm:7px;
  --shadow:0 1px 3px rgba(20,22,26,.08);
  --shadow-h:0 8px 22px rgba(225,37,27,.14);
}

/* ---------- reset ---------- */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-padding-top:64px; -webkit-text-size-adjust:100%; }
body{
  font-family:var(--font);
  font-size:15px; line-height:1.6;
  background:var(--bg); color:var(--ink);
}
img{ max-width:100%; display:block; }
a{ color:var(--red); text-decoration:none; }
a:hover{ color:var(--red-h); }
button{ font-family:inherit; }
h1,h2,h3,h4{ font-weight:800; line-height:1.25; }
/* контентная колонка — шире обычного ради плотности */
.wrap{ max-width:1280px; margin:0 auto; padding:0 12px; }

/* ============================================================
   ШАПКА — красная торговая полоса (JD/Tmall-настроение)
   ============================================================ */
.hd{ position:sticky; top:0; z-index:50;
  background:linear-gradient(90deg,var(--red),#f23b20 55%,var(--orange));
  box-shadow:0 2px 8px rgba(165,20,12,.28); }
.hd .wrap{ max-width:1400px; }
.hd-in{ display:flex; align-items:center; gap:10px; min-height:54px; flex-wrap:nowrap; }
.brand{ display:flex; align-items:center; flex:none; }
.brand img{ height:32px; width:auto; filter:brightness(0) invert(1); } /* лого в белый на красном */

/* навигация: на мобиле скрыта, раскрывается бургером */
.nav{ display:none; }
.nav a{ color:rgba(255,255,255,.9); font-weight:700; font-size:15px; white-space:nowrap; }
.nav a:hover{ color:#fff; }
.nav a.on{ color:#fff; }
.nav .tag-online{ display:inline-block; vertical-align:2px; margin-left:6px;
  background:var(--gold); color:#3a2600; font-family:var(--mono); font-size:9px; font-weight:800;
  letter-spacing:.06em; padding:2px 6px; border-radius:5px; }

.hd-right{ margin-left:auto; display:flex; align-items:center; gap:8px; }
.hd-mail{ display:none; font-family:var(--mono); font-size:13px; color:rgba(255,255,255,.9); white-space:nowrap; }
.hd-mail:hover{ color:#fff; }

/* «Запросить счёт» — белая кнопка на красном, заметная */
.btn-invoice{ display:inline-block; background:#fff; color:var(--red) !important; font-weight:800;
  font-size:13px; padding:8px 14px; border-radius:8px; white-space:nowrap; transition:all .16s ease;
  box-shadow:0 2px 0 rgba(0,0,0,.12); }
.btn-invoice:hover{ background:var(--gold-soft); color:var(--red-deep) !important; }

.hd-cart{ display:flex; align-items:center; gap:6px; color:#fff; font-weight:700; position:relative; cursor:pointer; }
.hd-cart svg{ width:22px; height:22px; }
.hd-cart .cart-lbl{ display:none; }
.hd-cart .cart-n{ position:absolute; top:-7px; left:12px; min-width:16px; height:16px; border-radius:8px;
  background:var(--gold); color:#3a2600; font-size:10.5px; font-weight:800; display:flex; align-items:center;
  justify-content:center; padding:0 4px; box-shadow:0 0 0 2px rgba(225,37,27,.6); }
.hd-cart .cart-n:empty{ display:none; }

.langs{ display:flex; gap:2px; border:1px solid rgba(255,255,255,.5); border-radius:8px; padding:2px; }
.langs .lang{ font-size:11px; font-weight:800; color:rgba(255,255,255,.9); padding:3px 6px; border-radius:6px; white-space:nowrap; }
.langs .lang.on{ background:#fff; color:var(--red); }

.burger{ display:inline-block; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.4);
  border-radius:8px; padding:7px 9px; cursor:pointer; }
.burger span{ display:block; width:18px; height:2px; background:#fff; margin:3.5px 0; border-radius:2px; }

/* ---------- строка поиска ---------- */
.searchbar{ background:var(--card); border-bottom:1px solid var(--line); padding:10px 0; }
.searchbar .wrap{ display:flex; justify-content:center; }
.search-box{ position:relative; width:min(760px,100%); }
.search-box input{ width:100%; background:#fff; border:2px solid var(--red); border-radius:22px;
  color:var(--ink); font-family:inherit; font-size:15px; padding:10px 16px 10px 40px; outline:none; }
.search-box input::placeholder{ color:var(--mut2); }
.search-box input:focus{ border-color:var(--orange); box-shadow:0 0 0 3px rgba(255,106,0,.14); }
.search-box .s-ic{ position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--red); }
.search-res{ position:absolute; top:calc(100% + 6px); left:0; right:0; background:#fff;
  border:1px solid var(--line); border-radius:12px; overflow:hidden; display:none; max-height:440px;
  overflow-y:auto; z-index:60; box-shadow:0 16px 40px rgba(20,22,26,.18); }
.search-res.show{ display:block; }
.search-res a{ display:flex; gap:12px; align-items:center; padding:9px 14px; color:var(--ink);
  border-bottom:1px solid var(--line2); font-size:14px; }
.search-res a:last-child{ border-bottom:none; }
.search-res a:hover{ background:var(--panel); }
.search-res img{ width:44px; height:44px; object-fit:contain; background:#fff; border:1px solid var(--line2);
  border-radius:8px; flex:none; }
.search-res .sr-price{ margin-left:auto; font-family:var(--mono); font-weight:800; color:var(--orange); white-space:nowrap; }
.search-res .sr-none{ padding:12px 16px; color:var(--mut); font-size:14px; }

/* ============================================================
   HERO — витрина «щедрого предложения»
   ============================================================ */
.hero{ padding:20px 0 8px; }
.hero-in{ display:grid; grid-template-columns:1fr; gap:20px; align-items:start; }
.hero-badge{ display:inline-block; font-family:var(--mono); font-size:11px; letter-spacing:.08em;
  color:#fff; background:linear-gradient(90deg,var(--red),var(--orange)); border-radius:999px;
  padding:5px 14px; margin-bottom:14px; font-weight:700; }
.hero h1{ font-size:clamp(26px,6vw,42px); line-height:1.18; margin-bottom:14px; color:var(--ink); }
.hero h1 em{ font-style:normal; color:var(--red); }
.hero-sub{ color:var(--mut); font-size:16px; max-width:620px; }

/* карточка спецификаций — белая «таблица доверия» с красной шапкой */
.spec-card{ background:var(--card); border:1px solid var(--line); border-radius:14px; overflow:hidden; box-shadow:var(--shadow); }
.spec-head{ display:flex; align-items:center; gap:8px; justify-content:space-between; padding:11px 16px;
  font-family:var(--mono); font-size:12px; letter-spacing:.06em; color:#fff; font-weight:700;
  background:linear-gradient(90deg,var(--red),var(--orange)); }
.spec-head i{ width:8px; height:8px; border-radius:50%; background:var(--gold); box-shadow:0 0 8px var(--gold); flex:none; }
.spec-grid{ display:grid; grid-template-columns:1fr 1fr; }
.spec-cell{ padding:12px 14px; border-bottom:1px solid var(--line); }
.spec-cell:nth-child(odd){ border-right:1px solid var(--line); }
.spec-cell span{ display:block; font-family:var(--mono); font-size:10px; letter-spacing:.06em;
  color:var(--mut2); text-transform:uppercase; margin-bottom:4px; }
.spec-cell b{ font-family:var(--mono); font-size:18px; font-weight:800; color:var(--ink); }
.spec-cell b em{ font-style:normal; color:var(--orange); }
.spec-foot{ padding:11px 16px; font-family:var(--mono); font-size:10px; letter-spacing:.05em;
  color:var(--mut2); text-transform:uppercase; line-height:1.7; background:var(--bg2); }
.hero-sep{ height:3px; background:linear-gradient(90deg,var(--red),var(--orange) 60%,var(--gold)); margin:20px 0 0; border-radius:2px; }

/* ============================================================
   Блок калькулятора — акционная лента
   ============================================================ */
.calc-band{ padding:18px 0; }
.calc-card{ background:linear-gradient(135deg,#fff3ec,#ffe9e3); border:1px solid #ffd3c4; border-radius:14px;
  padding:18px; display:flex; align-items:center; gap:16px; flex-wrap:wrap; box-shadow:var(--shadow); }
.calc-card .cc-txt{ flex:1 1 300px; }
.calc-card .cc-tag{ display:inline-block; font-family:var(--mono); font-size:10px; letter-spacing:.06em;
  background:var(--red); color:#fff; font-weight:800; border-radius:5px; padding:3px 8px; }
.calc-card h2{ font-size:20px; margin:10px 0 8px; color:var(--ink); }
.calc-card p{ color:var(--mut); max-width:640px; font-size:14px; }

/* кнопки — главный CTA красный */
.btn{ display:inline-block; background:linear-gradient(90deg,var(--red),var(--orange)); color:#fff !important;
  font-weight:800; font-size:15px; padding:11px 22px; border-radius:9px; border:none; cursor:pointer;
  font-family:inherit; transition:all .16s ease; white-space:nowrap; box-shadow:0 2px 8px rgba(225,37,27,.24); }
.btn:hover{ filter:brightness(1.06); box-shadow:0 4px 14px rgba(225,37,27,.34); }
.btn-lg{ font-size:16px; padding:13px 28px; }

/* ============================================================
   Светлые секции + плитки разделов
   ============================================================ */
.zone-light{ background:var(--card); color:var(--ink); padding:26px 0 30px; border-top:1px solid var(--line); }
.zone-light h2{ color:var(--ink); }
.zone-light a{ color:var(--red); }
.sec-tag{ font-family:var(--mono); font-size:11px; letter-spacing:.08em; color:var(--red);
  text-transform:uppercase; margin-bottom:8px; display:inline-block; font-weight:700; }
.sec-h{ font-size:clamp(21px,4vw,30px); margin-bottom:10px; color:var(--ink); }
.sec-sub{ color:var(--mut); max-width:760px; margin-bottom:20px; font-size:15px; }

/* плитки разделов — плотная сетка, компактные карточки */
.cat-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.cat-card{ background:var(--card); border:1px solid var(--line); border-radius:10px; overflow:hidden;
  color:var(--ink) !important; display:flex; flex-direction:column; transition:box-shadow .16s,transform .16s;
  box-shadow:var(--shadow); }
.cat-card:hover{ box-shadow:var(--shadow-h); transform:translateY(-2px); border-color:#ffcfc4; }
.cat-img{ padding:10px; background:#fff; }
.cat-img img{ width:100%; height:130px; object-fit:contain; }
.cat-card h3{ font-size:14px; font-weight:700; padding:2px 12px 6px; line-height:1.35; }
.cat-foot{ margin-top:auto; display:flex; justify-content:space-between; align-items:center;
  padding:0 12px 12px; font-size:12.5px; }
.cat-foot .cnt{ font-family:var(--mono); color:var(--mut2); }
.cat-foot .go{ color:var(--red); font-weight:800; }
.cat-count{ display:block; padding:0 12px 12px; margin-top:auto; font-family:var(--mono); font-size:12px; color:var(--mut2); }

/* ============================================================
   Каталог на главной — табы + горизонтальные карточки
   ============================================================ */
.catalog-zone{ padding:26px 0 34px; }
.catalog-in{ display:grid; grid-template-columns:1fr; gap:14px; align-items:start; }
.cat-tabs{ background:var(--card); border:1px solid var(--line); border-radius:12px;
  padding:8px; display:flex; overflow-x:auto; gap:6px; box-shadow:var(--shadow); }
.cat-tabs button{ display:block; text-align:left; background:var(--bg); border:1px solid transparent; cursor:pointer;
  font-family:inherit; font-size:14px; font-weight:700; color:var(--mut); padding:8px 14px; border-radius:8px;
  white-space:nowrap; flex:none; }
.cat-tabs button:hover{ color:var(--ink); }
.cat-tabs button.on{ background:linear-gradient(90deg,var(--red),var(--orange)); color:#fff; }

.prod-list{ display:flex; flex-direction:column; gap:10px; }
.prod-row{ background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px; display:grid;
  grid-template-columns:96px 1fr; gap:12px; color:var(--ink); position:relative; box-shadow:var(--shadow);
  transition:box-shadow .16s,border-color .16s; }
.prod-row:hover{ box-shadow:var(--shadow-h); border-color:#ffcfc4; }
.prod-row .pr-img{ align-self:start; }
.prod-row .pr-img img{ width:100%; height:96px; object-fit:contain; }
.prod-row .pr-body{ display:flex; flex-direction:column; min-width:0; }
/* бейдж — крупный, яркий, «ленточный» */
.prod-badge{ position:absolute; top:0; left:0; background:linear-gradient(90deg,var(--red),var(--orange));
  color:#fff; font-size:11px; font-weight:800; border-radius:12px 0 12px 0; padding:4px 12px; z-index:2;
  letter-spacing:.02em; box-shadow:0 2px 6px rgba(225,37,27,.3); }
.prod-row h3{ font-size:15px; font-weight:800; margin-bottom:5px; line-height:1.35; }
.prod-row h3 a{ color:var(--ink); }
.prod-row h3 a:hover{ color:var(--red); }
.prod-row .pr-desc{ font-size:13px; color:var(--mut); margin-bottom:8px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pr-price{ font-family:var(--mono); font-size:20px; font-weight:800; margin-bottom:10px; color:var(--orange); }
.pr-price .price{ color:var(--orange); }
.pr-buy{ display:flex; gap:8px; align-items:stretch; flex-wrap:wrap; margin-top:auto; }

/* счётчик количества */
.qty{ display:flex; border:1px solid var(--line); border-radius:8px; overflow:hidden; flex:none; background:#fff; }
.qty button{ width:34px; background:var(--bg); border:none; cursor:pointer; font-size:17px; color:var(--mut); font-family:inherit; }
.qty button:hover{ background:#ffe4dc; color:var(--red); }
.qty input{ width:40px; text-align:center; border:none; border-left:1px solid var(--line); border-right:1px solid var(--line);
  font-family:var(--mono); font-size:14px; outline:none; color:var(--ink); }

/* «В корзину» — красная кнопка */
.btn-cart{ flex:1 1 150px; min-height:40px; display:inline-flex; align-items:center; justify-content:center; gap:7px;
  background:linear-gradient(90deg,var(--red),var(--orange)); border:none; border-radius:8px; color:#fff;
  font-weight:800; font-size:14px; font-family:inherit; cursor:pointer; transition:filter .16s ease; }
.btn-cart:hover{ filter:brightness(1.06); }

.prod-row.hid{ display:none; }
.load-more{ margin:18px auto 0; display:block; background:#fff; border:1px solid var(--line); color:var(--red);
  font-family:inherit; font-size:15px; font-weight:800; padding:11px 30px; border-radius:9px; cursor:pointer; box-shadow:var(--shadow); }
.load-more:hover{ border-color:var(--red); background:var(--panel); }

/* ============================================================
   About-тизер + KPI (сигналы доверия)
   ============================================================ */
.about-teaser{ padding:26px 0; }
.about-grid{ display:grid; grid-template-columns:1fr; gap:20px; align-items:center; }
.about-teaser h2{ font-size:clamp(20px,4vw,28px); margin-bottom:12px; color:var(--ink); }
.about-teaser p{ color:var(--mut); margin-bottom:14px; font-size:15px; }
.kpi-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.kpi{ background:linear-gradient(135deg,#fff,#fff4ef); border:1px solid #ffdcd0; border-radius:10px; padding:14px; text-align:center; }
.kpi span{ display:block; font-family:var(--mono); font-size:10px; letter-spacing:.06em;
  color:var(--mut2); text-transform:uppercase; margin-bottom:5px; }
.kpi b{ font-family:var(--mono); font-size:22px; color:var(--red); font-weight:800; }

/* ============================================================
   Как купить
   ============================================================ */
.howbuy h2{ font-size:clamp(20px,4vw,28px); margin-bottom:18px; color:var(--ink); }
.steps{ display:grid; grid-template-columns:1fr; gap:12px; margin-bottom:18px; }
.step{ background:var(--card); border:1px solid var(--line); border-radius:10px; padding:16px; box-shadow:var(--shadow); position:relative; }
.step i{ font-style:normal; font-family:var(--mono); font-size:13px; font-weight:800; color:#fff;
  background:linear-gradient(90deg,var(--red),var(--orange)); width:30px; height:30px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; margin-bottom:10px; }
.step b{ display:block; font-size:16px; margin-bottom:6px; color:var(--ink); }
.step p{ font-size:14px; color:var(--mut); }
.howbuy-cta{ background:var(--panel); border:1px solid #ffd3c4; border-left:4px solid var(--red);
  border-radius:10px; padding:16px 18px; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.howbuy-cta p{ flex:1 1 300px; color:var(--ink); }

/* ============================================================
   ФУТЕР
   ============================================================ */
.ft{ border-top:3px solid var(--red); background:#232629; color:#c9ccd1; padding:28px 0 0; }
.ft-in{ display:grid; grid-template-columns:1fr; gap:22px; padding-bottom:24px; }
.ft-col{ min-width:0; }
.ft .brand{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.ft .brand img{ height:32px; filter:brightness(0) invert(1); }
.ft-about p{ color:#9aa0a7; font-size:13.5px; margin-bottom:10px; }
.ft h4{ font-family:var(--mono); font-size:11.5px; letter-spacing:.08em; color:var(--gold);
  text-transform:uppercase; margin-bottom:12px; }
.ft ul{ list-style:none; }
.ft li{ margin-bottom:7px; font-size:14px; }
.ft li a{ color:#c9ccd1; }
.ft li a:hover{ color:#fff; }
.ft-contacts span{ color:#7f858c; margin-right:6px; }
.ft-req{ color:#9aa0a7; font-size:12.5px; line-height:1.7; margin-top:10px; }
.ft-bottom{ border-top:1px solid #3a3e43; padding:14px 12px; display:flex; gap:12px; flex-wrap:wrap;
  justify-content:space-between; color:#7f858c; font-size:12.5px; }
.ft-bottom a{ color:#9aa0a7; }
.disclaimer{ font-size:12px; color:#7f858c; }

/* ============================================================
   Хлебные крошки / внутренние страницы
   ============================================================ */
.crumbs{ padding:12px 12px 0; font-size:13px; color:var(--mut2); max-width:1280px; margin:0 auto; }
.crumbs a{ color:var(--mut); }
.crumbs a:hover{ color:var(--red); }
.crumbs .sep{ margin:0 7px; color:var(--line); }
.sec{ padding:20px 0 36px; }
.narrow{ max-width:880px; }
.page-h{ font-size:clamp(22px,4.5vw,32px); margin-bottom:14px; color:var(--ink); }
.lead{ font-size:16px; color:var(--mut); margin-bottom:16px; }

/* ============================================================
   Сетка вертикальных карточек (страницы разделов/каталог)
   ============================================================ */
.grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin:16px 0 24px; }
.card{ background:var(--card); border:1px solid var(--line); border-radius:10px; overflow:hidden;
  color:var(--ink) !important; display:flex; flex-direction:column; transition:box-shadow .16s,transform .16s;
  position:relative; box-shadow:var(--shadow); }
.card:hover{ box-shadow:var(--shadow-h); transform:translateY(-2px); border-color:#ffcfc4; }
.card-img{ background:#fff; padding:10px; }
.card-img img{ width:100%; height:140px; object-fit:contain; }
.card-body{ padding:6px 12px 12px; display:flex; flex-direction:column; flex:1; }
.card-sku{ font-family:var(--mono); font-size:11px; color:var(--mut2); margin-bottom:4px; }
.card-title{ font-size:14px; font-weight:700; margin-bottom:10px; flex:1; line-height:1.35; }
.card-foot{ display:flex; justify-content:space-between; align-items:center; gap:8px; }
.card-price{ font-family:var(--mono); font-weight:800; font-size:16px; color:var(--orange); }
.card-price i{ font-style:normal; color:var(--mut2); font-size:11px; }
.card-btn{ color:var(--red); font-weight:800; font-size:13px; }
.cat-intro{ color:var(--mut); max-width:900px; margin-bottom:8px; font-size:15px; }
.cat-text{ max-width:900px; color:var(--mut); }
.cat-text h2{ font-size:20px; margin:24px 0 10px; color:var(--ink); }
.cat-text ul{ margin:0 0 14px 20px; }
.cat-text p{ margin-bottom:12px; }

/* ============================================================
   Карточка товара
   ============================================================ */
.product{ display:grid; grid-template-columns:1fr; gap:20px; padding-top:16px; padding-bottom:16px; }
.p-gallery{ min-width:0; }
.p-main{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px; box-shadow:var(--shadow); }
.p-main img{ width:100%; height:300px; object-fit:contain; }
.p-thumbs{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.p-thumb{ width:60px; height:60px; object-fit:contain; background:#fff; border-radius:8px; padding:5px;
  cursor:pointer; border:2px solid var(--line); }
.p-thumb.on{ border-color:var(--red); }
.p-info{ min-width:0; }
.p-info h1{ font-size:clamp(20px,4.5vw,28px); margin-bottom:12px; color:var(--ink); }
.p-brand{ font-weight:800; color:var(--red); margin-bottom:4px; }
.p-sku{ font-size:13px; color:var(--mut2); margin-bottom:10px; font-family:var(--mono); }
.p-info .p-desc{ margin-top:16px; margin-bottom:0; }
.p-desc{ color:var(--mut); margin-bottom:16px; font-size:15px; }
/* цена — крупная, оранжевая, витринная */
.p-price{ font-family:var(--mono); font-size:30px; font-weight:800; margin-bottom:16px; color:var(--orange);
  background:linear-gradient(90deg,#fff4ef,#ffe9e3); border:1px solid #ffd3c4; border-radius:10px; padding:10px 14px; display:inline-block; }
.p-price small{ font-size:13px; color:var(--mut2); font-family:var(--font); font-weight:400; margin-left:8px; }
.p-buy{ display:flex; gap:12px; margin-bottom:14px; flex-wrap:wrap; align-items:stretch; }
.p-buy .qty{ border-color:var(--line); }
.p-buy .qty button{ background:var(--bg); color:var(--mut); }
.p-buy .qty input{ background:#fff; color:var(--ink); border-color:var(--line); }
.p-note{ font-size:13px; color:var(--mut2); }
.p-promo{ margin-top:16px; background:var(--panel); border:1px solid #ffd3c4; border-radius:10px;
  padding:14px 16px; display:flex; align-items:center; gap:14px; flex-wrap:wrap; font-size:14px; color:var(--mut); }
.p-promo b{ color:var(--ink); }
.p-promo .btn{ padding:9px 16px; font-size:13px; }

/* таблица характеристик */
.specs{ width:100%; border-collapse:collapse; background:var(--card); color:var(--ink);
  border:1px solid var(--line); border-radius:10px; overflow:hidden; box-shadow:var(--shadow); }
.specs th,.specs td{ text-align:left; padding:10px 14px; border-bottom:1px solid var(--line2); font-size:14px; }
.specs th{ font-weight:700; width:44%; background:var(--bg); color:var(--mut); }
.specs tr:last-child th,.specs tr:last-child td{ border-bottom:none; }
.p-fulltext{ max-width:900px; color:var(--mut); }
.p-fulltext h3{ color:var(--ink); font-size:18px; margin:20px 0 10px; }
.p-fulltext p{ margin-bottom:12px; }
.p-fulltext ul{ margin:0 0 14px 20px; }

/* ============================================================
   Блог
   ============================================================ */
.blog-grid{ display:grid; grid-template-columns:1fr; gap:12px; }
.blog-card{ background:var(--card); border:1px solid var(--line); border-radius:10px; padding:16px;
  color:var(--ink) !important; display:flex; flex-direction:column; transition:box-shadow .16s,transform .16s; box-shadow:var(--shadow); }
.blog-card:hover{ box-shadow:var(--shadow-h); transform:translateY(-2px); border-color:#ffcfc4; }
.blog-rubric{ font-family:var(--mono); font-size:10.5px; letter-spacing:.06em;
  color:#fff; background:var(--red); border-radius:5px; padding:2px 8px; display:inline-block; margin-bottom:10px; text-transform:uppercase; }
.blog-card h3{ font-size:16px; margin-bottom:8px; color:var(--ink); }
.blog-card p{ font-size:14px; color:var(--mut); flex:1; }
.blog-more{ margin-top:12px; color:var(--red); font-weight:800; font-size:13.5px; }
.blog-article{ color:var(--mut); }
.blog-article h2{ color:var(--ink); font-size:22px; margin:26px 0 12px; }
.blog-article h3{ color:var(--ink); font-size:18px; margin:20px 0 10px; }
.blog-article p{ margin-bottom:13px; }
.blog-article .lead{ font-size:17px; color:var(--ink); }

/* ============================================================
   Контакты / формы — WeChat заметно
   ============================================================ */
.ct-grid{ display:grid; grid-template-columns:1fr; gap:10px; margin:16px 0 26px; }
.ct-card{ background:var(--card); border:1px solid var(--line); border-radius:10px;
  padding:16px; display:flex; gap:12px; align-items:center; box-shadow:var(--shadow); }
.ct-ic{ font-size:24px; flex:none; }
.ct-card span{ display:block; font-size:12px; color:var(--mut2); }
.ct-card b,.ct-card a{ font-size:15px; color:var(--ink); }
/* карточка WeChat — фирменный зелёный, крупнее и заметнее */
.ct-wechat{ border:2px solid var(--wechat); background:linear-gradient(135deg,#f0fff6,#e7fbee); box-shadow:0 4px 16px rgba(7,193,96,.18); }
.ct-wechat .ct-ic{ background:var(--wechat); color:#fff; width:44px; height:44px; border-radius:10px;
  display:flex; align-items:center; justify-content:center; font-size:24px; }
.ct-wechat b,.ct-wechat a{ color:#06863f; font-weight:800; }
.ct-wechat span{ color:#3aa06a; }

.ct-form{ max-width:680px; background:var(--card); border:1px solid var(--line); border-radius:12px;
  padding:18px; box-shadow:var(--shadow); }
.ct-form h2{ font-size:19px; margin-bottom:16px; color:var(--ink); }
.ct-form label{ display:block; font-size:13px; color:var(--mut); margin-bottom:12px; }
.ct-form input,.ct-form textarea{ width:100%; margin-top:5px; background:#fff; border:1px solid var(--line);
  border-radius:8px; color:var(--ink); font-family:inherit; font-size:15px; padding:10px 12px; outline:none; }
.ct-form input:focus,.ct-form textarea:focus{ border-color:var(--red); box-shadow:0 0 0 3px rgba(225,37,27,.1); }
.fr{ display:grid; grid-template-columns:1fr; gap:12px; }
.consent{ display:flex !important; gap:9px; align-items:flex-start; font-size:12.5px !important; }
.consent input{ width:auto !important; margin-top:2px !important; }
.consent-note{ font-size:12.5px; color:var(--mut2); margin-top:12px; }
.form-msg{ margin-top:12px; font-size:14px; }
.form-msg.ok{ color:var(--wechat); font-weight:700; }

/* ============================================================
   Статичные страницы-лендинги
   ============================================================ */
.static-page{ background:var(--bg); }
.static-page .vpa-static-bg{ background:var(--bg); }
.vpa-card{ background:var(--card); border:1px solid var(--line); border-radius:10px; overflow:hidden; box-shadow:var(--shadow); }
/* корзин-контролы внутри карточек разделов */
.vpa-static-bg .vpa-buy{ display:flex; gap:8px; padding:10px 12px 12px; align-items:stretch; }
.vpa-static-bg .vpa-buy .qty{ background:#fff; }
.vpa-static-bg .vpa-buy .btn-cart{ flex:1 1 auto; min-height:38px; font-size:13px; white-space:nowrap; padding:0 8px; }
.vpa-static-bg .vpa-buy .qty button{ width:30px; }
.vpa-static-bg .vpa-buy .qty input{ width:34px; }

/* ============================================================
   Корзина (модальное окно)
   ============================================================ */
.cartwin{ position:fixed; inset:0; z-index:1000; display:none; align-items:flex-start; justify-content:center;
  background:rgba(20,22,26,.6); overflow-y:auto; padding:20px 12px; }
.cartwin.show{ display:flex; }
.cart-box{ background:#fff; color:var(--ink); border-radius:14px; width:min(700px,100%); padding:22px 18px; position:relative; box-shadow:0 20px 60px rgba(0,0,0,.4); }
.cart-x{ position:absolute; top:12px; right:14px; background:none; border:none; font-size:26px; cursor:pointer; color:#999; line-height:1; }
.cart-x:hover{ color:var(--red); }
.cart-box h2{ font-size:20px; margin-bottom:16px; color:var(--ink); }
.cart-item{ display:grid; grid-template-columns:56px 1fr auto; gap:10px; align-items:center;
  padding:10px 0; border-bottom:1px solid var(--line2); font-size:14px; }
.cart-item img{ width:56px; height:48px; object-fit:contain; }
.cart-item .ci-price{ font-family:var(--mono); font-weight:800; color:var(--orange); white-space:nowrap; }
.cart-item .ci-del{ background:none; border:none; cursor:pointer; font-size:17px; color:#bbb; }
.cart-item .ci-del:hover{ color:var(--red); }
.cart-total{ text-align:right; font-size:17px; font-weight:800; padding:14px 0 8px; color:var(--ink); }
.cart-total .price{ font-family:var(--mono); color:var(--orange); }
.cart-form label{ display:block; font-size:13px; color:var(--mut); margin-bottom:12px; }
.cart-form input,.cart-form textarea{ width:100%; margin-top:4px; border:1px solid var(--line); border-radius:8px;
  font-family:inherit; font-size:15px; padding:10px 12px; outline:none; color:var(--ink); }
.cart-form input:focus,.cart-form textarea:focus{ border-color:var(--red); box-shadow:0 0 0 3px rgba(225,37,27,.1); }
.cart-empty{ color:var(--mut); padding:20px 0; }

/* ============================================================
   Лайтбокс фото
   ============================================================ */
.p-main img,.p-thumbs img{ cursor:zoom-in; }
.vpa-lb{ position:fixed; inset:0; z-index:1200; display:none; align-items:center; justify-content:center;
  background:rgba(20,22,26,.9); cursor:zoom-out; padding:20px; }
.vpa-lb.show{ display:flex; }
.vpa-lb img{ max-width:min(1200px,94vw); max-height:90vh; object-fit:contain; background:#fff;
  border-radius:10px; padding:14px; }
.vpa-lb .lb-x{ position:fixed; top:16px; right:20px; background:none; border:none; color:#fff;
  font-size:34px; cursor:pointer; line-height:1; }

/* ============================================================
   Кнопка «наверх»
   ============================================================ */
.totop{ position:fixed; right:16px; bottom:16px; z-index:45; width:44px; height:44px; border-radius:50%;
  border:none; background:linear-gradient(135deg,var(--red),var(--orange)); color:#fff; font-size:20px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transform:translateY(14px); transition:all .2s ease;
  box-shadow:0 6px 18px rgba(225,37,27,.4); }
.totop.show{ opacity:1; visibility:visible; transform:translateY(0); }
.totop:hover{ filter:brightness(1.08); }

/* ============================================================
   Мобильное меню (бургер) — по умолчанию видно на узком экране
   ============================================================ */
body.nav-open .nav{
  display:flex; position:absolute; top:100%; left:0; right:0; background:var(--red);
  border-top:1px solid rgba(255,255,255,.2); flex-direction:column; align-items:stretch; padding:8px 16px 14px; gap:0;
  box-shadow:0 12px 24px rgba(0,0,0,.25); z-index:55;
}
body.nav-open .nav a{ padding:11px 4px; border-bottom:1px solid rgba(255,255,255,.15); }

/* ============================================================
   Адаптив (mobile-first: расширяем через min-width)
   ============================================================ */
/* ≥520px: горизонтальные карточки товара крупнее */
@media (min-width:520px){
  .prod-row{ grid-template-columns:130px 1fr; }
  .prod-row .pr-img img{ height:120px; }
  .cart-item{ grid-template-columns:56px 1fr auto auto auto; }
  .fr{ grid-template-columns:1fr 1fr; }
}
/* ≥640px: планшет — плотнее сетки, появляется e-mail в шапке */
@media (min-width:640px){
  body{ font-size:15px; }
  .wrap{ padding:0 16px; }
  .cat-grid{ grid-template-columns:repeat(3,1fr); }
  .grid{ grid-template-columns:repeat(3,1fr); }
  .blog-grid{ grid-template-columns:repeat(2,1fr); }
  .ct-grid{ grid-template-columns:repeat(2,1fr); }
  .steps{ grid-template-columns:repeat(3,1fr); }
  .cat-img img{ height:150px; }
  .card-img img{ height:160px; }
}
/* ≥900px: десктоп — навигация вместо бургера, двухколоночные блоки */
@media (min-width:900px){
  .hd-in{ min-height:60px; gap:14px; }
  .burger{ display:none; }
  .nav{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
  .hd-mail{ display:inline; }
  .hd-cart .cart-lbl{ display:inline; }
  .hero{ padding:34px 0 12px; }
  .hero-in{ grid-template-columns:1.1fr .9fr; gap:36px; }
  .catalog-in{ grid-template-columns:230px 1fr; gap:22px; }
  .cat-tabs{ flex-direction:column; overflow:visible; position:sticky; top:70px; }
  .cat-tabs button{ width:100%; }
  .about-grid{ grid-template-columns:1.2fr .8fr; gap:36px; }
  .product{ grid-template-columns:1fr 1fr; gap:34px; }
  .p-main img{ height:360px; }
  .cat-grid{ grid-template-columns:repeat(4,1fr); }
  .grid{ grid-template-columns:repeat(4,1fr); }
  .blog-grid{ grid-template-columns:repeat(3,1fr); }
  .ct-grid{ grid-template-columns:repeat(3,minmax(200px,1fr)); }
  .ft-in{ grid-template-columns:1.3fr 1fr 1fr 1.1fr; gap:28px; }
  .kpi b{ font-size:24px; }
}
/* ≥1200px: широкий десктоп — максимальная плотность плиток (5 колонок) */
@media (min-width:1200px){
  .cat-grid{ grid-template-columns:repeat(5,1fr); }
  .grid{ grid-template-columns:repeat(5,1fr); }
  .hero h1{ font-size:44px; }
}

/* ---------- печать ---------- */
@media print{ .hd,.searchbar,.totop,.ft,.cartwin,.vpa-lb{ display:none !important; } }
