/* ==========================================================
   Matma na zakręcie — style
   Styl z ulotek i plakatu: Poppins (mocne nagłówki),
   Caveat (odręczne dopiski), pastelowe kafle, brązowe ikony,
   żółty znak drogowy.
   ========================================================== */

:root {
  --ink: #161b33;          /* granat prawie czarny — nagłówki, tekst */
  --ink-soft: #464c69;
  --navy: #1f2a55;
  --sign: #ffd200;         /* żółć znaku */
  --sign-deep: #f2b705;
  --brown: #6b4a2b;        /* ikony i dopiski odręczne */

  --bg: #fffcf6;
  --bg-warm: #fdf6e8;
  --white: #fff;
  --beige: #f5ebdf;
  --yellow: #f8da8b;
  --yellow-soft: #fff4d2;
  --blue: #dcf0f5;
  --green: #e0efcd;
  --line: #ece2d2;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 20px 44px -26px rgba(22, 27, 51, .35);
  --container: 1180px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 .45em; font-weight: 800; }
h1 { font-size: clamp(2.7rem, 6vw, 4.9rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: block;
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 1rem;
}
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink-soft); }
.hand { font-family: var(--hand); color: var(--brown); font-weight: 600; line-height: 1.05; }

/* odręczne podkreślenie pod nagłówkiem */
.swash { position: relative; display: inline-block; isolation: isolate; }
.swash::after {
  content: ""; position: absolute; left: -2%; right: 4%; bottom: -.16em; height: .22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M4 14C80 4 180 2 296 8' fill='none' stroke='%23ffd200' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1;
}

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sign-deep); outline-offset: 3px; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .9em 1.6em; border-radius: 999px;
  font: 600 1rem/1.2 var(--font); text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--sign); color: var(--ink); box-shadow: 0 12px 24px -14px rgba(242, 183, 5, .95); }
.btn-primary:hover { background: #ffdb2e; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--sign); padding-bottom: 2px; white-space: nowrap; }
.link-arrow:hover { border-color: var(--ink); }

/* ---------- nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 252, 246, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 56px; height: 56px; }
.brand span { font-weight: 700; font-size: 1.1rem; line-height: 1.1; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { display: block; padding: .5em .9em; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav-links a:not(.btn):hover { background: var(--beige); }
.nav-links .btn { margin-left: 10px; padding: .7em 1.3em; }
.nav-toggle { display: none; align-items: center; gap: 8px; background: var(--yellow); border: 0; border-radius: 999px; padding: .6em 1.1em; font: 600 .95rem var(--font); color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); padding: 10px var(--gutter) 22px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: .8em 1em; font-size: 1.05rem; }
  .nav-links .btn { margin: 10px 0 0; }
}

/* ---------- 1. hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: min(640px, 80vh); align-items: center; }
.hero-text { position: relative; z-index: 2; padding-block: clamp(48px, 7vw, 96px); }
.hero-text .lead { max-width: 30em; margin-bottom: 30px; }
.hero-photo { position: absolute; inset: 0 0 0 44%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 45%;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(255, 252, 246, .85) 30%, rgba(255, 252, 246, 0) 100%);
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; }
.hero-note {
  position: relative; margin: 0;
  font-size: clamp(1.5rem, 2vw, 1.8rem); transform: rotate(-6deg);
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { position: relative; inset: auto; height: 380px; }
  .hero-photo::before { inset: 0 0 auto 0; width: auto; height: 30%; background: linear-gradient(180deg, var(--bg), rgba(255, 252, 246, 0)); }
  .hero-text { padding-bottom: 8px; }
}

/* ---------- sekcje ---------- */
section { padding-block: clamp(64px, 8vw, 110px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2 { margin: 0; }

/* ---------- 2. oferta ---------- */
.offers { background: var(--white); }
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.offer-card {
  --tint: var(--beige);
  position: relative; display: flex; flex-direction: column;
  padding: 30px 26px 26px; border-radius: var(--radius);
  background: var(--white); border: 1.5px solid var(--line);
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.offer-card:nth-child(1) { --tint: var(--yellow-soft); }
.offer-card:nth-child(3) { --tint: var(--blue); }
.offer-card:nth-child(4) { --tint: var(--green); }
.offer-card:hover, .offer-card:focus-visible { background: var(--tint); border-color: transparent; transform: translateY(-4px); box-shadow: var(--shadow); }
.offer-icon { width: 58px; height: 58px; border-radius: 16px; background: var(--tint); display: grid; place-items: center; margin-bottom: 22px; transition: background-color .2s ease; }
.offer-card:hover .offer-icon { background: rgba(255, 255, 255, .7); }
.offer-icon svg { width: 34px; height: 34px; }
.offer-card .badge { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4rem; }
.offer-card h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: .3em; }
.offer-card p { color: var(--ink-soft); font-size: .98rem; line-height: 1.45; margin-bottom: 22px; }
.offer-card .go-label { margin-top: auto; display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; }
.offer-card .go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--ink); transition: background-color .2s ease, color .2s ease; }
.offer-card:hover .go { background: var(--ink); color: #fff; }

@media (max-width: 1040px) { .offer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .offer-grid { grid-template-columns: 1fr; gap: 12px; }
  .offer-card { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 18px; }
  .offer-icon { grid-row: 1 / span 4; align-self: start; margin: 0; width: 52px; height: 52px; }
  .offer-card .badge { margin: 0; }
  .offer-card h3 { font-size: 1.2rem; margin: 0; }
  .offer-card p { margin: 2px 0 0; font-size: .9rem; }
  .offer-card .go-label { grid-column: 2; margin-top: 8px; font-size: .88rem; }
  .offer-card .go { width: 30px; height: 30px; }
}

.icon { stroke: var(--brown); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 3. droga do zrozumienia ---------- */
.path-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%); overflow: hidden; }
.path-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.path-grid .lead { max-width: 30em; margin: 0; }
.path-art { width: 100%; height: auto; overflow: visible; }
.path-art .label { font-family: var(--hand); font-weight: 700; font-size: 32px; fill: var(--brown); }

.values {
  list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--line);
}
.values li { display: flex; gap: 14px; align-items: flex-start; padding: 24px 22px; }
.values li + li { border-left: 1.5px solid var(--line); }
.values svg { width: 40px; height: 40px; flex: none; }
.values strong { display: block; font-size: 1.02rem; line-height: 1.3; margin-bottom: 4px; }
.values span { display: block; font-size: .88rem; line-height: 1.45; color: var(--ink-soft); }

