/* ==========================================================================
   Liceum PATOS – style strony publicznej
   Kolory sprawdzone pod kątem kontrastu WCAG 2.2 AA.
   ========================================================================== */

/* ---------- fonty (serwowane lokalnie, licencja SIL OFL 1.1 – assets/fonts/OFL-*.txt) ---------- */
/* Atkinson Hyperlegible Next – latin-ext */
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-next-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; }
/* Atkinson Hyperlegible Next – latin */
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-next-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; }
/* Poppins – latin-ext */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/poppins-latin-ext-500.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; }
/* Poppins – latin */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/poppins-latin-500.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; }
/* Poppins – latin-ext */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/poppins-latin-ext-600.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; }
/* Poppins – latin */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/poppins-latin-600.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; }
/* Poppins – latin-ext */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/poppins-latin-ext-700.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; }
/* Poppins – latin */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/poppins-latin-700.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 {
  --navy: #15487C;
  --navy-deep: rgba(14, 50, 88, .92);
  --ink: #14264A;
  --link: #1A4F8F;
  --red: #A3201D;
  --red-dark: #861915;
  --yellow: #FFD24A;
  --cream: #FBF8F2;
  --sand: #F4EFE5;
  --sand-2: #F1ECE1;
  --line: #E4DDCE;
  --line-2: #D9D2C3;
  --muted: #3E4759;
  --muted-2: #4A5468;
  --sky: #E7EEF7;
  --mint: #E4F1E8;
  --rose: #FBECE9;
  --butter: #FFF4D1;
  --green: #1D6B3E;
  --on-navy: #DCE3EF;
  --on-navy-2: #E3E8F1;
  --peach: #FFB4AB;

  --font-display: Poppins, system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible Next', 'Atkinson Hyperlegible', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 24px);
  --section-y: clamp(56px, 8vw, 112px);
  --section-y-md: clamp(56px, 8vw, 104px);
}

