/* ============================================================
   CZYTELNECV — strony (główna, cennik, konto, szablony, wzory)
   Styl: precyzyjne narzędzie. Biel, jeden kolor (kobalt), cienkie
   linie, prawdziwe zrzuty produktu zamiast ikon. Mało słów.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-padding-top: 72px; scroll-behavior: smooth; }
body {
  margin: 0; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--sans); font-weight: 650; line-height: 1.15; margin: 0; color: var(--ink); letter-spacing: -.022em; }
h3 { letter-spacing: -.012em; }
p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-soft); }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap, .wrap-inner { max-width: var(--max); margin: 0 auto; }
.wrap { padding: 0 28px; max-width: calc(var(--max) + 56px); }
.wz-top, .wz-grid, .wz-gallery, .price-grid { max-width: calc(var(--max) + 56px) !important; }
.acc-page .wz-top, .acc-wrap { max-width: calc(920px + 56px) !important; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--accent); letter-spacing: .01em; margin-bottom: 14px; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  max-width: none; margin: 0; padding: 0 max(28px, calc((100% - var(--max)) / 2));
  height: 64px; background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 1.02rem; letter-spacing: -.02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.logo img { width: 26px; height: 26px; border-radius: 6px; margin: 0; }
.logo em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a { padding: 7px 11px; border-radius: 6px; font-size: .9rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: var(--paper-deep); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links .nav-account { margin-left: auto; }
.nav-links .btn.nav-cta { padding: 8px 14px; margin-left: 6px; color: var(--accent-ink); }
.nav-links .btn.nav-cta:hover { background: var(--accent-hover); color: var(--accent-ink); }
@media (max-width: 1020px) { .nav-links a.nav-opt { display: none; } }
@media (max-width: 760px) {
  .site-header { height: auto; flex-wrap: wrap; row-gap: 0; padding: 12px 16px 0; }
  .nav-links { order: 3; flex-basis: 100%; margin: 0 -16px; padding: 6px 12px 8px; overflow-x: auto; scrollbar-width: none; gap: 2px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a.nav-opt { display: inline-block; }
  .nav-links a { font-size: .86rem; padding: 6px 9px; }
  .nav-links .nav-account { margin-left: 0; }
  .nav-links .btn.nav-cta { position: absolute; top: 10px; right: 16px; padding: 7px 12px; font-size: .84rem; }
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 .94rem/1.2 var(--sans); padding: 11px 18px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--paper-raised); color: var(--ink);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .12s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease;
}
.btn:hover { border-color: var(--ink-faint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(35, 70, 216, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.secondary { background: var(--paper-raised); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-soft); }
.btn.ghost:hover { background: var(--paper-deep); color: var(--ink); }
.btn.large { padding: 13px 22px; font-size: 1rem; }
.btn[disabled] { opacity: .5; cursor: default; }
.danger-text { color: var(--danger) !important; }
.linkish { border: none; background: none; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.linkish[disabled] { color: var(--ink-faint); cursor: default; text-decoration: none; }
.arrow-link { font-weight: 550; text-decoration: none; }
.arrow-link::after { content: " →"; transition: margin .12s ease; }
.arrow-link:hover::after { margin-left: 3px; }

.pro-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font: 650 .66rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #0E1116; }
:root[data-theme="dark"] .pro-badge { background: #EEF0F4; color: #0C0E12; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pro-badge { background: #EEF0F4; color: #0C0E12; } }

/* ---------- Sekcje ---------- */
main > section { padding: 104px 28px; }
main > section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); text-wrap: balance; }
.section-head p { margin-top: 14px; font-size: 1.06rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }
@media (max-width: 720px) { main > section { padding: 64px 18px; } .section-head { margin-bottom: 32px; } }