@media (max-width: 900px) {
  .path-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .values li:nth-child(3) { border-left: 0; }
  .values li:nth-child(n+3) { border-top: 1.5px solid var(--line); }
}
@media (max-width: 520px) {
  .values { grid-template-columns: 1fr; }
  .values li + li { border-left: 0; border-top: 1.5px solid var(--line); }
}

/* ---------- 4. o mnie ---------- */
.about { padding: 0; background: var(--white); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.about-photo { position: relative; }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.about-photo .note {
  position: absolute; left: clamp(16px, 4vw, 48px); bottom: clamp(20px, 4vw, 44px);
  background: var(--bg); padding: 14px 22px 16px; border-radius: 6px;
  font-size: clamp(1.6rem, 2.3vw, 2rem); transform: rotate(-4deg);
  box-shadow: 0 14px 30px -18px rgba(22, 27, 51, .5);
}
.about-photo .note::before {
  content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 20px; margin-left: -35px;
  background: rgba(248, 218, 139, .85); transform: rotate(3deg);
}
.about-text {
  padding: clamp(48px, 6vw, 88px) clamp(24px, 6vw, 88px);
  display: flex; flex-direction: column; justify-content: center;
  max-width: 640px;
}
.about-name { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 .15em; }
.about-role { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 1.4em; }
.about-quote { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 600; line-height: 1.45; margin: 0 0 1.2em; padding-left: 20px; border-left: 5px solid var(--sign); }
.about-more { color: var(--ink-soft); }
.about-more[hidden] { display: none; }
.about-more { margin-bottom: 8px; }
.about-more p { line-height: 1.7; }
.about-hello { font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.about-closing { font-weight: 700; color: var(--ink); font-size: 1.1rem; padding-top: 4px; }
.about-side { font-size: 1.05rem; font-weight: 500; font-style: italic; line-height: 1.5; color: var(--brown); margin: 4px 0 28px; }
.about-text .btn { align-self: flex-start; }
.about-text .btn[aria-expanded="true"] .arrow { transform: rotate(90deg); }

@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { height: 440px; }
  .about-text { max-width: none; padding-inline: var(--gutter); }
}

/* ---------- 5. kontakt ---------- */
.contact { background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.contact .lead { max-width: 24em; }
.phone { display: inline-flex; align-items: center; gap: 14px; margin-top: 14px; text-decoration: none; }
.phone img { width: 40px; height: 40px; }
.phone strong { display: block; font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 800; line-height: 1.1; }
.phone small { font-size: .95rem; color: var(--ink-soft); }
.contact-note { position: relative; display: block; margin-top: 36px; font-size: 2rem; transform: rotate(-6deg); transform-origin: left; width: max-content; }

.form { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .9rem; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: .8em 1em; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg);
  transition: border-color .15s ease, background-color .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sign-deep); background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.consent { display: flex; gap: 10px; font-size: .82rem; line-height: 1.45; color: var(--ink-soft); margin: 2px 0 20px; }
.consent input { margin-top: 3px; accent-color: var(--navy); }
.form .btn { width: 100%; }
.form-status { margin: 14px 0 0; font-weight: 500; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.ok { color: #2e6b28; }
.form-status.err { color: #a13b1b; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- stopka ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 36px 28px; font-size: .92rem; background: var(--bg); }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr auto; align-items: center; gap: 24px 32px; }
.site-footer .brand img { width: 48px; height: 48px; }
.footer-col { font-style: normal; line-height: 1.6; color: var(--ink-soft); }
.footer-col a { text-decoration: none; color: var(--ink); }
.footer-col a:hover { color: var(--brown); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--brown); background: var(--beige); transition: background-color .15s ease, color .15s ease; }
.footer-social a:hover { background: var(--sign); color: var(--ink); }
.footer-social svg { width: 22px; height: 22px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 24px; color: var(--ink-soft); font-size: .82rem; }
.footer-bottom .hand { font-size: 1.35rem; }

/* ---------- animacja wejścia ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================
   LANDING PAGE ZAJĘĆ (Matma na start, Matma na E8)
   ========================================================== */

/* papier w kratkę — delikatne tło „z zeszytu” */
.grid-paper {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(107, 74, 43, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 74, 43, .07) 1px, transparent 1px);
  background-size: 28px 28px;
}
mark { background: linear-gradient(transparent 55%, rgba(255, 210, 0, .55) 55%, rgba(255, 210, 0, .55) 92%, transparent 92%); color: inherit; padding-inline: .1em; }

/* ---------- hero ---------- */
.lp-hero { padding-block: clamp(36px, 6vw, 80px) clamp(56px, 7vw, 96px); overflow: hidden; }
.lp-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.lp-hero h1 { font-size: clamp(2.9rem, 6vw, 4.6rem); margin-bottom: .1em; }
.lp-tagline { font-size: clamp(1.45rem, 2.6vw, 2.05rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1.1em; }
.lp-hero .intro p { color: var(--ink-soft); max-width: 36em; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 26px 0 30px; }
.facts li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; line-height: 1.25; }
.facts svg { width: 28px; height: 28px; flex: none; }
.facts li:nth-child(4n+1) { background: var(--beige); }
.facts li:nth-child(4n+2) { background: var(--yellow); }
.facts li:nth-child(4n+3) { background: var(--blue); }
.facts li:nth-child(4n+4) { background: var(--green); }
.btn-lg { padding: 1.05em 1.9em; font-size: 1.05rem; }

.lp-visual { position: relative; }
.lp-visual .photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.lp-visual .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.lp-visual .photo.square { aspect-ratio: 1 / 1; }

/* notatka „tok myślenia” — kartka z odręcznym rozwiązaniem */
.thinking {
  position: absolute; left: -36px; bottom: 36px;
  background: #fff; border-radius: 10px; padding: 14px 20px 16px;
  box-shadow: 0 18px 36px -20px rgba(22, 27, 51, .45);
  transform: rotate(-4deg);
  font-family: var(--hand); color: var(--ink); font-size: 1.7rem; line-height: 1.15;
  background-image:
    linear-gradient(rgba(107, 74, 43, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 74, 43, .08) 1px, transparent 1px);
  background-size: 18px 18px;
}
.thinking .muted { color: var(--brown); font-size: .8em; display: block; }
.thinking .ok { display: inline-block; padding: 0 .25em; border: 2.5px solid var(--sign-deep); border-radius: 50%; }
@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-visual { max-width: 460px; }
  .thinking { left: auto; right: -8px; bottom: -20px; font-size: 1.45rem; }
}

/* ---------- nagłówki sekcji LP ---------- */
.lp-section { padding-block: clamp(64px, 8vw, 110px); }
.lp-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.lp-head.center { margin-inline: auto; text-align: center; }
.lp-head p { color: var(--ink-soft); }

/* ---------- po co? ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.why-grid .big { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 500; line-height: 1.5; color: var(--ink); }
.stamp {
  display: inline-block; margin-bottom: 22px;
  padding: .45em .9em; border: 3px solid var(--ink); border-radius: 10px;
  font-weight: 800; font-size: clamp(1.35rem, 2.6vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.1;
  background: var(--sign); transform: rotate(-2.5deg);
  box-shadow: 5px 5px 0 var(--ink);
}
.why-grid .text p { color: var(--ink-soft); }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* duża plansza z wyróżnionym komunikatem */
.board { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.board::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.board .container { position: relative; }
.board blockquote { margin: 0; max-width: 980px; }
.board .line1 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 .4em; }
.board .line1 span { color: var(--sign); }
.board .line2 { font-size: clamp(1.2rem, 2.3vw, 1.7rem); font-weight: 500; line-height: 1.4; color: #dfe3f2; margin: 0; max-width: 34em; }
.board .hand { color: var(--sign); font-size: 1.8rem; display: block; margin-bottom: 12px; }

/* ---------- karty (co chcemy zbudować / hasła) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.cards li { display: flex; align-items: center; gap: 16px; padding: 22px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); font-weight: 500; line-height: 1.4; }
.cards .ic { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.cards .ic svg { width: 30px; height: 30px; }
.cards li:nth-child(4n+1) .ic { background: var(--yellow-soft); }
.cards li:nth-child(4n+2) .ic { background: var(--blue); }
.cards li:nth-child(4n+3) .ic { background: var(--green); }
.cards li:nth-child(4n+4) .ic { background: var(--beige); }
.cards.five { grid-template-columns: repeat(5, 1fr); }
.cards.five li { flex-direction: column; align-items: flex-start; font-weight: 600; }
@media (max-width: 1060px) { .cards.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { .cards, .cards.five { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .cards, .cards.five { grid-template-columns: 1fr; } .cards li { padding: 16px 18px; }
  .cards.five li { flex-direction: row; align-items: center; padding: 14px; gap: 12px; font-size: .92rem; }
  .cards.five .ic { width: 42px; height: 42px; }
  .cards.five .ic svg { width: 24px; height: 24px; }
}
.board .line1.long { font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.25; }

/* ---------- matematyka w praktyce ---------- */
.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.verbs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 28px; }
.verbs li { padding: .5em 1em; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 600; font-size: 1.05rem; }
.verbs li:nth-child(3n+1) { background: var(--yellow-soft); border-color: transparent; }
.verbs li:nth-child(3n+2) { background: var(--blue); border-color: transparent; }
.verbs li:nth-child(3n+3) { background: var(--green); border-color: transparent; }
.verbs-lead { font-weight: 600; margin-bottom: 14px; }
.callout { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; line-height: 1.35; letter-spacing: -0.015em; padding-left: 20px; border-left: 5px solid var(--sign); margin: 0; }
.practice-grid .photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; }
.practice-grid .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
@media (max-width: 860px) { .practice-grid { grid-template-columns: 1fr; } }

