/* ============================================================
   BIKO QUIZ — warstwa na systemie design.css
   Monochrom, liquid glass, cienkie linie. Korzysta z tokenów
   zdefiniowanych w design.css (--ink, --line, --surface, ...).
   ============================================================ */

/* ---------- UKŁAD STRONY ---------- */
body.quiz-page {
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- NAGŁÓWEK: LIQUID GLASS ---------- */
.quiz-header {
    position: fixed;
    top: 14px;
    left: var(--gutter);
    right: var(--gutter);
    z-index: 100;
    max-width: 680px;
    margin: 0 auto;
    height: 58px;
    padding: 0 10px 0 20px;
    border-radius: var(--r-pill);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    background: rgba(255, 255, 255, 0.66);
    backdrop-filter: blur(22px) saturate(190%);
    -webkit-backdrop-filter: blur(22px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 0 0 1px rgba(11, 11, 12, 0.045),
        0 10px 30px -12px rgba(11, 11, 12, 0.16),
        0 30px 60px -30px rgba(11, 11, 12, 0.2);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .quiz-header { background: #fff; }
}

.quiz-header-logo {
    display: flex;
    align-items: baseline;
    gap: 9px;
    color: var(--ink);
    flex-shrink: 0;
}

.quiz-header-logo .brand__mark {
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1;
}

.quiz-header-trust {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
    background: rgba(11, 11, 12, 0.05);
    padding: 8px 14px;
    border-radius: var(--r-pill);
    white-space: nowrap;
}

.quiz-header-trust i { font-size: 0.72rem; color: var(--ink); }

/* ---------- OBSZAR GŁÓWNY ---------- */
.quiz-main {
    margin-top: 86px;
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px var(--gutter) 60px;
}

@media (min-width: 900px) {
    .quiz-main { align-items: center; padding-block: 40px; min-height: calc(100vh - 86px); }
}

.quiz-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 640px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 2px rgba(11, 11, 12, 0.03);
}

/* ---------- WIDOCZNOŚĆ EKRANÓW ---------- */
#quiz-start,
#quiz-steps-section,
#quiz-loading-screen,
#quiz-lead-screen,
#quiz-results-screen { display: none; }

#quiz-start.active,
#quiz-steps-section.active,
#quiz-results-screen.active { display: block; }

#quiz-loading-screen.active,
#quiz-lead-screen.active { display: flex; }

/* ============================================================
   EKRAN STARTOWY
   ============================================================ */
.quiz-start-screen { padding: clamp(30px, 5vw, 48px) clamp(22px, 4vw, 40px); text-align: center; }

.quiz-resume-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 12px 16px;
    margin-bottom: 26px;
    font-size: 0.85rem;
    color: var(--ink-soft);
    text-align: left;
}

.quiz-resume-banner i { color: var(--muted); }

.quiz-resume-btn {
    margin-left: auto;
    background: var(--ink);
    color: #fff;
    border-radius: var(--r-pill);
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.quiz-start-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 22px;
}

.quiz-start-eyebrow i { color: var(--ink); font-size: 0.85rem; }

.quiz-start-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 16px;
    text-wrap: balance;
}

.quiz-start-title span { color: var(--muted); }

.quiz-start-subtitle {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 42ch;
    margin: 0 auto 30px;
}

.quiz-start-trust {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 30px;
    border-top: 1px solid var(--line);
    text-align: left;
}

.quiz-start-trust-item {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

/* Bez kółka — maska SVG obcina tło, patrz komentarz w icons.css */
.quiz-start-trust-item i {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    color: var(--ink);
}

.quiz-start-btn,
.quiz-btn-next,
.quiz-lead-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    background: var(--ink);
    color: #fff;
    border-radius: var(--r-pill);
    padding: 17px 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.quiz-start-btn:hover,
.quiz-btn-next:hover:not(:disabled),
.quiz-lead-btn:hover { background: #2a2a2e; }

.quiz-start-btn:active,
.quiz-btn-next:active,
.quiz-lead-btn:active { transform: scale(0.99); }

.quiz-btn-next:disabled { opacity: 0.28; cursor: not-allowed; }

.quiz-start-disclaimer {
    margin-top: 18px;
    font-size: 0.8rem;
    color: var(--muted-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    line-height: 1.5;
}

/* ============================================================
   PASEK POSTĘPU
   ============================================================ */
.quiz-progress-track { width: 100%; height: 3px; background: var(--line-soft); overflow: hidden; }

.quiz-progress-fill {
    height: 100%;
    background: var(--ink);
    width: 0;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   PYTANIA
   ============================================================ */
.quiz-step-counter-wrap { padding: 16px clamp(22px, 4vw, 34px) 0; }

.quiz-step-counter {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.quiz-steps-wrap { padding: 10px clamp(22px, 4vw, 34px) 0; }

.quiz-step { display: none; }

.quiz-step.active {
    display: block;
    animation: quizIn 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-step.active.going-back { animation-name: quizInBack; }

@keyframes quizIn {
    from { opacity: 0; transform: translateX(14px); }
    to   { opacity: 1; transform: none; }
}

@keyframes quizInBack {
    from { opacity: 0; transform: translateX(-14px); }
    to   { opacity: 1; transform: none; }
}

.quiz-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted);
    background: var(--surface-3);
    padding: 7px 13px;
    border-radius: var(--r-pill);
    margin-bottom: 18px;
    line-height: 1.35;
}

.quiz-eyebrow i { font-size: 0.72rem; color: var(--ink); }

.quiz-question {
    font-size: clamp(1.28rem, 2.6vw, 1.6rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.22;
    color: var(--ink);
    margin-bottom: 9px;
    text-wrap: balance;
}

.quiz-hint {
    font-size: 0.97rem;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 24px;
}

.quiz-hint strong { color: var(--ink); font-weight: 600; }

/* ---------- OPCJE ---------- */
.quiz-options { display: flex; flex-direction: column; gap: 9px; }

.quiz-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 15px 18px;
    text-align: left;
    font-family: 'Outfit', sans-serif;
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

@media (hover: hover) {
    .quiz-option:hover { border-color: #d0d0d5; background: var(--surface-2); }
}

.quiz-option.selected { border-color: var(--ink); background: var(--surface); }

.quiz-option-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: var(--surface-3);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    transition: background 0.18s ease, color 0.18s ease;
}

.quiz-option.selected .quiz-option-icon { background: var(--ink); color: #fff; }

/* „Żadna z powyższych" to bezpieczna odpowiedź — zawsze neutralna */
.quiz-option[data-exclusive="true"] .quiz-option-icon {
    background: var(--surface-3) !important;
    color: var(--ink) !important;
}

.quiz-option[data-exclusive="true"].selected { border-color: var(--ink) !important; }

.quiz-option[data-exclusive="true"].selected .quiz-option-icon {
    background: var(--ink) !important;
    color: #fff !important;
}

.quiz-option-text { flex: 1; line-height: 1.4; overflow-wrap: break-word; }

.quiz-option-arrow {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: var(--muted-2);
    transition: transform 0.18s ease, color 0.18s ease;
}

.quiz-option:hover .quiz-option-arrow { color: var(--ink); transform: translateX(2px); }

/* Checkbox przy wielokrotnym wyborze */
.quiz-option-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1.5px solid var(--line);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.quiz-option-check i {
    font-size: 0.62rem;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.quiz-step[data-multi="true"] .quiz-option.selected .quiz-option-check {
    background: var(--ink);
    border-color: var(--ink);
}

.quiz-step[data-multi="true"] .quiz-option.selected .quiz-option-check i {
    opacity: 1;
    transform: scale(1);
}

.quiz-step[data-multi="true"] .quiz-btn-next { margin-top: 20px; }

/* ---------- BŁĘDY ---------- */
.quiz-input-error {
    display: block;
    font-size: 0.8rem;
    color: var(--warn);
    margin-top: 7px;
    line-height: 1.45;
}

/* ============================================================
   KROK BMI
   ============================================================ */
.quiz-input-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

@media (max-width: 480px) {
    .quiz-input-row { grid-template-columns: repeat(2, 1fr); }
    .quiz-input-row .quiz-input-group:last-child { grid-column: 1 / -1; }
}

.quiz-input-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 7px;
}

.input-wrap { position: relative; display: flex; align-items: center; }

.input-wrap input {
    width: 100%;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 14px 44px 14px 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    -moz-appearance: textfield;
    appearance: textfield;
}

.input-wrap input::-webkit-outer-spin-button,
.input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.input-wrap input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(11, 11, 12, 0.07);
}

.input-wrap input.error { border-color: var(--warn); }
.input-wrap input::placeholder { color: #c9c9d0; font-weight: 500; }

.input-unit {
    position: absolute;
    right: 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted-2);
    pointer-events: none;
}

/* Podgląd BMI — ZAWSZE rozwinięty. Do 16.09.2026 był zwinięty (max-height 0) i rozwijał się animacją do 260 px
   w chwili, gdy wzrost i waga stały się poprawne, czyli dokładnie wtedy, gdy pacjent sięgał po „Dalej":
   przycisk uciekał spod palca (Clarity: CLS 0,46, „powtarzające się kliknięcia bez postępu", porzucenia
   w trakcie wpisywania). Teraz ramka ma stałą wysokość, a wynik podmienia się w miejscu. */
.quiz-bmi-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding-inline: 18px;
    padding-block: 16px;
    margin-bottom: 20px;
}
.quiz-bmi-preview:not(.visible) .bmi-number { color: var(--muted-2); }
.quiz-bmi-preview:not(.visible) .bmi-category { color: var(--muted); }

.quiz-bmi-preview-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.quiz-bmi-preview-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
}

.quiz-bmi-preview-value {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--ink);
    line-height: 1.1;
}

.quiz-bmi-preview-category { font-size: 0.85rem; color: var(--muted); }

/* ============================================================
   STOPKA NAWIGACJI
   ============================================================ */
.quiz-footer-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px clamp(22px, 4vw, 34px);
    margin-top: 22px;
    border-top: 1px solid var(--line);
}

.quiz-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.16s ease;
}

