:root {
  --mp-blue: #103a98;
  --mp-navy: #132573;
  --mp-steel: #2a3d53;
  --mp-ink: #2e3031;
  --mp-cream: #f6f8e1;
  --mp-mist: #e6f1f7;
  --mp-line: #d8d8d8;
  --mp-white: #ffffff;
  --mp-paper: #fbfcfb;
  --mp-warm: #a9634f;
  --mp-sage: #6f8f83;
  --shadow: 0 18px 42px rgba(19, 37, 115, 0.14);
  --shadow-strong: 0 20px 50px rgba(8, 20, 45, 0.28);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  color: var(--mp-ink);
  background: var(--mp-paper);
  line-height: 1.6;
  padding-bottom: env(safe-area-inset-bottom);
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(246, 248, 225, 0.92);
  outline-offset: 3px;
}

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 30;
  padding: 22px 0;
  color: var(--mp-white);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo-box {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 50px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  text-decoration: none;
}

.logo-box::before {
  content: none;
}

.logo-box::after {
  content: none;
}

.logo-box img {
  width: 206px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 18px rgba(8, 20, 45, 0.38));
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.top-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--mp-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  background: rgba(8, 20, 45, 0.56);
  backdrop-filter: blur(10px);
}

.top-link.primary {
  border-color: var(--mp-cream);
  background: var(--mp-cream);
  color: var(--mp-navy);
  box-shadow: 0 10px 24px rgba(8, 20, 45, 0.18);
}

.hero {
  position: relative;
  min-height: 76svh;
  display: flex;
  align-items: center;
  padding: 118px 0 74px;
  color: var(--mp-white);
  background-image:
    linear-gradient(90deg, rgba(8, 20, 45, 0.92), rgba(16, 58, 152, 0.72) 45%, rgba(16, 58, 152, 0.2)),
    var(--hero-image);
  background-size: cover;
  background-position: var(--hero-position, center);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(251, 252, 251, 0), var(--mp-paper));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(246, 248, 225, 0.16);
  color: var(--mp-cream);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mp-cream);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 18px;
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--mp-white);
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 28px;
  font-size: 20px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  margin: 0 0 24px;
}

.proof-link,
.proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.proof-link {
  border: 1px solid rgba(246, 248, 225, 0.28);
  background: rgba(246, 248, 225, 0.12);
  color: var(--mp-white);
  box-shadow: 0 12px 28px rgba(8, 20, 45, 0.18);
}

.proof-chip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 20, 45, 0.3);
  color: var(--mp-white);
}

.proof-stars {
  display: inline-flex;
  gap: 3px;
  color: #ffd86e;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 6px 16px rgba(8, 20, 45, 0.32);
}

.proof-copy,
.proof-chip-copy {
  display: grid;
  gap: 2px;
}

.proof-copy strong,
.proof-chip-copy strong {
  color: var(--mp-white);
  font-size: 14px;
  line-height: 1.2;
}

.proof-copy span,
.proof-chip-copy span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.35;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 18px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.proof-link:hover,
.proof-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button.primary {
  background: var(--mp-cream);
  color: var(--mp-navy);
  box-shadow: 0 14px 28px rgba(8, 20, 45, 0.16);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.58);
  color: var(--mp-white);
  background: rgba(8, 20, 45, 0.24);
}

.button.dark {
  background: var(--mp-blue);
  color: var(--mp-white);
}

.button.light {
  border-color: rgba(16, 58, 152, 0.26);
  color: var(--mp-blue);
  background: var(--mp-white);
}

