:root {
  --color-bg: #ffffff;
  --color-surface: #f0f4f4;
  --color-surface-hover: #e8f0f0;
  --color-primary: #2d3436;
  --color-primary-light: #636e72;
  --color-accent: #4a6c6f;
  --color-accent-hover: #3a5a5d;
  --color-button: #94c9c3;
  --color-button-hover: #a8d0c6;
  --color-button-text: #2d3436;
  --color-gold: #a8a8a8;
  --color-text: #2d3436;
  --color-text-muted: #636e72;
  --color-border: #d5d9db;

  --font-heading: "Outfit", sans-serif;
  --font-body: "Outfit", sans-serif;
  --spacing-sm: 8px;
  --spacing-md: 20px;
  --spacing-lg: 40px;
  --spacing-xl: 80px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 50px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08),
    0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-surface);
  overflow-x: hidden;
  padding-bottom: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-primary) !important;
  visibility: visible !important;
  opacity: 1 !important;
}

p,
span,
a,
li {
  color: var(--color-text);
  visibility: visible !important;
  opacity: 1 !important;
}

img {
  display: block !important;
  max-width: 100%;
  height: auto;
  visibility: visible !important;
  opacity: 1 !important;
}

.container {
  visibility: visible !important;
  opacity: 1 !important;
}

.bento-card,
.hero-content,
.hero-text,
.hero-image {
  visibility: visible !important;
  opacity: 1 !important;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  display: inline-block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 16px 0;
}

/* SEO / a11y: tekst dla robotów, niewidoczny wizualnie */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
  outline: none;
}

.btn:focus-visible {
  outline: 4px solid var(--color-interactive-focused);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
  box-shadow: none;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  background-color: var(--color-button);
  color: var(--color-button-text);
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: var(--color-button-hover);
  box-shadow: none;
}

.btn-glow,
.btn-glow::before {
  display: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  background-color: #ffffff;
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: #f8fafc;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

/* Scroll offset: fixed navbar no longer covers section titles when using anchor links */
section[id] {
  position: relative;
  z-index: 1;
  scroll-margin-top: 56px;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand-logo {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a:not(.btn) {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
  color: var(--color-accent);
}

.mobile-menu-btn,
.nav-backdrop {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 80px;
  overflow: hidden;
  background-color: var(--color-surface);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  filter: grayscale(100%);
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(240, 244, 244, 0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  width: 100%;
  position: relative;
  z-index: 3;
  color: var(--color-primary);
}

.hero-text h1,
.hero-text p {
  color: var(--color-primary);
  position: relative;
  z-index: 3;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-doctor-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1;
  box-shadow: 0 20px 60px rgba(45, 52, 54, 0.2);
  border: 4px solid var(--color-accent);
  display: block;
  position: relative;
  z-index: 3;
}

#neural-canvas {
  display: none;
}

.hero-text {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: heroTextReveal 0.8s ease-out forwards;
}

@keyframes heroTextReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--color-accent);
  line-height: 1.4;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.hero-headline-line {
  display: block;
}

.hero-headline-accent {
  color: transparent !important;
  background: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-accent-hover) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.hero-text h1,
.hero-text p {
  color: var(--color-primary);
  position: relative;
  z-index: 3;
}

/* Bento grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 24px;
}

.bento-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: start;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.bento-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(74, 108, 111, 0) 0%,
    rgba(74, 108, 111, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.bento-card:hover::after {
  opacity: 1;
}

.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-accent);
}

.fade-in {
  opacity: 1 !important;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  visibility: visible !important;
}

.fade-in.visible {
  opacity: 1 !important;
  transform: translateY(0);
}

/* Card variants */
.card-bio {
  grid-column: span 8;
  grid-row: span 2;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  padding: 32px;
}

.card-bio img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.bio-text h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.card-stat {
  grid-column: span 4;
  text-align: center;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
  margin-bottom: 4px;
}

.card-method {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
}

.card-method > div {
  flex: 1;
}

.card-method i {
  align-self: flex-end;
  margin-top: auto;
}

.card-cta {
  grid-column: span 4;
  background: var(--color-primary);
  color: #ffffff;
  text-align: center;
  align-items: center;
}

.card-cta h3 {
  color: #ffffff;
}

.card-cta p {
  color: #94a3b8;
}

/* Patient journey timeline */
.journey-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

.journey-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-accent) 50%,
    transparent 100%
  );
  opacity: 0.2;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--color-accent) 0%,
    rgba(74, 108, 111, 0.3) 50%,
    var(--color-accent) 100%
  );
  border-radius: 2px;
}

