/* ===================================
   ASYSTA GOZ PAGE STYLES - PREMIUM REDESIGN
   =================================== */

/* Zmienne i podstawowe ustawienia korzystają z :root zdefiniowanego w style.css */

/* --- Container & Layout --- */
.asysta-goz-page {
  overflow-x: clip;
}

.asysta-goz-page .container {
  max-width: var(--max-content-width, 1456px);
  margin: 0 auto;
  padding: 0 var(--container-padding, 16px);
}

/* Hero na pełną szerokość — nadpisanie ograniczeń Gutenberg layout */
.asysta-goz-page > .hero-section {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.asysta-services-section {
  background-color: var(--goz-light-bg);
  position: relative;
  overflow: hidden;
}

.asysta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}


/* --- DIAGNOZA GOZ (Wyróżniona Kategoria) --- */
.asysta-category-section-wrapper {
  background-color: var(--goz-gray-bg);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  margin-bottom: 80px;
}

.asysta-category-section-wrapper:last-child {
  margin-bottom: 0;
}

/* Wrapper karty usługi — osobne białe tło */
.asysta-service-card-wrapper,
.asysta-service-item {
  background: var(--goz-light-bg);
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(33, 51, 97, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

/* Kontener na usługi w kategorii — bez własnego tła */
.asysta-category__body {
  overflow: hidden;
}

.asysta-category--featured {
  position: relative;
  /* Usunięte paddingi, szare tło, bordery i obłe rogi dla pełnej szerokości ekranu na zewnątrz */
}

.asysta-category-blob {
  position: absolute;
  width: 900px;
  height: 300px;
  background-color: rgba(4, 108, 181, 0.15); /* Subtelny var(--goz-accent) */
  border-radius: 50% / 40%;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%) scaleY(0.7);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.asysta-category__inner {
  position: relative;
  z-index: 1;
}

.asysta-category__intro {
  margin-bottom: 56px;
  max-width: 850px;
}

/* --- Sticky Section Header (iOS progressive blur style) --- */
.asysta-sticky-category-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px; /* Wysokość strefy z rozmyciem */
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none; /* By nie blokować klików jeśli niewidoczny */
  will-change: transform;
}

.asysta-sticky-category-header.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.asysta-sticky-content {
  position: relative;
  z-index: 20;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 25px; /* Podniesienie tekstu do góry bliżej krawędzi opartych na rozmyciu */
}

.asysta-sticky-category-header__title {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--goz-primary);
  letter-spacing: -0.01em;
}

/* Progressive blur structures */
.progressive-blur-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
}

.progressive-blur-container > .blur-filter {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.progressive-blur-container > .blur-filter:nth-child(1) {
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  mask: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 40%);
  -webkit-mask: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 0) 40%);
}

.progressive-blur-container > .blur-filter:nth-child(2) {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  mask: linear-gradient(to top, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 50%);
  -webkit-mask: linear-gradient(to top, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 50%);
}

.progressive-blur-container > .blur-filter:nth-child(3) {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  mask: linear-gradient(to top, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 60%);
  -webkit-mask: linear-gradient(to top, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 1) 30%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 60%);
}

.progressive-blur-container > .blur-filter:nth-child(4) {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask: linear-gradient(to top, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 70%);
  -webkit-mask: linear-gradient(to top, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 70%);
}

.progressive-blur-container > .blur-filter:nth-child(5) {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  mask: linear-gradient(to top, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 90%);
  -webkit-mask: linear-gradient(to top, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 90%);
}

.progressive-blur-container > .blur-filter:nth-child(6) {
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  mask: linear-gradient(to top, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1) 80%);
  -webkit-mask: linear-gradient(to top, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1) 80%);
}

.progressive-blur-container > .blur-filter:nth-child(7) {
  z-index: 10;
  backdrop-filter: blur(64px);
  -webkit-backdrop-filter: blur(64px);
  mask: linear-gradient(to top, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 1) 100%);
  -webkit-mask: linear-gradient(to top, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 1) 100%);
}

.progressive-blur-container > .gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, transparent, rgba(233, 235, 239, 0.75) 60%, rgba(233, 235, 239, 0.95) 100%);
  z-index: 11;
  pointer-events: none;
}

.asysta-category__title {
  font-family: "Inter", sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--goz-primary);
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.asysta-category__desc {
  font-family: "Inter", sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--goz-primary);
  opacity: 0.85;
  margin: 0;
  font-weight: 400;
  max-width: 850px;
}

