/* ============================================================
   DRONIARZ by Imprezole – main.css (Tesla-style, clean blue)
   ============================================================ */

/* --------------------
   DESIGN TOKENS
-------------------- */

:root {
  --bg-page: #f4f6fb;
  --bg-alt: #ffffff;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #e0edff;
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --border-subtle: #e5e7eb;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* --------------------
   RESET / BASE
-------------------- */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at 50% 0, #eef2ff 0, #f4f6fb 40%, #ffffff 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* główna kolumna treści */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------
   LAYOUT
-------------------- */

.site-main {
  min-height: calc(100vh - 120px);
  padding-top: 96px; /* odsunięcie od sticky headera */
}

/* skoki do #kotwic – nic nie wchodzi pod header */
section[id],
[id^="section-"],
[id^="block-"] {
  scroll-margin-top: 110px;
}

/* --------------------
   HEADER – TESLA STYLE
-------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}

/* logo */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: radial-gradient(circle at 20% 0, #93c5fd 0, #2563eb 40%, #0f172a 100%);
  color: #e5f0ff;
  font-size: 13px;
  font-weight: 600;
}

.logo-text {
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: #111827;
}

.logo-text span {
  color: #9ca3af;
}

/* nav + auth */

.nav-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
}

.nav-link {
  position: relative;
  padding: 6px 8px;
  font-size: 14px;
  color: #4b5563;
  border-radius: var(--radius-pill);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: #111827;
  background: #f3f4f6;
}

/* aktywny link (dodaj w PHP klasę nav-link--active) */
.nav-link--active {
  background: #eef2ff;
  color: #1d4ed8;
  font-weight: 500;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nav-user {
  font-size: 13px;
  color: var(--text-muted);
}

/* burger */

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
}

/* dropdown "Więcej" – opcjonalnie */

.nav-more {
  position: relative;
}

.nav-more-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  margin-top: 6px;
  padding: 8px 0;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  display: none;
  z-index: 50;
}

.nav-more-link {
  display: block;
  padding: 7px 14px;
  font-size: 13px;
  color: #374151;
}

.nav-more-link:hover {
  background: #f3f4f6;
  color: #111827;
}

.nav-more.is-open .nav-more-menu {
  display: block;
}

/* --------------------
   BUTTONS
-------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease,
    transform 0.1s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #1e40af);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #111827;
  border-color: #e5e7eb;
}

.btn-outline:hover {
  background: #f3f4f6;
}

.btn-light {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.6);
  color: #111827;
}

.btn-light:hover {
  background: #f3f4f6;
}

/* headerowe przyciski mniejsze */

.nav-auth .btn {
  padding: 6px 14px;
  font-size: 13px;
}

/* --------------------
   HERO – produkt premium
-------------------- */

.hero {
  position: relative;
}

.hero-photo {
  position: relative;
  min-height: 75vh;
  padding: 0;
  background-image:
      radial-gradient(circle at 15% 0, rgba(191, 219, 254, 0.8), transparent 55%),
      radial-gradient(circle at 85% 20%, rgba(148, 163, 184, 0.45), transparent 60%),
      url("/assets/img/hero-drone.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-main);
}

.hero-inner {
  padding-top: 96px;
  padding-bottom: 72px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero-text {
  max-width: 640px;
  background: rgba(255, 255, 255, 0.96);
  padding: 22px 26px 24px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
}

.hero-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.9);
  color: #4b5563;
}

.pill-soft {
  background: #dbeafe;
  border-color: rgba(129, 140, 248, 0.7);
  color: #1e3a8a;
}

.pill-ghost {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(148, 163, 184, 0.6);
  color: #4b5563;
}

.hero h1 {
  margin: 4px 0 8px;
  font-size: 32px;
  line-height: 1.25;
}

