:root {
  --primary: #42426f;
  --primary-dark: #004e89;
  --secondary: #f44336;
  --secondary-dark: #d32f2f;
  --dark: #121212;
  --dark-light: #1e1e1e;
  --dark-lighter: #2c2c2c;
  --text: #f5f5f5;
  --text-secondary: #bbb;
  --success: #4caf50;
  --warning: #ff9800;
  --danger: #f44336;
  --border: #444;
  --accent: #009688;
  --highlight: #ffeb3b;
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 15px rgba(0, 0, 0, 0.2);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Play", sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}
header {
  background: var(--primary);
  padding: 20px;
  text-align: center;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
header h1 {
  font-size: 2.2rem;
  text-shadow: 1px 1px 3px rgb(0 0 0 / 84%);
  font-family: "Goldman", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
}
header p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 800px;
  margin: auto;
  text-transform: uppercase;
}

/* scroll */
div::-webkit-scrollbar {
  width: 5px;
}
div::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #2e3138;
}
div::-webkit-scrollbar-track-piece {
  border-radius: 10px;
  background-color: #454954;
}
::selection {
  background: #db5146;
  color: aliceblue;
}

/* ÃÂ£ÃÂ½ÃÂ¸ÃÂ²ÃÂµÃ‘â‚¬Ã‘ÂÃÂ°ÃÂ»Ã‘Å’ÃÂ½ÃÂ°Ã‘Â ÃÂºÃÂ°Ã‘â‚¬Ã‘â€šÃÂ¾Ã‘â€¡ÃÂºÃÂ° */
.card {
  background: var(--dark-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.search-container {
  background: var(--dark-light);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.search-box {
  display: flex;
  gap: 10px;
}
input,
button {
  padding: 12px 16px;
  font-size: 16px;
  border: none;
  border-radius: var(--border-radius);
}
input {
  flex: 1;
  background: var(--dark-lighter);
  color: var(--text);
  border: 1px solid var(--border);
  width: -webkit-fill-available;
}
input:focus, .connector-filters select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 101, 177, 0.3);
}
button {
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
button:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .main-content {
    grid-template-columns: 1fr;
  }
}

.sidebar {
  background: var(--dark-light);
  border-radius: var(--border-radius);
  padding: 10px;
  height: fit-content;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 20px;
  font-size: 13px;
}
.sidebar h2 {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #3f3f3f;
  font-size: 1.2rem;
}
.nav-links {
  list-style: none;
}
.nav-links li {
  margin-bottom: 8px;
}
.nav-links a {
  display: block;
  padding: 10px 15px;
  background: var(--dark-lighter);
  border-radius: var(--border-radius);
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--primary);
}

.content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  animation: slideIn 0.5s ease forwards;
  background: var(--dark-light);
  border-radius: var(--border-radius);
  padding: 20px;
  transition: var(--transition);
  scroll-margin-top: 20px;
}
.section:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.section h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #3f3f3f;
  color: #f26743;
}
.section h3 {
  font-size: 1.1rem;
  margin: 15px 0 10px;
  color: var(--text-secondary);
}
.section ul {
  list-style: none;
  padding-left: 5px;
}
.section li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}
.section li:before {
  content: "~";
  color: #009688;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.result {
  margin-top: 15px;
  border-radius: var(--border-radius);
  color: #fff;
  display: none;
  animation: fadeIn 0.5s ease;
}
.result.show {
  display: block;
}
.result.not-found {
  background: var(--danger);
  padding: 10px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}
.spec-table th,
.spec-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.spec-table th {
  background: var(--primary);
  color: #fff;
}
.spec-table tr:nth-child(even) {
  background: var(--dark-lighter);
}

.warning {
  background: #a60b00;
  color: #fff;
  padding: 20px;
  border-radius: var(--border-radius);
  margin: 10px 0;
  font-size: 12px;
  text-transform: uppercase; /* font-weight:bold; */
}
.info {
  background: #3f51b5;
  color: #fff;
  padding: 20px;
  border-radius: var(--border-radius);
  margin: 10px 0;
  font-size: 12px;
  text-transform: uppercase;
}
.hint {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 10px 0;
  font-style: italic;
}
footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  border-top: 1px solid #333;
}

