:root {
    --color-primary: #5a5ee8;
    --color-primary-dark: #484ccf;
    --color-primary-soft: #eef0ff;
    --color-ink: #292d59;
    --color-text: #4d5068;
    --color-muted: #8d91a6;
    --color-border: #e5e7f1;
    --color-surface: #f7f7fc;
    --color-surface-strong: #f1f2fa;
    --color-white: #ffffff;
    --color-success: #2f8f69;
    --color-danger: #bc5261;
    --shadow-soft: 0 18px 45px rgba(43, 47, 91, 0.06);
    --container: 1040px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --transition: 180ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--color-text);
    background: var(--color-white);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
    font: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button,
select,
summary,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--color-primary);
}

button,
input,
select,
textarea {
    color: inherit;
}

button {
    border: 0;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--color-ink);
    line-height: 1.16;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    background: var(--color-ink);
    transform: translateY(-150%);
    transition: transform var(--transition);
}

.skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

.page-container,
.site-header__inner,
.site-footer__inner,
.breadcrumbs-wrap {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.site-main {
    min-height: calc(100vh - 152px);
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 25px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.button:hover {
    transform: translateY(-1px);
}

.button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(90, 94, 232, 0.22);
    outline-offset: 2px;
}

.button--primary {
    color: #fff;
    background: var(--color-primary);
    box-shadow: 0 9px 22px rgba(90, 94, 232, 0.2);
}

.button--primary:hover {
    color: #fff;
    background: var(--color-primary-dark);
}

.button--secondary {
    color: var(--color-ink);
    border-color: var(--color-border);
    background: #fff;
}

.button--secondary:hover {
    color: var(--color-primary);
    border-color: #c8cbfa;
    background: var(--color-primary-soft);
}

.button--outline {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: transparent;
}

.button--outline:hover {
    color: #fff;
    background: var(--color-primary);
}

.button--small {
    min-height: 29px;
    padding: 7px 17px;
    font-size: 12px;
}

/* Header */
.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgba(229, 231, 241, 0.75);
    background: #fbfbff;
}

.site-header__inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-brand {
    display: inline-flex;
    max-width: 269px;
    align-items: center;
    color: var(--color-ink);
}

.site-brand:hover {
    color: var(--color-ink);
}

.site-brand__logo {
    display: block;
    width: 235px;
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #37394c;
    font-size: 14px;
    font-weight: 600;
}

.site-nav__link svg {
    color: #6d7086;
}

.site-nav__cta {
    min-height: 40px;
    padding-inline: 25px;
    font-size: 14px;
}


.mobile-menu {
    display: none;
    position: relative;
}

.mobile-menu summary {
    display: grid;
    width: 43px;
    height: 43px;
    place-content: center;
    gap: 4px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    list-style: none;
    cursor: pointer;
}

.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-ink);
}

