/* landing.css — публичная витрина СМ-Строй.
   Уровень вёрстки — как EMILIA GOLD (воздух, ритм секций, тени, мягкие ховеры,
   аккуратные сетки, mobile-first), но в ЗЕЛЁНОЙ палитре оригинала smstroi.ru.
   Магазин стройматериалов: чисто, бодро, продающе. */
:root {
  /* зелёная палитра оригинала (primary можно переопределить из админки) */
  --primary: #2eca38;     /* акцент (кнопки/ссылки/активное меню) */
  --primary-d: #23a52c;   /* нажатие/hover */
  --primary-dd:#1c8a23;
  --green-deep: #054409;  /* глубокий зелёный (hero/тёмные акценты) */
  --green-deep2:#0a6313;
  --ink: #3d4640;         /* основной текст */
  --ink2: #5a665c;
  --head: #1f2a21;        /* заголовки */
  --muted: #8a938b;
  --line: #e7ebe7;
  --line2:#d3dbd4;
  --bg: #ffffff;
  --bg2: #f6f9f6;         /* фон чередующихся секций */
  --soft: #f1f5f1;        /* подложка картинок */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(20,40,20,.06);
  --shadow: 0 8px 28px rgba(20,40,20,.09);
  --shadow-lg: 0 18px 48px rgba(20,40,20,.16);
  --shadow-h: 0 16px 40px rgba(46,202,56,.20);
  --maxw: 1220px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--primary-d); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary); }
