/* ==========================================================================
   BH Legal — arkusz stylów
   Paleta czarno-złota (zgodna z przyszłym logotypem). Kontrasty ≥ 4,5:1 (WCAG AA).
   Tryb wysokiego kontrastu i skalowanie pisma sterowane atrybutami na <html>.
   ========================================================================== */

:root {
  --ink: #0f0f10;
  --ink-2: #17171a;
  --ink-3: #232328;
  --gold: #c9a24a;        /* złoto na ciemnym tle (kontrast 8:1 na --ink) */
  --gold-2: #e3c877;      /* jaśniejsze złoto — akcenty na ciemnym */
  --gold-text: #7f611a;   /* złoto na jasnym tle (kontrast 5,5:1 na --paper) */
  --paper: #faf8f3;
  --paper-2: #f2eee5;
  --white: #ffffff;
  --text: #1e1e22;
  --text-on-dark: #f4f1ea;
  --muted: #55555d;
  --muted-on-dark: #b9b5ab;
  --line: #e3ded3;
  --line-dark: rgba(255, 255, 255, .13);
  --shadow: 0 10px 30px rgba(20, 16, 4, .08);
  --radius: 4px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 9vw, 112px);
}

html[data-fontsize="2"] { font-size: 112.5%; }
html[data-fontsize="3"] { font-size: 125%; }