.text-gradient {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.metric-card {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.metric-number {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.metric-label {
  font-size: 12px;
  color: #4b5563;
}

/* prawa kolumna hero – zostawiona na później */
.hero-showcase {
  display: none;
}

/* --------------------
   SEKCJE / GRIDY / KARTY
-------------------- */

.section {
  padding: 56px 0;
  background: var(--bg-page);
  border-top: 1px solid #eef2f7;
}

.section-alt {
  padding: 56px 0;
  background: radial-gradient(circle at top, #eef2ff 0, #f9fafb 40%, #f4f6fb 100%);
  border-top: 1px solid #e5e7eb;
}

.section-header {
  max-width: 640px;
  margin-bottom: 24px;
}

.section-header h1,
.section-header h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 600;
}

.section-header p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* żadnych pasków pod nagłówkami */
.section-header,
.section-header h1,
.section-header h2 {
  background: transparent !important;
  box-shadow: none !important;
}

/* siatki */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* karty */

.info-card,
.step-card,
.gallery-card,
.form-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 18px 18px 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.info-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.info-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.card-list {
  margin: 10px 0 0;
  padding-left: 16px;
  font-size: 13px;
  color: #4b5563;
}

.card-list li {
  margin-bottom: 4px;
}

/* kroki */

.step-card {
  position: relative;
}

.step-number {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 18px;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.9);
}

/* cytaty */

.quote {
  margin: 0;
  font-size: 14px;
  font-style: italic;
}

.quote-meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------
   GALERIA – filtry + siatka 4 kolumny
-------------------- */

/* filtry nad galerią */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.gallery-filter {
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.gallery-filter:hover {
  border-color: #2563eb;
  color: #1d4ed8;
}

.gallery-filter.is-active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.45);
}

/* siatka – „Pinterest”, ale z równą wysokością (16:9) */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* pojedyncza karta */

.gallery-card {
  position: relative;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

/* przycisk z miniaturą – zawsze 16:9 */

.gallery-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: none;
  cursor: pointer;
  background: #020617;
  overflow: hidden;
}

/* MINIATURA: start – mono + lekki zoom-in */

.gallery-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

  transform: scale(1.08);
  filter: grayscale(1) saturate(0.15) contrast(1.1);
  transition:
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.5s ease;
}

/* HOVER: zoom-out + kolor */

.gallery-card:hover .gallery-thumb img {
  transform: scale(1.0);
  filter: grayscale(0) saturate(1.1) contrast(1.05);
}

/* overlay „Powiększ” */

.gallery-thumb::after {
  content: "Powiększ";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  text-align: center;
  color: #e5edff;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.75),
    rgba(37, 99, 235, 0.85)
  );
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-card:hover .gallery-thumb::after {
  opacity: 1;
  transform: translateY(0);
}

/* podpis pod zdjęciem */

.gallery-desc {
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(to bottom, #f9fafb, #f3f4f6);
}

/* --------------------
   CTA BANNER
-------------------- */

.cta-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.35);
}

.cta-text h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.cta-text p {
  margin: 0;
  font-size: 14px;
  color: #e0f2fe;
}

.cta-actions {
  display: flex;
  align-items: flex-end;
}

/* --------------------
   FORMULARZE / ALERTY
-------------------- */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: flex-start;
}

.form-title {
  margin: 0 0 10px;
  font-size: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 13px;
}

.form-field span {
  color: #4b5563;
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1);
}

.form-submit {
  margin-top: 6px;
  width: 100%;
}

.form-aside .info-card {
  height: 100%;
}

.alert {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.alert.success {
  background: #ecfdf3;
  border: 1px solid #16a34a33;
  color: #166534;
}

.alert.error {
  background: #fef2f2;
  border: 1px solid #ef444433;
  color: #991b1b;
}

/* --------------------
   BLOK KONTAKTU (2 karty)
-------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: stretch;
}

.contact-hero-card {
  padding: 24px 26px;
  border-radius: 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 40%, #1e3a8a 100%);
  color: #f9fafb;
  box-shadow: 0 18px 42px rgba(30, 64, 175, 0.32);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.contact-hero-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.contact-hero-card p {
  margin: 0;
  font-size: 14px;
  color: #e2e8f0;
}

.contact-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-hero-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  font-size: 12px;
}

.contact-hero-metric .metric-number {
  font-weight: 600;
  color: #ffffff;
}

.contact-hero-metric .metric-label {
  color: #e5edff;
}

.contact-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.contact-hero-cta .btn-light {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.5);
  color: #111827;
  padding-inline: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.3);
}

.contact-hero-cta .btn-light:hover {
  background: #eef2ff;
}

.contact-hero-phone {
  font-size: 13px;
  color: #e5e7eb;
}

.contact-form-wrap .form-card {
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.contact-privacy {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* --------------------
   FOOTER
-------------------- */

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #6b7280;
}

.footer-inner a {
  color: inherit;
  text-decoration: underline;
}

/* --------------------
   LIGHTBOX – zoom + strzałki
-------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lightbox.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  border: none;
}

/* kontener na obraz + UI */
.lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* OBRAZ – naturalne proporcje */
.lightbox-content img,
#lightboxImg {
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.2s ease;
}

