/* Wspólne, mniejsze przyciski galerii i odnośników do usług. */
.service-control {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(181, 108, 255, .26);
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(18, 25, 36, .98), rgba(9, 13, 20, .98));
  color: #e7eaf2;
  font: inherit;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  transition: border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}
.service-control::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #c58bff, transparent);
  opacity: 0;
}
.service-control .service-control-art {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  color: #c58bff;
}
.service-control .service-control-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: brightness(.95) saturate(.92);
  transition: filter .2s ease;
}
.service-control .service-control-art svg { display: block; width: 100%; height: 100%; }
.service-control .service-control-label { display: block; min-width: 0; }
.service-control .service-control-arrow {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-left: auto;
  color: #bd79ff;
}
.service-control:focus-visible {
  border-color: #c58bff;
  outline: 2px solid #c58bff;
  outline-offset: 3px;
}
.service-control:active { border-color: #c58bff; color: #fff; }
.service-control[aria-current="page"],
#galleryFilters .service-control.active {
  border-color: #bd79ff;
  background: linear-gradient(155deg, #1c152d, #0d111b);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2), 0 0 18px rgba(139, 53, 255, .13);
}
.service-control[aria-current="page"]::after,
#galleryFilters .service-control.active::after { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .service-control:hover {
    border-color: #c58bff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .24), 0 0 18px rgba(139, 53, 255, .13);
  }
  .service-control:hover .service-control-art img {
    filter: brightness(1.15) saturate(1.05) drop-shadow(0 0 5px rgba(139, 53, 255, .4));
  }
}
#galleryFilters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 490px;
  max-width: 100%;
  padding: 3px 0;
  overflow: visible;
}
#galleryFilters[hidden] { display: none; }
#galleryFilters .filter.service-control {
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-height: 98px;
  padding: 10px 6px;
  border-radius: 10px;
  font-size: 11px;
  white-space: normal;
  text-align: center;
}
#galleryFilters .service-control-art { width: 64px; height: 39px; }
#galleryFilters .service-control-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
}
.service-related-links.service-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.service-controls-grid .service-control {
  gap: 15px;
  min-height: 108px;
  padding: 16px;
  font-size: 14px;
}
.service-controls-grid .service-control-art { width: 94px; height: 64px; }
.service-navigation-section {
  box-sizing: border-box;
  width: 100%;
  padding: 72px 0;
  background: #080b11;
  border-top: 1px solid rgba(177, 197, 224, .12);
}
.service-navigation-section .service-navigation-wrap {
  width: min(calc(100% - 48px), 1180px);
  margin-inline: auto;
}
.service-navigation-section h2 {
  margin: 0 0 32px;
  color: #f4f7fb;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -.035em;
}
@media (max-width: 1100px) {
  .service-controls-grid .service-control { gap: 12px; padding: 14px; }
  .service-controls-grid .service-control-art { width: 76px; height: 58px; }
}
@media (max-width: 980px) {
  .service-related-links.service-controls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  #galleryFilters {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding: 3px 2px 10px;
    scrollbar-color: #6c438d #0c1017;
    scrollbar-width: thin;
  }
  #galleryFilters .filter.service-control { flex: 0 0 98px; }
  .service-related-links.service-controls-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .service-controls-grid .service-control { min-height: 94px; padding: 14px 16px; }
  .service-controls-grid .service-control-art { width: 82px; height: 58px; }
  .service-navigation-section { padding: 56px 0; }
  .service-navigation-section .service-navigation-wrap { width: calc(100% - 28px); }
}
@media (prefers-reduced-motion: reduce) {
  .service-control, .service-control .service-control-art img { transition: none; }
  .service-control:hover { transform: none; }
}
