/* Ustawienie podstawowej czcionki i koloru tła dla całej strony */
body {
  font-family: 'Inter', 'Poppins', Arial, sans-serif; /* Nowoczesna czcionka */
  background: #f8f8f8; /* Bardzo jasnoszare tło */
  color: #232323; /* Główny kolor tekstu */
  margin: 0; /* Usuwa domyślne marginesy */
  padding: 0; /* Usuwa domyślne odstępy */
  overflow: scroll;
  scrollbar-width: none;
  -ms-text-overflow-style:none;

}
body::-webkit-scrollbar {
  display: none;
}
/* --- Główne MENU --- */



/* --- HERO: powitanie --- */
.hero {
  background: #eaf8f4;
  position: relative;
  overflow: hidden;
  /*            Zaczynamy od 200px z dołu */
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
@media (max-width: 700px) {
  .hero {
      min-height: 60vh;
    background-position: center;
  }
}


.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px; /* Szerokość powitania */
  margin: auto; /* Automatyczne wyśrodkowanie */
  padding: 50px 20px 20px 20px; /* Odstępy wewnątrz sekcji */
  color: #ffffff;
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);

}
.hero-content h1 {
  font-size: 2.2rem; /* Wielkość nagłówka */
  margin-bottom: 14px; /* Odstęp pod h1 */
  font-family: 'Poppins', Arial, sans-serif; /* Nowoczesna czcionka */
  color: #009B72; /* Zielony */
  font-weight: 800; /* Bardzo pogrubione */
  color: #ffffff;
text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);

}
.hero-content p {
  font-size: 1.12rem; /* Większy tekst */
  margin-bottom: 24px; /* Odstęp pod paragrafem */
  color: #ffffff; /* Trochę ciemniejszy szary */
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  background: #000;
}
.hero--video-error {
  background: #eaf8f4;
}


/* --- Sekcja "O nas" --- */
.about-section {
  background: #fff; /* Białe tło */
  /*margin-top: 26px; /* Odstęp nad sekcją */
  padding: 45px 0 28px 0; /* Padding góra/dó */
  /*border-radius: 28px; /* Zaokrąglenie rogów */
  box-shadow: 0 2px 16px rgba(0, 155, 114, 0.06); /* Delikatny cień */
  /*max-width: 900px; /* Maksymalna szerokość sekcji */
  margin-left: auto;
  margin-right: auto; /* Wyśrodkowanie sekcji */
  max-width:none;
}
.about-content {
  display: flex;
  align-items: stretch;      /* Logo i tekst na pełną wysokość siebie nawzajem */
  justify-content: stretch;  /* Rozciąga zawartość na całą szerokość */
  width: 100%;
  gap: 40px;
  min-height: 260px;         /* Minimalna wysokość sekcji, możesz dopasować */
}
.about-text {
  flex: 1 1 0;        /* Tekst rośnie do pełnej dostępnej szerokości */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.about-logo {
  flex: 1 1 0;        /* Logo rośnie do pełnej dostępnej szerokości */
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.about-img-logo {
  max-width: 100%;      /* Logo nie wyjdzie poza swój blok */
  max-height: 320px;    /* Maksymalna wysokość, możesz zwiększyć */
  width: auto;
  height: auto;
  object-fit: contain;  /* Logo nigdy nie wyjdzie poza swój kontener */
}
@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
    gap: 22px;
    min-height: unset;
  }
  .about-logo, .about-img-logo {
    max-height: 160px;
  }
}


