:root {
  --gallery-bg: #0d171d;
  --gallery-bg-soft: #111b21;
  --gallery-light: #f6f8f4;
  --gallery-text: #f5f7f2;
  --gallery-text-dark: #0d171d;
  --gallery-muted: #b8c0c4;
  --gallery-muted-dark: #536068;
  --gallery-accent: #69b945;
  --gallery-accent-strong: #68bd45;
}

body.gallery-modern-body {
  background:
    radial-gradient(circle at 13% 10%, rgba(105, 185, 69, 0.12), transparent 26%),
    linear-gradient(180deg, #0b1217 0%, #0c1318 100%);
  color: var(--gallery-text-dark);
  font-family: "Montserrat", sans-serif;
}

.gallery-modern-body h1,
.gallery-modern-body h2,
.gallery-modern-body h3,
.gallery-modern-body h4,
.gallery-modern-body h5,
.gallery-modern-body h6 {
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.045em;
}

.gallery-modern-body #header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0 0;
  background: transparent;
  box-shadow: none;
}

.gallery-modern-body #header .container {
  align-items: center;
  gap: 26px;
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(12, 19, 24, 0.78);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.gallery-modern-body #header .logo img {
  height: 60px;
}

.gallery-modern-body .nav-menu {
  flex: 1;
}

.gallery-modern-body .nav-menu > ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.gallery-modern-body .nav-menu > ul > li + li {
  padding-left: 18px;
}

.gallery-modern-body .nav-menu a,
.gallery-modern-body .mobile-nav a {
  color: var(--gallery-text);
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.gallery-modern-body .nav-menu a:hover,
.gallery-modern-body .nav-menu .active > a,
.gallery-modern-body .nav-menu li:hover > a,
.gallery-modern-body .mobile-nav a:hover,
.gallery-modern-body .mobile-nav .active > a,
.gallery-modern-body .mobile-nav li:hover > a,
.gallery-modern-body .nav-menu__gallery.current-menu-item > a {
  color: var(--gallery-accent-strong);
}

.gallery-modern-body .nav-menu__fundusze a {
  margin-left: 14px;
  padding: 0;
}

.gallery-modern-body .nav-menu__fundusze img {
  width: 78px;
  border-radius: 12px;
  opacity: 0.92;
}

.gallery-modern-body .nav-menu .drop-down {
  position: relative;
}

.gallery-modern-body .nav-menu .drop-down > ul {
  top: calc(100% + 18px) !important;
  min-width: 240px;
  padding: 14px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(105, 185, 69, 0.12), rgba(12, 19, 24, 0.96) 58%);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.24);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.gallery-modern-body .nav-menu > ul > .drop-down > ul {
  left: 50% !important;
  transform: translateX(-50%) translateY(12px);
}

.gallery-modern-body .nav-menu .drop-down .drop-down > ul {
  left: calc(100% + 14px) !important;
  top: -8px !important;
  transform: translateY(12px);
}

.gallery-modern-body .nav-menu .drop-down > ul::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: rgba(18, 28, 34, 0.94);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-modern-body .nav-menu .drop-down .drop-down > ul::before {
  top: 22px;
  left: -7px;
  transform: rotate(315deg);
}

.gallery-modern-body .nav-menu .drop-down:hover > ul {
  opacity: 1;
  visibility: visible;
}

.gallery-modern-body .nav-menu > ul > .drop-down:hover > ul {
  top: calc(100% + 10px) !important;
  transform: translateX(-50%) translateY(0);
}

.gallery-modern-body .nav-menu .drop-down .drop-down:hover > ul {
  left: calc(100% + 10px) !important;
  transform: translateY(0);
}

.gallery-modern-body .nav-menu .drop-down li {
  min-width: 0;
}

.gallery-modern-body .nav-menu .drop-down > ul a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px !important;
  border-radius: 18px;
  color: #eef4ef !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-modern-body .nav-menu .drop-down > ul a::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: var(--gallery-accent-strong);
  box-shadow: 0 0 0 8px rgba(105, 185, 69, 0.12);
}

.gallery-modern {
  overflow: clip;
  background: transparent;
}

.gallery-hero {
  position: relative;
  padding: 172px 0 94px;
  background:
    radial-gradient(circle at 74% 25%, rgba(96, 191, 58, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #0d171d;
  background-size: auto, 94px 94px, 94px 94px, auto;
  color: #f6f8f4;
}

.gallery-hero__mesh {
  display: none;
}

.gallery-hero__copy {
  max-width: 690px;
}

.gallery-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--gallery-accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-hero__kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(104, 189, 69, 0.72);
}

.gallery-hero__copy h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: #f6f8f4;
  font-size: clamp(4rem, 7vw, 7.3rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.gallery-hero__copy p {
  max-width: 590px;
  margin: 0;
  color: rgba(246, 248, 244, 0.72);
  font-size: 1.04rem;
  line-height: 1.85;
}

.gallery-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.gallery-hero__badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #f6f8f4;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-hero__actions {
  margin-top: 30px;
}

.gallery-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--gallery-accent-strong);
  color: #071008 !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  box-shadow: 0 22px 46px rgba(105, 185, 69, 0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-hero__button:hover {
  color: #071008 !important;
  transform: translateY(-2px);
  box-shadow: 0 26px 58px rgba(105, 185, 69, 0.28);
}

.gallery-hero__visual {
  min-height: 0;
}

