/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--radius-btn);
  text-decoration: none;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 2; }

.btn-primary { background: var(--red); color: var(--white); padding: 13px 28px; }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 4px 12px rgba(168,25,22,0.3); }
.btn-primary:active { background: var(--red-darker); }

.btn-outline-dark {
  background: transparent; color: var(--dark);
  border: 1.5px solid var(--dark); padding: 12px 28px;
}
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }

.btn-outline-white {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.7); padding: 12px 28px;
}
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.btn-lg { font-size: 17px; padding: 15px 36px; }
.btn-sm { font-size: 14px; padding: 9px 20px; }

/* Link strzałkowy - spójny styl wg guidelines (zamiast »/>>) */
.arrow-link {
  color: var(--red); font-size: 15px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.arrow-link::before { content: '→'; transition: transform 0.15s; }
.arrow-link:hover { text-decoration: underline; }
.arrow-link:hover::before { transform: translateX(3px); }

.arrow-link-sm { font-size: 14px; }

/* ============================================
   NAVIGATION / MEGA MENU
   ============================================ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,250,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.navbar.is-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,0.08); }

.navbar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; height: 80px; gap: 32px;
}
.navbar-logo { display: flex; align-items: center; flex-shrink: 0; }
.navbar-logo img { height: 56px; width: auto; }

.navbar-nav { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; }
.nav-item { position: relative; }
.nav-link {
  font-size: 15px; font-weight: 400; color: var(--dark);
  padding: 10px 14px; border-radius: var(--radius-btn);
  display: flex; align-items: center; gap: 4px;
  transition: color 0.15s; background: none; border: none;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--red); }
.nav-link .chevron { width: 14px; height: 14px; opacity: 0.5; transition: transform 0.15s; stroke-width: 2; }
.nav-item.is-open .nav-link .chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow-lg); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.nav-item.is-open .nav-dropdown, .nav-item:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown-link { display: block; padding: 10px 14px; font-size: 15px; color: var(--dark); border-radius: 6px; }
.nav-dropdown-link:hover { background: var(--red-tint); color: var(--red); }
.nav-dropdown-link .ext { font-size: 12px; color: var(--text-light); margin-left: 4px; }

/* Wyróżnienie linku do kalkulatora (menu + stopka).
   nowrap, bo pogrubiony tekst z emoji nie mieścił się w szerokości dropdownu
   i płomień spadał do drugiej linii. */
.link-flame { font-size: 0.95em; line-height: 1; vertical-align: baseline; }
.nav-dropdown-link:has(.link-flame),
.footer-link:has(.link-flame) { font-weight: 600; white-space: nowrap; }

.navbar-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-phone { font-size: 14px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.nav-phone svg { width: 16px; height: 16px; color: var(--red); stroke-width: 2; }

.navbar-toggle {
  display: none; background: none; border: none; width: 40px; height: 40px;
  align-items: center; justify-content: center; color: var(--dark); flex-shrink: 0;
}
.navbar-toggle svg { width: 24px; height: 24px; stroke-width: 2; }

@media (max-width: 1024px) {
  .navbar-nav, .nav-phone { display: none; }
  .navbar-toggle { display: flex; }
  .navbar-inner { height: 64px; gap: 12px; }
  .navbar.is-open .navbar-nav {
    display: flex; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 0;
    box-shadow: var(--shadow-md); max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .navbar.is-open .nav-item { width: 100%; }
  .navbar.is-open .nav-link { width: 100%; justify-content: space-between; padding: 14px 8px; }
  .navbar.is-open .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; display: none; padding: 0 0 8px 12px;
  }
  .navbar.is-open .nav-item.is-open .nav-dropdown { display: block; }
}

@media (max-width: 480px) {
  .navbar-logo img { height: 44px; }
  .navbar-cta .btn-label { display: none; }
  .navbar-cta .btn { padding: 10px; }
  .navbar-cta .btn svg { margin: 0; }
}

/* ============================================
   MEDIA PLACEHOLDER - ikona wewnątrz (device/pin)
   ============================================ */
.media-placeholder-icon { width: 40px; height: 40px; color: #B0B0AF; margin-bottom: 10px; stroke-width: 1.5; }
.media-placeholder-inner { display: flex; flex-direction: column; align-items: center; }

/* ============================================
   SPLIT (2-kolumnowe sekcje: hero, czym-jest, itd.)
   ============================================ */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.split-reverse .split-media { order: -1; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-reverse .split-media { order: 0; }
}

/* ============================================
   TABLET I NIŻEJ - wyśrodkowanie treści i buttonów
   Gdy kolumny układają się jedna pod drugą, tekst wyrównany do lewej
   wygląda na przypadkowy - poniżej 900px centrujemy nagłówki, opisy
   i przyciski. Listy, tabele i karty zostają do lewej (czytelność).
   ============================================ */
@media (max-width: 900px) {
  .page-hero-content,
  .hero-content,
  .split > div:not(.split-media),
  .cta-final-content { text-align: center; }

  .page-hero-content .breadcrumb,
  .page-hero-actions,
  .hero-actions,
  .split-actions,
  .dlaczego-actions,
  .split > div:not(.split-media) .btn-row { justify-content: center; }

  .page-hero-desc,
  .hero-desc,
  .split > div:not(.split-media) > p,
  .split > div:not(.split-media) .section-intro,
  .cta-final-content .section-intro { margin-left: auto; margin-right: auto; }

  /* wyjątki - te elementy pozostają wyrównane do lewej */
  .split .checklist,
  .split .checklist-2col,
  .split .checklist-item,
  .split .check-row-item,
  .split .responsibility-list,
  .split .faq-item,
  .split table,
  .cta-final-content .cta-step { text-align: left; }
}

/* ============================================
   CHECKLIST - wiersze z checkmarkiem (używane w kilku sekcjach)
   ============================================ */
.checklist { display: flex; flex-direction: column; gap: 16px; }
.checklist-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.checklist-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 16px; color: var(--text-muted); line-height: 1.5;
}
.checklist-item strong { color: var(--dark); }
.check-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--red); margin-top: 2px;
}
.check-icon svg { width: 100%; height: 100%; stroke-width: 2.5; fill: none; }
.check-icon.on-dark { color: #E8908E; }

/* Wiersz-accordion z checkmarkiem + chevronem (Kiedy warto) */
.check-row-item { background: var(--white); border-left: 3px solid var(--red); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); overflow: hidden; }
.check-row {
  width: 100%; min-height: 78px; display: flex; align-items: center; gap: 12px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-body);
  padding: 16px 20px;
  box-sizing: border-box;
}
.check-row-text { flex: 1; font-size: 16px; color: var(--dark); line-height: 1.4; }
.check-row-chevron { width: 18px; height: 18px; color: var(--text-light); flex-shrink: 0; stroke-width: 2; transition: transform 0.2s; }
.check-row-item.is-open .check-row-chevron { transform: rotate(180deg); color: var(--red); }
.check-row-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.check-row-answer-inner { padding: 0 20px 18px 50px; font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.check-row-item.is-open .check-row-answer { max-height: 220px; }

.check-rows-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
@media (max-width: 768px) { .check-rows-grid, .checklist-2col { grid-template-columns: 1fr; } }

/* ============================================
   ZAUFALI NAM - loga klientów
   ============================================ */
.logos-section { background: var(--white); border-bottom: 1px solid var(--border); }
.logos-header { text-align: center; margin-bottom: 32px; }
.logos-header h2 { font-size: 22px; }
.logos-row-wrap { position: relative; overflow: hidden; width: 100%; }
.logos-row-wrap::before, .logos-row-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.logos-row-wrap::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.logos-row-wrap::after { right: 0; background: linear-gradient(270deg, var(--white), transparent); }
.logos-row { display: flex; align-items: center; gap: 56px; width: max-content; animation: logos-scroll 32s linear infinite; will-change: transform; transform: translateZ(0); }
.logos-row:hover { animation-play-state: paused; }
.logo-pill {
  height: 150px; min-width: 200px; padding: 0 20px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  filter: grayscale(1); opacity: 0.65; transition: all 0.2s;
}
.logo-pill:hover { opacity: 1; filter: none; }
.logo-pill img { max-height: 120px; max-width: 320px; object-fit: contain; }
@keyframes logos-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 700px) {
  .logo-pill { height: 96px; min-width: 130px; }
  .logo-pill img { max-height: 72px; max-width: 200px; }
}