/* zamykanie */
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: rgba(15, 23, 42, 0.75);
  border-radius: 999px;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 20px;
  color: #e5edff;
  cursor: pointer;
}

/* strzałki nawigacji */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.75);
  color: #e5edff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* zoom controls w rogu */
.lightbox-zoom-controls {
  position: absolute;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 6px;
}

.lightbox-zoom-btn {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.85);
  color: #e5edff;
  font-size: 14px;
  cursor: pointer;
  padding: 0 10px;
}

/* --------------------
   BACK TO TOP
-------------------- */

.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.3);
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 55;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* --------------------
   ANIMACJE SCROLL (reveal)
-------------------- */

.reveal,
.reveal-left,
.reveal-right,
.reveal-zoom {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left {
  transform: translateX(-24px);
}

.reveal-right {
  transform: translateX(24px);
}

.reveal-zoom {
  transform: scale(0.94);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-zoom.active {
  opacity: 1;
  transform: none;
}

/* --------------------
   RWD
-------------------- */

@media (max-width: 1024px) {
  .grid-3,
  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  }

  .hero-inner {
    padding-top: 90px;
  }
}

@media (max-width: 960px) {
  .header-inner {
    height: 56px;
  }

  .nav-wrapper {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav-wrapper.is-open {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 16px 12px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
  }

  .nav-wrapper.is-open .nav {
    flex-direction: column;
    align-items: flex-start;
    margin: 0 0 8px 0;
  }

  .nav-wrapper.is-open .nav-link {
    width: 100%;
    padding: 7px 4px;
  }

  .nav-wrapper.is-open .nav-auth {
    justify-content: flex-start;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .hero-text {
    max-width: 100%;
  }

  .metrics-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid-3,
  .step-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .cta-text h2 {
    font-size: 18px;
  }
}
/* ====== GALERIA BEZ BIAŁYCH RAMEK – TYLKO MINIATURA ====== */

/* karta ma być niewidoczna – tylko jako wrapper do JS */
.gallery-card {
  position: relative;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* cała „karta” wizualnie to miniatura 16:9 */
.gallery-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: none;
  cursor: pointer;
  background: #020617;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

/* hover – lekki lift */
.gallery-card:hover .gallery-thumb {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.26);
}

/* obrazek – mono + zoom-out do koloru (zostawiam jak było) */
.gallery-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.08);
  filter: grayscale(1) saturate(0.15) contrast(1.1);
  transition:
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.5s ease;
}

.gallery-card:hover .gallery-thumb img {
  transform: scale(1.0);
  filter: grayscale(0) saturate(1.1) contrast(1.05);
}

/* podpis – delikatny, bez wielkiej „karty” pod spodem */
.gallery-desc {
  margin-top: 6px;
  padding: 0 2px 0;
  font-size: 12px;
  color: var(--text-muted);
  background: transparent;
  border: none;
}
/* Strzałki i zoom w lightboxie */

.lightbox-content {
  position: relative;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.75);
  color: #e5edff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-arrow:hover {
  background: rgba(37, 99, 235, 0.9);
}

.lightbox-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
}

.lightbox-zoom-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.85);
  color: #e5edff;
  font-size: 18px;
  cursor: pointer;
}

.lightbox-zoom-btn:hover {
  background: rgba(37, 99, 235, 0.95);
}
/* ---------- LIGHTBOX – strzałki + zoom premium ---------- */

.lightbox-content {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.8);
}

/* okrągłe, szklane strzałki po bokach */

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background:
    radial-gradient(circle at 30% 20%, rgba(248, 250, 252, 0.95), rgba(15, 23, 42, 0.96));
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-arrow:hover {
  transform: translateY(-50%) translateY(-1px) scale(1.03);
  background:
    radial-gradient(circle at 30% 20%, #ffffff, rgba(37, 99, 235, 0.96));
  border-color: rgba(37, 99, 235, 0.9);
  box-shadow: 0 22px 60px rgba(37, 99, 235, 0.85);
}

.lightbox-arrow:active {
  transform: translateY(-50%) scale(0.97);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.9);
}

/* pasek zoomu jak w drogich aplikacjach – pilk na dole */

.lightbox-zoom {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.9), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.75);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-zoom-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #0f172a;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.12s ease;
}

.lightbox-zoom-btn:hover {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  transform: translateY(-1px);
}

.lightbox-zoom-btn:active {
  transform: scale(0.94);
}

