/* =========================================================
   To my mali atleci — design system
   Nowa, żywa szata graficzna dla marki zajęć dla dzieci
   ========================================================= */
@import url('../assets/fonts/fonts.css');

/* ---------- Zmienne / paleta ---------- */
:root {
  /* Neutralne, ciepłe tło */
  --cream: #fff9f0;
  --cream-2: #fff4e6;
  --ink: #2b2440;          /* ciepła granatowa czerń na tekst */
  --ink-soft: #5b5470;
  --white: #ffffff;

  /* Kolory marki */
  --orange: #ff7a29;
  --orange-dark: #f2610f;
  --yellow: #ffc93c;
  --turquoise: #12c2b6;
  --turquoise-dark: #0aa79c;
  --pink: #ff5da2;
  --purple: #8b5cf6;
  --green: #34c77b;
  --blue: #3aa0ff;

  /* Akcent domyślny (globalny) */
  --accent: var(--orange);
  --accent-dark: var(--orange-dark);
  --accent-soft: #ffe6d2;

  /* System */
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 34px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 14px rgba(43, 36, 64, .07);
  --shadow: 0 14px 40px rgba(43, 36, 64, .10);
  --shadow-lg: 0 26px 60px rgba(43, 36, 64, .16);
  --ring: 0 0 0 4px rgba(255, 122, 41, .22);

  --maxw: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);

  --font-head: 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* Warianty akcentu per-kategoria (na podstronach) */
.theme-sport   { --accent: var(--orange);    --accent-dark: var(--orange-dark); --accent-soft:#ffe6d2; --accent-2: var(--green); }
.theme-dance   { --accent: var(--pink);      --accent-dark:#e23e88;             --accent-soft:#ffe0ee; --accent-2: var(--purple); }
.theme-code    { --accent: var(--blue);      --accent-dark:#1f7fe0;             --accent-soft:#dcecff; --accent-2: var(--turquoise); }

/* ---------- Reset / bazowe ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.02rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; margin: 0 0 .5em; color: var(--ink); font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 2.6rem); }

/* ---------- Typografia sekcji ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600;
  color: var(--accent-dark);
  padding: 0;
  font-size: .84rem; letter-spacing: .09em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.2rem); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- Przyciski ---------- */
.btn {
  --btn-bg: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  padding: .85rem 1.6rem; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: #fff; border: none; cursor: pointer;
  box-shadow: 0 10px 22px rgba(255, 122, 41, .28);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(255, 122, 41, .34); }
.btn:active { transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--accent-dark);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.btn--ghost:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.btn--white { background: #fff; color: var(--accent-dark); box-shadow: var(--shadow); }
.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.12rem; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 249, 240, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(43, 36, 64, .06);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255, 249, 240, .95); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.brand .brand-mark { width: 42px; height: 42px; flex: none; }
.brand small { display: block; font-family: var(--font-body); font-weight: 700; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); line-height: 1; }
.brand strong { line-height: 1; }

.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  font-family: var(--font-head); font-weight: 500; font-size: .98rem;
  padding: .5rem .85rem; border-radius: var(--radius-pill); color: var(--ink-soft);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: rgba(43, 36, 64, .05); }
.nav-links a.active { color: var(--accent-dark); background: var(--accent-soft); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: none; background: var(--accent-soft);
  border-radius: 14px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 20px; height: 2.5px; background: var(--accent-dark); border-radius: 3px; position: relative; transition: .25s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 5.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 5vw, 3rem); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); letter-spacing: -.01em; }
.hero h1 .hl { color: var(--accent); position: relative; }
/* Zabezpieczenie: kolumny hero nie mogą rozpychać się ponad swój udział */
.hero-copy, .hero-art { min-width: 0; }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-soft); max-width: 40ch; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }

.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  padding: .55rem 1.05rem; border-radius: var(--radius-pill);
  background: #fff; box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease;
}
.pill:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pill .dot { width: 12px; height: 12px; border-radius: 50%; }
.pill--code .dot { background: var(--blue); }
.pill--dance .dot { background: var(--pink); }
.pill--sport .dot { background: var(--green); }

