/* ──────────────────────────────────────────────────────────────────────────
   Kod Witalności — layout + responsive rules.
   The page markup keeps its inline styles for local decoration; everything
   that has to change with viewport width lives here, so a phone gets one
   readable column instead of a squeezed desktop grid.
   ────────────────────────────────────────────────────────────────────────── */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body { margin: 0; }

img, figure { max-width: 100%; }
figure { margin: 0; }

.page {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 17px;
  line-height: 28px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px);
}

/* — navigation — */
.nav {
  position: relative;
  z-index: 2;
  gap: var(--space-4);
  padding-block: var(--space-3);
  padding-inline: max(clamp(20px, 5vw, 72px), calc((100% - 1120px) / 2 + clamp(20px, 5vw, 72px)));
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

/* — hero — */
.hero {
  position: relative;
  padding: clamp(40px, 8vw, 80px) 0 clamp(36px, 6vw, 56px);
}
.hero-copy {
  position: relative;
  z-index: 1;
}
/* Decorative bloom: sits behind the headline, never over it. */
.hero-bloom {
  position: absolute;
  right: -160px;
  top: -150px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-accent-200);
  z-index: 0;
  pointer-events: none;
}

/* — two-column sections — */
.split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 28px clamp(28px, 6vw, 88px);
  align-items: center;
}
.split-figure {
  justify-self: end;
  overflow: hidden;
}

/* — tinted panels — */
.panel {
  border-radius: calc(2 * var(--radius-lg));
  padding: clamp(28px, 6vw, 56px) clamp(20px, 4vw, 64px);
}

/* — numbered pillars — */
.pillar {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px clamp(16px, 3vw, 32px);
  align-items: center;
}

/* — price + calls to action — */
.cta-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.price-chip {
  background: var(--color-bg);
  border-radius: 999px;
  padding: 18px clamp(24px, 5vw, 38px);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.btn-lg {
  font-size: 17px;
  padding: 15px 38px;
  min-height: 48px;
}

/* Anchor targets clear the top of the viewport when jumped to. */
[id] { scroll-margin-top: 24px; }

/* ── phones and small tablets ─────────────────────────────────────────── */
@media (max-width: 780px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .split-figure { justify-self: center; }

  /* On narrow screens the bloom leaves the absolute layer and becomes a
     plain block above the headline — decoration never sits over text. */
  .hero-bloom {
    position: static;
    width: min(190px, 46vw);
    height: min(190px, 46vw);
    margin: 0 0 28px auto;
  }
}

@media (max-width: 560px) {
  .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .nav-brand {
    margin-right: 0;
    font-size: 19px;
  }
  .nav-links a { font-size: 15px; }

  /* Full-width buttons: an easy thumb target, no half-line wraps. */
  .cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-row .btn { width: 100%; }
  .btn-lg { padding: 15px 24px; width: 100%; }

  .pillar {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px 16px;
  }
  .pillar > span:first-child {
    width: 44px !important;
    height: 44px !important;
    font-size: 18px !important;
  }

  .price-chip { width: 100%; justify-content: flex-start; }
}