/* Wysoki kontrast: czerń / biel / żółć (standard stosowany na polskich stronach dostępnych) */
html[data-contrast="high"] {
  --ink: #000; --ink-2: #000; --ink-3: #000;
  --gold: #ffd400; --gold-2: #ffd400; --gold-text: #ffd400;
  --paper: #000; --paper-2: #000; --white: #000;
  --text: #fff; --text-on-dark: #fff; --muted: #fff; --muted-on-dark: #fff;
  --line: #fff; --line-dark: #fff; --shadow: none;
}
html[data-contrast="high"] .card,
html[data-contrast="high"] .aside-card,
html[data-contrast="high"] .contact-card,
html[data-contrast="high"] .book,
html[data-contrast="high"] .notice,
html[data-contrast="high"] .edu-block { border: 2px solid #fff; }
html[data-contrast="high"] .hero__glow, html[data-contrast="high"] .cta-band::before { display: none; }

/* ---------- Reset / podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-text); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: inherit; letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; font-family: var(--sans); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
address { font-style: normal; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.site-header :focus-visible, .topbar :focus-visible, .footer :focus-visible, .section--dark :focus-visible, .hero :focus-visible, .cta-band :focus-visible { outline-color: var(--gold-2); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--gold); color: var(--ink); padding: .7rem 1.1rem; font-weight: 700; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85rem 1.6rem; border-radius: var(--radius); font: inherit; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: .6rem 1.15rem; font-size: .95rem; }
.btn--gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn--outline-light { color: var(--text-on-dark); border-color: rgba(255,255,255,.45); background: transparent; }
.btn--outline-light:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn--dark { background: var(--ink); color: var(--text-on-dark); border-color: var(--ink); }
.btn--dark:hover { background: var(--ink-3); }
.btn--outline { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--text-on-dark); }
html[data-contrast="high"] .btn--gold { background: #ffd400; color: #000; }
html[data-contrast="high"] .btn--outline, html[data-contrast="high"] .btn--dark { color: #fff; border-color: #fff; background: #000; }

/* ---------- Pasek górny (kontakt + dostępność) ---------- */
.topbar { background: var(--ink); color: var(--muted-on-dark); font-size: .9rem; border-bottom: 1px solid var(--line-dark); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.topbar__contact { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar__contact a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; padding: .35rem 0; }
.topbar__contact a:hover { color: var(--gold-2); }
.a11y-tools { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.a11y-tools__label { margin-right: .2rem; }
.a11y-btn {
  font: inherit; font-size: .85rem; font-weight: 700; color: var(--text-on-dark); background: transparent;
  border: 1px solid rgba(255,255,255,.3); border-radius: 3px; padding: .25rem .55rem; min-height: 30px; min-width: 34px; cursor: pointer;
  display: inline-flex; align-items: center; gap: .3em; line-height: 1;
}
.a11y-btn:hover { border-color: var(--gold-2); color: var(--gold-2); }
.a11y-btn[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
html[data-contrast="high"] .a11y-btn { border-color: #fff; }
@media (max-width: 640px) { .topbar__contact li:nth-child(2) { display: none; } .a11y-tools__label { display: none; } }

/* ---------- Nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--ink); color: var(--text-on-dark); box-shadow: 0 2px 0 rgba(201,162,74,.35); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }

/* Logo: PNG w ~5-krotnej rozdzielczości względem wyświetlanej — ostre także na ekranach Retina. */
.brand { display: inline-flex; align-items: center; gap: 1rem; color: var(--text-on-dark); text-decoration: none; padding-block: .5rem; }
.brand__logo { height: 56px; width: auto; flex: 0 0 auto; }
@media (max-width: 1180px) { .brand__sub { display: none !important; } .nav__link { padding-inline: .6rem; } }
.brand__sub { font-size: .72rem; line-height: 1.35; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-on-dark); padding-left: 1rem; border-left: 1px solid rgba(201,162,74,.5); }

.nav-toggle { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav__item { position: relative; }
.nav__link { display: inline-block; white-space: nowrap; padding: .6rem .8rem; color: var(--text-on-dark); text-decoration: none; font-weight: 600; font-size: 1rem; position: relative; }
.nav__link:not(.btn)::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav__link:not(.btn):hover::after, .nav__item.is-active > .nav__link:not(.btn)::after { transform: scaleX(1); }
.nav__item--cta { margin-left: .6rem; }
.nav__item--has-sub { display: flex; align-items: center; }
.nav__item--has-sub > .nav__link { padding-right: .3rem; }
.nav__sub-toggle { background: none; border: 0; color: var(--text-on-dark); padding: .5rem .5rem .5rem .2rem; cursor: pointer; display: inline-flex; border-radius: 3px; }
.nav__sub-toggle svg { transition: transform .2s; }
.nav__sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__sub {
  list-style: none; margin: 0; padding: .5rem 0; position: absolute; top: 100%; left: 0; min-width: 250px;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-top: 2px solid var(--gold); box-shadow: 0 16px 40px rgba(0,0,0,.35);
  display: none;
}
.nav__item--has-sub:hover .nav__sub, .nav .nav__item--has-sub .nav__sub.is-open { display: block; }
.nav__sub a { display: block; padding: .6rem 1.1rem; color: var(--text-on-dark); text-decoration: none; }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: rgba(201,162,74,.12); color: var(--gold-2); }
.nav__mobile-extra { display: none; }

@media (max-width: 960px) {
  .site-header__inner { min-height: 68px; }
  .brand__logo { height: 46px; }
  .brand__sub { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .6rem; background: transparent; color: var(--text-on-dark);
    border: 1px solid rgba(255,255,255,.3); border-radius: 3px; padding: .5rem .8rem; font: inherit; font-weight: 700; cursor: pointer;
  }
  .nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 20px; }
  .nav-toggle__bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink-2); border-top: 1px solid var(--line-dark); box-shadow: 0 20px 40px rgba(0,0,0,.4); max-height: calc(100vh - 68px); overflow: auto; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter); }
  .nav__item { border-bottom: 1px solid var(--line-dark); }
  .nav__item--has-sub { flex-wrap: wrap; }
  .nav__link { display: block; padding: .9rem .2rem; font-size: 1.1rem; }
  .nav__link:not(.btn)::after { display: none; }
  .nav__item.is-active > .nav__link:not(.btn) { color: var(--gold-2); }
  .nav__item--has-sub > .nav__link { flex: 1; }
  .nav__sub-toggle { padding: .8rem; }
  .nav__sub { position: static; display: none; min-width: 0; width: 100%; box-shadow: none; border: 0; background: transparent; padding: 0 0 .5rem .8rem; }
  .nav__item--has-sub:hover .nav__sub { display: none; }
  .nav .nav__item--has-sub .nav__sub.is-open { display: block; }
  .nav__sub a { padding: .6rem .5rem; }
  .nav__item--cta { margin: .9rem 0 .5rem; border: 0; }
  .nav__item--cta .btn { width: 100%; padding: .9rem; font-size: 1.05rem; }
  .nav__mobile-extra { display: flex; flex-direction: column; gap: .3rem; padding: .5rem var(--gutter) 1.2rem; color: var(--muted-on-dark); }
  .nav__mobile-extra a { color: inherit; }
}

