/* ==========================================================================
   PROJEKT 2: FERRO STUDIO (Elegancki Industrialny Minimalizm / Dark Mode)
   Paleta: Głęboki grafit/obsydian (#0d0f14), szampańskie złoto (#c5a059), miedź
   ========================================================================== */

:root {
  --bg-dark: #0d0f14;
  --bg-surface: #141720;
  --bg-surface-elevated: #1b202c;
  --bg-input: #10131b;

  --gold-primary: #c5a059;
  --gold-bright: #d4af37;
  --gold-hover: #dfba6c;
  --gold-dim: rgba(197, 160, 89, 0.12);
  --copper: #c67d38;

  --border-subtle: #232838;
  --border-hover: #343c52;
  --border-gold: rgba(197, 160, 89, 0.35);

  --text-main: #f3f4f6;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;

  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 0 20px rgba(197, 160, 89, 0.15);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* sticky header nie zasłania sekcji po kliknięciu w kotwicę */
  scroll-padding-top: 92px;
}

/* Osoby z ustawieniem "ogranicz animacje" nie dostają płynnego scrolla ani przejść */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Link pomijania nawigacji dla czytników ekranu i klawiatury */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 500;
  padding: 12px 20px;
  background-color: var(--gold-primary);
  color: #0b0c10;
  font-weight: 700;
  border-radius: 0 0 var(--radius-xs) 0;
}

.skip-link:focus {
  left: 0;
}

/* Widoczny focus dla nawigacji klawiaturą */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
}

/* Blokada przewijania tła, gdy otwarte jest menu mobilne */
body.nav-open {
  overflow: hidden;
}

body.dark-minimal {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(197, 160, 89, 0.03) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(198, 125, 56, 0.02) 0%, transparent 45%);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: clamp(64px, 8vw, 110px) 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* Typografia nagłówków */
.section-header {
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 14px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
}

.gold-gradient {
  background: linear-gradient(135deg, #f0cf85 0%, var(--gold-primary) 60%, var(--copper) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), #b58d3c);
  color: #0b0c10;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #dfba6c, var(--gold-bright));
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.35);
  transform: translateY(-2px);
}

.btn-gold-outline {
  border-color: var(--border-gold);
  color: var(--gold-primary);
  background: transparent;
}

.btn-gold-outline:hover {
  background-color: var(--gold-primary);
  color: #0b0c10;
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
}

