:root {
    --school-ink: #171348;
    --school-muted: #616079;
    --school-line: #e4e1f1;
    --school-paper: #ffffff;
    --school-soft: #f6f3fc;
    --school-blue: #ecfaff;
    --school-purple: #6e0be1;
    --school-warn: #fff9e8;
    --school-warn-ink: #755019;
}
.school-heading { max-width: 900px; color: var(--school-ink); }
.school-heading .eyebrow { display: inline-block; font-size: .8em; font-weight: 600; color: var(--school-purple); margin-bottom: 16px; }
.school-heading h1 { font-size: clamp(2em,4vw,3.3em); line-height: 1.13; letter-spacing: -.04em; margin: 0 0 20px; }
.school-heading h2 { font-size: clamp(1.6em,2.7vw,2.35em); line-height: 1.2; letter-spacing: -.025em; margin: 0 0 12px; }
.school-heading h3 { font-size: 1.3em; margin: 0 0 12px; }
.school-heading .intro { max-width: 760px; line-height: 1.7; color: var(--school-muted); }
.school-heading p:last-child, .school-text p:last-child { margin-bottom: 0; }
.school-text { color: var(--school-muted); line-height: 1.75; }
.school-text.notice { padding: 20px 24px; border-left: 4px solid var(--school-purple); background: var(--school-warn); border-radius: 0 16px 16px 0; color: var(--school-warn-ink); }
.school-text.panel { padding: 28px; border: 1px solid var(--school-line); border-radius: 20px; background: var(--school-paper); }
.school-cards { display: flex; flex-wrap: wrap; gap: 24px; color: var(--school-ink); }
.school-cards .item { flex: 1 1 calc(33.33% - 24px); min-width: 0; padding: 28px; background: var(--school-soft); border-radius: 20px; }
.school-cards .marker { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--school-purple); background: var(--school-paper); border-radius: 50%; margin-bottom: 20px; font-weight: 700; }
.school-cards h3 { font-size: 1.08em; line-height: 1.5; margin: 0 0 12px; }
.school-cards p { font-size: .92em; line-height: 1.75; color: var(--school-muted); }
.school-cards .item p:last-child { margin-bottom: 0; }
.school-cards.steps .item { background: none; padding: 20px 24px 20px 0; border-top: 1px solid var(--school-line); border-radius: 0; }
.school-cards.steps .marker { background: var(--school-purple); color: var(--school-paper); }
.school-cards.trust { gap: 12px; }
.school-cards.trust .item { flex-basis: calc(25% - 12px); padding: 20px; display: flex; align-items: flex-start; gap: 12px; }
.school-cards.trust .marker { flex-shrink: 0; width: 24px; height: 24px; margin: 0; }
.school-cards.trust h3 { font-size: .85em; margin: 0; }
.school-cards.checklist { display: block; background: var(--school-soft); padding: 24px 30px; border-radius: 20px; }
.school-cards.checklist .item { display: flex; align-items: flex-start; gap: 18px; padding: 12px 0; }
.school-cards.checklist .marker { flex-shrink: 0; margin: 0; width: 28px; height: 28px; }
.school-cards.checklist h3 { font-size: 1em; font-weight: 500; margin: 0; }
.school-search { background: linear-gradient(110deg,var(--school-soft),var(--school-blue)); padding: 32px; border-radius: 24px; color: var(--school-ink); }
.school-search form { position: relative; }
.school-search label { font-weight: 600; display: block; margin-bottom: 12px; }
.school-search .search-line { display: flex; gap: 12px; }
.school-search input, .school-report input:not([type=checkbox]) { width: 100%; min-width: 0; border: 1px solid var(--school-line); border-radius: 12px; padding: 15px 18px; color: var(--school-ink); background: var(--school-paper); font: inherit; }
.school-search input:focus, .school-report input:focus { outline: 2px solid var(--school-purple); outline-offset: 2px; }
.school-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; border: 0; border-radius: 12px; padding: 16px 24px; background: var(--school-purple); color: var(--school-paper); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: normal; }
a.school-button, a.school-button:hover { color: var(--school-paper); text-decoration: none; }
.school-button:hover { filter: brightness(.92); }
.school-button:focus-visible, .school-banner:focus-visible, .school-faq summary:focus-visible { outline: 3px solid var(--school-purple); outline-offset: 4px; }
.school-button:disabled { opacity: .6; cursor: wait; }
.school-search .search-help { font-size: .8em; margin: 12px 0 0; color: var(--school-muted); }
.school-search .suggestions { list-style: none; padding: 6px; margin: 8px 0 0; background: var(--school-paper); border: 1px solid var(--school-line); border-radius: 12px; box-shadow: 0 12px 28px var(--school-line); }
.school-search .suggestions[hidden] { display: none; }
.school-search .suggestions li { cursor: pointer; padding: 14px 16px; border-radius: 8px; }
.school-search .suggestions li:hover, .school-search .suggestions li[aria-selected=true] { background: var(--school-soft); color: var(--school-purple); }
.school-search .result:not(:empty) { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--school-line); }
.school-search .choice-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.school-search .choice-buttons button:last-child { color: var(--school-purple); background: var(--school-paper); border: 1px solid var(--school-purple); }
.school-faq details { border-bottom: 1px solid var(--school-line); color: var(--school-ink); }
.school-faq summary { padding: 23px 35px 23px 0; font-weight: 600; cursor: pointer; position: relative; list-style: none; }
.school-faq summary::-webkit-details-marker { display: none; }
.school-faq summary::after { content: '+'; position: absolute; right: 8px; color: var(--school-purple); font-size: 1.4em; top: 18px; }
.school-faq details[open] summary::after { content: '−'; }
.school-faq .answer { padding: 0 35px 24px 0; color: var(--school-muted); line-height: 1.75; }
.school-report { background: var(--school-soft); padding: 30px; border-radius: 20px; }
.school-report .fields { display: flex; flex-wrap: wrap; gap: 20px; margin: 24px 0; }
.school-report .fields label { flex: 1 1 calc(50% - 20px); min-width: 0; font-size: .9em; }
.school-report .fields input { margin-top: 8px; }
.school-report .consent { display: flex; align-items: flex-start; gap: 12px; font-size: .8em; line-height: 1.6; margin: 20px 0; }
.school-report .consent input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; }
.school-report .school-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.school-banner { display: flex; align-items: center; gap: 24px; padding: 28px; border: 1px solid var(--school-line); border-radius: 24px; background: linear-gradient(110deg,var(--school-soft),var(--school-blue)); color: var(--school-ink); text-decoration: none; }
.school-banner:hover { color: var(--school-ink); text-decoration: none; border-color: var(--school-purple); }
.school-banner .text { flex: 1; }
.school-banner .text strong, .school-banner .text > span { display: block; }
.school-banner .text > span { font-size: .9em; line-height: 1.6; color: var(--school-muted); margin-top: 8px; }
.school-banner .banner-icon { font-size: 2em; color: var(--school-purple); }
.school-banner .banner-link { color: var(--school-purple); font-weight: 600; white-space: nowrap; font-size: .9em; }

