*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-deep: #020617;
  --bg-section: #020817;
  --bg-card: #020617;
  --accent-1: #0ea5e9;
  --accent-2: #22c55e;
  --accent-3: #8b5cf6;
  --accent-soft: #0f172a;
  --text-main: #e5f0ff;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.18);
  --radius-lg: 18px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.85);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(3, 22, 38, 1) 0%,
    rgba(2, 11, 26, 1) 45%,
    rgba(1, 8, 18, 1) 100%
  ),
  linear-gradient(
    135deg,
    rgba(0, 180, 200, 0.08),
    rgba(0, 90, 120, 0.05),
    rgba(0, 40, 60, 0.06)
  );
background-blend-mode: overlay;

  color: var(--text-main);
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Layout */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

section.section {
  padding: 4.5rem 0;
}

/* Sekcje z tłami zdjęciowymi + gradient + pattern */
.section-bg-hero,
.section-bg-modules,
.section-bg-what,
.section-bg-for,
.section-bg-process,
.section-bg-experts,
.section-bg-contact {
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* HERO – mocny gradient z lewej, tekst czytelny */
.section-bg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(4, 10, 20, 0.96) 0%,
    rgba(4, 10, 20, 0.90) 22%,
    rgba(4, 10, 20, 0.82) 40%,
    rgba(4, 10, 20, 0.58) 58%,
    rgba(4, 10, 20, 0.28) 78%,
    rgba(4, 10, 20, 0.00) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* MODUŁY – rozmyte zdjęcie w tle + przyciemnienie od lewej */
.section-bg-modules::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/bg-modules-hero.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(18px);
  opacity: 0.22; /* duża przezroczystość zdjęcia */
  z-index: 0;
}

.section-bg-modules::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(4, 10, 20, 0.94) 0%,   /* ciemno z lewej – tekst czytelny */
    rgba(4, 10, 20, 0.85) 35%,
    rgba(4, 10, 20, 0.55) 65%,
    rgba(4, 10, 20, 0.18) 100%  /* po prawej widać zdjęcie */
  );
  pointer-events: none;
  z-index: 1;
}

/* Treść zawsze nad overlayami */
.section-bg-hero > .container,
.section-bg-modules > .container,
.section-bg-what > .container,
.section-bg-for > .container,
.section-bg-process > .container,
.section-bg-experts > .container,
.section-bg-contact > .container {
  position: relative;
  z-index: 2;
}

/* Konkretnie podpięte tła (pattern + zdjęcia dla sekcji z indexu) */
.section-bg-hero {
  background-image:
    url("../img/bg-pattern-archistom.png"),
    url("../img/bg-hero-clinic.jpg");
}

.section-bg-what {
  background-image:
    url("../img/bg-pattern-archistom.png"),
    url("../img/bg-what-archistom.jpg");
}

.section-bg-for {
  background-image:
    url("../img/bg-pattern-archistom.png"),
    url("../img/bg-for-whom.jpg");
}

.section-bg-process {
  background-image:
    url("../img/bg-pattern-archistom.png"),
    url("../img/bg-process.jpg");
}

.section-bg-experts {
  background-image:
    url("../img/bg-pattern-archistom.png"),
    url("../img/bg-experts.jpg");
}

.section-bg-contact {
  background-image:
    url("../img/bg-pattern-archistom.png"),
    url("../img/bg-contact-section.jpg");
}


.section-bg-what {
  background-image:
    url("../img/bg-pattern-archistom.png"),
    url("../img/bg-what-archistom.jpg");
  background-size: 260px 260px, cover;
  background-position: center, center;
}

.section-bg-for {
  background-image:
    url("../img/bg-pattern-archistom.png"),
    url("../img/bg-for-whom.jpg");
  background-size: 260px 260px, cover;
  background-position: center, center;
}

