/* ════════════════════════════════════════════════════════════════
   roczny-dostep.css — dodatkowe ulepszenia wizualne
   Niezależny plik dołączany TYLKO na podstronie /roczny-dostep.html
   Zero modyfikacji głównego styles.css
   ════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────
   1) RYTM SEKCJI - alternatywne tła slate-50
   ────────────────────────────────────────────────────────────── */

.rd-section--alt { background: var(--slate-50) !important; }

/* Override: "Kiedy wybrać / Dla kogo" wraca do białego, żeby nie zlewało się
   z poprzedzającą sekcją "Co zyskuje firma" (też slate-50) */
.rd-audience--white { background: var(--white) !important; }

/* ──────────────────────────────────────────────────────────────
   2) POSITIONING (Stanowisko, nie licencja) - akcentowana ramka
   ────────────────────────────────────────────────────────────── */

.rd-positioning {
  background: linear-gradient(135deg,
    hsla(280, 70%, 55%, 0.04) 0%,
    hsla(221, 83%, 53%, 0.02) 50%,
    hsla(221, 83%, 53%, 0.04) 100%
  ) !important;
  position: relative;
  overflow: hidden;
  padding: 36px 0 !important;
}
.rd-positioning::before {
  content: '';
  position: absolute;
  top: -25%;
  left: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.07) 0%, transparent 60%);
  pointer-events: none;
  border-radius: 50%;
}
.rd-positioning::after {
  content: '';
  position: absolute;
  bottom: -25%;
  right: -10%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 60%);
  pointer-events: none;
  border-radius: 50%;
}
.rd-positioning .program-intro-inner {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 12px;
  padding: 22px 22px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px -8px rgba(168, 85, 247, 0.10);
  max-width: 760px;
}
.rd-positioning .program-intro-inner::before {
  content: '✦';
  position: absolute;
  top: -14px;
  left: 24px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, hsl(280, 70%, 60%), hsl(221, 83%, 53%));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.30);
}
.rd-positioning .section-label {
  background: linear-gradient(90deg, hsl(280, 70%, 60%), hsl(221, 83%, 53%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

@media (min-width: 768px) {
  .rd-positioning .program-intro-inner { padding: 28px 32px; }
}

@media (max-width: 600px) {
  .rd-positioning .program-intro-inner { padding: 24px 20px; }
  .rd-positioning .program-intro-inner::before { left: 20px; }
}

/* ──────────────────────────────────────────────────────────────
   3) JAK DZIAŁA - connector między krokami (na desktop)
   ────────────────────────────────────────────────────────────── */

.rd-steps { position: relative; }

@media (min-width: 768px) {
  .rd-steps .gates-grid--4 {
    position: relative;
  }
  .rd-steps .gates-grid--4::before {
    content: '';
    position: absolute;
    top: 38px;
    left: 8%;
    right: 8%;
    height: 2px;
    background-image: linear-gradient(
      90deg,
      var(--slate-300) 0,
      var(--slate-300) 4px,
      transparent 4px,
      transparent 12px
    );
    background-size: 12px 2px;
    background-repeat: repeat-x;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
  }
  .rd-steps .gate-card { position: relative; z-index: 1; background: var(--white); }
}

.rd-steps .gate-num {
  font-size: 14px;
  font-weight: 800;
  background: var(--slate-100);
  color: var(--slate-500);
  padding: 4px 10px;
  border-radius: 999px;
  top: 14px;
  right: 14px;
}
.rd-steps .gate-num--accent {
  background: linear-gradient(135deg, var(--accent), hsl(280, 70%, 55%));
  color: var(--white);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* ──────────────────────────────────────────────────────────────
   4) BENEFITS - subtelny dot pattern w tle
   ────────────────────────────────────────────────────────────── */

.rd-benefits {
  position: relative;
}
.rd-benefits::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--slate-200) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at top, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 0%, transparent 70%);
}
.rd-benefits .container { position: relative; z-index: 1; }

.rd-benefits .gate-card { transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease; }
.rd-benefits .gate-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.10);
}

/* ──────────────────────────────────────────────────────────────
   5) BIBLIOTEKA - kompaktowy grid obszarów (chip-style) + footer-note
   ────────────────────────────────────────────────────────────── */

.rd-areas {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 600px) {
  .rd-areas { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (min-width: 900px) {
  .rd-areas { grid-template-columns: repeat(5, 1fr); }
}

.rd-area {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.rd-area:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.08);
}
.rd-area-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--slate-100);
  color: var(--slate-500);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.rd-area:first-child .rd-area-num {
  background: linear-gradient(135deg, var(--accent), hsl(280, 70%, 55%));
  color: var(--white);
}
.rd-area-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.rd-area-text strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.rd-area-text span {
  font-size: 10.5px;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* Footer-note pod gridem obszarów */
.rd-areas-note {
  margin: 24px 0 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, hsla(221, 83%, 53%, 0.05), hsla(280, 70%, 55%, 0.03));
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--slate-700);
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.rd-areas-note svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 1px;
}
.rd-areas-note strong { color: var(--navy-900); font-weight: 700; }
.rd-areas-note--link { margin-top: 10px; }
.rd-areas-note--link a { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color var(--t); }
.rd-areas-note--link a:hover { color: var(--accent-hover); }

/* ──────────────────────────────────────────────────────────────
   6) ŚCIEŻKI KARIERY - dwie karty z akcentowymi topbarami
   ────────────────────────────────────────────────────────────── */

.rd-paths .gate-card {
  position: relative;
  overflow: hidden;
}
.rd-paths .gate-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--slate-300);
}
.rd-paths .gate-card:first-child::after {
  background: linear-gradient(90deg, var(--accent), hsla(221, 83%, 53%, 0.4));
}
.rd-paths .gate-card:last-child::after {
  background: linear-gradient(90deg, hsl(280, 70%, 60%), hsla(280, 70%, 60%, 0.4));
}

/* ──────────────────────────────────────────────────────────────
   7) PANEL + RAPORTY + WSPARCIE - 3 kolumny w jednym wierszu
   ────────────────────────────────────────────────────────────── */

.rd-panel .gates-header--lg {
  position: relative;
}
.rd-panel .gates-header--lg::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

/* Grid 3-kolumnowy - jedyny custom grid w CSS, używany dla panel + raporty + wsparcie */
.rd-3col { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .rd-3col { grid-template-columns: repeat(3, 1fr); }
}

/* ──────────────────────────────────────────────────────────────
   8) ZAKUP I WSPARCIE - mocniejszy B2B akcent przed CTA
   ────────────────────────────────────────────────────────────── */

.rd-purchase {
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%) !important;
  position: relative;
}
.rd-purchase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--slate-300), transparent);
}
.rd-purchase .gate-card {
  background: var(--white);
  border-color: var(--slate-200);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* ──────────────────────────────────────────────────────────────
   10) NAGŁÓWKI SEKCJI - subtelne label z dot prefix
   ────────────────────────────────────────────────────────────── */

.rd-section--alt .section-label,
.rd-purchase .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rd-section--alt .section-label::before,
.rd-purchase .section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
