@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700;900&display=swap');

:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --surface-2: #F4F1EC;
  --border: #E8E3DB;
  --text: #1C1A17;
  --text-2: #7A736B;
  --text-3: #ADA69E;
  --accent: oklch(0.59 0.13 32);
  --accent-hover: oklch(0.53 0.13 32);
  --accent-light: oklch(0.95 0.04 32);
  --accent-text: #FFFFFF;
  --header-bg: rgba(255,255,255,0.96);
  --header-border: var(--border);
  --header-text: var(--text);
  --header-text-2: var(--text-2);
  --footer-bg: #201D19;
  --shadow-sm: 0 1px 4px rgba(60,40,20,0.07);
  --shadow-md: 0 4px 16px rgba(60,40,20,0.10);
  --shadow-lg: 0 8px 32px rgba(60,40,20,0.13);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --header-h: 80px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Golos Text', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── HEADER ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-border);
  height: var(--header-h);
}
.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: grid;
  grid-template-columns: 200px 1fr auto auto;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--header-text);
  white-space: nowrap;
}
.logo__icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}
.logo__sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--header-text-2);
  line-height: 1.2;
  margin-top: -2px;
}
.logo__name { line-height: 1.1; }

.search-bar {
  display: flex;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--accent); }
.search-bar input {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text);
}
.search-bar input::placeholder { color: var(--text-3); }
.search-bar button {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}
.search-bar button:hover { background: var(--accent-hover); }

.header__contacts {
  font-size: 13px;
  color: var(--header-text-2);
  text-align: right;
  line-height: 1.4;
}
.header__phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--header-text);
  display: block;
}

