  /* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f4f4f4;
}

/* HEADER - nowoczesny wygląd */
.header {
  width: 100%;
  height: 400px;
  background-color: #c22028;
 background-image: linear-gradient(
  to bottom,
  rgba(0,0,0,0.45),
  rgba(0,0,0,0.45)
),
url('grafi/tlo.jpg');

  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  border-radius: 0 0 50px 50px;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.2);
  position: relative; /* potrzebne dla promo-box */
}

.header h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  text-shadow: 3px 3px 8px rgba(0,0,0,0.6);
  margin-bottom: 25px;
  line-height: 1.2;
}

.header h2 {
  text-transform: uppercase;
  color: #fff;
  font-size: 24px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

.header button {
  padding: 14px 30px;
  font-size: 16px;
  background: linear-gradient(135deg, #c22028, #991922);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.header button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* Okienko promocyjne w prawym górnym rogu headera */
.promo-box {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 260px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  overflow: hidden;
  z-index: 500;
  font-family: Arial, sans-serif;
  animation: fadeIn 1s ease-in;
}

.promo-header {
  background: linear-gradient(135deg, #c22028, #991922);
  color: white;
  padding: 10px 15px;
  font-weight: bold;
  text-align: center;
}

.promo-content {
  padding: 12px 15px;
  text-align: center;
  color: #333;
}

.promo-content .promo-code {
  background-color: #f6f6f6;
  padding: 5px 10px;
  border-radius: 5px;
  color: #c22028;
  font-weight: bold;
  font-size: 16px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* New Text Section */
.new-text {
  background: linear-gradient(90deg, #c22028, #991922);
  color: white;
  padding: 25px 20px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.5px;
  border-radius: 15px;
  margin: 20px auto;
  width: 90%;
  max-width: 1200px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Content Boxes */
.content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
  gap: 20px;
  align-items: stretch;
}

.content:last-of-type {
  margin-bottom: 80px;
}

.box-link {
  text-decoration: none;
  color: black;
  display: block;
  width: 300px;
}

.box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  overflow: hidden;
}

.box img {
  width: calc(100% - 20px);
  height: auto;
  margin: 10px auto 0 auto;
  border-radius: 15px;
  transition: transform 0.5s;
}

.box:hover img {
  transform: scale(1.05);
}

.box-title {
  font-size: 19px;
  font-weight: 600;
  margin: 12px 0;
  position: relative;
  text-align: center;
}

.box-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: #c22028;
  margin: 6px auto 0 auto;
  border-radius: 2px;
}

.box button {
  margin: 10px auto 20px auto;
  padding: 10px 20px;
  font-size: 14px;
  background: linear-gradient(135deg, #c22028, #991922);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}




/* Responsywność – tylko reszta strony */
@media (max-width: 768px) {
  .header { height: 300px; }
  .header h1 { font-size: 28px; }

  .box { width: 90%; }

  .promo-box {
    width: 180px; /* mniejszy, kompaktowy box */
    top: 60%;     /* lekko niżej w headerze, nad buttonem */
    right: 15px;  /* zachowanie prawej krawędzi */
    transform: none;
  }
}

@media (max-width: 480px) {
  .header { height: 250px; }
  .header h1 { font-size: 20px; }
}