/* ============================================
   PŁYWAJĄCE ZDJĘCIA POSIŁKÓW - dekoracja przy scrollu (sitewide, reużywalny komponent)

   Wzorzec z /modele-wspolpracy.html - używany też na /automat-z-posilkami.html.
   Przy dodawaniu na kolejnych podstronach zachować te same 3 zdjęcia i kolejność
   lewo/prawo dla spójności w całym serwisie:
     img/galeria-posilkow-luncherbox-02.webp - floating-dish-wrap-right
     img/galeria-posilkow-luncherbox-01.webp - floating-dish-wrap-left
     img/galeria-posilkow-luncherbox-03.webp - floating-dish-wrap-right

   Markup (na sekcji dodać klasę .has-floating-dish, position:relative już stąd):
   <div class="floating-dish-wrap floating-dish-wrap-right|left" aria-hidden="true">
     <div class="floating-dish"><img src="img/galeria-posilkow-luncherbox-0X.webp" alt="" loading="lazy"></div>
   </div>
   JS (widoczność/fade) i CSS poniżej są już wspólne w main.js / components.css.
   ============================================ */
.has-floating-dish { position: relative; }

/* Wrapper rozciąga się na całą wysokość sekcji i nie wchodzi w normalny
   przepływ dokumentu (position:absolute) - wewnątrz niego .floating-dish
   jest sticky, więc "jedzie" ze scrollem tak jak podnawigacja (.subnav),
   dopóki wrapper (czyli sekcja) nie dobiegnie końca. */
