/* ElSamokat — база как в React (index.css) + переопределения */
:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --ring: 240 5.9% 10%;
  --radius: 0.625rem;
  --zinc-50:#fafafa; --zinc-100:#f4f4f5; --zinc-200:#e4e4e7; --zinc-300:#d4d4d8; --zinc-400:#a1a1aa; --zinc-500:#71717a; --zinc-600:#52525b; --zinc-700:#3f3f46; --zinc-800:#27272a; --zinc-900:#18181b; --green-400:#4ade80; --green-500:#22c55e; --green-700:#15803d; --amber-100:#fef3c7; --amber-700:#b45309; --rose-600:#e11d48;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", sans-serif; line-height: 1.5; -webkit-text-size-adjust: 100%; color: var(--zinc-900); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 640px) { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-left: 2rem; padding-right: 2rem; } }

/* Top bar */
.top-bar { background: var(--zinc-900); color: #fff; padding: 0.5rem 0; font-size: 0.875rem; }
.top-bar a { color: #fff; }

/* Header: при скролле — тень и полупрозрачный фон (как в React) */
#header.scrolled { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1); background: rgba(255,255,255,0.95); }
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-icon { width: 2.5rem; height: 2.5rem; background: var(--zinc-900); color: #fff; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.125rem; }
.logo-icon.light { background: #fff; color: var(--zinc-900); }
.nav-desktop { display: none; gap: 0.25rem; }
@media (min-width: 768px) { .nav-desktop { display: flex; align-items: center; } }
.nav-link { padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--zinc-600); transition: all .15s; }
.nav-link:hover { background: var(--zinc-100); color: var(--zinc-900); }
.nav-link.active { background: var(--zinc-900); color: #fff; }
.btn-cta { background: var(--zinc-900); color: #fff; padding: 0.625rem 1.25rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; transition: background .15s; }
.btn-cta:hover { background: var(--zinc-800); }
.menu-toggle { display: flex; align-items: center; justify-content: center; padding: 0.5rem; border: none; background: none; font-size: 1.5rem; cursor: pointer; }
.nav-mobile { padding: 1rem; border-top: 1px solid var(--zinc-200); background: #fff; }
.nav-mobile.hidden { display: none !important; }
.nav-mobile:not(.hidden) { display: flex; flex-direction: column; gap: 0.5rem; }
.nav-mobile-link { padding: 0.75rem 1rem; border-radius: 0.5rem; font-weight: 500; color: var(--zinc-600); }
.nav-mobile-link:hover { background: var(--zinc-100); color: var(--zinc-900); }

/* Utility: .hidden без !important, чтобы Tailwind md:flex показывал меню на десктопе */
.flex { display: flex; }
.hidden { display: none; }
@media (min-width: 768px) {
  .md\:flex { display: flex !important; }
  .md\:block { display: block !important; }
  .md\:hidden { display: none !important; }
}
.block { display: block; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.-mt-1 { margin-top: -0.25rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-zinc-300 { color: var(--zinc-300); }
.text-zinc-400 { color: var(--zinc-400); }
.text-zinc-500 { color: var(--zinc-500); }
.text-zinc-600 { color: var(--zinc-600); }
.text-zinc-900 { color: var(--zinc-900); }
.text-white { color: #fff; }
.bg-white { background: #fff; }
.bg-zinc-50 { background: var(--zinc-50); }
.bg-zinc-100 { background: var(--zinc-100); }
.bg-zinc-900 { background: var(--zinc-900); }
.bg-green-100 { background: #dcfce7; }
.bg-green-50 { background: #f0fdf4; }
.bg-blue-50 { background: #eff6ff; }
.bg-blue-100 { background: #dbeafe; }
.bg-purple-50 { background: #faf5ff; }
.bg-purple-100 { background: #f3e8ff; }
.bg-amber-100 { background: #fef3c7; }
.text-green-700 { color: var(--green-700); }
.text-amber-700 { color: var(--amber-700); }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.leading-relaxed { line-height: 1.625; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }
.min-h-\[500px\] { min-height: 500px; }
.max-w-2xl { max-width: 42rem; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); }
.transition-shadow { transition: box-shadow .2s; }
.max-w-4xl { max-width: 56rem; }
.hover\:bg-zinc-800:hover { background: var(--zinc-800); }
.hover\:bg-zinc-100:hover { background: var(--zinc-100); }
.hover\:bg-white\/20:hover { background: rgba(255,255,255,.2); }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.transition-all { transition: all .15s; }
.inline-flex { display: inline-flex; }
.btn-primary { background: var(--zinc-900); color: #fff; padding: 1rem 2rem; border-radius: 0.5rem; font-weight: 600; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-primary:hover { background: var(--zinc-800); }
.btn-secondary { background: var(--zinc-100); color: var(--zinc-900); padding: 1rem 2rem; border-radius: 0.5rem; font-weight: 600; border: 1px solid var(--zinc-200); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-secondary:hover { background: var(--zinc-200); }
.input { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--zinc-200); border-radius: var(--radius); font-size: 1rem; }
.input:focus { outline: none; border-color: var(--zinc-900); box-shadow: 0 0 0 2px rgba(24,24,27,.2); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: var(--zinc-700); }

/* Hero block: паттерн «плюс», зелёные акценты */
.hero-pattern { background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 24px 24px; }
.hero-dot { width: 8px; height: 8px; background: var(--green-400); border-radius: 50%; flex-shrink: 0; }
.hero-check { color: var(--green-400); font-weight: bold; }
.hero-image { border-radius: 1rem 1rem 1rem 0; }

/* Блок фильтра запчастей: компактно на мобильных */
.parts-filter .parts-search-input { outline: none; }
.parts-filter .parts-search-input:focus { box-shadow: none; }
.parts-filter .parts-select:focus { outline: none; }
.parts-pill-active:hover { background: var(--zinc-900) !important; border-color: var(--zinc-900); color: #fff; }
@media (max-width: 639px) {
  .parts-filter { padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .parts-filter .parts-search-wrap { min-height: 2.75rem; }
  .parts-filter .parts-search-input { padding: 0.5rem 0.75rem; font-size: 1rem; }
  .parts-filter .parts-select-wrap { min-height: 2.75rem; }
  .parts-filter .parts-select { padding: 0.5rem 0.75rem; font-size: 1rem; }
  .parts-filter .parts-pills-row { display: none !important; }
  .parts-filter .btn-primary { padding: 0.5rem 1rem; font-size: 1rem; }
}
@media (min-width: 640px) {
  .parts-filter .parts-pills-row { display: flex; }
}

/* Мобильная версия каталога: скрыть подпись, минимизировать отступы */
@media (max-width: 639px) {
  .parts-hero { padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .parts-hero-breadcrumb { margin-bottom: 0.5rem; }
  .parts-hero-title { margin-bottom: 0; }
  .parts-hero-desc { display: none; }
}

/* Мобильная: padding 1rem 0 для section.section на странице товара */
@media (max-width: 639px) {
  .section.bg-white { padding-top: 1rem !important; padding-bottom: 1rem !important; }
}

/* Мобильная версия всех страниц: убрать доп описания, сократить отступы */
@media (max-width: 639px) {
  .mobile-hide-desc { display: none !important; }
  .page-hero { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
  .page-hero .relative.max-w-7xl { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  .page-hero h1 { margin-bottom: 0 !important; }
  .page-hero .breadcrumb-like { margin-bottom: 0.5rem !important; }
  section.py-20 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
  section.py-16 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  section.py-12 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  .mobile-compact .text-center.mb-16 { margin-bottom: 1rem !important; }
  .mobile-compact .text-center.mb-12 { margin-bottom: 1rem !important; }
}
.list-none { list-style: none; }
.pl-0 { padding-left: 0; }
.pointer-events-none { pointer-events: none; }

/* Sections */
.hero { background: var(--zinc-900); color: #fff; padding: 4rem 0; }
@media (min-width: 1024px) { .hero { padding: 8rem 0; } }
.hero .text-zinc-300 { color: var(--zinc-300); }
.hero .text-zinc-400 { color: var(--zinc-400); }
.section { padding: 5rem 0; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--zinc-400); margin-bottom: 1rem; }
.breadcrumb a:hover { color: #fff; }

/* Footer */
.footer { background: var(--zinc-900); color: #fff; padding: 3rem 0; }
.footer a { color: var(--zinc-400); }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; }
.footer-links, .footer-contacts { list-style: none; margin: 0; padding: 0; }
.footer-links li, .footer-contacts li { margin-bottom: 0.5rem; }
.footer-bottom { border-top: 1px solid var(--zinc-800); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.modal-content { position: relative; background: #fff; border-radius: 1rem; padding: 1.5rem; max-width: 28rem; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 2rem; height: 2rem; border: none; background: var(--zinc-100); border-radius: 0.5rem; font-size: 1.25rem; cursor: pointer; line-height: 1; }
.modal-close:hover { background: var(--zinc-200); }

/* Grids */
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); } .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); } .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); } .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); } .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); } }
.article-related-parts-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .article-related-parts-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .article-related-parts-grid { grid-template-columns: repeat(5, 1fr); } }

/* Card / product */
.card { background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: box-shadow .2s; }
.card:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.badge { font-size: 0.75rem; font-weight: 500; padding: 0.25rem 0.5rem; border-radius: 0.25rem; }
.aspect-square { aspect-ratio: 1 / 1; }
.placeholder-img { background: var(--zinc-100); display: flex; align-items: center; justify-content: center; color: var(--zinc-400); font-size: 2rem; }

/* Prose — стили для контента статей */
.prose { color: var(--zinc-700); }
.prose p { margin-bottom: 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; color: var(--zinc-900); }
.prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.75rem; color: var(--zinc-900); }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--zinc-900); text-decoration: underline; }
.prose a:hover { color: var(--zinc-600); }
.prose strong { font-weight: 600; }
.prose h4 { font-size: 1.1rem; font-weight: 600; margin-top: 1.25rem; margin-bottom: 0.5rem; color: var(--zinc-900); }
.prose img { margin: 1.25rem 0; border-radius: 0.75rem; }
.prose blockquote { border-left: 4px solid var(--zinc-200); padding-left: 1rem; color: var(--zinc-600); margin: 1.25rem 0; }
.article-body { overflow: visible; }
.article-body h2, .article-body h3 { scroll-margin-top: 7rem; }
.article-table-wrap { overflow-x: auto; margin: 1.75rem 0; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
  font-size: 1rem;
  background: #fff;
  color: var(--zinc-900);
}
.article-body thead { border-bottom: 3px solid var(--zinc-900); }
.article-body th,
.article-body td {
  border: 1px solid var(--zinc-900);
  padding: 0.55em 0.75em;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
  background: #fff;
}
.article-body th { font-weight: 700; }
.article-layout {
  display: block;
}
.article-toc {
  margin-bottom: 1.75rem;
  padding: 0 0 1rem 0;
  border-bottom: 1px solid var(--zinc-200);
}
.article-toc__title {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zinc-900);
}
.article-toc__nav { display: flex; flex-direction: column; }
.article-toc__link {
  display: block;
  padding: 0.4rem 0;
  color: var(--zinc-600);
  font-size: 0.8125rem;
  line-height: 1.35;
  text-decoration: none;
}
.article-toc__link--h3 { padding-left: 0.75rem; font-size: 0.75rem; }
.article-toc__link:hover,
.article-toc__link.is-current { color: var(--zinc-900); font-weight: 600; }
.article-toc__save {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--zinc-600);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}
.article-toc__save:hover,
.article-toc__save.is-saved,
.article-toc__save[aria-pressed="true"] { color: var(--rose-600); }
.article-side { margin-top: 2rem; }
.article-side-cta {
  padding: 1.25rem 1.05rem;
  border-radius: 0.7rem;
  background: var(--zinc-900);
  color: #fff;
}
.article-side-cta h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #fff;
  font-weight: 700;
}
.article-side-cta p {
  margin: 0.5rem 0 1rem;
  color: #d4d4d8;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.article-side-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.6rem;
  border: 0;
  background: #fff;
  color: var(--zinc-900);
  font-size: 0.8125rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 0.35rem;
  cursor: pointer;
}
.article-side-cta__btn:hover { background: var(--zinc-100); }
.article-side-cta__phone {
  display: block;
  margin-top: 0.75rem;
  text-align: center;
  color: #e4e4e7;
  font-size: 0.8125rem;
  font-weight: 600;
}
.article-side-cta__phone:hover { color: #fff; }
@media (min-width: 1024px) {
  .article-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 220px;
    align-items: start;
    gap: 1.5rem;
  }
  .article-toc {
    position: sticky;
    top: 6.5rem;
    align-self: start;
    margin-bottom: 0;
    padding: 0 0 0 0.9rem;
    border-bottom: 0;
    border-left: 2px solid var(--zinc-200);
    max-height: calc(100vh - 7.5rem);
    overflow-y: auto;
  }
  .article-side {
    position: sticky;
    top: 6.5rem;
    align-self: start;
    margin-top: 0;
  }
}
.text-rose-600 { color: var(--rose-600); }
.prose-lg { font-size: 1.125rem; }
svg { overflow: visible; }
.service-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--zinc-100);
  color: var(--zinc-900);
  flex-shrink: 0;
}
.service-heading-icon-lg {
  width: 3rem;
  height: 3rem;
}
.service-heading-icon-svg {
  width: 1.5rem;
  height: 1.5rem;
}
.service-heading-icon-lg .service-heading-icon-svg {
  width: 1.65rem;
  height: 1.65rem;
}
.group:hover .service-heading-icon {
  background: #fff;
  color: var(--zinc-900);
}
.contacts-map iframe,
.contacts-map ymaps {
  display: block;
  width: 100%;
  border: 0;
}