/* trochę mniejsze strzałki / zoom na bardzo wąskich ekranach */

@media (max-width: 640px) {
  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 22px;
    top: 50%;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

  .lightbox-zoom {
    bottom: 12px;
  }
}
/* =========================================================
   GALERIA 2025 – minimalistyczna siatka + mono miniatury
   ========================================================= */

/* siatka: 4 kolumny desktop, mniej na węższych ekranach */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

/* karta bez ramki / cienia – sam obrazek */
.gallery-card {
  position: relative;
  border-radius: 14px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
}

/* miniatura 16:9, pełna szerokość, zero paddingu */
.gallery-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: none;
  background: #020617;
  cursor: pointer;
  overflow: hidden;
}

/* obrazek: domyślnie mono + delikatny crop */
.gallery-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.04);
  filter: grayscale(1) contrast(1.05);
  transition:
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.4s ease,
    opacity 0.25s ease;
}

/* efekt hover: lekki zoom-out + kolor wraca */
.gallery-card:hover .gallery-thumb img {
  transform: scale(1.0);
  filter: grayscale(0) saturate(1.15);
}

/* subtelny overlay z ikonką powiększenia */
.gallery-thumb::after {
  content: "⤢";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-card:hover .gallery-thumb::after {
  opacity: 1;
  transform: translateY(0);
}

/* podpis – bardzo delikatny, jak caption pod kartą */
.gallery-desc {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

/* filtry nad galerią – płaskie „chipsy” */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.gallery-filter {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 6px 14px;
  font-size: 13px;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.gallery-filter:hover {
  background: #f3f4f6;
}

.gallery-filter.is-active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

/* RWD – mniej kolumn */
@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* =========================================================
   LIGHTBOX 2025 – full screen, proste strzałki, oryg. proporcje
   ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.92);
  z-index: 2000;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: transparent;
}

/* obrazek trzyma oryginalne proporcje – tylko max-width/height */
.lightbox-content {
  position: relative;
  max-width: min(1120px, 96vw);
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
}

.lightbox-content img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

/* minimalistyczny przycisk zamykania (X) */
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease, transform 0.12s ease, opacity 0.16s ease;
}

.lightbox-close:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

/* proste, okrągłe strzałki – zero obwódek, tylko lekki blur */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.65);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.9;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    background 0.16s ease,
    transform 0.16s ease,
    opacity 0.16s ease;
}

.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.lightbox-arrow:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-50%) translateY(-1px);
  opacity: 1;
}

.lightbox-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

/* prosty pasek zoomu; możesz zostawić, albo wyrzucić jeśli zbędny */
.lightbox-zoom {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  font-size: 13px;
}

.lightbox-zoom-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease, transform 0.12s ease;
}

.lightbox-zoom-btn:hover {
  background: rgba(248, 250, 252, 0.06);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .lightbox-arrow {
    width: 34px;
    height: 34px;
    font-size: 18px;
    left: 10px;
    right: 10px;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

  .lightbox-zoom {
    bottom: 12px;
  }
}
/* ==========================================
   GALERIA – styl jak IG (czysta siatka)
   ========================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}

/* sama fota – zero ramek i cieni, tylko zaokrąglenie */
.gallery-card {
  position: relative;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 12px;
  overflow: hidden;
}

/* 16:9 jak ustalaliśmy, czysty „tile” jak na IG */
.gallery-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: none;
  cursor: pointer;
  overflow: hidden;
  background: #020617;
}

/* mono domyślnie */
.gallery-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.04);
  filter: grayscale(1) contrast(1.05);
  transition:
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.4s ease,
    opacity 0.25s ease;
}

/* po najechaniu – lekki zoom-out + kolor jak na IG */
.gallery-card:hover .gallery-thumb img {
  transform: scale(1.0);
  filter: grayscale(0) saturate(1.15);
}

/* mała kropka z ikonką powiększenia – bardzo subtelna */
.gallery-thumb::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.85);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.4);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-card:hover .gallery-thumb::after {
  opacity: 1;
  transform: scale(1);
}

/* podpis bardzo lekko – jak caption pod postem */
.gallery-desc {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

/* filtry – jak tagi */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.gallery-filter {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 6px 14px;
  font-size: 13px;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.gallery-filter:hover {
  background: #f3f4f6;
}

.gallery-filter.is-active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

/* RWD – mniej kolumn */
@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ==========================================
   LIGHTBOX – bez zoom bara, z licznikiem
   ========================================== */

/* jeśli gdzieś w HTML został pasek zoomu – ukryj go całkowicie */
.lightbox-zoom {
  display: none !important;
}

/* cała reszta lightboxa zostaje jak wcześniej, tylko dokładamy licznik */

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.92);
  z-index: 2000;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: transparent;
}

