/* ---------- Nasze auta: przełącznik Na miejscu / W transporcie ---------- */
section.block.nasze-auta { padding-top: 1.8rem; }
.fleet-switch-row { display: flex; justify-content: center; margin-bottom: 2rem; }
.fleet-switch { position: relative; display: inline-flex; padding: 5px; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 6px 22px rgba(14,15,17,0.06); }
.fleet-switch-thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); background: var(--red); border-radius: 999px; box-shadow: 0 4px 16px rgba(20,23,26,0.18); transition: transform 0.35s cubic-bezier(0.65,0,0.35,1); }
/* ta sama obracająca się biała obwódka co w przycisku "Katalog samochodów" w headerze */
.fleet-switch-thumb::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--social-toggle-angle), transparent 0%, transparent 75%, #fff 92%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: social-toggle-shine 2.6s linear infinite;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .fleet-switch-thumb::before { animation: none; } }
.fleet-switch[data-active="transit"] .fleet-switch-thumb { transform: translateX(100%); }
.fleet-switch-btn { position: relative; z-index: 1; flex: 1 1 0; min-width: 11rem; padding: 0.85rem 1.6rem; border: 0; background: transparent; color: var(--ink-soft); font: inherit; font-weight: 600; font-size: 0.95rem; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color 0.25s; }
.fleet-switch-btn.is-active { color: #fff; }
.fleet-switch-btn:not(.is-active):hover { color: var(--ink); }
.fleet-switch-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fleet-switch-count { display: inline-block; margin-left: 0.5rem; min-width: 1.4rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: rgba(14,15,17,0.08); font-size: 0.75rem; line-height: 1.4; }
.fleet-switch-btn.is-active .fleet-switch-count { background: rgba(255,255,255,0.2); }
.fleet-switch-count:empty { display: none; }
.stock-fleet[hidden] { display: none; }

.fleet-empty { max-width: 560px; margin: 1rem auto 0; padding: 2.6rem 1.6rem; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; }
.fleet-empty[hidden] { display: none; }
.fleet-empty-icon { width: 62px; height: 62px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--paper-soft, #F2F1EE); color: var(--ink); }
.fleet-empty-icon svg { width: 30px; height: 30px; }
.fleet-empty h3 { margin-bottom: 0.5rem; }
.fleet-empty p { color: var(--ink-soft); }
.fleet-empty-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 1.4rem; }
@media (max-width: 520px) {
  .fleet-switch { width: 100%; }
  .fleet-switch-btn { min-width: 0; padding: 0.8rem 0.6rem; font-size: 0.88rem; }
}

/* ---------- Nasze auta: hero od samej góry strony (pod headerem) ---------- */
body.page-nasze-auta header.site { position: fixed; top: 0; left: 0; right: 0; }
.nasze-hero { position: relative; height: clamp(380px, 54vh, 560px); overflow: hidden; background: var(--dark, #0E0F11); }
.nasze-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.nasze-hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,11,13,0.85), rgba(10,11,13,0.3) 55%, rgba(10,11,13,0.15)); }
.nasze-hero-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 6rem; padding-bottom: 2.6rem; }
.nasze-hero-content .eyebrow { color: rgba(255,255,255,0.75); }
.nasze-hero-content h1 { color: #fff; }
.nasze-hero-content .katalog-sub { color: rgba(255,255,255,0.8); }

/* ---------- Nasze auta: szersza strona, 4 kafelki w rzędzie ---------- */
.wrap.wrap-wide { max-width: 1840px; }
.nasze-auta .stock-grid { gap: 1.1rem; align-items: stretch; }
.nasze-auta .stock-card {
  flex: 0 0 calc(25% - 0.83rem); aspect-ratio: auto; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 6px 22px rgba(14,15,17,0.06); transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.nasze-auta .stock-card:hover { box-shadow: 0 12px 30px rgba(14,15,17,0.12); transform: translateY(-2px); }
/* zdjęcie na górze, dane pod spodem */
.nasze-auta .stock-media { position: relative; inset: auto; flex: none; aspect-ratio: 4/3; }
.nasze-auta .stock-scrim { display: none; }
.nasze-auta .stock-top-right { top: 0.8rem; right: 0.8rem; }
.nasze-auta .stock-info { position: static; flex: 1; display: flex; flex-direction: column; padding: 1.2rem 1.25rem 1.25rem; color: var(--ink); pointer-events: auto; }
.nasze-auta .stock-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.7rem; min-height: 2.1rem; }
.nasze-auta .stock-info h3 { color: var(--ink); font-size: 1.3rem; margin-bottom: 0.4rem; }
.stock-badge { margin-bottom: 0; font-size: 0.68rem; padding: 0.32rem 0.7rem 0.32rem 0.55rem; }
.stock-badge svg { width: 13px; height: 13px; }
.stock-badge.badge-electric { background: rgba(34,197,94,0.12); border-color: rgba(22,163,74,0.4); color: #15803d; }
.stock-badge.badge-phev { background: rgba(14,165,233,0.12); border-color: rgba(2,132,199,0.4); color: #0369a1; }
.stock-badge.badge-sold { background: rgba(14,15,17,0.07); border: 1px solid rgba(14,15,17,0.2); color: var(--ink-soft); }
.stock-badge.badge-petrol { background: rgba(249,115,22,0.12); border-color: rgba(234,88,12,0.4); color: #c2410c; }
.nasze-auta .stock-specs { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 0; margin: 0.4rem 0 1.1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nasze-auta .stock-specs .spec:last-child:nth-child(odd) { grid-column: 1 / -1; }
.nasze-auta .spec { gap: 0.6rem; align-items: center; padding: 0.7rem 0.8rem 0.7rem 0; background: none; border-radius: 0; }
.nasze-auta .spec + .spec { border-left: 0; padding-left: 0; }
.nasze-auta .spec:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
.nasze-auta .spec:nth-child(n+3) { border-top: 1px solid var(--line); }
.nasze-auta .spec svg { width: 19px; height: 19px; stroke: var(--ink-soft); }
.nasze-auta .spec-label { font-size: 0.62rem; color: var(--fog, #8a8f98); line-height: 1.2; }
.nasze-auta .spec-value { font-size: 0.88rem; color: var(--ink); line-height: 1.25; }
.stock-more-btn {
  margin-top: 0; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1rem; border: 0; border-radius: 999px; background: var(--red); color: #fff;
  font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
}
.stock-more-btn:hover { background: #7d1f25; transform: translateY(-1px); }
.stock-more-btn svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.stock-more-btn:hover svg { transform: translateX(3px); }
.stock-more-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* cena: jak wcześniej (obok plakietki), z pulsowaniem czcionki */
.nasze-auta .stock-meta-row .stock-price { margin-left: auto; font-size: 1.8rem; line-height: 1; color: var(--ink); text-shadow: none; transform-origin: right center; animation: price-pulse 2.4s ease-in-out infinite; }
@keyframes price-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09); } }
@media (prefers-reduced-motion: reduce) { .nasze-auta .stock-meta-row .stock-price { animation: none; } }
/* sprzedany: oznaczenie tylko na zdjęciu */
.nasze-auta .stock-card.is-sold .stock-info { opacity: 0.55; }
@media (max-width: 1100px) { .nasze-auta .stock-card { flex-basis: calc(50% - 0.5rem); } }
@media (max-width: 640px) { .nasze-auta .stock-card { flex-basis: 100%; } }

.fleet-loading { text-align: center; color: var(--ink-soft); padding: 2rem 0; }
.fleet-loading[hidden] { display: none; }

/* ---------- okno "Więcej informacji" ---------- */
.fleet-modal { position: fixed; inset: 0; z-index: 330; display: none; align-items: center; justify-content: center; padding: 1.2rem; background: rgba(10,11,13,0.6); overflow: auto; }
.fleet-modal.open { display: flex; }
.fleet-modal-box { position: relative; width: min(1060px, 100%); max-height: 100%; overflow: auto; background: #fff; border-radius: 22px; padding: 1.8rem 1.8rem 1.6rem; box-shadow: 0 30px 70px rgba(0,0,0,0.35); }
.fleet-modal-close { position: absolute; top: 0.9rem; right: 0.9rem; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--paper-soft, #F3F2EF); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fleet-modal-close svg { width: 16px; height: 16px; }
.fleet-modal-head { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.5rem; padding-right: 2.5rem; }
.fleet-modal h2 { font-size: 1.45rem; font-weight: 400; margin: 0.2rem 0 0.2rem; }
.fleet-modal-price { font-family: 'Anton', var(--font-display); font-weight: 400; font-size: 1.8rem; margin-bottom: 0.8rem; }
.fleet-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.fleet-modal-row { display: flex; flex-direction: column; gap: 0.05rem; padding: 0.5rem 0.2rem; border-bottom: 1px solid var(--line); }
.fleet-modal-row span { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fog); }
.fleet-modal-row b { font-size: 0.95rem; font-weight: 500; }
@media (max-width: 520px) { .fleet-modal-box { padding: 1.4rem 1.2rem; } .fleet-modal-grid { grid-template-columns: 1fr; } }
.nasze-auta .spec-value { white-space: normal; overflow-wrap: anywhere; }
.nasze-auta .spec { min-width: 0; }
.fleet-modal .stock-badge { margin: 0; }
.fleet-modal-head .stock-badge.badge-sold { background: #fff; }
.fleet-modal .stock-more-btn { text-decoration: none; }

/* przycisk na kafelku: jasny szary (czerwony zostaje w oknie karty auta) */
.stock-card .stock-more-btn { background: #E9E8E5; color: var(--ink); }
.stock-card .stock-more-btn:hover { background: #DDDCD8; }
.stock-card.is-sold .stock-more-btn { background: #EFEEEB; }

/* galeria w oknie karty auta */
.fleet-modal-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.8rem; align-items: start; }
.fleet-modal-layout.no-gallery { grid-template-columns: 1fr; }
.fleet-gallery { min-width: 0; }
.fleet-gallery-main { position: relative; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; background: #0E0F11; }
.fleet-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.fleet-gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; background: rgba(14,15,17,0.55); color: #fff; backdrop-filter: blur(4px); transition: background 0.2s; }
.fleet-gallery-arrow:hover { background: rgba(14,15,17,0.8); }
.fleet-gallery-arrow svg { width: 18px; height: 18px; }
.fleet-gallery-arrow.prev { left: 0.7rem; }
.fleet-gallery-arrow.next { right: 0.7rem; }
.fleet-gallery-counter { position: absolute; left: 0.8rem; bottom: 0.8rem; font-family: var(--font-mono); font-size: 0.72rem; color: #fff; background: rgba(14,15,17,0.55); border-radius: 999px; padding: 0.2rem 0.6rem; }
.fleet-gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.6rem; overflow-x: auto; padding-bottom: 0.3rem; scrollbar-width: thin; }
.fleet-gallery-thumb { flex: 0 0 76px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; opacity: 0.7; transition: opacity 0.2s, border-color 0.2s; }
.fleet-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fleet-gallery-thumb:hover { opacity: 1; }
.fleet-gallery-thumb.is-active { border-color: var(--red); opacity: 1; }
.fleet-modal-info { min-width: 0; }
@media (max-width: 860px) { .fleet-modal-layout { grid-template-columns: 1fr; gap: 1.2rem; } .fleet-modal-head { padding-right: 0; } .fleet-gallery { margin-top: 1.6rem; } }

.fleet-modal-desc { margin-top: 0.9rem; padding: 0.75rem 0.95rem; background: var(--paper-soft, #F3F2EF); border-radius: 12px; }
.fleet-modal-desc span { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fog); margin-bottom: 0.3rem; }
.fleet-modal-desc p { margin: 0; min-height: 3.2em; font-size: 0.88rem; font-weight: 400; line-height: 1.5; color: var(--ink-soft); white-space: pre-line; }
.fleet-modal-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; margin-top: 0.9rem; }
.fleet-modal-phone { min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.45rem; padding: 0.8rem 0.4rem 0.75rem; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color 0.2s, background 0.2s; }
.fleet-modal-phone:hover { border-color: var(--ink); background: var(--paper-soft, #F3F2EF); }
.fleet-modal-phone-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--paper-soft, #F3F2EF); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fleet-modal-phone-icon svg { width: 18px; height: 18px; }
.fleet-modal-phone-text { display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.fleet-modal-phone-text small { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fog); }
.fleet-modal-phone-text b { font-size: 0.98rem; font-weight: 500; white-space: nowrap; }
/* WhatsApp: zielona ramka */
.fleet-modal-wa { border: 1.5px solid #25D366; }
.fleet-modal-wa:hover { border-color: #1da851; background: rgba(37,211,102,0.08); }
.fleet-modal-wa .fleet-modal-phone-icon { background: rgba(37,211,102,0.12); color: #1da851; }
@media (max-width: 520px) { .fleet-modal-phones { grid-template-columns: 1fr; } .fleet-modal-phone { flex-direction: row; justify-content: flex-start; text-align: left; padding: 0.6rem 0.9rem; gap: 0.8rem; } .fleet-modal-phone-text { align-items: flex-start; } }
