/* =========================================================
   Projekt FERS - NIPiP
   Arkusz stylów v2 - odświeżona, profesjonalna identyfikacja
   ========================================================= */

:root {
  /* Kolory marki */
  --brand: #a81b33;
  --brand-dark: #7d1024;
  --brand-soft: #fbf1f2;
  --brand-line: #f0dcdf;

  /* Neutralne */
  --ink: #14181f;
  --ink-2: #2c333d;
  --muted: #5c6674;
  --line: #e4e7ec;
  --paper: #ffffff;
  --wash: #f7f8fa;
  --sage: #eef4f1;
  --navy: #101a26;

  /* Cień i promienie */
  --shadow-sm: 0 1px 2px rgba(20, 24, 31, 0.04), 0 2px 8px rgba(20, 24, 31, 0.04);
  --shadow-md: 0 2px 4px rgba(20, 24, 31, 0.04), 0 12px 28px rgba(20, 24, 31, 0.07);
  --shadow-lg: 0 4px 10px rgba(20, 24, 31, 0.05), 0 28px 60px rgba(20, 24, 31, 0.1);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  /* Typografia */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Cambria, "Times New Roman", Georgia, serif;

  --wrap: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink-2);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "cv05" 1;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid rgba(168, 27, 51, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: rgba(168, 27, 51, 0.14);
}

.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;
}

/* ---------- Typografia ---------- */

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
}

p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--brand);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow.red {
  color: var(--brand);
}

/* ---------- Nagłówek strony ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 12px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: var(--r-sm);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.25;
}

.brand strong {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: var(--ink-2);
  font-size: 0.925rem;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.18s ease;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1.5px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-nav a:hover {
  color: var(--brand);
}

.site-nav a:not(.nav-cta):hover::after,
.site-nav a[aria-current="page"]:not(.nav-cta)::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--brand);
}

.nav-cta {
  padding: 10px 18px !important;
  color: #fff !important;
  font-weight: 500;
  background: var(--brand);
  border-radius: var(--r-sm);
  transition: background 0.18s ease;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 1.5px;
  margin: 5px 0;
  background: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(calc(100vh - 74px), 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(
      92deg,
      rgba(255, 255, 255, 0.985) 0%,
      rgba(255, 255, 255, 0.94) 40%,
      rgba(255, 255, 255, 0.4) 76%,
      rgba(255, 255, 255, 0.12) 100%
    ),
    linear-gradient(180deg, rgba(16, 26, 38, 0.06), rgba(255, 255, 255, 0.4));
}

.hero-inner {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 120px;
}

.hero-lead {
  max-width: 62ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.page-actions {
  margin-top: 30px;
}

/* ---------- Przyciski ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 26px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.button.primary {
  color: #fff;
  background: var(--brand);
  box-shadow: var(--shadow-sm);
}

.button.primary:hover,
.nav-cta:hover {
  background: var(--brand-dark);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
}

.button.secondary:hover {
  color: var(--brand);
  border-color: rgba(168, 27, 51, 0.4);
}

.button:active {
  transform: translateY(1px);
}

/* ---------- Statystyki ---------- */

.quick-stats {
  position: relative;
  z-index: 3;
  width: min(var(--wrap), calc(100% - 48px));
  margin: -60px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.quick-stats article {
  min-height: 148px;
  padding: 30px 28px;
  border-right: 1px solid var(--line);
}

.quick-stats article:last-child {
  border-right: 0;
}

.quick-stats span {
  display: block;
  color: var(--brand);
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.quick-stats p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- Sekcje ---------- */

.section {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) 0;
}

.intro,
.timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.section-copy h2,
.section-heading h2,
.band h2,
.accessibility h2,
.contact h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.15;
}

.section-copy p:not(.eyebrow),
.section-heading p,
.band p,
.accessibility p,
.contact p {
  max-width: 62ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-heading {
  max-width: 780px;
}

/* ---------- Panel informacyjny ---------- */

.info-panel {
  padding: 32px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-md);
}

.info-panel h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

dl {
  display: grid;
  gap: 20px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
}

/* ---------- Pas kolorowy ---------- */

.band {
  width: 100%;
  padding: clamp(64px, 8vw, 100px) 0;
  background: var(--navy);
  color: #fff;
}