.quiz-btn-back:hover { color: var(--ink); }
.quiz-btn-back.hidden { visibility: hidden; }

.quiz-footer-security {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: var(--muted-2);
    margin-left: auto;
}

/* ============================================================
   EKRAN ANALIZY
   ============================================================ */
.quiz-loading {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(44px, 7vw, 72px) clamp(22px, 4vw, 34px);
    min-height: 420px;
}

.quiz-loading-spinner { position: relative; width: 116px; height: 116px; margin-bottom: 30px; }
.quiz-loading-spinner svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.spinner-bg { fill: none; stroke: var(--line); stroke-width: 5; }

.spinner-fill {
    fill: none;
    stroke: var(--ink);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 214;
    stroke-dashoffset: 214;
    animation: spinnerFill 2.6s ease-out forwards;
}

@keyframes spinnerFill {
    to { stroke-dashoffset: 20; }
}

.quiz-loading-bmi-badge {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quiz-loading-bmi-badge .bmi-num {
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--ink);
    line-height: 1;
}

.quiz-loading-bmi-badge .bmi-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--muted-2);
    margin-top: 3px;
}

.quiz-loading-title {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 8px;
}

.quiz-loading-subtitle {
    font-size: 0.97rem;
    color: var(--muted);
    max-width: 36ch;
    margin: 0 auto 28px;
    line-height: 1.55;
}

.quiz-loading-checklist { width: 100%; max-width: 340px; text-align: left; }

.quiz-loading-checklist li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 0.96rem;
    color: var(--muted-2);
    padding: 11px 0;
    border-top: 1px solid var(--line-soft);
    opacity: 0.45;
    transition: opacity 0.4s ease, color 0.4s ease;
}

.quiz-loading-checklist li:last-child { border-bottom: 1px solid var(--line-soft); }

.quiz-loading-checklist li i {
    width: 15px;
    height: 15px;
    color: var(--muted-2);
    flex-shrink: 0;
    transition: color 0.4s ease;
}

.quiz-loading-checklist li.done { opacity: 1; color: var(--ink-soft); }
.quiz-loading-checklist li.done i { color: var(--ink); }

/* ============================================================
   FORMULARZ KONTAKTOWY
   ============================================================ */
.quiz-lead-capture {
    flex-direction: column;
    padding: clamp(30px, 5vw, 44px) clamp(22px, 4vw, 40px);
}

.quiz-lead-header { text-align: center; margin-bottom: 28px; }

.quiz-lead-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--surface-3);
    padding: 7px 14px;
    border-radius: var(--r-pill);
    margin-bottom: 18px;
}

.quiz-lead-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.18;
    color: var(--ink);
    margin-bottom: 10px;
}

.quiz-lead-subtitle {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.55;
    max-width: 40ch;
    margin: 0 auto;
}

.quiz-lead-form { display: flex; flex-direction: column; gap: 16px; }

.quiz-lead-input-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 7px;
}

.quiz-lead-input-group input {
    width: 100%;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.quiz-lead-input-group input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(11, 11, 12, 0.07);
}

.quiz-lead-input-group input.error { border-color: var(--warn); }
.quiz-lead-input-group input::placeholder { color: #c9c9d0; }

/* ---------- ZGODY ---------- */
.quiz-consent-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 0 4px;
    border-top: 1px solid var(--line);
}

.quiz-consent {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--muted);
}

.quiz-consent input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.quiz-consent-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 1.5px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.quiz-consent-box i {
    font-size: 0.58rem;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.quiz-consent input:checked ~ .quiz-consent-box { background: var(--ink); border-color: var(--ink); }
.quiz-consent input:checked ~ .quiz-consent-box i { opacity: 1; transform: scale(1); }

.quiz-consent input:focus-visible ~ .quiz-consent-box {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.quiz-consent input[aria-invalid="true"] ~ .quiz-consent-box { border-color: var(--warn); }

.quiz-consent-required,
.quiz-consent-optional {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: var(--r-pill);
    margin-left: 4px;
    vertical-align: 1px;
}

.quiz-consent-required { background: var(--warn-bg); color: var(--warn); }
.quiz-consent-optional { background: var(--surface-3); color: var(--muted); }

.quiz-lead-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--muted-2);
    margin-top: 4px;
}

.quiz-lead-privacy-link { color: var(--ink); font-weight: 500; text-decoration: underline; }

.quiz-lead-privacy a.quiz-link-inactive,
.results-footer-links a.quiz-link-inactive {
    color: var(--muted-2);
    text-decoration: none;
    cursor: default;
    pointer-events: none;
}

/* ============================================================
   EKRAN WYNIKU
   ============================================================ */
#quiz-results-screen.active {
    padding: 100px 0 130px;
    background: var(--surface-2);
    min-height: 100vh;
}

.quiz-results-inner {
    max-width: 720px;
    margin: 0 auto;
    padding-inline: var(--gutter);
}

@media (min-width: 1440px) { .quiz-results-inner { max-width: 800px; } }

.quiz-results-inner .quiz-card { max-width: none; }

/* ---------- NAGŁÓWEK WYNIKU ---------- */
.results-hero {
    background: var(--ink);
    color: #fff;
    padding: clamp(34px, 5vw, 52px) clamp(22px, 4vw, 40px);
    text-align: center;
}

.results-check {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}

.results-name-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
}

.results-hero-title {
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 12px;
    text-wrap: balance;
}

.results-hero-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.6;
    max-width: 46ch;
    margin: 0 auto;
}

/* Warianty wyniku — różnicowane jasnością, nie kolorem */
.results-hero.is-consult { background: #26262a; }
.results-hero.is-blocked { background: #1a1a1d; }
.results-hero.is-blocked .results-check { background: rgba(180, 35, 24, 0.22); border-color: rgba(180, 35, 24, 0.5); }
.results-hero.is-low { background: #3a3a40; }

/* ---------- UZASADNIENIE ---------- */
.results-reasons {
    margin: 20px clamp(22px, 4vw, 34px) 0;
    padding: 16px 18px;
    background: var(--warn-bg);
    border: 1px solid #fbd5d1;
    border-radius: var(--r);
}

.results-reasons-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--warn);
    margin-bottom: 9px;
}

.results-reasons ul { padding-left: 17px; list-style: disc; }
.results-reasons li { font-size: 0.95rem; line-height: 1.55; color: var(--ink-soft); margin-bottom: 5px; }
.results-reasons li:last-child { margin-bottom: 0; }

/* ---------- STATYSTYKI ---------- */
.results-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line);
    margin-top: 20px;
}

.results-stat {
    padding: 20px 16px;
    text-align: center;
    border-right: 1px solid var(--line);
}

.results-stat:last-child { border-right: none; }

.results-stat-value {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 7px;
}

.results-stat-label { font-size: 0.72rem; color: var(--muted); line-height: 1.4; }

#results-bmi-cat { display: block; font-weight: 600; color: var(--ink); margin-top: 2px; }

@media (max-width: 420px) {
    .results-stats { grid-template-columns: 1fr; }
    .results-stat { border-right: none; border-bottom: 1px solid var(--line-soft); }
    .results-stat:last-child { border-bottom: none; }
}

/* ---------- BLOK SPERSONALIZOWANY ---------- */
.results-personal {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: clamp(22px, 3vw, 30px) clamp(22px, 4vw, 34px) 0;
    padding: 20px 22px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
}

.results-personal-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.results-personal h3 { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.results-personal p { font-size: 0.96rem; line-height: 1.6; color: var(--muted); }

/* ---------- NOTKI ---------- */
.results-notes { padding: 16px clamp(22px, 4vw, 34px) 0; }

.results-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--ink-soft);
    padding: 13px 0;
    border-top: 1px solid var(--line-soft);
}

.results-note:last-child { border-bottom: 1px solid var(--line-soft); }
.results-note i { color: var(--muted-2); font-size: 0.75rem; margin-top: 4px; flex-shrink: 0; }

/* ---------- ŚCIEŻKA ALTERNATYWNA ---------- */
.results-alt {
    margin: clamp(24px, 3vw, 32px) clamp(22px, 4vw, 34px);
    padding: clamp(24px, 3vw, 32px);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    text-align: center;
}

.results-alt-title { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin-bottom: 9px; }
.results-alt-text { font-size: 1rem; line-height: 1.6; color: var(--muted); margin-bottom: 22px; }

.results-alt-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }

.results-alt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--r-pill);
    padding: 15px 28px;
    font-weight: 600;
    font-size: 0.96rem;
    width: 100%;
    max-width: 340px;
}

.results-alt-btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }

.results-alt-note {
    font-size: 0.88rem;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--r);
    padding: 15px 18px;
    line-height: 1.6;
}

@media (min-width: 620px) {
    .results-alt-actions { flex-direction: row; justify-content: center; }
    .results-alt-btn { width: auto; min-width: 220px; }
}

/* ---------- CENNIK ---------- */
.results-pricing-section { padding: clamp(28px, 4vw, 40px) clamp(22px, 4vw, 34px); }

.results-pricing-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 8px;
}

.results-pricing-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 24px; line-height: 1.55; }

.results-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }

.results-pkg {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 24px 18px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.results-pkg.featured { background: var(--ink); border-color: var(--ink); }

.results-pkg-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--ink);
    color: #fff;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: var(--r-pill);
    white-space: nowrap;
}

