/* ==========================================================================
   PODSTRONA: ZGODA NA ZABIEG  (zgoda.html)
   Czysty, jasny układ w kolorach strony (bordo, koral, krem) — jak pozostałe
   podstrony. Naprzemienne pasy białe/kremowe, przyklejony spis treści,
   subtelne mikroanimacje.
   ========================================================================== */

:root {
  --cs-burgundy: #400D1C;
  --cs-burgundy-deep: #2c0712;
  --cs-coral: #EA8F85;
  --cs-coral-deep: #c9665b;
  --cs-champagne: #F7ECDD;
  --cs-cream: #FAF8F5;
  --cs-text: #4d4547;
  --cs-muted: #7a6e70;
  --cs-line: rgba(64, 13, 28, 0.12);
  --cs-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --cs-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --cs-hdr: 78px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { width: 100%; background: #fff; }
body.cs-page {
  min-height: 100vh;
  color: var(--cs-burgundy);
  font-family: 'Jost', -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; }
.cs-ico { display: block; flex: 0 0 auto; }
.cs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cs-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ---------- reveal (po uruchomieniu JS) ---------- */
.cs-ready [data-cs-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--cs-ease), transform 0.9s var(--cs-ease); }
.cs-ready [data-cs-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   NAGŁÓWEK
   ========================================================================== */
.cs-header { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px clamp(16px, 5vw, 70px); background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(64, 13, 28, 0.08); }
.cs-logo { display: flex; flex-direction: column; text-decoration: none; color: #231f20; }
.cs-logo-main { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: 0.18em; line-height: 1.1; }
.cs-logo-main span { color: var(--cs-burgundy); }
.cs-logo-sub { margin-top: 2px; font-size: 8.5px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--cs-burgundy); }
.cs-header-nav { display: flex; align-items: center; gap: 12px; }
.cs-back, .cs-book { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 999px; text-decoration: none; font-size: 13px; letter-spacing: 0.04em; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.3s var(--cs-spring); }
.cs-back { padding: 9px 20px; font-weight: 600; color: #231f20; border: 1px solid rgba(64, 13, 28, 0.15); background: #fff; }
.cs-back:hover { background: var(--cs-champagne); color: var(--cs-burgundy); border-color: var(--cs-burgundy); }
.cs-book { white-space: nowrap; padding: 10px 22px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; background: var(--cs-burgundy); color: var(--cs-champagne); box-shadow: 0 4px 14px rgba(64, 13, 28, 0.15); }
.cs-book:hover { background: var(--cs-burgundy-deep); transform: translateY(-2px); }

/* ==========================================================================
   HERO
   ========================================================================== */
.cs-hero { position: relative; padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 7vw, 104px); background: linear-gradient(180deg, #fff 0%, var(--cs-cream) 100%); overflow: hidden; }
.cs-hero::before, .cs-hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.cs-hero::before { width: 620px; height: 620px; right: -160px; top: -220px; background: radial-gradient(circle, rgba(234, 143, 133, 0.26), rgba(234, 143, 133, 0) 66%); animation: csDrift 16s ease-in-out infinite alternate; }
.cs-hero::after { width: 520px; height: 520px; left: -200px; bottom: -260px; background: radial-gradient(circle, rgba(247, 236, 221, 0.95), rgba(247, 236, 221, 0) 68%); animation: csDrift 20s ease-in-out -6s infinite alternate-reverse; }
@keyframes csDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 36px) scale(1.12); } }
.cs-hero > .cs-wrap { position: relative; z-index: 1; }
.cs-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.cs-crumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; font-size: 13px; color: var(--cs-muted); }
.cs-crumbs a { text-decoration: none; transition: color 0.2s ease; }
.cs-crumbs a:hover { color: var(--cs-burgundy); }
.cs-kicker { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 20px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cs-coral-deep); }
.cs-kicker-line { width: 0; height: 2px; background: var(--cs-coral); border-radius: 2px; transition: width 1.1s var(--cs-ease) 0.3s; }
.is-in .cs-kicker-line, .cs-kicker.is-in .cs-kicker-line { width: 44px; }
.cs-title { margin-bottom: clamp(38px, 3.6vw, 54px); font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(46px, 5.8vw, 80px); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; color: var(--cs-burgundy); }
.cs-tl { display: block; overflow: hidden; padding: 0.04em 0.06em 0.6em 0; margin-bottom: -0.5em; }
.cs-tl > span, .cs-tl > em { display: block; }
.cs-tl--em { color: var(--cs-coral-deep); }
.cs-tl--em em { position: relative; display: inline-block; font-style: italic; }
.cs-swash { position: absolute; left: 0; right: 0; bottom: -0.4em; width: 100%; height: 0.14em; overflow: visible; }
.cs-swash path { fill: none; stroke: var(--cs-coral); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.cs-ready .cs-tl > span, .cs-ready .cs-tl > em { transform: translateY(118%); }
.cs-ready .cs-swash path { stroke-dashoffset: 100; }
.cs-ready .cs-hero-text.is-in .cs-tl > span { transform: none; transition: transform 1.1s var(--cs-ease) 0.15s; }
.cs-ready .cs-hero-text.is-in .cs-tl > em { transform: none; transition: transform 1.1s var(--cs-ease) 0.32s; }
.cs-ready .cs-hero-text.is-in .cs-swash path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(0.5, 0, 0.2, 1) 1.1s; }
.cs-lead { margin-bottom: 28px; max-width: 56ch; font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.75; color: var(--cs-text); }

.cs-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.cs-hbtn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-size: 14.5px; font-weight: 600; letter-spacing: 0.01em; transition: transform 0.4s var(--cs-spring), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.cs-hbtn:hover { transform: translateY(-3px); }
.cs-hbtn:active { transform: scale(0.97); }
.cs-hbtn:focus-visible { outline: 2px solid var(--cs-coral); outline-offset: 3px; }
.cs-hbtn--solid { background: var(--cs-burgundy); color: #fff; box-shadow: 0 14px 30px rgba(64, 13, 28, 0.24); }
.cs-hbtn--solid:hover { background: var(--cs-burgundy-deep); box-shadow: 0 18px 38px rgba(64, 13, 28, 0.3); }
.cs-hbtn--solid::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent); transform: skewX(-18deg); animation: csShine 4.5s ease-in-out 1.6s infinite; }
@keyframes csShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.cs-hbtn .cs-ico { transition: transform 0.4s var(--cs-spring); }
.cs-hbtn--solid:hover .cs-ico { transform: translateY(3px) rotate(90deg); }
.cs-hbtn--ghost { background: rgba(255, 255, 255, 0.7); color: var(--cs-burgundy); border-color: rgba(64, 13, 28, 0.25); }
.cs-hbtn--ghost:hover { background: var(--cs-champagne); border-color: var(--cs-burgundy); }
.cs-ready .cs-hero-cta { opacity: 0; transform: translateY(14px); }
.cs-ready .cs-hero-text.is-in .cs-hero-cta { opacity: 1; transform: none; transition: opacity 0.8s var(--cs-ease) 0.55s, transform 0.8s var(--cs-ease) 0.55s; }

