/* Montserrat 700/800, кириллица и латиница. Файлы лежат на нашем сервере:
   обращений к fonts.googleapis.com и fonts.gstatic.com больше нет,
   IP посетителей за границу не уходят. Лицензия SIL Open Font License 1.1 */
/* Файлы «700» и «800» оказались одним и тем же переменным шрифтом, и браузер качал
   его дважды. Теперь один файл на алфавит обслуживает оба начертания. */
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url(/fonts/montserrat-800-cyrillic.woff2) format(woff2);
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url(/fonts/montserrat-800-latin.woff2) format(woff2);
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =============================================
   МАЯКАВТО — Apple-style Design System
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-dark: #004ea8;
  --bg: #f5f5f7;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-light: #a1a1a6;
  --border: #d2d2d7;
  --border-light: #e8e8ed;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
  --orange: #ff6b00;
  --orange-hover: #e55d00;
}

html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
}
html::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}
body {
  overflow-x: clip;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---- UTILITY ---- */
.container { max-width: 1440px; margin: 0 auto; padding: 0 12px; }

/* =============================================
   HEADER
   ============================================= */
/* Родитель не должен мешать sticky дочернему элементу */
.site-header {
  background: transparent;
  position: relative;
  overflow: visible !important;
}

/* Только логотип + поиск + навигация — sticky */
.header-sticky-wrap {
  overflow: visible;
}

/* ---- TOP BAR ---- */
.header-topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 0;
  gap: 16px;
}

.topbar-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  justify-self: start;
}
.topbar-schedule-block {
  display: flex;
  align-items: center;
  gap: 7px;
}
.topbar-schedule-block > svg {
  color: var(--text-secondary);
  flex-shrink: 0;
}
.topbar-schedule-times {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.topbar-schedule-times span {
  font-size: 16px;
  color: #3a3a3f;
  font-weight: 500;
  line-height: 1.3;
}
.topbar-links { display: flex; flex-direction: row; gap: 12px; align-items: center; }
.topbar-links-col { display: flex; flex-direction: column; gap: 2px; padding: 6px 0 2px; }
.topbar-links a {
  font-size: 16px;
  color: #3a3a3f;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
  font-weight: 500;
}
.topbar-links a svg { width: 14px; height: 14px; flex-shrink: 0; }
.topbar-links a:hover { color: var(--blue); text-decoration: none; }
.topbar-about-link {
  font-size: 16px;
  color: #3a3a3f;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
  font-weight: 500;
}
.topbar-about-link svg { width: 14px; height: 14px; flex-shrink: 0; color: #3a3a3f; }
.topbar-about-link:hover { color: var(--blue); text-decoration: none; }

.topbar-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}
.topbar-wholesale-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.topbar-phones { display: flex; gap: 20px; margin: 4px 0; }
.topbar-phones a {
  font-size: 19px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
}
.topbar-phones a:hover { text-decoration: underline; }
.topbar-email { font-size: 14px; color: #3a3a3f; }
.topbar-email a { color: #3a3a3f; text-decoration: none; font-weight: 500; }
.topbar-email a:hover { color: var(--blue); }
.topbar-desc { font-size: 13px; color: #3a3a3f; max-width: 480px; line-height: 1.5; }
.topbar-min { font-size: 14px; color: #3a3a3f; font-weight: 500; }
.topbar-min strong { color: var(--text-primary); font-size: 14px; }

.topbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  justify-self: end;
}
.topbar-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #3a3a3f;
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
  border: 1.5px dashed rgba(120, 120, 130, 0.45);
  border-radius: 10px;
  padding: 6px 14px;
}
.topbar-cart-link:hover { color: var(--blue); text-decoration: none; }
.topbar-cart-link svg { width: 22px; height: 22px; }
.topbar-cart-total { font-size: 15px; color: #3a3a3f; font-weight: 400; }
.topbar-cart-badge {
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  min-width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  position: static !important;
  flex-shrink: 0;
}
.topbar-auth { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.topbar-auth a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
  font-weight: 500;
}
.topbar-auth a:hover { color: var(--blue); text-decoration: none; }

/* Styled login button */
.topbar-login-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: var(--blue) !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  padding: 11px 28px;
  border-radius: 50px;
  text-decoration: none !important;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 2px 10px rgba(0,113,227,0.25);
  white-space: nowrap;
}
.topbar-login-btn:hover {
  background: var(--blue-hover) !important;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(0,113,227,0.38);
  transform: translateY(-1px);
}
/* «Войти» для гостя — в 1,5 раза шире (было 128 px, 12.10.2026 по просьбе владельца) */
.topbar-login-guest { min-width: 192px; justify-content: center; }
.topbar-btn-logout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: #dc2626;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(220,38,38,0.35);
  transition: background .18s, transform .18s, box-shadow .18s;
  flex-shrink: 0;
}
.topbar-btn-logout-icon:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(220,38,38,0.5);
}

/* ---- Избранное: круглая кнопка-сердце в шапке ---- */
.topbar-fav-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #dc2626 !important;
  color: #fff !important;
  border-radius: 50%;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(220,38,38,0.35);
  transition: background .18s, transform .18s, box-shadow .18s;
  flex-shrink: 0;
}
.topbar-fav-btn:hover {
  background: #b91c1c !important;
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 4px 16px rgba(220,38,38,0.55);
}
.topbar-fav-btn svg { width: 22px; height: 22px; }

/* ---- Избранное: сердечко на карточке товара ---- */
.product-card { position: relative; }
.fav-heart-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: color .18s, background .18s, transform .18s, box-shadow .18s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  pointer-events: all;
}
.fav-heart-btn svg { width: 20px; height: 20px; }
.fav-heart-btn:hover {
  color: #dc2626;
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(220,38,38,0.25);
}
.fav-heart-btn.is-active {
  color: #dc2626;
  background: #fff;
}
.fav-heart-btn.pulse { animation: favPulse .45s ease; }
@keyframes favPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* На странице товара — компактная кнопка-сердце рядом с «В корзину» */
.product-page-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 2px solid #f2b8b8;
  background: #fff;
  color: #dc2626;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(220,38,38,0.10);
  transition: background .2s, transform .2s, box-shadow .2s, border-color .2s;
}
/* Не в избранном — контурное сердечко (14.10.2026, владелец: закрашенное «выглядит как уже добавленное»);
   закрашенное белое на красном — только когда товар в избранном (.is-active) */
.product-page-fav svg {
  width: 22px;
  height: 22px;
  fill: transparent;
  stroke: #dc2626;
  transition: fill .2s, stroke .2s, transform .2s;
}
.product-page-fav:hover {
  background: #fef2f2;
  border-color: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220,38,38,0.2);
}
.product-page-fav:hover svg { fill: rgba(220,38,38,.18); transform: scale(1.12); }
.product-page-fav.is-active {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-color: #b91c1c;
  box-shadow: 0 4px 14px rgba(220,38,38,0.4);
}
.product-page-fav.is-active svg, .product-page-fav.is-active:hover svg { fill: #fff; stroke: #fff; }
.product-page-fav.is-active:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}
.product-page-fav.pulse { animation: favPulse .45s ease; }

/* =============================================
   СТРАНИЦА О КОМПАНИИ
   ============================================= */
.about-page { padding: 2px 0 80px; max-width: 1180px; }   /* сверху 2 + 16 у крошек = 18, как под ними (14.10.2026; было 24 + 16) */

/* HERO */
.about-hero {
  margin: 18px 0 36px;
  padding: 48px 50px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,107,0,0.18), transparent 55%),
    linear-gradient(135deg, #0f1923 0%, #1a2b3c 55%, #0f2540 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.about-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255,107,0,0.07);
  pointer-events: none;
}
.about-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.about-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255,107,0,0.18);
  border: 1px solid rgba(255,107,0,0.35);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: #ff6b00;
  margin-bottom: 22px;
}
.about-hero h1 {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 18px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.about-brand { color: #ff6b00; }
.about-hero-text {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  margin: 0;
}

/* СТАТИСТИКА */
.about-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));   /* 14.10.2026: пятая плитка «ШОУРУМ» */
  gap: 18px;
  margin-bottom: 44px;
}
.about-stat {
  background: #fff;
  border-radius: 18px;
  padding: 26px 16px;
  text-align: center;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  transition: transform .22s, box-shadow .22s;
}
.about-stat:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(0,0,0,0.1); }
.about-stat { display: flex; flex-direction: column; justify-content: center; }
/* плитка «работаем с юр.лицами и ИП»: вместо цифры — значок того же цвета и высоты («B2B» не писать — владелец 14.10.2026) */
.about-stat-ico { display: flex; justify-content: center; align-items: center; height: 33px; margin-bottom: 6px; color: #ff6b00; }
@media (max-width: 480px) { .about-stat-ico { height: 28px; } .about-stat-ico svg { width: 28px; height: 28px; } }
.about-stat-num {
  font-size: 30px;
  font-weight: 800;
  color: #ff6b00;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  line-height: 1.1;
  white-space: nowrap;   /* «10 000 ₽»: рубль не уходит на отдельную строку */
}
.about-stat-label { font-size: 13px; color: #6b7280; font-weight: 500; }
@media (max-width: 480px) { .about-stat-num { font-size: 25px; } }
@media (max-width: 360px) { .about-stat-num { font-size: 21px; } .about-stat { padding: 22px 10px; } }

/* СЕКЦИИ */
.about-section { margin-bottom: 44px; }
.about-section h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 22px;
  color: #1a1a1a;
  letter-spacing: -0.3px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));   /* 14.10.2026: все 5 в одну линию (было 4 + 1) */
  gap: 18px;
}
.about-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  transition: transform .22s, box-shadow .22s;
}
.about-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,0.1); }
.about-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.about-card-icon svg { width: 26px; height: 26px; }
.about-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a1a;
}
.about-card p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.55;
  margin: 0;
}

/* СКЛАД */
.about-warehouse {
  background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
  border-radius: 22px;
  padding: 42px 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  border: 1px solid #fed7aa;
}
.about-warehouse-left h2 {
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1.15;
}
.about-warehouse-left h2 span { color: #ff6b00; }
.about-warehouse-left p { color: #555; line-height: 1.6; margin: 0; font-size: 15px; }
.about-warehouse-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-warehouse-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.about-warehouse-list li svg {
  width: 18px;
  height: 18px;
  color: #16a34a;
  flex-shrink: 0;
  background: #dcfce7;
  border-radius: 50%;
  padding: 4px;
  box-sizing: content-box;
}

/* ПРИНЦИПЫ */
.about-values {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));   /* 14.10.2026: все 5 в одну линию (было 4 + 1) */
  gap: 16px;
}
.about-value {
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;   /* номер над заголовком: в узкой карточке сбоку тексту не хватало места */
  gap: 10px;
  align-items: flex-start;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform .22s;
}
.about-value:hover { transform: translateY(-3px); }
.about-value > span {
  font-size: 28px;
  font-weight: 800;
  color: #fed7aa;
  line-height: 1;
  flex-shrink: 0;
  font-family: 'Segoe UI', sans-serif;
}
.about-value h4 { font-size: 15px; font-weight: 700; margin: 0 0 4px; color: #1a1a1a; overflow-wrap: anywhere; }
.about-value p { font-size: 13px; color: #6b7280; line-height: 1.5; margin: 0; }

/* КОНТАКТЫ */
.about-contacts { margin-bottom: 36px; }
.about-contacts h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 22px;
  color: #1a1a1a;
}
.about-contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.about-contact-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 24px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  transition: transform .22s, box-shadow .22s;
}
.about-contact-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,0.1); }
.about-contact-card-wide { grid-column: 1 / -1; }   /* адрес — на всю строку под четырьмя карточками (было на две: справа пусто) */
.about-contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.about-contact-icon svg { width: 22px; height: 22px; }
.about-contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: 6px;
}
.about-contact-main {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
a.about-contact-main:hover { color: #ff6b00; }
/* Режим работы — две строки «дни — часы» (14.10.2026) */
.about-hours { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.about-hours-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #f0fdf4; }
.about-hours-row span { font-size: 13px; font-weight: 700; color: #16a34a; }
.about-hours-row b { font-size: 17px; font-weight: 800; color: #1a1a1a; white-space: nowrap; font-variant-numeric: tabular-nums; }
.about-contact-sub {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}
.about-contact-sub a {
  display: block;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
}
.about-contact-sub a:hover { color: #ff6b00; }

/* РЕКВИЗИТЫ */
.about-legal {
  background: #f9fafb;
  border-radius: 20px;
  padding: 32px 36px;
  border: 1px solid #e5e7eb;
}
.about-legal h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #1a1a1a;
}
.about-legal-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 720px;
}
.about-legal-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 18px;
}
.about-legal-grid > div {
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
}
.about-legal-grid span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: 4px;
}
.about-legal-grid b {
  font-size: 15px;
  color: #1a1a1a;
  font-weight: 700;
}

@media (max-width: 900px) {
  .about-hero { padding: 32px 26px; border-radius: 18px; }
  .about-hero h1 { font-size: 28px; }
  .about-hero-text { font-size: 15px; }
  .about-warehouse { grid-template-columns: 1fr; padding: 28px 24px; gap: 24px; }
  .about-legal-grid { grid-template-columns: 1fr; }
  .about-legal { padding: 24px 22px; }
}

/* «О компании»: по 5 в линию не помещаются — по две, пятая во всю ширину (14.10.2026) */
@media (max-width: 1000px) {
  .about-stats, .about-grid, .about-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-stats > :last-child:nth-child(odd), .about-grid > :last-child:nth-child(odd),
  .about-values > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .about-contacts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* 4 карточки — 2 + 2, а не 3 + 1 */
}
@media (max-width: 560px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }            /* карточки с описанием — по одной: в две колонки слова не влезали */
  .about-grid > :last-child:nth-child(odd) { grid-column: auto; }
  .about-contacts-grid { grid-template-columns: minmax(0, 1fr); }
}
.about-card h3, .about-card p, .about-value h4, .about-value p { hyphens: auto; overflow-wrap: break-word; }

/* ---- Страница избранного ---- */
.favorites-page { padding: 0 0 60px; }

.fav-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 30px;
  margin-bottom: 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,0.12), transparent 55%),
    linear-gradient(135deg, rgba(220,38,38,0.78) 0%, rgba(185,28,28,0.78) 60%, rgba(153,27,27,0.78) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(220,38,38,0.18);
  position: relative;
  overflow: hidden;
}
.fav-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.fav-hero-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  animation: favHeroBeat 2.2s ease-in-out infinite;
}
.fav-hero-icon svg {
  width: 34px;
  height: 34px;
  fill: #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}
@keyframes favHeroBeat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
.fav-hero-text { flex: 1; position: relative; z-index: 1; }
.fav-hero-text h1 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #fff;
  letter-spacing: -0.3px;
}
.fav-hero-text .fav-subtitle {
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  margin: 0;
}
.fav-hero-text .fav-subtitle b { font-weight: 700; }

@media (max-width: 560px) {
  .fav-hero { padding: 20px; gap: 14px; border-radius: 16px; }
  .fav-hero-icon { width: 54px; height: 54px; }
  .fav-hero-icon svg { width: 26px; height: 26px; }
  .fav-hero-text h1 { font-size: 22px; }
  .fav-hero-text .fav-subtitle { font-size: 13px; }
}
.favorites-page .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.favorites-empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 16px;
  color: #6b7280;
}
/* только верхний значок: сердечко в тексте («Нажимайте на ♥») тоже растягивалось до 64 px (14.10.2026) */
.favorites-empty > svg { width: 64px; height: 64px; color: #fecaca; fill: currentColor; margin-bottom: 16px; }
.favorites-empty h2 { font-size: 22px; color: #1f2937; margin-bottom: 8px; }
.favorites-empty a {
  display: inline-block;
  margin-top: 20px;
  background: #ff6b00;
  color: #fff;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: background .18s;
}
.favorites-empty a:hover { background: #e05e00; }

/* ---- MAIN HEADER ROW ---- */
.header-main {
  padding: 14px 0;
  background: rgba(255,255,255,0.92);
}
.header-main-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo-icon {
  width: 72px !important;
  height: 72px !important;
  border-radius: 18px !important;
  background: none !important;
  padding: 0 !important;
}
.logo-icon img { width: 72px !important; height: 72px !important; border-radius: 18px !important; display: block; }
.logo-icon svg { width: 42px !important; height: 42px !important; }
.logo-text h1 { font-size: 26px !important; }
.logo-text span { font-size: 15px !important; }
.search-area {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-search-form.large {
  flex: 1;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 50px;
}
.header-search-form.large input { font-size: 16px; }

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}
.logo-area:hover { text-decoration: none; }

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 26px; height: 26px; }

.logo-text h1 {
  font-family: 'Montserrat', var(--font);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.2;
}
.logo-text span {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
}

.header-search-form {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 7px 14px;
  gap: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 260px;
}
.header-search-form:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.12);
}
.header-search-form input {
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  flex: 1;
  min-width: 0;
}
.header-search-form input::placeholder { color: var(--text-light); }
.header-search-form button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
}
.header-search-form button:hover { color: var(--blue); }

