/* Ofertado – strona główna. Układ: sticky nagłówek, hero z grafiką, sekcje w kontenerze 1160 px, stopka. */

/* Nagłówek */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.nav { display: flex; gap: 4px; margin-left: 16px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--surface-2); }
.bar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .bar { gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; margin: 0; padding: 12px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  .hide-sm { display: none; }
}
@media (max-width: 430px) { .hide-xs { display: none; } .bar-actions .btn-sm { padding: 0 10px; font-size: 13px; } .logo { font-size: 20px; } .logo svg { width: 32px; height: 32px; } }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; align-items: center; padding-block: 72px 56px; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero h1 { font-size: clamp(36px, 5.6vw, 62px); line-height: 1.04; letter-spacing: -0.03em; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 46ch; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); font-weight: 500; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
@media (max-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 40px 40px; } .hero-art { max-width: 560px; } }

/* Grafika w hero: wszystko w jednostkach em, a em skaluje się z szerokością kontenera (container query). */
.hero-art { container-type: inline-size; width: 100%; min-width: 0; }
.art { position: relative; width: 100%; aspect-ratio: 38 / 33; font-size: calc(100cqw / 38); line-height: 1.35; color: #141a33; }
.art > * { position: absolute; }
.art-bg { inset: 3em 0 0 4em; border-radius: 2.2em; background: var(--accent-soft); }
.art-dots { left: 0; top: 0; width: 13em; height: 9em; background-image: radial-gradient(var(--muted) 0.11em, transparent 0.13em); background-size: 1.1em 1.1em; opacity: 0.45; }
.art-paper { left: 6em; top: 1em; width: 24em; padding: 1.9em 1.9em 1.5em; background: #ffffff; border-radius: 0.7em; border: 1px solid rgba(20, 26, 51, 0.12); box-shadow: 0 1.4em 3em rgba(20, 26, 51, 0.22); font-size: 1em; }
.ap-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 0.7em; border-bottom: 0.18em solid #141a33; font-size: 0.95em; }
.ap-head strong { font-size: 1.15em; font-weight: 700; letter-spacing: -0.01em; }
.ap-head span { font-size: 0.75em; color: #566083; }
.ap-sub { margin: 0.7em 0 0.8em; font-size: 0.8em; color: #566083; }
.ap-table { font-size: 0.78em; }
.ap-row { display: grid; grid-template-columns: 1fr 3em 6em; gap: 0.6em; padding: 0.55em 0.4em; border-bottom: 1px solid #e3e7f4; }
.ap-row span:nth-child(2), .ap-row span:nth-child(3) { text-align: right; }
.ap-th { background: #eceffb; color: #566083; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; border: 0; }
.ap-sums { margin: 0.9em 0 0 auto; width: 14em; font-size: 0.78em; color: #566083; }
.ap-sums div { display: flex; justify-content: space-between; padding: 0.15em 0; }
.ap-total { display: flex; justify-content: space-between; align-items: center; gap: 0.8em; white-space: nowrap; margin: 0.5em 0 0 auto; width: 17.5em; padding: 0.7em 0.9em; background: #2f3fb0; color: #fff; border-radius: 0.4em; font-size: 0.82em; }
.ap-total strong { font-size: 1.1em; }
.ap-amber { margin: 0.35em 0 0 auto; width: 17.5em; height: 0.45em; border-radius: 0.25em; background: #f2b233; }
.art-form { left: 0; bottom: 1.2em; width: 15em; padding: 1.1em; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 1em; box-shadow: 0 1em 2.4em rgba(20, 26, 51, 0.18); font-size: 0.9em; }
.af-label { font-size: 0.72em; font-weight: 600; color: var(--muted); margin: 0.5em 0 0.2em; }
.af-label:first-child { margin-top: 0; }
.af-input { padding: 0.55em 0.7em; background: var(--bg); border: 1px solid var(--line); border-radius: 0.55em; font-size: 0.8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-two { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.6em; }
.af-num { text-align: right; }
.art-pdf { right: 0; top: 13em; width: 8.6em; padding: 1em 0.9em 0.9em; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 1em; box-shadow: 0 1em 2.4em rgba(20, 26, 51, 0.18); text-align: center; font-size: 0.9em; }
.art-pdf svg:first-child { width: 4.6em; height: 4.6em; display: block; margin: 0 auto 0.4em; }
.pdf-page { fill: #ffffff; stroke: var(--muted); stroke-width: 1.6; stroke-linejoin: round; }
.pdf-fold { fill: var(--surface-2); stroke: var(--muted); stroke-width: 1.6; stroke-linejoin: round; }
.pdf-tag { fill: #f2b233; }
.pdf-text { fill: #141a33; font: 700 10px var(--font); letter-spacing: 0.04em; }
.pdf-line { fill: var(--line); }
.ad-name { font-size: 0.8em; font-weight: 600; }
.ad-state { display: inline-flex; align-items: center; gap: 0.35em; margin-top: 0.5em; padding: 0.3em 0.7em; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 0.72em; font-weight: 600; }
.ad-state svg { width: 1.2em; height: 1.2em; }
.art-chip { right: 1.2em; bottom: 2.2em; display: inline-flex; align-items: center; gap: 0.5em; padding: 0.6em 1.1em; background: #f2b233; color: #141a33; border-radius: 999px; font-size: 0.9em; font-weight: 700; box-shadow: 0 0.8em 1.8em rgba(20, 26, 51, 0.22); }
.art-chip svg { width: 1.2em; height: 1.2em; }
@media (max-width: 420px) { .art-form { display: none; } .art-paper { left: 2em; } }

/* Dla kogo */
.who { padding-block: 24px 40px; }
.who-title { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 20px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pills li { padding: 9px 18px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; font-size: 14.5px; font-weight: 500; }

/* Sekcje */
.section { padding-block: 96px; }
.section-tint { background: var(--surface-2); }
.section-tint > .container { padding-block: 0; }
@media (max-width: 700px) { .section { padding-block: 64px; } }
.section-head { max-width: 680px; margin-bottom: 48px; display: grid; gap: 14px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section h2, .cta h2 { font-size: clamp(28px, 4vw, 42px); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.section-lead { font-size: 17px; color: var(--muted); max-width: 56ch; }

/* Funkcje */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.f-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; margin-bottom: 8px; }
.f-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--muted); font-size: 15px; }

/* Jak to działa */
.section-tint { padding-block: 96px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }
.step { display: grid; gap: 8px; align-content: start; }
.step-art { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.step-art svg { display: block; width: 100%; height: auto; }
.step-n { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.step h3 { font-size: 22px; }
.step p:last-child { color: var(--muted); font-size: 15px; }
.il-card { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.il-field { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; }
.il-bar { fill: var(--line); }
.il-bar-d { fill: var(--muted); fill-opacity: 0.55; }
.il-accent { fill: var(--accent); }
.il-btn-bar { fill: var(--accent-ink); }
.il-amber { fill: #f2b233; }
.il-paper { fill: #ffffff; stroke: var(--line); stroke-width: 1.5; }
.il-ink { fill: #141a33; }
.il-ok { fill: var(--ok); }
.il-ok-tick { fill: none; stroke: #ffffff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.il-pdf-page { fill: #ffffff; stroke: var(--muted); stroke-width: 2; stroke-linejoin: round; }
.il-pdf-fold { fill: var(--surface-2); stroke: var(--muted); stroke-width: 2; stroke-linejoin: round; }
.il-pdf-text { fill: #141a33; font: 700 17px var(--font); letter-spacing: 0.04em; }
.il-arrow { fill: none; stroke: var(--accent-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.il-spark { fill: none; stroke: #f2b233; stroke-width: 3; stroke-linecap: round; }

/* Kalkulator */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.demo-copy { display: grid; gap: 18px; justify-items: start; }
@media (max-width: 960px) { .demo { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.calc { padding: 24px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 72px 110px; gap: 8px; }
.calc-head { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.calc-head span:nth-child(n+2) { text-align: right; padding-right: 14px; }
@media (max-width: 520px) { .calc { padding: 16px; } .calc-grid { grid-template-columns: minmax(0, 1fr) 56px 88px; } .calc .input { padding-inline: 8px; } }
.calc-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.calc-sum { margin: 8px 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.calc-sum > div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.calc-sum dt, .calc-sum dd { margin: 0; }
.calc-sum .calc-total { margin-top: 6px; padding: 14px 16px; background: var(--accent); color: var(--accent-ink); border-radius: 12px; font-size: 18px; font-weight: 700; }
.calc-amber { height: 6px; border-radius: 3px; background: var(--amber); margin-top: -6px; margin-inline: 12px; }

/* Cennik */
.plan { max-width: 720px; margin-inline: auto; padding: 36px; display: grid; gap: 28px; box-shadow: var(--shadow); }
.plan-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.plan-name { font-size: 15px; font-weight: 600; color: var(--muted); }
.plan-price strong { font-size: 44px; letter-spacing: -0.03em; }
.plan-price span { font-size: 14px; color: var(--muted); margin-left: 6px; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.plan-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.plan-list svg { width: 22px; height: 22px; flex: none; padding: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); margin-top: 1px; }
@media (max-width: 560px) { .plan { padding: 24px; } }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--accent-text); border-bottom: 2.5px solid var(--accent-text); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 4px 24px; color: var(--muted); max-width: 66ch; }

/* CTA */
.cta { padding-block: 0 96px; }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 5vw, 56px); border-radius: 24px; background: var(--accent); color: var(--accent-ink); }
.cta-box h2 { margin-bottom: 10px; }
.cta-box p { max-width: 52ch; opacity: 0.92; }
.cta-box a:not(.btn) { color: inherit; font-weight: 600; }
:root[data-theme="dark"] .cta-box { background: #232b55; color: var(--ink); }
:root[data-theme="dark"] .cta-box a:not(.btn) { color: var(--amber); }

/* Stopka */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-top: 56px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; }
@media (max-width: 800px) { .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
.foot-brand p { margin-top: 14px; color: var(--muted); font-size: 14.5px; max-width: 30ch; }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.foot-col a { color: var(--ink); text-decoration: none; font-size: 15px; width: fit-content; overflow-wrap: anywhere; }
.foot-col a:hover { text-decoration: underline; }
.foot-bottom { padding-block: 20px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.social { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 14px; }

/* Strony prawne (regulamin, polityka prywatności) */
.legal { max-width: 760px; padding-block: 56px 96px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 12px; }
.legal .updated { color: var(--muted); font-size: 14.5px; margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal li { margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 12px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--surface-2); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.legal .tbl-wrap { overflow-x: auto; }
mark.todo { background: #fff1b8; color: #141a33; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
:root[data-theme="dark"] mark.todo { background: #5b4a0f; color: #ffe9a0; }
.draft-note { padding: 14px 18px; border-radius: 12px; background: var(--accent-soft); font-size: 14.5px; margin-bottom: 28px; }

/* „Zaloguj się” w menu na telefonie (w nagłówku jest ukryte na wąskich ekranach) */
.nav .nav-login { display: none; }
@media (max-width: 900px) {
  .nav .nav-login { display: block; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); border-radius: 0; font-weight: 700; color: var(--accent-text); }
}