.gallery-hero__frame {
  position: relative;
  margin-left: auto;
  padding: 22px;
  max-width: 620px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(17, 27, 33, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.gallery-hero__stage {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: 78px 26px 34px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 0%, rgba(105, 185, 69, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-hero__label {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(8, 15, 19, 0.86);
  color: #f6f8f4;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-hero__label span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gallery-accent);
  box-shadow: 0 0 0 7px rgba(105, 185, 69, 0.12);
}

.gallery-hero__featured {
  position: relative;
  z-index: 2;
  height: 218px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(8, 15, 19, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.gallery-hero__featured img,
.gallery-hero__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(105, 185, 69, 0.16), transparent 34%),
    #172229;
  color: rgba(246, 248, 244, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.gallery-hero__featured img {
  filter: saturate(0.98) contrast(1.02) brightness(0.76);
}

.gallery-hero__thumbs {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.gallery-hero__thumb {
  height: 74px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(8, 15, 19, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.gallery-hero__panel {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding: 17px 18px;
  border-radius: 18px;
  background: rgba(8, 15, 19, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.gallery-hero__panel span {
  color: var(--gallery-accent-strong);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gallery-hero__panel strong {
  color: #f6f8f4;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.gallery-grid-section {
  padding: 94px 0 116px;
  background:
    radial-gradient(circle at 15% 10%, rgba(96, 191, 58, 0.1), transparent 22%),
    linear-gradient(180deg, #0c1318 0%, #0f181e 100%);
}

.gallery-section-head {
  margin-bottom: 34px;
}

.gallery-section-head span {
  display: inline-block;
  margin-bottom: 12px;
  color: #4d7f31;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-section-head h2 {
  max-width: 980px;
  margin: 0;
  color: var(--gallery-text-dark);
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.gallery-section-head p {
  margin: 0 0 4px;
  color: var(--gallery-muted-dark);
  font-size: 1rem;
  line-height: 1.75;
}

.gallery-grid {
  row-gap: 28px;
}

.gallery-grid__item {
  margin-bottom: 0;
}

.gallery-card {
  height: 100%;
}

.gallery-card__link {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 340px;
  height: 100%;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(13, 23, 29, 0.08);
  box-shadow: 0 22px 70px rgba(13, 23, 29, 0.08);
}

.gallery-card__link img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-card__link > .gallery-image-placeholder {
  min-height: 340px;
}

.gallery-card__link:focus-visible {
  outline: 3px solid var(--gallery-accent);
  outline-offset: 5px;
}

.gallery-card__index {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(13, 23, 29, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f6f8f4;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.gallery-card__overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 3;
  padding: 18px;
  border-radius: 20px;
  background: rgba(13, 23, 29, 0.84);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.gallery-card__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gallery-accent-strong);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-card__overlay strong {
  display: block;
  color: #f6f8f4;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.gallery-card__link:hover img,
.gallery-card__link:focus-visible img {
  transform: scale(1.055);
  filter: saturate(1.04) contrast(1.04);
}

.gallery-card__link:hover .gallery-card__overlay,
.gallery-card__link:focus-visible .gallery-card__overlay {
  transform: translateY(0);
  opacity: 1;
}

.gallery-modern-body #footer {
  background: #0c1318 !important;
}

.gallery-modern-body #footer .footer-top {
  background: transparent !important;
}

.gallery-modern-body #footer h4 {
  color: var(--gallery-accent-strong) !important;
}

@media (max-width: 1199px) {
  .gallery-hero {
    padding-top: 150px;
  }

  .gallery-hero__frame {
    max-width: none;
    margin-top: 36px;
  }
}

@media (max-width: 991px) {
  .gallery-modern-body #header .container {
    border-radius: 28px;
  }
}

@media (max-width: 767px) {
  .gallery-hero {
    padding: 132px 0 70px;
  }

  .gallery-hero__copy h1 {
    font-size: clamp(3.05rem, 15vw, 4.6rem);
  }

  .gallery-hero__button {
    width: 100%;
  }

  .gallery-hero__stage {
    min-height: 520px;
    padding: 72px 18px 28px;
  }

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

  .gallery-section-head h2 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }

  .gallery-card__link,
  .gallery-card__link img,
  .gallery-card__link > .gallery-image-placeholder {
    min-height: 270px;
  }
}

/* Dekoracyjny box hero (podglad galerii) duplikuje siatke ponizej i na mobile
   jest zbednym, nieklikalnym blokiem — chowamy go. */
@media (max-width: 991px) {
  .gallery-hero__visual {
    display: none !important;
  }
}

/* ===== Galeria spojna z ciemnym motywem strony ===== */
/* 3 piguly w hero (X zdjec / Realizacje / Detale) — zbedne, usuwamy. */
.gallery-hero__badges {
  display: none !important;
}
/* Naglowek sekcji siatki na ciemnym tle — jasny tekst. */
.gallery-grid-section .gallery-section-head h2 {
  color: #f6f8f4 !important;
}
.gallery-grid-section .gallery-section-head span {
  color: #8fd16a !important;
}
.gallery-grid-section .gallery-section-head p {
  color: rgba(246, 248, 244, 0.74) !important;
}

/* Hero galerii: koniec "box w boxie w boxie" — zdejmujemy zewnetrzne ramki,
   zostaje samo zdjecie + miniatury + panel (czytelnie, naturalnie). */
.gallery-hero__frame,
.gallery-hero__stage {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
}
.gallery-hero__label {
  display: none !important;
}
/* Hero galerii: zamiast zdjecia + miniatur + panelu — jedno czyste zdjecie. */
.gallery-hero__thumbs,
.gallery-hero__panel {
  display: none !important;
}
.gallery-hero__featured {
  margin: 0 !important;
  height: clamp(360px, 34vw, 520px) !important;
  min-height: 0 !important;
}
.gallery-hero__featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
