/* ================================================================
   JEZDZIK.PL — stylesheet
   Paleta: niebieski #0055A4 | biały #FFFFFF | czerwony #EF4135
   ================================================================ */

:root {
  --nav-h: 68px;
  --blue:        #0055A4;
  --blue-dark:   #003d7a;
  --blue-light:  #e8f0fb;
  --red:         #EF4135;
  --red-dark:    #c73229;
  --white:       #FFFFFF;
  --bg:          #F7F8FA;
  --text:        #1a2b4a;
  --text-muted:  #5a6a82;
  --border:      #dde3ee;
  --shadow-sm:   0 2px 8px rgba(0,85,164,0.07);
  --shadow-md:   0 4px 20px rgba(0,85,164,0.12);
  --shadow-lg:   0 8px 40px rgba(0,85,164,0.16);
  --radius:      10px;
  --radius-lg:   20px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container:   1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tricolor: linear-gradient(to right, var(--blue) 33.3%, var(--white) 33.3% 66.6%, var(--red) 66.6%);
}

/* ----------------------------------------------------------------
   Reset & base
   ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (max-width: 768px) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
address { font-style: normal; }
ul { list-style: none; }
blockquote { quotes: none; }

/* ----------------------------------------------------------------
   Layout helpers
   ---------------------------------------------------------------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section      { padding: 5rem 0; }
.section--alt {
  background-color: #f7f8fa;
  background-image: radial-gradient(circle, rgba(0,85,164,0.032) 1px, transparent 1px);
  background-size: 28px 28px;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
  display: inline-block;
  position: relative;
}

.section-header h2::after {
  content: "";
  display: block;
  margin: 0.55rem auto 0;
  height: 4px;
  width: 56px;
  background: linear-gradient(to right, var(--blue) 33.3%, var(--white) 33.3% 66.6%, var(--red) 66.6%);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ----------------------------------------------------------------
   Tricolor bar
   ---------------------------------------------------------------- */

.tricolor-bar {
  height: 4px;
  background: linear-gradient(to right,
    var(--blue)  33.3%,
    var(--white) 33.3% 66.6%,
    var(--red)   66.6%);
}

/* ----------------------------------------------------------------
   Navigation
   ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
}


.nav-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(235, 235, 235, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: clip-path 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              backdrop-filter 0s, background 0s;
  will-change: clip-path;
}

/* Border SVG — zawsze widoczny, za tricolor barem */
.nav-border-svg {
  position: absolute;
  bottom: -2px;
  left: 0;
  display: block;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transform: translateZ(0);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
}

.site-header .tricolor-bar {
  margin-top: -16px;
  height: 16px;
  position: relative;
  z-index: 1;
  background: transparent;
}

.site-header .tricolor-bar::before,
.site-header .tricolor-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 33.3%;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header--scrolled .tricolor-bar::before,
.site-header--scrolled .tricolor-bar::after {
  opacity: 0;
}



/* Podczas nawigacji PJAX: solidne tło, brak blur/cutoutów — stary content niewidoczny */
.site-header--navigating .nav-bg {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  clip-path: none !important;
  background: rgb(235, 235, 235) !important;
  transition: none !important;
}
.site-header--navigating .tricolor-bar::before,
.site-header--navigating .tricolor-bar::after {
  transition: none !important;
  opacity: 1 !important;
}