.btn-subtle {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-subtle:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-surface-elevated);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   HEADER & NAWIGACJA
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: rgba(13, 15, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

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

.logo-mark {
  width: 12px;
  height: 24px;
  background-color: var(--gold-primary);
  border-radius: 2px;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.logo-name span {
  color: var(--gold-primary);
  font-weight: 500;
}

.logo-desc {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.nav-desktop {
  display: flex;
  gap: 34px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.nav-link:hover {
  color: var(--gold-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 8px;
  cursor: pointer;
}

.h-bar {
  width: 100%;
  height: 2px;
  background-color: var(--gold-primary);
  transition: var(--transition);
}

.hamburger-btn.active .h-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .h-bar:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .h-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer menu */
.mobile-nav-drawer {
  position: fixed;
  top: 82px;
  left: 0;
  width: 100%;
  height: calc(100vh - 82px);
  /* dvh uwzględnia chowający się pasek adresu w mobilnych przeglądarkach */
  height: calc(100dvh - 82px);
  overflow-y: auto;
  background-color: #0b0c10;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 30px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 190;
}

.mobile-nav-drawer.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.m-link {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.m-link:hover {
  color: var(--gold-primary);
  padding-left: 8px;
}

.mobile-drawer-contact {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.m-contact-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.m-contact-phone {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.m-contact-mail {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.m-contact-mail:hover {
  color: var(--gold-primary);
}

/* ==========================================================================
   HERO: ELEGANCKI MINIMALIZM
   ========================================================================== */
.hero-section {
  padding: clamp(48px, 7vw, 90px) 0 clamp(64px, 8vw, 110px);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}

.gold-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--gold-dim);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.gold-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--gold-primary);
}

.hero-title {
  font-family: var(--font-heading);
  /* płynnie skaluje się od telefonu do dużego desktopu */
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.visual-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.visual-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.visual-card:hover img {
  transform: scale(1.02);
}

.visual-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(13, 15, 20, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold-primary);
}

.badge-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.badge-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   USŁUGI (SYSTEMY BALUSTRAD)
   ========================================================================== */
.services-section {
  background-color: var(--bg-surface);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.service-card {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.service-media {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.04);
}

.media-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(6px);
  color: var(--gold-primary);
  border: 1px solid var(--border-gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
}

.service-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-idx {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(197, 160, 89, 0.25);
  margin-bottom: 6px;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
}

.service-text {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.service-features li {
  position: relative;
  padding-left: 18px;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.service-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold-primary);
}

.service-link {
  color: var(--gold-primary);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link:hover {
  color: var(--gold-hover);
  transform: translateX(4px);
}

/* ==========================================================================
   GALERIA: 38 ZDJĘĆ W RESPONSYWNEJ ELEGANCKIEJ SIATCE
   ========================================================================== */
.gallery-section {
  background-color: var(--bg-dark);
}

.gallery-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
  flex-wrap: wrap;
  gap: 20px;
}

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

.filter-btn {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 18px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--gold-dim);
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}

/* Siatka 38 kafelków */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-tile {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
}

.gallery-tile:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tile-image-box {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: #101218;
}

.tile-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-tile:hover .tile-image-box img {
  transform: scale(1.05);
}

.tile-info {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tile-idx {
  font-size: 0.72rem;
  color: var(--gold-primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.tile-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.35;
  flex-grow: 1;
}

.tile-spec {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.gallery-reveal-row {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.gallery-reveal-row .btn {
  min-width: 260px;
}

/* ==========================================================================
   ZDJĘCIA KLIKALNE (LIGHTBOX): reset przeglądarkowych stylów <button>
   + ikona lupy podpowiadająca, że zdjęcie da się powiększyć
   ========================================================================== */
.media-button-reset {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  font: inherit;
  text-align: inherit;
  color: inherit;
  cursor: zoom-in;
  appearance: none;
  -webkit-appearance: none;
}

.tile-image-box::after,
.visual-card::after,
.service-media::after {
  content: "";
  position: absolute;
  inset: 0;
  display: flex;
  background:
    rgba(13, 15, 20, 0.32)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f4f6' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cline x1='20' y1='20' x2='15.2' y2='15.2'/%3E%3C/svg%3E")
    center / 34px no-repeat;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.tile-image-box:hover::after,
.tile-image-box:focus-visible::after,
.visual-card:hover::after,
.visual-card:focus-visible::after,
.service-media:hover::after,
.service-media:focus-visible::after {
  opacity: 1;
}

/* ==========================================================================
   KONTAKT
   ========================================================================== */
.contact-section {
  background-color: var(--bg-surface);
}

.contact-header {
  max-width: 760px;
  margin-bottom: 44px;
}

.contact-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.channel-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 24px;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

a.channel-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.channel-card:hover {
  border-color: var(--border-gold);
}

.channel-icon {
  font-size: 1.5rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.channel-text {
  display: block;
  min-width: 0;
}

.channel-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.channel-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  /* długi adres e-mail nie rozpycha karty na wąskim ekranie */
  overflow-wrap: anywhere;
}

a.channel-card:hover .channel-value {
  color: var(--gold-primary);
}

.channel-note {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

/* ==========================================================================
   OBSZAR DZIAŁANIA (SEO lokalne)
   ========================================================================== */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}

.area-list li {
  padding: 10px 20px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 0.92rem;
  color: var(--text-main);
  transition: var(--transition);
}

.area-list li:first-child {
  border-color: var(--border-gold);
  color: var(--gold-primary);
  font-weight: 600;
}

.area-list li:hover {
  border-color: var(--border-hover);
}

.area-note {
  margin-top: 28px;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 720px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 880px;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.faq-item[open],
.faq-item:hover {
  border-color: var(--border-gold);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
}

/* ukrycie domyślnego trójkąta <details> */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gold-primary);
  transition: var(--transition);
}

.faq-item[open] .faq-question::after {
  content: "\2212";
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 70ch;
}

/* ==========================================================================
   STOPKA
   ========================================================================== */
.footer {
  background-color: #08090d;
  padding: 60px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-desc {
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-top: 6px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  /* na wąskim ekranie 5 linków nie mieści się w jednym rzędzie */
  max-width: 100%;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   RESPONSYWNOŚĆ (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* przycisk "Bezpłatna wycena" na tablecie zabiera miejsce hamburgerowi */
  .header-actions .btn-gold-outline {
    display: none;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav-desktop {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .visual-card img {
    height: 340px;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* NA MOBILE: ZDJĘCIA UKŁADAJĄ SIĘ JEDNO POD DRUGIM */
  .gallery-grid {
    grid-template-columns: 1fr; /* 1 kolumna na telefonie */
  }

  .tile-image-box {
    height: 220px;
  }

  .contact-channels {
    grid-template-columns: 1fr;
  }

  .contact-cta .btn {
    width: 100%;
  }

  /* CTA w hero na pełną szerokość – większy cel dotykowy */
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .gallery-filters {
    width: 100%;
  }

  .m-link {
    font-size: 1.3rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: stretch;
  }

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

/* ==========================================================================
   LIGHTBOX: powiększony podgląd zdjęcia realizacji
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(8, 9, 13, 0.92);
  backdrop-filter: blur(6px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(92vw, 1200px);
  max-height: 90vh;
}

.lightbox-figure {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background-color: var(--bg-surface);
}

.lightbox-caption {
  font-size: 0.92rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 70ch;
}

.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface-elevated);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  border-color: var(--border-gold);
  color: var(--gold-primary);
}

.lightbox-nav {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface-elevated);
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-nav:hover {
  border-color: var(--border-gold);
  color: var(--gold-primary);
}

.lightbox-nav[hidden] {
  visibility: hidden;
}

/* Bardzo wąskie telefony (iPhone SE i podobne) */
@media (max-width: 380px) {
  .container {
    padding: 0 16px;
  }

  .logo-desc {
    display: none;
  }

  .filter-btn {
    font-size: 0.78rem;
    padding: 8px 14px;
  }

  .channel-value {
    font-size: 1.02rem;
  }
}

/* Lightbox na telefonie: strzałki pod zdjęciem zamiast po bokach (za mało miejsca w poziomie) */
@media (max-width: 640px) {
  .lightbox-dialog {
    flex-direction: column;
    align-items: center;
    width: 94vw;
    max-height: 94vh;
  }

  .lightbox-img {
    max-height: 58vh;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .lightbox-close {
    top: -14px;
    right: 4px;
  }
}