.header__icons {
  display: flex;
  gap: 4px;
}
.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--header-text-2);
  font-size: 20px;
  position: relative;
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: rgba(128,128,128,0.12); color: var(--header-text); }
.icon-btn .badge {
  position: absolute;
  top: 6px; right: 6px;
  width: 16px; height: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ─── NAV ─── */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.nav__link {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav__link:hover, .nav__link.active { color: var(--text); border-bottom-color: var(--accent); }

/* ─── CONTAINER ─── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── SECTION ─── */
.section { padding: 64px 0; }
.section--sm { padding: 40px 0; }
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.section__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}
.section__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}
.section__link:hover { text-decoration: underline; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost {
  background: var(--surface-2);
  color: var(--text);
}
.btn--ghost:hover { background: var(--border); }
.btn--sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn--lg { padding: 16px 32px; font-size: 17px; border-radius: 12px; }

/* ─── PRODUCT CARD ─── */
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card__img {
  aspect-ratio: 1/1;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.product-card__img svg { width: 60%; height: 60%; opacity: 0.25; }
.product-card__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  font-family: monospace;
  background: repeating-linear-gradient(
    45deg,
    var(--surface-2),
    var(--surface-2) 6px,
    #EEEAE4 6px,
    #EEEAE4 12px
  );
}
.product-card__fav {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  font-size: 16px;
  cursor: pointer;
  transition: color 0.15s;
}
.product-card__fav:hover { color: #e05050; }
.product-card__fav.active { color: #e05050; }
.product-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-card__body {
  padding: 16px;
  padding-top: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-card__art {
  font-size: 11px;
  color: var(--text-3);
  font-family: monospace;
}
.product-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  flex: 1;
}
.product-card__price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.product-card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.product-card__price-old {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: line-through;
}
.product-card__footer {
  padding: 0 16px 16px;
}
.product-card__footer .btn {
  width: 100%;
}

/* ─── SLIDER ─── */
.slider-wrap { position: relative; }
.slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.slider::-webkit-scrollbar { display: none; }
.slider .product-card {
  flex: 0 0 calc(25% - 15px);
  scroll-snap-align: start;
  min-width: 220px;
}
.slider-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.slider-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
}
.slider-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ─── WHY US ─── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s;
}
.why-card:hover { box-shadow: var(--shadow-sm); }
.why-icon {
  width: 52px; height: 52px;
  background: var(--accent-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--accent);
}
.why-card h3 { font-size: 16px; font-weight: 600; }
.why-card p { font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* ─── REVIEWS ─── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.review-name { font-weight: 600; font-size: 15px; }
.review-stars { color: #F5A623; font-size: 14px; letter-spacing: 1px; }
.review-text { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.review-date { font-size: 12px; color: var(--text-3); }

/* ─── FOOTER ─── */
.footer {
  background: var(--footer-bg);
  color: #C8BFB5;
  padding: 52px 0 28px;
  margin-top: 80px;
}
.footer__grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 220px 1fr 1fr 1fr;
  gap: 40px;
}
.footer__logo { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.footer__tagline { font-size: 13px; line-height: 1.6; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { font-size: 14px; color: #C8BFB5; transition: color 0.15s; }
.footer ul a:hover { color: #fff; }
.footer__bottom {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 20px 32px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #786F66;
}

/* ─── HERO ─── */
.hero {
  background: linear-gradient(108deg, #2D2420 0%, #3D302A 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, oklch(0.59 0.13 32 / 0.3) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.hero__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero__title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero__title span { color: oklch(0.75 0.13 32); }
.hero__desc {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__img {
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  font-family: monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero__img-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero__stat-val {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero__stat-val span { color: oklch(0.75 0.13 32); }
.hero__stat-lbl {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

/* ─── CATALOG PAGE ─── */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.filters h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.filter-group {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.filter-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.filter-group input[type=text],
.filter-group select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}
.filter-group input:focus,
.filter-group select:focus { border-color: var(--accent); }
.filter-group .price-row {
  display: flex;
  gap: 8px;
}
.filter-group .price-row input { width: 50%; }
.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-2);
}
.filter-check input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }

.catalog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.catalog-count { font-size: 14px; color: var(--text-2); }
.catalog-sort select {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  cursor: pointer;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.page-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.page-btn:hover, .page-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}
.page-btn.active { font-weight: 700; }

/* ─── PRODUCT PAGE ─── */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-3);
  padding: 20px 0;
}
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-3); }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gallery__main {
  aspect-ratio: 1/1;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 13px;
  color: var(--text-3);
  background: repeating-linear-gradient(
    45deg,
    var(--surface-2),
    var(--surface-2) 8px,
    #EEEAE4 8px,
    #EEEAE4 16px
  );
}
.gallery__thumbs {
  display: flex;
  gap: 10px;
}
.gallery__thumb {
  width: 72px; height: 72px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s;
  overflow: hidden;
  background: repeating-linear-gradient(
    45deg,
    var(--surface-2),
    var(--surface-2) 4px,
    #EEEAE4 4px,
    #EEEAE4 8px
  );
}
.gallery__thumb.active { border-color: var(--accent); }

.product-info { display: flex; flex-direction: column; gap: 20px; }
.product-info__art { font-family: monospace; font-size: 13px; color: var(--text-3); }
.product-info__name { font-size: 26px; font-weight: 700; line-height: 1.3; }
.product-info__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
}
.product-info__stars { color: #F5A623; font-size: 16px; }
.product-info__price-block {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-info__price {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
}
.product-info__price-old {
  font-size: 16px;
  color: var(--text-3);
  text-decoration: line-through;
}
.product-info__save {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.product-info__stock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}
.stock-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  flex-shrink: 0;
}
.product-actions { display: flex; flex-direction: column; gap: 10px; }
.product-actions-row { display: flex; gap: 10px; }
.product-actions-row .btn { flex: 1; }
.vin-block {
  background: var(--accent-light);
  border: 1px solid oklch(0.85 0.06 32);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vin-block h4 { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.vin-input-row { display: flex; gap: 8px; }
.vin-input-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: monospace;
  text-transform: uppercase;
  outline: none;
  background: #fff;
  letter-spacing: 0.1em;
}
.vin-input-row input:focus { border-color: var(--accent); }

.specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs-table tr:nth-child(even) td { background: var(--surface-2); }
.specs-table td {
  padding: 10px 14px;
  border-radius: 4px;
  color: var(--text);
}
.specs-table td:first-child { color: var(--text-2); width: 45%; }

/* ─── CONTACTS PAGE ─── */
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-row__icon {
  width: 40px; height: 40px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-row__lbl { font-size: 12px; color: var(--text-3); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-row__val { font-size: 15px; font-weight: 500; color: var(--text); margin-top: 2px; }
.map-placeholder {
  aspect-ratio: 4/3;
  background: repeating-linear-gradient(
    45deg,
    #E8F0E8,
    #E8F0E8 8px,
    #D8E8D8 8px,
    #D8E8D8 16px
  );
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 13px;
  color: #7A9A7A;
  text-align: center;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.form-field input,
.form-field textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--accent); background: #fff; }
.form-field textarea { resize: vertical; min-height: 100px; }

/* ─── PAGE TITLE ─── */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.page-hero h1 { font-size: 32px; font-weight: 800; }
.page-hero p { font-size: 15px; color: var(--text-2); margin-top: 6px; }

/* ─── UTILS ─── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
}
.text-accent { color: var(--accent); }
.fw-700 { font-weight: 700; }

/* ─── THEMES ─── */
[data-theme="jcb"] {
  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --surface-2: #EBEBEB;
  --border: #D0D0D0;
  --text: #1A1A1A;
  --text-2: #555555;
  --text-3: #999999;
  --accent: #F0B800;
  --accent-hover: #D9A600;
  --accent-light: #FFF3C0;
  --accent-text: #1A1A1A;
  --header-bg: #1A1A1A;
  --header-border: #333333;
  --header-text: #FFFFFF;
  --header-text-2: #AAAAAA;
  --footer-bg: #111111;
}
[data-theme="blue"] {
  --accent: oklch(0.52 0.18 240);
  --accent-hover: oklch(0.45 0.18 240);
  --accent-light: oklch(0.95 0.05 240);
}
[data-theme="dark"] {
  --bg: #18161A;
  --surface: #231F27;
  --surface-2: #2D2833;
  --border: #3A3540;
  --text: #F0EDF5;
  --text-2: #9A95A3;
  --text-3: #5C5865;
  --accent: oklch(0.68 0.14 32);
  --accent-hover: oklch(0.60 0.14 32);
  --accent-light: oklch(0.22 0.05 32);
  --accent-text: #FFFFFF;
  --header-bg: rgba(24,22,26,0.97);
  --header-border: #3A3540;
  --header-text: #F0EDF5;
  --header-text-2: #9A95A3;
  --footer-bg: #0E0C10;
}
[data-theme="green"] {
  --accent: oklch(0.52 0.15 152);
  --accent-hover: oklch(0.45 0.15 152);
  --accent-light: oklch(0.95 0.05 152);
}

/* ─── MOBILE MENU ─── */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s;
  padding: 8px;
}
.burger-btn:hover { background: var(--surface-2); }
.burger-line {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.burger-btn.open .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open .burger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.open .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#mobile-overlay {
  display: none;
  position: fixed !important;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
  backdrop-filter: blur(2px);
}
#mobile-overlay.visible { display: block; }

#mobile-drawer {
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  width: 280px; height: 100% !important;
  background: var(--surface);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.4,0,.2,1);
  display: flex !important;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: 4px 0 32px rgba(0,0,0,0.15);
}
#mobile-drawer.open { transform: translateX(0); }

.drawer-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.drawer-close {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: none;
  background: var(--surface-2);
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
}

.drawer-search {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-search form {
  display: flex;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.drawer-search input {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
}
.drawer-search button {
  padding: 10px 14px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.drawer-nav {
  flex: 1;
  padding: 8px 0;
}
.drawer-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.drawer-nav-item:hover { background: var(--surface-2); }
.drawer-nav-item a { color: inherit; flex: 1; }
.drawer-nav-item .chevron {
  transition: transform 0.25s;
  color: var(--text-3);
  font-size: 12px;
}
.drawer-nav-item.expanded .chevron { transform: rotate(180deg); }

.drawer-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--surface-2);
}
.drawer-sub.open { max-height: 400px; }
.drawer-sub a {
  display: block;
  padding: 10px 20px 10px 36px;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.15s;
}
.drawer-sub a:hover { color: var(--accent); }

.drawer-contacts {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  flex-shrink: 0;
}
.drawer-contacts a { display: block; color: var(--text-2); margin-bottom: 6px; }
.drawer-contacts a:first-child { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--surface);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 32px;
  position: relative;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-overlay.visible .modal {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--surface-2);
  cursor: pointer;
  font-size: 16px;
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.modal-close:hover { background: var(--border); }
.modal h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.modal p { font-size: 14px; color: var(--text-2); margin-bottom: 20px; }

/* ─── CATALOG CATEGORIES ACCORDION ─── */
.cat-accordion { display: flex; flex-direction: column; gap: 2px; }
.cat-acc-item {}
.cat-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.15s;
  user-select: none;
}
.cat-acc-head:hover { background: var(--surface-2); }
.cat-acc-head.active { color: var(--accent); background: var(--accent-light); font-weight: 600; }
.cat-acc-head .acc-arrow { font-size: 10px; color: var(--text-3); transition: transform 0.25s; }
.cat-acc-head.expanded .acc-arrow { transform: rotate(180deg); }
.cat-acc-subs {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.cat-acc-subs.open { max-height: 300px; }
.cat-acc-sub {
  display: block;
  padding: 7px 12px 7px 28px;
  font-size: 13px;
  color: var(--text-2);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.cat-acc-sub:hover { color: var(--accent); background: var(--accent-light); }
.cat-acc-sub.active { color: var(--accent); font-weight: 600; }

/* ─── THEME SWITCHER ─── */
#theme-switcher {
  position: fixed;
  bottom: 96px; left: 20px;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.theme-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.theme-dot:hover { transform: scale(1.2); box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
.theme-dot.active { transform: scale(1.2); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px oklch(0.59 0.13 32); }
.theme-dot[data-t="default"] { background: oklch(0.59 0.13 32); }
.theme-dot[data-t="jcb"] { background: oklch(0.80 0.18 82); }
.theme-dot[data-t="blue"] { background: oklch(0.52 0.18 240); }
.theme-dot[data-t="green"] { background: oklch(0.52 0.15 152); }
.theme-dot[data-t="dark"] { background: #231F27; }
.theme-label {
  position: absolute;
  left: 38px; top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.theme-dot:hover .theme-label { opacity: 1; }

/* ─── MOBILE CONTACT BAR ─── */
.mobile-contact-bar {
  display: none;
}
@media (max-width: 768px) {
  .mobile-contact-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    z-index: 99;
    font-size: 12px;
  }
  .mobile-contact-bar__links {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }
  .mobile-contact-bar__phone {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
  }
  .mobile-contact-bar__email {
    font-size: 11px;
    color: var(--text-2);
    text-decoration: none;
  }
  .mobile-contact-bar__btn {
    flex-shrink: 0;
    padding: 6px 12px;
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: opacity 0.15s;
  }
  .mobile-contact-bar__btn:hover { opacity: 0.88; }
  body {
    padding-top: calc(var(--header-h) + 36px);
  }
}

/* ─── CALLBACK MODAL ─── */
#callback-modal .modal { max-width: 400px; }

@media (max-width: 1024px) {
  .header__inner { grid-template-columns: 160px 1fr auto; }
  .header__contacts { display: none; }
  .hero__title { font-size: 34px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }

  .catalog-layout { grid-template-columns: 220px 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  /* На мобиле sticky ненадёжен из-за динамической адресной строки браузера.
     Фиксируем шапку жёстко, компенсируем смещение контента через padding-top. */
  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 100;
  }
  body {
    padding-top: var(--header-h);
  }

  .header__inner { grid-template-columns: auto 1fr auto auto; padding: 0 16px; gap: 10px; }
  .search-bar { display: none; }
  .header__contacts { display: none; }
  .burger-btn { display: flex; }
  .nav { display: none; }
  .header__inner { grid-template-columns: 1fr auto auto !important; }
  .hero { padding: 48px 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__title { font-size: 28px; }
  .hero__img, .hero-slider { display: none; }
  .hero__stats { gap: 20px; flex-wrap: wrap; }
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .slider .product-card { flex: 0 0 calc(80% - 10px); }
  .why-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr !important; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-layout { grid-template-columns: 1fr; }
  .contacts-layout { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .nav__inner { padding: 0 20px; }
  /* Cart mobile fix */
  .cart-item { grid-template-columns: 72px 1fr; gap: 12px; }
  .cart-item__right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--border); }
  .cart-item__img { width: 72px; height: 72px; font-size: 10px; flex-shrink: 0; }
  .cart-item__name { font-size: 14px; }
  /* Theme switcher mobile */
  #theme-switcher { bottom: 20px; left: 16px; flex-direction: row; }
  .theme-label { display: none; }
}
