/* twojyearbook.pl — Editorial Luxury */
/* Czcionka leży na naszym serwerze, nie w Google Fonts: szybciej, a przeglądarka
   odwiedzającego nie łączy się z Google (mniej kłopotu z RODO). Licencja OFL. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonty/plus-jakarta-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonty/plus-jakarta-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* kolory marki z logo TWOJYEARBOOK.PL */
  --blue-light: #17A2F5;
  --blue: #1178DC;
  --blue-deep: #0640BB;
  --navy: #0C1B3A;
  --navy-2: #16294F;
  --ink: #0F1A2E;
  --paper: #FFFFFF;
  --paper-2: #F4F8FD;
  --muted: #64748B;
  --line: rgba(15, 26, 46, 0.09);
  --line-2: rgba(15, 26, 46, 0.16);
  --grad: linear-gradient(140deg, var(--blue-light), var(--blue-deep));
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --r-xl: 2rem;
  --r-lg: 1.5rem;
  --r-md: 1.1rem;
  --maxw: 1180px;
  /* aliasy zgodności ze starymi regułami */
  --cream: #FFFFFF;
  --cream-2: #F4F8FD;
  --gold: #1178DC;
  --gold-2: #17A2F5;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { /* delikatne ziarno */
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .022;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
h1, h2, h3, .serif { font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; font-weight: 700; letter-spacing: -0.035em; line-height: 1.06; margin: 0; }
h1 { font-size: clamp(2.5rem, 5.8vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .35rem .85rem;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--navy);
  background: rgba(27, 42, 74, .06); box-shadow: inset 0 0 0 1px rgba(27, 42, 74, .08);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #3B4256; max-width: 42rem; }
.muted { color: var(--muted); }

/* ---- nav (floating island) */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; padding: 1.25rem 1rem; pointer-events: none; }
.nav__pill {
  pointer-events: auto; display: flex; align-items: center; gap: .25rem; padding: .45rem .5rem .45rem 1rem;
  border-radius: 999px; background: rgba(251, 248, 242, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 0 0 1px rgba(22,32,58,.07), 0 20px 50px -20px rgba(22,32,58,.25);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.nav__logo { display: flex; align-items: center; color: var(--navy); margin-right: .75rem; }
.nav__logo svg, .nav__logo img { height: 28px; width: auto; }
.nav__links { display: flex; gap: .15rem; }
.nav__links a { text-decoration: none; font-size: .92rem; font-weight: 500; padding: .5rem .85rem; border-radius: 999px; transition: background .5s var(--ease), color .5s var(--ease); }
.nav__links a:hover { background: rgba(27, 42, 74, .07); }
.burger { display: none; width: 40px; height: 40px; border: 0; background: rgba(27,42,74,.06); border-radius: 50%; position: relative; cursor: pointer; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--navy); transition: transform .6s var(--ease), opacity .4s var(--ease); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 55; background: rgba(251,248,242,.9); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.menu.open { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.menu a { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(2rem, 8vw, 3rem); text-decoration: none; padding: .35rem 0; text-align: center; opacity: 0; transform: translateY(2.5rem); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.menu.open a { opacity: 1; transform: none; }
.menu.open a:nth-child(1){transition-delay:.05s}.menu.open a:nth-child(2){transition-delay:.1s}.menu.open a:nth-child(3){transition-delay:.15s}.menu.open a:nth-child(4){transition-delay:.2s}.menu.open a:nth-child(5){transition-delay:.25s}.menu.open a:nth-child(6){transition-delay:.3s}

/* ---- buttons */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; gap: .75rem; padding: .55rem .55rem .55rem 1.4rem; border-radius: 999px;
  background: var(--bg); color: var(--fg); text-decoration: none; font-weight: 600; font-size: .98rem; border: 0; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 18px 40px -18px rgba(27,42,74,.6);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), background .6s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 26px 50px -20px rgba(27,42,74,.7); }
.btn:active { transform: scale(.98); }
.btn__i { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; transition: transform .6s var(--ease), background .6s var(--ease); }
.btn:hover .btn__i { transform: translate(2px, -1px) scale(1.06); background: var(--gold); color: var(--navy); }
.btn--ghost { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1px rgba(27,42,74,.18); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px rgba(27,42,74,.35); }
.btn--ghost .btn__i { background: rgba(27,42,74,.07); }
.btn--gold { --bg: var(--gold); --fg: var(--navy); }
.btn--gold .btn__i { background: rgba(27,42,74,.12); }
.btn--gold:hover .btn__i { background: var(--navy); color: #fff; }
.btn--lg { font-size: 1.08rem; padding: .7rem .7rem .7rem 1.7rem; }
.btn--lg .btn__i { width: 40px; height: 40px; }

/* ---- double bezel cards */
.shell { background: rgba(27,42,74,.04); box-shadow: inset 0 0 0 1px rgba(27,42,74,.07); border-radius: var(--r-xl); padding: .4rem; }
.core { background: #fff; border-radius: calc(var(--r-xl) - .4rem); box-shadow: inset 0 1px 1px rgba(255,255,255,.9), 0 1px 0 rgba(27,42,74,.04); padding: clamp(1.4rem, 3vw, 2.2rem); height: 100%; }
.shell--dark { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.shell--dark .core { background: var(--navy-2); color: #fff; box-shadow: inset 0 1px 1px rgba(255,255,255,.12); }

/* ---- hero */
/* hero jest teraz jedną kolumną: tekst na środku, pod nim rozkładówki na pełną szerokość */
.hero { position: relative; display: grid; align-items: center; padding: 8rem 0 4rem; overflow: hidden; }
/* w hero rozkladowki stoja obok tekstu, w waskiej kolumnie, wiec jedna pod druga */
.hero__ksiega .motywy__podglady { grid-template-columns: 1fr; gap: 1rem; }
.hero__ksiega .motywy__wybor { margin-top: 1rem; gap: .4rem; }
.hero__ksiega .probka, .hero__ksiega .wlasny { width: 1.45rem; height: 1.45rem; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 50% at 85% 10%, rgba(201,162,39,.18), transparent 60%),
  radial-gradient(50% 45% at 5% 90%, rgba(27,42,74,.12), transparent 60%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 em { font-style: normal; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero__proof { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.6rem; font-size: .9rem; color: var(--muted); }
.hero__proof b { color: var(--ink); font-weight: 600; }
.stack { position: relative; aspect-ratio: 4/4.6; }
.stack__card { position: absolute; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(22,32,58,.45), 0 0 0 1px rgba(22,32,58,.06); transition: transform .9s var(--ease); }
.stack__card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.stack__card:nth-child(1) { width: 62%; left: 0; top: 8%; transform: rotate(-4deg); z-index: 1; }
.stack__card:nth-child(2) { width: 62%; right: 0; top: 0; transform: rotate(3deg); z-index: 2; }
.stack__card:nth-child(3) { width: 58%; left: 20%; bottom: 0; transform: rotate(-1deg); z-index: 3; }
.stack:hover .stack__card:nth-child(1) { transform: rotate(-6deg) translateX(-2%); }
.stack:hover .stack__card:nth-child(2) { transform: rotate(5deg) translateX(2%); }
.stack:hover .stack__card:nth-child(3) { transform: translateY(-2%); }
.stack__tag { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-2deg); z-index: 4; background: var(--navy); color: #fff; padding: .5rem .9rem; border-radius: 999px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 16px 30px -12px rgba(22,32,58,.6); }

/* ======================================================================
   PODGLĄD MOTYWÓW — rozkładówki rysowane HTML-em, nie obrazkami.
   Wszystko wewnątrz bierze kolory ze zmiennych ustawianych na .motywy,
   więc zmiana jednego atrybutu data-motyw przemalowuje obie strony.
   Rozmiary są w cqw (procent szerokości rozkładówki), dzięki czemu cała
   strona skaluje się jak zdjęcie i nic się nie rozjeżdża na telefonie.
   ====================================================================== */
.motywy { --tlo: #8294AB; --karta: #D9D9D9; --tekst: #1F2430; --cytat: #55606F;
          --akcent: #8294AB; --foto: #FFFFFF; --font: var(--font-ui, inherit); }
.motywy__podglady { grid-template-columns: 1fr; gap: 1rem; }
.hero__ksiega .motywy__wybor { margin-top: 1rem; gap: .4rem; }
.hero__ksiega .probka, .hero__ksiega .wlasny { width: 1.45rem; height: 1.45rem; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 50% at 85% 10%, rgba(201,162,39,.18), transparent 60%),
  radial-gradient(50% 45% at 5% 90%, rgba(27,42,74,.12), transparent 60%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 em { font-style: normal; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero__proof { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.6rem; font-size: .9rem; color: var(--muted); }
.hero__proof b { color: var(--ink); font-weight: 600; }
.stack { position: relative; aspect-ratio: 4/4.6; }
.stack__card { position: absolute; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(22,32,58,.45), 0 0 0 1px rgba(22,32,58,.06); transition: transform .9s var(--ease); }
.stack__card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.stack__card:nth-child(1) { width: 62%; left: 0; top: 8%; transform: rotate(-4deg); z-index: 1; }
.stack__card:nth-child(2) { width: 62%; right: 0; top: 0; transform: rotate(3deg); z-index: 2; }
.stack__card:nth-child(3) { width: 58%; left: 20%; bottom: 0; transform: rotate(-1deg); z-index: 3; }
.stack:hover .stack__card:nth-child(1) { transform: rotate(-6deg) translateX(-2%); }
.stack:hover .stack__card:nth-child(2) { transform: rotate(5deg) translateX(2%); }
.stack:hover .stack__card:nth-child(3) { transform: translateY(-2%); }
.stack__tag { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-2deg); z-index: 4; background: var(--navy); color: #fff; padding: .5rem .9rem; border-radius: 999px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 16px 30px -12px rgba(22,32,58,.6); }

/* ---- stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { padding: 1.5rem 1.6rem; border-radius: var(--r-lg); background: #fff; box-shadow: 0 1px 0 rgba(27,42,74,.06), 0 30px 60px -40px rgba(22,32,58,.25); }
.stat b { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 2.2rem; font-weight: 500; letter-spacing: -.02em; color: var(--navy); }
.stat span { font-size: .92rem; color: var(--muted); }

/* ---- generic grids */
.head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head h2 { margin: .9rem 0 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.bento > .c8 { grid-column: span 8; } .bento > .c4 { grid-column: span 4; } .bento > .c6 { grid-column: span 6; } .bento > .c3 { grid-column: span 3; }
.icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(201,162,39,.14); color: var(--navy); margin-bottom: 1.1rem; }
.icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.core h3 { margin-bottom: .55rem; }
.core p:last-child { margin-bottom: 0; color: #3B4256; }

/* ---- steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
/* nie każda sekcja ma pięć kroków; przy trzech pięciokolumnowa siatka zostawia pusty pas */
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding: 1.6rem 1.4rem 1.5rem; border-radius: var(--r-lg); background: #fff;
        box-shadow: inset 0 0 0 1px rgba(27,42,74,.08), 0 1px 0 rgba(27,42,74,.06); }
.step::before { counter-increment: s; content: "0" counter(s); font-family: "Plus Jakarta Sans", sans-serif; font-size: 2rem; color: var(--gold); display: block; margin-bottom: .6rem; line-height: 1; }
.step h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.step p { font-size: .93rem; color: #3B4256; margin: 0; }
.step small { display: block; margin-top: .8rem; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---- dark section */
.dark { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.dark::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 40% at 90% 100%, rgba(201,162,39,.22), transparent 60%); }
.dark .wrap { position: relative; z-index: 1; }
.dark .eyebrow { color: var(--gold-2); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.dark .lead { color: rgba(255,255,255,.78); }
.dark .core p:last-child { color: rgba(255,255,255,.78); }
.dark .icon { background: rgba(201,162,39,.16); color: var(--gold-2); }

/* ---- gallery */
.gallery[hidden] { display: none; }
.gallery { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.25rem; align-items: start; }
.gallery figure { margin: 0; }
.gallery .shell { height: 100%; }
.gallery .core { padding: .6rem; display: flex; flex-direction: column; gap: .6rem; }
.gallery img { border-radius: calc(var(--r-xl) - 1rem); width: 100%; box-shadow: 0 20px 40px -30px rgba(22,32,58,.5); }
.gallery figcaption { padding: .2rem .6rem .5rem; font-size: .88rem; color: var(--muted); }
.gallery figcaption b { color: var(--ink); font-weight: 600; }
/* rozkładówka jest pozioma, więc zajmuje dwie kolumny zamiast jednej */
.gallery figure.szeroka { grid-column: span 2; }
.tabs { display: inline-flex; gap: .25rem; padding: .3rem; border-radius: 999px; background: rgba(27,42,74,.06); margin-bottom: 1.5rem; }
.tabs button { border: 0; background: transparent; padding: .45rem 1rem; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; transition: background .5s var(--ease), color .5s var(--ease); }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }

/* ---- faq */
.faq { max-width: 52rem; }
.faq details { border-radius: var(--r-md); background: #fff; box-shadow: 0 1px 0 rgba(27,42,74,.06); margin-bottom: .7rem; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.4rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.5rem; color: var(--gold); transition: transform .6s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 1.4rem 1.2rem; color: #3B4256; }

/* ---- contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: .35rem; font-size: .85rem; font-weight: 500; color: #3B4256; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; padding: .8rem 1rem; border-radius: 14px; border: 0; background: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(27,42,74,.1); color: var(--ink); transition: box-shadow .5s var(--ease); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--navy); }
.form__note { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); }
.form__ok { display: none; padding: 1rem 1.2rem; border-radius: 14px; background: rgba(22,163,74,.1); color: #166534; }
.contact-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-list a { text-decoration: none; font-weight: 600; }

/* ---- footer */
footer { padding: 4rem 0 2.5rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--navy); }
.foot ul { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .4rem; }
.foot__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem; }

/* ---- reveal */
.rv { opacity: 0; transform: translateY(2.4rem); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.rv.in { opacity: 1; transform: none; filter: none; }
.rv-d1 { transition-delay: .1s } .rv-d2 { transition-delay: .2s } .rv-d3 { transition-delay: .3s } .rv-d4 { transition-delay: .4s }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; filter: none; transition: none; } html { scroll-behavior: auto; } }

/* ---- school page */
.school-hero { padding: 9rem 0 4rem; }
.school-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.school-logo { width: 84px; height: 84px; border-radius: 22px; object-fit: contain; background: #fff; padding: .6rem; box-shadow: 0 1px 0 rgba(27,42,74,.06), 0 20px 40px -25px rgba(22,32,58,.4); margin-bottom: 1.4rem; }
.price { font-family: "Plus Jakarta Sans", sans-serif; font-size: 3.4rem; letter-spacing: -.02em; color: var(--navy); line-height: 1; }
.price small { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1rem; color: var(--muted); letter-spacing: 0; }
.countdown { display: flex; gap: .6rem; margin: 1.2rem 0 1.6rem; }
.countdown div { min-width: 68px; padding: .7rem .5rem; border-radius: 16px; background: #fff; text-align: center; box-shadow: 0 1px 0 rgba(27,42,74,.06); }
.countdown b { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.8rem; color: var(--navy); line-height: 1; }
.countdown span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: .2rem; border-radius: 50%; background: rgba(201,162,39,.2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 10.5l3 3 7-7' fill='none' stroke='%231B2A4A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat; }
.closed { padding: 1.2rem 1.4rem; border-radius: 16px; background: rgba(185,28,28,.08); color: #991b1b; font-weight: 500; }

/* ---- responsive */
@media (max-width: 1024px) {
  .steps, .steps--3 { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure.szeroka { grid-column: span 2; }
  .bento > .c8, .bento > .c4, .bento > .c6, .bento > .c3 { grid-column: span 6; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav__links { display: none; } .burger { display: block; }
  .nav__pill { padding: .4rem .4rem .4rem .9rem; }
  .hero { padding: 6.5rem 0 3rem; min-height: auto; }
  .hero__grid, .school-hero__grid, .contact { grid-template-columns: 1fr; }
  .stack { width: 100%; max-width: 420px; margin: 1rem auto 0; justify-self: center; }
  .stack__card { box-shadow: 0 20px 40px -20px rgba(22,32,58,.4), 0 0 0 1px rgba(22,32,58,.06); }
  .stats, .grid-2, .grid-3, .steps, .steps--3, .gallery { grid-template-columns: 1fr; }
  .gallery figure.szeroka { grid-column: span 1; }
  .bento > .c8, .bento > .c4, .bento > .c6, .bento > .c3 { grid-column: span 12; }
  .form { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .stat b { font-size: 1.8rem; }
}

/* ============ dodatki: marka, podstrony, nowe sekcje ============ */
.nav__logo img { height: 26px; width: auto; }
.foot img, .logo-img { height: auto; }
.btn--gold { --bg: transparent; --fg: #fff; background-image: var(--grad); box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 18px 40px -18px rgba(6,64,187,.65); }
.btn--gold .btn__i { background: rgba(255,255,255,.2); color: #fff; }
.btn--gold:hover .btn__i { background: #fff; color: var(--blue-deep); }
.hero__bg { background:
  radial-gradient(55% 45% at 88% 6%, rgba(23,162,245,.22), transparent 62%),
  radial-gradient(45% 40% at 2% 92%, rgba(6,64,187,.14), transparent 62%); }
.eyebrow { color: var(--blue-deep); background: rgba(17,120,220,.09); box-shadow: inset 0 0 0 1px rgba(17,120,220,.14); }
.eyebrow::before { background: var(--blue-light); }
.icon { background: rgba(17,120,220,.1); color: var(--blue-deep); }
.dark .eyebrow { color: #9CD4FF; }
.dark::after { background: radial-gradient(48% 38% at 92% 100%, rgba(23,162,245,.3), transparent 62%); }
.stat b, .countdown b, .price, .kpi b { color: var(--blue-deep); }
.step::before { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.faq summary::after { color: var(--blue); }
.checks li::before { background: rgba(17,120,220,.14) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 10.5l3 3 7-7' fill='none' stroke='%230640BB' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat; }
.stack__tag { background: var(--navy); }

/* pasek logotypów / baza klientów */
.klienci { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.klient { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.15rem; border-radius: var(--r-md); background: #fff; box-shadow: 0 1px 0 rgba(15,26,46,.07), 0 24px 50px -40px rgba(15,26,46,.35); }
.klient__znak { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; letter-spacing: -.02em; }
.klient b { display: block; font-size: .95rem; line-height: 1.25; }
.klient span { font-size: .82rem; color: var(--muted); }
.klient--pusty { background: repeating-linear-gradient(135deg, #fff, #fff 10px, #F4F8FD 10px, #F4F8FD 20px); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: .9rem; justify-content: center; text-align: center; }

/* oferta pracy: karty stanowisk */
.praca { display: grid; gap: 1.1rem; }
.praca__karta { display: grid; grid-template-columns: 1fr auto; gap: 1rem 1.5rem; align-items: center; padding: 1.5rem 1.7rem; border-radius: var(--r-lg); background: #fff; box-shadow: 0 1px 0 rgba(15,26,46,.07), 0 30px 60px -45px rgba(15,26,46,.4); }
.praca__karta h3 { margin-bottom: .35rem; }
.praca__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 0; }
.tag { font-size: .78rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; background: rgba(17,120,220,.09); color: var(--blue-deep); }
.tag--kasa { background: rgba(16,185,129,.12); color: #047857; }

/* sekcja sklepu / panel */
.panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mini-tabela { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: .8rem }
.mini-tabela th, .mini-tabela td { text-align: left; padding: .45rem .2rem; border-bottom: 1px solid var(--line); }
.mini-tabela th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600 }
.mini-tabela td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600 }
.pasek { height: 6px; border-radius: 99px; background: rgba(17,120,220,.14); overflow: hidden; margin-top: .3rem }
.pasek i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }

@media (max-width: 900px) {
  .panel-grid { grid-template-columns: 1fr; }
  .praca__karta { grid-template-columns: 1fr; }
}

/* ======================================================================
   PODGLĄD MOTYWÓW — rozkładówki rysowane HTML-em, nie obrazkami.
   Wszystko wewnątrz bierze kolory ze zmiennych ustawianych na .motywy,
   więc zmiana jednego atrybutu data-motyw przemalowuje obie strony.
   Rozmiary są w cqw (procent szerokości rozkładówki), dzięki czemu cała
   strona skaluje się jak zdjęcie i nic się nie rozjeżdża na telefonie.
   ====================================================================== */
.motywy { --tlo: #8294AB; --karta: #D9D9D9; --tekst: #1F2430; --cytat: #55606F;
          --akcent: #8294AB; --foto: #FFFFFF; --font: var(--font-ui, inherit); }
.motywy[data-motyw="granat"]  { --tlo:#1B2A4A; --karta:#E7E2D6; --tekst:#1B2A4A; --cytat:#6B6250; --akcent:#C9A227; --foto:#FFFFFF; }
.motywy[data-motyw="bordo"]   { --tlo:#6B2338; --karta:#E6DCD5; --tekst:#5A1E2F; --cytat:#7D6A63; --akcent:#B98A5E; --foto:#FFFFFF; }
.motywy[data-motyw="zielen"]  { --tlo:#1F3D2B; --karta:#DDD9C6; --tekst:#1F3D2B; --cytat:#666B58; --akcent:#C0A860; --foto:#FFFFFF; }
.motywy[data-motyw="czern"]   { --tlo:#141414; --karta:#E2E2E2; --tekst:#141414; --cytat:#6E6E6E; --akcent:#141414; --foto:#FFFFFF; }
.motywy[data-motyw="turkus"]  { --tlo:#0F766E; --karta:#E3EDEB; --tekst:#0B4F49; --cytat:#5E7B78; --akcent:#F59E0B; --foto:#FFFFFF; }

.motywy__podglady { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .motywy__podglady { grid-template-columns: 1fr 1fr; } }

.ksiega { container-type: inline-size; position: relative; aspect-ratio: 1.414;
          background: var(--tlo); border-radius: .5rem; overflow: hidden;
          box-shadow: 0 30px 60px -35px rgba(22,32,58,.55), 0 0 0 1px rgba(22,32,58,.08);
          transition: background .45s var(--ease); font-family: var(--font); }
/* delikatny cień zszywki na środku, żeby czytało się jako otwarta książka */
.ksiega__grzbiet { position: absolute; inset: 0 auto 0 50%; width: 3.4cqw; transform: translateX(-50%);
                   background: linear-gradient(90deg, transparent, rgba(0,0,0,.14), transparent);
                   z-index: 2; pointer-events: none; }

/* --- rozkładówka 1: siatka portretów --- */
.ksiega__siatka { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr));
                  grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 1.3cqw;
                  padding: 2.2cqw; height: 100%; }
.uczen { background: var(--karta); padding: .8cqw .55cqw .9cqw; border-radius: .4cqw;
         display: flex; flex-direction: column; align-items: center; text-align: center;
         overflow: hidden; transition: background .45s var(--ease); }
.uczen__foto { width: 100%; flex: 1 1 auto; min-height: 0; background: var(--foto);
               border-radius: .2cqw; margin-bottom: .8cqw; transition: background .45s var(--ease); }
.uczen b { font-size: 1.05cqw; line-height: 1.15; font-weight: 700; color: var(--tekst);
           letter-spacing: .01em; transition: color .45s var(--ease); }
.uczen span { font-size: .92cqw; line-height: 1.25; color: var(--cytat); margin-top: .5cqw;
              transition: color .45s var(--ease);
              display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- rozkładówka 2: otwarcie klasy --- */
.ksiega--klasa { display: grid; grid-template-columns: 1fr 1fr; }
.ksiega__lewa { background: var(--tlo); display: grid; place-items: center; padding: 4cqw;
                transition: background .45s var(--ease); }
.ksiega__zdjecie { width: 100%; aspect-ratio: 3/2; background: var(--foto); border-radius: .8cqw;
                   transition: background .45s var(--ease); }
.ksiega__prawa { background: var(--karta); display: flex; flex-direction: column;
                 align-items: center; justify-content: center; gap: 3cqw; padding: 5cqw 4cqw;
                 transition: background .45s var(--ease); }
.ksiega__tytul { font-size: 7cqw; line-height: .95; font-weight: 800; color: var(--tekst);
                 text-transform: uppercase; letter-spacing: -.01em; text-align: center;
                 transition: color .45s var(--ease); }
.ksiega__tytul em { display: block; font-style: normal; margin-top: .15em; }
.ksiega__portret { width: 34%; aspect-ratio: 3/4; background: var(--foto);
                   border: 1.1cqw solid var(--akcent); transition: border-color .45s var(--ease), background .45s var(--ease); }
.ksiega__podpis { text-align: center; font-size: 1.5cqw; line-height: 1.5; color: var(--cytat);
                  text-transform: uppercase; letter-spacing: .1em; transition: color .45s var(--ease); }
.ksiega__podpis b { display: block; font-size: 1.8cqw; letter-spacing: .02em; color: var(--tekst);
                    transition: color .45s var(--ease); }

/* --- próbki kolorów --- */
/* same kolory, bez podpisów – nazwa siedzi w title i aria-label */
.motywy__wybor { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: 1.4rem; }
.probka { width: 1.65rem; height: 1.65rem; border-radius: 999px; flex: none; padding: 0; cursor: pointer;
          border: 0; background: linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%);
          box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
          transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.probka:hover { transform: scale(1.12); }
.probka[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 0 0 2px #fff, 0 0 0 4px var(--navy); }
.motywy__kreska { width: 1px; height: 1.4rem; background: rgba(27,42,74,.16); margin: 0 .2rem; flex: none; }
/* własny kolor: natywny input jest brzydki, więc chowamy go pod kółkiem */
.wlasny { position: relative; width: 1.65rem; height: 1.65rem; flex: none; cursor: pointer; display: block; }
.wlasny__kolo { display: block; width: 100%; height: 100%; border-radius: 999px;
                box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 0 0 1.5px #fff, 0 0 0 3px rgba(27,42,74,.22);
                transition: transform .35s var(--ease); }
.wlasny:hover .wlasny__kolo { transform: scale(1.12); }
.wlasny input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }



/* --- karty zespołu na /o-nas --- */
.zespol { display: grid; gap: 1rem; }
.osoba { display: grid; grid-template-columns: 88px 1fr; gap: 1.1rem; align-items: center;
         background: #fff; border-radius: var(--r-lg); padding: 1.1rem 1.3rem;
         box-shadow: inset 0 0 0 1px rgba(27,42,74,.08), 0 1px 0 rgba(27,42,74,.06); }
.osoba__foto { width: 88px; height: 88px; border-radius: 999px; overflow: hidden;
               background: rgba(27,42,74,.06); display: grid; place-items: center; }
.osoba__foto img { width: 100%; height: 100%; object-fit: cover; }
.osoba__inicjaly { font-size: 1.6rem; font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.osoba b { display: block; font-size: 1.05rem; color: var(--ink); }
.osoba__rola { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
               color: var(--gold); margin: .2rem 0 .5rem; }
.osoba p { margin: 0; font-size: .92rem; color: #3B4256; }
@media (max-width: 480px) {
  .osoba { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* Prywatna strona szkoły ma własne, krótkie menu i nie ma burgera – na telefonie
   linki muszą zostać widoczne, inaczej nawigacja znika zupełnie. */
.nav__links--stale { display: flex; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 768px) {
  .nav__links--stale a { font-size: .8rem; padding: .4rem .55rem; }
}

/* Odliczanie na stronie szkoły: cyfry plus zdanie, które tłumaczy, czym grozi termin. */
.odliczanie { margin: 1.2rem 0 1.6rem; }
.odliczanie .countdown { margin: 0 0 .7rem; }
.countdown__info { margin: 0; font-size: .85rem; color: var(--muted); max-width: 44ch; }
.odliczanie--pilne .countdown b { color: #b91c1c; }
.odliczanie--pilne .countdown__info { color: #991b1b; }

/* Formularz zamówienia na stronie szkoły – dane zbieramy u siebie, dopiero
   potem oddajemy ucznia do kasy Shopify. */
.zamowienie { margin: 0; }
.zamowienie__pola { display: grid; grid-template-columns: 1.6fr 1fr; gap: .8rem; margin-bottom: 1.1rem; }
.zamowienie label { display: grid; gap: .35rem; font-size: .82rem; font-weight: 600; color: var(--navy); }
.zamowienie input {
  font: inherit; font-size: .95rem; font-weight: 400; color: var(--ink);
  padding: .75rem .95rem; border-radius: 14px; background: #fff;
  border: 1px solid var(--line-2); transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.zamowienie input::placeholder { color: #97A1B0; }
.zamowienie input:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17,120,220,.15); }
.zamowienie input:user-invalid { border-color: #b91c1c; }
.zamowienie__info { margin: .9rem 0 0; font-size: .8rem; color: var(--muted); max-width: 44ch; }
@media (max-width: 768px) {
  .zamowienie__pola { grid-template-columns: 1fr; }
}

/* Galeria przykładów: trzy duże zdjęcia zamiast sześciu małych – rozkładówka
   na całą szerokość, pod nią okładka i strona na wpisy. */
.gallery--duza { grid-template-columns: 1fr 1fr; }
.gallery--duza figure.szeroka { grid-column: span 2; }
@media (max-width: 768px) {
  .gallery--duza { grid-template-columns: 1fr; }
  .gallery--duza figure.szeroka { grid-column: span 1; }
}
/* Trzecie, wąskie pole na liczbę egzemplarzy. */
.zamowienie__pola--trzy { grid-template-columns: 1.5fr 1fr .6fr; }
@media (max-width: 768px) {
  /* Nazwisko dostaje całą szerokość, klasa i liczba dzielą się drugim rzędem.
     Reguła musi stać po .zamowienie__pola--trzy, bo obie mają tę samą wagę. */
  .zamowienie__pola--trzy { grid-template-columns: 1fr 1fr; }
  .zamowienie__pola--trzy label:first-child { grid-column: span 2; }
}

/* Polityka prywatności: długi tekst w wąskiej kolumnie. */
.doc { max-width: 46rem; padding: 8rem 0 5rem; }
.doc h2 { font-size: 1.5rem; margin: 2.2rem 0 .6rem; }
.doc h3 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; }
.doc li { margin: .3rem 0; }
.doc .note { padding: 1rem 1.2rem; border-radius: 14px; background: rgba(17,120,220,.08); font-size: .9rem; }

/* Puste ramki w podglądzie wyglądały na niedokończone – rysujemy w nich jasne sylwetki,
   żeby od razu było widać, że tu stoi portret albo zdjęcie klasowe. */
.uczen__foto, .ksiega__portret {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 40'%3E%3Ccircle cx='15' cy='15' r='6.5' fill='%23DCE1E8'/%3E%3Cpath d='M3 40c0-8 5.4-13 12-13s12 5 12 13z' fill='%23DCE1E8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center bottom; background-size: 78% auto; }
.ksiega__zdjecie {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cg fill='%23DCE1E8'%3E%3Ccircle cx='20' cy='30' r='6'/%3E%3Cpath d='M9 60c0-7 5-11 11-11s11 4 11 11z'/%3E%3Ccircle cx='47' cy='27' r='6'/%3E%3Cpath d='M36 60c0-8 5-13 11-13s11 5 11 13z'/%3E%3Ccircle cx='74' cy='27' r='6'/%3E%3Cpath d='M63 60c0-8 5-13 11-13s11 5 11 13z'/%3E%3Ccircle cx='101' cy='30' r='6'/%3E%3Cpath d='M90 60c0-7 5-11 11-11s11 4 11 11z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center bottom; background-size: 86% auto; }

/* Na telefonie kółka kolorów muszą dać się trafić palcem. */
@media (max-width: 768px) {
  .hero__ksiega .probka, .hero__ksiega .wlasny { width: 2rem; height: 2rem; }
  .hero__ksiega .motywy__wybor { gap: .55rem; }
}

/* Menu strony szkoły w jednej linii: na wąskim telefonie zostają „Pytania” i „Kontakt”. */
@media (max-width: 768px) {
  .nav__links--stale { flex-wrap: nowrap; }
}
@media (max-width: 480px) {
  .nav__links--stale a[href="#co-dostajesz"] { display: none; }
}

/* Każda karta ucznia w podglądzie ma identyczny układ: imię i cytat dostają zawsze
   miejsce na dwie linijki, więc zdjęcie ma ten sam rozmiar niezależnie od długości tekstu. */
.uczen__foto { flex: 1 1 0; }
.uczen b { flex: none; height: 2.3em; display: flex; align-items: center; justify-content: center; }
.uczen span { flex: none; height: 2.5em; margin-top: .3cqw; }

/* ======== Co jest w środku: klikany spis treści + rozkładówka rozdziału ======== */
.spis { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: 3rem; align-items: start;
        /* kolory książki w podglądzie: granat i złoto */
        --tlo: #1B2A4A; --karta: #EFEBE1; --tekst: #1B2A4A; --cytat: #6F6A5E; --akcent: #C9A227; --foto: #FFFFFF; }
.spis__tytul { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--muted);
               padding-bottom: .8rem; border-bottom: 1px solid var(--line-2); }
.spis__lista { list-style: none; margin: 0; padding: 0; }
.spis__lista li { border-bottom: 1px solid var(--line); }
.spis__lista button { width: 100%; display: flex; align-items: baseline; gap: .8rem; padding: .95rem .2rem;
                      border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; text-align: left;
                      transition: color .4s var(--ease), padding .5s var(--ease); }
.spis__nr { font-size: .8rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; width: 1.4rem; flex: none;
            transition: color .4s var(--ease); }
.spis__nazwa { font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; }
.spis__kropki { flex: 1; min-width: 1rem; border-bottom: 2px dotted var(--line-2); transform: translateY(-.3rem); }
.spis__s { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.spis__lista button:hover { padding-left: .6rem; }
.spis__lista button[aria-selected="true"] { color: var(--blue); padding-left: .6rem; }
.spis__lista button[aria-selected="true"] .spis__nr { color: var(--blue); }
.spis__lista button[aria-selected="true"] .spis__kropki { border-color: var(--blue); opacity: .45; }
.spis__lista button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.spis__uwaga { font-size: .8rem; color: var(--muted); margin-top: 1rem; }

.spis__panel { animation: spisWejscie .6s var(--ease); }
.spis__panel[hidden] { display: none; }
@keyframes spisWejscie { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .spis__panel { animation: none; } }
.spis__opis { margin-top: 1.4rem; max-width: 40rem; min-height: 7.2rem; }
.spis__opis h3 { font-size: 1.35rem; margin: 0 0 .4rem; }
.spis__opis h3 span { color: var(--blue); font-size: .95rem; font-weight: 700; margin-right: .35rem; vertical-align: .1em; }
.spis__opis p { margin: 0; color: var(--muted); }
.spis__nawigacja { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.spis__strzalka { width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 0; background: var(--paper-2); color: var(--navy);
                  font: inherit; font-size: 1.1rem; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2);
                  transition: background .4s var(--ease), color .4s var(--ease); }
.spis__strzalka:hover { background: var(--navy); color: #fff; }
.spis__licznik { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 3rem; text-align: center; }

/* --- strony rozkładówek --- */
.ksiega--rozdzial { display: grid; grid-template-columns: 1fr 1fr; background: var(--karta); }
.str { position: relative; background: var(--karta); padding: 3.4cqw 3cqw 3cqw; display: flex; flex-direction: column;
       min-width: 0; min-height: 0; overflow: hidden; color: var(--tekst); }
.str--tlo { background: var(--tlo); color: #fff; }
.str__naglowek { font-size: 2.6cqw; font-weight: 800; letter-spacing: -.01em; line-height: 1; margin-bottom: 2.2cqw;
                 padding-bottom: 1cqw; border-bottom: .3cqw solid var(--akcent); flex: none; min-height: 3.9cqw; }
.str__naglowek--pusty { border-color: transparent; }
.str__podpis { font-size: 1.15cqw; color: var(--cytat); margin-top: 1.4cqw; text-transform: uppercase; letter-spacing: .12em; flex: none; }
.str__stopka { position: absolute; bottom: 2.4cqw; left: 0; right: 0; text-align: center; font-size: 1cqw; letter-spacing: .12em; opacity: .55; }
.twarz { aspect-ratio: 3/4; width: 100%; background-color: var(--foto); border-radius: .2cqw;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 40'%3E%3Ccircle cx='15' cy='15' r='6.5' fill='%23DCE1E8'/%3E%3Cpath d='M3 40c0-8 5.4-13 12-13s12 5 12 13z' fill='%23DCE1E8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center bottom; background-size: 78% auto; }

/* okładka */
.str--okladka { align-items: center; justify-content: center; text-align: center; gap: 1.2cqw; }
.okl__ramka { position: absolute; inset: 2.2cqw; border: .25cqw solid var(--akcent); pointer-events: none; }
.okl__tarcza { width: 8cqw; color: var(--akcent); margin-bottom: 1cqw; }
.okl__tarcza svg { display: block; width: 100%; height: auto; }
.okl__tytul { font-size: 5cqw; font-weight: 800; letter-spacing: -.02em; color: var(--akcent); line-height: 1; }
.okl__pod { font-size: 1.5cqw; font-style: italic; opacity: .8; }
.okl__kreska { width: 7cqw; height: .2cqw; background: var(--akcent); margin: 1cqw 0; }
.okl__szkola { font-size: 1.35cqw; font-weight: 700; line-height: 1.5; letter-spacing: .02em; }
.str--tyl { box-shadow: inset -2cqw 0 3cqw -2cqw rgba(0,0,0,.35); align-items: center; justify-content: center; text-align: center; gap: 1.2cqw; }
.tyl__cytat { font-size: 1.7cqw; font-style: italic; line-height: 1.5; opacity: .85; max-width: 80%; }
.tyl__kreska { width: 5cqw; height: .2cqw; background: var(--akcent); }
.tyl__kod { position: absolute; right: 3.4cqw; bottom: 4.6cqw; width: 9cqw; height: 5cqw; background: #fff; border-radius: .2cqw;
            background-image: repeating-linear-gradient(90deg, #111 0 .25cqw, transparent .25cqw .5cqw, #111 .5cqw .6cqw, transparent .6cqw 1cqw);
            background-size: 80% 70%; background-position: center 30%; background-repeat: no-repeat; }

/* słowo od dyrekcji */
.dyr__portret { width: 58%; aspect-ratio: 3/4; margin: auto auto 0; border: .9cqw solid #fff; box-shadow: 0 1cqw 2.4cqw -1cqw rgba(0,0,0,.35);
  background-color: var(--foto); background-image: inherit; }
.dyr__portret { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 40'%3E%3Ccircle cx='15' cy='15' r='6.5' fill='%23DCE1E8'/%3E%3Cpath d='M3 40c0-8 5.4-13 12-13s12 5 12 13z' fill='%23DCE1E8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center bottom; background-size: 78% auto; }
.dyr__podpis { text-align: center; font-size: 1.3cqw; color: var(--cytat); margin: 1.6cqw 0 auto; text-transform: uppercase; letter-spacing: .1em; }
.dyr__podpis b { color: var(--tekst); }
.str--list { justify-content: center; padding: 5cqw 4.4cqw; font-size: 1.28cqw; line-height: 1.6; }
.str--list p { margin: 0 0 1.2cqw; }
.list__zwrot { font-size: 1.9cqw; font-weight: 800; }
.list__podpis { margin-top: 1.4cqw !important; font-style: italic; font-size: 1.7cqw; color: var(--tekst); }
.list__podpis small { display: block; font-style: normal; font-size: 1.05cqw; color: var(--cytat); text-transform: uppercase; letter-spacing: .12em; margin-top: .3cqw; }

/* grono pedagogiczne */
.siatka-osob { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6cqw 1.4cqw; align-content: start; }
.osoba-mini { text-align: center; min-width: 0; }
.osoba-mini .twarz { margin-bottom: .6cqw; }
.osoba-mini b { display: block; font-size: .95cqw; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osoba-mini span { display: block; font-size: .85cqw; color: var(--cytat); }

/* klasy */
.str--klasa { align-items: center; justify-content: center; gap: 2.2cqw; text-align: center; }
.klasa__tytul { font-size: 4.6cqw; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; }
.klasa__tytul em { font-style: normal; color: var(--akcent); }
.str--klasa .ksiega__zdjecie { width: 92%; border: .6cqw solid #fff; border-radius: 0; }
.klasa__wych { font-size: 1.25cqw; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.klasa__wych b { display: block; font-size: 1.6cqw; letter-spacing: .03em; margin-top: .4cqw; opacity: 1; }
.str--uczniowie { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr));
                  gap: 1.2cqw; padding: 2.4cqw; }
.str--uczniowie .uczen { background: #fff; }

/* wydarzenia: zdjęcia jako kolorowe kafelki z sylwetkami */
.kolaz { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; gap: 1cqw; flex: 1; min-height: 0; }
.kolaz--2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1.1fr; }
.fot { border-radius: .3cqw; min-height: 0; background-repeat: no-repeat; background-position: center bottom; background-size: 88% auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cg fill='%23ffffff' fill-opacity='.55'%3E%3Ccircle cx='20' cy='30' r='6'/%3E%3Cpath d='M9 60c0-7 5-11 11-11s11 4 11 11z'/%3E%3Ccircle cx='47' cy='27' r='6'/%3E%3Cpath d='M36 60c0-8 5-13 11-13s11 5 11 13z'/%3E%3Ccircle cx='74' cy='27' r='6'/%3E%3Cpath d='M63 60c0-8 5-13 11-13s11 5 11 13z'/%3E%3Ccircle cx='101' cy='30' r='6'/%3E%3Cpath d='M90 60c0-7 5-11 11-11s11 4 11 11z'/%3E%3C/g%3E%3C/svg%3E"); }
.fot--duze { grid-row: span 2; }
.fot--szerokie { grid-column: span 2; }
.fot--a { background-color: #3B2F52; background-image: radial-gradient(circle at 30% 20%, rgba(255,214,120,.55) 0 6%, transparent 7%), radial-gradient(circle at 70% 15%, rgba(255,214,120,.4) 0 5%, transparent 6%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cg fill='%23ffffff' fill-opacity='.55'%3E%3Ccircle cx='38' cy='27' r='7'/%3E%3Cpath d='M24 60c0-9 6-15 14-15s14 6 14 15z'/%3E%3Ccircle cx='80' cy='25' r='7'/%3E%3Cpath d='M66 60c0-9 6-16 14-16s14 7 14 16z'/%3E%3C/g%3E%3C/svg%3E"); background-size: 100% 100%, 100% 100%, 92% auto; }
.fot--b { background-color: #7A4B5E; }
.fot--c { background-color: #2F4A6B; }
.fot--d { background-color: #4D7A5A; }
.fot--e { background-color: #B07A3F; }
.fot--f { background-color: #3E6E8E; }

/* plebiscyt */
.nagrody { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 1.4cqw; flex: 1; min-height: 0; }
.nagroda { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .5cqw;
           background: #fff; border-radius: .5cqw; padding: 1cqw; border-top: .45cqw solid var(--akcent); min-width: 0; min-height: 0; }
.nagroda .twarz { height: 62%; width: auto; flex: none; background-color: var(--karta); border-radius: 50%; aspect-ratio: 1;
                  background-size: 70% auto; margin-bottom: .3cqw; }
.nagroda div:last-child { min-width: 0; max-width: 100%; }
.nagroda small { display: block; font-size: .9cqw; text-transform: uppercase; letter-spacing: .08em; color: var(--akcent); font-weight: 700; line-height: 1.25; }
.nagroda b { display: block; font-size: 1.2cqw; line-height: 1.2; margin-top: .2cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* wpisy */
.str--linie { background-color: #fff; background-origin: content-box; background-clip: content-box;
  background-image: repeating-linear-gradient(to bottom, transparent 0 2.9cqw, rgba(27,42,74,.14) 2.9cqw calc(2.9cqw + 1px));
  background-position: 0 6cqw; background-size: 100% calc(100% - 6cqw); background-repeat: no-repeat; }
.str--linie { box-shadow: inset 0 0 0 3cqw #fff; }
.wpis { position: absolute; margin: 0; font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; font-size: 1.75cqw;
        line-height: 1.35; color: #1F4FA8; transform: rotate(var(--r)); white-space: nowrap; }

@media (max-width: 900px) {
  .spis { grid-template-columns: 1fr; gap: 1.2rem; }
  .spis__tytul, .spis__uwaga { display: none; }
  .spis__lista { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
  .spis__nr { width: auto; font-size: .72rem; }
  .spis__lista li { border: 0; }
  .spis__lista button { height: 100%; padding: .55rem .75rem; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); gap: .5rem; min-height: 2.75rem; align-items: center; }
  .spis__lista button:hover, .spis__lista button[aria-selected="true"] { padding-left: .8rem; }
  .spis__lista button[aria-selected="true"] { background: var(--navy); color: #fff; box-shadow: none; }
  .spis__lista button[aria-selected="true"] .spis__nr { color: var(--blue-light); }
  .spis__kropki, .spis__s { display: none; }
  .spis__nazwa { font-size: .88rem; line-height: 1.2; }
}