/* Blobs w tle */
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; z-index: -1; pointer-events: none; }
.blob-1 { width: 420px; height: 420px; background: radial-gradient(circle at 30% 30%, #ffd98a, #ffb347); top: -120px; right: -90px; opacity: .45; }
.blob-2 { width: 320px; height: 320px; background: radial-gradient(circle at 30% 30%, #a7f3ec, #12c2b6); bottom: -120px; left: -100px; opacity: .35; }
.blob-3 { width: 260px; height: 260px; background: radial-gradient(circle at 30% 30%, #ffc0dc, #ff5da2); top: 40%; right: 8%; opacity: .22; }

/* Ilustracja / maskotka w hero */
.hero-art { position: relative; }
.hero-art .art-card {
  background: #fff; border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-art .mascot { width: 100%; height: auto; }
.floaty { position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: .7rem 1rem; display: flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 600; font-size: .9rem; }
.floaty .ic { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.floaty-1 { top: -18px; left: -18px; animation: float 5s ease-in-out infinite; }
.floaty-2 { bottom: 22px; right: -22px; animation: float 6s ease-in-out infinite .6s; }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }

/* ---------- Trust bar ---------- */
.trust { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 1.4rem clamp(1rem, 4vw, 2.4rem); box-shadow: var(--shadow-lg); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust-item { display: flex; align-items: center; gap: .8rem; }
.trust-item .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.12); flex: none; }
.trust-item b { font-family: var(--font-head); font-weight: 600; display: block; font-size: 1rem; }
.trust-item span { color: rgba(255,255,255,.7); font-size: .86rem; }
.trust-wrap { margin-top: -3.2rem; position: relative; z-index: 5; }

/* ---------- O nas ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.about-copy p { color: var(--ink-soft); }
.about-copy .lead-txt { font-size: 1.15rem; color: var(--ink); }
.mascot-note {
  display: inline-flex; align-items: center; gap: .7rem; margin-top: .4rem;
  background: var(--accent-soft); color: var(--accent-dark);
  padding: .7rem 1.1rem; border-radius: var(--radius); font-weight: 700;
}
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-media .ph { aspect-ratio: 3/4; }
.about-media .ph:nth-child(2) { margin-top: 2rem; }

/* Placeholder zdjęcia */
.ph {
  border-radius: var(--radius); position: relative; overflow: hidden;
  display: grid; place-items: center; text-align: center; color: #fff;
  box-shadow: var(--shadow); font-family: var(--font-head); font-weight: 600;
}
.ph::after { content: attr(data-label); position: absolute; bottom: .8rem; left: .8rem; right: .8rem; font-size: .82rem; opacity: .95; font-weight: 500; }
.ph .ph-ic { font-size: clamp(2.8rem, 7vw, 4.6rem); opacity: .95; line-height: 1; }
.ph-orange { background: linear-gradient(135deg, #ff9a4d, #ff6a3d); }
.ph-pink   { background: linear-gradient(135deg, #ff86bf, #ff4d97); }
.ph-blue   { background: linear-gradient(135deg, #5cb3ff, #2f7fe6); }
.ph-teal   { background: linear-gradient(135deg, #33d6c8, #0aa79c); }
.ph-yellow { background: linear-gradient(135deg, #ffd45c, #ffab2e); color: var(--ink); }

/* ---------- Korzyści (karty) ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.b-card {
  background: #fff; border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: hidden;
}
.b-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.b-card .b-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 1rem; color: #fff; }
.b-card h3 { font-size: 1.2rem; }
.b-card p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.b-card .num { position: absolute; top: 1rem; right: 1.2rem; font-family: var(--font-head); font-weight: 600; font-size: 1.6rem; color: rgba(43,36,64,.08); }

/* Kolorki ikon (cyklicznie) */
.ic-c1 { background: var(--orange); } .ic-c2 { background: var(--turquoise); }
.ic-c3 { background: var(--pink); }   .ic-c4 { background: var(--green); }
.ic-c5 { background: var(--blue); }   .ic-c6 { background: var(--purple); }
.ic-c7 { background: var(--yellow); color: var(--ink) !important; }

/* ---------- Karty kategorii (na stronie głównej) ---------- */
.cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.cat-card {
  border-radius: var(--radius-lg); padding: 1.8rem; color: #fff; position: relative; overflow: hidden;
  min-height: 260px; display: flex; flex-direction: column; justify-content: flex-start;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-sport { background: linear-gradient(150deg, #ff9a4d, #f2610f); }
.cat-dance { background: linear-gradient(150deg, #ff86bf, #d6408a); }
.cat-code  { background: linear-gradient(150deg, #5cb3ff, #2f7fe6); }
.cat-card .cat-emoji { font-size: 2.6rem; position: absolute; top: 1.4rem; left: 1.6rem; }
.cat-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: .3rem; }
.cat-card p { color: rgba(255,255,255,.9); font-size: .95rem; margin-bottom: 1rem; }
.cat-card .cat-link { font-family: var(--font-head); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.cat-card .cat-link svg { transition: transform .18s ease; }
.cat-card:hover .cat-link svg { transform: translateX(4px); }

/* ---------- Opinie ---------- */
.reviews { background: var(--cream-2); }
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.review {
  background: #fff; border-radius: var(--radius); padding: 1.6rem 1.7rem; box-shadow: var(--shadow-sm);
  position: relative;
}
.review .stars { color: var(--yellow); font-size: 1.05rem; letter-spacing: .1em; margin-bottom: .6rem; }
.review p { font-size: 1.05rem; color: var(--ink); }
.review .who { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; }
.review .avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 600; }
.review .who b { display: block; font-family: var(--font-head); }
.review .who span { font-size: .85rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; border: none; background: none; cursor: pointer;
  padding: 1.15rem 1.4rem; font-family: var(--font-head); font-weight: 500; font-size: 1.08rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--ink);
}
.faq-q .chev { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; transition: transform .25s ease; font-weight: 700; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 3rem); align-items: start; }
.contact-info .info-row { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.contact-info .info-row .ic { width: 48px; height: 48px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; flex: none; }
.contact-info .info-row b { font-family: var(--font-head); display: block; }
.contact-info .info-row a { color: var(--ink-soft); }
.contact-info .info-row a:hover { color: var(--accent-dark); }

.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1rem; }
.field label { font-family: var(--font-head); font-weight: 500; font-size: .92rem; display: block; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .85rem 1.05rem; border: 2px solid #f0e6d8; border-radius: var(--radius-sm);
  background: var(--cream); transition: border .16s, box-shadow .16s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); background: #fff; }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: .3rem; }
.form-success { display: none; background: #e9f9ef; color: #1a7f47; border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-weight: 700; font-family: var(--font-head); margin-top: .8rem; }
.form-success.show { display: block; }

/* ---------- CTA band (podstrony) ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: var(--radius-lg); padding: clamp(2.2rem, 6vw, 3.6rem); text-align: center; color: #fff;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
.cta-inner p { color: rgba(255,255,255,.92); font-size: 1.15rem; max-width: 46ch; margin: 0 auto 1.6rem; }
.cta-inner .btn--white { color: var(--accent-dark); }

/* ---------- Page hero (podstrony) ---------- */
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem); position: relative; overflow: hidden; }
.page-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 5vw, 3rem); align-items: center; }
.page-hero .claim { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--accent-dark); background: var(--accent-soft); padding: .7rem 1.3rem; border-radius: var(--radius-pill); margin-top: 1rem; }
.page-hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
.page-hero .lead { font-size: 1.15rem; color: var(--ink-soft); }
.page-hero .art .ph { aspect-ratio: 4/5; font-size: 1.1rem; }

.prose p { color: var(--ink-soft); font-size: 1.08rem; }
.subject-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.subject-points .sp { background: #fff; border-radius: var(--radius); padding: 1.2rem 1.3rem; box-shadow: var(--shadow-sm); }
.subject-points .sp .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; margin-bottom: .7rem; }
.subject-points .sp b { font-family: var(--font-head); }
.subject-points .sp p { margin: .2rem 0 0; font-size: .92rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: clamp(2.5rem, 6vw, 4rem) 0 1.6rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer .brand { color: #fff; margin-bottom: .8rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-links li { margin-bottom: .55rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .88rem; }
.footer-bottom .legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ---------- Animacje przy scrollu ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .floaty { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsywność ---------- */
@media (max-width: 940px) {
  .hero-grid, .about-grid, .contact-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .benefits-grid, .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-media { max-width: 460px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--cream); padding: 1rem clamp(1.1rem, 4vw, 2rem) 1.6rem; gap: .3rem;
    box-shadow: var(--shadow); transform: translateY(-140%); transition: transform .3s ease;
    border-bottom: 1px solid rgba(43,36,64,.06);
  }
  .nav-open .nav-links { transform: translateY(0); }
  .nav-links a { padding: .8rem 1rem; font-size: 1.05rem; }
  .nav-cta .btn { display: none; }
  .nav-open .nav-links .btn-mobile { display: inline-flex; margin-top: .5rem; }
}
@media (max-width: 560px) {
  .benefits-grid, .cats-grid, .trust-grid, .footer-grid, .about-media { grid-template-columns: 1fr; }
  .about-media .ph:nth-child(2) { margin-top: 0; }
  .floaty-1 { left: 4px; } .floaty-2 { right: 4px; }
}
.btn-mobile { display: none; }

/* =========================================================
   Ikony SVG (biblioteka liniowa) + prawdziwe assety marki
   ========================================================= */
.ic-svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; width: 24px; height: 24px; display: block; flex: none; }
.eyebrow .ic-svg { width: 17px; height: 17px; }
.b-ic .ic-svg { width: 28px; height: 28px; }
.trust-item .ic .ic-svg { width: 23px; height: 23px; }
.floaty .ic .ic-svg { width: 18px; height: 18px; }
.subject-points .sp .ic .ic-svg { width: 22px; height: 22px; }
.contact-info .info-row .ic .ic-svg { width: 22px; height: 22px; }
.claim .ic-svg { width: 20px; height: 20px; }
.btn .ic-svg { width: 19px; height: 19px; }
.cat-link .ic-svg { width: 18px; height: 18px; }

/* Logo w headerze (pełny lockup marki) */
.brand .logo-img { height: 66px; width: auto; display: block; }
@media (max-width: 560px) { .brand .logo-img { height: 54px; } }

/* ---------- Hero: prawdziwe zdjęcie + maskotka ---------- */
.hero-stage { position: relative; max-width: 500px; margin: 0 auto; }
.hero-disc {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%);
  width: 92%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--accent-soft), var(--accent));
  box-shadow: inset 0 -20px 60px rgba(0,0,0,.12); z-index: 0;
}
.hero-ill-main { position: relative; z-index: 2; width: 72%; margin: 0 auto; display: block; filter: drop-shadow(0 22px 30px rgba(43,36,64,.2)); }
.hero-photo {
  position: relative; z-index: 2; width: 100%; display: block;
  filter: drop-shadow(0 18px 26px rgba(43,36,64,.18));
  /* Maskowanie przyciętego dołu zdjęcia — płynne wtopienie w dysk */
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, rgba(0,0,0,.45) 87%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 68%, rgba(0,0,0,.45) 87%, transparent 100%);
}
.hero-bombik {
  position: absolute; z-index: 3; width: 116px; height: auto; left: -10px; bottom: 10px;
  filter: drop-shadow(0 12px 20px rgba(43,36,64,.22)); animation: float 6s ease-in-out infinite;
}
.hero-stage .floaty-2 { z-index: 4; bottom: auto; top: 8px; right: -14px; }

/* ---------- Karty kategorii: ilustracje 3D ---------- */
.cat-card { min-height: 300px; }
.cat-ill {
  display: block; width: 104px; height: 104px; margin-bottom: .9rem;
  object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0,0,0,.18));
  transition: transform .25s ease;
}
.cat-card:hover .cat-ill { transform: scale(1.06) rotate(-3deg); }

/* ---------- Opinie: znak cudzysłowu ---------- */
.review { padding-top: 2.4rem; }
.review .quote-mark { position: absolute; top: 1.3rem; right: 1.5rem; width: 40px; height: auto; opacity: .16; }

/* ---------- Ilustracja w hero podstrony / o nas ---------- */
.page-hero .art { position: relative; }
.page-hero .art .subject-ill {
  position: absolute; z-index: 3; width: 128px; height: 128px; object-fit: contain;
  right: -6px; bottom: -6px; filter: drop-shadow(0 12px 20px rgba(43,36,64,.2));
  animation: float 6s ease-in-out infinite;
}
.about-photo {
  width: 100%; display: block; border-radius: var(--radius);
  filter: drop-shadow(0 16px 24px rgba(43,36,64,.16));
  /* Maskowanie przyciętego dołu — płynne wtopienie w tło */
  -webkit-mask-image: linear-gradient(to bottom, #000 66%, rgba(0,0,0,.4) 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 66%, rgba(0,0,0,.4) 86%, transparent 100%);
}

/* ---------- Social (stopka) ---------- */
.social-row { display: flex; gap: .7rem; margin-top: 1rem; }
.social-row a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.12); display: grid; place-items: center; transition: background .16s, transform .16s; }
.social-row a:hover { background: rgba(255,255,255,.22); transform: translateY(-3px); }
.social-row img { width: 22px; height: 22px; object-fit: contain; }

/* ---------- Sekcja zapisów (embed ActiveNow) ---------- */
.signup-card { max-width: 760px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); padding: clamp(1.2rem, 4vw, 2rem); box-shadow: var(--shadow); }
.signup-card .activenow-form-container, .signup-card .activenow-table-container { min-height: 120px; }

/* =========================================================
   Karty kategorii z akcjami (Zapisz się do każdego) + rodzaje zajęć w O nas
   ========================================================= */
.cat-card h3 a { color: #fff; }
.cat-card h3 a:hover { text-decoration: underline; }
.cat-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: auto; padding-top: 1rem; }
.cat-actions .btn { padding: .62rem 1.35rem; font-size: .96rem; box-shadow: 0 6px 16px rgba(0,0,0,.14); }
.cat-actions .cat-link { margin: 0; }

/* O nas — pełnoszerokościowy rząd rodzajów zajęć */
.about-subjects { margin-top: clamp(2rem, 5vw, 3rem); }
.about-subjects .subj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.subj-card { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); border-top: 5px solid var(--sc, var(--accent)); transition: transform .2s ease, box-shadow .2s ease; }
.subj-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.subj-card .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--sc, var(--accent)); margin-bottom: .9rem; }
.subj-card .ic .ic-svg { width: 26px; height: 26px; }
.subj-card h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.subj-card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
@media (max-width: 820px) { .about-subjects .subj-grid { grid-template-columns: 1fr; } }

/* Lepsza czytelność bloków tekstu (mniej „ścian tekstu") */
.about-copy p, .prose p { max-width: 60ch; }
.about-copy p + p, .prose p + p { margin-top: .2rem; }

/* =========================================================
   Dopracowanie mobilne
   ========================================================= */
@media (max-width: 940px) {
  /* Hero: zawrzyj dysk w obrębie kafla zdjęcia, by nie nachodził na tekst */
  .hero-copy { position: relative; z-index: 3; }
  .hero-stage { padding: 13% 0; max-width: 420px; }
  .hero-disc { top: 50%; }
  .hero-art { margin: 0 auto 1rem; }
  /* Pływające etykiety mniejsze i w obrębie ekranu */
  .hero-stage .floaty-2 { right: 0; top: 4px; padding: .55rem .8rem; font-size: .82rem; }
  .hero-bombik { left: 0; width: 92px; }
  .floaty { padding: .55rem .8rem; font-size: .84rem; }
  .floaty .ic { width: 30px; height: 30px; }
  /* Pasek zaufania: bez ujemnego nachodzenia na mobile */
  .trust-wrap { margin-top: 1.4rem; }
  /* Ilustracja poboczna w hero podstrony */
  .page-hero .art .subject-ill { width: 96px; height: 96px; right: 2px; bottom: 2px; }
}

@media (max-width: 640px) {
  /* Sekcje: mniejszy, równomierny odstęp */
  .section { padding: clamp(2.6rem, 9vw, 3.4rem) 0; }
  .section-head { margin-bottom: 1.8rem; }
  /* Karty i formularze: mniejszy padding, więcej treści na ekranie */
  .b-card { padding: 1.4rem; }
  .cat-card { min-height: 240px; padding: 1.5rem; }
  .cat-ill { width: 96px; height: 96px; top: 1rem; right: 1rem; }
  .review { padding: 1.9rem 1.3rem 1.4rem; }
  .form-card { padding: 1.3rem; }
  .trust { padding: 1.2rem 1.2rem; }
  /* Przyciski hero: pełna szerokość, wygodne do kliknięcia kciukiem */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  /* Nagłówki nie za blisko krawędzi */
  .cta-inner { padding: 1.8rem 1.3rem; }
  .signup-card { padding: 1rem .8rem; }
}

@media (max-width: 400px) {
  .hero-stage .floaty-2 { font-size: .78rem; }
  .brand .logo-img { height: 50px; }
}

/* =========================================================
   Dopracowanie mobilne v2 — ładniejszy telefon
   ========================================================= */
@media (max-width: 640px) {
  /* Obrazy w dyskach mniejsze i wycentrowane — nie dominują ekranu */
  .hero-stage { max-width: 288px !important; padding: 12% 0; }
  .hero-bombik { width: 70px; left: -4px; bottom: 4px; }
  .page-hero .art .subject-ill { width: 84px; height: 84px; }

  /* Delikatniejsze bloby — nie prześwitują za tekstem */
  .blob { opacity: .16 !important; filter: blur(8px); }
  .blob-1 { width: 260px; height: 260px; }
  .blob-2 { width: 220px; height: 220px; }
  .blob-3 { width: 200px; height: 200px; top: 34%; }

  /* Karty kategorii: ilustracja NA GÓRZE, nie zasłania opisu */
  .cat-card { justify-content: flex-start; padding: 1.5rem 1.4rem; min-height: 0; }
  .cat-ill { position: static; width: 78px; height: 78px; margin: 0 0 .6rem; top: auto; right: auto; filter: drop-shadow(0 8px 12px rgba(0,0,0,.16)); }
  .cat-card:hover .cat-ill { transform: none; }
  .cat-card h3 { font-size: 1.4rem; margin-bottom: .4rem; }
  .cat-actions { gap: .6rem 1.1rem; margin-top: .8rem; }

  /* Nagłówki sekcji nieco mniejsze i luźniejsze */
  .section-head h2 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .section-head p { font-size: 1rem; }

  /* Karty korzyści: trochę zwarte, wygodne */
  .b-card { padding: 1.35rem 1.3rem; }
  .b-card h3 { font-size: 1.12rem; }
  .b-card .num { font-size: 1.3rem; top: .8rem; right: 1rem; }

  /* Rodzaje zajęć w O nas — pełny odstęp na 1 kolumnie */
  .about-subjects { margin-top: 1.6rem; }
}

/* Płynne skalowanie nagłówka hero na wąskich ekranach */
@media (max-width: 380px) {
  .hero h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  .page-hero h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); }
}

/* Teksty wyrównane do lewej (bez justowania). Pojedyncze literki
   na końcach linii obsługuje skrypt w js/main.js (twarde spacje). */

/* Podpis wykonawcy w stopce */
.made-by { text-align: center; margin-top: 1.1rem; font-size: .86rem; color: rgba(255,255,255,.55); }
.made-by a { color: #ff4d4d; font-weight: 700; }
.made-by a:hover { color: #ff6b6b; text-decoration: underline; }

/* ---------- Dokumenty prawne (Regulamin / Polityka) ---------- */
.legal-doc { max-width: 820px; margin: 1.5rem 0 0; }
.legal-doc h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; color: var(--ink); }
.legal-doc h3 { font-size: 1.08rem; margin: 1.3rem 0 .4rem; color: var(--ink); }
.legal-doc p { color: var(--ink-soft); margin: 0 0 .9rem; }
.legal-doc ul, .legal-doc ol { list-style: revert; padding-left: 1.5rem; margin: 0 0 1rem; color: var(--ink-soft); }
.legal-doc li { margin-bottom: .45rem; }
.legal-doc a { color: var(--accent-dark); text-decoration: underline; }
.legal-doc strong { color: var(--ink); }
.legal-lead { background: var(--cream-2); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.legal-lead p { margin: 0; }