.floating-dish-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 300px;
  pointer-events: none;
}
.floating-dish-wrap-right { right: -85px; }
.floating-dish-wrap-left { left: -85px; }

.floating-dish {
  position: sticky;
  top: 200px;
  width: 300px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-media);
  overflow: hidden;
  opacity: 0;
  will-change: opacity;
}
.floating-dish img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 1240px) {
  .floating-dish-wrap { display: none; }
}

/* ============================================
   SEGMENT CARD (Dla kogo - 4 branże)
   ============================================ */
.segments-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.segment-card {
  display: flex; gap: 24px;
  background: var(--white); border-left: 3px solid var(--red);
  border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
  padding: 24px; align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.segment-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.segment-card-media { width: 110px; height: 110px; flex-shrink: 0; border-radius: var(--radius-media); }
.segment-card-media .media-placeholder-icon { width: 26px; height: 26px; margin-bottom: 4px; }
.segment-card-media .media-placeholder-label { font-size: 10px; padding: 4px; }
.segment-card h3 { font-size: 18px; margin-bottom: 6px; }
.segment-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }

@media (max-width: 768px) {
  .segments-grid { grid-template-columns: 1fr; }
  .segment-card { flex-direction: column; align-items: flex-start; }
  /* stała wysokość 140px przy pełnej szerokości karty dawała pasek o proporcji
     ok. 4.4:1, na którym nie było widać zdjęcia - proporcja 3/2 z limitem
     wysokości działa i na wąskim telefonie, i na szerokim tablecie */
  .segment-card-media { width: 100%; height: auto; aspect-ratio: 3/2; max-height: 320px; }
}

/* ============================================
   KORZYŚCI - sekcja ciemna, karty Pracodawca/Pracownicy
   ============================================ */