.site-header .tricolor-bar::before {
  left: 0;
  background: linear-gradient(to bottom left, #040c18 0%, #0b1e42 50%, #1a3a8a 100%);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 100%, 0 100%);
}

.site-header .tricolor-bar::after {
  right: 0;
  background: linear-gradient(to bottom right, #480a06 0%, #8b1a12 50%, #d4401e 100%);
  clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%);
}

.nav-brand { display: none; align-items: center; }

.nav-logo { height: 42px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@media (min-width: 769px) {
  /* Kolejność: O nas, Usługi, Porady, Strona główna, Strefa klienta, Kontakt | Lang (prawo) */
  .nav-links > li:nth-child(1) { order: 4; } /* Strona główna → środek */
  .nav-links > li:nth-child(2) { order: 1; } /* O nas */
  .nav-links > li:nth-child(3) { order: 2; } /* Usługi */
  .nav-links > li:nth-child(4) { order: 3; } /* Porady */
  .nav-links > li:nth-child(5) { order: 5; } /* Strefa klienta */
  .nav-links > li:nth-child(6) { order: 6; } /* Kontakt */
  .nav-links > li:nth-child(7) {
    order: 7;
    position: absolute;
    right: 1.5rem;
    top: 20px;
    transform: translateY(-50%);
    z-index: 10;
  }

  /* Animacja lewo→prawo wg wizualnej kolejności */
  .page-home .nav-links > li {
    animation: heroFadeUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  .page-home .nav-links > li:nth-child(2) { animation-delay: 1.20s; } /* O nas */
  .page-home .nav-links > li:nth-child(3) { animation-delay: 1.35s; } /* Usługi */
  .page-home .nav-links > li:nth-child(4) { animation-delay: 1.50s; } /* Porady */
  .page-home .nav-links > li:nth-child(1) { animation-delay: 1.65s; } /* Strona główna */
  .page-home .nav-links > li:nth-child(5) { animation-delay: 1.80s; } /* Strefa klienta */
  .page-home .nav-links > li:nth-child(6) { animation-delay: 2.10s; } /* Kontakt */
  .page-home .nav-links > li:nth-child(7) { animation-delay: 2.25s; } /* Lang */
}

.nav-link {
  position: relative;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.9rem;
  border: none;
  background: transparent;
  transition: color var(--transition), font-size var(--transition);
}

.nav-link:hover  { color: var(--blue); }
.nav-link.active { color: var(--blue); font-weight: 600; }

@media (min-width: 769px) {
  .nav-link.active { font-size: 1.15rem; }
}

/* Tricolor podkreślenie — identyczne z przyciskami */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(to right,
    var(--blue)  33.3%,
    var(--white) 33.3% 66.6%,
    var(--red)   66.6%
  );
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.nav-link:hover::after,
.nav-link.active::after { width: calc(100% - 1.8rem); }

/* Kropki · name · — tylko desktop */
@media (min-width: 769px) {
  .nav-link.active::before,
  .nav-link.active::after {
    content: "·";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blue);
    font-weight: 900;
    font-size: 1.1em;
    line-height: 1;
    background: none;
    width: auto;
    height: auto;
    border-radius: 0;
    transition: none;
    pointer-events: none;
  }
  .nav-link.active::before { left: 0.2rem; }
  .nav-link.active::after  { right: 0.2rem; left: auto; bottom: auto; }
}

/* ORGA */
.nav-link--tool {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

/* ----------------------------------------------------------------
   Language switcher dropdown
   ---------------------------------------------------------------- */

.lang-switcher { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  transition: border-color var(--transition), color var(--transition);
}

.lang-btn:hover { color: var(--blue); }

svg.lang-flag {
  display: inline-block;
  width: 1.25em;
  height: 0.88em;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
  vertical-align: middle;
  overflow: hidden;
}
.lang-code { letter-spacing: 0.06em; }

.lang-chevron {
  opacity: 0.55;
  transition: transform var(--transition);
}

.lang-btn[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }
.lang-btn[aria-expanded="true"] { border-color: rgba(0,85,164,0.3); color: var(--blue); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 110px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 200;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.lang-option:hover { background: var(--blue-light); color: var(--blue); }

.lang-option.active {
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 700;
  pointer-events: none;
}

.nav-link--cta {
  font-weight: 600;
}

.nav-link--cta:hover  { color: var(--blue); }
.nav-link--cta.active { font-weight: 700; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.75rem 1.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  letter-spacing: 0.01em;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: transparent;
  color: var(--blue);
  border: none;
  box-shadow: none;
  font-weight: 700;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--blue-light);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-outline {
  position: relative;
  overflow: hidden;
  background: transparent;
  color: var(--blue);
  border: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-outline:hover {
  background: var(--blue-light);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-primary::after,
.btn-outline::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-18deg) translateX(-145%);
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-outline:hover::after {
  animation: btn-shimmer 0.55s ease forwards;
}

@keyframes btn-shimmer {
  to { transform: skewX(-18deg) translateX(255%); }
}

.btn-solid {
  background: var(--blue);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0,85,164,0.25);
}
.btn-solid:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,85,164,0.35);
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--blue-light);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

/* ----------------------------------------------------------------
   Hero — strona główna
   ---------------------------------------------------------------- */

.hero {
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #edf2fb 0%, #f7f9fe 60%, #ffffff 100%);
  overflow: hidden;
}

/* Split: lewa ciemna + prawa jasna, z ukośnym cięciem na styku */
.hero-split {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* tło pokazuje się gdzie dark panel jest obcięty */
  background: linear-gradient(155deg, #edf2fb 0%, #f7f9fe 50%, #ffffff 100%);
}

.hero-dark {
  background:
    radial-gradient(ellipse 70% 55% at 5%  15%, rgba(255,255,255,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 55% 70% at 95% 85%, rgba(239,65,53,0.22)   0%, transparent 50%),
    linear-gradient(135deg, #081730 0%, #0d2454 55%, #122f72 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 3rem 5rem 2.5rem;
  position: relative;
  overflow: hidden;
  /* Ukośne cięcie prawej krawędzi — Option C + A */
  clip-path: polygon(0 0, 100% 0, calc(100% - 5vw) 100%, 0 100%);
}


.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes logoShine {
  0%, 65% { transform: translateX(-220%) skewX(-18deg); }
  100%     { transform: translateX(320%)  skewX(-18deg); }
}

.hero-logo-wrap {
  display: inline-block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 0.3rem;
  animation: heroFadeUp 0.75s cubic-bezier(0.4, 0, 0.2, 1) 1.00s both;
}

.hero-logo-large {
  height: clamp(50px, 6vw, 82px);
  width: auto;
  display: block;
}

@media (min-width: 769px) {
  .hero-logo-wrap::after {
    content: "";
    position: absolute;
    top: -10%;
    left: 0;
    width: 35%;
    height: 120%;
    background: linear-gradient(
      105deg,
      transparent 30%,
      rgba(255, 255, 255, 0.38) 50%,
      transparent 70%
    );
    animation: logoShine 5s ease-in-out 3s infinite backwards;
    pointer-events: none;
  }
}

.hero-brand-sub {
  font-size: clamp(1.1rem, 2.2vw, 1.65rem);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
  line-height: 1.3;
  animation: heroFadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 1.30s both;
}

.hero-brand-author {
  font-size: clamp(0.9rem, 1.4vw, 1.15rem);
  font-style: italic;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
  animation: heroFadeUp 0.65s cubic-bezier(0.4, 0, 0.2, 1) 1.55s both;
}

/* Przyciski na ciemnym tle — frosted glass */
.hero-dark .btn-primary,
.hero-dark .btn-outline {
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255,255,255,0.08);
  border-radius: var(--radius);
}

.hero-dark .btn-primary:hover,
.hero-dark .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.12);
}

.hero-light {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
}

.hero-deco {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80%;
  height: 25%;
  background:
    radial-gradient(ellipse 45% 55% at 98% 4%, rgba(220, 65, 42, 0.45) 0%, transparent 65%),
    linear-gradient(to bottom left, #9e2215 0%, #7a1a10 45%, #3a0a07 100%);
  clip-path: polygon(calc(100% - 220px) 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-deco { display: none; }
}

.hero-foot {
  padding-bottom: 0;
}

.hero-tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.35rem;
}

/* Hero carousel — grid stacking umożliwia crossfade bez skakania wysokości */
.hero-carousel {
  display: grid;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: scale(0.96) translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Slajd z dłuższym tekstem (3 linie) — lekko mniejsza czcionka */
.hero-slide--long {
  font-size: 0.72em;
  line-height: 1.18;
}

.hero-slide--xlong {
  font-size: 0.5em;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0;
}

/* Slajd z logotypami marek */
.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.75rem 2.5rem;
  padding: 0.25rem 0;
}

.brand-logo {
  height: 82px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}


/* Dots indicator */
.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 2.25rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), width var(--transition);
}

.carousel-dot.active {
  background: var(--blue);
  width: 26px;
}

.carousel-dot:hover:not(.active) { background: #aabbcc; }

.accent-blue {
  background: linear-gradient(135deg, #003d7a 0%, #0077d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-red {
  background: linear-gradient(135deg, #c0281e 0%, #f0554a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  animation: heroFadeUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) 1.80s both;
}

/* ----------------------------------------------------------------
   Hero foot — brands line (wewnątrz .hero)
   ---------------------------------------------------------------- */

/* Marquee marek */
.brands-marquee {
  overflow: hidden;
  width: 100%;
  padding: 1.5rem 0 0.9rem;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.brands-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}

.brands-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding: 0 3.5rem;
}

.marquee-logo {
  height: 52px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  display: block;
  filter: grayscale(1);
}


.hero-network {
  text-align: center;
  padding-bottom: 1.25rem;
}

.hero-network-logo {
  height: 28px;
  width: auto;
  margin: 0 auto;
  transition: transform var(--transition);
}

.hero-network-logo:hover { transform: scale(1.08); }

/* ----------------------------------------------------------------
   Statement section
   ---------------------------------------------------------------- */

.section-statement {
  padding: 4.5rem 0;
  border-top: 1px solid rgba(0,85,164,0.07);
  border-bottom: 1px solid rgba(0,85,164,0.07);
}

.statement-text {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  font-weight: 400;
  line-height: 1.9;
  color: var(--text);
  max-width: 740px;
  margin: 0 auto 1.25rem;
  text-align: center;
}

.statement-sig {
  display: block;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.04em;
}

/* ----------------------------------------------------------------
   Pillars grid (editorialna, bez kart)
   ---------------------------------------------------------------- */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
}

.pillar {
  padding-top: 2rem;
  border-top: 2px solid var(--border);
  transition: border-top-color var(--transition);
}

.pillar:hover { border-top-color: var(--blue); }
.pillar:last-child:hover { border-top-color: var(--red); }

.pillar-number {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--blue);
  opacity: 0.55;
  margin-bottom: 1rem;
}

.pillar h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.pillar p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ----------------------------------------------------------------
   Page hero — inner pages
   ---------------------------------------------------------------- */

.page-hero {
  padding: 3rem 0 2.25rem;
  background:
    radial-gradient(ellipse 80% 120% at 95% 50%, rgba(0,85,164,0.07) 0%, transparent 60%),
    linear-gradient(160deg, #edf2fb 0%, #f7f9fe 50%, #ffffff 100%);
  border-bottom: 1px solid rgba(0,85,164,0.08);
}

.page-hero h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.page-hero p { color: var(--text-muted); font-size: 1rem; }

.breadcrumb {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.breadcrumb a  { color: var(--blue); }
.breadcrumb span { margin: 0 0.45rem; color: var(--border); }

/* ----------------------------------------------------------------
   Values cards (3-up)
   ---------------------------------------------------------------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.value-card {
  background: linear-gradient(155deg, #ffffff 0%, #f0f5ff 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03), 0 10px 32px rgba(0,85,164,0.09);
  border-top: none;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.value-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tricolor);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.04), 0 20px 48px rgba(0,85,164,0.12);
}

.value-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--blue);
}

.value-icon--blue { background: var(--blue-light); color: var(--blue); }
.value-icon--gray { background: #eef0f3; color: #5a6a82; }
.value-icon--red  { background: #fdecea; color: var(--red); }

.value-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.55rem; }
.value-card p  { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; }

/* ----------------------------------------------------------------
   Services summary (homepage — lightweight)
   ---------------------------------------------------------------- */

.services-summary {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.services-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
  list-style: none;
}

.services-tags li {
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(0,85,164,0.15);
  transition: background var(--transition), color var(--transition);
}

.services-tags li:hover { background: var(--blue); color: var(--white); }

/* ----------------------------------------------------------------
   Services grid (homepage preview + full page)
   ---------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.35rem;
}

.service-card {
  background: linear-gradient(155deg, #ffffff, #f0f5ff);
  border: 1px solid rgba(0,85,164,0.10);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: 0 2px 12px rgba(0,85,164,0.06);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tricolor);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,85,164,0.13);
}

.service-icon {
  width: 42px;
  height: 42px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  color: var(--blue);
}

.service-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.45rem; }
.service-card p  { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }

/* Full-page services */
.services-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 1.75rem;
}

.service-full-card {
  display: flex;
  gap: 1.5rem;
  background: linear-gradient(155deg, #ffffff 0%, #f0f5ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-full-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tricolor);
}

.service-full-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.service-full-card--featured {
  border-color: var(--blue);
  background: linear-gradient(135deg, #f5f9ff, var(--white));
}

.sfc-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.service-full-card--featured .sfc-icon { background: var(--blue); color: var(--white); }

.sfc-body { flex: 1; }

.sfc-badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

/* Kafelek specjalizacji — ciemny (zawieszenie hydropneumatyczne) */
.service-full-card--specialty {
  background:
    radial-gradient(ellipse 70% 55% at 5%  15%, rgba(255,255,255,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 55% 70% at 95% 85%, rgba(239,65,53,0.18)   0%, transparent 50%),
    linear-gradient(135deg, #081730 0%, #0d2454 55%, #122f72 100%);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.service-full-card--specialty .sfc-icon--dark {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.service-full-card--specialty .sfc-badge--light {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.service-full-card--specialty .sfc-body h2 { color: var(--white); }
.service-full-card--specialty .sfc-body p  { color: rgba(255,255,255,0.7); }
.service-full-card--specialty .sfc-list li { color: rgba(255,255,255,0.65); }
.service-full-card--specialty .sfc-list li::before { color: rgba(255,255,255,0.5); }

.sfc-link-row { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.25rem; }
.sfc-link-btn { font-size: 0.88rem; text-align: center; }

/* Przyciski na ciemnej karcie specjalizacji — oba widoczne, styl frosted glass */
.service-full-card--specialty .sfc-link-btn {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.service-full-card--specialty .sfc-link-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.32);
  color: var(--white);
  transform: translateY(-2px);
}

.sfc-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.sfc-body p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.sfc-list {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sfc-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.sfc-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ----------------------------------------------------------------
   Quote section
   ---------------------------------------------------------------- */

.quote-section {
  padding: 5rem 0;
  background: var(--blue);
  text-align: center;
  color: var(--white);
}

.quote-text {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  max-width: 760px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
  font-style: italic;
  opacity: 0.95;
}

.quote-author {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

/* ----------------------------------------------------------------
   CTA band
   ---------------------------------------------------------------- */

.cta-band {
  padding: 4rem 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.cta-band p  { color: var(--text-muted); margin-top: 0.3rem; font-size: 0.95rem; }

.cta-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}

.cta-phone {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.01em;
  line-height: 1;
}
.cta-phone:hover { color: var(--blue-dark); }

.cta-email {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.cta-email:hover { color: var(--blue); }

/* ----------------------------------------------------------------
   About page
   ---------------------------------------------------------------- */

.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: start;
}

.about-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  color: var(--text);
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 0.98rem;
  line-height: 1.8;
}

.brands-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.brands-list--centered {
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.brand-tag {
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(0,85,164,0.15);
}

.brand-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  min-width: 120px;
}

.brand-badge-logo {
  max-height: 64px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-badge span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
}

.brand-badge-logo--sm {
  max-width: 145px;
}

@media (min-width: 769px) {
  .brand-badge {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .brand-badge::after {
    content: "";
    position: absolute;
    top: -20%;
    left: 0;
    width: 40%;
    height: 140%;
    background: linear-gradient(
      105deg,
      transparent 25%,
      rgba(255, 255, 255, 0.62) 50%,
      transparent 75%
    );
    transform: translateX(-200%) skewX(-18deg);
    pointer-events: none;
  }

  .brand-badge:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
  }

  .brand-badge:hover::after {
    animation: brandChrome 0.55s ease forwards;
  }
}

@keyframes brandChrome {
  from { transform: translateX(-200%) skewX(-18deg); }
  to   { transform: translateX(450%)  skewX(-18deg); }
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-box {
  background: linear-gradient(155deg, #ffffff 0%, #f0f5ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tricolor);
}

.stat-box strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-box span { color: var(--text-muted); font-size: 0.85rem; }

.stat-box--here {
  background:
    radial-gradient(ellipse 70% 55% at 5%  15%, rgba(255,255,255,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 55% 70% at 95% 85%, rgba(239,65,53,0.22)   0%, transparent 50%),
    linear-gradient(135deg, #081730 0%, #0d2454 55%, #122f72 100%);
  border-color: transparent;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-box--here::before { background: var(--tricolor); }

.stat-box--here svg {
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.15rem;
  transition: transform var(--transition), color var(--transition);
}

.stat-box--here strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.08em;
}

.stat-box--here span {
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
}

.stat-box--here:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.stat-box--here:hover svg { transform: translateY(-2px); color: var(--white); }

.about-quote {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.5rem 1.75rem;
}

.about-quote p {
  font-style: italic;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.about-quote cite {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  font-style: normal;
}

/* ----------------------------------------------------------------
   Tips / porady index
   ---------------------------------------------------------------- */

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.tip-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.tip-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tricolor);
  z-index: 1;
}

.tip-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.tip-card-header {
  padding: 1.75rem 1.75rem 1.25rem;
  background: linear-gradient(135deg, var(--blue-light), #e0ebf7);
}

.tip-card-header--featured { background: linear-gradient(135deg, #dce9f7, #c9dcf2); }

.tip-badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.tip-card-icon { color: var(--blue); margin-bottom: 0.75rem; }
.tip-card-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); }

.tip-card-body { padding: 1.4rem 1.75rem; flex: 1; }
.tip-card-body p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.65; }

.tip-card-footer { padding: 0.75rem 1.75rem 1.6rem; }

/* ----------------------------------------------------------------
   Article page
   ---------------------------------------------------------------- */

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3.5rem;
  align-items: start;
}

.article-lead {
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.article-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--blue);
  margin: 2.25rem 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.article-content h2:first-of-type { margin-top: 0; }

.article-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.article-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 0.97rem;
}

.article-content ul,
.article-content ol { margin: 0.75rem 0 1.25rem; }

.article-content ul li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.article-content ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.article-content ol {
  counter-reset: step;
  list-style: none;
}

.article-content ol li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.article-content ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.65rem;
  height: 1.65rem;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.alert-box {
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.92rem;
  color: #6b4c00;
  line-height: 1.6;
}

.alert-box strong { color: #92400e; }

/* Sidebar */
.article-sidebar { position: sticky; top: 88px; }

.sidebar-card {
  background: linear-gradient(155deg, #ffffff 0%, #f0f5ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.sidebar-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tricolor);
}

.sidebar-card h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.sidebar-card--cta { background: var(--bg); }
.sidebar-card--cta p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }

.sidebar-links { display: flex; flex-direction: column; gap: 0.25rem; }

.sidebar-link {
  display: block;
  padding: 0.55rem 0.7rem;
  color: var(--text);
  font-size: 0.9rem;
  border-radius: var(--radius);
  border-left: 3px solid transparent;
  transition: all var(--transition);
}

.sidebar-link:hover  { background: var(--blue-light); color: var(--blue); border-left-color: var(--blue); }
.sidebar-link.active { background: var(--blue-light); color: var(--blue); border-left-color: var(--blue); font-weight: 600; }

.sidebar-link--tool {
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.88rem;
}

.sidebar-link--tool:hover { background: var(--blue-light); color: var(--blue); border-left-color: var(--blue); }

/* Link do ORGA w artykule zakupu */
.orga-link-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--blue-light);
  border: 1px solid rgba(0,85,164,0.2);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0 1.75rem;
  flex-wrap: wrap;
}

.orga-link-box-text { flex: 1; min-width: 180px; }
.orga-link-box-text strong { display: block; color: var(--text); font-size: 0.97rem; margin-bottom: 0.2rem; }
.orga-link-box-text span   { color: var(--text-muted); font-size: 0.88rem; }

/* ----------------------------------------------------------------
   ORGA — strona kalkulatora
   ---------------------------------------------------------------- */

.orga-page {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.orga-page-heading {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.orga-page-desc {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 1.5rem !important;
}

/* Ciemny, efektowny wariant sekcji kalkulatora */
.orga-hero-calc {
  background:
    radial-gradient(ellipse 70% 55% at 5% 15%, rgba(255,255,255,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 55% 70% at 95% 85%, rgba(239,65,53,0.22) 0%, transparent 50%),
    linear-gradient(135deg, #081730 0%, #0d2454 55%, #122f72 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.orga-hero-calc::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--blue) 33.3%, var(--white) 33.3% 66.6%, var(--red) 66.6%);
}

.orga-hero-calc::after {
  content: "ORGA";
  position: absolute;
  right: 1.5rem;
  bottom: -2rem;
  font-size: 9.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.02em;
  user-select: none;
}

.orga-hero-calc .orga-page-heading {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.orga-hero-calc .orga-page-desc {
  color: rgba(255,255,255,0.7);
}

.orga-hero-calc .orga-calc {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.13);
}

.orga-hero-calc .orga-result {
  color: var(--white);
  font-size: 1.3rem;
}

.orga-hero-calc .orga-result.error {
  color: #ff8c87;
}

.orga-hero-calc .btn-solid {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.orga-hero-calc .btn-solid:hover {
  background: var(--blue-light);
  color: var(--blue-dark);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.orga-explainer h2,
.orga-table-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.orga-explainer p {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.orga-back {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.orga-back p {
  color: var(--text-muted);
  font-size: 0.93rem;
  flex: 1;
  min-width: 200px;
  margin: 0;
}

/* ----------------------------------------------------------------
   EuroWarsztat
   ---------------------------------------------------------------- */

.ew-page {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.ew-hero-card {
  background:
    radial-gradient(ellipse 70% 55% at 5%  15%, rgba(255,255,255,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 55% 70% at 95% 85%, rgba(239,65,53,0.18)   0%, transparent 50%),
    linear-gradient(135deg, #081730 0%, #0d2454 55%, #122f72 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.ew-hero-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--tricolor);
}

.ew-logo-link { display: block; }

.ew-logo {
  height: clamp(44px, 6vw, 64px);
  width: auto;
  margin: 0 auto;
}

.ew-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  width: 100%;
}

.ew-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0 2.5rem;
  flex: 1;
  min-width: 120px;
}

.ew-stat strong {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.ew-stat span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
}

.ew-stat-divider {
  width: 1px;
  height: 3rem;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.ew-content {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.ew-content p {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.ew-lead {
  font-size: 1.08rem !important;
  color: var(--text) !important;
  line-height: 1.8 !important;
  font-weight: 400;
}

.ew-closing {
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--blue);
  background: var(--blue-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text) !important;
  font-style: italic;
}

@media (max-width: 540px) {
  .ew-hero-card  { padding: 2rem 1.25rem; }
  .ew-stat       { padding: 0 1.25rem; }
  .ew-stat-divider { height: 2rem; }
}

/* ----------------------------------------------------------------
   Strefa Klienta
   ---------------------------------------------------------------- */

.client-zone-page {
  max-width: 680px;
  margin: 0 auto;
}

/* Hub — siatka kart */
.czc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 380px));
  gap: 1.75rem;
  justify-content: center;
}

.czc-card {
  background:
    radial-gradient(ellipse 70% 55% at 5%  15%, rgba(255,255,255,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 55% 70% at 95% 85%, rgba(239,65,53,0.18)   0%, transparent 50%),
    linear-gradient(135deg, #081730 0%, #0d2454 55%, #122f72 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.czc-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--tricolor);
}

.czc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 48px rgba(0,0,0,0.35);
}

.czc-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.czc-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
}

.czc-desc {
  font-size: 0.93rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  flex: 1;
}

.czc-arrow {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.75rem;
  transition: transform var(--transition), color var(--transition);
}

.czc-card:hover .czc-arrow {
  transform: translateX(5px);
  color: var(--white);
}

/* ----------------------------------------------------------------
   Terminarz wizyt
   ---------------------------------------------------------------- */

.schedule-page { max-width: 860px; margin: 0 auto; }

.schedule-card {
  background:
    radial-gradient(ellipse 70% 55% at 5%  15%, rgba(255,255,255,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 55% 70% at 95% 85%, rgba(239,65,53,0.22)   0%, transparent 50%),
    linear-gradient(135deg, #081730 0%, #0d2454 55%, #122f72 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.schedule-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--tricolor);
}

.schedule-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.schedule-iframe-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: #f5f8ff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.schedule-iframe-wrap iframe {
  width: 100%;
  height: 680px;
  border: none;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.schedule-iframe-wrap iframe.loaded {
  opacity: 1;
}

@media (max-width: 540px) {
  .schedule-card { padding: 1.75rem 1.25rem; }
  .schedule-iframe-wrap iframe { height: 820px; }
}


.repair-status-card {
  background:
    radial-gradient(ellipse 70% 55% at 5%  15%, rgba(255,255,255,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 55% 70% at 95% 85%, rgba(239,65,53,0.22)   0%, transparent 50%),
    linear-gradient(135deg, #081730 0%, #0d2454 55%, #122f72 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 540px) {
  .repair-status-card { padding: 2rem 1.25rem; }
}

.repair-status-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--tricolor);
}

.repair-status-heading {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.65rem;
}

.repair-status-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.repair-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.repair-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.repair-input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.repair-input-group input {
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  transition: border-color var(--transition), background var(--transition);
}

.repair-input-group input::placeholder { color: rgba(255,255,255,0.3); }

.repair-input-group input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.12);
}

.repair-submit {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.repair-note {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

/* Wynik zapytania do serwisu */
.repair-result {
  margin-top: 1.75rem;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.repair-result--loading {
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 1rem 0;
}

.repair-result--loading::after {
  content: "Sprawdzanie…";
}

.repair-result--notfound {
  background: rgba(239,65,53,0.15);
  border: 1px solid rgba(239,65,53,0.35);
  color: rgba(255,255,255,0.9);
  border-radius: var(--radius);
}

.repair-result--found {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  border-radius: var(--radius);
}

.repair-result--error {
  background: rgba(239,65,53,0.15);
  border: 1px solid rgba(239,65,53,0.35);
  color: #ff8c87;
  border-radius: var(--radius);
}

/* Dane zlecenia — status badge */
.repair-data-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.65rem;
  border-radius: 20px;
}

.rds--open    { background: rgba(234,179,8,0.2);   color: #fcd34d; border: 1px solid rgba(234,179,8,0.4); }
.rds--done    { background: rgba(34,197,94,0.18);  color: #6ee7a0; border: 1px solid rgba(34,197,94,0.3); }
.rds--waiting { background: rgba(234,179,8,0.2);   color: #fcd34d; border: 1px solid rgba(234,179,8,0.4); }
.rds--closed  { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.15); }

/* Dane zlecenia — lista pól */
.repair-data-rows { display: flex; flex-direction: column; gap: 0.1rem; }

.repair-data-row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  align-items: baseline;
}

@media (max-width: 480px) {
  .repair-data-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding: 0.55rem 0;
  }
}

.repair-data-row:last-child { border-bottom: none; }

.repair-data-row span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.repair-data-row strong {
  font-size: 0.93rem;
  color: var(--white);
  font-weight: 600;
}

.repair-data-row small { color: rgba(255,255,255,0.4); font-weight: 400; }

/* Wariant duży kalkulatora (na dedykowanej stronie) */
.orga-calc--large {
  padding: 2rem 2.25rem;
}

.orga-input--large {
  width: 180px;
  font-size: 1.1rem;
  padding: 0.7rem 1rem;
}

.orga-result--large {
  font-size: 1.2rem;
  margin-top: 1.25rem;
}

/* ----------------------------------------------------------------
   ORGA calculator (ogólny — używany też na porady-kupno)
   ---------------------------------------------------------------- */

.orga-calc {
  background: var(--blue-light);
  border: 1px solid rgba(0,85,164,0.18);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 1.5rem 0;
}

.orga-calc-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 1rem !important;
}

.orga-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.orga-input {
  padding: 0.6rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  width: 160px;
  background: var(--white);
  transition: border-color var(--transition);
  color: var(--text);
}

.orga-input:focus {
  outline: none;
  border-color: var(--blue);
}

.orga-result {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  min-height: 1.4em;
}

.orga-result.error { color: var(--red); }

/* ----------------------------------------------------------------
   Article table
   ---------------------------------------------------------------- */

.article-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.article-table th {
  background: var(--blue);
  color: var(--white);
  text-align: left;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.article-table th:first-child { border-radius: var(--radius) 0 0 0; }
.article-table th:last-child  { border-radius: 0 var(--radius) 0 0; }

.article-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
  line-height: 1.5;
}

.article-table td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }

.article-table tr:last-child td { border-bottom: none; }
.article-table tr:nth-child(even) td { background: var(--bg); }
.article-table em { color: var(--text-muted); font-style: italic; }

/* ----------------------------------------------------------------
   Markdown article content (.md-content)
   ---------------------------------------------------------------- */

/* Pierwszy akapit = lead */
.md-content > p:first-child {
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

/* Blockquote = alert/ostrzeżenie */
.md-content blockquote {
  background: #fff8e1;
  border-left: 4px solid #f59e0b;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.92rem;
  color: #6b4c00;
  line-height: 1.6;
}

.md-content blockquote p {
  color: inherit;
  font-size: inherit;
  margin-bottom: 0;
}

/* ----------------------------------------------------------------
   Contact page
   ---------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-block { margin-bottom: 2.25rem; }

.contact-block h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.contact-icon {
  width: 38px;
  height: 38px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.contact-item-text strong { display: block; font-size: 1rem; color: var(--text); margin-bottom: 0.1rem; }
.contact-item-text span, .contact-item-text a { color: var(--text-muted); font-size: 0.88rem; }
.contact-item-text a:hover { color: var(--blue); }

.contact-phone-big { font-size: 1.45rem; font-weight: 700; color: var(--blue); }
.contact-phone-big a { color: var(--blue); }
.contact-phone-big a:hover { color: var(--blue-dark); }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 0.55rem 0; font-size: 0.93rem; border-bottom: 1px solid var(--border); }
.hours-table td:first-child { color: var(--text); font-weight: 500; }
.hours-table td:last-child { color: var(--text-muted); text-align: right; }
.hours-table tr:last-child td { border-bottom: none; }

.hours-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  font-style: italic;
}

/* Location */
.location-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.location-desc p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0 1rem;
  padding: 0.7rem 1.4rem;
  background: var(--blue);
  color: var(--white);
  border-radius: 20px;
  font-size: 0.93rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(0,85,164,0.25);
}

.map-btn:hover {
  background: var(--blue-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,85,164,0.35);
}

.location-note {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  color: var(--blue-dark);
  line-height: 1.6;
  margin-top: 1rem;
}

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */

.site-footer {
  background: #1a2b4a;
  color: rgba(255,255,255,0.8);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 1.5rem 3rem;
}

.footer-logo     { height: 46px; width: auto; margin-bottom: 1rem; }
.footer-tagline  { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.6; }
.footer-network-logo {
  height: 26px;
  width: auto;
  margin-top: 1.25rem;
  opacity: 0.6;
  transition: opacity var(--transition);
}
.footer-network-logo:hover { opacity: 0.9; }

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.9rem;
}

.footer-list li   { margin-bottom: 0.5rem; font-size: 0.88rem; }
.footer-list a    { color: rgba(255,255,255,0.75); }
.footer-list a:hover { color: var(--white); }

.footer-address { font-size: 0.88rem; line-height: 1.75; color: rgba(255,255,255,0.75); }
.footer-address small { color: rgba(255,255,255,0.4); font-size: 0.82em; }
.footer-note    { font-size: 0.78rem; color: rgba(255,255,255,0.35); margin-top: 0.5rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.15rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.footer-bottom span { text-align: center; }

/* ----------------------------------------------------------------
   Splash screen
   ---------------------------------------------------------------- */

.splash {
  position: fixed;
  top: calc(var(--nav-h) + 4px);
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.splash-logo {
  height: 76px;
  width: auto;
  margin-bottom: 1.5rem;
  animation: splashSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.splash-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0;
  animation: splashSlideUp 0.3s 0.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.splash-tricolor {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  opacity: 0;
  animation: splashSlideUp 0.2s 0.15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes splashSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------------
   Fade-in scroll animation (JS-driven via IntersectionObserver)
   ---------------------------------------------------------------- */

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */

@media (max-width: 1024px) {
  .about-layout    { grid-template-columns: 1fr; gap: 2.5rem; }
  .article-layout  { grid-template-columns: 1fr; }
  .article-sidebar { position: static; top: auto; }
  .footer-inner    { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.5rem 1.5rem; }
  .services-full-grid { grid-template-columns: 1fr; }
  .pillars-grid    { gap: 2.5rem; }

  /* Navbar — kompaktowy na tabletach i telefonach horyzontalnych */
  .nav-links { gap: 0; }
  .nav-link  { font-size: 0.82rem; padding: 0.3rem 0.55rem; }
}

@media (max-width: 768px) {
  /* Splash niżej o grubość tricolora — tricolor widoczny nad splashem (homepage: JS nadpisuje do top:0) */
  .splash { top: 88px; }

  /* Backdrop-filter jest zbyt drogi na mobile — zastąpiony nieprzezroczystym tłem */
  .nav-bg {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(235, 235, 235, 0.97);
    /* 8 punktów = ta sama struktura co scrolled → płynna animacja CSS */
    clip-path: polygon(
      0 0, 100% 0,
      100% 100%,
      calc(66.7% + 24px) 100%,
      66.7%              100%,
      33.3%              100%,
      calc(33.3% - 24px) 100%,
      0 100%
    );
  }

  /* Scrolled: boki odcięte jak na desktopie — bez JS, czysty CSS */
  .site-header--scrolled .nav-bg {
    clip-path: polygon(
      0 0, 100% 0,
      100%               calc(100% - 16px),
      calc(66.7% + 24px) calc(100% - 16px),
      66.7%              100%,
      33.3%              100%,
      calc(33.3% - 24px) calc(100% - 16px),
      0                  calc(100% - 16px)
    );
  }

  .nav { position: relative; padding-bottom: 16px; min-height: 60px; height: auto; }

  /* Animacja transform zamiast left — left triggeruje reflow na każdej klatce */
  .nav-toggle {
    display: flex;
    position: absolute;
    top: 34px;
    left: 50%;
    transform: translateX(calc(50vw - 2.5rem - 50%)) translateY(-50%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
  }

  .nav-brand {
    display: flex;
    position: absolute;
    top: 34px;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    overflow: hidden;
    border-radius: 4px;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.25s;
    z-index: 3;
  }

  /* Strona główna — pozycja TOP: hamburger na środku, logo ukryte */
  .page-home .site-header:not(.site-header--scrolled) .nav-toggle {
    transform: translateX(-50%) translateY(-50%);
  }
  .page-home .site-header:not(.site-header--scrolled) .nav-brand {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-brand::after {
    content: "";
    position: absolute;
    top: -10%;
    left: 0;
    width: 35%;
    height: 120%;
    background: linear-gradient(
      105deg,
      transparent 30%,
      rgba(255, 255, 255, 0.45) 50%,
      transparent 70%
    );
    animation: logoShine 4s ease-in-out 2s infinite backwards;
    pointer-events: none;
  }
  .nav-logo { height: 32px; }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: column;
    align-items: center;
    background: transparent;
    gap: 0.25rem;
    padding: 72px 1.5rem 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    width: 100%;
    /* opacity+transform animują przez GPU; max-height czeka na koniec animacji zamknięcia */
    transition: opacity 0.28s ease, transform 0.28s ease, max-height 0s 0.28s;
  }

  .nav-links.open {
    max-height: 500px;
    padding-bottom: 1rem;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    /* przy otwieraniu max-height zmienia się natychmiast, opacity+transform animują */
    transition: opacity 0.28s ease, transform 0.28s ease, max-height 0s;
  }

  .nav-link,
  .nav-link--tool,
  .nav-link--cta {
    width: auto;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: normal;
    text-align: center;
  }

  .nav-link:hover,
  .nav-link--tool:hover,
  .nav-link--cta:hover    { color: var(--blue); background: transparent; }

  .nav-link.active,
  .nav-link--tool.active,
  .nav-link--cta.active {
    background: transparent;
    color: var(--blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--blue);
  }

  /* Na mobile wyłączamy ::after — zastępuje go text-decoration */
  .nav-link::after { display: none; }

  .nav-link--tool         { font-weight: 500; }
  .nav-link--cta          { color: var(--blue); font-weight: 500; margin-left: 0; }

  /* Mobile: lang switcher — inline PL | EN */
  .lang-switcher  { width: auto; padding: 0.25rem 0; }
  .lang-btn       { display: none; }
  .lang-dropdown  { position: static; opacity: 1; visibility: visible; transform: none;
                    box-shadow: none; border: none; border-radius: 0; background: transparent;
                    display: flex; flex-direction: row; align-items: center; gap: 0; width: auto; }
  .lang-dropdown li               { display: flex; align-items: center; }
  .lang-dropdown li + li::before  { content: "|"; color: var(--border); padding: 0 0.3rem;
                                    font-size: 0.85rem; pointer-events: none; }
  .lang-option    { padding: 0.35rem 0.5rem; font-size: 0.95rem; font-weight: 600;
                    border-radius: var(--radius); }

  .values-grid     { grid-template-columns: 1fr; }
  .pillars-grid    { grid-template-columns: 1fr; gap: 0; }
  .pillar          { padding: 1.75rem 0; border-top: 1px solid var(--border); }
  .section-statement { padding: 3rem 0; }
  .contact-layout  { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats     { grid-template-columns: 1fr 1fr; }
  .about-layout    { grid-template-columns: 1fr; gap: 2rem; }
  .about-content   { order: 1; }
  .about-aside     { order: 2; }
  .cta-band-inner  { flex-direction: column; align-items: flex-start; }
  .cta-contacts    { text-align: left; }
  .section         { padding: 3.5rem 0; }
  .hero-split      { grid-template-columns: 1fr; }
  .hero-dark       { clip-path: none; padding: 3rem 1.5rem 2.5rem; }
  .hero-light      { padding: 2.5rem 1.5rem 3rem; }
  .brand-logo      { height: 60px; max-width: 118px; }
  .logos-grid      { gap: 1.5rem 2rem; }
}

@media (max-width: 540px) {
  .footer-inner    { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-stats     { grid-template-columns: 1fr 1fr; }
  .about-quote     { margin-top: 0.5rem; }
  .stat-box strong { font-size: 1.8rem; }
  .hero-actions    { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .services-full-grid { grid-template-columns: 1fr; }
  .service-full-card  { flex-direction: column; gap: 1rem; }
  .tips-grid       { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   Sphere finder tool — /porady/sfery
   ---------------------------------------------------------------- */

.sfery-page {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sfery-card {
  background:
    radial-gradient(ellipse 70% 55% at 5%  15%, rgba(255,255,255,0.05) 0%, transparent 55%),
    radial-gradient(ellipse 55% 70% at 95% 85%, rgba(239,65,53,0.18)   0%, transparent 50%),
    linear-gradient(135deg, #081730 0%, #0d2454 55%, #122f72 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.sfery-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--tricolor);
}

.sfery-heading {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.55rem;
}

.sfery-desc {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.sfery-selector {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.sfery-step { display: flex; flex-direction: column; gap: 0.4rem; }
.sfery-step--hidden { display: none; }

.sfery-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.5);
}

.sfery-select {
  padding: 0.7rem 2.5rem 0.7rem 1rem;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--transition), background-color var(--transition);
}

.sfery-select:focus {
  outline: none;
  border-color: rgba(255,255,255,0.45);
  background-color: rgba(255,255,255,0.12);
}

.sfery-select option { background: #0d2454; color: var(--white); }

.sfery-input {
  padding: 0.7rem 1rem;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font);
  width: 130px;
  transition: border-color var(--transition), background-color var(--transition);
}

.sfery-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.45);
  background-color: rgba(255,255,255,0.12);
}

.sfery-input::placeholder { color: rgba(255,255,255,0.3); }

.sfery-year-row { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.sfery-year-hint { font-size: 0.83rem; color: rgba(255,255,255,0.38); line-height: 1.4; }

/* Results */
.sfery-result {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 2rem;
}

.sph-result-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.sph-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sph-result-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--white);
}

.sph-result-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}

.sph-year-tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: 0.12rem 0.55rem;
  font-size: 0.76rem;
}

.sph-positions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.sph-axle { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sph-axle--full { width: 100%; }

.sph-badge {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 0.5rem 0.85rem;
  min-width: 96px;
}

/* Kolory badge'y według płynu hydraulicznego */
.sph-system--lhm .sph-badge {
  background:   rgba(30, 92, 48, 0.22);
  border-color: rgba(30, 92, 48, 0.50);
}
.sph-system--lds .sph-badge {
  background:   rgba(138, 152, 144, 0.22);
  border-color: rgba(138, 152, 144, 0.55);
}

/* Zachowane jako fallback gdy klasa systemu nie jest ustawiona */
.sph-badge--front { background: rgba(30,92,48,0.22);  border-color: rgba(30,92,48,0.5); }
.sph-badge--rear  { background: rgba(30,92,48,0.22);  border-color: rgba(30,92,48,0.5); }
.sph-badge--reg   { background: rgba(30,92,48,0.22);  border-color: rgba(30,92,48,0.5); }
.sph-badge--accu  { background: rgba(30,92,48,0.22);  border-color: rgba(30,92,48,0.5); }
.sph-badge--anti  { background: rgba(30,92,48,0.22);  border-color: rgba(30,92,48,0.5); }

.sph-badge-label {
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.2rem;
}

.sph-badge-code {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
}

.sph-notes {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sph-notes span { font-size: 0.82rem; color: rgba(255,255,255,0.45); }

.sfery-source {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------
   Regeneration page — /strefa-klienta/regeneracja
   ---------------------------------------------------------------- */

.regen-page {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.regen-card {
  display: flex;
  gap: 1.75rem;
  background: linear-gradient(155deg, #ffffff 0%, #f0f5ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
}

.regen-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tricolor);
}

.regen-card-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.regen-card-body { flex: 1; }

.regen-card-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.regen-card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.regen-alert { margin: 0.75rem 0; }
.regen-condition { font-size: 0.88rem !important; font-style: italic; }

.regen-price-grid {
  display: flex;
  flex-direction: column;
  margin: 1.25rem 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.regen-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}

.regen-price-row:last-child { border-bottom: none; }
.regen-price-row span  { color: var(--text-muted); }
.regen-price-row strong { color: var(--text); font-weight: 700; white-space: nowrap; }
.regen-price-row--sep  { border-top: 2px solid var(--border); }

.regen-warranty-note {
  font-size: 0.85rem !important;
  color: var(--blue) !important;
  font-weight: 500;
}

.regen-cta {
  margin-top: 1.25rem;
  display: inline-block;
}

@media (max-width: 540px) {
  .regen-card { flex-direction: column; gap: 1rem; padding: 1.5rem 1.25rem; }
  .regen-card-icon { width: 42px; height: 42px; }
  .regen-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    padding: 0.55rem 0.75rem;
  }
  .regen-price-row strong {
    white-space: normal;
    font-size: 0.95rem;
  }
}

.sph-diagram-svg {
  width: 62%;
  display: block;
  margin: 0.75rem auto 1.25rem;
}

@media (max-width: 768px) {
  .sph-diagram-svg { width: 92%; }
}

@media (max-width: 540px) {
  .sfery-card { padding: 2rem 1.25rem; }
}

@media (max-width: 380px) {
  .about-stats     { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   Sphere buy modal
   ---------------------------------------------------------------- */

.sph-buy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sph-buy-overlay[hidden] { display: none; }

.sph-buy-modal {
  position: relative;
  background: linear-gradient(135deg, #081730 0%, #0d2454 55%, #122f72 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  padding: 2rem 2rem 1.75rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.sph-buy-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.sph-buy-close:hover { background: rgba(255,255,255,0.18); color: var(--white); }

.sph-buy-code {
  font-family: monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 0.4rem 1rem;
  display: inline-block;
}

.sph-buy-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin: 0.75rem 0 0.5rem;
}

.sph-buy-msg {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.sph-buy-btn {
  display: inline-block;
  width: 100%;
}

/* Badge clickable indicator */
.sph-badge[data-sphere] { cursor: pointer; }
.sph-badge[data-sphere]:hover { opacity: 0.82; }
