img {
  display: block;
  max-width: 100%;
}

/* Brakujące rastry: geometria i kadrowanie pochodzą ze źródła i referencji 1440 px. */
.s-hero-media {
  overflow: hidden;
}

.s-hero-media__image,
.s-hero-media__video {
  position: absolute;
  top: 0;
  left: -89px;
  width: 1638px;
  max-width: none;
  height: 810px;
  object-fit: cover;
}

.s-hero-media__video {
  z-index: 1;
  display: block;
  pointer-events: none;
}

/* Tło hero zawsze wypełnia cały kadr, niezależnie od proporcji pliku. */
.s-hero-media__image,
.s-hero-media__video {
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-offer-card__media {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(37, 37, 37, 0.1);
}

.s-offer-card__image,
.s-gallery__image {
  position: absolute;
  max-width: none;
}

/* Zdjęcie oferty wypełnia ramkę bez zniekształcania. */
.s-offer-card__image {
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-gallery__image {
  object-fit: cover;
}

.s-offer-card__image--protection,
.s-offer-card__image--training {
  inset: 0;
  width: 100%;
  height: 100%;
}

.s-gallery__large,
.s-gallery__small {
  position: relative;
  overflow: hidden;
  background: var(--s-ink);
  border: 1px solid rgba(37, 37, 37, 0.1);
}

.s-gallery__image--large {
  top: -63px;
  left: 0;
  width: 750px;
  height: 563px;
}

.s-gallery__image--small-base {
  inset: 0;
  width: 434px;
  height: 242px;
}

.s-gallery__image--small-one {
  top: -43px;
  left: 0;
  width: 482px;
  height: 361px;
}

.s-gallery__image--small-two {
  top: -45px;
  left: 0;
  width: 482px;
  height: 321px;
}

.s-avatar-slot {
  object-fit: cover;
}

.s-cta__background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-location__media {
  overflow: hidden;
}

/* Wspólny hover zdjęć na podstronach: skaluje obraz wewnątrz nieruchomej ramki. */
.s-main [class$="__media"] {
  overflow: hidden;
}

.s-main [class$="__media"]:not(.s-hero-media) > img,
.s-main [class$="__background"] > img {
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

.s-main [class$="__media"]:not(.s-hero-media):hover > img,
.s-main [class$="__background"]:hover > img {
  transform: scale(1.045);
}

.s-location__image {
  width: 594px;
  height: 450px;
}

/* Brakujące wektory: jedyny dozwolony styl diagnostyczny kontraktu. */
.s-feature-card__icon-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--s-panel);
}

.s-navigation__control--active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.s-navigation__active-marker {
  width: 4px;
  height: 4px;
}

.s-feature-card__icon-slot {
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent;
}

.s-team-card__media {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.s-team-card__person-slot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-brand-slot,
.s-navigation__active-marker,
.s-button__icon-slot,
.s-badge__icon-slot,
.s-feature-card__icon-slot,
.s-rating__stars-slot,
.s-social-icon-slot {
  border: 0;
  box-sizing: border-box;
}

/* Ikony przycisków. */
.s-button__icon-slot {
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.s-button--dark .s-button__icon-slot,
.s-button--glass .s-button__icon-slot {
  background-image: url("http://presti.studiosimplo.pl/wp-content/uploads/2026/10/Right.svg");
}

.s-button--light .s-button__icon-slot {
  background-image: url("http://presti.studiosimplo.pl/wp-content/uploads/2026/10/right-arrow-black.svg");
}

/* Przyciski: bez podkreślenia i z przechodzącym refleksem liquid glass. */
.s-button,
.s-button:hover,
.s-button:focus,
.s-button:active {
  text-decoration: none;
}

.s-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.s-button::before {
  position: absolute;
  z-index: 0;
  top: -80%;
  left: -55%;
  width: 38%;
  height: 260%;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.72),
    rgba(255, 255, 255, 0)
  );
  filter: blur(5px);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(0) rotate(14deg);
}

.s-button:hover {
  box-shadow: 0 10px 30px rgba(16, 16, 16, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transform: translateY(-2px);
}

.s-button:hover::before {
  animation: s-liquid-glass-shine 720ms ease-out;
}

@keyframes s-liquid-glass-shine {
  0% {
    opacity: 0;
    transform: translateX(0) rotate(14deg);
  }
  20% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateX(430%) rotate(14deg);
  }
}

/* Powiększa się wyłącznie zawartość zdjęcia; ramka zachowuje rozmiar. */
.s-offer-card__image,
.s-gallery__image,
.s-avatar-slot,
.s-team-card__person-slot,
.s-cta__background-image,
.s-location__image {
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

.s-offer-card__media:hover .s-offer-card__image,
.s-gallery__large:hover .s-gallery__image,
.s-gallery__small:hover .s-gallery__image,
.s-testimonial-card:hover .s-avatar-slot,
.s-team-card__media:hover .s-team-card__person-slot,
.s-cta:hover .s-cta__background-image,
.s-location__media:hover .s-location__image {
  transform: scale(1.045);
}

/* Wspólny hover kart prezentacyjnych na stronie głównej i podstronach. */
.s-feature-card,
.s-testimonial-card,
.s-process-card,
.s-contact-process-card,
.s-training-program-card,
.s-about-timeline__card {
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.s-feature-card:hover,
.s-testimonial-card:hover,
.s-process-card:hover,
.s-contact-process-card:hover,
.s-training-program-card:hover,
.s-about-timeline__card:hover {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  transform: translateY(-6px);
}

@media (min-width: 1101px) {
  .s-hero__content {
    width: 60%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s-button,
  .s-feature-card,
  .s-testimonial-card,
  .s-process-card,
  .s-contact-process-card,
  .s-training-program-card,
  .s-about-timeline__card,
  .s-offer-card__image,
  .s-gallery__image,
  .s-avatar-slot,
  .s-hero-media__image,
  .s-team-card__person-slot,
  .s-cta__background-image,
  .s-location__image,
  .s-main [class$="__media"]:not(.s-hero-media) > img,
  .s-main [class$="__background"] > img {
    transition: none;
  }

  .s-button:hover::before {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .s-hero-media__image,
  .s-hero-media__video,
  .s-offer-card__image,
  .s-gallery__image,
  .s-location__image {
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
  }
}
