: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;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== Header ===== */
header {
  text-align: center;
  padding: 20px;
  background-color: #fffaf0;
}

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

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

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

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

nav ul li a:hover,
nav ul li a.active {
  color: var(--magnolia-dark);
}

/* ===== Hero ===== */
.logo {
  padding: 0;
  margin: 0;
}

.logo img {
  width: 100vw;
  max-height: 350px; /* <-- zwiększono z 250px na 350px */
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
}

/* ===== About Section ===== */
.about {
  margin-top: 100px;           /* było 50px */
  padding: 80px 20px 80px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background-color: #fffaf0;
}

.about img {
  max-width: 250px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.about div {
  max-width: 600px;
}

.about h2 {
  font-size: 24px;
  color: var(--magnolia-dark);
  margin-bottom: 10px;
}

/* ===== Footer ===== */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: auto;
}
/* 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;
  }
}