@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Quicksand:wght@500;600;700&display=swap");
:root{
  --red:#ef2d2f;--navy:#0b365f;--cream:#fffaf2;--pink:#fde9e9;--blue:#e8f4ff;--green:#ecf7e7;--yellow:#fff2c7;--ink:#17324a;--muted:#627286;--white:#fff;--radius:24px;--shadow:0 12px 35px rgba(16,45,73,.10)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:"Nunito",Arial,Helvetica,sans-serif;color:var(--ink);background:#fff}.container{width:min(1160px,calc(100% - 32px));margin:auto}a{text-decoration:none;color:inherit}img{max-width:100%;display:block}.topbar{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid #edf0f2}.nav{height:108px;display:flex;align-items:center;gap:26px}.brand{display:flex;align-items:center;gap:12px;margin-right:auto}.brand img{width:96px;height:96px;object-fit:contain}.brand-text{font-size:12px;color:var(--muted);max-width:170px}.navlinks{display:flex;align-items:center;gap:22px;font-weight:700;font-size:14px}.navlinks a:hover{color:var(--red)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:14px 22px;border-radius:999px;font-weight:800;border:1.5px solid var(--navy);transition:.2s}.btn:hover{transform:translateY(-1px)}.btn-primary{background:var(--red);border-color:var(--red);color:white}.btn-light{background:white}.lang{display:flex;border:1px solid #dfe5ea;border-radius:999px;padding:3px;font-size:12px;font-weight:800}.lang button{border:0;background:transparent;padding:7px 9px;border-radius:999px;cursor:pointer;color:var(--muted)}.lang button.active{background:var(--navy);color:#fff}.menu-toggle{display:none;border:0;background:transparent;font-size:28px;color:var(--navy)}
.hero{background:linear-gradient(135deg,#fff 0%,#fff9f5 52%,#f8fbff 100%);padding:42px 0 34px;overflow:hidden}.hero-grid{display:grid;grid-template-columns:.82fr 1.28fr;align-items:center;gap:34px}.eyebrow{font-weight:900;color:var(--red);letter-spacing:.04em;text-transform:uppercase;font-size:13px}.hero h1,.page-hero h1{font-family:"Quicksand","Nunito",Arial,Helvetica,sans-serif;font-weight:700;font-size:clamp(42px,6vw,78px);line-height:.98;color:var(--navy);margin:12px 0 20px}.hero p{font-size:20px;line-height:1.55;max-width:630px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.hero-photo{position:relative}.hero-photo img{width:100%;height:auto;aspect-ratio:820/510;object-fit:contain;border-radius:28px;box-shadow:var(--shadow);background:#fff}.scribble{position:absolute;right:6%;top:7%;background:rgba(255,255,255,.86);padding:10px 14px;border-radius:18px;font-family:"Comic Sans MS",cursive;font-size:18px;transform:rotate(-5deg);color:var(--navy)}
.quick{padding:24px 0}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.quick-card{padding:20px;border-radius:20px;font-weight:800;display:flex;gap:12px;align-items:center}.quick-card:nth-child(1){background:var(--pink)}.quick-card:nth-child(2){background:var(--yellow)}.quick-card:nth-child(3){background:var(--green)}.icon{font-size:28px}
.section{padding:76px 0}.section.alt{background:var(--cream)}.section h2{font-family:"Quicksand","Nunito",Arial,Helvetica,sans-serif;font-weight:700;font-size:42px;color:var(--navy);margin:0 0 14px}.lead{font-size:18px;color:var(--muted);max-width:760px;line-height:1.65}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:32px}.card{border-radius:22px;overflow:hidden;background:white;box-shadow:var(--shadow)}.card img{width:100%;height:210px;object-fit:cover}.card-body{padding:18px}.card h3{font-size:20px;margin:0 0 6px;color:var(--navy)}.card p{color:var(--muted);margin:0;line-height:1.55}.card-arrow{display:inline-block;margin-top:14px;font-weight:800;color:var(--navy)}
.stats{display:grid;grid-template-columns:1.1fr repeat(3,.6fr);gap:18px;align-items:stretch}.stat{border-radius:50% 42% 46% 40%;padding:38px 22px;text-align:center;display:flex;flex-direction:column;justify-content:center;min-height:170px}.stat:nth-child(2){background:var(--pink)}.stat:nth-child(3){background:var(--blue)}.stat:nth-child(4){background:var(--green)}.stat strong{font-family:"Nunito",Arial,Helvetica,sans-serif;font-size:44px;color:var(--navy)}.stat span{font-weight:800}.about-short{padding-right:28px}.about-short .btn{margin-top:18px}
.social-band{display:grid;grid-template-columns:1fr 1.15fr;gap:28px;align-items:center}.photo-collage{display:grid;grid-template-columns:1fr 1fr;gap:12px}.photo-collage img{height:190px;object-fit:cover;border-radius:22px}.social-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.cta{background:linear-gradient(135deg,#fff0f0,#fffaf3);border-radius:32px;padding:44px;text-align:center;box-shadow:var(--shadow)}.cta h2{margin-bottom:10px}.cta .hero-actions{justify-content:center}.footer{padding:48px 0;background:#fff;border-top:1px solid #edf0f2}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:30px}.footer-logo{width:100px}.footer small,.footer p{color:var(--muted);line-height:1.6}.footer-links{display:grid;gap:8px}.subtle{font-size:13px;color:var(--muted)}
.page-hero{padding:64px 0 30px;background:var(--cream)}.page-hero h1{font-size:56px}.page-hero p{font-size:19px;line-height:1.65;max-width:800px;color:var(--muted)}.content-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}.info-box{background:#fff;border:1px solid #edf0f2;border-radius:22px;padding:24px;box-shadow:0 8px 24px rgba(16,45,73,.06)}.info-box h3{margin-top:0;color:var(--navy)}.schedule{display:grid;gap:14px}.schedule-day{background:#fff;border-radius:22px;padding:22px;border:1px solid #edf0f2}.schedule-day h3{margin:0 0 14px;color:var(--navy)}.slot{display:grid;grid-template-columns:130px 1fr;gap:16px;padding:11px 0;border-top:1px dashed #dfe5ea}.slot:first-of-type{border-top:0}.slot time{font-weight:900;color:var(--red)}.location{font-size:14px;color:var(--muted);margin-bottom:10px}.price-wrap{display:grid;grid-template-columns:1fr 1fr;gap:22px}.price-card{border-radius:26px;padding:30px;background:#fff;box-shadow:var(--shadow)}.price{font-size:56px;font-weight:900;color:var(--red);margin:8px 0}.price-card ul{padding-left:20px;line-height:1.8}.payment{background:var(--cream);border-radius:24px;padding:24px}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.contact-list{display:grid;gap:14px}.contact-item{padding:20px;border-radius:18px;background:#fff;border:1px solid #edf0f2}.map-link{font-weight:800;color:var(--red)}.rules{max-width:900px}.rules h2{font-size:30px;margin-top:40px}.rules ol,.rules ul{line-height:1.75}.support{background:var(--blue);padding:28px;border-radius:24px;line-height:1.7}.plan-image{border-radius:24px;box-shadow:var(--shadow);width:min(820px,100%);margin:24px auto}.desktop-only{display:block}
@media(max-width:900px){.navlinks{display:none;position:absolute;top:108px;left:0;right:0;background:#fff;padding:20px 24px;box-shadow:var(--shadow);flex-direction:column;align-items:flex-start}.navlinks.open{display:flex}.menu-toggle{display:block}.brand-text{display:none}.nav{gap:12px}.hero-grid,.social-band,.stats,.contact-grid,.price-wrap,.content-grid,.footer-grid{grid-template-columns:1fr}.hero{padding-top:20px}.hero-photo{order:-1}.hero-photo img{height:auto;aspect-ratio:820/510;border-radius:24px;object-fit:contain}.scribble{font-size:15px}.quick-grid{grid-template-columns:1fr}.cards{grid-template-columns:1fr 1fr}.stats{gap:14px}.about-short{padding:0}.footer-grid{gap:22px}.page-hero h1{font-size:44px}.slot{grid-template-columns:100px 1fr}.desktop-only{display:none}}
@media(max-width:600px){.container{width:min(100% - 22px,1160px)}.nav{height:82px}.brand img{width:68px;height:68px}.navlinks{top:82px}.hero h1{font-size:48px}.hero p{font-size:17px}.hero-photo img{height:auto;aspect-ratio:820/510;object-fit:contain}.section{padding:54px 0}.section h2{font-size:34px}.cards{grid-template-columns:1fr}.card img{height:230px}.hero-actions .btn{width:100%}.cta{padding:30px 20px}.slot{grid-template-columns:1fr;gap:3px}.lang{margin-left:auto}.topbar .btn-primary{display:none}.photo-collage img{height:140px}}



/* Home feature story */
.hero-photo img{object-position:center center}.feature-story{position:relative}.feature-story-grid{display:grid;grid-template-columns:1fr .72fr 1fr;gap:24px;align-items:stretch}.feature-panel{position:relative;border-radius:34px;padding:38px;overflow:hidden}.feature-blue{background:linear-gradient(135deg,#eef8ff,#e5f2ff)}.feature-pink{background:linear-gradient(135deg,#fff0f3,#ffe8ec)}.feature-panel h2{font-size:38px}.feature-panel .lead{font-size:17px;color:var(--ink)}.feature-panel .btn{margin-top:14px}.feature-photo-wrap{display:flex;align-items:stretch}.feature-photo{width:100%;height:100%;min-height:360px;object-fit:cover;border-radius:34px;box-shadow:var(--shadow)}
@media(max-width:900px){.feature-story-grid{grid-template-columns:1fr}.feature-photo-wrap{order:-1}.feature-photo{min-height:280px;max-height:420px}.feature-panel{padding:28px}.feature-panel h2{font-size:32px}}

/* Classes page: four equal tiles */
.classes-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;align-items:stretch}
.classes-grid .info-box{height:100%;min-height:245px;display:flex;flex-direction:column;justify-content:flex-start}
@media(max-width:900px){.classes-grid{grid-template-columns:1fr;grid-auto-rows:auto}.classes-grid .info-box{min-height:0;height:auto}}

/* Support logos */
.support-logos{display:grid;grid-template-columns:1fr 1.55fr;gap:28px;align-items:center;margin-top:28px}
.support-logos img{display:block;width:100%;height:auto;max-height:320px;object-fit:contain;background:#fff;border-radius:18px;padding:14px}
@media (max-width:700px){.support-logos{grid-template-columns:1fr;gap:18px}.support-logos img{max-height:none;padding:10px}}


/* v4 refinements */
/* Larger logo on all internal pages (+50%) */
.subpage .nav{height:156px}
.subpage .brand img{width:144px;height:144px}

/* Home hero: exact two-line heading and clean, straight crop from the left */
.hero-title{white-space:nowrap}
.hero-photo{overflow:hidden;border-radius:28px;aspect-ratio:730/510;box-shadow:var(--shadow);background:#fff}
.hero-photo img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:right center;border-radius:0;box-shadow:none;background:transparent}

/* Classes: selected photo on every tile, all four tiles matching */
.classes-grid .info-box{padding:0;overflow:hidden;min-height:500px}
.class-photo{width:100%;height:255px;object-fit:cover;flex:0 0 auto}
.class-content{padding:24px}
.class-content h3{margin-top:0}

@media(max-width:900px){
  .subpage .nav{height:132px}
  .subpage .brand img{width:120px;height:120px}
  .subpage .navlinks{top:132px}
  .hero-title{white-space:normal}
  .hero-photo{order:-1;aspect-ratio:730/510;border-radius:24px}
  .hero-photo img{width:100%;height:100%;object-fit:cover;object-position:right center}
  .classes-grid .info-box{min-height:0;height:auto}
}
@media(max-width:600px){
  .subpage .nav{height:112px}
  .subpage .brand img{width:102px;height:102px}
  .subpage .navlinks{top:112px}
  .hero-title{font-size:44px!important;line-height:1.02!important}
  .hero-photo{aspect-ratio:730/510}
  .class-photo{height:230px}
}


/* v5 refinements */
/* Same enlarged logo on home and internal pages */
.nav{height:156px}
.brand img{width:144px;height:144px}
.navlinks{top:156px}
/* Keep the face centered in the PREPA home tile */
.card-prepa img{object-position:center 24%}
@media(max-width:900px){
  .nav{height:132px}
  .brand img{width:120px;height:120px}
  .navlinks{top:132px}
}
@media(max-width:600px){
  .nav{height:112px}
  .brand img{width:102px;height:102px}
  .navlinks{top:112px}
  .card-prepa img{object-position:center 22%}
}

/* v6 image refinements */
.card-prepa img{object-fit:cover;object-position:50% 28%}
@media(max-width:600px){.card-prepa img{object-position:50% 26%}}


/* v7 language and layout refinements */
.brand-text{font-weight:800;line-height:1.25;max-width:260px;font-size:13px;color:var(--navy)}
.hero-photo{width:100%}
.hero-grid{align-items:center}
.feature-blue .why-heading{white-space:nowrap;font-size:clamp(28px,3vw,38px)}
.card-prepa img{object-position:50% 18%}
@media(max-width:900px){
  .feature-blue .why-heading{white-space:nowrap;font-size:32px}
  .card-prepa img{object-position:50% 16%}
}
@media(max-width:600px){
  .feature-blue .why-heading{font-size:28px}
  .card-prepa img{object-position:50% 14%}
}

/* v8 exact header tagline line breaks */
.brand-text{white-space:pre-line;flex:0 0 260px}
@media(max-width:900px){.brand-text{display:none}}


/* v9 single-line desktop navigation */
.brand-text{font-weight:400;font-size:11px;line-height:1.28;max-width:205px;flex:0 0 205px;color:var(--muted)}
.nav{gap:14px}
.navlinks{gap:14px;font-size:13px;white-space:nowrap;flex-wrap:nowrap}
.navlinks a{white-space:nowrap}
.lang{flex:0 0 auto}
.topbar .btn-primary{flex:0 0 auto;padding-left:17px;padding-right:17px}
@media(min-width:901px) and (max-width:1180px){
  .brand-text{font-size:10px;max-width:175px;flex-basis:175px}
  .nav{gap:10px}
  .navlinks{gap:10px;font-size:12px}
  .topbar .btn-primary{padding-left:14px;padding-right:14px;font-size:13px}
}

/* v10 wider, more legible desktop menu */
@media(min-width:1181px){
  .nav{gap:16px}
  .navlinks{flex:1 1 auto;justify-content:space-around;gap:18px;font-size:14px;letter-spacing:.01em}
}
@media(min-width:901px) and (max-width:1180px){
  .navlinks{flex:1 1 auto;justify-content:space-around;gap:11px;font-size:12.5px;letter-spacing:.005em}
}

/* v11 class-card photo framing */
#dzieci .class-photo{object-position:50% 28%}
#dorosli .class-photo{object-position:50% 42%}
@media(max-width:600px){
  #dzieci .class-photo{object-position:50% 30%}
  #dorosli .class-photo{object-position:50% 40%}
}
/* v12 – corrected photo framing on Classes cards (PL/FR share the same markup) */
#dzieci .class-photo{object-position:50% 70%}
#dorosli .class-photo{object-position:50% 68%}
@media(max-width:600px){
  #dzieci .class-photo{object-position:50% 68%}
  #dorosli .class-photo{object-position:50% 66%}
}

/* v15 – preschool home-card framing: keep all children's faces visible */
.cards .card[href="zajecia.html#przedszkole"] img{object-fit:cover;object-position:50% 43%}
@media(max-width:900px){.cards .card[href="zajecia.html#przedszkole"] img{object-position:50% 42%}}
@media(max-width:600px){.cards .card[href="zajecia.html#przedszkole"] img{object-position:50% 40%}}

/* v16 – Quicksand for large headings only */
.hero h1,.page-hero h1,.section h2,.feature-panel h2,.cta h2,.rules h2{font-family:"Quicksand","Nunito",Arial,Helvetica,sans-serif;font-weight:700}

/* v17 – soft pastel accents for home class cards and schedule */
/* Home: keep the existing palette and add color only to the text area of each card */
.cards .card:nth-child(1) .card-body{background:var(--pink)}
.cards .card:nth-child(2) .card-body{background:var(--yellow)}
.cards .card:nth-child(3) .card-body{background:var(--blue)}
.cards .card:nth-child(4) .card-body{background:var(--green)}
.cards .card .card-body{min-height:138px}

/* Planning: subtle alternating pastel backgrounds, using the same site palette */
.schedule .schedule-day:nth-child(1){background:linear-gradient(135deg,#fff,var(--pink))}
.schedule .schedule-day:nth-child(2){background:linear-gradient(135deg,#fff,var(--blue))}
.schedule .schedule-day:nth-child(3){background:linear-gradient(135deg,#fff,var(--yellow))}
.schedule .schedule-day:nth-child(4){background:linear-gradient(135deg,#fff,var(--green))}
.schedule .schedule-day{border-color:rgba(11,54,95,.08);box-shadow:0 8px 22px rgba(16,45,73,.05)}
.schedule .slot{border-top-color:rgba(11,54,95,.12)}

/* Quicksand remains reserved for the large headings, as requested */
.hero h1,.page-hero h1,.section h2,.feature-panel h2,.cta h2,.rules h2{
  font-family:"Quicksand","Nunito",Arial,Helvetica,sans-serif;
  font-weight:600;
}

/* v18 – solid pastel schedule cards and improved preschool crop */
.schedule .schedule-day:nth-child(1){background:var(--pink)}
.schedule .schedule-day:nth-child(2){background:var(--blue)}
.schedule .schedule-day:nth-child(3){background:var(--yellow)}
.schedule .schedule-day:nth-child(4){background:var(--green)}

/* Home preschool card: keep all background children's heads visible */
.cards .card[href="zajecia.html#przedszkole"] img{object-fit:cover;object-position:50% 18%}
@media(max-width:900px){.cards .card[href="zajecia.html#przedszkole"] img{object-position:50% 16%}}
@media(max-width:600px){.cards .card[href="zajecia.html#przedszkole"] img{object-position:50% 14%}}

/* v19 – new PL/FR planning graphics, aligned to content width */
.plan-image{
  display:block;
  width:100%;
  max-width:1100px;
  height:auto;
  margin:28px auto 0;
  border-radius:24px;
  box-shadow:var(--shadow);
}
@media (max-width:900px){
  .plan-image{width:100%;max-width:none;border-radius:18px;margin-top:22px}
}

/* v20 – adult courses in planning tables */
.schedule .schedule-day:nth-child(5){background:var(--pink)}
.schedule .schedule-day:nth-child(6){background:var(--blue)}
.schedule .schedule-day:nth-child(7){background:var(--yellow)}
