/* Light4You – styl główny */
/* Reset i podstawy */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f5fb;
  color: #0f172a;
  line-height: 1.6;
}

/* Zmienne kolorów */
:root {
  --bg-body: #f4f5fb;
  --bg-elevated: #ffffff;
  --bg-elevated-alt: #f9fafb;
  --border-subtle: #e5e7eb;
  --primary: #6366f1;
  --primary-soft: #eef2ff;
  --primary-strong: #4f46e5;
  --accent: #22c55e;
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
}

/* Layout ogólny */
.container {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(244, 245, 251, 0.9));
}

/* Nagłówek i nawigacja */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(244, 245, 251, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 10% 0, #eef2ff, #4f46e5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.25);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.92rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.3rem 0;
  position: relative;
}

.main-nav a:not(.btn-secondary):hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 999px;
}

/* Przyciski */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary), var(--primary-strong));
  color: #f9fafb;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.03);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid #e5e7eb;
}

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

.btn-ghost {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(209, 213, 219, 0.8);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-small {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  padding: 3.5rem 0 3.75rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: #4f46e5;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  line-height: 1.12;
  margin: 0 0 0.9rem;
}

.hero-lead {
  margin: 0 0 1.4rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #4b5563;
}

.hero-badges span {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-media {
  position: relative;
}

.hero-photo-frame {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.45), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-note {
  position: absolute;
  right: 0.3rem;
  bottom: -0.8rem;
  transform: translateY(0);
  background: #ffffff;
  border-radius: 1rem;
  padding: 0.7rem 0.9rem;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(226, 232, 240, 0.9);
  max-width: 260px;
}

.hero-note-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4f46e5;
  margin-bottom: 0.2rem;
}

.hero-note-text {
  font-size: 0.85rem;
  color: #4b5563;
  margin: 0;
}

/* Sekcje ogólne */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header.left {
  text-align: left;
}

.section-header h2 {
  margin: 0.4rem 0 0.6rem;
  font-size: 1.7rem;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.section-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

/* Dwie kolumny */
.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 2.8rem;
  align-items: center;
}

/* Lista z „ptaszkami” */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.35rem;
}

.checklist li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.92rem;
  color: #374151;
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.02rem;
  font-size: 0.75rem;
  color: var(--accent);
}

/* Karta statystyk */
.stats-card {
  background: radial-gradient(circle at 0 0, #eef2ff, #ffffff);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.9rem;
  border: 1px solid rgba(199, 210, 254, 0.9);
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.1);
}

.stats-card h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.stats-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.6rem;
}

.stats-grid dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
}

.stats-grid dd {
  margin: 0.15rem 0 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.stats-note {
  margin-top: 1.1rem;
  font-size: 0.86rem;
  color: #4b5563;
}

/* Karty oferty */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.card-tag {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #4338ca;
}

/* Galeria */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  background: #020617;
  color: #e5e7eb;
  font-size: 0.85rem;
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.gallery-item figcaption {
  padding: 0.7rem 0.85rem 0.8rem;
}

/* Kroki współpracy */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.3rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4338ca;
  font-weight: 600;
  font-size: 0.86rem;
}

.step h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Aktualności */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.news-item {
  background: var(--bg-elevated);
  border-radius: 1rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--border-subtle);
}

