/* ==========================================================================
   Mikawip — wspólne style dla wszystkich podstron.
   Kolor motywu ustawiany jest per-strona przez zmienne --accent / --accent-hover
   (patrz <style> w <head> każdej podstrony).
   ========================================================================== */

:root {
  --accent: #004b8d;
  --accent-hover: #003366;
  --bg: #f9f9f9;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: var(--accent);
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: var(--bg);
}

/* --- Nagłówek --- */
header {
  background-color: var(--accent);
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

header h1 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

header a {
  color: #fff;
  text-decoration: none;
}

a {
  text-decoration: none;
}

header p {
  font-size: 1rem;
}

.header-flex {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.logo {
  height: 60px;
  width: auto;
  max-width: 120px;
  flex-shrink: 0;
}

.header-text {
  flex: 1;
}

@media (max-width: 768px) {
  .header-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-text {
    flex: unset;
  }

  header h1 {
    font-size: 1.3rem;
    margin: 10px 0;
  }
}

.mobile-break {
  display: inline;
}

@media (max-width: 768px) {
  .mobile-break {
    display: block;
  }
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1 {
  margin-bottom: 1.5rem;
  color: var(--accent);
  text-align: center;
}

/* --- Pasek "Powrót" + tytuł sekcji --- */
.section-header {
  position: sticky;
  top: 0;
  background-color: var(--bg);
  z-index: 999;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: nowrap;
}

.section-title {
  margin: 0;
  color: var(--accent);
  text-align: center;
  flex: 1;
  font-size: 2rem;
}

.back-link {
  background-color: #333;
  color: #fff;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.spacer {
  width: 80px;
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.4rem;
  }

  .back-link {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }

  .spacer {
    width: 60px;
  }
}

/* --- Baner na całą szerokość --- */
.full-banner img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

/* --- Tekst na całą szerokość --- */
.full-text {
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  text-align: center;
}

.full-text h2 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.full-text p {
  font-size: 1rem;
  color: #333;
}

/* --- Sekcja tekst + obraz (i odwrotnie) --- */
.half-section,
.half-section-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.half-section .text,
.half-section .image,
.half-section-alt .text,
.half-section-alt .image {
  flex: 1;
  min-width: 300px;
}

.half-section .text h2,
.half-section-alt .text h2 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.half-section .text p,
.half-section-alt .text p {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}

.half-section .image img,
.half-section-alt .image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.half-section-alt .image {
  order: 1;
}

.half-section-alt .text {
  order: 2;
}

@media (max-width: 768px) {
  .half-section-alt {
    flex-direction: column;
  }

  .half-section-alt .image,
  .half-section-alt .text {
    order: unset;
    width: 100%;
  }
}

/* --- Kontakt --- */
.contact {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.contact h2 {
  margin-bottom: 1rem;
  color: var(--accent);
}

.contact p {
  margin-bottom: 0.5rem;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info {
  flex: 1;
  min-width: 250px;
}

.contact-map {
  flex: 1;
  min-width: 300px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 250px;
  border: none;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }
}

iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 8px;
}

.contact-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form button {
  padding: 0.7rem 1.2rem;
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-form button:hover {
  background-color: var(--accent-hover);
}

/* --- Stopka --- */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #eee;
  font-size: 0.9rem;
  color: #555;
}

/* --- Przycisk "do góry" --- */
#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  #scrollTopBtn {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 15px;
    right: 15px;
  }
}