/* ---------- Strona główna: nagłówek ---------- */
.hero { padding: 88px 28px 0; text-align: center; overflow: hidden; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 680; letter-spacing: -.035em; line-height: 1.05; max-width: 19ch; margin: 0 auto; text-wrap: balance; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 50ch; margin: 22px auto 0; color: var(--ink-soft); }
.hero .cta-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.hero .hero-meta { margin: 18px auto 0; font-size: .86rem; color: var(--ink-faint); max-width: none; }
.hero-shot { position: relative; max-width: 1180px; margin: 64px auto 0; }
.hero-shot::before { content: ""; position: absolute; inset: 12% -8% -30%; z-index: -1; background: radial-gradient(60% 50% at 50% 40%, var(--accent-soft), transparent 70%); }
@media (max-width: 720px) { .hero { padding: 56px 18px 0; } .hero-shot { margin-top: 40px; } }

/* Zrzut produktu w ramce okna */
.shot { margin: 0; border-radius: var(--radius-lg); background: var(--paper-raised); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: var(--paper-deep); border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.shot-bar span { margin-left: 12px; font-size: .74rem; color: var(--ink-faint); font-family: var(--mono); }
.shot img { display: block; width: 100%; height: auto; }
.shot picture { display: block; }
.hero-shot .shot { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: none; }
.hero-shot .shot img { max-height: 640px; object-fit: cover; object-position: top; }

/* Pasek faktów pod nagłówkiem */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0 max(28px, calc((100% - var(--max)) / 2)) !important; position: relative; background: var(--paper); }
.facts > div { padding: 26px 28px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: none; padding-left: 0; }
.facts b { display: block; font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.facts span { font-size: .88rem; color: var(--ink-soft); }
.facts-in { max-width: var(--max); margin: 0 auto; display: contents; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr 1fr; padding: 0 !important; } .facts > div:first-child { padding-left: 18px; } .facts > div:nth-child(3) { border-left: none; } .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); } .facts > div { padding: 20px 18px; } }

/* ---------- Strona główna: narzędzia (zrzuty + krótki opis) ---------- */
.tool-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; max-width: var(--max); margin: 0 auto; }
.tool-row + .tool-row { margin-top: 112px; }
.tool-row.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.tool-row.flip > :first-child { order: 2; }
.tool-row h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.025em; text-wrap: balance; }
.tool-row p { margin-top: 14px; font-size: 1.02rem; }
.tool-row .spec { list-style: none; margin: 22px 0 26px; padding: 0; border-top: 1px solid var(--line); }
.tool-row .spec li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--ink-soft); }
.tool-row .spec li b { font-weight: 550; color: var(--ink); text-align: right; }
.tool-row .tag { display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; font-weight: 600; color: var(--ink-faint); margin-bottom: 12px; }
.tool-row .tag .pro-badge { height: 18px; font-size: .6rem; }
@media (max-width: 900px) { .tool-row, .tool-row.flip { grid-template-columns: 1fr; gap: 32px; } .tool-row.flip > :first-child { order: 0; } .tool-row + .tool-row { margin-top: 72px; } }

/* ---------- Strona główna: cechy edytora ---------- */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.cols > div { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.cols dt { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.cols dd { margin: 0; font-size: .94rem; color: var(--ink-soft); }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cols { grid-template-columns: 1fr; } }

/* ---------- Galeria szablonów ---------- */
.gallery-band { background: var(--paper-deep); }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.gallery-head .section-head { margin-bottom: 0; }
.gallery-filter { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 8px; background: var(--paper-raised); border: 1px solid var(--line); }
.gallery-filter button { font-size: .85rem; font-weight: 500; padding: 6px 12px; border-radius: 6px; border: none; background: transparent; color: var(--ink-soft); cursor: pointer; }
.gallery-filter button:hover { color: var(--ink); }
.gallery-filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; } }
.gallery.is-short .g-card:nth-child(n+9) { display: none; }
.g-card { text-decoration: none; color: var(--ink); display: block; }
.g-th { position: relative; aspect-ratio: 210 / 297; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease; }
.g-sheet { position: absolute; left: 0; top: 0; width: 794px; pointer-events: none; }
.g-th > .g-sheet, .hero-frame > .cv, .g-sheet > .cv { transform-origin: 0 0; }
.g-card:hover .g-th, .g-card:focus-visible .g-th { box-shadow: 0 0 0 2px var(--accent), var(--shadow-md); transform: translateY(-2px); }
.g-name { display: flex; flex-wrap: wrap; column-gap: 6px; justify-content: space-between; align-items: center; margin-top: 12px; font-weight: 550; font-size: .92rem; }
.g-name small { color: var(--accent); font-size: .8rem; font-weight: 500; opacity: 0; transition: opacity .15s ease; }
.g-card:hover .g-name small, .g-card:focus-visible .g-name small { opacity: 1; }
.g-th > .pro-badge { position: absolute; top: 10px; right: 10px; z-index: 2; }
.g-name .pro-badge, .wz-top h1 .pro-badge { vertical-align: middle; margin-left: 6px; }
.g-name .pro-badge { height: 17px; font-size: .58rem; padding: 0 6px; }
.more-link { display: inline-block; margin-top: 28px; }

