/* =========================================================
   Klinika Widoczności — styles
   Paleta:
   --teal-dark  #0F6E56  (główny, tło pod biały tekst — WCAG AA)
   --teal-light #1D9E75  (akcent: hover, ikony, linie — NIE pod biały tekst)
   --ink        #1B2A4A  (tekst)
   --bg-light   #E1F5EE  (tło jasne)
   --white      #FFFFFF
   ========================================================= */

:root {
  --teal-dark: #0F6E56;
  --teal-dark-hover: #0B5743;
  --teal-light: #1D9E75;
  --ink: #1B2A4A;
  --ink-soft: #46506b;
  --bg-light: #E1F5EE;
  --white: #FFFFFF;
  --border: #d4e9e1;

  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --maxw: 1120px;
  --maxw-narrow: 760px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(27, 42, 74, 0.06), 0 4px 16px rgba(27, 42, 74, 0.05);
  --shadow-md: 0 6px 28px rgba(15, 110, 86, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal-dark); }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--teal-light);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: clamp(56px, 9vw, 104px); }
.section--light { background: var(--bg-light); }

.section__head { max-width: 720px; margin-bottom: 44px; }
.section__title { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.section__intro {
  margin-top: 16px;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--ink-soft);
}
.section__closer {
  margin-top: 40px;
  max-width: 760px;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  font-weight: 500;
  color: var(--ink);
  border-left: 4px solid var(--teal-light);
  padding-left: 20px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--teal-dark);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Przyciski ---------- */
.btn {
  --btn-bg: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.15s var(--ease),
    box-shadow 0.2s var(--ease), color 0.2s var(--ease);
  text-align: center;
}
.btn--primary {
  background: var(--teal-dark);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--teal-dark-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}
.btn--ghost:hover {
  background: var(--teal-dark);
  color: var(--white);
}
.btn--lg { padding: 17px 34px; font-size: 1.08rem; }
.btn--sm { padding: 10px 18px; font-size: 0.95rem; }

/* ---------- Eyebrow / etykiety ---------- */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--teal-dark);
  margin-bottom: 14px;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 2px 14px rgba(27, 42, 74, 0.07);
  border-bottom-color: var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand__logo { border-radius: 9px; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__link {
  display: inline-block;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
  border-radius: 8px;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav__link:hover { color: var(--teal-dark); background: var(--bg-light); }
.nav__cta-item { margin-left: 8px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav__toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background:
    radial-gradient(1100px 480px at 70% -10%, rgba(29, 158, 117, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg-light) 0%, #f3fbf8 100%);
  padding-block: clamp(56px, 11vw, 116px);
}
.hero__inner { max-width: 820px; }
.hero__title {
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  letter-spacing: -0.01em;
}
.hero__subtitle {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--teal-dark);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  margin-top: 14px;
  line-height: 1.3;
}
.hero__lead {
  margin-top: 22px;
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 680px;
}
.hero__actions { margin-top: 32px; }
.hero__microcopy {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* =========================================================
   KARTY (problem / usługi)
   ========================================================= */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-light);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-light);
  color: var(--teal-dark);
  margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: 1.22rem; margin-bottom: 10px; }
.card__text { color: var(--ink-soft); font-size: 1rem; }

.steps-grid,
.cards-grid {
  display: grid;
  gap: 22px;
}
.steps-grid { grid-template-columns: repeat(3, 1fr); }
.cards-grid { grid-template-columns: repeat(4, 1fr); }

/* numerowanie kafelków droga pacjenta */
.card--step { counter-increment: step; position: relative; }

.addon-note {
  margin-top: 32px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* =========================================================
   PROCES (jak zaczynamy)
   ========================================================= */
.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.process__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--teal-dark);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.process__title { font-size: 1.2rem; margin-bottom: 10px; }
.process__text { color: var(--ink-soft); }

/* =========================================================
   DLACZEGO MY (reasons)
   ========================================================= */
.reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 36px;
}
.reason { display: flex; gap: 16px; align-items: flex-start; }
.reason__check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--teal-dark);
  margin-top: 2px;
}
.reason__check svg { width: 20px; height: 20px; }
.reason__title { font-size: 1.16rem; margin-bottom: 8px; }
.reason__text { color: var(--ink-soft); }

/* =========================================================
   DOWÓD + FOUNDING
   ========================================================= */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.proof-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.proof-card__title { font-size: 1.35rem; }
