/* ============================================================
   RESET & БАЗА
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --c-bg: #f6f8fb;
  --c-surface: #ffffff;
  --c-text: #0f172a;
  --c-text-2: #475569;
  --c-text-3: #64748b;
  --c-line: #e6ebf2;
  --c-line-2: #f1f5f9;
  --c-accent: #2563eb;
  --c-accent-d: #1d4ed8;
  --c-accent-l: #eff6ff;
  --c-warn-bg: #fffbeb;
  --c-warn-bd: #fde68a;
  --c-warn-tx: #92400e;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 24px 48px -20px rgba(15, 23, 42, 0.28);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px; line-height: 1.5; color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--c-accent); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

h3 { font-size: 18px; font-weight: 600; }

/* ============================================================
   HERO + МЕНЮ
   ============================================================ */
.hero-banner {
  position: relative;
  padding: 20px 0;
  background: linear-gradient(135deg, #0a1628 0%, #0f2447 50%, #0a1628 100%);
  box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.65);
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0; left: -50%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(96, 165, 250, 0.05) 20%, rgba(147, 197, 253, 0.5) 50%, rgba(96, 165, 250, 0.05) 80%, transparent 100%);
  filter: blur(40px);
  animation: heroShimmer 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes heroShimmer {
  0%   { left: -50%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 150%; opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: opacity 0.2s;
  text-decoration: none;
  position: relative;
  z-index: 3;
}
.hero-logo:hover { opacity: 0.85; }

.hero-logo__flag {
  width: 30px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 3px;
  box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.4);
}

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.main-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.main-nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.main-nav__link.is-active { color: #fff; background: rgba(255, 255, 255, 0.12); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 3;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-left: 20px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
  position: relative;
  z-index: 3;
}
.hero-phone:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.hero-phone svg { flex-shrink: 0; opacity: 0.9; }

@media (max-width: 768px) { .hero-phone { display: none; } }
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-phone { font-size: 14px; padding: 7px 12px; margin-left: 10px; }
}

/* ============================================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================================ */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 20px 0 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text-2);
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  color: var(--c-accent);
  background: var(--c-accent-l);
  border: 1px solid #dbeafe;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.breadcrumbs a:hover {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
  transform: translateY(-1px);
}

.breadcrumbs .path-arrow {
  color: var(--c-text-3);
  font-size: 18px;
  line-height: 1;
  opacity: 0.6;
}

.breadcrumbs .breadcrumb-current {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #f1f5f9;
  color: var(--c-text);
  font-weight: 700;
  border-radius: 8px;
  max-width: 60ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.breadcrumbs .breadcrumb-current:hover {
  background: var(--c-accent);
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================================
   СТРАНИЦА ТОВАРА
   ============================================================ */
.product-page {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  padding: 4px 0 8px;
}

.product-photos { flex: 1 1 480px; min-width: 0; }
.product-photos__inner { position: sticky; top: 20px; }

.photo-main {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--c-line-2);
  aspect-ratio: 4/3;
  cursor: zoom-in;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.photo-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.photo-main:hover img { transform: scale(1.06); }

.photo-main::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, transparent 35%);
  pointer-events: none;
}

.photo-zoom {
  position: absolute;
  right: 14px; bottom: 14px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--c-text);
  box-shadow: 0 6px 18px -8px rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  transition: transform 0.2s, background 0.2s;
}
.photo-main:hover .photo-zoom { transform: scale(1.08); background: #fff; }

.photo-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--c-line-2);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb:hover { transform: translateY(-2px); border-color: #bfdbfe; }
.thumb.thumb-active { border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }

.no-photo {
  width: 100%; aspect-ratio: 4/3;
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: center;
  background: var(--c-line-2);
  border-radius: var(--r-xl);
  color: #94a3b8; font-size: 15px;
}

.product-info { flex: 1 1 420px; min-width: 0; }

.product-title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin-bottom: 14px;
}

.product-badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  background: var(--c-accent-l);
  color: var(--c-accent-d);
  border: 1px solid #dbeafe;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.product-badge--count {
  background: var(--c-accent-l);
  color: var(--c-accent-d);
  border-color: #dbeafe;
  font-weight: 700;
  padding: 3px 9px;
  font-size: 12px;
}

.product-details {
  display: block;
  height: auto;
  min-height: 0;
  margin-bottom: 8px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.detail-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14.5px;
  line-height: 1.4;
  height: auto;
  min-height: 0;
  border-bottom: 1px solid var(--c-line-2);
  transition: background 0.15s;
}
.detail-row:last-child { border-bottom: none; }
.detail-row:nth-of-type(even) { background: #fafbfd; }
.detail-row:hover { background: #f0f7ff; }

.detail-label {
  flex: 0 0 140px;
  height: auto;
  min-height: 0;
  color: var(--c-text-3);
  font-weight: 500;
  line-height: 1.4;
}
.detail-value {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  color: var(--c-text);
  font-weight: 600;
  min-width: 0;
  word-break: break-word;
  line-height: 1.4;
}
.detail-mono {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--c-text);
  font-family: inherit;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--c-accent);
  cursor: pointer;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 13px;
  opacity: 0.55;
  transition: opacity 0.15s, background 0.15s;
}
.copy-btn:hover { opacity: 1; background: var(--c-accent-l); }
.copy-btn.copied { color: #16a34a; opacity: 1; }

.donor-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--c-accent-d);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(37, 99, 235, 0.4);
  transition: color 0.15s, border-color 0.15s;
}
.donor-link:hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.donor-link svg { opacity: 0.7; transition: transform 0.15s; }
.donor-link:hover svg { transform: translate(2px, -2px); opacity: 1; }