.section-bg-process {
  background-image:
    url("../img/bg-pattern-archistom.png"),
    url("../img/bg-process.jpg");
  background-size: 260px 260px, cover;
  background-position: center, center;
}

.section-bg-experts {
  background-image:
    url("../img/bg-pattern-archistom.png"),
    url("../img/bg-experts.jpg");
  background-size: 260px 260px, cover;
  background-position: center, center;
}

.section-bg-contact {
  background-image:
    url("../img/bg-pattern-archistom.png"),
    url("../img/bg-contact-section.jpg");
  background-size: 260px 260px, cover;
  background-position: center, center;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;

  background: linear-gradient(
      135deg,
      rgba(0, 195, 220, 0.18) 0%,
      rgba(0, 60, 95, 0.20) 25%,
      rgba(5, 12, 26, 0.92) 70%,
      rgba(5, 12, 26, 0.95) 100%
  );

  backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(0, 195, 220, 0.25);
  box-shadow: 0 4px 16px rgba(0, 180, 200, 0.12);
}


.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 50px;
  width: auto;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(148,163,184,0.4);
}

.logo-tagline {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  position: relative;
  opacity: 0.9;
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent-1), var(--accent-3));
  transition: width 0.22s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-primary {
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  background-image: linear-gradient(120deg, var(--accent-1), var(--accent-3));
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(56,189,248,0.35);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, filter 0.15s ease-out;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 18px 40px rgba(59,130,246,0.5);
}
/* Hamburger – desktopowo ukryty */
.nav-toggle {
  display: none;
  position: relative;
  width: 34px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin-left: 1rem;
}

.nav-toggle span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition:
    transform 0.2s ease,
    top 0.2s ease,
    opacity 0.2s ease,
    background 0.2s ease;
}

.nav-toggle span:first-child { top: 9px; }
.nav-toggle span:last-child  { top: 18px; }

.navbar.is-open .nav-toggle span:first-child {
  top: 13.5px;
  transform: rotate(45deg);
}

.navbar.is-open .nav-toggle span:last-child {
  top: 13.5px;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.75rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent-1);
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 3vw + 1.5rem, 3.1rem);
  line-height: 1.1;
  margin: 0 0 1.2rem;
}

