:root {
  --color-primary: #1769aa;
  --color-primary-contrast: #ffffff;
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-text: #17324d;
  --color-muted: #647789;
  --font-heading: 'Roboto', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius: 1rem;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

.font-heading {
  font-family: var(--font-heading);
}

h2 {
  color: var(--color-primary);
}

#parametry .text-white {
  color: var(--color-text) !important;
}

#parametry .text-white\/70,
#parametry .text-white\/60,
#parametry .text-white\/50 {
  color: var(--color-muted) !important;
}

#parametry .border-white\/20,
#parametry .border-white\/10 {
  border-color: rgba(23, 50, 77, 0.14) !important;
}

::selection {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

.placeholder-photo {
  background: var(--color-surface);
  border: 1px solid rgba(23, 105, 170, 0.18);
}

.placeholder-photo::after {
  content: 'MIEJSCE NA ZDJĘCIE';
  color: rgba(255, 250, 240, 0.74);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.reveal {
  animation: reveal 0.8s ease both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Polished landing-page styling */
:root {
  --color-primary: #1769aa;
  --color-primary-contrast: #ffffff;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #142b42;
  --color-muted: #607487;
  --radius: 1.25rem;
}

body {
  background: var(--color-bg);
  line-height: 1.6;
}

header {
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 8px 30px rgba(20, 43, 66, 0.07);
  backdrop-filter: blur(14px);
}

header a {
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

header nav a:hover {
  color: var(--color-primary);
}

header nav a[href="#kontakt"]:hover {
  color: #fff;
  background-color: #105387;
  transform: translateY(-1px);
}

main > section:first-child {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 34%, rgba(77, 163, 226, 0.30), transparent 28rem),
    linear-gradient(122deg, #102b45 0%, #174d78 58%, #1769aa 100%) !important;
  color: #fff;
}

main > section:first-child::before,
main > section:first-child::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

main > section:first-child::before {
  top: 8%;
  right: -8rem;
  width: min(54vw, 45rem);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(255, 255, 255, 0.025), 0 0 0 7rem rgba(255, 255, 255, 0.025);
}

main > section:first-child::after {
  inset: auto 0 0;
  height: 7rem;
  background: linear-gradient(transparent, rgba(7, 27, 46, 0.18));
}

main > section:first-child h2,
main > section:first-child .text-3xl {
  color: #fff;
}

main > section:first-child .text-\[var\(--color-primary\)\] {
  color: #9bd6ff !important;
}

main > section:first-child .text-\[var\(--color-muted\)\] {
  color: rgba(255, 255, 255, 0.68) !important;
}

main > section:first-child p[data-i="lead"] {
  color: rgba(255, 255, 255, 0.8);
}

main > section:first-child .reveal > div:last-child > div {
  padding: 1rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

#opis,
#parametry,
main > section:nth-of-type(4),
#lokalizacja {
  position: relative;
}

#opis h2,
#parametry h2,
main > section:nth-of-type(4) h2,
#lokalizacja h2 {
  letter-spacing: -0.035em;
}

#opis > div > div {
  gap: 1.25rem;
}

#opis > div > div > div {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 28px rgba(20, 43, 66, 0.055);
}

#parametry {
  background: linear-gradient(180deg, #eef5fb, #f7fafd) !important;
}

#parametry .mt-10 > div {
  min-height: 10rem;
  padding: 1.4rem;
  border: 1px solid rgba(23, 105, 170, 0.11);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 43, 66, 0.055);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

#parametry .mt-10 > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(20, 43, 66, 0.10);
}

main > section:nth-of-type(4) li {
  position: relative;
  padding-left: 1.7rem;
}

main > section:nth-of-type(4) li::before {
  position: absolute;
  top: 0.25rem;
  left: 0;
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  border-radius: 50%;
  background: #e4f2fc;
  color: var(--color-primary);
  content: "✓";
  font-size: 0.72rem;
  font-weight: 800;
}

#lokalizacja {
  background: linear-gradient(115deg, #eef5fb, #f8fafc) !important;
}

#kontakt > div {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #123e64, #1769aa) !important;
  box-shadow: 0 24px 60px rgba(23, 105, 170, 0.22);
}