.code-item {
  background: var(--dark-lighter);
  border-radius: var(--border-radius);
  border: 2px solid #3d3d3d;
  padding: 10px;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-size: 13px;
}
.code-number {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
  margin-right: 8px;
}

.section:target {
  border: 2px solid var(--primary);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  header h1 {
    font-size: 1.8rem;
  }
  .search-box {
    flex-direction: column;
  }
  input,
  button {
    width: 100%;
  }
  .sidebar {
    position: static;
    margin-bottom: 20px;
  }
}
@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }
  .section {
    padding: 15px;
  }
  .section h2 {
    font-size: 1.2rem;
  }
}
@media (max-width: 600px) {
  .spec-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    word-break: break-word; /* ÃÂ¿ÃÂµÃ‘â‚¬ÃÂµÃÂ½ÃÂ¾Ã‘Â ÃÂ´ÃÂ»ÃÂ¸ÃÂ½ÃÂ½Ã‘â€¹Ã‘â€¦ Ã‘ÂÃÂ»ÃÂ¾ÃÂ² */
    white-space: normal; /* Ã‘â‚¬ÃÂ°ÃÂ·Ã‘â‚¬ÃÂµÃ‘Ë†ÃÂ°ÃÂµÃÂ¼ ÃÂ¿ÃÂµÃ‘â‚¬ÃÂµÃÂ½ÃÂ¾Ã‘Â Ã‘ÂÃ‘â€šÃ‘â‚¬ÃÂ¾ÃÂº */
  }
  .copy-btn {
    font-size: 11px;
    padding: 3px 6px;
  }
}

.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.copy-btn {
  padding: 4px 8px;
  font-size: 12px;
  margin-left: 6px;
  cursor: pointer;
  border-radius: 6px;
  border: none;
  background: var(--primary);
  color: #fff;
  transition: var(--transition);
}
.copy-btn:hover {
  background: var(--primary-dark);
}
.copy-btn.copied {
  background: var(--success);
}

.suggestions {
  position: absolute;
  background: var(--dark-lighter);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  margin-top: 5px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}
.suggestions div {
  padding: 10px;
  cursor: pointer;
  transition: var(--transition);
}
.suggestions div:hover {
  background: var(--primary);
}

.highlight {
  font-weight: bold;
  color: var(--highlight);
  background: var(--border);
  padding: 0 2px;
  border-radius: 3px;
}
---- ---- #generalSuggestions {
  position: absolute;
  background: var(--dark-lighter);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  margin-top: 5px;
  max-height: 250px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
  width: 100%;
}
#generalSuggestions div {
  padding: 10px;
  cursor: pointer;
  transition: var(--transition);
}
#generalSuggestions div:hover {
  background: var(--primary);
}

.search-side {
  background: var(--dark-light);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.calculator-container {
  background: var(--dark-light);
  border-radius: var(--border-radius);
  padding: 15px;
  margin-bottom: 15px;
}

.compact-grid {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 8px;
  margin-bottom: 10px;
}

.service-row {
  display: contents;
}

.service-name {
  padding: 6px 0;
  align-self: center;
}

.price-input {
  padding: 6px 8px;
  background: var(--dark-lighter);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  text-align: right;
  font-size: 13px;
}

.calculate-btn {
  padding: 10px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  margin: 10px 0;
  width: 100%;
}

.calculate-btn.secondary {
  background: var(--secondary);
}

.results {
  background: var(--dark-lighter);
  padding: 12px;
  border-radius: var(--border-radius);
  margin-top: 10px;
  display: none;
  font-size: 13px;
}

.results.show {
  display: block;
}

.result-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  padding: 4px 0;
}

.result-total {
  font-weight: bold;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--primary);
}

.currency {
  color: var(--text-secondary);
  font-size: 11px;
}

