:root {
  --magnolia: #f8f0fa;
  --magnolia-dark: #d8bfe8;
}

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

html, body {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  background-color: #fffaf0;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* ===== Nagłówek ===== */
header {
  text-align: center;
  background-color: #ffffff;
  padding: 40px 20px 10px;
  border-bottom: 1px solid #ddd;
}

header h1 {
  font-size: 2.5rem;
  color: var(--magnolia-dark);
}

.subtitle {
  font-size: 1.1rem;
  color: #666;
  margin-top: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: #444;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--magnolia-dark);
  border-bottom: 2px solid var(--magnolia-dark);
  padding-bottom: 3px;
}

/* ===== Sekcja kontaktowa ===== */
.contact {
  padding: 60px 20px;
  background-color: #fff;
  flex: 1;
}

.contact-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.side-image {
  flex: 1 1 250px;
  text-align: center;
}

.side-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-container {
  flex: 2 1 500px;
  padding: 20px;
}

.form-container h2 {
  font-size: 28px;
  color: var(--magnolia-dark);
  margin-bottom: 10px;
  text-align: center;
}

.form-container p {
  text-align: center;
  margin-bottom: 20px;
  font-size: 16px;
}

/* Usunięty formularz kontaktowy */

/* ===== Informacje kontaktowe ===== */
.phone-number {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #444;
  margin-bottom: 10px;
}

.phone-number i {
  margin-right: 8px;
  color: var(--magnolia-dark);
}

.address {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

/* ===== Stopka ===== */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: auto;
  width: 100%;
}
/* Tablety i mniejsze laptopy */
@media (max-width: 992px) {
  header h1 {
    font-size: 2rem;
  }
  nav ul {
    gap: 10px;
    flex-wrap: wrap;
  }
  .cards-wrapper,
  .books-container {
    gap: 20px;
  }
  .about img {
    max-width: 200px;
  }
}

/* Telefony i bardzo małe tablety */
@media (max-width: 576px) {
  nav ul {
    flex-direction: column;
    gap: 8px;
    padding: 0;
  }

  header h1 {
    font-size: 1.6rem;
  }

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

  .about {
    flex-direction: column;
    padding: 40px 10px;
    margin-top: 40px;
  }
  .about img {
    max-width: 150px;
  }

  .cards-wrapper,
  .books-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }

  .contact-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .form-container {
    padding: 10px;
    width: 100%;
  }

  footer {
    font-size: 14px;
    padding: 10px;
  }
}