.news-date {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.news-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.news-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Kontakt */
.contact-details {
  margin-top: 1.3rem;
  display: grid;
  gap: 0.7rem;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  align-items: baseline;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
}

.contact-value:hover {
  text-decoration: underline;
}

.contact-note {
  margin-top: 1.3rem;
  font-size: 0.9rem;
  color: #4b5563;
}

/* Formularz */
.contact-form {
  background: var(--bg-elevated);
  border-radius: 1.4rem;
  padding: 1.7rem 1.6rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.contact-form h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.form-field {
  margin-bottom: 0.9rem;
}

.form-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid #d1d5db;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
}

.form-field textarea {
  resize: vertical;
  min-height: 96px;
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Stopka */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.footer-inner {
  padding: 2.2rem 0 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.footer-brand p {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.footer-columns h4 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.86rem;
  display: grid;
  gap: 0.3rem;
}

.footer-links a {
  color: #4b5563;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

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

.footer-bottom-inner {
  padding: 0.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.footer-credit {
  margin: 0;
}

/* Responsywność */
@media (max-width: 960px) {
  .hero-inner,
  .two-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: -1;
  }

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

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

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

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 2rem, 640px);
  }

  .header-inner {
    padding-block: 0.6rem;
  }

  .main-nav {
    gap: 0.8rem;
    font-size: 0.8rem;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-note {
    position: static;
    margin-top: 0.9rem;
  }

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

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

  .gallery-item img {
    height: 200px;
  }

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

  .site-footer {
    margin-top: 2.5rem;
  }

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


/* =========================================================
   Galeria Light4You v10 – strona główna i pełna galeria
   ========================================================= */
.gallery-link-card {
  display: block;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
}

.gallery-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, .2);
}

.gallery-link-card img {
  transition: transform .35s ease;
}

.gallery-link-card:hover img {
  transform: scale(1.045);
}

.gallery-card-caption {
  display: grid;
  gap: .18rem;
  padding: .8rem .9rem .9rem;
  color: #f8fafc;
}

.gallery-card-caption strong {
  font-size: .92rem;
  font-weight: 600;
}

.gallery-card-caption small {
  font-size: .74rem;
  color: #cbd5e1;
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.8rem;
}

.gallery-empty-home {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  color: var(--text-muted);
}

.gallery-page {
  background: #f8fafc;
}

.gallery-page-hero {
  padding: 4.5rem 0 3.4rem;
  background:
    radial-gradient(circle at 10% 0%, rgba(99, 102, 241, .18), transparent 34%),
    radial-gradient(circle at 90% 15%, rgba(236, 72, 153, .12), transparent 32%),
    linear-gradient(145deg, #ffffff, #f3f5ff);
  border-bottom: 1px solid #e5e7eb;
}

.gallery-page-hero h1 {
  margin: .45rem 0 .7rem;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.12;
}

.gallery-page-lead {
  max-width: 720px;
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.gallery-back-link {
  display: inline-flex;
  margin-bottom: 1.7rem;
  color: #475569;
  text-decoration: none;
  font-size: .9rem;
}

.gallery-back-link:hover { color: var(--primary); }

.gallery-browser-section {
  padding: 3rem 0 4.5rem;
}

.gallery-category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.gallery-category-card {
  --category-cover: linear-gradient(135deg, #334155, #111827);
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border: 0;
  border-radius: 1.15rem;
  padding: 0;
  background-image: var(--category-cover);
  background-size: cover;
  background-position: center;
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .14);
  transition: transform .2s ease, box-shadow .2s ease, outline-color .2s ease;
}

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

.gallery-category-card.active {
  outline: 3px solid #6366f1;
  outline-offset: 3px;
}

.gallery-category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, .92), rgba(2, 6, 23, .18));
}

.gallery-category-card-content {
  position: absolute;
  inset: auto 1rem .9rem;
  display: grid;
  gap: .12rem;
  z-index: 1;
}

.gallery-category-card-content strong { font-size: 1rem; }
.gallery-category-card-content small { color: #dbeafe; font-size: .78rem; }

.gallery-subcategory-bar {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.gallery-subcategory-bar[hidden] { display: none; }

.gallery-filter-chip {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  padding: .52rem .9rem;
  font: inherit;
  font-size: .83rem;
  color: #334155;
  cursor: pointer;
}

.gallery-filter-chip:hover,
.gallery-filter-chip.active {
  color: #fff;
  background: #4f46e5;
  border-color: #4f46e5;
}

.gallery-results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 3rem 0 1.35rem;
}

.gallery-results-heading h2 {
  margin: .35rem 0 0;
  font-size: 1.55rem;
}

.gallery-results-count {
  margin: 0;
  color: #64748b;
  font-size: .88rem;
}

.gallery-full-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.gallery-full-item {
  border: 0;
  padding: 0;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #fff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .09);
  transition: transform .2s ease, box-shadow .2s ease;
  font: inherit;
}

.gallery-full-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, .16);
}

.gallery-full-image-wrap {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e2e8f0;
}

.gallery-full-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.gallery-full-item:hover img { transform: scale(1.04); }

.gallery-zoom-hint {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  padding: .34rem .65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, .76);
  color: #fff;
  font-size: .72rem;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
}

.gallery-full-item:hover .gallery-zoom-hint { opacity: 1; transform: translateY(0); }

.gallery-full-caption {
  display: grid;
  gap: .25rem;
  padding: .95rem 1rem 1.05rem;
}

.gallery-full-caption strong { font-size: .98rem; }
.gallery-full-caption small { color: #6366f1; font-size: .76rem; }
.gallery-full-caption > span { color: #64748b; font-size: .83rem; line-height: 1.55; }

.gallery-empty-state {
  padding: 3.4rem 1.5rem;
  border: 1px dashed #cbd5e1;
  border-radius: 1.2rem;
  background: #fff;
  text-align: center;
}

.gallery-empty-state h3 { margin: 0 0 .45rem; }
.gallery-empty-state p { margin: 0; color: #64748b; }

body.lightbox-open { overflow: hidden; }

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(2, 6, 23, .94);
  backdrop-filter: blur(8px);
}

.gallery-lightbox[hidden] { display: none; }

.gallery-lightbox-figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: .75rem;
  min-width: 0;
}

.gallery-lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  border-radius: .9rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .45);
}