/* ---------- moduły programu ---------- */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: mod; }
.modules li { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; counter-increment: mod; }
.modules li::before { content: counter(mod, decimal-leading-zero); display: block; font-family: var(--hand); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--brown); margin-bottom: 10px; }
.modules h3 { font-size: 1.15rem; margin-bottom: .45em; }
.modules p { color: var(--ink-soft); font-size: .95rem; line-height: 1.5; margin: 0; }
@media (max-width: 960px) { .modules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .modules { grid-template-columns: 1fr; } }

/* ---------- pasek CTA ---------- */
.cta-strip { background: var(--sign); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.cta-strip p { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; max-width: 24em; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy); }

/* ---------- lista z ptaszkami ---------- */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px dashed var(--line); font-weight: 500; }
.checks svg { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.checks.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .checks.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .checks, .checks.three { grid-template-columns: 1fr; } }

/* ---------- jak wyglądają zajęcia ---------- */
.format-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.format-grid .facts { margin: 20px 0 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; text-align: center; padding: 26px 12px 22px; font-weight: 700; font-size: .98rem; line-height: 1.25; }
.steps li:nth-child(1) { background: var(--beige);  border-radius: 58% 42% 48% 52% / 45% 55% 45% 55%; }
.steps li:nth-child(2) { background: var(--yellow); border-radius: 44% 56% 55% 45% / 55% 45% 55% 45%; }
.steps li:nth-child(3) { background: var(--green);  border-radius: 52% 48% 40% 60% / 50% 58% 42% 50%; }
.steps li:nth-child(4) { background: var(--blue);   border-radius: 46% 54% 58% 42% / 58% 44% 56% 42%; }
.steps svg { width: 46px; height: 46px; margin: 0 auto 8px; display: block; }
.steps li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--brown); font-weight: 700; z-index: 1; }
@media (max-width: 860px) { .format-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 18px; }
  .steps li::after { display: none; }
}