.benefits-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.benefit-card { background: var(--white); border-radius: var(--radius-card); border-top: 3px solid var(--red); overflow: hidden; }
.benefit-card-header { display: flex; align-items: center; gap: 14px; padding: 24px 28px; border-bottom: 1px solid var(--border-light); }
.benefit-card-icon {
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  background: var(--red-tint); color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.benefit-card-icon svg { width: 22px; height: 22px; stroke-width: 2; }
.benefit-card-header h3 { font-size: 19px; }
.benefit-card-body { padding: 20px 28px 26px; display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 768px) { .benefits-cards-grid { grid-template-columns: 1fr; } }

/* ============================================
   MODELE WSPÓŁPRACY - 3 karty
   ============================================ */
.models-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.model-card {
  background: var(--white); border-top: 3px solid var(--red);
  border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
  padding: 28px 26px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.model-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.model-card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--red-tint); color: var(--red);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.model-card-icon svg { width: 24px; height: 24px; stroke-width: 2; }
.model-card h3 { font-size: 19px; margin-bottom: 8px; }
.model-card p { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 900px) { .models-grid { grid-template-columns: 1fr; } }

/* ============================================
   KROKI WDROŻENIA - 5 kroków
   ============================================ */
.steps-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 32px; }
.step-card { background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); padding: 24px 20px; }
.step-badge {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: var(--white);
  font-family: var(--font-head); font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step-card h3 { font-size: 16px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 1024px) { .steps-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .steps-row { grid-template-columns: 1fr; } }

/* ============================================
   PODZIAŁ OBOWIĄZKÓW - LuncherBox / Firma
   ============================================ */
.split-responsibility { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.responsibility-card {
  border-radius: var(--radius-card); padding: 28px 32px;
}
.responsibility-card.is-luncherbox { background: var(--white); border-left: 3px solid var(--red); box-shadow: var(--shadow-sm); }
.responsibility-card.is-client { background: var(--dark); color: var(--white); }
.responsibility-card.is-client .checklist-item { color: rgba(255,255,255,0.85); }
.responsibility-card h3 { font-size: 18px; margin-bottom: 20px; }
.responsibility-card.is-client h3 { color: var(--white); }
.responsibility-list { display: flex; flex-direction: column; gap: 14px; }
.responsibility-list-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }

@media (max-width: 768px) {
  .split-responsibility { grid-template-columns: 1fr; }
  .responsibility-list-2col { grid-template-columns: 1fr; }
}

/* ============================================
   REALIZACJE - case study cards
   ============================================ */
.case-studies-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-study-card { background: var(--white); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, transform 0.2s; }
.case-study-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.case-study-media { aspect-ratio: 4/3; position: relative; }
.case-study-tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--dark); color: var(--white);
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: var(--radius-pill);
}
.case-study-body { padding: 22px 24px; }
.case-study-body h3 { font-size: 18px; margin-bottom: 8px; }
.case-study-body p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }

@media (max-width: 900px) { .case-studies-grid { grid-template-columns: 1fr; } }

/* ============================================
   FAQ - accordion
   ============================================ */
.faq-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; text-align: left; cursor: pointer;
  padding: 20px 24px; font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--dark);
}
.faq-chevron { width: 18px; height: 18px; color: var(--text-light); flex-shrink: 0; transition: transform 0.2s; stroke-width: 2; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); color: var(--red); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  font-size: 15px; color: var(--text-muted); line-height: 1.65;
}
.faq-answer-inner { padding: 0 24px 20px; }
.faq-item.is-open .faq-answer { max-height: 240px; }
#faq > .container > h2 { margin-bottom: 32px; }
.faq-single { max-width: 1040px; margin: 0 auto; }
.faq-single .faq-list { display: block; column-count: 2; column-gap: 24px; }
.faq-single .faq-item { break-inside: avoid; margin-bottom: 12px; }
@media (max-width: 700px) {
  .faq-single .faq-list { column-count: 1; }
}

.faq-media { display: flex; flex-direction: column; gap: 14px; width: 240px; margin-left: auto; padding-top: 4px; }
.faq-media .media-placeholder { aspect-ratio: 4/3; border-radius: var(--radius-media); background: none; }

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-media { width: 240px; margin: 0 auto; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--dark); padding: 64px 0 0; color: rgba(255,255,255,0.7); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; }
.footer-logo-name img { height: 48px; width: auto; margin-bottom: 16px; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.5); max-width: 280px; line-height: 1.6; margin-bottom: 16px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-contact a:hover { color: var(--white); }
.footer-col-title {
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4); margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 14px; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer-link:hover { color: var(--white); }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.social-btn {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); transition: all 0.15s;
}
.social-btn svg { width: 16px; height: 16px; stroke-width: 2; }
.social-btn:hover { border-color: rgba(255,255,255,0.4); color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom-text { font-size: 13px; color: rgba(255,255,255,0.3); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,0.3); transition: color 0.15s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ============================================
   SCROLL PROGRESS (dekoracyjny pasek pod navbarem)
   ============================================ */
.page-progress {
  position: fixed; top: 0; left: 0; width: 0%; height: 3px;
  background: var(--red); z-index: 101; transition: width 0.1s;
}

/* ============================================
   STICKY CTA (dolny prawy róg)
   ============================================ */
.sticky-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  box-shadow: var(--shadow-lg);
}
.sticky-cta.is-visible { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 640px) {
  .sticky-cta { left: 16px; right: 16px; bottom: 16px; width: auto; justify-content: center; }
}

