/* Dodatkowe sekcje strony. Ten arkusz edytujemy bez kompilacji SCSS. */
.clinic-intro,
.team-intro {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  text-align: center;
  line-height: 1.7;
}

.clinic-section .clinic-link {
  color: #fff;
  text-underline-offset: 0.2em;
}

.clinic-section .clinic-link:hover {
  color: #c4dcff;
}

.team-section {
  color: #292929;
}

.team-group-title {
  margin: 2.5rem 0 1.25rem;
  font-size: 1.4rem;
  font-weight: 700;
  scroll-margin-top: 1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
}

.team-card {
  min-width: 0;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #dce2ea;
  border-top: 3px solid var(--color);
  border-radius: 8px;
  line-height: 1.65;
  font-size: 0.95rem;
}

.team-card-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.team-card-heading > div {
  min-width: 0;
}

.team-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

.team-photo,
.team-initials {
  display: block;
  flex: 0 0 80px;
  width: 80px;
  height: 106px;
  border-radius: 6px;
}

.team-photo {
  object-fit: cover;
  object-position: center 25%;
}

/* Kadry twarzy i ramion z oryginalnych plików, bez retuszu zdjęć. */
.team-portrait-kamil,
.team-portrait-anna,
.team-portrait-ambroziak {
  position: relative;
  display: block;
  flex: 0 0 80px;
  width: 80px;
  height: 106px;
  overflow: hidden;
  border-radius: 6px;
}

.team-portrait-kamil .team-photo-kamil {
  position: absolute;
  width: 210%;
  height: auto;
  max-width: none;
  left: -63%;
  top: -50%;
  border-radius: 0;
}

.team-portrait-anna .team-photo,
.team-portrait-ambroziak .team-photo {
  position: absolute;
  height: auto;
  max-width: none;
  border-radius: 0;
}

.team-portrait-anna .team-photo {
  width: 165%;
  left: -25%;
  top: -5%;
}

.team-portrait-ambroziak .team-photo {
  width: 180%;
  left: -40%;
  top: -8%;
}

.team-initials {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #eaf1fc;
  color: #245da8;
  font-size: 1.5rem;
  font-weight: 700;
}

.team-card .team-role {
  margin: 0;
  color: #555;
  font-size: 0.85rem;
  line-height: 1.5;
}

.team-card a,
.team-details summary {
  color: #245da8;
  text-underline-offset: 0.2em;
}

.team-details {
  border-top: 1px solid #e2e6ed;
  padding-top: 0.75rem;
}

.team-details summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.25rem 0;
}

.team-details[open] summary {
  margin-bottom: 0.75rem;
}

.team-details ul {
  padding-left: 1.25rem;
}

.team-registration {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 8px;
  background: #eaf1fc;
  text-align: center;
}

.team-registration p {
  margin: 0.5rem 0;
}

.team-registration a {
  color: #245da8;
  font-size: 1.4rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .team-grid-doctors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Kolejność i wspólna oprawa: lekarz → przychodnia → zespół → wizyta. */
body {
  background: #fff;
  color: #292929;
}

#navId {
  background: #182b40;
}

nav .nav-shadow {
  display: none;
}

nav .nav-heading {
  font-size: 1rem;
  text-transform: none;
}

nav .brand-specialty {
  font-weight: 400;
}

nav .nav-link {
  font-size: 0.85rem;
  text-transform: none;
}

nav .nav-booking {
  border: 1px solid #9ebde8;
  border-radius: 6px;
  padding-inline: 1rem !important;
}

header.hero-img {
  height: auto;
  min-height: min(760px, 90svh);
}

header.hero-img .hero-text {
  min-height: inherit;
  padding: 130px 24px 90px !important;
  animation: none;
  opacity: 1;
}

.legacy-home-anchor {
  position: absolute;
  top: 0;
}

.hero-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: #c5daf7;
}

