/* ============================================================
   APLUSS 2 — style.css
   Premium Dark Theme for Firefighter Training Company
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  /* Background scale */
  --bg:          #07090f;
  --surface:     #0d1117;
  --surface-2:   #13181f;
  --surface-3:   #1a2030;
  --border:      rgba(255, 255, 255, 0.07);
  --border-hover: rgba(230, 57, 70, 0.35);

  /* Brand Colors */
  --primary:      #e63946;
  --primary-dark: #c1121f;
  --accent:       #f4a261;
  --accent-dark:  #e76f51;
  --navy:         #1d3557;

  /* Text */
  --text:       #f0f4f8;
  --text-muted: #8899aa;
  --text-dim:   #506070;

  /* Gradients */
  --gradient-fire:  linear-gradient(135deg, #e63946 0%, #f4a261 100%);
  --gradient-fire-v: linear-gradient(180deg, #e63946 0%, #f4a261 100%);
  --gradient-dark:  linear-gradient(180deg, #07090f 0%, #0d1117 100%);
  --gradient-navy:  linear-gradient(135deg, #1d3557 0%, #07090f 100%);

  /* Shadows & Glows */
  --glow-primary: 0 0 40px rgba(230, 57, 70, 0.35);
  --glow-sm:      0 0 20px rgba(230, 57, 70, 0.25);
  --shadow-card:  0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.6);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --section-pad:    100px;
  --container-max:  1200px;

  /* Radii */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Motion */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition: 0s;
    --transition-slow: 0s;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, p, span, small, a, label, li {
  overflow-wrap: break-word;
  word-break: break-word;
}

.gradient-text {
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead-text {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.25);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 18px;
}

.section-tag--fire {
  background: rgba(244, 162, 97, 0.1);
  border-color: rgba(244, 162, 97, 0.25);
  color: var(--accent);
}

.section-tag--spec {
  background: rgba(58, 117, 196, 0.08);
  border-color: rgba(58, 117, 196, 0.28);
  color: #5a9de8;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   SKIP LINK (Accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: normal;
  text-align: center;
  height: auto;
  min-height: 44px; /* Touch target — WCAG 2.5.8 */
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--gradient-fire);
  color: white;
  box-shadow: 0 4px 24px rgba(230, 57, 70, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(230, 57, 70, 0.55);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  background: rgba(230, 57, 70, 0.06);
}

.btn-fire {
  background: transparent;
  border: 1.5px solid rgba(230, 57, 70, 0.4);
  color: var(--primary);
  font-size: 0.88rem;
  padding: 12px 24px;
  min-height: 44px;
}
.btn-fire:hover {
  background: var(--gradient-fire);
  color: white;
  border-color: transparent;
  box-shadow: var(--glow-sm);
  transform: translateX(4px);
}

.btn-large { padding: 16px 38px; font-size: 1.05rem; }
.btn-full  { width: 100%; }

.req { color: var(--primary); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: var(--transition-slow);
}

.navbar.scrolled {
  background: rgba(7, 9, 15, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@supports (backdrop-filter: blur(24px)) {
  .navbar.scrolled {
    background: rgba(7, 9, 15, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }
}
.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-flame { font-size: 1.75rem; line-height: 1; filter: drop-shadow(0 0 8px rgba(230, 57, 70, 0.6)); }

.logo-text, .footer-logo > div {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.logo-sub {
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
}

/* Real logo image — navbar */
.nav-logo-img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(230, 57, 70, 0.3));
  transition: var(--transition);
}
.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 0 12px rgba(230, 57, 70, 0.55));
}

/* Real logo image — footer */
.footer-logo-img {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  margin-bottom: 14px;
  opacity: 0.9;
}

@media (max-width: 480px) {
  .nav-logo-img  { height: 38px; }
  .footer-logo-img { height: 44px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta { font-size: 0.88rem; padding: 10px 24px; flex-shrink: 0; }
.nav-cta-mobile { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#particles-js {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(230, 57, 70, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(29, 53, 87, 0.35) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(7,9,15,0.1) 0%, rgba(7,9,15,0.98) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  padding: 0 28px 100px; /* bottom padding ensures buttons never overlap scroll arrow */
  margin-top: 90px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.25);
  border-radius: 50px;
  padding: 9px 22px;
  margin-bottom: 32px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  backdrop-filter: blur(12px);
  letter-spacing: 0.3px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 1.07;
  margin-bottom: 26px;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
  margin-bottom: 48px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator {
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  animation: scrollBounce 2.4s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(7px); opacity: 1; }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: var(--gradient-fire);
  opacity: 0.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 55%;
  background: var(--border);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 900;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.4px;
}

/* ============================================================
   O NAS
   ============================================================ */
.o-nas-section { background: var(--bg); }

.o-nas-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: center;
}

.o-nas-content p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.feature-item:hover {
  border-color: var(--border-hover);
  background: rgba(230, 57, 70, 0.04);
  transform: translateX(4px);
}

.feature-icon {
  width: 46px;
  height: 46px;
  background: rgba(230, 57, 70, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.feature-item:hover .feature-icon { background: rgba(230, 57, 70, 0.18); }

.feature-item > div:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.feature-item strong { font-weight: 600; font-size: 0.95rem; }
.feature-item span { color: var(--text-muted); font-size: 0.82rem; }

/* O NAS VISUAL */
.o-nas-visual { position: relative; }

.visual-card {
  background: linear-gradient(145deg, rgba(29, 53, 87, 0.5), rgba(7, 9, 15, 0.8));
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  text-align: center;
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.o-nas-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.o-nas-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.o-nas-image-wrapper:hover .o-nas-image {
  transform: scale(1.05);
}

.visual-glow-image {
  position: absolute;
  inset: 0;
  background: inset 0 0 40px rgba(0,0,0,0.5);
  box-shadow: inset 0 0 60px rgba(230,57,70,0.3);
  pointer-events: none;
}

.visual-stats-badge {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: rgba(20, 20, 24, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(230, 57, 70, 0.4);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.vs-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.vs-label { 
  font-size: 0.85rem; 
  color: var(--text-muted); 
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ============================================================
   DLA STRAŻAKÓW
   ============================================================ */
.strazacy-section {
  background: var(--surface);
  overflow: hidden;
}

.strazacy-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-fire);
}

.strazacy-bg-decor {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(230, 57, 70, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.strazacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.strazak-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.strazak-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-fire);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-slow);
}

.strazak-card:hover {
  transform: translateY(-8px);
  border-color: rgba(230, 57, 70, 0.3);
  box-shadow: var(--shadow-hover), 0 0 40px rgba(230, 57, 70, 0.1);
}
.strazak-card:hover::before { transform: scaleX(1); }

.strazak-card--featured {
  border-color: rgba(230, 57, 70, 0.35);
  background: linear-gradient(160deg, var(--surface-2), rgba(230, 57, 70, 0.04));
  box-shadow: 0 8px 40px rgba(230, 57, 70, 0.12);
}

.strazak-card-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--gradient-fire);
  color: white;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
}

.strazak-card-icon {
  width: 66px;
  height: 66px;
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 24px;
  transition: var(--transition);
}
.strazak-card:hover .strazak-card-icon {
  background: rgba(230, 57, 70, 0.18);
  transform: scale(1.08) rotate(-3deg);
  box-shadow: var(--glow-sm);
}

.strazak-card-content { display: flex; flex-direction: column; flex: 1; }

.strazak-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.3;
}

.strazak-card-content .btn-fire {
  align-self: flex-start;
}

.strazak-card-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 20px;
  flex: 1;
}

.course-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
}

.course-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.course-features li i {
  color: var(--primary);
  font-size: 0.72rem;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ============================================================
   SZKOLENIA SPECJALISTYCZNE
   ============================================================ */
.spec-section {
  background: var(--bg);
  overflow: hidden;
}

.spec-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
}

.spec-bg-decor {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(244, 162, 97, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   OFERTA SZKOLEŃ
   ============================================================ */
.oferta-section { background: var(--bg); }

.oferta-grid {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.category-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.category-title i { color: var(--primary); font-size: 0.85rem; }

.oferta-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  /* overflow: hidden removed — was clipping card text on wrap;
     body { overflow-x: hidden } already prevents translateX(5px) scroll */
}

.oferta-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  transition: var(--transition);
  cursor: default;
}
.oferta-card:hover {
  border-color: var(--border-hover);
  background: rgba(230, 57, 70, 0.04);
  transform: translateX(5px);
}

.oferta-card-icon {
  width: 50px;
  height: 50px;
  background: rgba(230, 57, 70, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
}
.oferta-card:hover .oferta-card-icon { background: rgba(230, 57, 70, 0.15); }

.oferta-card h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 5px;
}
.oferta-card > div:last-child { min-width: 0; }
.oferta-card p { color: var(--text-muted); font-size: 0.8rem; line-height: 1.45; }

.oferta-cta-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 36px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
  margin-top: 52px;
}

.oferta-cta-block p {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-family: var(--font-heading);
  font-weight: 500;
}

/* ============================================================
   DLACZEGO MY
   ============================================================ */
.dlaczego-section {
  background: var(--surface);
  overflow: hidden;
}

.dlaczego-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 0% 50%, rgba(29, 53, 87, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 100% 50%, rgba(230, 57, 70, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.dlaczego-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.dlaczego-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.dlaczego-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-fire);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-slow);
}

