/* ═══════════════════════════════════════════════════════════
   ИНСТРУМЕНТ.ПРО — Retail-style, inspired by vseinstrumenti.ru
   Палитра: красный #D60000, градиент #F60000→#D60000, белый, чёрный
   ═══════════════════════════════════════════════════════════ */

:root {
  --red:       #D60000;
  --red-hot:   #F60000;
  --red-dark:  #B80000;
  --red-50:    #FEF2F2;
  --red-100:   #FEE2E2;

  --black:     #000000;
  --ink:       #1A1A1A;
  --gray-900:  #222222;
  --gray-700:  #555555;
  --gray-500:  #8A8A8A;
  --gray-300:  #D0D0D0;
  --gray-200:  #E5E5E5;
  --gray-100:  #F2F2F2;
  --gray-50:   #F8F8F8;
  --white:     #FFFFFF;

  --green:     #16A34A;   /* "в наличии" */
  --green-bg:  #E8F5ED;
  --yellow:    #FFD600;   /* акции / плашки */
  --yellow-bg: #FFF4CC;
  --orange:    #FF6A00;   /* скидка */
  --blue:      #0066CC;   /* инфо */

  --font: 'Manrope', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;

  --container: 1400px;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,.12);
}

/* ——— reset ——— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--gray-50);
  font-weight: 400;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ═══════════ ВЕРХНЯЯ ПОЛОСА ═══════════ */
.topbar {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  font-size: 13px;
  color: var(--gray-700);
}
.topbar__inner {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 36px;
  gap: 24px;
}
.topbar__city {
  display: flex; align-items: center; gap: 6px;
  color: var(--ink);
  font-weight: 500;
}
.topbar__city:hover { color: var(--red); }
.topbar__city svg { flex-shrink: 0; }
.topbar__city-arrow { color: var(--gray-500); }

.topbar__nav { display: flex; gap: 20px; }
.topbar__nav a { transition: color .15s; }
.topbar__nav a:hover { color: var(--red); }
.topbar__nav a.is-b2b { color: var(--red); font-weight: 600; }

.topbar__right { display: flex; gap: 18px; align-items: center; }
.topbar__right a:hover { color: var(--red); }

/* ═══════════ HEADER ═══════════ */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 100;
}
.header__inner {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
}

/* Логотип */
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
  background: linear-gradient(180deg, var(--red-hot) 0%, var(--red) 100%);
  color: var(--white);
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo__name em { color: var(--red); font-style: normal; }
.logo__slogan {
  font-size: 11px;
  color: var(--gray-700);
  margin-top: 4px;
  font-weight: 500;
}

/* Кнопка "Каталог товаров" */
.catalog-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--red);
  color: var(--white);
  padding: 0 22px;
  height: 46px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  transition: background .15s;
}
.catalog-btn:hover { background: var(--red-dark); }
.catalog-btn__icon {
  display: flex; flex-direction: column; gap: 3px;
}
.catalog-btn__icon span {
  display: block; width: 16px; height: 2px; background: var(--white); border-radius: 1px;
}