/* --- Efekt podkreślenia pod nagłówkiem sekcji --- */
.section-title {
  position: relative; /* Umożliwia pozycjonowanie ::after względem nagłówka */
  display: inline-block; /* Żeby podkreślenie miało szerokość nagłówka */
  font-size: 2rem; /* Przykładowa wielkość nagłówka */
  font-weight: 800; /* Bardziej pogrubiony */
  color: #174b36;   /* Twoja ciemna zieleń lub navy */
  margin-bottom: 18px; /* Odstęp pod nagłówkiem */
}
.section-title::after {
  content: '';
  width: 80px;           /* Szerokość podkreślenia */
  height: 4px;           /* Grubość podkreślenia */
  background: #009B72;   /* Twoja firmowa zieleń */
  border-radius: 2px;    /* Zaokrąglone końce */
  position: absolute;
  bottom: -10px;         /* Odstęp poniżej tekstu */
  left: 50%;             /* Wyśrodkowanie */
  transform: translateX(-50%); /* Dokładne wyśrodkowanie */
}
/* --- Sekcja "Dlaczego my" --- */
.container, .why-container {
  text-align: center; /* Wyśrodkowanie zawartości, w tym .section-title */
}

.why-section {
  background: #f3f7f6; /* Szara zieleń */
  margin-top: 0;
  padding: 45px 0 28px 0;
  border-radius: 28px;
  box-shadow: 0 2px 16px rgba(0, 155, 114, 0.05);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 25px;
}
.why-box {
  background: #fff;
  border-radius: 17px;
  padding: 28px 18px;
  box-shadow: 0 4px 24px rgba(0,155,114,0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 420px;
  box-sizing: border-box;
}

.why-box h3 {
  color: #009B72;
  font-size: 1.34rem; /* większy tytuł */
  font-weight: 700;
  margin-bottom: 10px;
  min-height: 48px;
}

.why-box img {
  width: 120px;       /* większa ikona */
  height: 120px;
  object-fit: contain;
  margin-bottom: 10px; /* mniejszy odstęp */
  margin-top: 6px;
}

.why-box p {
  color: #444;
  font-size: 1.08rem; /* trochę większy tekst */
  line-height: 1.5;
  margin-top: auto;
}


/* --- Stopka --- */
.footer {
  background: #174b36; /* Ciemna zieleń */
  color: #fff; /* Biały tekst */
  padding: 38px 0 18px 0; /* Odstęp góra/dó */
}
.footer-grid {
  display: grid; /* Grid layout */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Trzy kolumny w stopce */
  gap: 25px; /* Odstęp między kolumnami */
  margin-bottom: 13px; /* Odstęp na dole */
  align-items: flex-start; /* Wyrównanie do góry */
}
.logo-col {
  text-align: left; /* Logo wyrównane do lewej */
}
.footer-logo {
  width: 110px; /* Szerokość logo w stopce */
  margin-bottom: 10px; /* Odstęp pod logo */
}
.footer-col h4 {
  font-size: 1.09rem; /* Wielkość nagłówków w stopce */
  margin-bottom: 9px;
  font-family: 'Poppins', sans-serif;
}
.footer-menu {
  list-style: none; /* Brak kropek */
  padding: 0; /* Bez paddingu */
}
.footer-menu li {
  margin-bottom: 6px; /* Odstęp między linkami */
}
.footer-menu li a {
  color: #e0fff2; /* Jasnozielony link */
  text-decoration: none;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s;
}
.footer-menu li a:hover {
  color: #009B72; /* Po najechaniu – zielony */
}
.footer-bottom {
  text-align: center; /* Wyśrodkowanie napisu na dole */
  padding-top: 15px;
  font-size: 0.96rem;
  color: #aee6d5; /* Bardzo jasna zieleń */
}


/*dla wszystkich*/
.container {
  max-width:none;    /* Ustal szerokość max. np. 900/1000/1100px */
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
  padding-left: 18px;   /* Odstępy po bokach, np. 18-32px */
  padding-right: 18px;
}


/*footer*/
.footer {
  background: #174b36;
  color: #fff;
  padding: 48px 0 22px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);  /* Cztery równe kolumny */
  gap: 32px;
  margin-bottom: 14px;
  align-items: center;
  width: 100%;
  max-width: 1100px;         /* Tyle samo co .container */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding: 0 18px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.logo-col {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.footer-logo {
  width: 120px;          /* Zwiększaj/zmnieszaj wg efektu */
  max-width: 90%;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
}
.footer-col h4 {
   font-size: 1.25rem; /* większy nagłówek dla mniejszej pustki */
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-menu li {
  margin-bottom: 6px;
}
.footer-menu li a {
  color: #e0fff2;
  text-decoration: none;
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s;
}
.footer-menu li a:hover {
  color: #009B72;
}
.footer-bottom {
  text-align: center;
  padding-top: 16px;
  font-size: 1.05rem;
  color: #aee6d5;
  font-family: 'Inter', 'Poppins', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Responsywność: poniżej 900px - 2 kolumny, poniżej 600px - 1 kolumna */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }
  .footer-col, .logo-col {
    align-items: center;
    justify-content: center;
  }
  .footer-logo {
    margin: 0 auto 10px auto;
  }
}
/*===================Wynajem.php===========*/
/*kafelki wynajmu samochodów*/
/* 3D perspektywa pod "nurkowanie" przodem */
.car-grid { perspective: 1000px; }
.car-box { transform-style: preserve-3d; }
/* Bazowe podniesienie (lift) i przygotowanie do łączenia transformów */
.car-box{
  --hover-t: translateZ(0);                /* baza pod transform */
  transform: var(--hover-t);
  transition: transform .35s ease, box-shadow .35s ease;
  transform-origin: 50% 86%;               /* pivot bliżej dołu, efekt "kartki" */
  will-change: transform, box-shadow;
  cursor: pointer;
}
.car-box:hover{
  --hover-t: translateY(-6px) scale(1.01) rotateX(.25deg);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

/* ——— WIGGLE tylko dla wolnych ——— */
.car-box[data-status="wolny"]:hover{
  animation: callout-wiggle 1.4s ease-in-out infinite;
}

@keyframes callout-wiggle{
  0%,100% { transform: var(--hover-t) translateX(0) rotateZ(0); }
  20%     { transform: var(--hover-t) translateX(3px)  rotateZ(.7deg); }
  40%     { transform: var(--hover-t) translateX(-3px) rotateZ(-.7deg); }
  60%     { transform: var(--hover-t) translateX(2px)  rotateZ(.5deg); }
  80%     { transform: var(--hover-t) translateX(-2px) rotateZ(-.5deg); }
}

/* Szacunek dla preferencji dostępności */
@media (prefers-reduced-motion: reduce){
  .car-box[data-status="wolny"]:hover{ animation: none; }
}
/* Ukrycie do czasu startu sekwencji (gdy JS jest aktywny) */
.js .car-grid:not(.sequence-started) .car-box { opacity: 0; }

/* WOLNE — szybki wjazd + hamowanie z lekkim odbiciem zawieszenia */
.car-box.free-anim {
  transform-origin: 50% 85%;  /* dó  rodka – wygląda jak przechył nadwozia */
  animation: fastDriveInBrake var(--t, 900ms) cubic-bezier(.18,.9,.22,1) both;
  will-change: transform, opacity;
}


/* ZAJĘTE — ciche, miękkie podjechanie */
.car-box.busy-anim {
  animation: softRollIn 700ms cubic-bezier(.22,.61,.36,1) both;
  will-change: transform, opacity, filter;
}

/* Kluczowe klatki */
@keyframes fastDriveInBrake {
  0%   { opacity: 0; transform: translateX(-120vw) rotateZ(0deg); }
  55%  { opacity: 1; transform: translateX(14px)    rotateZ(0deg); }
  /* hamowanie – wyraźny przechył w PRAWO */
  75%  {           transform: translateX(0)         rotateZ(10deg); }
  /* odbicie zawieszenia – lekki przechył w LEWO */
  90%  {           transform: translateX(0)         rotateZ(-3deg); }
  100% {           transform: translateX(0)         rotateZ(0deg); }
}

@keyframes softRollIn {
  0%   { opacity: 0; transform: translateY(16px) scale(0.98) rotateZ(0.6deg); filter: blur(0.8px); }
  80%  { opacity: 1; transform: translateY(-1px) scale(1.01) rotateZ(-0.4deg); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotateZ(0deg); }
}


/* Dostępność */
@media (prefers-reduced-motion: reduce) {
  .js .car-grid:not(.sequence-started) .car-box { opacity: 1; }
  .car-box.free-anim, .car-box.busy-anim { animation: none !important; }
}
/* === Unoszenie i rotacja kafelka przy hoverze === */

.car-box {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

/*.car-box.shake {
  animation: shakeCard 0.45s ease-in-out 1;
}*/

/*@keyframes shakeCard {
  0%   { transform: translateY(-12px) rotateX(4deg) rotateY(1deg); }
  25%  { transform: translateY(-12px) rotateX(4deg) rotateY(2deg) translateX(2px); }
  50%  { transform: translateY(-12px) rotateX(4deg) rotateY(-2deg) translateX(-2px); }
  75%  { transform: translateY(-12px) rotateX(4deg) rotateY(1.5deg) translateX(1px); }
  100% { transform: translateY(-12px) rotateX(4deg) rotateY(1deg); }
}*/


/* Dodatkowo: animacja hover podnoszenia kartki (dla wszystkich) */
.car-box:hover {
  transform: translateY(-12px) rotateX(4deg) rotateY(1deg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}


/* === Kluczowe klatki animacji shake === 
@keyframes shakeCard {
  0%   { transform: translateY(-12px) rotateX(4deg) rotateY(1deg); }
  25%  { transform: translateY(-12px) rotateX(4deg) rotateY(2deg) translateX(2px); }
  50%  { transform: translateY(-12px) rotateX(4deg) rotateY(-2deg) translateX(-2px); }
  75%  { transform: translateY(-12px) rotateX(4deg) rotateY(1.5deg) translateX(1px); }
  100% { transform: translateY(-12px) rotateX(4deg) rotateY(1deg); }
}*/
/*.car-box::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  animation: none;
}*/

.car-box.shake::after {
  animation: shakeX 0.45s ease-in-out 1;
}

/*@keyframes shakeX {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(2px); }
  40%  { transform: translateX(-2px); }
  60%  { transform: translateX(1px); }
  80%  { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}*/

.car-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}
.car-info {
width: 62%;
  font-size: 0.94rem;
  padding-left: 8px; /* zmniejszona odległość od zdjęcia */
  padding: 12px;
  font-size: 14px;
}
.car-image {
  width: 38%;
  max-width: 220px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* kluczowe: dopasuj proporcje do kontenera */
  border-radius: 12px;
}

.car-description {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

.car-description.visible {
  max-height: 400px;
  opacity: 1;
}



.car-description.show {
  display: block;
}
.car-box {
  cursor: pointer;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: box-shadow 3.0 s ease;
  width: 280px;
  border: 1px solid #ccc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  background: #fff;
  transition: transform 1.0s;
  cursor: pointer;
  position: relative;
  max-width: 300px;
  min-height: 250px; /* opcjonalnie */
}
.car-box:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transform: scale(1.02);
}
.car-photo {
   width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.car-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 0 auto; /* wyśrodkowanie kafelków */
}

/* animacja wjazdu kafelków */
.car-box.slide-from-left,
.car-box.slide-from-right {
  opacity: 0;
}
.car-box.slide-from-left {
  transform: translateX(-40px);
}
.car-box.slide-from-right {
  transform: translateX(40px);
}
.car-box.in-view {
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
}
.car-box.slide-from-left.in-view {
  animation-name: slideInLeft;
}
.car-box.slide-from-right.in-view {
  animation-name: slideInRight;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 14px;
  max-width: 700px;    /* ⬅️ zmniejszone z 720px */
  width: 88%;
  max-height: 85vh;
  overflow-y: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  font-size: 0.95rem;
}

.modal-body {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
}

.modal-image-side img {
  max-width: 220px;      /* ⬅️ zmniejszone z 500px */
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.modal-info-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
}

.modal-info-side h3 {
  font-size: 1.3rem;     /* ⬅️ zmniejszone */
  margin-bottom: 6px;
}

.modal-info-side p,
#modal-parameters p {
  margin: 0;
  font-size: 0.95rem;
  color: #333;
}


.close-button {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
    align-items: center;
  }

  .modal-content {
    max-width: 90%;
    padding: 16px;
  }

  .modal-image-side img {
    max-width: 100%;
  }
}


.modal-info-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.modal-info-side h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.modal-info-side p,
#modal-parameters p {
  margin: 0;
  font-size: 1.05rem;
  color: #333;
}

.close-button {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 26px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
    align-items: center;
  }

  .modal-image-side img {
    max-width: 100%;
  }

  .modal-content {
    max-width: 95%;
    padding: 16px;
  }
}

