body.school {
  margin: 0;
  background: #fff;
  color: #292329;
}
.school-header {
  padding: 0;
  border-top: 4px solid #bc1838;
  background: #fff;
  border-bottom: 1px solid #eed7da;
}
.school-header-inner, .school-main {
  width: min(100% - 32px, 1288px);
  margin-inline: auto;
}
.school-header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 11px;
  justify-items: start;
  padding-block: 9px;
}
.school-flag {
  grid-row: 1 / 3;
  align-self: center;
  width: 36px;
  aspect-ratio: 8 / 5;
  border: 1px solid #ddc1c5;
  border-radius: 4px;
  background: linear-gradient(#fff 50%, #c3183b 50%);
}
.school-header a { text-decoration: none; }
.school-wordmark {
  color: #39252b;
  font-size: clamp(1.35rem, 4.8vw, 1.65rem);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.school-wordmark span { color: #bd1839; }
.school-publisher { color: #65545a; font-size: .8rem; line-height: 1.4; }
.school-publisher:hover { text-decoration: underline; }
.school-main { padding: clamp(18px, 4vw, 42px) 0 48px; }
.school-main :where(.school-back, .school-copy) a { color: #a21532; }
.school a:focus-visible, .school-main summary:focus-visible {
  outline: 3px solid #ad1836;
  outline-offset: 4px;
}
.school-back { margin: 0 0 22px; }
.school-hero {
  padding: clamp(15px, 3vw, 28px);
  background: #fff;
  border: 1px solid #eed7da;
  border-left: 4px solid #bd1839;
  border-radius: 16px;
}
.school-hero-illustrated {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 4vw, 32px);
}
.school-hero h1 {
  margin: 0 0 9px;
  color: #39252b;
  font-size: clamp(1.7rem, 5vw, 3.25rem);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.08;
}
.school-hero p {
  max-width: 58ch;
  margin: 0;
  color: #59494e;
  line-height: 1.45;
  font-size: clamp(.94rem, 2vw, 1.14rem);
}
.school-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 16px;
}
.school-main h2:not(.photo-title h2) { color: #39252b; line-height: 1.2; }
#dzialy { margin: 20px 0 10px; font-size: clamp(1.2rem, 3vw, 1.6rem); }
.school-main .photo-topics .photo-topic { background: #fff; }
.school-main .photo-topics .photo-topic::after { border: 2px solid #bd1839; }
.school-main .photo-title h2 { color: #8e1932; }
.school-main .photo-symbol { background: #fbe8ec; }
.school-main .photo-title:hover h2 { text-decoration: none; }
.school-main .photo-links a:focus-visible { outline-offset: 1px; }
.school-main .school-exam {
  grid-template-columns: minmax(0, 1fr);
  margin: 14px 0 0;
}
.school-copy { margin: 28px 0 0; line-height: 1.65; }
.school-copy:not(.school-parent-copy) > p,
.school-copy:not(.school-parent-copy) article > p { max-width: 80ch; }
.school-parent-copy .school-article-preview {
  display: grid;
  grid-template-columns: minmax(0, 144px) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid #eed7da;
  border-radius: 16px;
  background: #fff;
}
.school-article-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}
.school-parent-copy .school-article-preview h2 { margin: 0 0 6px; font-size: 1.15rem; }
.school-parent-copy .school-article-preview p { margin: 0 0 6px; }
.school-article-label { color: #65545a; font-size: .9rem; }
@media (max-width: 480px) {
  .school-parent-copy .school-article-preview { grid-template-columns: 1fr; }
  .school-article-preview img { width: min(144px, 100%); }
}
.school-copy h2 { margin: 32px 0 10px; }
.school-copy h3 { line-height: 1.3; margin: 24px 0 4px; }
.school-copy p { margin: 0 0 12px; }
.school-copy article { padding: 0; }
.school-faq details { border: 1px solid #ecd8da; border-radius: 12px; padding: 9px 14px; margin: 8px 0; background: #fff; }
.school-faq summary { cursor: pointer; padding: 4px 0; font-weight: 700; }
.school-faq details p { margin: 8px 0; }
@media (max-width: 700px) {
  .school-hero-illustrated { grid-template-columns: minmax(0, 1fr); }
  .school-hero-illustrated img { grid-row: 1; }
}

.school-alphabet { margin-top: 30px; }
.school-alphabet h2 { margin-bottom: 8px; }
.school-alphabet > p { margin: 0; }
.school-alphabet #audio-status:not(:empty) { margin-top: 8px; }
.school-alphabet .keyboardsection h3 { margin: 0 0 10px; }
.school-alphabet .alphabetkey { min-height: 88px; }

.school-parent-copy .school-article-preview + .school-article-preview { margin-top: 12px; }
.school-guide { max-width: 760px; margin: 0 auto; }
.school-guide h1 { font-size: clamp(1.9rem, 5vw, 2.75rem); line-height: 1.17; margin: 0 0 20px; }
.school-guide-photo { display: block; width: 100%; height: auto; border-radius: 14px; margin: 20px 0; }
.school-guide-photo[loading="lazy"] { max-width: 480px; }

body.school-landing { background: #f7f6f3; }
.school-landing .school-header { border-top-color: #831d35; }
.school-landing .school-header-inner { grid-template-columns: auto 1fr auto; }
.school-nav {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  flex-wrap: wrap;
}
.school-nav a { color: #59494e; padding: 7px 0; font-size: .9rem; }
.school-nav a:hover { text-decoration: underline; }
.school-nav .school-nav-exam {
  border-radius: 999px;
  padding: 7px 14px;
  background: #391b21;
  color: white;
}
.school-landing .school-hero {
  background: #fbf3df;
  border-color: #dfd0b8;
  border-left-color: #8d2039;
  box-shadow: 0 5px 16px #412b2020;
}
.school-landing .school-hero h1 { font-family: Georgia, serif; color: #351c20; }
.school-landing .school-hero p + p { margin-top: 7px; }
.school-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.school-hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 5px 14px;
  border: 1px solid #8e1932;
  border-radius: 999px;
  color: #8e1932;
  font-weight: 700;
  text-decoration: none;
}
.school-hero-actions a:first-child { color: #fff; background: #991c38; }
.school-hero-actions a:hover { text-decoration: underline; }
.school-landing .photo-topics { gap: 14px; }
.school-landing .photo-topics .photo-topic {
  border: 4px solid white;
  box-shadow: 0 3px 9px #412b2029;
  min-height: 178px;
}
.school-landing .photo-topics .photo-topic::after { border: 0; }
.school-landing .photo-topics .photo-frame {
  width: 45%;
  border-radius: 55% 12px 12px 55% / 50% 12px 12px 50%;
}
.school-landing .photo-topics .photo-content {
  width: 56%;
  min-height: 178px;
  padding: 9px 3px 8px 10px;
}
.school-landing .photo-topics .photo-links a {
  min-height: 32px;
  font-size: .875rem;
  line-height: 1.25;
}
.school-landing .school-exam a {
  color: #fff;
  background: #391b21;
  border-color: #391b21;
  justify-content: space-between;
  gap: 10px;
}
.school-landing .school-exam a:hover { background: #51222d; }
.school-landing .school-exam a span {
  border-radius: 50%;
  padding: 1px 7px;
  background: #a31f3d;
  color: #fff;
}
@media (max-width: 700px) {
  .school-landing .school-header-inner { grid-template-columns: auto 1fr; }
  .school-nav { grid-column: 1 / -1; grid-row: 3; margin-top: 6px; }
  .school-landing .school-hero-illustrated img { grid-row: auto; }
  .school-landing .photo-topics .photo-content { width: 61%; }
  .school-landing .photo-topics .photo-frame { width: 40%; }
}