/* Поиск */
.search {
  display: flex;
  height: 46px;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.search__input {
  flex: 1;
  padding: 0 16px;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}
.search__input::placeholder { color: var(--gray-500); }
.search__btn {
  width: 56px;
  background: var(--red);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.search__btn:hover { background: var(--red-dark); }

/* Действия в хедере */
.header__actions { display: flex; gap: 4px; }
.act {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 12px;
  font-size: 11px;
  color: var(--ink);
  position: relative;
  transition: color .15s;
  border-radius: var(--radius-sm);
  min-width: 64px;
}
.act:hover { color: var(--red); background: var(--gray-50); }
.act__icon { position: relative; }
.act__badge {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--white);
}
.act__label {
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ═══════════ МЕГА-МЕНЮ (плашка с каталогом) ═══════════ */
/* ═══════════ QUICKLINKS (полоса быстрых ссылок под шапкой) ═══════════ */
.quicklinks {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.quicklinks__inner {
  display: flex;
  gap: 24px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.quicklinks__inner::-webkit-scrollbar { display: none; }
.quicklinks__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  white-space: nowrap;
  transition: color .15s;
  padding: 4px 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.quicklinks__link:hover { color: var(--red); }
.quicklinks__link--accent { color: var(--red); font-weight: 700; }
.quicklinks__link--accent::before {
  content: ''; width: 6px; height: 6px;
  background: var(--red); border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ═══════════ МЕГА-МЕНЮ ═══════════ */
.mega-menu__overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  z-index: 98;
}
.mega-menu__overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 3px solid var(--red);
  box-shadow: 0 12px 32px rgba(0,0,0,.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 99;
  max-height: calc(100vh - 120px);
  overflow: hidden;
}
.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu__container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  height: calc(100vh - 160px);
  max-height: 600px;
}

/* ── Левая колонка ── */
.mega-menu__sidebar {
  width: 256px;
  flex-shrink: 0;
  background: #f7f7f7;
  border-right: 1px solid #ebebeb;
  overflow-y: auto;
  padding: 6px 0;
}
.mega-menu__cat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .12s, color .12s;
  cursor: pointer;
}
.mega-menu__cat:hover,
.mega-menu__cat.is-active {
  background: #fff;
  border-left-color: var(--red);
  color: var(--red);
}
.mega-menu__cat-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
}
.mega-menu__cat:hover .mega-menu__cat-icon,
.mega-menu__cat.is-active .mega-menu__cat-icon { color: var(--red); }
.mega-menu__cat-name { flex: 1; line-height: 1.3; }
.mega-menu__cat-arrow { color: #bbb; flex-shrink: 0; }
.mega-menu__cat:hover .mega-menu__cat-arrow,
.mega-menu__cat.is-active .mega-menu__cat-arrow { color: var(--red); }

/* ── Правая панель ── */
.mega-menu__content {
  flex: 1;
  overflow-y: auto;
  min-width: 0;
}
.mega-menu__panel {
  display: none;
  padding: 16px 24px 24px;
}
.mega-menu__panel.is-active { display: block; }

.mega-menu__panel-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 12px;
}
.mega-menu__panel-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.mega-menu__panel-title:hover { color: var(--red); }
.mega-menu__panel-count {
  font-size: 12px;
  color: var(--gray-500,#888);
}

/* ── Сетка карточек ── */
.mega-menu__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mega-menu__card {}

.mega-menu__card-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  text-decoration: none;
  transition: background .15s;
}
.mega-menu__card-img-wrap:hover { background: #eee; }
.mega-menu__card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.mega-menu__card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.mega-menu__card-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 6px;
}
.mega-menu__card-name:hover { color: var(--red); }

.mega-menu__card-subs {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mega-menu__card-sub {
  font-size: 12px;
  color: #555;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mega-menu__card-sub:hover { color: var(--red); }
.mega-menu__card-more {
  font-size: 12px;
  color: var(--red,#e63312);
  font-weight: 600;
  text-decoration: none;
  margin-top: 2px;
}
.mega-menu__card-more:hover { text-decoration: underline; }

/* Мобильная адаптация */
@media (max-width: 900px) {
  .mega-menu {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .mega-menu__container {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .mega-menu__sidebar {
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--gray-100);
  }
  .mega-menu__panel-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mega-menu__side {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--gray-100);
    padding-top: 20px;
  }
}


/* ═══════════ СТРАНИЦА /catalogue (в стиле Леманы) ═══════════ */
.catalogue-page {
  padding: 24px 0 80px;
  background: var(--white);
}
.catalogue-page .breadcrumbs {
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--gray-500);
}
.catalogue-page .breadcrumbs a {
  color: var(--gray-700);
  text-decoration: none;
}
.catalogue-page .breadcrumbs a:hover { color: var(--red); }

.catalogue-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 36px;
  line-height: 1;
}

/* Полоса избранных брендов */
.brand-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}
.brand-row__item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.brand-row__item:hover {
  border-color: var(--red);
  transform: translateY(-1px);
}
.brand-row__item img {
  max-width: 90%;
  max-height: 60%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.brand-row__text {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* Сетка категорий 4 колонки без обводок */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}
.cat-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cat-col__image-link {
  display: block;
  text-decoration: none;
  margin-bottom: 18px;
}
.cat-col__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 180px;
  background: var(--gray-50);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  transition: background .15s;
}
.cat-col__image-link:hover .cat-col__image {
  background: var(--yellow-bg);
}
.cat-col__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cat-col__image svg {
  color: var(--gray-400);
}

.cat-col__name {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-bottom: 14px;
  line-height: 1.2;
}
.cat-col__name:hover { color: var(--red); }

.cat-col__subs {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
}
.cat-col__sub {
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
  transition: color .12s;
}
.cat-col__sub:hover { color: var(--red); }
.cat-col__sub.is-hidden { display: none; }

.cat-col.is-expanded .cat-col__sub.is-hidden {
  display: block;
  animation: fadeInSub .25s ease;
}
@keyframes fadeInSub {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.cat-col__more {
  background: none;
  border: none;
  padding: 8px 0 2px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  margin-top: auto;
  align-self: flex-start;
}
.cat-col__more:hover { color: var(--red); }
.cat-col__more-icon { transition: transform .2s; }
.cat-col.is-expanded .cat-col__more-icon { transform: rotate(180deg); }

.cat-col__more-label-collapsed,
.cat-col.is-expanded .cat-col__more-label-expanded {
  display: inline;
}
.cat-col__more-label-expanded,
.cat-col.is-expanded .cat-col__more-label-collapsed {
  display: none;
}

.empty-notice {
  background: var(--yellow-bg);
  padding: 20px;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 14px;
}

/* Адаптация */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .catalogue-title { font-size: 32px; margin-bottom: 28px; }
  .brand-row { margin-bottom: 32px; }
}
@media (max-width: 500px) {
  .cat-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ═══════════ УРОВЕНЬ 2: плитки подкатегорий ═══════════ */
.cat-subs-page {
  padding: 24px 0 80px;
  background: var(--white);
}
.cat-subs-page .breadcrumbs {
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--gray-500);
}
.cat-subs-page .breadcrumbs a { color: var(--gray-700); text-decoration: none; }
.cat-subs-page .breadcrumbs a:hover { color: var(--red); }

.cat-subs-head {
  margin-bottom: 28px;
}
.cat-subs-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.05;
}
.cat-subs-subtitle {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E67E22;
}
.cat-subs-description {
  color: var(--gray-700);
  font-size: 14px;
  margin: 0 0 24px;
  max-width: 760px;
  line-height: 1.5;
}

