/* ==========================================================================
   Wspólne style podstron (wynajem dmuchańców, organizacja eventów).
   Nagłówek, stopka i typografia są celowo identyczne jak na stronie głównej.
   ========================================================================== */

:root{
  --accent-red:#e8432f;
  --accent-red-hover:#d63a27;
  --nav-bg:#ffffff;
  --ink:#221c33;
  --ink-soft:#5a5468;
  --ink-muted:#8a8496;
  --line:#ececec;
  --line-dash:#e6e2ef;
  --indigo:#4f4699;
}

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

body{
  font-family:'Nunito', sans-serif;
  background:#ffffff;
  color:var(--ink);
}

/* ============ NAGŁÓWEK ============ */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  pointer-events:none;
}
.site-header nav,
.site-header .header-wave,
.site-header .badge-logo{ pointer-events:auto; }

nav{
  position:relative;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 48px 12px 220px;
  background:var(--nav-bg);
  min-height:88px;
}

.header-wave{
  position:relative;
  z-index:2;
  height:120px;
  line-height:0;
  margin-top:-1px;
}
.header-wave svg{ display:block; width:100%; height:100%; }

.badge-logo{
  position:absolute;
  top:48px;
  left:9%;
  z-index:6;
  width:150px;
  height:150px;
  border-radius:50%;
  background:#ffffff;
  border:8px solid #ffffff;
  box-shadow:0 12px 28px rgba(0,0,0,0.28);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.badge-logo img{
  width:100%; height:100%;
  object-fit:cover;
  border-radius:50%;
  display:block;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:36px;
  list-style:none;
  margin-left:auto;
}
.nav-links a{
  text-decoration:none;
  color:#2b2b2b;
  font-weight:700;
  font-size:15px;
  transition:color 0.2s ease;
}
.nav-links a:hover{ color:var(--accent-red); }
.nav-links a[aria-current="page"]{ color:var(--accent-red); }

.nav-cta{
  /* `display` nalezy do reguly bazowej, nie do pozniejszego `a.nav-cta`.
     Inaczej wyzsza specyficznosc selektora z elementem bije `display:none`
     z media query i przycisk zostaje widoczny na telefonie, rozpychajac
     naglowek poza szerokosc ekranu. */
  display:inline-block;
  margin-left:36px;
  background:var(--accent-red);
  color:#fff;
  border:none;
  padding:13px 26px;
  border-radius:10px;
  font-family:'Nunito', sans-serif;
  font-weight:700;
  font-size:15px;
  text-decoration:none;
  cursor:pointer;
  transition:background 0.2s ease, transform 0.15s ease;
}
.nav-cta:hover{ background:var(--accent-red-hover); transform:translateY(-1px); }

.nav-cta:focus-visible,
.nav-links a:focus-visible,
.badge-logo:focus-visible{
  outline:3px solid #ffb703;
  outline-offset:3px;
}

.nav-hamburger{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
  margin-left:auto;
}
.nav-hamburger span{
  width:26px; height:3px;
  border-radius:2px;
  background:#2b2b2b;
  transition:transform 0.25s ease, opacity 0.2s ease;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }

/* menu mobilne */
.nav-links.is-open{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:0;
  margin:0;
  position:absolute;
  top:100%; left:0; right:0;
  background:var(--nav-bg);
  padding:4px 20px 16px;
  box-shadow:0 12px 26px -14px rgba(0,0,0,0.35);
}
.nav-links.is-open li{ width:100%; }
.nav-links.is-open a{
  display:block;
  padding:15px 4px;
  border-bottom:1px solid #f0f0f0;
}
.nav-links.is-open li:last-child a{ border-bottom:none; }

/* nagłówek chudnie po przewinięciu, żeby nie zakrywał treści */
.header-wave, .badge-logo{ transition:opacity 0.3s ease, transform 0.3s ease; }
.site-header.is-compact .header-wave{ opacity:0; pointer-events:none; }
.site-header.is-compact .badge-logo{ transform:scale(0.46) translateY(-34px); }

/* ============ NAGŁÓWEK STRONY ============ */
.page-head{
  max-width:1160px;
  margin:0 auto;
  padding:10px 24px 0;
  text-align:center;
}
.breadcrumb{
  margin-bottom:18px;
  font-size:0.88rem;
  font-weight:700;
  color:var(--ink-muted);
}
.breadcrumb a{ color:var(--ink-muted); text-decoration:none; }
.breadcrumb a:hover{ color:var(--accent-red); }

.page-head h1{
  font-family:'DynaPuff', cursive;
  font-weight:600;
  font-size:clamp(1.9rem, 4vw, 2.9rem);
  color:var(--ink);
  line-height:1.25;
}
.page-head .lead{
  margin:16px auto 0;
  color:#6b6478;
  font-weight:600;
  font-size:1.05rem;
  max-width:640px;
  line-height:1.65;
}

/* ============ SEKCJE ============ */
.section-inner{
  max-width:1160px;
  margin:0 auto;
  padding:64px 24px;
}

.grid-heading{
  font-family:'DynaPuff', cursive;
  font-weight:600;
  font-size:clamp(1.5rem, 3vw, 2.1rem);
  color:var(--ink);
  text-align:center;
}
.grid-sub{
  text-align:center;
  color:#6b6478;
  font-weight:600;
  font-size:1.02rem;
  line-height:1.6;
  max-width:600px;
  margin:12px auto 40px;
}
.divider{ border-top:2px dashed var(--line-dash); padding-top:56px; }

/* ---- kafelki okazji / kategorii ---- */
.tile-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
.tile-grid.cols-2{ grid-template-columns:repeat(2, 1fr); }

.tile{
  border-radius:24px;
  padding:26px 24px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.tile.purple{ background:#e3defb; }
.tile.yellow{ background:#fdf1c7; }
.tile.mint{ background:#d3f5ea; }
.tile.rose{ background:#fbdada; }
.tile.sky{ background:#d3ecf5; }
.tile.sand{ background:#f7ecd9; }

.tile-icon{ font-size:1.9rem; line-height:1; }
.tile h3{
  font-family:'DynaPuff', cursive;
  font-weight:600;
  font-size:1.15rem;
  color:var(--ink);
}
.tile p{
  color:var(--ink-soft);
  font-weight:600;
  font-size:0.93rem;
  line-height:1.55;
}

/* ---- karty kategorii ze zdjęciem ---- */
.cat-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:26px;
}
.cat-card{
  border-radius:24px;
  padding:22px;
  display:flex;
  flex-direction:column;
  background:#e3defb;
}
.cat-card.yellow{ background:#fdf1c7; }
.cat-card.mint{ background:#d3f5ea; }

/* miejsce na zdjęcie — podmień <span> na <img src="..."> */
.cat-photo{
  position:relative;
  height:180px;
  border-radius:16px;
  margin-bottom:18px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#9a8fe4,#6f64d6);
}
.cat-card.yellow .cat-photo{ background:linear-gradient(135deg,#ffcf5c,#ff9f1c); }
.cat-card.mint .cat-photo{ background:linear-gradient(135deg,#4fd8b0,#28b98a); }
.cat-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.photo-slot{
  font-weight:700;
  font-size:0.8rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:rgba(255,255,255,0.9);
  background:rgba(0,0,0,0.18);
  padding:8px 16px;
  border-radius:100px;
}
.cat-card h3{
  font-family:'DynaPuff', cursive;
  font-weight:600;
  font-size:1.2rem;
  margin-bottom:10px;
}
.cat-card p{
  color:var(--ink-soft);
  font-weight:600;
  font-size:0.93rem;
  line-height:1.55;
}

/* ---- kroki procesu ---- */
.steps{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:22px;
  counter-reset:krok;
}
.steps.five{ grid-template-columns:repeat(5, 1fr); }

.step{
  position:relative;
  padding:28px 20px 24px;
  border:1px solid var(--line);
  border-radius:20px;
  text-align:center;
}
.step::before{
  counter-increment:krok;
  content:counter(krok);
  display:flex;
  align-items:center;
  justify-content:center;
  width:44px; height:44px;
  margin:0 auto 14px;
  border-radius:50%;
  background:var(--indigo);
  color:#fff;
  font-family:'DynaPuff', cursive;
  font-size:1.15rem;
}
.step h3{
  font-family:'DynaPuff', cursive;
  font-weight:600;
  font-size:1.05rem;
  margin-bottom:8px;
}
.step p{
  color:var(--ink-soft);
  font-weight:600;
  font-size:0.9rem;
  line-height:1.5;
}

/* ---- lista zakresu obsługi ---- */
.scope{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:14px 34px;
  max-width:900px;
  margin:0 auto;
  list-style:none;
}
.scope li{
  display:flex;
  gap:12px;
  font-weight:700;
  color:#3a3548;
  font-size:0.98rem;
  line-height:1.5;
  padding-bottom:14px;
  border-bottom:1px dashed var(--line-dash);
}
.scope li::before{
  content:"";
  flex-shrink:0;
  width:14px; height:14px;
  margin-top:5px;
  border-radius:50%;
  background:var(--accent-red);
}

/* ---- FAQ ---- */
.faq{ max-width:820px; margin:0 auto; }
.faq details{
  border:1px solid var(--line);
  border-radius:16px;
  margin-bottom:12px;
  background:#fff;
  overflow:hidden;
}
.faq summary{
  cursor:pointer;
  list-style:none;
  padding:20px 54px 20px 22px;
  font-weight:800;
  font-size:1rem;
  color:var(--ink);
  position:relative;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{
  content:"+";
  position:absolute;
  right:22px; top:50%;
  transform:translateY(-50%);
  font-size:1.5rem;
  font-weight:700;
  color:var(--indigo);
  line-height:1;
}
.faq details[open] summary::after{ content:"–"; }
.faq details[open] summary{ color:var(--accent-red); }
.faq .answer{
  padding:0 22px 22px;
  color:var(--ink-soft);
  font-weight:600;
  font-size:0.95rem;
  line-height:1.65;
}

/* ---- pas CTA (ta sama fala co na stronie głównej) ---- */
.cta-band{
  background:url('fala.png') center/100% 100% no-repeat;
  /* fala kryje w pełni dopiero między 29% a 73% wysokości — odstępy
     trzymają tekst w tym pasie, żeby krawędzie nie wchodziły na litery */
  padding:200px 24px 195px;
  text-align:center;
  margin-top:70px;
}
.cta-band h2{
  font-family:'DynaPuff', cursive;
  font-weight:600;
  color:#fff;
  font-size:clamp(1.6rem, 3.4vw, 2.4rem);
}
.cta-band p{
  color:#e7e4ff;
  font-weight:600;
  max-width:600px;
  margin:16px auto 0;
  line-height:1.65;
}
.cta-band a.call{
  display:inline-block;
  margin-top:26px;
  background:var(--accent-red);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:16px;
  padding:17px 38px;
  border-radius:14px;
  box-shadow:0 12px 28px -8px rgba(232,67,47,0.55);
  transition:background 0.2s ease, transform 0.15s ease;
}
.cta-band a.call:hover{ background:var(--accent-red-hover); transform:translateY(-2px); }

/* ============ STOPKA ============ */
footer{
  background:#ffffff;
  border-top:1px solid var(--line);
  padding:56px 24px 50px;
  text-align:center;
}
.footer-phone{ color:var(--ink); font-weight:800; font-size:1.05rem; }
.footer-links{
  display:flex;
  justify-content:center;
  gap:32px;
  flex-wrap:wrap;
  margin-top:18px;
}
.footer-links a{
  color:var(--ink-soft);
  text-decoration:none;
  font-weight:700;
  font-size:0.92rem;
}
.footer-links a:hover{ color:var(--accent-red); }
.footer-copy{
  margin-top:26px;
  color:var(--ink-muted);
  font-size:0.82rem;
  font-weight:600;
}

/* ============ RESPONSYWNOŚĆ ============ */
@media (max-width:1000px){
  .tile-grid, .cat-grid{ grid-template-columns:repeat(2, 1fr); }
  .steps, .steps.five{ grid-template-columns:repeat(2, 1fr); }
}

@media (max-width:840px){
  nav{ padding:16px 20px 16px 132px; }
  .nav-links{ display:none; }
  .nav-cta{ display:none; }
  .nav-hamburger{ display:flex; }
  .header-wave{ height:90px; }
  .badge-logo{ width:104px; height:104px; top:52px; left:16px; border-width:6px; }
  .site-header.is-compact .badge-logo{ transform:scale(0.62) translateY(-28px); }
  /* okrągłe logo zwisa nad rozwiniętym menu — pierwsza pozycja musi je minąć */
  .nav-links.is-open{ padding-top:84px; }
  .cta-band{ padding:215px 20px 205px; }
}

@media (max-width:680px){
  .tile-grid, .tile-grid.cols-2, .cat-grid{ grid-template-columns:1fr; }
  .steps, .steps.five{ grid-template-columns:1fr; }
  .scope{ grid-template-columns:1fr; }
  .section-inner{ padding:48px 20px; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; }
}

/* ============ FORMULARZ KONTAKTOWY ============ */
.form-section{
  background:#ffffff;
  padding:80px 24px 90px;
}

.form-wrap{
  max-width:760px;
  margin:0 auto;
}

.form-heading{
  font-family:'DynaPuff', cursive;
  font-weight:600;
  font-size:clamp(1.6rem, 3.2vw, 2.3rem);
  color:#221c33;
  text-align:center;
}

.form-sub{
  text-align:center;
  color:#6b6478;
  font-weight:600;
  font-size:1.02rem;
  line-height:1.6;
  max-width:560px;
  margin:14px auto 40px;
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.form-grid .full{ grid-column:1 / -1; }

.field label{
  display:block;
  font-weight:800;
  font-size:0.88rem;
  color:#3a3548;
  margin-bottom:7px;
}
.field label .opt{ font-weight:600; color:#8a8496; }

.field input,
.field select,
.field textarea{
  width:100%;
  font-family:'Nunito', sans-serif;
  font-weight:600;
  font-size:0.98rem;
  color:#221c33;
  background:#faf9fc;
  border:1px solid #e2dff0;
  border-radius:12px;
  padding:14px 15px;
  transition:border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field textarea{ resize:vertical; min-height:130px; }

.field input:focus,
.field select:focus,
.field textarea:focus{
  outline:none;
  background:#ffffff;
  border-color:#6f64d6;
  box-shadow:0 0 0 3px rgba(111,100,214,0.16);
}

/* pole z błędem — oznaczane przez skrypt po walidacji */
.field.has-error input,
.field.has-error select,
.field.has-error textarea{
  border-color:var(--accent-red);
  background:#fff7f6;
}
.field .error-msg{
  display:none;
  margin-top:6px;
  font-size:0.83rem;
  font-weight:700;
  color:var(--accent-red);
}
.field.has-error .error-msg{ display:block; }

.consent{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-top:6px;
}
.consent input{
  flex-shrink:0;
  width:20px; height:20px;
  margin-top:2px;
  accent-color:#6f64d6;
}
.consent span{
  font-size:0.86rem;
  font-weight:600;
  color:#6b6478;
  line-height:1.55;
}
.consent.has-error span{ color:var(--accent-red); }

.form-submit{
  display:inline-block;
  margin-top:8px;
  background:var(--accent-red);
  color:#fff;
  border:none;
  padding:17px 40px;
  border-radius:14px;
  font-family:'Nunito', sans-serif;
  font-weight:700;
  font-size:16px;
  cursor:pointer;
  box-shadow:0 12px 28px -8px rgba(232,67,47,0.5);
  transition:background 0.2s ease, transform 0.15s ease;
}
.form-submit:hover{ background:var(--accent-red-hover); transform:translateY(-2px); }
.form-submit:focus-visible{ outline:3px solid #ffb703; outline-offset:3px; }

.form-note{
  margin-top:18px;
  font-size:0.86rem;
  font-weight:600;
  color:#8a8496;
  line-height:1.55;
}

/* komunikat po wysłaniu */
.form-status{
  display:none;
  margin-top:22px;
  padding:18px 20px;
  border-radius:14px;
  font-weight:700;
  font-size:0.95rem;
  line-height:1.55;
}
.form-status.show{ display:block; }
.form-status.info{ background:#fdf1c7; color:#6b4d00; }

@media (max-width:680px){
  .form-grid{ grid-template-columns:1fr; }
  .form-section{ padding:60px 20px 70px; }
}

/* kafelki kontaktu są klikalne (telefon / e-mail) */
.contact-tile{
  text-decoration:none;
  color:inherit;
  transition:transform 0.15s ease, box-shadow 0.15s ease;
}
.contact-tile:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 30px -16px rgba(0,0,0,0.3);
}
.contact-tile strong{ color:var(--ink); }

/* nav-cta bywa linkiem, nie tylko przyciskiem */
a.nav-cta{ text-decoration:none; }

/* ============ CTA REZERWACJI ONLINE ============
   Dokladane do istniejacego pasa CTA. Czerwony przycisk zostaje bez zmian,
   wariant konturowy sluzy alternatywnej sciezce (telefon). */
.cta-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:26px;
}
.cta-actions .call{ margin-top:0; }

.cta-band a.call.call-ghost{
  background:rgba(255,255,255,0.14);
  border:2px solid rgba(255,255,255,0.8);
  box-shadow:none;
}
.cta-band a.call.call-ghost:hover{ background:rgba(255,255,255,0.24); }