#kontakt > div::after {
  position: absolute;
  top: -8rem;
  right: -5rem;
  width: 20rem;
  height: 20rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 2rem rgba(255, 255, 255, 0.035), 0 0 0 5rem rgba(255, 255, 255, 0.025);
  content: "";
  pointer-events: none;
}

#kontakt a {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

#kontakt a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

footer {
  background: #fff;
}

main img {
  cursor: zoom-in;
}

.gallery-category {
  margin-bottom: 3rem;
}

.gallery-category-title {
  margin: 0 0 2.25rem;
  padding: 0.9rem 1.1rem;
  border-left: 5px solid var(--color-primary);
  border-radius: 0 0.75rem 0.75rem 0;
  background: #f1f3f5;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

@media (min-width: 640px) {
  .gallery-category-title {
    font-size: 2.75rem;
  }
}

.image-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(5, 16, 28, 0.92);
  cursor: zoom-out;
}

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

.image-lightbox img {
  width: auto;
  height: auto;
  max-width: 96vw;
  max-height: 94vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.4);
  cursor: default;
}

.image-lightbox button {
  position: fixed;
  z-index: 1;
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(15, 35, 52, 0.62);
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.image-lightbox button:hover {
  background: rgba(23, 105, 170, 0.95);
  transform: scale(1.06);
}

.image-lightbox .lightbox-close {
  top: 1rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 2rem;
}

.image-lightbox .lightbox-previous,
.image-lightbox .lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.image-lightbox .lightbox-previous:hover,
.image-lightbox .lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}

.image-lightbox .lightbox-previous {
  left: max(1rem, calc((100vw - 80rem) / 2));
}

.image-lightbox .lightbox-next {
  right: max(1rem, calc((100vw - 80rem) / 2));
}

@media (max-width: 640px) {
  .image-lightbox {
    padding: 1rem;
  }

  .image-lightbox .lightbox-previous {
    left: 0.75rem;
  }

  .image-lightbox .lightbox-next {
    right: 0.75rem;
  }
}

@media (max-width: 767px) {
  main > section:first-child {
    min-height: 690px;
  }

  main > section:first-child::before {
    top: 12%;
    right: -15rem;
    width: 34rem;
  }

  #opis > div > div > div {
    padding: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Standalone layout fallback for the header and hero if Tailwind CDN is unavailable. */
body > header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
}

body > header > div {
  display: flex;
  max-width: 80rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

body > header > div > div:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

body > header nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

body > header a {
  color: inherit;
  text-decoration: none;
}

body > header #menuButton {
  display: none;
  border: 1px solid rgba(20, 43, 66, 0.2);
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: #fff;
}

#mobileMenu {
  display: none;
  border-top: 1px solid rgba(20, 43, 66, 0.1);
  background: #fff;
  padding: 0 1.5rem 1.5rem;
}

main > section:first-child {
  display: flex;
  min-height: 650px;
  align-items: flex-end;
  padding: 10rem 1.5rem 3.5rem;
}

main > section:first-child > div {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
}

@media (max-width: 767px) {
  body > header > div {
    padding: 1rem;
  }

  body > header > div > div:nth-child(2) {
    display: none !important;
  }

  body > header #menuButton {
    display: block !important;
  }

  #mobileMenu:not(.hidden) {
    display: block !important;
  }

  #mobileMenu nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.25rem;
  }

  main > section:first-child {
    min-height: 690px;
    padding: 11rem 1rem 3.5rem;
  }
}

/* Keep the primary navigation and hero visible even when the Tailwind CDN is unavailable. */
@media (min-width: 768px) {
  body > header > div > div:nth-child(2) {
    display: flex !important;
  }

  body > header #menuButton {
    display: none !important;
  }
}

main > section:first-child {
  background: radial-gradient(ellipse at 78% 34%, rgba(77, 163, 226, 0.30), transparent 28rem),
    linear-gradient(122deg, #102b45 0%, #174d78 58%, #1769aa 100%) !important;
  color: #fff !important;
}

main > section:first-child h1,
main > section:first-child p,
main > section:first-child .text-3xl,
main > section:first-child .text-lg {
  color: #fff !important;
}

main > section:first-child .text-sm {
  color: rgba(255, 255, 255, 0.72) !important;
}