.timeline-item {
  padding-left: 60px;
  margin-bottom: 16px;
  position: relative;
  transition: transform 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(5px);
}

.timeline-dot {
  position: absolute;
  left: 16px;
  top: 5px;
  width: 18px;
  height: 18px;
  background: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-accent-hover) 100%
  );
  border: 3px solid #ffffff;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(74, 108, 111, 0.3);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(74, 108, 111, 0.5);
}

.timeline-content {
  background: var(--color-bg);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-content h3::before {
  content: "";
  width: 4px;
  height: 20px;
  background: linear-gradient(
    180deg,
    var(--color-accent) 0%,
    var(--color-accent-hover) 100%
  );
  border-radius: 2px;
}

.timeline-content p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Pricing */
.pricing-card {
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent);
}

.pricing-card h3 {
  flex: 1;
}

/* Reviews */
.review-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Section headers */
section h2 {
  position: relative;
  display: inline-block;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-accent) 50%,
    transparent 100%
  );
  border-radius: 2px;
}

/* Contact / footer */
footer {
  background-color: #f1f5f9;
  color: var(--color-text-muted);
  padding: 60px 0 30px;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid var(--color-border);
  margin-bottom: 10px;
}

/* Mobile */
.mobile-cta {
  display: none;
}

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .hero-text {
    max-width: 100%;
    text-align: center;
  }

  .hero-subtitle {
    padding-left: 0;
    border-left: none;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
    display: inline-block;
    align-self: center;
  }

  .hero-doctor-image {
    max-width: 300px;
  }

  .bento-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .card-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card-bio img {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
  }

  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 1001;
    transition: color 0.2s ease;
  }

  .mobile-menu-btn:hover {
    color: var(--color-accent);
  }

  .mobile-menu-btn i {
    font-size: 1.4rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    justify-content: flex-start;
    padding: 88px 24px 32px;
    background: var(--color-bg);
    box-shadow: none;
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
  }

  .navbar.nav-open .nav-links {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.1rem;
  }

  .nav-links a.btn-primary {
    margin-top: 24px;
    padding: 14px 20px;
    justify-content: center;
    border-bottom: none;
  }

  .navbar.nav-open .mobile-menu-btn .fa-bars {
    display: none;
  }

  .mobile-menu-btn .fa-times {
    display: none;
  }

  .navbar.nav-open .mobile-menu-btn .fa-times {
    display: inline-block;
  }

  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .navbar.nav-open .nav-backdrop {
    display: block;
    opacity: 1;
  }

  .partner-stripe {
    gap: 24px;
  }

  .partner-logo {
    height: 32px;
    z-index: 1000;
  }

  .mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: block;
  }

  .mobile-cta .btn {
    width: 100%;
  }

  body {
    padding-bottom: 90px;
  }

  footer {
    margin-bottom: 0;
    padding-bottom: 30px;
  }

  html,
  body {
    height: auto;
    min-height: 100vh;
  }
}

@media (min-width: 969px) {
  .mobile-cta {
    display: none;
  }
}

.trust-bar {
  position: relative;
  z-index: 0;
  background-color: var(--color-bg);
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.partner-stripe {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.partner-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: all 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

.partner-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  font-weight: 600;
  text-align: center;
}

.testimonial-featured {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-featured .testimonial-quote-mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: -0.5rem;
}

.testimonial-featured blockquote {
  font-size: 1.25rem;
  line-height: 1.75;
  font-style: italic;
  color: white;
  margin: 0 0 1.5rem;
}

.testimonial-featured .testimonial-author {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  font-style: normal;
}