/* ---------- kontakt z rodzicem ---------- */
.parent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0 0 28px; }
.parent-grid li { background: #fff; border-radius: var(--radius); padding: 26px 24px; border: 1.5px solid var(--line); }
.parent-grid .ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--yellow-soft); margin-bottom: 16px; }
.parent-grid li:nth-child(2) .ic { background: var(--blue); }
.parent-grid li:nth-child(3) .ic { background: var(--green); }
.parent-grid .ic svg { width: 32px; height: 32px; }
.parent-grid p { margin: 0; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 860px) { .parent-grid { grid-template-columns: 1fr; } }

/* ---------- prowadząca (wersja skrócona) ---------- */
.teacher { display: flex; align-items: center; gap: clamp(20px, 4vw, 40px); flex-wrap: wrap; }
.teacher img { width: clamp(120px, 18vw, 170px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 25%; border: 6px solid #fff; box-shadow: var(--shadow); }
.teacher .name { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.025em; margin: 0; line-height: 1.1; }
.teacher .role { color: var(--ink-soft); margin: 4px 0 14px; }

/* ---------- zapisy ---------- */
.signup-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.signup-grid h2 { margin-bottom: .1em; }
.signup-grid .lp-tagline { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: .8em; }
.signup-side { max-width: 26em; }
.signup-side h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: .5em; }
.signup-side p { color: var(--ink-soft); }
.signup-contact { display: flex; white-space: nowrap; align-items: center; gap: 12px; margin: 0 0 10px; text-decoration: none; color: var(--ink-soft) !important; font-size: 1rem; }
.signup-contact img, .signup-contact svg { width: 28px; height: 28px; flex: none; }
.signup-contact svg { stroke-width: 3.6; }
.signup-contact strong { color: var(--ink); font-size: 1.1rem; }
a.signup-contact:hover strong { color: var(--brown); }
.choice { display: flex; gap: 10px; flex-wrap: wrap; border: 0; padding: 0; margin: 0 0 16px; }
.choice legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: inline-block; padding: .65em 1.4em; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 600; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.choice input:checked + span { background: var(--sign); border-color: var(--sign-deep); }
.choice input:focus-visible + span { outline: 3px solid var(--sign-deep); outline-offset: 2px; }
@media (max-width: 860px) { .signup-grid { grid-template-columns: 1fr; } }

/* ---------- pływający przycisk na telefonie ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 252, 246, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta .btn { width: 100%; }
.sticky-cta.show { transform: none; }
@media (min-width: 761px) { .sticky-cta { display: none; } }

/* ---------- E8: grafika w hero ---------- */
.exam-card {
  position: relative; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px);
  background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line);
  background-image:
    linear-gradient(rgba(107, 74, 43, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 74, 43, .07) 1px, transparent 1px);
  background-size: 24px 24px;
  font-family: var(--hand); font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.35; color: var(--ink);
}
.exam-card .big { font-family: var(--font); font-weight: 800; font-size: clamp(4.5rem, 10vw, 7rem); line-height: .9; letter-spacing: -0.04em; color: var(--ink); margin-bottom: 18px; }
.exam-card .big span { color: var(--sign-deep); }
.exam-card .note { color: var(--brown); }
.exam-card .way { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.exam-card .way span { border: 2px dashed var(--brown); border-radius: 12px; padding: 2px 12px; font-size: .85em; }
.exam-card .sign-img { position: absolute; right: -18px; top: -22px; width: 84px; height: 84px; transform: rotate(8deg); }

/* ---------- metoda E8 — kroki z opisem ---------- */
.method { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: m; }
.method li { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px 26px; counter-increment: m; }
.method li::before { content: counter(m); grid-row: 1 / span 2; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow-soft); font-family: var(--hand); font-size: 1.8rem; font-weight: 700; color: var(--brown); }
.method h3 { font-size: 1.15rem; margin: 0; align-self: center; }
.method p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 560px) { .method li { grid-template-columns: 1fr; padding: 20px; } .method li::before { grid-row: auto; } }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo > div { border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.duo h3 { display: flex; align-items: center; gap: 12px; }
.duo h3 svg { width: 36px; height: 36px; flex: none; }
.duo p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* ---------- strona podziękowania ---------- */
.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.thanks img { width: 110px; margin: 0 auto 20px; }
.thanks .lead { max-width: 30em; margin-inline: auto; }
.thanks .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
@media (max-width: 520px) { .btn-lg { padding: 1em 1.3em; font-size: 1rem; } }
