/* AllPass Training — styl strony (wersja jasna, pierwotna)
   Koncepcja: białe tło, grafitowe ramki jak tabliczki znamionowe maszyn,
   pomarańcz z logo na przyciskach i akcentach. */
:root {
  --graphite: #1C1C1C;
  --ink: #1C1C1C;
  --orange: #F4741B;
  --orange-ink: #B4500B;   /* pomarańcz do tekstu na białym (kontrast AA) */
  --white: #FFFFFF;
  --paper: #FFFFFF;
  --concrete: #ECEDEF;
  --page: #E6E7EA;       /* tło strony pod białym nagłówkiem */
  --page-alt: #DADCE0;   /* tło sekcji wyróżnionych */
  --steel: #5B636B;
  --line: #C7CBD0;
  --hair: #C7CBD0;
  --hair-dark: #3a3a3a;
  --mist: #B9BDC2;
  --plate: #F7F7F8;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--page);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.01em; overflow-wrap: break-word; hyphens: auto; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 650; }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
p { margin: 0; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: #3a3f44; max-width: 38em; }
.muted { color: var(--steel); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.5em;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none; border-radius: var(--radius);
  border: 2px solid var(--graphite); cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--graphite); }
.btn-primary:hover { background: #ff8a36; border-color: #ff8a36; }
.btn-ghost { background: transparent; color: var(--graphite); }
.btn-ghost:hover { background: var(--graphite); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.on-dark .btn-ghost { color: var(--white); border-color: var(--white); }
.on-dark .btn-ghost:hover { background: var(--white); color: var(--graphite); }

/* ---------- Nagłówek ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--white); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { flex: none; display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .98rem; padding: 10px 12px; border-radius: var(--radius); color: #2c3136; }
.nav a:hover { background: var(--concrete); }
.lang { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; flex: none; }
.lang a { text-decoration: none; font-size: .85rem; font-weight: 600; padding: 7px 10px; color: var(--steel); }
.lang a[aria-current="true"] { background: var(--graphite); color: var(--white); }
.lang a:not([aria-current="true"]):hover { background: var(--concrete); color: var(--graphite); }
.header-cta { flex: none; min-height: 44px; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 22px; height: 2px; background: var(--graphite); margin: 0 auto; position: relative; content: ""; }
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }

@media (max-width: 1060px) { .header-cta { display: none; } }
@media (max-width: 900px) {
  .header-row { height: 66px; gap: 12px; }
  .brand img { height: 38px; }
  .menu-toggle { display: block; order: 3; }
  .lang { order: 2; margin-left: auto; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; background: var(--white); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--concrete); border-radius: 0; font-size: 1.05rem; }
}

/* ---------- Otwarcie ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .95fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.hero-copy { padding-bottom: clamp(32px, 6vw, 80px); min-width: 0; }
.hero h1 { max-width: 13em; }
.hero .lead { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 22px; font-size: .95rem; color: var(--steel); max-width: 34em; }
.hero-ground { height: 18px; background: var(--graphite); }
/* Strona główna: nagłówek na całą szerokość, pod nim opis i ilustracja */
.hero-home { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); row-gap: 0; }
.hero-home .hero-title { grid-column: 1 / -1; max-width: 17em; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: clamp(8px, 2vw, 24px); }
.hero-home .hero-copy { align-self: center; padding-bottom: clamp(32px, 5vw, 64px); }
.hero-home .hero-copy .lead { margin-top: 0; }
@media (max-width: 860px) {
  .hero-grid, .hero-home { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero-home .hero-title { margin-bottom: 18px; }
}

.hero-art { align-self: end; min-width: 0; }
.hero-art svg { width: 100%; height: auto; }
@media (max-width: 860px) { .hero-art { max-width: 560px; } }
/* Jedna sekwencja przy wejściu: platforma podnośnika wjeżdża w górę */
.lift-rise { transform-origin: 50% 100%; animation: rise 1.4s cubic-bezier(.2,.7,.2,1) .3s both; }
@keyframes rise { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

/* ---------- Pasek faktów ---------- */
.facts { background: var(--page-alt); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 24px 28px 0; min-width: 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact strong { display: block; font-weight: 650; font-size: 1.02rem; }
.fact span { display: block; color: var(--steel); font-size: .95rem; margin-top: 4px; }
@media (max-width: 900px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact, .fact + .fact { padding: 20px 16px 20px 0; border-left: 0; }
  .fact:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .facts-grid { grid-template-columns: 1fr; }
  .fact:nth-child(even) { padding-left: 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* ---------- Sekcje ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { max-width: 46em; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head p { margin-top: 16px; }
.bg-concrete { background: var(--page-alt); }

/* ---------- Kursy: tabliczki znamionowe ---------- */
.plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plates { grid-template-columns: 1fr; } }
.plate { position: relative; display: flex; flex-direction: column; background: var(--plate); border: 2px solid var(--graphite); border-radius: 4px; }
.plate::before, .plate::after { content: ""; position: absolute; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: #9aa1a8; box-shadow: inset -1px -1px 0 rgba(0,0,0,.35); z-index: 2; }
.plate::before { left: 10px; }
.plate::after { right: 10px; }
.plate-head { display: flex; align-items: center; gap: 14px; padding: 22px 24px 18px; border-bottom: 2px solid var(--graphite); }
.plate-head svg { width: 92px; height: 72px; flex: none; }
.plate-head svg.duo { width: 130px; }
.plate-head h3 { font-size: 1.12rem; }
.plate h3 a { text-decoration: none; }
.plate h3 a:hover { color: var(--orange-ink); }
.plate-issuer { display: inline-block; margin-top: 6px; font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 3px; background: var(--graphite); color: var(--white); }
.plate-specs { margin: 0; padding: 4px 24px; flex: 1; }
.plate-specs div { display: grid; grid-template-columns: 7.2em 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px dashed #c3c8cd; font-size: .96rem; }
.plate-specs div:last-child { border-bottom: 0; }
.plate-specs dt { color: var(--steel); }
.plate-specs dd { margin: 0; }
.plate-foot { display: flex; flex-direction: column; gap: 16px; padding: 18px 24px 22px; background: var(--white); border-top: 2px solid var(--graphite); border-radius: 0 0 2px 2px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-size: .55em; font-weight: 600; }
.price-note { display: block; margin-top: 8px; font-size: .85rem; color: var(--steel); }
.plate-foot .btn { min-height: 46px; }
.plate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.plate-more { font-weight: 600; font-size: .95rem; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; text-decoration-thickness: 2px; padding-block: 12px; }

.plate.package { border-color: var(--orange); border-width: 3px; }
.plate.package .plate-head, .plate.package .plate-foot { border-color: var(--orange); }
.plate.package .plate-issuer { background: var(--orange); color: var(--graphite); }
.saving { display: inline-block; margin-top: 8px; font-size: .85rem; font-weight: 700; color: var(--orange-ink); }
.price-footnote { margin-top: 28px; font-size: .95rem; color: var(--steel); max-width: 52em; }

/* ---------- Przebieg kursu ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.step { position: relative; padding: 0 20px 0 0; }
.step-num { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--graphite); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; position: relative; z-index: 1; }
.step:last-child .step-num { background: var(--orange); color: var(--graphite); }
.step::before { content: ""; position: absolute; top: 23px; left: 48px; right: 0; height: 2px; background: var(--graphite); }
.step:last-child::before { display: none; }
.step h3 { margin-top: 18px; font-size: 1.02rem; }
.step p { margin-top: 8px; color: #3a3f44; font-size: .96rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step { padding: 0 0 0 68px; min-height: 48px; }
  .step-num { position: absolute; left: 0; top: 0; }
  .step::before { top: 48px; left: 23px; right: auto; width: 2px; height: calc(100% - 20px); }
  .step h3 { margin-top: 10px; }
}

/* ---------- Dla firm (ciemna) ---------- */
.dark { background: var(--graphite); color: var(--white); }
.dark .lead, .dark p { color: #d6d9dc; }
.dark h2, .dark h3 { color: var(--white); }
.biz-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); }
.biz-grid > * { min-width: 0; }
.biz-list { list-style: none; padding: 0; margin: 28px 0 32px; }
.biz-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid #3a3a3a; }
.biz-list li:last-child { border-bottom: 1px solid #3a3a3a; }
.biz-list svg { width: 22px; height: 22px; margin-top: 3px; color: var(--orange); }
.biz-list strong { color: var(--white); font-weight: 600; }
.langs h3 { margin-bottom: 8px; }
.lang-cards { display: grid; gap: 12px; margin-top: 24px; }
.lang-card { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid #444; border-radius: var(--radius); }
.lang-card .lang-code { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--orange); width: 2.6em; flex: none; }
.lang-card strong { display: block; color: var(--white); }
.lang-card span { color: #b9bdc2; font-size: .93rem; }
.interp { margin-top: 20px; padding: 18px 20px; background: #262626; border-left: 4px solid var(--orange); border-radius: 0 var(--radius) var(--radius) 0; font-size: .97rem; }
@media (max-width: 860px) { .biz-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 52em; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2.5px solid var(--graphite); border-bottom: 2.5px solid var(--graphite); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 0 24px; color: #3a3f44; max-width: 44em; }
.area { margin-top: 48px; max-width: 52em; padding: 24px 26px; border: 2px solid var(--graphite); border-radius: 4px; background: var(--plate); }
.area h3 { margin-bottom: 8px; }
.area p { color: #3a3f44; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-grid > * { min-width: 0; }
.form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--graphite); padding: 13px 14px; min-height: 50px; width: 100%; border: 1.5px solid #b9bfc5; border-radius: var(--radius); background: var(--white); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--graphite); box-shadow: 0 0 0 3px rgba(244,116,27,.45); }
.form-info { grid-column: 1 / -1; font-size: .88rem; color: var(--steel); max-width: 48em; }
.form-info a { color: var(--graphite); text-decoration-color: var(--orange); text-underline-offset: 3px; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-hint { font-size: .9rem; color: var(--steel); }
.form-status { grid-column: 1 / -1; font-weight: 600; }
.form-status.error { color: #b3261e; }
.form-status.ok { color: #1f6b3a; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

.contact-card { border: 2px solid var(--graphite); border-radius: 4px; padding: 26px; background: var(--white); }
.contact-card dl { margin: 0; }
.contact-card dl div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-card dl div:first-child { padding-top: 0; }
.contact-card dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-card dt { font-size: .88rem; color: var(--steel); }
.contact-card dd { margin: 3px 0 0; font-weight: 600; font-size: 1.05rem; }
.contact-card dd a { text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.placeholder { color: var(--steel); font-weight: 500; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--graphite); color: #c9cdd1; padding-block: 56px 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-grid img { height: 54px; width: auto; }
.footer-grid h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { padding: 4px 0; }
.footer-grid a { color: #e2e5e8; text-decoration: none; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid #3a3a3a; color: #9ca2a8; font-size: .88rem; }
.footer-bottom a { color: inherit; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--orange); }
.site-footer .placeholder { color: #8e9297; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid li { padding: 0; }
  .footer-grid li a, .footer-links a { display: inline-block; padding-block: 10px; }
  .contact-card dd a { display: inline-block; padding-block: 8px; }
}

/* ---------- Strona prawna ---------- */
.legal .wrap { max-width: 860px; }
.legal-head { margin-bottom: 48px; }
.legal-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.legal-date { margin-top: 14px; font-size: .9rem; color: var(--steel); }
.legal-head .lead { margin-top: 22px; }
.legal-sec { padding-block: 28px; border-top: 1px solid var(--line); }
.legal-sec h2 { font-size: 1.2rem; margin-bottom: 14px; }
.legal-sec p, .legal-sec li { color: #33383c; }
.legal-sec p + p, .legal-sec p + ul, .legal-sec ul + p { margin-top: 12px; }
.legal-sec ul { margin: 0; padding-left: 1.2em; }
.legal-sec li { margin-top: 8px; }
.legal-sec a { text-decoration-color: var(--orange); text-underline-offset: 3px; }

/* ---------- Podstrony kursów ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--steel); margin-bottom: clamp(24px, 4vw, 40px); }
.crumbs a { color: var(--graphite); text-decoration-color: var(--orange); text-underline-offset: 3px; }
.course-hero { padding-bottom: 0; }
.course-grid { align-items: center; }
.course-grid .hero-copy { padding-bottom: clamp(36px, 6vw, 72px); }
.course-art { margin: 0 0 clamp(36px, 6vw, 72px); min-width: 0; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: var(--plate); border: 2px solid var(--graphite); border-radius: 4px; position: relative; }
.course-art::before, .course-art::after { content: ""; position: absolute; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: #9aa1a8; box-shadow: inset -1px -1px 0 rgba(0,0,0,.35); }
.course-art::before { left: 12px; }
.course-art::after { right: 12px; }
.course-art svg { width: 62%; height: auto; }
@media (max-width: 860px) { .course-art { max-width: 520px; aspect-ratio: 16 / 9; } }
.course-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; }
.course-price .price { font-size: 2.6rem; }
.course-price .price-note { margin: 0; }
.course-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.course-col { min-width: 0; }
.course-col h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-bottom: 22px; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks svg { width: 20px; height: 20px; margin-top: 3px; color: var(--orange-ink); }
.program { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; counter-reset: prog; }
.program li { counter-increment: prog; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 16px 18px; background: var(--white); border: 2px solid var(--graphite); border-radius: 4px; }
.program li::before { content: counter(prog); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--graphite); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
.course-cta .hero-actions { margin-top: 28px; }
.other-h { margin-top: 56px; font-size: 1rem; font-family: var(--font-body); font-weight: 600; }
.other { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.other a { display: inline-block; padding: 12px 18px; border: 1px solid #555; border-radius: var(--radius); color: var(--white); text-decoration: none; }
.other a:hover { border-color: var(--orange); color: var(--orange); }
@media (max-width: 860px) {
  .course-body, .program { grid-template-columns: 1fr; }
}

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================
   Ciemne, eleganckie tło pod białym nagłówkiem
   ========================================================== */
:root {
  --page: #25272A;        /* grafitowe tło strony */
  --page-alt: #1D1F21;    /* sekcje wyróżnione */
  --on-dark: #ECEDEF;     /* tekst na ciemnym */
  --on-dark-2: #C3C7CC;   /* tekst pomocniczy */
  --on-dark-3: #9EA3A9;   /* drobne opisy */
  --line-dark: #3A3D41;   /* linie na ciemnym */
}
body { background: var(--page); color: var(--on-dark); }
.site-header { color: var(--graphite); }
.lead { color: var(--on-dark-2); }
.hero-note, .price-footnote, .form-hint, .form-info, .legal-date, .muted { color: var(--on-dark-3); }
.form-info a { color: var(--on-dark); }
.btn-ghost { color: var(--on-dark); border-color: var(--on-dark); }
.btn-ghost:hover { background: var(--on-dark); color: var(--graphite); }

/* Ilustracje: jasne maszyny na ciemnym tle, ciemne na jasnych kartach */
.hero-art { color: var(--on-dark); --hub: var(--page); }
.hero-ground { background: #141516; }
.plate, .course-art, .program li { color: var(--graphite); --hub: #fff; }

/* Atuty */
.facts { background: var(--page-alt); }
.fact + .fact, .fact:nth-child(even) { border-left-color: var(--line-dark); }
.fact:nth-child(n+3), .fact + .fact { border-top-color: var(--line-dark); }
.fact span { color: var(--on-dark-3); }

/* Przebieg kursu */
.bg-concrete { background: var(--page-alt); }
.step-num { background: var(--on-dark); color: var(--graphite); }
.step::before { background: #5A5E63; }
.step p { color: var(--on-dark-2); }

/* Dla firm i stopka: o ton ciemniej niż tło */
.dark { background: #17181A; }
.site-footer { background: #121314; }

/* Pytania */
.faq details { border-top-color: var(--line-dark); }
.faq details:last-child { border-bottom-color: var(--line-dark); }
.faq summary::after { border-color: var(--on-dark); }
.faq details p { color: var(--on-dark-2); }
.area { background: var(--page-alt); border: 1px solid var(--line-dark); }
.area p { color: var(--on-dark-2); }

/* Kontakt */
.contact-card { background: var(--page-alt); border: 1px solid var(--line-dark); }
.contact-card dl div { border-bottom-color: var(--line-dark); }
.contact-card dt { color: var(--on-dark-3); }
.placeholder { color: var(--on-dark-3); }
.form-status.ok { color: #7FD69B; }
.form-status.error { color: #FF9A8F; }

/* Polityka prywatności */
.legal-sec { border-top-color: var(--line-dark); }
.legal-sec p, .legal-sec li { color: var(--on-dark-2); }

/* Podstrony kursów */
.crumbs { color: var(--on-dark-3); }
.crumbs a { color: var(--on-dark); }
.course-price .price-note { color: var(--on-dark-3); }
.ticks li { border-top-color: var(--line-dark); }
.ticks li:last-child { border-bottom-color: var(--line-dark); }
.ticks svg { color: var(--orange); }

/* Pływający przycisk „Zadzwoń” */
.call-fab {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 18px; border-radius: 999px;
  background: var(--orange); color: var(--graphite);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .18);
  transition: transform .15s ease, background-color .15s ease;
  animation: call-fab-in .4s ease-out .6s both;
}
.call-fab:hover { background: #ff8a36; transform: translateY(-2px); }
.call-fab:active { transform: translateY(0); }
.call-fab svg { flex: none; }
.call-fab-num { display: none; }
@media (min-width: 901px) {
  .call-fab-text { display: none; }
  .call-fab-num { display: inline; letter-spacing: .01em; }
}
@media (max-width: 900px) { .site-footer { padding-bottom: 104px; } }
@keyframes call-fab-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media print { .call-fab { display: none; } }