/* ── Живой поиск: подсказки под строкой поиска (search-suggest.js) ── */
.ss-panel {
  position: fixed; z-index: 2000; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.14); padding: 6px;
  animation: ssIn .14s ease;
}
.ss-panel[hidden] { display: none; }
@keyframes ssIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ss-head { padding: 10px 12px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text-secondary); }
.ss-fix { margin: 4px 6px 2px; padding: 8px 12px; border-radius: 10px; background: #f2f6fd; color: #33475b; font-size: 13px; }
.ss-cat, .ss-item, .ss-all { display: flex; align-items: center; gap: 12px; border-radius: 10px; color: var(--text-primary); text-decoration: none; }
.ss-cat { padding: 8px 12px; font-size: 14px; font-weight: 600; }
.ss-cat svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--blue); }
.ss-item { padding: 8px 12px 8px 8px; }
.ss-item img { width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; border-radius: 8px; border: 1px solid var(--border-light); background: #fff; }
.ss-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ss-name { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ss-meta { font-size: 12px; color: var(--text-secondary); display: flex; gap: 8px; flex-wrap: wrap; }
.ss-in { color: #188038; font-weight: 600; }
.ss-out { color: #8a8f98; }
.ss-price { font-size: 14.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ss-panel mark { background: #fff3c4; color: inherit; border-radius: 3px; padding: 0 1px; }
.ss-all { justify-content: center; margin-top: 4px; padding: 11px 12px; font-size: 14px; font-weight: 600; color: var(--blue); border-top: 1px solid var(--border-light); border-radius: 0 0 10px 10px; }
.ss-cat:hover, .ss-item:hover, .ss-all:hover, .ss-panel .is-active { background: #f2f5fa; text-decoration: none; }
.ss-none { padding: 22px 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.ss-none b { font-size: 15px; }
.ss-none span { font-size: 13px; color: var(--text-secondary); }
@media (max-width: 768px) {
  .ss-item img { width: 40px; height: 40px; }
  .ss-name { font-size: 14px; }
}

.btn-catalog-dl {
  background: #fff;
  color: #1a1a1a;
  border: 1.5px solid #e3e7ee;
  border-radius: 14px;
  padding: 4px 16px 4px 4px;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.btn-catalog-dl:hover { border-color: #c9d1db; box-shadow: 0 6px 18px rgba(16,24,40,.10); text-decoration: none; transform: translateY(-1px); color: #1a1a1a; }
.btn-catalog-dl:active { transform: translateY(0); }
/* Значок файла — серый квадрат (как значки разделов в каталоге слева), при наведении темнеет */
.cdl-ico { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center;
           background: #eef1f5; color: #5f6b7a; transition: background .15s, color .15s; }
.btn-catalog-dl:hover .cdl-ico { background: #e3e7ee; color: #1a1a1a; }
.cdl-ico svg { width: 19px; height: 19px; }
.cdl-text { display: flex; flex-direction: column; line-height: 1.2; }
.cdl-text b { font-size: 14.5px; font-weight: 800; }
.cdl-text small { font-size: 12px; font-weight: 600; color: #8a94a3; }
.btn-catalog-dl:hover .cdl-text small { color: #5f6b7a; }

/* ---- MAIN NAV ---- */
.main-nav {
  position: relative;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  width: 100%;
  left: 0;
  min-height: 46px;
  contain: layout style;
}
html.page-ready .main-nav {
  position: sticky;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
  padding: 7px 0;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  overflow: visible;
}

.nav-item { position: relative; flex-shrink: 0; }
/* Мост между пунктом и его списком: мышь не «проваливается» в зазор под пунктом */
.nav-item.has-dropdown::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }

/* Пункт меню — «таблетка»: значок раздела + название; наведение и текущий раздел — голубой фон */
.nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 6px;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: .2px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 12px;
  transition: color .15s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.nav-ico { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
           background: #f2f4f7; color: #5f6b7a; transition: background .15s, color .15s; }
.nav-ico svg { width: 17px; height: 17px; }
.nav-link:hover { color: var(--blue); background: #f2f7ff; text-decoration: none; }
.nav-link:hover .nav-ico { background: #e3eeff; color: var(--blue); }
.nav-link.active { color: var(--blue); background: #eaf2ff; box-shadow: inset 0 0 0 1px #d6e5fb; }
.nav-link.active .nav-ico { background: #fff; color: var(--blue); }
/* «Хит» и «Новинки» — цветные таблетки, отделены от разделов чертой */
.nav-link.nav-badge-hit { color: #e8710a !important; background: #fff5ec; }
.nav-link.nav-badge-hit .nav-ico { background: #ffe8d4; color: #e8710a; }
.nav-link.nav-badge-hit:hover, .nav-link.nav-badge-hit.active { background: #ffecdb; box-shadow: inset 0 0 0 1px #ffd9b8; }
.nav-link.nav-badge-new { color: #2f8be0 !important; background: #f0f7ff; }
.nav-link.nav-badge-new .nav-ico { background: #dcecfd; color: #2f8be0; }
.nav-link.nav-badge-new:hover, .nav-link.nav-badge-new.active { background: #e3f0fd; box-shadow: inset 0 0 0 1px #cde3fa; }
.nav-item.is-special + .nav-item:not(.is-special) { margin-left: 9px; padding-left: 13px; }
.nav-item.is-special + .nav-item:not(.is-special)::before { content: ''; position: absolute; left: 0; top: 50%; width: 1px; height: 26px;
                                                            margin-top: -13px; background: var(--border-light); }

/* Хит / Новинки в левом сайдбаре — те же цвета, что и в верхнем меню */
.sidebar-badge-hit .sidebar-label { color: #e8710a !important; font-weight: 700; }
.sidebar-badge-new .sidebar-label { color: #2f8be0 !important; font-weight: 700; }
.nav-link .nav-chev { width: 13px; height: 13px; margin-left: -3px; stroke-width: 3; color: #9aa4b2; transition: transform .2s, color .15s; }
.nav-item:hover .nav-link .nav-chev { transform: rotate(180deg); color: var(--blue); }
/* На ноутбуках поуже значки разделов убираем — иначе меню не помещается в одну строку */
@media (max-width: 1280px) {
  .nav-item:not(.is-special) .nav-ico { display: none; }
  .nav-item:not(.is-special) .nav-link { padding-left: 14px; }
  .nav-link { font-size: 16px !important; }
}
@media (max-width: 1100px) {
  .nav-list { gap: 2px; }
  .nav-link, .nav-item:not(.is-special) .nav-link { font-size: 15px !important; padding: 6px 10px; gap: 7px; }
  .nav-item.is-special .nav-link { padding-left: 5px; }
  .nav-item.is-special + .nav-item:not(.is-special) { margin-left: 5px; padding-left: 8px; }
}


.nav-item.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity 0.2s ease 0.4s, visibility 0s linear 0.4s, transform 0.2s ease 0.4s; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(16,24,40,.14);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.15s ease 0s, visibility 0s linear 0.15s, transform 0.15s ease 0s;
  z-index: 999;
  overflow: visible;
}

.dropdown-inner { padding: 8px; }

.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.dropdown a:hover { background: #f2f7ff; color: var(--blue); text-decoration: none; }
.dropdown a svg { width: 12px; height: 12px; color: var(--text-light); }

/* Вложенные дропдауны (бесконечная вложенность) */
.nav-dd-item {
  position: relative;
}
.nav-dd-item { transition: opacity 0.15s ease; }
.nav-dd-item > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-dd-item > a:hover { background: #f2f7ff; color: var(--blue); }
.nav-dd-item .dd-arrow { display: flex; align-items: center; margin-left: 8px; opacity: 1; color: #9aa4b2; }
.nav-dd-item > a:hover .dd-arrow { color: var(--blue); }
.nav-dd-item .dd-arrow svg { width: 13px; height: 13px; stroke-width: 3; }
/* Подменю открывается влево — стрелка слева (её переворачивает скрипт в header.php), название сразу
   за ней, по левому краю. 13.10.2026: раньше название прижималось вправо — между стрелкой и словами
   оставалось пустое место, а пункты без стрелки висели справа */
.nav-dd-item.opens-left > a { flex-direction: row-reverse; justify-content: flex-end; }
.nav-dd-item.opens-left .dd-arrow { margin-left: 0; margin-right: 6px; }
/* Пункты без стрелки в такой колонке — с отступом на ширину стрелки, названия идут ровно (ставит скрипт) */
.nav-dd-item.fly-gutter > a { padding-left: 31px; }
.nav-sub-dropdown {
  display: none;
  position: absolute;
  left: 100%;
  right: auto;
  top: -8px;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(16,24,40,.14);
  padding: 8px;
  z-index: 1001;
}
/* Прозрачный мост — мышь не проваливается в зазор */
.nav-dd-item.has-sub {
  padding-right: 8px;
}
.nav-dd-item.has-sub:hover > .nav-sub-dropdown { display: block; }

/* Широкий дропдаун — колонки .dd-col до 10 пунктов, поровну (делит сервер в header.php). Каждая колонка —
   отдельный столбик своей высоты, шириной по самому длинному названию в ней, от 170 до 320 px; длинные
   названия переносятся, у края экрана колонки сужаются. Раньше у ИНСТРУМЕНТА (24 подраздела) список был
   шириной 1200 px и уходил за край экрана. 13.10.2026: была общая сетка с колонками ровно по 270 px —
   у коротких названий до соседней колонки оставалась пустота, а рядом с названием в 2–3 строки
   в соседних колонках — пустая высота */
.dropdown-wide { min-width: 0; width: max-content; }
.dropdown-wide .dropdown-inner { display: flex; align-items: flex-start; }
.dd-col { display: flex; flex-direction: column; flex: 0 1 auto; min-width: 170px; max-width: 320px; }
.dd-col > .nav-dd-item > a { white-space: normal; line-height: 1.3; }

/* Подменю, которому мало места у края окна (ставит скрипт в header.php): названия переносятся,
   слишком длинное у низа окна — прокручивается внутри */
.fly-wrap { min-width: 0 !important; }
.fly-wrap > .nav-dd-item > a, .fly-wrap > li > a { white-space: normal !important; line-height: 1.3; }
.fly-scroll { overflow-y: auto; overscroll-behavior: contain; }
.sidebar-menu li.opens-left > a .sidebar-arrow svg { transform: scaleX(-1); }

/* =============================================
   PRODUCT PAGE
   ============================================= */
.product-page {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 40px;
  padding: 0 0 50px;
  align-items: start;
}
/* Экраны 769–1180 px (планшет, небольшой ноутбук): фото 460 px вместе с каталогом слева не помещалось,
   и страница товара прокручивалась вбок. Теперь фото и описание делят место поровну, а уже 900 px — друг под другом */
@media (max-width: 1180px) {
  .product-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .product-page-img img { height: 360px; }
}
@media (max-width: 900px) {
  .product-page { grid-template-columns: minmax(0, 1fr); }
  .product-page-img { max-width: 460px; width: 100%; }
}
.product-page-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #fff;
}
.product-page-img img {
  width: 100%;
  height: 460px;
  object-fit: contain;
  display: block;
  padding: 16px;
}
.product-page-name {
  overflow-wrap: anywhere;   /* «(17,19,21мм,1450Hм,7000об/мин,…» из 1С — без пробелов, иначе страница шире экрана */
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-primary);
}
/* Артикул и остаток — одной строкой; остаток — крупная таблетка как на карточках каталога */
.product-page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 16px; }
.product-page-article { font-size: 16px; color: #6e6e73; }
.product-page-article b { color: var(--text-primary); font-weight: 600; }
.product-page-stock {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 15px; border-radius: 24px;
  font-size: 17px; font-weight: 500; line-height: 1.25;
  background: #f2f3f5; color: #6e7480;
}
.product-page-stock i { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: #b5bac1; }
.product-page-stock b { font-weight: 700; }
.product-page-stock.in-stock { background: #e8f6ed; color: #17703a; }
.product-page-stock.in-stock i { background: #22a052; box-shadow: 0 0 0 4px rgba(34,160,82,.18); }
.product-page-stock.out-stock { background: #f2f3f5; color: #6e7480; }

.product-page-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 24px;
}
.product-page-cart {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.product-page-qty .card-qty-btn {
  width: 42px;
  height: 42px;
  font-size: 20px;
}
.product-page-qty .card-qty-val {
  width: 56px;
  height: 42px;
  font-size: 18px;
}
.product-page-btn {
  padding: 12px 32px !important;
  font-size: 17px !important;
  border-radius: 12px !important;
}
.product-page-desc h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.product-page-desc-text {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* =============================================
   HERO BANNER
   ============================================= */
@keyframes shake-warn {
  0%,100% { transform: translateX(0); }
  15%      { transform: translateX(-6px); }
  30%      { transform: translateX(6px); }
  45%      { transform: translateX(-5px); }
  60%      { transform: translateX(5px); }
  75%      { transform: translateX(-3px); }
  90%      { transform: translateX(3px); }
}
.shake-warn { animation: shake-warn .5s ease; }

.hero {
  background: linear-gradient(135deg, #0f1923 0%, #1a2b3c 50%, #0f2540 100%);
  color: #fff;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,113,227,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 540px;
}
.hero-content {
  align-self: center;
  padding: 70px 56px 70px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,113,227,0.18);
  border: 1px solid rgba(90,160,255,0.35);
  color: #9cc6ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero h2 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero h2 em { font-style: normal; color: #7ab8f5; }
/* «оптом выгодно» — голубой перелив (08.10.2026, вариант «А», выбран владельцем) */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h2 em { background: linear-gradient(90deg, #5aa8ff, #8fd0ff); -webkit-background-clip: text; background-clip: text;
                color: transparent; -webkit-text-fill-color: transparent; }
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 28px;
  max-width: 520px;
  line-height: 1.6;
}

.hero-min-order {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.35);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 15px;
  color: rgba(187,247,208,0.95);
  margin-bottom: 28px;
  transition: background .4s, border-color .4s, color .4s;
}
.hero-min-order strong { color: #fff; transition: color .4s; }
.hero-min-order .hero-min-icon { stroke: rgba(187,247,208,0.95); }
.hero-min-check { display: none; color: #4ade80; }
.hero-min-order.reached {
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.28);
  color: rgba(134,239,172,0.9);
}
.hero-min-order.reached strong { color: #86efac; }
.hero-min-order.reached .hero-min-icon { stroke: rgba(134,239,172,0.9); }
.hero-min-order.reached .hero-min-check { display: inline-flex; align-items: center; }

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,113,227,0.35); text-decoration: none; color: #fff; }
.btn-primary:active { transform: translateY(0); }

/* Увеличенная кнопка в герое главной страницы */
.hero-btns { margin-bottom: 0; }
.hero-btns .btn-primary {
  font-size: 23px;
  padding: 20px 44px;
  gap: 14px;
  border-radius: 60px;
  box-shadow: 0 10px 28px rgba(0,113,227,0.45);
}

/* Белая панель-врезка на всю высоту hero (синий градиент огибает её скруглениями) */
.hero-visual {
  align-self: stretch;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 0;               /* белый прямоугольник без скруглений */
  margin: 0 60px 0 0;             /* справа — синий градиент; сверху/снизу во всю высоту */
  box-shadow: 0 30px 70px rgba(0,0,0,.30);
}

/* Logo in hero banner */
.hero-logo-wrap {
  position: relative;
}
/* Логотип внутри белой панели */
.hero-logos {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 24px 20px;
}
/* Один совмещённый логотип (МАЯКАВТО + значок МТ на одном изображении) */
.hero-logo-main {
  display: block;
  width: 600px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  animation: heroLogoFloat 4s ease-in-out infinite;
}
@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =============================================
   CATEGORY CHIPS
   ============================================= */

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.section-header h2 a,
.section-header h2 a:hover {
  all: unset;
  cursor: pointer;
}
.section-header h2 a::after,
.section-header h2 a:hover::after {
  display: none !important;
}
.section-header a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  background: #fff;
  border: 1.5px solid #d0d0d0;
  padding: 7px 16px;
  border-radius: 50px;
  text-decoration: none;
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s, color .18s;
  white-space: nowrap;
}
.section-header a::after {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5l7 7-7 7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform .18s;
}
.section-header a:hover {
  background: #f5f5f5;
  border-color: #aaa;
  color: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.section-header a:hover::after {
  transform: translateX(3px);
}

/* =============================================
   PRODUCTS SECTION
   ============================================= */
.products-section { padding: 48px 0; }

/* ── КАРУСЕЛЬ ТОВАРОВ ─────────────────────────────────── */
.carousel-wrap {
  overflow: hidden;
  width: 100%;
  margin-top: 8px;
  padding: 8px 0 12px;
  border-radius: 16px;
}

.carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
  animation: carousel-slide 60s linear infinite;
}

/* -33.333% = ровно 1 копия из 3 — работает для любого кол-ва товаров */
/* from -33% → 0: трек движется вправо → товары идут слева направо */
@keyframes carousel-slide {
  from { transform: translate3d(-33.333%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* Уменьшенные карточки в карусели */
.carousel-track .product-card {
  width: 230px !important;
  min-width: 230px;
  flex-shrink: 0;
}
.carousel-track .product-card .product-name {
  font-size: 13px;
  -webkit-line-clamp: 2;
}
.carousel-track .product-card .product-price {
  font-size: 15px;
}
/* ─────────────────────────────────────────────────────── */

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.product-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;   /* было серым: у не квадратных фото сверху и снизу оставались серые полосы */
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
/* Нет фото — фон серый, как у самой заглушки */
.product-card-img:has(img[src$="no-photo.svg"]) { background: var(--bg); }

.product-card-body {
  padding: 12px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.product-card-link:hover { text-decoration: none; color: inherit; }
.product-card-link:hover .product-name { color: var(--blue); }

.product-name {
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 8px 12px 0;
}

.product-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
/* «Артикул: …» над названием — на всех карточках (productCard, 13.10.2026, просьба владельца) */
.product-art { padding: 8px 12px 0; font-size: 15px; color: #6b7280; overflow-wrap: anywhere; }   /* 13.10.2026: было 13, потом 14 px */
.product-art b { color: #1a1a1a; font-weight: 600; }
.product-art + .product-name { padding-top: 2px; }
.carousel-track .product-card .product-art { font-size: 14px; }
@media (max-width: 480px) { .product-art { font-size: 14px; } }

/* Cart controls inside product card */
.product-cart-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-qty-ctrl {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  flex-shrink: 0;
}
.card-qty-btn {
  border: none;
  background: transparent;
  width: 30px;
  height: 30px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  font-family: var(--font);
  line-height: 1;
}
.card-qty-btn:hover { background: var(--border-light); }
.card-qty-val {
  width: 36px;
  min-width: 36px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  font-family: inherit;
  -moz-appearance: textfield;
}
.card-qty-val::-webkit-outer-spin-button,
.card-qty-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-qty-input { width: 48px !important; cursor: text; }
.cart-qty-input:focus { outline: none; }
.btn-add-cart {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-add-cart:hover { background: var(--orange-hover); }
.btn-add-cart.added { background: #34c759; }   /* размер шрифта не меняем — иначе кнопка меняла высоту */

/* В каруселях главной: счётчик и «В корзину» в одну строку.
   Счётчик компактнее, кнопка занимает остаток — текст «В корзину» помещается. */
.carousel-track .product-cart-row {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}
.carousel-track .card-qty-ctrl { flex-shrink: 0; }
.carousel-track .card-qty-btn { width: 26px; height: 28px; font-size: 15px; }
.carousel-track .card-qty-val { width: 34px; min-width: 34px; font-size: 13px; }
.carousel-track .btn-add-cart {
  flex: 1;
  min-width: 0;
  padding: 8px 8px;
  font-size: 12.5px;
  white-space: nowrap;
}

/* =============================================
   FLOATING CART BUTTON
   ============================================= */
@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

/* Остаток в карточке товара: над ценой, зелёная точка — есть, серая — нет */
.card-stock { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; max-width: 100%;
              padding: 4px 10px 4px 9px; border-radius: 20px; font-size: 13px; font-weight: 500; line-height: 1.25;
              background: #f2f3f5; color: #6e7480; margin-bottom: -2px; }
.card-stock i { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: #b5bac1; }
.card-stock.in { background: #e8f6ed; color: #17703a; }
.card-stock.in i { background: #22a052; box-shadow: 0 0 0 3px rgba(34,160,82,.18); }
.card-stock.in b { font-weight: 700; }
.carousel-track .product-card .card-stock { font-size: 11.5px; gap: 6px; padding: 3px 8px 3px 7px; }

.badge-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  z-index: 2;
}
.badge-hit {
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 50px;
  display: inline-block;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  transform: rotate(-7deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.badge-new {
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 50px;
  display: inline-block;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
/* Заход под «Хит» — только когда обе наклейки рядом; одна «Новинка» стояла в 2 px от края карточки */
.badge-hit + .badge-new { margin-left: -8px; }

/* =============================================
   NEWS
   ============================================= */
.news-section { padding: 0 0 64px; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Карточка новости (14.10.2026): вся — ссылка, сверху картинка, дата меткой */
.news-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 14px rgba(16,24,40,.05);
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover { box-shadow: 0 12px 28px -8px rgba(16,24,40,.18); transform: translateY(-3px); }
.news-card-img { position: relative; aspect-ratio: 4 / 3; background: #f3f5f8; overflow: hidden; }
.news-card-img .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.92); transform: scale(1.2); }
.news-card-img .fg { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .35s ease; }
.news-card:hover .news-card-img .fg { transform: scale(1.04); }
.news-card-img.is-empty { display: flex; align-items: center; justify-content: center; color: #c3cad5;
                         background: linear-gradient(135deg, #f6f8fb, #eceff5); }   /* та же высота — заголовки в ряду на одном уровне */

/* Внутренний контейнер — колонка на всю высоту, чтобы «Читать далее»
   всегда прижималось к низу карточки, даже без текста анонса */
.news-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.news-date { display: inline-flex; align-self: flex-start; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px;
             background: #fff5ec; color: #e8710a; font-size: 12.5px; font-weight: 600; margin-bottom: 12px; }
.news-title { font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--text-primary); margin-bottom: 8px;
              overflow-wrap: anywhere; transition: color var(--transition); }
.news-card:hover .news-title { color: var(--blue); }
.news-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.6;
                display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-readmore { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--blue); margin-top: auto; padding-top: 14px; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #1d1d1f;
  color: #f5f5f7;
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.75); text-decoration: none; transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
/* «Компания» — ссылки в две колонки: сверху вниз, по 4 в колонке */
.footer-col ul.footer-links-2col {
  display: grid; grid-template-rows: repeat(4, auto); grid-auto-flow: column;
  grid-auto-columns: max-content; column-gap: 28px; row-gap: 10px;
}

/* Company info column */
.footer-company-info p { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 6px; line-height: 1.5; }
.footer-company-info strong { color: #fff; font-size: 15px; }
.footer-company-info a { color: #7ab8f5; text-decoration: none; }
.footer-company-info a:hover { text-decoration: underline; }

/* Contacts column */
.footer-contacts p { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 6px; line-height: 1.5; }
.footer-contacts a { color: #7ab8f5; text-decoration: none; }
.footer-contacts a:hover { text-decoration: underline; }
.footer-info-label { font-size: 12px !important; font-weight: 700; color: #f5a623 !important; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 10px !important; margin-bottom: 8px !important; }

/* Footer brand compat */
.footer-brand .logo-text h1 { color: #fff; }
.footer-brand .logo-text span { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.55); margin-top: 16px; line-height: 1.7; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin-top: 8px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 8px; }
.footer-bottom a { font-size: 13px; color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ── Scroll-to-top button ── */
#scroll-top-btn {
  position: fixed;
  bottom: 100px;
  left: 28px;
  z-index: 9997;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(29,29,31,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
}
#scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#scroll-top-btn:hover { background: rgba(0,113,227,0.9); }
#scroll-top-btn svg { width: 20px; height: 20px; }

/* ── Floating cart button ── */
.float-cart-anchor {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 1440px;
  margin: 0 auto;
  height: 0;
  pointer-events: none;
  z-index: 9998;
}
#float-cart {
  position: absolute;
  bottom: 36px;
  right: 12px;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #ff6b00;
  color: #fff;
  text-decoration: none;
  border-radius: 13px;
  padding: 12px 19px;
  box-shadow: 0 4px 18px rgba(255,107,0,0.45);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  font-weight: 600;
  line-height: 1;
  min-width: 155px;
  width: 155px;
}
#float-cart:hover {
  background: #e05a00;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,107,0,0.55);
}
.float-cart-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.float-cart-top svg { flex-shrink: 0; width: 19px; height: 19px; }
.float-cart-count { font-weight: 700; }
.float-cart-sum {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.92;
  padding-left: 27px;
}
@media (max-width: 640px) {
  #float-cart { bottom: 72px; padding: 9px 13px; }
  .float-cart-top { font-size: 13px; }
  .float-cart-sum { font-size: 12px; padding-left: 22px; }
}


/* =============================================
   BOTTOM MOBILE BAR
   ============================================= */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  z-index: 999;
}
.mobile-bar-inner {
  display: flex;
  justify-content: space-around;
}
.mobile-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.mobile-bar-btn.active, .mobile-bar-btn:hover { color: var(--blue); }
.mobile-bar-btn svg { width: 22px; height: 22px; }

/* =============================================
   SIDEBAR + CATALOG LAYOUT
   ============================================= */
.catalog-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);   /* minmax: широкое содержимое не растягивает страницу шире экрана */
  gap: 10px;
  padding: 16px 0 64px;
  align-items: start;
}

/* Сайдбар прокручивается вместе со страницей (без закрепления) */
.sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: visible;
}

.sidebar-section { border-bottom: 1px solid var(--border-light); }
.sidebar-section:last-child { border-bottom: none; }

.sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition);
}
.sidebar-title:hover { background: var(--bg); text-decoration: none; color: var(--text-primary); }
.sidebar-title svg { width: 16px; height: 16px; color: var(--text-secondary); }

.sidebar-menu { list-style: none; padding: 4px; }
.sidebar-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  font-size: 15px;
  color: #111;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.sidebar-menu li a:hover, .sidebar-menu li a.active { background: rgba(0,113,227,0.06); color: var(--blue); text-decoration: none; }
.sidebar-menu li a svg { width: 18px; height: 18px; }

/* Сайдбар — позиционирование для flyout */
.sidebar-menu li,
.sidebar-submenu li {
  position: relative;
  padding-right: 8px; /* мост hover */
}

.sidebar-label {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
}
.sidebar-arrow {
  display: flex;
  align-items: center;
  opacity: .45;
  flex-shrink: 0;
}

/* Flyout подменю */
.sidebar-submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: -8px;
  min-width: 190px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border: 1px solid var(--border-light);
  list-style: none;
  padding: 8px;
  z-index: 500;
}
.sidebar-menu li:hover > .sidebar-submenu,
.sidebar-submenu li:hover > .sidebar-submenu { display: block; animation: sidebarSubIn 0.15s ease 0.2s both; }

@keyframes sidebarSubIn {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Сайдбар — колонки, когда подкатегорий больше 10: как в верхнем меню (13.10.2026) — колонки li.sb-col
   поровну (делит сервер, renderSidebarMenu), каждая отдельным столбиком своей высоты, шириной по длинному
   названию, 170–320 px, длинное — переносом */
.sidebar-submenu.sidebar-submenu-wide {
  display: none;
  align-items: flex-start;
  width: max-content;
  min-width: 360px;
}
.sidebar-submenu li.sb-col { padding-right: 0; flex: 0 1 auto; min-width: 170px; max-width: 320px; }
.sb-col-list { list-style: none; margin: 0; padding: 0; }
.sb-col-list > li > a { white-space: normal; line-height: 1.3; }
.fly-wrap .sb-col { min-width: 0; }   /* мало места у края окна — колонки сужаются, названия переносятся */
.sidebar-menu li:hover > .sidebar-submenu.sidebar-submenu-wide,
.sidebar-submenu li:hover > .sidebar-submenu.sidebar-submenu-wide { display: flex; animation: sidebarSubIn 0.15s ease 0.2s both; }

.sidebar-submenu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;   /* 13.10.2026: как в подменю верхнего меню (было 6px и 14px) */
  font-size: 14.5px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 7px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.sidebar-submenu li a:hover,
.sidebar-submenu li a.active { background: rgba(0,113,227,0.07); color: var(--blue); }

/* ── Каталог в боковой колонке: заголовок со значком, у главных разделов — свои значки,
      «Хит» и «Новинки» отделены от разделов линией ── */
.sidebar-title.sb-head { padding: 14px 14px 14px 16px; font-size: 17px; }
.sb-head-l { display: flex; align-items: center; gap: 11px; }
.sb-head-ico { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
               background: linear-gradient(135deg, #e3eeff, #f2f7ff); }
.sidebar-title .sb-head-ico svg { width: 19px; height: 19px; color: var(--blue); }
.sb-head-all { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--text-secondary); transition: color .15s; }
.sidebar-title .sb-head-all svg { width: 13px; height: 13px; color: currentColor; transition: transform .15s; }
.sidebar-title.sb-head:hover .sb-head-all { color: var(--blue); }
/* «Наши новости и акции» — в одну строку на ПК (14.10.2026; название длиннее «Каталога»): 16 px, без переноса;
   у узкой колонки (до 1024 px, 260 px) — переносится, как раньше */
@media (min-width: 1025px) { .sb-head-news .sb-head-l { font-size: 16px; gap: 9px; white-space: nowrap; letter-spacing: -.1px; } }
/* Значок «Наши новости и акции» — полупрозрачный фиолетовый (14.10.2026, владелец; был голубой, как у «Каталога»),
   тот же оттенок, что у «Все новости» на главной; «Все ›» при наведении — тоже фиолетовое */
.sb-head-news .sb-head-ico { background: linear-gradient(135deg, rgba(124,77,230,.16), rgba(124,77,230,.06)); }
.sidebar-title.sb-head-news .sb-head-ico svg { color: #6d3fd6; }
.sidebar-title.sb-head.sb-head-news:hover .sb-head-all { color: #6d3fd6; }
.sidebar-title.sb-head:hover .sb-head-all svg { transform: translateX(2px); }

.sidebar-menu { padding: 6px; }
.sidebar-menu > li > a { gap: 12px; padding: 7px 10px 7px 7px; font-size: 15.5px; }
.sb-ico { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
          background: #f2f4f7; color: #5f6b7a; transition: background .15s, color .15s; }
.sidebar-menu li a .sb-ico svg { width: 18px; height: 18px; }
/* Сколько товаров в разделе (с вложенными) — серая таблетка справа */
.sb-count { margin-left: auto; flex-shrink: 0; padding: 1px 8px; border-radius: 20px; background: #f2f4f7; color: #8a94a3;
            font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
.sidebar-menu li a:hover .sb-count, .sidebar-menu li a.active .sb-count { background: #e3eeff; color: var(--blue); }
/* Подразделы без своего значка — точка */
.sb-dot { width: 7px; height: 7px; margin: 0 4px 0 6px; border-radius: 50%; flex-shrink: 0; background: #c9d1db; transition: background .15s; }
.sidebar-menu li a:hover .sb-dot, .sidebar-menu li a.active .sb-dot { background: var(--blue); }
/* Страница раздела: «‹ назад» и карточка текущего раздела над его подразделами */
.sb-back { display: flex; align-items: center; gap: 4px; padding: 12px 16px 4px; font-size: 13.5px; font-weight: 600;
           color: var(--text-secondary); text-decoration: none; transition: color .15s; }
.sb-back svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform .15s; }
.sb-back:hover { color: var(--blue); text-decoration: none; }
.sb-back:hover svg { transform: translateX(-2px); }
.sb-current { display: flex; align-items: center; gap: 12px; margin: 8px 8px 4px; padding: 12px; border-radius: 14px;
              background: linear-gradient(135deg, #eef4ff, #f7faff); border: 1px solid #dfe9fb; }
.sb-current .sb-ico { width: 40px; height: 40px; border-radius: 11px; background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(0,113,227,.12); }
.sb-current .sb-ico svg { width: 20px; height: 20px; }
.sb-current-text { min-width: 0; }
.sb-current-name { font-size: 16px; font-weight: 800; line-height: 1.25; color: var(--text-primary); word-break: break-word; }
.sb-current-sub { margin-top: 2px; font-size: 13px; font-weight: 500; color: #5f6b7a; }
.sidebar-menu li a:hover .sb-ico, .sidebar-menu li a.active .sb-ico { background: #e3eeff; color: var(--blue); }
.sb-ico.sb-ico-hit, .sidebar-menu li a:hover .sb-ico.sb-ico-hit { background: #ffe8d4; color: #e8710a; }
.sb-ico.sb-ico-new, .sidebar-menu li a:hover .sb-ico.sb-ico-new { background: #dcecfd; color: #2f8be0; }
/* «Хит» и «Новинки» слева — такие же цветные таблетки, как в верхнем меню (12.10.2026) */
.sidebar-menu > li > a.sidebar-badge-hit { background: #fff5ec; border-radius: 12px; }
.sidebar-menu > li > a.sidebar-badge-hit:hover, .sidebar-menu > li > a.sidebar-badge-hit.active { background: #ffecdb; box-shadow: inset 0 0 0 1px #ffd9b8; }
.sidebar-menu > li > a.sidebar-badge-new { background: #f0f7ff; border-radius: 12px; }
.sidebar-menu > li > a.sidebar-badge-new:hover, .sidebar-menu > li > a.sidebar-badge-new.active { background: #e3f0fd; box-shadow: inset 0 0 0 1px #cde3fa; }
.sidebar-menu > li.is-special + li.is-special { margin-top: 4px; }
/* Выбранный «Хит»/«Новинки» — значок своего цвета, а не голубой, как у остальных разделов */
.sidebar-menu li a.active .sb-ico.sb-ico-hit { background: #ffe8d4; color: #e8710a; }
.sidebar-menu li a.active .sb-ico.sb-ico-new { background: #dcecfd; color: #2f8be0; }
.sidebar-menu > li > a.sidebar-badge-hit.active { color: #e8710a; }
.sidebar-menu > li > a.sidebar-badge-new.active { color: #2f8be0; }
.sidebar-menu > li.is-special + li:not(.is-special) { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border-light); }
.sidebar-menu > li > a .sidebar-arrow { transition: transform .15s, opacity .15s; }
.sidebar-menu > li > a:hover .sidebar-arrow { opacity: .8; transform: translateX(2px); }

/* «Наши новости» в боковой колонке — карточки (14.10.2026, владелец: «покрасивее и чуть больше текста»;
   было: заголовок 18 px, дата и анонс до 100 знаков в серой рамке). Метка — как у карточек новостей: акция оранжевая,
   новость голубая; картинка новости целиком, края — её размытая копия (как .news-card-img) */
.sidebar-news { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.sidebar-news-item {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 13px 11px;
  background: #fff; border: 1px solid #e3e6ea; border-radius: 14px;
  text-decoration: none; color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.sidebar-news-item:hover {
  border-color: #b9d4f5; box-shadow: 0 6px 18px -6px rgba(0,113,227,.22); transform: translateY(-1px);
  text-decoration: none; color: var(--text-primary);
}
.sidebar-news-item.is-promo { border-color: rgba(255,107,0,.28); background: linear-gradient(180deg, #fff 60%, #fff8f2); }
.sidebar-news-item.is-promo:hover { border-color: rgba(255,107,0,.5); box-shadow: 0 6px 18px -6px rgba(255,107,0,.25); }
.snw-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.snw-tag {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 20px;
  background: #ff6b00; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; line-height: 1.3;
}
.snw-tag.is-news { background: rgba(91, 63, 199, .82); }   /* новость — прозрачно-фиолетовая (20.10.2026); голубой — у «Новинки» */
.sidebar-news-date { font-size: 13px; color: #6b7280; }
.snw-head { display: flex; align-items: flex-start; gap: 11px; }
.snw-thumb {
  position: relative; width: 64px; height: 64px; flex-shrink: 0; border-radius: 10px; overflow: hidden;
  background: #f1f3f6; border: 1px solid #eceff3;
}
.snw-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; }
.snw-thumb .bg { object-fit: cover; filter: blur(10px) saturate(1.2); transform: scale(1.3); opacity: .55; }
.snw-thumb .fg { object-fit: contain; }
.snw-thumb.is-empty { display: flex; align-items: center; justify-content: center; color: #9aa5b4; }
.sidebar-news-title {
  font-size: 15.5px; font-weight: 700; line-height: 1.32; color: #1a1a1a; min-width: 0; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sidebar-news-text {
  font-size: 14px; color: #4b5563; line-height: 1.5; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.snw-more { font-size: 13.5px; font-weight: 700; color: #0071e3; }
.sidebar-news-item.is-promo .snw-more { color: #e8710a; }
.sidebar-news-item:hover .snw-more { text-decoration: underline; }

/* =============================================
   CATALOG PAGE CONTROLS
   ============================================= */
.catalog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.catalog-controls h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
}
/* Число товаров рядом с названием раздела — оранжевая таблетка, как «Хит» (выбор владельца) */
.cat-count { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 13px; border-radius: 20px; background: #fff1e6;
             color: #b85a0e; font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.3; white-space: nowrap; }
.cat-count b { font-size: 16px; font-weight: 800; color: #e8710a; font-variant-numeric: tabular-nums; }

.sort-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-white);
  outline: none;
  cursor: pointer;
}
.sort-select:focus { border-color: var(--blue); }

/* Сортировка: свой выпадающий список в стиле сайта (строит catalog-scroll.js).
   Обычный select остаётся скрытым внутри и по-прежнему задаёт порядок товаров */
.sort-dd { position: relative; display: inline-block; }
.sort-dd > select.sort-select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sort-dd-btn {
  display: inline-flex; align-items: center; gap: 9px; min-width: 220px;
  padding: 10px 12px 10px 14px; border: 1.5px solid var(--border-light); border-radius: 12px;
  background: var(--bg-white); color: var(--text-primary); font: 600 14px var(--font);
  cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: border-color .15s, box-shadow .15s;
}
.sort-dd-btn:hover { border-color: #c7c7cc; }
.sort-dd.open .sort-dd-btn, .sort-dd-btn:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.12); outline: none; }
.sort-dd-btn svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-secondary); }
.sort-dd-btn .sort-dd-chev { width: 14px; height: 14px; transition: transform .2s; }
.sort-dd.open .sort-dd-chev { transform: rotate(180deg); }
.sort-dd-label { flex: 1; text-align: left; white-space: nowrap; }
.sort-dd-list {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; min-width: 100%;
  margin: 0; padding: 6px; list-style: none; background: var(--bg-white);
  border: 1px solid var(--border-light); border-radius: 14px; box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s, transform .15s;
}
.sort-dd.open .sort-dd-list { opacity: 1; transform: none; pointer-events: auto; }
.sort-dd-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 10px 12px; border-radius: 9px; font-size: 14px; color: var(--text-primary);
  cursor: pointer; white-space: nowrap; user-select: none;
}
.sort-dd-opt:hover, .sort-dd-opt.is-focus { background: #f2f5fa; }
.sort-dd-opt[aria-selected="true"] { color: var(--blue); font-weight: 600; }
.sort-dd-opt svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0; }
.sort-dd-opt[aria-selected="true"] svg { opacity: 1; }

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 0 0;
  margin-left: 24px;
  font-size: 13px;
  color: var(--text-secondary);
}
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--border); }

/* =============================================
   AUTH PAGES
   ============================================= */

.form-group { margin-bottom: 20px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .catalog-layout { grid-template-columns: 260px minmax(0, 1fr); }
}

@media (max-width: 768px) {
  /* Топбар — компактная версия для мобильных */
  .header-topbar { display: block; background: #f9fafb; }

  /* Грид: строка 1 = телефоны + кнопка входа, строка 2 = ссылки + время */
  .topbar-inner {
    display: grid;
    grid-template-areas: "center auth" "left left";
    grid-template-columns: 1fr auto;
    padding: 0;
    gap: 0;
  }

  /* Строка 1 левая: телефоны + email */
  .topbar-center {
    grid-area: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 1px;
    padding: 7px 0 7px 12px;
    text-align: left;
  }
  .topbar-wholesale-title { display: none; }
  .topbar-phones { margin: 0; gap: 10px; flex-wrap: wrap; }
  .topbar-phones a { font-size: 14px; white-space: nowrap; }
  .topbar-email { font-size: 12px; flex-basis: 100%; }   /* email на своей строке */
  .topbar-email a { color: var(--text-secondary); }
  .topbar-desc, .topbar-min { display: none; }

  /* Строка 1 правая: кнопка входа/профиля — вертикально по центру (равный отступ сверху и снизу) */
  .topbar-right {
    grid-area: auth;
    display: flex !important;
    flex-direction: row;   /* сброс column с десктопа — иначе justify прижимает кнопку вниз */
    align-items: center;
    justify-content: flex-end;
    padding: 7px 12px;
    gap: 6px;
  }
  .topbar-right .topbar-auth { margin: 0 !important; }   /* убираем сдвиг сверху (с десктопа) */
  .topbar-cart-link { display: none !important; }
  .topbar-fav-btn { display: none !important; }
  .topbar-admin-btn { display: none !important; }
  .topbar-login-btn { font-size: 12px; padding: 6px 12px; }
  .topbar-login-guest { min-width: 0; }   /* телефон — размер как был */
  .topbar-btn-logout-icon { display: none !important; }

  /* Строка 2: [Как нас найти · Контакты] [время] [О компании] */
  .topbar-left {
    grid-area: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;          /* на узких экранах переносим, чтобы не было горизонт. скролла */
    /* единая сплошная линия-разделитель на ВСЮ ширину экрana (от края до края).
       margin -12px компенсирует паддинг .container, паддинг 12px держит контент на месте */
    border-top: 1px solid var(--border-light);
    margin-left: -12px;
    margin-right: -12px;
    padding: 5px 12px 4px;
    justify-self: auto;
    gap: 3px 10px;
  }
  /* Как нас найти + Контакты — слева, в одну строку */
  .topbar-links { order: 1; gap: 0; }
  .topbar-links-col { flex-direction: row; flex-wrap: nowrap; gap: 10px; padding: 0; }
  .topbar-links a { font-size: 10px; gap: 3px; white-space: nowrap; }
  .topbar-links a svg { width: 10px; height: 10px; flex-shrink: 0; }
  /* Время — по центру, в столбик (узкое) */
  .topbar-schedule-block { order: 2; }
  .topbar-schedule-block > svg { display: none; }
  .topbar-schedule-times { flex-direction: column; gap: 0; }
  .topbar-schedule-times span { font-size: 10px; white-space: nowrap; line-height: 1.35; }
  /* О компании — справа, всегда в одну строку */
  .topbar-about-link { order: 3; font-size: 10px; gap: 3px; white-space: nowrap; }
  .topbar-about-link svg { width: 10px; height: 10px; flex-shrink: 0; }

  /* Убираем кнопку входа из строки поиска — теперь она в топбаре */
  .mob-header-actions { display: none !important; }

  /* Строка поиска теперь полной ширины */
  .search-area { flex: 1; }

  /* Шапка */
  .header-main { padding: 10px 0; }
  .header-main-inner { gap: 10px; }
  .logo-icon img { width: 36px; height: 36px; }
  .logo-text h1 { font-size: 18px !important; }
  .logo-text span { display: none; }
  .btn-catalog-dl { display: none; }
  .search-area { gap: 8px; }
  .header-search-form.large input { font-size: 14px; padding: 10px 14px; }

  /* Навигация */
  .main-nav { display: none; }
  .mobile-bar { display: block; }
  /* Открыта клавиатура (body.kb-open ставит скрипт в footer.php) — нижние плавающие элементы прячем,
     иначе браузер поднимает их над клавиатурой и они закрывают поле ввода */
  body.kb-open .mobile-bar,
  body.kb-open .float-cart-anchor,
  body.kb-open #scroll-top-btn,
  body.kb-open #cookie-banner { display: none !important; }
  /* Отступ под фикс-панель переносим в футер (ниже), чтобы не было белой полосы */
  body { padding-bottom: 0; }

  /* Герой */
  .hero { padding: 32px 0 24px; overflow: hidden; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-content { padding: 0; }
  /* Логотип — полупрозрачный водяной знак справа (без белой панели) */
  .hero-visual {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    margin: 0;
    border-radius: 0;
  }
  .hero-logo-main { width: 175px; height: auto; }
  .hero-content { position: relative; z-index: 2; }
  .hero h2 { font-size: 30px; }
  .hero-content p { font-size: 15px; }
  .hero-btns .btn-primary { font-size: 17px; padding: 14px 28px; }
  .hero-badge { font-size: 11px; padding: 4px 10px; }
  .hero-min-order { font-size: 13px; }

  /* Секции */
  .section-header h2 { font-size: 20px; }
  .section-header { margin-bottom: 14px; }

  /* Карусель */
  .carousel-track .product-card { width: 160px !important; min-width: 160px; }

  /* Новости */
  .news-grid { grid-template-columns: 1fr; gap: 12px; }
  .news-section { padding: 0 0 40px; }

  /* Каталог */
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }

  /* Футер — одна колонка, всё по центру */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; max-width: 320px; }
  .footer-brand .logo-area { justify-content: center; }
  .footer-company-info { display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .footer-col ul { align-items: center; }
  .footer-col ul.footer-links-2col { justify-content: center; }
  .footer-contacts p { margin-left: auto; margin-right: auto; }
  .footer-contacts a { display: inline-block; }
  .footer-bottom { text-align: center; }
  .footer-bottom > div { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  /* Избранное: 2 товара в ряд на телефоне (было 1 из-за minmax 220px) */
  .favorites-page .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero h2 { font-size: 26px; }
  .hero-btns .btn-primary { font-size: 15px; padding: 12px 22px; width: 100%; justify-content: center; }
  .news-card { padding: 0; }
  .product-card .product-name { font-size: 12px; }
  .product-card .product-price { font-size: 14px; }
  .carousel-track .product-card { width: 145px !important; min-width: 145px; }
}

/* ── Password eye toggle ──────────────────────────────────────────── */
.pw-wrap { position: relative; display: block; }
.pw-eye-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #aaa;
  display: flex;
  align-items: center;
  transition: color .15s;
  z-index: 2;
}
.pw-eye-btn:hover { color: #555; }

/* ── Custom Scrollbar ─────────────────────────────────────────────── */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(26,26,46,0.35) #e8e8e8;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #e8e8e8;
}
::-webkit-scrollbar-thumb {
  background: rgba(26,26,46,0.35);
  border-radius: 4px;
  border: 2px solid #e8e8e8;
  min-height: 30px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(26,26,46,0.55);
}
::-webkit-scrollbar-thumb:active {
  background: rgba(26,26,46,0.75);
}

/* ==============================================
   МОБИЛЬНАЯ ШАПКА — кнопки (только мобильные)
   ============================================== */

/* На десктопе скрыты — там всё есть в topbar */
.mob-header-actions { display: none; }

/* Мобильная навигация по категориям: скрыта на десктопе */
.mob-cat-nav { display: none; }
.mob-cat-tree-wrap { display: none; }

/* ==============================================
   МОБИЛЬНАЯ ВЕРСИЯ — ПОЛНЫЕ УЛУЧШЕНИЯ
   ============================================== */

@media (max-width: 768px) {

  /* ── Шапка: sticky + тень ────────────────── */
  .header-sticky-wrap {
    position: sticky;
    top: 0;
    z-index: 200;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,0.07), 0 2px 12px rgba(0,0,0,0.05);
  }
  .header-main { padding: 8px 0; background: #fff; }
  .header-main-inner { gap: 8px; align-items: center; }
  .logo-area { gap: 8px; flex-shrink: 0; }
  .logo-icon { width: 34px !important; height: 34px !important; border-radius: 9px !important; }
  .logo-icon img { width: 34px !important; height: 34px !important; }
  .logo-text h1 { font-size: 16px !important; font-weight: 800 !important; letter-spacing: 0.2px; }
  .logo-text span { display: none; }
  .search-area { flex: 1; min-width: 0; }
  .header-search-form.large {
    padding: 8px 12px;
    border-radius: 11px;
    background: #f5f5f7;
    border-color: transparent;
    min-width: 0;   /* критично: даёт форме ужиматься в узкой шапке (иначе горизонт. скролл) */
    width: auto;
  }
  .header-search-form.large:focus-within {
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0,113,227,0.1);
  }
  /* 16px у ВСЕХ полей ввода — iOS не делает авто-зум при фокусе (срабатывает при font<16px).
     !important — чтобы перебить инлайн-стили в формах входа/регистрации/профиля. */
  input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
  input[type="number"], input[type="search"], input[type="url"], input:not([type]),
  textarea, select {
    font-size: 16px !important;
  }

  /* ── Мобильные кнопки в шапке ───────────── */
  .mob-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .mob-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    transition: background .18s, transform .18s;
    white-space: nowrap;
  }
  .mob-auth-guest {
    padding: 0 14px;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,113,227,0.28);
  }
  .mob-auth-guest:hover { background: var(--blue-hover); color: #fff; text-decoration: none; }
  .mob-auth-logged {
    width: 36px;
    background: rgba(0,113,227,0.1);
    color: var(--blue);
    border-radius: 50%;
  }
  .mob-auth-logged:hover { background: rgba(0,113,227,0.18); color: var(--blue); text-decoration: none; }
  .mob-auth-admin {
    width: 36px;
    background: rgba(255,107,0,0.12);
    color: var(--orange);
    border-radius: 50%;
  }
  .mob-auth-admin:hover { background: rgba(255,107,0,0.22); color: var(--orange); text-decoration: none; }

  /* ── Мобильная навигация по категориям ─── */
  /* Чипы категорий убраны — их заменяет раскрывающееся дерево ниже */
  .mob-cat-nav {
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0;
  }
  .mob-cat-nav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px 10px;
  }
  .mob-cat-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: var(--bg);
    border: 1.5px solid var(--border-light);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
  }
  .mob-cat-chip:hover { background: var(--border-light); text-decoration: none; }
  .mob-cat-chip.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    text-decoration: none;
  }

  /* ── Дерево категорий (аккордеон: подкатегории и глубже) ── */
  .mob-cat-tree-wrap {
    display: block;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
  }
  .mob-cat-tree-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    -webkit-tap-highlight-color: transparent;
  }
  .mob-cat-tree-btn > svg:first-child { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
  .mob-cat-tree-btn .mct-caret { width: 17px; height: 17px; margin-left: auto; color: var(--text-secondary); transition: transform .2s; flex-shrink: 0; }
  .mob-cat-tree-wrap.open .mob-cat-tree-btn .mct-caret { transform: rotate(180deg); }

  .mob-cat-tree { display: none; padding-bottom: 6px; }
  .mob-cat-tree-wrap.open .mob-cat-tree { display: block; }

  .mct-list { list-style: none; margin: 0; padding: 0; }
  .mct-item { border-top: 1px solid var(--border-light); }
  .mct-list > .mct-item:first-child { border-top: none; }
  .mct-row { display: flex; align-items: stretch; min-height: 42px; }
  .mct-link {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 9px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.3;
    min-width: 0;
  }
  .mct-has > .mct-row > .mct-link { color: var(--text-primary); font-weight: 600; }
  .mct-link.mct-active { color: var(--blue); font-weight: 700; }
  .mct-toggle {
    width: 48px;
    flex-shrink: 0;
    background: none;
    border: none;
    border-left: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    -webkit-tap-highlight-color: transparent;
  }
  .mct-toggle svg { width: 16px; height: 16px; transition: transform .2s; }
  .mct-item.mct-open > .mct-row > .mct-toggle svg { transform: rotate(180deg); }
  .mct-children { display: none; background: #f8f9fb; }
  .mct-item.mct-open > .mct-children { display: block; }
  /* Отступы вложенности */
  .mct-children .mct-link { padding-left: 30px; }
  .mct-children .mct-children .mct-link { padding-left: 46px; }
  .mct-children .mct-children .mct-children .mct-link { padding-left: 62px; }
  /* Главные разделы — как в каталоге слева на ПК: значок, число товаров,
     «Хит»/«Новинки» — цветные таблетки, отделены линией (12.10.2026) */
  .mct-link { gap: 10px; }
  .mct-link:hover { text-decoration: none; }
  .mct-link .sb-ico { width: 30px; height: 30px; border-radius: 9px; }
  .mct-link .sb-ico svg { width: 17px; height: 17px; }
  .mct-label { min-width: 0; overflow-wrap: anywhere; }
  .mct-link .sb-count { font-size: 12px; }
  .mct-link.mct-active .sb-ico, .mct-link.mct-active .sb-count { background: #e3eeff; color: var(--blue); }
  .mct-list > .mct-item.is-special { border-top: none; padding: 4px 8px 0; }
  .mct-list > .mct-item.is-special + .mct-item:not(.is-special) { margin-top: 8px; }
  .mct-link.mct-hit, .mct-link.mct-new { padding: 6px 10px 6px 6px; border-radius: 12px; font-weight: 700; }
  .mct-link.mct-hit { background: #fff5ec; color: #e8710a; }
  .mct-link.mct-new { background: #f0f7ff; color: #2f8be0; }
  .mct-link .sb-ico.sb-ico-hit { background: #ffe8d4; color: #e8710a; }
  .mct-link .sb-ico.sb-ico-new { background: #dcecfd; color: #2f8be0; }

  /* ── Карточка товара: отключаем hover-прыжок (мешает тапу) ── */
  .product-card:hover { transform: none; box-shadow: var(--shadow-sm); }

  /* ── Кнопка-сердце: больше тач-цель ─────── */
  .fav-heart-btn {
    width: 40px;
    height: 40px;
    top: 8px;
    right: 8px;
  }
  .fav-heart-btn svg { width: 22px; height: 22px; }

  /* ── Карточка товара: счётчик и «В корзину» в одну строку ─
     Счётчик компактный и не сжимается, кнопка забирает весь остаток.
     Дубли для .carousel-track обязательны: там селектор из двух классов
     (.carousel-track .product-cart-row) перебивает одноклассовые правила
     этого медиа-запроса, и без них строка ведёт себя иначе. */
  .product-cart-row,
  .carousel-track .product-cart-row {
    flex-direction: row;
    flex-wrap: wrap;       /* не влезло рядом — кнопка уезжает на свою строку, а не сжимается */
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  .card-qty-ctrl,
  .carousel-track .card-qty-ctrl {
    width: auto;
    flex: 0 0 auto;
    justify-content: center;
  }
  .card-qty-btn,
  .carousel-track .card-qty-btn {
    width: 24px;
    height: 30px;
    font-size: 15px;
  }
  .card-qty-val,
  .carousel-track .card-qty-val {
    width: 24px;
    min-width: 24px;
    font-size: 12px;
  }
  .btn-add-cart,
  .carousel-track .btn-add-cart {
    width: auto;
    /* Кнопка по размеру надписи (не растягивается на весь остаток строки).
       Если рядом со счётчиком не остаётся даже 66px, flex-wrap уводит её
       на следующую строку. */
    flex: 0 1 auto;
    min-width: 66px;
    justify-content: center;
    align-self: stretch;   /* в одной строке со счётчиком — ровно его высота */
    min-height: 30px;      /* на своей строке высота не схлопывается (padding по вертикали нулевой) */
    padding: 0 8px;
    font-size: 11px;
  }

  /* ── Страница товара: мобильный вид ─────── */
  .product-page {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px;
    padding: 16px 0 40px;
  }
  .product-page-img img { height: 280px; }
  .product-page-name { font-size: 20px; margin-bottom: 12px; }
  .product-page-price { font-size: 28px; margin-bottom: 18px; }
  /* Счётчик и «В корзину» в одну строку, на одном уровне.
     Размеры задаём через .product-page-qty (2 класса) — иначе общие мобильные
     правила .card-qty-btn с !important ужимают кнопки до карточных 21px. */
  .product-page-cart {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  /* два класса, а не один: одноклассовое .card-qty-ctrl { height: 30px }
     лежит ниже по файлу и при равном весе перебивало бы высоту,
     а overflow:hidden обрезал бы кнопки «−/+» */
  .product-page-cart .product-page-qty {
    width: auto;
    flex: 0 0 auto;
    height: 44px;
    justify-content: center;
  }
  .product-page-qty .card-qty-btn {
    width: 38px !important;
    height: 41px !important;
    font-size: 19px;
  }
  .product-page-qty .card-qty-val {
    width: 44px;
    min-width: 44px;
    height: 41px;
    font-size: 16px;
  }
  .product-page-btn {
    flex: 1 1 auto;
    width: auto;
    align-self: stretch;
    min-height: 44px;
    padding: 0 16px !important;
    font-size: 16px !important;
    justify-content: center;
  }
  .product-page-desc h3 { font-size: 20px; }
  .product-page-desc-text { font-size: 16px; }

  /* ── Корзина: одна колонка ───────────────── */
  .cart-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    min-width: 0;
  }
  .cart-grid > * { min-width: 0; }


  /* ── Герой: компактнее ───────────────────── */
  .hero { padding: 22px 0 28px; }
  .hero-badge { margin-bottom: 10px; font-size: 10px; padding: 4px 10px; }
  .hero h2 { font-size: 30px; letter-spacing: -0.8px; margin-bottom: 10px; line-height: 1.1; }
  .hero-content p { font-size: 14px; margin-bottom: 14px; line-height: 1.55; }
  .hero-min-order { margin-bottom: 18px; padding: 8px 12px; font-size: 12px; }
  .hero-btns { gap: 8px; }
  .hero-btns .btn-primary { font-size: 16px; padding: 13px 26px; gap: 10px; }
  .hero-btns .btn-primary svg { width: 20px; height: 20px; }

  /* ── Карусель: CSS-анимация на мобильном ── */
  .carousel-wrap { overflow: hidden; border-radius: 0; }
  .carousel-track {
    animation: carousel-slide 50s linear infinite;
    gap: 10px;
  }
  .carousel-track .product-card { width: 155px !important; min-width: 155px; }
  .carousel-track .product-card .product-name { font-size: 12px; }
  .carousel-track .product-card .product-price { font-size: 13px; }
  .carousel-track .product-card .card-qty-btn { width: 28px; height: 28px; }
  .carousel-track .product-card .btn-add-cart { font-size: 11px; padding: 7px 8px; }

  /* ── Секция-заголовок ────────────────────── */
  .section-header { margin-bottom: 10px; align-items: center; }
  .section-header h2 { font-size: 19px; font-weight: 800; }
  .section-header a {
    font-size: 13px; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 4px;
  }
  .products-section { padding-top: 20px; }

  /* ── Профиль: адаптивный грид ────────────── */
  .profile-grid{ grid-template-columns: 1fr !important; gap: 16px !important; }

  /* ── Поиск по каталогу ──────────────────── */
  .catalog-controls {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .catalog-controls h1 { font-size: 20px; }
  .sort-select { width: 100%; }
  .catalog-controls > div:has(.sort-dd) { width: 100%; }
  .sort-dd, .sort-dd-btn { width: 100%; }
  .sort-dd-list { left: 0; right: 0; }
  .sort-dd-opt { padding: 12px; font-size: 15px; }

  /* ── Новости ─────────────────────────────── */
  .news-section { padding: 0 0 28px; }
  .news-card-body { padding: 14px 16px; }
  .news-title { font-size: 16px; line-height: 1.35; }
  .news-excerpt { font-size: 13px; line-height: 1.5; }
  .news-readmore { font-size: 12px; }

  /* ── Футер: компактно + отступ под фикс-панель (тёмный фон закрывает полосу) ── */
  /* 140px: под нижней панелью (72) ещё плавающая корзина и «наверх» — иначе они закрывали ссылки на документы */
  .site-footer { padding: 28px 0 calc(140px + env(safe-area-inset-bottom)); }
  .footer-brand p,
  .footer-brand .footer-company-info { display: none; }
  .footer-col h4 { font-size: 13px; margin-bottom: 8px; }
  .footer-col li a,
  .footer-contacts a,
  .footer-contacts p { font-size: 13px; }
  .footer-grid { gap: 20px; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding-top: 16px;
  }
  .footer-bottom p,
  .footer-bottom div a { font-size: 11px; }
  .footer-bottom div { flex-wrap: wrap; justify-content: center; gap: 12px; }

  /* ── Плавающая корзина: выше мобильного бара ── */
  .float-cart-anchor { z-index: 990; }
  #float-cart {
    bottom: 78px;
    right: 10px;
    padding: 10px 14px;
    min-width: 0;
    width: auto;
    border-radius: 14px;
  }
  .float-cart-top { font-size: 14px; gap: 6px; }
  /* Сумма выравнивается под текстом «N товаров» (отступ = иконка 19px + gap 6px) */
  .float-cart-sum { font-size: 12px; padding-left: 25px; }

  /* ── Кнопка «наверх» ──────────────────────── */
  #scroll-top-btn { bottom: 78px; right: 10px; }

  /* ── Нижняя навигация ────────────────────── */
  .mobile-bar {
    background: rgba(255,255,255,0.96);
    box-shadow: 0 -1px 0 rgba(0,0,0,0.07), 0 -4px 16px rgba(0,0,0,0.06);
    padding: 5px 0 max(8px, env(safe-area-inset-bottom));
  }
  .mobile-bar-inner { padding: 0 4px; }
  .mobile-bar-btn {
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    padding: 5px 10px 4px;
    min-width: 52px;
    border-radius: 10px;
    position: relative;
    transition: color .15s, background .15s;
  }
  .mobile-bar-btn svg { width: 23px; height: 23px; }
  .mobile-bar-btn.active { color: var(--blue); }
  .mobile-bar-btn.active svg { color: var(--blue); }
  /* Избранное — красное сердце когда активно */
  .mob-fav-btn.active { color: #dc2626; }
  .mob-fav-btn.active svg { color: #dc2626; fill: #dc2626; stroke: #dc2626; }

  /* ── Бейдж корзины в нижней навигации ─────── */
  .mob-cart-badge {
    position: absolute;
    top: 1px; right: 4px;
    background: var(--orange);
    color: #fff;
    border-radius: 50%;
    min-width: 17px;
    height: 17px;
    font-size: 10px;
    font-weight: 800;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
  }
  .mob-cart-badge.has-items { display: inline-flex; }

  /* ── Breadcrumb ─────────────────────────── */
  .breadcrumb { font-size: 12px; padding: 8px 0; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
  .breadcrumb::-webkit-scrollbar { display: none; }
}

@media (max-width: 480px) {
  /* ── Герой ── */
  .hero { padding: 18px 0 22px; }
  .hero h2 { font-size: 26px; margin-bottom: 8px; }
  .hero-content p { font-size: 13px; margin-bottom: 12px; }
  .hero-btns .btn-primary {
    font-size: 15px; padding: 12px 20px;
    width: 100%; justify-content: center;
  }

  /* ── Карусель ── */
  /* 176px, а не 150: при 150 счётчику и «В корзину» в одной строке
     остаётся 35px на текст надписи — она обрезается. 176 даёт запас
     на случай, если системный шрифт окажется шире Inter */
  .carousel-track .product-card { width: 176px !important; min-width: 176px; }
  .carousel-track .product-card .product-name { font-size: 12px; }

  /* ── Каталог: 2 колонки ── */
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-card .product-name { font-size: 12px; }
  .product-card .product-price { font-size: 13px; }
  .product-card-body { padding: 10px 10px 12px; }
  /* Узкий экран: счётчик ужимаем до минимума, иначе «В корзину» не влезает рядом */
  .product-cart-row, .carousel-track .product-cart-row { gap: 4px; }
  .card-qty-ctrl, .carousel-track .card-qty-ctrl { height: 30px; }
  .card-qty-btn, .carousel-track .card-qty-btn { width: 21px !important; height: 28px !important; font-size: 14px; }
  .card-qty-val, .carousel-track .card-qty-val { width: 24px; min-width: 24px; font-size: 12px; }
  .btn-add-cart, .carousel-track .btn-add-cart { font-size: 10.5px; padding: 0 3px; letter-spacing: -0.2px; }

  /* ── Страница товара ── */
  .product-page-img img { height: 240px; }
  .product-page-name { font-size: 18px; }
  .product-page-price { font-size: 24px; }


  /* ── Навигация категорий ── */
  .mob-cat-chip { font-size: 12px; padding: 5px 11px; }

  /* ── Нижняя навигация ── */
  .mobile-bar-btn { min-width: 46px; padding: 5px 7px 4px; font-size: 9px; }
  .mobile-bar-btn svg { width: 22px; height: 22px; }
}

/* ── Подгрузка товаров при прокрутке (каталог, категория) ── */
.catalog-spinner { width: 36px; height: 36px; border: 3px solid #e0e0e0; border-top-color: #ff6b00; border-radius: 50%; animation: cat-spin .7s linear infinite; }
@keyframes cat-spin { to { transform: rotate(360deg); } }
.catalog-end-msg { font-size: 13px; color: #aaa; padding: 8px 20px; border: 1px solid #e8e8e8; border-radius: 20px; background: #fafafa; }

/* ── Страницы документов и информации (legal.php, info.php) ── */
.legal-wrap { max-width: 920px; margin: 0 auto; padding: 28px 16px 70px; }
.legal-hero {
  background: linear-gradient(135deg, #0f1923 0%, #1a2b3c 55%, #0f2540 100%);
  border-radius: 20px; padding: 32px 34px; color: #fff;
  display: flex; align-items: center; gap: 18px; position: relative; overflow: hidden;
}
.legal-hero::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,113,227,0.35) 0%, transparent 70%); pointer-events: none;
}
.legal-hero-icon {
  width: 58px; height: 58px; border-radius: 15px; background: rgba(255,107,0,0.18);
  border: 1.5px solid rgba(255,107,0,0.4); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.legal-hero-icon svg { width: 28px; height: 28px; fill: none; stroke: #ff8a3d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.legal-hero-text h1 { font-size: 24px; font-weight: 800; margin: 0 0 4px; line-height: 1.2; }
.legal-hero-text .legal-updated { font-size: 13px; color: rgba(255,255,255,0.5); }

.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 24px; }
.legal-tab {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 50px;
  background: var(--bg); border: 1.5px solid var(--border-light); color: var(--text-secondary);
  font-size: 13.5px; font-weight: 600; text-decoration: none; transition: all .15s; white-space: nowrap;
}
.legal-tab:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.legal-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.legal-doc {
  background: #fff; border: 1px solid var(--border-light); border-radius: 18px;
  padding: 34px 38px; box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.legal-doc h2 {
  font-size: 18px; font-weight: 700; color: var(--text-primary);
  margin: 26px 0 10px; padding-top: 4px;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p { font-size: 15px; line-height: 1.7; color: #3a3a3f; margin-bottom: 12px; }
.legal-doc ul { margin: 0 0 14px; padding-left: 22px; }
.legal-doc li { font-size: 15px; line-height: 1.7; color: #3a3a3f; margin-bottom: 5px; }
.legal-doc b { color: var(--text-primary); font-weight: 700; }
.legal-doc a { color: var(--blue); }

.legal-foot-note {
  margin-top: 22px; padding: 16px 20px; background: var(--bg); border-radius: 12px;
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
}

@media (max-width: 600px) {
  .legal-wrap { padding: 16px 12px 70px; }
  .legal-hero { padding: 22px 20px; border-radius: 16px; gap: 14px; }
  .legal-hero-icon { width: 48px; height: 48px; }
  .legal-hero-text h1 { font-size: 19px; }
  .legal-doc { padding: 22px 18px; border-radius: 14px; }
  .legal-doc h2 { font-size: 16px; }
  .legal-doc p, .legal-doc li { font-size: 14px; }
  .legal-tabs { gap: 6px; }
  .legal-tab { font-size: 12px; padding: 8px 12px; }
}

/* ── Уведомление о файлах cookie ──
   Раньше эти правила лежали в самом низу страницы, и плашка успевала мелькнуть
   до того, как браузер до них доходил. Здесь они применяются до первой отрисовки. */
#cookie-banner{
  display:none; position:fixed; left:16px; right:16px; bottom:16px; z-index:99998;
  max-width:780px; margin:0 auto;
  background:#fff; border:1px solid #e8ebef; border-radius:16px;
  box-shadow:0 12px 44px rgba(0,0,0,.18);
  padding:16px 20px; align-items:center; gap:16px; flex-wrap:wrap;
}
#cookie-banner.show{ display:flex; }
.cookie-ico{ width:46px; height:46px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center;
             background:#fff1e6; color:#e8710a; }
.cookie-text{ flex:1; min-width:200px; font-size:13.5px; color:#555; line-height:1.55; }
.cookie-text a{ color:#0071e3; font-weight:600; text-decoration:none; }
.cookie-text a:hover{ text-decoration:underline; }
.cookie-btn{
  flex-shrink:0; padding:11px 28px; border:none; border-radius:10px;
  background:linear-gradient(135deg,#0071e3,#0077ed); color:#fff;
  font-size:14px; font-weight:700; cursor:pointer; transition:opacity .15s, transform .12s;
}
.cookie-btn:hover{ opacity:.9; transform:translateY(-1px); }
@media (max-width:768px){
  #cookie-banner{ bottom:74px; padding:14px 16px; gap:12px; }  /* над нижней мобильной панелью */
  .cookie-btn{ width:100%; }
}

/* ── Уведомление «Пока нет в наличии» (showStockNotice в cart-sync.js, 08.10.2026):
      товар с остатком 0 в корзину не кладётся, кнопка «вздрагивает», справа сверху на 2 с — карточка с названием ── */
.stock-notice { position: fixed; top: 20px; right: 20px; z-index: 100000; width: min(360px, calc(100vw - 24px)); overflow: hidden;
                display: flex; align-items: center; gap: 12px; padding: 13px 16px 15px 13px; background: #fff;
                border: 1px solid #f3e4d6; border-radius: 14px; box-shadow: 0 14px 36px rgba(16,24,40,.16), 0 2px 6px rgba(16,24,40,.06);
                opacity: 0; transform: translateX(28px); transition: opacity .2s ease, transform .3s cubic-bezier(.2,.8,.2,1);
                pointer-events: none; }
.stock-notice.show { opacity: 1; transform: translateX(0); }
/* Полоска внизу тает за 2 секунды — видно, что уведомление сейчас исчезнет */
.stock-notice::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #f59a4a;
                       transform-origin: left; animation: snTimer var(--sn-ms, 2s) linear forwards; }
@keyframes snTimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.sn-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; display: flex; align-items: center; justify-content: center;
          background: #fff1e6; color: #e8710a; }
.sn-ico svg { width: 21px; height: 21px; }
.sn-body { min-width: 0; }
.sn-title { font-size: 15.5px; font-weight: 800; line-height: 1.3; color: #1a1a1a; }
.sn-name { margin-top: 2px; font-size: 13px; line-height: 1.4; color: #6b7684; overflow-wrap: anywhere;
           display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 768px) {
  .stock-notice { top: 12px; right: 12px; left: 12px; width: auto; transform: translateY(-16px); }
  .stock-notice.show { transform: translateY(0); }
}
.btn-add-cart.shake { animation: btnShake .4s ease; }
@keyframes btnShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

/* ── Телефон: отступы страниц поменьше (14.10.2026, просьба владельца; на ПК всё как было) ──
   Классы стоят на блоках с отступами, прописанными прямо в разметке, поэтому здесь !important */
@media (max-width: 768px) {
  .page-pad { padding-top: 5px !important; padding-bottom: 28px !important; }   /* над «Главная › …»: было 32 + 8 */
  .page-pad > .breadcrumb { margin-bottom: 0 !important; }
  .page-h1 { margin: 2px 0 14px !important; }                                   /* заголовок страницы: было 20 сверху, 28 снизу */
  .nv-article { margin-top: 6px !important; }
  .co-wrap, .profile-wrap { padding-top: 5px !important; }                      /* оформление и кабинет: было 16–32 */
  .profile-wrap { padding-bottom: 32px !important; }                             /* над подвалом: было 80 */
  .co-wrap > .breadcrumb, .profile-wrap > .breadcrumb { margin-bottom: 4px !important; }
  .legal-bc { padding-top: 8px !important; }                                    /* документы, доставка, оплата: было 18 */
  .legal-wrap { padding-bottom: 28px; }
  .empty-pad, .favorites-empty { padding: 36px 16px !important; }               /* «Корзина пуста», «Ничего не найдено»…: было 60–80 */
  .auth-outer { min-height: 0 !important; align-items: flex-start !important; padding: 12px 12px 24px !important; }
  .auth-card { padding: 24px 18px !important; }                                 /* вход, регистрация, пароль: было 40 */
  .ct-card { padding: 20px 18px !important; border-radius: 16px !important; }   /* «Контакты» */
  .ct-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 20px !important; }   /* было две узкие колонки — номер рвался на 3 строки */
  .ct-card a[href^="tel:"] { white-space: nowrap; }
  .about-hero { margin: 8px 0 24px; }
  .about-page { padding-top: 8px; }                                            /* над «Главная › О компании» 16 — как под ней */
  .about-stats, .about-section { margin-bottom: 28px; }
  .about-contacts { margin-bottom: 24px; }
}
@media (max-width: 420px) {
  .reg-pass-row { grid-template-columns: minmax(0, 1fr) !important; }   /* пароль и повтор — друг под другом: подсказки в узких полях обрезались */
}

/* ── Ленты «Хиты продаж» и «Новинки» на главной (14.10.2026): заголовок со значком, «Смотреть все», кнопки ‹ › ── */
.hc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hc-title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.5px; min-width: 0; }
.hc-ico { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hc-ico svg { width: 22px; height: 22px; }
.is-hit .hc-ico { background: #fff5ec; color: #e8710a; }
.is-new .hc-ico { background: #f0f7ff; color: #2f8be0; }
.hc-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hc-all { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 50px; font-size: 14px;
          font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .18s, color .18s, box-shadow .18s; }
.hc-all svg { width: 16px; height: 16px; transition: transform .18s; }
.hc-all:hover svg { transform: translateX(3px); }
.is-hit .hc-all { background: #fff5ec; color: #e8710a; }
.is-hit .hc-all:hover { background: #e8710a; color: #fff; box-shadow: 0 6px 16px -6px rgba(232,113,10,.6); }
.is-new .hc-all { background: #f0f7ff; color: #2f8be0; }
.is-new .hc-all:hover { background: #2f8be0; color: #fff; box-shadow: 0 6px 16px -6px rgba(47,139,224,.6); }
/* кнопки ‹ › — по бокам ленты, по центру высоты карточек (14.10.2026, владелец: «прям по бокам и больше») */
.hc-stage { position: relative; }
.hc-btn { position: absolute; top: 50%; z-index: 5; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; background: #fff;
          border: 1px solid #e3e6ea; color: #333; cursor: pointer; display: flex; align-items: center; justify-content: center;
          box-shadow: 0 6px 18px rgba(16,24,40,.16); transition: background .15s, color .15s, border-color .15s, transform .15s; }
.hc-btn:hover { transform: scale(1.06); }
.hc-btn svg { width: 28px; height: 28px; }
/* центр кнопки — ровно на краю ленты (владелец). Где до края окна меньше половины кнопки, лента уже на 28 px с каждой стороны */
.hc-prev { left: -28px; }
.hc-next { right: -28px; }
@media (max-width: 1500px) {
  .hc-stage { padding: 0 28px; }
  .hc-prev { left: 0; }
  .hc-next { right: 0; }
}
.is-hit .hc-btn:hover { background: #e8710a; border-color: #e8710a; color: #fff; }
.is-new .hc-btn:hover { background: #2f8be0; border-color: #2f8be0; color: #fff; }
/* лентой управляет скрипт (index.php): CSS-анимация выключена, можно тянуть мышкой и пальцем */
.carousel-wrap.is-js { cursor: grab; touch-action: pan-y; }
.carousel-wrap.is-js .carousel-track { animation: none; }
/* на главной в ленте каждый товар один раз (копии добавляет скрипт) — CSS-анимация там не подходит; без скрипта лента листается вбок */
.home-carousel .carousel-track { animation: none; }
.home-carousel .carousel-wrap:not(.is-js) { overflow-x: auto; }
.carousel-wrap.is-drag { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.carousel-wrap.is-drag .product-card { pointer-events: none; }
@media (max-width: 768px) {
  .hc-title { font-size: 20px; gap: 10px; letter-spacing: -0.3px; }
  .hc-ico { width: 34px; height: 34px; border-radius: 10px; }
  .hc-ico svg { width: 18px; height: 18px; }
  .hc-btn { display: none; }                      /* на телефоне листают пальцем */
  .hc-stage { padding: 0; }
  .hc-all { height: 34px; padding: 0 12px; font-size: 13px; }
}

/* ── Главные разделы на главной между лентами (14.10.2026): плитки со значком, названием и числом товаров ── */
.home-cats { padding: 20px 0 8px; }
.is-cats .hc-ico { background: #eef2f7; color: #475569; }
.is-cats .hc-all { background: #eef2f7; color: #334155; }
.is-cats .hc-all:hover { background: #334155; color: #fff; box-shadow: 0 6px 16px -6px rgba(51,65,85,.6); }
.hc-title a { display: flex; align-items: center; gap: inherit; color: inherit; text-decoration: none; transition: color .15s; }
.is-hit .hc-title a:hover { color: #e8710a; }
.is-new .hc-title a:hover { color: #2f8be0; }
.is-cats .hc-title a:hover { color: #334155; }
.hcat-grid { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 16px; }   /* --n — число разделов (до 6 в ряд) */
.hcat { --tb: #f1f3f6; --tc: #475569; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: 18px 18px 16px;
        background: #fff; border: 1.5px solid #eef0f3; border-radius: 18px; color: #1a1a1a; text-decoration: none;
        box-shadow: 0 2px 12px rgba(16,24,40,.05); transition: transform .2s, box-shadow .2s, border-color .2s; }
.hcat:hover { transform: translateY(-3px); border-color: var(--tc); box-shadow: 0 12px 26px -10px rgba(16,24,40,.25); }
.hcat-ico { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
            background: var(--tb); color: var(--tc); transition: background .2s, color .2s; }
.hcat-ico svg { width: 26px; height: 26px; }
.hcat:hover .hcat-ico { background: var(--tc); color: #fff; }
.hcat-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.hcat-txt b { font-size: 15px; font-weight: 800; letter-spacing: .2px; line-height: 1.25; overflow-wrap: break-word; }
.hcat-txt small { font-size: 13px; font-weight: 600; color: var(--tc); }
.hcat-go { position: absolute; top: 18px; right: 18px; width: 18px; height: 18px; color: #c3cad5; transition: color .2s, transform .2s; }
.hcat-go svg { width: 18px; height: 18px; display: block; }
.hcat:hover .hcat-go { color: var(--tc); transform: translateX(3px); }
.hcat.t-yellow { --tb: #fff7df; --tc: #d08b00; }
.hcat.t-blue   { --tb: #eaf3ff; --tc: #1f7ae0; }
.hcat.t-orange { --tb: #fff1e6; --tc: #e8710a; }
.hcat.t-purple { --tb: #f3ecff; --tc: #7c4ddb; }
.hcat.t-green  { --tb: #e7f7ee; --tc: #1f9d55; }
@media (max-width: 900px) {
  .hcat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hcat-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .home-cats { padding: 12px 0 4px; }
  .hcat { padding: 14px 12px; border-radius: 16px; gap: 10px; }
  .hcat-ico { width: 42px; height: 42px; border-radius: 12px; }
  .hcat-ico svg { width: 22px; height: 22px; }
  .hcat-txt b { font-size: 13.5px; }
  .hcat-txt small { font-size: 12px; }
  .hcat-go { top: 14px; right: 12px; }
}

/* ── Шапка главной на компьютере вдвое ниже (14.10.2026, владелец: «эту область уменьшь в 2 раза»; было ~650 px, стало ~320) ──
   Заголовок и текст меньше, «Минимальная сумма» и кнопка — в одну строку (.hero-row), логотип на белой панели — по высоте шапки */
.hero-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
@media (min-width: 769px) {
  .hero-inner { min-height: 0; }
  .hero-content { padding: 30px 40px 30px 0; }
  .hero-badge { font-size: 12px; padding: 5px 12px; margin-bottom: 12px; }
  .hero h2 { font-size: 36px; letter-spacing: -0.6px; margin-bottom: 12px; }
  .hero p { font-size: 15px; line-height: 1.55; max-width: 600px; margin-bottom: 18px; }
  .hero-row .hero-min-order { margin-bottom: 0; padding: 9px 14px; font-size: 14px; }
  .hero-btns .btn-primary { font-size: 17px; padding: 13px 28px; gap: 10px; box-shadow: 0 8px 22px rgba(0,113,227,0.4); }
  .hero-btns .btn-primary svg { width: 20px; height: 20px; }
  .hero-logos { padding: 14px 20px; }
  .hero-logo-main { width: auto; height: 280px; max-width: 100%; }
  @keyframes heroLogoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
}
@media (max-width: 768px) {
  .hero-row { display: block; }                                         /* на телефоне — как было: плашка над кнопкой */
  .hero-row .hero-min-order { margin-bottom: 18px; }
}

/* ── Акции в шапке главной вместо логотипа (14.10.2026, владелец): новости с отметкой «Акция» в админке ──
   Картинка целиком (плакаты квадратные), края — она же размытая; несколько — плавно сменяются */
.hero-visual.hero-promo { background: #0f1a26; overflow: hidden; padding: 0; min-height: 300px; }
.hp-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px 64px 34px;
            opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; text-decoration: none; }
.hp-slide.is-on { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; }
.hp-bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover;
         filter: blur(26px) brightness(.55) saturate(1.2); }
.hp-img { position: relative; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 14px;
          box-shadow: 0 18px 40px rgba(0,0,0,.45); transition: transform .35s ease; }
.hp-slide:hover .hp-img { transform: scale(1.025); }
.hp-title { position: absolute; left: 0; right: 0; bottom: 10px; padding: 0 70px; text-align: center; color: rgba(255,255,255,.9);
            font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.hp-badge { position: absolute; top: 14px; left: 14px; z-index: 3; padding: 5px 12px; border-radius: 20px; background: #ff6b00; color: #fff;
            font-size: 12.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; box-shadow: 0 6px 16px -4px rgba(255,107,0,.6); pointer-events: none; }
.hp-nav { position: absolute; top: 50%; z-index: 3; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; border: none; cursor: pointer;
          background: rgba(255,255,255,.92); color: #1a1a1a; display: flex; align-items: center; justify-content: center;
          box-shadow: 0 6px 16px rgba(0,0,0,.3); transition: background .15s, transform .15s; }
.hp-nav svg { width: 22px; height: 22px; }
.hp-nav:hover { background: #fff; transform: scale(1.08); }
.hp-prev { left: 12px; }
.hp-next { right: 12px; }
.hp-dots { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 3; display: flex; justify-content: center; gap: 7px; pointer-events: none; }
.hero-promo.is-multi .hp-title { bottom: 8px; }
.hero-promo.is-multi .hp-slide { padding-bottom: 44px; }
.hp-dot { pointer-events: auto; width: 9px; height: 9px; padding: 0; border: none; border-radius: 9px; cursor: pointer; background: rgba(255,255,255,.45);
          transition: width .25s, background .25s; }
.hp-dot.is-on { width: 24px; background: #ff6b00; }
@media (max-width: 768px) {
  /* на телефоне — под текстом, во всю ширину (логотип там был бледным знаком за текстом) */
  .hero-visual.hero-promo { position: relative; top: auto; right: auto; transform: none; opacity: 1; pointer-events: auto; z-index: 1;
                            margin: 18px 0 0; min-height: 0; aspect-ratio: 1 / 1; max-height: 360px; border-radius: 16px; width: 100%; }
  .hp-slide { padding: 12px 12px 30px; }
  .hero-promo.is-multi .hp-slide { padding-bottom: 40px; }
  .hp-nav { display: none; }
  .hp-badge { top: 10px; left: 10px; font-size: 11px; padding: 4px 10px; }
  .hp-title { padding: 0 14px; font-size: 12px; }
  .hp-dots { bottom: 26px; }
}

/* ── Верхнее меню чуть крупнее (14.10.2026, владелец) — по ширине экрана, чтобы оставалось в одну строку ── */
@media (min-width: 1440px) {
  .nav-list { gap: 6px; }
  .nav-link { font-size: 18.5px !important; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 13px; }
  .nav-ico { width: 35px; height: 35px; border-radius: 10px; }
  .nav-ico svg { width: 19px; height: 19px; }
  .nav-link .nav-chev { width: 14px; height: 14px; }
}
@media (min-width: 1366px) and (max-width: 1439px) {
  .nav-link { font-size: 18px !important; padding: 7px 15px 7px 7px; }
  .nav-ico { width: 34px; height: 34px; }
  .nav-ico svg { width: 18px; height: 18px; }
}
@media (min-width: 1101px) and (max-width: 1280px) {
  .nav-link { font-size: 16.5px !important; }
}
@media (max-width: 1100px) {
  .nav-link, .nav-item:not(.is-special) .nav-link { font-size: 15.5px !important; }
}

/* ── Главная: одинаковый промежуток перед «Хитами продаж», «Каталогом товаров», «Новинками» и «Нашими новостями»
   (14.10.2026, владелец: «чуть больше, чем перед Новинками»; было 48 / 48 / 24 / 60 px — стало 32 везде, на телефоне 24). У ленты снизу свои 12 px
   (запас под тень карточек) — их вычитаем, чтобы видимый промежуток был ровно --home-gap ── */
:root { --home-gap: 32px; }
.home-carousel.is-hit { padding: var(--home-gap) 0 0; }
.home-cats            { padding: calc(var(--home-gap) - 12px) 0 0; }
.home-carousel.is-new { padding: var(--home-gap) 0 0; }
.news-section.home-news { padding-top: calc(var(--home-gap) - 12px); }
@media (max-width: 768px) { :root { --home-gap: 24px; } }

/* ── Акции среди новостей (14.10.2026, владелец: «выделялись — зелёным и значок Акция») ── */
.news-card { position: relative; }
/* Оранжевый, как метка в шапке главной (владелец: «вот такой значок больше нравится, зелёный не нравится»):
   метка — та же, что .hp-badge; у карточки — мягкая оранжевая рамка и тёплый низ */
.news-card.is-promo { border: 1.5px solid rgba(255,107,0,.35); background: linear-gradient(180deg, #fff 55%, #fff7f0 100%);
                      box-shadow: 0 2px 14px rgba(232,113,10,.08); }
.news-card.is-promo:hover { border-color: rgba(255,107,0,.6); box-shadow: 0 12px 28px -10px rgba(232,113,10,.32); }
.news-card.is-promo .news-readmore { color: #e8710a; }
.news-card.is-promo:hover .news-title { color: #e8710a; }
.news-promo-badge { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center;
                    padding: 5px 12px; border-radius: 20px; background: #ff6b00; color: #fff;
                    font-size: 12.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
                    box-shadow: 0 6px 16px -4px rgba(255,107,0,.6); pointer-events: none; }
.news-promo-badge.is-inline { position: static; box-shadow: 0 4px 12px -4px rgba(255,107,0,.5); }
.news-promo-badge.is-news { background: rgba(91, 63, 199, .8); -webkit-backdrop-filter: blur(6px) saturate(1.3); backdrop-filter: blur(6px) saturate(1.3);
                            box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 6px 16px -4px rgba(91,63,199,.45); }   /* обычная новость — прозрачно-фиолетовая (20.10.2026, владелец; была голубая — голубой теперь у «Новинки») */
.news-promo-badge.is-inline.is-news { box-shadow: 0 4px 12px -4px rgba(91,63,199,.4); }
/* дата: у новости — голубая (как метка «НОВОСТЬ»), у акции — оранжевая (14.10.2026, владелец) */
.news-card:not(.is-promo) .news-date { background: #efeaff; color: #5b3fc7; }   /* у новости — фиолетовая (20.10.2026), у новинки — голубая (ниже) */
/* «Новости и акции» на главной — заголовок и кнопка как у остальных блоков */
/* значок и кнопка — спокойный фиолетовый (владелец: зелёный у значка не нравился); заголовок при наведении не перекрашивается */
.is-news .hc-ico { background: #efeaff; color: #6a4fd6; }
.is-news .hc-all { background: #efeaff; color: #5b3fc7; }
.is-news .hc-all:hover { background: #5b3fc7; color: #fff; box-shadow: 0 6px 16px -6px rgba(91,63,199,.55); }
.is-news .hc-title a:hover { color: inherit; }
.home-news .hc-head { margin-bottom: 16px; }

/* Без подчёркивания при наведении у блоков-ссылок (14.10.2026, владельцу не нравилось): общее правило a:hover подчёркивало
   весь текст карточки новости, плитки раздела, заголовки и кнопки блоков главной */
a.news-card:hover, a.hcat:hover, .hc-title a:hover, a.hc-all:hover, a.hp-slide:hover, a.nv-back:hover { text-decoration: none; }

/* ── «Новости и акции»: кнопки «Все / Акции / Новости» (14.10.2026, владелец) ── */
.nf-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.nf-tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 16px; border-radius: 50px; background: #fff;
          border: 1.5px solid #e3e6ea; color: #344054; font-size: 15px; font-weight: 700; text-decoration: none;
          transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.nf-tab span { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center;
               background: #f1f3f6; color: #475467; font-size: 13px; font-weight: 800; }
a.nf-tab:hover { border-color: #c5ccd6; color: #1f2328; text-decoration: none; }
.nf-tab.active { background: #1f2328; border-color: #1f2328; color: #fff; box-shadow: 0 6px 16px -8px rgba(16,24,40,.6); }
.nf-tab.active span { background: rgba(255,255,255,.2); color: #fff; }
.nf-tab.is-promo span { background: #fff1e6; color: #e8710a; }
.nf-tab.is-news span { background: #efeaff; color: #5b3fc7; }
a.nf-tab.is-promo:hover { border-color: #ffb27a; color: #e8710a; }
a.nf-tab.is-news:hover { border-color: #c9bdf5; color: #5b3fc7; }
.nf-tab.is-promo.active { background: #ff6b00; border-color: #ff6b00; color: #fff; box-shadow: 0 6px 16px -6px rgba(255,107,0,.6); }
.nf-tab.is-news.active { background: rgba(91,63,199,.88); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -6px rgba(91,63,199,.55); }
.nf-tab.is-promo.active span, .nf-tab.is-news.active span { background: rgba(255,255,255,.25); color: #fff; }
.nf-empty { color: var(--text-secondary); padding: 24px 0; }
@media (max-width: 768px) {
  .nf-tabs { gap: 6px; margin-bottom: 16px; }
  .nf-tab { height: 36px; font-size: 14px; padding: 0 6px 0 13px; }
  .nf-tab span { min-width: 24px; height: 24px; font-size: 12px; }
}
/* «Новости и акции»: под «Главная › …» столько же, сколько над ней (по буквам: 29 px на ПК, 17 на телефоне — у заголовка высокая строка),
   внизу до подвала вдвое меньше (было 96 / 76 px — стало 48 / 38; 14.10.2026, владелец) */
.nf-page { padding-bottom: 0 !important; }
@media (max-width: 768px) {
  .nf-page .page-h1 { margin-top: -9px !important; }
  .nf-page #news-sentinel { padding: 19px 0 !important; min-height: 0 !important; }
}

/* ── Корзина (14.10.2026, владелец: «красивее, текст читаемый»): карточки товаров и блок «Ваш заказ» ── */
.cart-h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cart-notice { display: flex; align-items: center; gap: 10px; background: #fff7e6; color: #8a5a00; border: 1px solid #ffe2a8; border-radius: 12px;
               padding: 13px 16px; margin-bottom: 18px; font-size: 15px; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 10px; }
.cart-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 110px 36px; align-items: center; gap: 14px; padding: 10px 14px;
             background: #fff; border: 1px solid #eef0f3; border-radius: 14px; box-shadow: 0 2px 10px rgba(16,24,40,.04); }   /* компактнее (владелец) */
.ci-img { width: 64px; height: 64px; border-radius: 10px; border: 1px solid #eef0f3; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ci-img img { width: 100%; height: 100%; object-fit: contain; }
.ci-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ci-art { font-size: 13px; color: #667085; }
.ci-art b { color: #1a1a1a; font-weight: 700; }
.ci-name { font-size: 15px; font-weight: 600; line-height: 1.3; color: #1a1a1a; text-decoration: none; overflow-wrap: anywhere;
           display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.ci-name:hover { color: var(--blue); text-decoration: none; }
.ci-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 2px; }
.ci-unit { font-size: 13.5px; color: #475467; }
/* остаток — как на карточках каталога (зелёная точка); больше 500 — «много» */
.ci-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #1e7a45; }
.ci-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #22a35a; }
.ci-qty { display: inline-flex; align-items: center; border: 1.5px solid #e3e6ea; border-radius: 10px; overflow: hidden; background: #fff; }
.ci-qbtn { width: 34px; height: 36px; border: none; background: #f6f8fa; color: #1a1a1a; font-size: 20px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.ci-qbtn:hover { background: #eaf2ff; color: var(--blue); }
.ci-qty .cart-qty-input { width: 48px; height: 36px; border: none; text-align: center; font-size: 15px; font-weight: 700; color: #1a1a1a; background: #fff;
                          -moz-appearance: textfield; padding: 0; }
.ci-qty .cart-qty-input::-webkit-outer-spin-button, .ci-qty .cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ci-sum { text-align: right; font-size: 17px; font-weight: 800; color: #1a1a1a; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ci-del { width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: #98a2b3; cursor: pointer;
          display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s, border-color .15s; }
.ci-del svg { width: 18px; height: 18px; }
.ci-del:hover { background: #fdecea; border-color: #f7c7c1; color: #d93025; }
.cart-clear { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1.5px solid #f2d0cc;
              background: #fff; color: #c5221f; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.cart-clear svg { width: 17px; height: 17px; }
.cart-clear:hover { background: #d93025; border-color: #d93025; color: #fff; }
/* «Ваш заказ» */
.cart-summary { position: sticky; top: 90px; background: #fff; border: 1px solid #eef0f3; border-radius: 18px; padding: 24px; box-shadow: 0 4px 22px rgba(16,24,40,.07); }
.cs-title { margin: 0 0 16px; font-size: 20px; font-weight: 800; }
.cs-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; font-size: 16px; color: #475467; }
.cs-row b { color: #1a1a1a; font-weight: 700; font-variant-numeric: tabular-nums; }
.cs-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 12px 0 16px; padding-top: 16px; border-top: 1px solid #eef0f3;
            font-size: 18px; font-weight: 700; }
.cs-total b { font-size: 28px; font-weight: 800; color: var(--blue); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cs-min { padding: 12px 14px; border-radius: 12px; background: #fff7e6; color: #8a5a00; margin-bottom: 16px; transition: background .3s, color .3s; }
.cs-min.is-ok { background: #eaf7ef; color: #1e7a45; }
.cs-min-head { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; line-height: 1.4; }
.cs-min-ico { display: inline-flex; flex-shrink: 0; margin-top: 1px; }
.cs-bar { height: 6px; border-radius: 6px; background: rgba(0,0,0,.07); margin-top: 10px; overflow: hidden; }
.cs-bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: #f5a524; transition: width .35s ease, background .3s; }
.cs-min.is-ok .cs-bar span { background: #22a35a; }
.cs-btn { display: flex !important; width: 100%; justify-content: center; align-items: center; gap: 10px; box-sizing: border-box; border: none; cursor: pointer;
          font-size: 18px !important; padding: 16px 20px !important; border-radius: 14px !important; }
.cs-btn svg { width: 20px; height: 20px; }
.cs-note { margin: 10px 0 0; font-size: 13.5px; color: #667085; text-align: center; }
.cs-back { display: block; text-align: center; margin-top: 14px; color: #475467; font-size: 15px; text-decoration: none; }
.cs-back:hover { color: var(--blue); text-decoration: none; }
/* пустая корзина */
.cart-empty { text-align: center; padding: 70px 20px; background: #fff; border: 1px solid #eef0f3; border-radius: 18px; }
.cart-empty-ico { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: #f2f4f7; color: #98a2b3; display: flex; align-items: center; justify-content: center; }
.cart-empty-ico svg { width: 42px; height: 42px; }
.cart-empty-title { font-size: 22px; font-weight: 800; color: #1a1a1a; margin: 0 0 6px; }
.cart-empty-sub { font-size: 16px; color: #667085; margin: 0 0 22px; }
@media (max-width: 1100px) {
  .cart-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .cart-item { grid-template-columns: 64px minmax(0, 1fr) auto 36px; grid-template-areas: "img info info del" "img qty sum sum"; row-gap: 8px; }
  .ci-img { grid-area: img; width: 64px; height: 64px; align-self: start; }
  .ci-info { grid-area: info; }
  .ci-qty { grid-area: qty; justify-self: start; }
  .ci-sum { grid-area: sum; }
  .ci-del { grid-area: del; align-self: start; }
}
@media (max-width: 900px) {
  .cart-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cart-summary { position: static; }
}
@media (max-width: 768px) {
  .cart-item { grid-template-columns: 60px minmax(0, 1fr) 34px; grid-template-areas: "img info del" "row row row"; gap: 8px 12px; padding: 12px; border-radius: 14px; }
  /* количество и сумма — одной строкой на всю ширину карточки (раньше сумма жила в колонке 36 px и «₽» обрезался) */
  .ci-qty { grid-area: row; justify-self: start; }
  .ci-sum { grid-area: row; justify-self: end; }
  .ci-img { width: 60px; height: 60px; }
  .ci-art { font-size: 13px; }
  .ci-name { font-size: 14.5px; }
  .ci-unit, .ci-stock { font-size: 13px; }
  .ci-qbtn { width: 34px; height: 36px; }
  .ci-qty .cart-qty-input { width: 48px; height: 36px; font-size: 16px; }   /* 16 px — iOS не приближает */
  .ci-sum { font-size: 17px; align-self: center; }
  .ci-del { width: 34px; height: 34px; }
  .cart-summary { padding: 18px; border-radius: 16px; }
  .cs-total b { font-size: 24px; }
  .cart-empty { padding: 44px 16px; }
}
/* «Главная › Корзина»: сверху и снизу одинаково — на ПК 18 px по буквам (было 53 / 38), на телефоне 17 / 17 (было 17 / 28);
   под словом «Корзина» до карточек — столько же (ПК было 30, телефон 22) */
@media (min-width: 769px) {
  .cart-page > .breadcrumb { padding-top: 13px; }
  .cart-page .cart-h1 { margin-top: 0 !important; margin-bottom: 10px !important; }
}
@media (max-width: 768px) { .cart-page .cart-h1 { margin-top: -9px !important; margin-bottom: 9px !important; } }

/* ── Окно подтверждения siteConfirm (footer.php; 14.10.2026, владелец: «красивое» — удаление из корзины,
   очистка корзины, выход из аккаунта) ── */
.sc-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; transition: opacity .18s ease; }
.sc-modal.show { opacity: 1; }
.sc-overlay { position: absolute; inset: 0; background: rgba(15,25,35,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sc-win { position: relative; width: 100%; max-width: 400px; background: #fff; border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25); padding: 28px 24px 22px; text-align: center;
  transform: translateY(14px) scale(.96); transition: transform .22s cubic-bezier(.2,.8,.3,1.15); }
.sc-modal.show .sc-win { transform: none; }
.sc-ico { width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.sc-ico svg { width: 28px; height: 28px; }
.sc-ico.red  { background: #fde8e6; color: #d93025; box-shadow: 0 0 0 8px #fef4f3; }
.sc-ico.blue { background: #e8f1fd; color: #0071e3; box-shadow: 0 0 0 8px #f3f8fe; }
.sc-title { font-size: 20px; font-weight: 800; color: #1a1a1a; line-height: 1.3; margin: 0; }
.sc-text { font-size: 15px; color: #5f6368; line-height: 1.45; margin: 8px 0 0; }
.sc-item { display: flex; align-items: center; gap: 12px; text-align: left; margin-top: 16px; padding: 10px 12px;
  background: #f8f9fb; border: 1px solid #eceff3; border-radius: 14px; }
.sc-item img { width: 54px; height: 54px; object-fit: contain; background: #fff; border-radius: 10px; flex-shrink: 0; }
.sc-item-body { min-width: 0; }
.sc-item-name { font-size: 14.5px; font-weight: 600; color: #1a1a1a; line-height: 1.3; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-item-meta { font-size: 13.5px; color: #5f6368; margin-top: 3px; }
.sc-btns { display: flex; gap: 10px; margin-top: 22px; }
.sc-btn { flex: 1; padding: 13px 14px; border-radius: 12px; font-family: inherit; font-size: 15.5px; font-weight: 700;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s; -webkit-tap-highlight-color: transparent; }
.sc-cancel { background: #fff; border: 1.5px solid #d6dae0; color: #374151; }
.sc-cancel:hover { border-color: #9aa3ae; color: #111; }
.sc-ok { border: 1.5px solid transparent; color: #fff; }
.sc-ok.red  { background: #d93025; } .sc-ok.red:hover  { background: #b8271d; }
.sc-ok.blue { background: #0071e3; } .sc-ok.blue:hover { background: #005bb8; }
.sc-btn:focus-visible { outline: 3px solid rgba(0,113,227,.35); outline-offset: 2px; }
@media (max-width: 480px) {
  .sc-win { padding: 24px 18px 18px; border-radius: 20px; }
  .sc-title { font-size: 18px; }
}

/* «Цены соответствуют статусу «…»» — корзина («Ваш заказ») и подтверждение заказа (14.10.2026, владелец: цветом
   и значком статуса, как в админке; без суммы выгоды и зачёркнутых цен). priceGroupLine() в db.php */
.pg-line { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: 14px; border: 1.5px solid;
  font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.cart-summary .pg-line { margin: -4px 0 12px; }
.pg-line b { font-weight: 800; }
.pg-line-ico { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff; }
.pg-line-ico svg { width: 17px; height: 17px; }
.pg-line.pg-vip   { color: #7a26c4; border-color: #e3cbfa; background: linear-gradient(135deg, #fcf8ff, #f1e4fd); }
.pg-line.pg-vip   .pg-line-ico { background: linear-gradient(135deg, #a052e8, #7a26c4); }
.pg-line.pg-opt   { color: #137333; border-color: #bfe3cb; background: linear-gradient(135deg, #f6fcf8, #e6f4ea); }
.pg-line.pg-opt   .pg-line-ico { background: linear-gradient(135deg, #34a853, #137333); }
.pg-line.pg-kropt { color: #b85c00; border-color: #f7d6ad; background: linear-gradient(135deg, #fffaf3, #fef0dc); }
.pg-line.pg-kropt .pg-line-ico { background: linear-gradient(135deg, #ff8c1a, #c26401); }
.pg-line.pg-vs    { color: #1967d2; border-color: #c4d8f7; background: linear-gradient(135deg, #f6f9ff, #e8f0fe); }
.pg-line.pg-vs    .pg-line-ico { background: linear-gradient(135deg, #4a8df0, #1967d2); }
.pg-line.pg-other { color: #3c4043; border-color: #dadce0; background: linear-gradient(135deg, #fbfbfc, #f1f3f4); }
.pg-line.pg-other .pg-line-ico { background: linear-gradient(135deg, #80868b, #5f6368); }
/* В тёмной строке «Подтверждение заказа» — компактнее; на узком экране переносится под заголовок */
.co-section-head:has(.pg-line.is-head) { flex-wrap: wrap; gap: 8px 12px; }
.pg-line.is-head { padding: 4px 12px 4px 4px; border-radius: 30px; font-size: 13.5px; border-width: 1px; }
.pg-line.is-head .pg-line-ico { width: 26px; height: 26px; }
.pg-line.is-head .pg-line-ico svg { width: 14px; height: 14px; }
.cs-row.cs-base s { color: #98a2b3; font-weight: 600; font-variant-numeric: tabular-nums; }
.cs-row[hidden] { display: none; }
.ci-base { color: #98a2b3; font-weight: 500; margin-right: 2px; }

/* ── «Товары не в наличии» — переключатель у сортировки в каталоге и разделах (15.10.2026, владелец) ── */
.oos-toggle { position: relative; box-sizing: border-box; display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px 0 11px;
              border: 1.5px solid var(--border-light); border-radius: 12px; background: var(--bg-white); color: var(--text-primary);
              font: 600 14px var(--font); white-space: nowrap; cursor: pointer; user-select: none;
              box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: border-color .15s, background .15s; }
.oos-toggle:hover { border-color: #c7c7cc; }
.oos-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.oos-switch { position: relative; flex-shrink: 0; width: 36px; height: 21px; border-radius: 21px; background: #d5d9de; transition: background .18s; }
.oos-switch::after { content: ''; position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 50%;
                     background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .18s; }
.oos-toggle input:checked + .oos-switch { background: #ff6b00; }
.oos-toggle input:checked + .oos-switch::after { transform: translateX(15px); }
.oos-toggle input:focus-visible + .oos-switch { box-shadow: 0 0 0 3px rgba(255,107,0,.25); }
.oos-toggle:has(input:checked) { border-color: #ffc89e; background: #fff8f2; }
.oos-n { padding: 2px 8px; border-radius: 20px; background: #eef0f3; color: #5f6368; font-size: 12.5px; font-weight: 700;
         font-variant-numeric: tabular-nums; }
.oos-toggle:has(input:checked) .oos-n { background: #ffe3cc; color: #b85a0e; }
/* Карточка товара без остатка — фото бледнее, остальное как у всех */
.product-card.is-oos .product-card-img img { filter: grayscale(.8); opacity: .55; }
@media (max-width: 768px) {
  .oos-toggle { width: 100%; }
  .oos-n { margin-left: auto; }
}

/* Телефон: в карточках каталога, разделов, поиска, избранного счётчик и «В корзину» занимают всю строку —
   кнопка растягивается на остаток (15.10.2026, владелец; было по размеру надписи, по краям пустота).
   Не помещаются рядом (узкий экран) — кнопка, как и раньше, уходит на свою строку и там во всю ширину.
   Ленты на главной (.carousel-track) не трогаем */
@media (max-width: 768px) {
  .products-grid .product-cart-row .btn-add-cart { flex: 1 1 auto; }
}

/* ── Новинка среди новостей (20.10.2026, владелец): метка «НОВИНКА» — голубая, как раньше была у «Новости»
   (сначала прозрачно-красная, потом зелёная; владелец: «новинка цветом как сейчас новость, а новость прозрачно фиолетовая»);
   у карточки — мягкая голубая рамка; в шапке главной — вместе с акциями ── */
.news-promo-badge.is-novelty, .hp-badge.is-novelty, .snw-tag.is-novelty { background: #2f8be0; color: #fff; box-shadow: 0 6px 16px -4px rgba(47,139,224,.55); }
.news-promo-badge.is-inline.is-novelty { box-shadow: 0 4px 12px -4px rgba(47,139,224,.45); }
.snw-tag.is-novelty { box-shadow: none; }
.news-card.is-novelty { border: 1.5px solid rgba(47,139,224,.3); background: linear-gradient(180deg, #fff 55%, #f3f8ff 100%);
                        box-shadow: 0 2px 14px rgba(47,139,224,.07); }
.news-card.is-novelty:hover { border-color: rgba(47,139,224,.55); box-shadow: 0 12px 28px -10px rgba(47,139,224,.3); }
.news-card.is-novelty .news-readmore { color: #2f8be0; }
.news-card.is-novelty:hover .news-title { color: #2f8be0; }
.news-card.is-novelty .news-date { background: #eaf3ff; color: #2f8be0; }
.sidebar-news-item.is-novelty { border-color: rgba(47,139,224,.28); background: linear-gradient(180deg, #fff 60%, #f3f8ff); }
.sidebar-news-item.is-novelty:hover { border-color: rgba(47,139,224,.5); box-shadow: 0 6px 18px -6px rgba(47,139,224,.25); }
.sidebar-news-item.is-novelty .snw-more { color: #2f8be0; }
.nf-tab.is-novelty span { background: #eaf3ff; color: #2f8be0; }
a.nf-tab.is-novelty:hover { border-color: #9cc8f3; color: #2f8be0; }
.nf-tab.is-novelty.active { background: #2f8be0; border-color: #2f8be0; color: #fff; box-shadow: 0 6px 16px -6px rgba(47,139,224,.6); }
.nf-tab.is-novelty.active span { background: rgba(255,255,255,.25); color: #fff; }

/* ── Ожидается поступление (21.10.2026, владелец): count_ordered из 1С — заказано и скоро приедет ──
   голубая таблетка с грузовиком под «В наличии» на карточке и рядом с ним на странице товара */
.card-coming { display: inline-flex; flex-wrap: wrap; align-self: flex-start; align-items: center; column-gap: 6px; row-gap: 1px; max-width: 100%;   /* узкая карточка — число на вторую строку */
               margin-top: -1px; margin-bottom: -2px; padding: 4px 10px 4px 8px; border-radius: 20px;   /* от «В наличии» 7 px (было 14; владелец 21.10) */
               background: #eaf2ff; color: #1f5fbf; font-size: 13px; font-weight: 500; line-height: 1.25; }
.card-coming svg { color: #2f7be0; }
.card-coming b { font-weight: 700; white-space: nowrap; }
.carousel-track .product-card .card-coming { font-size: 11.5px; column-gap: 5px; padding: 3px 8px 3px 7px; }
.carousel-track .product-card .card-coming svg { width: 12px; height: 12px; }
.product-page-coming { display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px 9px 14px; border-radius: 24px; margin-top: -5px;   /* от «В наличии» 5 px (было 10) */
                       background: #eaf2ff; color: #1f5fbf; font-size: 17px; font-weight: 500; line-height: 1.25; }
.product-page-coming svg { color: #2f7be0; }
.product-page-coming b { font-weight: 700; white-space: nowrap; }
@media (max-width: 768px) {
  .card-coming { font-size: 12px; column-gap: 5px; padding: 3px 8px 3px 7px; }
  .card-coming svg { width: 12px; height: 12px; }
  .product-page-coming { font-size: 15px; padding: 8px 14px 8px 12px; }
}
