:root {
  --accent: #55d9e8;
  --primary-bg: #dd5a33;
  --footer-bg: #00102e;
  --text-main: #47425d;
  --white: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--primary-bg);
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 600;
}

.section {
  padding: 3rem 0;
}

.section-light {
  background: #ffffff;
}

.section-dark {
  background: #00102e;
  color: var(--white);
}

/* Header & navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(221, 90, 51, 0.9);
  backdrop-filter: blur(6px);
}

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

.logo img {
  max-height: 60px;
}

.main-nav {
  flex: 1;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.main-nav a:hover {
  color: #3f68aa;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero / slider */

.hero {
  position: relative;
  color: var(--white);
  min-height: 280px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.65),
    rgba(0, 16, 46, 0.75)
  );
  z-index: 1;
}

.hero-slider {
  position: absolute;
  inset: 0;
  display: flex;
  width: 300%;
  animation: slideShow 18s infinite;
}

.hero-slider .slide {
  flex: 0 0 100%;
}

.hero-slider img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  margin-bottom: 0.75rem;
  color: var(--white);
}

.hero p {
  font-size: 1.1rem;
  max-width: 36rem;
  margin: 0 auto;
}

@keyframes slideShow {
  0%,
  25% {
    transform: translateX(0%);
  }
  35%,
  60% {
    transform: translateX(-100%);
  }
  70%,
  95% {
    transform: translateX(-200%);
  }
  100% {
    transform: translateX(0%);
  }
}

/* Cards grid (kalendarz) */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #f7f7fb;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-image {
  width: 100%;
  object-fit: contain;
  padding: 1rem 1.5rem 0.5rem;
}

.card-body {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
}

.card-body p {
  margin: 0 0 0.5rem;
}

.link-primary {
  font-weight: 600;
}

/* Kontakt section */

.kontakt-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr;
  gap: 2rem;
  align-items: flex-start;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: #00102e;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.5rem;
}

.btn-primary:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

/* Footer */

.site-footer {
  background: var(--footer-bg);
  color: var(--white);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.map-embed {
  margin-top: 1.5rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.map-embed iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
}

/* Responsive tweaks */

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

  .kontakt-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .logo img {
    max-height: 50px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .main-nav.open {
    max-height: 1000px; /* enough to show all items */
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    display: block;
    padding: 0.4rem 0;
  }

  .hero-content {
    padding: 3rem 1.25rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 2.25rem 0;
  }

  .hero {
    min-height: 230px;
  }

  .hero p {
    font-size: 1rem;
  }
}

