/* =====================================================
   BAVARIACARS — style.css  (refactored)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;900&family=Barlow:wght@300;400;500;600&display=swap');

:root {
  --red:      #E8111A;
  --red-dark: #b00d14;
  --red-glow: rgba(232,17,26,0.35);
  --black:    #0a0a0a;
  --black2:   #111111;
  --black3:   #181818;
  --white:    #f5f5f5;
  --gray:     #888;
  --gray2:    #444;
  --nav-h:    72px;
  --pad-x:    80px;
  --pad-y:    100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--white); font-family: 'Barlow', sans-serif; overflow-x: hidden; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; padding: 0 40px; height: 72px;
  background: rgba(10,10,10,0.92); backdrop-filter: blur(12px);
  border-bottom: none;
}
/* hamburger hidden on desktop — zero size, no grid impact */
.nav-hamburger { display: none; }
nav::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: radial-gradient(ellipse at center, rgba(232,17,26,1) 0%, rgba(232,17,26,0.6) 50%, transparent 80%);
  pointer-events: none;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 22px; letter-spacing: 2px;
  color: var(--white); text-decoration: none;
}
.nav-logo-icon {
  width: 32px; height: 32px; border: 2px solid var(--red);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  background: rgba(232,17,26,0.1);
}
.nav-logo .slash { color: var(--red); }
.nav-logo-img { height: 68px; width: auto; object-fit: contain; display: block; }
.nav-links {
  display: flex; gap: 36px; list-style: none;
  justify-content: center; align-items: center;
  margin: 0; padding: 0;
}
.nav-links li { display: flex; align-items: center; }
.nav-links a {
  color: var(--white); text-decoration: none;
  font-family: 'Exo 2', sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase;
  transition: color .2s; line-height: 72px;
}
.nav-links a:hover { color: var(--red); }
.nav-cta {
  justify-self: end;
  background: var(--red); color: var(--white); border: none;
  padding: 11px 26px; font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; clip-path: polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%);
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--red-dark); transform: scale(1.03); }

.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer; padding: 4px; justify-self: end;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: transform .3s, opacity .3s; }
nav.open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.open .nav-hamburger span:nth-child(2) { opacity: 0; }
nav.open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(10,10,10,0.98); backdrop-filter: blur(16px);
  padding: 0 20px; border-bottom: 1px solid rgba(232,17,26,0.2);
  z-index: 99; display: flex; flex-direction: column; gap: 4px;
  max-height: 0; overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), padding .35s, opacity .25s;
  opacity: 0; pointer-events: none;
}
.nav-mobile-drawer.open {
  max-height: 80vh; padding: 24px 20px 32px;
  opacity: 1; pointer-events: auto;
}
.nav-mobile-drawer a {
  color: var(--gray); text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06); transition: color .2s;
}
.nav-mobile-drawer a:last-of-type { border-bottom: none; }
.nav-mobile-drawer a:hover, .nav-mobile-drawer a.active { color: var(--white); }
.nav-mobile-cta {
  margin-top: 20px; background: var(--red); color: var(--white); border: none;
  padding: 18px; font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; width: 100%;
}

/* ── HERO ────────────────────────────────────────── */
#hero {
  height: 100vh; height: 100svh;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  background: center center / cover no-repeat var(--black2);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(232,17,26,0.3) 0%, transparent 14%),
    linear-gradient(rgba(0,0,0,0.38), rgba(0,0,0,0.38));
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding-top: 76px; margin-top: -60px;
  justify-content: flex-start;
  animation: fadeUp .9s cubic-bezier(.16,1,.3,1) both;
}
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:none; } }
.hero-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: clamp(48px, 7.5vw, 100px);
  font-weight: 900; line-height: .92; text-transform: uppercase; color: #fff;
  letter-spacing: 3px; text-shadow: 0 2px 40px rgba(0,0,0,0.7), 2px 2px 0 rgba(0,0,0,0.5);
}
.hero-subtitle {
  font-family: 'Barlow Condensed', sans-serif; font-size: clamp(14px, 2.4vw, 28px);
  font-weight: 600; text-transform: uppercase; letter-spacing: 3px;
  color: rgba(255,255,255,0.75); margin-top: 14px; text-shadow: 0 1px 10px rgba(0,0,0,0.8);
  animation: fadeUp .9s .12s cubic-bezier(.16,1,.3,1) both;
}
.hero-stats { display: flex; align-items: center; margin-top: 32px; animation: fadeUp .9s .24s cubic-bezier(.16,1,.3,1) both; }
.hstat { display: flex; flex-direction: column; align-items: center; padding: 0 36px; }
.hstat-num { font-family: 'Barlow Condensed', sans-serif; font-size: 52px; font-weight: 900; line-height: 1; color: var(--red); text-shadow: 0 0 20px rgba(232,17,26,0.55); }
.hstat-lbl { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 4px; white-space: nowrap; }
.hstat-sep { width: 1px; height: 48px; background: rgba(255,255,255,0.2); }
.scroll-down {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer; animation: fadeUp .9s .5s both; background: none; border: none; color: inherit;
}
.scroll-down-label { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.scroll-arrow { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: bounce 2s ease-in-out infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(7px);} }