/* ---------- Sekcje ---------- */
.section { padding-block: var(--section); }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--dark a:not(.btn) { color: var(--gold-2); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { margin-bottom: .4em; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold-2); }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--muted); max-width: 60ch; }
.section--dark .lede, .hero .lede, .page-hero .lede { color: var(--muted-on-dark); }
.section__foot { margin-top: clamp(28px, 4vw, 44px); display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Hero (strona główna) ---------- */
.hero { position: relative; background: var(--ink); color: var(--text-on-dark); overflow: hidden; }
.hero__glow { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(60% 55% at 78% 40%, rgba(201,162,74,.22), transparent 70%),
  radial-gradient(40% 40% at 10% 90%, rgba(201,162,74,.10), transparent 70%); }
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); margin-bottom: .6em; }
.hero h1 em { font-style: italic; color: var(--gold-2); font-weight: 500; }
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; margin: 1.8rem 0 2.2rem; }
.hero__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; color: var(--muted-on-dark); font-size: .95rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: .5em; }
.hero__facts svg { color: var(--gold); flex: 0 0 auto; }
.hero__media { position: relative; justify-self: center; width: min(100%, 420px); }
.portrait { position: relative; margin: 0; }
.portrait::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); z-index: 0; }
.portrait img { position: relative; z-index: 1; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: #8d8d8d; filter: saturate(.95); }
.portrait figcaption { position: absolute; z-index: 2; left: -18px; bottom: 34px; background: var(--paper); color: var(--text); padding: .9rem 1.1rem; border-left: 4px solid var(--gold); box-shadow: 0 14px 34px rgba(0,0,0,.35); max-width: 78%; }
.portrait figcaption strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.portrait figcaption span { display: block; font-size: .88rem; color: var(--muted); margin-top: .15rem; }
html[data-contrast="high"] .portrait figcaption { background: #000; color: #fff; border: 2px solid #fff; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { width: min(100%, 340px); justify-self: start; margin-top: .5rem; }
  .portrait::before { inset: 14px -14px -14px 14px; }
  .portrait figcaption { left: -8px; max-width: 90%; }
}

/* ---------- Nagłówek podstrony ---------- */
.page-hero { background: var(--ink); color: var(--text-on-dark); padding-block: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border: 1px solid rgba(201,162,74,.35); border-radius: 50%; pointer-events: none; }
.page-hero h1 { margin-bottom: .35em; max-width: 20ch; }
.page-hero .lede { margin-bottom: 0; }
.breadcrumb { margin: 0 0 1.4rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .9rem; color: var(--muted-on-dark); }
.breadcrumb li + li::before { content: "/"; margin-right: .3rem; opacity: .5; }
.breadcrumb a { color: inherit; }
.breadcrumb [aria-current="page"] { color: var(--gold-2); }

/* ---------- Karty ---------- */
.cards { display: grid; gap: clamp(18px, 2.5vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); list-style: none; margin: 0; padding: 0; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,16,4,.12); }
.card__icon { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-text); border-radius: 50%; margin-bottom: 1.2rem; }
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: 1.4rem; margin-bottom: .35em; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__tag { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.card__text { color: var(--muted); flex: 1; }
.card__link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--gold-text); text-decoration: none; margin-top: 1rem; }
.card__link svg { transition: transform .2s; }
.card:hover .card__link svg { transform: translateX(4px); }
.card--dark { background: var(--ink-2); border-color: var(--line-dark); color: var(--text-on-dark); }
.card--dark .card__text, .card--dark .card__tag { color: var(--muted-on-dark); }
.card--dark .card__link, .card--dark .card__icon { color: var(--gold-2); }

/* ---------- Listy ---------- */
.checklist { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .55rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 1.15em; height: 1.15em; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%230f0f10' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat;
}
.checklist--2col { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); column-gap: 2rem; }
.section--dark .checklist li::before { background-color: var(--gold); }

.badges { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0 0 1.5rem; padding: 0; }
.badge { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--gold); color: var(--gold-text); border-radius: 999px; font-size: .9rem; font-weight: 600; }
.section--dark .badge, .hero .badge { color: var(--gold-2); border-color: rgba(201,162,74,.6); }