.sub-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.sub-tile {
  display: flex;
  flex-direction: column;
  background: #F3EFE9;
  border-radius: var(--radius);
  padding: 18px 14px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: background .15s;
  min-height: 220px;
}
.sub-tile:hover {
  background: #EAE4DB;
}
.sub-tile:hover .sub-tile__name {
  color: var(--red);
}
.sub-tile__image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 12px;
  min-height: 120px;
}
.sub-tile__image img {
  max-width: 100%;
  max-height: 130px;
  object-fit: contain;
}
.sub-tile__image svg { color: var(--gray-400); }
.sub-tile__name {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  transition: color .12s;
}

@media (max-width: 1100px) {
  .sub-tiles { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 880px) {
  .sub-tiles { grid-template-columns: repeat(3, 1fr); }
  .cat-subs-title { font-size: 32px; }
}
@media (max-width: 560px) {
  .sub-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sub-tile { padding: 14px 10px 16px; min-height: 180px; }
}

/* ═══════════ УРОВЕНЬ 3: товары с сайдбаром ═══════════ */
.cat-products-page {
  padding: 24px 0 80px;
  background: var(--white);
}
.cat-products-page .breadcrumbs {
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--gray-500);
  flex-wrap: wrap;
}
.cat-products-page .breadcrumbs a { color: var(--gray-700); text-decoration: none; }
.cat-products-page .breadcrumbs a:hover { color: var(--red); }