.dlaczego-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 57, 70, 0.25);
  box-shadow: var(--shadow-hover);
}
.dlaczego-card:hover::before { transform: scaleX(1); }

.dlaczego-icon {
  width: 68px;
  height: 68px;
  background: var(--gradient-fire);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin: 0 auto 22px;
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4);
  transition: var(--transition);
}
.dlaczego-card:hover .dlaczego-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 12px 32px rgba(230, 57, 70, 0.55);
}

.dlaczego-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.dlaczego-card p {
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.75;
}

/* ============================================================
   CERTYFIKATY
   ============================================================ */
.certyfikaty-section { background: var(--bg); }

.certyfikaty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.certyfikat-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.certyfikat-badge:hover {
  border-color: rgba(244, 162, 97, 0.35);
  background: rgba(244, 162, 97, 0.04);
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}

.certyfikat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(244, 162, 97, 0.12), rgba(230, 57, 70, 0.08));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  transition: var(--transition);
}
.certyfikat-badge:hover .certyfikat-icon {
  background: rgba(244, 162, 97, 0.2);
  transform: scale(1.1);
}

.certyfikat-badge span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.certyfikat-badge small {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

/* ============================================================
   KONTAKT / FORMULARZ
   ============================================================ */
.kontakt-section {
  background: var(--surface);
  overflow: hidden;
}

.kontakt-top-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-fire);
}

