/* ==========================================================================
   Мегабайк — вёрстка под WordPress + WooCommerce
   БЭМ-именование. Акцент вынесен в переменную --accent.
   ========================================================================== */

/* --- Переменные -------------------------------------------------------- */
:root {
  --accent: #9D1C9B;            /* акцент бренда (правится в одном месте) */
  --accent-dark: #7d1580;       /* ховер акцента */
  --accent-soft: #faf3fa;       /* мягкая подложка акцента */
  --accent-border: #e6d5e7;

  --bg: #f5f5f7;                /* фон страницы */
  --surface: #ffffff;          /* карточки */
  --border: #e5e5ea;
  --border-soft: #f0f0f2;
  --text: #17171b;
  --text-2: #3a3a40;
  --muted: #6b6b73;
  --muted-2: #a5a5ad;
  --dark: #17171b;             /* тёмные секции / футер */

  --ok: #16a34a;               /* в наличии */
  --danger: #e11d48;           /* скидка / старая цена */
  --warn: #d97706;             /* предупреждение / под заказ */
  --star: #f5a623;

  --radius: 12px;
  --radius-lg: 16px;
  --container: 1280px;
  --font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* --- Сброс -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; margin: 0; }
strong, b { font-weight: 600; }
input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }

/* --- Раскладка ---------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding-top: 52px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section__title { font-size: 26px; }
.link-more { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.ph { /* полосатый плейсхолдер изображения */
  background: repeating-linear-gradient(45deg, #f5f5f7, #f5f5f7 9px, #ececef 9px, #ececef 18px);
  display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted-2); text-align: center; padding: 8px;
}
.ph--soft { background: repeating-linear-gradient(45deg, #f0f0f2, #f0f0f2 8px, #e8e8ec 8px, #e8e8ec 16px); }
.ph--map { background: repeating-linear-gradient(45deg, #eceef0, #eceef0 12px, #e3e6e9 12px, #e3e6e9 24px); color: #8a8f96; }

/* --- Кнопки ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid transparent; border-radius: 10px; padding: 12px 22px;
  font-size: 15px; font-weight: 600; line-height: 1; transition: background .15s, border-color .15s, color .15s; }
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--outline { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.btn--outline:hover { background: var(--accent-soft); }
.btn--ghost { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-border); }
.btn--ghost:hover { background: #f2e6f3; }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: 13px; border-radius: 8px; }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* --- Хлебные крошки ----------------------------------------------------- */
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted-2); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs__current { color: var(--text); }

/* --- Бейджи и рейтинг --------------------------------------------------- */
.badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 5px; color: #fff; background: var(--accent); }
.badge--hit { background: var(--accent); }
.badge--new { background: var(--ok); }
.badge--sale { background: var(--danger); }
.badge--discount { background: var(--danger); }
.rating { position: relative; display: inline-block; line-height: 1; font-size: 13px; color: #d1d1d6; white-space: nowrap; }
.rating__fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--star); }

/* --- Шапка -------------------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 120; background: var(--surface); border-bottom: 1px solid var(--border); }
.header__top { border-bottom: 1px solid var(--border-soft); }
.header__top-inner { height: 40px; display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--muted); }
.header__top-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header__phone { color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.inline-ic { display: inline-flex; align-items: center; gap: 6px; }
.header__main { padding: 14px 0; display: flex; align-items: center; gap: 22px; }
.header__logo img { height: 52px; width: auto; }
.catalog-btn { flex-shrink: 0; }
.search { flex: 1; display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; min-width: 220px; }
.search:focus-within { border-color: var(--accent); }
.search__select { border: none; background: var(--bg); padding: 0 12px; height: 46px; font-size: 14px; color: var(--muted); border-right: 1px solid var(--border); }
.search__input { flex: 1; border: none; outline: none; padding: 0 16px; height: 46px; font-size: 15px; color: var(--text); min-width: 0; }
.search__btn { background: var(--accent); border: none; width: 52px; height: 46px; color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.header__actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.action { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; position: relative; }
.action:hover { color: var(--accent); }
.action__badge { position: absolute; top: -5px; right: 0; background: var(--accent); color: #fff; border-radius: 9px; font-size: 10px; padding: 1px 5px; font-weight: 600; }
.action--cart { flex-direction: row; gap: 10px; background: var(--bg); border-radius: 10px; padding: 8px 14px; color: var(--text); }
.action--cart .action__ic { position: relative; display: flex; }
.action--cart .action__badge { top: -7px; right: -8px; }
.action__sum small { display: block; font-size: 11px; color: var(--muted); }
.action__sum b { display: block; font-weight: 600; font-size: 14px; }
.quick-menu { border-top: 1px solid var(--border-soft); }
.quick-menu__inner { height: 44px; display: flex; align-items: center; gap: 26px; font-size: 14px; overflow-x: auto; }
.quick-menu a { color: var(--text-2); white-space: nowrap; font-weight: 500; }
.quick-menu a:hover { color: var(--accent); }

/* Мега-меню */
.megamenu { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 24px 48px -18px rgba(0,0,0,.22); z-index: 130; display: none; }
.megamenu.is-open { display: block; }
.megamenu__grid { padding: 24px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 40px; }
.megamenu__col { padding: 10px 12px; border-radius: 8px; }
.megamenu__col:hover { background: var(--accent-soft); }
.megamenu__title { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 15px; }
.megamenu__title span { color: #c7c7cc; font-weight: 500; font-size: 13px; }
.megamenu__subs { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.megamenu__subs a { color: var(--muted); font-size: 13px; }
.megamenu__subs a:hover { color: var(--accent); }

/* --- Герой -------------------------------------------------------------- */
.hero { position: relative; border-radius: 18px; overflow: hidden; min-height: 380px; display: flex; align-items: center; margin-top: 24px;
  background: repeating-linear-gradient(135deg, #2a1030, #2a1030 14px, #331338 14px, #331338 28px); }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,6,24,.82) 0%, rgba(20,6,24,.5) 45%, rgba(20,6,24,.1) 100%); }
.hero__slide { position: relative; padding: 56px; max-width: 620px; color: #fff; }
.hero__kicker { display: inline-block; background: var(--accent); padding: 6px 14px; border-radius: 30px; font-size: 12px; font-weight: 600; margin-bottom: 18px; }
.hero__title { font-size: 48px; line-height: 1.05; margin-bottom: 14px; }
.hero__sub { font-size: 18px; line-height: 1.5; margin: 0 0 28px; color: #e5d5e8; max-width: 460px; }
.hero__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); border: none; color: #fff; display: flex; align-items: center; justify-content: center; }
.hero__nav--prev { left: 20px; } .hero__nav--next { right: 20px; }
.hero__dots { position: absolute; bottom: 22px; left: 56px; display: flex; gap: 8px; }
.hero__dot { height: 10px; width: 10px; border-radius: 6px; background: rgba(255,255,255,.55); border: none; transition: width .2s; }
.hero__dot.is-active { width: 28px; background: var(--accent); }

/* --- Плитки разделов ---------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; gap: 12px; }
.tile:hover { border-color: var(--accent); box-shadow: 0 8px 20px -12px rgba(157,28,155,.4); }
.tile__img { height: 88px; border-radius: 8px; }
.tile__name { font-weight: 600; font-size: 14px; color: var(--text); line-height: 1.25; }
.tile__count { font-size: 12px; color: var(--muted-2); margin-top: 4px; }
.tile--all { align-items: center; justify-content: center; background: var(--accent-soft); border: 1px dashed var(--accent); color: var(--accent); gap: 10px; }

/* --- Табы --------------------------------------------------------------- */
.tabs { display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--border); margin-bottom: 22px; flex-wrap: wrap; }
.tabs--plain { margin-bottom: 0; }
.tab { background: none; border: none; border-bottom: 2px solid transparent; color: var(--muted); font-size: 16px; font-weight: 600; padding-bottom: 12px; margin-bottom: -1px; }
.tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.tabs--product .tab { padding: 0 0 14px; font-weight: 500; color: var(--muted); }
.tabs--product .tab.is-active { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* --- Сетка товаров ------------------------------------------------------ */
.products { display: grid; gap: 14px; }
.products--4 { grid-template-columns: repeat(4, 1fr); }
.products--3 { grid-template-columns: repeat(3, 1fr); }

/* --- Карточка товара ---------------------------------------------------- */
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: relative; }
.product-card:hover { border-color: #d1c0d3; box-shadow: 0 10px 26px -16px rgba(0,0,0,.28); }
.product-card__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.product-card__actions { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: #c7c7cc; display: flex; align-items: center; justify-content: center; }
.icon-btn.is-active { color: var(--accent); }
.icon-btn.is-active .icon { fill: var(--accent); }
.product-card__image { height: 180px; }
.product-card__body { padding: 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.product-card__meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-2); }
.product-card__title { color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.3; min-height: 36px; }
.product-card__status { font-size: 12px; font-weight: 600; margin-top: auto; }
.product-card__status--ok { color: var(--ok); } .product-card__status--wait { color: var(--warn); }
.product-card__price-row { display: flex; align-items: flex-end; gap: 8px; }
.price { font-size: 20px; font-weight: 600; color: var(--text); }
.price--old { font-size: 13px; color: var(--muted-2); text-decoration: line-through; padding-bottom: 2px; font-weight: 400; }

/* --- УТП / услуги / бренды ---------------------------------------------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.utp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; gap: 14px; align-items: flex-start; }
.utp-card__ic { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.utp-card__title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.utp-card__text { font-size: 13px; color: var(--muted); line-height: 1.4; }
.service-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.service-card__img { height: 120px; }
.service-card__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.service-card__price { font-size: 18px; font-weight: 600; color: var(--accent); }
.brand { height: 80px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; color: var(--muted); }
.brand:hover { border-color: var(--accent); color: var(--accent); }

/* --- Тёмная промо-секция ------------------------------------------------ */
.promo-dark { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--dark); border-radius: 18px; overflow: hidden; color: #fff; }
.promo-dark__body { padding: 48px; }
.promo-dark__kicker { color: #c98fca; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.promo-dark__title { font-size: 32px; margin-bottom: 16px; line-height: 1.1; }
.promo-dark__text { font-size: 16px; line-height: 1.55; color: #b8b8bf; margin: 0 0 26px; max-width: 440px; }
.promo-dark__img { background: repeating-linear-gradient(45deg, #241127, #241127 12px, #2c1530 12px, #2c1530 24px); display: flex; align-items: center; justify-content: center; font-family: ui-monospace, monospace; font-size: 12px; color: rgba(255,255,255,.35); min-height: 280px; }

/* --- SEO / контакты на главной ----------------------------------------- */
.seo { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 32px; max-width: 900px; }
.seo p { max-width: 75ch; color: #4a4a52; line-height: 1.65; }
.contacts-split { display: grid; grid-template-columns: 1fr 420px; gap: 24px; align-items: stretch; }
.contacts-map { border: 1px solid var(--border); border-radius: 14px; min-height: 300px; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.contact-line__ic { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* --- Листинг: раскладка ------------------------------------------------- */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); border-radius: 30px; padding: 7px 15px; font-size: 13px; font-weight: 500; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tree { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; position: sticky; top: 96px; }
.tree__label { font-weight: 600; font-size: 13px; color: var(--muted-2); padding: 10px 12px 6px; letter-spacing: .04em; }
.tree__item { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: 14px; }
.tree__item:hover { background: var(--accent-soft); }
.tree__item.is-active { color: var(--accent); font-weight: 600; }
.tree__count { color: #c7c7cc; font-size: 12px; margin-left: 8px; flex-shrink: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.pill { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.pill:hover { border-color: var(--accent); }
.view-toggle { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.view-toggle__btn { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: #c7c7cc; display: flex; align-items: center; justify-content: center; }
.view-toggle__btn.is-active { color: var(--accent); }

/* Список (list mode) — те же карточки, горизонтально */
.products.is-list { grid-template-columns: 1fr; }
.products.is-list .product-card { flex-direction: row; align-items: stretch; }
.products.is-list .product-card__image { width: 240px; height: auto; min-height: 180px; flex-shrink: 0; }
.products.is-list .product-card__body { padding: 18px 22px; }
.products.is-list .product-card__actions { flex-direction: row; }
.products.is-list .product-card__title { font-size: 17px; }
.products.is-list .btn--block { width: auto; align-self: flex-start; padding-left: 30px; padding-right: 30px; }

/* Пагинация */
.pagination { display: flex; align-items: center; gap: 6px; }
.pagination__btn { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text-2); display: flex; align-items: center; justify-content: center; }
.pagination__btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.pagination__btn:disabled { color: #c7c7cc; }

/* --- Карточка товара: страница ------------------------------------------ */
.product { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 14px; }
.gallery__thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery__thumb { height: 76px; border: 2px solid var(--border); border-radius: 10px; background: repeating-linear-gradient(45deg, #f5f5f7, #f5f5f7 7px, #ececef 7px, #ececef 14px); font-family: ui-monospace, monospace; font-size: 8px; color: var(--muted-2); padding: 4px; }
.gallery__thumb.is-active { border-color: var(--accent); }
.gallery__main { position: relative; border: 1px solid var(--border); border-radius: 14px; min-height: 460px; background: repeating-linear-gradient(45deg, #f5f5f7, #f5f5f7 12px, #ececef 12px, #ececef 24px); display: flex; align-items: center; justify-content: center; font-family: ui-monospace, monospace; font-size: 13px; color: var(--muted-2); }
.gallery__zoom { position: absolute; bottom: 14px; right: 14px; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); display: flex; align-items: center; justify-content: center; }
.buy { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.specs__row { display: flex; align-items: baseline; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #ececef; font-size: 13px; }
.specs__row span { color: var(--muted); } .specs__row b { font-weight: 600; color: var(--text); }
.buy__price { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.buy__price .price { font-size: 32px; }
.buy__save { background: #fdeef2; color: var(--danger); font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.qty__btn { width: 42px; height: 52px; border: none; background: var(--bg); font-size: 20px; color: var(--text-2); }
.qty__val { width: 44px; text-align: center; font-weight: 600; font-size: 16px; }
.buy__note { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #4a4a52; }
.specs-full { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.specs-full__row { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #ececef; font-size: 14px; }
.specs-full__row span { color: var(--muted); } .specs-full__row b { font-weight: 600; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.review__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }

/* --- Формы -------------------------------------------------------------- */
.field { width: 100%; height: 48px; border: 1.5px solid var(--border); border-radius: 10px; padding: 0 14px; font-size: 15px; outline: none; }
.field:focus { border-color: var(--accent); }
textarea.field { height: auto; padding: 12px 14px; resize: vertical; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; color: var(--muted); line-height: 1.4; }
.consent input { margin-top: 2px; accent-color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }

/* --- Футер -------------------------------------------------------------- */
.footer { background: var(--dark); color: #b8b8bf; margin-top: 60px; }
.footer__inner { padding: 48px 0 0; }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1fr; gap: 32px; }
.footer__logo { background: #fff; border-radius: 10px; padding: 8px 12px; display: inline-block; margin-bottom: 16px; }
.footer__logo img { height: 44px; }
.footer__title { font-weight: 600; color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer__list { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.footer__list a { color: #b8b8bf; } .footer__list a:hover { color: #fff; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; }
.footer__social a:hover { background: var(--accent); }
.footer__contacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__contact { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact .icon { color: var(--accent); margin-top: 2px; }
.footer__contact b { color: #fff; font-weight: 600; font-size: 16px; }
.footer__contact small { font-size: 12px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--muted); }
.footer__pay { display: flex; gap: 8px; }
.footer__pay span { height: 30px; width: 48px; border-radius: 5px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: 9px; font-family: ui-monospace, monospace; color: #8a8a92; }

/* --- Служебные ---------------------------------------------------------- */
.page-title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.page-title h1 { font-size: 30px; }
.page-title__count { font-size: 15px; color: var(--muted-2); }
.lead { font-size: 15px; color: var(--muted); line-height: 1.5; margin: 0 0 18px; max-width: 75ch; }
.empty { text-align: center; padding: 60px 24px; color: var(--muted); }

/* ==========================================================================
   Адаптив — контрольные точки 1440 / 1280 / 992 / 768 / 480 / 375
   ========================================================================== */
@media (max-width: 992px) {
  .products--4, .grid-4, .footer__contacts { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .products--3 { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: 1fr; }
  .tree, .buy { position: static; }
  .catalog .tree { display: none; }        /* дерево прячем, фильтры-пилюли остаются */
  .product, .promo-dark, .contacts-split { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .megamenu__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: 38px; }
  /* Шапка: поиск на всю ширину */
  .header__main { flex-wrap: wrap; }
  .search { order: 5; flex-basis: 100%; min-width: 0; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
}
@media (max-width: 640px) {
  .products--4, .products--3, .grid-4, .grid-5, .footer__contacts, .footer__cols, .specs-full { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .product-row { grid-template-columns: 1fr; }
  .products.is-list .product-card { flex-direction: column; }
  .products.is-list .product-card__image { width: 100%; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .gallery__thumb { width: 64px; flex-shrink: 0; }
  .megamenu__grid { grid-template-columns: 1fr; }
  .hero { min-height: 300px; }
  .hero__slide { padding: 28px; }
  .hero__title { font-size: 28px; }
  .hero__sub { font-size: 15px; }
  .hero__dots { left: 28px; }
  .search__select { display: none; }
  .header__actions { gap: 14px; }
  .action--cart .action__sum { display: none; }
  .promo-dark__body { padding: 28px; }
}
@media (max-width: 440px) {
  .header__logo img { height: 40px; }
  .header__main { gap: 10px; }
  h1, .page-title h1 { font-size: 24px; }
}