.mobile-menu nav {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    display: grid;
    width: 220px;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.mobile-menu nav a {
    padding: 11px 12px;
    border-radius: 9px;
    color: var(--color-ink);
    font-weight: 600;
}

.mobile-menu nav a:hover {
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

/* Breadcrumbs */
.breadcrumbs-wrap {
    padding-top: 18px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--color-muted);
    font-size: 12px;
}

.breadcrumbs li:not(:last-child)::after {
    margin-left: 7px;
    content: "/";
    color: #c0c2ce;
}

/* Home hero */
.home-page {
    padding-bottom: 96px;
}

.home-hero {
    padding: 36px 0 21px;
    text-align: center;
}

.home-hero h1 {
    max-width: 900px;
    margin: 0 auto 8px;
    font-size: clamp(36px, 4.4vw, 57px);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.home-hero > .page-container > p {
    margin-bottom: 28px;
    color: #313345;
    font-size: clamp(17px, 1.7vw, 23px);
    font-weight: 500;
}

.quick-search {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 148px;
    gap: 22px;
    max-width: 100%;
    margin-inline: auto;
}

.quick-search__icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 20px;
    color: var(--color-primary);
    transform: translateY(-50%);
    pointer-events: none;
}

.quick-search input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 22px 0 52px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    outline: 0;
    background: #fff;
    box-shadow: 0 5px 22px rgba(44, 47, 86, 0.025);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.quick-search input::placeholder {
    color: #b3b6c4;
}

.quick-search input:focus {
    border-color: #b4b8f7;
    box-shadow: 0 0 0 4px rgba(90, 94, 232, 0.1);
}

.quick-search .button {
    min-height: 48px;
}

/* Promo banners */
.promo-section {
    padding-top: 10px;
    padding-bottom: 41px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.promo-banner {
    position: relative;
    min-height: 0;
    aspect-ratio: 1.55 / 1;
    overflow: hidden;
    border-radius: 14px;
    background: none;
    box-shadow: 0 10px 25px rgba(42, 47, 83, 0.075);
}

.promo-banner::after {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(41, 45, 89, 0.06);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.promo-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section headings */
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(25px, 3vw, 34px);
    letter-spacing: -0.02em;
}


.catalog-heading {
    margin-bottom: 17px;
}

.catalog-count {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
}

.catalog-count strong {
    color: var(--color-ink);
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 25px;
}

.filter-field {
    position: relative;
}

.filter-field--search {
    flex: 1 1 260px;
}

.filter-field input,
.filter-field select {
    width: 100%;
    min-width: 170px;
    height: 45px;
    padding: 0 40px 0 17px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    outline: none;
    background-color: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.filter-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #6f7289 50%), linear-gradient(135deg, #6f7289 50%, transparent 50%);
    background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    cursor: pointer;
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: #b4b8f7;
    box-shadow: 0 0 0 4px rgba(90, 94, 232, 0.1);
}

.filters__submit {
    min-height: 45px;
    padding-inline: 21px;
}

.filters__reset {
    padding: 8px 5px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 600;
}

/* School cards */
.school-list {
    display: grid;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.school-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) 260px;
    min-height: 155px;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: var(--color-surface);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.school-card:hover {
    border-color: #dfe1f6;
    transform: translateY(-2px);
    box-shadow: 0 15px 38px rgba(45, 49, 91, 0.075);
}

.school-card__identity {
    display: grid;
    align-self: start;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background:
        radial-gradient(circle at 68% 32%, rgba(255,255,255,.24) 0 3px, transparent 4px),
        radial-gradient(circle at 36% 65%, rgba(255,211,70,.95) 0 4px, transparent 5px),
        linear-gradient(145deg, #1c3aa3 0%, #243fae 58%, #f1cf3d 59%, #f1cf3d 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.23), 0 8px 17px rgba(28, 58, 163, 0.16);
}

.school-card__identity span {
    font-size: 30px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.school-card__content {
    min-width: 0;
}

.school-card__heading {
    margin-bottom: 5px;
}


.school-card h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.012em;
}

.school-card h3 a {
    display: inline;
    color: var(--color-ink);
}

.school-card h3 a:hover {
    color: var(--color-primary);
}

.school-card__description {
    display: -webkit-box;
    min-height: 40px;
    margin-bottom: 10px;
    overflow: hidden;
    color: #666a7d;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.school-card__bottom {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.school-card__links {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a2a5b5;
}

.school-card__links > a {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 50%;
    color: #9da1b3;
    transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}

.school-card__links > a:hover {
    color: var(--color-primary);
    border-color: #d6d8fb;
    background: #fff;
    transform: translateY(-1px);
}

.school-card__tags {
    display: flex;
    min-width: 0;
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.school-card__tags span {
    max-width: 125px;
    overflow: hidden;
    padding: 4px 10px;
    border: 1px solid #d8dae6;
    border-radius: 999px;
    color: #9a9dae;
    font-size: 10px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.school-card__facts {
    display: grid;
    align-content: center;
    gap: 7px;
    margin: 0;
    padding-left: 18px;
    border-left: 1px solid #d8dae7;
}

.school-card__facts > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.school-card__facts dt {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    color: #767a90;
    font-size: 11px;
}

.school-card__facts dt svg {
    flex: 0 0 18px;
    color: #a8abba;
}

.school-card__facts dd {
    max-width: 118px;
    margin: 0;
    overflow: hidden;
    color: #3f425a;
    font-size: 11px;
    font-weight: 700;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-success { color: var(--color-success) !important; }
.text-danger { color: var(--color-danger) !important; }

.empty-state {
    padding: 54px 24px;
    border: 1px dashed #d9dbea;
    border-radius: var(--radius-md);
    text-align: center;
    background: var(--color-surface);
}

.empty-state__icon {
    display: grid;
    width: 66px;
    height: 66px;
    margin: 0 auto 17px;
    place-items: center;
    border-radius: 50%;
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

.empty-state h3 { margin-bottom: 7px; }
.empty-state p { margin: 0; color: var(--color-muted); }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 39px 0 0;
}

.pagination__page,
.pagination__arrow,
.pagination__gap {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    color: #555971;
    background: var(--color-primary-soft);
    font-size: 13px;
    font-weight: 700;
}

.pagination__page:hover,
.pagination__arrow:hover {
    color: #fff;
    background: var(--color-primary);
}

.pagination__page.is-current {
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    background: #fff;
}

.pagination__arrow.is-disabled {
    color: #c3c5d1;
    cursor: default;
}

.pagination__gap {
    width: 25px;
    background: transparent;
}

/* Regions */
.regions-section {
    padding-top: 77px;
}

.regions-grid,
.cities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.regions-grid a,
.cities-grid a {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: 11px;
    color: var(--color-ink);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition);
}

.regions-grid a:hover,
.cities-grid a:hover {
    color: var(--color-primary);
    border-color: #cfd2f8;
    background: var(--color-primary-soft);
    transform: translateY(-1px);
}

.regions-grid a span {
    color: var(--color-primary);
}

/* FAQ */
.faq-section {
    max-width: 920px;
    padding-top: 76px;
}

.faq-section h2 {
    margin-bottom: 24px;
    text-align: center;
    font-size: clamp(28px, 3vw, 35px);
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-list details {
    overflow: hidden;
    border-radius: 11px;
    background: var(--color-surface);
}

.faq-list summary {
    position: relative;
    padding: 17px 54px 17px 22px;
    color: #41445b;
    font-size: 13px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::before,
.faq-list summary::after {
    position: absolute;
    top: 50%;
    right: 22px;
    width: 10px;
    height: 1.5px;
    border-radius: 999px;
    background: #63667a;
    content: "";
    transition: transform var(--transition);
}

.faq-list summary::before { transform: translate(-3px, -50%) rotate(45deg); }
.faq-list summary::after { transform: translate(3px, -50%) rotate(-45deg); }
.faq-list details[open] summary::before { transform: translate(-3px, -50%) rotate(-45deg); }
.faq-list details[open] summary::after { transform: translate(3px, -50%) rotate(45deg); }

.faq-list details p {
    margin: -3px 0 0;
    padding: 0 52px 18px 22px;
    color: #696c80;
    font-size: 13px;
}

/* Footer */
.site-footer {
    color: #b9bbca;
    background: #111328;
}

.site-footer__main {
    padding: 58px 0 46px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.25fr) minmax(145px, .72fr) minmax(180px, .9fr) minmax(270px, 1.15fr);
    align-items: start;
    gap: clamp(30px, 4.5vw, 68px);
}

.site-footer__brand-mark {
    display: inline-flex;
    margin-bottom: 24px;
    padding: 12px 15px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .18);
}

.site-footer__brand-mark img {
    display: block;
    width: 210px;
    height: auto;
}

.site-footer__brand > p {
    max-width: 330px;
    margin: 0;
    color: #9b9eaf;
    font-size: 14px;
    line-height: 1.75;
}

.site-footer h2 {
    margin: 7px 0 22px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .105em;
    line-height: 1.2;
    text-transform: uppercase;
}

.site-footer__column ul {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a {
    color: inherit;
}

.site-footer__column a,
.site-footer__contacts a {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    transition: color var(--transition), transform var(--transition);
}

.site-footer__column a:hover,
.site-footer__contacts a:hover {
    color: #fff;
}

.site-footer__map {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 8.4;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: #1d203b;
}

.site-footer__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(.7) contrast(.94);
    pointer-events: none;
}

.site-footer__map > a {
    position: absolute;
    inset: 0;
}

.site-footer__map-label {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: grid;
    gap: 2px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 9px;
    color: #fff;
    background: rgba(17, 19, 40, .88);
    box-shadow: 0 7px 22px rgba(6, 8, 24, .28);
    font-size: 9px;
    letter-spacing: .03em;
    line-height: 1.2;
}

.site-footer__map-label strong {
    font-size: 10px;
    font-weight: 750;
}

.site-footer__map-label small {
    color: rgba(255, 255, 255, .72);
    font: inherit;
}

.site-footer__map-marker {
    position: absolute;
    z-index: 1;
    top: 42%;
    left: 48%;
    width: 21px;
    height: 21px;
    border: 5px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: var(--color-primary);
    box-shadow: 0 5px 18px rgba(13, 16, 42, .38);
    transform: translate(-50%, -50%) rotate(-45deg);
}

.site-footer__map-marker::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    content: "";
    transform: translate(-50%, -50%);
}

.site-footer__contacts {
    display: grid;
    gap: 13px;
    margin: 0;
}

.site-footer__contacts div {
    display: grid;
    gap: 3px;
}

.site-footer__contacts dt {
    color: #777b91;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.site-footer__contacts dd {
    margin: 0;
    color: #e3e4ec;
    font-size: 13px;
    font-weight: 600;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.site-footer__bottom-inner {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #777b91;
    font-size: 10px;
}

.site-footer__bottom p {
    margin: 0;
}

/* Generic content pages */
.site-main > h1,
.site-main > p,
.site-main > section,
.site-main > form,
.site-main > .admin-panel,
.site-main > .school-page {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.site-main > h1 {
    margin-top: 42px;
    margin-bottom: 18px;
    font-size: clamp(32px, 4vw, 48px);
}

.site-main > p {
    max-width: 760px;
}

.site-main > section {
    margin-top: 38px;
    margin-bottom: 38px;
}

.legal-page {
    width: min(calc(100% - 40px), 900px);
    margin: 58px auto 88px;
}

.legal-page__header {
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e6ef;
}

.legal-page__header > span {
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
}

.legal-page__header h1 {
    margin: 10px 0 14px;
    font-size: clamp(34px, 5vw, 52px);
    letter-spacing: -.035em;
    line-height: 1.08;
}

.legal-page__header p {
    max-width: 720px;
    margin: 0;
    color: #686c83;
    font-size: 15px;
    line-height: 1.7;
}

.legal-page__sections {
    display: grid;
    gap: 0;
}

.legal-page__sections section {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    gap: 36px;
    padding: 28px 0;
    border-bottom: 1px solid #ececf3;
}

.legal-page__sections h2,
.legal-page__sections p {
    margin: 0;
}

.legal-page__sections h2 {
    font-size: 15px;
    line-height: 1.4;
}

.legal-page__sections p {
    color: #686c83;
    font-size: 14px;
    line-height: 1.75;
}

@media (max-width: 700px) {
    .legal-page {
        width: min(calc(100% - 28px), 900px);
        margin: 38px auto 62px;
    }

    .legal-page__sections section {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 23px 0;
    }
}


/* School detail: stable baseline until its dedicated design pass */
.school-page {
    padding: 30px 0 70px;
}

.school-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.school-hero h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
}

.school-full-name,
.school-address,
.source-note {
    color: var(--color-muted);
}

.school-address { margin-bottom: 0; }

.school-status-card {
    display: flex;
    min-width: 210px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.school-type-badge {
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
}

.status-badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #eef1f6;
}

.status-badge.is-active { color: var(--color-success); background: #eaf8f2; }
.status-badge.is-inactive { color: var(--color-danger); background: #fff0f2; }

.school-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 24px;
    margin-top: 24px;
}

.content-section,
.school-sidebar {
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
}

.content-section h2,
.school-sidebar h2 {
    margin-bottom: 18px;
    font-size: 22px;
}

.school-sidebar {
    position: sticky;
    top: 18px;
    align-self: start;
}

.school-facts {
    display: grid;
    grid-template-columns: minmax(155px, 220px) minmax(0, 1fr);
    gap: 0;
    margin: 0;
}

.school-facts dt,
.school-facts dd {
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid var(--color-border);
}

.school-facts dt { color: var(--color-muted); }
.school-facts dd { color: var(--color-ink); font-weight: 600; }

.fact-list,
.school-gallery {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fact-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.school-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.school-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    object-fit: cover;
}

/* Forms */
form.school-form {
    display: grid;
    max-width: 680px;
    gap: 17px;
    padding-bottom: 70px;
}

form.school-form > div:not(.honeypot-field) {
    display: grid;
    gap: 6px;
}

form.school-form label { color: var(--color-ink); font-weight: 700; }

form.school-form input,
form.school-form select,
form.school-form textarea,
.admin-panel input,
.admin-panel select,
.admin-panel textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    outline: none;
    background: #fff;
}

form.school-form button {
    justify-self: start;
    min-height: 46px;
    padding: 11px 24px;
    border-radius: 999px;
    color: #fff;
    background: var(--color-primary);
    font-weight: 700;
    cursor: pointer;
}

.error,
.field-error {
    color: var(--color-danger);
    font-size: 13px;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Admin */
.admin-panel {
    margin-top: 35px !important;
    margin-bottom: 55px !important;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
}

.admin-login { max-width: 440px; }
.admin-panel form,
.import-form { display: grid; gap: 16px; }
.admin-heading,
.admin-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-panel button { padding: 11px 16px; border-radius: 9px; color: #fff; background: var(--color-ink); cursor: pointer; }
.admin-panel .button-secondary { color: var(--color-ink); border: 1px solid var(--color-border); background: #fff; }
.admin-error,
.import-result { padding: 13px 16px; border-radius: 9px; }
.admin-error { color: var(--color-danger); background: #fff0f2; }
.import-result.is-preview { background: #fff9e8; }
.import-result.is-success { background: #eaf8f2; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th,
.admin-table td { padding: 10px; border-bottom: 1px solid var(--color-border); text-align: left; white-space: nowrap; }
.admin-search { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin: 16px 0 24px; }
.editor-form { max-width: 760px; }

/* Responsive */
@media (max-width: 1000px) {
    .school-card {
        grid-template-columns: 72px minmax(0, 1fr) 220px;
    }

    .school-card__identity {
        width: 72px;
        height: 72px;
    }

    .school-card__tags span:nth-child(n+3) {
        display: none;
    }

    .regions-grid,
    .cities-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .site-nav { gap: 16px; }
    .site-nav__link span { display: none; }
    .site-brand { max-width: 220px; }
    .site-brand__logo { width: 210px; }

    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 42px 50px;
    }

    .promo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promo-banner { min-height: 0; }

    .school-card {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .school-card__facts {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 14px 0 0;
        border-top: 1px solid #d8dae7;
        border-left: 0;
    }

    .school-card__facts > div {
        display: block;
        padding-right: 10px;
        border-right: 1px solid #d8dae7;
    }

    .school-card__facts > div:last-child { border-right: 0; }
    .school-card__facts dt { margin-bottom: 4px; }
    .school-card__facts dd { max-width: none; text-align: left; }

    .school-layout { grid-template-columns: 1fr; }
    .school-sidebar { position: static; }
}

@media (max-width: 700px) {
    .page-container,
    .site-header__inner,
    .site-footer__inner,
    .breadcrumbs-wrap,
    .site-main > h1,
    .site-main > p,
    .site-main > section,
    .site-main > form,
    .site-main > .admin-panel,
    .site-main > .school-page {
        width: min(calc(100% - 28px), var(--container));
    }

    .site-header__inner { min-height: 68px; }
    .site-brand { max-width: 190px; }
    .site-brand__logo { width: 184px; height: auto; }
    .site-nav { display: none; }
    .mobile-menu { display: block; }

    .home-page { padding-bottom: 65px; }
    .home-hero { padding-top: 29px; }
    .home-hero h1 { font-size: 36px; }
    .home-hero > .page-container > p { margin-bottom: 22px; font-size: 17px; }

    .quick-search {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .quick-search .button { width: 100%; }

    .promo-section { padding-bottom: 31px; }
    .promo-grid { gap: 12px; }
    .promo-banner { min-height: 0; border-radius: 11px; }

    .section-heading { align-items: flex-start; }
    .catalog-heading { display: block; }
    .catalog-count { margin-top: 7px; }

    .filters { display: grid; grid-template-columns: 1fr 1fr; }
    .filter-field,
    .filter-field select,
    .filter-field input { width: 100%; min-width: 0; }
    .filter-field--search { grid-column: 1 / -1; }
    .filters__submit { grid-column: 1 / -1; }
    .filters__reset { grid-column: 1 / -1; justify-self: center; }

    .school-list { gap: 14px; }
    .school-card {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 13px;
        padding: 15px;
    }
    .school-card__identity { width: 58px; height: 58px; }
    .school-card__identity span { font-size: 23px; }
    .school-card h3 { font-size: 15px; }
    .school-card__description { font-size: 11px; }
    .school-card__bottom { flex-wrap: wrap; }
    .school-card__tags { width: 100%; margin-left: 0; justify-content: flex-start; }
    .school-card__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .school-card__facts > div { padding: 4px 7px 4px 0; }
    .school-card__facts > div:nth-child(2n) { border-right: 0; }

    .regions-section,
    .faq-section { padding-top: 55px; }
    .regions-grid,
    .cities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .school-hero { flex-direction: column; padding: 21px; }
    .school-status-card { width: 100%; min-width: 0; }
    .school-facts { grid-template-columns: 1fr; }
    .school-facts dt { padding-bottom: 2px; border-bottom: 0; }
    .school-facts dd { padding-top: 2px; }

    .site-footer__main { padding: 44px 0 36px; }
    .site-footer__grid { gap: 36px 28px; }
    .site-footer__bottom-inner {
        min-height: 72px;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        text-align: center;
    }
}

@media (max-width: 470px) {
    .site-brand { max-width: 166px; }
    .site-brand__logo { width: 162px; height: auto; }
    .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .home-hero h1 { font-size: 31px; }
    .promo-grid { grid-template-columns: 1fr 1fr; }
    .promo-banner { min-height: 0; }
    .filters { grid-template-columns: 1fr; }
    .filters__submit,
    .filters__reset { grid-column: auto; }
    .school-card__facts { grid-template-columns: 1fr; }
    .school-card__facts > div { border-right: 0; }
    .regions-grid,
    .cities-grid { grid-template-columns: 1fr; }
    .pagination { gap: 5px; }
    .pagination__page,
    .pagination__arrow { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Typography hardening: use only real Montserrat weights to avoid synthetic glyphs. */
html,
body,
button,
input,
select,
textarea,
table,
summary {
    font-family: "Montserrat", Arial, sans-serif;
}

body {
    font-weight: 400;
    font-synthesis: none;
}

button,
input,
select,
textarea {
    font-weight: inherit;
}

/* School page — dedicated design pass */
.page-school {
    --school-container: 1120px;
    --school-left: 160px;
    --school-right: 218px;
    --school-gap: 24px;
    background: #fff;
}

.page-school .breadcrumbs-wrap {
    width: min(calc(100% - 40px), var(--school-container));
    padding-top: 16px;
}

.page-school .breadcrumbs {
    gap: 5px;
    font-size: 10px;
    line-height: 1.4;
}

.page-school .breadcrumbs li:not(:last-child)::after {
    margin-left: 5px;
}

.school-detail {
    width: min(calc(100% - 40px), var(--school-container));
    margin-inline: auto;
    padding: 8px 0 92px;
}

.school-detail__heading-grid,
.school-detail__grid {
    display: grid;
    grid-template-columns: var(--school-left) minmax(0, 1fr) var(--school-right);
    gap: var(--school-gap);
}

.school-detail__heading {
    min-width: 0;
    padding: 0 0 20px;
    text-align: center;
}

.school-detail__heading h1 {
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(28px, 3.1vw, 38px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.school-detail__heading p {
    max-width: 640px;
    margin: 9px auto 0;
    color: #777b91;
    font-size: 12px;
    line-height: 1.45;
}

.school-detail__left,
.school-detail__right,
.school-detail__main {
    min-width: 0;
}

.school-detail__left,
.school-detail__right {
    align-self: stretch;
}

.school-toc {
    position: sticky;
    top: 22px;
    padding-top: 7px;
    color: #64687d;
    font-size: 11px;
    line-height: 1.5;
}

.school-toc__title {
    margin: 0 0 13px;
    color: var(--color-ink);
    font-size: 12px;
    font-weight: 700;
}

.school-toc ol {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 19px;
}

.school-toc a {
    transition: color var(--transition);
}

.school-toc a:hover {
    color: var(--color-primary);
}

.school-detail__main {
    display: grid;
    align-content: start;
    gap: 22px;
}

.school-overview {
    display: grid;
    gap: 17px;
}

.school-summary-table-wrap {
    overflow-x: auto;
    border: 1px solid #ececf5;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 9px 30px rgba(43, 47, 91, 0.035);
}

.school-summary-table {
    width: 100%;
    min-width: 610px;
    border-collapse: collapse;
    color: #55586e;
    font-size: 10px;
    line-height: 1.35;
}

.school-summary-table th,
.school-summary-table td {
    padding: 11px 10px;
    border-right: 1px solid #f0f0f7;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.school-summary-table th:last-child,
.school-summary-table td:last-child {
    border-right: 0;
}

.school-summary-table thead {
    color: #383c63;
    background: #fafaff;
}

.school-summary-table th {
    font-weight: 700;
}

.school-summary-table tbody td {
    border-top: 1px solid #f0f0f7;
}

.school-summary-table th:nth-child(2),
.school-summary-table td:nth-child(2) {
    width: 32%;
    text-align: left;
    white-space: normal;
}

.school-summary-table strong {
    color: var(--color-primary);
    font-weight: 500;
}

.school-intro {
    color: #4f5268;
    font-size: 13px;
    line-height: 1.55;
}

.school-intro p {
    margin-bottom: 7px;
}

.school-intro p:last-child {
    margin-bottom: 0;
}

.school-quick-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 15px 16px;
    border-radius: 14px;
    background: #f7f7fc;
}

.school-quick-facts > div {
    min-width: 0;
    padding: 8px 13px;
    border-right: 1px solid #e1e2ed;
}

.school-quick-facts > div:nth-child(3n),
.school-quick-facts > div:last-child {
    border-right: 0;
}

.school-quick-facts > div:nth-child(n + 4) {
    border-top: 1px solid #e1e2ed;
}

.school-quick-facts dt,
.school-quick-facts dd {
    margin: 0;
}

.school-quick-facts dt {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #777b91;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.35;
}

.school-quick-facts dt svg {
    flex: 0 0 auto;
    color: #9296ad;
}

.school-quick-facts dd {
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: #34385f;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.school-contact-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 13px 18px;
    padding: 19px 20px;
    border-radius: 14px;
    background: #f7f7fc;
}

.school-contact-card h2 {
    grid-column: 1 / -1;
    margin: 0 0 1px;
    color: var(--color-ink);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.school-contact-card__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 18px;
    align-content: center;
}

.school-contact-item {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 7px;
    color: #5d6076;
    font-size: 10px;
    line-height: 1.45;
}

.school-contact-item svg {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #9094ac;
}

.school-contact-item span {
    min-width: 0;
    overflow-wrap: anywhere;
}

a.school-contact-item:hover {
    color: var(--color-primary);
}

.school-contact-card__button {
    min-height: 35px;
    align-self: center;
    padding: 9px 16px;
    font-size: 10px;
    white-space: nowrap;
}

.school-copy,
.school-data-section,
.school-media-section {
    scroll-margin-top: 20px;
}

.school-copy h2,
.school-data-section h2,
.school-media-section h2 {
    margin: 0 0 12px;
    color: var(--color-ink);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.school-copy__content {
    color: #4f5268;
    font-size: 13px;
    line-height: 1.58;
}

.school-copy__content p,
.school-copy__content ul,
.school-copy__content ol {
    margin-top: 0;
    margin-bottom: 11px;
}

.school-copy__content h2,
.school-copy__content h3 {
    margin: 14px 0 7px;
    font-size: 14px;
    font-weight: 700;
}

.school-copy__content ul,
.school-copy__content ol {
    padding-left: 20px;
}

.school-copy__content li + li {
    margin-top: 4px;
}

.school-copy__content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.school-data-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.school-data-list > div {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #eeeeF6;
    border-radius: 12px;
    background: #fbfbfe;
}

.school-data-list > .school-data-list__wide {
    grid-column: 1 / -1;
}

.school-data-list dt,
.school-data-list dd {
    margin: 0;
}

.school-data-list dt {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888ca1;
    font-size: 10px;
    font-weight: 500;
}

.school-data-list dt svg {
    flex: 0 0 auto;
}

.school-data-list dd {
    margin-top: 5px;
    overflow-wrap: anywhere;
    color: #383c60;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
}

.school-source-note {
    margin: 12px 0 0;
    color: #989bad;
    font-size: 9px;
    text-align: right;
}

.school-detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.school-detail-gallery img {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 13px;
    object-fit: cover;
}

.school-map {
    height: 330px;
    overflow: hidden;
    border: 1px solid #ececf5;
    border-radius: 14px;
    background: #f7f7fc;
}

.school-detail__right {
    display: grid;
    align-content: start;
    gap: 18px;
}

.school-share-card {
    padding: 18px 17px;
    border-radius: 14px;
    background: #f7f7fc;
}

.school-share-card h2 {
    margin: 0 0 12px;
    color: var(--color-ink);
    font-size: 15px;
    font-weight: 700;
}

.school-share-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.school-share-card__links a {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: #4f86e8;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    transition: transform var(--transition), opacity var(--transition);
}

.school-share-card__links a:nth-child(2) {
    background: #34a8df;
}

.school-share-card__links a:nth-child(3) {
    color: #686d91;
    background: #eceefe;
}

.school-share-card__links a:nth-child(4) {
    color: #686d91;
    background: #eceefe;
}

.school-share-card__links a:hover {
    color: inherit;
    opacity: .88;
    transform: translateY(-1px);
}

.school-ad-stack {
    display: grid;
    gap: 12px;
    padding: 0;
    background: none;
}

.school-ad {
    position: relative;
    min-height: 0;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: none;
}

.school-ad img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1050px) {
    .page-school {
        --school-container: 930px;
        --school-left: 0px;
        --school-right: 210px;
        --school-gap: 20px;
    }

    .school-detail__heading-grid,
    .school-detail__grid {
        grid-template-columns: minmax(0, 1fr) var(--school-right);
    }

    .school-detail__heading-grid > div:first-child,
    .school-detail__left {
        display: none;
    }

    .school-detail__heading {
        grid-column: 1;
    }

    .school-detail__heading-grid > div:last-child {
        grid-column: 2;
    }
}

/* ==========================================================================
   EDTOP blog: archive, article and editorial workspace
   ========================================================================== */

.page-blog,
.page-blog-post {
    background:
        radial-gradient(circle at 12% 5%, rgba(91, 94, 232, .08), transparent 25rem),
        #fafafe;
}

.blog-index {
    padding-top: 56px;
    padding-bottom: 90px;
}

.blog-index__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 38px;
}

.blog-index__header > div {
    max-width: 790px;
}

.blog-index__header h1 {
    margin: 0 0 14px;
    color: var(--color-ink);
    font-size: clamp(40px, 5vw, 66px);
    letter-spacing: -.045em;
    line-height: 1.02;
}

.blog-index__header p {
    max-width: 720px;
    margin: 0;
    color: #74788f;
    font-size: 17px;
    line-height: 1.65;
}

.blog-index__header > span {
    flex: 0 0 auto;
    padding: 11px 18px;
    border: 1px solid #e0e2f1;
    border-radius: 999px;
    color: #72768d;
    background: rgba(255, 255, 255, .76);
    font-size: 12px;
    font-weight: 650;
}

.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.blog-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #e4e5f0;
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 45px rgba(48, 52, 91, .055);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.blog-card:hover {
    border-color: #d7d9ee;
    box-shadow: 0 22px 58px rgba(48, 52, 91, .105);
    transform: translateY(-3px);
}

.blog-card__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9.5;
    color: #6d70d8;
    background: #eff0fb;
}

.blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.blog-card:hover .blog-card__media img {
    transform: scale(1.025);
}

.blog-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .62), transparent),
        linear-gradient(145deg, #eff0ff, #f9f4e3);
}

.blog-card__body {
    display: flex;
    min-height: 250px;
    flex: 1;
    flex-direction: column;
    padding: 22px 23px 20px;
}

.blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 15px;
    margin-bottom: 13px;
    color: #999caf;
    font-size: 10px;
    font-weight: 600;
}

.blog-card__meta span::before {
    margin-right: 15px;
    content: "•";
}

.blog-card h2 {
    margin: 0 0 12px;
    font-size: 20px;
    letter-spacing: -.025em;
    line-height: 1.3;
}

.blog-card h2 a {
    color: #30345f;
}

.blog-card h2 a:hover {
    color: var(--color-primary);
}

.blog-card__body > p {
    display: -webkit-box;
    margin: 0 0 21px;
    overflow: hidden;
    color: #74788d;
    font-size: 12px;
    line-height: 1.62;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.blog-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #eff0f5;
    color: #8e91a3;
    font-size: 10px;
    font-weight: 650;
}

.blog-card footer a {
    color: var(--color-primary);
    font-size: 11px;
}

.blog-pagination {
    margin-top: 40px;
}

.blog-empty {
    padding: 70px 30px;
    border: 1px solid #e3e4ef;
    border-radius: 25px;
    background: #fff;
    text-align: center;
}

.blog-empty h2 {
    margin-bottom: 10px;
    color: var(--color-ink);
}

.blog-empty p {
    margin: 0;
    color: var(--color-muted);
}

.blog-article {
    padding-top: 44px;
    padding-bottom: 100px;
}

.blog-article__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 30px;
}

.blog-article__main {
    min-width: 0;
}

.blog-article-hero {
    padding: clamp(30px, 5vw, 58px);
    border: 1px solid #e0e2f3;
    border-radius: 30px;
    background:
        radial-gradient(circle at 90% 8%, rgba(86, 91, 232, .14), transparent 22rem),
        linear-gradient(135deg, #fff, #f8f8ff);
    box-shadow: 0 20px 58px rgba(43, 48, 92, .07);
}

.blog-article-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #292e5c;
    font-size: clamp(36px, 5.4vw, 64px);
    letter-spacing: -.05em;
    line-height: 1.05;
}

.blog-article-hero__lead {
    max-width: 850px;
    margin: 22px 0 0;
    color: #6b6f87;
    font-size: clamp(15px, 1.7vw, 19px);
    line-height: 1.65;
}

.blog-article-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 28px;
    color: #8b8fa3;
    font-size: 11px;
    font-weight: 600;
}

.blog-author-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.blog-author-chip i,
.blog-author-card__initial {
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #6266eb, #4246b8);
    font-style: normal;
    font-weight: 800;
}

.blog-author-chip i {
    width: 34px;
    height: 34px;
    font-size: 13px;
}

.blog-author-chip a,
.blog-author-chip strong {
    color: #464b70;
    font-weight: 700;
}

.blog-article-cover {
    overflow: hidden;
    aspect-ratio: 16 / 8.7;
    margin: 24px 0 0;
    border-radius: 27px;
    background: #eceefa;
    box-shadow: 0 18px 46px rgba(41, 45, 87, .08);
}

.blog-article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-article-copy {
    margin-top: 24px;
    padding: clamp(27px, 4.8vw, 54px);
    border: 1px solid #e5e6ef;
    border-radius: 27px;
    background: #fff;
}

.blog-article-copy.school-copy {
    margin-bottom: 0;
}

.blog-article-copy .school-copy__content {
    color: #50546a;
    font-size: 15px;
    line-height: 1.82;
}

.blog-article-copy .school-copy__content > :first-child {
    margin-top: 0;
}

.blog-article-copy .school-copy__content > :last-child {
    margin-bottom: 0;
}

.blog-article__main > .school-helpful,
.blog-article__main > .school-author-card,
.blog-article__main > .school-page-faq,
.blog-article__main > .school-comments {
    margin-top: 24px;
}

.blog-author-card__initial {
    width: 82px;
    height: 82px;
    font-size: 27px;
}

.blog-comments .school-comment header strong,
.blog-comments .school-comment p,
.blog-comments .school-comment-form label {
    font-size: 12px;
}

.blog-comments .school-comment time {
    font-size: 10px;
}

.blog-article__sidebar {
    position: sticky;
    top: 22px;
    display: grid;
    gap: 18px;
}

.blog-article__sidebar .school-share-card,
.blog-recent-card {
    padding: 22px;
    border: 1px solid rgba(224, 226, 240, .9);
    border-radius: 21px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 16px 45px rgba(45, 49, 88, .055);
    backdrop-filter: blur(15px);
}

.blog-article__sidebar h2 {
    margin: 0 0 17px;
    color: #343861;
    font-size: 15px;
}

.school-share-card__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.school-share-card__buttons a,
.school-share-card__buttons button {
    display: inline-flex;
    min-width: 39px;
    min-height: 39px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid rgba(213, 215, 235, .9);
    border-radius: 999px;
    color: #585d83;
    background: rgba(255, 255, 255, .88);
    font: 700 10px/1 Montserrat, sans-serif;
}

.school-share-card__buttons a:hover,
.school-share-card__buttons button:hover {
    border-color: #c5c8f1;
    color: var(--color-primary);
}

.blog-recent-card ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-recent-card li {
    padding: 13px 0;
    border-top: 1px solid #ececf3;
}

.blog-recent-card li:first-child {
    padding-top: 0;
    border-top: 0;
}

.blog-recent-card li a {
    display: block;
    color: #44496d;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.blog-recent-card li a:hover {
    color: var(--color-primary);
}

.blog-recent-card li span {
    display: block;
    margin-top: 5px;
    color: #999cad;
    font-size: 8.5px;
}

.blog-recent-card__all {
    display: inline-block;
    margin-top: 15px;
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 700;
}

.admin-list-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.admin-list-toolbar .admin-filter-bar {
    flex: 1;
    margin-bottom: 0;
}

.admin-filter-bar--posts {
    grid-template-columns: minmax(260px, 1fr) minmax(160px, 220px) auto;
}

.admin-post-cover {
    display: grid;
    gap: 15px;
}

.admin-post-cover__current {
    width: 100%;
    aspect-ratio: 16 / 9.5;
    border-radius: 13px;
    object-fit: cover;
    background: #eef0f7;
}

@media (max-width: 1000px) {
    .blog-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-article__layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 22px;
    }
}

@media (max-width: 800px) {
    .blog-article__layout {
        grid-template-columns: 1fr;
    }

    .blog-article__sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-list-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-filter-bar--posts {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .blog-index {
        padding-top: 32px;
        padding-bottom: 65px;
    }

    .blog-index__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
        margin-bottom: 26px;
    }

    .blog-index__header h1 {
        font-size: 38px;
    }

    .blog-index__header p {
        font-size: 14px;
    }

    .blog-card-grid,
    .blog-article__sidebar {
        grid-template-columns: 1fr;
    }

    .blog-card__body {
        min-height: 225px;
    }

    .blog-article {
        padding-top: 25px;
        padding-bottom: 70px;
    }

    .blog-article-hero {
        padding: 27px 22px;
        border-radius: 23px;
    }

    .blog-article-hero h1 {
        font-size: 34px;
    }

    .blog-article-hero__lead {
        margin-top: 17px;
        font-size: 14px;
    }

    .blog-article-cover,
    .blog-article-copy {
        border-radius: 21px;
    }

    .blog-article-copy {
        padding: 26px 21px;
    }

    .blog-article-copy .school-copy__content {
        font-size: 13px;
        line-height: 1.72;
    }

    .blog-author-card__initial {
        width: 62px;
        height: 62px;
    }

    .admin-filter-bar--posts {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card__media img {
        transition: none;
    }
}

@media (max-width: 760px) {
    .page-school .breadcrumbs-wrap,
    .school-detail {
        width: min(calc(100% - 28px), var(--school-container));
    }

    .school-detail {
        padding-bottom: 65px;
    }

    .school-detail__heading-grid,
    .school-detail__grid {
        display: block;
    }

    .school-detail__heading-grid > div,
    .school-detail__right {
        display: none;
    }

    .school-detail__heading {
        padding-bottom: 17px;
        text-align: left;
    }

    .school-detail__heading h1 {
        font-size: 28px;
    }

    .school-detail__heading p {
        margin-left: 0;
    }

    .school-detail__main {
        gap: 18px;
    }

    .school-summary-table-wrap {
        margin-right: -14px;
    }

    .school-quick-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .school-quick-facts > div,
    .school-quick-facts > div:nth-child(3n) {
        border-right: 1px solid #e1e2ed;
    }

    .school-quick-facts > div:nth-child(2n),
    .school-quick-facts > div:last-child {
        border-right: 0;
    }

    .school-quick-facts > div:nth-child(n + 3) {
        border-top: 1px solid #e1e2ed;
    }

    .school-contact-card {
        grid-template-columns: 1fr;
    }

    .school-contact-card__button {
        justify-self: start;
    }
}

@media (max-width: 520px) {
    .school-detail__heading h1 {
        font-size: 24px;
    }

    .school-summary-table {
        min-width: 570px;
    }

    .school-intro,
    .school-copy__content {
        font-size: 12px;
    }

    .school-quick-facts,
    .school-data-list,
    .school-contact-card__grid,
    .school-detail-gallery {
        grid-template-columns: 1fr;
    }

    .school-quick-facts > div,
    .school-quick-facts > div:nth-child(2n),
    .school-quick-facts > div:nth-child(3n) {
        border-right: 0;
        border-top: 1px solid #e1e2ed;
    }

    .school-quick-facts > div:first-child {
        border-top: 0;
    }

    .school-data-list > .school-data-list__wide {
        grid-column: auto;
    }

    .school-contact-card {
        padding: 17px;
    }

    .school-contact-card h2 {
        text-align: left;
    }
}

/* ========================================================================== 
   Catalog refinement v4: compact cards, custom filters and mobile polish
   ========================================================================== */

[hidden] {
    display: none !important;
}

/* Keep the search icon anchored to the input instead of the whole two-row form. */
.quick-search {
    position: static;
}

.quick-search__field {
    position: relative;
    min-width: 0;
}

.quick-search__icon {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.quick-search__field input {
    height: 50px;
    font-size: 14px;
}

/* Custom catalog filters */
.catalog-filters {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 18px;
    margin: 0 0 34px;
}

.catalog-filters__main,
.catalog-filters__side {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.catalog-filters__main {
    flex-wrap: wrap;
}

.catalog-filters__side {
    justify-content: flex-end;
}

.filter-dropdown {
    position: relative;
    min-width: 132px;
}

.filter-dropdown--city {
    min-width: 154px;
}

.filter-dropdown--ownership {
    min-width: 210px;
}

.filter-dropdown--sort {
    min-width: 218px;
}

.filter-dropdown[open] {
    z-index: 30;
}

.filter-dropdown summary {
    display: flex;
    min-height: 46px;
    cursor: pointer;
    user-select: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 17px 0 20px;
    border: 1px solid #e2e4f6;
    border-radius: 999px;
    outline: none;
    color: #a6a9bb;
    background: #fff;
    box-shadow: 0 7px 22px rgba(46, 50, 92, 0.025);
    font-size: 13px;
    font-weight: 500;
    list-style: none;
    transition: color var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.filter-dropdown summary::-webkit-details-marker {
    display: none;
}

.filter-dropdown summary::marker {
    display: none;
    content: "";
}

.filter-dropdown summary:hover,
.filter-dropdown[open] summary {
    border-color: #cfd2fb;
    color: var(--color-ink);
    box-shadow: 0 9px 27px rgba(57, 61, 113, 0.075);
}

.filter-dropdown summary:focus-visible {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(90, 94, 232, 0.11);
}

.filter-dropdown summary svg {
    flex: 0 0 auto;
    transition: transform var(--transition);
}

.filter-dropdown[open] summary svg {
    transform: rotate(180deg);
}

.filter-dropdown__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-dropdown__value.is-selected {
    color: var(--color-primary);
    font-weight: 600;
}

.filter-dropdown__menu {
    position: absolute;
    z-index: 50;
    top: calc(100% + 10px);
    left: 0;
    width: max-content;
    min-width: 250px;
    max-width: min(340px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid #e4e5f1;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(35, 39, 82, 0.16);
}

.filter-dropdown--city .filter-dropdown__menu {
    min-width: 300px;
}

.filter-dropdown__menu--right {
    right: 0;
    left: auto;
}

.filter-dropdown__options {
    max-height: 310px;
    overflow-y: auto;
    padding: 7px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cfd1e3 transparent;
}

.filter-dropdown__option {
    position: relative;
    display: block;
    cursor: pointer;
}

.filter-dropdown__option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.filter-dropdown__option span {
    position: relative;
    display: flex;
    min-height: 40px;
    align-items: center;
    padding: 8px 35px 8px 12px;
    border-radius: 11px;
    color: #50546d;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    transition: color var(--transition), background var(--transition);
}

.filter-dropdown__option span::after {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 8px;
    height: 4px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    content: "";
    opacity: 0;
    transform: translateY(-65%) rotate(-45deg);
}

.filter-dropdown__option:hover span {
    color: var(--color-primary);
    background: #f4f4fe;
}

.filter-dropdown__option input:checked + span {
    color: var(--color-primary);
    background: #efeffd;
    font-weight: 600;
}

.filter-dropdown__option input:checked + span::after {
    opacity: 1;
}

.filter-dropdown__option input:focus-visible + span {
    box-shadow: inset 0 0 0 2px var(--color-primary);
}

.filter-dropdown__search {
    position: relative;
    display: block;
    padding: 10px 10px 4px;
}

.filter-dropdown__search svg {
    position: absolute;
    top: 50%;
    left: 22px;
    color: #a3a6b7;
    transform: translateY(-35%);
    pointer-events: none;
}

.filter-dropdown__search input {
    width: 100%;
    height: 39px;
    padding: 0 12px 0 37px;
    border: 1px solid #e5e6ef;
    border-radius: 11px;
    outline: none;
    color: var(--color-ink);
    background: #fafafd;
    font-size: 12px;
}

.filter-dropdown__search input:focus {
    border-color: #c9ccf7;
    box-shadow: 0 0 0 3px rgba(90, 94, 232, 0.08);
}

.filter-dropdown__async-options {
    max-height: 278px;
    overflow-y: auto;
    padding: 5px 7px 0;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cfd1e3 transparent;
}

.filter-dropdown__result {
    display: grid;
    width: 100%;
    min-height: 43px;
    cursor: pointer;
    appearance: none;
    align-content: center;
    gap: 2px;
    padding: 7px 12px;
    border: 0;
    border-radius: 11px;
    color: #50546d;
    background: transparent;
    text-align: left;
    font: inherit;
    transition: color var(--transition), background var(--transition);
}

.filter-dropdown__result:hover,
.filter-dropdown__result:focus-visible {
    outline: none;
    color: var(--color-primary);
    background: #f4f4fe;
}

.filter-dropdown__result--all {
    min-height: 40px;
    color: #777b91;
    font-size: 12px;
    font-weight: 600;
}

.filter-dropdown__result-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.filter-dropdown__result-meta {
    color: #979aac;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
}

.filter-dropdown__status {
    min-height: 30px;
    margin: 0;
    padding: 7px 19px 10px;
    color: #9a9dae;
    font-size: 10px;
    line-height: 1.3;
}

.filter-dropdown__status.is-loading::before {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border: 1.5px solid #d5d6e8;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    content: "";
    animation: filter-spinner 0.7s linear infinite;
}

@keyframes filter-spinner {
    to {
        transform: rotate(360deg);
    }
}

.catalog-filters__reset {
    flex: 0 0 auto;
    padding: 8px 2px;
    color: #9296aa;
    font-size: 12px;
    font-weight: 600;
}

.catalog-filters__reset:hover {
    color: var(--color-primary);
}

/* Refined school cards */
.school-list {
    gap: 18px;
}

.school-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    min-height: 0;
    gap: 22px;
    padding: 18px 20px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: #f7f7fc;
}

.school-card__summary {
    display: grid;
    min-width: 0;
    grid-template-columns: 72px minmax(0, 1fr);
    align-content: center;
    align-items: start;
    gap: 5px 17px;
}

.school-card__identity {
    grid-row: 1 / span 2;
    width: 72px;
    height: 72px;
}

.school-card__identity span {
    font-size: 27px;
}

.school-card__content {
    align-self: end;
}

.school-card h3 {
    display: -webkit-box;
    margin: 1px 0 5px;
    overflow: hidden;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.school-card__description {
    display: -webkit-box;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    color: #74788e;
    font-size: 11.5px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.school-card__actions {
    display: flex;
    min-width: 0;
    grid-column: 2;
    align-self: start;
    align-items: center;
    gap: 9px;
    padding-top: 5px;
}

.school-card__links {
    gap: 4px;
}

.school-card__links > a {
    width: 29px;
    height: 29px;
}

.school-card__more {
    min-width: 112px;
    min-height: 32px;
    padding: 7px 16px;
    font-size: 11px;
}

.school-card__tags {
    margin-left: auto;
    flex-wrap: nowrap;
    gap: 5px;
}

.school-card__tags span {
    max-width: 112px;
    padding: 4px 9px;
    font-size: 9.5px;
}

.school-card__facts {
    display: grid;
    align-content: center;
    gap: 6px;
    margin: 0;
    padding: 2px 0 2px 20px;
    border-left: 1px solid #dfe0eb;
}

.school-card__fact {
    display: grid !important;
    min-width: 0;
    grid-template-columns: 132px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
    border: 0 !important;
}

.school-card__fact dt {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
    margin: 0 !important;
    color: #83879a;
    font-size: 10.5px;
    line-height: 1.25;
}

.school-card__fact dt svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    color: #aaadbc;
}

.school-card__fact dd {
    min-width: 0;
    max-width: none;
    margin: 0;
    overflow: hidden;
    color: #454960;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 940px) {
    .school-card {
        grid-template-columns: minmax(0, 1fr) 285px;
    }

    .school-card__fact {
        grid-template-columns: 118px minmax(0, 1fr) !important;
    }

    .school-card__tags span:nth-child(n + 2) {
        display: none;
    }
}

@media (max-width: 760px) {
    .quick-search {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quick-search__field input {
        height: 49px;
        padding-left: 48px;
        font-size: 13px;
    }

    .quick-search__icon {
        left: 18px;
    }

    .catalog-section {
        padding-top: 6px;
    }

    .catalog-heading {
        display: flex;
        align-items: end;
        margin-bottom: 21px;
    }

    .catalog-heading h2 {
        font-size: 30px;
    }

    .catalog-count {
        margin: 0 0 3px;
        white-space: nowrap;
    }

    .catalog-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 25px;
    }

    .catalog-filters__main,
    .catalog-filters__side {
        display: contents;
    }

    .filter-dropdown,
    .filter-dropdown--city,
    .filter-dropdown--ownership,
    .filter-dropdown--sort {
        width: 100%;
        min-width: 0;
    }

    .filter-dropdown summary {
        width: 100%;
        min-height: 44px;
        padding-inline: 15px;
        gap: 8px;
        font-size: 12px;
    }

    .catalog-filters__main .filter-dropdown:nth-child(even) .filter-dropdown__menu,
    .catalog-filters__side .filter-dropdown .filter-dropdown__menu {
        right: 0;
        left: auto;
    }

    .filter-dropdown__menu,
    .filter-dropdown--city .filter-dropdown__menu {
        min-width: min(300px, calc(100vw - 28px));
    }

    .catalog-filters__reset {
        grid-column: 1 / -1;
        justify-self: end;
        padding-right: 6px;
    }

    .school-list {
        gap: 14px;
    }

    .school-card {
        display: block;
        padding: 17px;
        border-radius: 20px;
    }

    .school-card:hover {
        transform: none;
    }

    .school-card__summary {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 4px 13px;
    }

    .school-card__identity {
        grid-row: 1;
        width: 58px;
        height: 58px;
    }

    .school-card__identity span {
        font-size: 23px;
    }

    .school-card__content {
        align-self: start;
    }

    .school-card h3 {
        margin-top: 2px;
        font-size: 15px;
        line-height: 1.25;
    }

    .school-card__description {
        font-size: 11.5px;
        -webkit-line-clamp: 2;
    }

    .school-card__actions {
        grid-column: 1 / -1;
        flex-wrap: wrap;
        gap: 8px;
        padding-top: 12px;
    }

    .school-card__more {
        min-width: 112px;
        min-height: 34px;
        font-size: 11px;
    }

    .school-card__tags {
        width: 100%;
        margin: 1px 0 0;
        justify-content: flex-start;
    }

    .school-card__tags span,
    .school-card__tags span:nth-child(n + 2) {
        display: block;
        max-width: min(145px, 43vw);
    }

    .school-card__facts {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 15px;
        padding: 11px 0 0;
        border-top: 1px solid #dfe0eb;
        border-left: 0;
    }

    .school-card__fact {
        min-height: 35px;
        grid-template-columns: 128px minmax(0, 1fr) !important;
        padding: 5px 0 !important;
        border-top: 1px solid rgba(223, 224, 235, 0.68) !important;
    }

    .school-card__fact:first-child {
        border-top: 0 !important;
    }

    .school-card__fact dt,
    .school-card__fact dd {
        font-size: 11px;
    }
}

@media (max-width: 470px) {
    .home-hero h1 {
        font-size: 32px;
        line-height: 1.08;
    }

    .home-hero > .page-container > p {
        font-size: 16px;
        line-height: 1.35;
    }

    .catalog-heading {
        align-items: flex-start;
    }

    .catalog-heading h2 {
        font-size: 28px;
        line-height: 1.08;
    }

    .catalog-count {
        padding-top: 4px;
        font-size: 12px;
    }

    .filter-dropdown summary {
        min-height: 42px;
        font-size: 11px;
    }

    .school-card__fact {
        grid-template-columns: 112px minmax(0, 1fr) !important;
    }

    .school-card__fact dt,
    .school-card__fact dd {
        font-size: 10.5px;
    }
}

/* Admin schools — compact WordPress-like editing workspace */
.page-admin {
    background: #f4f5f9;
}

.page-admin .site-main {
    min-height: calc(100vh - 76px);
    padding: 34px 0 70px;
}

.page-admin .site-footer {
    display: none;
}

.admin-workspace {
    width: min(calc(100% - 40px), 1240px);
    margin-inline: auto;
}

.admin-page-header,
.admin-editor-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.admin-page-header h1,
.admin-editor-header h1 {
    margin: 0;
    color: #292d52;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.admin-page-header p,
.admin-editor-header p {
    margin: 7px 0 0;
    color: #74788e;
    font-size: 13px;
    line-height: 1.5;
}

.admin-page-nav {
    display: flex;
    gap: 6px;
    padding: 5px;
    border: 1px solid #e1e3ec;
    border-radius: 12px;
    background: #fff;
}

.admin-page-nav a {
    padding: 9px 14px;
    border-radius: 8px;
    color: #666a80;
    font-size: 12px;
    font-weight: 600;
}

.admin-page-nav a:hover,
.admin-page-nav a.is-active {
    color: #fff;
    background: #5753d9;
}

.admin-filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(150px, .75fr)) auto;
    gap: 12px;
    align-items: end;
    padding: 18px;
    border: 1px solid #e3e5ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(41, 45, 82, 0.035);
}

.admin-filter-bar label,
.admin-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.admin-filter-bar label > span,
.admin-field > span {
    color: #4a4e68;
    font-size: 11px;
    font-weight: 700;
}

.admin-filter-bar input,
.admin-filter-bar select,
.admin-field input,
.admin-field select,
.admin-field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #dfe1ea;
    border-radius: 10px;
    outline: 0;
    color: #343858;
    background-color: #fff;
    font-size: 12px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.admin-filter-bar input,
.admin-filter-bar select,
.admin-field input,
.admin-field select {
    height: 42px;
    padding: 0 12px;
}

.admin-filter-bar select,
.admin-field select {
    padding-right: 34px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='%23777b91' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
}

.admin-field textarea {
    min-height: 96px;
    padding: 11px 12px;
    resize: vertical;
    line-height: 1.55;
}

.admin-filter-bar input:focus,
.admin-filter-bar select:focus,
.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
    border-color: #7772e7;
    box-shadow: 0 0 0 3px rgba(87, 83, 217, .11);
}

.admin-filter-bar__actions {
    display: flex;
    gap: 8px;
}

.admin-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.admin-button:hover {
    transform: translateY(-1px);
}

.admin-button--primary {
    color: #fff;
    background: #5753d9;
}

.admin-button--primary:hover {
    background: #4844c4;
}

.admin-button--quiet {
    border-color: #dfe1ea;
    color: #4e526d;
    background: #fff;
}

.admin-button--quiet:hover {
    border-color: #c8cae0;
    background: #f9f9fd;
}

.admin-button--wide {
    width: 100%;
}

.admin-list-summary {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 18px 2px 10px;
    color: #777b91;
    font-size: 12px;
}

.admin-list-summary strong {
    color: #30345a;
    font-size: 18px;
}

.admin-table-card {
    overflow: hidden;
    border: 1px solid #e1e3eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(41, 45, 82, 0.035);
}

.admin-schools-table {
    width: 100%;
    border-collapse: collapse;
    color: #555970;
    font-size: 12px;
}

.admin-schools-table th,
.admin-schools-table td {
    padding: 15px 17px;
    border-bottom: 1px solid #eceef3;
    text-align: left;
    vertical-align: middle;
}

.admin-schools-table th {
    color: #777b91;
    background: #fafafe;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.admin-schools-table tr:last-child td {
    border-bottom: 0;
}

.admin-schools-table tbody tr:hover {
    background: #fbfbff;
}

.admin-school-cell {
    width: 46%;
    min-width: 360px;
}

.admin-school-cell__title {
    display: inline-block;
    color: #30345b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.admin-school-cell__title:hover,
.admin-row-actions a:hover {
    color: #5753d9;
}

.admin-school-cell__meta,
.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 13px;
    margin-top: 5px;
    color: #8a8da0;
    font-size: 10px;
}

.admin-school-cell__meta span + span::before {
    content: "•";
    margin-right: 13px;
}

.admin-row-actions {
    margin-top: 7px;
    opacity: 0;
    transition: opacity .18s ease;
}

.admin-schools-table tr:hover .admin-row-actions,
.admin-row-actions:focus-within {
    opacity: 1;
}

.admin-row-actions a {
    color: #626681;
    font-weight: 600;
}

.admin-status {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-status--success { color: #13724b; background: #e9f8f1; }
.admin-status--warning { color: #8a6418; background: #fff5d9; }
.admin-status--muted { color: #717589; background: #eff0f5; }
.admin-status--info { color: #4d48bb; background: #efefff; }

.admin-empty-row {
    padding: 42px !important;
    color: #85899d;
    text-align: center !important;
}

.admin-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.admin-pagination a,
.admin-pagination span {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe1ea;
    border-radius: 9px;
    color: #62667d;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
}

.admin-pagination a:hover,
.admin-pagination a.is-current {
    border-color: #5753d9;
    color: #fff;
    background: #5753d9;
}

.admin-editor-header {
    align-items: center;
}

.admin-back-link {
    display: inline-block;
    margin-bottom: 10px;
    color: #676b82;
    font-size: 11px;
    font-weight: 600;
}

.admin-back-link:hover {
    color: #5753d9;
}

.admin-notice {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 600;
}

.admin-notice--success {
    border: 1px solid #bde8d5;
    color: #176b4b;
    background: #ecfaf4;
}

.admin-notice--error {
    border: 1px solid #f1c5cc;
    color: #a03949;
    background: #fff2f4;
}

.admin-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
    align-items: start;
}

.admin-editor-main,
.admin-editor-sidebar {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.admin-editor-sidebar {
    position: sticky;
    top: 18px;
}

.admin-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid #e1e3eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(41, 45, 82, 0.035);
}

.admin-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 17px;
}

.admin-card__header h2 {
    margin: 0;
    color: #30345b;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.015em;
}

.admin-card__header p {
    margin: 5px 0 0;
    color: #85899d;
    font-size: 11px;
    line-height: 1.5;
}

.admin-fields {
    display: grid;
    gap: 17px;
}

.admin-field {
    position: relative;
}

.admin-field small {
    justify-self: end;
    margin-top: -3px;
    color: #999caf;
    font-size: 9px;
}

.admin-field-error {
    color: #b64051;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.admin-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 2px 0 4px;
    padding: 12px;
    border-radius: 10px;
    background: #f7f7fc;
    cursor: pointer;
}

.admin-check input {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin-top: 1px;
    accent-color: #5753d9;
}

.admin-check span {
    display: grid;
    gap: 3px;
}

.admin-check strong {
    color: #444864;
    font-size: 11px;
}

.admin-check small {
    color: #85899d;
    font-size: 9px;
    line-height: 1.45;
}

.admin-publish-card {
    gap: 15px;
}

.admin-publish-card .admin-card__header {
    margin-bottom: 2px;
}

.admin-publish-card__updated {
    margin: 1px 0 0;
    color: #999caf;
    font-size: 9px;
    text-align: center;
}

.admin-permalink {
    display: block;
    overflow-wrap: anywhere;
    padding: 10px 11px;
    border-radius: 9px;
    color: #666a80;
    background: #f5f6fa;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    line-height: 1.5;
}

.content-editor {
    overflow: hidden;
    border: 1px solid #dfe1ea;
    border-radius: 12px;
    background: #fff;
}

.content-editor__tabs {
    display: flex;
    gap: 3px;
    padding: 7px;
    border-bottom: 1px solid #e7e8ef;
    background: #f8f8fc;
}

.content-editor__tabs button {
    padding: 8px 12px;
    border: 0;
    border-radius: 7px;
    color: #707489;
    background: transparent;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
}

.content-editor__tabs button:hover,
.content-editor__tabs button.is-active {
    color: #4541b6;
    background: #ececff;
}

.content-editor__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 10px;
    border-bottom: 1px solid #e7e8ef;
}

.content-editor__toolbar button {
    min-width: 32px;
    min-height: 30px;
    padding: 6px 9px;
    border: 1px solid #e0e2eb;
    border-radius: 7px;
    color: #555972;
    background: #fff;
    font-size: 10px;
    cursor: pointer;
}

.content-editor__toolbar button:hover {
    border-color: #bbbde0;
    color: #5753d9;
    background: #f7f7ff;
}

.content-editor__visual,
.content-editor__html,
.content-editor__preview {
    width: 100%;
    min-height: 470px;
    border: 0;
    outline: 0;
    background: #fff;
}

.content-editor__visual {
    overflow-y: auto;
    padding: 24px;
    color: #4f5268;
    font-size: 13px;
    line-height: 1.65;
}

.content-editor__visual:empty::before {
    content: attr(data-placeholder);
    color: #a1a4b3;
    pointer-events: none;
}

.content-editor__visual h2,
.content-editor__visual h3,
.content-editor__visual h4 {
    color: #30345b;
    line-height: 1.25;
}

.content-editor__visual h2 { font-size: 23px; }
.content-editor__visual h3 { font-size: 18px; }
.content-editor__visual h4 { font-size: 15px; }
.content-editor__visual a { color: #5753d9; text-decoration: underline; }
.content-editor__visual table { width: 100%; border-collapse: collapse; }
.content-editor__visual th,
.content-editor__visual td { padding: 8px; border: 1px solid #dddfea; }

.content-editor__html {
    display: block;
    padding: 20px;
    resize: vertical;
    color: #41455f;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
}

.content-editor__preview {
    display: block;
}

.content-editor__visual[hidden],
.content-editor__html[hidden],
.content-editor__preview[hidden],
.content-editor__toolbar[hidden] {
    display: none !important;
}

.admin-editor-help {
    margin-top: 10px;
    color: #8b8ea1;
    font-size: 9px;
    line-height: 1.5;
}

.admin-source-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border: 1px solid #e8e9f0;
    border-radius: 12px;
    overflow: hidden;
}

.admin-source-grid > div {
    display: grid;
    grid-template-columns: minmax(110px, .7fr) minmax(0, 1.3fr);
    gap: 12px;
    padding: 11px 13px;
    border-right: 1px solid #e8e9f0;
    border-bottom: 1px solid #e8e9f0;
}

.admin-source-grid > div:nth-child(2n) {
    border-right: 0;
}

.admin-source-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.admin-source-grid dt,
.admin-source-grid dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 10px;
    line-height: 1.45;
}

.admin-source-grid dt {
    color: #898c9e;
    font-weight: 600;
}

.admin-source-grid dd {
    color: #484c66;
    font-weight: 500;
}

.admin-mobile-savebar {
    display: none;
}

@media (max-width: 1120px) {
    .admin-filter-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-filter-bar__search {
        grid-column: span 2;
    }

    .admin-filter-bar__actions {
        justify-content: flex-end;
    }
}

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

    .admin-editor-sidebar {
        position: static;
        order: -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-mobile-savebar {
        position: sticky;
        z-index: 10;
        bottom: 0;
        display: block;
        margin: 18px -14px -55px;
        padding: 12px 14px;
        border-top: 1px solid #e0e2eb;
        background: rgba(244, 245, 249, .94);
        backdrop-filter: blur(10px);
    }
}

@media (max-width: 760px) {
    .page-admin .site-main {
        padding-top: 24px;
    }

    .admin-workspace {
        width: min(calc(100% - 28px), 1240px);
    }

    .admin-page-header,
    .admin-editor-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .admin-page-nav,
    .admin-editor-header__actions,
    .admin-editor-header__actions .admin-button {
        width: 100%;
    }

    .admin-page-nav a {
        flex: 1;
        text-align: center;
    }

    .admin-filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 14px;
    }

    .admin-filter-bar__search {
        grid-column: 1 / -1;
    }

    .admin-filter-bar__actions {
        grid-column: 1 / -1;
    }

    .admin-filter-bar__actions .admin-button {
        flex: 1;
    }

    .admin-card {
        padding: 17px;
        border-radius: 14px;
    }

    .admin-editor-sidebar {
        grid-template-columns: 1fr;
    }

    .content-editor__visual,
    .content-editor__html,
    .content-editor__preview {
        min-height: 400px;
    }

    .content-editor__visual {
        padding: 18px;
    }

    .admin-source-grid {
        grid-template-columns: 1fr;
    }

    .admin-source-grid > div,
    .admin-source-grid > div:nth-child(2n),
    .admin-source-grid > div:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid #e8e9f0;
    }

    .admin-source-grid > div:last-child {
        border-bottom: 0;
    }

    .admin-row-actions {
        opacity: 1;
    }
}

@media (max-width: 520px) {
    .admin-filter-bar {
        grid-template-columns: 1fr;
    }

    .admin-filter-bar__search,
    .admin-filter-bar__actions {
        grid-column: auto;
    }

    .admin-filter-bar__actions {
        flex-direction: column;
    }

    .content-editor__toolbar button {
        flex: 1 0 auto;
    }

    .admin-source-grid > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.school-copy__content h4 {
    margin: 13px 0 7px;
    color: var(--color-ink);
    font-size: 13px;
    font-weight: 700;
}

.school-copy__content blockquote {
    margin: 14px 0;
    padding: 13px 16px;
    border-left: 3px solid var(--color-primary);
    border-radius: 0 9px 9px 0;
    background: #f7f7fc;
}

.school-copy__content table {
    width: 100%;
    margin: 15px 0;
    border-collapse: collapse;
    font-size: 11px;
}

.school-copy__content th,
.school-copy__content td {
    padding: 9px 10px;
    border: 1px solid #e1e2ed;
    text-align: left;
    vertical-align: top;
}

.school-copy__content th {
    color: #393d62;
    background: #f7f7fc;
}

.school-copy__content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ========================================================================== 
   School editorial, FAQ, rating and comments
   ========================================================================== */

.school-editorial-list {
    display: grid;
    gap: 16px;
    margin-bottom: 34px;
}

.school-editorial-person {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
}

.school-editorial-person img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.school-editorial-person strong,
.school-editorial-person span {
    display: block;
}

.school-editorial-person strong {
    color: var(--color-ink);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
}

.school-editorial-person span {
    margin-top: 3px;
    color: #a0a3b5;
    font-size: 9px;
    line-height: 1.35;
}

.school-helpful {
    scroll-margin-top: 20px;
    padding: 22px 18px;
    border-radius: 15px;
    background: #f7f7fc;
    text-align: center;
}

.school-helpful h2 {
    margin: 0 0 10px;
    color: var(--color-ink);
    font-size: 14px;
    font-weight: 700;
}

.school-helpful__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.school-helpful__actions button {
    min-width: 82px;
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid #e1e2f0;
    border-radius: 10px;
    color: #4e526d;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.school-helpful__actions button:hover,
.school-helpful__actions button:focus-visible {
    border-color: #c9cbf8;
    color: var(--color-primary);
    box-shadow: 0 7px 20px rgba(80, 83, 190, .08);
}

.school-helpful__actions button span {
    margin-left: 3px;
    color: #a2a6ba;
    font-size: 15px;
}

.school-helpful__stats {
    margin: 9px 0 0;
    color: #9a9dae;
    font-size: 9px;
}

.school-form-message {
    margin: 0 0 10px;
    color: #7b7f93;
    font-size: 10px;
}

.school-form-message.is-success {
    color: #2e936b;
}

.school-form-message.is-error {
    color: #bd4f5d;
}

.school-author-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    padding: 17px 19px;
    border-radius: 15px;
    background: #f7f7fc;
}

.school-author-card img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.school-author-card h2,
.school-author-card p {
    margin: 0;
}

.school-author-card h2 {
    color: var(--color-ink);
    font-size: 13px;
    font-weight: 700;
}

.school-author-card .school-author-card__role {
    margin-top: 2px;
    color: #a0a3b5;
    font-size: 9px;
}

.school-author-card p:last-child {
    margin-top: 7px;
    color: #5e6278;
    font-size: 10px;
    line-height: 1.5;
}

.school-page-faq,
.school-comments {
    scroll-margin-top: 20px;
}

.school-page-faq > h2,
.school-comments > h2 {
    margin: 0 0 16px;
    color: var(--color-ink);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.02em;
    text-align: center;
}

.school-page-faq__list {
    display: grid;
    gap: 10px;
}

.school-page-faq details {
    overflow: hidden;
    border-radius: 12px;
    background: #f7f7fc;
}

.school-page-faq summary {
    position: relative;
    display: flex;
    min-height: 48px;
    cursor: pointer;
    align-items: center;
    padding: 12px 46px 12px 16px;
    color: #474b67;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.45;
    list-style: none;
}

.school-page-faq summary::-webkit-details-marker {
    display: none;
}

.school-page-faq summary::after {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #666a80;
    border-bottom: 1.5px solid #666a80;
    content: "";
    transform: translateY(-65%) rotate(45deg);
    transition: transform var(--transition);
}

.school-page-faq details[open] summary::after {
    transform: translateY(-20%) rotate(225deg);
}

.school-page-faq details > div {
    padding: 0 16px 14px;
    color: #62667c;
    font-size: 10px;
    line-height: 1.55;
}

.school-page-faq details > div > :first-child {
    margin-top: 0;
}

.school-page-faq details > div > :last-child {
    margin-bottom: 0;
}

.school-comment-list {
    display: grid;
    gap: 11px;
}

.school-comment {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #f7f7fc;
}

.school-comment__avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
}

.school-comment header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.school-comment header strong {
    color: #3b3f64;
    font-size: 10.5px;
    font-weight: 600;
}

.school-comment time {
    flex: 0 0 auto;
    color: #a2a5b6;
    font-size: 8.5px;
}

.school-comment p {
    margin: 5px 0 0;
    color: #62667b;
    font-size: 9.5px;
    line-height: 1.5;
}

.school-comments__empty {
    padding: 17px;
    border-radius: 12px;
    color: #9295a7;
    background: #f7f7fc;
    font-size: 10px;
    text-align: center;
}

.school-comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: end;
    gap: 13px 16px;
    margin-top: 22px;
}

.school-comment-form label {
    display: grid;
    gap: 7px;
    color: #41455f;
    font-size: 10px;
    font-weight: 600;
}

.school-comment-form__body {
    grid-column: 1 / -1;
}

.school-comment-form textarea,
.school-comment-form input {
    width: 100%;
    border: 1px solid #e0e2ee;
    border-radius: 12px;
    outline: none;
    color: #3d415d;
    background: #fff;
    font-size: 11px;
}

.school-comment-form textarea {
    min-height: 118px;
    resize: vertical;
    padding: 12px 14px;
}

.school-comment-form input {
    height: 39px;
    padding: 0 13px;
}

.school-comment-form textarea:focus,
.school-comment-form input:focus {
    border-color: #c6c9f6;
    box-shadow: 0 0 0 4px rgba(89, 93, 229, .08);
}

.school-comment-form .button {
    min-height: 39px;
}

.school-comment-form > p {
    grid-column: 1 / -1;
    margin: -3px 0 0;
    color: #a0a3b4;
    font-size: 8.5px;
}

.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Admin FAQ, imports and moderation */
.admin-card__header--actions {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.admin-faq-rows {
    display: grid;
    gap: 14px;
}

.admin-faq-row {
    display: grid;
    gap: 12px;
    padding: 15px;
    border: 1px solid #e6e7f0;
    border-radius: 13px;
    background: #fbfbfe;
}

.admin-faq-row__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-faq-row__head strong {
    color: var(--color-ink);
    font-size: 12px;
}

.admin-faq-row__head button {
    padding: 0;
    border: 0;
    color: #b45461;
    background: transparent;
    font-size: 10px;
    font-weight: 600;
}

.admin-check--compact {
    min-height: 0;
}

.admin-import-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-import-form {
    display: grid;
    gap: 16px;
}

.admin-import-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.admin-import-example {
    overflow-x: auto;
    padding: 12px;
    border-radius: 10px;
    color: #555a72;
    background: #f4f5fa;
    font-size: 10px;
    line-height: 1.55;
    white-space: pre;
}

.admin-import-example code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.admin-import-history {
    margin-top: 18px;
}

.admin-status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
}

.admin-status-tabs a {
    padding: 8px 12px;
    border: 1px solid #e1e3ed;
    border-radius: 999px;
    color: #70758d;
    background: #fff;
    font-size: 10px;
    font-weight: 600;
}

.admin-status-tabs a.is-active {
    border-color: var(--color-primary);
    color: #fff;
    background: var(--color-primary);
}

.admin-comment-list {
    display: grid;
    gap: 12px;
}

.admin-comment-card {
    padding: 16px;
    border: 1px solid #e5e6ef;
    border-radius: 14px;
    background: #fff;
}

.admin-comment-card > header,
.admin-comment-card > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.admin-comment-card > header div {
    display: grid;
    gap: 3px;
}

.admin-comment-card > header strong {
    color: var(--color-ink);
    font-size: 12px;
}

.admin-comment-card > header span:not(.admin-status) {
    color: #9a9eaf;
    font-size: 9px;
}

.admin-comment-card > p {
    margin: 14px 0;
    color: #555a71;
    font-size: 11px;
    line-height: 1.55;
}

.admin-comment-card > footer {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #ececf3;
}

.admin-comment-card > footer > a {
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 600;
}

.admin-comment-card > footer form {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-left: auto;
}

.admin-comment-card > footer button {
    padding: 7px 10px;
    border: 1px solid #dfe1ea;
    border-radius: 8px;
    color: #555a72;
    background: #fff;
    font-size: 9px;
    font-weight: 600;
}

.admin-comment-card > footer button:hover {
    border-color: #c8cbf5;
    color: var(--color-primary);
}

.admin-comment-card > footer button.is-danger {
    color: #b44e5d;
}

.admin-empty-state {
    padding: 36px 20px;
    border: 1px dashed #dfe1eb;
    border-radius: 14px;
    color: #9296a8;
    text-align: center;
}

@media (max-width: 760px) {
    .school-author-card {
        grid-template-columns: 58px minmax(0, 1fr);
        padding: 15px;
    }

    .school-author-card img {
        width: 58px;
        height: 58px;
    }

    .school-page-faq > h2,
    .school-comments > h2 {
        font-size: 22px;
        text-align: left;
    }

    .school-comment-form {
        grid-template-columns: 1fr;
    }

    .school-comment-form__body,
    .school-comment-form > p {
        grid-column: auto;
    }

    .admin-import-grid {
        grid-template-columns: 1fr;
    }

    .admin-card__header--actions,
    .admin-comment-card > header,
    .admin-comment-card > footer {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-comment-card > footer form {
        margin-left: 0;
    }
}
.admin-faq-row__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
}
.school-comment p,
.admin-comment-card > p {
    white-space: pre-line;
}
.school-helpful__actions button svg {
    margin-left: 4px;
    color: #a2a6ba;
    vertical-align: middle;
}

/* ========================================================================== 
   School page polish v7: readability, calmer rhythm and richer interactions
   ========================================================================== */

.page-school {
    --school-container: 1220px;
    --school-left: 176px;
    --school-right: 232px;
    --school-gap: 28px;
    background:
        radial-gradient(circle at 50% 0, rgba(92, 88, 232, .035), transparent 430px),
        #fff;
}

.page-school .breadcrumbs {
    font-size: 11px;
}

.school-detail {
    padding-top: 12px;
}

.school-detail__heading {
    padding-bottom: 28px;
}

.school-detail__heading h1 {
    font-size: clamp(34px, 3.6vw, 48px);
    line-height: 1.08;
}

.school-detail__heading p {
    max-width: 720px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.55;
}

.school-detail__main {
    gap: 30px;
}

.school-overview {
    gap: 21px;
}

.school-toc {
    font-size: 12px;
    line-height: 1.6;
}

.school-toc__title {
    font-size: 13px;
}

.school-editorial-person {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 11px;
}

.school-editorial-person img {
    width: 48px;
    height: 48px;
    box-shadow: 0 7px 20px rgba(44, 48, 88, .1);
}

.school-editorial-person strong {
    font-size: 12.5px;
}

.school-editorial-person span {
    font-size: 10.5px;
}

.school-summary-table-wrap {
    border-color: #e8e8f5;
    box-shadow: 0 12px 34px rgba(43, 47, 91, .05);
}

.school-summary-table {
    font-size: 11.5px;
}

.school-summary-table th,
.school-summary-table td {
    padding-block: 13px;
}

.school-intro {
    color: #454961;
    font-size: 15.5px;
    line-height: 1.68;
}

.school-intro p {
    margin-bottom: 10px;
}

.school-quick-facts,
.school-contact-card {
    border: 1px solid #ececf7;
    background: linear-gradient(135deg, #f9f9ff 0%, #f5f6ff 100%);
    box-shadow: 0 12px 34px rgba(43, 47, 91, .045);
}

.school-quick-facts {
    padding: 18px;
    border-radius: 17px;
}

.school-quick-facts > div {
    padding: 11px 15px;
}

.school-quick-facts dt {
    font-size: 11.5px;
}

.school-quick-facts dd {
    margin-top: 5px;
    font-size: 13px;
}

.school-contact-card {
    padding: 23px 24px;
    border-radius: 17px;
}

.school-contact-card h2 {
    font-size: 18px;
}

.school-contact-card__grid {
    gap: 11px 20px;
}

.school-contact-item {
    gap: 9px;
    font-size: 12.5px;
    line-height: 1.5;
}

.school-contact-card__button {
    min-height: 42px;
    padding-inline: 19px;
    font-size: 11.5px;
}

.school-copy h2,
.school-data-section h2,
.school-media-section h2 {
    margin-bottom: 16px;
    font-size: 23px;
}

.school-copy__content {
    color: #42465d;
    font-size: 15.5px;
    line-height: 1.75;
}

.school-copy__content p,
.school-copy__content ul,
.school-copy__content ol {
    margin-bottom: 16px;
}

.school-copy__content h2,
.school-copy__content h3,
.school-copy__content h4 {
    position: relative;
    color: #292e5d;
    letter-spacing: -.02em;
}

.school-copy__content h2 {
    margin: 29px 0 13px;
    padding-left: 15px;
    font-size: 23px;
    line-height: 1.25;
}

.school-copy__content h2::before {
    position: absolute;
    top: .12em;
    bottom: .12em;
    left: 0;
    width: 4px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--color-primary), #8b89ff);
    content: "";
}

.school-copy__content h3 {
    margin: 24px 0 11px;
    font-size: 19px;
}

.school-copy__content h4 {
    margin: 20px 0 9px;
    font-size: 16px;
}

.school-copy__content li + li {
    margin-top: 7px;
}

.school-copy__content blockquote {
    margin-block: 20px;
    padding: 17px 20px;
    font-size: 14.5px;
    line-height: 1.7;
}

.school-copy__content table {
    font-size: 12.5px;
}

.school-data-list {
    gap: 12px;
}

.school-data-list > div {
    padding: 15px 16px;
    border-color: #e9eaf4;
    border-radius: 14px;
    background: #fbfbff;
}

.school-data-list dt {
    font-size: 11.5px;
}

.school-data-list dd {
    margin-top: 6px;
    font-size: 13px;
}

.school-source-note {
    font-size: 10.5px;
}

.school-share-card h2 {
    font-size: 17px;
}

.school-author-card {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid #ececf7;
    border-radius: 18px;
    background: linear-gradient(135deg, #f9f9ff 0%, #f5f6ff 100%);
    box-shadow: 0 12px 34px rgba(43, 47, 91, .045);
}

.school-author-card img {
    width: 82px;
    height: 82px;
    box-shadow: 0 8px 24px rgba(43, 47, 91, .12);
}

.school-author-card h2 {
    font-size: 16px;
}

.school-author-card .school-author-card__role {
    margin-top: 4px;
    font-size: 11px;
}

.school-author-card p:last-child {
    margin-top: 9px;
    font-size: 12.5px;
    line-height: 1.6;
}

.school-helpful {
    display: grid;
    justify-items: center;
    gap: 15px;
    padding: 29px 24px;
    border: 1px solid #e8e8f7;
    border-radius: 20px;
    background:
        radial-gradient(circle at 15% 10%, rgba(94, 90, 235, .08), transparent 190px),
        linear-gradient(135deg, #f9f9ff 0%, #f4f5ff 100%);
    box-shadow: 0 14px 38px rgba(43, 47, 91, .05);
}

.school-helpful__heading {
    display: flex;
    max-width: 510px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    text-align: left;
}

.school-helpful__heading > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, var(--color-primary), #7774f0);
    box-shadow: 0 8px 22px rgba(90, 94, 232, .24);
    font-size: 18px;
    font-weight: 700;
}

.school-helpful h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.25;
}

.school-helpful__heading p {
    margin: 4px 0 0;
    color: #777b91;
    font-size: 11.5px;
    line-height: 1.5;
}

.school-helpful__actions {
    display: flex;
    gap: 12px;
}

.school-helpful__actions button {
    display: inline-flex;
    min-width: 112px;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 19px;
    border-color: #dadcf0;
    border-radius: 13px;
    font-size: 13.5px;
    line-height: 1;
    cursor: pointer;
}

.school-helpful__actions button svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    margin: 0;
    color: #9499b0;
    vertical-align: baseline;
}

.school-helpful__actions button:hover svg,
.school-helpful__actions button:focus-visible svg,
.school-helpful__actions button.is-selected svg {
    color: currentColor;
}

.school-helpful__actions button.is-selected {
    border-color: var(--color-primary);
    color: #fff;
    background: var(--color-primary);
    box-shadow: 0 10px 25px rgba(90, 94, 232, .22);
}

.school-helpful__actions button:disabled {
    cursor: wait;
    opacity: .65;
}

.school-helpful__stats,
.school-form-message {
    margin: 0;
    font-size: 11px;
}

.school-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.school-section-heading--center {
    max-width: 620px;
    justify-content: center;
    margin-inline: auto;
    text-align: left;
}

.school-section-heading__mark {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    color: var(--color-primary);
    background: #eeefff;
    font-size: 21px;
    font-weight: 800;
}

.school-section-heading h2,
.school-page-faq > h2,
.school-comments > h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
}

.school-section-heading p {
    margin: 5px 0 0;
    color: #85899d;
    font-size: 12px;
    line-height: 1.5;
}

.school-page-faq__list {
    gap: 13px;
}

.school-page-faq details {
    overflow: hidden;
    border: 1px solid #e9eaf4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(43, 47, 91, .035);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.school-page-faq details:hover {
    border-color: #d9daf0;
    transform: translateY(-1px);
}

.school-page-faq details[open] {
    border-color: #cacbf4;
    box-shadow: 0 14px 34px rgba(75, 73, 178, .08);
}

.school-page-faq summary {
    display: grid;
    min-height: 68px;
    grid-template-columns: 38px minmax(0, 1fr) 34px;
    gap: 13px;
    align-items: center;
    padding: 14px 16px;
    color: #32375c;
    background: linear-gradient(135deg, #fbfbff 0%, #f7f7fd 100%);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.school-page-faq summary:focus-visible {
    outline: 0;
    box-shadow: inset 0 0 0 3px rgba(90, 94, 232, .2);
}

.school-page-faq summary::after {
    display: none;
}

.school-page-faq__number {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    color: var(--color-primary);
    background: #ececff;
    font-size: 11px;
    font-weight: 800;
}

.school-page-faq__question {
    min-width: 0;
}

.school-page-faq__toggle {
    position: relative;
    display: block;
    width: 34px;
    height: 34px;
    border: 1px solid #e0e1ef;
    border-radius: 50%;
    background: #fff;
}

.school-page-faq__toggle::before,
.school-page-faq__toggle::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.5px;
    border-radius: 99px;
    background: #686d89;
    content: "";
    transform: translate(-50%, -50%);
    transition: transform var(--transition), background var(--transition);
}

.school-page-faq__toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.school-page-faq details[open] .school-page-faq__toggle {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.school-page-faq details[open] .school-page-faq__toggle::before,
.school-page-faq details[open] .school-page-faq__toggle::after {
    background: #fff;
}

.school-page-faq details[open] .school-page-faq__toggle::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.school-page-faq details > div,
.school-page-faq__answer {
    padding: 18px 68px 20px;
    border-top: 1px solid #ececf5;
    color: #555a72;
    background: #fff;
    font-size: 13.5px;
    line-height: 1.7;
}

.school-comments > h2 {
    margin-bottom: 20px;
}

.school-comment {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    padding: 17px 18px;
    border: 1px solid #ececf5;
    border-radius: 15px;
    background: #fafaff;
}

.school-comment__avatar {
    width: 42px;
    height: 42px;
    font-size: 15px;
}

.school-comment header strong {
    font-size: 12.5px;
}

.school-comment time {
    font-size: 10px;
}

.school-comment p {
    margin-top: 7px;
    font-size: 12.5px;
    line-height: 1.65;
}

.school-comments__empty {
    font-size: 12.5px;
}

.school-comment-form label {
    font-size: 12px;
}

.school-comment-form textarea,
.school-comment-form input {
    font-size: 13px;
}

@media (max-width: 1050px) {
    .page-school {
        --school-container: 960px;
        --school-right: 220px;
        --school-gap: 24px;
    }
}

@media (max-width: 760px) {
    .page-school .breadcrumbs-wrap,
    .school-detail {
        width: min(calc(100% - 24px), var(--school-container));
    }

    .school-detail__heading h1 {
        font-size: clamp(27px, 8vw, 34px);
    }

    .school-detail__heading p {
        font-size: 13px;
    }

    .school-intro,
    .school-copy__content {
        font-size: 15px;
    }

    .school-copy__content h2 {
        font-size: 21px;
    }

    .school-copy__content h3 {
        font-size: 18px;
    }

    .school-section-heading--center {
        justify-content: flex-start;
        margin-inline: 0;
    }

    .school-section-heading h2,
    .school-page-faq > h2,
    .school-comments > h2 {
        font-size: 25px;
        text-align: left;
    }

    .school-page-faq summary {
        min-height: 62px;
        grid-template-columns: 34px minmax(0, 1fr) 32px;
        gap: 10px;
        padding: 12px;
        font-size: 13.5px;
    }

    .school-page-faq__number {
        width: 34px;
        height: 34px;
    }

    .school-page-faq__toggle {
        width: 32px;
        height: 32px;
    }

    .school-page-faq details > div,
    .school-page-faq__answer {
        padding: 16px 16px 18px;
        font-size: 13.5px;
    }
}

@media (max-width: 520px) {
    .school-detail__main {
        gap: 24px;
    }

    .school-summary-table {
        font-size: 11px;
    }

    .school-quick-facts,
    .school-contact-card,
    .school-helpful,
    .school-author-card {
        border-radius: 16px;
    }

    .school-helpful {
        justify-items: stretch;
        padding: 22px 18px;
    }

    .school-helpful__heading {
        justify-content: flex-start;
    }

    .school-helpful__heading > span {
        width: 38px;
        height: 38px;
    }

    .school-helpful h2 {
        font-size: 17px;
    }

    .school-helpful__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .school-helpful__actions button {
        width: 100%;
        min-width: 0;
    }

    .school-author-card {
        grid-template-columns: 64px minmax(0, 1fr);
        padding: 18px;
    }

    .school-author-card img {
        width: 64px;
        height: 64px;
    }

    .school-author-card p:last-child {
        grid-column: 1 / -1;
    }

    .school-section-heading__mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
}


/* ========================================================================== 
   Home page refinement v5 — synchronized with the school detail page
   ========================================================================== */

.page-home {
    background:
        radial-gradient(circle at 7% 5%, rgba(90, 94, 232, .055), transparent 330px),
        radial-gradient(circle at 94% 17%, rgba(255, 211, 70, .075), transparent 260px),
        #fff;
}

.page-home .page-container {
    width: min(calc(100% - 40px), 1120px);
}

.page-home .home-page {
    padding-bottom: 88px;
}

.page-home .home-hero {
    padding: 24px 0 26px;
    text-align: center;
}

.home-hero__panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 38px 44px 30px;
    border: 1px solid #ececf7;
    border-radius: 24px;
    background:
        radial-gradient(circle at 8% 5%, rgba(90, 94, 232, .12), transparent 240px),
        radial-gradient(circle at 92% 100%, rgba(255, 211, 70, .14), transparent 230px),
        linear-gradient(135deg, #fbfbff 0%, #f6f7ff 100%);
    box-shadow: 0 18px 48px rgba(43, 47, 91, .055);
}

.home-hero__panel::before,
.home-hero__panel::after {
    position: absolute;
    z-index: -1;
    width: 170px;
    height: 170px;
    border: 1px solid rgba(90, 94, 232, .10);
    border-radius: 50%;
    content: "";
}

.home-hero__panel::before {
    top: -112px;
    left: -72px;
    box-shadow: 0 0 0 28px rgba(90, 94, 232, .025);
}

.home-hero__panel::after {
    right: -86px;
    bottom: -118px;
    border-color: rgba(237, 196, 45, .18);
    box-shadow: 0 0 0 34px rgba(255, 211, 70, .035);
}

.home-hero__eyebrow {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    margin-bottom: 12px;
    padding: 6px 11px;
    border: 1px solid #dddffc;
    border-radius: 999px;
    color: var(--color-primary);
    background: rgba(255, 255, 255, .72);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .075em;
    line-height: 1;
    text-transform: uppercase;
}

.page-home .home-hero h1 {
    max-width: 760px;
    margin: 0 auto 9px;
    font-size: clamp(32px, 4vw, 43px);
    font-weight: 700;
    letter-spacing: -.032em;
    line-height: 1.12;
}

.page-home .home-hero > .page-container p,
.home-hero__panel > p {
    margin-bottom: 24px;
    color: #686c83;
    font-size: clamp(13px, 1.4vw, 15px);
    font-weight: 500;
    line-height: 1.5;
}

.page-home .quick-search {
    max-width: 820px;
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 12px;
}

.page-home .quick-search__field input {
    height: 48px;
    border-color: #dfe1ef;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 9px 27px rgba(43, 47, 91, .045);
    font-size: 12.5px;
}

.page-home .quick-search .button {
    min-height: 48px;
    padding-inline: 22px;
    font-size: 12px;
    box-shadow: 0 11px 27px rgba(90, 94, 232, .24);
}

.home-hero__benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px 22px;
    margin: 18px 0 0;
    padding: 0;
    color: #777b91;
    font-size: 9.5px;
    font-weight: 600;
    list-style: none;
}

.home-hero__benefits li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-hero__benefits span {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #5c61e9;
    box-shadow: 0 4px 10px rgba(90, 94, 232, .18);
    font-size: 9px;
}

.page-home .promo-section {
    padding-top: 2px;
    padding-bottom: 40px;
}

.page-home .promo-grid {
    gap: 14px;
}

.page-home .promo-banner {
    min-height: 0;
    border-radius: 16px;
    box-shadow: 0 11px 28px rgba(43, 47, 91, .075);
    transition: transform var(--transition), box-shadow var(--transition);
}

.page-home .promo-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(43, 47, 91, .10);
}

.home-section-heading {
    align-items: center;
    margin-bottom: 20px;
}

.home-section-heading__content {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.home-section-heading__mark {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    color: var(--color-primary);
    background: #eeefff;
    box-shadow: inset 0 0 0 1px rgba(90, 94, 232, .055);
}

.page-home .section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 2.7vw, 30px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.home-section-heading__content p {
    margin: 5px 0 0;
    color: #85899d;
    font-size: 10.5px;
    line-height: 1.45;
}

.page-home .catalog-count {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid #e5e6f2;
    border-radius: 999px;
    color: #898da1;
    background: #fafaff;
    font-size: 10.5px;
}

.page-home .catalog-count strong {
    margin-left: 4px;
    color: var(--color-primary);
    font-size: 11.5px;
}

/* Brighter, higher-contrast catalogue cards using the school-page visual language. */
.page-home .school-list {
    gap: 14px;
}

.page-home .school-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) 316px;
    gap: 18px;
    padding: 17px 18px;
    border: 1px solid #e9eaf4;
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(90, 94, 232, .035), transparent 24%),
        #fff;
    box-shadow: 0 10px 30px rgba(43, 47, 91, .045);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.page-home .school-card::before {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: linear-gradient(180deg, #5a5ee8 0%, #8582f2 62%, #f0cc39 100%);
    content: "";
}

.page-home .school-card::after {
    position: absolute;
    z-index: -1;
    top: -85px;
    left: -68px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(90, 94, 232, .035);
    content: "";
}

.page-home .school-card:hover {
    border-color: #d8daf2;
    transform: translateY(-2px);
    box-shadow: 0 17px 40px rgba(43, 47, 91, .085);
}

.page-home .school-card__summary {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 5px 16px;
}

.page-home .school-card__identity {
    width: 70px;
    height: 70px;
    border: 3px solid #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 10px 25px rgba(28, 58, 163, .20);
}

.page-home .school-card__identity span {
    font-size: 26px;
}

.page-home .school-card h3 {
    margin: 0 0 5px;
    color: #292e5d;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.28;
}

.page-home .school-card__description {
    color: #74788f;
    font-size: 10.8px;
    line-height: 1.5;
}

.page-home .school-card__actions {
    gap: 7px;
    padding-top: 6px;
}

.page-home .school-card__links {
    gap: 5px;
}

.page-home .school-card__links > a {
    width: 30px;
    height: 30px;
    border: 1px solid #e4e5ef;
    color: #8d91a6;
    background: #fff;
    box-shadow: 0 4px 12px rgba(43, 47, 91, .035);
}

.page-home .school-card__links > a:hover {
    border-color: #cfd1f8;
    color: var(--color-primary);
    background: #f5f5ff;
}

.page-home .school-card__more {
    min-width: 116px;
    min-height: 32px;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #575ce5 0%, #6d69ed 100%);
    box-shadow: 0 8px 19px rgba(90, 94, 232, .20);
    font-size: 10.5px;
}

.page-home .school-card__more svg {
    flex: 0 0 auto;
    transition: transform var(--transition);
}

.page-home .school-card__more:hover svg {
    transform: translateX(2px);
}

.page-home .school-card__tags {
    gap: 5px;
}

.page-home .school-card__tags span {
    max-width: 115px;
    padding: 5px 9px;
    border-color: #e1e2ef;
    color: #777b91;
    background: #fafaff;
    font-size: 8.8px;
    font-weight: 600;
}

.page-home .school-card__tags span:last-child {
    border-color: #dcdffc;
    color: #686de0;
    background: #f2f2ff;
}

.page-home .school-card__facts {
    align-content: center;
    gap: 5px;
    padding: 13px 15px;
    border: 1px solid #e9eaf5;
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0, rgba(90, 94, 232, .075), transparent 135px),
        linear-gradient(135deg, #f9f9ff 0%, #f5f6ff 100%);
}

.page-home .school-card__fact {
    grid-template-columns: 128px minmax(0, 1fr) !important;
    gap: 7px !important;
}

.page-home .school-card__fact dt {
    color: #85899d;
    font-size: 9.8px;
}

.page-home .school-card__fact dt svg {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    color: #999db1;
}

.page-home .school-card__fact dd {
    color: #343956;
    font-size: 9.9px;
    font-weight: 700;
}

.page-home .school-card__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.page-home .school-card__status > span {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(47, 143, 105, .10);
}

.page-home .school-card__status.text-danger > span {
    box-shadow: 0 0 0 3px rgba(188, 82, 97, .10);
}

/* Region links continue the same card language instead of looking like plain inputs. */
.page-home .regions-section {
    padding-top: 66px;
}

.page-home .regions-grid {
    gap: 11px;
}

.page-home .regions-grid a {
    position: relative;
    overflow: hidden;
    min-height: 50px;
    padding: 12px 14px 12px 16px;
    border-color: #e8e9f3;
    border-radius: 13px;
    background: linear-gradient(135deg, #fff 0%, #fbfbff 100%);
    box-shadow: 0 7px 20px rgba(43, 47, 91, .028);
    font-size: 11.5px;
    font-weight: 600;
}

.page-home .regions-grid a::before {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #6569e8;
    box-shadow: 0 0 0 4px #eeeeff;
    content: "";
}

.page-home .regions-grid a:hover {
    border-color: #cfd1f7;
    color: #484ccf;
    background: #f6f6ff;
    box-shadow: 0 11px 24px rgba(68, 72, 155, .065);
}

.regions-grid__name {
    min-width: 0;
    margin-right: auto;
    color: inherit !important;
}

.page-home .regions-grid__arrow {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    color: var(--color-primary);
    background: #eeeeff;
    font-size: 13px;
    transition: transform var(--transition), background var(--transition);
}

.page-home .regions-grid a:hover .regions-grid__arrow {
    background: #e3e4ff;
    transform: translateX(2px);
}

/* The home FAQ deliberately reuses the complete school-page FAQ component. */
.page-home .home-faq-section {
    max-width: 900px;
    padding-top: 72px;
}

.page-home .home-faq-section .school-section-heading {
    margin-bottom: 20px;
}

.page-home .home-faq-section .school-section-heading h2 {
    font-size: 30px;
}

.page-home .home-faq-section .school-page-faq__list {
    gap: 13px;
}

@media (max-width: 940px) {
    .page-home .school-card {
        grid-template-columns: minmax(0, 1fr) 285px;
    }

    .page-home .school-card__fact {
        grid-template-columns: 116px minmax(0, 1fr) !important;
    }
}

@media (max-width: 760px) {
    .page-home .page-container {
        width: min(calc(100% - 28px), 1120px);
    }

    .page-home .home-hero {
        padding-top: 16px;
    }

    .home-hero__panel {
        padding: 29px 20px 24px;
        border-radius: 20px;
    }

    .page-home .home-hero h1 {
        font-size: clamp(29px, 9vw, 36px);
    }

    .page-home .quick-search {
        grid-template-columns: 1fr;
    }

    .home-hero__benefits {
        display: grid;
        justify-content: start;
        max-width: 330px;
        margin: 17px auto 0;
        text-align: left;
    }

    .page-home .promo-grid {
        gap: 11px;
    }

    .page-home .promo-banner {
        min-height: 0;
    }

    .home-section-heading {
        align-items: flex-end;
    }

    .home-section-heading__mark {
        width: 40px;
        height: 40px;
    }

    .page-home .section-heading h2 {
        font-size: 25px;
    }

    .home-section-heading__content p {
        display: none;
    }

    .page-home .school-card {
        display: block;
        padding: 16px;
        border-radius: 18px;
    }

    .page-home .school-card__summary {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 4px 12px;
    }

    .page-home .school-card__identity {
        width: 58px;
        height: 58px;
    }

    .page-home .school-card__identity span {
        font-size: 22px;
    }

    .page-home .school-card h3 {
        font-size: 14px;
    }

    .page-home .school-card__description {
        font-size: 10.5px;
    }

    .page-home .school-card__facts {
        margin-top: 14px;
        padding: 10px 13px;
        border: 1px solid #e7e8f3;
    }

    .page-home .school-card__fact {
        min-height: 33px;
        grid-template-columns: 125px minmax(0, 1fr) !important;
        border-top-color: rgba(220, 222, 237, .76) !important;
    }

    .page-home .school-card__fact dt,
    .page-home .school-card__fact dd {
        font-size: 10px;
    }

    .page-home .home-faq-section {
        padding-top: 58px;
    }

    .page-home .home-faq-section .school-section-heading {
        justify-content: flex-start;
        margin-inline: 0;
    }

    .page-home .home-faq-section .school-section-heading h2 {
        font-size: 25px;
    }
}

@media (max-width: 520px) {
    .home-hero__panel {
        padding-inline: 16px;
    }

    .home-hero__eyebrow {
        font-size: 8.5px;
    }

    .page-home .home-hero h1 {
        font-size: 29px;
    }

    .page-home .catalog-heading {
        align-items: center;
    }

    .page-home .catalog-count {
        min-height: 28px;
        padding: 6px 9px;
        font-size: 9.5px;
    }

    .page-home .school-card__actions {
        gap: 7px;
    }

    .page-home .school-card__tags {
        margin-top: 2px;
    }

    .page-home .school-card__fact {
        grid-template-columns: 110px minmax(0, 1fr) !important;
    }

    .page-home .regions-grid {
        grid-template-columns: 1fr;
    }
}

/* Compiled NMT/ZNO school ratings */
.school-rating {
    scroll-margin-top: 20px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid #e2e4ee;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(43, 47, 91, .055);
}

.school-rating__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.school-rating__title-wrap {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.school-rating__title-wrap h2 {
    margin: 0;
    font-size: 21px;
    letter-spacing: -.025em;
}

.school-rating__title-wrap p {
    margin: 4px 0 0;
    color: #8a8ea3;
    font-size: 10.5px;
    line-height: 1.4;
}

.school-rating__mark {
    display: flex;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    padding: 8px;
    border-radius: 12px;
    background: #f2f3ff;
}

.school-rating__mark i {
    display: block;
    width: 7px;
    border-radius: 2px 2px 0 0;
    background: var(--color-primary);
}

.school-rating__mark i:nth-child(1) { height: 19px; }
.school-rating__mark i:nth-child(2) { height: 26px; background: #8ad900; }
.school-rating__mark i:nth-child(3) { height: 14px; background: #ff9f1a; }

.school-rating__subject-select {
    position: relative;
    flex: 0 0 205px;
}

.school-rating__subject-select::after {
    position: absolute;
    top: 50%;
    right: 15px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #999daf;
    border-bottom: 2px solid #999daf;
    content: "";
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.school-rating__subject-select select {
    width: 100%;
    min-height: 46px;
    padding: 10px 38px 10px 14px;
    border: 1px solid #dfe1eb;
    border-radius: 13px;
    color: #34385d;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    appearance: none;
    cursor: pointer;
}

.school-rating__subject-select select:focus-visible {
    border-color: var(--color-primary);
    outline: 3px solid rgba(90, 94, 232, .14);
}

.school-rating__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.school-rating-card {
    min-width: 0;
    min-height: 112px;
    padding: 16px;
    border: 1px solid #f0f1f6;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(43, 47, 91, .045);
}

.school-rating-card--accent {
    border-color: #e6e7ff;
    background: linear-gradient(145deg, #eff0ff 0%, #f5f6ff 100%);
}

.school-rating-card__top {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.school-rating-card strong {
    min-width: 0;
    color: #34395f;
    font-size: clamp(28px, 4vw, 37px);
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1;
    overflow-wrap: anywhere;
}

.school-rating-card--accent strong {
    color: var(--color-primary);
}

.school-rating-card p {
    margin: 15px 0 0;
    color: #74798d;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.35;
}

.school-rating-delta {
    flex: 0 0 auto;
    margin-top: 1px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.school-rating-delta.is-worse {
    color: #d84c58;
    background: #ffebed;
}

.school-rating-delta.is-better {
    color: #24815e;
    background: #e6f6ef;
}

.school-rating__chart-panel {
    margin-top: 19px;
    padding-top: 18px;
    border-top: 1px solid #eff0f5;
}

.school-rating__chart-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 4px;
}

.school-rating__chart-heading h3 {
    margin: 0;
    font-size: 14px;
}

.school-rating__chart-heading p,
.school-rating__chart-note {
    margin: 3px 0 0;
    color: #969aad;
    font-size: 9.5px;
    line-height: 1.45;
}

.school-rating__chart-note {
    max-width: 160px;
    text-align: right;
}

.school-rating-chart {
    position: relative;
    min-height: 250px;
}

.school-rating-chart svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.school-rating-chart__grid line,
.school-rating-chart__x-axis line {
    stroke: #eceef4;
    stroke-width: 1;
}

.school-rating-chart__grid text,
.school-rating-chart__x-axis text {
    fill: #9da2b4;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 10px;
}

.school-rating-chart__line {
    fill: none;
    stroke: var(--color-primary);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.school-rating-chart__points circle {
    fill: #fff;
    stroke: var(--color-primary);
    stroke-width: 3;
    transition: r var(--transition), fill var(--transition);
}

.school-rating-chart__points circle:hover,
.school-rating-chart__points circle:focus {
    r: 7;
    fill: #f1f2ff;
    outline: none;
}

.school-rating-chart__empty {
    display: grid;
    min-height: 230px;
    place-items: center;
    margin: 0;
    color: #9296a9;
    font-size: 12px;
    text-align: center;
}

.school-rating-subjects {
    margin-top: 4px;
    border-top: 1px solid #eff0f5;
}

.school-rating-subjects summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 0 0;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}

.school-rating-subjects summary::-webkit-details-marker { display: none; }

.school-rating-subjects summary > span:last-child {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform var(--transition);
}

.school-rating-subjects[open] summary > span:last-child {
    transform: translateY(2px) rotate(225deg);
}

.school-rating-subjects__body {
    padding-top: 16px;
}

.school-rating-table-wrap {
    overflow-x: auto;
    border: 1px solid #eceef5;
    border-radius: 13px;
}

.school-rating-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    color: #565a72;
    font-size: 10px;
}

.school-rating-table th,
.school-rating-table td {
    padding: 10px 9px;
    border-right: 1px solid #f0f1f6;
    border-bottom: 1px solid #f0f1f6;
    text-align: center;
}

.school-rating-table tr:last-child th,
.school-rating-table tr:last-child td { border-bottom: 0; }
.school-rating-table th:last-child,
.school-rating-table td:last-child { border-right: 0; }

.school-rating-table thead th {
    color: #3f4368;
    background: #fafaff;
    font-weight: 700;
}

.school-rating-table tbody th {
    color: #414566;
    text-align: left;
    font-weight: 600;
}

.school-rating__method-note {
    margin: 10px 0 0;
    color: #989cad;
    font-size: 9px;
    line-height: 1.5;
}

.admin-card--rating-import {
    border-color: #dfe0fb;
    background: linear-gradient(145deg, #fff 0%, #fafaff 100%);
}

.admin-import-example--command code {
    overflow-wrap: anywhere;
    white-space: normal;
}

.admin-import-example--command p {
    margin: 8px 0 0;
    color: #85899e;
    font-size: 11px;
}

@media (max-width: 760px) {
    .school-rating {
        padding: 18px;
        border-radius: 18px;
    }

    .school-rating__header {
        align-items: stretch;
        flex-direction: column;
    }

    .school-rating__subject-select {
        flex-basis: auto;
    }

    .school-rating__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .school-rating-card {
        min-height: 106px;
    }
}

@media (max-width: 520px) {
    .school-rating {
        margin-inline: -2px;
        padding: 16px 13px;
    }

    .school-rating__title-wrap h2 {
        font-size: 19px;
    }

    .school-rating__metrics {
        gap: 8px;
    }

    .school-rating-card {
        min-height: 101px;
        padding: 13px 11px;
        border-radius: 13px;
    }

    .school-rating-card strong {
        font-size: 29px;
    }

    .school-rating-card p {
        margin-top: 13px;
        font-size: 10.5px;
    }

    .school-rating-delta {
        padding: 4px 5px;
        font-size: 8.5px;
    }

    .school-rating__chart-heading {
        display: block;
    }

    .school-rating__chart-note {
        max-width: none;
        text-align: left;
    }

    .school-rating-chart {
        min-height: 210px;
        overflow-x: auto;
    }

    .school-rating-chart svg {
        min-width: 590px;
    }
}

/* School rating — editorial data presentation */
.page-school .school-rating {
    padding: 20px;
    border-color: #e7e9f0;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(35, 42, 78, .045);
}

.page-school .school-rating__header {
    margin-bottom: 15px;
}

.page-school .school-rating__header h2 {
    margin: 0;
    color: #20243c;
    font-size: clamp(21px, 3vw, 25px);
    letter-spacing: -.035em;
    line-height: 1.15;
}

.page-school .school-rating__header p {
    margin: 6px 0 0;
    color: #8b90a2;
    font-size: 11px;
    line-height: 1.4;
}

.school-rating__subjects-nav {
    display: flex;
    gap: 7px;
    margin: 0 -4px 14px;
    padding: 3px 4px 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.school-rating__subjects-nav::-webkit-scrollbar {
    display: none;
}

.school-rating__subject-button {
    min-height: 37px;
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #5f6479;
    background: #f6f7f9;
    font: inherit;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition:
        color var(--transition),
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.school-rating__subject-button:hover {
    color: #34395f;
    background: #f0f1f6;
}

.school-rating__subject-button.is-active {
    border-color: rgba(90, 94, 232, .5);
    color: var(--color-primary);
    background: #fff;
    box-shadow: 0 4px 12px rgba(90, 94, 232, .09);
}

.school-rating__subject-button:focus-visible {
    outline: 3px solid rgba(90, 94, 232, .15);
    outline-offset: 1px;
}

.school-rating__summary {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 11px;
}

.school-rating__rank-card,
.school-rating__score-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #e7e9f2;
    border-radius: 15px;
}

.school-rating__rank-card {
    border-color: #e3e5fb;
    background:
        radial-gradient(circle at 88% 10%, rgba(90, 94, 232, .1), transparent 120px),
        #f8f8ff;
}

.school-rating__score-card {
    border-color: #dfeee8;
    background:
        radial-gradient(circle at 88% 7%, rgba(47, 171, 120, .1), transparent 130px),
        #f7fbf9;
}

.school-rating__panel-label {
    margin: 0;
    color: #6f7488;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
}

.school-rating__rank-main {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 9px;
    margin-top: 12px;
}

.school-rating__rank-value {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    color: var(--color-primary);
    font-size: 25px;
    font-weight: 760;
    letter-spacing: -.05em;
    line-height: 1;
}

.school-rating__rank-value strong {
    font-size: 40px;
    font-weight: 760;
}

.school-rating__rank-main > span:last-child {
    min-width: 0;
    color: #34384f;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.school-rating__rank-card > .school-rating-delta {
    display: table;
    margin-top: 10px;
}

.school-rating__rank-note {
    margin: 10px 0 0;
    color: #777c91;
    font-size: 10px;
    line-height: 1.45;
}

.school-rating__rank-scopes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 17px 0 0;
}

.school-rating__rank-scopes > div {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(90, 94, 232, .12);
    border-radius: 11px;
    background: rgba(255, 255, 255, .62);
}

.school-rating__rank-scopes dt,
.school-rating__exam-stats dt {
    color: #8a8fa1;
    font-size: 8.5px;
    font-weight: 650;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.school-rating__rank-scopes dd {
    margin: 4px 0 0;
    color: #2e324b;
    font-size: 11px;
    line-height: 1;
}

.school-rating__rank-scopes strong {
    font-size: 17px;
    font-weight: 760;
}

.school-rating__score-main {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.school-rating__score-main > strong {
    color: #14865c;
    font-size: clamp(40px, 6vw, 50px);
    font-weight: 760;
    letter-spacing: -.055em;
    line-height: 1;
}

.school-rating__exam-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin: 17px 0 0;
}

.school-rating__exam-stats > div {
    min-width: 0;
    padding: 11px 8px;
    border: 1px solid rgba(29, 132, 93, .11);
    border-radius: 10px;
    background: rgba(255, 255, 255, .62);
    text-align: center;
}

.school-rating__exam-stats dd {
    margin: 5px 0 0;
    color: #273d36;
    font-size: 16px;
    font-weight: 750;
    line-height: 1;
}

.page-school .school-rating-delta {
    margin: 0;
    padding: 5px 8px;
    font-size: 8.5px;
}

.page-school .school-rating__chart-panel {
    margin-top: 11px;
    padding: 17px 18px 8px;
    border: 1px solid #e8ebf3;
    border-radius: 15px;
    background:
        linear-gradient(180deg, rgba(247, 249, 255, .92), rgba(255, 255, 255, .65)),
        #fff;
}

.page-school .school-rating__chart-heading {
    margin-bottom: -2px;
}

.page-school .school-rating__chart-heading h3 {
    color: #30354f;
    font-size: 12px;
}

.page-school .school-rating-chart {
    min-height: 220px;
}

.page-school .school-rating-chart.is-single-year {
    min-height: 0;
}

.page-school .school-rating-chart__grid line {
    stroke: #edf0f6;
}

.page-school .school-rating-chart__x-axis line {
    stroke: rgba(230, 233, 242, .58);
}

.school-rating-chart__area {
    fill: rgba(90, 94, 232, .055);
}

.page-school .school-rating-chart__line {
    stroke-width: 2.5;
}

.school-rating-chart__point-label {
    fill: #30354f;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
}

.page-school .school-rating-chart__points circle {
    r: 5;
    stroke-width: 2.5;
}

.page-school .school-rating-subjects {
    margin-top: 22px;
    border-top: 0;
}

.school-rating-subjects__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.school-rating-subjects__heading h3 {
    margin: 0;
    color: #2e3249;
    font-size: 14px;
    letter-spacing: -.015em;
}

.school-rating-subjects__heading > span {
    color: #989cad;
    font-size: 9.5px;
    white-space: nowrap;
}

.school-rating-subjects__list,
.school-rating-subjects__more > div {
    display: grid;
    gap: 7px;
}

.school-rating-subject {
    display: grid;
    grid-template-columns: 42px minmax(115px, .8fr) minmax(360px, 1.7fr);
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border: 1px solid #e9ebf1;
    border-radius: 13px;
    background: #fff;
}

.school-rating-subject__badge {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(90, 94, 232, .12);
    border-radius: 11px;
    color: var(--color-primary);
    background: #f0f1ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .02em;
}

.school-rating-subject:nth-child(2n) .school-rating-subject__badge {
    color: #6f4fc1;
    background: #f2edff;
}

.school-rating-subject:nth-child(3n) .school-rating-subject__badge {
    color: #16835d;
    background: #eaf8f2;
}

.school-rating-subject h4 {
    min-width: 0;
    margin: 0;
    color: #32364e;
    font-size: 11px;
    line-height: 1.35;
}

.school-rating-subject dl {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    gap: 8px;
    margin: 0;
}

.school-rating-subject dl > div {
    min-width: 0;
}

.school-rating-subject dt {
    color: #989cad;
    font-size: 7.5px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.school-rating-subject dd {
    margin: 3px 0 0;
    color: #33374f;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
}

.school-rating-subjects__more {
    display: grid;
    gap: 7px;
}

.page-school .school-rating-subjects__more > summary {
    order: 2;
    padding: 12px 0 1px;
}

.page-school .school-rating-subjects__more > div {
    padding-top: 0;
}

.page-school .school-rating-subjects__more[open] > summary {
    order: 2;
}

.page-school .school-rating__method-note {
    max-width: 680px;
    margin-top: 13px;
}

@media (max-width: 760px) {
    .page-school .school-rating {
        padding: 18px;
    }

    .page-school .school-rating__header {
        display: block;
    }

    .school-rating__summary {
        grid-template-columns: 1fr 1fr;
    }

    .school-rating__rank-card,
    .school-rating__score-card {
        padding: 15px;
    }

    .school-rating__exam-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .school-rating-subject {
        grid-template-columns: 38px minmax(0, .85fr) minmax(315px, 1.8fr);
        gap: 10px;
        overflow-x: auto;
    }
}

@media (max-width: 620px) {
    .page-school .school-rating {
        padding: 15px 13px;
    }

    .school-rating__summary {
        grid-template-columns: 1fr;
    }

    .school-rating__rank-main {
        align-items: flex-end;
    }

    .page-school .school-rating__chart-panel {
        padding: 15px 10px 4px;
    }

    .page-school .school-rating-chart {
        min-height: 195px;
        overflow-x: auto;
    }

    .page-school .school-rating-chart.is-single-year {
        min-height: 0;
    }

    .page-school .school-rating-chart svg {
        min-width: 530px;
    }

    .page-school .school-rating__chart-note {
        display: none;
    }

    .school-rating-subjects__heading {
        display: block;
    }

    .school-rating-subjects__heading > span {
        display: block;
        margin-top: 4px;
    }

    .school-rating-subject {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 11px;
        overflow: visible;
    }

    .school-rating-subject dl {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
        padding-top: 9px;
        border-top: 1px solid #f0f1f5;
    }

    .school-rating-subject dt {
        white-space: normal;
    }

    .school-rating-subject dd {
        font-size: 10.5px;
    }
}

/* ========================================================================== 
   Rating-first catalogue cards — shared by home, region and settlement pages
   ========================================================================== */

.page-catalog:not(.page-home) {
    background:
        radial-gradient(circle at 7% 5%, rgba(90, 94, 232, .055), transparent 330px),
        radial-gradient(circle at 94% 17%, rgba(255, 211, 70, .075), transparent 260px),
        #fff;
}

.page-catalog .page-container {
    width: min(calc(100% - 40px), 1120px);
}

.page-catalog .catalog-page {
    padding: 35px 0 84px;
}

.page-catalog:not(.page-home) .catalog-section {
    padding: 0;
}

.page-catalog .catalog-heading h1,
.page-catalog .catalog-heading h2 {
    margin: 0;
    font-size: clamp(24px, 2.7vw, 30px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.page-catalog .catalog-count {
    display: inline-flex;
    min-height: 31px;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid #e5e6f2;
    border-radius: 999px;
    color: #898da1;
    background: #fafaff;
    font-size: 10.5px;
}

.page-catalog .catalog-count strong {
    margin-left: 4px;
    color: var(--color-primary);
    font-size: 11.5px;
}

.page-catalog .school-list {
    gap: 14px;
}

.page-catalog .school-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 18px;
    padding: 17px 18px;
    border: 1px solid #e9eaf4;
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(90, 94, 232, .035), transparent 24%),
        #fff;
    box-shadow: 0 10px 30px rgba(43, 47, 91, .045);
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.page-catalog .school-card::before {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: linear-gradient(180deg, #5a5ee8 0%, #8582f2 62%, #f0cc39 100%);
    content: "";
}

.page-catalog .school-card::after {
    position: absolute;
    z-index: -1;
    top: -85px;
    left: -68px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(90, 94, 232, .035);
    content: "";
}

.page-catalog .school-card:hover {
    border-color: #d8daf2;
    transform: translateY(-2px);
    box-shadow: 0 17px 40px rgba(43, 47, 91, .085);
}

.page-catalog .school-card__summary {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 5px 16px;
}

.page-catalog .school-card__identity {
    width: 70px;
    height: 70px;
    border: 3px solid #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 10px 25px rgba(28, 58, 163, .20);
}

.page-catalog .school-card__identity span {
    font-size: 26px;
}

.page-catalog .school-card h3 {
    margin: 0 0 5px;
    color: #292e5d;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.28;
}

.page-catalog .school-card__description {
    color: #74788f;
    font-size: 10.8px;
    line-height: 1.5;
}

.page-catalog .school-card__actions {
    gap: 7px;
    padding-top: 6px;
}

.page-catalog .school-card__links {
    gap: 5px;
}

.page-catalog .school-card__links > a {
    width: 30px;
    height: 30px;
    border: 1px solid #e4e5ef;
    color: #8d91a6;
    background: #fff;
    box-shadow: 0 4px 12px rgba(43, 47, 91, .035);
}

.page-catalog .school-card__links > a:hover {
    border-color: #cfd1f8;
    color: var(--color-primary);
    background: #f5f5ff;
}

.page-catalog .school-card__more {
    min-width: 116px;
    min-height: 32px;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #575ce5 0%, #6d69ed 100%);
    box-shadow: 0 8px 19px rgba(90, 94, 232, .20);
    font-size: 10.5px;
}

.page-catalog .school-card__more svg {
    flex: 0 0 auto;
    transition: transform var(--transition);
}

.page-catalog .school-card__more:hover svg {
    transform: translateX(2px);
}

.page-catalog .school-card__tags {
    gap: 5px;
}

.page-catalog .school-card__tags span {
    max-width: 115px;
    padding: 5px 9px;
    border-color: #e1e2ef;
    color: #777b91;
    background: #fafaff;
    font-size: 8.8px;
    font-weight: 600;
}

.page-catalog .school-card__tags span:last-child {
    border-color: #dcdffc;
    color: #686de0;
    background: #f2f2ff;
}

.page-catalog .school-card__facts {
    display: grid;
    min-width: 0;
    align-content: center;
    gap: 10px;
    padding: 12px 13px;
    border: 1px solid #e9eaf5;
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0, rgba(90, 94, 232, .075), transparent 135px),
        linear-gradient(135deg, #f9f9ff 0%, #f5f6ff 100%);
}

.page-catalog .school-card__facts--has-rating {
    grid-template-columns: minmax(0, 1fr) 103px;
    align-items: stretch;
}

.page-catalog .school-card__facts-list {
    display: grid;
    min-width: 0;
    align-content: center;
    gap: 5px;
}

.page-catalog .school-card__fact {
    grid-template-columns: 128px minmax(0, 1fr) !important;
    gap: 7px !important;
}

.page-catalog .school-card__facts--has-rating .school-card__fact {
    grid-template-columns: 105px minmax(0, 1fr) !important;
}

.page-catalog .school-card__fact dt {
    color: #85899d;
    font-size: 9.8px;
}

.page-catalog .school-card__fact dt svg {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    color: #999db1;
}

.page-catalog .school-card__fact dd {
    color: #343956;
    font-size: 9.9px;
    font-weight: 700;
}

.page-catalog .school-card__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.page-catalog .school-card__status > span {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(47, 143, 105, .10);
}

.page-catalog .school-card__status.text-danger > span {
    box-shadow: 0 0 0 3px rgba(188, 82, 97, .10);
}

.page-catalog .school-card__rating {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding-left: 11px;
    border-left: 1px solid rgba(204, 207, 232, .82);
    text-align: center;
}

.page-catalog .school-card__rating dt {
    margin: 0 0 5px;
    color: #8b8fa6;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.page-catalog .school-card__rating dd {
    margin: 0;
}

.page-catalog .school-card__rating a {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    color: #30366d;
}

.page-catalog .school-card__rating-trophy {
    display: grid;
    width: 31px;
    height: 31px;
    margin-bottom: 4px;
    place-items: center;
    border-radius: 10px;
    color: #676be5;
    background: linear-gradient(145deg, #eceeff, #fff7cf);
    box-shadow: inset 0 0 0 1px rgba(102, 107, 227, .09);
}

.page-catalog .school-card__rating strong {
    color: #575ce5;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
    white-space: nowrap;
}

.page-catalog .school-card__rating a > span:last-child {
    margin-top: 3px;
    color: #777c95;
    font-size: 8.5px;
    font-weight: 600;
    line-height: 1.2;
}

.page-catalog .school-card__rating a:hover strong {
    color: #3f44c8;
}

.page-catalog .catalog-cities {
    padding-top: 64px;
}

.page-catalog .catalog-cities .regions-grid {
    gap: 11px;
}

.page-catalog .catalog-cities .regions-grid a {
    position: relative;
    overflow: hidden;
    min-height: 50px;
    padding: 12px 14px 12px 16px;
    border-color: #e8e9f3;
    border-radius: 13px;
    background: linear-gradient(135deg, #fff 0%, #fbfbff 100%);
    box-shadow: 0 7px 20px rgba(43, 47, 91, .028);
    font-size: 11.5px;
    font-weight: 600;
}

.page-catalog .catalog-cities .regions-grid a::before {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #6569e8;
    box-shadow: 0 0 0 4px #eeeeff;
    content: "";
}

.page-catalog .catalog-cities .regions-grid a:hover {
    border-color: #cfd1f7;
    color: #484ccf;
    background: #f6f6ff;
    box-shadow: 0 11px 24px rgba(68, 72, 155, .065);
}

@media (max-width: 1040px) {
    .page-catalog .school-card {
        grid-template-columns: minmax(0, 1fr) 350px;
    }

    .page-catalog .school-card__facts--has-rating {
        grid-template-columns: minmax(0, 1fr) 94px;
    }

    .page-catalog .school-card__facts--has-rating .school-card__fact {
        grid-template-columns: 94px minmax(0, 1fr) !important;
    }
}

@media (max-width: 940px) {
    .page-catalog .school-card {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .page-catalog .school-card__facts--has-rating {
        grid-template-columns: minmax(0, 1fr) 88px;
    }

    .page-catalog .school-card__facts--has-rating .school-card__fact {
        grid-template-columns: 84px minmax(0, 1fr) !important;
    }

    .page-catalog .school-card__fact dt,
    .page-catalog .school-card__fact dd {
        font-size: 9.2px;
    }
}

@media (max-width: 760px) {
    .page-catalog .page-container {
        width: min(calc(100% - 28px), 1120px);
    }

    .page-catalog .catalog-page {
        padding: 24px 0 62px;
    }

    .page-catalog .catalog-heading {
        align-items: flex-end;
    }

    .page-catalog .catalog-heading h1,
    .page-catalog .catalog-heading h2 {
        font-size: 25px;
    }

    .page-catalog .school-card {
        display: block;
        padding: 16px;
        border-radius: 18px;
    }

    .page-catalog .school-card:hover {
        transform: none;
    }

    .page-catalog .school-card__summary {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 4px 12px;
    }

    .page-catalog .school-card__identity {
        width: 58px;
        height: 58px;
    }

    .page-catalog .school-card__identity span {
        font-size: 22px;
    }

    .page-catalog .school-card h3 {
        font-size: 14px;
    }

    .page-catalog .school-card__description {
        font-size: 10.5px;
    }

    .page-catalog .school-card__facts,
    .page-catalog .school-card__facts--has-rating {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 14px;
        padding: 0 13px 10px;
        border: 1px solid #e7e8f3;
    }

    .page-catalog .school-card__rating {
        grid-row: 1;
        min-height: 66px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 9px 0;
        border-bottom: 1px solid rgba(220, 222, 237, .82);
        border-left: 0;
        text-align: left;
    }

    .page-catalog .school-card__rating dt {
        order: 2;
        margin: 0;
        font-size: 8.5px;
    }

    .page-catalog .school-card__rating dd {
        order: 1;
    }

    .page-catalog .school-card__rating a {
        display: grid;
        grid-template-columns: 35px auto;
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 9px;
        text-align: left;
    }

    .page-catalog .school-card__rating-trophy {
        width: 35px;
        height: 35px;
        grid-row: 1 / span 2;
        margin: 0;
    }

    .page-catalog .school-card__rating strong {
        font-size: 19px;
    }

    .page-catalog .school-card__rating a > span:last-child {
        margin-top: 1px;
        font-size: 9px;
    }

    .page-catalog .school-card__facts-list {
        grid-row: 2;
        gap: 0;
        padding-top: 4px;
    }

    .page-catalog .school-card__fact,
    .page-catalog .school-card__facts--has-rating .school-card__fact {
        min-height: 33px;
        grid-template-columns: 125px minmax(0, 1fr) !important;
        padding: 5px 0 !important;
        border-top: 1px solid rgba(220, 222, 237, .76) !important;
    }

    .page-catalog .school-card__fact:first-child {
        border-top: 0 !important;
    }

    .page-catalog .school-card__fact dt,
    .page-catalog .school-card__fact dd {
        font-size: 10px;
    }
}

@media (max-width: 470px) {
    .page-catalog .catalog-heading {
        align-items: flex-start;
    }

    .page-catalog .catalog-heading h1,
    .page-catalog .catalog-heading h2 {
        font-size: 23px;
        line-height: 1.08;
    }

    .page-catalog .catalog-count {
        padding-top: 4px;
        font-size: 10px;
    }

    .page-catalog .school-card__fact,
    .page-catalog .school-card__facts--has-rating .school-card__fact {
        grid-template-columns: 112px minmax(0, 1fr) !important;
    }

    .page-catalog .school-card__fact dt,
    .page-catalog .school-card__fact dd {
        font-size: 9.7px;
    }
}

/* Catalogue card refinement v3: concise type, NMT score and contextual rank. */
.page-home .home-hero__panel {
    padding-top: 34px;
}

.page-catalog .school-card {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 378px);
}

.page-catalog .school-card__tags {
    margin-left: 0;
}

.page-catalog .school-card__tags span {
    max-width: 150px;
}

.page-catalog .school-card__insights {
    display: grid;
    min-width: 0;
    align-content: stretch;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e6e8f5;
    border-radius: 15px;
    background:
        radial-gradient(circle at 100% 0, rgba(90, 94, 232, .095), transparent 145px),
        linear-gradient(145deg, #fbfbff 0%, #f4f5ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

.page-catalog .school-card__type {
    min-width: 0;
    padding: 12px 14px 10px;
    border-bottom: 1px solid rgba(218, 220, 237, .84);
}

.page-catalog .school-card__type dt,
.page-catalog .school-card__score dt {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    margin: 0 0 5px;
    color: #8a8ea4;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .055em;
    line-height: 1.2;
    text-transform: uppercase;
}

.page-catalog .school-card__type dt svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: #888ddd;
}

.page-catalog .school-card__type dd {
    display: -webkit-box;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #303557;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.32;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.page-catalog .school-card__insights-bottom {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 112px;
    align-items: stretch;
}

.page-catalog .school-card__insights-bottom--single {
    grid-template-columns: 1fr;
}

.page-catalog .school-card__score {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 10px 14px 11px;
}

.page-catalog .school-card__score dd {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 7px;
    margin: 0;
}

.page-catalog .school-card__score strong {
    color: #30366d;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1;
    white-space: nowrap;
}

.page-catalog .school-card__score dd > span:not(.school-card__score-empty) {
    color: #9498aa;
    font-size: 8.5px;
    font-weight: 600;
    white-space: nowrap;
}

.page-catalog .school-card__score-empty {
    color: #969aac;
    font-size: 10px;
    font-weight: 600;
}

.page-catalog .school-card__rating {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 8px 10px;
    border-left: 1px solid rgba(204, 207, 232, .82);
    background: rgba(255, 255, 255, .28);
    text-align: center;
}

.page-catalog .school-card__rating dt {
    margin: 0 0 3px;
    color: #8b8fa6;
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.page-catalog .school-card__rating dd {
    margin: 0;
}

.page-catalog .school-card__rating a {
    display: grid;
    min-width: 0;
    grid-template-columns: 29px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 7px;
    color: #30366d;
    text-align: left;
}

.page-catalog .school-card__rating-trophy {
    display: grid;
    width: 29px;
    height: 29px;
    grid-row: 1 / span 2;
    margin: 0;
    place-items: center;
    border-radius: 9px;
    color: #676be5;
    background: linear-gradient(145deg, #eceeff, #fff7cf);
    box-shadow: inset 0 0 0 1px rgba(102, 107, 227, .09);
}

.page-catalog .school-card__rating strong {
    color: #575ce5;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.02;
    white-space: nowrap;
}

.page-catalog .school-card__rating a > span:last-child {
    margin-top: 1px;
    color: #777c95;
    font-size: 8px;
    font-weight: 600;
    line-height: 1.15;
}

.page-catalog .school-card__rating a:hover strong {
    color: #3f44c8;
}

@media (max-width: 1040px) {
    .page-catalog .school-card {
        grid-template-columns: minmax(0, 1fr) minmax(310px, 344px);
    }

    .page-catalog .school-card__insights-bottom {
        grid-template-columns: minmax(0, 1fr) 106px;
    }
}

@media (max-width: 940px) {
    .page-catalog .school-card {
        grid-template-columns: minmax(0, 1fr) 310px;
    }

    .page-catalog .school-card__type {
        padding-inline: 12px;
    }

    .page-catalog .school-card__score {
        padding-inline: 12px;
    }

    .page-catalog .school-card__type dd {
        font-size: 10.5px;
    }
}

@media (max-width: 760px) {
    .page-catalog .school-card__insights {
        margin-top: 14px;
        border-radius: 14px;
    }

    .page-catalog .school-card__type {
        padding: 11px 12px 10px;
    }

    .page-catalog .school-card__type dd {
        font-size: 10.8px;
        -webkit-line-clamp: 3;
    }

    .page-catalog .school-card__insights-bottom {
        grid-template-columns: minmax(0, 1fr) 118px;
    }

    .page-catalog .school-card__insights-bottom--single {
        grid-template-columns: 1fr;
    }

    .page-catalog .school-card__score {
        min-height: 61px;
        padding: 10px 12px;
    }

    .page-catalog .school-card__score strong {
        font-size: 19px;
    }

    .page-catalog .school-card__rating {
        min-height: 61px;
        padding: 8px 10px;
        border-top: 0;
        border-bottom: 0;
        border-left: 1px solid rgba(204, 207, 232, .82);
    }

    .page-catalog .school-card__rating dt {
        margin-bottom: 3px;
    }

    .page-catalog .school-card__rating a {
        grid-template-columns: 30px minmax(0, 1fr);
        column-gap: 7px;
    }

    .page-catalog .school-card__rating-trophy {
        width: 30px;
        height: 30px;
    }

    .page-catalog .school-card__rating strong {
        font-size: 17px;
    }
}

@media (max-width: 470px) {
    .page-catalog .school-card__actions {
        gap: 7px;
    }

    .page-catalog .school-card__tags {
        width: auto;
        margin: 0;
    }

    .page-catalog .school-card__tags span,
    .page-catalog .school-card__tags span:nth-child(n + 2) {
        max-width: 132px;
    }

    .page-catalog .school-card__type dt,
    .page-catalog .school-card__score dt {
        font-size: 8px;
    }

    .page-catalog .school-card__insights-bottom {
        grid-template-columns: minmax(0, 1fr) 110px;
    }

    .page-catalog .school-card__score dd {
        align-items: flex-end;
        flex-direction: column;
        gap: 2px;
    }

    .page-catalog .school-card__score dd > span:not(.school-card__score-empty) {
        align-self: flex-start;
    }

    .page-catalog .school-card__score strong {
        align-self: flex-start;
        font-size: 18px;
    }
}

@media (max-width: 760px) {
    .page-catalog .school-card__tags {
        width: auto;
        margin: 0;
    }
}

/* School page — profile hero and concise facts */
.page-school .school-hero-card {
    display: grid;
    grid-template-columns: minmax(190px, 35%) minmax(0, 1fr);
    min-height: 310px;
    overflow: hidden;
    border: 1px solid #e8e9f5;
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 226, 160, .24), transparent 35%),
        linear-gradient(135deg, #ffffff 0%, #f7f8ff 72%, #fffaf1 100%);
    box-shadow: 0 18px 48px rgba(43, 47, 91, .07);
}

.page-school .school-hero-card__media {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: #eef0f8;
}

.page-school .school-hero-card__media::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, transparent 58%, rgba(27, 31, 64, .12));
}

.page-school .school-hero-card__media img {
    width: 100%;
    height: 100%;
    min-height: 310px;
    object-fit: cover;
}

.page-school .school-hero-card__placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 310px;
    place-items: center;
    color: #a1a6c6;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .72), transparent 45%),
        linear-gradient(135deg, #eceefe, #f7f3e9);
}

.page-school .school-hero-card__content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(24px, 3.2vw, 36px);
}

.page-school .school-hero-card__body h1 {
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.page-school .school-hero-card__full-name {
    max-width: 620px;
    margin: 13px 0 0;
    color: #6c7088;
    font-size: 13px;
    line-height: 1.55;
}

.page-school .school-hero-card__details {
    display: grid;
    gap: 9px;
    margin: 23px 0 0;
}

.page-school .school-hero-card__details > div {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
}

.page-school .school-hero-card__details dt,
.page-school .school-hero-card__details dd {
    margin: 0;
}

.page-school .school-hero-card__details dt {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #757a9d;
}

.page-school .school-hero-card__detail-label {
    display: block;
    margin-bottom: 2px;
    color: #8b8fa5;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.25;
    text-transform: uppercase;
}

.page-school .school-hero-card__details dd {
    color: #52566f;
    font-size: 12.5px;
    line-height: 1.45;
}

.page-school .school-hero-card__footer {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(218, 220, 237, .82);
}

.page-school .school-hero-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-school .school-hero-action {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid #dadced;
    border-radius: 10px;
    color: #454967;
    background: rgba(255, 255, 255, .82);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}

.page-school .school-hero-action:hover {
    border-color: #bfc2e8;
    color: var(--color-primary);
    background: #fff;
    transform: translateY(-1px);
}

.page-school .school-hero-action--primary {
    border-color: var(--color-primary);
    color: #fff;
    background: var(--color-primary);
}

.page-school .school-hero-action--primary:hover {
    border-color: var(--color-primary-dark);
    color: #fff;
    background: var(--color-primary-dark);
}

.page-school .school-hero-card__rating {
    display: grid;
    flex: 0 0 auto;
    gap: 4px;
    justify-items: end;
}

.page-school .school-hero-card__stars {
    display: flex;
    gap: 3px;
}

.page-school .school-hero-card__stars span {
    color: transparent;
    font-size: 17px;
    line-height: 1;
    -webkit-text-stroke: 1px #b7bbce;
}

.page-school .school-hero-card__stars span.is-filled {
    color: #f2bd3f;
    -webkit-text-stroke: 1px #f2bd3f;
}

.page-school .school-hero-card__rating-meta {
    color: #7d8198;
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1.25;
}

.page-school .school-hero-card__rating-meta a {
    margin-left: 3px;
    color: var(--color-primary);
}

.page-school .school-overview {
    gap: 16px;
}

.page-school .school-overview > h2 {
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(23px, 2.5vw, 30px);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.18;
}

.page-school .school-overview-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    margin: 0;
}

.page-school .school-overview-fact {
    display: grid;
    grid-template-columns: minmax(126px, .9fr) minmax(0, 1.1fr);
    min-height: 68px;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    background: #f8f9fb;
}

.page-school .school-overview-fact dt,
.page-school .school-overview-fact dd {
    margin: 0;
}

.page-school .school-overview-fact dt {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: #252945;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.page-school .school-overview-fact__icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 9px;
    color: #5d7ff3;
    background: #eef3ff;
}

.page-school .school-overview-fact dd {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #565a6f;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
}

.page-school .school-overview-fact dd.is-positive {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #32374e;
}

.page-school .school-overview-fact__dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #28bc72;
    box-shadow: 0 0 0 3px rgba(40, 188, 114, .1);
}

@media (max-width: 1050px) {
    .page-school .school-hero-card {
        grid-template-columns: minmax(160px, 31%) minmax(0, 1fr);
    }

    .page-school .school-hero-card__content {
        padding: 28px;
    }
}

@media (max-width: 900px) and (min-width: 761px) {
    .page-school .school-hero-card__footer {
        display: grid;
        justify-content: start;
    }

    .page-school .school-hero-card__rating {
        justify-items: start;
    }
}

@media (max-width: 760px) {
    .page-school .school-hero-card {
        grid-template-columns: minmax(180px, 34%) minmax(0, 1fr);
    }

    .page-school .school-hero-card__content {
        padding: 24px;
    }

    .page-school .school-hero-card__body h1 {
        font-size: clamp(25px, 5vw, 33px);
    }
}

@media (max-width: 620px) {
    .page-school .school-hero-card {
        display: block;
    }

    .page-school .school-hero-card__media,
    .page-school .school-hero-card__media img,
    .page-school .school-hero-card__placeholder {
        min-height: 220px;
        height: 220px;
    }

    .page-school .school-hero-card__content {
        padding: 23px 20px 21px;
    }

    .page-school .school-hero-card__full-name {
        font-size: 12px;
    }

    .page-school .school-hero-card__footer {
        display: grid;
        align-items: start;
    }

    .page-school .school-hero-card__rating {
        justify-items: start;
    }

    .page-school .school-overview-facts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .page-school .school-hero-card {
        border-radius: 18px;
    }

    .page-school .school-hero-card__body h1 {
        font-size: 25px;
    }

    .page-school .school-hero-card__details {
        margin-top: 19px;
    }

    .page-school .school-hero-action {
        min-height: 36px;
        padding-inline: 12px;
    }

    .page-school .school-overview-fact {
        grid-template-columns: minmax(122px, .9fr) minmax(0, 1.1fr);
        gap: 9px;
        padding-inline: 12px;
    }
}

/* School page — two-column profile layout */
.page-school {
    --school-container: 1120px;
    --school-right: 218px;
    --school-gap: 24px;
}

.page-school .school-detail__grid {
    grid-template-columns: minmax(0, 1fr) var(--school-right);
}

.page-school .school-hero-card {
    display: block;
    min-height: 0;
}

.page-school .school-hero-card__content {
    min-height: 0;
    padding: clamp(30px, 4vw, 42px);
}

.page-school .school-hero-card__body h1 {
    max-width: 760px;
    font-size: clamp(32px, 4vw, 44px);
}

.page-school .school-hero-card__full-name {
    max-width: 760px;
    font-size: 14px;
}

.page-school .school-hero-card__details {
    max-width: 720px;
}

.page-school .school-hero-card__nmt dt,
.page-school .school-hero-card__nmt dd {
    color: #565be8;
}

.page-school .school-hero-card__nmt dt {
    padding-top: 1px;
}

.page-school .school-hero-card__nmt dd {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 6px;
    align-items: baseline;
    font-weight: 650;
}

.page-school .school-hero-card__nmt dd span {
    font-weight: 650;
}

.page-school .school-hero-card__nmt dd strong {
    color: #4d51dc;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.2;
}

.page-school .school-hero-card__nmt dd small {
    color: #767a92;
    font-size: 10px;
    font-weight: 600;
}

.page-school .school-hero-card__footer {
    margin-top: 30px;
}

.page-school .school-hero-card__rating-meta a {
    margin-left: 0;
}

.page-school .school-section-nav {
    position: sticky;
    z-index: 20;
    top: 12px;
    min-width: 0;
    margin-top: -14px;
    overflow: hidden;
    border: 1px solid #e9ebf2;
    border-radius: 15px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 30px rgba(43, 47, 91, .055);
    backdrop-filter: blur(12px);
}

.page-school .school-section-nav__scroll {
    display: flex;
    min-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.page-school .school-section-nav__scroll::-webkit-scrollbar {
    display: none;
}

.page-school .school-section-nav a {
    position: relative;
    display: inline-flex;
    min-width: max-content;
    min-height: 62px;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px 13px;
    color: #72778b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: color var(--transition), background var(--transition);
}

.page-school .school-section-nav a::after {
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    content: "";
    background: transparent;
}

.page-school .school-section-nav a:hover {
    color: var(--color-primary);
    background: #fafaff;
}

.page-school .school-section-nav a.is-active {
    color: #4f79e8;
}

.page-school .school-section-nav a.is-active::after {
    background: #5f8df4;
}

.page-school .school-section-nav svg {
    flex: 0 0 auto;
}

.page-school .school-editorial-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 230px));
    gap: 24px;
    margin-top: -14px;
    padding: 0 4px;
}

.page-school .school-editorial-strip .school-editorial-person {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
}

.page-school .school-editorial-strip .school-editorial-person img {
    width: 42px;
    height: 42px;
    box-shadow: none;
}

.page-school .school-editorial-strip .school-editorial-person strong {
    font-size: 11.5px;
}

.page-school .school-editorial-strip .school-editorial-person span {
    margin-top: 2px;
    font-size: 9.5px;
}

.page-school .school-detail__main > [id] {
    scroll-margin-top: 94px;
}

@media (max-width: 1050px) {
    .page-school {
        --school-container: 960px;
        --school-right: 220px;
    }

    .page-school .school-hero-card__content {
        padding: 32px;
    }

    .page-school .school-hero-card__footer {
        display: flex;
        justify-content: space-between;
    }

    .page-school .school-hero-card__rating {
        justify-items: end;
    }

    .page-school .school-section-nav a {
        gap: 7px;
        padding-inline: 10px;
        font-size: 10px;
    }
}

@media (max-width: 760px) {
    .page-school .school-detail__grid {
        display: block;
    }

    .page-school .school-hero-card__content {
        padding: 27px 24px 24px;
    }

    .page-school .school-hero-card__body h1 {
        font-size: clamp(28px, 8.5vw, 36px);
    }

    .page-school .school-hero-card__full-name {
        font-size: 12.5px;
    }

    .page-school .school-section-nav {
        top: 8px;
        margin-right: -12px;
        margin-left: -12px;
        border-radius: 13px;
    }

    .page-school .school-section-nav a {
        min-height: 58px;
        flex: 0 0 auto;
        gap: 8px;
        padding: 14px 17px;
        font-size: 10.5px;
    }

    .page-school .school-editorial-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding-inline: 0;
    }

    .page-school .school-editorial-strip .school-editorial-person {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 8px;
    }

    .page-school .school-editorial-strip .school-editorial-person img {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 520px) {
    .page-school .school-hero-card__footer {
        display: grid;
        justify-content: stretch;
    }

    .page-school .school-hero-card__rating {
        justify-items: start;
    }

    .page-school .school-hero-card__nmt dd {
        font-size: 12px;
    }

    .page-school .school-hero-card__nmt dd strong {
        font-size: 15px;
    }

    .page-school .school-editorial-strip {
        gap: 10px;
    }

    .page-school .school-editorial-strip .school-editorial-person strong {
        font-size: 10px;
    }

    .page-school .school-editorial-strip .school-editorial-person span {
        font-size: 8.5px;
    }
}

/* School page — contacts, community rating and author profile */
.page-school .school-hero-card__stars span {
    color: transparent;
    background: linear-gradient(
        90deg,
        #f2bd3f 0,
        #f2bd3f var(--star-fill, 0%),
        transparent var(--star-fill, 0%),
        transparent 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #b7bbce;
}

.page-school .school-hero-card__rating-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
    align-items: baseline;
    justify-content: flex-end;
}

.page-school .school-hero-card__rating-meta strong {
    color: #4f536c;
    font-size: 11px;
    font-weight: 750;
}

.page-school .school-contact-panel {
    display: grid;
    grid-template-columns: minmax(245px, .8fr) minmax(0, 1.2fr);
    gap: 12px;
    align-items: stretch;
}

.page-school .school-contact-panel--single {
    grid-template-columns: 1fr;
}

.page-school .school-contact-panel__details {
    padding: 23px 24px;
    border: 1px solid #e9ebf2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(43, 47, 91, .035);
}

.page-school .school-contact-panel__details h2 {
    margin: 0 0 18px;
    color: var(--color-ink);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.025em;
}

.page-school .school-contact-panel__list {
    display: grid;
    gap: 11px;
}

.page-school .school-contact-panel__item {
    display: grid;
    min-width: 0;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: #4f536a;
    font-size: 11.5px;
    font-weight: 550;
    line-height: 1.45;
}

.page-school a.school-contact-panel__item {
    transition: color var(--transition);
}

.page-school a.school-contact-panel__item:hover {
    color: var(--color-primary);
}

.page-school .school-contact-panel__item svg {
    margin-top: 1px;
    color: #5a8aef;
}

.page-school .school-contact-panel__item span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.page-school .school-contact-map {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid #e7eaf0;
    border-radius: 18px;
    background:
        repeating-linear-gradient(0deg, transparent 0 38px, rgba(255, 255, 255, .8) 38px 40px),
        repeating-linear-gradient(90deg, transparent 0 52px, rgba(255, 255, 255, .82) 52px 54px),
        #edf1f3;
    isolation: isolate;
}

.page-school .school-contact-map::after {
    position: absolute;
    z-index: 4;
    inset: 0;
    content: "";
    pointer-events: none;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(1.4px);
}

.page-school .school-contact-map__block,
.page-school .school-contact-map__road {
    position: absolute;
    display: block;
}

.page-school .school-contact-map__block {
    z-index: 1;
    border-radius: 8px;
    background: rgba(146, 224, 166, .43);
}

.page-school .school-contact-map__block--one {
    top: -10%;
    left: 55%;
    width: 28%;
    height: 52%;
    transform: rotate(7deg);
}

.page-school .school-contact-map__block--two {
    right: -8%;
    bottom: 2%;
    width: 35%;
    height: 42%;
    transform: rotate(-5deg);
}

.page-school .school-contact-map__block--three {
    bottom: -14%;
    left: 7%;
    width: 32%;
    height: 44%;
    transform: rotate(9deg);
}

.page-school .school-contact-map__road {
    z-index: 2;
    height: 15px;
    border: 4px solid rgba(255, 255, 255, .78);
    border-radius: 999px;
    background: #cbd3dc;
    box-shadow: 0 0 0 1px rgba(191, 201, 211, .35);
}

.page-school .school-contact-map__road--one {
    top: 42%;
    left: -12%;
    width: 130%;
    transform: rotate(7deg);
}

.page-school .school-contact-map__road--two {
    top: 14%;
    left: 15%;
    width: 90%;
    height: 11px;
    transform: rotate(-18deg);
}

.page-school .school-contact-map__road--three {
    bottom: 4%;
    left: 34%;
    width: 70%;
    height: 10px;
    transform: rotate(30deg);
}

.page-school .school-contact-map__pin {
    position: absolute;
    z-index: 5;
    top: 27%;
    left: 50%;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 6px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #4f8cf5, #276dde);
    box-shadow: 0 10px 24px rgba(42, 105, 213, .24);
    transform: translate(-50%, -50%);
}

.page-school .school-contact-map__button {
    position: absolute;
    z-index: 6;
    top: 63%;
    left: 50%;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 17px;
    border: 1px solid rgba(222, 225, 236, .9);
    border-radius: 12px;
    color: #477ddf;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 28px rgba(49, 56, 91, .12);
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    transition: color var(--transition), background var(--transition), transform var(--transition);
}

.page-school .school-contact-map__button:hover {
    color: #fff;
    background: #4f7fe0;
    transform: translate(-50%, calc(-50% - 1px));
}

.page-school .school-author-card--profile {
    position: relative;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 22px;
    overflow: hidden;
    padding: 27px 30px;
    border-color: #e5e6f4;
    background:
        radial-gradient(circle at 8% 15%, rgba(255, 213, 112, .22), transparent 160px),
        linear-gradient(135deg, #fbfbff 0%, #f4f5ff 100%);
}

.page-school .school-author-card--profile::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 4px;
    border-radius: 0 0 0 4px;
    content: "";
    background: linear-gradient(90deg, #6767eb, #f2bd3f);
}

.page-school .school-author-card__portrait {
    position: relative;
    display: grid;
    width: 96px;
    height: 96px;
    grid-row: 1 / span 2;
    place-items: center;
}

.page-school .school-author-card__portrait::before {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    content: "";
    background: linear-gradient(145deg, #dfe2ff, #fff0c9);
    transform: rotate(-7deg) scale(1.03);
}

.page-school .school-author-card__portrait img {
    position: relative;
    z-index: 1;
    width: 82px;
    height: 82px;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(43, 47, 91, .13);
}

.page-school .school-author-card--profile h2 {
    font-size: 19px;
}

.page-school .school-author-card--profile .school-author-card__role {
    color: #777c99;
    font-size: 11px;
}

.page-school .school-author-card__identity {
    align-self: end;
}

.page-school .school-author-card--profile .school-author-card__bio {
    grid-column: 2;
    align-self: start;
    max-width: 660px;
    margin: 4px 0 0;
    color: #555a72;
    font-size: 13px;
    line-height: 1.65;
}

.page-school .school-comment__rating,
.admin-comment-rating {
    display: flex;
    gap: 2px;
    margin-top: 5px;
}

.page-school .school-comment__rating span,
.admin-comment-rating span {
    color: transparent;
    font-size: 13px;
    line-height: 1;
    -webkit-text-stroke: 1px #b8bbcd;
}

.page-school .school-comment__rating span.is-filled,
.admin-comment-rating span.is-filled {
    color: #f2bd3f;
    -webkit-text-stroke-color: #f2bd3f;
}

.admin-comment-rating {
    margin: 10px 0 0;
}

.admin-comment-rating span {
    font-size: 15px;
}

.page-school .school-comment-form__rating {
    min-width: 0;
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    border: 0;
}

.page-school .school-comment-form__rating legend {
    margin-bottom: 7px;
    padding: 0;
    color: #41455f;
    font-size: 12px;
    font-weight: 600;
}

.page-school .school-rating-input {
    display: flex;
    width: max-content;
    flex-direction: row-reverse;
    gap: 4px;
}

.page-school .school-rating-input input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.page-school .school-rating-input label {
    display: block;
    cursor: pointer;
    color: transparent;
    font-size: 29px;
    font-weight: 400;
    line-height: 1;
    -webkit-text-stroke: 1px #afb3c7;
    transition: color var(--transition), transform var(--transition), -webkit-text-stroke-color var(--transition);
}

.page-school .school-rating-input label:hover,
.page-school .school-rating-input label:hover ~ label,
.page-school .school-rating-input input:checked ~ label {
    color: #f2bd3f;
    -webkit-text-stroke-color: #f2bd3f;
}

.page-school .school-rating-input label:hover {
    transform: translateY(-1px);
}

.page-school .school-rating-input input:focus-visible + label {
    border-radius: 4px;
    outline: 3px solid rgba(90, 94, 232, .2);
    outline-offset: 2px;
}

@media (max-width: 760px) {
    .page-school .school-contact-panel {
        grid-template-columns: 1fr;
    }

    .page-school .school-contact-map {
        min-height: 190px;
    }

    .page-school .school-author-card--profile {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 16px;
        padding: 23px 20px;
    }

    .page-school .school-author-card__portrait {
        width: 76px;
        height: 76px;
    }

    .page-school .school-author-card__portrait img {
        width: 66px;
        height: 66px;
    }
}

@media (max-width: 520px) {
    .page-school .school-contact-panel__details {
        padding: 21px 19px;
    }

    .page-school .school-contact-panel__details h2 {
        font-size: 22px;
    }

    .page-school .school-contact-map__button {
        min-height: 40px;
        padding-inline: 15px;
    }

    .page-school .school-author-card--profile {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .page-school .school-author-card__portrait {
        width: 62px;
        height: 62px;
        grid-row: auto;
    }

    .page-school .school-author-card__portrait img {
        width: 54px;
        height: 54px;
    }

    .page-school .school-author-card--profile h2 {
        font-size: 16px;
    }

    .page-school .school-author-card__identity {
        align-self: center;
    }

    .page-school .school-author-card--profile .school-author-card__bio {
        grid-column: 1 / -1;
        margin-top: 1px;
        font-size: 12px;
    }
}

/* School page v5 — compact registry data and updated sharing */
.page-school .school-data-section h2 {
    margin-bottom: 11px;
    font-size: 20px;
}

.school-data-disclosure {
    overflow: hidden;
    border: 1px solid #e7e9f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(40, 45, 82, .035);
}

.school-data-disclosure > summary {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 14px;
    cursor: pointer;
    list-style: none;
}

.school-data-disclosure > summary::-webkit-details-marker {
    display: none;
}

.school-data-disclosure > summary:focus-visible {
    outline: 3px solid rgba(90, 94, 232, .14);
    outline-offset: -3px;
}

.school-data-disclosure__primary {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 12px;
}

.school-data-disclosure__primary > span {
    color: #9094a5;
    font-size: 9.5px;
    font-weight: 650;
}

.school-data-disclosure__primary strong {
    color: #343950;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .01em;
}

.school-data-disclosure__action {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    color: var(--color-primary);
    font-size: 9.5px;
    font-weight: 700;
}

.school-data-disclosure__action i {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform var(--transition);
}

.school-data-disclosure__opened {
    display: none;
}

.school-data-disclosure[open] .school-data-disclosure__closed {
    display: none;
}

.school-data-disclosure[open] .school-data-disclosure__opened {
    display: inline;
}

.school-data-disclosure[open] .school-data-disclosure__action i {
    transform: translateY(2px) rotate(225deg);
}

.school-data-disclosure__body {
    padding: 8px;
    border-top: 1px solid #eceef3;
}

.school-data-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
}

.school-data-table {
    width: 100%;
    border-collapse: collapse;
    color: #575c70;
    font-size: 10px;
    line-height: 1.45;
}

.school-data-table tr:nth-child(odd) {
    background: #f4f5f7;
}

.school-data-table th,
.school-data-table td {
    padding: 9px 12px;
    border: 0;
    text-align: left;
    vertical-align: top;
}

.school-data-table th {
    width: 34%;
    color: #353a50;
    font-weight: 700;
}

.school-data-table td {
    overflow-wrap: anywhere;
    font-weight: 500;
}

.school-data-disclosure .school-source-note {
    margin: 8px 5px 2px;
    font-size: 8.5px;
}

.page-school .school-share-card {
    position: relative;
    overflow: hidden;
    padding: 17px 16px;
    border: 1px solid rgba(221, 223, 238, .88);
    border-radius: 16px;
    background:
        radial-gradient(circle at 90% 4%, rgba(122, 126, 240, .18), transparent 92px),
        linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(244, 245, 255, .78));
    box-shadow: 0 14px 34px rgba(40, 45, 82, .065);
    backdrop-filter: blur(16px);
}

.page-school .school-share-card h2 {
    margin: 0;
    color: #30354e;
    font-size: 16px;
    letter-spacing: -.02em;
}

.page-school .school-share-card > p {
    margin: 5px 0 13px;
    color: #8b8fa1;
    font-size: 8.5px;
    line-height: 1.45;
}

.page-school .school-share-card__links {
    display: grid;
    grid-template-columns: repeat(3, 34px) minmax(0, 1fr);
    gap: 6px;
}

.page-school .school-share-card__links a,
.school-share-card__copy {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(44, 49, 87, .075);
    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.page-school .school-share-card__links a:first-child {
    color: #286cc7;
    background: rgba(226, 237, 255, .9);
}

.page-school .school-share-card__links a:nth-child(2) {
    color: #168dcc;
    background: rgba(224, 245, 255, .9);
}

.page-school .school-share-card__links a:nth-child(3) {
    color: #696e86;
    background: rgba(255, 255, 255, .82);
}

.page-school .school-share-card__links a:hover,
.school-share-card__copy:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.school-share-card__copy {
    width: auto;
    min-width: 0;
    gap: 4px;
    padding: 0 7px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #6266eb, #5054d6);
    font: inherit;
    font-size: 8.5px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
}

.school-share-card__copy:hover {
    box-shadow: 0 9px 19px rgba(80, 84, 214, .22);
}

.school-share-card__copy:focus-visible {
    outline: 3px solid rgba(90, 94, 232, .19);
    outline-offset: 2px;
}

.school-share-card__copy:disabled {
    cursor: wait;
    opacity: .72;
}

.school-share-card__copy.is-copied {
    background: linear-gradient(135deg, #24996d, #16845b);
}

.school-share-card__status {
    display: block;
    margin-top: 8px;
    color: #27815f;
    font-size: 8px;
    font-weight: 650;
    line-height: 1.35;
}

@media (max-width: 520px) {
    .school-data-disclosure > summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .school-data-disclosure__action {
        align-self: stretch;
        justify-content: space-between;
    }

    .school-data-table th,
    .school-data-table td {
        padding: 8px 9px;
    }

    .school-data-table th {
        width: 41%;
    }
}

/* About EDTOP */
.page-about {
    background:
        radial-gradient(circle at 10% 9%, rgba(90, 94, 232, .055), transparent 25rem),
        #fff;
}

.about-page {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
    padding: 44px 0 100px;
}

.about-page h1,
.about-page h2,
.about-page h3,
.about-page p {
    margin-top: 0;
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
    align-items: center;
    gap: clamp(42px, 6vw, 78px);
    min-height: 520px;
    padding: 45px 0 62px;
}

.about-hero__content h1 {
    max-width: 680px;
    margin: 0 0 25px;
    color: #272b55;
    font-size: clamp(42px, 5.8vw, 66px);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.02;
}

.about-hero__content h1 span {
    color: var(--color-primary);
}

.about-hero__lead {
    max-width: 650px;
    margin-bottom: 16px;
    color: #4d516b;
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 550;
    letter-spacing: -.018em;
    line-height: 1.58;
}

.about-hero__text {
    max-width: 620px;
    margin-bottom: 30px;
    color: #85899e;
    font-size: 13px;
    line-height: 1.75;
}

.about-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.about-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4f5473;
    font-size: 12px;
    font-weight: 700;
}

.about-text-link svg {
    transition: transform var(--transition);
}

.about-text-link:hover svg {
    transform: translateX(3px);
}

.about-hero__visual {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(213, 215, 238, .86);
    border-radius: 29px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(244, 245, 255, .9));
    box-shadow: 0 28px 70px rgba(45, 49, 91, .1);
    isolation: isolate;
}

.about-hero__visual::before,
.about-hero__visual::after {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    content: "";
    filter: blur(2px);
}

.about-hero__visual::before {
    top: -85px;
    right: -65px;
    width: 220px;
    height: 220px;
    background: rgba(110, 114, 238, .13);
}

.about-hero__visual::after {
    bottom: -95px;
    left: -90px;
    width: 230px;
    height: 230px;
    background: rgba(95, 202, 171, .11);
}

.about-hero__brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 23px;
    border-bottom: 1px solid rgba(217, 219, 238, .85);
}

.about-hero__brand img {
    width: 150px;
    height: auto;
}

.about-hero__brand > span {
    max-width: 130px;
    color: #999caf;
    font-size: 9px;
    font-weight: 650;
    line-height: 1.45;
    text-align: right;
}

.about-hero__flow {
    display: grid;
    gap: 7px;
    padding: 20px 0 17px;
}

.about-hero__flow > div {
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(225, 226, 241, .72);
    border-radius: 13px;
    background: rgba(255, 255, 255, .7);
}

.about-hero__flow > div > span {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 11px;
    color: var(--color-primary);
    background: #eff0ff;
}

.about-hero__flow p,
.about-hero__flow strong,
.about-hero__flow small {
    display: block;
    margin: 0;
}

.about-hero__flow strong {
    color: #383d60;
    font-size: 12px;
    font-weight: 750;
}

.about-hero__flow small {
    margin-top: 2px;
    color: #9497aa;
    font-size: 9px;
    font-weight: 550;
}

.about-hero__trust {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: #73778f;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.55;
}

.about-hero__trust svg {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #369274;
}

.about-section {
    margin-top: 104px;
}

.about-section__heading {
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: clamp(35px, 7vw, 90px);
    margin-bottom: 45px;
}

.about-section__heading h2,
.about-method__header h2,
.about-proof__intro h2,
.about-contact h2 {
    margin-bottom: 0;
    color: #292d59;
    font-size: clamp(31px, 4.2vw, 46px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.about-section__heading > p,
.about-method__header > p,
.about-proof__intro > p {
    max-width: 600px;
    margin: 5px 0 0;
    color: #777b91;
    font-size: 14px;
    line-height: 1.78;
}

.about-mission__statement {
    position: relative;
    margin: 0 0 22px;
    padding: 43px 52px 41px;
    border: 1px solid #e3e4f2;
    border-radius: 24px;
    background: #fafaff;
}

.about-mission__statement::before {
    position: absolute;
    top: 34px;
    left: 25px;
    color: #d7d9fa;
    content: "“";
    font-family: Georgia, serif;
    font-size: 62px;
    line-height: 1;
}

.about-mission__statement p {
    max-width: 790px;
    margin: 0 0 15px;
    color: #34395e;
    font-size: clamp(22px, 3.3vw, 36px);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.25;
}

.about-mission__statement footer {
    color: #989bad;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #e5e6ef;
}

.about-values article {
    padding: 31px 30px 4px 0;
}

.about-values article + article {
    padding-left: 30px;
    border-left: 1px solid #e5e6ef;
}

.about-values article > span {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 12px;
    color: var(--color-primary);
    background: #f0f1ff;
}

.about-values h3 {
    margin-bottom: 9px;
    font-size: 16px;
    letter-spacing: -.02em;
}

.about-values p {
    margin: 0;
    color: #7d8197;
    font-size: 12px;
    line-height: 1.7;
}

.about-method {
    margin-top: 110px;
    padding: clamp(36px, 5vw, 58px);
    border: 1px solid #e2e4f3;
    border-radius: 32px;
    background:
        radial-gradient(circle at 92% 3%, rgba(90, 94, 232, .09), transparent 24rem),
        #f7f8fe;
}

.about-method__header {
    display: grid;
    grid-template-columns: minmax(260px, .92fr) minmax(0, 1.08fr);
    gap: clamp(35px, 7vw, 85px);
    align-items: start;
    padding-bottom: 35px;
    border-bottom: 1px solid #dee0ee;
}

.about-method__sources {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 40px;
}

.about-method__sources article {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 22px;
    border: 1px solid rgba(221, 223, 239, .9);
    border-radius: 17px;
    background: rgba(255, 255, 255, .82);
}

.about-method__source-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    color: var(--color-primary);
    background: #eff0ff;
}

.about-method__sources h3 {
    margin-bottom: 7px;
    font-size: 14px;
}

.about-method__sources p {
    margin-bottom: 13px;
    color: #75798f;
    font-size: 11px;
    line-height: 1.7;
}

.about-method__sources a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 700;
}

.about-method__body {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    align-items: start;
    gap: 34px;
}

.about-method__steps {
    counter-reset: method-step;
}

.about-method__steps article {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 17px;
    padding: 22px 0;
    border-top: 1px solid #dfe1ed;
}

.about-method__steps article:first-child {
    padding-top: 3px;
    border-top: 0;
}

.about-method__steps article > span {
    color: #a3a6bb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.about-method__steps h3 {
    margin-bottom: 6px;
    font-size: 14px;
}

.about-method__steps p {
    margin: 0;
    color: #74788e;
    font-size: 11px;
    line-height: 1.68;
}

.about-formula {
    padding: 29px;
    border-radius: 22px;
    color: #bdc0d4;
    background: #292d59;
    box-shadow: 0 22px 45px rgba(41, 45, 89, .16);
}

.about-formula h3 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 18px;
}

.about-formula__equation {
    padding: 17px 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .055);
}

.about-formula__equation span,
.about-formula__equation strong {
    display: block;
}

.about-formula__equation span {
    margin-bottom: 7px;
    color: #8f93b2;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.about-formula__equation strong {
    color: #fff;
    font-size: 13px;
    line-height: 1.55;
}

.about-formula ul {
    display: grid;
    gap: 9px;
    margin: 19px 0;
    padding: 0;
    list-style: none;
}

.about-formula li {
    position: relative;
    padding-left: 17px;
    font-size: 10px;
    line-height: 1.55;
}

.about-formula li::before {
    position: absolute;
    top: .55em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #777bf2;
    content: "";
}

.about-formula > p {
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #969ab7;
    font-size: 9px;
    line-height: 1.7;
}

.about-method__privacy {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 34px;
    padding: 17px 19px;
    border: 1px solid rgba(73, 166, 132, .2);
    border-radius: 14px;
    color: #397d66;
    background: rgba(229, 248, 241, .76);
}

.about-method__privacy svg {
    flex: 0 0 auto;
    margin-top: 1px;
}

.about-method__privacy p {
    margin: 0;
    font-size: 10px;
    line-height: 1.6;
}

.about-method__privacy strong {
    color: #286a54;
}

.about-team__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.about-person {
    overflow: hidden;
    border: 1px solid #e3e4ef;
    border-radius: 22px;
    background: #fff;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.about-person:hover {
    border-color: #d7d9f2;
    box-shadow: 0 19px 44px rgba(45, 49, 91, .075);
    transform: translateY(-3px);
}

.about-person__photo {
    position: relative;
    display: grid;
    overflow: hidden;
    aspect-ratio: 1.2 / 1;
    place-items: center;
    color: #fff;
    background-color: #e9eafe;
    background-image:
        var(--person-photo),
        linear-gradient(145deg, #bec1fb, #6f73e9 58%, #4b4fc5);
    background-position: center;
    background-size: cover;
}

.about-person:nth-child(2) .about-person__photo {
    background-image:
        var(--person-photo),
        linear-gradient(145deg, #c4dff2, #6da0c8 58%, #406c97);
}

.about-person:nth-child(3) .about-person__photo {
    background-image:
        var(--person-photo),
        linear-gradient(145deg, #cce8dc, #72b69a 58%, #3b7d66);
}

.about-person__photo::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31, 34, 67, .24), transparent 55%);
    content: "";
}

.about-person__photo > span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: rgba(40, 44, 88, .18);
    backdrop-filter: blur(8px);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .03em;
}

.about-person__body {
    padding: 22px 23px 24px;
}

.about-person h3 {
    margin-bottom: 5px;
    font-size: 17px;
    letter-spacing: -.025em;
}

.about-person__role {
    margin-bottom: 14px;
    color: var(--color-primary);
    font-size: 9px;
    font-weight: 750;
}

.about-person__bio {
    min-height: 92px;
    margin-bottom: 17px;
    color: #7a7e93;
    font-size: 10px;
    line-height: 1.7;
}

.about-person__profiles {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.about-person__profiles a,
.about-person__profiles span,
.about-contact__socials a,
.about-contact__socials span {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 10px;
    border: 1px solid #e3e4f0;
    border-radius: 999px;
    color: #777b91;
    background: #fafafd;
    font-size: 8px;
    font-weight: 700;
}

.about-person__profiles span,
.about-contact__socials span {
    opacity: .72;
}

/* School photo gallery and admin uploader */
.page-school .school-media-section {
    min-width: 0;
}

.page-school .school-gallery-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.page-school .school-gallery-heading h2 {
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(23px, 2.8vw, 30px);
    letter-spacing: -.025em;
}

.page-school .school-gallery-heading p {
    margin: 6px 0 0;
    color: #868a9e;
    font-size: 10px;
    line-height: 1.5;
}

.page-school .school-gallery-heading > span {
    flex: 0 0 auto;
    padding: 6px 9px;
    border: 1px solid #e2e4ef;
    border-radius: 999px;
    color: #7c8095;
    background: #fafafe;
    font-size: 9px;
    font-weight: 750;
}

.page-school .school-detail-gallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 148px;
    gap: 9px;
}

.page-school .school-gallery-item {
    position: relative;
    grid-column: span 5;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #eef0f5;
    cursor: zoom-in;
    isolation: isolate;
}

.page-school .school-gallery-item:first-child {
    grid-column: span 7;
    grid-row: span 2;
}

.page-school .school-gallery-item:nth-child(n + 4) {
    grid-column: span 4;
}

.page-school .school-detail-gallery--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
}

.page-school .school-detail-gallery--compact .school-gallery-item,
.page-school .school-detail-gallery--compact .school-gallery-item:first-child {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 3 / 2;
}

.page-school .school-detail-gallery--compact .school-gallery-item:only-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

.page-school .school-gallery-item::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, transparent 58%, rgba(25, 29, 57, .32));
    opacity: .72;
    transition: opacity var(--transition);
}

.page-school .school-gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 0;
    transition: transform .45s ease;
}

.page-school .school-gallery-item:hover img,
.page-school .school-gallery-item:focus-visible img {
    transform: scale(1.035);
}

.page-school .school-gallery-item:hover::after,
.page-school .school-gallery-item:focus-visible::after {
    opacity: 1;
}

.page-school .school-gallery-item__number,
.page-school .school-gallery-item__zoom {
    position: absolute;
    z-index: 2;
    color: #fff;
}

.page-school .school-gallery-item__number {
    bottom: 12px;
    left: 13px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
}

.page-school .school-gallery-item__zoom {
    right: 11px;
    bottom: 10px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 50%;
    background: rgba(32, 36, 68, .46);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(5px);
    transition: opacity var(--transition), transform var(--transition);
}

.page-school .school-gallery-item:hover .school-gallery-item__zoom,
.page-school .school-gallery-item:focus-visible .school-gallery-item__zoom {
    opacity: 1;
    transform: translateY(0);
}

.has-school-lightbox {
    overflow: hidden;
}

.school-lightbox {
    width: min(calc(100% - 72px), 1180px);
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    color: #fff;
    background: transparent;
}

.school-lightbox::backdrop {
    background: rgba(13, 15, 29, .91);
    backdrop-filter: blur(12px);
}

.school-lightbox figure {
    display: grid;
    margin: 0;
    place-items: center;
}

.school-lightbox figure > img {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    border-radius: 13px;
    object-fit: contain;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
}

.school-lightbox figcaption {
    display: flex;
    width: min(100%, 900px);
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-top: 12px;
    color: #b9bdcc;
    font-size: 10px;
    line-height: 1.5;
}

.school-lightbox figcaption strong {
    flex: 0 0 auto;
    color: #fff;
    font-size: 10px;
    letter-spacing: .06em;
}

.school-lightbox__close,
.school-lightbox__nav {
    position: fixed;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    background: rgba(41, 44, 68, .76);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.school-lightbox__close:hover,
.school-lightbox__nav:hover {
    background: rgba(90, 94, 232, .9);
}

.school-lightbox__close {
    top: 22px;
    right: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 25px;
    line-height: 1;
}

.school-lightbox__nav {
    top: 50%;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 18px;
    transform: translateY(-50%);
}

.school-lightbox__nav:hover {
    transform: translateY(-50%) scale(1.04);
}

.school-lightbox__nav--prev {
    left: 20px;
}

.school-lightbox__nav--next {
    right: 20px;
}

.admin-photo-manager__current,
.admin-photo-manager__preview {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 17px;
}

.admin-photo-manager__current figure,
.admin-photo-manager__preview figure {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #eceef5;
}

.admin-photo-manager__current img,
.admin-photo-manager__preview img {
    display: block;
    width: 100%;
    aspect-ratio: 1.45 / 1;
    object-fit: cover;
}

.admin-photo-manager__current figcaption {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 3px 5px;
    border-radius: 5px;
    color: #fff;
    background: rgba(32, 36, 68, .76);
    font-size: 8px;
    font-weight: 750;
}

.admin-photo-manager__preview {
    margin: 14px 0 0;
}

.admin-photo-manager__preview[hidden] {
    display: none;
}

.admin-photo-manager__preview figcaption {
    padding: 6px 7px;
    overflow: hidden;
    color: #696d82;
    background: #f7f8fb;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-photo-manager__empty {
    margin: 0 0 16px;
    color: #9094a7;
    font-size: 11px;
}

.admin-photo-dropzone {
    display: flex;
    min-height: 84px;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px dashed #cfd2e8;
    border-radius: 13px;
    color: #4b4f67;
    background: #fafaff;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}

.admin-photo-dropzone:hover,
.admin-photo-dropzone:focus-within {
    border-color: var(--color-primary);
    background: #f7f7ff;
}

.admin-photo-dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.admin-photo-dropzone__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    color: var(--color-primary);
    background: #eceeff;
    font-size: 22px;
}

.admin-photo-dropzone strong,
.admin-photo-dropzone small {
    display: block;
}

.admin-photo-dropzone strong {
    font-size: 11px;
}

.admin-photo-dropzone small {
    margin-top: 4px;
    color: #9295a8;
    font-size: 8.5px;
}

.admin-photo-manager .admin-editor-help {
    margin-top: 16px;
}

.admin-photo-manager .admin-editor-help code {
    color: #4d51c8;
    font-size: .95em;
}

@media (max-width: 760px) {
    .page-school .school-detail-gallery {
        grid-auto-rows: 112px;
    }

    .page-school .school-gallery-item:first-child {
        grid-column: 1 / -1;
        grid-row: span 2;
    }

    .page-school .school-gallery-item,
    .page-school .school-gallery-item:nth-child(n + 4) {
        grid-column: span 6;
    }

    .page-school .school-detail-gallery--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: auto;
    }

    .page-school .school-detail-gallery--compact .school-gallery-item,
    .page-school .school-detail-gallery--compact .school-gallery-item:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }

    .page-school .school-detail-gallery--compact .school-gallery-item:only-child {
        grid-column: 1 / -1;
    }

    .school-lightbox {
        width: calc(100% - 24px);
    }

    .school-lightbox figure > img {
        max-height: 76vh;
        border-radius: 10px;
    }

    .school-lightbox__nav {
        top: auto;
        bottom: 22px;
        transform: none;
    }

    .school-lightbox__nav:hover {
        transform: scale(1.04);
    }

    .school-lightbox__nav--prev {
        left: 22px;
    }

    .school-lightbox__nav--next {
        right: 22px;
    }

    .admin-photo-manager__current,
    .admin-photo-manager__preview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .page-school .school-gallery-heading {
        align-items: flex-start;
    }

    .page-school .school-gallery-heading p {
        max-width: 230px;
    }

    .page-school .school-detail-gallery {
        gap: 6px;
    }

    .page-school .school-gallery-item {
        border-radius: 10px;
    }

    .page-school .school-gallery-item__zoom {
        display: none;
    }

    .school-lightbox figcaption {
        padding-inline: 4px;
    }

    .admin-photo-manager__current,
    .admin-photo-manager__preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Linked editorial profiles, ranking landings and related schools */
.about-person[id] {
    scroll-margin-top: 32px;
}

.page-school .school-editorial-person a,
.page-school .school-author-card h2 a {
    color: inherit;
    transition: color var(--transition);
}

.page-school .school-editorial-person a:hover,
.page-school .school-author-card h2 a:hover {
    color: var(--color-primary);
}

.page-school .school-hero-card__nmt small a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(86, 91, 232, .25);
    text-underline-offset: 2px;
}

.page-school .school-rating__rank-link,
.page-school .school-rating__scope-link,
.page-school .school-rating-subject dd a {
    color: inherit;
    transition: color var(--transition), transform var(--transition);
}

.page-school .school-rating__rank-link:hover {
    color: #3d42cc;
    transform: translateY(-1px);
}

.page-school .school-rating__scope-link {
    display: inline-flex;
    align-items: baseline;
}

.page-school .school-rating__scope-link:hover,
.page-school .school-rating-subject dd a:hover {
    color: var(--color-primary);
}

.page-school .school-helpful__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.page-school .school-helpful__stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 9px;
    border: 1px solid #e2e4ef;
    border-radius: 999px;
    color: #73778c;
    background: rgba(255, 255, 255, .72);
}

.page-school .school-helpful__stat strong {
    color: #3f435d;
    font-weight: 800;
}

.page-school .school-helpful__stat--yes {
    border-color: rgba(38, 158, 103, .17);
    color: #2a765a;
    background: rgba(235, 249, 242, .78);
}

.page-school .school-helpful__stat--no {
    border-color: rgba(197, 99, 88, .15);
    color: #8a5a54;
    background: rgba(255, 244, 242, .74);
}

.page-school .school-comments__disclaimer {
    margin: 19px 0 0;
    padding: 15px 17px;
    border-top: 1px solid #e8eaf1;
    color: #85899d;
    background: #fafafd;
    font-size: 9.5px;
    line-height: 1.65;
}

.page-school .school-comments__disclaimer strong {
    color: #666a80;
}

.page-school .school-related {
    margin-top: 56px;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid #e5e7f1;
    border-radius: 24px;
    background:
        radial-gradient(circle at 94% 0, rgba(90, 94, 232, .075), transparent 260px),
        #fafbff;
}

.page-school .school-related__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 19px;
}

.page-school .school-related__header h2 {
    margin: 0;
    color: var(--color-ink);
    font-size: clamp(20px, 2.4vw, 27px);
    letter-spacing: -.025em;
}

.page-school .school-related__header p {
    margin: 6px 0 0;
    color: #85899d;
    font-size: 10.5px;
}

.page-school .school-related__header > a {
    flex: 0 0 auto;
    color: var(--color-primary);
    font-size: 10.5px;
    font-weight: 750;
}

.page-school .school-related__list {
    display: grid;
    gap: 7px;
}

.page-school .school-related__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px 15px 14px 18px;
    border: 1px solid #e8eaf2;
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.page-school .school-related__item:hover {
    border-color: #d9dbef;
    box-shadow: 0 10px 25px rgba(43, 47, 91, .055);
    transform: translateY(-1px);
}

.page-school .school-related__content {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.page-school .school-related__content h3 {
    min-width: 0;
    margin: 0;
    color: #34384f;
    font-size: 11.5px;
    line-height: 1.45;
}

.page-school .school-related__content h3 a:hover {
    color: var(--color-primary);
}

.page-school .school-related__content p {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 0;
    white-space: nowrap;
}

.page-school .school-related__content p span,
.page-school .school-related__content p small {
    color: #9296a9;
    font-size: 8.5px;
    font-weight: 650;
}

.page-school .school-related__content p strong {
    color: #19815c;
    font-size: 13px;
    font-weight: 800;
}

.page-school .school-related__content .school-related__no-rating {
    color: #a0a3b3;
    font-size: 9px;
}

.page-school .school-related__open {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid #dcdef0;
    border-radius: 9px;
    color: #5a5ee8;
    background: #f8f8ff;
    font-size: 9.5px;
    font-weight: 750;
}

.page-school .school-related__open:hover {
    border-color: var(--color-primary);
    color: #fff;
    background: var(--color-primary);
}

/* Consent manager */
.site-footer__map iframe {
    opacity: 0;
    transition: opacity .25s ease;
}

.site-footer__map iframe[data-consent-loaded] {
    opacity: 1;
}

.site-footer__map::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(32deg, transparent 46%, rgba(145, 151, 180, .18) 47% 52%, transparent 53%),
        linear-gradient(145deg, transparent 36%, rgba(145, 151, 180, .14) 37% 43%, transparent 44%),
        repeating-linear-gradient(0deg, transparent 0 25px, rgba(255, 255, 255, .035) 26px 27px),
        repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, .035) 35px 36px),
        #1d203b;
}

.site-footer__cookie-settings {
    padding: 0;
    border: 0;
    color: #8f93a7;
    background: transparent;
    font: inherit;
    cursor: pointer;
    transition: color var(--transition);
}

.site-footer__cookie-settings:hover {
    color: #fff;
}

.cookie-consent {
    position: fixed;
    z-index: 1200;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 18px;
    pointer-events: none;
}

.cookie-consent::before {
    position: fixed;
    z-index: -1;
    right: 0;
    bottom: 0;
    left: 0;
    height: min(46vh, 420px);
    content: "";
    background: linear-gradient(0deg, rgba(19, 22, 46, .28), transparent);
    opacity: 0;
    transition: opacity .22s ease;
}

.cookie-consent__panel {
    display: grid;
    width: min(100%, 930px);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 28px;
    align-items: center;
    margin: 0 auto;
    padding: 20px 22px;
    border: 1px solid rgba(222, 224, 239, .96);
    border-radius: 18px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 24px 65px rgba(30, 34, 70, .22);
    backdrop-filter: blur(16px);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .22s ease, transform .22s ease;
}

.cookie-consent.is-visible::before {
    opacity: 1;
}

.cookie-consent.is-visible .cookie-consent__panel {
    opacity: 1;
    transform: translateY(0);
}

.cookie-consent__intro {
    display: grid;
    min-width: 0;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
}

.cookie-consent__icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    color: #5a5ee8;
    background: #eff0ff;
}

.cookie-consent h2 {
    margin: 1px 0 5px;
    color: #2c304a;
    font-size: 15px;
    letter-spacing: -.015em;
}

.cookie-consent p {
    max-width: 590px;
    margin: 0;
    color: #73778d;
    font-size: 10px;
    line-height: 1.62;
}

.cookie-consent p a {
    color: var(--color-primary);
    font-weight: 700;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.cookie-consent__button,
.cookie-consent__link {
    min-height: 37px;
    padding: 9px 12px;
    border: 1px solid #dfe1ed;
    border-radius: 9px;
    color: #4d5169;
    background: #fff;
    font-family: inherit;
    font-size: 9.5px;
    font-weight: 750;
    cursor: pointer;
}

.cookie-consent__button--primary {
    border-color: var(--color-primary);
    color: #fff;
    background: var(--color-primary);
}

.cookie-consent__link {
    border-color: transparent;
    color: var(--color-primary);
    background: transparent;
}

.cookie-consent__button:hover,
.cookie-consent__link:hover {
    transform: translateY(-1px);
}

.cookie-consent__preferences {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding-top: 14px;
    border-top: 1px solid #ebecf3;
}

.cookie-consent__preferences[hidden] {
    display: none;
}

.cookie-consent__preferences label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    align-items: start;
    padding: 11px;
    border: 1px solid #e8e9f1;
    border-radius: 11px;
    background: #fafafe;
    cursor: pointer;
}

.cookie-consent__preferences strong,
.cookie-consent__preferences small {
    display: block;
}

.cookie-consent__preferences strong {
    color: #444860;
    font-size: 9.5px;
}

.cookie-consent__preferences small {
    margin-top: 4px;
    color: #8b8fa3;
    font-size: 7.5px;
    line-height: 1.45;
}

.cookie-consent__preferences input {
    margin: 2px 0 0;
    accent-color: var(--color-primary);
}

@media (max-width: 760px) {
    .page-school .school-related {
        margin-top: 38px;
        border-radius: 19px;
    }

    .page-school .school-related__header {
        display: grid;
        align-items: start;
    }

    .page-school .school-related__content {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .cookie-consent__panel {
        grid-template-columns: 1fr;
    }

    .cookie-consent__actions {
        justify-content: flex-start;
    }

    .cookie-consent__preferences {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .page-school .school-related__item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .page-school .school-related__open {
        width: max-content;
    }

    .cookie-consent {
        padding: 10px;
    }

    .cookie-consent__panel {
        max-height: calc(100vh - 20px);
        gap: 14px;
        padding: 17px;
        overflow-y: auto;
        border-radius: 15px;
    }

    .cookie-consent__intro {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
    }

    .cookie-consent__icon {
        width: 34px;
        height: 34px;
    }

    .cookie-consent__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cookie-consent__actions > * {
        width: 100%;
    }

    .cookie-consent__preferences {
        grid-template-columns: 1fr;
    }
}

.about-proof {
    display: grid;
    grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: clamp(35px, 6vw, 75px);
    margin-top: 108px;
    padding: 45px 48px;
    border-radius: 26px;
    color: #b9bdd3;
    background:
        radial-gradient(circle at 95% 0, rgba(119, 123, 242, .25), transparent 23rem),
        #292d59;
    box-shadow: 0 26px 60px rgba(41, 45, 89, .15);
}

.about-proof__intro h2 {
    color: #fff;
}

.about-proof__intro > p {
    margin-top: 15px;
    color: #a6aac2;
    font-size: 10px;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 17px;
    background: rgba(255, 255, 255, .1);
}

.about-stats > div {
    padding: 21px 23px;
    background: rgba(255, 255, 255, .045);
}

.about-stats dt {
    margin-bottom: 6px;
    color: #fff;
    font-size: clamp(19px, 3vw, 27px);
    font-weight: 800;
    letter-spacing: -.04em;
}

.about-stats dd {
    margin: 0;
    color: #9ca0ba;
    font-size: 8px;
    font-weight: 600;
    line-height: 1.45;
}

.about-section__heading--compact {
    margin-bottom: 30px;
}

.about-press__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.about-press__item {
    display: flex;
    min-width: 0;
    min-height: 190px;
    flex-direction: column;
    padding: 21px;
    border: 1px solid #e3e4ef;
    border-radius: 18px;
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

a.about-press__item:hover {
    border-color: #d3d5ef;
    box-shadow: 0 16px 38px rgba(45, 49, 91, .07);
    transform: translateY(-2px);
}

.about-press__item.is-placeholder {
    background: #fbfbfd;
}

.about-press__logo {
    display: flex;
    min-height: 66px;
    align-items: flex-end;
    margin-bottom: 18px;
    padding-bottom: 7px;
    border-bottom: 1px solid #ececf3;
    background-image: var(--press-logo);
    background-position: left top;
    background-repeat: no-repeat;
    background-size: auto 36px;
}

.about-press__logo > span {
    color: #414662;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.about-press__title {
    color: #555a73;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.55;
}

.about-press__action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--color-primary);
    font-size: 8px;
    font-weight: 750;
}

.about-press__item.is-placeholder .about-press__action {
    color: #9a9daf;
}

.about-contact {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
    gap: clamp(35px, 7vw, 88px);
    margin-top: 108px;
    padding: clamp(36px, 5vw, 56px);
    border: 1px solid #dfe1f0;
    border-radius: 30px;
    background:
        radial-gradient(circle at 5% 0, rgba(91, 95, 232, .09), transparent 24rem),
        #f8f8fd;
}

.about-contact__main > p {
    max-width: 560px;
    margin: 18px 0 25px;
    color: #73778d;
    font-size: 12px;
    line-height: 1.75;
}

.about-contact__main .button svg {
    flex: 0 0 auto;
}

.about-contact__details {
    padding-left: clamp(0px, 4vw, 48px);
    border-left: 1px solid #dde0ee;
}

.about-contact__details dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.about-contact__details dl > div {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid #e3e4ef;
}

.about-contact__details dt {
    color: #969aad;
    font-size: 8px;
    font-weight: 700;
}

.about-contact__details dd {
    margin: 0;
    color: #454a68;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.5;
}

.about-contact__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

@media (max-width: 900px) {
    .about-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .about-hero__content {
        max-width: 760px;
    }

    .about-hero__visual {
        width: min(100%, 600px);
    }

    .about-method__body {
        grid-template-columns: 1fr;
    }

    .about-formula {
        max-width: 610px;
    }

    .about-team__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-person:last-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr);
    }

    .about-person:last-child .about-person__photo {
        aspect-ratio: auto;
        min-height: 260px;
    }

    .about-person:last-child .about-person__bio {
        min-height: 0;
    }

    .about-proof,
    .about-contact {
        grid-template-columns: 1fr;
    }

    .about-contact__details {
        padding: 28px 0 0;
        border-top: 1px solid #dde0ee;
        border-left: 0;
    }
}

@media (max-width: 700px) {
    .about-page {
        width: min(calc(100% - 28px), var(--container));
        padding: 24px 0 70px;
    }

    .about-hero {
        gap: 35px;
        padding: 25px 0 40px;
    }

    .about-hero__content h1 {
        font-size: clamp(37px, 11vw, 50px);
    }

    .about-hero__lead {
        font-size: 16px;
    }

    .about-hero__actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }

    .about-hero__visual {
        padding: 21px;
        border-radius: 22px;
    }

    .about-section {
        margin-top: 78px;
    }

    .about-section__heading,
    .about-method__header {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }

    .about-mission__statement {
        padding: 34px 28px 31px;
    }

    .about-mission__statement::before {
        top: 24px;
        left: 13px;
        font-size: 48px;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .about-values article,
    .about-values article + article {
        display: grid;
        grid-template-columns: 43px minmax(0, 1fr);
        column-gap: 15px;
        padding: 23px 0;
        border-bottom: 1px solid #e5e6ef;
        border-left: 0;
    }

    .about-values article > span {
        grid-row: span 2;
        margin: 0;
    }

    .about-values h3 {
        margin: 1px 0 5px;
    }

    .about-method {
        margin-top: 78px;
        padding: 28px 20px;
        border-radius: 24px;
    }

    .about-method__sources {
        grid-template-columns: 1fr;
    }

    .about-team__grid,
    .about-press__grid {
        grid-template-columns: 1fr;
    }

    .about-person:last-child {
        display: block;
        grid-column: auto;
    }

    .about-person:last-child .about-person__photo {
        min-height: 0;
        aspect-ratio: 1.2 / 1;
    }

    .about-person__bio {
        min-height: 0;
    }

    .about-proof {
        margin-top: 78px;
        padding: 32px 23px;
        border-radius: 22px;
    }

    .about-contact {
        margin-top: 78px;
        padding: 30px 22px;
        border-radius: 23px;
    }
}

@media (max-width: 520px) {
    .about-hero__brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .about-hero__brand > span {
        max-width: none;
        text-align: left;
    }

    .about-method__sources article {
        grid-template-columns: 1fr;
    }

    .about-method__source-icon {
        width: 42px;
        height: 42px;
    }

    .about-formula {
        padding: 23px 20px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-contact__details dl > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .about-contact__main .button {
        width: 100%;
        padding-inline: 15px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-person,
    .about-press__item,
    .about-text-link svg {
        transition: none;
    }
}

/* Blog V12.2 — compact article header and school-page components */
.page-blog-post {
    background:
        radial-gradient(circle at 50% 0, rgba(92, 88, 232, .035), transparent 430px),
        #fff;
}

.page-blog-post .blog-article {
    padding-top: 24px;
    padding-bottom: 92px;
}

.page-blog-post .blog-article__layout {
    grid-template-columns: minmax(0, 1fr) 218px;
    gap: 24px;
}

.page-blog-post .blog-article-hero {
    padding: 32px 36px 30px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 94% 4%, rgba(86, 91, 232, .12), transparent 15rem),
        linear-gradient(135deg, #fff, #f8f8ff);
    box-shadow: 0 14px 38px rgba(43, 48, 92, .055);
}

.page-blog-post .blog-article-hero h1 {
    max-width: 760px;
    font-size: clamp(30px, 3.4vw, 44px);
    letter-spacing: -.042em;
    line-height: 1.08;
}

.page-blog-post .blog-article-hero__lead {
    max-width: 720px;
    margin-top: 15px;
    font-size: clamp(12.5px, 1.15vw, 14.5px);
    line-height: 1.62;
}

.page-blog-post .blog-article-hero__meta {
    gap: 10px 17px;
    margin-top: 19px;
    font-size: 9.5px;
}

.page-blog-post .blog-author-chip {
    gap: 8px;
}

.page-blog-post .blog-author-chip i {
    width: 28px;
    height: 28px;
    font-size: 10px;
}

.page-blog-post .blog-article-cover {
    margin-top: 18px;
    border-radius: 20px;
    box-shadow: 0 14px 36px rgba(41, 45, 87, .07);
}

.page-blog-post .blog-article-copy {
    margin-top: 18px;
    border-radius: 20px;
}

.page-blog-post .blog-article__main > .school-helpful,
.page-blog-post .blog-article__main > .school-author-card,
.page-blog-post .blog-article__main > .school-page-faq,
.page-blog-post .blog-article__main > .school-comments {
    margin-top: 20px;
}

.page-blog-post .school-author-card--profile {
    position: relative;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 22px;
    overflow: hidden;
    padding: 27px 30px;
    border-color: #e5e6f4;
    background:
        radial-gradient(circle at 8% 15%, rgba(255, 213, 112, .22), transparent 160px),
        linear-gradient(135deg, #fbfbff 0%, #f4f5ff 100%);
}

.page-blog-post .school-author-card--profile::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 4px;
    border-radius: 0 0 0 4px;
    content: "";
    background: linear-gradient(90deg, #6767eb, #f2bd3f);
}

.page-blog-post .school-author-card__portrait {
    position: relative;
    display: grid;
    width: 96px;
    height: 96px;
    grid-row: 1 / span 2;
    place-items: center;
}

.page-blog-post .school-author-card__portrait::before {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    content: "";
    background: linear-gradient(145deg, #dfe2ff, #fff0c9);
    transform: rotate(-7deg) scale(1.03);
}

.page-blog-post .school-author-card__portrait img {
    position: relative;
    z-index: 1;
    width: 82px;
    height: 82px;
    border: 4px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(43, 47, 91, .13);
}

.page-blog-post .school-author-card--profile h2 {
    font-size: 19px;
}

.page-blog-post .school-author-card--profile h2 a {
    color: inherit;
    transition: color var(--transition);
}

.page-blog-post .school-author-card--profile h2 a:hover {
    color: var(--color-primary);
}

.page-blog-post .school-author-card--profile .school-author-card__role {
    color: #777c99;
    font-size: 11px;
}

.page-blog-post .school-author-card__identity {
    align-self: end;
}

.page-blog-post .school-author-card--profile .school-author-card__bio {
    grid-column: 2;
    align-self: start;
    max-width: 660px;
    margin: 4px 0 0;
    color: #555a72;
    font-size: 13px;
    line-height: 1.65;
}

.page-blog-post .school-comments__disclaimer {
    margin: 19px 0 0;
    padding: 15px 17px;
    border-top: 1px solid #e8eaf1;
    color: #85899d;
    background: #fafafd;
    font-size: 9.5px;
    line-height: 1.65;
}

.page-blog-post .school-comments__disclaimer strong {
    color: #666a80;
}

.page-blog-post .blog-article__sidebar {
    top: 18px;
    gap: 14px;
}

.page-blog-post .blog-article__sidebar .school-share-card {
    position: relative;
    overflow: hidden;
    padding: 17px 16px;
    border: 1px solid rgba(221, 223, 238, .88);
    border-radius: 16px;
    background:
        radial-gradient(circle at 90% 4%, rgba(122, 126, 240, .18), transparent 92px),
        linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(244, 245, 255, .78));
    box-shadow: 0 14px 34px rgba(40, 45, 82, .065);
    backdrop-filter: blur(16px);
}

.page-blog-post .blog-article__sidebar .school-share-card h2 {
    margin: 0;
    color: #30354e;
    font-size: 16px;
    letter-spacing: -.02em;
}

.page-blog-post .school-share-card > p {
    margin: 5px 0 13px;
    color: #8b8fa1;
    font-size: 8.5px;
    line-height: 1.45;
}

.page-blog-post .school-share-card__links {
    display: grid;
    grid-template-columns: repeat(3, 34px) minmax(0, 1fr);
    gap: 6px;
}

.page-blog-post .school-share-card__links a,
.page-blog-post .school-share-card__copy {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(44, 49, 87, .075);
    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.page-blog-post .school-share-card__links a:first-child {
    color: #286cc7;
    background: rgba(226, 237, 255, .9);
}

.page-blog-post .school-share-card__links a:nth-child(2) {
    color: #168dcc;
    background: rgba(224, 245, 255, .9);
}

.page-blog-post .school-share-card__links a:nth-child(3) {
    color: #696e86;
    background: rgba(255, 255, 255, .82);
}

.page-blog-post .school-share-card__links a:hover,
.page-blog-post .school-share-card__copy:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.page-blog-post .school-share-card__copy {
    width: auto;
    min-width: 0;
    gap: 4px;
    padding: 0 7px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #6266eb, #5054d6);
    font: inherit;
    font-size: 8.5px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
}

.page-blog-post .school-share-card__copy:hover {
    box-shadow: 0 9px 19px rgba(80, 84, 214, .22);
}

.page-blog-post .school-share-card__copy.is-copied {
    background: linear-gradient(135deg, #24996d, #16845b);
}

.page-blog-post .school-share-card__status {
    display: block;
    margin-top: 8px;
    color: #27815f;
    font-size: 8px;
    font-weight: 650;
    line-height: 1.35;
}

.page-blog-post .school-ad-stack {
    gap: 10px;
}

.page-blog-post .school-ad {
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(43, 47, 91, .055);
}

.page-blog-post .blog-recent-card {
    padding: 18px 16px;
    border-radius: 16px;
}

@media (max-width: 800px) {
    .page-blog-post .blog-article__layout {
        grid-template-columns: 1fr;
    }

    .page-blog-post .blog-article__sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-blog-post .school-ad-stack {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .page-blog-post .blog-article {
        padding-top: 18px;
        padding-bottom: 68px;
    }

    .page-blog-post .blog-article-hero {
        padding: 24px 20px 22px;
        border-radius: 18px;
    }

    .page-blog-post .blog-article-hero h1 {
        font-size: clamp(27px, 8.6vw, 34px);
    }

    .page-blog-post .blog-article-hero__lead {
        margin-top: 12px;
        font-size: 12.5px;
    }

    .page-blog-post .blog-article-hero__meta {
        margin-top: 16px;
    }

    .page-blog-post .blog-article-cover,
    .page-blog-post .blog-article-copy {
        border-radius: 17px;
    }

    .page-blog-post .school-author-card--profile {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 15px;
        padding: 21px 18px;
    }

    .page-blog-post .school-author-card__portrait {
        width: 62px;
        height: 62px;
        grid-row: auto;
    }

    .page-blog-post .school-author-card__portrait img {
        width: 54px;
        height: 54px;
    }

    .page-blog-post .school-author-card--profile h2 {
        font-size: 16px;
    }

    .page-blog-post .school-author-card__identity {
        align-self: center;
    }

    .page-blog-post .school-author-card--profile .school-author-card__bio {
        grid-column: 1 / -1;
        margin-top: 1px;
        font-size: 12px;
    }

    .page-blog-post .blog-article__sidebar,
    .page-blog-post .school-ad-stack {
        grid-template-columns: 1fr;
    }
}

/* Footer map interaction hotfix */
.site-footer__map::before {
    pointer-events: none;
}

.site-footer__map iframe {
    position: relative;
    z-index: 1;
}

.site-footer__map > a {
    z-index: 3;
    cursor: pointer;
}

/* Add school — public submission page */
.page-add-school {
    background:
        radial-gradient(circle at 14% 7%, rgba(90, 94, 232, .06), transparent 28rem),
        radial-gradient(circle at 88% 30%, rgba(242, 189, 63, .055), transparent 24rem),
        #fff;
}

.page-add-school .breadcrumbs-wrap {
    padding-top: 17px;
}

.add-school-page {
    padding-top: 28px;
    padding-bottom: 100px;
}

.add-school-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(34px, 6vw, 75px);
    align-items: center;
    padding: 25px 0 42px;
    border-bottom: 1px solid #e6e8f1;
}

.add-school-hero h1,
.add-school-hero p,
.add-school-hero__note strong,
.add-school-hero__note small {
    margin: 0;
}

.add-school-hero h1 {
    max-width: 690px;
    color: #292e5c;
    font-size: clamp(35px, 4.4vw, 50px);
    letter-spacing: -.048em;
    line-height: 1.07;
}

.add-school-hero__content > p {
    max-width: 680px;
    margin-top: 17px;
    color: #73778e;
    font-size: 14px;
    line-height: 1.7;
}

.add-school-hero__note {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    padding: 19px 20px;
    border: 1px solid rgba(207, 210, 235, .82);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0, rgba(90, 94, 232, .11), transparent 120px),
        rgba(255, 255, 255, .82);
    box-shadow: 0 15px 38px rgba(42, 46, 85, .055);
    backdrop-filter: blur(14px);
}

.add-school-hero__note > span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    color: #5358df;
    background: #eceeff;
}

.add-school-hero__note strong,
.add-school-hero__note small {
    display: block;
}

.add-school-hero__note strong {
    color: #363b61;
    font-size: 11.5px;
    line-height: 1.35;
}

.add-school-hero__note small {
    margin-top: 5px;
    color: #85899f;
    font-size: 9px;
    line-height: 1.55;
}

.add-school-success {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-top: 28px;
    padding: 20px 22px;
    border: 1px solid rgba(50, 157, 111, .22);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(239, 251, 246, .96), rgba(247, 253, 250, .94));
    box-shadow: 0 14px 34px rgba(36, 130, 88, .055);
}

.add-school-success > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, #40aa7d, #278d65);
    font-size: 21px;
    font-weight: 800;
}

.add-school-success h2 {
    margin: 1px 0 5px;
    color: #286a51;
    font-size: 16px;
}

.add-school-success p {
    max-width: 750px;
    margin: 0;
    color: #5e7a6e;
    font-size: 10.5px;
    line-height: 1.65;
}

.add-school-alert {
    margin-top: 24px;
    padding: 14px 17px;
    border-radius: 13px;
    font-size: 11px;
    font-weight: 600;
}

.add-school-alert--error {
    border: 1px solid rgba(188, 82, 97, .18);
    color: #9c4654;
    background: #fff4f5;
}

.add-school-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 28px;
    align-items: start;
    margin-top: 30px;
}

.add-school-form {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e3e5ef;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(40, 44, 82, .06);
}

.add-school-form__section {
    width: auto !important;
    margin: 0 !important;
    padding: 29px 31px 31px;
    border-bottom: 1px solid #e8e9f1;
}

.add-school-form__heading {
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    margin-bottom: 23px;
}

.add-school-form__heading > span {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 12px;
    color: #5559df;
    background: #edeefe;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .03em;
}

.add-school-form__heading h2 {
    margin: 0;
    color: #33385d;
    font-size: 17px;
    letter-spacing: -.025em;
    line-height: 1.25;
}

.add-school-form__heading p {
    max-width: 600px;
    margin: 5px 0 0;
    color: #8a8ea2;
    font-size: 9.5px;
    line-height: 1.55;
}

.add-school-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 18px;
}

.add-school-field {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 7px;
}

.add-school-field--wide {
    grid-column: 1 / -1;
}

.add-school-field label {
    color: #454a66;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.35;
}

.add-school-field label b {
    color: #676bea;
    font: inherit;
}

.add-school-field input,
.add-school-field select,
.add-school-field textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #dfe1eb;
    border-radius: 12px;
    outline: none;
    color: #40445f;
    background-color: #fbfbfe;
    font-size: 11px;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.add-school-field input,
.add-school-field select {
    height: 44px;
    padding: 0 13px;
}

.add-school-field select {
    padding-right: 35px;
    background-image:
        linear-gradient(45deg, transparent 50%, #8a8ea2 50%),
        linear-gradient(135deg, #8a8ea2 50%, transparent 50%);
    background-position:
        calc(100% - 17px) 19px,
        calc(100% - 12px) 19px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    appearance: none;
}

.add-school-field textarea {
    min-height: 116px;
    padding: 12px 13px;
    resize: vertical;
    line-height: 1.6;
}

.add-school-field input::placeholder,
.add-school-field textarea::placeholder {
    color: #adb0c0;
}

.add-school-field input:hover,
.add-school-field select:hover,
.add-school-field textarea:hover {
    border-color: #d1d3e2;
    background-color: #fff;
}

.add-school-field input:focus,
.add-school-field select:focus,
.add-school-field textarea:focus {
    border-color: #aeb1f1;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(90, 94, 232, .08);
}

.add-school-field [aria-invalid="true"] {
    border-color: #dba4ac;
    background: #fffafb;
}

.add-school-field__error {
    margin: -1px 0 0;
    color: #ad4e5c;
    font-size: 8.5px;
    font-weight: 600;
    line-height: 1.45;
}

.add-school-form__footer {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: space-between;
    padding: 24px 31px 27px;
    background:
        radial-gradient(circle at 100% 0, rgba(90, 94, 232, .07), transparent 190px),
        #fafaff;
}

.add-school-form__footer p {
    max-width: 440px;
    margin: 0;
    color: #9094a7;
    font-size: 8.5px;
    line-height: 1.55;
}

.add-school-form__footer p a {
    color: #585ddf;
    font-weight: 700;
}

.add-school-form__footer .button {
    min-width: 205px;
    flex: 0 0 auto;
    justify-content: center;
    border: 0;
    box-shadow: 0 12px 25px rgba(79, 83, 216, .19);
}

.add-school-form__footer .button:hover {
    color: #fff;
    box-shadow: 0 15px 30px rgba(79, 83, 216, .25);
    transform: translateY(-1px);
}

.add-school-aside {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 14px;
}

.add-school-aside__card {
    padding: 21px 20px;
    border: 1px solid #e2e4ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(42, 46, 83, .045);
}

.add-school-aside__card h2 {
    margin: 0 0 17px;
    color: #353a60;
    font-size: 14px;
    letter-spacing: -.02em;
}

.add-school-aside__card ol,
.add-school-aside__card ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.add-school-aside__card ol li {
    position: relative;
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 11px;
    padding: 0 0 19px;
}

.add-school-aside__card ol li:last-child {
    padding-bottom: 0;
}

.add-school-aside__card ol li:not(:last-child)::after {
    position: absolute;
    top: 31px;
    bottom: 4px;
    left: 13px;
    width: 1px;
    background: #e0e2ef;
    content: "";
}

.add-school-aside__card ol li > span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid #d9dbf1;
    border-radius: 9px;
    color: #565ae0;
    background: #f0f1ff;
    font-size: 8.5px;
    font-weight: 800;
}

.add-school-aside__card strong {
    display: block;
    color: #4a4f6d;
    font-size: 10px;
    line-height: 1.4;
}

.add-school-aside__card li p {
    margin: 4px 0 0;
    color: #9295a8;
    font-size: 8.5px;
    line-height: 1.55;
}

.add-school-aside__card--soft {
    border-color: rgba(237, 212, 146, .55);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 215, 113, .15), transparent 130px),
        #fffdf8;
}