.asysta-category__subtitle {
  font-family: "Inter", sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--goz-primary);
  margin-bottom: 0;
  padding: 28px 28px 24px;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .asysta-category-blob {
    width: 600px;
    height: 200px;
    bottom: -100px;
    filter: blur(100px);
  }
  .asysta-category__title {
    font-size: 1.75rem;
  }
  .asysta-category__desc {
    font-size: 1.125rem;
  }
  .asysta-category__subtitle {
    font-size: 1.375rem;
    margin-bottom: 32px;
  }
}

/* --- KARTY USŁUG (Wspólne cechy premium) --- */
.asysta-card {
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  overflow: hidden;
  height: 100%;
  position: relative;
  z-index: 1;
}

.asysta-card__content {
  flex: 1;
}

.asysta-card__title {
  font-family: "Inter", sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--goz-primary);
  margin-bottom: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.asysta-card__title-white {
  font-family: "Inter", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--goz-light-bg);
  margin: 0;
  flex: 1;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.asysta-card__text {
  font-size: 1.0625rem;
  color: rgba(33, 51, 97, 0.85);
  line-height: 1.6;
  margin-bottom: 28px;
  font-weight: 400;
}

.asysta-card__text p {
  margin: 0 0 12px;
}

.asysta-card__text p:last-child {
  margin-bottom: 0;
}

/* --- Standardowa lista (wewnątrz opisu, z WYSIWYG) --- */
.asysta-card__text ul {
  padding-left: 20px;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asysta-card__text li {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(33, 51, 97, 0.85);
}

/* --- Lista z premium checkmarkami (tylko rezultat) --- */

.asysta-card__result li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--goz-primary);
  font-weight: 500;
  margin-bottom: 8px;
}

.asysta-card__result li:last-child {
  margin-bottom: 0;
}

/* Jeśli WYSIWYG wstawi <p> do <li> */
.asysta-card__result li p {
  margin: 0;
}

.asysta-card__result li::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23C747E7' fill-opacity='0.1'/%3E%3Cpath d='M16.5 8L10.3125 15.5L7.5 12.0909' stroke='%23C747E7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
  margin-top: 1px; /* Lepiej wyśrodkowane z tekstem */
}

/* --- Stopka karty i rezultaty --- */
.asysta-card__footer {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.asysta-card__result {
  background-color: var(--goz-light-bg);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(106, 118, 148, 0.15);
  box-shadow: inset 0 2px 8px rgba(33, 51, 97, 0.02);
}

.asysta-card__result strong {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--goz-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-weight: 800;
}

.asysta-card__result strong::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--goz-accent);
  border-radius: 50%;
}

.asysta-card__result p {
  font-size: 0.9375rem;
  color: var(--goz-secondary);
  line-height: 1.7;
  margin: 0;
  font-weight: 500;
}