.cat-products-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 24px;
  line-height: 1.1;
}

.cat-products-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

.cat-sidebar {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding-right: 4px;
}

/* Список сестринских категорий (жирно чёрным, активная красным) */
.cat-sidebar__siblings {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}
.cat-sidebar__sibling {
  padding: 6px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
  transition: color .12s;
}
.cat-sidebar__sibling:hover {
  color: var(--red);
}
.cat-sidebar__sibling.is-active {
  color: var(--red);
}

/* Фильтры */
.cat-sidebar__filters {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cat-sidebar__filter {}
.cat-sidebar__filter-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Toolbar: счётчик + сортировка */
.cat-products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.cat-products-count {
  font-size: 14px;
  color: var(--gray-700);
}
.cat-products-sort select {
  min-width: 200px;
}

.cat-products-content {
  min-width: 0;
}

@media (max-width: 900px) {
  .cat-products-layout { grid-template-columns: 1fr; gap: 24px; }
  .cat-sidebar {
    position: static;
    max-height: none;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px;
  }
  .cat-products-title { font-size: 28px; }
}

/* ═══════════ HERO / БАННЕР ═══════════ */
.hero {
  padding: 20px 0;
  background: var(--gray-50);
}
.hero__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

/* Главный баннер */
.main-banner {
  background: linear-gradient(135deg, var(--red-hot) 0%, var(--red-dark) 100%);
  border-radius: var(--radius);
  padding: 40px 48px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex; flex-direction: column; justify-content: center;
}
.main-banner::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.main-banner::after {
  content: '';
  position: absolute;
  bottom: -60px; right: 80px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.main-banner__tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  width: fit-content;
}
.main-banner__title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.main-banner__title .highlight {
  background: var(--yellow);
  color: var(--black);
  padding: 2px 10px;
  display: inline-block;
}
.main-banner__desc {
  font-size: 16px;
  line-height: 1.4;
  opacity: .95;
  max-width: 480px;
  margin-bottom: 26px;
  font-weight: 500;
}
.main-banner__cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white);
  color: var(--red);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  width: fit-content;
  transition: transform .15s;
}
.main-banner__cta:hover { transform: translateY(-2px); }
.main-banner__dots {
  position: absolute;
  bottom: 24px; left: 48px;
  display: flex; gap: 6px;
}
.main-banner__dots span {
  width: 28px; height: 4px;
  background: rgba(255,255,255,.35);
  border-radius: 2px;
}
.main-banner__dots span.is-active { background: var(--white); }

/* Боковые промо-баннеры */
.promo-col {
  display: flex; flex-direction: column; gap: 12px;
}
.promo-banner {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 164px;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.promo-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.promo-banner--dark {
  background: var(--ink);
  color: var(--white);
}
.promo-banner--yellow {
  background: linear-gradient(135deg, #FFE74C 0%, var(--yellow) 100%);
  color: var(--black);
}
.promo-banner__tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red);
  margin-bottom: 8px;
}
.promo-banner--dark .promo-banner__tag { color: var(--yellow); }
.promo-banner--yellow .promo-banner__tag { color: var(--red); }
.promo-banner__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 70%;
}
.promo-banner__desc {
  font-size: 13px;
  margin-top: 6px;
  color: var(--gray-700);
  max-width: 70%;
}
.promo-banner--dark .promo-banner__desc { color: rgba(255,255,255,.7); }
.promo-banner__price {
  font-size: 28px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.02em;
}
.promo-banner__img {
  position: absolute;
  right: -10px; bottom: -10px;
  width: 120px; height: 120px;
  opacity: .9;
}

/* ═══════════ B2B ПЛАШКИ ═══════════ */
.b2b-strip {
  padding: 16px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.b2b-strip__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.b2b-item {
  display: flex; gap: 10px; align-items: center;
  padding: 4px;
  font-size: 12px;
  line-height: 1.3;
}
.b2b-item__icon {
  width: 36px; height: 36px;
  background: var(--red-50);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.b2b-item__title {
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 2px;
}
.b2b-item__sub { color: var(--gray-500); font-size: 11px; }

/* ═══════════ СЕКЦИИ ═══════════ */
.section {
  padding: 36px 0;
}
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap; gap: 16px;
}
.section-head__title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex; align-items: center; gap: 12px;
}
.section-head__count {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 500;
}
.section-head__all {
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .15s;
}
.section-head__all:hover { gap: 10px; }