/* ── SECTIONS BASE ───────────────────────────────── */
section { padding: var(--pad-y) var(--pad-x); }
.section-tag {
  font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.section-tag::before { content:''; display:block; width:30px; height:2px; background:var(--red); }
.section-title { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(38px,5vw,72px); font-weight: 900; text-transform: uppercase; line-height: .95; }

/* ── FEATURES ────────────────────────────────────── */
#features { background: var(--black); text-align: center; }
.features-main-title { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(26px, 4vw, 58px); font-weight: 900; font-style: italic; text-transform: uppercase; color: var(--white); margin-bottom: 18px; letter-spacing: 1px; }
.features-sub { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(11px, 1.3vw, 16px); font-style: italic; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.45); margin-bottom: 56px; }
.features-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
.feat-card {
  background: none; border: none; border-radius: 0;
  padding: 0; display: flex; flex-direction: column;
  align-items: center; text-align: center;
  transition: transform .3s;
}
.feat-card:hover { transform: translateY(-5px); }
.feat-icon-circle {
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(20,10,10,0.9);
  border: 1px solid rgba(232,17,26,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; flex-shrink: 0;
  transition: border-color .3s, background .3s;
  box-shadow: 0 0 0 8px rgba(232,17,26,0.04), 0 0 0 16px rgba(232,17,26,0.02);
}
.feat-card:hover .feat-icon-circle {
  border-color: rgba(232,17,26,0.5);
  background: rgba(232,17,26,0.08);
}
.feat-icon-circle svg {
  width: 40px; height: 40px;
  stroke: var(--red); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.feat-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 12px; color: var(--white);
}
.feat-text {
  font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.5);
  font-style: normal; text-transform: none; letter-spacing: 0; max-width: 240px;
}

/* ── BRANDS CAROUSEL ─────────────────────────────── */
#brands-section {
  background: var(--black); padding: 36px 0 48px;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden; position: relative;
}
.brands-label {
  text-align: center; font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; letter-spacing: 4px; color: rgba(255,255,255,0.25);
  text-transform: uppercase; margin-bottom: 32px;
}
#brands-section::before,
#brands-section::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 160px; z-index: 2; pointer-events: none;
}
#brands-section::before { left: 0; background: linear-gradient(to right, var(--black), transparent); }
#brands-section::after  { right: 0; background: linear-gradient(to left, var(--black), transparent); }

.brands-track-wrap { overflow: hidden; }
.brands-track {
  display: flex; align-items: center; gap: 0;
  width: max-content;
  animation: brandScroll 28s linear infinite;
}
.brands-track:hover { animation-play-state: paused; }
@keyframes brandScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(var(--brands-scroll, -50%)); }
}
.brand-item {
  flex-shrink: 0; height: 50px; padding: 0 40px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.3; transition: opacity .3s; cursor: default;
}
.brand-item:hover { opacity: 0.8; }
.brand-item img { height: 100%; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1) brightness(2); }

/* ── ROUND OUTLINE BUTTON ────────────────────────── */
.btn-outline-round {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid var(--red);
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  transition: background .25s, color .25s, transform .2s;
}
.btn-outline-round:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

/* ── CAR STRIP ───────────────────────────────────── */
#car-section {
  height: 160px; background: var(--black); overflow: hidden;
  position: relative;
}
#car-path-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