.section-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

.service-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 10px;
  grid-template-columns: repeat(4, 1fr);
  text-transform: uppercase;
}

.service-item {
  background: var(--dark-lighter);
  padding: 8px;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.service-name {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ÃÂ£ÃÂ±ÃÂ¸Ã‘â‚¬ÃÂ°ÃÂµÃÂ¼ Ã‘ÂÃ‘â€šÃ‘â‚¬ÃÂµÃÂ»ÃÂºÃÂ¸ ÃÂ² Chrome, Safari, Edge */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ÃÂ£ÃÂ±ÃÂ¸Ã‘â‚¬ÃÂ°ÃÂµÃÂ¼ Ã‘ÂÃ‘â€šÃ‘â‚¬ÃÂµÃÂ»ÃÂºÃÂ¸ ÃÂ² Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

/* ÃÅ¡ÃÂ½ÃÂ¾ÃÂ¿ÃÂºÃÂ¸ */
.btn-group {
  display: inline-flex;
  gap: 4px;
  margin-left: 5px;

  .copy-btn,
  .search-btn {
    padding: 2px 6px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #f0f0f0;
    font-size: 0.9rem;
    transition: background 0.2s;

    &.copy-btn:hover {
      background: transparent;
      color: #4caf50;
    }
    &.search-btn:hover {
      background: transparent;
      color: #2196f3;
    }
  }
}

/* Toast */
#toast {
  visibility: hidden;
  min-width: 200px;
  margin-left: -100px;
  background: #009688;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 20px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 30px;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s;
  font-weight: bold;

  &.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
  }
}

/* sidebar */
.sidebar {
  max-height: 95vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
}

/* ÃÂ¡Ã‘â€šÃÂ¸ÃÂ»ÃÂ¸ÃÂ·ÃÂ°Ã‘â€ ÃÂ¸Ã‘Â Ã‘ÂÃÂºÃ‘â‚¬ÃÂ¾ÃÂ»ÃÂ»ÃÂ±ÃÂ°Ã‘â‚¬ÃÂ° (ÃÂ´ÃÂ»Ã‘Â Webkit-ÃÂ±Ã‘â‚¬ÃÂ°Ã‘Æ’ÃÂ·ÃÂµÃ‘â‚¬ÃÂ¾ÃÂ²: Chrome, Edge, Safari) */
.sidebar::-webkit-scrollbar {
  width: 8px; /* Ã‘Ë†ÃÂ¸Ã‘â‚¬ÃÂ¸ÃÂ½ÃÂ° ÃÂ¿ÃÂ¾ÃÂ»ÃÂ¾Ã‘ÂÃ‘â€¹ */
}

.sidebar::-webkit-scrollbar-track {
  background: #1e1e1e; /* Ã‘â€žÃÂ¾ÃÂ½ Ã‘â€šÃ‘â‚¬ÃÂµÃÂºÃÂ° */
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #555; /* Ã‘â€ ÃÂ²ÃÂµÃ‘â€š ÃÂ±ÃÂµÃÂ³Ã‘Æ’ÃÂ½ÃÂºÃÂ° */
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #777; /* ÃÂ¿ÃÂ¾ÃÂ´Ã‘ÂÃÂ²ÃÂµÃ‘â€šÃÂºÃÂ° ÃÂ¿Ã‘â‚¬ÃÂ¸ ÃÂ½ÃÂ°ÃÂ²ÃÂµÃÂ´ÃÂµÃÂ½ÃÂ¸ÃÂ¸ */
}

/* Ãâ€ÃÂ»Ã‘Â Firefox */
.sidebar {
  scrollbar-width: thin;
  scrollbar-color: #555 #1e1e1e; /* ÃÂ±ÃÂµÃÂ³Ã‘Æ’ÃÂ½ÃÂ¾ÃÂº / Ã‘â€žÃÂ¾ÃÂ½ */
}

.section ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1rem 0;
}
.spec-table td i {
  color: #ff0000;
  margin-right: 4px;
}