/* oryginalne proporcje w powiększeniu */
.lightbox-content {
  position: relative;
  max-width: min(1120px, 96vw);
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
}

.lightbox-content img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

/* X */
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease, transform 0.12s ease;
}

.lightbox-close:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-1px);
}

/* strzałki – minimalne, „glass” */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.65);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.9;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.lightbox-arrow:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-50%) translateY(-1px);
  opacity: 1;
}

.lightbox-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

/* licznik w rogu – np. "3 / 24" */
.lightbox-counter {
  position: absolute;
  left: 16px;
  top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #e5e7eb;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* mobile tweaks */
@media (max-width: 640px) {
  .lightbox-arrow {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

  .lightbox-counter {
    left: 12px;
    top: 10px;
  }
}
/* ============================================================
   GALERIA V2 – minimalistyczna jak IG / 2025
   ============================================================ */

/* sekcja galerii – więcej oddechu */
.section.gallery-section,
.section.gallery-page {
  background: radial-gradient(circle at 0 0, #eef2ff 0, #f4f6fb 40%, #ffffff 100%);
}

/* siatka jak IG: równe kafelki, 4 kolumny desktop */
.gallery-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* karta – delikatny „glass card”, żadnych grubych ramek */
.gallery-card {
  position: relative;
  border-radius: 18px;
  padding: 4px;
  background: radial-gradient(circle at 0 0, #ffffff 0, #f3f4f6 40%, #e5e7eb 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.22);
}

/* przycisk z miniaturą – sam kadr 16:9, bez obramowania */
.gallery-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: none;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  background: #020617;
}

/* default: mono, lekko przybliżone */
.gallery-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.06);
  filter: grayscale(1) contrast(1.05);
  transition:
    transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.45s ease,
    opacity 0.25s ease;
}

/* hover: lekki zoom-out + kolor, jak IG explore */
.gallery-card:hover .gallery-thumb img {
  transform: scale(1.0);
  filter: grayscale(0) saturate(1.15);
}

/* mała, elegancka kropka w prawym dolnym – że można kliknąć */
.gallery-thumb::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.9);
  background: radial-gradient(circle at 30% 30%, #f9fafb 0, #111827 60%);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.55);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-card:hover .gallery-thumb::after {
  opacity: 1;
  transform: scale(1);
}

/* podpis jak caption pod postem – mega subtelny */
.gallery-desc {
  margin-top: 6px;
  padding: 0 2px 4px;
  font-size: 12px;
  color: #6b7280;
}

/* FILTRY – jak „tagi” nad feedem */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.gallery-filter {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 6px 14px;
  font-size: 13px;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease,
              border-color 0.16s ease, box-shadow 0.16s ease;
}

.gallery-filter:hover {
  background: #f3f4f6;
}

.gallery-filter.is-active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
}

/* RWD kolumn jak IG – mniej na węższych ekranach */
@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ============================================================
   LIGHTBOX – bez paska zoom, z licznikiem, clean
   ============================================================ */

/* ukryj ewentualny pasek zoomu */
.lightbox-zoom {
  display: none !important;
}

/* tło */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 10% 0, rgba(30, 64, 175, .35) 0, rgba(15,23,42,.94) 40%);
  z-index: 2000;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: transparent;
}

/* zdjęcie w oryginalnych proporcjach */
.lightbox-content {
  position: relative;
  max-width: min(1180px, 96vw);
  max-height: 90vh;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
  background: #020617;
}

.lightbox-content img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
}

/* licznik w lewym górnym rogu: "3 / 24" */
.lightbox-counter {
  position: absolute;
  left: 16px;
  top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* X */
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease, transform 0.12s ease;
}

.lightbox-close:hover {
  background: rgba(15, 23, 42, 0.98);
  transform: translateY(-1px);
}

/* strzałki – małe, „glass” po bokach */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.lightbox-arrow:hover {
  background: rgba(15, 23, 42, 0.96);
  transform: translateY(-50%) translateY(-1px);
}

.lightbox-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

/* mobile – mniejsze strzałki / oddech */
@media (max-width: 640px) {
  .lightbox-arrow {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

  .lightbox-counter {
    left: 12px;
    top: 10px;
  }
}
