:root {
  --accent: #1E90FF;      
  --accent-light: #4DA6FF; 
  --cta: #2ECC71;        
  --bg: #F7F9FB;         
  --text: #111111;       
  --footer: #005FA3;     
  --card: #ffffff;
  --muted: #666;
  --maxw: 1000px;
}

/* --- Reset i ogólne --- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  padding-top: 90px;
}

/* --- Menu główne --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #4da6ff;
  display: flex;
  justify-content: center;
  padding: 30px 0;
  z-index: 1000;
  font-size: 0.9em;
  font-weight: 300;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 300;
  font-size: 0.9em;
}

nav a:hover {
  text-decoration: underline;
}

/* --- Menu na telefony / tablety --- */
@media (max-width: 768px) {
  nav {
    flex-direction: row;
    justify-content: space-around;
    padding: 15px 0;
    font-size: 0.85em;
  }
  body {
    padding-top: 55px;
  }
}

/* Bardzo małe ekrany */
@media (max-width: 480px) {
  nav {
    padding: 12px 0;
  }
  body {
    padding-top: 50px;
  }
}

/* --- Baner / header --- */
header {
  background-image: url('https://i.imgur.com/9HUEj4b.jpeg');
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  color: white;
  text-align: center;
}

@media (max-width: 768px) {
  header {
    height: 250px;
    font-size: 1.5em;
  }
}

@media (max-width: 480px) {
  header {
    height: 200px;
    font-size: 1.2em;
  }
}

/* --- Sekcje pod nav --- */
section, main {
  padding: 80px 20px 20px;
}

/* --- Poprawione nagłówki h2 --- */
h2 {
  color: var(--accent);
  font-size: 1.8em;
  text-align: center;
  margin: 40px 0 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* --- Tekst regulaminu / treści --- */
main {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 20px;
}

main h1 {
  font-size: 2em;
  color: var(--accent);
  text-align: center;
  margin-bottom: 30px;
}

main h2 {
  font-size: 1.5em;
  color: var(--accent);
  margin-top: 30px;
  margin-bottom: 10px;
}

main p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* --- Siatka ofert --- */
.oferty {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* --- Kafelki ofert --- */
.oferta {
  position: relative;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  background-color: var(--card);
  transition: transform 0.3s;
}

.oferta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.oferta:hover img {
  transform: scale(1.05);
}

/* --- Overlay z ceną --- */
.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 10px;
  text-align: center;
  z-index: 2;
}

/* --- Tekst i przycisk na kafelku --- */
.text-overlay {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 3;
}

.text-overlay h3 {
  margin: 0 0 8px 0;
  font-size: 1.1em;
}

.text-overlay p {
  margin: 0 0 8px 0;
  font-size: 0.85em;
}

.text-overlay button {
  background: var(--accent);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.text-overlay button:hover {
  background: #005fa3;
}

/* --- Formularz opinii --- */
.review-section {
  max-width: 600px;
  margin: 40px auto;
  background: var(--card);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.review-section h2 {
  text-align: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.review-form input,
.review-form textarea {
  padding: 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  width: 100%;
}

.review-form button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.review-form button:hover {
  background: #005fa3;
}

#thankYouMessage {
  text-align: center;
  margin-top: 15px;
  color: #2E7D32;
  font-weight: bold;
}

/* --- Stopka --- */
footer {
  background-color: var(--footer);
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
}

/* --- Wyświetlanie opinii w kafelkach --- */
.reviews-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.single-review {
  background: var(--card);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.single-review h3 {
  margin: 0;
  color: var(--accent);
  font-size: 1em;
}

.single-review p {
  margin: 0;
  color: #333;
  font-size: 0.85em;
}

.review-email {
  font-size: 0.75em;
  color: var(--muted);
  text-align: right;
}

.review-stars {
  color: #FFD700;
  font-size: 1em;
  margin: 4px 0;
}

/* --- Poprawione pop-upy modalne --- */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: linear-gradient(145deg, var(--card), var(--accent-light));
  padding: 30px 25px;
  border-radius: 20px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transform: translateY(-10px);
}

.modal .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: var(--accent);
  cursor: pointer;
  transition: color 0.2s;
}

.modal .close:hover {
  color: var(--accent-light);
}

.modal form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.modal input,
.modal textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}

.modal input:focus,
.modal textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(30,144,255,0.3);
}

.modal button {
  background: var(--accent);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.modal button:hover {
  background: var(--accent-light);
}

