/* ============================================================
   OSP System — Стиль B2B каталога (в духе pulsar.kz)
   Чистый, корпоративный, профессиональный
   Fonts: Inter (текст) + Montserrat (заголовки/навигация)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --blue:      #1a4fa0;
  --blue-d:    #153f82;
  --blue-l:    #2563c5;
  --blue-bg:   #eef3fb;
  --accent:    #e8271b;
  --accent-l:  #ff3b2e;
  --bg:        #f2f4f7;
  --white:     #ffffff;
  --text:      #1c1c1e;
  --text-2:    #555b66;
  --text-3:    #9097a3;
  --border:    #d8dce4;
  --border-l:  #e8eaef;
  --radius:    4px;
  --radius-md: 6px;
  --shadow:    0 1px 4px rgba(0,0,0,.08), 0 2px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 20px rgba(0,0,0,.12);
  --trans:     0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 14px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1 { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 800; line-height: 1.2; }
h2 { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
h3 { font-family: 'Montserrat', sans-serif; font-size: 1rem;   font-weight: 600; line-height: 1.3; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ── TOPBAR ──────────────────────────────────────────────────────────────── */
.topbar {
  background: var(--blue);
  height: 36px;
  display: flex;
  align-items: center;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-item {
  display: flex; align-items: center; gap: 5px;
  font-size: .75rem;
  color: rgba(255,255,255,.8);
  transition: color var(--trans);
}
.topbar-item:hover { color: #fff; }
.topbar-item svg { width: 12px; height: 12px; stroke: rgba(255,255,255,.65); fill: none; stroke-width: 2; }
.topbar-social { display: flex; gap: 6px; }
.topbar-social a {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: rgba(255,255,255,.12);
  border-radius: 3px;
  transition: background var(--trans);
}
.topbar-social a:hover { background: rgba(255,255,255,.25); }
.topbar-social svg { width: 12px; height: 12px; fill: #fff; }

/* ── HEADER ──────────────────────────────────────────────────────────────── */
#header {
  position: sticky;
  top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  overflow: visible; /* nav выдвигается поверх страницы на мобильных */
}
.header-inner {
  display: flex; align-items: center;
  height: 60px; gap: 12px;
  overflow: visible;
}
.logo {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.logo__icon {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.logo__icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; }
.logo__text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 1.1rem;
  color: var(--blue); letter-spacing: -.02em;
}
.logo__text span { color: var(--accent); }

#main-nav {
  display: flex; flex-direction: row; align-items: center; gap: 2px; flex: 1;
}
/* ── Обёртки, добавляемые MobileMenu.init() ─────────────────────────────── */
/* Скрываем кнопку закрытия на десктопе */
.nav-mobile-top { display: none; }
/* На десктопе: ссылки горизонтально, как сам #main-nav */
.nav-mobile-links {
  display: flex; flex-direction: row; align-items: center; gap: 2px; flex: 1;
}
.nav__link {
  display: flex; align-items: center; gap: 3px;
  padding: 5px 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem; font-weight: 600;
  color: var(--text-2);
  border-radius: var(--radius);
  transition: background var(--trans), color var(--trans);
  white-space: nowrap;
}
.nav__link:hover { background: var(--blue-bg); color: var(--blue); }
.nav__link--active { color: var(--blue); background: var(--blue-bg); }
.nav__link--catalog { background: var(--blue); color: #fff; padding: 5px 10px; }
.nav__link--catalog:hover { background: var(--blue-d); color: #fff; }

.header-right {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
}
.header-phone {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: .9rem; color: var(--blue);
}
.header-phone svg { width: 14px; height: 14px; stroke: var(--blue); fill: none; stroke-width: 2; }
.btn-wa-header {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  background: #25D366; color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem; font-weight: 700;
  border-radius: var(--radius); border: none;
  transition: background var(--trans); white-space: nowrap;
}
.btn-wa-header:hover { background: #1ab954; }
.btn-wa-header svg { width: 13px; height: 13px; fill: #fff; }

#menu-toggle {
  display: none;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px;
  width: 36px; height: 36px;
  background: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px;
}
.menu-toggle__bar {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
#menu-toggle.menu-toggle--open .menu-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#menu-toggle.menu-toggle--open .menu-toggle__bar:nth-child(2) { opacity: 0; }
#menu-toggle.menu-toggle--open .menu-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
#nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 198;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
#nav-overlay.overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--blue);
  padding: 36px 0 44px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; right: -60px; top: -80px;
  width: 420px; height: 420px;
  background: rgba(255,255,255,.04); border-radius: 50%;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center; gap: 40px;
}
.hero__badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  font-size: .7rem; font-weight: 600;
  color: rgba(255,255,255,.85);
  letter-spacing: .07em; text-transform: uppercase;
  margin-bottom: 12px;
}
.hero__title { color: #fff; margin-bottom: 10px; font-size: clamp(1.4rem, 3vw, 2rem); }
.hero__title em { font-style: normal; color: #ffd166; }
.hero__sub { font-size: .88rem; color: rgba(255,255,255,.75); line-height: 1.65; margin-bottom: 22px; max-width: 500px; }
.hero__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-stats {
  display: flex; flex-direction: column; gap: 8px; flex-shrink: 0;
}
.hero-stat {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-md); padding: 12px 18px; text-align: center; min-width: 100px;
  backdrop-filter: blur(4px);
}
.hero-stat__num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem; font-weight: 800;
  color: #fff; line-height: 1;
}
.hero-stat__label {
  font-size: .68rem; color: rgba(255,255,255,.55);
  text-transform: uppercase; letter-spacing: .05em; margin-top: 3px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: .78rem;
  border-radius: var(--radius); border: 2px solid transparent;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
  cursor: pointer; white-space: nowrap;
}
.btn:active { opacity: .9; }
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-l); }
.btn--white { background: #fff; color: var(--blue); border-color: #fff; }
.btn--white:hover { background: var(--blue-bg); }
.btn--blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--blue:hover { background: var(--blue-d); }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue-bg); }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--wa { background: #25D366; color: #fff; border-color: #25D366; }
.btn--wa:hover { background: #1ab954; }
.btn--sm  { padding: 5px 12px; font-size: .72rem; }
.btn--lg  { padding: 10px 22px; font-size: .85rem; }
.btn__icon { width: 13px; height: 13px; flex-shrink: 0; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 32px 0; }
.section--white { background: var(--white); }
.section--gray  { background: var(--bg); }
.section--blue  { background: var(--blue); }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ''; display: block; width: 4px; height: 16px;
  background: var(--blue); border-radius: 2px;
}
.section-link {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem; font-weight: 600; color: var(--blue);
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
}
.section-link:hover { text-decoration: underline; }

/* ── Brand cards ─────────────────────────────────────────────────────────── */
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.brand-card {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 18px 10px;
  background: var(--white); border: 1px solid var(--border-l);
  border-radius: var(--radius-md); cursor: pointer;
  transition: border-color var(--trans), box-shadow var(--trans); text-align: center;
}
.brand-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.brand-card__logo {
  width: 44px; height: 44px;
  background: var(--blue-bg); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: .9rem; color: var(--blue);
}
.brand-card__name { font-family: 'Montserrat', sans-serif; font-size: .78rem; font-weight: 700; color: var(--text); }
.brand-card__count { font-size: .68rem; color: var(--text-3); }

/* ── Services ────────────────────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.service-card {
  background: var(--white); border: 1px solid var(--border-l);
  border-radius: var(--radius-md); padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.service-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.service-card__icon {
  width: 40px; height: 40px; background: var(--blue-bg);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
}
.service-card__icon svg { width: 20px; height: 20px; stroke: var(--blue); fill: none; stroke-width: 2; }
.service-card__title { font-size: .9rem; font-weight: 700; color: var(--text); }
.service-card__desc  { font-size: .78rem; color: var(--text-2); line-height: 1.55; }

/* ── Products grid ───────────────────────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.product-card {
  background: var(--white); border: 1px solid var(--border-l);
  border-radius: var(--radius-md); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--trans), box-shadow var(--trans);
  min-width: 0; /* Позволяет карточке сжиматься в grid */
}
.product-card:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.product-card__img-wrap {
  display: block; position: relative;
  background: #f5f6f8; aspect-ratio: 1;
  overflow: hidden; border-bottom: 1px solid var(--border-l);
}
.product-card__img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 10px; transition: transform .3s ease;
}
.product-card:hover .product-card__img { transform: scale(1.05); }
.product-card__brand-badge {
  position: absolute; top: 7px; left: 7px;
  padding: 2px 7px;
  background: var(--blue); color: #fff;
  font-size: .62rem; font-weight: 700;
  border-radius: 2px; text-transform: uppercase; letter-spacing: .04em;
}
.sale-badge {
  position: absolute !important;
  top: 7px !important; right: 7px !important; left: auto !important;
  background: #e53e3e; color: #fff;
  font-size: .72rem; font-weight: 700;
  padding: 3px 9px; border-radius: 20px; z-index: 2;
  width: fit-content !important; white-space: nowrap;
}
.product-card__body { padding: 10px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.product-card__cat  { font-size: .65rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.product-card__name { font-size: .82rem; font-weight: 600; color: var(--text); line-height: 1.35; flex: 1; }
.product-card__desc {
  font-size: .72rem; color: var(--text-2); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__footer {
  padding: 8px 12px; border-top: 1px solid var(--border-l);
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; flex-wrap: wrap;
}
.product-card__footer .btn { flex-shrink: 0; }
.product-card__req-label { font-size: .68rem; color: var(--text-3); }

/* ── Catalog page layout ─────────────────────────────────────────────────── */
.catalog-page-wrap { display: grid; grid-template-columns: 230px 1fr; gap: 10px; align-items: start; }

.catalog-sidebar {
  background: var(--white); border: 1px solid var(--border-l);
  border-radius: var(--radius-md); overflow: hidden;
}
.sidebar-section { border-bottom: 1px solid var(--border-l); }
.sidebar-section:last-child { border-bottom: none; }
.sidebar-section__title {
  padding: 10px 14px 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--text-3);
  background: var(--bg); border-bottom: 1px solid var(--border-l);
}
.filter-list { padding: 6px 0; }
.filter-item {
  display: flex; align-items: center; gap: 7px;
  padding: 5px 14px; font-size: .8rem; color: var(--text-2);
  cursor: pointer; transition: background var(--trans), color var(--trans);
}
.filter-item:hover { background: var(--blue-bg); color: var(--blue); }
.filter-item--active {
  color: var(--blue); font-weight: 600; background: var(--blue-bg);
  border-left: 3px solid var(--blue); padding-left: 11px;
}
.filter-item__count {
  margin-left: auto; font-size: .65rem; color: var(--text-3);
  background: var(--bg); padding: 1px 5px; border-radius: 8px;
}
.sidebar-pad { padding: 10px 14px; }
.filter-select, .search-input {
  width: 100%; padding: 7px 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); font-family: 'Inter', sans-serif;
  font-size: .8rem; color: var(--text);
  transition: border-color var(--trans); appearance: none;
}
.filter-select:focus, .search-input:focus { outline: none; border-color: var(--blue); }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; stroke: var(--text-3); pointer-events: none; }
.search-wrap .search-input { padding-left: 28px; }