/* ---------- Układ dwukolumnowy z panelem bocznym ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.split__main { max-width: 68ch; }
.split__main h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 2rem; }
.split__main h2:first-child { margin-top: 0; }
.aside-card { position: sticky; top: calc(78px + 24px); background: var(--ink); color: var(--text-on-dark); padding: clamp(24px, 3vw, 32px); border-top: 3px solid var(--gold); border-radius: var(--radius); }
.aside-card h2, .aside-card h3 { font-size: 1.35rem; color: var(--gold-2); margin-bottom: .6em; }
.aside-card p { color: var(--muted-on-dark); }
.aside-card .btn { width: 100%; margin-top: .5rem; }
.aside-card__photo { margin-bottom: 1.2rem; border-radius: 3px; }
.aside-card a:not(.btn) { color: var(--gold-2); }
.aside-card ul { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .5rem; }
.aside-card li { padding-left: 1.2rem; position: relative; }
.aside-card li::before { content: ""; position: absolute; left: 0; top: .8em; width: .55rem; height: 2px; background: var(--gold); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* ---------- Sekcja „O mnie" na stronie głównej ---------- */
.about { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.about__photo { position: relative; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--radius); }
.about__photo::after { content: ""; position: absolute; left: -14px; bottom: -14px; width: 60%; height: 40%; border: 2px solid var(--gold); z-index: -1; }
.about__creds { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: .6rem; }
.about__creds li { display: flex; gap: .75rem; align-items: flex-start; }
.about__creds svg { flex: 0 0 auto; margin-top: .25em; color: var(--gold-text); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about__photo { max-width: 320px; } }

/* ---------- Oś czasu / wykształcenie ---------- */
.timeline { list-style: none; margin: 0 0 2rem; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.4rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--paper); }
.timeline strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.timeline span { color: var(--muted); }
html[data-contrast="high"] .timeline li::before { border-color: #000; }

/* ---------- Oferta edukacyjna ---------- */
.edu-block { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); margin-bottom: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.edu-block h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.edu-block__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); }
.edu-block__sub { font-size: 1.15rem; color: var(--gold-text); font-family: var(--serif); font-weight: 500; font-style: italic; margin: -.3rem 0 1rem; }
@media (max-width: 760px) { .edu-block__grid { grid-template-columns: 1fr; } }

/* ---------- Publikacje / e-book ---------- */
.book { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 44px); box-shadow: var(--shadow); }
.book__okladka { display: block; }
.book__okladka img, .produkt__okladka img { width: 100%; height: auto; border-radius: 3px 8px 8px 3px; box-shadow: 10px 14px 34px rgba(0,0,0,.22); }
.book__status { display: inline-flex; align-items: center; gap: .5em; font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .8rem; }
.book__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.book__meta { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: .4rem; color: var(--muted); }
.book__meta strong { color: var(--text); }
.book__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
@media (max-width: 720px) { .book { grid-template-columns: 1fr; } .book__okladka { max-width: 240px; } }

