.school-body {
    --school-accent: #1bcf56;
    --school-accent-strong: #0f8d3a;
    --school-accent-rgb: 27, 207, 86;
}
.school-page { overflow: hidden; padding-top: var(--header-h, 70px); }
.school-page h1, .school-page h2, .school-page h3 { text-wrap: balance; }

/* Hero */
.school-hero {
    position: relative;
    padding: 34px 0 0;
    background:
        radial-gradient(circle at 82% 20%, rgba(var(--school-accent-rgb), .15), transparent 27%),
        radial-gradient(circle at 8% 90%, rgba(var(--school-accent-rgb), .08), transparent 25%),
        linear-gradient(180deg, #fff 0%, rgba(var(--school-accent-rgb), .055) 100%);
}
.school-hero::after {
    content: ""; position: absolute; top: 120px; right: -210px;
    width: 490px; height: 490px; border: 1px solid rgba(var(--school-accent-rgb), .12);
    border-radius: 50%; pointer-events: none;
}
.school-breadcrumbs {
    position: relative; z-index: 1; display: flex; align-items: center; gap: 9px;
    margin-bottom: 38px; color: #7b867f; font-size: 12px; font-weight: 650;
}
.school-breadcrumbs a { color: #657068; }
.school-hero-layout {
    position: relative; z-index: 1; display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(370px, .82fr);
    align-items: center; gap: 70px; padding-bottom: 66px;
}
.school-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    color: #285035; font-size: 13px; font-weight: 800;
}
.school-hero-school-icon {
    display: block; width: 34px; height: 34px; border-radius: 11px;
    object-fit: cover; box-shadow: 0 8px 19px rgba(var(--school-accent-rgb), .25);
}
.school-hero h1 {
    max-width: 800px; margin: 19px 0 22px;
    font-size: clamp(48px, 6.2vw, 79px); line-height: .98;
    letter-spacing: -.055em;
}
.school-hero h1 em { color: var(--school-accent-strong); font-style: normal; }
.school-hero-copy > p {
    max-width: 720px; margin: 0; color: #56635b;
    font-size: 17px; line-height: 1.72;
}
.school-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 29px; }
.school-page .btn-primary { background: var(--school-accent-strong); box-shadow: 0 12px 28px rgba(var(--school-accent-rgb), .28); }
.school-page .btn-primary:hover { background: var(--school-accent-strong); filter: brightness(.94); }
.school-text-link { display: inline-flex; align-items: center; gap: 7px; color: #28352d; font-size: 14px; font-weight: 800; }
.school-text-link:hover { color: var(--school-accent-strong); }

.school-navigator {
    position: relative; padding: 29px; border: 1px solid rgba(15,23,42,.075);
    border-radius: 29px; background: rgba(255,255,255,.94);
    box-shadow: 0 30px 85px rgba(15,23,42,.105);
}
.school-navigator-head { margin-bottom: 20px; }
.school-navigator-head > span {
    color: var(--school-accent-strong); font-size: 11px; font-weight: 850;
    text-transform: uppercase; letter-spacing: .09em;
}
.school-navigator-head h2 { margin: 7px 0 0; font-size: 27px; letter-spacing: -.03em; }
.school-nav-row {
    display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 13px;
    min-height: 78px; margin-top: 10px; padding: 11px 15px;
    border: 1px solid rgba(15,23,42,.07); border-radius: 18px;
    color: #172019; background: #f8fbf9;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.school-nav-row:hover { transform: translateY(-2px); border-color: rgba(var(--school-accent-rgb), .32); color: #172019; background: #fff; }
.school-nav-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 14px;
    color: var(--school-accent-strong); background: rgba(var(--school-accent-rgb), .14); font-size: 16px; font-weight: 900;
}
.school-nav-row > span:nth-child(2) { display: grid; gap: 3px; }
.school-nav-row strong { font-size: 14px; }
.school-nav-row small { color: #7a857e; font-size: 11.5px; line-height: 1.35; }
.school-nav-row b { color: var(--school-accent); font-size: 19px; }
.school-nav-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 15px; color: #7a857e; font-size: 11px; line-height: 1.5; }
.school-nav-note span { color: var(--school-accent); font-size: 8px; transform: translateY(3px); }
.school-nav-row-archive { background: #fbfaf7; }

/* Shared section elements */
.school-section { padding: 92px 0; }
.school-section-soft { background: rgba(var(--school-accent-rgb), .05); }
.school-section-head { max-width: 805px; margin-bottom: 40px; }
.school-section-head > span, .school-section-index {
    display: inline-block; margin-bottom: 14px; color: var(--school-accent-strong);
    font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .09em;
}
.school-section-head h2, .school-actual-layout h2 {
    margin: 0 0 16px; font-size: clamp(36px, 4.5vw, 55px); line-height: 1.04; letter-spacing: -.035em;
}
.school-section-head p, .school-actual-layout > div > p {
    max-width: 750px; margin: 0; color: #657169; font-size: 16px; line-height: 1.72;
}

/* Subject navigator */
.school-catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
.school-catalog-grid-single { grid-template-columns: 1fr; }
.school-catalog-panel {
    position: relative; overflow: hidden; padding: 30px;
    border: 1px solid rgba(15,23,42,.075); border-radius: 27px;
    background: #fff; box-shadow: 0 17px 48px rgba(15,23,42,.05);
}
.school-catalog-panel::after {
    content: ""; position: absolute; right: -85px; top: -90px;
    width: 210px; height: 210px; border-radius: 50%; background: rgba(var(--school-accent-rgb), .08);
}

/* School-specific profile */
.school-profile-layout {
    display: grid; grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
    align-items: center; gap: 80px;
}
.school-profile-copy h2 { margin: 0 0 18px; font-size: clamp(36px, 4.5vw, 55px); line-height: 1.04; letter-spacing: -.035em; }
.school-profile-copy p { margin: 0; color: #657169; font-size: 16px; line-height: 1.72; }
.school-profile-points { display: grid; gap: 10px; }
.school-profile-points article {
    display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 15px;
    min-height: 88px; padding: 15px 18px; border: 1px solid rgba(15,23,42,.075);
    border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(15,23,42,.035);
}
.school-profile-points article > b {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border-radius: 14px; color: var(--school-accent-strong); background: rgba(var(--school-accent-rgb), .12);
    font-size: 11px;
}
.school-profile-points h3 { margin: 0 0 4px; color: #1c2820; font-size: 15px; }
.school-profile-points p { margin: 0; color: #748078; font-size: 12px; line-height: 1.5; }
.school-catalog-panel-head { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 27px; }
.school-catalog-panel-head div > span { color: #7b867f; font-size: 11px; font-weight: 700; }
.school-catalog-panel-head h3 { margin: 2px 0 0; font-size: 39px; }
.school-catalog-hint { color: #7b867f; font-size: 12px; font-weight: 750; }
.school-catalog-panel ul { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.school-catalog-detailed .school-catalog-panel ul { grid-template-columns: 1fr; }
.school-catalog-panel li {
    min-width: 0; overflow: hidden; padding: 0; border: 1px solid rgba(15,23,42,.06);
    border-radius: 12px; background: #f8faf9;
    font-size: 12px; font-weight: 700;
}
.school-catalog-panel li a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 42px; padding: 10px 12px; color: #4d5a52;
    transition: color .18s ease, background-color .18s ease;
}
.school-catalog-panel li a b {
    flex: 0 0 auto; color: var(--school-accent-strong); opacity: .55;
    transition: opacity .18s ease, transform .18s ease;
}
.school-catalog-panel li a:hover, .school-catalog-panel li a:focus-visible {
    color: var(--school-accent-strong); background: rgba(var(--school-accent-rgb), .12);
}
.school-catalog-panel li a:hover b, .school-catalog-panel li a:focus-visible b { opacity: 1; transform: translateX(2px); }
.school-catalog-panel li a:focus-visible { outline: 2px solid var(--school-accent-strong); outline-offset: -2px; }
.school-catalog-footnote { margin: 20px 0 0; color: #78847c; font-size: 12px; line-height: 1.6; }
.school-catalog-footnote a { font-weight: 800; }

/* Course map */
.school-section-dark { position: relative; color: #fff; background: #07130c; }
.school-section-dark::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 80% 15%, rgba(var(--school-accent-rgb), .18), transparent 27%); }
.school-section-dark .container { position: relative; z-index: 1; }
.school-section-head-light > span { color: var(--school-accent); }
.school-section-head-light h2 { color: #fff; }
.school-section-head-light p { color: rgba(255,255,255,.61); }
.school-course-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid rgba(255,255,255,.10); border-radius: 25px; overflow: hidden; }
.school-course-map article { position: relative; min-height: 250px; padding: 27px; border-left: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.025); }
.school-course-map article:first-child { border-left: 0; }
.school-course-map article b { color: rgba(255,255,255,.25); font-size: 12px; }
.school-course-map article > span { display: block; margin: 50px 0 7px; color: var(--school-accent); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .10em; }
.school-course-map h3 { margin-bottom: 9px; color: #fff; font-size: 19px; }
.school-course-map p { margin: 0; color: rgba(255,255,255,.55); font-size: 12.5px; line-height: 1.58; }
.school-course-map-note { margin-top: 16px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; color: rgba(255,255,255,.58); background: rgba(255,255,255,.035); font-size: 12px; line-height: 1.58; }
.school-course-map-note strong { color: #fff; }

/* Comparison */
.school-compare { overflow: hidden; border: 1px solid rgba(15,23,42,.08); border-radius: 25px; background: #fff; box-shadow: 0 18px 55px rgba(15,23,42,.055); }
.school-compare-row { display: grid; grid-template-columns: .72fr 1fr 1fr; }
.school-compare-row > div { min-width: 0; padding: 21px 24px; border-top: 1px solid rgba(15,23,42,.07); border-left: 1px solid rgba(15,23,42,.07); color: #59665e; font-size: 13px; line-height: 1.58; }
.school-compare-row > div:first-child { border-left: 0; color: #1c2820; font-weight: 800; }
.school-compare-head > div { display: flex; align-items: center; gap: 10px; border-top: 0; color: #1c2820; background: #f7faf8; font-size: 14px; font-weight: 850; }
.school-compare-head b { padding: 5px 8px; border-radius: 999px; color: var(--school-accent-strong); background: rgba(var(--school-accent-rgb), .12); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.school-compare-note { margin: 18px 4px 0; color: #77837b; font-size: 12.5px; line-height: 1.55; }

/* Actuality */
.school-actual-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr); align-items: center; gap: 85px; }
.school-manager-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 24px; color: #213027; font-size: 13px; font-weight: 850; }
.school-checklist { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.school-checklist li { display: grid; grid-template-columns: 45px 1fr; align-items: center; gap: 14px; min-height: 73px; padding: 10px 14px; border: 1px solid rgba(15,23,42,.07); border-radius: 17px; background: #fff; }
.school-checklist li > b { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 13px; color: var(--school-accent-strong); background: rgba(var(--school-accent-rgb), .12); font-size: 11px; }
.school-checklist li > span { display: grid; gap: 2px; }
.school-checklist strong { color: #1c2820; font-size: 13px; }
.school-checklist small { color: #7b867f; font-size: 11.5px; line-height: 1.35; }

/* FAQ */
.school-faq-layout { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); align-items: start; gap: 75px; }
.school-faq-head { position: sticky; top: 150px; margin: 0; }
.school-faq { display: grid; gap: 10px; }
.school-faq details { border: 1px solid rgba(15,23,42,.075); border-radius: 18px; background: #fff; }
.school-faq summary { position: relative; padding: 21px 55px 21px 21px; color: #172019; font-size: 14px; font-weight: 800; cursor: pointer; list-style: none; }
.school-faq summary::-webkit-details-marker { display: none; }
.school-faq summary::after { content: "+"; position: absolute; right: 19px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; color: var(--school-accent-strong); background: rgba(var(--school-accent-rgb), .12); font-size: 17px; }
.school-faq details[open] summary::after { content: "−"; }
.school-faq details p { margin: -2px 21px 21px; color: #68746c; font-size: 13px; line-height: 1.65; }

/* ЕГЭЛенд uses a wider transparent logo; contain prevents visual cropping. */
.school-icon-egeland { object-fit: contain; padding: 3px; box-sizing: border-box; background: #fbf6fd; }

@media (max-width: 980px) {
    .school-hero-layout { grid-template-columns: 1fr; gap: 38px; }
    .school-navigator { max-width: 680px; }
    .school-course-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .school-course-map article:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.10); }
    .school-course-map article:nth-child(4) { border-top: 1px solid rgba(255,255,255,.10); }
    .school-profile-layout, .school-actual-layout, .school-faq-layout { grid-template-columns: 1fr; gap: 42px; }
    .school-faq-head { position: static; }
}

@media (max-width: 720px) {
    .school-page { padding-top: var(--mobile-public-header-offset, 126px); }
    .school-hero { padding-top: 20px; }
    .school-breadcrumbs { margin-bottom: 29px; font-size: 11px; }
    .school-hero-layout { padding-bottom: 48px; }
    .school-hero h1 { font-size: clamp(40px, 12.5vw, 57px); line-height: 1; }
    .school-hero-copy > p { font-size: 14.5px; line-height: 1.65; }
    .school-hero-actions { display: grid; grid-template-columns: 1fr; gap: 17px; }
    .school-hero-actions .btn-primary { width: 100%; min-width: 0; }
    .school-text-link { justify-content: center; }
    .school-navigator { padding: 22px; border-radius: 23px; }
    .school-section { padding: 68px 0; }
    .school-section-head { margin-bottom: 30px; }
    .school-section-head h2, .school-profile-copy h2, .school-actual-layout h2 { font-size: 34px; }
    .school-section-head p, .school-profile-copy p, .school-actual-layout > div > p { font-size: 14px; }
    .school-catalog-grid { grid-template-columns: 1fr; }
    .school-catalog-panel { padding: 23px; border-radius: 22px; }
    .school-catalog-panel-head { align-items: flex-start; }
    .school-catalog-panel-head h3 { font-size: 33px; }
    .school-catalog-hint { margin-top: 6px; }
    .school-catalog-panel ul { grid-template-columns: 1fr; }
    .school-catalog-panel li { font-size: 11.5px; }
    .school-catalog-panel li a { min-height: 40px; padding: 9px 10px; }
    .school-course-map { grid-template-columns: 1fr; }
    .school-course-map article { min-height: 215px; border-left: 0; border-top: 1px solid rgba(255,255,255,.10); }
    .school-course-map article:first-child { border-top: 0; }
    .school-course-map article:nth-child(2) { border-top: 1px solid rgba(255,255,255,.10); }
    .school-course-map article > span { margin-top: 28px; }
    .school-compare { overflow-x: auto; }
    .school-compare-row { min-width: 690px; }
    .school-compare-row > div { padding: 18px; font-size: 12px; }
    .school-actual-layout { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .school-page *, .school-page *::before, .school-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