.band-inner {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

.band h2 {
  color: #fff;
}

.band .eyebrow {
  color: #e79aa8;
}

.band p {
  color: rgba(255, 255, 255, 0.72);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.feature-grid article {
  min-height: 170px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
}

.feature-grid strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.feature-grid p {
  margin: 10px 0 0;
  font-size: 0.95rem;
}

/* ---------- Kursy (strona główna) ---------- */

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.course-grid article {
  min-height: 240px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.course-grid article:hover {
  transform: translateY(-3px);
  border-color: var(--brand-line);
  box-shadow: var(--shadow-md);
}

.course-grid span {
  display: block;
  margin-bottom: 24px;
  color: var(--brand);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.course-grid h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.course-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-cta {
  margin-top: 36px;
}

/* ---------- Oś czasu ---------- */

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.timeline-list li {
  position: relative;
  padding: 26px 26px 26px 74px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.timeline-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 26px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--brand);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 50%;
}

.timeline-list time {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-list strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
}

.timeline-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Dostępność ---------- */

.accessibility {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: 100%;
  padding-inline: max(24px, calc((100vw - var(--wrap)) / 2));
  background: var(--sage);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 16px 20px 16px 50px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* ---------- Blok kontaktowy ---------- */

.contact {
  width: min(var(--wrap), calc(100% - 48px));
  margin: clamp(64px, 8vw, 104px) auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 5vw, 56px);
  color: #fff;
  background: var(--navy);
  border-radius: var(--r-lg);
}

.contact h2 {
  max-width: 20ch;
  color: #fff;
}

.contact .eyebrow {
  color: #e79aa8;
}

.contact p {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Stopka ---------- */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px clamp(20px, 5vw, 64px);
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--wash);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a:hover {
  color: var(--brand);
}

/* ---------- Podstrony ---------- */

.page-hero {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 24ch;
}

.page-hero p:not(.eyebrow) {
  max-width: 66ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
}

.page-stats {
  margin-top: 40px;
}

.split-section,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.document-grid h3,
.resource-columns h3,
.contact-details h2 {
  margin-top: 0;
}

.compact {
  margin-top: 18px;
}

.cards-two {
  grid-template-columns: repeat(2, 1fr);
}

.document-grid,
.resource-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.document-grid article,
.resource-columns article,
.contact-details,
.contact-form {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.document-grid h3,
.resource-columns h3 {
  font-size: 1.12rem;
  line-height: 1.3;
}

.document-grid p,
.resource-columns li,
.contact-details,
.fine-print {
  color: var(--muted);
  font-size: 0.95rem;
}

.resource-columns ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.resource-columns li::marker {
  color: var(--brand);
}

/* Karta licencji */
.license-card {
  padding: 36px;
  color: #fff;
  background: linear-gradient(155deg, var(--brand) 0%, var(--brand-dark) 100%);
  border: 0;
  border-radius: var(--r-md);
}

.license-card .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.license-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
}

.license-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* ---------- Tabela ---------- */

.table-wrap {
  margin-top: 36px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.94rem;
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--wash);
  white-space: nowrap;
}

tbody tr:hover td {
  background: rgba(168, 27, 51, 0.025);
}

tr:last-child td {
  border-bottom: 0;
}

/* ---------- Kontakt ---------- */

.contact-hero .eyebrow {
  color: var(--brand);
}

.contact-details {
  background: var(--wash);
  border-left: 3px solid var(--brand);
}

.contact-details h2 {
  font-size: 1.35rem;
  line-height: 1.3;
}

.contact-details address {
  margin: 18px 0;
  font-style: normal;
  color: var(--ink);
  font-size: 0.98rem;
}

.contact-link {
  display: block;
  margin: 10px 0;
  color: var(--brand-dark);
  font-size: 1.08rem;
  font-weight: 600;
}

.contact-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fine-print {
  margin-top: 26px;
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ---------- Formularz ---------- */

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row.full,
.consent,
.contact-form .button {
  grid-column: 1 / -1;
}

label {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(168, 27, 51, 0.12);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.consent input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--brand);
}

/* ---------- Katalog kursów ---------- */

.participant-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.offer-group {
  margin-top: clamp(44px, 6vw, 68px);
}

.offer-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.offer-group-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.4rem;
}

.offer-group-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 26px;
}

.offer-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.course-offer {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.course-offer:hover {
  transform: translateY(-3px);
  border-color: var(--brand-line);
  box-shadow: var(--shadow-md);
}

.course-offer h3 {
  margin: 18px 0 0;
  font-size: 1.15rem;
  line-height: 1.32;
}

.course-offer p {
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.course-type {
  align-self: flex-start;
  padding: 5px 11px;
  color: var(--brand-dark);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
}

.course-type.qualifying {
  color: #245141;
  background: var(--sage);
  border-color: #d5e5dd;
}

.course-type.training {
  color: #7a5410;
  background: #fdf6e7;
  border-color: #f0e2c2;
}

.course-meta {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.course-meta div {
  min-width: 0;
}

.course-meta dt {
  font-size: 0.63rem;
}

.course-meta dd {
  font-size: 0.86rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.course-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 11px 14px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.course-cta:hover {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

/* ---------- Responsywność ---------- */

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 10px;
  }

  .nav-cta {
    margin-top: 6px;
    text-align: center;
  }

  .quick-stats,
  .feature-grid,
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-stats article:nth-child(2) {
    border-right: 0;
  }

  .quick-stats article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .intro,
  .timeline,
  .accessibility,
  .split-section,
  .contact-layout,
  .participant-guide {
    grid-template-columns: 1fr;
  }

  .cards-two,
  .document-grid,
  .resource-columns,
  .offer-grid,
  .offer-grid.two {
    grid-template-columns: 1fr;
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 66px;
    padding-inline: 16px;
  }

  .brand {
    min-width: 0;
  }

  .hero {
    min-height: 680px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.92) 55%, rgba(255, 255, 255, 0.62) 100%),
      linear-gradient(180deg, rgba(16, 26, 38, 0.06), rgba(255, 255, 255, 0.4));
  }

  .hero-media img {
    object-position: 66% center;
  }

  .hero-inner {
    width: min(100% - 32px, var(--wrap));
    padding: 48px 0 120px;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .button {
    width: 100%;
  }

  .quick-stats {
    width: min(100% - 32px, var(--wrap));
    grid-template-columns: 1fr;
    margin-top: -84px;
  }

  .quick-stats article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-stats article:last-child {
    border-bottom: 0;
  }

  .section,
  .band-inner,
  .contact,
  .page-hero {
    width: min(100% - 32px, var(--wrap));
  }

  .feature-grid,
  .course-grid {
    grid-template-columns: 1fr;
  }

  .timeline-list li {
    padding-left: 68px;
  }

  .site-footer {
    flex-direction: column;
    padding-inline: 16px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .offer-group-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .course-meta {
    grid-template-columns: 1fr;
  }
}

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