.modal.show {
  display: flex;
}
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}
/* Animacje modalu */
.modal-image-side,
#modal-title,
#modal-status span,
#modal-parameters p,
#modal-desc {
  opacity: 0;
}

.modal-description-block {
  border-top: 1px solid #ccc;
  padding-top: 14px;
  font-size: 1rem;
  color: #444;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  word-break: break-word;
  white-space: pre-wrap;
 
}




.status-free {
  color: green;
}

.status-busy {
  color: red;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal.show .modal-image-side {
  animation: slideInLeft 0.6s forwards;
}

.modal.show #modal-title {
  animation: slideInRight 0.6s forwards 0.3s;
}

.modal.show #modal-status .status-label {
  animation: slideInLeft 0.6s forwards 0.6s;
}

.modal.show #modal-status .status-value {
  animation: slideInRight 0.6s forwards 0.9s;
}

.modal.show #modal-parameters p:nth-child(1) {
  animation: slideInRight 0.6s forwards 1.2s;
}
.modal.show #modal-parameters p:nth-child(2) {
  animation: slideInLeft 0.6s forwards 1.5s;
}
.modal.show #modal-parameters p:nth-child(3) {
  animation: slideInRight 0.6s forwards 1.8s;
}
.modal.show #modal-parameters p:nth-child(4) {
  animation: slideInLeft 0.6s forwards 2.1s;
}
.modal.show #modal-parameters p:nth-child(5) {
  animation: slideInRight 0.6s forwards 2.4s;
}