.add-school-aside__card--soft ul {
    gap: 10px;
}

.add-school-aside__card--soft li {
    position: relative;
    padding-left: 15px;
    color: #7e7b72;
    font-size: 9px;
    line-height: 1.5;
}

.add-school-aside__card--soft li::before {
    position: absolute;
    top: .55em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #e5b83f;
    content: "";
}

.add-school-aside__contact {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 15px;
    color: #d9dced;
    background: #292d59;
}

.add-school-aside__contact > span {
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: rgba(255, 255, 255, .09);
}

.add-school-aside__contact small,
.add-school-aside__contact a {
    display: block;
}

.add-school-aside__contact small {
    color: #9da1bd;
    font-size: 7.5px;
}

.add-school-aside__contact a {
    margin-top: 2px;
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .add-school-hero {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 30px;
    }

    .add-school-layout {
        grid-template-columns: minmax(0, 1fr) 230px;
        gap: 20px;
    }

    .add-school-form__section {
        padding-inline: 24px;
    }

    .add-school-form__footer {
        padding-inline: 24px;
    }
}

@media (max-width: 760px) {
    .add-school-page {
        width: min(calc(100% - 28px), var(--container));
        padding-top: 18px;
        padding-bottom: 72px;
    }

    .add-school-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px 0 31px;
    }

    .add-school-hero h1 {
        font-size: clamp(34px, 9vw, 45px);
    }

    .add-school-hero__note {
        max-width: 480px;
    }

    .add-school-layout {
        grid-template-columns: 1fr;
    }

    .add-school-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .add-school-aside__contact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .add-school-hero h1 {
        font-size: 34px;
    }

    .add-school-hero__content > p {
        font-size: 12.5px;
    }

    .add-school-success {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 18px;
    }

    .add-school-success > span {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .add-school-form {
        border-radius: 19px;
    }

    .add-school-form__section {
        padding: 24px 18px 26px;
    }

    .add-school-form__heading {
        grid-template-columns: 35px minmax(0, 1fr);
        gap: 11px;
    }

    .add-school-form__heading > span {
        width: 35px;
        height: 35px;
    }

    .add-school-fields {
        grid-template-columns: 1fr;
    }

    .add-school-field--wide {
        grid-column: auto;
    }

    .add-school-form__footer {
        align-items: stretch;
        flex-direction: column;
        padding: 21px 18px 23px;
    }

    .add-school-form__footer .button {
        width: 100%;
        min-width: 0;
    }

    .add-school-aside {
        grid-template-columns: 1fr;
    }

    .add-school-aside__contact {
        grid-column: auto;
    }
}
