/* Labzy – wspolny styl strony i gry */
:root {
  --krem: #FFF8EC; --krem2: #FFF1DA; --granat: #24244F; --fiolet: #6D4AFF; --fiolet2: #8B6CFF;
  --pomar: #F58C1E; --zolty: #FACD1E; --zielony: #2E9E47; --czerw: #E5484D; --nieb: #3AA0E8;
  --tekst: #3B3B5C; --szary: #77779A; --karta: #FFFFFF; --cien: 0 14px 40px rgba(36, 36, 79, .12);
  --r: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--krem); color: var(--tekst); font-family: "Nunito", system-ui, sans-serif; font-size: 18px; line-height: 1.55; overflow-x: hidden; }
h1, h2, h3, .f { font-family: "Fredoka", "Nunito", sans-serif; color: var(--granat); line-height: 1.12; margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }

/* przyciski */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 19px;
  padding: 15px 28px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-g { background: var(--fiolet); color: #fff; box-shadow: 0 6px 0 #4D2FD6, 0 14px 30px rgba(109, 74, 255, .35); }
.btn-p { background: var(--pomar); color: #fff; box-shadow: 0 6px 0 #C96A0A; }
.btn-j { background: #fff; color: var(--granat); box-shadow: 0 6px 0 #E6DCCB; }

/* nawigacja */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 236, .88); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(36, 36, 79, .06); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo img { height: 44px; width: auto; }
.menu { display: flex; gap: 26px; font-weight: 700; color: var(--granat); }
.menu a { text-decoration: none; opacity: .8; } .menu a:hover { opacity: 1; color: var(--fiolet); }
.nav .btn { padding: 10px 20px; font-size: 16px; }
@media (max-width: 860px) { .menu { display: none; } }

/* hero */
.hero { position: relative; padding: 60px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: center; }
.znaczek { display: inline-flex; gap: 8px; align-items: center; background: #fff; color: var(--fiolet); font-weight: 800; font-size: 14px;
  letter-spacing: .5px; padding: 8px 16px; border-radius: 999px; box-shadow: var(--cien); text-transform: uppercase; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); margin: 18px 0 16px; font-weight: 700; }
.hero h1 span { color: var(--fiolet); position: relative; white-space: nowrap; }
.hero h1 span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 14px; background: var(--zolty); opacity: .55; z-index: -1; border-radius: 8px; }
.hero p.lead { font-size: 21px; max-width: 540px; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 16px; flex-wrap: wrap; }
.zaufanie { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; font-weight: 700; color: var(--szary); font-size: 15px; }
.zaufanie b { color: var(--granat); }
.scena { position: relative; height: 520px; }
.scena .post { position: absolute; filter: drop-shadow(0 18px 22px rgba(36, 36, 79, .18)); animation: unos 5s ease-in-out infinite; }
.scena .p1 { width: 46%; left: 27%; top: 4%; z-index: 3; }
.scena .p2 { width: 31%; left: 0; top: 34%; animation-delay: -1.2s; }
.scena .p3 { width: 31%; right: 0; top: 30%; animation-delay: -2.4s; }
.scena .p4 { width: 27%; left: 37%; top: 58%; animation-delay: -3.6s; z-index: 4; }
.blob { position: absolute; inset: 8% 4% 4% 4%; background: radial-gradient(circle at 50% 45%, #FFE2B8 0, #FFEFD6 45%, transparent 70%); border-radius: 50%; }
@keyframes unos { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .scena { height: 380px; } .hero { padding-top: 30px; } }

/* konfetti pikselowe w tle */
.piksele { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.piksele i { position: absolute; width: 12px; height: 12px; border-radius: 3px; opacity: .55; animation: unos 6s ease-in-out infinite; }
.hero .wrap, section .wrap { position: relative; z-index: 1; }

/* sekcje */
section { padding: 80px 0; position: relative; }
.tyt { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.tyt .nad { color: var(--pomar); font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; font-size: 14px; }
.tyt h2 { font-size: clamp(32px, 4.4vw, 48px); margin: 10px 0 12px; }
.tyt p { color: var(--szary); margin: 0; font-size: 19px; }
.sec-biala { background: #fff; border-radius: 48px; }

/* jak to dziala */
.kroki { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.krok { background: var(--krem); border-radius: var(--r); padding: 28px; text-align: center; }
.krok .num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; font-family: Fredoka; font-weight: 700; font-size: 22px; color: #fff; }
.krok h3 { font-size: 24px; margin-bottom: 8px; }
.krok p { margin: 0; color: var(--szary); font-size: 17px; }
.demo { width: 150px; height: 150px; margin: 0 auto 18px; border-radius: 14px; display: block; image-rendering: pixelated; box-shadow: 0 8px 18px rgba(0, 0, 0, .1); }
@media (max-width: 860px) { .kroki { grid-template-columns: 1fr; } }

/* gry */
.gry { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.gra { background: #fff; border-radius: var(--r); box-shadow: var(--cien); overflow: hidden; text-decoration: none; transition: transform .2s; display: flex; flex-direction: column; }
.gra:hover { transform: translateY(-6px) rotate(-.4deg); }
.gra .ok { aspect-ratio: 1.25; display: grid; place-items: center; position: relative; }
.gra canvas { width: 62%; image-rendering: pixelated; border-radius: 10px; box-shadow: 0 8px 18px rgba(0, 0, 0, .12); }
.gra .zn { position: absolute; top: 12px; left: 12px; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: Fredoka; font-weight: 700; font-size: 22px; box-shadow: 0 4px 10px rgba(0, 0, 0, .1); }
.gra .tresc { padding: 18px 20px 22px; }
.gra h3 { font-size: 22px; } .gra .kl { color: var(--szary); font-size: 15px; font-weight: 700; margin: 4px 0 12px; }
.gra .graj { color: var(--fiolet); font-family: Fredoka; font-weight: 600; }
.darmowe { position: absolute; top: 14px; right: 14px; background: var(--zielony); color: #fff; font-weight: 800; font-size: 12px; padding: 5px 10px; border-radius: 999px; letter-spacing: .5px; }

/* druzyna */
.druzyna { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.czlonek { background: var(--karta); border-radius: var(--r); padding: 18px 18px 26px; text-align: center; box-shadow: var(--cien); }
.czlonek img { height: 210px; width: auto; margin: 0 auto 10px; transition: transform .3s; }
.czlonek:hover img { transform: scale(1.06) rotate(-3deg); }
.czlonek h3 { font-size: 24px; } .czlonek .rola { color: var(--pomar); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin: 4px 0 8px; }
.czlonek p { margin: 0; color: var(--szary); font-size: 16px; }
@media (max-width: 960px) { .druzyna { grid-template-columns: repeat(2, 1fr); } .czlonek img { height: 160px; } }

/* dla rodzicow / nauczycieli */
.dwie { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.panel { border-radius: 32px; padding: 38px; position: relative; overflow: hidden; }
.panel.rodz { background: linear-gradient(150deg, #F1ECFF, #E6DEFF); } .panel.nauc { background: linear-gradient(150deg, #FFF0DC, #FFE3BF); }
.panel h3 { font-size: 30px; margin-bottom: 14px; }
.panel ul { list-style: none; padding: 0; margin: 0 0 6px; }
.panel li { padding: 8px 0 8px 38px; position: relative; font-weight: 600; }
.panel li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 26px; height: 26px; border-radius: 50%; background: var(--zielony); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.panel li.wk::before { content: "★"; background: var(--zolty); color: var(--granat); }
.panel { padding-right: 170px; }
.panel .maskotka { position: absolute; right: 6px; bottom: -6px; width: 150px; opacity: .95; }
.wkrotce { font-size: 12px; font-weight: 800; background: var(--zolty); color: var(--granat); padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
@media (max-width: 860px) { .dwie { grid-template-columns: 1fr; } .panel { padding: 30px 24px 120px; } .panel .maskotka { width: 110px; } }

/* premium + zapis */
.premium { background: var(--granat); color: #E4E1FF; border-radius: 40px; padding: 56px 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.premium h2 { color: #fff; font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.premium h2 span { color: var(--zolty); }
.zapis { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.zapis input { flex: 1 1 220px; padding: 15px 20px; border-radius: 999px; border: 0; font-size: 17px; font-family: inherit; }
.zapis-info { margin-top: 10px; font-size: 14px; color: #A9A6D9; min-height: 20px; }
.premium img { width: 100%; max-width: 360px; margin: 0 auto; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35)); }
@media (max-width: 860px) { .premium { grid-template-columns: 1fr; padding: 40px 24px; } .premium img { max-width: 220px; } }

/* stopka */
footer { padding: 50px 0 40px; color: var(--szary); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer img { height: 38px; width: auto; }

/* pojawianie przy przewijaniu */
.pokaz { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
.pokaz.widac { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .pokaz { opacity: 1; transform: none; } }