.hero-lead {
  margin: 0 0 1.7rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.btn-outline {
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(156,163,175,0.8);
  background: transparent;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-meta {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-pill {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.45);
  background: radial-gradient(circle at top left, rgba(56,189,248,0.1), rgba(15,23,42,0.8));
}

.hero-visual {
  position: relative;
}

/* nowe zdjęcie w hero zamiast karty z listą */
.hero-photo {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.hero-card {
  background: radial-gradient(circle at top left, rgba(56,189,248,0.16), rgba(15,23,42,0.98));
  border-radius: 28px;
  padding: 1.9rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148,163,184,0.25);
  position: relative;
  overflow: hidden;
}

.hero-card h2 {
  font-size: 1rem;
  margin-top: 0;
}

.hero-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.hero-glow {
  position: absolute;
  inset: -40%;
  opacity: 0.33;
  background: conic-gradient(from 140deg, rgba(56,189,248,0.2), rgba(45,212,191,0.3), rgba(129,140,248,0.25), rgba(56,189,248,0.2));
  filter: blur(34px);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Sections */
/* Tło zdjęciowe pod sekcją "Dla kogo..." */
.section-bg-for.with-photo-bg {
  position: relative;
  background-image:
    linear-gradient(
      135deg,
      rgba(14, 54, 141, 0.5 ),   /* przyciemnienie sekcji */
      rgba(1, 6, 18, 0.5)
    ),
    url("../img/bg-dlakogo.jpg"); /* UWAGA: ../img, bo jesteśmy w assets/css/ */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Tło zdjęciowe dla sekcji "Partnerzy i eksperci programu" */
.section-bg-experts.with-photo-bg-experts {
  position: relative;
  background-image:
    linear-gradient(
      135deg,
      rgba(14, 54, 141, 0.6),   /* przyciemnienie sekcji */
      rgba(1, 6, 18, 0.6)
    ),
    url("../img/bg-experts.jpg");  /* zdjęcie sekcji */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-bg-experts.with-photo-bg-experts > .container {
  position: relative;
  z-index: 1;
}

/* żeby treść była nad tłem */
.section-bg-for.with-photo-bg > .container {
  position: relative;
  z-index: 1;
}

.section-header {
  margin-bottom: 2.3rem;
}

.section-header h2 {
  margin: 0 0 0.6rem;
  font-size: 1.5rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

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

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
/* Partnerzy i eksperci programu – siatka kafelków */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.expert-card {
  position: relative;
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 200, 220, 0.28);
  background: linear-gradient(
      135deg,
      rgba(0, 200, 220, 0.16),
      rgba(50, 150, 255, 0.12),
      rgba(180, 70, 255, 0.16)
    ),
    rgba(5, 12, 22, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

.expert-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(0, 200, 220, 0.22),
    transparent 60%
  );
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.expert-area,
.expert-name,
.expert-desc {
  position: relative;
  z-index: 1;
}

.expert-area {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(0, 220, 255, 0.9);
  margin-bottom: 0.35rem;
}

.expert-name {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.expert-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* responsywność siatki partnerów */
@media (max-width: 960px) {
  .experts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.card {
  .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(0, 200, 220, 0.15),
    transparent 60%
  );
  opacity: 0.3;
  pointer-events: none;
}

  
  position: relative;
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 180, 200, 0.25); /* subtelny turkus */
  background: linear-gradient(
      135deg,
      rgba(0, 180, 200, 0.15),
      rgba(50, 150, 255, 0.10),
      rgba(180, 70, 255, 0.12)
    ),
    rgba(5, 12, 22, 0.85); /* ciemna baza */
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}


.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-1);
  margin-bottom: 0.55rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.chip {
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(148,163,184,0.4);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Modules */
.module-stage {
  margin-bottom: 3.5rem;
}

.module-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.module-stage-title {
  font-size: 1.3rem;
  margin: 0;
}

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

.module-card {
  position: relative;
  padding: 1.4rem 1.45rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(200, 70, 255, 0.30); /* magenta border */
  background: linear-gradient(
      135deg,
      rgba(20, 143, 133, 0.2),     /* magenta */
      rgba(120, 70, 255, 0.15),     /* fiolet */
      rgba(99, 14, 66, 0.15)        /* ciemna baza */
    ),
    rgba(5, 10, 20, 0.85);          /* navy base */
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 26px rgba(200, 70, 255, 0.18);
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 25% 25%,
    rgba(200, 70, 255, 0.25),
    transparent 60%
  );
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}


.module-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(139, 50, 212, 0.85); /* Magenta label */
}

.module-title {
  margin: 0.4rem 0 0.4rem;
  font-size: 1.05rem;
}

.module-body {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.module-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.9rem;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.module-expert {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.module-expert-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(148,163,184,0.5);
}

.module-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.team-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(148,163,184,0.25);
}

.team-name {
  margin: 0;
  font-size: 1.05rem;
}

.team-role {
  margin: 0;
  font-size: 0.85rem;
  color: var(--accent-1);
}

.team-desc {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-card {
  background: radial-gradient(circle at top left, rgba(56,189,248,0.16), rgba(15,23,42,0.98));
  border-radius: 24px;
  padding: 1.8rem;
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: var(--shadow-soft);
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.contact-avatar {
  width: 90px;
  height: 90px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(5, 233, 195, 0.7);
}

.contact-details h3 {
  margin: 0 0 0.3rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-list li {
  margin-bottom: 0.25rem;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(148,163,184,0.2);
  padding: 1.3rem 0;
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Sekcja: Jak wygląda pierwsza konsultacja? */

.section-header.section-header-center {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.consultation-steps {
  margin-top: 0.5rem;
}

.steps-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: radial-gradient(circle at top left,
    rgba(56,189,248,0.18),
    rgba(15,23,42,0.98)
  );
  border-radius: 24px;
  padding: 1.5rem 1.4rem 1.6rem;
  border: 1px solid rgba(148,163,184,0.4);
  box-shadow: var(--shadow-soft);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #e5f0ff;
  background: radial-gradient(circle at 30% 0, var(--accent-1), var(--accent-3));
  margin-bottom: 0.75rem;
}

.step-card h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* siatka dla tabletów */
@media (max-width: 960px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-grid-4,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .module-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-inner {
    gap: 0.75rem;
  }

  .nav-toggle {
    display: block;
  }

  .navbar {
    position: sticky;
    top: 0;
  }

  .navbar nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(2, 6, 23, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    transform-origin: top;
    transform: scaleY(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .navbar.is-open nav {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.75rem;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .card-grid-3,
  .card-grid-4,
  .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Kroki konsultacji – jedna kolumna na mobile */
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  width: 70%;
  max-width: 620px;
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 8px 25px rgba(0,0,0,0.45));
}
/* Kontener potrzebny, aby animacja była nad logo */
.hero-logo-wrap {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}




/* ANIMACJA — poruszanie gradientem wokół obwódki */
@keyframes neonSnake {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 200% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Upewniamy się, że samo logo jest wyżej niż efekt */
.hero-logo {
  position: relative;
  z-index: 2;
  width: 70%;
  max-width: 620px;
  height: auto;
}
.icon-badge {
  display: flex;
  flex-direction: column;        /* ikona nad numerem */
  align-items: center;           /* wyśrodkowanie poziome */
  justify-content: center;       /* wyśrodkowanie pionowe */
  margin-bottom: 1rem;           /* większy odstęp od tytułu */
  gap: 0.25rem;                  /* odstęp między ikoną a numerem */
}

.icon-badge i {
  font-size: 2.4rem;              /* BYŁO 1.4rem → teraz duże i czytelne */
  color: rgba(0, 220, 255, 0.90); /* neonowy turkus */
  filter: drop-shadow(0 0 8px rgba(0,220,255,0.45));
}

.icon-badge span {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.85;
  letter-spacing: 0.18em;
}
/* Tło zdjęciowe dla sekcji "Dla kogo" */
.with-photo-bg {
  position: relative;
  overflow: hidden;
}

.with-photo-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/img/bg-dlakogo.jpg") center/cover no-repeat;
  
  opacity: 0.25; /* 25% przezroczystości */
  
  z-index: 0;
}

.with-photo-bg > * {
  position: relative;
  z-index: 1;
}
/* Hero — powiększone zdjęcie gabinetu na stronie Moduły */
.hero-modules .hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  overflow: visible;
}

.hero-modules .hero-visual img.hero-photo {
  position: relative;
  z-index: 2;

  width: 120%;              /* powiększenie ~200% */
  max-width: none;          /* pozwala wyjść poza kontener */
  transform: translateX(18%); /* przesunięcie dalej w prawo */
  
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

/* Neonowy efekt glow za zdjęciem */
.hero-modules .hero-visual::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 1;
  
  background: radial-gradient(
    circle at 85% 40%,
    rgba(0, 220, 255, 0.45),
    transparent 60%
  );

  filter: blur(32px);
  opacity: 0.55;
  pointer-events: none;
}
/* === Moduły programu – kafelki glassmorphism, ruch po najechaniu === */

.module-card {
  position: relative;
  padding: 1.4rem 1.45rem;
  border-radius: 22px;
  overflow: hidden;

  /* glassmorphism */
  background:
    linear-gradient(
      135deg,
      rgba(56, 189, 248, 0.20),   /* turkus */
      rgba(129, 140, 248, 0.14),  /* chłodny fiolet */
      rgba(236, 72, 153, 0.20)    /* magenta */
    );
  background-blend-mode: screen;
  border: 1px solid rgba(148, 163, 184, 0.45);
  backdrop-filter: blur(18px);

  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);

  transition:
    transform 0.22s ease-out,
    box-shadow 0.22s ease-out,
    border-color 0.22s ease-out,
    background 0.35s ease-out;
}

/* kolorowa, ruchoma poświata wewnątrz kafelka */
.module-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.45), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.40), transparent 55%);
  opacity: 0.45;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;

  transform: translate3d(0, 0, 0);
  transition: transform 0.45s ease-out, opacity 0.35s ease-out;
}

/* zawartość nad efektem */
.module-label,
.module-title,
.module-body,
.module-meta {
  position: relative;
  z-index: 1;
}

/* Ruch + wzmocnienie efektu po najechaniu */
.module-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.75);
}

.module-card:hover::before {
  transform: translate3d(-6px, -6px, 0);
  opacity: 0.75;
}
/* Teksty w kafelkach modułów – jasne, czytelne na kolorowym glassie */

.module-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(186, 230, 253, 0.95); /* jasny niebieski */
}