/* ============================================
   REVEAL ON SCROLL - szybkie, 0.4s (poprawka #10 guidelines)
   ============================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease-out, transform 0.4s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================
   FORMULARZ - komponenty wielokrotnego użytku
   (homepage CTA, /kontakt, itp.)
   ============================================ */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 14px; font-weight: 500; color: var(--dark);
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-btn);
  padding: 11px 14px; background: var(--white);
  transition: border-color 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none; border-color: var(--red);
}
.form-field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888887' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  padding-right: 36px;
}
.form-field textarea { resize: vertical; min-height: 90px; font-family: var(--font-body); }

.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-option {
  font-family: var(--font-body); font-size: 14px; color: var(--dark);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 8px 18px; cursor: pointer; transition: all 0.15s;
}
.pill-option:hover { border-color: var(--dark); }
.pill-option.is-selected { border-color: var(--red); background: var(--red-tint); color: var(--red); }

.form-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-muted); line-height: 1.5; cursor: pointer;
}
.form-checkbox input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--red); flex-shrink: 0; cursor: pointer; }
.form-checkbox a { color: var(--red); text-decoration: underline; }

.required-mark { color: var(--red); }
.form-required-note { font-size: 12px; color: var(--text-muted); margin-top: -8px; }

.cta-form-submit { width: 100%; justify-content: center; margin-top: 4px; }

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   POPRAWKA GRID - elementy siatki (1fr) domyślnie nie kurczą się
   poniżej szerokości swojej treści (np. nierozdzielanego tekstu
   przycisku), co powoduje poziome nachodzenie na wąskich ekranach.
   ============================================ */
.split > *,
.segments-grid > *,
.benefits-cards-grid > *,
.models-grid > *,
.steps-row > *,
.split-responsibility > *,
.case-studies-grid > *,
.form-row > *,
.footer-top > *,
.cta-final-grid > *,
.check-rows-grid > *,
.checklist-2col > *,
.responsibility-list-2col > *,
.faq-layout > * {
  min-width: 0;
}

/* Na telefonie zwężamy przyciski, żeby długie etykiety mieściły się w jednej
   linii. Warianty konturowe dostają o 1,5px mniej z każdej strony - tyle, ile
   zajmuje ich obramowanie - dzięki czemu mają tę samą wysokość co wypełnione. */
@media (max-width: 600px) {
  .btn-primary,
  .btn-lg { padding: 15px 28px; }
  .btn-outline-dark,
  .btn-outline-white { padding: 13.5px 26.5px; }

  /* Przyciski to elementy inline, więc ich szerokość zależy od długości
     etykiety - obok siebie wyglądały jak przypadkowo różne i przyklejone do
     lewej krawędzi. Na telefonie dostają pełną szerokość kolumny.
     Wyjątki: mała wersja w nagłówku i pływający przycisk telefonu, które
     mają własne rozmiary. */
  .btn:not(.btn-sm):not(.sticky-cta) {
    display: flex; width: 100%; justify-content: center;
  }
  .btn-row, .hero-actions, .models-actions, .page-hero-actions, .error-actions {
    align-items: stretch;
  }
}

/* Długie etykiety przycisków mogą zawijać się na wąskich ekranach zamiast rozpychać layout */
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
  /* Najdłuższa etykieta w serwisie ("Porozmawiajmy o Waszych potrzebach")
     przy 17px zajmuje 306px, a przy szerokości 375px zostaje na tekst 279px.
     Zejście do 15px daje 270px i mieści ją w jednej linii. */
  .btn-lg { font-size: 15px; }
}

/* ============================================
   MOBILE - wyśrodkowanie tekstów i kafli
   ============================================ */
