:root {
  --primary: #0259b7;
  --primary-dark: #004085;
  --accent: #ff6b00;
  --accent-hover: #e05e00;
  --success: #16a34a;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --radius: 10px;
}

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

/* Çàùèòà îò ãîðèçîíòàëüíîãî ñêðîëëà íà âñåõ òèïàõ äèñïëååâ */
html, body { 
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif; 
  background: var(--bg); 
  color: var(--text); 
  line-height: 1.5; 
  -webkit-text-size-adjust: 100%;
}

.container { 
  max-width: 1180px; 
  margin: 0 auto; 
  padding: 0 15px; 
  width: 100%;
}

/* ÒÎÏÁÀÐ */
.topbar { background: #0b1325; color: #94a3b8; font-size: 13px; padding: 8px 0; }
.topbar-content { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ØÀÏÊÀ ÕÅÄÅÐ */
.header { background: var(--surface); padding: 18px 0; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 90; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo-text { font-size: 24px; font-weight: 800; color: #0b1325; text-decoration: none; }
.logo-text span { color: var(--accent); }

/* ÃËÀÂÍÛÉ ÑÈÍÈÉ ÁÀÍÍÅÐ */
.hero-section { background: linear-gradient(135deg, #0b1e3b 0%, #004b93 100%); padding: 35px 0 40px; color: #fff; margin-bottom: 30px; }
.hero-title { font-size: 28px; font-weight: 800; margin-bottom: 14px; word-break: break-word; }

/* ÊÀÐÒÎ×ÊÀ ÔÈËÜÒÐÀ */
.filter-card { background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius); padding: 22px; }
.filter-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr) auto; 
  gap: 10px; 
  margin-bottom: 16px; 
  align-items: center; 
}

@media (min-width: 992px) {
  .filter-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
  }
}

/* ÂÛÏÀÄÀÞÙÈÉ ÑÏÈÑÎÊ Ñ ÆÈÂÛÌ ÏÎÈÑÊÎÌ */
.search-select-wrapper { position: relative; width: 100%; min-width: 0; }
.search-select-trigger {
  width: 100%; padding: 13px 15px; border-radius: 8px; border: 1px solid #cbd5e1;
  font-size: 14px; background: #fff; color: #0f172a; cursor: pointer; text-align: left;
  display: flex; justify-content: space-between; align-items: center; user-select: none;
  min-height: 48px;
}
.search-select-trigger.disabled { background: #e2e8f0; color: #94a3b8; cursor: not-allowed; }
.search-select-trigger::after { content: "\25BC"; font-size: 10px; color: #64748b; margin-left: 8px; flex-shrink: 0; }

.search-select-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; width: 100%; max-height: 280px;
  background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 1000; display: none; flex-direction: column; overflow: hidden;
}
.search-select-dropdown.open { display: flex; }
.search-select-filter-input {
  width: 100%; padding: 11px 13px; border: none; border-bottom: 1px solid #e2e8f0;
  font-size: 13px; outline: none; background: #f8fafc;
}
.search-select-options {
  overflow-y: auto; max-height: 220px; list-style: none; margin: 0; padding: 4px 0;
}
.search-select-option {
  padding: 10px 14px; font-size: 13px; color: #1e293b; cursor: pointer; transition: background 0.15s;
}
.search-select-option:hover, .search-select-option.selected {
  background: #eff6ff; color: var(--primary); font-weight: 600;
}

/* ÊÍÎÏÊÀ ÏÎÊÀÇÀÒÜ ÄÅÒÀËÈ */
.btn-submit { 
  background: var(--accent); color: #fff; border: none; padding: 13px 26px; 
  border-radius: 8px; font-weight: 700; cursor: pointer; transition: background 0.15s; 
  white-space: nowrap; min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
}
.btn-submit:hover { background: var(--accent-hover); }

/* ÑÒÐÎÊÀ ÏÎÈÑÊÀ ÍÀ ÂÑÞ ØÈÐÈÍÓ */
.search-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 16px;
  width: 100%;
}
.search-full-input {
  flex: 1;
  width: 100%;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  outline: none;
  background: #fff;
  color: #0f172a;
  min-height: 48px;
}
.btn-search {
  background: #0284c7;
  white-space: nowrap;
}
.btn-search:hover {
  background: #0369a1;
}
.reset-link {
  color: #cbd5e1;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  margin-left: 6px;
}
.reset-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ÕËÅÁÍÛÅ ÊÐÎØÊÈ */
.breadcrumbs { 
  font-size: 13px; 
  color: var(--text-muted); 
  margin-bottom: 20px; 
  line-height: 1.6; 
  word-break: break-word;
}
.breadcrumbs a { color: var(--primary); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ÊÀÐÒÎ×ÊÀ ÒÎÂÀÐÀ */
.product-card { 
  background: var(--surface); 
  border-radius: 14px; 
  border: 1px solid var(--border); 
  box-shadow: 0 4px 14px rgba(0,0,0,0.05); 
  margin-bottom: 25px; 
  overflow: hidden; 
  width: 100%;
  max-width: 100%;
}
.product-top { 
  padding: 18px 24px; 
  border-bottom: 1px solid var(--border); 
  background: #fafcff; 
}
.product-title { 
  font-size: 20px; 
  font-weight: 800; 
  color: #0f172a; 
  word-break: break-word;
}
.product-title a { color: inherit; text-decoration: none; }
.product-title a:hover { color: var(--primary); }
.product-compat { font-size: 13px; color: var(--text-muted); margin-top: 4px; word-break: break-word; }

/* Ñåòêà êàðòî÷êè ñ min-width: 0 äëÿ âñåõ êîëîíîê */
.product-content { 
  display: grid; 
  grid-template-columns: 280px minmax(0, 1fr); 
  gap: 30px; 
  padding: 24px; 
  width: 100%;
  max-width: 100%;
}
.product-content > div {
  min-width: 0;
  max-width: 100%;
}

.product-photo-box { 
  border: 1px solid var(--border); 
  border-radius: 10px; 
  padding: 15px; 
  background: #fff; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  height: 220px; 
  width: 100%;
}
.product-photo { max-width: 100%; max-height: 100%; object-fit: contain; }

.product-specs { 
  background: #f8fafc; 
  border-radius: 8px; 
  padding: 12px 16px; 
  font-size: 13px; 
  border-left: 3px solid var(--primary); 
  margin-bottom: 18px; 
  line-height: 1.6; 
  word-break: break-word;
  max-width: 100%;
}

/* ÒÀÁËÈÖÀ ÖÅÍ ÁÐÅÍÄÎÂ */
.offers-table { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
  width: 100%;
  max-width: 100%;
}
.offer-row { 
  display: grid; 
  grid-template-columns: 2fr 1.6fr 1.2fr auto; 
  align-items: center; 
  gap: 12px;
  padding: 14px 18px; 
  border: 1px solid var(--border); 
  border-radius: 10px; 
  background: #fff; 
  width: 100%;
  max-width: 100%;
}
.offer-row.in-stock { border-left: 4px solid var(--success); background: #fcfdfc; }
.b-title { font-weight: 800; font-size: 16px; color: #0f172a; word-break: break-word; }
.b-desc { font-size: 12px; color: var(--text-muted); word-break: break-word; }
.b-stock { font-size: 13px; font-weight: 600; color: var(--success); }
.b-stock.order { color: #d97706; }
.b-price { font-size: 20px; font-weight: 800; white-space: nowrap; color: #0f172a; }
.btn-buy { background: var(--primary); color: #fff; border: none; padding: 10px 18px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.btn-buy:hover { background: var(--primary-dark); }

/* ÄÅÒÀËÜÍÀß ÒÀÁËÈÖÀ ÏÐÈÌÅÍßÅÌÎÑÒÈ */
.compat-block { 
  margin-top: 25px; 
  border-top: 1px solid var(--border); 
  padding-top: 20px; 
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.compat-title { 
  font-size: 15px; 
  font-weight: 700; 
  color: #0f172a; 
  margin-bottom: 12px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  flex-wrap: wrap; 
  gap: 6px; 
}
.compat-table-wrapper { 
  overflow-x: auto; 
  width: 100%; 
  max-width: 100%; 
  background: #fff; 
  border: 1px solid var(--border); 
  border-radius: 8px; 
  -webkit-overflow-scrolling: touch;
  display: block;
}
.compat-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; min-width: 550px; }
.compat-table th { background: #f8fafc; padding: 10px 12px; font-weight: 700; color: #475569; border-bottom: 1px solid var(--border); white-space: nowrap; }
.compat-table td { padding: 9px 12px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.compat-table tr:last-child td { border-bottom: none; }
.compat-table tr:hover td { background: #f8fafc; }
.compat-table td:nth-child(3) { 
  max-width: 170px; 
  word-break: break-all;
  font-size: 11px; 
}
.badge-code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 12px; color: #0f172a; border: 1px solid #e2e8f0; }

.btn-toggle-compat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  margin-top: 8px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-toggle-compat:hover {
  background: #eff6ff;
  border-color: var(--primary);
}
.compat-extra-row {
  display: none;
}

/* ÁËÎÊ ÏÅÐÅËÈÍÊÎÂÊÈ ÑÌÅÆÍÛÕ ÌÎÄÅËÅÉ */
.related-models-block {
  margin-top: 20px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 100%;
}
.related-models-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.related-models-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.related-model-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  text-decoration: none;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.related-model-tag:hover {
  border-color: var(--primary);
  background: #eff6ff;
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 89, 183, 0.1);
}
.related-model-tag::after {
  content: ">";
  color: var(--primary);
  font-size: 13px;
  transition: transform 0.15s ease;
}
.related-model-tag:hover::after {
  transform: translateX(3px);
}

/* ÑÅÒÊÀ ÏÎÏÓËßÐÍÛÕ ÌÀÐÎÊ ÍÀ ÃËÀÂÍÎÉ */
.makes-grid-title { font-size: 20px; font-weight: 800; color: #0f172a; margin: 35px 0 16px; }
.makes-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 35px; }
.make-card-btn {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 10px; text-align: center; text-decoration: none; color: #0f172a;
  font-weight: 700; font-size: 14px; transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.make-card-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(2,89,183,0.1); }

/* ÁËÎÊ ÏÎÄÁÎÐÀ ÏÎ VIN */
.vin-banner {
  background: linear-gradient(135deg, #0b1325 0%, #1e293b 100%);
  color: #fff;
  border-radius: 14px;
  padding: 26px 30px;
  margin-bottom: 40px;
  border-left: 5px solid var(--accent);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.vin-header { margin-bottom: 18px; }
.vin-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; color: #fff; }
.vin-desc { font-size: 13.5px; color: #94a3b8; line-height: 1.5; max-width: 850px; }
.vin-form { display: flex; flex-direction: column; gap: 16px; }
.vin-inputs-row { display: flex; gap: 12px; flex-wrap: wrap; }
.vin-input {
  flex: 1; min-width: 220px; padding: 13px 16px; border-radius: 8px; border: 1px solid #334155;
  background: #090f1d; color: #fff; font-size: 14px; outline: none; font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.vin-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2); }
.vin-section-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #cbd5e1; margin-top: 2px; }
.vin-chips-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.vin-chip { cursor: pointer; user-select: none; }
.vin-chip input { display: none; }
.vin-chip span {
  display: inline-block; padding: 8px 14px; background: rgba(255, 255, 255, 0.06);
  border: 1px solid #334155; border-radius: 8px; font-size: 13px; font-weight: 500;
  color: #cbd5e1; transition: all 0.2s ease;
}
.vin-chip:hover span { background: rgba(255, 255, 255, 0.12); border-color: #64748b; color: #fff; }
.vin-chip input:checked + span { background: #0284c7; border-color: #38bdf8; color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4); }

.vin-quality-row { display: flex; flex-wrap: wrap; gap: 8px; }
.vin-quality-chip { cursor: pointer; user-select: none; }
.vin-quality-chip input { display: none; }
.vin-quality-chip span {
  display: inline-block; padding: 8px 14px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid #334155; border-radius: 8px; font-size: 12.5px; font-weight: 500;
  color: #94a3b8; transition: all 0.2s ease;
}
.vin-quality-chip:hover span { color: #fff; border-color: #64748b; }
.vin-quality-chip input:checked + span { background: #ff6b00; border-color: #ff8533; color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(255, 107, 0, 0.35); }

.vin-submit-row { display: flex; align-items: center; gap: 15px; margin-top: 4px; flex-wrap: wrap; }
.vin-btn {
  background: var(--accent); color: #fff; border: none; padding: 13px 32px;
  border-radius: 8px; font-weight: 800; font-size: 14px; cursor: pointer;
  white-space: nowrap; transition: all 0.2s; box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}
.vin-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.vin-hint { font-size: 12px; color: #94a3b8; }

/* ÌÈÍÈ-ÊÀÐÒÎ×ÊÈ */
.popular-showcase-title { font-size: 20px; font-weight: 800; margin-bottom: 16px; color: #0f172a; }
.showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 40px; }
.mini-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column; transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03); text-decoration: none; color: inherit;
}
.mini-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,0.08); }
.mini-photo-wrap { height: 160px; background: #f8fafc; padding: 12px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.mini-photo { max-width: 100%; max-height: 100%; object-fit: contain; }
.mini-info { padding: 15px; display: flex; flex-direction: column; flex: 1; }
.mini-title { font-size: 14px; font-weight: 700; line-height: 1.4; margin-bottom: 6px; color: #0f172a; }
.mini-car { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.3; }
.mini-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.mini-price { font-size: 17px; font-weight: 800; color: #0b1325; }
.mini-price span { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.mini-btn { background: #eff6ff; color: var(--primary); padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.mini-card:hover .mini-btn { background: var(--primary); color: #fff; }

/* ÔÓÒÅÐ */
.footer { background: #0b1325; color: #94a3b8; padding: 50px 0 25px; margin-top: 60px; font-size: 14px; border-top: 4px solid var(--primary); }
.footer-grid { display: grid; grid-template-columns: 2fr 1.2fr 1.5fr; gap: 40px; margin-bottom: 35px; text-align: left; }
.footer-title { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-contacts p { margin-bottom: 8px; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; text-align: center; font-size: 12px; color: #64748b; }

/* ÑÒÈËÈ ÊÎÐÇÈÍÛ È ÌÎÄÀËÜÍÎÃÎ ÎÊÍÀ */
#orderModal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  backdrop-filter: blur(4px);
}
#orderModal .modal-content {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  position: relative;
  padding: 24px;
}
#orderModal .close-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 26px;
  cursor: pointer;
  color: #94a3b8;
  transition: color 0.2s;
}
#orderModal .close-modal:hover { color: #0f172a; }
#orderModal h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}
.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.cart-item .item-info {
  flex: 1;
  font-size: 13px;
  line-height: 1.35;
}
.cart-item .item-info b { display: block; color: #0f172a; font-size: 13px; }
.cart-item .item-info span { display: block; font-size: 11.5px; color: #64748b; margin: 2px 0; }
.cart-item .item-info small { color: #0284c7; font-weight: 700; font-size: 13px; }
.qty-controls {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
}
.qty-btn {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  color: #334155;
}
.qty-btn:hover { background: #f1f5f9; }
.qty-val {
  width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}
.remove-item {
  color: #ef4444;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.total-sum-box {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  text-align: right;
  padding: 8px 0;
}
.add-more-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
  margin-bottom: 16px;
}
.add-more-link:hover { text-decoration: underline; }
.delivery-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
}
.delivery-option {
  flex: 1;
  text-align: center;
  padding: 9px 8px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s;
}
.delivery-option.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.modal-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 10px;
  outline: none;
  font-family: inherit;
}
.modal-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
#deliveryFields { display: none; }
#initialButtons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.main-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  font-family: inherit;
}
.main-btn:active { transform: scale(0.99); }
.main-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.success-box {
  text-align: center;
  padding: 30px 10px;
}
.success-icon { font-size: 44px; margin-bottom: 10px; }
.success-title { font-size: 20px; font-weight: 800; color: #16a34a; margin-bottom: 6px; }
.success-text { font-size: 14px; color: #64748b; }

/* ==========================================================================
   ÏËÀÂÀÞÙÈÉ ÂÈÄÆÅÒ ÑÂßÇÈ È ÌÅÑÑÅÍÄÆÅÐÎÂ (1-ÊËÈÊ ÊÎÍÒÀÊÒ)
   ========================================================================== */
.contact-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-widget__menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.9);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.contact-widget.active .contact-widget__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.contact-widget__item {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-widget__item:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.contact-widget__item.viber { background: #733292; }
.contact-widget__item.whatsapp { background: #25D366; }
.contact-widget__item.telegram { background: #24A1DE; }
.contact-widget__item.phone { background: #0284c7; }

.contact-widget__button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #e05e00 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  outline: none;
}

.contact-widget__button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5);
}

.contact-widget.active .contact-widget__button {
  background: #334155;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.contact-widget .main-icon-chat,
.contact-widget.active .main-icon-close {
  display: block;
}

.contact-widget.active .main-icon-chat,
.contact-widget .main-icon-close {
  display: none;
}

.pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: widgetPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  pointer-events: none;
}

.contact-widget.active .pulse-ring {
  display: none;
}

@keyframes widgetPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

/* ==========================================================================
   ÀÄÀÏÒÈÂÍÎÑÒÜ ÄËß ÏËÀÍØÅÒÎÂ È ÑÌÀÐÒÔÎÍÎÂ (MOBILE RESPONSIVE)
   ========================================================================== */

/* Ïëàíøåòû (äî 992px) */
@media (max-width: 992px) {
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .filter-grid .btn-submit {
    grid-column: 1 / -1;
    width: 100%;
  }
  .product-content {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
  }
}

/* Ìîáèëüíûå ýêðàíû è óçêèå ïëàíøåòû (äî 900px) */
@media (max-width: 900px) {
  .header { padding: 14px 0; }
  .hero-section { padding: 25px 0 30px; margin-bottom: 20px; }
  .hero-title { font-size: 22px; }
  .search-divider { flex-direction: column; align-items: stretch; }
  .btn-search { width: 100%; min-height: 48px; }
  .reset-link { text-align: center; margin: 4px 0 0 0; display: block; }
  
  .product-content { 
    grid-template-columns: 1fr; 
    gap: 16px; 
    padding: 16px; 
  }
  .product-content > div {
    min-width: 0;
    width: 100%;
  }
  .product-photo-box { height: 200px; }
  
  .offer-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px 14px;
    padding: 14px;
  }
  .offer-row > div:nth-child(1) { 
    grid-column: 1 / -1; 
  }
  .offer-row .b-stock { 
    grid-column: 1 / 2; 
    font-size: 13px;
    line-height: 1.3;
  }
  .offer-row .b-price { 
    grid-column: 2 / 3; 
    text-align: right; 
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
  }
  .offer-row > div:last-child { 
    grid-column: 1 / -1; 
    margin-top: 4px;
  }
  .offer-row .btn-buy { 
    width: 100%; 
    padding: 13px; 
    font-size: 15px; 
    display: block;
    text-align: center;
  }

  .makes-grid { grid-template-columns: repeat(3, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .vin-banner { grid-template-columns: 1fr; gap: 15px; padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
}

/* Ñìàðòôîíû (äî 600px) */
@media (max-width: 600px) {
  .container {
    padding: 0 12px;
  }
  .topbar { font-size: 12px; text-align: center; }
  .topbar-content { justify-content: center; text-align: center; }
  
  .filter-grid { grid-template-columns: 1fr; }
  .filter-card { padding: 14px; }
  .hero-title { font-size: 19px; line-height: 1.35; }

  .product-card {
    border-radius: 12px;
    margin-bottom: 18px;
  }
  .product-top {
    padding: 14px;
  }
  .product-title {
    font-size: 17px;
    line-height: 1.35;
  }
  .product-compat {
    font-size: 12px;
    line-height: 1.4;
  }
  .product-content {
    padding: 14px;
    gap: 14px;
  }
  .product-photo-box {
    height: 180px;
    padding: 10px;
  }
  .product-specs {
    font-size: 12px;
    padding: 10px 12px;
    word-break: break-word;
    margin-bottom: 14px;
  }

  .offer-row {
    padding: 12px;
    gap: 8px 10px;
  }
  .b-title {
    font-size: 15px;
  }
  .offer-row .b-price {
    font-size: 18px;
  }

  .compat-table {
    min-width: 490px;
    font-size: 12px;
  }
  .compat-table th, 
  .compat-table td {
    padding: 8px 10px;
  }
  .compat-title {
    font-size: 13.5px;
  }

  .breadcrumbs {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .makes-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .make-card-btn { padding: 12px 6px; font-size: 13px; }

  .showcase-grid { grid-template-columns: 1fr; }
  .vin-form { flex-direction: column; }
  .vin-btn { width: 100%; }

  #orderModal .modal-content {
    padding: 18px 14px;
    border-radius: 14px;
  }
  .cart-item {
    flex-wrap: wrap;
  }
  .cart-item .item-info {
    width: 100%;
    margin-bottom: 6px;
  }
  .vin-banner {
    padding: 18px 14px;
  }
  .vin-title {
    font-size: 18px;
  }
  .vin-inputs-row {
    flex-direction: column;
  }
  .vin-input {
    width: 100%;
    min-width: 0;
  }
  .vin-chips-grid, .vin-quality-row {
    gap: 6px;
  }
  .vin-chip span, .vin-quality-chip span {
    font-size: 12px;
    padding: 7px 10px;
  }

  /* Âèäæåò íà ìîáèëüíîì */
  .contact-widget {
    bottom: 18px;
    right: 18px;
  }
  .contact-widget__button {
    width: 52px;
    height: 52px;
  }
  .contact-widget__item {
    width: 44px;
    height: 44px;
  }
}

/* ÁËÎÊ ÑÂßÇÈ Â ØÀÏÊÅ */
.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.header-phone {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.2px;
  transition: color 0.15s;
}

.header-phone:hover {
  color: var(--primary);
}

.header-messengers {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-msg-label {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}

.header-msg-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.msg-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  transition: transform 0.15s, opacity 0.15s;
}

.msg-icon:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.msg-icon.viber { background: #733292; }
.msg-icon.telegram { background: #24A1DE; }
.msg-icon.whatsapp { background: #25D366; }

/* Íà ìîáèëüíûõ ñêðûâàåì äëèííóþ ïîäïèñü è òåêñò êíîïîê, îñòàâëÿÿ òîëüêî àêêóðàòíûå èêîíêè */
@media (max-width: 768px) {
  .header-msg-label {
    display: none;
  }
  .msg-icon span {
    display: none;
  }
  .msg-icon {
    padding: 5px;
    border-radius: 50%;
  }
  .header-phone {
    font-size: 16px;
  }
}