.module-title {
  margin: 0.4rem 0 0.4rem;
  font-size: 1.05rem;
  color: #f9fafb;
}

.module-body {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.86);
}

.module-meta {
  margin-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.9);
}

/* avatar eksperta – ring w kolorach systemu */
.module-expert-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.55);
}

/* tagi / chipy – jasne, ale nadal "szklane" */
.module-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.module-topics .chip {
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.45);
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(10px);
}
/* Slider klinik pod sekcją "Czym jest ArchiStom?" */

.section-bg-gallery {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

/* sekcja na pełną szerokość viewportu */
.clinic-slider {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 600px;          /* tak jak chciałeś */
  overflow: hidden;
}

/* tor slajdów */
.clinic-slider-track {
  display: flex;
  height: 100%;
  transform: translateX(0);
  transition: transform 0.8s ease-in-out;
}

/* pojedynczy slajd */
.clinic-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  overflow: hidden;
}

/* zdjęcie – ważne: nie dajemy tu transform (JS będzie ruszał Y) */
.clinic-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease-out;
}

/* tło pod sliderem – lekkie przyciemnienie od góry */
.section-bg-gallery {
  position: relative;
}

.section-bg-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.85), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

/* strzałki nawigacji */

.clinic-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.8));
  color: #e5f5ff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  transition: background 0.2s ease-out, transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.clinic-prev {
  left: 2rem;
}