/* Вкладки (популярные / хиты / новинки) */
.tabs {
  display: flex; gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tab {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: all .15s;
}
.tab:hover { border-color: var(--red); color: var(--red); }
.tab.is-active {
  background: var(--ink); color: var(--white); border-color: var(--ink);
}

/* ═══════════ КАТЕГОРИИ ═══════════ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: left;
  transition: all .2s;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 160px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.cat-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.cat-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.cat-card__count {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  margin-top: auto;
}
.cat-card__img {
  width: 64px; height: 64px;
  align-self: flex-end;
  margin-top: auto;
}
.cat-card__img svg { width: 100%; height: 100%; }

/* ═══════════ КАРТОЧКА ТОВАРА ═══════════ */
.products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.product {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px;
  position: relative;
  transition: all .2s;
  border: 1px solid var(--gray-200);
  display: flex; flex-direction: column;
}
.product:hover {
  box-shadow: var(--shadow);
  border-color: var(--gray-300);
  z-index: 2;
}

.product__labels {
  position: absolute;
  top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 2;
}
.label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
}
.label--red { background: var(--red); color: var(--white); }
.label--yellow { background: var(--yellow); color: var(--black); }
.label--green { background: var(--green); color: var(--white); }
.label--orange { background: var(--orange); color: var(--white); }

.product__fav {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
  transition: all .15s;
  z-index: 2;
}
.product__fav:hover { color: var(--red); border-color: var(--red); }
.product__fav.is-active { color: var(--red); border-color: var(--red); }

.product__media {
  display: block;
  height: 180px;
  margin-bottom: 12px;
  padding: 8px;
  background: var(--white);
  overflow: hidden;
}
.product__img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .25s;
}
.product:hover .product__img { transform: scale(1.04); }

/* Рейтинг + количество отзывов */
.product__rating {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
}
.product__stars {
  color: var(--yellow); display: inline-flex; gap: 1px;
}
.product__rating-val { color: var(--gray-700); font-weight: 600; }
.product__reviews { color: var(--gray-500); }