/* --- Sekcja Logotypów Klientów (Social Proof) --- */
.asysta-card__clients {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.asysta-card__clients-title {
  font-size: 0.8125rem;
  color: var(--goz-secondary);
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.asysta-card__clients-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.asysta-card__clients-logos img {
  max-height: 40px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.asysta-card__clients-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* --- WARIANTY KART --- */

/* Karta Jasna — teraz bez własnego tła, bo tło jest na .asysta-category__body */
.asysta-card--light {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
  border-radius: 0;
}

.asysta-card--light .asysta-card__content,
.asysta-card--light .asysta-card__footer {
  padding-left: 28px;
  padding-right: 28px;
}

.asysta-card--light .asysta-card__footer {
  padding-bottom: 32px;
}

.asysta-card__header--light {
  padding: 28px 28px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.asysta-card__header--light .asysta-card__title {
  margin-bottom: 0;
  flex: 1;
  font-size: 1.35rem;
}

.asysta-card__provider {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.asysta-card__provider-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--goz-secondary);
  opacity: 0.6;
  font-weight: 600;
}

.asysta-card__provider img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

/* Hover usunięty — brak osobnego tła karty */

/* Karta Standardowa (nieskategoryzowana) */
.asysta-card--standard {
  background: var(--goz-light-bg);
  box-shadow: 0 8px 32px rgba(33, 51, 97, 0.06);
  border: 1px solid var(--goz-border-color);
}

.asysta-card--standard:hover {
  box-shadow: 0 24px 56px rgba(33, 51, 97, 0.12);
  border-color: transparent;
}

.asysta-card__body-wrapper {
  padding: 48px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Nagłówki kart ze zdjęciami i eleganckim gradientem */
.asysta-card__header {
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 160px;
  position: relative;
  overflow: hidden;
}

/* Dekoracyjne tło w nagłówkach kart */
.asysta-card__header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(40px);
  border-radius: 50%;
  pointer-events: none;
}

.asysta-card__header--blue {
  background: linear-gradient(135deg, var(--goz-primary) 0%, #2a4480 100%);
}

.asysta-card__header--purple {
  background: linear-gradient(135deg, #3d1b54 0%, #7b3d8a 100%);
}

.asysta-card__photos {
  display: flex;
  gap: -20px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.asysta-card__photos img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.25);
  margin-left: -24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: border-color 0.4s ease;
}

.asysta-card__photos img:first-child {
  margin-left: 0;
}

.asysta-card:hover .asysta-card__photos img {
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 1200px) {
  .asysta-card--light .asysta-card__content,
  .asysta-card--light .asysta-card__footer,
  .asysta-card__header--light {
    padding-left: 24px;
    padding-right: 24px;
  }
  .asysta-card__header--light {
    padding-top: 24px;
  }
  .asysta-card--light .asysta-card__footer {
    padding-bottom: 28px;
  }
  .asysta-card__body-wrapper {
    padding: 32px;
  }
  .asysta-card__header {
    padding: 32px;
  }
}

@media (max-width: 576px) {
  .asysta-card__header,
  .asysta-card__header--light {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 16px;
  }
  .asysta-card--light .asysta-card__content,
  .asysta-card--light .asysta-card__footer,
  .asysta-card__header--light {
    padding-left: 20px;
    padding-right: 20px;
  }
  .asysta-card__body-wrapper {
    padding: 32px 24px;
  }
  .asysta-card__photos img {
    width: 60px;
    height: 60px;
  }
}

/* --- POZOSTAŁE USŁUGI HEADER --- */
.asysta-other-services {
  margin-top: 40px;
}

.asysta-other-services .asysta-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ===================================
   UWAGA: Usunięto lokalne style dla .goz-button 
   aby dziedziczyły globalne (motywowe) style przycisków
   zdefiniowane w style.css
   =================================== */

/* ===================================
   ASYSTA SERVICE ITEM (Szablon ACF)
   Usługa wewnątrz białego kontenera kategorii
   =================================== */

.asysta-service-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
}

.asysta-service-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.asysta-service-item__title {
  font-family: "Inter", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--goz-primary);
  margin: 0;
  flex: 1;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.asysta-service-item__provider {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.asysta-service-item__provider-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--goz-secondary);
  opacity: 0.6;
  font-weight: 600;
}

.asysta-service-item__provider img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.asysta-service-item__content {
  flex: 1;
}

.asysta-service-item__text {
  font-size: 1.0625rem;
  color: rgba(33, 51, 97, 0.85);
  line-height: 1.6;
  margin-bottom: 28px;
  font-weight: 400;
}

.asysta-service-item__text p {
  margin: 0 0 12px;
}

.asysta-service-item__text p:last-child {
  margin-bottom: 0;
}

.asysta-service-item__text ul {
  padding-left: 20px;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asysta-service-item__text li {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(33, 51, 97, 0.85);
}

.asysta-service-item__footer {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Rezultat */
.asysta-service-item__result {
  background-color: var(--goz-light-bg);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(106, 118, 148, 0.15);
  box-shadow: inset 0 2px 8px rgba(33, 51, 97, 0.02);
}

.asysta-service-item__result strong {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--goz-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-weight: 800;
}

.asysta-service-item__result strong::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--goz-accent);
  border-radius: 50%;
}

.asysta-service-item__result p {
  font-size: 0.9375rem;
  color: var(--goz-secondary);
  line-height: 1.7;
  margin: 0;
  font-weight: 500;
}

.asysta-service-item__result li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--goz-primary);
  font-weight: 500;
  margin-bottom: 8px;
}

.asysta-service-item__result li:last-child {
  margin-bottom: 0;
}

.asysta-service-item__result li p {
  margin: 0;
}

.asysta-service-item__result li::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23C747E7' fill-opacity='0.1'/%3E%3Cpath d='M16.5 8L10.3125 15.5L7.5 12.0909' stroke='%23C747E7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Klienci / Social Proof */
.asysta-service-item__clients {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.asysta-service-item__clients-title {
  font-size: 0.8125rem;
  color: var(--goz-secondary);
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.asysta-service-item__clients-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.asysta-service-item__clients-logos img {
  max-height: 40px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.asysta-service-item__clients-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .asysta-service-item {
    padding: 24px 20px;
  }
  .asysta-service-item__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