.modal.show #modal-desc {
  animation: fadeIn 0.6s forwards 2.7s;
}
body.modal-open {
  overflow: hidden;
  padding-right: 17px; /* kompensuje znikający pasek scrolla */
}
/* Blokada scrolla tylko podczas animacji */
.modal.animating .modal-content {
  overflow-y: hidden !important;
}
/* === Globalnie ukryj scrollbary, ale zostaw przewijanie === */
:root, html, body, * {
  -ms-overflow-style: none;   /* IE/Edge (stary) */
  scrollbar-width: none;      /* Firefox */
}
*::-webkit-scrollbar {
  display: none;              /* Chrome/Edge/Safari/Opera */
  width: 0;
  height: 0;
}

/* Body może przewijać zawsze — ale bez widocznego scrollbara */
html, body {
  overflow: auto !important;  /* zamiast "overflow: scroll" z początku pliku */
}

/* Nie blokuj przewijania i nie dodawaj sztucznego paddingu przy modalu */
body.modal-open {
  overflow: auto !important;  /* zamiast hidden */
  padding-right: 0 !important;/* usuń kompensację 17px */
}

/* Modal nadal przewijany, ale bez paska */
.modal-content,
.modal-description-block {
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.modal-content::-webkit-scrollbar,
.modal-description-block::-webkit-scrollbar {
  display: none;
}

/* Podczas animacji nie wyłączaj przewijania w kontencie modala */
.modal.animating .modal-content {
  overflow-y: auto !important; /* nadpisuje wcześniejsze hidden */
}

/* (opcjonalnie) Stabilne krawędzie viewportu */
html { scrollbar-gutter: stable both-edges; }
/* === Scroll reveal – kierunki i fade === */
.reveal {
  opacity: 0;
  transform: translateY(20px);                 /* stan bazowy */
  transition:
    opacity 650ms ease,
    transform 650ms ease;
  transition-delay: var(--reveal-delay, 0ms);  /* na potrzeby kaskady */
  will-change: opacity, transform;
}

.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX( 40px); }
.reveal-up    { transform: translateY( 40px); }