.product-price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-accent);
  border-radius: var(--r-lg);
  margin: 0 0 8px;
}
.product-price-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.product-price-label {
  font-size: 12px; font-weight: 600;
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.product-price {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.product-price i {
  font-style: normal;
  font-size: 0.7em;
  font-weight: 700;
  opacity: 0.6;
}

.product-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #fff;
  border-radius: 10px;
  font-size: 14.5px; font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 10px 22px -10px rgba(37, 99, 235, 0.7);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.cta-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 16px 28px -12px rgba(37, 99, 235, 0.8);
}
.cta-btn:active { transform: translateY(0); }

.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: #fff;
  color: var(--c-text-2);
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s, transform .15s;
  white-space: nowrap;
}
.fav-btn:hover { border-color: #fca5a5; color: #dc2626; transform: translateY(-1px); }
.fav-btn.is-active { background: #fef2f2; border-color: #fca5a5; color: #dc2626; }
.fav-btn svg { flex-shrink: 0; }

@media (max-width: 480px) {
  .fav-btn__label { display: none; }
  .fav-btn { padding: 11px 14px; }
}

.product-section {
  margin-top: 4px;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
}
.product-section h2 {
  position: relative;
  font-size: 20px; font-weight: 700; color: var(--c-text);
  padding-bottom: 4px; margin-bottom: 6px;
  border-bottom: 1px solid var(--c-line);
  letter-spacing: -0.01em;
}
.product-section h2::after {
  content: '';
  position: absolute; left: 0; bottom: -1px;
  width: 64px; height: 3px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 3px;
}
.product-description {
  font-size: 15.5px; line-height: 1.65;
  color: var(--c-text-2);
  max-width: 100%;
}

.product-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
  line-height: 1.4;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding-left: 16px;
}

/* ============================================================
   КРОСС-НОМЕРА
   ============================================================ */
.cross-list { display: flex; flex-wrap: wrap; gap: 8px; }

.cross-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  text-align: center;
  min-width: 120px;
  line-height: 1.25;
}
.cross-chip__number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: 0.02em;
  word-break: break-all;
}
.cross-chip__brand {
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
@media (max-width: 480px) {
  .cross-chip { padding: 6px 12px; min-width: 100px; }
  .cross-chip__number { font-size: 12.5px; }
  .cross-chip__brand  { font-size: 10px; }
}

/* ============================================================
   ПРЕДУПРЕЖДЕНИЯ
   ============================================================ */
.product-warning {
  background: linear-gradient(135deg, var(--c-warn-bg) 0%, #fef3c7 100%);
  border: 1px solid var(--c-warn-bd);
  border-left: 4px solid #f59e0b;
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-top: 18px;
}
.product-warning h2 {
  font-size: 18px;
  color: var(--c-warn-tx);
  padding: 0 0 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
}
.product-warning h2::after { display: none; }
.warning-content { color: #78350f; font-size: 15px; line-height: 1.65; }

.product-warning--universal {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-top: 14px;
}
.product-warning--universal h2 {
  font-size: 18px;
  color: #1e40af;
  padding: 0 0 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.25);
}
.product-warning--universal h2::after { display: none; }
.product-warning--universal .warning-content { color: #1e3a8a; font-size: 15px; line-height: 1.65; }
.product-warning--universal .warning-content p { margin-bottom: 10px; }
.product-warning--universal .warning-content p:last-child { margin-bottom: 0; }
.product-warning--universal .warning-content strong { color: #1e40af; font-weight: 700; }

/* ============================================================
   ФИРМЕННЫЕ ОТМЕТКИ
   ============================================================ */
.product-marks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.product-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--c-surface);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--c-text);
}
.product-mark--contract { border: 1.5px solid #10b981; }
.product-mark--original { border: 1.5px solid #d4a017; }
.product-mark--instock {
  border: 1.5px solid var(--c-accent);
  position: relative;
  padding-left: 26px;
}
.product-mark--instock::before {
  content: '';
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  animation: instockPulse 1.8s ease-out infinite;
}
@keyframes instockPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.product-mark svg { flex-shrink: 0; opacity: 0.8; }

/* ============================================================
   ЛАЙТБОКС
   ============================================================ */
.lightbox {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  padding: 40px 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  z-index: 2000;
  cursor: zoom-out;
  animation: lbIn 0.2s ease-out;
  user-select: none;
}
.lightbox.is-open { display: flex; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox img {
  max-width: 100%; max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  animation: lbImg 0.25s ease-out;
}
@keyframes lbImg {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 26px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.15s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); transform: rotate(90deg); }

.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.15s;
  z-index: 10;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-nav:active { transform: translateY(-50%) scale(0.94); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%; transform: translateX(-50%);
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  z-index: 10;
}

/* ============================================================
   ПОИСК
   ============================================================ */
.section-search { margin-bottom: 28px; padding: 24px 0 0; }
.search-wrapper { max-width: 1200px; margin: 0 auto; width: 100%; }
.search-field-label { font-size: 0.9rem; color: #666; margin-bottom: 0.5rem; font-weight: 500; }
.search-row { display: flex; gap: 10px; }

#searchInput {
  flex-grow: 1;
  height: 48px;
  padding: 0 18px;
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  font-size: 15.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#searchInput:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 28px;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  height: 48px;
  letter-spacing: 0.01em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 20px -10px rgba(37, 99, 235, 0.65);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.search-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 12px 24px -10px rgba(37, 99, 235, 0.75);
}
.search-btn:active { transform: translateY(0); }
.search-btn svg { flex-shrink: 0; }

.search-selects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.search-field-auto { display: flex; flex-direction: column; }
.search-field-auto label {
  display: block;
  font-size: 12.5px; font-weight: 600;
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.search-field-auto select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
.search-field-auto select:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.search-field-auto select:disabled { background-color: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
.search-field-auto.is-hidden { display: none !important; }

/* ============================================================
   ПОДБОР ПО АВТО (улучшенная версия)
   ============================================================ */
.section-car-select { padding: 20px 0 8px; }
.car-selector { min-height: 0; }

.selector-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  min-height: 0;
}

.path-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 2px solid var(--c-accent);
  border-radius: 999px;
  font-size: 17px;
  color: var(--c-accent-d);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
}
.path-chip:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  box-shadow: 0 10px 24px -6px rgba(37, 99, 235, 0.6);
  transform: translateY(-1px);
}
.path-chip img { height: 26px; width: auto; flex-shrink: 0; }
.path-chip .path-remove { color: var(--c-accent-d); font-weight: 800; }
.path-chip:hover .path-remove { color: #fff; }

.path-remove {
  background: none; border: none;
  color: #93c5fd; cursor: pointer;
  font-size: 18px; padding: 0; line-height: 1;
  display: flex;
  align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}
.path-remove:hover { color: #fff; background: #ef4444; }
.path-arrow { color: #94a3b8; font-size: 18px; }

.selector-options { animation: fadeIn 0.25s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Заголовок шага */
.step-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.01em;
  padding: 0 0 14px 0;
  margin: 0 0 20px;
  border-bottom: 2px solid var(--c-line);
}

/* Иконка "!" слева */
.step-label::before {
  content: '!';
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 16px -4px rgba(249, 115, 22, 0.55);
  animation: stepPulse 2.5s ease-in-out infinite;
}

@keyframes stepPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 6px 16px -4px rgba(249, 115, 22, 0.55);
  }
  50% {
    transform: scale(1.08);
    box-shadow:
      0 0 0 8px rgba(249, 115, 22, 0.15),
      0 6px 16px -4px rgba(249, 115, 22, 0.75);
  }
}

/* Счётчик шага справа */
.step-label::after {
  content: '';
  margin-left: auto;
  flex-shrink: 0;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px -4px rgba(37, 99, 235, 0.55);
}

.selector-options[data-step="brand"]      .step-label::after { content: '1 / 6'; }
.selector-options[data-step="model"]      .step-label::after { content: '2 / 6'; }
.selector-options[data-step="generation"] .step-label::after { content: '3 / 6'; }
.selector-options[data-step="body"]       .step-label::after { content: '4 / 6'; }
.selector-options[data-step="engine"]     .step-label::after { content: '5 / 6'; }
.selector-options[data-step="year"]       .step-label::after { content: '6 / 6'; }

/* Плитки выбора */
.selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.selector-item {
  padding: 16px 18px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--c-text);
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.selector-item:hover {
  border-color: var(--c-accent);
  background: #f8fafc;
  color: var(--c-accent-d);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(37, 99, 235, 0.45);
}
.selector-item:active { transform: translateY(0); }

.selector-options[data-step="year"] .selector-grid {
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
}
.selector-options[data-step="year"] .selector-item {
  padding: 12px 10px;
  font-size: 15px;
  font-weight: 700;
}

.selector-loading { text-align: center; padding: 40px; color: #64748b; font-size: 16px; }

/* Плитки марок */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}
.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  min-height: 110px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.brand-item:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 14px rgba(37,99,235,0.12);
  transform: translateY(-2px);
}
.brand-item img { max-height: 48px; max-width: 80px; object-fit: contain; }
.brand-item__name { font-size: 14px; font-weight: 500; color: #334155; text-align: center; }

/* Мобильные версии для подбора по авто */
@media (max-width: 768px) {
  .step-label {
    font-size: 18px;
    padding: 0 0 12px 0;
    margin: 0 0 16px;
    gap: 12px;
  }
  .step-label::before {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
  .step-label::after {
    min-width: 32px;
    height: 32px;
    font-size: 12.5px;
    padding: 0 8px;
  }

  .selector-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
  .selector-item {
    padding: 14px 14px;
    font-size: 15px;
    border-radius: 10px;
    border-width: 1.5px;
  }
  .path-chip { padding: 10px 18px; font-size: 16px; gap: 8px; }
  .path-chip img { height: 22px; }
}

@media (max-width: 480px) {
  .step-label {
    font-size: 17px;
    padding: 0 0 10px 0;
    margin: 0 0 14px;
    gap: 10px;
  }
  .step-label::before {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  .step-label::after {
    min-width: 30px;
    height: 30px;
    font-size: 11.5px;
  }

  .selector-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .selector-item {
    padding: 14px 10px;
    font-size: 14px;
    font-weight: 700;
  }
  .path-chip { padding: 9px 16px; font-size: 15px; }
  .path-chip img { height: 20px; }
}

/* ============================================================
   ЗАГОЛОВКИ СЕКЦИЙ
   ============================================================ */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  font-size: 22px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.015em;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--c-line);
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--c-accent) 0%, #60a5fa 100%);
  border-radius: 3px;
}
.section-title svg { flex-shrink: 0; color: var(--c-accent); width: 22px; height: 22px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.section-head .section-title { margin-bottom: 0; }

.section-link { font-size: 14px; font-weight: 600; color: var(--c-accent); transition: color 0.15s; }
.section-link:hover { color: var(--c-accent-d); }

.section-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--c-text-3);
  font-size: 15px;
}

/* ============================================================
   КАТАЛОГ ЗАПЧАСТЕЙ
   ============================================================ */
.section-catalog { padding: 20px 0 0; }
.categories-bar {
  display: block !important;
  grid-template-columns: none !important;
  margin-bottom: 0 !important;
}

.cat-btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  min-height: 0;
  background: #fff;
  color: #ef4444;
  border: 1.5px solid #ef4444;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  width: auto;
  flex-shrink: 0;
}
.cat-btn-reset:hover { background: #fef2f2; color: #dc2626; border-color: #dc2626; transform: translateY(-1px); }
.cat-btn-reset:active { transform: translateY(0); }

@media (max-width: 768px) { .cat-btn-reset { padding: 5px 12px; font-size: 12.5px; } }
@media (max-width: 480px) { .cat-btn-reset { padding: 5px 10px; font-size: 12px; } }

/* ============================================================
   РЕЗУЛЬТАТЫ
   ============================================================ */
.section-results {
  margin-top: 16px;
  margin-bottom: 8px;
  padding: 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.section-results .results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-line-2);
  flex-wrap: wrap;
}