i {
  margin-right: 6px;
}

.scheme {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 20px 0;
  gap: 15px;
}
.col {
  flex: 1;
  text-align: center;
}
.code-part {
  padding: 25px 0;
  border-radius: 8px;
  margin-bottom: 12px;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
}
.p-block {
  background: #ef6c00;
} /* ÃÂ¾Ã‘â‚¬ÃÂ°ÃÂ½ÃÂ¶ÃÂµÃÂ²Ã‘â€¹ÃÂ¹ */
.zero-block {
  background: #fdd835;
  color: #000;
} /* ÃÂ¶Ã‘â€˜ÃÂ»Ã‘â€šÃ‘â€¹ÃÂ¹ */
.three-block {
  background: #8bc34a;
  color: #000;
} /* ÃÂ·ÃÂµÃÂ»Ã‘â€˜ÃÂ½Ã‘â€¹ÃÂ¹ */
.num-block {
  background: #7e57c2;
} /* Ã‘â€žÃÂ¸ÃÂ¾ÃÂ»ÃÂµÃ‘â€šÃÂ¾ÃÂ²Ã‘â€¹ÃÂ¹ */

.desc {
  font-size: 12px;
  color: #333;
  line-height: 1.4em;
  background: #ebebeb;
  padding: 5px;
  border-radius: 6px;
}
.desc b {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  color: #000;
  text-transform: uppercase;
}

.connector-container {
  border-radius: 8px;
  overflow: hidden;
}

.connector-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px;
  background: #2c2c2c;
}

.connector-search {
  flex-grow: 1;
  min-width: 250px;
}

.connector-search input {
  width: 100%;
  padding: 10px 15px;
  font-size: 0.9rem;
}

.connector-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.connector-filters select {
  padding: 8px 12px;
  border: 1px solid #444444;
  border-radius: 4px;
  font-size: 0.85rem;
  background: #2c2c2c;
  color: #757575;
}

.connector-table-container {
  overflow-x: auto;
  max-height: 500px;
  overflow-y: auto;
}

.connector-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.connector-table th {
  background: #42426f;
  color: white;
  padding: 12px 8px;
  text-align: left;
  position: sticky;
  top: 0;
}

.connector-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #1e1e1e;
}

.connector-table tbody tr:hover {
  background: #333333;
}

.acdelco-num {
  font-weight: 600;
}

.gm-num {
  color: #eab452;
}

.cavity-cell {
  text-align: center;
  font-weight: 600;
}

.male {
  color: #00bcd4;
}
.female {
  color: #e91e63;
}