.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/*=========================kafelki wynajem===========*/
/* Gdy ktoś woli mniej ruchu – dostępność */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
/* === Podniesienie (kartka) dla wszystkich === */
.car-box:hover{
  transform: translateY(-12px) rotateX(4deg) rotateY(1deg);
  box-shadow: 0 14px 28px rgba(0,0,0,.15);
  transition: transform .35s ease, box-shadow .35s ease;
}

/* === Pseudo-element, który będzie drżał === */
.car-box::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;   /* żeby nie wychodził poza kafelek */
  pointer-events:none;
  /* domyślnie brak animacji */
}

/* tylko gdy mamy klasę .shake – uruchom samą drgawkę */
.car-box.shake::after{
  animation: shakeX .45s ease-in-out;
}

/* KEYFRAMES – drżenie w osi X, BEZ ruszania scale / rotate */
@keyframes shakeX{
  0%{   transform:translateX(0);  }
  20%{  transform:translateX( 2px);}
  40%{  transform:translateX(-2px);}
  60%{  transform:translateX( 1px);}
  80%{  transform:translateX(-1px);}
  100%{ transform:translateX(0);  }
}
/* === Podniesienie kartki dla wszystkich =============== */
.car-box:hover{
  transform: translateY(-12px) rotateX(4deg) rotateY(1deg);
  box-shadow: 0 14px 28px rgba(0,0,0,.15);
  transition: transform .35s ease, box-shadow .35s ease;
}