/* ── PROCES ──────────────────────────────────────── */
#proces { background: var(--black); }
.process-steps { display: flex; align-items: flex-start; gap: 0; margin-top: 64px; position: relative; }
.process-line { position: absolute; top: 28px; left: 60px; right: 60px; height: 2px; background: linear-gradient(to right, var(--red), rgba(232,17,26,0.2)); z-index: 0; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 1; padding: 0 16px; opacity: 1; transform: none; transition: opacity .6s, transform .6s; }
.js-reveal-ready .step { opacity: 0; transform: translateY(30px); }
.step.visible { opacity: 1 !important; transform: none !important; }
.step:nth-child(2){transition-delay:.1s;} .step:nth-child(3){transition-delay:.2s;} .step:nth-child(4){transition-delay:.3s;} .step:nth-child(5){transition-delay:.4s;}
.step-num { width: 56px; height: 56px; border: 2px solid var(--red); display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 900; color: var(--red); background: var(--black); margin-bottom: 24px; }
.step-title { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.step-text { font-size: 13px; line-height: 1.7; color: var(--gray); max-width: 160px; }

/* ── OFERTA ──────────────────────────────────────── */
#oferta { background: var(--black2); }
.offer-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 3px; margin-top: 60px; }
.offer-card { background: var(--black3); padding: 48px; display: flex; gap: 28px; align-items: flex-start; border-left: 3px solid transparent; transition: border-color .3s, background .3s; }
.offer-card:hover { border-color: var(--red); background: rgba(232,17,26,0.03); }
.offer-icon-box { min-width: 52px; height: 52px; background: rgba(232,17,26,0.08); border: 1px solid rgba(232,17,26,0.25); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.offer-title { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.offer-text { font-size: 14px; line-height: 1.8; color: var(--gray); }

/* ── DLACZEGO MY ─────────────────────────────────── */
#why {
  background: var(--black);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "header  ."
    "list    visual";
  column-gap: 80px;
  row-gap: 0;
  padding: var(--pad-y) var(--pad-x);
}
#why > div:first-child { grid-column: 1; grid-row: 1; }
#why .why-list { grid-column: 1; grid-row: 2; }
.why-visual { grid-column: 2; grid-row: 2; position: relative; display: flex; align-items: flex-start; justify-content: center; }
/* ── WHY SLIDER ───────────────────────────────────── */
.why-visual { position: relative; display: flex; align-items: flex-start; justify-content: center; }

.why-slider {
  width: 100%; max-width: 480px; height: 100%;
  min-height: 340px; max-height: 420px;
  position: relative; overflow: hidden;
  clip-path: polygon(28px 0%, 100% 0%, calc(100% - 28px) 100%, 0% 100%);
  background: var(--black2);
}
/* czerwona kreska top */
.why-slider::before {
  content: ''; position: absolute; top: 0; left: 28px; right: 0;
  height: 3px; background: linear-gradient(to right, var(--red), transparent);
  z-index: 10;
}
/* dekoracyjna ramka */
.why-slider::after {
  content: ''; position: absolute; inset: -6px; z-index: 10; pointer-events: none;
  clip-path: polygon(28px 0%, 100% 0%, calc(100% - 28px) 100%, 0% 100%);
  border: 1px solid rgba(232,17,26,0.25);
}

.why-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .7s ease;
}
.why-slide.active { opacity: 1; }
.why-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.04); transition: transform 5s ease;
}
.why-slide.active img { transform: scale(1); }

.why-slide-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 50%, transparent 100%),
              linear-gradient(135deg, rgba(232,17,26,0.07) 0%, transparent 60%);
}

/* Caption */
.why-slide-caption {
  position: absolute; bottom: 52px; left: 20px; right: 20px; z-index: 5;
  font-family: 'Barlow Condensed', sans-serif; font-size: 14px;
  letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.75);
}

/* Licznik */
.why-slide-counter {
  position: absolute; top: 18px; right: 20px; z-index: 6;
  display: flex; align-items: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 2px;
}
.why-slide-counter span:first-child { color: var(--red); font-size: 18px; }
.why-slide-sep {
  width: 20px; height: 1px; background: rgba(255,255,255,0.3);
  display: inline-block !important;
}
.why-slide-counter span:last-child { color: rgba(255,255,255,0.4); }

/* Strzałki */
.why-slide-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 38px; height: 38px; background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.8);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
}
.why-slide-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.why-slide-prev { left: 14px; }
.why-slide-next { right: 14px; }