.cs-facts { list-style: none; border-top: 1px solid var(--cs-line); }
.cs-facts li { display: flex; align-items: center; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--cs-line); transition: transform 0.45s var(--cs-spring); }
.cs-facts li:hover { transform: translateX(6px); }
.cs-fact-ico { flex: 0 0 auto; display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 50%; background: var(--cs-champagne); color: var(--cs-burgundy); transition: background 0.35s ease, color 0.35s ease, transform 0.5s var(--cs-spring); }
.cs-facts li:hover .cs-fact-ico { background: var(--cs-burgundy); color: #fff; transform: rotate(-8deg) scale(1.06); }
.cs-fact-txt { font-size: 14.5px; line-height: 1.5; color: var(--cs-muted); }
.cs-fact-txt b { display: block; font-size: 16px; font-weight: 600; color: var(--cs-burgundy); }
.cs-ready .cs-facts li { opacity: 0; transform: translateX(-18px); }
.cs-ready .cs-hero-text.is-in .cs-facts li { opacity: 1; transform: none; transition: opacity 0.8s var(--cs-ease) calc(var(--f, 0) * 130ms + 0.75s), transform 0.8s var(--cs-ease) calc(var(--f, 0) * 130ms + 0.75s); }
.cs-ready .cs-hero-text.is-in .cs-facts li:hover { transform: translateX(6px); transition: transform 0.45s var(--cs-spring); }
.cs-facts li:nth-child(2) { --f: 1; } .cs-facts li:nth-child(3) { --f: 2; }

/* ----- dokument: formularz wypełnia się krok po kroku ----- */
.cs-doc { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 18px; }
.cs-doc::before { content: ''; position: absolute; inset: -10px -26px 30px; background: radial-gradient(rgba(64, 13, 28, 0.2) 1.3px, transparent 1.6px) 0 0 / 22px 22px; -webkit-mask-image: radial-gradient(closest-side, #000 26%, transparent 80%); mask-image: radial-gradient(closest-side, #000 26%, transparent 80%); opacity: 0.55; pointer-events: none; }
.cs-doc-glow { position: absolute; width: 86%; aspect-ratio: 1; left: 7%; top: 0; border-radius: 50%; background: radial-gradient(circle, rgba(234, 143, 133, 0.32), rgba(234, 143, 133, 0) 64%); animation: csDrift 12s ease-in-out infinite alternate; pointer-events: none; }
.cs-paper { position: relative; z-index: 1; width: min(100%, 480px); padding: 28px 30px 30px; border-radius: 24px; background: #fff; border: 1px solid rgba(64, 13, 28, 0.08); box-shadow: 0 40px 80px rgba(64, 13, 28, 0.14), 0 10px 24px rgba(64, 13, 28, 0.06); transition: transform 0.5s var(--cs-ease); will-change: transform; }
.cs-paper-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.cs-paper-title { display: block; margin-bottom: 8px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; font-weight: 600; line-height: 1.1; color: var(--cs-burgundy); }
.cs-paper-tag { display: inline-block; padding: 3px 10px; border: 1px solid rgba(234, 143, 133, 0.7); border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cs-coral-deep); white-space: nowrap; }
.cs-paper-count { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 1px; font-family: 'Cormorant Garamond', Georgia, serif; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; color: var(--cs-burgundy); }
.cs-paper-count b { font-size: 34px; font-weight: 500; line-height: 1; display: inline-block; }
.cs-paper-count i { font-style: normal; font-size: 17px; color: var(--cs-muted); }
.cs-paper-count b.is-pop { animation: csCount 0.5s var(--cs-spring); }
@keyframes csCount { 0% { transform: translateY(40%) scale(0.8); opacity: 0.2; } 100% { transform: none; opacity: 1; } }
.cs-paper-bar { height: 4px; margin-bottom: 22px; border-radius: 4px; background: rgba(64, 13, 28, 0.08); overflow: hidden; }
.cs-paper-bar i { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cs-burgundy), var(--cs-coral)); transition: width 0.8s var(--cs-ease); }
.cs-rows, .cs-sign { transition: opacity 0.45s ease; }
.cs-rows { list-style: none; display: flex; flex-direction: column; gap: 17px; }
.cs-row { display: flex; align-items: flex-start; gap: 14px; }
.cs-row-dot { flex: 0 0 auto; display: inline-flex; width: 26px; height: 26px; margin-top: -2px; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid rgba(64, 13, 28, 0.22); color: #fff; transition: background 0.4s ease, border-color 0.4s ease; }
.cs-row-dot svg { width: 14px; height: 14px; }
.cs-row-dot svg path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.5s ease 0.1s; }
.cs-row-body { flex: 1 1 auto; min-width: 0; }
.cs-row-label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cs-muted); transition: color 0.35s ease; }
.cs-row--talk .cs-row-label { margin: 3px 0 0; text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 500; line-height: 1.45; color: var(--cs-text); }
.cs-line { position: relative; display: block; height: 9px; margin-bottom: 8px; overflow: hidden; border-radius: 6px; background: linear-gradient(90deg, rgba(64, 13, 28, 0.15), rgba(64, 13, 28, 0.06)); transform-origin: left; transition: transform 0.9s var(--cs-ease); }
.cs-line--s { width: 56%; }
.cs-line:nth-of-type(2) { transition-delay: 0.14s; } .cs-line:nth-of-type(3) { transition-delay: 0.28s; }
.cs-row:not(.is-done):not(.is-active) .cs-line { transform: scaleX(0); }
.cs-row:not(.is-done):not(.is-active) .cs-row-label { color: rgba(122, 110, 112, 0.55); }
.cs-row.is-active .cs-row-label { color: var(--cs-burgundy); }
.cs-row.is-active .cs-row-dot { border-color: var(--cs-coral); animation: csDot 1.1s ease-out infinite; }
.cs-row.is-active .cs-line::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(234, 143, 133, 0.55) 50%, transparent 80%); background-size: 220% 100%; animation: csShimmer 1.1s linear infinite; }
@keyframes csDot { 0% { box-shadow: 0 0 0 0 rgba(234, 143, 133, 0.55); } 100% { box-shadow: 0 0 0 11px rgba(234, 143, 133, 0); } }
@keyframes csShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.cs-row.is-done .cs-row-dot { background: var(--cs-burgundy); border-color: var(--cs-burgundy); }
.cs-row.is-done .cs-row-dot svg path { stroke-dashoffset: 0; }
.cs-row.is-just .cs-row-dot { animation: csDotPop 0.55s var(--cs-spring); }
@keyframes csDotPop { 0% { transform: scale(0.7); } 60% { transform: scale(1.22); } 100% { transform: scale(1); } }
.cs-sign { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; margin-top: 24px; }
.cs-sign-col { position: relative; padding-top: 44px; }
.cs-sign-line { display: block; height: 1.5px; background: var(--cs-burgundy); opacity: 0.55; }
.cs-sign-col label { display: block; margin-top: 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.06em; line-height: 1.35; color: var(--cs-muted); }
.cs-signature { position: absolute; left: 0; top: -2px; width: 100%; height: 52px; overflow: visible; }
.cs-signature path { fill: none; stroke: var(--cs-burgundy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.cs-ready .cs-signature path { stroke-dashoffset: 100; }
.cs-ready .cs-paper.is-signing .cs-signature path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.9s cubic-bezier(0.5, 0, 0.3, 1); }
.cs-done { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 7px 16px 7px 7px; border-radius: 999px; background: var(--cs-champagne); color: var(--cs-burgundy); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; transition: opacity 0.45s ease, transform 0.6s var(--cs-spring); }
.cs-done span { display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 50%; background: var(--cs-burgundy); color: #fff; }
.cs-ready .cs-done { opacity: 0; transform: translateY(10px) scale(0.96); }
.cs-ready .cs-paper.is-complete .cs-done { opacity: 1; transform: none; }
.cs-paper.is-reset .cs-rows, .cs-paper.is-reset .cs-sign, .cs-paper.is-reset .cs-done { opacity: 0; }
.cs-doc-cap { position: relative; z-index: 1; margin-top: 28px; max-width: 440px; text-align: center; font-size: 12.5px; line-height: 1.6; color: var(--cs-muted); }


/* ==========================================================================
   SPIS TREŚCI (przyklejony pod nagłówkiem)
   ========================================================================== */
.cs-toc { position: sticky; top: var(--cs-hdr); z-index: 90; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--cs-line); border-bottom: 1px solid var(--cs-line); }
.cs-toc-inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-top: 8px; padding-bottom: 8px; }
.cs-toc-inner::-webkit-scrollbar { display: none; }
.cs-toc a { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--cs-text); transition: background 0.3s ease, color 0.3s ease; }
.cs-toc a:hover { background: var(--cs-champagne); color: var(--cs-burgundy); }
.cs-toc a.is-active { background: var(--cs-burgundy); color: #fff; }

/* ==========================================================================
   PASY SEKCJI
   ========================================================================== */
.cs-band { padding: clamp(72px, 8vw, 116px) 0; scroll-margin-top: calc(var(--cs-hdr) + 64px); }
.cs-band--white { background: #fff; }
.cs-band--cream { background: var(--cs-cream); }
.cs-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.cs-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.cs-head--center .cs-head-lead { margin-left: auto; margin-right: auto; }
.cs-eyebrow { display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(234, 143, 133, 0.7); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cs-coral-deep); }
.cs-h2 { margin-bottom: 14px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(32px, 4vw, 54px); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; color: var(--cs-burgundy); }
.cs-h2 { text-wrap: balance; }
.cs-h2 em { font-style: italic; color: var(--cs-coral-deep); }
.cs-head-lead { max-width: 62ch; font-size: 16.5px; line-height: 1.75; color: var(--cs-text); }

/* ----- 01. karty informacji ----- */

/* ----- 02. forma zgody ----- */

/* ----- 03. oś procesu ----- */

/* ----- 04. prawa ----- */

/* ----- 03. wiek pacjenta ----- */
.cs-age { position: relative; overflow: hidden; max-width: 1060px; margin: 0 auto; padding: clamp(24px, 4vw, 52px); border-radius: 32px; background: var(--cs-cream); border: 1px solid rgba(234, 143, 133, 0.35); box-shadow: 0 30px 70px rgba(64, 13, 28, 0.07); --st: var(--cs-burgundy); }
.cs-age[data-stage="1"] { --st: var(--cs-coral-deep); }
.cs-age::before { content: ''; position: absolute; width: 560px; height: 560px; left: -180px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(234, 143, 133, 0.28), rgba(234, 143, 133, 0) 66%); transition: transform 1.2s var(--cs-ease); pointer-events: none; }
.cs-age[data-stage="1"]::before { transform: translate(340px, 80px); }
.cs-age[data-stage="2"]::before { transform: translate(720px, 20px); }
.cs-age > * { position: relative; }