/* === Połączenie animacji: wjazd + (opcjonalny) shake === */
.car-box.free-anim{
  --drv-delay: 0ms;          /* JS ustawi kaskadę          */
  --shake: none;             /* startowo brak drżenia      */
  transform-origin: 50% 85%;
  animation:
       fastDriveInBrake 0.9s cubic-bezier(.18,.9,.22,1) both var(--drv-delay),
       var(--shake);         /* placeholder na shake       */
  will-change: transform, opacity;
}

.car-box.busy-anim{
  --drv-delay: 0ms;
  animation:
       softRollIn 0.7s cubic-bezier(.22,.61,.36,1) both var(--drv-delay);
  will-change: transform, opacity, filter;
}

/* Shake uruchamiany tylko w hover – 2 gi wpis animacji */
@keyframes shakeX{
  0%{   transform:translateX(0); }
 20%{   transform:translateX( 2px);}
 40%{   transform:translateX(-2px);}
 60%{   transform:translateX( 1px);}
 80%{   transform:translateX(-1px);}
100%{   transform:translateX(0); }
}

.car-box.free-anim:hover{
  --shake: shakeX .45s ease-in-out 1;
}
.slogan-text {
  color: #f7c873;
  font-size: 2.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: transform 0.6s ease, opacity 0.6s ease;
  white-space: normal;
  overflow: hidden;
   display: block;
  margin: 0 auto;
  max-width: 100%;
  position: relative;
}

.slogan-exit {
  transform: translateX(100%);
  opacity: 0;
}