@media (max-width: 600px) {
  h1, h2, h3,
  .section-label, .section-intro, .hero-desc, .hero-content,
  .callout-dark, .dla-kogo-area,
  .model-card, .step-card, .case-study-body, .cta-final-note,
  .cta-steps-label {
    text-align: center;
  }
  .model-card-icon, .step-badge, .service-card-icon {
    margin-left: auto; margin-right: auto;
  }
  .benefit-card-header { flex-direction: column; text-align: center; }
  .segment-card { flex-direction: column; align-items: center; text-align: center; }
  /* Selektor musi być tak samo szczegółowy jak wyjątek ".cta-final-content
     .cta-step { text-align: left }" z sekcji tabletowej - inaczej nagłówek
     kroku środkuje się, a opis pod nim zostaje przy lewej krawędzi. */
  .cta-final-content .cta-step,
  .cta-step { flex-direction: column; align-items: center; text-align: center; }
  .cta-final-phone { align-items: center; text-align: center; }
  .logos-header, .steps-header { text-align: center; }
}

/* ============================================
   CTA KOŃCOWE (sekcja formularza nad stopką) - WSPÓŁDZIELONE
   Ta sama struktura na każdej podstronie; zmienia się tylko nagłówek.
   ============================================ */
#cta-final { background: var(--dark); }
#cta-final h2 { color: var(--white); margin-bottom: 16px; }
#cta-final .section-intro { color: rgba(255,255,255,0.7); font-size: 17px; line-height: 1.6; margin-bottom: 32px; max-width: 480px; }

.cta-final-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.cta-steps-label {
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}
.cta-steps { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.cta-step { display: flex; gap: 16px; align-items: flex-start; }
.cta-step .step-badge { flex-shrink: 0; margin-bottom: 0; }
.cta-step h3 { color: var(--white); font-size: 17px; margin-bottom: 6px; }
.cta-step p { color: rgba(255,255,255,0.65); font-size: 15px; line-height: 1.6; }

.cta-final-note {
  font-style: italic; color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.6;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); margin-bottom: 24px;
}

.cta-final-phone { display: flex; flex-direction: column; gap: 6px; }
.cta-final-phone-label { font-size: 14px; color: rgba(255,255,255,0.55); }
.cta-final-phone a {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--white);
}
.cta-final-phone a svg { width: 20px; height: 20px; color: var(--red); stroke-width: 2; flex-shrink: 0; }

.cta-form-card {
  background: var(--white); border-radius: var(--radius-media);
  padding: 40px; box-shadow: var(--shadow-lg);
}
.cta-form-card h3 { font-size: 20px; margin-bottom: 24px; }
.cta-form { display: flex; flex-direction: column; gap: 20px; }

@media (max-width: 900px) {
  .cta-final-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .cta-form-card { padding: 28px 20px; }
}

/* ============================================
   STRONY PRAWNE (polityka prywatności itp.)
   ============================================ */
.legal-prose { max-width: 800px; }
.legal-prose h2 { font-size: 22px; margin: 40px 0 14px; }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p { font-size: 16px; line-height: 1.75; color: var(--text-muted); margin-bottom: 14px; }
.legal-prose ul { margin: 0 0 18px 22px; }
.legal-prose li { font-size: 16px; line-height: 1.75; color: var(--text-muted); margin-bottom: 6px; }
.legal-prose a { color: var(--red); text-decoration: underline; }
.legal-updated { margin-top: 40px; font-size: 14px; color: var(--text-light); font-style: italic; }

/* ============================================
   WIDEO W HERO
   Materiał jest pionowy (1080x1440, proporcja 3:4), a sloty w hero były
   poziome (4:3). Zamiast rozciągać obraz, ramka przyjmuje proporcję wideo
   i jest wyśrodkowana w kolumnie - limit szerokości trzyma ją w ryzach,
   żeby na desktopie nie urosła na całą wysokość ekranu.
   ============================================ */
.hero-video {
  width: min(100%, 400px);
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  border-radius: var(--radius-media);
  overflow: hidden;
  background: var(--dark);
  box-shadow: var(--shadow-sm);
}
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) { .hero-video { width: min(100%, 360px); } }
@media (max-width: 600px) { .hero-video { width: min(100%, 320px); } }

/* Komunikat błędu formularza (gdy nie uda się wysłać do HubSpota) */
.form-error {
  background: var(--red-tint); border-left: 3px solid var(--red);
  color: var(--red-dark); font-size: 15px; line-height: 1.5;
  padding: 12px 16px; border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
  margin-bottom: 16px;
}