.microcopy {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.trust-strip {
  position: relative;
  z-index: 2;
  background: var(--mp-cream);
  border-bottom: 1px solid rgba(16, 58, 152, 0.12);
  box-shadow: 0 14px 34px rgba(42, 61, 83, 0.06);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.trust-item {
  min-height: 104px;
  padding: 22px 22px;
  border-left: 1px solid rgba(16, 58, 152, 0.12);
}

.trust-item:first-child {
  border-left: 0;
}

.trust-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--mp-blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.trust-item strong {
  display: block;
  color: var(--mp-steel);
  line-height: 1.35;
}

.section {
  padding: 74px 0;
}

.section.compact {
  padding: 54px 0;
}

.section.mist {
  background: var(--mp-mist);
}

.section.blue {
  background:
    linear-gradient(135deg, #103a98 0%, #0d245b 100%);
  color: var(--mp-white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.5fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--mp-blue);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.section.blue .section-kicker {
  color: var(--mp-cream);
}

h2 {
  margin-bottom: 0;
  color: var(--mp-steel);
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: 0;
}

.section.blue h2,
.section.blue h3 {
  color: var(--mp-white);
}

.section-note {
  margin-bottom: 0;
  color: #4d5d65;
}

.section.blue .section-note {
  color: rgba(255, 255, 255, 0.82);
}

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

.info-card {
  min-height: 188px;
  padding: 26px;
  border: 1px solid rgba(16, 58, 152, 0.12);
  border-radius: 8px;
  background: var(--mp-white);
  box-shadow: 0 8px 28px rgba(42, 61, 83, 0.06);
}

.info-card.featured {
  background:
    linear-gradient(145deg, #1643a5 0%, #103a98 48%, #0d2f7e 100%);
  color: var(--mp-white);
  border-color: rgba(16, 58, 152, 0.2);
  box-shadow: var(--shadow);
}

.card-number {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--mp-blue);
  background: var(--mp-mist);
  font-weight: 900;
}

.info-card.featured .card-number {
  color: var(--mp-blue);
  background: var(--mp-cream);
}

h3 {
  margin-bottom: 10px;
  color: var(--mp-steel);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.info-card.featured h3 {
  color: var(--mp-white);
}

.info-card p {
  margin-bottom: 0;
  color: #53636b;
}

.info-card.featured p {
  color: rgba(255, 255, 255, 0.92);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(16, 58, 152, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: var(--mp-white);
}

.step {
  padding: 24px;
  border-left: 1px solid rgba(16, 58, 152, 0.12);
}

.step:first-child {
  border-left: 0;
}

.step span {
  display: block;
  margin-bottom: 10px;
  color: var(--mp-warm);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.step p {
  margin-bottom: 0;
  color: #53636b;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.55fr);
  gap: 34px;
  align-items: start;
}

.copy-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.copy-list li {
  position: relative;
  padding-left: 30px;
}

.copy-list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mp-blue);
  box-shadow: inset 0 0 0 3px var(--mp-mist);
}

.contact-panel {
  border-radius: 8px;
  padding: 28px;
  background: var(--mp-white);
  color: var(--mp-ink);
  box-shadow: var(--shadow);
}

.contact-panel h3 {
  margin-bottom: 14px;
}

.contact-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 12px;
}

.contact-line strong {
  color: var(--mp-blue);
}

.contact-panel .button {
  width: 100%;
  margin-top: 8px;
}

.faq {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid rgba(16, 58, 152, 0.14);
  border-radius: 8px;
  background: var(--mp-white);
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  color: var(--mp-steel);
  font-weight: 800;
}

details p {
  margin: 12px 0 0;
  color: #53636b;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.42fr);
  gap: 28px;
  align-items: center;
}

.final-cta h2 {
  margin-bottom: 12px;
}

.final-cta p {
  margin-bottom: 0;
}

.final-actions {
  display: grid;
  gap: 10px;
}

.site-footer {
  padding: 40px 0 112px;
  background: #0d245b;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  text-decoration: none;
  color: var(--mp-cream);
}

.footer-links a:hover {
  text-decoration: underline;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 18px;
  border: 1px solid rgba(16, 58, 152, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--mp-ink);
  box-shadow: 0 18px 46px rgba(8, 20, 45, 0.18);
  backdrop-filter: blur(14px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.cookie-banner strong {
  color: var(--mp-blue);
}

.cookie-links {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: 6px;
}

.cookie-links a {
  color: var(--mp-blue);
  font-weight: 800;
  text-decoration: none;
}

.cookie-links a:hover {
  text-decoration: underline;
}

.cookie-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  background: var(--mp-blue);
  color: var(--mp-white);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.mobile-cta {
  position: fixed;
  z-index: 35;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  background: rgba(251, 252, 251, 0.96);
  border-top: 1px solid rgba(16, 58, 152, 0.12);
  box-shadow: 0 -10px 24px rgba(19, 37, 115, 0.12);
}

.mobile-cta .button {
  min-height: 48px;
  padding: 11px 12px;
  font-size: 14px;
}

.theme-dorosli {
  --hero-image: url("hero.webp");
  --hero-position: center;
}

.theme-psychoterapia {
  --hero-image: url("hero.webp");
  --hero-position: center;
}

.theme-dzieci {
  --hero-image: url("hero.webp");
  --hero-position: center;
}

.theme-dietetyka {
  --hero-image: url("hero.webp");
  --hero-position: center;
}

.theme-adhd-dorosli {
  --hero-image: url("hero.webp");
  --hero-position: center;
}

.theme-adhd-dzieci {
  --hero-image: url("hero.webp");
  --hero-position: center;
}

.theme-autyzm-ados-2 {
  --hero-image: url("hero.webp");
  --hero-position: center;
}

.theme-kontynuacja-leczenia {
  --hero-image: url("hero.webp");
  --hero-position: center;
}

@media (max-width: 1024px) {
  .site-header {
    padding: 16px 0;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-proof {
    margin-bottom: 22px;
  }

  .trust-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(3),
  .step:nth-child(3) {
    border-left: 0;
  }

  .trust-item:nth-child(n + 3),
  .step:nth-child(n + 3) {
    border-top: 1px solid rgba(16, 58, 152, 0.12);
  }

  .section-heading,
  .split,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    align-items: flex-start;
  }

  .logo-box {
    min-height: 42px;
    padding: 0;
    border-radius: 0;
  }

  .logo-box img {
    width: 174px;
  }

  .top-actions {
    display: none;
  }

  .hero {
    min-height: 74svh;
    padding: 96px 0 56px;
    background-image:
      linear-gradient(180deg, rgba(8, 20, 45, 0.94), rgba(16, 58, 152, 0.72) 62%, rgba(16, 58, 152, 0.32)),
      var(--hero-image);
  }

  h1 {
    font-size: 32px;
    line-height: 1.13;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-proof {
    display: grid;
    gap: 10px;
  }

  .proof-link,
  .proof-chip {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .microcopy {
    font-size: 13px;
  }

  .trust-grid,
  .cards-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .step {
    border-left: 0;
    border-top: 1px solid rgba(16, 58, 152, 0.12);
  }

  .trust-item:first-child,
  .step:first-child {
    border-top: 0;
  }

  .section {
    padding: 54px 0;
  }

  .section.compact {
    padding: 42px 0;
  }

  h2 {
    font-size: 27px;
  }

  h3 {
    font-size: 20px;
  }

  .info-card {
    min-height: auto;
    padding: 22px;
  }

  .contact-panel {
    padding: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .mobile-cta {
    display: grid;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 76px;
    grid-template-columns: 1fr;
    width: calc(100% - 20px);
    gap: 12px;
    padding: 14px;
  }

  .cookie-button {
    width: 100%;
  }
}