.slogan-enter {
  transform: translateX(-100%);
  opacity: 0;
}
/* Strzałka w zielonym kóku – lepsza widoczność */
/* ===== Scroll arrow in green circle (auto-scaled to header) ===== */
:root{
  --arrow-size: 56px;                 /* JS to nadpisze dynamicznie */
  --arrow-gap-bottom: clamp(12px, 2.5vh, 24px);
  --arrow-bg: #009B72;
  --arrow-bg-hover: #00a77e;
  --arrow-ring: rgba(0,155,114,.2);
  --arrow-border: rgba(12,80,63,.85);
}

.scroll-arrow {
  position: fixed;
  bottom: var(--arrow-gap-bottom);
  left: 50%;
  transform: translate(-50%, 0);
  width: var(--arrow-size);
  height: var(--arrow-size);
  border-radius: 9999px;
  background: var(--arrow-bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow:
    0 10px 22px rgba(0,0,0,.25),
    0 0 0 2px var(--arrow-ring);
  border: 1px solid var(--arrow-border);
  z-index: 9999;
  transition: opacity .25s, transform .18s, box-shadow .18s, background .18s;
  cursor: pointer;
  opacity: .98;
  animation: arrow-bounce 3s infinite;
}

/* SVG w środku skaluje się względem koła */
.scroll-arrow svg {
  width: 46%;
  height: 46%;
  display: block;
}

.scroll-arrow:hover {
  transform: translate(-50%, -1px);
  box-shadow:
    0 12px 26px rgba(0,0,0,.28),
    0 0 0 2px rgba(0,155,114,.26);
  background: var(--arrow-bg-hover);
}

.scroll-arrow.hide {
  opacity: 0;
  pointer-events: none;
}

/* Delikatny bounce */
@keyframes arrow-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -5px); }
  60% { transform: translate(-50%, -2px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-arrow { animation: none; }
}
/* Blog styles */
.breadcrumbs {
  max-width: 900px;
  margin: 16px auto 0;
  padding: 0 16px;
  color: #607d8b;
}
.breadcrumbs a {
  color: #009B72;
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}

.article {
  max-width: 900px;
  margin: 12px auto 40px;
  padding: 0 16px;
}
.article-cover {
  width: 100%;
  border-radius: 16px;
  margin: 8px 0 18px;
  display: block;
}
.article h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: #174b36;
  margin: 16px 0 10px;
}
.article .meta {
  color: #607d8b;
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.article .content {
  margin-top: 20px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.tag {
  display: inline-block;
  background: #e6f6f2;
  color: #065b3a;
  border: 1px solid #b4e0d3;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-right: 6px;
}
.back {
  display: inline-block;
  margin: 0 16px 8px;
  color: #009B72;
  text-decoration: none;
}
.back:hover {
  text-decoration: underline;
}

.blog-section,
.blog-section *,
.article,
.article * {
  box-sizing: border-box;
}

.blog-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 10px;
}
.blog-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}
.blog-toolbar input[type="search"] {
  flex: 1 1 240px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d5dbe3;
}
.blog-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 18px;
}
.blog-tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e6f6f2;
  color: #065b3a;
  border: 1px solid #b4e0d3;
  font-weight: 600;
}
.blog-tag.active {
  background: #009B72;
  color: #fff;
  border-color: #009B72;
}

.blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.blog-card {
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.blog-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.blog-card .body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #174b36;
}
.blog-card h3 a {
  color: #174b36;
  text-decoration: none;
}
.blog-meta {
  font-size: 0.85rem;
  color: #607d8b;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.blog-meta a {
  color: #009B72;
  text-decoration: none;
}
.blog-meta a:hover {
  text-decoration: underline;
}
.blog-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #009B72;
  color: #009B72;
}
.btn:hover {
  background: #009B72;
  color: #fff;
}
.btn-danger {
  border-color: #ef4444;
  color: #ef4444;
}
.btn-danger:hover {
  background: #ef4444;
  color: #fff;
}
.blog-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 40px;
}
.blog-empty {
  text-align: center;
  color: #607d8b;
  margin: 30px 0;
}