.hero-text h1 {
  font-size: clamp(2.15rem, 5vw, 4.3rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0.7rem 0 1.5rem;
}

.hero-description {
  max-width: 680px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.hero-actions a {
  padding: 0.85rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.action-primary {
  background: #245da8;
  color: #fff;
  border: 1px solid #245da8;
}

.action-secondary {
  color: #fff;
  border: 1px solid #b6c3d5;
}

.hero-actions a:hover {
  background: #fff;
  border-color: #fff;
  color: #182b40;
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.section-eyebrow {
  text-align: center;
  color: #245da8;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.section-lead {
  max-width: 750px;
  margin: 0 auto 2.5rem;
  text-align: center;
  line-height: 1.75;
}

.doctor-grid,
.visit-grid,
.doctor-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.info-panel {
  padding: 1.75rem;
  border: 1px solid #dce2ea;
  border-radius: 8px;
  line-height: 1.75;
  background: #fff;
}

.info-panel h3,
.surgery-location h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.doctor-section a,
.visit-section a {
  color: #245da8;
  text-underline-offset: 0.2em;
}

.doctor-biography {
  margin-top: 2rem;
  line-height: 1.8;
}

.biography-copy {
  max-width: 900px;
  margin: 1.5rem auto;
}

.doctor-gallery {
  max-width: 900px;
  margin: 0 auto;
}

.doctor-gallery img {
  display: block;
  max-width: 100%;
  height: 180px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.doctor-gallery figcaption {
  font-size: 0.85rem;
  color: #555;
}

.clinic-section.home-hero {
  background: #182b40;
  color: #fff;
}

.clinic-section .home-shadow {
  display: none;
}

.team-section {
  border-bottom: 1px solid #e2e6ed;
}

.underline {
  background-color: var(--color);
  margin-bottom: 2rem;
}

.prices-hero {
  background: #fff;
  color: #292929;
}

.prices-hero .prices-container {
  background: none;
  padding: 0;
  overflow: visible;
}

.prices-hero .prices-item {
  background: #f6f8fb;
  border: 1px solid #dce2ea;
  padding: 1.5rem;
  transition: none;
}

.prices-hero .prices-item:hover {
  transform: none;
  background: #f6f8fb;
}

.prices-hero h3 {
  color: #292929;
  font-size: 1rem;
  line-height: 1.65;
}

.prices-hero .note {
  color: #555;
}

.prices-hero .price {
  color: #245da8;
}

.patients {
  background: #f6f8fb;
  line-height: 1.8;
}

.patients .ul-list {
  width: 100%;
  max-width: 900px;
  text-align: left !important;
}

.visit-section .registration-number {
  display: inline-block;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.visit-schedule,
.visit-emergency {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e6ed;
}

.visit-emergency p {
  margin-bottom: 0;
}

.visit-section .image-container {
  margin-top: 1rem;
}

.clinic-map {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 6px;
}

.map-external-link {
  display: inline-block;
  margin-top: 1rem;
}

.surgery-location {
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #e2e6ed;
  line-height: 1.75;
}

@media (max-width: 767px) {
  .doctor-grid,
  .visit-grid,
  .doctor-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .info-panel {
    padding: 1.25rem;
  }

  .hero-actions {
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  header.hero-img .fa-chevron-down {
    animation: none;
  }
}

.price-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.patient-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.patient-grid .info-panel {
  min-width: 0;
}

.patient-checklist {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.patient-checklist li + li {
  margin-top: 0.75rem;
}

.patient-grid a {
  color: #245da8;
  text-underline-offset: 0.2em;
}

.patient-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

@media (max-width: 767px) {
  .patient-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.price-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.5rem;
  background: #f6f8fb;
  border: 1px solid #dce2ea;
  border-radius: 8px;
}

.price-group h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.price-description {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.price-list {
  margin: auto 0 0;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #dce2ea;
}

.price-row:last-child {
  padding-bottom: 0;
}

.price-row dt {
  font-weight: 400;
  line-height: 1.6;
}

.price-row dd {
  margin: 0;
  color: #245da8;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.price-note {
  display: block;
  margin-top: 0.35rem;
  color: #555;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.6;
}

.price-procedures {
  margin-top: 1.5rem;
}

@media (max-width: 767px) {
  .price-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .price-group {
    padding: 1.25rem;
  }

  .price-procedures .price-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .price-procedures .price-row dd {
    text-align: left;
  }
}

.clinical-source {
  color: #526078;
  font-size: 0.85rem;
  line-height: 1.7;
}