.results-pkg.featured .results-pkg-badge { background: #fff; color: var(--ink); }
.results-pkg-badge i { font-size: 0.7em; margin-right: 3px; }

.results-pkg-name {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.results-pkg.featured .results-pkg-name { color: rgba(255, 255, 255, 0.6); }

.results-pkg-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; }

.results-pkg-price .amount {
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: -0.045em;
    color: var(--ink);
    line-height: 1;
}

.results-pkg.featured .results-pkg-price .amount { color: #fff; }
.results-pkg-price .currency { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.results-pkg.featured .results-pkg-price .currency { color: rgba(255, 255, 255, 0.6); }

.results-pkg-per { font-size: 0.76rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.results-pkg.featured .results-pkg-per { color: rgba(255, 255, 255, 0.6); }

.results-pkg-saving {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--ink);
    margin: 10px 0 16px;
    min-height: 1.2em;
}

.results-pkg.featured .results-pkg-saving { color: #fff; }

.results-pkg-cta {
    margin-top: auto;
    width: 100%;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.results-pkg-cta:hover { border-color: var(--ink); }
.results-pkg.featured .results-pkg-cta { background: #fff; color: var(--ink); border-color: #fff; }
.results-pkg.featured .results-pkg-cta:hover { background: rgba(255, 255, 255, 0.88); }

.results-pricing-note {
    font-size: 0.78rem;
    color: var(--muted-2);
    margin-top: 16px;
    text-align: center;
    line-height: 1.55;
}

@media (max-width: 620px) {
    .results-pricing-grid { grid-template-columns: 1fr; gap: 22px; }
    .results-pkg.featured { order: -1; }
}

/* ---------- CO ZAWIERA PAKIET ---------- */
.results-includes-section {
    padding: clamp(28px, 4vw, 40px) clamp(22px, 4vw, 34px);
    border-top: 1px solid var(--line);
}

.results-includes-title {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 20px;
}

.results-includes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }

.results-include-item {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 16px 0;
    border-top: 1px solid var(--line-soft);
}

.results-include-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: var(--r-sm);
    background: var(--surface-3);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.results-include-text h4 { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.results-include-text p { font-size: 0.92rem; color: var(--muted); line-height: 1.45; }

@media (max-width: 560px) { .results-includes-grid { grid-template-columns: 1fr; } }

/* ---------- OPINIE ---------- */
.results-social-proof {
    padding: clamp(28px, 4vw, 40px) clamp(22px, 4vw, 34px);
    border-top: 1px solid var(--line);
}

.results-social-title {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 20px;
}

.results-testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

@media (max-width: 620px) { .results-testimonials { grid-template-columns: 1fr; } }

.results-testimonial {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 20px;
}

.results-testimonial-stars { font-size: 0.8rem; color: var(--ink); letter-spacing: 2px; margin-bottom: 12px; }
.results-testimonial-text { font-size: 0.97rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 14px; }
.results-testimonial-author { font-size: 0.8rem; font-weight: 600; color: var(--muted); }

.results-testimonial-disclaimer {
    font-size: 0.76rem;
    color: var(--muted-2);
    line-height: 1.6;
    margin-top: 16px;
}

/* ---------- ZASTRZEŻENIA ---------- */
.results-disclaimer {
    margin: 0 clamp(22px, 4vw, 34px) clamp(28px, 4vw, 36px);
    padding: 18px 20px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--ink);
    border-radius: var(--r-sm);
}

.results-disclaimer h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-disclaimer p { font-size: 0.85rem; line-height: 1.65; color: var(--muted); margin-bottom: 9px; }
.results-disclaimer p:last-child { margin-bottom: 0; }

/* ---------- STOPKA WYNIKU ---------- */
.results-footer { text-align: center; padding: 34px 20px 10px; }

.results-footer .brand { justify-content: center; margin-bottom: 16px; }
.results-footer-logo { display: none; }

.results-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 14px;
}

.results-footer-links a { font-size: 0.84rem; font-weight: 500; color: var(--ink); }
.results-footer-links a:hover { text-decoration: underline; }

.results-footer-note {
    font-size: 0.76rem;
    color: var(--muted-2);
    line-height: 1.6;
    max-width: 46ch;
    margin: 0 auto;
}

/* ---------- STICKY CTA: LIQUID GLASS ---------- */
.results-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px max(var(--gutter), calc((100vw - 720px) / 2));
    padding-bottom: calc(14px + env(safe-area-inset-bottom));

    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(22px) saturate(190%);
    -webkit-backdrop-filter: blur(22px) saturate(190%);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 -1px 0 rgba(11, 11, 12, 0.06),
        0 -10px 30px -12px rgba(11, 11, 12, 0.12);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .results-sticky-cta { background: #fff; }
}

.results-sticky-cta-text { flex: 1; min-width: 0; }

.results-sticky-cta-text .from {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 2px;
}

.results-sticky-cta-text .price {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.035em;
    color: var(--ink);
    line-height: 1;
}

.results-sticky-cta-text .per { font-size: 0.82rem; font-weight: 500; color: var(--muted-2); }

.results-sticky-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--r-pill);
    padding: 13px 22px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s ease;
}

.results-sticky-btn:hover { background: #2a2a2e; }

/* ---------- MODAL ---------- */
.results-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.results-modal.open { display: flex; }

.results-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 11, 12, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.results-modal-box {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 34px 30px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 70px -20px rgba(11, 11, 12, 0.4);
}

.results-modal-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.results-modal-box h3 {
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 10px;
}

.results-modal-box p { font-size: 0.92rem; line-height: 1.6; color: var(--muted); margin-bottom: 24px; }

.results-modal-close {
    background: var(--ink);
    color: #fff;
    border-radius: var(--r-pill);
    padding: 14px 32px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

/* ============================================================
   MAŁE EKRANY
   ============================================================ */
@media (max-width: 380px) {
    .quiz-header { left: 12px; right: 12px; padding: 0 8px 0 16px; height: 54px; }
    .quiz-header-trust { font-size: 0.68rem; padding: 6px 10px; }
    .quiz-main { margin-top: 78px; padding-inline: 12px; }

    .quiz-option { padding: 13px 14px; gap: 10px; font-size: 1rem; }
    .quiz-option-icon { width: 32px; height: 32px; font-size: 0.8rem; }
    .quiz-option-arrow { display: none; }

    .quiz-results-inner { padding-inline: 12px; }
    .results-sticky-cta { padding-inline: 14px; }
    .results-sticky-btn { padding: 12px 16px; font-size: 0.85rem; }
}

/* Niskie okna — telefon w poziomie */
@media (max-height: 520px) and (orientation: landscape) {
    .quiz-header { position: static; margin-bottom: 12px; max-width: none; }
    .quiz-main { margin-top: 0; align-items: flex-start; min-height: auto; padding-top: 12px; }
}

/* ============================================================
   DOSTĘPNOŚĆ
   ============================================================ */
.quiz-option:focus-visible,
.quiz-btn-next:focus-visible,
.quiz-start-btn:focus-visible,
.quiz-lead-btn:focus-visible,
.quiz-btn-back:focus-visible,
.results-pkg-cta:focus-visible,
.results-sticky-btn:focus-visible,
.results-modal-close:focus-visible,
.quiz-resume-btn:focus-visible,
.results-alt-btn:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .spinner-fill { stroke-dashoffset: 20; }
    .quiz-loading-checklist li { opacity: 1; color: var(--ink-soft); }
}

/* ============================================================
   PASEK KONTAKTOWY U GÓRY
   ============================================================ */
body.quiz-page { --topbar-h: 38px; }

.quiz-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 120;
    height: var(--topbar-h);
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
}

.quiz-topbar-inner {
    width: 100%;
    max-width: var(--w);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
    font-size: 0.8rem;
    line-height: 1;
    flex-wrap: nowrap;
    overflow: hidden;
}

.quiz-topbar-label { color: rgba(255, 255, 255, 0.72); white-space: nowrap; }

.quiz-topbar-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.quiz-topbar-phone:hover { text-decoration: underline; }
.quiz-topbar-phone i { font-size: 0.78em; color: var(--green-light); }

.quiz-topbar-hours {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.62);
    white-space: nowrap;
}
.quiz-topbar-hours i { font-size: 0.78em; }

/* Header i treść zjeżdżają o wysokość paska */
.quiz-header { top: calc(var(--topbar-h) + 10px); }
.quiz-main { margin-top: calc(var(--topbar-h) + 72px); }
#quiz-results-screen.active { padding-top: 26px; }

/* Na telefonie pasek łamie się na dwie linie — pytanie i numer w pierwszej,
   godziny w drugiej. Wysokość zostaje stała, żeby nie rozjechały się odstępy. */
@media (max-width: 720px) {
    body.quiz-page { --topbar-h: 50px; }
    .quiz-topbar-inner {
        font-size: 0.72rem;
        flex-wrap: wrap;
        gap: 3px 10px;
        line-height: 1.3;
        text-align: center;
    }
    .quiz-topbar-hours { flex-basis: 100%; justify-content: center; }
}
@media (max-width: 400px) {
    body.quiz-page { --topbar-h: 48px; }
    .quiz-topbar-inner { gap: 3px 8px; font-size: 0.67rem; padding-inline: 12px; }
}

/* ============================================================
   PROCES ZAKUPOWY
   ============================================================ */
#quiz-checkout-screen { display: none; }
#quiz-checkout-screen.active {
    display: block;
    background: var(--surface-2);
    min-height: 100vh;
    padding-bottom: 90px;
}