.gallery-lightbox-figure figcaption { color: #e2e8f0; font-size: .9rem; }

.gallery-lightbox-close,
.gallery-lightbox-nav {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.gallery-lightbox-close {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.7rem;
  line-height: 1;
}

.gallery-lightbox-nav {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  font-size: 2rem;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover { background: rgba(255, 255, 255, .18); }

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

@media (max-width: 650px) {
  .gallery-page-hero { padding: 3.2rem 0 2.6rem; }
  .gallery-category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-category-card { min-height: 125px; }
  .gallery-full-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-results-heading { align-items: flex-start; flex-direction: column; }
  .gallery-lightbox { grid-template-columns: 46px minmax(0, 1fr) 46px; gap: .35rem; padding: 1rem .4rem; }
  .gallery-lightbox-nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .gallery-lightbox-figure img { max-height: calc(100vh - 8rem); }
}

/* ===== Light4You gallery v10.1 – kolekcje i ograniczone miniatury ===== */
.gallery-browser-section {
  padding: 3.5rem 0 5rem;
}

.gallery-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.7rem;
}

.gallery-section-heading h2 {
  margin: .35rem 0 0;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.gallery-section-heading > p {
  max-width: 470px;
  margin: 0;
  color: var(--text-muted);
  font-size: .94rem;
}

.gallery-category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 320px));
  justify-content: center;
  gap: 1.25rem;
}

.gallery-category-card {
  --category-cover: linear-gradient(135deg, #334155, #111827);
  position: relative;
  width: 100%;
  min-height: 210px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  background-image: var(--category-cover);
  background-size: cover;
  background-position: center;
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease;
  font: inherit;
}

.gallery-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, .22);
}

.gallery-category-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.gallery-category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, .96) 4%, rgba(15, 23, 42, .56) 54%, rgba(15, 23, 42, .12) 100%);
}

.gallery-category-card-content {
  position: absolute;
  inset: auto 1.15rem 1.1rem;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: .25rem;
}

.gallery-category-parent {
  color: #dbeafe;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gallery-category-card-content strong {
  font-size: 1.2rem;
  line-height: 1.25;
}

.gallery-category-meta {
  color: #e2e8f0;
  font-size: .78rem;
}

.gallery-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: .55rem;
  border-radius: 999px;
  padding: .55rem 1rem;
  background: linear-gradient(to right, var(--primary), var(--primary-strong));
  color: #f9fafb;
  box-shadow: 0 12px 25px rgba(79, 70, 229, .32);
  font-size: .8rem;
  font-weight: 500;
}

.gallery-collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.gallery-return-button {
  font: inherit;
}

.gallery-parent-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .46rem .9rem;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: .8rem;
  font-weight: 500;
}

.gallery-parent-label[hidden] {
  display: none;
}

.gallery-results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.2rem;
}

.gallery-results-heading h2 {
  margin: .3rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.gallery-results-count {
  margin: 0;
  color: var(--text-muted);
  font-size: .88rem;
}

.gallery-subcategory-bar {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  margin: 0 0 1.35rem;
  padding: .8rem;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--border-subtle);
}

.gallery-subcategory-bar[hidden] {
  display: none;
}

.gallery-filter-chip {
  border: 1px solid var(--border-subtle);
  background: #fff;
  border-radius: 999px;
  padding: .55rem 1rem;
  font: inherit;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.gallery-filter-chip:hover {
  transform: translateY(-1px);
  background: var(--primary-soft);
  border-color: #c7d2fe;
  color: var(--primary-strong);
}

.gallery-filter-chip.active {
  color: #fff;
  background: linear-gradient(to right, var(--primary), var(--primary-strong));
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(79, 70, 229, .25);
}

.gallery-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: center;
  align-items: start;
  gap: 1rem;
}

.gallery-full-item {
  width: 100%;
  max-width: 280px;
  border: 0;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .09);
  transition: transform .2s ease, box-shadow .2s ease;
  font: inherit;
}

.gallery-full-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, .16);
}

.gallery-full-image-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 205px;
  overflow: hidden;
  background: #e2e8f0;
}

.gallery-full-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.gallery-full-item:hover img {
  transform: scale(1.045);
}

.gallery-zoom-hint {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  padding: .35rem .68rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, .78);
  color: #fff;
  font-size: .7rem;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
}

.gallery-full-item:hover .gallery-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.gallery-full-caption {
  display: grid;
  gap: .18rem;
  padding: .75rem .85rem .85rem;
}

.gallery-full-caption strong {
  font-size: .9rem;
  line-height: 1.35;
}

.gallery-full-caption small {
  color: var(--primary-strong);
  font-size: .72rem;
}

.gallery-full-caption > span {
  color: var(--text-muted);
  font-size: .77rem;
  line-height: 1.5;
}

.gallery-lightbox {
  padding: 2.25rem;
}

.gallery-lightbox-figure {
  width: min(1050px, 100%);
}

.gallery-lightbox-figure img {
  max-width: min(1050px, 100%);
  max-height: 78vh;
  object-fit: contain;
}

@media (max-width: 720px) {
  .gallery-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: .6rem;
  }

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

  .gallery-category-card {
    min-height: 195px;
  }

  .gallery-collection-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-results-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: .4rem;
  }

  .gallery-full-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }

  .gallery-full-item {
    max-width: none;
  }

  .gallery-full-image-wrap {
    max-height: none;
  }
}

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

  .gallery-full-item {
    max-width: 300px;
    justify-self: center;
  }
}