.clinic-next {
  right: 2rem;
}

.clinic-slider-arrow:hover {
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.95), rgba(37, 99, 235, 0.95));
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  transform: translateY(-50%) scale(1.05);
}

/* na bardzo małych ekranach strzałki bliżej środka */
@media (max-width: 768px) {
  .clinic-prev {
    left: 1rem;
  }
  .clinic-next {
    right: 1rem;
  }
}
/* Hero na stronie Moduły – karuzela zdjęć zespołu */
.hero-modules .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.3rem;
  align-items: center;
}

.hero-team-carousel {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  background: radial-gradient(circle at top, rgba(15,23,42,0.96), rgba(2,6,23,1));
}

.hero-team-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-team-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-team-slide.active {
  opacity: 1;
  transform: scale(1);
}
/* Eksperci przypisani do modułów – mini-karty jak w Zespole */

.module-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 0.9rem;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.module-experts {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.module-expert {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.module-expert-photo {
  width: 72px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(148,163,184,0.45);
  box-shadow: 0 10px 26px rgba(0,0,0,0.6);
}

.module-expert span {
  font-size: 0.75rem;
  color: rgba(226,232,240,0.92);
}
/* GLOBALNY EFEKT TŁA REAGUJĄCY NA RUCH MYSZKI */

body {
  --mx: 50%;
  --my: 20%;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(
      circle at var(--mx) var(--my),
      rgba(56, 189, 248, 0.35),
      rgba(129, 140, 248, 0.15),
      transparent 70%
    ),
    radial-gradient(
      circle at calc(100% - var(--mx)) calc(100% - var(--my)),
      rgba(236, 72, 153, 0.25),
      transparent 70%
    );
  mix-blend-mode: screen;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* FORMULARZ KONTAKTOWY */

.contact-form {
  background: linear-gradient(
      to bottom right,
      rgba(15, 23, 42, 0.9),
      rgba(15, 23, 42, 0.8)
    );
  border-radius: 1.5rem;
  padding: 1.75rem 1.75rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.65),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(18px);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.form-col {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.75);
  color: #e5e7eb;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(148, 163, 184, 0.85);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(56, 189, 248, 0.85);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
  background: rgba(15, 23, 42, 0.95);
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(148, 163, 184, 0.9) 50%),
                    linear-gradient(135deg, rgba(148, 163, 184, 0.9) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.checkbox-row {
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.1rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 0.3rem;
}

.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* POKAŻ hamburger na mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(5, 10, 20, 0.96);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    z-index: 20;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar.is-open .nav-links {
    display: flex;
  }
}

/* Styl hamburgera */
.nav-toggle {
  display: none; /* domyślnie ukryty, pokazany w media query */
  position: relative;
  width: 34px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin-left: 1rem;
  z-index: 30;
}

.nav-toggle span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  border-radius: 999px;
  background: white;
  transition:
    transform 0.2s ease,
    top 0.2s ease,
    opacity 0.2s ease;
}

.nav-toggle span:first-child { top: 9px; }
.nav-toggle span:last-child  { top: 18px; }

/* Animacja w stanie aktywnym (X) */
.navbar.is-open .nav-toggle span:first-child {
  top: 13.5px;
  transform: rotate(45deg);
}

.navbar.is-open .nav-toggle span:last-child {
  top: 13.5px;
  transform: rotate(-45deg);
}
@media (max-width: 768px) {
  .nav-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
    position: relative;
    width: 34px;
    height: 28px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    z-index: 30;
    margin-left: auto;
  }

  .nav-toggle span {
    position: absolute;
    left: 4px;
    right: 4px;
    height: 2px;
    border-radius: 999px;
    background: white;
    transition:
      transform 0.2s ease,
      top 0.2s ease;
  }

  .nav-toggle span:first-child { top: 9px; }
  .nav-toggle span:last-child  { top: 18px; }

  .navbar.is-open .nav-toggle span:first-child {
    top: 13.5px;
    transform: rotate(45deg);
  }

  .navbar.is-open .nav-toggle span:last-child {
    top: 13.5px;
    transform: rotate(-45deg);
  }

  /* MENU STYLES */
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(5, 10, 20, 0.96);
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links li {
    padding: 0.6rem 1.2rem;
    text-align: left;
  }

  .navbar.is-open .nav-links {
    display: flex;
  }

  /* CTA button (last item) */
  .btn-primary {
    margin: 1rem auto 0;
    width: calc(100% - 2rem);
    text-align: center;
  }
}


/* MOBILE FIX DLA SLIDERA KLINIK */
@media (max-width: 768px) {
  .clinic-slider {
    width: 100%;        /* zamiast 100vw */
    margin-left: 0;     /* bez wysuwania na pełny viewport */
    height: 260px;      /* niższy slider na telefonie (możesz zmienić np. na 280–320px) */
  }

  .clinic-slider-track {
    height: 100%;
  }

  .clinic-slide {
    min-width: 100%;
    height: 100%;
  }

  .clinic-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
  }

  /* strzałki trochę mniejsze i bliżej środka */
  .clinic-slider-arrow {
    width: 34px;
    height: 34px;
  }

  .clinic-prev {
    left: 1rem;
  }

  .clinic-next {
    right: 1rem;
  }
}