.kontakt-wrapper {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}

.kontakt-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.kontakt-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.kontakt-item:hover { border-color: var(--border-hover); }
.kontakt-item a { color: var(--text-muted); }
.kontakt-item a:hover { color: var(--primary); }

.kontakt-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(230, 57, 70, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.kontakt-item > div:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kontakt-item strong { font-weight: 600; font-size: 0.88rem; }
.kontakt-item span { color: var(--text-muted); font-size: 0.84rem; }

.kontakt-fire-badge {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: rgba(230, 57, 70, 0.06);
  border: 1px solid rgba(230, 57, 70, 0.2);
  border-radius: var(--radius-sm);
  margin-top: 6px;
}
.kfb-icon { font-size: 2rem; filter: drop-shadow(0 0 8px rgba(230,57,70,0.5)); }
.kontakt-fire-badge > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kontakt-fire-badge strong { font-size: 0.9rem; font-weight: 600; }
.kontakt-fire-badge span { color: var(--text-muted); font-size: 0.82rem; }

/* FORM */
.kontakt-form {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  box-sizing: border-box;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--text);
  font-size: 1rem; /* Minimum 16px — prevents iOS auto-zoom on focus */
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
  background: rgba(230, 57, 70, 0.02);
}

.form-group select { cursor: pointer; }
.form-group select option { background: var(--surface-2); color: var(--text); }
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.form-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex-shrink: 0;
  accent-color: var(--primary);
  margin-top: 2px; /* Adjusted to align better with multiline text line-height */
  padding: 0;
  cursor: pointer;
}

.form-checkbox label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0;
  font-weight: 400;
  line-height: 1.6; /* Ensure line height is consistent */
  cursor: pointer;
}

.form-checkbox label a { color: var(--primary); text-decoration: underline; }
.form-checkbox label a:hover { color: var(--accent); }

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-sm);
  color: #86efac;
  font-size: 0.9rem;
  margin-top: 16px;
}
.form-success.visible {
  display: flex;
  animation: fadeSlideIn 0.5s var(--ease) forwards;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

#submitBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
  align-items: start; /* m-7: prevent uneven row stretch */
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-logo .logo-flame { font-size: 1.5rem; }

.footer-brand, .footer-links, .footer-contact {
  min-width: 0;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.75;
  max-width: 280px;
}

.footer-links h4, .footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.footer-links ul { display: flex; flex-direction: column; gap: 10px; }

.footer-links a {
  color: var(--text-muted);
  font-size: 0.87rem;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--primary);
  padding-left: 6px;
}