/* ---------- Strona e-booka ---------- */
.produkt { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.produkt__okladka { margin: 0; }
.produkt__cena { display: flex; align-items: baseline; gap: .4rem .9rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.produkt__kwota { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; line-height: 1; }
.produkt__dopisek { color: var(--muted); }
@media (max-width: 860px) { .produkt { grid-template-columns: 1fr; } .produkt__okladka { max-width: 300px; } }

.produkt__tresc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .produkt__tresc { grid-template-columns: 1fr; } }
.rozdzialy { list-style: none; counter-reset: rozdzial; margin: 0; padding: 0; }
.rozdzialy li { counter-increment: rozdzial; display: grid; grid-template-columns: 2.8rem 1fr; column-gap: .5rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.rozdzialy li::before { content: counter(rozdzial, upper-roman) "."; grid-row: span 2; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--gold-text); }
.rozdzialy span { font-weight: 700; }
.rozdzialy small { color: var(--muted); font-size: .97rem; }

.probka { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.probka h3 { font-size: 1.3rem; }
.probka__lista { margin: 0 0 1rem; }
.probka__lista div { padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.probka__lista dt { font-weight: 700; }
.probka__lista dd { margin: 0; color: var(--muted); }
.probka__zdanie { font-style: italic; background: var(--paper-2); padding: .8rem 1rem; border-radius: var(--radius); }
.probka__zrodlo { font-size: .85rem; color: var(--muted); margin: 0; }

.kroki { list-style: none; counter-reset: krok; margin: 0 0 1.5rem; padding: 0; display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.kroki li { counter-increment: krok; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 3.4rem 1.3rem 1.3rem; box-shadow: var(--shadow); color: var(--muted); }
.kroki li::before { content: counter(krok); position: absolute; top: 1rem; left: 1.3rem; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 700; }
.kroki strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--text); margin-bottom: .3rem; }
.kroki--pion { grid-template-columns: 1fr; }
.kroki--pion li { padding: 1rem 1.2rem 1rem 4rem; }
.kroki--pion li::before { top: 1.05rem; left: 1.1rem; }

/* ---------- Formularz zamówienia ---------- */
.zamowienie { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .zamowienie { grid-template-columns: 1fr; } }
.formularz { position: relative; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.pole { margin-bottom: 1.15rem; }
.pole > label, .pola-faktury legend { display: block; font-weight: 700; margin-bottom: .35rem; }
.pole input[type="text"], .pole input[type="email"] { width: 100%; font: inherit; color: var(--text); background: var(--white); border: 1px solid #8f897d; border-radius: var(--radius); padding: .7rem .9rem; min-height: 48px; }
.pole input[type="text"]:focus-visible, .pole input[type="email"]:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--ink); }
.pole input[aria-invalid="true"] { border-color: #b3261e; border-width: 2px; }
.pole__opis { font-size: .92rem; color: var(--muted); margin: .35rem 0 0; }
.pole__blad { color: #b3261e; font-weight: 600; font-size: .95rem; margin: .35rem 0 0; }
.pole--checkbox { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); column-gap: .7rem; align-items: start; }
.pole--checkbox input { width: 1.25rem; height: 1.25rem; margin: .2rem 0 0; accent-color: var(--ink); cursor: pointer; }
.pole--checkbox label { font-weight: 400; margin: 0; cursor: pointer; }
.pole--checkbox .pole__blad { grid-column: 2; }
.pola-faktury { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem .1rem; margin: 0 0 1.15rem; }
.pola-faktury[hidden] { display: none; }
.pole-pulapka { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.formularz__blad { color: #b3261e; font-weight: 600; background: #fdecea; border-left: 4px solid #b3261e; padding: .8rem 1rem; margin: 0 0 1.2rem; }
.formularz .btn[type="submit"] { width: 100%; font-size: 1.05rem; padding: 1rem; }
.formularz .btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.formularz__dopisek { font-size: .92rem; color: var(--muted); text-align: center; margin: .8rem 0 0; }

.zamowienie__przelew { background: var(--ink); color: var(--text-on-dark); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.zamowienie__przelew h2, .zamowienie__przelew h3 { color: var(--gold-2); font-size: 1.35rem; }
.zamowienie__przelew p { color: var(--muted-on-dark); }
.zamowienie__przelew a { color: var(--gold-2); }
.przelew { margin: 0 0 1.2rem; }
.przelew dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); font-weight: 700; margin-top: 1rem; }
.przelew dt:first-child { margin-top: 0; }
.przelew dd { margin: .2rem 0 0; color: var(--text-on-dark); }
.przelew__konto, .przelew code, .nr-zamowienia strong { font-family: ui-monospace, Consolas, "Courier New", monospace; letter-spacing: .02em; }
.przelew__konto { font-size: 1.05rem; }
.przelew code { background: rgba(255,255,255,.1); padding: .1rem .35rem; border-radius: 3px; }
.kopiuj { font: inherit; font-size: .82rem; font-weight: 700; margin-left: .3rem; padding: .25rem .6rem; min-height: 32px; border-radius: 3px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: var(--text-on-dark); cursor: pointer; }
.kopiuj:hover { border-color: var(--gold-2); color: var(--gold-2); }
.nr-zamowienia { font-size: 1.15rem; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); padding: 1rem 1.2rem; }
.nr-zamowienia strong { font-size: 1.3rem; }

/* Strony generowane przez PHP (panel sprzedawcy, pobieranie, komunikaty) */
.komunikat { padding-block: clamp(8px, 2vw, 24px); }
.komunikat .stan { font-weight: 700; font-size: 1.15rem; }
.komunikat .stan--ok { color: #1e6b34; }
.notice--ok { border-left-color: #1e6b34; }
.notice--blad { border-left-color: #b3261e; }
.notice code { word-break: break-all; }

html[data-contrast="high"] .formularz, html[data-contrast="high"] .probka, html[data-contrast="high"] .kroki li, html[data-contrast="high"] .nr-zamowienia { border: 2px solid #fff; }
html[data-contrast="high"] .pole input[type="text"], html[data-contrast="high"] .pole input[type="email"] { background: #000; color: #fff; border-color: #fff; }
html[data-contrast="high"] .pole__blad, html[data-contrast="high"] .formularz__blad { color: #ffd400; background: #000; border-color: #ffd400; }
html[data-contrast="high"] .zamowienie__przelew { border: 2px solid #fff; }
html[data-contrast="high"] .kroki li::before { background: #ffd400; color: #000; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); }
.contact-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.2rem; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.contact-list .ico { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-text); }
.contact-list .lbl { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: .1rem; }
.contact-list a { font-size: 1.15rem; font-weight: 600; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Pasek CTA ---------- */
.cta-band { position: relative; background: var(--ink); color: var(--text-on-dark); padding-block: clamp(48px, 7vw, 88px); overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 100% 50%, rgba(201,162,74,.18), transparent 70%); pointer-events: none; }
.cta-band__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: center; }
.cta-band h2 { color: var(--gold-2); font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .4em; }
.cta-band p { color: var(--muted-on-dark); margin: 0; max-width: 55ch; }
.cta-band__actions { display: flex; gap: .9rem; flex-wrap: wrap; }
@media (max-width: 760px) { .cta-band__inner { grid-template-columns: 1fr; } }

/* ---------- Powiadomienia ---------- */
.notice { background: var(--paper-2); border-left: 4px solid var(--gold); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Teksty prawne ---------- */
.prose { max-width: 76ch; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-top: 2.4rem; padding-top: .2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.prose ol, .prose ul { margin-bottom: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: .98rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .65rem .8rem; border: 1px solid var(--line); }
.prose th { background: var(--paper-2); font-weight: 700; }
.prose .meta { color: var(--muted); font-size: .95rem; }
.toc { background: var(--paper-2); padding: 1.2rem 1.4rem; border-radius: var(--radius); margin: 0 0 2rem; }
.toc p { font-weight: 700; margin-bottom: .5rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { break-inside: avoid; margin-bottom: .25rem; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* ---------- Stopka ---------- */
.footer { background: var(--ink); color: var(--muted-on-dark); border-top: 3px solid var(--gold); }
.footer a { color: var(--text-on-dark); }
.footer a:hover { color: var(--gold-2); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); padding-block: clamp(40px, 5vw, 64px); }
.footer__brand { margin: 0 0 1.1rem; }
.footer__brand img { height: 72px; width: auto; }
.footer__company { color: var(--text-on-dark); font-weight: 600; margin-bottom: .6rem; }
.footer__address { line-height: 1.7; }
.footer__ids { font-size: .9rem; margin-top: .8rem; }
.footer__heading { font-family: var(--serif); font-size: 1.15rem; color: var(--gold-2); margin-bottom: .9rem; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__langs { font-size: .9rem; margin-top: 1.4rem; }
.footer__bottom { border-top: 1px solid var(--line-dark); font-size: .88rem; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.1rem; }
.footer__bottom p { margin: 0; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding-block: clamp(64px, 12vw, 140px); }
.error-page__code { font-family: var(--serif); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--gold); font-weight: 700; margin-bottom: .1em; }

/* ---------- Druk ---------- */
@media print {
  .topbar, .nav, .nav-toggle, .skip-link, .cta-band, .footer__credit, .hero__glow { display: none !important; }
  .site-header, .hero, .page-hero, .footer, .section--dark { background: #fff !important; color: #000 !important; box-shadow: none; }
  a { color: #000; }
  .card, .aside-card, .contact-card { box-shadow: none; border: 1px solid #999; }
}