.proof-card__text { color: var(--ink-soft); }
.proof-card .btn { margin-top: auto; }
.proof-card--accent {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
  border-color: var(--teal-light);
}
.badge {
  align-self: flex-start;
  background: var(--teal-dark);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.founder {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow-sm);
}
.founder__photo {
  flex: none;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-light);
  border: 3px solid var(--bg-light);
}
.founder__eyebrow {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--teal-dark);
  margin-bottom: 8px;
}
.founder__text { color: var(--ink-soft); }
.founder__text strong { color: var(--ink); }

/* =========================================================
   FAQ (accordion)
   ========================================================= */
.faq {
  border-top: 1px solid var(--border);
}
.faq__item { border-bottom: 1px solid var(--border); }
.faq__heading { margin: 0; }
.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 22px 4px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.02rem, 2.2vw, 1.15rem);
  color: var(--ink);
  transition: color 0.18s var(--ease);
}
.faq__trigger:hover { color: var(--teal-dark); }
.faq__icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--teal-dark);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.faq__icon::before { top: 10px; left: 2px; width: 18px; height: 2px; }   /* poziom */
.faq__icon::after  { top: 2px; left: 10px; width: 2px; height: 18px; }   /* pion */
.faq__trigger[aria-expanded="true"] .faq__icon::after { transform: scaleY(0); opacity: 0; }

.faq__panel { padding: 0 4px 24px; color: var(--ink-soft); }
.faq__panel p { max-width: 640px; }

/* =========================================================
   CTA / KONTAKT
   ========================================================= */
.section--cta { background: var(--bg-light); }
.cta-block { text-align: center; margin-bottom: 44px; }
.cta-block__contact {
  margin-top: 18px;
  font-size: 1rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.cta-block__contact a { color: var(--teal-dark); font-weight: 600; text-decoration: none; }
.cta-block__contact a:hover { text-decoration: underline; }

.calendly-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: #c8d0e2;
  padding-block: 44px 28px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.brand--footer .brand__name { color: var(--white); }
.footer__tagline { margin-top: 12px; color: #9aa6c2; font-size: 0.95rem; }
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  color: #c8d0e2;
  text-decoration: none;
  font-size: 0.97rem;
}
.footer__links a:hover { color: var(--white); text-decoration: underline; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 22px;
  font-size: 0.88rem;
  color: #8590ad;
}

/* =========================================================
   ANIMACJE reveal (delikatne)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */
@media (max-width: 960px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  /* Nawigacja mobilna */
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(27, 42, 74, 0.1);
    padding: 14px 20px 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .nav__menu.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav__link { padding: 12px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav__cta-item { margin: 10px 0 0; }
  .nav__cta-item .btn { width: 100%; }

  .steps-grid,
  .cards-grid,
  .process,
  .reasons,
  .proof-grid { grid-template-columns: 1fr; }

  .founder { flex-direction: column; text-align: center; align-items: center; }
  .founder__body { text-align: center; }
}

@media (max-width: 420px) {
  body { font-size: 1rem; }
  .brand__name { font-size: 1rem; }
  .btn { width: 100%; }
  .hero__actions .btn { width: 100%; }
}

/* =========================================================
   Dostępność: ograniczenie ruchu
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================
   PODSTRONA — ARTYKUŁ
   ========================================================= */
.article-nav { display: flex; align-items: center; gap: 8px; }
.article-nav .nav__link { white-space: nowrap; }

.article-hero {
  background: linear-gradient(180deg, var(--bg-light) 0%, #f3fbf8 100%);
  padding-block: clamp(40px, 7vw, 76px);
}
.article-hero .eyebrow { margin-bottom: 12px; }
.article-title { font-size: clamp(1.7rem, 4.6vw, 2.6rem); max-width: 760px; }
.article-meta {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--teal-light); }

.article-note {
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.article-body { padding-block: clamp(32px, 5vw, 56px); font-size: 1.075rem; line-height: 1.8; }
.article-body > p { margin-bottom: 1.25rem; }
.article-body h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 2.4rem 0 0.9rem;
  line-height: 1.3;
}
.article-body ul, .article-body ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body .faq-q {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  margin: 1.6rem 0 0.3rem;
}
.article-body .faq-q + p { margin-bottom: 0; }

.article-cta {
  margin-top: 2.8rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
  border: 1px solid var(--teal-light);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.article-cta h2 { margin: 0 0 10px; }
.article-cta p { color: var(--ink-soft); margin: 0 auto 22px; max-width: 520px; }

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
}
.article-back:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .article-nav .nav__link { display: none; }
}