.catalog-toolbar {
  background: var(--white); border: 1px solid var(--border-l);
  border-radius: var(--radius-md); padding: 9px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.catalog-toolbar__info { font-size: .78rem; color: var(--text-2); }
.catalog-toolbar__info strong { font-weight: 600; color: var(--text); }

/* ── Page header ─────────────────────────────────────────────────────────── */
.page-header { background: var(--blue); padding: 18px 0; }
.page-header__title { color: #fff; font-size: 1.2rem; margin-bottom: 3px; }
.page-header__sub   { color: rgba(255,255,255,.6); font-size: .82rem; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 5px;
  font-size: .75rem; color: var(--text-3); flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-2); transition: color var(--trans); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb__sep { color: var(--border); }
.breadcrumb__current { color: var(--text); font-weight: 500; }
.breadcrumb-wrap { background: var(--white); border-bottom: 1px solid var(--border-l); padding: 10px 0; }

/* ── Product detail ──────────────────────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 380px 1fr; gap: 12px; align-items: start; }
.product-detail__gallery {
  background: var(--white); border: 1px solid var(--border-l);
  border-radius: var(--radius-md); overflow: hidden;
}
.product-detail__img-wrap {
  aspect-ratio: 1; background: #f5f6f8;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.product-detail__img { width: 100%; height: 100%; object-fit: contain; }
.product-detail__info {
  background: var(--white); border: 1px solid var(--border-l);
  border-radius: var(--radius-md); padding: 20px;
}
.product-detail__meta {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 10px;
}
.product-detail__brand-tag {
  display: inline-block; padding: 2px 9px;
  background: var(--blue); color: #fff;
  font-size: .68rem; font-weight: 700; border-radius: 2px;
  text-transform: uppercase; letter-spacing: .04em;
}
.product-detail__cat-tag {
  display: inline-block; padding: 2px 9px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text-2); font-size: .68rem; font-weight: 500; border-radius: 2px;
}
.product-detail__name { font-size: 1.15rem; margin-bottom: 8px; }
.product-detail__desc {
  font-size: .82rem; color: var(--text-2); line-height: 1.65;
  margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border-l);
}
.product-detail__request {
  padding: 12px; background: var(--blue-bg);
  border: 1px solid rgba(26,79,160,.12);
  border-radius: var(--radius); margin-bottom: 14px;
  font-size: .78rem; color: var(--text-2);
}
.product-detail__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.product-detail__specs-title {
  font-size: .88rem; font-weight: 700; margin-bottom: 8px; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--border-l); color: var(--text);
}
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border-l); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 6px 0; font-size: .8rem; vertical-align: top; }
.specs-table__key { color: var(--text-3); width: 44%; padding-right: 10px; }
.specs-table__val { color: var(--text); font-weight: 500; }

/* ── Info cards ──────────────────────────────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.info-card {
  background: var(--white); border: 1px solid var(--border-l);
  border-radius: var(--radius-md); padding: 14px;
  display: flex; gap: 10px; align-items: flex-start;
}
.info-card__icon {
  width: 34px; height: 34px; background: var(--blue-bg);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-card__icon svg { width: 17px; height: 17px; stroke: var(--blue); fill: none; stroke-width: 2; }
.info-card__label { font-size: .68rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.info-card__value { font-size: .85rem; font-weight: 600; color: var(--text); }
.info-card__value a { color: var(--blue); }
.info-card__value a:hover { text-decoration: underline; }

/* ── CTA strip ───────────────────────────────────────────────────────────── */
.cta-strip { background: var(--blue); padding: 28px 0; }
.cta-strip-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-strip__text h2 { color: #fff; font-size: 1.05rem; margin-bottom: 3px; }
.cta-strip__text p  { color: rgba(255,255,255,.65); font-size: .82rem; }
.cta-strip__actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer { background: #12213d; color: rgba(255,255,255,.55); }
.footer-main { padding: 28px 0 20px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 28px; }
.footer-logo .logo__text { color: #fff; }
.footer-tagline { font-size: .78rem; line-height: 1.6; max-width: 240px; margin-top: 10px; }
.footer-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.85); margin-bottom: 10px;
}
.footer-links { display: flex; flex-direction: column; gap: 5px; }
.footer-links a { font-size: .78rem; transition: color var(--trans); }
.footer-links a:hover { color: #fff; }
.footer-contact-list { display: flex; flex-direction: column; gap: 7px; }
.footer-contact-row { display: flex; gap: 7px; align-items: flex-start; font-size: .78rem; }
.footer-contact-row svg { width: 13px; height: 13px; stroke: var(--blue-l); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.footer-contact-row a:hover { color: #fff; }
.footer-social { display: flex; gap: 5px; margin-top: 12px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: rgba(255,255,255,.08); border-radius: var(--radius);
  transition: background var(--trans);
}
.footer-social a:hover { background: var(--blue); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  padding: 12px 0; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; font-size: .72rem;
}

/* ── Toast ───────────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 14px; right: 14px; z-index: 9999;
  display: flex; flex-direction: column; gap: 5px; max-width: 300px;
}
.toast {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px; background: #1c2638;
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-md);
  color: #fff; font-size: .8rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--trans), transform var(--trans);
}
.toast--visible { opacity: 1; transform: none; }
.toast__icon { width: 15px; height: 15px; flex-shrink: 0; }
.toast--success .toast__icon { stroke: #22c55e; }
.toast--error   .toast__icon { stroke: #ef4444; }
.toast--warning .toast__icon { stroke: #f59e0b; }
.toast--info    .toast__icon { stroke: #60a5fa; }
.toast__msg { flex: 1; }
.toast__close { background: none; border: none; cursor: pointer; opacity: .5; padding: 0; }
.toast__close:hover { opacity: 1; }
.toast__close svg { width: 11px; height: 11px; stroke: #fff; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-3); font-size: .82rem; }
.empty-state__icon { width: 44px; height: 44px; margin: 0 auto 10px; stroke: var(--border); }

/* ── Animations ──────────────────────────────────────────────────────────── */
.animate-fade, .animate-up { opacity: 0; transition: opacity .5s ease, transform .5s ease; }
.animate-up  { transform: translateY(18px); }
.is-visible  { opacity: 1 !important; transform: none !important; }
.delay-1 { transition-delay: .08s; } .delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; } .delay-4 { transition-delay: .32s; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav__link { padding: 5px 6px !important; font-size: .68rem !important; }
  .nav__link--catalog { padding: 5px 8px !important; }
  .header-phone span { display: none; }
  .header-right { gap: 6px; }
}
@media (max-width: 900px) {
  .btn-wa-header span { display: none; }
  .btn-b2b-header span { display: none; }
  .btn-b2b-header { padding: 7px 9px !important; min-width: 0; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .catalog-page-wrap { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  html { font-size: 13px; }

  /* Показать бургер */
  #menu-toggle { display: flex !important; }

  /* Скрыть топбар */
  .topbar { display: none; }

  /* Мобильное меню — выезжает слева */
  #main-nav {
    position: fixed !important;
    top: 0; left: 0;
    width: 80vw; max-width: 300px;
    height: 100%; height: 100dvh;
    background: var(--white);
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 0 0 24px !important;
    z-index: 300 !important;
    transform: translateX(-110%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    overflow-x: hidden;
    gap: 0 !important;
    box-shadow: 4px 0 20px rgba(0,0,0,.18);
    -webkit-overflow-scrolling: touch;
    will-change: transform;
  }
  #main-nav.nav--open { transform: translateX(0) !important; }
  .nav-mobile-top {
    display: flex; align-items: center; justify-content: flex-end;
    padding: 10px 12px; border-bottom: 1px solid var(--border);
    width: 100%; box-sizing: border-box; flex-shrink: 0;
    background: var(--white); position: sticky; top: 0; z-index: 1;
  }
  #nav-close-btn {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    background: none; border: 1px solid var(--border);
    border-radius: var(--radius); cursor: pointer; padding: 0;
  }
  #nav-close-btn svg { width: 15px; height: 15px; stroke: var(--text); fill: none; stroke-width: 2.5; }
  .nav-mobile-links { display: block; width: 100%; padding-top: 6px; }

  /* Оверлей активен когда меню открыто */
  #nav-overlay {
    display: block;
    z-index: 299 !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
  #nav-overlay.overlay--visible {
    pointer-events: auto !important;
    opacity: 1 !important;
  }

  /* Ссылки меню */
  .nav__link {
    width: 100% !important;
    font-size: .9rem;
    padding: 12px 20px !important;
    border-radius: 0 !important;
    border-left: 3px solid transparent !important;
    white-space: normal;
  }
  .nav__link:hover { border-left-color: var(--blue) !important; }
  .nav__link--active { border-left-color: var(--blue) !important; background: var(--blue-bg); }
  .nav__link--catalog {
    background: var(--blue) !important;
    color: #fff !important;
    margin: 8px 16px !important;
    width: calc(100% - 32px) !important;
    border-radius: var(--radius) !important;
    border-left: none !important;
  }

  /* Хедер */
  .header-inner { height: 56px; gap: 10px; }
  .header-phone span { display: none; }
  .header-right { gap: 8px; margin-left: auto; }

  /* Каталог */
  .catalog-page-wrap { grid-template-columns: 1fr; }
  .catalog-sidebar { display: none; }
  .catalog-sidebar--mobile-open { display: block !important; }

  /* Футер */
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }

  /* Сетки */
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid   { grid-template-columns: repeat(3, 1fr); }

  /* Детальная страница товара */
  .product-detail { grid-template-columns: 1fr; gap: 12px; }
  .product-detail__actions { flex-wrap: wrap; gap: 8px; }
  .product-detail__actions .btn {
    flex: 1 1 140px;
    justify-content: center;
    text-align: center;
  }

  /* Хиро */
  .hero--no-slides { padding: 28px 0 36px; }
  .hero--has-slides .hero-overlay-content { padding: 28px 0 52px; }
  .hero-stats { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; }
  .hero-arrow { width: 30px; height: 30px; }
  .hero-arrow svg { width: 14px; height: 14px; }

  /* CTA */
  .cta-strip-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .brands-grid   { grid-template-columns: repeat(2, 1fr); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; text-align: center; }
  .hero-stat { min-width: 78px; padding: 8px 10px; }
  .hero-stat__num { font-size: 1.2rem; }
  .btn--lg { padding: 10px 16px; font-size: .8rem; }
  .logo__img { height: 38px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   СЛАЙДЕР, ЛОГОТИП, БРЕНДЫ, ЦЕНЫ
   ══════════════════════════════════════════════════════════════════════════ */

/* Логотип — картинка */
.logo__img {
  height: 46px; width: auto;
  display: block; object-fit: contain; border-radius: 4px;
}
.footer-logo .logo__img { height: 38px; }
.logo__icon, .logo__text { display: none !important; }

/* ── Hero slider ─────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; min-height: 240px; }

.hero--no-slides { background: var(--blue); padding: 36px 0 44px; }
.hero--no-slides::before {
  content: ''; position: absolute; right: -60px; top: -80px;
  width: 420px; height: 420px;
  background: rgba(255,255,255,.04); border-radius: 50%;
}
.hero--has-slides { padding: 0; }
.hero--has-slides .hero-overlay-content { padding: 36px 0 44px; }

.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero--no-slides .hero-slider { display: none; }

.hero-slides-track { position: relative; width: 100%; height: 100%; }

.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.8s ease; z-index: 1;
}
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(10,30,70,.72) 0%, rgba(10,30,70,.32) 60%, rgba(10,30,70,.12) 100%);
}
.hero-slide--active { opacity: 1; z-index: 2; }
.hero-slide__caption {
  position: absolute; bottom: 16px; right: 20px;
  background: rgba(0,0,0,.45); color: rgba(255,255,255,.8);
  font-size: .72rem; padding: 4px 10px; border-radius: 3px; z-index: 3;
}

.hero-overlay-content { position: relative; z-index: 5; }

/* Точки */
.hero-dots {
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 7px; z-index: 10;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  background: transparent; cursor: pointer; padding: 0;
  transition: background .25s, border-color .25s, transform .25s;
}
.hero-dot--active { background: #fff; border-color: #fff; transform: scale(1.2); }
.hero-dot:hover { border-color: #fff; background: rgba(255,255,255,.5); }

/* Стрелки */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, border-color .2s;
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(255,255,255,.3); border-color: rgba(255,255,255,.6); }
.hero-arrow svg { width: 16px; height: 16px; stroke: #fff; }
.hero-arrow--prev { left: 14px; }
.hero-arrow--next { right: 14px; }

/* ── Бренд — фото логотипа ─────────────────────────────────────────────── */
.brand-card__logo-img {
  width: 72px; height: 44px; object-fit: contain; border-radius: var(--radius);
}

/* ── Цены ──────────────────────────────────────────────────────────────── */
.price-old { color:var(--text-3); text-decoration:line-through; font-size:.8rem; margin-right:4px; white-space:nowrap; }
.price-sale { color:#e53e3e; font-weight:700; font-size:.88rem; white-space:nowrap; }
.product-card__price {
  font-family: 'Montserrat',sans-serif; font-size: .82rem;
  font-weight: 700; color: var(--blue);
}
.product-card__req-label { font-size: .68rem; color: var(--text-3); font-style: italic; }
.product-detail__price {
  font-family: 'Montserrat',sans-serif; font-size: 1.2rem;
  font-weight: 800; color: var(--blue); margin-bottom: 10px;
}
.product-detail__price-req {
  font-size: .85rem; color: var(--text-3); margin-bottom: 10px;
  padding: 10px 12px; background: var(--blue-bg);
  border: 1px solid rgba(26,79,160,.12); border-radius: var(--radius);
}

/* ── Contacts grid ──────────────────────────────────────────────────────── */
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 8px; }