/* ---------- PASEK POSTĘPU ---------- */
.co-steps { display: none; }
.co-steps.is-visible {
    display: block;
    position: sticky;
    top: var(--topbar-h);
    margin-top: var(--topbar-h);
    z-index: 90;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .co-steps { background: #fff; }
}

.co-steps-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 980px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.co-step {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 0;
    position: relative;
    color: var(--muted-2);
    font-size: 0.82rem;
    font-weight: 500;
}
.co-step + .co-step::before {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
    margin-right: 3px;
}
.co-step:last-child { flex: 0 1 auto; }

.co-step-dot {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 700;
    background: var(--surface-3);
    color: var(--muted);
    border: 1px solid var(--line);
}
.co-step-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.co-step.is-done { color: var(--green-ink); }
.co-step.is-done .co-step-dot {
    background: var(--green-soft);
    border-color: var(--green-pale);
    color: var(--green-strong);
    font-size: 0.66rem;
}
.co-step.is-active { color: var(--ink); font-weight: 600; }
.co-step.is-active .co-step-dot {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

@media (max-width: 860px) {
    .co-steps { padding: 11px 12px; }
    .co-step-label { display: none; }
    .co-step.is-active .co-step-label { display: inline; }
    .co-step { flex: 0 0 auto; }
    .co-step.is-active { flex: 1; }
    .co-steps-list { gap: 4px; }
    .co-step + .co-step::before { min-width: 12px; }
}

/* ---------- UKŁAD ---------- */
.co-inner {
    max-width: 1060px;
    margin: 0 auto;
    padding: clamp(26px, 4vw, 48px) var(--gutter) 0;
}

.co-pane { display: none; }
.co-pane.active { display: block; animation: coIn 0.35s ease both; }

@keyframes coIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

.co-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}
@media (min-width: 960px) {
    .co-grid { grid-template-columns: minmax(0, 1fr) 344px; gap: 30px; align-items: start; }
    .co-side { position: sticky; top: calc(var(--topbar-h) + 76px); }
}

.co-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 0;
    padding: 0 0 16px;
    color: var(--muted);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}
.co-back:hover { color: var(--ink); }
.co-back i { font-size: 0.78em; }

.co-title {
    font-size: clamp(1.5rem, 3.4vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    color: var(--ink);
}
.co-lead {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
    max-width: 56ch;
}

/* ---------- KARTY WARIANTÓW ---------- */
.co-variants { display: grid; gap: 12px; margin-bottom: 22px; }

.co-variant {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px 20px;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.co-variant:hover { border-color: var(--muted-2); }
.co-variant input { position: absolute; opacity: 0; pointer-events: none; }

.co-variant-radio {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid var(--line);
    background: #fff;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.18s ease;
}
.co-variant-radio::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--green-strong);
    transform: scale(0);
    transition: transform 0.18s ease;
}

.co-variant:has(input:checked) {
    border-color: var(--green-strong);
    background: var(--green-soft);
    box-shadow: 0 0 0 1px var(--green-strong);
}
.co-variant:has(input:checked) .co-variant-radio { border-color: var(--green-strong); }
.co-variant:has(input:checked) .co-variant-radio::after { transform: scale(1); }
.co-variant:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }

.co-variant-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.co-variant-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.co-variant-name { font-weight: 600; color: var(--ink); font-size: 1rem; }

.co-variant-badge {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--green-strong);
    color: #fff;
    padding: 4px 9px;
    border-radius: var(--r-pill);
    white-space: nowrap;
}
.co-variant-badge.alt { background: var(--green); }

.co-variant-desc { color: var(--muted); font-size: 0.85rem; line-height: 1.45; }
.co-variant-save { color: var(--green-ink); font-size: 0.86rem; font-weight: 600; }

.co-variant-price { text-align: right; flex-shrink: 0; }
.co-variant-mo {
    display: block;
    color: var(--ink);
    font-size: 0.95rem;
    white-space: nowrap;
}
.co-variant-mo b { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.co-variant-mo i { font-style: normal; color: var(--muted); font-size: 0.8rem; }
.co-variant-total { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 2px; white-space: nowrap; }

@media (max-width: 520px) {
    .co-variant { grid-template-columns: auto minmax(0, 1fr); padding: 16px; row-gap: 10px; }
    .co-variant-price { grid-column: 2; text-align: left; }
    .co-variant-mo b { font-size: 1.32rem; }
}

/* ---------- PRZYCISK GŁÓWNY ---------- */
.co-cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--ink);
    color: #fff;
    border: 0;
    border-radius: var(--r-pill);
    padding: 17px 26px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}
.co-cta:hover { background: var(--ink-soft); transform: translateY(-1px); }
.co-cta i { font-size: 0.82em; }

.co-note {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.55;
}

/* Powrót z koszyka do pakietów (17.09) */
.co-back { background: none; border: 0; padding: 0 0 18px; margin: 0; }
.co-summary-change {
    margin-top: 8px; background: none; border: 0; padding: 0;
    font: inherit; font-size: 0.82rem; font-weight: 500; color: var(--muted);
    text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.co-summary-change:hover { color: var(--ink); }

/* ---------- PANEL BOCZNY ---------- */
.co-side { display: grid; gap: 14px; }

.co-side-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 20px;
}
.co-side-title {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.co-side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.co-side-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 0.95rem;
    color: var(--ink-soft);
    line-height: 1.45;
}
.co-side-list i { color: var(--green-strong); font-size: 0.9rem; margin-top: 2px; flex-shrink: 0; }

.co-side-trust { background: var(--surface-3); border-color: var(--line-soft); }
.co-side-trust p {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 0 12px;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.5;
}
.co-side-trust p:last-child { margin-bottom: 0; }
.co-side-trust i { color: var(--ink); font-size: 0.86rem; margin-top: 2px; flex-shrink: 0; }

/* ---------- FORMULARZ ---------- */
.co-form { display: grid; gap: 18px; }

.co-field { display: grid; gap: 7px; min-width: 0; }
.co-field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.co-field input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.co-field input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(11, 11, 12, 0.07);
}
.co-field input.error { border-color: var(--warn); background: var(--warn-bg); }
.co-hint { font-size: 0.78rem; color: var(--muted); }

.co-field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 620px) { .co-field-row { grid-template-columns: 1fr 1fr; } }

.co-pay { border: 0; padding: 0; margin: 0; min-width: 0; }
.co-pay legend {
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 9px;
}
/* Metody płatności jedna pod drugą — logo, nazwa i krótkie wyjaśnienie */
.co-pay-options { display: grid; gap: 10px; }

.co-pay-option {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.co-pay-option:hover { border-color: var(--muted-2); }
.co-pay-option input { position: absolute; opacity: 0; pointer-events: none; }

.co-pay-radio {
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 2px solid var(--line);
    background: #fff;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.18s ease;
}
.co-pay-radio::after {
    content: "";
    position: absolute;
    inset: 3.5px;
    border-radius: 50%;
    background: var(--green-strong);
    transform: scale(0);
    transition: transform 0.18s ease;
}

.co-pay-logo {
    width: 60px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 4px 6px;
}
.co-pay-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.co-pay-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.co-pay-name { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.co-pay-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }

.co-pay-option:has(input:checked),
.co-pay-option.is-selected {
    border-color: var(--green-strong);
    background: var(--green-soft);
    box-shadow: 0 0 0 1px var(--green-strong);
}
.co-pay-option:has(input:checked) .co-pay-radio,
.co-pay-option.is-selected .co-pay-radio { border-color: var(--green-strong); }
.co-pay-option:has(input:checked) .co-pay-radio::after,
.co-pay-option.is-selected .co-pay-radio::after { transform: scale(1); }
.co-pay-option:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (max-width: 420px) {
    .co-pay-option { gap: 11px; padding: 12px 13px; }
    .co-pay-logo { width: 50px; height: 34px; }
    .co-pay-desc { font-size: 0.76rem; }
}

.co-consents { margin-top: 2px; }
.co-consents a { color: var(--ink); text-decoration: underline; }

/* ---------- PODSUMOWANIE ZAMÓWIENIA ---------- */
.co-summary {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 22px;
}
.co-summary-title {
    margin: 0 0 16px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.co-summary-pkg {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 14px;
}
.co-summary-pkg-name { font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.co-summary-pkg-desc { color: var(--muted); font-size: 0.85rem; margin-top: 3px; }
.co-summary-pkg-incl { color: var(--ink-soft, var(--muted)); font-size: 0.8rem; line-height: 1.45; margin-top: 6px; }

.co-summary-rows { margin: 0 0 16px; display: grid; gap: 9px; }
.co-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
}
.co-summary-row dt { color: var(--muted); margin: 0; }
.co-summary-row dd { margin: 0; color: var(--ink); font-weight: 500; }
.co-summary-row--save dt,
.co-summary-row--save dd { color: var(--green-ink); font-weight: 600; }

.co-promo {
    padding: 14px 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 16px;
}
.co-promo-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 9px;
}
.co-promo-label i { color: var(--green-strong); }
.co-promo-row { display: flex; gap: 8px; }
.co-promo-row input {
    /* width:0 + flex-grow — bez tego pole ma własną szerokość i rozpycha
       podsumowanie na wąskich ekranach */
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font: inherit;
    font-size: 1rem;
    background: var(--surface);
    color: var(--ink);
}
.co-promo-row input:focus { outline: none; border-color: var(--ink); }
.co-promo-btn {
    flex-shrink: 0;
    padding: 11px 18px;
    border: 1px solid var(--line);
    background: var(--surface-3);
    border-radius: var(--r-sm);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}
.co-promo-btn:hover { background: var(--line-soft); }
.co-promo-msg { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--muted); }
.co-promo-msg.ok { color: var(--green-ink); }
.co-promo-msg.bad { color: var(--warn); }

.co-summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--ink);
}
.co-summary-total strong { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.co-summary-gross { margin: 4px 0 16px; font-size: 0.76rem; color: var(--muted-2); }
.co-summary-raty { margin: 6px 0 0; font-size: 0.86rem; line-height: 1.45; color: var(--teal-ink); }
.co-blik-hint { display: block; margin-top: 6px; font-size: 0.8rem; line-height: 1.4; color: var(--muted); }
.co-summary-raty strong { font-weight: 700; }

.co-paybtn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--ink);
    color: #fff;
    border: 0;
    border-radius: var(--r-pill);
    padding: 17px 22px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}
