/* Już umiem! — strona www. Kolory i czcionki jak w grze. */

@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap;
  src: url("fonts/baloo2-extrabold.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 700; font-display: swap;
  src: url("fonts/baloo2-bold.woff2") format("woff2"); }
@font-face { font-family: "Andika"; font-weight: 400; font-display: swap;
  src: url("fonts/andika-regular.woff2") format("woff2"); }
@font-face { font-family: "Andika"; font-weight: 700; font-display: swap;
  src: url("fonts/andika-bold.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --navy: #1b2a4a;
  --text: #2c3a55;
  --soft: #5d6b84;
  --green: #3f9b43;
  --green-dark: #2e7d32;
  --green-bg: #f3faf1;
  --blue: #4f8fe8;
  --blue-bg: #f2f6fd;
  --red: #e8684a;
  --yellow: #e8c23d;
  --purple: #9b59d0;
  --pink: #e85a8a;
  --teal: #45b7a0;
  --sky-top: #8fdcfe;
  --sky-bottom: #eefbfd;
  --card: #ffffff;
  --line: #dde6f0;
  --todo-bg: #fff3b0;
  --todo-line: #e8c23d;
  --radius: 28px;
  --shadow: 0 6px 0 rgba(27, 42, 74, .07), 0 10px 30px rgba(27, 42, 74, .08);
  --head: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "Andika", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--sky-bottom);
  background-image:
    url("img/niebo.webp"),
    linear-gradient(180deg, var(--sky-top) 0, #e6f9fd 820px, var(--sky-bottom) 1200px);
  background-repeat: no-repeat;
  background-size: max(100%, 760px) auto, 100% 100%;
  background-position: top center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--green); }