/* Dots */
.why-slide-dots {
  position: absolute; bottom: 22px; left: 0; right: 0; z-index: 6;
  display: flex; justify-content: center; gap: 7px;
}
.why-dot {
  width: 22px; height: 2px; background: rgba(255,255,255,0.25);
  border: none; cursor: pointer; transition: background .3s, width .3s; padding: 0;
}
.why-dot.active { background: var(--red); width: 36px; }

/* Pasek postępu */
.why-slide-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: rgba(255,255,255,0.08); z-index: 7;
}
.why-slide-progress-bar {
  height: 100%; width: 0%; background: var(--red);
}

.why-header { grid-area: header; }
.why-list { grid-area: list; list-style:none; margin-top: 40px; display:flex; flex-direction:column; gap:14px; }
.why-item { display:flex;align-items:flex-start;gap:16px;padding:18px 28px;background:var(--black2);clip-path:polygon(18px 0,100% 0,calc(100% - 18px) 100%,0 100%);transition:background .3s; }
.why-item:hover { background:rgba(232,17,26,0.06); }
.why-item-dot {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px;
  position: relative;
}
.why-item-dot::before {
  content: '';
  position: absolute; left: 2px; top: 4px;
  width: 6px; height: 10px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg);
}
.why-item-title { font-family:'Barlow Condensed',sans-serif;font-size:16px;font-weight:700;text-transform:uppercase;letter-spacing:1px;margin-bottom:4px; }
.why-item-text { font-size:13px;color:var(--gray);line-height:1.6; }

/* ── KONTAKT ─────────────────────────────────────── */
#kontakt { background: var(--black2); padding: var(--pad-y) var(--pad-x); }
.contact-grid { display:grid; grid-template-columns:1fr 1.6fr; gap:80px; margin-top:60px; }
.contact-info { display:flex; flex-direction:column; gap:24px; }
.contact-item { display:flex; gap:16px; align-items:center; }
.contact-icon {
  width:44px; height:44px; min-width:44px;
  background:rgba(232,17,26,0.08); border:1px solid rgba(232,17,26,0.2);
  border-radius:8px;
  display:flex; align-items:center; justify-content:center; font-size:16px;
}
.contact-label { font-size:10px;letter-spacing:2px;text-transform:uppercase;color:var(--red);margin-bottom:2px; }
.contact-val { font-family:'Barlow Condensed',sans-serif;font-size:19px;font-weight:600; }
.contact-val a { color:var(--white);text-decoration:none;transition:color .2s; }
.contact-val a:hover { color:var(--red); }