.product__title {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 500;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product__title:hover { color: var(--red); }

.product__art {
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: 10px;
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  letter-spacing: -0.02em;
}

/* Цена */
.product__price-box {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 8px;
}
.product__price {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.product__price--sale { color: var(--red); }
.product__price-old {
  font-size: 13px;
  color: var(--gray-500);
  text-decoration: line-through;
}
.product__discount {
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  background: var(--orange);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Наличие */
.product__stock {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 10px;
}
.product__stock::before {
  content: ''; width: 7px; height: 7px; background: var(--green);
  border-radius: 50%; display: inline-block;
}
.product__stock--little { color: var(--orange); }
.product__stock--little::before { background: var(--orange); }

/* Кнопка */
.product__foot {
  margin-top: auto;
  display: flex; gap: 6px;
}
.btn-buy {
  flex: 1;
  background: var(--red);
  color: var(--white);
  height: 40px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s;
}
.btn-buy:hover { background: var(--red-dark); }
.btn-buy.is-added {
  background: var(--green);
}
.btn-compare {
  width: 40px; height: 40px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  background: var(--white);
}
.btn-compare:hover { border-color: var(--red); color: var(--red); }

/* ═══════════ ПРОМО ПОЛОСА ═══════════ */
.promo-strip {
  background: linear-gradient(90deg, var(--red-hot) 0%, var(--red) 100%);
  padding: 20px 0;
  color: var(--white);
}
.promo-strip__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.promo-strip__text {
  display: flex; align-items: center; gap: 20px;
}
.promo-strip__big {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.promo-strip__big em {
  font-style: normal;
  background: var(--yellow);
  color: var(--black);
  padding: 2px 10px;
  display: inline-block;
}
.promo-strip__sub {
  font-size: 15px;
  opacity: .95;
  max-width: 400px;
  font-weight: 500;
}
.promo-strip__btn {
  background: var(--white);
  color: var(--red);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.promo-strip__btn:hover { background: var(--yellow); color: var(--black); }

/* ═══════════ БРЕНДЫ ═══════════ */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.brand-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; align-items: center; justify-content: center;
  min-height: 80px;
  transition: all .15s;
}
.brand-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.brand-card__name {
  font-weight: 800;
  font-size: 16px;
  color: var(--gray-700);
  letter-spacing: -0.01em;
  transition: color .15s;
}
.brand-card:hover .brand-card__name { color: var(--red); }

/* ═══════════ ИНФО-БЛОКИ ═══════════ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex; gap: 14px;
  transition: all .15s;
}
.info-card:hover {
  border-color: var(--red);
}
.info-card__icon {
  width: 44px; height: 44px;
  background: var(--red-50);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.info-card__title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--ink);
}
.info-card__desc {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.4;
}

/* ═══════════ FOOTER ═══════════ */
.footer {
  background: var(--ink);
  color: var(--gray-300);
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 3fr;
  gap: 60px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand {
  display: flex; flex-direction: column; gap: 16px;
}
.footer__brand .logo__name { color: var(--white); }
.footer__brand .logo__slogan { color: var(--gray-500); }
.footer__contacts {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 12px;
}
.footer__phone {
  font-size: 22px; font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}
.footer__hours {
  font-size: 13px; color: var(--gray-500);
}
.footer__socials {
  display: flex; gap: 10px;
  margin-top: 6px;
}
.footer__soc {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background .15s;
}
.footer__soc:hover { background: var(--red); }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.footer__col h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.footer__col a {
  font-size: 13px;
  color: var(--gray-300);
  transition: color .15s;
}
.footer__col a:hover { color: var(--red); }

.footer__apps {
  display: flex; gap: 10px;
  margin-top: 12px;
}
.footer__app {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-sm);
  font-size: 11px; line-height: 1.1;
  color: var(--white);
}
.footer__app strong { font-size: 13px; font-weight: 700; }

.footer__bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--gray-500);
}
.footer__bottom a:hover { color: var(--red); }
.footer__pay {
  display: flex; gap: 6px;
}
.footer__pay span {
  padding: 4px 8px;
  background: var(--white);
  color: var(--ink);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1200px) {
  .products { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .brands-grid { grid-template-columns: repeat(6, 1fr); }
  .b2b-strip__grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .header__inner {
    grid-template-columns: auto 1fr;
    gap: 14px;
  }
  .catalog-btn span:not(.catalog-btn__icon span) { display: none; }
  .catalog-btn { padding: 0 12px; }
  .search {
    grid-column: 1 / -1;
    order: 3;
  }
  .hero__grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
  .main-banner { padding: 28px 24px; min-height: 280px; }
  .main-banner__title { font-size: 32px; }
}

@media (max-width: 600px) {
  .topbar__nav { display: none; }
  .act__label { display: none; }
  .act { padding: 6px 8px; min-width: 40px; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .section-head__title { font-size: 22px; }
  .promo-strip__big { font-size: 24px; }
  .footer__cols { grid-template-columns: 1fr; }
  .info-grid, .b2b-strip__grid { grid-template-columns: 1fr 1fr; }
}

/* ================================
   Страница каталога /catalogue
   ================================ */
.catalogue-head {
  margin-bottom: 32px;
}
.catalogue-head h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}
.catalogue-head__subtitle {
  font-size: 14px;
  color: var(--gray-500);
}
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) {
  .catalogue-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .catalogue-grid { grid-template-columns: 1fr; }
}
.catalogue-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius, 10px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .18s ease;
}
.catalogue-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.catalogue-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.catalogue-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--yellow-bg, #fffbe6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.catalogue-card__title-wrap {
  min-width: 0;
}
.catalogue-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
  display: block;
}
.catalogue-card__title:hover { color: var(--red); }
.catalogue-card__count {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 3px;
}
.catalogue-card__subs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.catalogue-card__sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-700, #444);
  text-decoration: none;
  padding: 3px 0;
  transition: color .15s;
}
.catalogue-card__sub:hover { color: var(--red); }
.catalogue-card__sub.is-hidden { display: none; }
.catalogue-card__sub-count {
  font-size: 11px;
  color: var(--gray-500);
  background: #f4f4f4;
  border-radius: 20px;
  padding: 1px 7px;
  flex-shrink: 0;
  margin-left: 6px;
}
.catalogue-card__toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--red);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.catalogue-card__toggle:hover { opacity: .8; }
.catalogue-card__toggle-icon { transition: transform .2s; }
.catalogue-card__toggle.is-open .catalogue-card__toggle-icon { transform: rotate(180deg); }
.catalogue-card__toggle-label-expanded { display: none; }
.catalogue-card__toggle.is-open .catalogue-card__toggle-label-collapsed { display: none; }
.catalogue-card__toggle.is-open .catalogue-card__toggle-label-expanded { display: inline; }