.results-count {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 1.5px solid #93c5fd;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  color: #1e40af;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 18px -10px rgba(37, 99, 235, 0.45);
  line-height: 1.2;
}
.results-count::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  animation: resultsPulse 1.8s ease-out infinite;
  flex-shrink: 0;
}
@keyframes resultsPulse {
  0%   { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}
@media (max-width: 768px) {
  .results-count { font-size: 16px; padding: 10px 18px; gap: 10px; }
  .results-count::before { width: 8px; height: 8px; }
}
@media (max-width: 480px) {
  .results-count { font-size: 15px; padding: 9px 16px; }
}

#partsContainer,
.section-results #partsContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.part-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.part-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.part-card__photo { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #f1f5f9; }
.part-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.part-card__photo .no-photo,
.part-card__photo .no-photo-small {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 14px;
}
.part-card__info {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.part-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.part-card__number,
.part-card__donor { font-size: 13px; color: #64748b; }
.part-card__price {
  font-size: 18px;
  font-weight: 700;
  color: #2563eb;
  margin-top: auto;
  padding-top: 8px;
}

.loading, .empty, .error, .no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  font-size: 16px;
  color: #64748b;
}
.error { color: #ef4444; }
.empty-state { text-align: center; padding: 60px 20px; color: #64748b; }
.empty-state h3 { margin-bottom: 10px; color: #334155; }
.empty-state p { font-size: 15px; }

/* ============================================================
   ТАБЛИЦА ПРИМЕНИМОСТИ
   ============================================================ */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.app-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  font-size: 14px;
  color: var(--c-text-2);
}
.app-table thead tr { background-color: #f8fafc; border-bottom: 1px solid var(--c-line); }
.app-table th {
  text-align: left;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--c-text-3);
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
.app-table td { padding: 13px 18px; border-bottom: 1px solid var(--c-line-2); vertical-align: middle; }
.app-table tbody tr { transition: background 0.15s; }
.app-table tbody tr:nth-of-type(even) { background-color: #fafbfd; }
.app-table tbody tr:hover { background-color: #eff6ff; }
.app-table tbody tr:last-of-type td { border-bottom: none; }

/* ============================================================
   ПРИМЕНИМОСТЬ — ПЛИТОЧНАЯ РАСКЛАДКА
   ============================================================ */
.app-accordion {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  align-items: start;
  width: 100%;
}

.app-brand {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.app-brand:hover:not([open]) {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: 0 8px 20px -12px rgba(37, 99, 235, 0.4);
}
.app-brand[open] {
  grid-column: 1 / -1;
  border-color: #bfdbfe;
  box-shadow: 0 10px 28px -18px rgba(37, 99, 235, 0.5);
}
.app-brand__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
  position: relative;
}
.app-brand__summary::-webkit-details-marker { display: none; }
.app-brand__summary::marker { content: ''; }
.app-brand__summary:hover { background: #f8fafc; }
.app-brand[open] .app-brand__summary {
  background: linear-gradient(90deg, #f8fbff 0%, #eef6ff 100%);
  border-bottom: 1px solid var(--c-line);
}
.app-brand__name { font-size: 16px; font-weight: 700; color: var(--c-text); letter-spacing: -0.005em; }
.app-brand__count {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--c-accent-l);
  color: var(--c-accent-d);
  border: 1px solid #dbeafe;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.app-brand__chevron {
  margin-left: auto;
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  color: var(--c-text-3);
  background: #f1f5f9;
  transition: transform 0.25s ease, background 0.2s, color 0.2s;
}
.app-brand__summary:hover .app-brand__chevron { background: #e2e8f0; color: var(--c-text); }
.app-brand[open] .app-brand__chevron { transform: rotate(180deg); background: var(--c-accent); color: #fff; }
.app-brand__body { padding: 4px 8px 12px; animation: appBrandOpen 0.22s ease-out; }
@keyframes appBrandOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   МОДЕЛИ ВНУТРИ МАРКИ
   ============================================================ */
.app-models { display: flex; flex-direction: column; gap: 10px; padding: 4px 4px 8px; }

.app-model {
  background: #fafbfd;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.app-model[open] { border-color: #bfdbfe; box-shadow: 0 6px 16px -12px rgba(37, 99, 235, 0.35); }

.app-model__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
  background: linear-gradient(90deg, #eff6ff 0%, #f8fbff 100%);
}
.app-model__summary::-webkit-details-marker { display: none; }
.app-model__summary::marker { content: ''; }
.app-model__summary:hover { background: linear-gradient(90deg, #e0edff 0%, #eef6ff 100%); }
.app-model[open] .app-model__summary { border-bottom: 1px solid var(--c-line-2); }

.app-model__name { font-size: 15px; font-weight: 700; color: var(--c-accent-d); letter-spacing: -0.005em; }
.app-model__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
}
.app-model__chevron {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  color: var(--c-accent-d);
  background: rgba(37, 99, 235, 0.1);
  transition: transform 0.25s ease, background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.app-model__summary:hover .app-model__chevron { background: rgba(37, 99, 235, 0.2); }
.app-model[open] .app-model__chevron { transform: rotate(180deg); background: var(--c-accent); color: #fff; }

.app-model__body { animation: appModelOpen 0.22s ease-out; background: #fff; }
@keyframes appModelOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.app-model .table-wrapper { margin: 0; border: none; border-radius: 0; box-shadow: none; }
.app-model .app-table { min-width: 100%; }
.app-model .app-table th { padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--c-line-2); }
.app-model .app-table td { padding: 10px 16px; }

/* ============================================================
   ПОЧЕМУ ВЫБИРАЮТ НАС
   ============================================================ */
.section-features { padding: 28px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.feature-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.feature-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 12px 28px -14px rgba(37, 99, 235, 0.35);
  transform: translateY(-3px);
}
.feature-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--c-accent-l);
  color: var(--c-accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-card__content { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.feature-card__title { font-size: 16px; font-weight: 700; color: var(--c-text); margin: 0; line-height: 1.3; }
.feature-card__text { font-size: 14px; line-height: 1.5; color: var(--c-text-2); margin: 0; }

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; gap: 10px; }
  .feature-card { padding: 14px 16px; gap: 12px; align-items: center; }
  .feature-card__icon { width: 40px; height: 40px; }
  .feature-card__icon svg { width: 22px; height: 22px; }
  .feature-card__title { font-size: 15px; }
  .feature-card__text  { font-size: 13.5px; }
}
@media (max-width: 480px) {
  .feature-card { padding: 12px 14px; gap: 10px; }
  .feature-card__icon { width: 36px; height: 36px; }
  .feature-card__icon svg { width: 20px; height: 20px; }
  .feature-card__title { font-size: 14.5px; }
  .feature-card__text  { font-size: 13px; line-height: 1.4; }
}

/* ============================================================
   СВЕЖИЕ ПОСТУПЛЕНИЯ — КАРУСЕЛЬ
   ============================================================ */
.section-latest { padding: 28px 0; }
.latest-wrap { position: relative; }

.latest-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 16px;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.latest-grid::-webkit-scrollbar { height: 6px; }
.latest-grid::-webkit-scrollbar-track { background: transparent; }
.latest-grid::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.latest-grid::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.latest-grid .part-card { flex: 0 0 240px; scroll-snap-align: start; }

.latest-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: rgba(255, 255, 255, 0.95);
  color: var(--c-text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px -8px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, opacity 0.2s;
  margin-top: -20px;
}
.latest-nav:hover {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
  transform: translateY(-50%) scale(1.05);
}
.latest-nav:disabled, .latest-nav[hidden] { opacity: 0; pointer-events: none; }
.latest-nav--prev { left: -18px; }
.latest-nav--next { right: -18px; }

@media (max-width: 768px) {
  .latest-grid .part-card { flex: 0 0 220px; }
  .latest-nav { display: none; }
}
@media (max-width: 480px) {
  .latest-grid .part-card { flex: 0 0 200px; }
}

/* ============================================================
   ДОНОРЫ НА ГЛАВНОЙ — КАРУСЕЛЬ
   ============================================================ */
.section-donors-home { padding: 28px 0; }
.donors-home-wrap { position: relative; }

.donors-home-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 16px;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.donors-home-grid::-webkit-scrollbar { height: 6px; }
.donors-home-grid::-webkit-scrollbar-track { background: transparent; }
.donors-home-grid::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.donors-home-grid::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
.donors-home-grid .donor-card { flex: 0 0 280px; scroll-snap-align: start; }

.donors-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: rgba(255, 255, 255, 0.95);
  color: var(--c-text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px -8px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, opacity 0.2s;
  margin-top: -20px;
}
.donors-nav:hover {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
  transform: translateY(-50%) scale(1.05);
}
.donors-nav:disabled, .donors-nav[hidden] { opacity: 0; pointer-events: none; }
.donors-nav--prev { left: -18px; }
.donors-nav--next { right: -18px; }

/* ============================================================
   СТАТИСТИКА
   ============================================================ */
.section-stats { padding: 28px 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-card {
  background: linear-gradient(135deg, #0f172a 0%, #16213e 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 26px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.2s;
}
.stat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.35) 0%, transparent 60%);
  pointer-events: none;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(15, 23, 42, 0.5); }
.stat-card__num {
  position: relative;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.stat-card__label {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

/* ============================================================
   КАК РАБОТАЕМ
   ============================================================ */
.section-how { padding: 28px 0 12px; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.how-step {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.how-step:hover {
  border-color: #bfdbfe;
  box-shadow: 0 12px 28px -14px rgba(37, 99, 235, 0.35);
  transform: translateY(-3px);
}
.how-step__num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-size: 17px; font-weight: 800;
  box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.6);
  flex-shrink: 0;
  line-height: 1;
}
.how-step__content { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.how-step__title { font-size: 16px; font-weight: 700; color: var(--c-text); margin: 0; line-height: 1.3; }
.how-step__text { font-size: 14px; line-height: 1.5; color: var(--c-text-2); margin: 0; }

@media (max-width: 768px) {
  .how-grid { grid-template-columns: 1fr; gap: 10px; }
  .how-step { padding: 14px 16px; gap: 12px; align-items: center; }
  .how-step__num { width: 36px; height: 36px; font-size: 16px; }
  .how-step__title { font-size: 15px; }
  .how-step__text  { font-size: 13.5px; }
}
@media (max-width: 480px) {
  .how-step { padding: 12px 14px; gap: 10px; }
  .how-step__num { width: 34px; height: 34px; font-size: 15px; }
  .how-step__title { font-size: 14.5px; }
  .how-step__text  { font-size: 13px; line-height: 1.4; }
}

/* Пульсация шагов 1 → 2 → 3 → 4 */
@keyframes howStepPulse {
  0%   { transform: scale(1); box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.6); }
  5%   {
    transform: scale(1.12);
    box-shadow:
      0 0 0 12px rgba(37, 99, 235, 0.28),
      0 12px 28px -6px rgba(37, 99, 235, 0.95);
  }
  12%  { transform: scale(1); box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.6); }
  100% { transform: scale(1); box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.6); }
}
.how-step:nth-child(1) .how-step__num { animation: howStepPulse 8s ease-in-out infinite 0s; }
.how-step:nth-child(2) .how-step__num { animation: howStepPulse 8s ease-in-out infinite 2s; }
.how-step:nth-child(3) .how-step__num { animation: howStepPulse 8s ease-in-out infinite 4s; }
.how-step:nth-child(4) .how-step__num { animation: howStepPulse 8s ease-in-out infinite 6s; }
@media (prefers-reduced-motion: reduce) {
  .how-step__num { animation: none !important; }
  .step-label::before { animation: none !important; }
}

/* ============================================================
   ДОНОР: ФОТО + ВИДЕО (в карточке товара)
   ============================================================ */
.donor-block { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) {
  .donor-block { grid-template-columns: 1fr 1fr; align-items: start; }
  .donor-block__footer { grid-column: 1 / -1; }
}

.donor-block__subtitle {
  font-size: 15px; font-weight: 600;
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.donor-block__footer {
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
  margin-top: 6px;
}
.donor-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.donor-photo {
  padding: 0; border: none;
  background: var(--c-line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
}
.donor-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.donor-photo:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -12px rgba(37, 99, 235, 0.5); }
.donor-photo:hover img { transform: scale(1.06); }

.donor-block__video .donor-video {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0b1220;
  box-shadow: var(--shadow-md);
}

/* Видео донора */
.donor-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.donor-video {
  background: #0b1220;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
  position: relative;
}
.donor-video__player {
  width: 100%; height: 100%;
  display: block;
  border: 0;
  background: #000;
  object-fit: cover;
}
video.donor-video__player { object-fit: contain; }

/* ============================================================
   СТРАНИЦА ДОНОРА
   ============================================================ */
.donor-page-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.donor-page-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 8px;
}
@media (min-width: 900px) {
  .donor-page-top { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
}

.donor-page-photos { min-width: 0; max-width: 480px; width: 100%; }
.donor-page-photos .photo-main { max-height: 400px; }
.donor-page-photos .photo-main img { object-fit: cover; }

.donor-page-info { min-width: 0; }

.donor-page-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text-2);
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--c-line-2);
  border-radius: var(--r-md);
  border-left: 3px solid var(--c-accent);
}
.donor-page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.donor-page-video { max-width: 480px; width: 100%; }

/* ============================================================
   ЗАПЧАСТИ ДОНОРА ПО КАТЕГОРИЯМ
   ============================================================ */
.donor-categories { display: flex; flex-direction: column; gap: 16px; }
.donor-category {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.donor-category[open] { border-color: #bfdbfe; box-shadow: 0 8px 24px -16px rgba(37, 99, 235, 0.4); }

.donor-category__summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
  position: relative;
}
.donor-category__summary::-webkit-details-marker { display: none; }
.donor-category__summary::marker { content: ''; }
.donor-category__summary:hover { background: #f8fafc; }
.donor-category[open] .donor-category__summary {
  background: linear-gradient(90deg, #f8fbff 0%, #eef6ff 100%);
  border-bottom: 1px solid var(--c-line);
}
.donor-category__name { font-size: 16px; font-weight: 700; color: var(--c-text); letter-spacing: -0.005em; }
.donor-category__count {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--c-accent-l);
  color: var(--c-accent-d);
  border: 1px solid #dbeafe;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.donor-category__chevron {
  margin-left: auto;
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  color: var(--c-text-3);
  background: #f1f5f9;
  transition: transform 0.25s ease, background 0.2s, color 0.2s;
}
.donor-category__summary:hover .donor-category__chevron { background: #e2e8f0; color: var(--c-text); }
.donor-category[open] .donor-category__chevron { transform: rotate(180deg); background: var(--c-accent); color: #fff; }

.donor-category__body { padding: 18px 20px 20px; animation: donorCategoryOpen 0.22s ease-out; }
@keyframes donorCategoryOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ============================================================
   СПИСОК ДОНОРОВ
   ============================================================ */
.donors-list-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 12px 0 20px;
}

.donors-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.donors-filter__item {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.donors-filter__item:hover { border-color: var(--c-accent); color: var(--c-accent); transform: translateY(-1px); }
.donors-filter__item.active {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
  box-shadow: 0 6px 16px -8px rgba(37, 99, 235, 0.6);
}

.donors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.donor-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: var(--shadow-sm);
}
.donor-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 28px -14px rgba(37, 99, 235, 0.35);
  transform: translateY(-4px);
}

.donor-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--c-line-2);
  overflow: hidden;
}
.donor-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.donor-card:hover .donor-card__photo img { transform: scale(1.05); }
.donor-card__photo .no-photo-small {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; font-size: 14px;
}

.donor-card__info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.donor-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.donor-card__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.donor-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--c-accent-l);
  color: var(--c-accent-d);
  border: 1px solid #dbeafe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.donor-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--c-line-2);
}
.donor-card__parts { font-size: 13.5px; font-weight: 700; color: var(--c-accent-d); }
.donor-card__arrow {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--c-text-3);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.donor-card:hover .donor-card__arrow { background: var(--c-accent); color: #fff; transform: translateX(3px); }

/* Бейджи сверху карточки донора (№, Фото, Видео) */
.donor-card__top-badges {
  position: absolute;
  top: 8px; left: 8px; right: 8px;
  display: flex;
  gap: 4px;
  z-index: 2;
  flex-wrap: nowrap;
  justify-content: space-between;
}
.donor-card__badge-top {
  flex: 0 0 auto;
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
  line-height: 1.1;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .donor-card__top-badges { top: 6px; left: 6px; right: 6px; gap: 3px; }
  .donor-card__badge-top { padding: 3px 6px; font-size: 10px; letter-spacing: 0; }
}

/* ============================================================
   ФУТЕР
   ============================================================ */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
  margin-top: 60px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.footer-links a { color: #94a3b8; font-size: 13.5px; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-sep { color: #475569; font-size: 13px; }
.footer-copy { font-size: 13.5px; color: #94a3b8; }

/* ============================================================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ
   ============================================================ */
.legal-page { max-width: 860px; margin: 0 auto; padding: 20px 0 40px; }
.legal-page__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 8px;
}
.legal-page__date {
  font-size: 13.5px;
  color: var(--c-text-3);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-line);
}
.legal-page h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text);
  margin: 28px 0 12px;
  letter-spacing: -0.005em;
  line-height: 1.35;
}
.legal-page p { font-size: 15px; line-height: 1.7; color: var(--c-text-2); margin-bottom: 12px; }
.legal-page ul { list-style: none; padding: 0; margin-bottom: 16px; }
.legal-page ul li {
  position: relative;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text-2);
  padding: 4px 0 4px 22px;
}
.legal-page ul li::before {
  content: '';
  position: absolute;
  left: 4px; top: 14px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}
.legal-page strong { color: var(--c-text); font-weight: 600; }
.legal-page a {
  color: var(--c-accent);
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.3);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.legal-page a:hover { color: var(--c-accent-d); text-decoration-color: var(--c-accent-d); }
.legal-page__actions { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--c-line); }

/* ============================================================
   ЗАГОЛОВОК ТОВАРА: НАЗВАНИЕ + ЛОГО
   ============================================================ */
.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 20px;
}
.product-header .product-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  text-align: left;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.product-brand-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center; justify-content: center;
  width: 80px; height: 80px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.product-brand-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 768px) {
  .product-header { gap: 14px; padding: 14px 0 12px; margin-bottom: 16px; }
  .product-brand-logo { width: 56px; height: 56px; padding: 6px; }
  .product-header .product-title { font-size: 20px; }
}

/* ============================================================
   ССЫЛКА "ВЫШЕ" В ПУСТОМ СОСТОЯНИИ
   ============================================================ */
.scroll-top-link {
  color: var(--c-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.4);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
  cursor: pointer;
}
.scroll-top-link:hover { color: var(--c-accent-d); text-decoration-color: var(--c-accent-d); }

/* ============================================================
   ПОХОЖИЕ ТОВАРЫ
   ============================================================ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
}
.related-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px 20px;
  color: var(--c-text-3);
  font-size: 15px;
}
@media (max-width: 768px) {
  .related-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}
@media (max-width: 480px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contacts-page { max-width: 980px; margin: 0 auto; padding: 20px 0 40px; }

.contacts-page__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-line);
  position: relative;
}
.contacts-page__title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 64px; height: 3px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 3px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.contact-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 12px 28px -14px rgba(37, 99, 235, 0.35);
  transform: translateY(-2px);
}
.contact-card__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--c-accent-l);
  color: var(--c-accent);
  display: flex; align-items: center; justify-content: center;
}
.contact-card__body { flex: 1 1 auto; min-width: 0; }
.contact-card__label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-3);
  margin-bottom: 6px;
}
.contact-card__value { font-size: 15.5px; font-weight: 600; color: var(--c-text); line-height: 1.45; }
.contact-card__hint { font-size: 13px; color: var(--c-text-3); margin-top: 6px; line-height: 1.4; }
.contact-card__phone { color: var(--c-text); font-weight: 700; text-decoration: none; transition: color 0.15s; }
.contact-card__phone:hover { color: var(--c-accent); }
.contact-card__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(37, 99, 235, 0.4);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.contact-card__action:hover { color: var(--c-accent-d); border-bottom-color: var(--c-accent-d); }
.contact-card__action svg { transition: transform 0.15s; }
.contact-card__action:hover svg { transform: translate(2px, -2px); }

.contacts-map {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-md);
  background: var(--c-line-2);
  aspect-ratio: 16 / 9;
  margin-bottom: 28px;
}
.contacts-map iframe { width: 100%; height: 100%; display: block; border: 0; }
.contacts-page__actions { padding-top: 20px; border-top: 1px solid var(--c-line); }

@media (max-width: 768px) {
  .contacts-grid { grid-template-columns: 1fr; gap: 12px; }
  .contact-card { padding: 16px; gap: 12px; }
  .contact-card__icon { width: 40px; height: 40px; }
  .contact-card__value { font-size: 15px; }
  .contacts-map { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .contacts-page { padding: 12px 0 32px; }
  .contact-card__icon { width: 36px; height: 36px; }
  .contact-card__value { font-size: 14.5px; }
  .contacts-map { aspect-ratio: 1 / 1; }
}

/* ============================================================
   ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   МОБИЛЬНАЯ ВЕРСИЯ — СКРЫВАЕМ СЕЛЕКТЫ ПОИСКА
   ============================================================ */
@media (max-width: 768px) {
  .search-selects { display: none !important; }
}

/* ============================================================
   ГЛОБАЛЬНЫЙ АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
  .product-photos { flex: 0 0 100%; }
  .product-info { flex: 0 0 100%; }
  .product-page { gap: 28px; }
}

@media (max-width: 900px) {
  .app-accordion { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-banner { padding: 14px 0; }
  .nav-toggle { display: flex; }
  .main-nav { display: none; width: 100%; flex-direction: column; gap: 4px; margin-top: 10px; }
  .main-nav.is-open { display: flex; }
  .main-nav__link { width: 100%; padding: 10px 14px; }

  .search-btn { padding: 0 22px; font-size: 14.5px; height: 46px; }
  #searchInput { height: 46px; font-size: 15px; }
  .section-search { margin-bottom: 14px; padding: 12px 0 0; }

  .section-title { font-size: 17px; gap: 6px; padding-bottom: 8px; margin-bottom: 10px; }
  .section-title svg { width: 18px; height: 18px; }
  .section-title::after { width: 40px; }

  .section-car-select { padding: 10px 0 6px; }
  .section-catalog { padding: 10px 0 0; }
  .section-features, .section-latest, .section-donors-home, .section-stats, .section-how { padding: 14px 0; }

  .section-results { padding: 18px; }
  #partsContainer,
  .section-results #partsContainer {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
  }

  .brands-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; }
  .brand-item { min-height: 72px; padding: 10px 6px; gap: 6px; border-radius: 10px; }
  .brand-item img { max-height: 30px; }
  .brand-item__name { font-size: 12px; }

  .donors-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
  .donor-card__info { padding: 14px 14px 16px; }
  .donor-card__title { font-size: 15px; }
  .donors-home-grid .donor-card { flex: 0 0 240px; }
  .donors-nav { display: none; }

  .features-grid { gap: 6px; }
  .feature-card { padding: 12px 14px; gap: 10px; }
  .feature-card__icon { width: 36px; height: 36px; }
  .feature-card__icon svg { width: 20px; height: 20px; }
  .feature-card__title { font-size: 14.5px; }
  .feature-card__text  { font-size: 13px; line-height: 1.4; }

  .latest-grid { gap: 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-card { padding: 14px 10px; border-radius: 12px; }
  .stat-card__num { font-size: 22px; margin-bottom: 4px; }
  .stat-card__label { font-size: 11.5px; }

  .how-grid { gap: 6px; }
  .how-step { padding: 12px 14px; gap: 10px; }
  .how-step__num { width: 32px; height: 32px; font-size: 14px; }
  .how-step__title { font-size: 14.5px; }
  .how-step__text  { font-size: 13px; line-height: 1.4; }

  .product-title { font-size: 22px; }
  .product-price-block {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    gap: 12px;
    margin-bottom: 6px;
  }
  .product-price-meta { align-items: flex-start; }
  .product-price { font-size: 24px; }
  .product-actions { width: auto; flex-shrink: 0; }
  .cta-btn { flex: 0 0 auto; padding: 9px 14px; font-size: 13px; gap: 6px; }
  .cta-btn svg { width: 14px; height: 14px; }
  .product-section { margin-top: 4px; }
  .product-section h2 { font-size: 17px; padding-bottom: 4px; margin-bottom: 6px; }
  .thumb { border-radius: 10px; }

  .detail-row {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    padding: 9px 14px;
    gap: 8px;
  }
  .detail-label { flex: 0 0 130px; font-size: 13px; }
  .detail-value { flex: 1 1 auto; font-size: 13.5px; }

  .app-brand__summary { padding: 14px 16px; gap: 10px; }
  .app-brand__name { font-size: 15px; }
  .app-brand__count { font-size: 12px; padding: 2px 9px; }
  .app-brand__body { padding: 0 4px 8px; }

  .app-models { gap: 8px; padding: 2px 0 6px; }
  .app-model__summary { padding: 10px 12px; gap: 8px; }
  .app-model__name { font-size: 14px; }
  .app-model__count { min-width: 22px; height: 20px; padding: 0 7px; font-size: 11.5px; }
  .app-model__chevron { width: 22px; height: 22px; }
  .app-model .app-table th,
  .app-model .app-table td { padding: 9px 12px; font-size: 13px; }

  .donor-photos-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
  .donor-video-grid { grid-template-columns: 1fr; }

  .donor-category__summary { padding: 14px 16px; gap: 10px; }
  .donor-category__name { font-size: 15px; }
  .donor-category__count { font-size: 12px; padding: 2px 9px; }
  .donor-category__body { padding: 14px 12px 16px; }
  .donor-categories { gap: 8px; }
  .parts-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
  .app-accordion { gap: 6px; }

  .empty-state { padding: 20px 16px; }
  .empty-state h3 { font-size: 16px; margin-bottom: 6px; }
  .empty-state p { font-size: 14px; }

  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-counter { bottom: 16px; font-size: 13px; padding: 6px 14px; }

  .breadcrumbs { font-size: 14px; gap: 8px; padding: 14px 0 6px; }
  .breadcrumbs a { padding: 5px 10px; font-size: 13.5px; }
  .breadcrumbs .breadcrumb-current { padding: 5px 12px; font-size: 13.5px; }

  .footer { margin-top: 20px; padding: 16px 0; }
  .footer-links { gap: 4px; margin-bottom: 6px; }
  .footer-copy { font-size: 12.5px; }
}

@media (max-width: 480px) {
  .search-btn { width: 100%; height: 52px; font-size: 15px; }
  .section-title { font-size: 16px; }
  .brands-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .brand-item { min-height: 68px; padding: 8px 4px; gap: 4px; }
  .brand-item img { max-height: 26px; }
  .brand-item__name { font-size: 11.5px; }

  .donors-grid { grid-template-columns: 1fr; gap: 14px; }
  .donors-filter__item { font-size: 13px; padding: 6px 12px; }
  .donors-home-grid .donor-card { flex: 0 0 200px; }

  .features-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 12px 8px; }
  .stat-card__num { font-size: 20px; }
  .stat-card__label { font-size: 11px; }

  .app-table th, .app-table td { padding: 10px 12px; font-size: 13px; }
  .app-brand__summary { padding: 12px 14px; }
  .app-brand__chevron { width: 26px; height: 26px; }

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 8px 12px;
  }
  .detail-label { flex: none; font-size: 12px; line-height: 1.3; }
  .detail-value { flex: none; width: 100%; font-size: 14px; line-height: 1.35; }

  .product-actions { flex-direction: column; }
  .cta-btn { width: 100%; justify-content: center; }

  .donor-photos-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 6px; }
  .donor-page-badges { margin-bottom: 20px; }
  .donor-page-top { gap: 20px; }
  .donor-page-actions .cta-btn { width: 100%; justify-content: center; }

  .donor-category__summary { padding: 12px 14px; }
  .donor-category__chevron { width: 26px; height: 26px; }
  .parts-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }

  .breadcrumbs .breadcrumb-current { white-space: normal; max-width: 100%; }

  .footer-links { flex-direction: column; gap: 6px; }
  .footer-sep { display: none; }
  .legal-page { padding: 12px 0 32px; }
  .legal-page h2 { font-size: 16px; margin-top: 22px; }
  .legal-page p, .legal-page ul li { font-size: 14.5px; }
}