.co-paybtn:hover { background: var(--ink-soft); transform: translateY(-1px); }
.co-paybtn i { font-size: 0.82em; }

.co-guarantee {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--green-soft);
    border-radius: var(--r-sm);
}
.co-guarantee > i { color: var(--green-strong); font-size: 1rem; margin-top: 2px; flex-shrink: 0; }
.co-guarantee div { display: grid; gap: 3px; }
.co-guarantee strong { font-size: 0.88rem; color: var(--green-strong); }
.co-guarantee span { font-size: 0.8rem; color: var(--green-ink); line-height: 1.45; }

/* Na telefonie podsumowanie wraca nad przycisk, a nie pod stopkę */
@media (max-width: 959px) {
    .co-pane#co-pane-register .co-grid { display: flex; flex-direction: column; }
    .co-pane#co-pane-register .co-side { order: 2; }
}

/* ---------- DOSTĘPNOŚĆ ---------- */
.co-cta:focus-visible,
.co-paybtn:focus-visible,
.co-back:focus-visible,
.co-promo-btn:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

/* Zapas dla przeglądarek bez :has() — klasę ustawia quiz.js */
.co-variant.is-selected {
    border-color: var(--green-strong);
    background: var(--green-soft);
    box-shadow: 0 0 0 1px var(--green-strong);
}
.co-variant.is-selected .co-variant-radio { border-color: var(--green-strong); }
.co-variant.is-selected .co-variant-radio::after { transform: scale(1); }

/* Podsumowanie zamówienia na bardzo wąskich ekranach */
@media (max-width: 380px) {
    .co-summary, .co-side-card { padding: 16px; }
    .co-summary-total strong { font-size: 1.4rem; }
    .co-inner { padding-inline: 12px; }
    .co-variant { padding: 14px; }
}

.co-side, .co-side > *, .co-main, .co-main > * { min-width: 0; }

/* ============================================================
   NAGŁÓWEK WYNIKU — jaśniejszy, spójny z procesem zakupowym
   (czarny blok był zbyt ciężki i odklejał wynik od reszty lejka)
   ============================================================ */
.results-hero {
    background: var(--green-soft);
    color: var(--ink);
    border-bottom: 1px solid var(--green-pale);
}

.results-check {
    background: var(--green-strong);
    border: 0;
    color: #fff;
    box-shadow: 0 8px 20px -10px rgba(20, 96, 58, 0.7);
}

.results-name-title { color: var(--green-ink); }
.results-hero-title { color: var(--ink); }
.results-hero-sub { color: var(--muted); }

/* Warianty wyniku — neutralne tło, gdy nie kwalifikujemy */
.results-hero.is-consult,
.results-hero.is-low {
    background: var(--surface-3);
    border-bottom-color: var(--line);
}
.results-hero.is-consult .results-check,
.results-hero.is-low .results-check {
    background: var(--ink);
    box-shadow: 0 8px 20px -10px rgba(11, 11, 12, 0.6);
}
.results-hero.is-consult .results-name-title,
.results-hero.is-low .results-name-title { color: var(--muted); }

/* Karta wyniku bez podwójnej ramki nad nagłówkiem */
.quiz-results-inner .quiz-card { overflow: hidden; }

/* Na ekranie wyniku pasek kroków trzyma szerokość karty wyniku,
   w procesie zakupowym — szerokość dwukolumnowego układu */
.co-steps.is-results .co-steps-list { max-width: calc(720px - 2 * var(--gutter)); }
@media (min-width: 1440px) {
    .co-steps.is-results .co-steps-list { max-width: calc(800px - 2 * var(--gutter)); }
}

/* Etykiety kroków nie skracają się do wielokropka — kurczą się linie łączące */
.co-step { flex: 0 1 auto; }
.co-step + .co-step::before { flex: 1 1 10px; min-width: 10px; margin-right: 3px; }
.co-step-label { overflow: visible; text-overflow: clip; }
@media (max-width: 860px) {
    .co-step { flex: 0 0 auto; }
    .co-step.is-active { flex: 0 1 auto; }
    .co-step.is-active .co-step-label { overflow: hidden; text-overflow: ellipsis; }
}

/* ============================================================
   DRUGI KOLOR — TEAL (spójnie ze stroną główną)
   ============================================================ */
.quiz-topbar { background: var(--teal); }
.quiz-topbar-label { color: rgba(255, 255, 255, 0.78); }
.quiz-topbar-hours { color: rgba(255, 255, 255, 0.72); }
.quiz-topbar-phone i { color: #8fd3e0; }

/* Nadtytuły i etykiety w quizie */
.quiz-eyebrow i,
.quiz-start-eyebrow i { color: var(--teal); }
.quiz-step-counter { color: var(--teal-ink); }

/* Ikony przy odpowiedziach — kolor zamiast czerni */
.quiz-option-icon { color: var(--teal); }

/* Plakietki wariantów — dwa odcienie teal, żeby się nie zlewały */
.co-variant-badge { background: var(--teal-deep); }
.co-variant-badge.alt { background: var(--step-1); }
.results-pkg-badge { background: var(--step-1); }

/* Ciepły podkład lejka — ten sam beż co na stronie głównej */
#quiz-results-screen.active,
#quiz-checkout-screen.active { background: var(--sand); }
body.quiz-page { background: var(--sand); }

/* ============================================================
   EKRAN WYNIKU — układ z kart, nie jedna wąska kolumna
   Wynik, wybór pakietu i zakres opieki to trzy osobne karty
   na wspólnym beżowym tle, w szerszym kontenerze.
   ============================================================ */
.quiz-results-inner {
    max-width: 940px;
    display: grid;
    gap: 18px;
}
@media (min-width: 1440px) { .quiz-results-inner { max-width: 980px; } }

/* ---------- NAGŁÓWEK ---------- */
.rhead {
    text-align: center;
    padding: clamp(18px, 3vw, 34px) clamp(8px, 2vw, 24px) clamp(6px, 1vw, 12px);
}

.rhead .results-check {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: var(--teal-deep);
    color: #fff;
    border: 0;
    box-shadow: 0 10px 24px -12px rgba(31, 70, 80, 0.75);
}

.rhead .results-name-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--teal-ink);
    margin-bottom: 10px;
}

.rhead__title {
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.12;
    color: var(--ink);
    margin: 0 auto 14px;
    max-width: 20ch;
    text-wrap: balance;
}



.rhead__sub {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 56ch;
    margin: 0 auto;
}

/* Warianty wyniku — przy odmowie neutralny znacznik zamiast zielonego */
.rhead.is-consult .results-check,
.rhead.is-low .results-check { background: var(--ink); box-shadow: 0 10px 24px -12px rgba(11,11,12,0.6); }
.rhead.is-consult .results-name-title,
.rhead.is-low .results-name-title { color: var(--muted); }

/* ---------- KARTY ---------- */
.rcard {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(22px, 3vw, 34px);
}

.rcard__title {
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 8px;
}

.rcard__sub {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
    max-width: 62ch;
}

/* Wewnątrz kart znikają dawne marginesy sekcji wyniku */
.rcard .results-stats { margin: 0; border: 0; }
.rcard .results-personal,
.rcard .results-notes,
.rcard .results-reasons { margin-inline: 0; }
.rcard .results-reasons { margin-top: 0; margin-bottom: 20px; }

/* ---------- PASEK „W CENIE KAŻDEGO PAKIETU" (nad cenami) ---------- */
.rstrip {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.rstrip li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    background: var(--teal-soft);
    color: var(--teal-ink);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.2;
}
.rstrip li i { font-size: 0.9rem; color: var(--teal); }
.rstrip__lead {
    background: transparent !important;
    padding-left: 0 !important;
    color: var(--muted) !important;
    font-weight: 500 !important;
}
@media (max-width: 560px) {
    .rstrip li { font-size: 0.8rem; padding: 5px 10px; }
    .rstrip__lead { flex-basis: 100%; padding: 0 !important; }
}

/* ---------- PLAN PO ZAKUPIE „Co się teraz wydarzy" (17.09) ---------- */
.rplan__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rplan__steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.97rem; line-height: 1.45; color: var(--ink-soft, var(--ink)); }
.rplan__steps li b { color: var(--ink); font-weight: 600; }
.rplan__n {
    flex: 0 0 26px; height: 26px; border-radius: 50%;
    background: var(--teal); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 600; margin-top: 1px;
}

/* pasek „W cenie" jako link do pełnej listy (17.09) */
.rstrip--link { cursor: pointer; }
.rstrip__more {
    background: none; border: 0; padding: 0; margin-left: 6px;
    font: inherit; font-size: 0.82rem; font-weight: 600;
    color: var(--teal-ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.rstrip__more:hover { color: var(--ink); }

/* ---------- PROŚBA O TELEFON (17.09) ---------- */
.rcall { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft, var(--line)); }
.rcall__toggle {
    display: block; width: 100%; background: none; border: 0; padding: 8px 4px;
    font: inherit; font-size: 0.92rem; font-weight: 500; color: var(--muted);
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: center;
}
.rcall__toggle:hover { color: var(--ink); }
.rcall__form {
    margin-top: 10px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg);
    background: var(--surface-2); display: grid; gap: 10px;
}
/* Bez tego atrybut hidden przegrywa z display powyżej i formularz (oraz podziękowanie) widać od startu —
   złapane w teście na produkcji 17.09. Ten sam wzorzec co .co-invoice-fields[hidden] i .co-pay-fields[hidden]. */