/* ================================
   Пагинация
   ================================ */
.pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.pagination__inner {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.pagination__btn:hover {
  border-color: var(--red);
  color: var(--red);
}
.pagination__btn--disabled {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: #ccc;
  cursor: default;
}
.pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 4px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.pagination__page:hover {
  border-color: var(--red);
  color: var(--red);
}
.pagination__page--active {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 4px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
}
.pagination__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 14px;
  color: var(--gray-500);
}


/* ================================
   Страница товара
   ================================ */
.desk-product-wrap {
  padding: 16px 0 40px;
}
@media (max-width: 900px) {
  .desk-product-wrap { display: none !important; }
}
@media (min-width: 901px) {
  .mob-product-wrap, .mob-breadcrumbs { display: none !important; }
}

/* Галерея */
.product-gallery {
  position: sticky;
  top: 100px;
}
.product-gallery__main {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  margin-bottom: 12px;
  overflow: hidden;
}
.product-gallery__main img,
.product-gallery__main svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.product-gallery__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-gallery__thumb {
  width: 72px;
  height: 72px;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  padding: 6px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-gallery__thumb:hover,
.product-gallery__thumb.is-active { border-color: var(--red); }

/* Информация */
.product-info { min-width: 0; }
.product-info h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 8px 0 10px;
}
.product-info__sku {
  font-size: 13px;
  color: var(--gray-500);
  font-family: ui-monospace, Consolas, monospace;
}
.product-info__brand {
  font-size: 13px;
  color: var(--gray-700);
  margin-bottom: 4px;
}
.product-info__brand a { color: var(--red); text-decoration: none; }

.product-info .product__rating { margin: 10px 0; font-size: 13px; }
.product-info .product__stock { margin: 16px 0 10px; font-size: 14px; }

/* Цена */
.product-info__price-block {
  background: #fafafa;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  padding: 18px;
  margin: 14px 0;
}
.product-info__price {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.product-info__price--sale { color: var(--red); }
.product-info__price-old {
  font-size: 15px;
  color: var(--gray-500);
  text-decoration: line-through;
  margin-left: 10px;
}

/* Количество + кнопка */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.qty__btn {
  width: 36px; height: 42px;
  background: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
  transition: background .12s;
}
.qty__btn:hover { background: #f5f5f5; }
.qty__input, .qty__value {
  width: 44px;
  height: 42px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
}
.qty__input:focus { outline: none; }

/* Инфо-карточки */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.info-card {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: #fafafa;
  border: 1px solid #ebebeb;
  border-radius: 8px;
}
.info-card__icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.info-card__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 2px;
}
.info-card__desc {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.3;
}

/* Секции описания и характеристик */
.product-section {
  margin: 40px 0;
}
.product-section__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}
.product-section__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}

