/* =========================================================
   sprawdz-sie.pl – jasny, przestronny układ sekcji
   ========================================================= */

:root {
  --white: #FFFFFF;
  --tint: #F6F7F5;          /* tło co drugiej sekcji */
  --surface: #F2F3F0;       /* pola formularzy, podglądy */
  --border: #E6E8E4;

  --green: #135C43;         /* kolor główny */
  --green-hover: #0E4A35;
  --green-soft: #E8F2EC;
  --mint: #CFE6D6;

  --ink: #14211C;           /* tekst i ciemne tła */
  --text-2: #46504B;
  --muted: #6F7772;

  --premium-bg: #FBF1DE;
  --premium-fg: #8A5A00;
  --danger: #B3261E;

  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 28, .05);
  --shadow: 0 1px 2px rgba(20, 33, 28, .04), 0 8px 24px rgba(20, 33, 28, .07);
  --wrap: 1180px;
  --section-y: 96px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--green); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); }

.container { width: 100%; max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: #FFF; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

[hidden] { display: none !important; }

/* ---------- Sekcje ---------- */
.section { padding: var(--section-y) 0; }
.section--tint { background: var(--tint); }
.section--tight { padding: 56px 0; }

.section-head {
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px;
}
.section-title { margin: 0; font-weight: 800; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -0.6px; }
.section-lead { margin: 8px 0 0; font-size: 17px; color: var(--muted); }

.eyebrow {
  display: inline-block; margin-bottom: 20px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--green-soft); color: var(--green);
  font-size: 14px; font-weight: 600;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--surface); color: var(--ink);
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--green); color: #FFF; }
.btn--primary:hover { background: var(--green-hover); color: #FFF; }
.btn--light { background: #FFF; border-color: var(--border); color: var(--ink); }
.btn--light:hover { border-color: var(--green); color: var(--green); }
.btn--mint { background: var(--mint); color: var(--ink); }
.btn--mint:hover { background: #BBDCC6; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--surface); }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.btn--sm { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }

/* ---------- Pola ---------- */
.field-input {
  font: inherit; font-size: 16px; color: var(--ink);
  background: #FFF; border: 1px solid #D6DAD5; border-radius: var(--radius-sm);
  padding: 12px 16px; min-height: 52px; min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
.field-input::placeholder { color: #8E9590; }
.field-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
select.field-input {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2314211C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}

/* ---------- Plakietki ---------- */
.badge {
  display: inline-flex; align-items: center; flex: none;
  padding: 3px 9px; border-radius: 6px;
  font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.badge--free { background: var(--green-soft); color: var(--green); }
.badge--premium { background: var(--premium-bg); color: var(--premium-fg); }

.pill {
  align-self: flex-start; display: inline-block;
  background: rgba(255,255,255,.85); color: var(--ink); border-radius: 6px;
  padding: 3px 9px; font-size: 13px; font-weight: 600;
}

.tag {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: #FFF; border: 1px solid var(--border); color: var(--text-2);
  font-weight: 500; font-size: 14px; line-height: 1.4; text-decoration: none;
  transition: border-color .15s, color .15s;
}
.tag:hover { border-color: var(--green); color: var(--green); }
.tag[aria-current="true"] { background: var(--green); border-color: var(--green); color: #FFF; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: var(--green); color: #FFF;
  display: inline-flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 19px; height: 19px; }
.logo__text { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.4px; line-height: 1; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; min-height: 72px; }
.site-header__menu { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.main-nav a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green); }
.header-actions { display: flex; gap: 6px; align-items: center; }
.header-actions form { margin: 0; }
.header-actions__user { font-weight: 600; font-size: 15px; padding: 0 8px; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-header__inner { min-height: 64px; }
  .site-header__menu {
    flex: 1 1 100%; flex-direction: column; align-items: stretch;
    padding: 8px 0 16px; border-top: 1px solid var(--border);
  }
  .js .site-header:not(.is-open) .site-header__menu { display: none; }
  .main-nav { flex-direction: column; gap: 0; }
  .main-nav a { padding: 12px 0; font-size: 17px; }
  .header-actions { padding-top: 8px; }
  .header-actions .btn { flex: 1 1 0; }
}

/* ---------- Komunikat ---------- */
.flash {
  margin-top: 16px; padding: 14px 20px; border-radius: var(--radius);
  background: var(--green-soft); color: var(--green); font-weight: 600; text-align: center;
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 104px; }
.hero__inner { display: grid; gap: 56px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .hero__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; } }

.hero__title {
  margin: 0; max-width: 620px;
  font-weight: 800; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -1px;
}
.hero__lead { margin: 18px 0 0; max-width: 540px; font-size: 18px; line-height: 1.65; color: var(--text-2); }

.search { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; max-width: 640px; }
.search__input { flex: 999 1 260px; }
.search__select { flex: 1 1 150px; }
.search .btn { flex: 0 0 auto; }

.popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; max-width: 640px; }
.popular__label { font-size: 14px; color: var(--muted); margin-right: 4px; }

/* ilustracja: karta pracy + klucz odpowiedzi (bez treści zadań) */
.hero__visual { position: relative; width: 100%; max-width: 440px; height: 430px; justify-self: center; }
.doc {
  position: absolute; background: #FFF; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 2px 4px rgba(20,33,28,.04), 0 24px 48px rgba(20,33,28,.10);
  padding: 24px;
}
.doc--front { left: 0; top: 104px; width: 74%; height: 290px; transform: rotate(-3deg); z-index: 2; }
.doc--back { right: 0; top: 0; width: 64%; height: 260px; transform: rotate(4deg); background: #FBFCFB; }
.doc__head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.doc__head span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.doc__head strong { font-family: var(--font-display); font-size: 16px; }
.doc__head small { font-size: 13px; color: var(--muted); }
.doc__icon {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-soft); color: var(--green);
}
.doc__icon svg { width: 22px; height: 22px; }
.doc__icon--key { background: none; }
.doc__icon--key .logo-mark { width: 40px; height: 40px; border-radius: 10px; }
.doc__lines { display: flex; flex-direction: column; gap: 16px; }
.doc__lines i { display: block; height: 10px; border-radius: 6px; background: var(--surface); }
.doc__lines i:first-child { height: 12px; background: #E3E6E2; }
.doc__checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.doc__checks li { display: flex; align-items: center; gap: 12px; }
.doc__checks i {
  width: 20px; height: 20px; border-radius: 6px; flex: none; background: var(--green-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23135C43' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E");
  background-size: 14px; background-repeat: no-repeat; background-position: center;
}
.doc__checks b { display: block; height: 10px; width: 70%; border-radius: 6px; background: var(--surface); }
.hero-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  background: #FFF; border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow);
  padding: 9px 16px; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.hero-chip svg { width: 18px; height: 18px; color: var(--green); }
.hero-chip--grades { right: 2%; top: 300px; background: var(--green); border-color: var(--green); color: #FFF; }
.hero-chip--print { left: 10%; bottom: 0; }

/* ---------- Klasy: etapy edukacji ---------- */
.stage-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: start; }
.stage { background: #FFF; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 24px 12px; }
.stage__title { margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); }
.stage__list { list-style: none; margin: 0; padding: 0; }
.stage__list li + li { border-top: 1px solid var(--border); }
.stage__link {
  display: flex; align-items: center; gap: 14px; padding: 12px 0;
  color: var(--ink); text-decoration: none;
}
.stage__num {
  width: 36px; height: 36px; flex: none; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green-soft); color: var(--green);
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  transition: background-color .15s, color .15s;
}
.stage__name { flex: 1 1 auto; font-weight: 600; font-size: 16px; }
.stage__count { font-size: 14px; color: var(--muted); white-space: nowrap; }
.stage__arrow { width: 18px; height: 18px; flex: none; color: #B4BAB5; transition: transform .15s, color .15s; }
.stage__link:hover .stage__num { background: var(--green); color: #FFF; }
.stage__link:hover .stage__name { color: var(--green); }
.stage__link:hover .stage__arrow { color: var(--green); transform: translateX(3px); }
.stage--soon { background: transparent; border-style: dashed; border-color: #CDD1CC; padding-bottom: 24px; }
.stage__soon { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Przedmioty ---------- */
.subject-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px 32px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.subject {
  display: flex; align-items: center; gap: 16px; padding: 12px; margin: 0 -12px;
  border-radius: var(--radius); color: var(--ink); text-decoration: none;
  transition: background-color .15s;
}
.subject:hover { background: var(--tint); }
.subject__icon {
  width: 52px; height: 52px; flex: none; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--tint);
  background: color-mix(in srgb, var(--c, var(--green)) 12%, #FFF);
  color: var(--c, var(--green));
  font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.3px;
}
.subject__text { display: flex; flex-direction: column; min-width: 0; }
.subject__name { font-weight: 600; font-size: 16px; line-height: 1.35; }
.subject:hover .subject__name { color: var(--green); }
.subject__range { font-size: 14px; color: var(--muted); }

/* ---------- Kafelek karty pracy ---------- */
.sheet-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.sheet-card {
  display: flex; flex-direction: column; gap: 12px;
  background: #FFF; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px;
  transition: border-color .15s, box-shadow .15s;
}
.sheet-card:hover { box-shadow: var(--shadow); }
.sheet-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-card__context { font-size: 13px; color: var(--muted); }
.sheet-card__title { margin: 0; font-weight: 700; font-size: 17px; line-height: 1.35; }
.sheet-card__title a { color: var(--ink); text-decoration: none; }
.sheet-card__title a:hover { color: var(--green); }
.sheet-card__preview {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--tint); border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 14px; line-height: 1.55; color: var(--text-2); text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.sheet-card__preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.sheet-card__meta { font-size: 13px; color: var(--muted); }

/* ---------- Zestawy ---------- */
.bundle-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.bundle-card {
  display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 24px;
  background: var(--bundle-color, var(--tint)); border-radius: var(--radius-lg);
  color: var(--ink); text-decoration: none; transition: transform .15s;
}
.bundle-card:hover { transform: translateY(-3px); }
.bundle-card__name { margin-top: 8px; font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.25; letter-spacing: -0.3px; }
.bundle-card__text { font-size: 15px; line-height: 1.55; color: var(--text-2); }
.bundle-card__more { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: 15px; color: var(--green); }

/* ---------- Dla kogo ---------- */
.audience-grid { display: grid; gap: 40px 48px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.audience__num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--green); }
.audience__title { margin: 10px 0 8px; font-weight: 800; font-size: 20px; letter-spacing: -0.3px; }
.audience__text { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-2); }

.signup {
  margin-top: 64px; padding: 24px 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  background: var(--green-soft); border-radius: var(--radius-lg);
}
.signup__title { display: block; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.signup__text { color: var(--muted); font-size: 15px; }

/* ---------- Newsletter ---------- */
.newsletter {
  display: grid; gap: 24px 48px; align-items: center; grid-template-columns: minmax(0, 1fr);
  background: var(--ink); color: #FFF; border-radius: 24px; padding: 48px;
}
@media (min-width: 980px) { .newsletter { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.newsletter__title { margin: 0; color: #FFF; font-weight: 800; font-size: 26px; letter-spacing: -0.5px; line-height: 1.2; }
.newsletter__lead { margin: 8px 0 0; font-size: 16px; color: rgba(255,255,255,.7); }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter__form input, .newsletter__form select {
  font: inherit; font-size: 15px; color: #FFF; min-height: 48px; min-width: 0;
  background-color: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm);
  padding: 11px 14px;
}
.newsletter__form input { flex: 999 1 220px; }
.newsletter__form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter__form select {
  flex: 1 1 140px; appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.newsletter__form select option { color: var(--ink); background: #FFF; }
.newsletter__form input:focus, .newsletter__form select:focus { outline: none; border-color: var(--mint); }
.newsletter__form .btn { min-height: 48px; }
.newsletter__ok { margin: 12px 0 0; color: var(--mint); font-weight: 600; font-size: 15px; }
.newsletter__error { margin: 12px 0 0; color: #FFB4AB; font-weight: 600; font-size: 15px; }

/* ---------- Stopka ---------- */
.site-footer { padding: 64px 0 32px; border-top: 1px solid var(--border); }
.site-footer__cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
@media (min-width: 980px) { .site-footer__cols { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; } }
.site-footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.site-footer__col > a:not(.logo) { color: var(--text-2); text-decoration: none; }
.site-footer__col > a:not(.logo):hover { color: var(--green); }
.site-footer__head { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.site-footer__hint { display: block; font-size: 13px; color: var(--muted); }
.site-footer__about { margin: 12px 0 0; max-width: 260px; color: var(--muted); font-size: 15px; }
.site-footer__bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between;
  font-size: 14px; color: var(--muted);
}

/* =========================================================
   Podstrony
   ========================================================= */
.page-head { padding: 56px 0 48px; border-bottom: 1px solid var(--border); }
.page-head__title { margin: 0; font-weight: 800; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; letter-spacing: -0.8px; }
.page-head__lead { margin: 10px 0 0; font-size: 17px; color: var(--muted); }
.page-head .search { margin-top: 28px; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); text-decoration: underline; }

.list-filters { margin-bottom: 28px; }

.empty { padding: 40px; border-radius: var(--radius-lg); background: #FFF; border: 1px dashed #D3D7D2; text-align: center; color: var(--text-2); }
.empty p { margin: 0; }
.empty p + p { margin-top: 6px; }
.empty strong { color: var(--ink); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; min-height: 42px; padding: 8px 12px; border-radius: var(--radius-sm);
  background: #FFF; border: 1px solid var(--border); color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none;
}
.pagination a:hover { border-color: var(--green); color: var(--green); }
.pagination [aria-current="page"] { background: var(--green); border-color: var(--green); color: #FFF; }
.pagination .is-disabled { opacity: .45; }
.pagination .is-gap { background: transparent; border-color: transparent; }

/* szczegóły karty pracy */
.worksheet-detail { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .worksheet-detail { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } }
.paper-wrap { background: var(--tint); border-radius: var(--radius-lg); padding: 32px; }
.paper {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: #FFF; border-radius: var(--radius); padding: 28px 28px 32px; min-height: 400px;
  box-shadow: 0 2px 4px rgba(20,33,28,.04), 0 16px 40px rgba(20,33,28,.08);
}
.paper__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); padding-right: 90px; }
.paper__subject { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--subject, var(--green)); }
.paper__title { font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.25; }
.paper__line { font-size: 17px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.paper__note { margin-top: auto; font-size: 13px; color: var(--muted); }
.paper .badge { position: absolute; top: 24px; right: 24px; }

.facts { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { background: var(--tint); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 500; }
.detail-text { margin: 0; font-size: 17px; line-height: 1.7; color: var(--text-2); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.detail-actions .btn { min-height: 50px; padding: 12px 22px; font-size: 16px; }
.detail-actions .btn:not(.btn--primary) { background: #FFF; border-color: #D3D7D2; }
.notice { margin-top: 32px; padding: 22px 24px; border-radius: var(--radius); background: var(--premium-bg); }
.notice__title { display: block; font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--premium-fg); }
.notice p { margin: 6px 0 0; color: var(--text-2); }

/* logowanie / rejestracja */
.auth-wrap { display: flex; justify-content: center; padding: 72px 24px 32px; background: var(--tint); }
.auth-box { width: 100%; max-width: 440px; background: #FFF; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.auth-box h1 { margin: 0 0 6px; font-weight: 800; font-size: 28px; letter-spacing: -0.6px; }
.auth-box__lead { margin: 0 0 28px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 14px; }
.field .field-input { min-height: 48px; }
.field--check { flex-direction: row; align-items: center; gap: 10px; }
.field--check input { width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.field--check label { font-weight: 500; }
.field-error { color: var(--danger); font-size: 14px; font-weight: 600; }
.auth-box .btn--block { margin-top: 8px; min-height: 50px; font-size: 16px; }
.auth-switch { margin-top: 20px; font-size: 15px; text-align: center; color: var(--muted); }

/* ---------- Telefon ---------- */
@media (max-width: 720px) {
  :root { --section-y: 64px; }
  .container { padding: 0 20px; }
  .hero { padding: 48px 0 64px; }
  .hero__lead { font-size: 17px; }
  .search .btn { flex: 1 1 100%; }
  .hero__visual { display: none; }
  .subject-grid { gap: 0; }
  .section-head { margin-bottom: 28px; }
  .newsletter { padding: 32px 24px; }
  .newsletter__form .btn { flex: 1 1 100%; }
  .paper-wrap { padding: 16px; }
  .auth-wrap { padding: 40px 16px 24px; }
  .auth-box { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