/* ---------- Plany (strona główna) ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-raised); }
.tier { padding: 28px 26px 26px; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.tier:first-child { border-left: none; }
.tier h3 { font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
.tier .tier-price { margin: 12px 0 2px; font-size: 2rem; font-weight: 650; letter-spacing: -.03em; color: var(--ink); max-width: none; }
.tier .tier-price small { font-size: .9rem; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }
.tier .tier-note { font-size: .86rem; color: var(--ink-faint); margin: 0 0 20px; }
.tier ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1 1 auto; }
.tier li { padding: 8px 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-soft); }
.tier li:last-child { border-bottom: 1px solid var(--line); }
.tier .btn { align-self: flex-start; }
.tier.is-pro { background: linear-gradient(180deg, var(--accent-soft), var(--paper-raised) 38%); }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } .tier { border-left: none; border-top: 1px solid var(--line); } .tier:first-child { border-top: none; } }

/* ---------- Wzory i FAQ ---------- */
.wzory-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .wzory-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .wzory-links { grid-template-columns: 1fr; } }
.wzory-links li { border-bottom: 1px solid var(--line); }
.wzory-links a { display: flex; justify-content: space-between; padding: 13px 0; text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; }
.wzory-links a::after { content: "→"; color: var(--ink-faint); transition: transform .12s ease, color .12s ease; }
.wzory-links a:hover { color: var(--accent); }
.wzory-links a:hover::after { color: var(--accent); transform: translateX(3px); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; max-width: var(--max); margin: 0 auto; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 0; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 550; position: relative; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.6px solid var(--ink-faint); border-bottom: 1.6px solid var(--ink-faint); transform: rotate(45deg); transition: transform .18s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: -4px 0 20px; font-size: .95rem; }