/* Form wrapper */
.contact-form {
  display:flex; flex-direction:column; gap:0;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 32px;
}
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
.form-input, .form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: 2px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color:var(--white); padding:14px 16px;
  font-family:'Barlow',sans-serif; font-size:14px;
  outline:none; transition:border-color .2s, background .2s; width:100%; -webkit-appearance:none;
  margin-bottom: 12px;
}
.form-row .form-input { margin-bottom: 0; }
.form-input:focus, .form-textarea:focus {
  border-color: rgba(232,17,26,0.4);
  border-bottom-color: var(--red);
  background:rgba(232,17,26,0.04);
}
.form-input::placeholder, .form-textarea::placeholder { color:rgba(255,255,255,0.2); }
.form-input.error, .form-textarea.error { border-bottom-color:#ff6b6b; }
.form-textarea { resize:none; height:110px; margin-bottom:20px; }
.form-error { font-size:12px; color:#ff6b6b; display:none; }
.form-error.show { display:block; }

.btn-primary {
  background:var(--red); color:var(--white); border:none; padding:16px 36px;
  font-family:'Barlow Condensed',sans-serif; font-size:15px; font-weight:700;
  letter-spacing:2px; text-transform:uppercase; cursor:pointer;
  border-radius: 6px;
  transition:all .25s; width:100%;
}
.btn-primary:hover:not(:disabled) { background:var(--red-dark); box-shadow:0 8px 24px rgba(232,17,26,0.35); transform:translateY(-2px); }
.btn-primary:disabled { opacity:.65; cursor:not-allowed; transform:none; }

.form-feedback { padding:14px 20px; font-size:13px; letter-spacing:1px; text-align:center; display:none; text-transform:uppercase; font-family:'Barlow Condensed',sans-serif; }
.form-feedback.show { display:block; }
.form-feedback.success { background:rgba(26,122,60,0.15); border:1px solid rgba(26,122,60,0.4); color:#4ade80; }
.form-feedback.error-state { background:rgba(232,17,26,0.1); border:1px solid rgba(232,17,26,0.3); color:#ff6b6b; }

/* ── PAGE HERO (kontakt.html) ────────────────────── */
.page-hero { min-height:240px; padding-top:72px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; background:var(--black2); border-bottom:2px solid rgba(232,17,26,0.15); }
.page-hero-tag { font-family:'Barlow Condensed',sans-serif; font-size:11px; letter-spacing:4px; text-transform:uppercase; color:var(--red); display:flex; align-items:center; gap:10px; justify-content:center; margin-bottom:14px; }
.page-hero-title { font-family:'Barlow Condensed',sans-serif; font-size:clamp(40px,6vw,80px); font-weight:900; text-transform:uppercase; color:var(--white); }

/* ── FOOTER ──────────────────────────────────────── */
footer { background:var(--black); border-top:1px solid rgba(232,17,26,0.15); padding:40px var(--pad-x); display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.footer-logo { font-family:'Barlow Condensed',sans-serif; font-size:20px; font-weight:900; letter-spacing:2px; }
.footer-logo span { color:var(--red); }
.footer-copy { font-size:12px; color:var(--gray); letter-spacing:1px; }
.footer-links { display:flex; gap:24px; flex-wrap:wrap; }
.footer-links a { font-size:12px; color:var(--gray); text-decoration:none; letter-spacing:1px; text-transform:uppercase; transition:color .2s; }
.footer-links a:hover { color:var(--red); }

/* ── WHATSAPP ────────────────────────────────────── */
.whatsapp-btn { position:fixed; bottom:30px; right:30px; z-index:200; width:56px; height:56px; background:#25D366; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:26px; box-shadow:0 4px 20px rgba(37,211,102,0.4); text-decoration:none; transition:transform .2s; }
.whatsapp-btn:hover { transform:scale(1.1); }

/* ── REVEAL ──────────────────────────────────────── */
.reveal { opacity:1; transform:none; transition:opacity .7s, transform .7s; }
.js-reveal-ready .reveal { opacity:0; transform:translateY(30px); }
.reveal.visible { opacity:1 !important; transform:none !important; }

/* ── REALIZACJE CAROUSEL ─────────────────────────── */
#realizacje { background: var(--black2); }

/* Separator między realizacje a kontakt */
#kontakt {
  background: var(--black);
  position: relative;
}
#kontakt::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: radial-gradient(ellipse at center, var(--red) 0%, rgba(232,17,26,0.4) 40%, transparent 75%);
}
.section-divider {
  height: 80px;
  background: linear-gradient(to bottom, var(--black2), var(--black));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.section-divider::before {
  content: '';
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--red), transparent);
  left: 50%;
}
.section-divider::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 1px;
  background: radial-gradient(ellipse at center, rgba(232,17,26,0.5), transparent 70%);
  top: 50%;
}
.realizacje-sub {
  font-size: 15px; color: var(--gray); margin-top: 12px; margin-bottom: 56px;
  font-family: 'Barlow', sans-serif;
}

.carousel-wrap {
  position: relative; display: flex; align-items: center; gap: 16px;
}
.carousel-track-wrap {
  overflow: hidden; flex: 1;
}
.carousel-track {
  display: flex; gap: 24px;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.car-card {
  flex: 0 0 calc(33.333% - 16px);
  background: var(--black3);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  transition: transform .3s, border-color .3s;
  cursor: default;
}
.car-card:hover { transform: translateY(-6px); border-color: rgba(232,17,26,0.3); }

.car-card-img-wrap {
  position: relative; height: 220px; overflow: hidden; background: var(--black2);
}
.car-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s;
}
.car-card:hover .car-card-img-wrap img { transform: scale(1.05); }
.car-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
}

.car-card-body { padding: 20px 24px 24px; }
.car-card-tag {
  font-family: 'Barlow Condensed', sans-serif; font-size: 10px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--red);
  margin-bottom: 8px;
}
.car-card-name {
  font-family: 'Barlow Condensed', sans-serif; font-size: 20px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--white); margin-bottom: 6px;
}
.car-card-meta {
  font-size: 12px; color: var(--gray); letter-spacing: 1px;
}

