.accessories-page-title {
  margin: 18px 0 8px;
  text-align: center;
  color: #006f91;
  font-size: clamp(28px, 4vw, 42px);
}

.accessory-section { margin: 28px 0 44px; }
.category-title {
  margin: 0 0 18px;
  color: #006f91;
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
}

.accessory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 22px;
  max-width: 1500px;
  margin: 0 auto;
}

.accessory-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: #fff;
  border: 1px solid #edf1f3;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(24, 58, 76, .09);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  color: inherit;
  text-decoration: none;
}
.accessory-card:hover,
.accessory-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(24, 58, 76, .16);
  outline: none;
}
.accessory-card__image {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 10px;
  background: #f8fafb;
}
.accessory-card__image img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}
.accessory-card__article {
  color: #0088ae;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .02em;
}
.accessory-card__category {
  align-self: center;
  margin: 0 0 7px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf7fa;
  color: #47717f;
  font-size: 11px;
  font-weight: 700;
}
.accessory-card__name {
  margin: 7px 0 8px;
  color: #163a4c;
  font-size: 17px;
  line-height: 1.3;
}
.accessory-card__description {
  display: -webkit-box;
  margin: auto 0 0;
  overflow: hidden;
  color: #5f6f77;
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.accessory-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(6, 26, 36, .78);
}
.accessory-modal.is-open { display: flex; }
.accessory-modal__dialog {
  position: relative;
  width: min(980px, 96vw);
  max-height: 92vh;
  overflow: auto;
  padding: 28px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}
.accessory-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #49616d;
  font-size: 34px;
  cursor: pointer;
}
.accessory-modal__title {
  margin: 0 42px 6px 0;
  color: #006f91;
  font-size: clamp(22px, 4vw, 30px);
}
.accessory-modal__meta { margin-bottom: 18px; color: #6b7b83; font-weight: 700; }
.accessory-modal__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.accessory-modal__gallery img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  border: 1px solid #e5ebee;
  border-radius: 10px;
  background: #fafcfd;
}
.accessory-modal__description { color: #263f4b; line-height: 1.65; white-space: pre-line; }
.accessory-modal__description.is-empty { color: #829099; font-style: italic; }
.accessory-modal__page-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 0 20px;
  border-radius: 999px;
  background: #0088ae;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.modal-open { overflow: hidden; }
.accessories-error { padding: 30px; text-align: center; color: #a33; }

@media (max-width: 640px) {
  .accessory-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .accessory-card { min-height: 330px; padding: 11px; }
  .accessory-card__image { height: 145px; }
  .accessory-card__name { font-size: 14px; }
  .accessory-card__description { font-size: 12px; -webkit-line-clamp: 2; }
  .accessory-modal__dialog { padding: 20px; }
}

@media (max-width: 420px) {
  .accessory-grid { grid-template-columns: 1fr; }
}