.rcall__form[hidden], .rcall__done[hidden], .rcall__toggle[hidden] { display: none; }
.rcall__title { margin: 0; font-weight: 600; color: var(--ink); font-size: 1rem; }
.rcall__form input[type="tel"] {
    width: 100%; box-sizing: border-box; padding: 14px 16px; font: inherit; font-size: 1rem;
    border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.rcall__form input[type="tel"]:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.rcall__submit { padding: 15px 22px; }
.rcall__note { margin: 0; font-size: 0.78rem; line-height: 1.5; color: var(--muted); }
.rcall__note a { color: var(--muted); text-decoration: underline; }
.rcall__done {
    margin: 10px 0 0; padding: 14px 16px; border-radius: 14px;
    background: var(--teal-soft); color: var(--teal-ink); font-weight: 600; font-size: 0.95rem;
    display: flex; gap: 10px; align-items: center;
}

/* ---------- ZAKRES OPIEKI ---------- */
.rincl { list-style: none; margin: 0; padding: 0; }

.rincl li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 14px 0;
    border-top: 1px solid var(--line-soft);
}
.rincl li:first-child { border-top: 0; padding-top: 0; }
.rincl li:last-child { padding-bottom: 0; }

.rincl i {
    flex: 0 0 auto;
    color: var(--teal);
    font-size: 1rem;
}

.rincl__name {
    flex: 0 1 auto;
    min-width: 0;
    font-weight: 600;
    color: var(--ink);
    font-size: 0.96rem;
}

.rincl__tag {
    flex: 0 0 auto;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    background: var(--teal-soft);
    color: var(--teal-ink);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rincl__desc {
    flex: 1 1 100%;
    padding-left: 26px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 420px) {
    .rincl__desc { padding-left: 0; }
}

/* ---------- POZOSTAŁE KARTY ---------- */
.rcard.results-social-proof,
.rcard.results-disclaimer,
.rcard.results-alt { margin: 0; }

.rcard--pick .co-variants { margin-bottom: 20px; }
.rcard--pick .co-note { margin-top: 14px; }

/* Pasek kroków dopasowany do szerszego kontenera wyniku */
.co-steps.is-results .co-steps-list { max-width: calc(940px - 2 * var(--gutter)); }
@media (min-width: 1440px) {
    .co-steps.is-results .co-steps-list { max-width: calc(980px - 2 * var(--gutter)); }
}

/* Logo w nagłówku quizu */
.quiz-header-logo .brand__mark { color: var(--teal-ink); }

/* ============================================================
   BEZ DODATKOWEGO KONTENERA
   Ekrany quizu leżą wprost na beżowym tle — biała karta i szklana
   pigułka nagłówka tylko budowały pudełko w pudełku.
   ============================================================ */
.quiz-card {
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    max-width: 680px;
}

.quiz-header {
    position: static;
    /* body.quiz-page jest kolumną flex — bez width/align-self nagłówek
       kurczy się do szerokości treści i ląduje na środku */
    width: 100%;
    align-self: stretch;
    max-width: var(--w);
    margin: var(--topbar-h) auto 0;
    height: auto;
    padding: 18px var(--gutter) 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.quiz-header-trust {
    background: none;
    border: 0;
    padding: 0;
    color: var(--muted);
}

.quiz-main { margin-top: 0; }

@media (max-width: 380px) {
    .quiz-header { padding-inline: 14px; }
    .quiz-main { margin-top: 0; }
}
@media (max-height: 520px) and (orientation: landscape) {
    .quiz-header { margin-top: var(--topbar-h); }
    .quiz-main { margin-top: 0; }
}

/* ---------- WIĘCEJ KOLORU MARKI ---------- */
.quiz-start-eyebrow { color: var(--teal-ink); }
.quiz-start-eyebrow i { color: var(--teal); }
.quiz-start-title span { color: var(--teal-ink); }
.quiz-start-trust-item i { color: var(--teal); }
.quiz-progress-fill { background: var(--teal); }
.quiz-option.selected { border-color: var(--teal); }
.quiz-option.selected .quiz-option-icon { background: var(--teal); color: #fff; }
.quiz-option-check { border-color: var(--teal); }
.quiz-step[data-multi="true"] .quiz-option.selected .quiz-option-check {
    background: var(--teal);
    border-color: var(--teal);
}
.quiz-consent input:checked ~ .quiz-consent-box {
    background: var(--teal);
    border-color: var(--teal);
}
.quiz-lead-badge { color: var(--teal-ink); }
.quiz-lead-badge i { color: var(--teal); }

/* ============================================================
   PODGLĄD BMI Z PIERŚCIENIEM
   Ten sam pierścień i te same progi kolorystyczne co kalkulator
   na stronie głównej — pacjent widzi znajomy wskaźnik.
   ============================================================ */
.quiz-bmi-preview {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 28px);
    background: var(--surface);
    padding-block: 20px;
}

.quiz-bmi-preview .ring { width: 118px; margin: 0; flex-shrink: 0; }
.quiz-bmi-preview .bmi-ring-bg { stroke-width: 9; }
.quiz-bmi-preview .bmi-ring-fill { stroke-width: 9; }
.quiz-bmi-preview .bmi-number { font-size: 1.7rem; }
.quiz-bmi-preview .bmi-label { font-size: 0.62rem; }

.quiz-bmi-preview-text { min-width: 0; }
.quiz-bmi-preview .bmi-category { margin-bottom: 8px; }
.quiz-bmi-preview .bmi-hint {
    margin: 0;
    max-width: 40ch;
    text-align: left;
}

@media (max-width: 480px) {
    .quiz-bmi-preview { gap: 14px; }
    .quiz-bmi-preview .ring { width: 96px; }
    .quiz-bmi-preview .bmi-number { font-size: 1.4rem; }
    .quiz-bmi-preview.visible { max-height: 320px; }
}

/* ============================================================
   PASEK KROKÓW — większy i wyśrodkowany
   ============================================================ */
.co-steps { padding: 18px var(--gutter); }
.co-steps-list { justify-content: center; gap: 0; }
.co-step { flex: 0 0 auto; font-size: 0.95rem; gap: 12px; }
.co-step + .co-step::before { flex: 0 0 44px; min-width: 44px; margin: 0 14px 0 14px; }
.co-step-dot { width: 32px; height: 32px; font-size: 0.9rem; }
.co-step.is-done .co-step-dot { font-size: 0.82rem; }

@media (max-width: 860px) {
    .co-steps { padding: 13px 12px; }
    .co-step { font-size: 0.85rem; gap: 9px; }
    .co-step-dot { width: 27px; height: 27px; font-size: 0.8rem; }
    .co-step + .co-step::before { flex: 0 0 18px; min-width: 18px; margin: 0 8px; }
}

/* ============================================================
   NAGŁÓWEK WYNIKU — sam ptaszek, bez ciemnego kółka
   ============================================================ */
.rhead .results-check {
    width: auto;
    height: auto;
    margin: 0 auto 14px;
    background: none;
    box-shadow: none;
    color: var(--teal);
    font-size: 2.4rem;
}
.rhead.is-consult .results-check,
.rhead.is-low .results-check { background: none; box-shadow: none; color: var(--ink); }

/* ============================================================
   WYKRES PROGNOZY
   ============================================================ */
.rcard--chart .rcard__sub { margin-bottom: 10px; }

.proj { position: relative; margin-top: 26px; }
.proj svg { display: block; width: 100%; height: auto; overflow: visible; }

.proj__grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 6; }
.proj__area { fill: url(#projGrad); }
.proj__line { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; }
.proj__dot { fill: var(--ink); }

.proj__tag {
    position: absolute;
    padding: 7px 13px;
    border-radius: var(--r-pill);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}
.proj__tag {
    box-shadow: 0 8px 20px -10px rgba(11, 11, 12, 0.5);
}
.proj__tag--start { top: 0; left: 0; background: var(--ink); color: #fff; }
/* Etykieta końcowa siada nad ostatnim punktem, nie na opisie osi */
.proj__tag--end {
    bottom: 62px; right: 0;
    background: var(--teal); color: #fff;
}

.proj__axis {
    position: absolute;
    bottom: 0;
    font-size: 0.82rem;
    color: var(--muted);
}
.proj__axis--start { left: 0; }
.proj__axis--end { right: 0; }

.proj__note {
    margin: 18px 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--muted);
}

@media (max-width: 560px) {
    .proj__tag { font-size: 0.72rem; padding: 6px 10px; }
    /* niższy wykres = etykieta końcowa musi zejść bliżej punktu */
    .proj__tag--end { bottom: 40px; }
    .proj__axis { font-size: 0.74rem; }
}

/* Imię wchodzi w jedną linię z nagłówkiem wyniku */
.rhead__title { max-width: 24ch; }

/* ============================================================
   EKRAN WYNIKU BEZ BIAŁYCH KART
   Sekcje leżą na beżu, rozdzielone cienką linią — tak jak reszta
   quizu. Białe zostają tylko elementy, które trzeba kliknąć.
   ============================================================ */
.quiz-results-inner { gap: 0; }

.rcard {
    background: none;
    border: 0;
    border-radius: 0;
    padding: clamp(30px, 4vw, 46px) 0;
    border-top: 1px solid var(--line);
}
.rcard:first-of-type { border-top: 0; }

/* Nagłówek wyniku nie potrzebuje separatora nad sobą */
.rhead + .rcard { border-top: 0; }

/* Ptaszki w spisie zakresu opieki dzielą się własnymi liniami */
.rincl li { border-top-color: var(--line); }

/* Opinie na beżu — białe pudełka zastąpione liniami */
.results-testimonial {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
}
.results-testimonials { gap: clamp(20px, 3vw, 32px); }

/* Zastrzeżenia i stopka bez ramek */
.rcard.results-disclaimer { background: none; }

/* ============================================================
   WARIANTY PŁATNOŚCI — większe kafle, czytelne ceny
   ============================================================ */
.co-variants { gap: 14px; }

.co-variant {
    position: relative;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
    padding: clamp(22px, 3vw, 28px);
    border-radius: var(--r-lg);
    margin-top: 10px;
}

/* Plakietka siada na krawędzi karty — tło musi zasłonić obrys */
.co-variant-badge {
    position: absolute;
    top: -11px;
    left: clamp(20px, 3vw, 26px);
    padding: 4px 12px;
    background: var(--teal-soft);
    color: var(--teal-strong, var(--teal-ink));
    border: 1px solid var(--teal-pale);
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    text-transform: none;
}
.co-variant-badge.alt { background: var(--teal); color: #fff; border-color: var(--teal); }

.co-variant-radio { margin-top: 3px; }

.co-variant-body { gap: 6px; }
.co-variant-name { font-size: 1.12rem; }
.co-variant-desc { font-size: 0.9rem; color: var(--muted); }

.co-variant-meta { font-size: 0.86rem; color: var(--muted); }
.co-variant-meta s { color: var(--muted-2); }

.co-variant-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--teal-ink);
}
.co-variant-note i { color: var(--teal); font-size: 0.95rem; }

.co-variant-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}
.co-variant-price b {
    font-size: clamp(1.5rem, 2.6vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1.1;
}
.co-variant-price s { font-size: 0.95rem; color: var(--muted-2); }
.co-variant-per { font-size: 0.78rem; color: var(--muted); }

@media (max-width: 560px) {
    .co-variant { grid-template-columns: auto minmax(0, 1fr); row-gap: 14px; }
    .co-variant-price { grid-column: 2; align-items: flex-start; text-align: left; }
    .co-variant-badge { font-size: 0.66rem; left: 14px; padding: 4px 9px; }
}

/* Podpis przy przekreślonej kwocie — to porównanie z płatnością
   miesięczną, nie obniżka ceny w czasie. Bez tego wyjaśnienia
   przekreślenie sugerowałoby promocję. */
.co-variant-wasnote {
    font-size: 0.72rem;
    color: var(--muted-2);
    line-height: 1.3;
    max-width: 15ch;
}

/* ============================================================
   PLAKIETKI WARIANTÓW
   Najczęściej wybierany — pełny kolor marki.
   Najlepsza wartość — jasna zieleń bez obrysu (kontrast 6,55).
   ============================================================ */
.co-variant-badge {
    background: var(--teal);
    color: #fff;
    border: 0;
}
.co-variant-badge.alt {
    background: #dff3e6;
    color: #14603a;
    border: 0;
}

/* ============================================================
   PASEK PRZYKLEJONY — wjeżdża po minięciu sekcji z pakietami
   ============================================================ */
.results-sticky-cta {
    transform: translateY(130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}
.results-sticky-cta.is-visible {
    transform: none;
    opacity: 1;
    pointer-events: auto;
}

.results-sticky-cta-text .from {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
    .results-sticky-cta { transition: opacity 0.2s ease; transform: none; }
}

/* ============================================================
   KROKI ODHACZONE W KOLORZE MARKI
   Wypełniona morska kropka z białym ptaszkiem = „zrobione".
   Krok aktywny zostaje obrysowany, więc oba stany się nie mylą.
   Kontrast bieli na #2d5c68: 7,0.
   ============================================================ */
.co-step.is-done { color: var(--ink-soft); }
.co-step.is-done .co-step-dot {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}

/* ============================================================
   REJESTRACJA — pogrupowane białe karty
   ============================================================ */
.co-pane#co-pane-register .co-grid { gap: clamp(24px, 4vw, 56px); }

.co-form { gap: 16px; }

.co-card {
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: clamp(20px, 2.6vw, 28px);
    display: grid;
    gap: 16px;
}

.co-card__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.co-card .co-field-row { gap: 16px; }

/* Faktura na firmę */
.co-invoice-toggle { align-items: center; margin-top: 2px; }
.co-invoice-fields { display: grid; gap: 14px; }
.co-invoice-fields[hidden] { display: none; }

/* Zgody: nadrzędna tylko pogrubiona, bez żadnych linii wokół */
.co-consent-all { font-weight: 600; }
.co-consent-all .quiz-consent-text { font-weight: 600; color: var(--ink); }
.co-card .co-consents {
    gap: 14px;
    padding: 0;
    border-top: 0;
}

/* ============================================================
   REJESTRACJA — bez nagłówka i powrotu; formularz startuje od razu
   ============================================================ */
.co-title-sr {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   POLA — niższe i równe, jak na wzorze
   ============================================================ */
.co-field { gap: 6px; }
.co-field label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink-soft);
}
.co-field input {
    padding: 10px 13px;
    font-size: 1rem;
    line-height: 1.35;
    border-radius: 10px;
}
.co-card { gap: 14px; }
.co-card .co-field-row { gap: 14px; }

/* Kod pocztowy jest krótki — nie potrzebuje połowy wiersza */
@media (min-width: 620px) {
    .co-field-row--zip { grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr); }
}

/* Komunikat błędu nie rozpycha wiersza, gdy jest pusty */
.co-field .quiz-input-error:empty { display: none; }

/* ============================================================
   METODY PŁATNOŚCI — każdy wybór rozwija swoje pola
   ============================================================ */
.co-pay-item { display: grid; gap: 0; }

/* Zaznaczona metoda i jej pola tworzą jeden blok */
.co-pay-item:has(input:checked) .co-pay-option,
.co-pay-item.is-open .co-pay-option {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.co-pay-fields {
    display: grid;
    gap: 14px;
    padding: 16px 16px 18px;
    border: 1px solid var(--green-strong);
    border-top: 0;
    border-radius: 0 0 var(--r) var(--r);
    background: var(--surface);
}
.co-pay-fields[hidden] { display: none; }

.co-pay-fields select {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236d6d76' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 11px;
    padding-right: 34px;
}
.co-pay-fields select:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(11, 11, 12, 0.07);
}
.co-pay-fields select.error { border-color: var(--warn); background-color: var(--warn-bg); }

.co-field--short { max-width: 220px; }

.co-pay-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--muted);
}
.co-pay-note i { color: var(--teal); font-size: 0.95em; margin-top: 1px; }

