/* ===========================================================
   === ZMIENNE GLOBALNE ===
   Ustalają kolory, czcionki, rozmiary bazowe i proporcje strony.
=========================================================== */
:root {
  --accent-color: #5fab38;
  --font-base: "Poppins", sans-serif;
  --font-size-base: 1.15rem;
  --font-size-small: 0.9rem;
  --font-size-mobile: 1rem;
  --max-content-width: 960px;
  --page-bg: #ffffff;
  --text-color: #222;
  --line-height: 1.65;
}

/* ===========================================================
   === TYPOGRAFIA I OGÓLNY UKŁAD ===
   Definiuje domyślny krój pisma, kolory, spacing i zachowanie body.
=========================================================== */
body {
  margin: 0;
  min-height: 100vh;
  padding: 2rem 1rem;
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--text-color);
  background-color: var(--page-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  text-rendering: optimizeLegibility;
}

/* ===========================================================
   === ELEMENTY STRUKTURY STRONY ===
=========================================================== */
.custom-container {
  max-width: var(--max-content-width);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Sekcja pod logo */
.under_logo {
  font-size: var(--font-size-small);
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.under_logo .highlighted {
  transition: color 0.3s ease;
}

.under_logo .highlighted:hover {
  color: var(--accent-color);
  cursor: default;
}

/* ===========================================================
   === ELEMENTY TEKSTOWE I LINKI ===
=========================================================== */
address {
  font-style: normal;
  margin: 0;
}

.text-betee {
  color: var(--accent-color) !important;
  font-weight: 600;
}

.minibini {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===========================================================
   === OBRAZY I LOGO ===
=========================================================== */
img {
  width: clamp(280px, 60vw, 580px);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ===========================================================
   === LINKI KONTAKTOWE ===
=========================================================== */
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  transition: color 0.25s ease, transform 0.2s ease;
}

.contact-link:hover {
  color: var(--accent-color);
  transform: translateY(-1px);
}

.contact-link svg {
  width: 1em !important;
  height: 1em !important;
  stroke: currentColor;
  stroke-width: 2;
}

/* ===========================================================
   === STOPKA ===
=========================================================== */
footer {
  text-align: center;
  font-size: var(--font-size-small);
  color: #555;
  margin-top: 2rem;
}

/* ===========================================================
   === ANIMACJE I EFEKTY ===
=========================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===========================================================
   === MEDIA QUERIES ===
=========================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 768px) {
  body {
    font-size: var(--font-size-mobile);
    padding: 1rem;
  }

  .custom-container {
    flex-direction: column;
    gap: 1rem;
  }

  .under_logo {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  footer {
    margin-top: 1.5rem;
  }
}

/* ===========================================================
   === MENU NAWIGACYJNE ===
   Minimalistyczne, eleganckie i responsywne.
=========================================================== */
.nav-menu {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
}

/* === Przycisk hamburger + MENU (desktop) === */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: #ffffff;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 1.3rem; /* większa czcionka */
  padding: 0.65rem 1.3rem;
  border-radius: 10px; /* delikatne zaokrąglenie */
  cursor: pointer;
  letter-spacing: 0.05em;
  line-height: 1;
  transition: all 0.3s ease;
  height: 2.9rem;
  min-width: 135px;
}

.menu-toggle:hover,
.menu-toggle.active {
  background: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.menu-icon {
  font-size: 1.8rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  line-height: 1;
}

.menu-label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  height: 100%;
}

/* === Lista rozwijanego menu (desktop) === */
.menu-list {
  position: absolute;
  top: 3.6rem;
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  overflow: hidden;
  min-width: 260px; /* szersze podmenu */
}

.menu-list.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* === Linki menu === */
.menu-list li {
  margin: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-list li:last-child {
  border-bottom: none;
}

.menu-list a {
  display: block;
  padding: 1rem 1.6rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}

.menu-list a:hover {
  background: var(--accent-color);
  color: #ffffff;
}

/* ===========================================================
   === PRZYCISK ZAMKNIĘCIA (tylko mobile)
=========================================================== */
.menu-close {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 2.3rem;
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
  line-height: 1;
}

.menu-close:hover {
  color: var(--accent-color);
  transform: rotate(90deg);
}

/* ===========================================================
   === RESPONSYWNOŚĆ MENU ===
=========================================================== */
@media (max-width: 768px) {
  /* Sam hamburger, bez napisu MENU */
  .menu-label {
    display: none;
  }

  .menu-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 0;
    height: auto;
    min-width: auto;
    box-shadow: none;
  }

  /* Brak cover/hover na hamburgerze */
  .menu-toggle:hover,
  .menu-toggle.active {
    background: none;
    color: var(--accent-color);
    box-shadow: none;
  }

  .menu-icon {
    font-size: 2.2rem;
    transition: transform 0.2s ease;
  }

  .menu-toggle:active .menu-icon {
    transform: scale(1.15);
  }

  /* Pełnoekranowe menu */
  .menu-list {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.4s ease;
  }

  .menu-list.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .menu-list a {
    font-size: 1.4rem;
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
    transition: transform 0.2s ease;
  }

  /* Usunięcie efektu cover i koloru na hover */
  .menu-list a:hover {
    background: none;
    color: var(--text-color);
    transform: scale(1.05);
  }

  /* Przycisk X tylko na mobile */
  .menu-close {
    display: block;
  }
}

/* ===========================================================
   === DODATKOWE DOPASOWANIA DLA MOBILE I SMARTFONÓW ===
=========================================================== */

/* Ukrywanie sloganów i pokazywanie menu w mobile */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .nav-menu {
    display: flex !important;
  }

  header {
    position: relative;
    padding-top: 1rem;
  }

}

/* Dodatkowy breakpoint – smartfony (np. iPhone 15 Pro ~430 px) */
@media (max-width: 430px) {
  body {
    padding: 1rem 0.5rem;
  }

  header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Logo centralnie */
  header img {
    width: 75%;
    max-width: 260px;
    margin-bottom: 0.6rem;
  }

  /* Hamburger pod logo */
  .nav-menu {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    display: flex;
    justify-content: center;
    margin-top: 0;
    z-index: 10;
  }

  .menu-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    height: auto;
    box-shadow: none;
  }

  /* Tylko sam hamburger – większy i lekko animowany */
  .menu-icon {
    font-size: 2.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
  }

  .menu-toggle:active .menu-icon {
    transform: scale(1.1);
  }

  /* Ukryj tekst MENU */
  .menu-label {
    display: none !important;
  }

  /* Drobne dopasowanie całości */
  .custom-container {
    padding: 0 0.5rem;
  }

  footer {
    font-size: 0.8rem;
  }
}