/* ---------- podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); line-height: 1.6; }
/* stopka zawsze na dole, także na krótkich stronach */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
main { flex: 1 0 auto; }
img { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 6px var(--yellow); border-radius: 4px; }
::selection { background: var(--yellow); color: var(--navy); }
main:focus { outline: none; }
address { font-style: normal; }
strong { font-weight: 700; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[role="list"] { list-style: none; margin: 0; padding: 0; }
.icon { flex: none; vertical-align: -.2em; }
.container { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 6px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.icon-text { display: inline-flex; align-items: center; gap: 8px; }
.icon-text--red .icon { color: var(--red); }

/* ---------- górny pasek ---------- */
.topbar { background: var(--navy); color: #fff; font-size: .9375rem; }
.topbar__inner { padding-block: 6px; display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: center; justify-content: space-between; }
.topbar p { margin: 0; }
.topbar__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.topbar a { color: #fff; min-height: 32px; }
.topbar a:hover { color: var(--yellow); }

/* ---------- nagłówek i menu ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner { padding-block: 10px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { display: block; width: 130px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; border-left: 1px solid var(--line-2); padding-left: 14px; }
.brand__name { font-weight: 700; }
.brand__sub { font-size: .9375rem; color: var(--muted-2); }

.nav-toggle {
  display: none; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px;
  border-radius: 12px; border: 2px solid var(--navy); background: #fff; color: var(--navy);
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.nav-toggle__open { display: inline-flex; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }

.main-nav__list { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.main-nav__link {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px;
  color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 6px;
}
.main-nav__link:hover { background: var(--sand-2); color: var(--ink); }
.main-nav__link[aria-current="page"] { color: var(--navy); font-weight: 700; background: var(--sand-2); box-shadow: inset 0 -3px 0 var(--red); }
.main-nav__contact { display: none; }

@media (max-width: 74.99em) {
  .topbar { display: none; }
  .brand__text { display: none; }
  .main-nav {
    flex-basis: calc(100% + 2 * var(--gutter)); margin: 0 calc(var(--gutter) * -1) -10px;
    border-top: 1px solid var(--line); background: #fff; box-shadow: 0 16px 32px rgba(21, 72, 124, .12);
  }
  .main-nav__list { flex-direction: column; align-items: stretch; padding: 12px 16px 16px; }
  .main-nav__link { display: flex; min-height: 52px; padding: 0 16px; border-radius: 10px; color: var(--navy); font-size: 1.125rem; }
  .main-nav__link:hover { color: var(--navy); }
  .main-nav__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); }
  .main-nav__contact { display: flex; flex-direction: column; gap: 2px; margin: 0 16px; padding: 16px 0 20px; border-top: 1px solid var(--line); }
  .main-nav__contact a, .main-nav__contact p { display: flex; gap: 12px; min-height: 48px; padding: 0 16px; margin: 0; color: var(--ink); font-size: 1.0625rem; }
  .main-nav__contact a { font-weight: 700; }
  .main-nav__contact .icon { color: var(--red); }

  /* z JavaScriptem menu jest zwijane; bez JS pozostaje zawsze widoczne */
  .js .nav-toggle { display: inline-flex; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: block; max-height: calc(100vh - 82px); max-height: calc(100dvh - 82px); overflow-y: auto; }
}

/* tablet: menu zwinięte, ale nazwa szkoły przy logo się mieści */
@media (min-width: 48em) and (max-width: 74.99em) { .brand__text { display: flex; } }

/* ---------- pasek naboru (pod nagłówkiem) ---------- */
.recruit-bar { background: var(--red); color: #fff; font-size: .9375rem; }
.recruit-bar__inner { display: flex; flex-wrap: wrap; gap: 0 20px; align-items: center; justify-content: center; min-height: 36px; padding-block: 4px; }
.recruit-bar p { margin: 0; }
.recruit-bar a { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; color: #fff; font-weight: 700; }
.recruit-bar a:hover { color: var(--yellow); }
.recruit-bar :focus-visible { outline-color: #fff; }

/* ---------- komunikat ---------- */
.notice { background: var(--yellow); color: var(--ink); border-bottom: 1px solid #E6B92E; }
.notice__inner { display: flex; gap: 14px; align-items: flex-start; padding-block: 14px; }
.notice__inner > .icon { margin-top: 2px; color: var(--navy); }
.notice__title { margin: 0; font-weight: 700; font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.notice__text { margin: 2px 0 0; font-size: 1.0625rem; }
.notice__text a { color: var(--ink); font-weight: 700; }
.notice__text a:hover { color: var(--red-dark); }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 8px 28px; border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1.0625rem; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
}
.btn--md { min-height: 48px; padding-inline: 22px; font-size: 1rem; }
.btn--sm { min-height: 44px; padding-inline: 18px; font-size: .9375rem; gap: 8px; }
.btn--lg { min-height: 56px; font-size: 1.125rem; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--red); color: #fff; }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--yellow:hover { background: #fff; color: var(--navy); }
.btn--light-outline { background: transparent; color: #fff; border-color: #fff; }
.btn--light-outline:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn--navy-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--navy-outline:hover { background: rgba(21, 72, 124, .08); color: var(--navy); }
.btn-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-mt { margin-top: 28px; }
.link-strong { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }

/* ---------- typografia ---------- */
.eyebrow { margin: 0 0 12px; font-weight: 700; font-size: .9375rem; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.eyebrow--yellow { color: var(--yellow); }
.eyebrow--white { color: #fff; }
.h-display { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 5.4vw, 4.25rem); line-height: 1.06; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.h-display--md { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
.h-section { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
.h-section--xl { font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1.08; }
.h-section--sm { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; }
.h-section--mb { margin-bottom: 32px; }
.h-sub { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--ink); }
.h-label { margin: 0 0 8px; font-size: .9375rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.h-cta { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.1; letter-spacing: -.02em; }
.text-lead { margin: 16px 0 0; font-size: 1.125rem; color: var(--muted); text-wrap: pretty; }
.h-section + .text-lead, .h-display + .text-lead { margin-top: 24px; }
.text-lead--lg { font-size: 1.1875rem; }
.text-big { margin: 28px 0 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.4; color: var(--ink); }
.text-big--sm { margin-top: 16px; font-size: 1.25rem; line-height: 1.5; }
.text-measure { max-width: 56ch; }
.text-muted { margin: 0; color: var(--muted); font-size: 1.0625rem; }
.text-muted-lg { margin: 0; color: var(--muted); font-size: 1.125rem; }
.text-lg { margin: 0; font-size: 1.125rem; }
.text-note { margin: 20px 0 0; font-size: 1.0625rem; color: var(--muted); }
.text-note strong { color: var(--navy); }
.text-on-navy { margin: 20px 0 0; font-size: 1.1875rem; color: var(--on-navy); }
.text-on-navy strong { color: #fff; }
.text-white-lg { margin: 16px 0 0; font-size: 1.125rem; }
.accent { color: var(--red); font-weight: 700; }
.yellow { color: var(--yellow); }

/* ---------- sekcje i układ ---------- */
.section { padding-block: var(--section-y); }
.section--md { padding-block: var(--section-y-md); }
.section--tight { padding-block: clamp(56px, 8vw, 96px); }
.section--white { background: #fff; border-block: 1px solid var(--line); }
.section--sky { background: var(--sky); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: #fff; }
.section-bottom { padding-bottom: var(--section-y-md); }
.section-head { margin-bottom: 40px; }
.section-head--narrow { max-width: 720px; }
.section-head--row { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 6vw, 88px); }
.split--start { align-items: start; }
.split--center { align-items: center; }

.page-intro { padding-block: clamp(24px, 4vw, 40px) var(--section-y-md); }
.page-intro--short { padding-bottom: clamp(40px, 6vw, 72px); }

.breadcrumbs { margin-bottom: clamp(32px, 5vw, 56px); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9375rem; color: var(--muted-2); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 32px; }

/* ---------- zdjęcia ---------- */
.photo { display: block; width: 100%; height: auto; object-fit: cover; background: #DCD4C4; }
.photo--wide { margin-top: 40px; aspect-ratio: 16 / 10; border-radius: 20px; }
.photo--4x3 { aspect-ratio: 4 / 3; border-radius: 28px; position: relative; }
.photo--4x5 { aspect-ratio: 4 / 5; border-radius: 24px; }
.photo--right { object-position: 80% center; }
.photo-offset { position: relative; }
.photo-offset::before { content: ""; position: absolute; inset: 24px -20px -20px 24px; border-radius: 28px; background: var(--sky); }
@media (max-width: 40em) { .photo-offset::before { inset: 16px -8px -8px 16px; } }

/* ---------- hero (strona główna) ---------- */
.hero { position: relative; background: var(--navy); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; z-index: -2; filter: brightness(.9) saturate(1.05); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(14, 50, 88, .93) 0%, rgba(14, 50, 88, .9) 48%, rgba(21, 72, 124, .5) 64%, rgba(21, 72, 124, .12) 84%, rgba(21, 72, 124, 0) 100%);
}
.hero__inner { padding-block: clamp(56px, 9vw, 128px) clamp(56px, 8vw, 112px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__badge {
  margin: 0 0 28px; display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  padding: 6px 8px 6px 6px; border-radius: 999px; background: rgba(21, 72, 124, .6);
  border: 1px solid rgba(255, 255, 255, .4); color: #fff; text-decoration: none; font-weight: 500; font-size: .9375rem;
}
/* po najechaniu: delikatne rozjaśnienie tła, tekst zostaje biały (nadpisuje ogólne a:hover) */
.hero__badge:hover { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .7); }
@media (prefers-reduced-motion: no-preference) {
  .hero__badge, .btn--light-outline, .btn--navy-outline, .contact-link--outline-light, .contact-link--outline-navy, .contact-row { transition: background-color .15s, border-color .15s; }
}
.hero__badge-tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-weight: 700; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; }
.hero__badge-arrow { display: flex; padding-right: 8px; }
.hero__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.05; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.hero__lead { margin: 24px 0 0; font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; color: #fff; text-wrap: pretty; }
.hero__text { margin: 16px 0 0; font-size: 1.125rem; color: var(--on-navy-2); max-width: 56ch; text-wrap: pretty; }
.hero__text strong { color: var(--peach); }
@media (max-width: 59.99em) {
  .hero::before { background: rgba(14, 50, 88, .86); }
  .hero__badge { display: none; }
}

.keyfacts-wrap { padding-block: clamp(40px, 5vw, 64px); }
.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px 64px; }

/* ---------- elementy z ikoną ---------- */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature__title { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.feature__text { margin: 6px 0 0; color: var(--muted); }
.feature--dark .feature__title { color: #fff; }
.feature--dark .feature__text { color: var(--on-navy); }

.icon-tile { flex: none; width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.icon-tile--sm { width: 48px; height: 48px; border-radius: 14px; }
.icon-tile--rose { background: var(--rose); color: var(--red); }
.icon-tile--white { background: #fff; color: var(--red); }
.icon-tile--glass { background: rgba(255, 255, 255, .12); color: var(--yellow); }

/* ---------- o szkole (strona główna) ---------- */
.numbered { display: flex; flex-direction: column; }
.numbered li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.numbered__n { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: var(--red); }
.numbered__t { font-size: 1.1875rem; font-weight: 500; color: var(--ink); }
.callout { margin: 40px 0 0; padding: 28px; background: var(--sand); border-radius: 16px; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.5; font-weight: 500; color: var(--ink); text-wrap: pretty; }

/* ---------- profile klas ---------- */
.theme-blue   { --card-bg: var(--sky);   --card-accent: #1A4F8F; --card-num: var(--ink); }
.theme-green  { --card-bg: var(--mint);  --card-accent: var(--green); }
.theme-red    { --card-bg: var(--rose);  --card-accent: var(--red); }
.theme-yellow { --card-bg: var(--butter); --card-accent: #6B4E00; }

.profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.profiles--full { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.profile-card { display: flex; flex-direction: column; gap: 28px; padding: 32px; border-radius: 24px; background: var(--card-bg); }
.profile-card--full { padding: clamp(28px, 3vw, 40px); border-radius: 28px; }
.profile-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.profile-card__icon { width: 64px; height: 64px; border-radius: 18px; background: #fff; color: var(--card-accent); display: flex; align-items: center; justify-content: center; }
.profile-card--full .profile-card__icon { width: 72px; height: 72px; border-radius: 20px; }
.profile-card__num { font-family: var(--font-display); font-weight: 700; font-size: .9375rem; color: var(--card-num, var(--card-accent)); }
.profile-card--full .profile-card__num { color: var(--card-accent); }
.profile-card__prefix { margin: 0; font-weight: 500; font-size: 1.0625rem; color: var(--muted); }
.profile-card__name { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.875rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -.02em; color: var(--ink); overflow-wrap: anywhere; }
.profile-card--full .profile-card__name { font-size: clamp(2rem, 3.2vw, 2.5rem); line-height: 1.15; }
.profile-card__footer { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(21, 72, 124, .15); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.profile-card__meta { font-size: .9375rem; color: var(--muted); }
.profile-card__subjects { margin-top: auto; }
.profile-card__subjects-title { margin: 0 0 10px; font-size: .9375rem; font-weight: 700; color: var(--muted); }
.profile-card__ask { align-self: flex-start; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border-radius: 999px; padding: 8px 16px; font-weight: 700; background: var(--chip-bg, transparent); color: var(--chip-fg, var(--navy)); }
.chips--lg { gap: 10px; }
.chips--lg li { padding: 10px 20px; }
.chips--white { --chip-bg: #fff; }
.chips--sand { --chip-bg: var(--sand); }
.chips--values { margin-top: 24px; }
.chip--rose { --chip-bg: var(--rose); --chip-fg: #7A1714; }
.chip--sky { --chip-bg: var(--sky); --chip-fg: #123D70; }
.chip--mint { --chip-bg: var(--mint); --chip-fg: #17552F; }

.languages { margin-top: 20px; border-radius: 20px; padding: 28px 32px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; justify-content: space-between; }
.languages--sky { background: var(--sky); }
.languages--white { background: #fff; border: 1px solid var(--line); }
.languages__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; color: var(--ink); }

.profile-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.profile-mini li { display: flex; align-items: center; gap: 16px; padding: 24px; border-radius: 20px; background: var(--card-bg); }
.profile-mini__n { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; color: var(--card-num, var(--card-accent)); }
.profile-mini__name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); }

/* ---------- lokalizacja i mapa ---------- */
.nearby { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px 24px; }
.nearby li { display: flex; gap: 14px; align-items: center; }
.nearby__label { font-weight: 700; font-size: 1.0625rem; color: var(--navy); }
.map-block { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.map { width: 100%; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: #DCE3EF; }
.map--rounded-lg { border-radius: 24px; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map__placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: var(--navy); }
.map__address { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); }
.map__note { margin: 0; max-width: 36ch; font-size: .9375rem; color: var(--muted); }
.map__button[hidden] { display: none; }

/* ---------- rekrutacja (sekcje granatowe) ---------- */
.contact-links { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; max-width: 440px; }
.cta .contact-links, .panel-white .contact-links { margin-top: 0; max-width: none; }
.contact-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 24px; border: 2px solid transparent; border-radius: 14px; text-decoration: none; }
.contact-link__body { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.contact-link__label { font-size: .875rem; }
.contact-link__value { font-size: 1.375rem; font-weight: 700; overflow-wrap: anywhere; line-height: 1.3; }
.contact-link__value--sm { font-size: 1.25rem; }
.contact-link__arrow { display: flex; }
.contact-link--white { background: #fff; color: var(--navy); }
.contact-link--white .contact-link__label { color: var(--muted); }
.contact-link--white:hover { background: var(--yellow); color: var(--navy); }
.contact-link--outline-light { color: #fff; border-color: #fff; }
.contact-link--outline-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.contact-link--navy { background: var(--navy); color: #fff; }
.contact-link--navy .contact-link__label { color: var(--on-navy); }
.contact-link--navy:hover { background: var(--red); color: #fff; }
.contact-link--outline-navy { color: var(--navy); border-color: var(--navy); }
.contact-link--outline-navy:hover { background: rgba(21, 72, 124, .08); color: var(--navy); }

.free-note { margin-top: 40px; padding-top: 28px; border-top: 1px solid #4A70A0; display: flex; gap: 20px; align-items: center; }
.free-note__big { flex: none; font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; line-height: 1; padding-top: .14em; color: var(--yellow); }
.free-note p { margin: 0; font-size: 1.125rem; color: var(--on-navy); }
.free-note strong { color: #fff; }

.panel-white { background: #fff; color: var(--navy); border-radius: 24px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.panel-white > .contact-links { align-self: stretch; }
.panel-white .h-sub { font-size: 1.625rem; margin: 0; }
.panel-white .btn { margin-top: 8px; }
.panel-white--bordered { border: 1px solid var(--line); gap: 20px; }
.panel-white__foot { margin: 4px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); align-self: stretch; }

.contact-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; }
.contact-list { display: flex; flex-direction: column; gap: 4px; }
.contact-list a { min-height: 44px; gap: 10px; }

/* ---------- podstrona O szkole ---------- */
.manifest { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(40px, 5vw, 64px) clamp(32px, 6vw, 88px); }
.manifest__item { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; border-top: 3px solid var(--navy); }
.manifest__item .text-lead { margin: 0; }
.manifest__n { font-family: var(--font-display); font-weight: 700; font-size: .9375rem; color: var(--red); }
.manifest__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }

.inspire { position: relative; background: var(--navy); color: #fff; isolation: isolate; overflow: hidden; }
.inspire__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.inspire::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(21, 72, 124, .88); }
.inspire__inner { max-width: 960px; margin: 0 auto; padding: clamp(72px, 10vw, 136px) var(--gutter); text-align: center; }
.inspire__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.inspire__text { margin: 28px auto 0; font-size: 1.25rem; color: var(--on-navy-2); max-width: 52ch; text-wrap: pretty; }

.pillars { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 88px); align-items: flex-start; }
.pillars__head { flex: 1 1 280px; }
@media (min-width: 60em) { .pillars__head { position: sticky; top: 120px; } }
.pillars__list { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pillar { display: grid; grid-template-columns: auto 1fr; gap: 20px 24px; align-items: start; padding: 28px; background: #fff; border-radius: 20px; }
.pillar__n { width: 56px; height: 56px; border-radius: 16px; background: var(--rose); color: var(--red); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.pillar__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; line-height: 1.3; color: var(--ink); }
.pillar__text { margin: 8px 0 0; font-size: 1.0625rem; color: var(--muted); text-wrap: pretty; }
@media (max-width: 30em) { .pillar { grid-template-columns: 1fr; } }

/* ---------- bloki CTA ---------- */
.cta-wrap { padding-bottom: var(--section-y-md); }
.cta { border-radius: 28px; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 32px 64px; align-items: center; }
.cta--navy { background: var(--navy); color: #fff; }
.cta--navy .text-on-navy { font-size: 1.125rem; margin-top: 12px; }
.cta--navy .h-cta + .text-on-navy { margin-top: 20px; }
.cta--red { background: var(--red); color: #fff; }
.cta--wide { display: flex; flex-wrap: wrap; justify-content: space-between; padding: clamp(32px, 5vw, 56px); }
.cta--wide .cta__text { flex: 1 1 420px; }
.cta--wide .cta__actions { flex: 0 1 360px; }
.cta .contact-link__value { font-size: 1.25rem; }
.cta .contact-link__value--sm { font-size: 1.125rem; }
.cta__lead { margin: 0 0 12px; font-weight: 700; }

.kindergarten-wrap { padding-bottom: clamp(56px, 8vw, 96px); }
.kindergarten { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding: 28px 32px; border-radius: 20px; background: var(--sand); }
.kindergarten p { margin: 0; font-size: 1.0625rem; max-width: 70ch; text-wrap: pretty; }

/* ---------- podstrona Oferta ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.card-white { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 20px; background: #fff; }
.card-white__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.3; color: var(--ink); }
.card-white__text { margin: 0; color: var(--muted); text-wrap: pretty; }
.org { display: flex; flex-wrap: wrap; gap: 40px 88px; align-items: flex-start; }
.org__head { flex: 1 1 300px; }
.org__list { flex: 2 1 520px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; }

/* ---------- podstrona Rekrutacja ---------- */
.facts { margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; }
.facts dt, .info-list dt { font-size: .9375rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.facts dd { margin: 8px 0 0; font-size: 1.0625rem; color: var(--navy); }

/* ---------- podstrona Kontakt ---------- */
.contact-page { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.contact-page__links { display: flex; flex-direction: column; gap: 12px; }
.contact-page__links .h-sub { margin: 0 0 4px; }
.contact-page__links .text-muted { margin-bottom: 12px; font-size: 1rem; }
.contact-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: center; min-height: 88px; padding: 16px 24px 16px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--navy); text-decoration: none; }
.contact-row:hover { background: #EDF1F6; border-color: rgba(21, 72, 124, .35); color: var(--navy); }
.contact-row__body { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.contact-row__label { font-size: .9375rem; color: var(--muted); }
.contact-row__value { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.625rem); overflow-wrap: anywhere; }
.contact-row__arrow { display: flex; }
.info-list { margin: 0; display: flex; flex-direction: column; justify-content: center; }
.info-list__row { position: relative; padding: 28px 0 28px 68px; border-top: 1px solid var(--line); }
.info-list__icon { position: absolute; left: 0; top: 28px; }
.info-list dd { margin: 6px 0 0; font-size: 1.1875rem; line-height: 1.5; color: var(--ink); }
@media (max-width: 59.99em) {
  .contact-row { grid-template-columns: 1fr auto; }
  .contact-row__icon, .info-list__icon { display: none; }
  .info-list__row { padding-left: 0; }
}
.directions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: var(--sky); }
.directions .h-section { color: var(--ink); }
.strip { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding: 28px 32px; border-radius: 20px; background: var(--navy); color: #fff; }
.strip__text { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }

/* ---------- strony tekstowe ---------- */
.text-page { font-size: 1.0625rem; }
.text-page > * { max-width: 72ch; }
.text-page h2 { margin: 40px 0 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.3; color: var(--ink); }
.text-page h3 { margin: 24px 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.text-page p, .text-page li { color: var(--muted); }
.text-page :is(ul, ol):not([role="list"]) > li + li { margin-top: 6px; }

/* ---------- podstrony Zmiana szkoły / Edukacja domowa ---------- */
.page-intro .btn-row { margin-top: 32px; }
.checklist { margin: 32px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 20px 24px; border-radius: 16px; background: var(--sand); font-size: 1.125rem; font-weight: 500; color: var(--ink); }
.checklist__icon { width: 32px; height: 32px; border-radius: 50%; background: var(--rose); color: var(--red); display: flex; align-items: center; justify-content: center; }
.checklist--for .checklist__icon { background: var(--mint); color: var(--green); }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.duo .panel-white p { margin: 0; color: var(--muted); font-size: 1.0625rem; }
.duo .panel-white .h-sub { color: var(--ink); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.step { padding: 28px; border-radius: 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); }
.step__n { display: block; font-family: var(--font-display); font-weight: 700; font-size: .9375rem; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.step__title { margin: 8px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.3; color: #fff; }
.step__text { margin: 8px 0 0; color: var(--on-navy); text-wrap: pretty; }
.section--navy .text-on-navy a { color: #fff; }
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq details { border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 64px; padding: 16px 24px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq__toggle { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sky); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.faq__toggle .icon + .icon, .faq details[open] .faq__toggle .icon:first-child { display: none; }
.faq details[open] .faq__toggle .icon + .icon { display: block; }
.faq summary:hover { color: var(--red); }
.faq details p { margin: 0; padding: 0 24px 20px; color: var(--muted); font-size: 1.0625rem; text-wrap: pretty; }
.section--white .pillar { background: var(--sand); }
.closing { max-width: 760px; }
.closing .text-big { margin-top: 24px; }
.cta .chips { margin-top: 16px; }

/* ---------- strona 404 ---------- */
.not-found__head { display: flex; flex-wrap: wrap; gap: 16px clamp(32px, 6vw, 72px); align-items: center; }
.not-found__code { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 14vw, 10rem); line-height: 1; letter-spacing: -.04em; color: var(--sky); -webkit-text-stroke: 3px var(--navy); }
.not-found__head > div { flex: 1 1 420px; }
.not-found__links { margin-top: clamp(40px, 5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.nf-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; min-height: 96px; padding: 20px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--navy); text-decoration: none; }
.nf-link:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.nf-link__body { align-self: flex-start; display: flex; flex-direction: column; gap: 4px; line-height: 1.3; }
.nf-link__label { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.nf-link__desc { font-size: .9375rem; color: var(--muted); }
.nf-link__arrow { display: flex; }
.not-found__links--tight { margin-top: 16px; }
.not-found__help { margin: 32px 0 0; font-size: 1.0625rem; color: var(--muted); }

/* ---------- stopka ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.site-footer__inner { padding-block: 32px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; font-size: .9375rem; color: var(--muted); }
.site-footer__meta { display: flex; flex-direction: column; gap: 4px; }
.site-footer__meta p { margin: 0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__links a[aria-current="page"] { font-weight: 700; }
.site-footer__logo { display: block; flex: none; }
.site-footer__logo img { display: block; width: 195px; height: auto; }
@media (max-width: 59.99em) {
  .site-footer__inner { justify-content: center; text-align: center; }
  .site-footer__meta { align-items: center; }
  .site-footer__links { justify-content: center; }
}

/* ---------- tryb wysokiego kontrastu (Windows) ---------- */
@media (forced-colors: active) {
  .btn, .contact-link, .contact-row, .nav-toggle { border: 2px solid ButtonText; }
  .hero::before, .inspire::before { background: Canvas; }
  :focus-visible { outline: 3px solid Highlight; }
}

/* ---------- druk ---------- */
@media print {
  .topbar, .site-header, .recruit-bar, .nav-toggle, .map, .btn, .skip-link { display: none !important; }
  body { background: #fff; }
  .section--navy, .cta, .hero, .inspire, .strip { background: #fff !important; color: #000 !important; }
  .hero__title, .hero__lead, .hero__text, .inspire__title, .inspire__text { color: #000 !important; }
  .hero__bg, .inspire__bg { display: none; }
}