.school-landing-row .fl-module-content { margin: 10px 20px; }
.school-landing-row .fl-row-content-wrap { padding: 26px 20px; }
.school-landing-hero .fl-row-content-wrap { padding-top: 50px; padding-bottom: 0; }
@media (max-width: 991px) {
    .school-cards.trust .item { flex-basis: calc(50% - 12px); }
    .school-banner { flex-wrap: wrap; }
    .school-banner .banner-link { flex-basis: 100%; margin-left: 48px; }
}
@media (max-width: 767px) {
    .school-cards .item { flex-basis: 100%; }
    .school-cards { gap: 16px; }
    .school-cards.steps .item { padding-right: 0; }
    .school-search, .school-report { padding: 24px; }
    .school-landing-row .fl-row-content-wrap { padding: 20px 0; }
    .school-landing-hero .fl-row-content-wrap { padding-top: 20px; }
}
@media (max-width: 575px) {
    .school-search .search-line { flex-direction: column; }
    .school-search .school-button { width: 100%; }
    .school-report .fields label { flex-basis: 100%; }
    .school-cards.trust .item { padding: 12px; }
    .school-banner { padding: 22px; gap: 16px; }
    .school-banner .banner-icon { display: none; }
    .school-banner .banner-link { margin-left: 0; white-space: normal; }
    .school-search, .school-report { padding: 20px; }
}