.footer-contact p {
  color: var(--text-muted);
  font-size: 0.87rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-contact a { color: var(--text-muted); }
.footer-contact a:hover { color: var(--primary); }
.footer-contact i { color: var(--primary); width: 14px; flex-shrink: 0; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.footer-bottom p { color: var(--text-dim); font-size: 0.82rem; }

.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--text-dim); font-size: 0.82rem; }
.footer-legal a:hover { color: var(--text-muted); }

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1100px) {
  :root { --section-pad: 84px; }

  .dlaczego-grid      { grid-template-columns: repeat(2, 1fr); }
  .footer-grid        { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* I-2: o-nas collapse earlier — content too squeezed at 768-1099px */
@media (max-width: 960px) {
  .o-nas-grid   { grid-template-columns: 1fr; gap: 52px; }
  .o-nas-visual { max-width: 420px; margin: 0 auto; }
}

/* C-3 + I-3: kontakt-wrapper collapses at 860px; course grids go 2-column */
@media (max-width: 860px) {
  .kontakt-wrapper  { grid-template-columns: 1fr; gap: 44px; }
  .strazacy-grid, .spec-grid { grid-template-columns: repeat(2, 1fr); max-width: none; margin: 0; }
}

/* Below 600px: all course grids go single column, centred */
@media (max-width: 600px) {
  .strazacy-grid, .spec-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

@media (max-width: 900px) {
  :root { --section-pad: 70px; }

  /* Hamburger menu */
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(7, 9, 15, 0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }
  .nav-links.open { opacity: 1; pointer-events: all; }
  .nav-links .nav-link {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text);
    padding: 12px 24px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-links .nav-link:hover { color: var(--primary); background: none; }
  .nav-cta-mobile { display: block; margin-top: 12px; }

  .hamburger { display: flex; position: relative; z-index: 1001; } /* m-6: explicit z-index */
  #navCtaDesktop { display: none; }

  /* Mobile Carousel for Oferta */
  .oferta-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    margin-right: -24px; /* let it bleed to edge */
    padding-right: 24px;
    gap: 16px;
  }
  .oferta-cards::-webkit-scrollbar { display: none; }
  .oferta-card {
    flex: 0 0 85%;
    min-width: 260px;
    scroll-snap-align: center;
  }
  .certyfikaty-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-item:nth-child(2)::after { display: none; }
}

@media (max-width: 640px) {
  :root { --section-pad: 60px; }

  .hero-title      { letter-spacing: -0.5px; }
  .hero-actions    { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; max-width: 340px; margin: 0 auto; }
  .hero-content    { padding-bottom: 80px; } /* C-1: reduce bottom padding on mobile */
  .hero-subtitle br { display: none; }       /* m-2: hide hard break in 481–640px gap */

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

  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; margin-top: 10px; }

  .form-row      { grid-template-columns: 1fr; }
  .kontakt-form  { padding: 28px 22px; }

  .oferta-cta-block { flex-direction: column; text-align: center; }

  .section-header { margin-bottom: 44px; }
  .stat-item::after { display: none; }
}

@media (max-width: 480px) {
  :root { --section-pad: 48px; }

  .container    { padding: 0 16px; }
  .hero-content { margin-top: 70px; padding: 0 16px 72px; } /* C-1: further reduce bottom pad */
  .hero-badge   { font-size: 0.75rem; padding: 7px 14px; }
  .hero-title   { font-size: clamp(2rem, 8vw, 2.8rem); }

  /* Guarantee iOS no-zoom on inputs */
  input, select, textarea { font-size: 16px !important; }
}

@media (max-width: 375px) {
  .hero-title { font-size: clamp(1.8rem, 9vw, 2.4rem); }
  .btn-large  { padding: 14px 24px; font-size: 0.95rem; }
  .hero-actions .btn { max-width: 100%; } /* I-4: 340px overflows 320px screens */
  .certyfikaty-grid  { grid-template-columns: 1fr 1fr; }
  .certyfikat-badge  { padding: 24px 12px; }
  .certyfikat-badge small { font-size: 0.68rem; } /* m-3: prevent 3-line wrap */
}

@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-item::after { display: none; } /* C-2: remove divider bleed in 2-col stats */
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .navbar, .hero, #particles-js, .hero-scroll, .hamburger { display: none !important; }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 800px;
  background: rgba(20, 20, 24, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 30px;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease);
}

.cookie-banner.show {
  bottom: 24px;
  opacity: 1;
  visibility: visible;
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cookie-icon {
  font-size: 1.8rem;
  color: var(--primary);
  flex-shrink: 0;
}

.cookie-text p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-text a {
  color: var(--primary);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .cookie-banner {
    width: 95%;
    padding: 18px 20px;
  }
}

/* ============================================================
   FAB (Floating Action Button) - Mobile Only
   ============================================================ */
.mobile-fab {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
  z-index: 1000;
  transition: transform 0.3s ease;
  text-decoration: none;
}
.mobile-fab:active {
  transform: scale(0.95);
}
@media (max-width: 768px) {
  .mobile-fab { display: flex; }
}
