@charset "UTF-8";
/* =============================================================================
   site.css — charakter wizualny LUZ. Autoszkoła
   Nadpisuje i rozszerza styles.css / tokens.css. Paleta: primary #5B4B8A,
   accent #F0A500. Typografia: Poppins (display) + Work Sans (body).
   Estetyka: electric-pop / playful, energetyczna, mlodziezowa. Jasne tlo.
   ============================================================================= */

/* --- Fonty Google (Poppins + Work Sans) ----------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700;800;900&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
}

/* --- Brand header --------------------------------------------------------- */
.site-header {
  background: color-mix(in srgb, var(--color-bg) 95%, transparent);
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--fs-lg, 20px);
  color: var(--color-primary, #5B4B8A);
  letter-spacing: -0.02em;
}
.brand-name span {
  color: var(--color-accent, #F0A500);
}
.brand-city {
  font-size: var(--fs-xs, 11px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Nawigacja ------------------------------------------------------------ */
nav[aria-label="Glowna"] a,
nav[aria-label="Główna"] a {
  font-weight: 600;
  font-size: var(--fs-sm, 13px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-strong);
  position: relative;
}
nav[aria-label="Glowna"] a::after,
nav[aria-label="Główna"] a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}
nav[aria-label="Glowna"] a:hover::after,
nav[aria-label="Główna"] a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.btn-nav {
  background: var(--color-primary, #5B4B8A);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 0 var(--space-5);
  font-weight: 700;
  font-size: var(--fs-sm, 13px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.btn-nav:hover { background: var(--color-primary600, #4D4075); }

/* --- Hero split-asym ------------------------------------------------------ */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: clamp(480px, 80svh, 760px);
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero-split {
    grid-template-columns: 60fr 40fr;
  }
}
.hero-split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 72px);
  background: var(--color-bg);
  position: relative;
  z-index: 1;
}
.hero-split__visual {
  position: relative;
  background-color: #5B4B8A;
  background-image: linear-gradient(135deg, #5B4B8A 0%, #3a2f6b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 280px;
  color: #ffffff;
}
@media (max-width: 767px) {
  .hero-split__visual { order: -1; min-height: 220px; }
}
.hero-split__visual-inner {
  text-align: center;
  padding: var(--space-6);
  color: #ffffff;
  background-color: transparent;
}
.hero-l-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(80px, 16vw, 140px);
  height: clamp(80px, 16vw, 140px);
  background: var(--color-accent, #F0A500);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(40px, 8vw, 80px);
  color: #111;
  margin-bottom: var(--space-4);
}
.hero-visual-label {
  font-size: var(--fs-sm, 13px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.9;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm, 13px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary, #5B4B8A);
  margin-bottom: var(--space-4);
}
.hero-eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--color-accent, #F0A500);
  border-radius: 1px;
}
.hero-h1 {
  font-size: clamp(28px, 5.5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin-bottom: var(--space-4);
  overflow-wrap: break-word;
}
.hero-h1 em {
  font-style: normal;
  color: var(--color-primary, #5B4B8A);
}
.hero-lead {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text-body);
  margin-bottom: var(--space-6);
  max-width: 46ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent, #F0A500);
  color: #111;
  font-weight: 800;
  font-size: var(--fs-base, 16px);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  min-height: 52px;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 4px 16px rgba(240,165,0,0.35);
}
.btn-call:hover {
  background: var(--color-accentHover, #D39100);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,165,0,0.45);
}
.btn-call:active { transform: translateY(0); }
.btn-call::before { content: "\260E"; font-size: 1.1em; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-primary, #5B4B8A);
  font-weight: 700;
  font-size: var(--fs-base, 16px);
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-primary, #5B4B8A);
  min-height: 52px;
  text-decoration: none;
  transition: background 180ms ease;
}
.btn-outline:hover { background: var(--color-primary100, #E6E4ED); }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-sm, 13px);
  color: var(--text-muted);
  flex-wrap: wrap;
}
.trust-stars { color: #E5A000; letter-spacing: 2px; font-size: 1.1em; }

/* --- Pasek liczb ---------------------------------------------------------- */
.stats-bar {
  background: var(--color-primary, #5B4B8A);
  padding: var(--space-7) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-5);
  text-align: center;
}
.stat-item { color: #fff; }
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1;
  color: var(--color-accent, #F0A500);
}
.stat-label {
  font-size: var(--fs-sm, 13px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-top: 6px;
}

/* --- Sekcje ---------------------------------------------------------------- */
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs, 11px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary, #5B4B8A);
  margin-bottom: var(--space-3);
}
.section-kicker::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--color-accent, #F0A500);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-strong);
  margin-bottom: var(--space-4);
  max-width: 22ch;
  overflow-wrap: break-word;
}
.section-lead {
  font-size: var(--fs-lg, 18px);
  color: var(--text-body);
  max-width: 52ch;
  margin-bottom: var(--space-6);
}

/* --- Kafle "Dlaczego my" -------------------------------------------------- */
.feature-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.feature-card {
  background: var(--color-surface, #F8F8FA);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 48px; height: 48px;
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: var(--space-4);
}
.feature-card h3 {
  font-size: var(--fs-xl, 18px);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text-strong);
}

/* --- Karty kursow --------------------------------------------------------- */
.course-cards {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.course-card {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.course-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: var(--color-primary, #5B4B8A);
  color: #fff;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--fs-lg, 20px);
  margin-bottom: var(--space-4);
}
.course-card h3 {
  font-size: var(--fs-xl, 20px);
  font-weight: 800;
  margin-bottom: var(--space-3);
  color: var(--text-strong);
}
.course-card__desc {
  color: var(--text-body);
  font-size: var(--fs-base, 16px);
  flex: 1;
  margin-bottom: var(--space-5);
}
.course-card__price {
  font-size: var(--fs-sm, 13px);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
  border-radius: var(--radius-md);
}
.tag-raty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  color: var(--color-primary);
  font-size: var(--fs-sm, 12px);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

/* --- Kroki kursu ---------------------------------------------------------- */
.steps-list {
  display: grid;
  gap: var(--space-5);
  counter-reset: steps;
}
.step-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--space-4);
  align-items: start;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: var(--color-accent, #F0A500);
  color: #111;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--fs-lg, 20px);
  flex: none;
}
.step-body h3 {
  font-size: var(--fs-xl, 18px);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

/* --- Opinie --------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.review-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.review-card__stars { color: #E5A000; letter-spacing: 2px; margin-bottom: var(--space-3); }
.review-card__text {
  font-size: var(--fs-base, 16px);
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  font-style: italic;
}
.review-card__author {
  font-weight: 700;
  color: var(--text-strong);
  font-size: var(--fs-sm, 13px);
}
.review-card__source {
  font-size: var(--fs-xs, 11px);
  color: var(--text-muted);
}
.review-note {
  font-size: var(--fs-sm, 13px);
  color: var(--text-muted);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

/* --- CTA band ------------------------------------------------------------- */
.cta-band {
  background-color: #5B4B8A;
  background-image: linear-gradient(135deg, #5B4B8A 0%, #3d3260 100%);
  padding: var(--space-9) 0;
  text-align: center;
  color: #ffffff;
}
.cta-band .container { background-color: transparent; }
.cta-band h2 {
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 900;
  color: #ffffff;
  background-color: transparent;
  margin-bottom: var(--space-4);
  overflow-wrap: break-word;
}
.cta-band p {
  color: #f0ecff;
  background-color: transparent;
  max-width: 44ch;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}
.cta-band .btn-call { font-size: var(--fs-lg, 18px); padding: 18px 36px; }

/* --- Stopka --------------------------------------------------------------- */
.site-footer {
  background: var(--color-neutral900, #0B0A0B);
  color: rgba(255,255,255,0.85);
  padding-block: var(--space-8);
}
.footer-grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: var(--fs-xl, 20px);
  color: #fff;
  margin-bottom: var(--space-2);
}
.footer-brand-name span { color: var(--color-accent, #F0A500); }
.footer-col h4 {
  font-size: var(--fs-sm, 13px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-4);
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: var(--fs-sm, 14px);
  padding: 4px 0;
  transition: color 150ms ease;
}
.footer-col a:hover { color: var(--color-accent, #F0A500); }
.footer-nap-item {
  font-size: var(--fs-sm, 14px);
  color: rgba(255,255,255,0.75);
  margin-bottom: 4px;
}
.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--fs-xs, 11px);
  color: rgba(255,255,255,0.35);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
}

/* --- Mobile sticky CTA ---------------------------------------------------- */
.mobile-cta-call {
  display: flex;
  gap: var(--space-3);
}
.mobile-cta-call .btn-call { flex: 1; justify-content: center; font-size: var(--fs-sm, 14px); }

/* --- Breadcrumb ----------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--fs-sm, 13px);
  color: var(--text-muted);
  padding: var(--space-4) 0;
}
.breadcrumb a { color: var(--color-primary); }
.breadcrumb span::before { content: '/'; margin-right: 6px; }

/* --- Podstrony hero ------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary100, #E6E4ED) 0%, var(--color-bg) 100%);
  padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 64px);
  border-bottom: 1px solid var(--color-border);
}
.page-hero h1 {
  font-size: clamp(24px, 4.5vw, 48px);
  font-weight: 900;
  color: var(--color-primary, #5B4B8A);
  margin-bottom: var(--space-3);
  overflow-wrap: break-word;
}
.page-hero p {
  font-size: var(--fs-lg, 18px);
  color: var(--text-body);
  max-width: 52ch;
}

/* --- Tabela cennik -------------------------------------------------------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.price-table th,
.price-table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  overflow-wrap: break-word;
}
.price-table th {
  font-weight: 700;
  background: var(--color-surface);
  font-size: var(--fs-sm, 13px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--color-primary); }
.price-note {
  font-size: var(--fs-sm, 13px);
  color: var(--text-muted);
  margin-top: var(--space-3);
}
@media (max-width: 480px) {
  .price-table { font-size: var(--fs-sm, 13px); }
  .price-table th, .price-table td { padding: var(--space-3); }
}

/* --- Formularz kontaktowy ------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-form { display: grid; gap: var(--space-5); }
.form-row { display: grid; gap: var(--space-2); }
.form-row label { font-weight: 600; font-size: var(--fs-sm, 14px); color: var(--text-strong); }
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--text-body);
  transition: border-color 150ms ease;
}
.form-row input:focus,
.form-row textarea:focus { border-color: var(--color-primary); outline: none; }
.form-row textarea { min-height: 120px; resize: vertical; }
.rodo-note { font-size: var(--fs-xs, 11px); color: var(--text-muted); line-height: 1.5; }
.map-placeholder {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm, 13px);
  flex-direction: column;
  gap: var(--space-3);
}

/* --- FAQ ------------------------------------------------------------------ */
.faq-wrap { max-width: 760px; margin-inline: auto; }

/* --- Realizacje galeria --------------------------------------------------- */
.gallery-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.gallery-item {
  aspect-ratio: 4/3;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--fs-sm, 13px);
  text-align: center;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Overflow guard ------------------------------------------------------- */
body { overflow-x: hidden; }
* { min-width: 0; }
.contact-grid { overflow-x: hidden; }
.contact-form input,
.contact-form textarea,
.contact-form select { max-width: 100%; box-sizing: border-box; }
.map-placeholder { overflow: hidden; }
table { overflow-x: auto; display: block; }
@media (max-width: 767px) {
  .contact-grid { overflow: hidden; }
  .form-row input, .form-row textarea, .form-row select { width: 100%; max-width: 100%; }
}
