.selector-block {
  margin: 20px auto;
  text-align: center;
}

.selector-block select {
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml;utf8,<svg fill='black' height='24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 10px center;
  background-size: 16px;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 200px;
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 10px auto;
}

.selector-block select:hover {
  border-color: #00a2c9;
  box-shadow: 0 0 6px rgba(0,162,201,0.3);
}

.selector-block select:focus {
  outline: none;
  border-color: #0077a6;
  box-shadow: 0 0 8px rgba(0,119,166,0.5);
}

label[for="yearSelect"] {
  display: none !important;
}

#yearSelect {
  all: unset;
  all: revert;
}

#yearSelect {
  /* Inherit styles from .selector-block select */
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml;utf8,<svg fill='black' height='24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 10px center;
  background-size: 16px;
  appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 200px;
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 10px auto;
}

#yearSelect:hover {
  border-color: #00a2c9;
  box-shadow: 0 0 6px rgba(0,162,201,0.3);
}

#yearSelect:focus {
  outline: none;
  border-color: #0077a6;
  box-shadow: 0 0 8px rgba(0,119,166,0.5);
}

/* --- Карточки щёток --- */
.wiper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.wiper-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.wiper-card:hover {
  transform: scale(1.05);
}

.wiper-card .image-wrapper {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.wiper-card img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.wiper-card .card-title {
  font-size: 18px;
  font-weight: bold;
  color: #0077a6;
  margin: 8px 0;
}

/* --- Адаптер --- */
#adapter-container {
  margin: 20px auto;
  max-width: 400px;
  text-align: center;
}

#adapter-container .adapter-block {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 16px;
}

/* Когда есть результат - сдвиг селекторов влево */
.has-results {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.has-results .selector-block {
  align-items: flex-start;
  text-align: left;
  flex: 1 1 300px;
}

.has-results #adapter-container {
  margin-top: 0;
  float: none;
  flex: 0 0 400px;
}

/* Центрирование карточек щёток */
.has-results .wiper-grid {
  justify-content: center;
}

/* Медиазапросы для мобильных устройств */
@media (max-width: 768px) {
  .has-results {
    flex-direction: column;
    align-items: center;
  }

  .has-results .selector-block,
  .has-results #adapter-container {
    flex: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px auto;
  }

  .has-results #adapter-container {
    margin-top: 20px;
  }
}

/* ---------- HEADER ---------- */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid #ccc;
}

.left-logos img {
  max-height: 36px;
  max-width: 100px;
  object-fit: contain;
}

.logo-main {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo-main img {
  max-height: 54px;
  object-fit: contain;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 13px;
  color: #0077a6;
  white-space: nowrap;
}

.contact-info a {
  margin: 2px 0;
  color: #0077a6;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ---------- NAV ---------- */
nav.main-nav {
  background-color: #00a2c9;
  font-weight: 600;
  font-size: 14px;
}

nav.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav.main-nav li {
  margin: 0 15px;
}

nav.main-nav a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
}

nav.main-nav a:hover {
  background-color: #007fa1;
}

/* --- Аксессуары --- */
.accessory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.accessory-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 16px;
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.accessory-card:hover {
  transform: scale(1.05);
}

.accessory-card img {
  max-height: 160px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 10px;
}

.accessory-card .card-title {
  font-size: 16px;
  font-weight: bold;
  color: #0077a6;
  margin: 6px 0;
}

/* --- Модалка аксессуаров --- */
.modal-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #0077a6;
  text-align: center;
}

.modal-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 15px;
}

.modal-photos img {
  max-width: 180px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.modal-description {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  margin: 10px 0;
  text-align: left;
}