h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-weight: 800; font-size: clamp(34px, 6vw, 56px); }
h2 { font-weight: 800; font-size: clamp(28px, 4.4vw, 40px); }
h3 { font-weight: 700; font-size: 24px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
main { flex: 1; }

/* ── nagłówek ─────────────────────────────────────── */
.top { padding: 14px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 52px; height: 52px; }
.brand span { font-family: var(--head); font-weight: 800; font-size: 26px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  font-family: var(--head); font-weight: 700; font-size: 17px;
  color: var(--navy); text-decoration: none;
  background: rgba(255, 255, 255, .85); padding: 6px 16px; border-radius: 999px;
  box-shadow: 0 3px 0 rgba(27, 42, 74, .08);
}
.nav a:hover, .nav a[aria-current="page"] { background: #fff; color: var(--green-dark); }

/* ── hero ─────────────────────────────────────────── */
.hero { padding: 24px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .napis { width: min(420px, 80%); margin: 0 0 8px -8px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 46px); }
.hero .lead { font-size: 20px; color: var(--text); max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--head); font-weight: 800; font-size: 20px;
  padding: 12px 26px; border-radius: 19px; text-decoration: none;
  background: var(--green); color: #fff;
  box-shadow: 0 5px 0 var(--green-dark);
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { color: #fff; background: #379039; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--green-dark); }
.btn.white { background: #fff; color: var(--navy); box-shadow: 0 5px 0 var(--line); }
.btn.white:hover { color: var(--green-dark); }
.btn.soon { background: var(--navy); box-shadow: 0 5px 0 #0d1830; cursor: default; }
.btn.soon small { display: block; font-size: 13px; font-weight: 700; opacity: .8; line-height: 1; }
.btn.soon b { display: block; line-height: 1.1; }
.btn svg { flex: none; }

.phone {
  width: 100%; max-width: 330px; margin: 0 auto;
  border-radius: 44px; padding: 12px; background: #1b2a4a;
  box-shadow: 0 24px 50px rgba(27, 42, 74, .28);
}
.phone img { border-radius: 33px; aspect-ratio: 9 / 16; width: 100%; object-fit: cover; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.badges li {
  background: #fff; border-radius: 999px; padding: 4px 14px 4px 10px;
  font-weight: 700; font-size: 16px; color: var(--navy);
  display: flex; align-items: center; gap: 6px; box-shadow: 0 3px 0 rgba(27, 42, 74, .07);
}
.badges li::before { content: "✓"; color: var(--green); font-weight: 700; }

/* ── sekcje ───────────────────────────────────────── */
section { padding: 44px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.section-head p { color: var(--soft); font-size: 19px; }
.section-head .hint { font-size: 15px; font-weight: 700; color: var(--green-dark); margin: -6px 0 0; }

.grid-subjects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.subject {
  background: var(--card); border-radius: var(--radius); padding: 18px 18px 16px;
  box-shadow: var(--shadow); border-left: 10px solid var(--c, var(--green));
}
.subject img { width: 84px; height: 84px; object-fit: contain; margin-bottom: 6px; }
.subject h3 { margin-bottom: .2em; }
.subject p { font-size: 16px; color: var(--soft); margin: 0; line-height: 1.5; }

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 18px;
  overflow-x: auto; padding: 8px 20px 22px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; max-width: 1120px; margin: 0 auto;
}
.shots figure { margin: 0; scroll-snap-align: center; }
.shots img {
  border-radius: 26px; aspect-ratio: 9 / 16; width: 100%; object-fit: cover;
  border: 6px solid #fff; box-shadow: var(--shadow); background: #fff;
}
.shots figcaption { text-align: center; font-family: var(--head); font-weight: 700; color: var(--navy); margin-top: 8px; }

.parents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow);
}
.card h3 { display: flex; align-items: center; gap: 10px; }
.card .ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; background: var(--green-bg);
}
.card p { margin: 0; color: var(--soft); font-size: 17px; }

.price {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch;
}
.price .card { text-align: center; border-top: 10px solid var(--c, var(--green)); }
.price .big { font-family: var(--head); font-weight: 800; font-size: 44px; color: var(--navy); line-height: 1.1; margin: 4px 0 6px; }
.price .card p { font-size: 16px; }
.note { text-align: center; color: var(--soft); font-size: 16px; margin-top: 18px; }

/* ── strony z tekstem (prywatność, regulamin, pomoc) ─ */
.doc {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 34px clamp(20px, 5vw, 56px) 40px; margin: 8px auto 40px;
}
.doc h1 { font-size: clamp(30px, 5vw, 44px); }
.doc h2 { font-size: 26px; margin-top: 1.6em; }
.doc h3 { font-size: 21px; margin-top: 1.2em; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: .35em; }
.doc .meta { color: var(--soft); font-size: 16px; }
.summary {
  background: var(--green-bg); border-radius: 20px; padding: 18px 22px; margin: 18px 0 8px;
  border-left: 8px solid var(--green);
}
.summary ul { margin: 0; }
.summary p:last-child { margin: 0; }
details {
  border: 2px solid var(--line); border-radius: 18px; padding: 0 18px; margin: 0 0 12px; background: #fff;
}
details[open] { border-color: #b9d9b5; }
summary {
  cursor: pointer; font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--navy);
  padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--green); font-size: 26px; line-height: 1; }
details[open] summary::after { content: "−"; }
details > div { padding-bottom: 14px; }
.contact {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--blue-bg); border-radius: 20px; padding: 18px 22px; margin: 10px 0 18px;
  border-left: 8px solid var(--blue);
}
.contact b { font-family: var(--head); font-size: 24px; color: var(--navy); }

/* miejsca do uzupełnienia przed wydaniem — celowo widoczne */
.todo {
  background: var(--todo-bg); border: 2px dashed var(--todo-line); border-radius: 8px;
  padding: 0 6px; font-weight: 700; color: #6b5300; white-space: nowrap;
}

/* ── stopka ───────────────────────────────────────── */
.foot { margin-top: 20px; }
.foot .grass { height: 150px; background: url("img/trawa.webp") center bottom / cover no-repeat; }
.foot .bar { background: #5aa83a; color: #fff; padding: 18px 0 26px; font-size: 16px; }
.foot .bar .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; }
.foot a { color: #fff; font-weight: 700; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot .tm { font-size: 13px; opacity: .85; width: 100%; margin: 6px 0 0; }

/* ── telefon ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 26px; }
  .hero .phone { max-width: 260px; }
  .grid-subjects { grid-template-columns: repeat(2, 1fr); }
  .parents, .price { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .brand span { font-size: 22px; }
  .brand img { width: 44px; height: 44px; }
  .nav a { font-size: 15px; padding: 5px 12px; }
  .grid-subjects { gap: 12px; }
  .subject { padding: 14px 12px 12px; border-left-width: 7px; }
  .subject img { width: 64px; height: 64px; }
  .subject h3 { font-size: 20px; }
  .subject p { font-size: 14.5px; }
  .shots { grid-auto-columns: 180px; padding: 8px 16px 20px; }
  .foot .grass { height: 100px; }
  .todo { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