h1, h2, h3, h4 { color: var(--head); }
img { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.loading { padding: 90px 0; text-align: center; color: var(--muted); }

/* ── Топ-полоса с контактами ───────────────────────────────────────────── */
.topbar { background: var(--green-deep); color: #cfe9d2; font-size: 13px; }
.topbar__in { display: flex; align-items: center; gap: 18px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #eafaec; }
.topbar a:hover { color: #fff; }
.topbar__sp { flex: 1; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.hdr { background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.hdr__in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.hdr__brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; color: var(--head); flex-shrink: 0; }
.hdr__brand:hover { color: var(--head); }
.hdr__logo { display: block; height: 60px; width: auto; max-width: 200px; object-fit: contain; }
.hdr__logo[hidden] { display: none; }
.hdr__name { color: var(--head); }
.nav { display: flex; gap: 2px; margin-left: 4px; flex: 1; }
.nav a { color: var(--ink); font-weight: 600; font-size: 15px; padding: 9px 13px; border-radius: 10px;
  transition: background .15s, color .15s; position: relative; }
.nav a:hover { color: var(--primary-d); background: var(--soft); }
.nav a.on { color: var(--primary-d); font-weight: 700; }
.nav a.on::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px;
  border-radius: 2px; background: var(--primary); }
.hdr__phone { font-weight: 800; font-size: 18px; white-space: nowrap; color: var(--head); }
.hdr__phone:hover { color: var(--primary-d); }
.hdr__cta { display: inline-flex; align-items: center; background: var(--primary); color: #fff; font-weight: 700;
  font-size: 14px; padding: 11px 18px; border-radius: 11px; white-space: nowrap; border: 0; cursor: pointer;
  box-shadow: 0 6px 16px rgba(46,202,56,.28); transition: background .15s, transform .12s, box-shadow .15s; }
.hdr__cta:hover { background: var(--primary-d); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(46,202,56,.34); }
.hdr__burger { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--primary-d); }

/* ── Поиск в шапке ──────────────────────────────────────────────────────── */
.search { position: relative; display: flex; align-items: center; }
.search__toggle { display: none; background: none; border: 0; font-size: 21px; cursor: pointer; color: var(--primary-d); padding: 4px; }
.search__form { position: relative; display: flex; align-items: center; }
.search__input { width: 210px; padding: 9px 38px 9px 14px; border: 1px solid var(--line2); border-radius: 11px; font: inherit; font-size: 14px;
  background: var(--soft); transition: width .2s, border-color .15s, box-shadow .15s, background .15s; }
.search__input:focus { outline: none; width: 270px; background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46,202,56,.12); }
.search__submit { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer;
  font-size: 15px; color: var(--muted); padding: 4px 6px; }
.search__submit:hover { color: var(--primary-d); }
/* подсказки (autocomplete) */
.search__sugg { position: absolute; top: calc(100% + 8px); right: 0; left: 0; min-width: 300px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 50; overflow: hidden; max-height: 70vh; overflow-y: auto; }
.search__sugg[hidden] { display: none; }
.sugg__group-h { font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 9px 14px 4px; }
.sugg__item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; cursor: pointer; color: var(--ink); border: 0; background: none;
  width: 100%; text-align: left; font: inherit; }
.sugg__item:hover, .sugg__item.active { background: var(--soft); }
.sugg__item img { width: 34px; height: 34px; object-fit: contain; border-radius: 7px; background: var(--soft); flex: 0 0 34px; }
.sugg__item-ic { width: 34px; height: 34px; flex: 0 0 34px; display: flex; align-items: center; justify-content: center; font-size: 17px;
  background: var(--soft); border-radius: 7px; }
.sugg__item-t { flex: 1; min-width: 0; font-size: 14px; }
.sugg__item-t b { color: var(--head); display: block; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg__item-t small { color: var(--muted); font-size: 12px; }
.sugg__item-p { font-weight: 800; color: var(--green-deep); font-size: 13.5px; white-space: nowrap; }
.sugg__all { display: block; text-align: center; padding: 10px; font-weight: 700; color: var(--primary-d); border-top: 1px solid var(--line);
  background: var(--bg2); cursor: pointer; width: 100%; border: 0; font: inherit; }
.sugg__all:hover { background: #eafbec; }
.sugg__empty { padding: 16px 14px; color: var(--muted); font-size: 14px; }

/* ── Кнопка корзины в шапке ─────────────────────────────────────────────── */
.hdr__cart { position: relative; background: none; border: 0; font-size: 23px; cursor: pointer; color: var(--green-deep); padding: 4px 6px;
  transition: transform .12s; }
.hdr__cart:hover { transform: translateY(-1px); color: var(--primary-d); }
.hdr__cart-cnt { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(46,202,56,.4); }
.hdr__cart-cnt[hidden] { display: none; }

/* кнопка «В корзину» на карточках (компактная, в ряд с ценой/заказать) */
.pcard__buy { display: flex; gap: 6px; }
.btn--cart { background: #eafbec; color: var(--green-deep); box-shadow: none; padding: 9px 12px; font-size: 13.5px; }
.btn--cart:hover { background: #d6f5da; color: var(--green-deep); transform: none; box-shadow: none; }
.btn--cart.added { background: var(--primary); color: #fff; }

/* ── Страница/модалка корзины ──────────────────────────────────────────── */
/* box ограничен по высоте экрана, заголовок сверху, список товаров скроллится,
   «Итого» + форма + кнопки всегда видимы внизу (flex-колонка с min-height:0). */
.cartmodal__box { max-width: 640px; max-height: 90vh; display: flex; flex-direction: column; }
.cartmodal__box > h3 { flex: 0 0 auto; }
#cartBody { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.cart-list { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px;
  flex: 1 1 auto; min-height: 0; max-height: min(45vh, 360px); overflow-y: auto; padding-right: 4px; }
.cart-total, #cartForm, .cart-empty { flex: 0 0 auto; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; }
.cart-item__img { width: 56px; height: 56px; object-fit: contain; border-radius: 9px; background: var(--soft); border: 1px solid var(--line); }
.cart-item__noimg { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--soft); border-radius: 9px; font-size: 22px; }
.cart-item__main { min-width: 0; }
.cart-item__name { font-weight: 700; font-size: 14px; color: var(--head); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item__price { color: var(--green-deep); font-weight: 800; font-size: 13.5px; margin-top: 3px; }
.cart-item__r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--line2); border-radius: 9px; overflow: hidden; }
.qty button { width: 30px; height: 30px; border: 0; background: var(--soft); cursor: pointer; font-size: 17px; color: var(--head); line-height: 1; }
.qty button:hover { background: #e3ece3; color: var(--primary-d); }
.qty input { width: 42px; height: 30px; border: 0; border-left: 1px solid var(--line2); border-right: 1px solid var(--line2);
  text-align: center; font: inherit; font-weight: 700; }
.cart-item__del { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 16px; }
.cart-item__del:hover { color: #c0392b; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 4px; border-top: 1px solid var(--line); font-size: 16px; }
.cart-total b { font-size: 22px; color: var(--green-deep); font-weight: 900; }
.cart-empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.cart-empty .btn { margin-top: 14px; }

/* ── Кнопки ─────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 12px;
  padding: 13px 26px; font-weight: 700; cursor: pointer; font-size: 15px;
  transition: background .15s, transform .12s, box-shadow .15s, border-color .15s, color .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(46,202,56,.30); }
.btn--primary:hover { background: var(--primary-d); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(46,202,56,.36); }
.btn--light { background: #fff; color: var(--green-deep); }
.btn--light:hover { background: #eafbec; color: var(--green-deep); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn--outline { background: #fff; border: 1px solid var(--line2); color: var(--ink); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary-d); }

/* ── HERO-СЛАЙДЕР ───────────────────────────────────────────────────────── */
.hero { margin: 26px 0 8px; }
.slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.slider__track { display: flex; transition: transform .6s cubic-bezier(.5,.05,.2,1); }
.slide { position: relative; flex: 0 0 100%; min-height: 392px; display: flex; align-items: center;
  padding: 56px 60px; color: #fff; overflow: hidden; }
.slide__bg { position: absolute; inset: 0; z-index: 0; }
.slide__bg::after { content: ""; position: absolute; inset: 0; background: inherit; opacity: .12;
  mix-blend-mode: screen; }
.slide.s1 .slide__bg { background: linear-gradient(120deg, var(--green-deep) 0%, #0c6614 52%, var(--primary-d) 100%); }
.slide.s2 .slide__bg { background: linear-gradient(120deg, #07560e 0%, #138a22 60%, #34c93e 100%); }
.slide.s3 .slide__bg { background: linear-gradient(125deg, #06330a 0%, #0e7d1c 55%, #2eca38 100%); }
.slide.s4 .slide__bg { background: linear-gradient(120deg, #053a08 0%, #0a6313 58%, #28b031 100%); }
.slide::before { content: ""; position: absolute; right: -80px; top: -90px; width: 380px; height: 380px; z-index: 1;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%); pointer-events: none; }
.slide::after { content: ""; position: absolute; left: -60px; bottom: -120px; width: 320px; height: 320px; z-index: 1;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%); pointer-events: none; }
.slide__in { position: relative; z-index: 2; max-width: 700px; }
.slide__eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  padding: 6px 14px; border-radius: 30px; margin-bottom: 16px; }
.slide h2 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; color: #fff; }
.slide p { margin: 0 0 26px; font-size: clamp(15px, 2vw, 19px); opacity: .95; max-width: 540px; }
.slide__btns { display: flex; gap: 12px; flex-wrap: wrap; }
/* стрелки */
.slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.14);
  color: #fff; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: background .15s, transform .15s; }
.slider__arrow:hover { background: rgba(255,255,255,.28); }
.slider__arrow.prev { left: 16px; } .slider__arrow.next { right: 16px; }
/* точки */
.slider__dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 5; display: flex; gap: 9px;
  justify-content: center; }
.slider__dot { width: 10px; height: 10px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.45); transition: background .2s, width .2s; }
.slider__dot.on { background: #fff; width: 26px; border-radius: 6px; }

/* ── Полоса доверия (преимущества) ─────────────────────────────────────── */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat { background: linear-gradient(180deg, #fff, var(--bg2)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(46,202,56,.4); }
.feat__i { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 25px; background: linear-gradient(135deg, rgba(46,202,56,.14), rgba(5,68,9,.10));
  border: 1px solid rgba(46,202,56,.22); margin-bottom: 12px; }
.feat__t { font-weight: 800; margin: 4px 0 5px; color: var(--head); font-size: 16px; }
.feat__d { font-size: 13.5px; color: var(--muted); }

/* ── Section ────────────────────────────────────────────────────────────── */
.sec { margin: 56px 0; }
.sec--tint { background: var(--bg2); padding: 56px 0; margin: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec--tint .wrap { padding: 0 20px; }
.sec__h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 24px; gap: 14px; flex-wrap: wrap; }
.sec__h h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); position: relative; padding-left: 16px; line-height: 1.15; }
.sec__h h2::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--green-deep)); }
.sec__h a { font-size: 14px; font-weight: 700; white-space: nowrap; }
.sec__sub { color: var(--muted); margin: -14px 0 22px; max-width: 720px; font-size: 15.5px; }
.crumbs { color: var(--muted); font-size: 14px; margin: 22px 0 10px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary-d); }

/* ── Сетки ──────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid--cats { grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); }
.grid--brands { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.grid--prods { grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); }
.grid--rel { grid-template-columns: repeat(4, 1fr); }

/* ── Плитка категории ──────────────────────────────────────────────────── */
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: block; color: var(--ink); transition: box-shadow .2s, transform .2s, border-color .2s; }
.tile:hover { box-shadow: var(--shadow-h); transform: translateY(-4px); border-color: rgba(46,202,56,.45); color: var(--ink); }
.tile__imgwrap { height: 158px; background: var(--soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover .tile__img { transform: scale(1.06); }
.tile__ph { font-size: 40px; color: #c5d3c6; }
.tile__b { padding: 15px 17px; }
.tile__t { font-weight: 700; font-size: 16px; color: var(--head); }
.tile__d { color: var(--muted); font-size: 13px; margin-top: 5px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile__go { color: var(--primary-d); font-size: 13px; font-weight: 700; margin-top: 9px; display: inline-flex; gap: 4px;
  transition: gap .15s; }
.tile:hover .tile__go { gap: 8px; }

/* ── Плитка бренда ─────────────────────────────────────────────────────── */
.brand-tile { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  color: var(--head); display: flex; flex-direction: column; min-height: 140px; background: #fff;
  transition: box-shadow .2s, transform .2s, border-color .2s; }
.brand-tile:hover { box-shadow: var(--shadow-h); transform: translateY(-4px); border-color: rgba(46,202,56,.5); color: var(--head); }
.brand-tile__media { flex: 1; display: flex; align-items: center; justify-content: center; padding: 18px 14px; min-height: 92px;
  background: linear-gradient(135deg, #fbfdfb, #eef5ef); }
.brand-tile__logo { max-height: 56px; max-width: 90%; object-fit: contain; }
.brand-tile__ph { width: 60px; height: 60px; border-radius: 16px; color: #fff; font-weight: 900; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--green-deep)); box-shadow: 0 6px 14px rgba(46,202,56,.3); }
.brand-tile__name { font-weight: 700; font-size: 14.5px; line-height: 1.2; text-align: center;
  padding: 11px 8px; border-top: 1px solid var(--line); background: #fff; }

/* ── Карточка товара ───────────────────────────────────────────────────── */
.pcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; }
.pcard:hover { box-shadow: var(--shadow-h); transform: translateY(-4px); border-color: rgba(46,202,56,.45); }
.pcard__imgwrap { position: relative; height: 196px; background: var(--soft); display: flex; align-items: center;
  justify-content: center; padding: 12px; overflow: hidden; }
.pcard__img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .45s; }
.pcard:hover .pcard__img { transform: scale(1.06); }
.pcard__noimg { color: #b6c2b7; font-size: 13px; }
.pcard__b { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.pcard__name { font-weight: 700; font-size: 15px; color: var(--head); line-height: 1.32;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.pcard__brand { color: var(--primary-d); font-size: 12px; font-weight: 600; margin: 7px 0 0; letter-spacing: .2px; }
.pcard__descr { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 8px; }
.pcard__price { font-weight: 900; font-size: 18px; color: var(--green-deep); white-space: nowrap; }
.pcard__price small { color: var(--muted); font-weight: 600; font-size: 12px; }
.pcard__nostock { color: #b35314; font-size: 13px; font-weight: 700; }
.pcard .btn { padding: 9px 16px; font-size: 13.5px; box-shadow: none; }
.pcard .btn:hover { transform: none; }

/* Бейджи хит/акция + старая цена */
.pcard__badges { position: absolute; top: 10px; left: 10px; z-index: 3; display: flex; flex-direction: column; gap: 5px; }
.badge { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; padding: 4px 9px;
  border-radius: 30px; color: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.18); letter-spacing: .3px; }
.badge--hit { background: linear-gradient(135deg, var(--green-deep), var(--primary-d)); }
.badge--sale { background: linear-gradient(135deg, #c62f23, #e23b2e); }
.pcard__old { color: #9aa39a; text-decoration: line-through; font-size: 13px; margin-right: 2px; }

/* ── Страница товара ───────────────────────────────────────────────────── */
.pview { display: grid; grid-template-columns: 440px 1fr; gap: 40px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.pview__imgwrap { background: var(--soft); border-radius: var(--radius-sm); height: 400px; display: flex; align-items: center;
  justify-content: center; padding: 20px; }
.pview__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pview h1 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 30px); line-height: 1.2; }
.pview__price { font-size: clamp(28px, 4vw, 34px); font-weight: 900; color: var(--green-deep); margin: 16px 0; }
.pview__price s { color: var(--muted); font-size: 20px; font-weight: 600; margin-right: 10px; }
.pview__desc { color: var(--ink2); white-space: pre-wrap; margin: 18px 0; font-size: 15.5px; }
.pview__specs { width: 100%; border-collapse: collapse; margin: 16px 0; }
.pview__specs td { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--head); }
.pview__specs td:first-child { width: 42%; color: var(--muted); }
.pview__meta { color: var(--muted); font-size: 14px; margin: 5px 0; }
.pview__badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 30px; }
.pview__badge.ok { background: #e7f8e9; color: var(--green-deep); }
.pview__badge.no { background: #fff1e6; color: #b35314; }
.pview__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.pview__actions .btn { padding: 14px 28px; }

/* ── Статическая страница ──────────────────────────────────────────────── */
.page { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow); }
.page h1 { margin-top: 0; font-size: clamp(26px, 3.4vw, 34px); }
.page p { margin: 0 0 14px; font-size: 15.5px; color: var(--ink2); }
.page b { color: var(--head); }
.page ul { padding-left: 22px; } .page li { margin-bottom: 8px; }

/* ── Контакты ──────────────────────────────────────────────────────────── */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: var(--radius); background: linear-gradient(180deg, #fff, var(--bg2)); transition: transform .18s, border-color .18s, box-shadow .18s; }
.contact-card:hover { border-color: rgba(46,202,56,.45); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cc-ic { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; font-size: 22px; background: linear-gradient(135deg, rgba(46,202,56,.14), rgba(5,68,9,.10));
  border: 1px solid rgba(46,202,56,.22); }
.cc-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-h { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cc-v { font-size: 16.5px; color: var(--head); font-weight: 700; word-break: break-word; }
.cc-v a { color: var(--head); } .cc-v a:hover { color: var(--primary-d); }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  min-height: 440px; position: relative; display: flex; flex-direction: column; }
.contact-map iframe { display: block; width: 100%; flex: 1; min-height: 380px; border: 0; }
.contact-map__cap { padding: 14px 18px; background: var(--green-deep); color: #eafaec; font-size: 13.5px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.contact-map__cap b { color: #fff; }
.contact-map__pano { display: inline-flex; margin-top: 14px; }

/* реквизиты */
.requisites { margin-top: 20px; padding: 18px 22px; background: linear-gradient(180deg, var(--bg2), #fff);
  border: 1px solid var(--line); border-radius: var(--radius); }
.requisites h3 { margin: 0 0 8px; color: var(--green-deep); font-size: 16px; }
.requisites p { margin: 0; font-size: 14px; color: var(--ink2); line-height: 1.7; }

/* ── Контент-блок «фото + текст» (на главной) ──────────────────────────── */
.feature-rows { display: grid; gap: 22px; }
.frow { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.frow.rev .frow__media { order: 2; }
.frow__media { min-height: 280px; background-size: cover; background-position: center; background-color: var(--soft); }
.frow__body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.frow__eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--primary-d); margin-bottom: 10px; }
.frow__body h3 { margin: 0 0 12px; font-size: clamp(21px, 2.6vw, 27px); line-height: 1.18; }
.frow__body p { margin: 0 0 16px; color: var(--ink2); font-size: 15.5px; }
.frow__body .btn { align-self: flex-start; }

/* ── Инфо-блоки (оплата/доставка кратко) ───────────────────────────────── */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.infobox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s; }
.infobox:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(46,202,56,.35); }
.infobox h3 { margin: 0 0 12px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.infobox p { margin: 0 0 8px; color: var(--ink2); font-size: 14.5px; }
.infobox > a { font-weight: 700; font-size: 14px; display: inline-block; margin-top: 6px; }

/* ── CTA-полоса ────────────────────────────────────────────────────────── */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--green-deep), #0e7d1c 60%, var(--primary-d));
  color: #fff; border-radius: var(--radius); padding: 48px 40px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; right: -60px; top: -70px; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%); }
.cta-band h3 { color: #fff; margin: 0 0 10px; font-size: clamp(22px, 3vw, 28px); position: relative; }
.cta-band p { color: rgba(255,255,255,.92); margin: 0 0 22px; max-width: 640px; margin-left: auto; margin-right: auto; position: relative; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.ftr { background: #1c211c; color: #c2c8c2; margin-top: 64px; padding: 52px 0 24px; }
.ftr__in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 38px; }
.ftr h4 { color: #fff; margin: 0 0 14px; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; }
.ftr a { color: #c2c8c2; display: block; margin: 6px 0; }
.ftr a:hover { color: var(--primary); }
.ftr__logo { height: 64px; width: auto; margin-bottom: 10px; background: #fff; padding: 8px 12px; border-radius: 12px; }
.ftr__brand { color: #fff; font-weight: 900; font-size: 21px; margin-bottom: 12px; }
.ftr__about { font-size: 13.5px; color: #9aa19a; line-height: 1.65; }
.ftr__contacts div { margin: 6px 0; font-size: 14px; }
.ftr__req { margin-top: 10px; opacity: .7; font-size: 12px; line-height: 1.5; }
.ftr__copy { text-align: center; color: #7d847d; font-size: 13px; margin-top: 30px; border-top: 1px solid #2e342e; padding-top: 20px; }

/* ── Модалка ───────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; background: rgba(10,25,10,.58); backdrop-filter: blur(3px); display: flex;
  align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.modal[hidden] { display: none; }
.modal__box { background: #fff; border-radius: var(--radius); padding: 30px; max-width: 460px; width: 100%; position: relative;
  box-shadow: var(--shadow-lg); }
.modal__x { position: absolute; top: 14px; right: 18px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }
.modal__x:hover { color: var(--head); }
.modal h3 { margin: 0 0 6px; font-size: 23px; }
.modal__hint { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.modal__item { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 10px 12px; background: var(--bg2);
  border: 1px solid var(--line); border-radius: 12px; }
.modal__item img { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.modal__item b { font-size: 14px; color: var(--head); line-height: 1.3; }
.oform { display: flex; flex-direction: column; gap: 12px; }
.oform input, .oform textarea { padding: 13px 15px; border: 1px solid var(--line2); border-radius: 11px; font: inherit;
  transition: border-color .15s, box-shadow .15s; }
.oform input:focus, .oform textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46,202,56,.13); }
.oform textarea { min-height: 84px; resize: vertical; }
.oform__msg { margin: 0; font-size: 14px; min-height: 18px; }
.oform__msg.ok { color: var(--green-deep); font-weight: 600; }
.oform__msg.err { color: #c0392b; }

/* ── reveal-анимации ───────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ── Адаптив ───────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .grid--rel { grid-template-columns: repeat(2, 1fr); }
  .frow { grid-template-columns: 1fr; }
  .frow.rev .frow__media { order: 0; }
  .frow__media { min-height: 220px; }
  .contacts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 16px;
    border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 13px; }
  .hdr__burger { display: block; margin-left: 4px; }
  .hdr__phone, .hdr__cta { display: none; }
  /* поиск на мобиле сворачивается в лупу, при открытии — полноширинная панель под шапкой */
  .search { margin-left: auto; }
  .search__toggle { display: block; }
  .search__form { position: absolute; top: 76px; left: 0; right: 0; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none; }
  .search.open .search__form { display: flex; }
  .search__input, .search.open .search__input:focus { width: 100%; }
  .search__sugg { left: 16px; right: 16px; min-width: 0; }
  .feats { grid-template-columns: 1fr 1fr; }
  .pview { grid-template-columns: 1fr; gap: 26px; }
  .pview__imgwrap { height: 300px; }
  .cols2 { grid-template-columns: 1fr; }
  .ftr__in { grid-template-columns: 1fr 1fr; }
  .slide { padding: 44px 36px; min-height: 340px; }
  .slider__arrow { width: 40px; height: 40px; }
}
@media (max-width: 560px) {
  .hdr__logo { height: 46px; max-width: 150px; }
  .hdr__in { gap: 12px; min-height: 64px; }
  .topbar__in { gap: 10px; font-size: 12px; }
  .feats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feat { padding: 16px 14px; }
  .sec { margin: 42px 0; }
  .sec--tint { padding: 42px 0; margin: 42px 0; }
  .ftr__in { grid-template-columns: 1fr; }
  .grid--cats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid--brands { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid--prods { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid--rel { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile__imgwrap { height: 124px; }
  .pcard__imgwrap { height: 150px; }
  .pcard .btn { padding: 8px 12px; font-size: 12.5px; }
  .slide { padding: 34px 22px; min-height: 320px; }
  .slide h2 { font-size: 24px; }
  .slider__arrow { display: none; }
  .frow__body { padding: 26px 22px; }
  .page { padding: 26px 20px; }
  .cta-band { padding: 36px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .slider__track { transition: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tile__img, .pcard__img { transition: none; }
}

/* Медиа товара: видео/YouTube/PDF на карточке */
.pmedia__grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.pmedia__yt{position:relative;grid-column:1/-1;max-width:760px;aspect-ratio:16/9;border-radius:14px;overflow:hidden;box-shadow:var(--shadow-md,0 6px 20px rgba(5,68,9,.12))}
.pmedia__yt iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.pmedia__vid{width:100%;max-width:520px;border-radius:14px;background:#000;box-shadow:var(--shadow-md,0 6px 20px rgba(5,68,9,.12))}
.pmedia__pdf{align-self:center}
@media(max-width:700px){.pmedia__grid{grid-template-columns:1fr}}
