:root {
  --anim-time: 10s;
}

html { scroll-behavior: smooth; }

body {
  background-color: #F7F6F3;
  color: #1A1A1A;
  font-family: 'Inter', sans-serif;
}

/* ── Hero electricity canvas ── */
.animate-lightning-1 {
  animation: lightning-strike var(--anim-time) infinite ease-out;
}

.animate-lightning-2 {
  animation: lightning-strike var(--anim-time) infinite ease-out;
  animation-delay: 2.5s; 
}

.animate-lightning-3 {
  animation: lightning-strike var(--anim-time) infinite ease-out;
  animation-delay: 6s; 
}

@keyframes lightning-strike {
  0%, 10% {
    opacity: 0;
  }
  11% {
    opacity: 1;
  }
  11.5% {
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  13% {
    opacity: 1;
  }
  20% {
    opacity: 0;
  }
}

/* ── Volt underline link ── */
.volt-link {
  position: relative;
  text-decoration: none;
}
.volt-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: #D4A900;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.volt-link:hover::after { transform: scaleX(1); }

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 240px;
  grid-auto-flow: row dense;
  gap: 8px;
}

/* wzorzec powtarzalny co 6 elementów:
   1-3: duży kafelek po LEWEJ
   4-6: duży kafelek po PRAWEJ (lustrzane odbicie) */
.gallery-item:nth-child(6n+1) { grid-column: 1 / 8;  grid-row: span 2; } /* duży, lewo */
.gallery-item:nth-child(6n+2) { grid-column: 8 / 13; }                   /* mały, góra-prawo */
.gallery-item:nth-child(6n+3) { grid-column: 8 / 13; }                   /* mały, dół-prawo */
.gallery-item:nth-child(6n+4) { grid-column: 1 / 6;  }                   /* mały, góra-lewo */
.gallery-item:nth-child(6n+5) { grid-column: 1 / 6;  }                   /* mały, dół-lewo */
.gallery-item:nth-child(6n)   { grid-column: 6 / 13; grid-row: span 2; } /* duży, prawo */

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
  /* na mobile: prosta jednolita siatka 2 kolumny, bez wzorca lewo/prawo */
  .gallery-item:nth-child(6n+1),
  .gallery-item:nth-child(6n+2),
  .gallery-item:nth-child(6n+3),
  .gallery-item:nth-child(6n+4),
  .gallery-item:nth-child(6n+5),
  .gallery-item:nth-child(6n) {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.gallery-item {
  overflow: hidden;
  background: #D8D5D0;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  filter: grayscale(20%);
}
.gallery-item:hover img { transform: scale(1.04); filter: grayscale(0%); }
.gallery-item .caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(255,255,255,0.85));
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(26,26,26,0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .caption { opacity: 1; }

@media (min-width: 769px) {
  .gallery-item.gallery-full {
    grid-column: 1 / 13;
    grid-row: span 2;
  }
}

/* ── Reviews ── */
.stars { color: #D4A900; letter-spacing: 2px; }

.review-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.review-track::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: #EEECEA;
  border: 1px solid #D8D5D0;
  padding: 24px;
}

/* ── Review nav buttons ── */
.review-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid #CCCAC6;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  color: #1A1A1A;
  flex-shrink: 0;
}
.review-nav-btn:hover:not(:disabled) {
  background: #D4A900;
  border-color: #D4A900;
  color: #F7F6F3;
}
.review-nav-btn:disabled {
  opacity: 0.28;
  cursor: default;
}

/* ── Divider ── */
.volt-divider {
  width: 48px; height: 3px;
  background: #D4A900;
  margin-bottom: 20px;
}

/* ── CTA button ── */
.cta-btn {
  display: inline-block;
  background: #D4A900;
  color: #F7F6F3;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 36px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.cta-btn:hover { background: #1A1A1A; }

/* ── Section label ── */
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #B8900A;
  margin-bottom: 10px;
}

/* ── Bolt icon ── */
.bolt-icon {
  display: inline-block;
  width: 32px; height: 32px;
  background: #D4A900;
  clip-path: polygon(60% 0%, 30% 48%, 55% 48%, 40% 100%, 70% 52%, 45% 52%);
}

/* ── Language switcher ── */
.lang-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.lang-btn.active { color: #B8900A; }
.lang-btn.inactive { color: #AAAAAA; }
.lang-btn.inactive:hover { color: #777; }
.lang-divider {
  color: #BBBBBB;
  font-size: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  user-select: none;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(26,26,26,0.92);
  padding: 24px;
}
.lightbox.open { display: flex; }

.lightbox-figure {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-figure img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-figure figcaption {
  margin-top: 14px;
  color: #F7F6F3;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.lightbox-btn {
  position: absolute;
  background: transparent;
  border: none;
  color: #F7F6F3;
  cursor: pointer;
  transition: color 0.2s, opacity 0.2s;
  line-height: 1;
}
.lightbox-btn:hover { color: #D4A900; }

.lightbox-close { top: 20px; right: 24px; font-size: 28px; }
.lightbox-prev, .lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  padding: 8px 14px;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { font-size: 34px; }
}

/* ── Gallery collapse/fade ── */
.gallery-wrap {
  position: relative;
  transition: max-height 0.5s ease;
}

.gallery-wrap.collapsed {
  max-height: 550px; /* height of first row-pair (240*2 + 16px gap) */
  overflow: hidden;
}

.gallery-wrap.collapsed::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 80px;
  background: linear-gradient(transparent, #F7F6F3);
  pointer-events: none;
}

@media (max-width: 768px) {
  .gallery-wrap.collapsed {
    max-height: 388px; /* 180*2 + 8px gap, matches first 3 mobile tiles */
  }
}

.gallery-toggle-btn {
  display: inline-block;
  background: transparent;
  border: 1.5px solid #CCCAC6;
  color: #1A1A1A;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 32px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.gallery-toggle-btn:hover {
  background: #D4A900;
  border-color: #D4A900;
  color: #F7F6F3;
}

#show_less_text {
  display: none;
}