.cs-age-top { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 72px); margin-bottom: clamp(26px, 3.6vw, 40px); }
.cs-age-big { display: flex; align-items: flex-end; gap: 10px; min-width: clamp(170px, 20vw, 260px); }
.cs-age-num { position: relative; display: inline-block; height: 0.86em; overflow: hidden; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(120px, 15vw, 188px); font-weight: 500; line-height: 0.86; color: var(--st); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; transition: color 0.5s ease; }
.cs-age-num span { display: block; white-space: nowrap; }
.cs-age-num .cs-num-old { position: absolute; left: 0; top: 0; }
.cs-num-in-up { animation: csNumInUp 0.45s var(--cs-ease) both; }
.cs-num-in-down { animation: csNumInDown 0.45s var(--cs-ease) both; }
.cs-num-out-up { animation: csNumOutUp 0.45s var(--cs-ease) both; }
.cs-num-out-down { animation: csNumOutDown 0.45s var(--cs-ease) both; }
@keyframes csNumInUp { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes csNumInDown { from { transform: translateY(-105%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes csNumOutUp { from { transform: none; opacity: 1; } to { transform: translateY(-105%); opacity: 0; } }
@keyframes csNumOutDown { from { transform: none; opacity: 1; } to { transform: translateY(105%); opacity: 0; } }
.cs-age-unit { padding-bottom: 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cs-muted); }
.cs-age-ctl { min-width: 0; display: flex; flex-direction: column; gap: 22px; }

/* linijka z ząbkami */
.cs-ruler { position: relative; height: 104px; --T: 28px; }
.cs-ticks { position: absolute; left: 0; right: 0; top: 0; bottom: 24px; }
.cs-tick { position: absolute; bottom: 0; left: calc(var(--T) / 2 + (100% - var(--T)) * var(--i) / 18); width: 3px; height: calc(18px + var(--k, 0) * 9px); margin-left: -1.5px; border-radius: 3px; background: rgba(64, 13, 28, 0.24); transition: height 0.45s var(--cs-spring), background 0.3s ease; }
.cs-tick.is-lit { background: var(--st); }
.cs-tick:nth-child(17), .cs-tick:nth-child(19) { width: 4px; margin-left: -2px; }
.cs-needle { position: absolute; top: 0; bottom: 24px; left: calc(var(--T) / 2 + (100% - var(--T)) * var(--v) / 18); width: 0; pointer-events: none; transition: left 0.22s ease-out; }
.cs-needle::before { content: ''; position: absolute; left: -1px; width: 2px; top: 14px; bottom: 0; background: linear-gradient(to bottom, var(--cs-coral), rgba(234, 143, 133, 0)); }
.cs-needle i { position: absolute; left: -11px; top: -2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--st); box-shadow: 0 6px 16px rgba(64, 13, 28, 0.3); transition: transform 0.35s var(--cs-spring), border-color 0.4s ease; }
.cs-ruler.is-drag .cs-needle i { transform: scale(1.3); }
.cs-ruler:focus-within .cs-needle i { box-shadow: 0 0 0 5px rgba(234, 143, 133, 0.4), 0 6px 16px rgba(64, 13, 28, 0.3); }
.cs-ruler input { position: absolute; inset: 0 0 24px 0; z-index: 2; -webkit-appearance: none; appearance: none; width: 100%; height: calc(100% - 24px); margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.cs-ruler input::-webkit-slider-thumb { -webkit-appearance: none; width: var(--T); height: 80px; }
.cs-ruler input::-moz-range-thumb { width: var(--T); height: 80px; border: 0; }
.cs-rlabels { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--cs-muted); }
.cs-rl { position: absolute; top: 0; left: calc(var(--T) / 2 + (100% - var(--T)) * var(--i) / 18); transform: translateX(-50%); }

.cs-chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cs-ch { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 58px; padding: 10px 14px; border-radius: 16px; border: 1px solid rgba(64, 13, 28, 0.14); background: #fff; color: var(--cs-burgundy); text-align: left; font-family: 'Jost', sans-serif; cursor: pointer; transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.4s var(--cs-spring), box-shadow 0.4s ease; }
.cs-ch b { font-size: 14.5px; font-weight: 600; }
.cs-ch small { font-size: 12px; color: var(--cs-muted); transition: color 0.35s ease; }
.cs-ch:hover { transform: translateY(-2px); border-color: var(--cs-burgundy); }
.cs-ch:active { transform: scale(0.97); }
.cs-ch.is-active { background: var(--cs-burgundy); border-color: var(--cs-burgundy); color: #fff; box-shadow: 0 14px 30px rgba(64, 13, 28, 0.22); }
.cs-ch.is-active small { color: rgba(255, 255, 255, 0.72); }
.cs-ch:focus-visible { outline: 2px solid var(--cs-coral); outline-offset: 3px; }

/* kartka z podpisami */
.cs-paper2 { padding: clamp(20px, 3vw, 34px); border-radius: 24px; background: #fff; border: 1px solid rgba(64, 13, 28, 0.08); box-shadow: 0 24px 60px rgba(64, 13, 28, 0.08); }
.cs-paper2-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--cs-line); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 600; color: var(--cs-burgundy); }
.cs-paper2-badge { padding: 5px 12px; border-radius: 999px; background: var(--cs-champagne); font: 700 11.5px 'Jost', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; transition: opacity 0.3s ease; }
.cs-sigs { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 4vw, 52px); }
.cs-sigs-plus { position: absolute; left: 50%; top: 58px; width: 30px; height: 30px; margin-left: -15px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; border: 1px solid rgba(64, 13, 28, 0.18); color: var(--cs-muted); font-size: 18px; line-height: 1; opacity: 0; transform: scale(0.4) rotate(-90deg); transition: opacity 0.4s ease, transform 0.6s var(--cs-spring), background 0.4s ease, color 0.4s ease; }
.cs-age[data-stage="1"] .cs-sigs-plus { opacity: 1; transform: none; background: var(--cs-coral); border-color: var(--cs-coral); color: var(--cs-burgundy); }
.cs-sig { display: flex; flex-direction: column; gap: 10px; transition: opacity 0.5s ease, filter 0.5s ease; }
.cs-sig-who { display: flex; align-items: center; gap: 12px; }
.cs-sig-who b { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 20px; font-weight: 600; line-height: 1.1; color: var(--cs-burgundy); }
.cs-sig-who small { font-size: 12.5px; color: var(--cs-muted); }
.cs-sig-ico { display: inline-flex; flex: 0 0 auto; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(64, 13, 28, 0.08); color: var(--cs-burgundy); transition: background 0.45s ease, color 0.45s ease, transform 0.6s var(--cs-spring); }
.cs-sig-pad { position: relative; height: 88px; }
.cs-sig-svg { position: absolute; left: 0; right: 0; bottom: 8px; width: 100%; height: 72px; overflow: visible; }
.cs-sig-svg path { fill: none; stroke: var(--cs-burgundy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-opacity: 0; transition: stroke-dashoffset 0.4s ease, stroke-opacity 0.2s ease; }
.cs-sig-line { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-bottom: 2px solid rgba(64, 13, 28, 0.55); transition: border-color 0.4s ease; }
.cs-sig-wave { position: absolute; left: 0; bottom: 14px; display: flex; align-items: center; gap: 5px; height: 56px; opacity: 0; transition: opacity 0.4s ease; }
.cs-sig-wave i { display: block; width: 5px; height: 100%; border-radius: 5px; background: var(--cs-coral); transform: scaleY(0.2); animation: csWave 1.3s ease-in-out infinite; animation-delay: calc(var(--n, 0) * 0.12s); }
.cs-sig-wave i:nth-child(1) { --n: 0; } .cs-sig-wave i:nth-child(2) { --n: 1; } .cs-sig-wave i:nth-child(3) { --n: 2; } .cs-sig-wave i:nth-child(4) { --n: 3; } .cs-sig-wave i:nth-child(5) { --n: 4; } .cs-sig-wave i:nth-child(6) { --n: 5; } .cs-sig-wave i:nth-child(7) { --n: 6; }
@keyframes csWave { 0%, 100% { transform: scaleY(0.2); } 50% { transform: scaleY(1); } }
.cs-sig-state { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(64, 13, 28, 0.07); color: var(--cs-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; transition: background 0.4s ease, color 0.4s ease; }
.cs-sig-mark { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(64, 13, 28, 0.12); transition: background 0.4s ease; }
.cs-sig-mark .cs-ico { width: 12px; height: 12px; opacity: 0; transform: scale(0.3); transition: opacity 0.3s ease, transform 0.5s var(--cs-spring); }
/* stany podpisu */
.cs-sig[data-state="sign"] .cs-sig-ico { background: var(--cs-burgundy); color: #fff; transform: scale(1.06); }
.cs-sig[data-state="sign"] .cs-sig-svg path { stroke-opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(0.45, 0, 0.2, 1) var(--sd, 0.25s); }
.cs-sig[data-state="sign"] .cs-sig-state { background: var(--cs-burgundy); color: #fff; }
.cs-sig[data-state="sign"] .cs-sig-mark { background: var(--cs-coral); color: var(--cs-burgundy); }
.cs-sig[data-state="sign"] .cs-sig-mark .cs-ico { opacity: 1; transform: none; transition-delay: calc(var(--sd, 0.25s) + 1.1s); }
.cs-sig--pat[data-state="sign"] { --sd: 0.25s; }
.cs-age[data-stage="1"] .cs-sig--pat[data-state="sign"] { --sd: 1.55s; }
.cs-age[data-stage="1"] .cs-sig--pat[data-state="sign"] .cs-sig-mark .cs-ico { transition-delay: 2.65s; }
.cs-sig[data-state="heard"] .cs-sig-ico { background: rgba(234, 143, 133, 0.38); }
.cs-sig[data-state="heard"] .cs-sig-wave { opacity: 1; }
.cs-sig[data-state="heard"] .cs-sig-line { border-bottom-style: dotted; }
.cs-sig[data-state="heard"] .cs-sig-state { background: rgba(234, 143, 133, 0.28); color: var(--cs-burgundy); }
.cs-sig[data-state="none"] { opacity: 0.5; filter: grayscale(0.7); }
.cs-sig[data-state="none"] .cs-sig-line { border-bottom-style: dashed; border-color: rgba(64, 13, 28, 0.25); }

.cs-age-out { margin-top: 26px; padding-top: 20px; border-top: 1px dashed rgba(64, 13, 28, 0.2); }
.cs-age-out h3 { margin-bottom: 8px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(25px, 3vw, 30px); font-weight: 500; line-height: 1.15; color: var(--cs-burgundy); }
.cs-age-out p { max-width: 70ch; font-size: 16px; line-height: 1.75; color: var(--cs-text); }
.cs-age-out h3, .cs-age-out p { transition: opacity 0.3s ease, transform 0.45s var(--cs-ease); }
.cs-age-out.is-swap h3, .cs-age-out.is-swap p, .cs-paper2-badge.is-swap { opacity: 0; transform: translateY(8px); }

@media (max-width: 860px) {
  .cs-age-top { grid-template-columns: 1fr; gap: 14px; }
  .cs-age-big { justify-content: center; min-width: 0; }
  .cs-age-num { font-size: clamp(110px, 30vw, 150px); }
}
@media (max-width: 600px) {
  .cs-age { padding: 22px 16px; border-radius: 26px; }
  .cs-ruler { height: 92px; }
  .cs-tick { width: 2px; margin-left: -1px; }
  .cs-chapters { grid-template-columns: 1fr; gap: 8px; }
  .cs-ch { flex-direction: row; align-items: center; justify-content: space-between; min-height: 48px; }
  .cs-sigs { grid-template-columns: 1fr; gap: 22px; }
  .cs-sigs-plus { top: auto; bottom: auto; position: relative; left: auto; margin: -8px auto; }
  .cs-paper2 { padding: 18px 16px; }
  .cs-sig-pad { height: 76px; }
}

/* ----- 06. FAQ ----- */
.cs-faq { list-style: none; max-width: 940px; display: flex; flex-direction: column; gap: 12px; }
.cs-faq-item { border-radius: 22px; background: #fff; border: 1px solid rgba(234, 143, 133, 0.3); overflow: hidden; transition: border-color 0.3s ease, box-shadow 0.4s ease; }
.cs-faq-item.is-open { border-color: var(--cs-coral); box-shadow: 0 22px 50px rgba(64, 13, 28, 0.1); }
.cs-faq-btn { width: 100%; min-height: 64px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 0; background: transparent; color: var(--cs-burgundy); font: inherit; font-size: 17px; font-weight: 500; line-height: 1.4; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cs-faq-btn:focus-visible { outline: 2px solid var(--cs-coral); outline-offset: -3px; border-radius: 22px; }
.cs-faq-plus { flex: 0 0 auto; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--cs-champagne); color: var(--cs-burgundy); transition: transform 0.5s var(--cs-spring), background 0.3s ease, color 0.3s ease; }
.cs-faq-item.is-open .cs-faq-plus { transform: rotate(135deg); background: var(--cs-burgundy); color: #fff; }
.cs-faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--cs-ease); }
.cs-faq-item.is-open .cs-faq-panel { grid-template-rows: 1fr; }
.cs-faq-panel > div { min-height: 0; overflow: hidden; }
.cs-faq-panel p { padding: 0 22px 22px; max-width: 74ch; font-size: 15.5px; line-height: 1.75; color: var(--cs-text); opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.3s ease; }
.cs-faq-item.is-open .cs-faq-panel p { opacity: 1; transform: none; transition: opacity 0.6s ease 0.15s, transform 0.6s var(--cs-ease) 0.15s; }
.cs-ready .cs-faq-item { opacity: 0; transform: translateY(18px); }
.cs-ready .cs-faq.is-in .cs-faq-item { opacity: 1; transform: none; transition: opacity 0.7s var(--cs-ease) calc(var(--q) * 70ms), transform 0.7s var(--cs-ease) calc(var(--q) * 70ms), border-color 0.3s ease, box-shadow 0.4s ease; }

/* ----- CTA ----- */
.cs-cta-band { padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); background: #fff; }
.cs-cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 3.8vw, 52px); border-radius: 36px; background: linear-gradient(135deg, var(--cs-burgundy-deep), var(--cs-burgundy)); color: #fff; box-shadow: 0 40px 90px rgba(64, 13, 28, 0.3); }
.cs-cta::before { content: ''; position: absolute; width: 440px; height: 440px; right: -150px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(234, 143, 133, 0.45), transparent 70%); }
.cs-cta-text { position: relative; max-width: 620px; }
.cs-cta-text h2 { margin-bottom: 10px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(28px, 3.2vw, 42px); font-weight: 500; line-height: 1.12; color: #fff; }
.cs-cta-text p { font-size: 16px; line-height: 1.7; color: rgba(247, 236, 221, 0.86); }
.cs-cta-actions { position: relative; display: flex; flex-direction: column; gap: 12px; flex: 0 0 auto; min-width: min(100%, 270px); }
.cs-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent; font-family: 'Montserrat', 'Jost', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-decoration: none; overflow: hidden; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 0.35s var(--cs-spring), background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease; }
.cs-btn:hover { transform: translateY(-3px); }
.cs-btn:active { transform: scale(0.97); }
.cs-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cs-btn--primary { background: var(--cs-champagne); color: var(--cs-burgundy); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); }
.cs-btn--primary:hover { background: var(--cs-coral); }
.cs-btn--primary .cs-ico { transition: transform 0.35s var(--cs-spring); }
.cs-btn--primary:hover .cs-ico { transform: translateX(5px); }
.cs-btn--primary::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent); transform: skewX(-18deg); animation: csShine 4.5s ease-in-out infinite 1.5s; }
@keyframes csShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.cs-btn--outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cs-btn--outline:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
.cs-fine { margin: 34px auto 0; max-width: 920px; text-align: center; font-size: 12.5px; line-height: 1.8; color: var(--cs-muted); }
.cs-fine a { color: var(--cs-burgundy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(234, 143, 133, 0.9); }
.cs-fine a:hover { color: var(--cs-coral-deep); }

.cs-footer { padding: 40px clamp(24px, 5vw, 80px); text-align: center; font-size: 13px; color: #7a6e6c; border-top: 1px solid rgba(64, 13, 28, 0.08); background: #fff; }

/* ==========================================================================
   RESPONSYWNOŚĆ
   ========================================================================== */
@media (max-width: 1100px) {
}

@media (max-width: 960px) {
  .cs-hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .cs-doc { padding-top: 24px; }
  .cs-cta { flex-direction: column; align-items: flex-start; }
  .cs-cta-actions { width: 100%; }
}

@media (max-width: 600px) {
  .cs-logo-main { font-size: 18px; letter-spacing: 0.14em; }
  .cs-logo-sub { letter-spacing: 0.16em; }
  .cs-header { padding: 12px 14px; }
  .cs-back { width: 44px; padding: 0; }
  .cs-book { padding: 10px 16px; font-size: 12px; }
  .cs-hide-xs { display: none; }
  .cs-crumbs { font-size: 12.5px; margin-bottom: 20px; }
  .cs-kicker { font-size: 10.5px; letter-spacing: 0.15em; }
  .cs-paper { padding: 22px 18px 24px; }
  .cs-paper-title { font-size: 21px; }
  .cs-sign { grid-template-columns: 1fr; gap: 6px; }
  .cs-hero-cta .cs-hbtn { width: 100%; }
  .cs-fact-ico { width: 42px; height: 42px; }
  .cs-fact-txt b { font-size: 15px; }
  .cs-faq-btn { font-size: 16px; padding: 16px; }
  .cs-faq-panel p { padding: 0 16px 18px; }
  .cs-cta { border-radius: 28px; padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-age::before, .cs-sig-svg path { transition: none !important; }
  .cs-sig-wave i, .cs-num-in-up, .cs-num-in-down, .cs-num-out-up, .cs-num-out-down { animation: none !important; }
  html { scroll-behavior: auto; }
  .cs-page *, .cs-page *::before, .cs-page *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .cs-ready [data-cs-reveal], .cs-ready .cs-faq-item, .cs-ready .cs-facts li, .cs-ready .cs-flag, .cs-ready .cs-irow, .cs-ready .cs-bn, .cs-ready .cs-qlist .cs-q { opacity: 1; transform: none; }
  .cs-ready .cs-tl > span, .cs-ready .cs-tl > em, .cs-ready .cs-hero-cta { transform: none; opacity: 1; }
  .cs-ready .cs-swash path, .cs-ready .cs-signature path { stroke-dashoffset: 0; }
  .cs-ready .cs-done { opacity: 1; transform: none; }
  }

/* ==========================================================================
   NOWE SEKCJE (wersja 3)
   ========================================================================== */
.cs-band--white .cs-faq-item { background: var(--cs-cream); }
.cs-cta-band { background: var(--cs-cream); }

/* ----- 01. anatomia formularza ----- */
.cs-anat { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; max-width: 1100px; margin: 0 auto; }
.cs-anat-sheet { padding: clamp(22px, 3vw, 36px); border-radius: 26px; background: linear-gradient(180deg, #fff, #fffdfa); border: 1px solid rgba(64, 13, 28, 0.08); box-shadow: 0 40px 80px rgba(64, 13, 28, 0.12), 0 10px 24px rgba(64, 13, 28, 0.05); }
.cs-anat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 2px solid var(--cs-burgundy); }
.cs-anat-head b { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 23px; font-weight: 600; color: var(--cs-burgundy); }
.cs-anat-head span { padding: 3px 10px; border: 1px solid rgba(234, 143, 133, 0.7); border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cs-coral-deep); white-space: nowrap; }
.cs-anat-fields { position: relative; display: flex; flex-direction: column; gap: 4px; }
.cs-anat-hl { position: absolute; left: -10px; right: -10px; top: 0; height: 60px; border-radius: 16px; background: rgba(234, 143, 133, 0.13); border: 1.5px solid var(--cs-coral); box-shadow: 0 0 0 6px rgba(234, 143, 133, 0.1); pointer-events: none; transition: top 0.6s var(--cs-spring), height 0.6s var(--cs-spring); }
.cs-af { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 12px 4px; border: 0; background: none; border-radius: 14px; font-family: inherit; color: inherit; text-align: left; cursor: pointer; }
.cs-af:focus-visible { outline: 2px solid var(--cs-coral); outline-offset: 2px; }
.cs-af-no { flex: 0 0 auto; display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(64, 13, 28, 0.08); color: var(--cs-muted); font: 700 12px 'Jost', sans-serif; transition: background 0.35s ease, color 0.35s ease, transform 0.5s var(--cs-spring); }
.cs-af.is-active .cs-af-no { background: var(--cs-burgundy); color: #fff; transform: scale(1.12); }
.cs-af-body { flex: 1 1 auto; min-width: 0; }
.cs-af-label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cs-muted); transition: color 0.35s ease; }
.cs-af.is-active .cs-af-label { color: var(--cs-burgundy); }
.cs-af .cs-line { margin-bottom: 7px; }
.cs-af.is-active .cs-line { background: linear-gradient(90deg, rgba(234, 143, 133, 0.6), rgba(234, 143, 133, 0.18)); animation: csLineIn 0.8s var(--cs-ease) both; }
.cs-af.is-active .cs-line:nth-of-type(2) { animation-delay: 0.1s; } .cs-af.is-active .cs-line:nth-of-type(3) { animation-delay: 0.2s; }
@keyframes csLineIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cs-af-chk { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border: 2px solid rgba(64, 13, 28, 0.25); border-radius: 7px; color: #fff; transition: background 0.35s ease, border-color 0.35s ease; }
.cs-af-chk svg { width: 13px; height: 13px; }
.cs-af-chk svg path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.5s ease 0.2s; }
.cs-af.is-active .cs-af-chk { background: var(--cs-burgundy); border-color: var(--cs-burgundy); }
.cs-af.is-active .cs-af-chk svg path { stroke-dashoffset: 0; }
.cs-af-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; }
.cs-af-sigs i { display: block; height: 22px; border-bottom: 1.5px solid rgba(64, 13, 28, 0.4); transform-origin: left; }
.cs-af.is-active .cs-af-sigs i { border-color: var(--cs-burgundy); animation: csLineIn 0.8s var(--cs-ease) both; }
.cs-af.is-active .cs-af-sigs i + i { animation-delay: 0.25s; }

.cs-anat-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(24px, 3.4vw, 42px); border-radius: 26px; background: linear-gradient(160deg, var(--cs-burgundy), var(--cs-burgundy-deep)); color: #fff; box-shadow: 0 30px 70px rgba(64, 13, 28, 0.3); }
.cs-anat-panel::before { content: ''; position: absolute; width: 380px; height: 380px; right: -140px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(234, 143, 133, 0.38), rgba(234, 143, 133, 0) 66%); animation: csDrift 12s ease-in-out infinite alternate; pointer-events: none; }
.cs-anat-panel > * { position: relative; }
.cs-ap-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cs-ap-count { display: inline-flex; align-items: baseline; gap: 2px; font-family: 'Cormorant Garamond', Georgia, serif; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.cs-ap-count b { font-size: clamp(54px, 6vw, 72px); font-weight: 500; line-height: 0.9; color: var(--cs-champagne); }
.cs-ap-count i { font-style: normal; font-size: 20px; color: rgba(255, 255, 255, 0.5); }
.cs-ap-count b.is-pop { animation: csCount 0.5s var(--cs-spring); }
.cs-ap-nav, .cs-jcard-nav { display: inline-flex; gap: 10px; }
.cs-ap-btn { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: #fff; cursor: pointer; transition: background 0.3s ease, transform 0.4s var(--cs-spring), border-color 0.3s ease; }
.cs-ap-btn:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; transform: scale(1.08); }
.cs-ap-btn:active { transform: scale(0.94); }
.cs-ap-btn:focus-visible { outline: 2px solid var(--cs-coral); outline-offset: 3px; }
.cs-ap-body { display: flex; flex-direction: column; justify-content: center; flex: 1 1 auto; transition: opacity 0.28s ease, transform 0.45s var(--cs-ease); }
.cs-ap-body.is-swap { opacity: 0; transform: translateY(12px); }
.cs-ap-body h3 { margin-bottom: 12px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(28px, 3vw, 36px); font-weight: 500; line-height: 1.12; color: #fff; }
.cs-ap-body p { font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, 0.86); }
.cs-ap-src { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px !important; font-size: 12.5px !important; }
.cs-ap-src span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cs-coral); }
.cs-ap-src b { font-weight: 600; color: var(--cs-champagne); }
.cs-ap-dots { display: flex; gap: 8px; margin-top: 26px; }
.cs-ap-dot { flex: 1 1 0; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.cs-ap-dot b { display: block; width: 0; height: 100%; background: var(--cs-coral); }
.cs-ap-dot.is-done b { width: 100%; }
.cs-ap-dot.is-active b { width: 100%; }
.cs-anat.is-auto .cs-ap-dot.is-active b { animation: csFill 6.5s linear both; }
@keyframes csFill { from { width: 0; } to { width: 100%; } }

/* ----- 02. na co zwrócić uwagę ----- */
.cs-flags { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1180px; margin: 0 auto; }
.cs-flag { position: relative; overflow: hidden; display: block; min-height: 340px; padding: 0; border-radius: 24px; background: #fff; border: 1px solid rgba(234, 143, 133, 0.4); font-family: inherit; color: var(--cs-burgundy); text-align: left; cursor: pointer; transition: transform 0.5s var(--cs-spring), box-shadow 0.4s ease, border-color 0.3s ease; }
.cs-flag:hover { transform: translateY(-6px); border-color: var(--cs-coral); box-shadow: 0 26px 56px rgba(64, 13, 28, 0.12); }
.cs-flag:focus-visible { outline: 2px solid var(--cs-coral); outline-offset: 3px; }
.cs-flag-front { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 22px 20px; }
.cs-flag-ico { display: inline-flex; width: 50px; height: 50px; margin-bottom: 18px; align-items: center; justify-content: center; border-radius: 50%; background: var(--cs-champagne); color: var(--cs-coral-deep); transition: transform 0.5s var(--cs-spring); }
.cs-flag:hover .cs-flag-ico { transform: rotate(-10deg) scale(1.08); }
.cs-flag-tag { margin-bottom: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cs-muted); }
.cs-flag-q { quotes: none; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 23px; font-style: italic; line-height: 1.3; color: var(--cs-burgundy); }
.cs-flag-q span { background-image: linear-gradient(var(--cs-coral-deep), var(--cs-coral-deep)); background-repeat: no-repeat; background-size: 0 2px; background-position: 0 62%; transition: background-size 0.8s var(--cs-ease) 0.1s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cs-flag:hover .cs-flag-q span, .cs-flag.is-open .cs-flag-q span { background-size: 100% 2px; }
.cs-flag-title { margin-top: auto; padding-top: 16px; font-size: 15px; font-weight: 600; }
.cs-flag-hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--cs-coral-deep); }
.cs-flag-back { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; padding: 24px 20px; background: linear-gradient(160deg, var(--cs-burgundy), var(--cs-burgundy-deep)); color: #fff; transform: translateY(101%); transition: transform 0.65s var(--cs-ease); }
.cs-flag.is-open .cs-flag-back { transform: none; }
.cs-flag-back b { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; font-weight: 500; line-height: 1.15; }
.cs-flag-back > span { font-size: 14.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.88); }
.cs-flag-back .cs-flag-src { margin-top: auto; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cs-coral); }
.cs-ready .cs-flag { opacity: 0; transform: translateY(26px); }
.cs-ready .cs-flags.is-in .cs-flag { opacity: 1; transform: none; transition: opacity 0.8s var(--cs-ease) calc(var(--i) * 100ms + 0.1s), transform 0.8s var(--cs-ease) calc(var(--i) * 100ms + 0.1s), box-shadow 0.4s ease, border-color 0.3s ease; }
.cs-ready .cs-flags.is-in.is-settled .cs-flag { transition: transform 0.5s var(--cs-spring), box-shadow 0.4s ease, border-color 0.3s ease; }