section.school-landing-row { padding: 0; scroll-margin-top: 110px; }
.school-search button.school-button, .school-report button.school-button { padding: 16px 24px; background: var(--school-purple); color: var(--school-paper); border-radius: 12px; }
.school-search .choice-buttons button.school-button:last-child { background: var(--school-paper); color: var(--school-purple); }
.school-search input, .school-search input:hover, .school-search input:focus, .school-search input:active {
    padding: 15px 18px; border: 1px solid var(--school-line); border-radius: 12px;
    opacity: 1; box-sizing: border-box; font: inherit; transition: border-color .2s, box-shadow .2s;
}
.school-search input:hover { border-color: var(--school-purple); }
.school-search { max-width: 760px; margin-inline: auto; }
#szukaj-szkoly .school-heading { max-width: 760px; margin-inline: auto; text-align: center; }
.school-cards .marker svg { width: 28px; height: 28px; }
.school-cards.cards .item, .school-cards.trust .item { text-align: center; }
.school-cards.trust .item { flex-direction: column; align-items: center; }
.school-cards.trust .marker { width: 44px; height: 44px; }
.school-cards.cards .marker { width: 52px; height: 52px; }
.school-photo-row .fl-col-group { display: flex; align-items: center; gap: 32px; }
.school-photo-row .fl-col { float: none; min-width: 0; }
.school-photo-row .fl-col-group::before, .school-photo-row .fl-col-group::after { display: none; }
.school-photo-row .fl-col { flex: 0 1 auto; }
.school-photo-row .fl-module-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 32px 8px 32px 8px; }
.school-photo-row .school-heading h1 { font-size: clamp(2em,3.2vw,2.9em); }
.school-photo-row.school-photo-reverse .fl-col-group { flex-direction: row-reverse; }
.school-photo-row .school-text.panel { padding: 0; border: 0; background: none; }
.school-alternative .fl-row-content { background: var(--school-ink); color: var(--school-paper); border-radius: 28px; padding: 34px 40px; }
.school-alternative .school-heading { max-width: 740px; color: var(--school-paper); }
.school-alternative .school-heading .intro { color: var(--school-paper); }
.school-alternative .school-heading h2 { font-size: 1.8em; }
.school-banner { position: relative; padding: 56px 64px; border: 0; border-radius: var(--radius-big,30px); overflow: hidden; background: var(--accent2); color: var(--school-paper); gap: 44px; }
.school-banner:hover { color: var(--school-paper); background: var(--accent2); }
.school-banner .banner-icon { display: flex; flex: 0 0 130px; width: 130px; height: 130px; align-items: center; justify-content: center; background: var(--school-ink); border-radius: 28px; color: var(--school-paper); }
.school-banner .banner-icon svg { width: 80px; height: 80px; }
.school-banner .text { position: relative; }
.school-banner .text strong { font-size: 1.6em; line-height: 1.25; }
.school-banner .text > span { color: var(--school-paper); }
.school-banner .text .banner-link { display: inline-flex; align-items: center; gap: 24px; padding: 15px 25px; margin: 24px 0 0; background: var(--school-paper); color: var(--school-ink); border-radius: 40px; font-weight: 600; }
.school-banner:hover .banner-link { background: var(--school-blue); }
@media(max-width:991px) {
    .school-photo-row .fl-col-group { gap: 12px; }
    .school-banner { padding: 36px; gap: 28px; flex-wrap: nowrap; }
    .school-banner .banner-icon { flex-basis: 90px; width: 90px; height: 90px; }
    .school-banner .banner-icon svg { width: 56px; height: 56px; }
    .school-banner .banner-link { flex-basis: auto; }
}
@media(max-width:767px) {
    .school-photo-row .fl-col-group, .school-photo-row.school-photo-reverse .fl-col-group { flex-direction: column; gap: 8px; }
    .school-photo-row .fl-col { width: 100%; max-width: 100%; flex-basis: auto; }
    .school-photo-row .fl-module-photo img { max-height: 360px; }
    .school-alternative .fl-row-content { padding: 24px 12px; margin-inline: 15px; }
    .school-banner { padding: 30px; flex-direction: column; align-items: flex-start; }
    .school-banner .banner-icon { display: flex; width: 64px; height: 64px; flex-basis: 64px; border-radius: 18px; }
    .school-banner .banner-icon svg { width: 40px; height: 40px; }
    .school-banner .text strong { font-size: 1.35em; }
}
.school-cards .marker img.school-custom-icon { width: 28px; height: 28px; object-fit: contain; } .school-banner .banner-icon img.school-custom-icon { width: 65%; height: 65%; object-fit: contain; }
.school-banner:active, .school-banner:focus, .school-banner:visited, .school-banner .text strong, .school-banner:active .text strong, .school-banner:focus .text strong { color: var(--school-paper); }
#szukaj-szkoly .school-heading h1, #szukaj-szkoly .school-heading h2, #szukaj-szkoly .school-heading h3 { display: block; width: 100%; text-align: center; }
.school-banner:active:not(:focus-visible), .school-banner:focus:not(:focus-visible) { outline: none; box-shadow: none; border: 0; }
.school-loading { display: flex; align-items: center; gap: 10px; }
.school-loading::before { content: ''; width: 16px; height: 16px; flex: 0 0 16px; border: 2px solid var(--school-line); border-top-color: var(--school-purple); border-radius: 50%; animation: school-loading-spin .8s linear infinite; }
@keyframes school-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .school-loading::before { animation: none; } }