/* ---------- Pas CTA ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 18ch; margin: 0 auto; text-wrap: balance; }
.cta-band p { margin: 16px auto 0; }
.cta-band .btn { margin-top: 28px; }

/* ---------- Stopka ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 28px 40px; background: var(--paper); }
.foot { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot p { font-size: .86rem; margin-top: 12px; max-width: 32ch; }
.foot h4 { margin: 0 0 12px; font-size: .8rem; font-weight: 600; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink-soft); text-decoration: none; font-size: .88rem; }
.foot a:hover { color: var(--ink); }
.foot-base { max-width: var(--max); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-faint); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } footer { padding: 40px 18px 28px; } }

/* ---------- Wzory CV (strony zawodów) ---------- */
.wz > section { padding: 56px 28px; }
.wz-top { max-width: var(--max); margin: 0 auto; padding: 48px 28px 36px; }
.wz-top h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 22ch; margin: 12px 0 16px; text-wrap: balance; }
.wz-top .lead { font-size: 1.06rem; max-width: 64ch; }
.wz-top .cta-row, .cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.wz-note { font-size: .84rem; color: var(--ink-faint); margin-top: 12px; }
.crumbs { font-size: .84rem; color: var(--ink-faint); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 6px; }
.wz-grid { max-width: var(--max); margin: 0 auto; padding: 0 28px 24px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .wz-grid { grid-template-columns: 1fr; } }
.wz-cv { margin: 0; position: sticky; top: 84px; }
@media (max-width: 900px) { .wz-cv { position: static; } }
.wz-sheet { position: relative; aspect-ratio: 210 / 297; overflow: hidden; background: #fff; border-radius: 6px; box-shadow: 0 0 0 1px var(--line), var(--shadow-md); }
.wz-sheet > .cv { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.wz-cv figcaption { font-size: .82rem; color: var(--ink-faint); margin-top: 12px; }
.wz-box { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; margin-bottom: 16px; }
.wz-box h2 { font-size: 1.2rem; margin-bottom: 12px; }
.wz-box p { font-size: .92rem; }
.wz-tips, .wz-bullets { margin: 0; padding-left: 1.1em; }
.wz-tips li, .wz-bullets li { margin: 8px 0; font-size: .94rem; color: var(--ink-soft); line-height: 1.55; }
.wz-tips li::marker { color: var(--ok); }
.wz-bullets li::marker { color: var(--accent); }
.wz-bullets mark { background: var(--accent-soft); color: inherit; padding: 0 2px; border-radius: 2px; }
.wz-faq, .wz-more { max-width: calc(var(--max) + 56px); margin: 0 auto; }
.wz-faq h2, .wz-more h2 { font-size: 1.6rem; margin-bottom: 18px; }
.wz-gallery { max-width: var(--max); margin: 36px auto 64px; padding: 0 28px; }
.wz-h2 { font-size: 1.45rem; margin: 0 0 6px; }
.wz-sub { margin: 0 0 20px; font-size: .95rem; }
.lead { font-size: 1.06rem; }

/* ---------- Strony szablonów ---------- */
.tpl-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tpl-facts li { display: grid; grid-template-columns: 116px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-soft); }
.tpl-facts li:first-child { border-top: none; }
.tpl-facts b { color: var(--ink); font-weight: 550; }
.tpl-best { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-best li { font-size: .84rem; padding: 3px 10px; border-radius: 6px; background: var(--paper-deep); border: 1px solid var(--line); color: var(--ink-soft); }
.tpl-colors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tpl-color .g-th { box-shadow: 0 0 0 1px var(--line); }

.check-list { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 0; }
.check-list li { position: relative; padding: 8px 0 8px 24px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-soft); }
.check-list li:last-child { border-bottom: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 10px; height: 5px; border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(-45deg); }

/* ---------- Cennik ---------- */
.pricing-top { text-align: center; }
.pricing-top h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-left: auto; margin-right: auto; letter-spacing: -.035em; }
.pricing-top .lead { margin-left: auto; margin-right: auto; }
.price-grid { max-width: var(--max); margin: 8px auto 0; padding: 0 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.price-grid > .price-card { border-radius: 0; border-left-width: 0; }
.price-grid > .price-card:first-child { border-left-width: 1px; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.price-grid > .price-card:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
@media (max-width: 1080px) {
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .price-grid > .price-card, .price-grid > .price-card:first-child, .price-grid > .price-card:last-child { border-radius: var(--radius-lg); border-left-width: 1px; }
}
@media (max-width: 620px) { .price-grid { grid-template-columns: 1fr; padding: 0 16px; } }
.price-card { position: relative; display: flex; flex-direction: column; padding: 26px 24px; border-radius: var(--radius-lg); background: var(--paper-raised); border: 1px solid var(--line); }
.price-card h2 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price { font-size: 2.4rem; font-weight: 650; letter-spacing: -.035em; color: var(--ink); margin: 14px 0 0; font-variant-numeric: tabular-nums; }
.price-note { font-size: .85rem; color: var(--ink-faint); margin: 2px 0 0; }
.price-card .check-list { flex: 1 1 auto; }
.price-card .btn { align-self: stretch; }
.price-card .btn[disabled] { opacity: .55; cursor: default; }
.price-card.is-featured { background: linear-gradient(180deg, var(--accent-soft), var(--paper-raised) 45%); z-index: 1; box-shadow: 0 0 0 1px var(--accent); }
.price-card.is-chosen { box-shadow: 0 0 0 2px var(--accent), var(--shadow-md); z-index: 2; }
.price-card.is-chosen::after { content: "Wybrany plan"; position: absolute; top: -11px; left: 22px; padding: 2px 8px; border-radius: 5px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 600; }
.buy-box { max-width: 760px; margin: 24px auto 0; padding: 14px 18px; border-radius: var(--radius-lg); background: var(--paper-deep); border: 1px solid var(--line); }
.buy-box.is-attention { border-color: var(--gold); background: var(--gold-soft); }
.buy-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); }
.buy-consent input { margin-top: .3em; accent-color: var(--accent); }
.buy-msg { margin: 8px 0 0; font-size: .9rem; color: var(--ink); max-width: none; }
.buy-msg:empty { display: none; }
.buy-soon { max-width: 760px; margin: 24px auto 0; padding: 12px 16px; border-radius: var(--radius-lg); background: var(--paper-deep); border: 1px solid var(--line); text-align: center; }