.co-pay-raty-lead {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--ink);
}
.co-pay-raty-lead strong { font-weight: 600; white-space: nowrap; }

/* ============================================================
   EKRAN PODZIĘKOWANIA — pełnoprawny widok zamiast okienka
   ============================================================ */
.thanks {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.thanks__check {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    color: var(--teal);
    font-size: 2.6rem;
}
.thanks__check--warn { color: var(--warn); }
.thanks__check--wait { color: #b07500; }

/* Plakietka statusu płatności nad nagłówkiem */
.thanks__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 7px 15px 7px 12px;
    border-radius: 999px;
    background: var(--teal-soft);
    color: var(--teal-ink);
    font-size: 0.84rem;
    font-weight: 600;
}
.thanks__badge i { font-size: 0.9em; }
.thanks__badge--wait { background: #fdf3e0; color: #8a5c00; }
.thanks__badge[hidden] { display: none; }

.thanks__title {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3.6vw, 2.3rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.thanks__lead {
    margin: 0 auto 34px;
    max-width: 60ch;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--muted);
}
.thanks__lead strong { color: var(--ink); font-weight: 600; white-space: nowrap; }

.thanks__grid {
    display: grid;
    gap: 18px;
    text-align: left;
    margin-bottom: 22px;
}
@media (min-width: 780px) {
    .thanks__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.thanks__box {
    background: var(--surface);
    border-radius: var(--r-lg);
    padding: clamp(20px, 2.6vw, 28px);
}

.thanks__box-title {
    margin: 0 0 16px;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.thanks__rows { margin: 0; display: grid; gap: 11px; }
.thanks__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    font-size: 0.97rem;
}
.thanks__row dt { color: var(--muted); }
.thanks__row[hidden] { display: none; }   /* 17.09: wiersz o subskrypcji był widoczny mimo hidden (display:flex wygrywał) */
.thanks__row dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.thanks__row--total {
    margin-top: 5px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    font-size: 1rem;
}
.thanks__row--total dd { font-size: 1.22rem; letter-spacing: -0.01em; }

.thanks__box .thanks__note {
    margin: 16px 0 0;
    font-size: 0.87rem;
    line-height: 1.5;
    color: var(--muted);
}

.thanks__steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: thx;
    display: grid;
    gap: 18px;
}
.thanks__steps li {
    counter-increment: thx;
    position: relative;
    padding-left: 40px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--muted);
}
.thanks__steps li::before {
    content: counter(thx);
    position: absolute;
    left: 0;
    top: -1px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--teal-soft);
    color: var(--teal-ink);
    font-size: 0.82rem;
    font-weight: 600;
}
.thanks__steps strong {
    display: block;
    margin-bottom: 3px;
    font-weight: 600;
    color: var(--ink);
}

.thanks__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: left;
    padding: 18px 22px;
    border-radius: var(--r-lg);
    background: var(--teal-soft);
    margin-bottom: 26px;
}
.thanks__contact > i { color: var(--teal-ink); font-size: 1.1rem; }
.thanks__contact-text { display: grid; gap: 2px; }
.thanks__contact-text strong { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.thanks__contact-text span { font-size: 0.91rem; color: var(--muted-2); }
.thanks__phone { color: var(--teal-ink); font-weight: 600; text-decoration: none; }
.thanks__phone:hover { text-decoration: underline; }

.thanks__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 0.96rem;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.18s ease, background 0.18s ease;
}
.thanks__btn:hover { opacity: 0.88; }
.thanks__btn i { font-size: 0.9em; }

.thanks__btn--ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}
.thanks__btn--ghost:hover { background: var(--surface); opacity: 1; }

.thanks__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 26px;
}

/* Lista przyczyn nieudanej płatności */
.thanks__reasons {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 11px;
}
.thanks__reasons li {
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--muted);
}
.thanks__reasons li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal);
}

.thanks__guarantee {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    max-width: 46ch;
    margin: 22px auto 0;
    font-size: 0.88rem;
    line-height: 1.5;
    text-align: left;
    color: var(--muted);
}
.thanks__guarantee i { color: var(--teal); margin-top: 2px; flex-shrink: 0; }