/* Placeholder gdy brak zdjęcia */
.car-card-img-wrap img[src=""], 
.car-card-img-wrap img:not([src]) {
  display: none;
}
.car-card-img-wrap::before {
  content: '🚗';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; opacity: 0.15;
}

.carousel-btn {
  flex-shrink: 0; width: 48px; height: 48px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.carousel-btn:hover { background: var(--red); border-color: var(--red); }

.carousel-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 32px;
}
.carousel-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.2); border: none; cursor: pointer;
  transition: background .2s, transform .2s; padding: 0;
}
.carousel-dot.active { background: var(--red); transform: scale(1.4); }

/* ── RESPONSIVE: TABLET ──────────────────────────── */
@media (max-width: 1100px) {
  :root { --pad-x: 48px; }
  #why { gap: 48px; }
  .why-ring:nth-child(3) { display: none; }
  .contact-grid { gap: 48px; }
}

/* ── RESPONSIVE: MOBILE ──────────────────────────── */
@media (max-width: 768px) {
  :root { --pad-x: 20px; --pad-y: 64px; }

  nav { padding: 0 20px; grid-template-columns: auto 1fr auto; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-logo-img { height: 56px; }
  .nav-hamburger {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 40px; height: 40px;
    background: none; border: none; cursor: pointer; padding: 4px;
  }
  .nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: transform .3s, opacity .3s; }
  nav.open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  nav.open .nav-hamburger span:nth-child(2) { opacity: 0; }
  nav.open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  #hero { height: 100svh; }
  .hero-content { padding-top: 96px; margin-top: 0; }
  .hero-title { font-size: clamp(38px, 10vw, 64px); letter-spacing: 1px; }
  .hero-subtitle { font-size: clamp(11px, 3.2vw, 16px); letter-spacing: 1.5px; margin-top: 10px; }
  .hero-stats { margin-top: 24px; }
  .hstat { padding: 0 14px; }
  .hstat-num { font-size: 34px; }
  .hstat-lbl { font-size: 9px; letter-spacing: 1px; }
  .hstat-sep { height: 36px; }
  .scroll-down { bottom: 20px; }

  .section-title { font-size: clamp(30px, 7vw, 52px); }

  .brand-item { padding: 0 24px; height: 36px; }

  .process-steps { flex-direction: column; align-items: flex-start; }
  .process-line { display: none; }
  .step { flex-direction: row; text-align: left; align-items: flex-start; gap: 20px; padding: 0 0 28px 0; width: 100%; }
  .step-num { margin-bottom: 0; flex-shrink: 0; }
  .step-text { max-width: none; }

  .offer-grid { grid-template-columns: 1fr; gap: 2px; }
  .offer-card { padding: 24px 16px; gap: 16px; }

  #why { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 0; }
  #why > div:first-child { grid-column: 1; grid-row: 1; }
  .why-list { grid-column: 1; grid-row: 2; margin-top: 24px; gap: 10px; }
  .why-visual { grid-column: 1; grid-row: 3; display: flex; margin-top: 28px; }
  .why-slider { max-width: 100%; height: 260px; min-height: 260px; max-height: 260px; clip-path: polygon(16px 0%, 100% 0%, calc(100% - 16px) 100%, 0% 100%); }
  .why-item { padding: 16px 20px; clip-path: polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%); }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 20px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .form-input, .form-textarea { font-size: 16px; padding: 13px 14px; }

  .page-hero { min-height: 160px; }
  .page-hero-title { font-size: clamp(32px, 8vw, 56px); }

  .car-card { flex: 0 0 calc(100% - 0px); }
  .carousel-btn { width: 40px; height: 40px; }

  footer { flex-direction: column; text-align: center; padding: 32px 20px; gap: 12px; }
  .footer-links { justify-content: center; }

  .whatsapp-btn { bottom: 20px; right: 16px; width: 48px; height: 48px; font-size: 22px; }
}

/* ── RESPONSIVE: SMALL PHONES ────────────────────── */
@media (max-width: 400px) {
  .hero-stats { flex-direction: column; gap: 16px; }
  .hstat-sep { display: none; }
  .hstat { padding: 0; }
}