/* ===== [ns_realizacje] – siatka realizacji z przewijanymi zrzutami ===== */
.ns-realizacje__filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.ns-realizacje__filter button {
  border: 1px solid #d9e1ef;
  background: #fff;
  color: #142b5f;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ns-realizacje__filter button:hover,
.ns-realizacje__filter button.is-active {
  background: #142b5f;
  border-color: #142b5f;
  color: #fff;
}
.ns-realizacje__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
}
.ns-realizacje__item[hidden] {
  display: none;
}
.ns-realizacje__browser {
  display: block;
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e3e8f2;
  border-radius: 14px;
  box-shadow: 0 12px 30px -18px rgba(20, 43, 95, 0.4);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.ns-realizacje__browser::before {
  content: attr(data-domain);
  display: block;
  height: 34px;
  line-height: 34px;
  padding: 0 14px 0 66px;
  font-size: 12px;
  color: #526783;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px solid #e3e8f2;
  background-color: #f5f8ff;
  background-image:
    radial-gradient(circle, #ff5f57 4px, transparent 4.5px),
    radial-gradient(circle, #febc2e 4px, transparent 4.5px),
    radial-gradient(circle, #28c840 4px, transparent 4.5px);
  background-size: 10px 10px;
  background-repeat: no-repeat;
  background-position: 14px center, 30px center, 46px center;
}
.ns-realizacje__browser img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  transition: object-position 0.9s ease-out;
}
.ns-realizacje__item:hover .ns-realizacje__browser {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -20px rgba(20, 43, 95, 0.5);
}
.ns-realizacje__item:hover .ns-realizacje__browser img {
  object-position: center bottom;
  transition: object-position var(--ns-scroll-time, 5s) linear;
}
.ns-realizacje__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 22px;
}
.ns-realizacje__title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.25;
}
.ns-realizacje__title a {
  color: #142b5f;
  text-decoration: none;
}
.ns-realizacje__title a:hover {
  color: #1f5abc;
}
.ns-realizacje__type {
  margin: 0;
  color: #526783;
  font-size: 15px;
}
.ns-realizacje__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.ns-realizacje__tags span {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f5f8ff;
  color: #142b5f;
}
.ns-realizacje__arrow {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid #d9e1ef;
  border-radius: 12px;
  color: #142b5f;
  font-size: 20px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ns-realizacje__item:hover .ns-realizacje__arrow {
  background: #fe5732;
  border-color: #fe5732;
  color: #fff;
}
.ns-realizacje__more {
  text-align: center;
  margin-top: 50px;
}
.ns-realizacje__more[hidden] {
  display: none;
}
.ns-realizacje__more button {
  border: 0;
  background: #fe5732;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 18px 40px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ns-realizacje__more button:hover {
  background: #142b5f;
}
@media (max-width: 991px) {
  .ns-realizacje__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }
}
@media (max-width: 600px) {
  .ns-realizacje__grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ns-realizacje__browser,
  .ns-realizacje__browser img {
    transition: none !important;
  }
}