.search-connector-btn {
  background: #eab452;
  color: #1e1e1e;
  border: none;
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.connector-stats {
  padding: 10px 20px;
  background: #2c2c2c;
  font-size: 0.8rem;
  color: #ababab;
}

/* ÃÂ¦ÃÂ²ÃÂµÃ‘â€šÃÂ° ÃÂ¿ÃÂ¾ ÃÂºÃÂ¾ÃÂ»ÃÂ¸Ã‘â€¡ÃÂµÃ‘ÂÃ‘â€šÃÂ²Ã‘Æ’ ÃÂºÃÂ¾ÃÂ½Ã‘â€šÃÂ°ÃÂºÃ‘â€šÃÂ¾ÃÂ² */
.cavity-1 {
  background-color: #2c2c2c;
}
.cavity-2 {
  background-color: #2c2c2c;
}
.cavity-3 {
  background-color: #2c2c2c;
}
.cavity-4 {
  background-color: #2c2c2c;
}
.cavity-5 {
  background-color: #2c2c2c;
}
.cavity-6 {
  background-color: #2c2c2c;
}

/* ÃÂ ÃÂ°ÃÂ·Ã‘Å ÃÂµÃÂ¼Ã‘â€¹ */

.legend {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  align-items: center;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.color-box {
  width: 16px;
  height: 16px;
  border: 1px solid #000;
}
.female-color {
  background-color: #e91e63;
}
.male-color {
  background-color: #00bcd4;
}

/* 🔧 Унифицированный стиль для полей калькулятора */
#bolt-pattern-calculator select,
#bolt-pattern-calculator input {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text-main, #f3f4f6);
  background: var(--dark-light, #1e293b);
  border: 2px solid var(--border, #374151);
  border-radius: 8px;
  transition: all 0.25s ease;
  box-sizing: border-box;
  appearance: none;
  outline: none;
}

.google-search-btn {
  background: #3c3c3c;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.3s;
  display: inline-block;
}

.google-search-btn:hover {
  background: #3367d6;
}

.code-item {
  position: relative;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 4px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  header {
    padding: 15px 10px;
    margin-bottom: 15px;
  }
  
  header h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  header p {
    font-size: 0.9rem;
  }
  
  .search-container {
    padding: 15px;
  }
  
  .search-box {
    flex-direction: column;
    gap: 8px;
  }
  
  input, button {
    width: 100%;
    font-size: 16px; /* Предотвращает масштабирование в iOS */
  }
  
  .main-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .sidebar {
    position: static;
    margin-bottom: 15px;
    max-height: none;
  }
  
  .nav-links a {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .section {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .section h2 {
    font-size: 1.2rem;
  }
  
  .section h3 {
    font-size: 1.1rem;
  }
  
  /* Таблицы */
  .spec-table, .connector-table {
    font-size: 0.8rem;
  }
  
  .spec-table th, 
  .spec-table td,
  .connector-table th,
  .connector-table td {
    padding: 6px 4px;
  }
  
  /* Схема OBD кодов */
  .scheme {
    flex-direction: column;
    gap: 10px;
  }
  
  .col {
    flex: none;
  }
  
  .code-part {
    padding: 15px 0;
    font-size: 24px;
  }
  
  /* Калькулятор разболтовки */
  #bolt-pattern-calculator {
    padding: 15px;
  }
  
  #bolt-pattern-calculator > div {
    flex-direction: column;
  }
  
  #wheel {
    width: 180px;
    height: 180px;
    margin-top: 15px;
  }
  
  /* Сетка услуг */
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .service-item {
    padding: 6px;
  }
  
  /* Разъемы ACDelco */
  .connector-controls {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }
  
  .connector-search {
    min-width: auto;
  }
  
  .connector-filters {
    justify-content: space-between;
    width: 100%;
  }
  
  .connector-filters select {
    flex: 1;
    margin: 2px;
  }
  
  /* Аккордеон */
  .accordion-header {
    padding: 12px 10px;
    font-size: 14px;
  }
  
  .accordion-content p {
    padding: 10px;
    font-size: 13px;
  }
  
  /* Кнопки */
  .btn-group {
    display: flex;
    margin-left: 8px;
  }
  
  .copy-btn, .search-btn {
    padding: 4px 6px;
    font-size: 12px;
  }
  
  /* Результаты поиска */
  .suggestions {
    width: 100% !important;
    left: 0 !important;
  }
  
  /* Футер */
  footer {
    margin-top: 20px;
    padding: 15px 10px;
    font-size: 12px;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.3rem;
  }
  
  .section {
    padding: 12px;
  }
  
  .section h2 {
    font-size: 1.1rem;
  }
  
  .service-grid {
    /* grid-template-columns: 1fr; */
  }
  
  .spec-table, .connector-table {
    font-size: 0.75rem;
  }
  
  .connector-table-container {
    max-height: 400px;
  }
  
  /* Улучшаем скроллбар для мобильных */
  .sidebar::-webkit-scrollbar {
    width: 4px;
  }
}

/* Предотвращение горизонтального скролла */
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Улучшение касаний на мобильных */
button, .nav-links a, .suggestions div {
  -webkit-tap-highlight-color: transparent;
  min-height: 44px; /* Минимальный размер для касания */
}

/* Улучшение форм на iOS */
input, select, textarea {
  -webkit-appearance: none;
  border-radius: var(--border-radius);
}