@media (max-width: 560px) {
    .thanks__contact { flex-direction: column; align-items: flex-start; text-align: left; }
    .thanks__btn { width: 100%; }
}

/* Logotypy operatorów zachowują swoje proporcje w białym kaflu */
.co-pay-logo { padding: 5px 7px; }
.co-pay-logo img { border-radius: 3px; }

@media (max-width: 420px) {
    .co-pay-fields { padding: 14px 13px 16px; }
    .co-field--short { max-width: none; }
}

/* Karta zamówienia dostaje ten sam materiał co reszta kolumny */
.co-summary { border: 0; border-radius: var(--r-lg); }

/* Nagłówek wyboru pakietu stoi sam — bez akapitu pod spodem
   potrzebuje własnego odstępu do kart */
.rcard--pick .rcard__title { margin-bottom: 22px; }


/* =====================================================
   BLIK na stronie: Płatności Powtarzalne BLIK (Model O), kod BLIK, popup banków, oczekiwanie, błędy
   ===================================================== */
.co-pay-item[hidden] { display: none; }
.co-paybtn[hidden] { display: none; }
.thanks__row[hidden] { display: none; }

.co-pay-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: var(--r-pill);
    background: rgba(31, 122, 110, 0.12);
    color: var(--teal);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    vertical-align: middle;
    white-space: nowrap;
}
.co-pay-banks-short { font-size: 0.78rem; }
.co-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: inherit;
    color: var(--ink);
    text-decoration: underline;
    cursor: pointer;
}
.co-link:hover { opacity: 0.8; }

.co-sub-rows {
    margin: 0;
    display: grid;
    gap: 6px;
    font-size: 0.88rem;
}
.co-sub-row {
    display: grid;
    grid-template-columns: minmax(120px, 42%) 1fr;
    gap: 10px;
    align-items: baseline;
}
.co-sub-row dt { color: var(--muted); }
.co-sub-row dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.co-sub-consent { font-size: 0.82rem; }
.co-sub-consent .quiz-consent-text { line-height: 1.45; }

.co-paybtn--inline { padding: 15px 20px; font-size: 0.97rem; }
.co-paybtn--ghost {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
}
.co-paybtn--ghost:hover { background: var(--sand); }
.co-blik-field { max-width: 240px; }
.co-blik-field input { font-size: 1.25rem; letter-spacing: 0.12em; text-align: center; }

/* Popup banków (ekran 2) */
.co-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    border: 0;
    border-radius: 22px;
    padding: 0;
    height: fit-content;
    max-height: calc(100vh - 32px);
    overflow: auto;
    max-width: 440px;
    width: calc(100% - 32px);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}
.co-dialog::backdrop { background: rgba(11, 11, 12, 0.45); }
.co-dialog__body { padding: 24px 22px 20px; display: grid; gap: 12px; }
.co-dialog__title { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.co-dialog__lead { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.co-dialog__note { margin: 0; font-size: 0.76rem; color: var(--muted); line-height: 1.4; }
.co-banks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.co-banks li {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.84rem;
    background: var(--surface);
}
.co-banks--compact li { padding: 6px 9px; font-size: 0.8rem; }

/* Oczekiwanie na potwierdzenie w aplikacji banku */
.co-wait {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(11, 11, 12, 0.5);
}
.co-wait[hidden] { display: none; }
body.co-wait-open { overflow: hidden; }
.co-wait__card {
    background: var(--surface);
    border-radius: 22px;
    padding: 30px 26px 24px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.co-wait__spinner {
    width: 46px;
    height: 46px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 4px solid var(--line);
    border-top-color: var(--ink);
    animation: co-spin 0.9s linear infinite;
}
@keyframes co-spin { to { transform: rotate(360deg); } }
.co-wait__title { margin: 0 0 8px; font-size: 1.15rem; }
.co-wait__text { margin: 0 0 12px; font-size: 0.9rem; color: var(--muted); line-height: 1.5; }
.co-wait__timer { margin: 0; font-size: 0.85rem; color: var(--muted); }
.co-wait__timer span { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .co-wait__spinner { animation: none; } }

/* Błąd BLIK nad polem kodu (ekran 5) */
.co-blik-error {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--warn-bg);
    border: 1px solid var(--warn);
}
.co-blik-error__msg { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.co-blik-error__lead { margin: 0; font-size: 0.82rem; color: var(--muted); }
.co-blik-error__actions { display: grid; gap: 8px; }

@media (max-width: 560px) {
    .co-sub-row { grid-template-columns: 1fr; gap: 2px; }
    .co-sub-row dd { text-align: left; }
    .co-blik-field { max-width: none; }
    .co-banks { grid-template-columns: 1fr; }
}

/* Karta cykliczna — PayU Secure Form */
.co-card-form {
    min-height: 52px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}
.co-card-form.is-focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(11, 11, 12, 0.07); }
.co-card-form.is-error { border-color: var(--warn); background: var(--warn-bg); }
.co-card-form__loading { font-size: 0.85rem; color: var(--muted); line-height: 40px; }
.co-card-form iframe { width: 100%; }

/* Skrócone podsumowanie subskrypcji (CRO 9.09.2026): 3 wiersze + rozwijana pełna zgoda */
.co-sub-ok { color: var(--teal); font-weight: 600; }
.co-sub-hint { margin: -4px 0 0; font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.co-sub-full { margin: -6px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--sand); font-size: 0.78rem; line-height: 1.45; color: var(--muted); }
.co-sub-full[hidden] { display: none; }
.co-sub-consent .co-link { font-size: 0.8rem; }

/* Pasek zaufania pod metodami płatności (9.09) */
.co-paytrust { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 14px 0 0; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.co-paytrust i { color: var(--green-strong); }
.co-paytrust strong { color: var(--ink); font-weight: 600; }
.co-paytrust__logos { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.co-paytrust__logos img { height: 18px; width: auto; display: block; opacity: .85; }

/* =====================================================
   KOSZYK — PASEK Z KWOTĄ I NAKŁADKA Z DOKUMENTEM
   Dodane 18.09.2026 po audycie nagrań Clarity.
   Powód paska: przy jednej kolumnie podsumowanie z kwotą ląduje POD przyciskiem
   „Zamawiam i płacę" (zmierzone: przycisk 1094 px, kwota 2271 px na ekranie 812 px).
   ===================================================== */

.co-sticky { display: none; }

@media (max-width: 959px) {
    .co-sticky {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px max(var(--gutter), calc((100vw - 720px) / 2));
        padding-bottom: calc(12px + env(safe-area-inset-bottom));

        background: rgba(255, 255, 255, 0.72);
        backdrop-filter: blur(22px) saturate(190%);
        -webkit-backdrop-filter: blur(22px) saturate(190%);
        border-top: 1px solid rgba(255, 255, 255, 0.8);
        box-shadow:
            0 -1px 0 rgba(11, 11, 12, 0.06),
            0 -10px 30px -12px rgba(11, 11, 12, 0.12);
    }

    /* Ekran podziękowania i etap wyboru pakietu nie mają czego płacić — pasek żyje tylko przy rejestracji */
    #co-pane-register:not(.active) ~ .co-sticky { display: none; }

    /* Miejsce na pasek, żeby nie zasłaniał ostatnich pól i stopki koszyka */
    #co-pane-register { padding-bottom: 96px; }

    .co-sticky__text { flex: 1; min-width: 0; }

    .co-sticky__label {
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted-2);
        margin-bottom: 2px;
    }

    .co-sticky__price {
        font-size: 1.2rem;
        font-weight: 600;
        letter-spacing: -0.035em;
        color: var(--ink);
        line-height: 1;
    }

    .co-sticky__btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: var(--ink);
        color: #fff;
        border: 0;
        border-radius: var(--r-pill);
        padding: 13px 20px;
        font-family: 'Outfit', sans-serif;
        font-size: 0.92rem;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.18s ease;
    }

    .co-sticky__btn:hover { background: #2a2a2e; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .co-sticky { background: #fff; }
}

@media (max-width: 380px) {
    .co-sticky { gap: 10px; padding-left: 14px; padding-right: 14px; }
    .co-sticky__btn { padding: 12px 15px; font-size: 0.86rem; }
    .co-sticky__price { font-size: 1.08rem; }
}

/* ---------- NAKŁADKA Z REGULAMINEM / POLITYKĄ ---------- */
.co-doc {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.co-doc[hidden] { display: none; }

.co-doc__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 11, 12, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.co-doc__box {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 780px;
    max-height: 88vh;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: 0 30px 70px -20px rgba(11, 11, 12, 0.45);
    overflow: hidden;
}

.co-doc__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.co-doc__title {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0;
}

.co-doc__close {
    flex: none;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--ink);
    font-size: 1rem;
    cursor: pointer;
}

.co-doc__close:hover { background: var(--line); }

.co-doc__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 20px 8px;
}

/* Dokument przychodzi z własnym <style> (klasy .doc*), więc tu tylko zdejmujemy jego marginesy strony */
.co-doc__body .doc { padding: 0; }
.co-doc__body .doc__wrap { padding: 0; max-width: none; }
.co-doc__body .doc h1 { font-size: clamp(22px, 4vw, 28px); }
.co-doc__body .doc h2:first-of-type { margin-top: 24px; }

.co-doc__wait,
.co-doc__err { padding: 28px 4px; font-size: 0.95rem; color: var(--muted); }

.co-doc__foot {
    padding: 14px 20px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.co-doc__back {
    width: 100%;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--ink);
    color: #fff;
    padding: 13px 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
}

.co-doc__back:hover { background: #2a2a2e; }

@media (max-width: 560px) {
    .co-doc { padding: 0; }
    .co-doc__box { max-width: none; max-height: 100%; height: 100%; border-radius: 0; border: 0; }
}
