/* ====== RESET / BASE ====== */
html, body {
  border: none;
  outline: none;
  margin: 0;
  padding: 0;
  background-color: #0d051a;
  color: #fff;
  width: 100%;
  min-height: 100%;
  height: auto;                 /* pozwól rosnąć */
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body { font-family: Arial, sans-serif; }

/* ====== NAVBAR (DESKTOP) ====== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1a112b;
  padding: 15px 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  gap: 40px;
}
.nav-left, .nav-right { display: flex; gap: 20px; }
.navbar a {
  color: white; text-decoration: none; font-weight: bold;
  padding: 10px 15px; border-radius: 8px; transition: background 0.2s;
}
.nav-left a:hover, .nav-right a:hover { background-color: rgba(255, 255, 255, 0.1); }
.nav-logo img { max-height: 65px; }
@media (max-width: 768px) { .navbar { display: none; } }
.btn.gradient { background: linear-gradient(45deg, #ff00d4, #ff9100); color: white; }

/* ====== NAVBAR (MOBILE) ====== */
.mobile-navbar { display: none; }
@media (max-width: 768px) {
  .mobile-navbar {
    display: block; background-color: #1a112b; position: sticky; top: 0; z-index: 999;
    padding: 15px 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  }
  .mobile-nav-top { display: flex; justify-content: space-between; align-items: center; }
  .mobile-logo { height: 50px; }
  .burger { font-size: 30px; cursor: pointer; color: white; }

  .mobile-menu { display: none; flex-direction: column; margin-top: 10px; animation: slideDown 0.5s ease forwards; }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    padding: 12px; margin: 5px 0; border-radius: 8px; text-align: center; font-weight: bold; color: white; text-decoration: none;
  }
  .mobile-menu a:nth-child(1) { background-color: #00e0ff; }
  .mobile-menu a:nth-child(2) { background-color: #ff00d4; }
  .mobile-menu a:nth-child(3) { background-color: #ff9100; }
  .mobile-menu a:nth-child(4) { background: linear-gradient(45deg, #ff00d4, #ff9100); }

  @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
}

/* ====== MAP SECTION ====== */
.map-section {
  background-image: url('../img/bckgrnd.png'); /* ścieżka względna od HTML-a */
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 80px 20px;
  color: white;
}
.map-container {
  display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center;
  background-color: rgba(0, 0, 0, 0.6); border-radius: 20px; padding: 40px; max-width: 1200px; margin: auto;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.map-box {
  flex: 1 1 400px; min-width: 300px; max-width: 600px;
  border: 3px solid #ff00d4; border-radius: 15px; overflow: hidden; box-shadow: 0 0 30px #ff00d4;
}
.map-info { flex: 1 1 300px; max-width: 500px; text-align: left; }
.map-info h2 { font-size: 32px; margin-bottom: 20px; }
.map-info p  { margin-bottom: 15px; font-size: 16px; color: #fff; }
.map-info .btn {
  display: inline-block; margin-top: 10px; padding: 12px 25px; font-size: 16px; font-weight: bold; border-radius: 10px;
  text-decoration: none; background: linear-gradient(45deg, #ff00d4, #ff9100); color: white; transition: transform 0.2s;
}
.map-info .btn:hover { transform: scale(1.05); }
footer { background-color: #0d051a; text-align: center; padding: 10px; font-size: 14px; color: #999; }
@media (max-width: 768px) { .map-section { background-attachment: scroll !important; } }

/* ====== OFERTA – sekcja i kontener ====== */
.offer-section {
  background: linear-gradient(to right, #0d051a, #110820);
  padding: 80px 0;
  color: #fff;
}
.offer-wrap {
  width: 80%; max-width: 1200px; margin: 0 auto;
  display: grid; gap: 22px;
}

/* ====== KATEGORIE ====== */
.offer-category { margin-top: 50px; margin-bottom: 18px; width: 100%; }
.offer-category h2 {
  font-family: 'Impact', sans-serif; font-size: 28px; color: #fff; margin-bottom: 6px; letter-spacing: 1.2px;
}
.offer-category-line {
  width: 100%; height: 2px; background: linear-gradient(90deg, #00f0ff, rgba(0,240,255,0));
  border-radius: 2px; box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

/* ====== KAFEL ====== */
/* KLUCZOWE: .offer-card jest block (nie grid), grid jest na .offer-head */
.offer-card {
  position: relative;
  display: block;
  border: 1px solid #00f0ff;
  border-radius: 14px;
  background: rgba(0,0,0,0.35);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
  scroll-margin-top: 80px; /* offset pod sticky navbar */
  padding: 0;
}
.offer-card:hover { transform: translateY(-4px); box-shadow: 0 0 24px rgba(123, 97, 255, 0.45); border-color: #7b61ff; }

/* ====== GŁOWA KAFLA ====== */
.offer-head {
  appearance: none; background: none; border: 0;
  display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 20px;
  width: 100%; cursor: pointer; padding: 24px 26px; position: relative; z-index: 1;
}
/* Ikona w headzie */
.offer-icon {
  width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; font-size: 34px;
  background: radial-gradient(closest-side, rgba(0,224,214,0.18), rgba(123,97,255,0.08));
  border: 1px solid rgba(0,224,214,0.35); box-shadow: inset 0 0 18px rgba(123,97,255,0.25);
}
/* Treści w headzie */
.offer-body h3 {
  font-family: 'Inter', sans-serif; font-size: 26px; margin: 0 0 8px; color: #ffffff;
  text-shadow: 0 0 6px rgba(123, 97, 255, .25);
  text-align: left;
}
.offer-body p { margin: 0 0 14px; line-height: 1.6; color: #cfd7e6; font-size: 15.5px;
  text-align: left;}
.offer-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.offer-chips span {
  display: inline-block; padding: 6px 10px; font-size: 13px; border-radius: 10px; color: #fff;
  background: linear-gradient(90deg, rgba(0,224,214,0.25), rgba(123,97,255,0.28));
  border: 1px solid rgba(0,224,214,0.45); box-shadow: 0 0 10px rgba(123,97,255,0.25); white-space: nowrap;
}

/* RWD head */
@media (max-width: 992px) { .offer-head { grid-template-columns: 70px 1fr; padding: 20px 22px; } }
@media (max-width: 640px) {
  .offer-wrap { width: 88%; }
  .offer-head { grid-template-columns: 56px 1fr; gap: 14px; padding: 16px 18px; }
  .offer-icon { width: 56px; height: 56px; font-size: 26px; border-radius: 12px; }
  .offer-body h3 { font-size: 20px; }
  .offer-body p  { font-size: 14px; }
  .offer-chips span { font-size: 12px; }
}

/* ====== PANEL ROZWIJANY ====== */
.offer-details {
  background: rgba(23, 29, 39, 0.85);
  border-top: 1px solid rgba(0, 224, 214, 0.35);
  max-height: 0; overflow: hidden; opacity: 0;
  padding: 0 26px;             /* tylko boki przed otwarciem */
  margin-top: 0;
  transition: max-height .45s ease, opacity .35s ease, padding .25s ease, margin .25s ease;
  will-change: max-height, opacity;
}
.offer-card.open .offer-details {
  opacity: 1;
  padding: 18px 26px 22px;     /* pełny padding gdy otwarte */
  margin-top: 8px;
}
/* Dłuższy opis + listy */
.offer-long { margin: 0 0 12px; color: #cfd7e6; line-height: 1.6; font-size: 15.5px; }
.offer-bullets { margin: 0 0 14px; padding-left: 18px; color: #e5eaf5; }
.offer-bullets li { margin-bottom: 6px; }

/* ====== CENNIKI ====== */
.price-grid-two { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 6px; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 14px; margin-top: 6px; }
.price-grid-two .price-box { flex: 0 0 220px; max-width: 280px; }
.price-box {
  background: linear-gradient(135deg, rgba(0,224,214,0.15), rgba(123,97,255,0.15));
  border: 1px solid rgba(0,224,214,0.45); border-radius: 12px; padding: 14px 12px; text-align: center;
  box-shadow: 0 0 12px rgba(123,97,255,.25);
}
.price-box .size { display: block; color: #00e0d6; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.price-box .amount { font-size: 20px; font-weight: 800; color: #fff; }
@media (max-width: 992px) { .price-grid { grid-template-columns: 1fr; } }

/* ====== ADDONS ====== */
.addons-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 16px;
  overflow-x: hidden;
}
.addon-tile {
  box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  width: 100%; min-width: 0; background: #171d27; color: #e5eaf5; border-radius: 10px; padding: 10px 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 2px 8px rgba(0,0,0,.25);
}
.addon-label { font-size: 15px; font-weight: 600; line-height: 1.25; white-space: normal; overflow: hidden; text-overflow: ellipsis; min-width: 0; word-break: break-word; }
.addon-price {
  flex-shrink: 0; white-space: nowrap; border-radius: 10px; padding: 8px 12px; font-weight: 800; letter-spacing: .2px;
  border: 1px solid #7b61ff; background: linear-gradient(135deg, rgba(0,224,214,0.25), rgba(123,97,255,0.25));
  box-shadow: 0 0 14px rgba(123,97,255,0.25); color: #fff;
}
.addon-tile:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 8px 24px rgba(0,0,0,.35); }
.addons-separator,
.addons-separator-2 { height: 1px; margin: 18px 0 18px; border-radius: 999px; }
.addons-separator {
  background: linear-gradient(90deg, rgba(212,175,55,0) 0%, rgba(212,175,55,.65) 20%, rgba(212,175,55,.65) 80%, rgba(212,175,55,0) 100%);
}
.addons-separator-2 {
  background: linear-gradient(90deg, rgba(157,78,221,0) 0%, rgba(157,78,221,.65) 20%, rgba(157,78,221,.65) 80%, rgba(157,78,221,0) 100%);
}
.spacer { height: 12px; }
@media (max-width: 360px) { .addon-price { padding: 6px 10px; font-size: 14px; } }