/* Таблица характеристик */
.specs {
  width: 100%;
  border-collapse: collapse;
}
.specs tr:nth-child(even) td { background: #fafafa; }
.specs td {
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  vertical-align: top;
}
.specs td:first-child { width: 40%; color: var(--gray-700); }
.specs td:last-child { font-weight: 500; color: var(--ink); }

/* Форма отзыва */
.field { margin-bottom: 14px; }
.field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field__input, .field__textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
.field__textarea { min-height: 90px; resize: vertical; }
.field__input:focus, .field__textarea:focus {
  outline: none;
  border-color: var(--red);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Звездочный инпут */
.rating-input {
  display: inline-flex;
  gap: 3px;
}
.star-btn {
  background: none;
  border: none;
  font-size: 26px;
  color: #ddd;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color .12s;
}
.star-btn.is-active,
.star-btn:hover { color: var(--yellow); }

.rating-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #fafafa;
  border-radius: 10px;
  margin-bottom: 16px;
}
.rating-summary__big {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
}
.rating-summary__stars { font-size: 18px; color: var(--yellow); }
.rating-summary__count { font-size: 13px; color: var(--gray-500); }

.review-list { display: flex; flex-direction: column; gap: 14px; }
.review-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  padding: 14px;
}
.review-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.review-card__author { font-weight: 700; font-size: 14px; }
.review-card__date { font-size: 12px; color: var(--gray-500); }
.review-card__stars { color: var(--yellow); font-size: 14px; margin-bottom: 6px; }
.review-card__text { font-size: 14px; line-height: 1.5; color: var(--ink); }
.helpful-count { margin-left: 6px; font-weight: 600; color: var(--gray-700); }

/* ================================
   Мобильная версия товара
   ================================ */
.mob-product-wrap { padding: 12px 16px; background: #fff; }
.mob-product-header { margin-bottom: 14px; }
.mob-product-header__sku { font-size: 12px; color: var(--gray-500); font-family: ui-monospace, Consolas, monospace; }
.mob-product-header h1 { font-size: 20px; font-weight: 700; line-height: 1.25; margin: 6px 0; }
.mob-gallery {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}
.mob-gallery__track { display: flex; height: 100%; transition: transform .25s; }
.mob-gallery__slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.mob-gallery__slide img, .mob-gallery__slide svg { max-width: 100%; max-height: 100%; object-fit: contain; }
.mob-gallery__dots {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.mob-gallery__dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,.2);
}
.mob-gallery__dots span.is-active { background: var(--red); }

.mob-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  padding: 6px 10px;
  background: #edf7ed;
  border-radius: 6px;
  margin-bottom: 12px;
}
.mob-buy-block {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  margin-bottom: 14px;
}
.mob-buy-block__price { font-size: 22px; font-weight: 800; color: var(--ink); flex: 1; }
.mob-buy-block.is-sticky {
  position: fixed;
  bottom: 60px; left: 0; right: 0;
  border-radius: 0;
  border-left: 0; border-right: 0;
  z-index: 40;
  box-shadow: 0 -4px 12px rgba(0,0,0,.08);
  margin: 0;
}
.mob-short-desc { font-size: 14px; line-height: 1.55; color: var(--ink); margin-bottom: 14px; }
.mob-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.mob-tabs { margin: 20px 0; }
.mob-tabs__nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #ebebeb;
  margin-bottom: 14px;
  overflow-x: auto;
}
.mob-tabs__btn {
  background: none; border: none;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.mob-tabs__btn.is-active { color: var(--red); border-bottom-color: var(--red); }
.mob-tabs__panel { display: none; }
.mob-tabs__panel.is-active { display: block; }
.mob-review-card {
  background: #fafafa;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}
.mob-review-card__head { display: flex; justify-content: space-between; margin-bottom: 6px; }
.mob-review-card__author { font-weight: 700; font-size: 14px; }
.mob-review-card__date { font-size: 12px; color: var(--gray-500); }
.mob-review-card__stars { color: var(--yellow); font-size: 14px; margin-bottom: 6px; }
.mob-review-card__text { font-size: 14px; line-height: 1.5; }