/* ---------- Konto i logowanie ---------- */
.acc-page .wz-top { padding-bottom: 20px; }
.acc-wrap { max-width: 920px; margin: 0 auto; padding: 0 28px 88px; }
#acc { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
#acc:has(.acc-card) { grid-template-columns: 1fr; max-width: 760px; gap: 16px; }
@media (max-width: 820px) { #acc { grid-template-columns: 1fr; } .acc-wrap { padding: 0 16px 64px; } }
#acc-msg { margin: 0 0 16px; font-weight: 500; color: var(--ok); }
#acc-msg:empty { display: none; }
#acc-msg.is-error { color: var(--danger); }
.acc-login { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-md); }
.acc-why h3 { font-size: .8rem; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; margin: 8px 0 14px; }
.acc-why ul { list-style: none; margin: 0; padding: 0; }
.acc-why li { padding: 14px 0; border-top: 1px solid var(--line); }
.acc-why b { display: block; font-size: .94rem; font-weight: 600; }
.acc-why span { display: block; margin-top: 3px; font-size: .88rem; color: var(--ink-soft); }
.acc-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.acc-card h3 { font-size: 1rem; margin-bottom: 8px; }
.acc-card p { font-size: .92rem; }
.acc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.acc-head h2 { font-size: 1.15rem; letter-spacing: -.015em; word-break: break-all; }
.acc-head p { margin: 2px 0 0; font-size: .86rem; color: var(--ink-faint); }
.acc-avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 650; font-size: 1.1rem; }
.acc-facts { margin: 0 0 22px; border-top: 1px solid var(--line); }
.acc-facts > div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.acc-facts dt { color: var(--ink-faint); }
.acc-facts dd { margin: 0; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .acc-facts > div { grid-template-columns: 1fr; gap: 2px; } }
.acc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-quiet { background: var(--paper-deep); }
.acc-warn { padding: 10px 12px; border-radius: 8px; background: var(--gold-soft); color: var(--ink); font-size: .9rem; }
.acc-wait { color: var(--ink-soft); }

/* ---------- Regulamin i prywatność ---------- */
.legal-body { max-width: 720px; margin: 0 auto; padding: 0 28px 88px; }
.legal-body h2 { font-size: 1.12rem; margin: 32px 0 8px; }
.legal-body p { max-width: none; }
.legal-draft { display: inline-block; padding: 6px 10px; border-radius: 6px; background: var(--gold-soft); color: var(--ink); font-size: .86rem; }

/* ---------- Znak marki ---------- */
.logo-mark { width: 26px; height: 26px; }
@media (max-width: 640px) { .gallery-filter { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; } .gallery-filter button { flex: none; } }
.price-card .check-list { align-content: start; }

