/* =====================================================================
   Strony sprzedażowe, koszyk i lejek — styl konferencji Sprawnego Marketingu:
   Lato, czerwień #ee312f, żółty marker, czarne sekcje, zero zaokrągleń.
   Używa zmiennych i klas bazowych z portal.css.
   ===================================================================== */

.lp-body { background: var(--bg); }
.lp-main { display: block; }
.lp-content > :not(.lp-sec) { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

.lp-sec { padding: 72px 0; border-bottom: 1px solid var(--line); }
.lp-sec + .lp-sec.lp-dark, .lp-dark + .lp-sec { border-top: 0; }
.lp-in { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.lp-dark { background: #0d0d0d; color: #fff; border-bottom-color: #0d0d0d; }
.lp-dark .lp-h1, .lp-dark .lp-h2, .lp-dark h3 { color: #fff; }
.lp-dark .lp-lead, .lp-dark p { color: #d9d9d9; }
.lp-dark .hl { color: #111; }

.lp-h1 { font-size: clamp(38px, 6vw, 72px); line-height: 0.98; font-weight: 900; letter-spacing: -0.03em; margin: 0 0 22px; text-wrap: balance; }
.lp-h2 { position: relative; font-size: clamp(28px, 4vw, 44px); line-height: 1.04; font-weight: 900; letter-spacing: -0.02em; margin: 0 0 34px; padding-bottom: 18px; text-wrap: balance; }
.lp-h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 70px; height: 6px; background: var(--red); }
.lp-h2::before { content: ''; position: absolute; left: 76px; bottom: 0; width: 26px; height: 6px; background: var(--yellow); }
.lp-lead { font-size: 19px; line-height: 1.6; color: var(--text-2); margin: 0 0 28px; max-width: 760px; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.btn-dark { background: #111; color: #fff; }
.btn-dark:hover { background: var(--red); color: #fff; }

/* Cena */
.lp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 16px; }
.lp-price-now { font-size: 40px; font-weight: 900; letter-spacing: -0.02em; }
.lp-price-old { font-size: 20px; color: var(--muted); text-decoration-thickness: 2px; text-decoration-color: var(--red); }
.lp-price-note { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.lp-dark .lp-price-note, .lp-dark .lp-price-old { color: #a6a6a6; }

/* Hero */
.lp-hero { padding: 64px 0 80px; }
.lp-hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .lp-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.lp-buy { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 6px 0 24px; }
.lp-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-badges li { font-size: 12px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--line-2); }
.lp-dark .lp-badges li { border-color: #444; color: #fff; }
.lp-badges li::before { content: '✓ '; color: var(--red); }
.lp-video { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: 14px 14px 0 var(--yellow); }
.lp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lp-hero-img { width: 100%; display: block; box-shadow: 14px 14px 0 var(--yellow); }
.lp-hero-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; box-shadow: 14px 14px 0 var(--yellow); background: #000; padding: 8px; }
.lp-hero-thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* Co dostajesz */
.lp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 3px solid var(--text); margin-bottom: 30px; }
.lp-fact { padding: 24px 22px; border-right: 1px solid var(--line); }
.lp-fact:last-child { border-right: 0; }
.lp-fact strong { display: block; font-size: clamp(36px, 5vw, 56px); font-weight: 900; line-height: 1; color: var(--red); letter-spacing: -0.03em; }
.lp-fact span { display: block; margin-top: 8px; font-size: 13px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.lp-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 30px; }
.lp-thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.lp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-checks li { position: relative; padding-left: 32px; font-size: 17px; line-height: 1.5; }
.lp-checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; background: var(--red); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }

/* Akordeony: program i FAQ */
.lp-acc { border: 1px solid var(--line); margin-bottom: 10px; background: #fff; }
.lp-acc[open] { border-color: var(--text); }
.lp-acc summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 20px; font-size: 18px; font-weight: 900; }
.lp-acc summary::-webkit-details-marker { display: none; }
.lp-acc summary span { flex: 1; }
.lp-acc summary em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--muted); }
.lp-acc summary::after { content: '+'; font-size: 26px; line-height: 1; color: var(--red); }
.lp-acc[open] summary::after { content: '–'; }
.lp-lessons { margin: 0; padding: 0 20px 14px 20px; list-style: none; counter-reset: l; }
.lp-lessons li { counter-increment: l; display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.lp-lessons li::before { content: counter(l, decimal-leading-zero); font-size: 12px; font-weight: 900; color: var(--red); letter-spacing: 0.1em; min-width: 24px; }
.lp-l-title { flex: 1; font-weight: 700; line-height: 1.35; }
.lp-l-title small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.lp-l-time { font-size: 13px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.lp-acc-body { padding: 0 20px 20px; color: var(--text-2); line-height: 1.65; }

/* Kafelki korzyści */
.lp-tiles { display: grid; gap: 18px; }
@media (min-width: 720px) { .lp-cols-2 { grid-template-columns: repeat(2, 1fr); } .lp-cols-3, .lp-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .lp-cols-3 { grid-template-columns: repeat(3, 1fr); } .lp-cols-4 { grid-template-columns: repeat(4, 1fr); } }
.lp-tile { border: 1px solid var(--line); padding: 26px; background: #fff; transition: border-color 120ms ease, box-shadow 120ms ease; }
.lp-tile:hover { border-color: var(--text); box-shadow: 8px 8px 0 var(--yellow); }
.lp-tile h3 { font-size: 20px; margin: 10px 0 8px; }
.lp-tile p { margin: 0; color: var(--text-2); line-height: 1.6; }
.lp-icon { font-size: 34px; line-height: 1; }

/* Prelegenci */
.lp-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.lp-person img, .lp-person-ph { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #111; filter: grayscale(1); transition: filter 200ms ease; }
.lp-person:hover img { filter: none; }
.lp-person-ph { display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 64px; font-weight: 900; filter: none; }
.lp-person strong { display: block; margin-top: 12px; font-size: 18px; }
.lp-person span { display: block; color: var(--muted); font-size: 14px; }
.lp-person em { display: block; margin-top: 6px; font-style: normal; font-weight: 700; font-size: 14px; border-left: 4px solid var(--yellow); padding-left: 8px; }
.lp-names { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-names li { font-weight: 700; padding: 10px 14px; border: 1px solid var(--line); }

/* Cennik */
.lp-plans { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 860px) { .lp-plans { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.lp-plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line-2); padding: 30px 26px; background: #fff; }
.lp-plan h3 { font-size: 24px; margin: 0 0 8px; }
.lp-plan-sum { color: var(--muted); margin: 0 0 16px; }
.lp-plan .lp-checks { margin: 8px 0 22px; flex: 1; }
.lp-plan .lp-checks li { font-size: 15px; }
.lp-plan.is-featured { border: 3px solid var(--red); box-shadow: 12px 12px 0 var(--yellow); }
.lp-plan-label { position: absolute; top: -14px; left: 24px; background: var(--red); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 10px; }

/* Opinie */
.lp-quotes-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.lp-quote { margin: 0; padding: 28px; border-left: 6px solid var(--red); background: var(--bg-2); }
.lp-quote blockquote { margin: 0 0 18px; font-size: 18px; line-height: 1.55; font-weight: 700; }
.lp-quote blockquote::before { content: '„'; color: var(--red); font-size: 44px; line-height: 0; vertical-align: -14px; margin-right: 4px; }
.lp-quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.lp-quote figcaption img { width: 46px; height: 46px; object-fit: cover; }
.lp-quote figcaption strong { display: block; color: var(--text); }

/* Licznik */
.lp-count { padding: 40px 0; text-align: center; }
.lp-count-title { font-size: 13px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 14px; }
.lp-count-box { display: inline-flex; gap: 10px; }
.lp-count-box div { min-width: 86px; padding: 14px 10px; background: var(--red); color: #fff; }
.lp-count-box strong { display: block; font-size: 40px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.lp-count-box span { display: block; margin-top: 6px; font-size: 11px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.lp-count-over { font-size: 20px; font-weight: 900; margin: 0; }

/* Gwarancja, CTA */
.lp-guarantee { display: flex; gap: 22px; align-items: flex-start; border: 3px solid var(--text); padding: 30px; background: var(--yellow); }
.lp-guarantee h3 { font-size: 22px; margin: 0 0 8px; }
.lp-guarantee p { margin: 0; line-height: 1.6; }
.lp-cta-row { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .lp-cta-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.lp-cta .lp-buy { margin: 0; }

/* Oferta po zakupie */
.lp-offer-sec { background: var(--bg-2); }
.lp-offer { max-width: 620px; margin: 0 auto; text-align: center; border: 3px solid var(--red); background: #fff; padding: 36px 30px; box-shadow: 14px 14px 0 var(--yellow); }
.lp-offer .lp-h2::after, .lp-offer .lp-h2::before { left: 50%; margin-left: -51px; }
.lp-offer .lp-h2::before { margin-left: 25px; }
.lp-offer .lp-price { justify-content: center; }
.lp-offer .co-consent { text-align: left; }
.lp-offer-decline { margin: 14px 0 6px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.linklike:hover { color: var(--text); }

/* Puste bloki w edytorze */
.lp-missing { border: 2px dashed var(--line-2); padding: 18px; color: var(--muted); font-size: 14px; text-align: center; margin: 10px 0; }

/* ===================== Koszyk ===================== */
.co { display: grid; gap: 40px; }
@media (min-width: 980px) { .co { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.co-fields .input { margin-bottom: 4px; }
.co-row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .co-row { grid-template-columns: 1fr 1fr; } }
.co-sub { margin: 22px 0 0; font-size: 13px; color: var(--muted); }
.co-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; font-size: 15px; font-weight: 700; cursor: pointer; line-height: 1.45; }
.co-toggle + .co-check::before { content: ''; flex: none; width: 20px; height: 20px; border: 2px solid var(--text); background: #fff; margin-top: 1px; }
.co-toggle:checked + .co-check::before { background: var(--red); border-color: var(--red); box-shadow: inset 0 0 0 3px #fff; }
.co-toggle:focus-visible + .co-check::before { outline: 2px solid var(--red); outline-offset: 2px; }
.co-company { display: none; margin-top: 8px; padding: 6px 16px 16px; border-left: 4px solid var(--yellow); background: var(--bg-2); }
.co-toggle:checked ~ .co-company { display: block; }
.co-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); }
.co-consent { font-weight: 400; font-size: 14px; color: var(--text-2); }
.co-bump { margin: 26px 0 0; border: 3px dashed var(--red); background: #fffde0; padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; }
.co-bump input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--red); flex: none; }
.co-bump label { cursor: pointer; }
.co-bump-head { display: block; font-weight: 900; font-size: 16px; }
.co-bump-text { display: block; margin-top: 4px; font-size: 14px; color: var(--text-2); }
.co-total { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 0 6px; padding: 16px 0; border-top: 3px solid var(--text); border-bottom: 1px solid var(--line); }
.co-total span { font-size: 13px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.co-total strong { font-size: 30px; font-weight: 900; }
.co-pay { font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
.co-side { position: relative; }
@media (min-width: 980px) { .co-card { position: sticky; top: 96px; } }
.co-card { border: 1px solid var(--line); padding: 24px; background: #fff; }
.co-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; margin-bottom: 8px; }
.co-facts { list-style: none; padding: 0; margin: 10px 0 0; }
.co-facts li { padding: 9px 0; border-top: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.co-facts li::before { content: '✓ '; color: var(--red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert-warn { background: #fffde0; color: #5c5200; border-left-color: var(--yellow); }

.co-spinner { width: 46px; height: 46px; margin: 10px 0 24px; border: 5px solid var(--line); border-top-color: var(--red); animation: smva-spin 0.9s linear infinite; }
@keyframes smva-spin { to { transform: rotate(360deg); } }

.thanks .co-card { margin: 10px 0 30px; }
.thanks-items { list-style: none; padding: 0; margin: 0; }
.thanks-items li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.thanks-items li:last-child { border-bottom: 0; }
.thanks-steps { margin: 14px 0 26px; padding-left: 20px; line-height: 1.7; color: var(--text-2); }

@media (max-width: 640px) {
  .lp-sec { padding: 48px 0; }
  .lp-count-box div { min-width: 64px; }
  .lp-count-box strong { font-size: 28px; }
  .lp-guarantee { flex-direction: column; }
}