/* ----- 03. co lekarz musi powiedzieć ----- */
.cs-info-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.cs-info-head { position: sticky; top: calc(var(--cs-hdr) + 96px); margin-bottom: 0; }
.cs-info-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 26px; padding: 16px 18px; border-radius: 18px; background: var(--cs-cream); border: 1px dashed rgba(64, 13, 28, 0.22); font-size: 14.5px; line-height: 1.65; color: var(--cs-text); }
.cs-info-note .cs-ico { margin-top: 2px; color: var(--cs-coral-deep); }
.cs-ilist { list-style: none; border-top: 1px solid var(--cs-line); }
.cs-irow { position: relative; display: grid; grid-template-columns: 74px 56px minmax(0, 1fr); gap: 18px; align-items: start; padding: 26px 8px 26px 0; border-bottom: 1px solid var(--cs-line); transition: padding 0.5s var(--cs-spring); }
.cs-irow::before { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: linear-gradient(90deg, var(--cs-burgundy), var(--cs-coral)); transition: width 0.8s var(--cs-ease); }
.cs-irow:hover { padding-left: 14px; }
.cs-irow:hover::before { width: 100%; }
.cs-irow-no { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 52px; line-height: 1; color: rgba(234, 143, 133, 0.55); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; transition: color 0.35s ease, transform 0.5s var(--cs-spring); }
.cs-irow:hover .cs-irow-no { color: var(--cs-coral-deep); transform: scale(1.1); }
.cs-irow-ico { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: var(--cs-champagne); color: var(--cs-burgundy); transition: background 0.35s ease, color 0.35s ease, transform 0.5s var(--cs-spring); }
.cs-irow:hover .cs-irow-ico { background: var(--cs-burgundy); color: #fff; transform: rotate(-8deg) scale(1.08); }
.cs-irow h3 { margin-bottom: 6px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 28px; font-weight: 500; line-height: 1.15; color: var(--cs-burgundy); }
.cs-irow p { font-size: 15.5px; line-height: 1.7; color: var(--cs-text); }
.cs-ready .cs-irow { opacity: 0; transform: translateX(26px); }
.cs-ready .cs-ilist.is-in .cs-irow { opacity: 1; transform: none; transition: opacity 0.8s var(--cs-ease) calc(var(--i) * 90ms), transform 0.8s var(--cs-ease) calc(var(--i) * 90ms), padding 0.5s var(--cs-spring); }

/* ----- 04. forma zgody ----- */
.cs-form2 { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(20px, 3vw, 40px); max-width: 1080px; margin: 0 auto; align-items: stretch; }
.cs-opts { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.cs-opt { display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 20px; border-radius: 20px; border: 1px solid rgba(64, 13, 28, 0.12); background: #fff; font-family: inherit; color: var(--cs-burgundy); text-align: left; cursor: pointer; transition: transform 0.5s var(--cs-spring), background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.4s ease; }
.cs-opt:hover { transform: translateX(6px); border-color: var(--cs-burgundy); }
.cs-opt:focus-visible { outline: 2px solid var(--cs-coral); outline-offset: 3px; }
.cs-opt-no { display: inline-flex; flex: 0 0 auto; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(64, 13, 28, 0.08); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 21px; font-style: italic; transition: background 0.35s ease, color 0.35s ease; }
.cs-opt b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.cs-opt small { font-size: 13px; color: var(--cs-muted); transition: color 0.35s ease; }
.cs-opt.is-active { background: var(--cs-burgundy); border-color: var(--cs-burgundy); color: #fff; box-shadow: 0 18px 40px rgba(64, 13, 28, 0.25); transform: translateX(10px); }
.cs-opt.is-active small { color: rgba(255, 255, 255, 0.72); }
.cs-opt.is-active .cs-opt-no { background: var(--cs-coral); color: var(--cs-burgundy); }
.cs-stage2 { position: relative; overflow: hidden; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: center; padding: clamp(24px, 3.4vw, 44px); border-radius: 28px; background: #fff; border: 1px solid rgba(234, 143, 133, 0.4); box-shadow: 0 30px 70px rgba(64, 13, 28, 0.08); }
.cs-stage2::before { content: ''; position: absolute; width: 360px; height: 360px; left: -110px; top: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(234, 143, 133, 0.26), rgba(234, 143, 133, 0) 66%); transition: transform 1s var(--cs-ease); pointer-events: none; }
.cs-form2[data-mode="oral"] .cs-stage2::before { transform: translate(60px, 120px); }
.cs-stage2 > * { position: relative; }
.cs-stage2-art { width: 190px; height: 190px; }
.cs-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: opacity 0.45s ease, transform 0.7s var(--cs-spring); }
.cs-form2.is-idle .cs-art { opacity: 0; }
.cs-form2[data-mode="written"] .cs-art--voice, .cs-form2[data-mode="oral"] .cs-art--doc { opacity: 0; transform: translateY(16px) scale(0.92); }
.a-page { fill: #fffdfa; stroke: rgba(64, 13, 28, 0.3); stroke-width: 2; filter: drop-shadow(0 14px 22px rgba(64, 13, 28, 0.15)); }
.a-ln { fill: none; stroke: rgba(64, 13, 28, 0.2); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 90; }
.a-sig { fill: none; stroke: var(--cs-burgundy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; }
.a-badge { fill: var(--cs-coral); transform-box: fill-box; transform-origin: center; }
.a-tick { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; }
.cs-form2[data-mode="written"] .a-ln { animation: csDraw 0.9s var(--cs-ease) both; }
.cs-form2[data-mode="written"] .a-l2 { animation-delay: 0.15s; } .cs-form2[data-mode="written"] .a-l3 { animation-delay: 0.3s; }
.cs-form2[data-mode="written"] .a-sig { animation: csDraw 1.4s cubic-bezier(0.5, 0, 0.3, 1) 0.6s both; }
.cs-form2[data-mode="written"] .a-badge { animation: csBadge 0.6s var(--cs-spring) 1.8s both; }
.cs-form2[data-mode="written"] .a-tick { animation: csDraw 0.5s ease 2.1s both; }
@keyframes csDraw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes csBadge { from { transform: scale(0); } to { transform: scale(1); } }
.a-bubble { fill: #fffdfa; stroke: rgba(64, 13, 28, 0.3); stroke-width: 2; filter: drop-shadow(0 14px 22px rgba(64, 13, 28, 0.15)); }
.a-bar { fill: var(--cs-coral); transform-box: fill-box; transform-origin: center; }
.cs-form2[data-mode="oral"] .a-bar { animation: csBar 1s ease-in-out infinite alternate; }
.cs-form2[data-mode="oral"] .b2 { animation-delay: 0.15s; } .cs-form2[data-mode="oral"] .b3 { animation-delay: 0.3s; } .cs-form2[data-mode="oral"] .b4 { animation-delay: 0.45s; }
@keyframes csBar { from { transform: scaleY(0.35); } to { transform: scaleY(1.15); } }
.a-hand { display: none; }
.cs-stage2-txt { min-width: 0; container-type: inline-size; }
.cs-fword { display: block; margin-bottom: 4px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(34px, 4.4vw, 72px); font-size: clamp(34px, 16.5cqw, 84px); line-height: 1; letter-spacing: 0.02em; white-space: nowrap; color: var(--cs-burgundy); transition: color 0.4s ease; }
.cs-fword.is-oral { color: var(--cs-coral-deep); }
.cs-fl { display: inline-block; animation: csLetter 0.6s var(--cs-spring) both; animation-delay: calc(var(--k) * 45ms); }
@keyframes csLetter { from { opacity: 0; transform: translateY(45%) rotate(5deg); } to { opacity: 1; transform: none; } }
.cs-fword-sub { display: block; margin-bottom: 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cs-muted); }
.cs-fdesc { font-size: 16.5px; line-height: 1.75; color: var(--cs-text); transition: opacity 0.3s ease, transform 0.45s var(--cs-ease); }
.cs-fdesc.is-swap { opacity: 0; transform: translateY(8px); }
.cs-fnote { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(64, 13, 28, 0.2); font-size: 14px; line-height: 1.6; color: var(--cs-muted); }
.cs-fnote .cs-ico { margin-top: 2px; color: var(--cs-coral-deep); }

/* ----- 06. droga do zgody ----- */
.cs-journey { max-width: 1000px; margin: 0 auto; }
.cs-jtrack { position: relative; margin-bottom: 30px; }
.cs-jline { position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 26px; height: 3px; border-radius: 3px; background: rgba(64, 13, 28, 0.12); overflow: hidden; }
.cs-jline i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--cs-burgundy), var(--cs-coral)); transition: width 0.7s var(--cs-ease); }
.cs-jnodes { position: relative; list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cs-jn { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; padding: 0 4px; border: 0; background: none; font-family: inherit; color: var(--cs-burgundy); cursor: pointer; }
.cs-jn:focus-visible { outline: 2px solid var(--cs-coral); outline-offset: 2px; border-radius: 12px; }
.cs-jn-dot { position: relative; z-index: 1; display: flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid rgba(64, 13, 28, 0.2); background: #fff; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 25px; font-weight: 500; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, transform 0.5s var(--cs-spring); }
.cs-jn:hover .cs-jn-dot { transform: scale(1.1); border-color: var(--cs-burgundy); }
.cs-jn.is-passed .cs-jn-dot { background: var(--cs-burgundy); border-color: var(--cs-burgundy); color: #fff; }
.cs-jn.is-active .cs-jn-dot { background: var(--cs-coral); border-color: var(--cs-coral); color: var(--cs-burgundy); transform: scale(1.16); animation: csDot 1.8s ease-out infinite; }
.cs-jn-lbl { max-width: 118px; font-size: 13px; font-weight: 600; line-height: 1.3; text-align: center; color: var(--cs-muted); transition: color 0.35s ease; }
.cs-jn.is-active .cs-jn-lbl, .cs-jn.is-passed .cs-jn-lbl { color: var(--cs-burgundy); }
.cs-jcard { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 26px; align-items: center; padding: clamp(24px, 3.4vw, 42px); border-radius: 28px; background: #fff; border: 1px solid rgba(234, 143, 133, 0.4); box-shadow: 0 30px 70px rgba(64, 13, 28, 0.08); }
.cs-jcard::before { content: ''; position: absolute; width: 340px; height: 340px; right: -120px; top: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(234, 143, 133, 0.24), rgba(234, 143, 133, 0) 66%); pointer-events: none; }
.cs-jcard > * { position: relative; }
.cs-jcard-ico { display: inline-flex; width: 84px; height: 84px; align-items: center; justify-content: center; border-radius: 26px; background: var(--cs-burgundy); color: #fff; box-shadow: 0 16px 34px rgba(64, 13, 28, 0.25); transition: transform 0.6s var(--cs-spring); }
.cs-jcard-ico.is-pop { animation: csPopIco 0.6s var(--cs-spring); }
@keyframes csPopIco { 0% { transform: scale(0.7) rotate(-14deg); } 100% { transform: none; } }
.cs-jcard-body { transition: opacity 0.28s ease, transform 0.45s var(--cs-ease); }
.cs-jcard-body.is-swap { opacity: 0; transform: translateY(10px); }
.cs-jtag { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(234, 143, 133, 0.7); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cs-coral-deep); }
.cs-jcard h3 { margin-bottom: 8px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(27px, 3vw, 36px); font-weight: 500; line-height: 1.12; color: var(--cs-burgundy); }
.cs-jcard p { max-width: 62ch; font-size: 16.5px; line-height: 1.75; color: var(--cs-text); }
.cs-jcard .cs-ap-btn { border-color: rgba(64, 13, 28, 0.25); color: var(--cs-burgundy); }
.cs-jcard .cs-ap-btn:hover { background: var(--cs-burgundy); border-color: var(--cs-burgundy); color: #fff; }
.cs-jcard-nav { flex-direction: column; }

/* ----- 07. pytania do lekarza ----- */
.cs-q-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 92px); align-items: start; }
.cs-q-side { position: sticky; top: calc(var(--cs-hdr) + 96px); }
.cs-ring { position: relative; width: 156px; height: 156px; margin-top: 28px; }
.cs-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cs-ring2-bg { fill: none; stroke: rgba(64, 13, 28, 0.1); stroke-width: 9; }
.cs-ring2-fg { fill: none; stroke: var(--cs-burgundy); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke-dashoffset 0.8s var(--cs-ease), stroke 0.4s ease; }
.cs-ring.is-full .cs-ring2-fg { stroke: var(--cs-coral); }
.cs-ring-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1px; font-family: 'Cormorant Garamond', Georgia, serif; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; color: var(--cs-burgundy); }
.cs-ring-val b { font-size: 54px; font-weight: 500; line-height: 1; display: inline-block; }
.cs-ring-val b.is-pop { animation: csCount 0.5s var(--cs-spring); }
.cs-ring-val i { align-self: flex-end; margin-bottom: 40px; font-style: normal; font-size: 18px; color: var(--cs-muted); }
.cs-ring-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.cs-ring-burst i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--cs-coral); animation: csBurst 0.9s ease-out forwards; }
@keyframes csBurst { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(0.3); opacity: 0; } }
.cs-ring-msg { max-width: 30ch; min-height: 3.2em; margin-top: 18px; font-size: 15px; line-height: 1.6; color: var(--cs-text); }
.cs-qlist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cs-q label { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px; border-radius: 18px; background: var(--cs-cream); border: 1px solid rgba(64, 13, 28, 0.08); cursor: pointer; transition: transform 0.45s var(--cs-spring), background 0.3s ease, border-color 0.3s ease, box-shadow 0.4s ease; }
.cs-q label:hover { transform: translateX(6px); border-color: var(--cs-coral); }
.cs-q label.is-checked { background: #fff; border-color: rgba(234, 143, 133, 0.7); box-shadow: 0 14px 30px rgba(64, 13, 28, 0.07); }
.cs-q-in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cs-q-box { display: inline-flex; flex: 0 0 auto; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 8px; border: 2px solid rgba(64, 13, 28, 0.3); background: #fff; color: #fff; transition: background 0.3s ease, border-color 0.3s ease, transform 0.45s var(--cs-spring); }
.cs-q-box svg { width: 14px; height: 14px; }
.cs-q-box svg path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.4s ease 0.05s; }
.cs-q-in:checked + .cs-q-box { background: var(--cs-burgundy); border-color: var(--cs-burgundy); transform: scale(1.1); }
.cs-q-in:checked + .cs-q-box svg path { stroke-dashoffset: 0; }
.cs-q-in:focus-visible + .cs-q-box { outline: 2px solid var(--cs-coral); outline-offset: 3px; }
.cs-q-txt { font-size: 16px; line-height: 1.55; color: var(--cs-burgundy); transition: color 0.3s ease; }
.cs-q-in:checked ~ .cs-q-txt { color: var(--cs-muted); }
.cs-ready .cs-qlist .cs-q { opacity: 0; transform: translateX(22px); }
.cs-ready .cs-qlist.is-in .cs-q { opacity: 1; transform: none; transition: opacity 0.7s var(--cs-ease), transform 0.7s var(--cs-ease); }
.cs-ready .cs-qlist.is-in .cs-q:nth-child(2) { transition-delay: 0.07s; } .cs-ready .cs-qlist.is-in .cs-q:nth-child(3) { transition-delay: 0.14s; } .cs-ready .cs-qlist.is-in .cs-q:nth-child(4) { transition-delay: 0.21s; } .cs-ready .cs-qlist.is-in .cs-q:nth-child(5) { transition-delay: 0.28s; } .cs-ready .cs-qlist.is-in .cs-q:nth-child(6) { transition-delay: 0.35s; } .cs-ready .cs-qlist.is-in .cs-q:nth-child(7) { transition-delay: 0.42s; } .cs-ready .cs-qlist.is-in .cs-q:nth-child(8) { transition-delay: 0.49s; }

/* ----- 08. prawa pacjenta (bento) ----- */
.cs-bento { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1180px; margin: 0 auto; }
.cs-bn { position: relative; overflow: hidden; padding: 24px 22px 26px; border-radius: 24px; background: #fff; border: 1px solid rgba(234, 143, 133, 0.3); transition: transform 0.5s var(--cs-spring), box-shadow 0.4s ease, border-color 0.3s ease; }
.cs-bn::after { content: ''; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(234, 143, 133, 0.2), transparent 62%); opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.cs-bn:hover { transform: translateY(-6px); border-color: var(--cs-coral); box-shadow: 0 26px 56px rgba(64, 13, 28, 0.1); }
.cs-bn:hover::after { opacity: 1; }
.cs-bn > * { position: relative; z-index: 1; }
.cs-bn-ico { display: inline-flex; width: 48px; height: 48px; margin-bottom: 14px; align-items: center; justify-content: center; border-radius: 15px; background: var(--cs-champagne); color: var(--cs-burgundy); transition: background 0.35s ease, color 0.35s ease, transform 0.5s var(--cs-spring); }
.cs-bn:hover .cs-bn-ico { background: var(--cs-burgundy); color: #fff; transform: rotate(-8deg) scale(1.08); }
.cs-bn h3 { margin-bottom: 8px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; font-weight: 500; line-height: 1.15; color: var(--cs-burgundy); }
.cs-bn p { font-size: 14.5px; line-height: 1.65; color: var(--cs-text); }
.cs-bn--big { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px 30px; border-color: transparent; background: linear-gradient(160deg, var(--cs-burgundy), var(--cs-burgundy-deep)); color: #fff; }
.cs-bn--big:hover { border-color: transparent; }
.cs-bn--big h3 { color: #fff; font-size: clamp(30px, 3vw, 42px); }
.cs-bn--big p { font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, 0.86); }
.cs-switch { position: relative; align-self: flex-start; margin-bottom: auto; width: 252px; height: 58px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(234, 143, 133, 0.4); overflow: hidden; animation: csSwBg 6s ease-in-out infinite; }
.cs-sw-on, .cs-sw-off { position: absolute; inset: 0; display: flex; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.cs-sw-on { padding-left: 22px; color: var(--cs-champagne); animation: csSwOn 6s ease-in-out infinite; }
.cs-sw-off { padding-left: 66px; color: rgba(255, 255, 255, 0.78); animation: csSwOff 6s ease-in-out infinite; }
.cs-sw-knob { position: absolute; top: 6px; left: 6px; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); animation: csKnob 6s cubic-bezier(0.5, 0, 0.2, 1) infinite; }
@keyframes csKnob { 0%, 42% { transform: translateX(var(--sw, 196px)); } 52%, 92% { transform: translateX(0); } 100% { transform: translateX(var(--sw, 196px)); } }
@keyframes csSwBg { 0%, 42% { background: rgba(234, 143, 133, 0.42); } 52%, 92% { background: rgba(255, 255, 255, 0.1); } 100% { background: rgba(234, 143, 133, 0.42); } }
@keyframes csSwOn { 0%, 40% { opacity: 1; } 48%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes csSwOff { 0%, 40% { opacity: 0; } 48%, 94% { opacity: 1; } 100% { opacity: 0; } }
.cs-ready .cs-bn { opacity: 0; transform: translateY(26px); }
.cs-ready .cs-bento.is-in .cs-bn { opacity: 1; transform: none; transition: opacity 0.8s var(--cs-ease) calc(var(--i) * 80ms), transform 0.8s var(--cs-ease) calc(var(--i) * 80ms), box-shadow 0.4s ease, border-color 0.3s ease; }
.cs-ready .cs-bento.is-in.is-settled .cs-bn { transition: transform 0.5s var(--cs-spring), box-shadow 0.4s ease, border-color 0.3s ease; }

/* ----- responsywność nowych sekcji ----- */
@media (max-width: 1000px) {
  .cs-flags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-bn--big { grid-row: auto; min-height: 340px; }
  .cs-form2 { grid-template-columns: 1fr; }
  .cs-opts { flex-direction: row; flex-wrap: wrap; }
  .cs-opt { flex: 1 1 240px; width: auto; }
  .cs-opt.is-active, .cs-opt:hover { transform: translateY(-3px); }
}
@media (max-width: 900px) {
  .cs-anat { grid-template-columns: 1fr; }
  .cs-info-grid, .cs-q-grid { grid-template-columns: 1fr; }
  .cs-info-head, .cs-q-side { position: static; }
  .cs-q-side { display: grid; grid-template-columns: 1fr auto; gap: 0 24px; align-items: center; }
  .cs-q-side > .cs-eyebrow, .cs-q-side > h2, .cs-q-side > .cs-head-lead { grid-column: 1 / -1; }
  .cs-ring { margin-top: 18px; width: 120px; height: 120px; }
  .cs-ring-val b { font-size: 42px; } .cs-ring-val i { margin-bottom: 30px; }
  .cs-ring-msg { margin-top: 18px; }
  .cs-jcard { grid-template-columns: auto minmax(0, 1fr); }
  .cs-jcard-nav { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
}
@media (max-width: 700px) {
  .cs-jn-lbl { display: none; }
  .cs-jn-dot { width: 42px; height: 42px; font-size: 20px; }
  .cs-jline { top: 20px; }
  .cs-jcard { grid-template-columns: 1fr; gap: 16px; }
  .cs-jcard-ico { width: 64px; height: 64px; border-radius: 20px; }
  .cs-stage2 { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .cs-stage2-art { width: 170px; height: 170px; }
  .cs-fnote { text-align: left; }
}
@media (max-width: 600px) {
  .cs-flags, .cs-bento { grid-template-columns: 1fr; }
  .cs-flag { min-height: 300px; }
  .cs-bn--big { grid-column: auto; min-height: 320px; padding: 26px 22px; }
  .cs-switch { width: 232px; --sw: 176px; }
  .cs-irow { grid-template-columns: 54px minmax(0, 1fr); gap: 14px; padding: 22px 0; }
  .cs-irow-ico { display: none; }
  .cs-irow-no { font-size: 42px; }
  .cs-irow h3 { font-size: 24px; }
  .cs-anat-sheet { padding: 20px 16px; }
  .cs-q label { padding: 14px; }
  .cs-q-side { grid-template-columns: 1fr; }
}