.tiers:has(> .tier[hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .tiers:has(> .tier[hidden]) { grid-template-columns: 1fr; } }

/* ---------- Poradniki ---------- */
.art-page .wz-top { max-width: calc(760px + 56px) !important; padding-bottom: 20px; }
.art-page .wz-top h1 { max-width: 24ch; }
.art-meta { margin: 0 0 18px; font-size: .86rem; color: var(--ink-faint); }
.art-meta span { margin: 0 6px; }
.art-top .lead { font-size: 1.12rem; line-height: 1.6; color: var(--ink); max-width: none; }
.art { max-width: calc(760px + 56px); margin: 0 auto; padding: 0 28px 56px; font-size: 1.02rem; line-height: 1.7; }
.art p, .art li { max-width: none; color: var(--ink-soft); }
.art b { color: var(--ink); font-weight: 600; }
.art h2 { font-size: 1.42rem; line-height: 1.25; margin: 44px 0 12px; color: var(--ink); text-wrap: balance; }
.art h3 { font-size: 1.08rem; margin: 26px 0 6px; color: var(--ink); }
.art ul, .art ol { padding-left: 1.2em; margin: 10px 0 16px; }
.art li { margin: 6px 0; }
.art li::marker { color: var(--ink-faint); }
.art a:not(.btn) { color: var(--accent); text-underline-offset: 2px; }
.art code { font-family: var(--mono); font-size: .88em; background: var(--paper-deep); padding: 1px 5px; border-radius: 4px; color: var(--ink); }
.art-sum { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 24px 14px; margin: 8px 0 12px; }
.art-sum h2 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; color: var(--ink-faint); }
.art-sum ul { margin: 0; padding-left: 1.1em; }
.art-sum li { font-size: .96rem; line-height: 1.55; color: var(--ink); }
.art-sum li::marker { color: var(--accent); }
.art-ex { border: 1px solid var(--line); border-radius: var(--radius); margin: 14px 0 20px; overflow: hidden; }
.art-ex p { margin: 0; padding: 12px 16px 12px 40px; position: relative; font-size: .96rem; line-height: 1.55; }
.art-ex p + p { border-top: 1px solid var(--line); }
.art-ex p::before { position: absolute; left: 15px; top: 12px; font-weight: 700; }
.art-ex .bad { background: var(--danger-soft); }
.art-ex .bad::before { content: "✕"; color: var(--danger); }
.art-ex .good { background: var(--ok-soft); color: var(--ink); }
.art-ex .good::before { content: "✓"; color: var(--ok); }
.art-quote { border-left: 3px solid var(--accent); background: var(--paper-raised); padding: 12px 18px; margin: 12px 0 18px; border-radius: 0 var(--radius) var(--radius) 0; }
.art-quote p { margin: 0; color: var(--ink); font-size: .97rem; }
.art-letter { font-family: var(--serif); background: var(--paper-raised); border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: var(--radius); padding: 28px 32px; margin: 14px 0 6px; }
.art-letter p { color: var(--ink); font-size: 1rem; line-height: 1.65; margin: 0 0 12px; }
.art-letter p:last-child { margin: 0; }
.art-check { list-style: none; padding-left: 0 !important; }
.art-check li { position: relative; padding-left: 28px; }
.art-check li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 14px; border: 1.6px solid var(--ok); border-radius: 4px; }
.art-check li::after { content: ""; position: absolute; left: 7px; top: .56em; width: 4px; height: 8px; border: solid var(--ok); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.art-note { font-size: .86rem !important; color: var(--ink-faint) !important; }
.art-cta { margin: 48px 0 0; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--accent-soft); border: 1px solid var(--line); }
.art-cta h2 { margin: 0 0 6px; font-size: 1.25rem; }
.art-cta p { margin: 0 0 16px; color: var(--ink); }
.art-more { max-width: calc(760px + 56px) !important; padding: 0 28px 72px; }
.art-more h2 { font-size: 1.3rem; }
.art-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.art-list li { border-bottom: 1px solid var(--line); }
.art-list a { display: grid; gap: 4px; padding: 18px 0; text-decoration: none; }
.art-list b { color: var(--ink); font-size: 1.06rem; font-weight: 600; }
.art-list span { color: var(--ink-soft); font-size: .93rem; line-height: 1.5; }
.art-list small { color: var(--ink-faint); font-size: .82rem; }
.art-list a:hover b { color: var(--accent); }
.art-index { max-width: calc(760px + 56px); margin: 0 auto; padding: 8px 28px 72px; }
@media (max-width: 560px) {
  .art { font-size: 1rem; padding: 0 16px 44px; }
  .art-page .wz-top, .art-more, .art-index { padding-left: 16px; padding-right: 16px; }
  .art-letter { padding: 20px 18px; }
  .art-cta { padding: 22px 18px; }
}
