:root {
    --old-blue: #153c72;
    --old-cyan: #27b3d3;
    --old-red: #ed334a;
    --old-ink: #202b3c;
    --old-soft: #f2f6fa;
}

.old-site { margin: 0; color: var(--old-ink); background: #fff; font-family: GothamProRegular, Arial, sans-serif; font-size: 16px; line-height: 1.55; }
.old-site *, .old-site *::before, .old-site *::after { box-sizing: border-box; }
.old-site a { color: inherit; }
.old-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.old-site h1, .old-site h2, .old-site h3, .old-site p { margin-top: 0; }
.old-site h1, .old-site h2 { font-family: GothamProMedium, Arial, sans-serif; }
.old-site h3 { font-family: GothamProMedium, Arial, sans-serif; }
.old-site h2 { margin-bottom: 34px; color: var(--old-blue); font-size: clamp(28px, 3vw, 42px); line-height: 1.15; }
.old-kicker { margin-bottom: 10px; color: var(--old-red); font-family: GothamProBold, Arial, sans-serif; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; }

.old-header { position: relative; z-index: 5; background: #fff; box-shadow: 0 3px 18px rgba(25, 48, 79, .08); }
.old-header__top { min-height: 102px; display: flex; align-items: center; gap: 30px; }
.old-logo img { display: block; width: 188px; height: auto; }
.old-header__slogan { margin: 0; padding-left: 28px; border-left: 1px solid #d8e0e8; color: #667486; font-size: 13px; line-height: 1.45; }
.old-header__contact { margin-left: auto; text-align: right; }
.old-header__contact a { display: block; color: var(--old-blue); font-family: GothamProBold, Arial, sans-serif; font-size: 21px; text-decoration: none; }
.old-header__contact span { color: #758295; font-size: 12px; }
.old-header__callback { padding: 12px 20px; border: 2px solid var(--old-red); border-radius: 3px; color: var(--old-red); font-family: GothamProBold, Arial, sans-serif; font-size: 13px; text-decoration: none; }
.old-nav { background: var(--old-blue); color: #fff; }
.old-nav .old-container { min-height: 48px; display: flex; align-items: center; gap: 44px; }
.old-nav a { font-family: GothamProMedium, Arial, sans-serif; font-size: 14px; text-decoration: none; text-transform: uppercase; }
.old-nav a:hover { color: #8ce8f4; }

.old-hero { min-height: 600px; display: flex; align-items: center; background: linear-gradient(90deg, rgba(7, 37, 77, .93) 0%, rgba(12, 52, 95, .72) 48%, rgba(12, 52, 95, .08) 100%), url('../legacy/i/home/main_banner1.jpg') center/cover no-repeat; color: #fff; }
.old-hero__content { padding-top: 70px; padding-bottom: 70px; }
.old-hero__copy { max-width: 760px; }
.old-hero h1 { margin-bottom: 26px; font-size: clamp(38px, 5vw, 64px); line-height: 1.08; }
.old-hero__copy > p:not(.old-kicker) { max-width: 700px; font-size: 18px; }
.old-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.old-button { display: inline-flex; min-height: 52px; padding: 13px 26px; align-items: center; justify-content: center; border: 2px solid var(--old-red); border-radius: 3px; background: var(--old-red); color: #fff !important; font-family: GothamProBold, Arial, sans-serif; text-decoration: none; }
.old-button--light { border-color: #fff; background: transparent; }

.old-section { padding: 82px 0; }
.old-section--intro, .old-section--news { background: var(--old-soft); }
.old-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.old-benefits article { min-height: 155px; padding: 28px; border-top: 4px solid var(--old-cyan); background: #fff; box-shadow: 0 10px 35px rgba(32, 54, 82, .08); }
.old-benefits strong { display: block; margin-bottom: 10px; color: var(--old-blue); font-size: 22px; }
.old-benefits span { color: #697589; }

.old-section--courses { color: #fff; background: var(--old-blue); }
.old-section--courses h2 { color: #fff; }
.old-subjects { display: flex; flex-wrap: wrap; gap: 10px; }
.old-subjects a { padding: 10px 15px; border: 1px solid rgba(255,255,255,.34); border-radius: 3px; background: rgba(255,255,255,.08); text-decoration: none; }
.old-subjects a:hover { background: var(--old-cyan); }
.old-result { margin-top: 44px; padding: 32px; display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: 40px; background: rgba(255,255,255,.1); }
.old-result div { display: flex; align-items: center; gap: 16px; }
.old-result strong { color: #8ce8f4; font-size: 64px; line-height: 1; }
.old-result span { font-family: GothamProBold, Arial, sans-serif; line-height: 1.25; }
.old-result p { margin-bottom: 0; }

.old-teachers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.old-teacher { overflow: hidden; border: 1px solid #e2e8ef; background: #fff; }
.old-teacher > img { width: 100%; height: 270px; display: block; object-fit: cover; object-position: top center; background: var(--old-soft); }
.old-teacher > div { padding: 20px; }
.old-teacher h3 { margin-bottom: 8px; color: var(--old-blue); font-size: 17px; line-height: 1.3; }
.old-teacher p { margin-bottom: 0; color: #6b7788; font-size: 13px; }
.old-teacher .old-teacher__subject { margin-bottom: 8px; color: var(--old-red); font-family: GothamProMedium, Arial, sans-serif; }
.old-teacher--link { display: block; color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.old-teacher--link:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(24, 54, 91, .13); }

.old-section--parents { color: #fff; background: var(--old-blue) url('../legacy/i/home/bg_for_parent.jpg') center/cover no-repeat; }
.old-section--parents h2 { color: #fff; }
.old-parent-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; }
.old-parent-features { display: grid; gap: 15px; }
.old-parent-features article { padding: 22px; background: rgba(255,255,255,.94); color: var(--old-ink); }
.old-parent-features strong, .old-parent-features span { display: block; }
.old-parent-features strong { margin-bottom: 6px; color: var(--old-blue); font-size: 17px; }
.old-parent-features span { color: #627086; }

.old-section--diagnostics { background: #22aec9; color: #fff; }
.old-section--diagnostics h2 { color: #fff; }
.old-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.old-two-columns article { padding: 30px; border: 1px solid rgba(255,255,255,.42); background: rgba(255,255,255,.1); }
.old-two-columns h3 { font-size: 24px; }

.old-reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.old-reviews > article { padding: 28px; border: 1px solid #e0e7ef; }
.old-review__head { margin-bottom: 18px; display: flex; align-items: center; gap: 16px; }
.old-review__head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.old-review__head h3 { margin: 0; color: var(--old-blue); font-size: 18px; }
.old-reviews article > p { margin: 0; color: #647185; }
.old-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.old-news article { padding: 26px; background: #fff; }
.old-news span { color: var(--old-red); font-size: 12px; text-transform: uppercase; }
.old-news h3 { margin: 10px 0; color: var(--old-blue); font-size: 19px; line-height: 1.35; }
.old-news p { margin: 0; color: #697589; }

.old-section--consultation { background: #e8f6fa; }
.old-section--consultation .old-container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.old-section--consultation h2 { margin-bottom: 14px; }
.old-section--consultation p:last-child { margin-bottom: 0; }
.old-section--soft { background: var(--old-soft); }

.old-inner-hero { padding: 48px 0 52px; color: #fff; background: linear-gradient(110deg, #153c72, #1e5b94); }
.old-inner-hero a, .old-inner-hero span { margin-right: 8px; color: #b9d5ed; font-size: 13px; text-decoration: none; }
.old-inner-hero h1 { max-width: 900px; margin: 16px 0 0; color: #fff; font-size: clamp(34px, 4vw, 52px); line-height: 1.12; }
.old-lead { color: #405269; font-size: 20px; line-height: 1.6; }
.old-subject-directory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.old-subject-directory a { min-height: 120px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; border-left: 4px solid var(--old-cyan); background: var(--old-soft); color: var(--old-blue); text-decoration: none; transition: .2s ease; }
.old-subject-directory a:hover { transform: translateY(-3px); background: #e4f4f8; }
.old-subject-directory span { font-family: GothamProBold, Arial, sans-serif; font-size: 20px; }
.old-subject-directory small { margin-top: 12px; color: #718095; }
.old-subject-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; }
.old-richtext > p { white-space: pre-line; }
.old-richtext .old-button { margin-top: 20px; }
.old-detail-aside { align-self: start; padding: 30px; border-top: 4px solid var(--old-cyan); background: var(--old-soft); }
.old-detail-aside h2 { margin-bottom: 16px; font-size: 22px; }
.old-detail-aside a { color: var(--old-red); font-family: GothamProBold, Arial, sans-serif; }
.old-filter { margin-bottom: 38px; display: flex; flex-wrap: wrap; gap: 9px; }
.old-filter a { padding: 9px 13px; border: 1px solid #d7e0e9; border-radius: 3px; color: var(--old-blue); font-size: 13px; text-decoration: none; }
.old-filter a:hover, .old-filter a.is-active { border-color: var(--old-blue); background: var(--old-blue); color: #fff; }
.old-profile { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 60px; }
.old-profile__photo img { width: 100%; display: block; background: var(--old-soft); }
.old-profile__subjects { margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.old-profile__subjects a { padding: 7px 11px; background: #e4f4f8; color: var(--old-blue); font-size: 13px; text-decoration: none; }
.old-profile__body h2 { margin: 35px 0 18px; font-size: 26px; }
.old-activities { margin: 0; padding: 0; list-style: none; }
.old-activities li { position: relative; margin-bottom: 12px; padding-left: 23px; color: #526278; }
.old-activities li::before { position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--old-cyan); content: ''; }
.old-back-link { align-self: center; color: var(--old-blue); font-family: GothamProBold, Arial, sans-serif; }
.old-pagination { margin-top: 38px; }
.old-pagination ul { margin: 0; padding: 0; display: flex; gap: 7px; list-style: none; }
.old-pagination a, .old-pagination span { min-width: 38px; height: 38px; padding: 6px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d7e0e9; text-decoration: none; }
.old-pagination .active span { border-color: var(--old-blue); background: var(--old-blue); color: #fff; }
.old-publication-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.old-publication-card { overflow: hidden; display: flex; flex-direction: column; background: #fff; color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.old-publication-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(24,54,91,.13); }
.old-publication-card > img { width: 100%; height: 205px; object-fit: cover; }
.old-publication-card > div { padding: 24px; }
.old-publication-card time, .old-article time { color: var(--old-red); font-size: 12px; }
.old-publication-card h2 { margin: 9px 0 12px; font-size: 20px; line-height: 1.35; }
.old-publication-card p { margin: 0; color: #697589; font-size: 14px; }
.old-article { max-width: 900px; }
.old-article__image { width: 100%; max-height: 500px; margin: 20px 0 34px; object-fit: cover; }
.old-article__content { margin-bottom: 35px; color: #43536a; font-size: 17px; line-height: 1.8; white-space: pre-line; }
.old-reviews--all > article { background: #fff; }
.old-review__head small { color: #718095; }
.old-questions { display: grid; gap: 22px; }
.old-questions article { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: #fff; box-shadow: 0 8px 26px rgba(24,54,91,.07); }
.old-question, .old-answer { padding: 28px; }
.old-question { border-left: 4px solid var(--old-cyan); }
.old-question span { color: var(--old-red); font-size: 12px; }
.old-question h2 { margin: 10px 0 0; color: var(--old-blue); font-size: 18px; line-height: 1.45; }
.old-answer { background: #f8fafc; }
.old-answer strong { display: block; margin-bottom: 10px; color: var(--old-blue); }
.old-answer p { margin: 0; color: #5f6d80; white-space: pre-line; }
.old-test-card { display: grid; grid-template-columns: 360px 1fr; gap: 42px; align-items: start; }
.old-test-card > img { width: 100%; }
.old-test-card h2 { font-size: 28px; }
.old-notice { margin-top: 24px; padding: 16px; border-left: 4px solid var(--old-red); background: #fff2f3; color: #7e3740; font-size: 14px; }
.old-service-copy { max-width: 940px; margin-bottom: 45px; color: #43536a; font-size: 17px; line-height: 1.75; }
.old-service-copy p { margin-bottom: 18px; }
.old-service-copy img { max-width: 100%; height: auto; }
.old-service-directory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.old-service-directory a { min-height: 135px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; border-top: 4px solid var(--old-cyan); background: var(--old-soft); color: var(--old-blue); text-decoration: none; transition: .2s ease; }
.old-service-directory a:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(24,54,91,.12); }
.old-service-directory span { font-family: GothamProBold, Arial, sans-serif; font-size: 19px; line-height: 1.35; }
.old-service-directory small { margin-top: 18px; color: var(--old-red); }
.old-inner-hero--service { background: linear-gradient(110deg, #153c72, #167d9f); }
.old-inner-hero--course { background: linear-gradient(110deg, #153c72, #76284e); }
.old-course-directory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.old-course-directory a { min-height: 112px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.old-course-directory a:hover { background: var(--old-cyan); }
.old-course-directory strong { font-size: 18px; }
.old-course-directory span { margin-top: 12px; color: #b9d5ed; font-size: 12px; }
.old-course-intro { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 70px; align-items: start; }
.old-course-intro .old-button { margin-top: 28px; }
.old-course-score { padding: 35px 28px; background: var(--old-blue); color: #fff; text-align: center; }
.old-course-score strong, .old-course-score span { display: block; }
.old-course-score strong { color: #8ce8f4; font-size: 80px; line-height: 1; }
.old-course-score span { margin-top: 12px; font-family: GothamProBold, Arial, sans-serif; }
.old-course-feature { border-color: #dce6ef; background: var(--old-soft); color: var(--old-ink); }
.old-course-feature h3 { color: var(--old-blue); }
.old-price-list { display: grid; gap: 12px; }
.old-price-item { border: 1px solid #dce4ec; background: #fff; }
.old-price-item summary { padding: 20px 24px; cursor: pointer; color: var(--old-blue); font-family: GothamProBold, Arial, sans-serif; font-size: 18px; }
.old-price-item[open] summary { border-bottom: 1px solid #dce4ec; background: #edf7fa; }
.old-price-content { padding: 28px; overflow-x: auto; color: #43536a; }
.old-price-content h3 { color: var(--old-blue); }
.old-price-content table { width: 100%; min-width: 720px; margin: 24px 0; border-collapse: collapse; }
.old-price-content td, .old-price-content th { padding: 13px; border: 1px solid #dce4ec; vertical-align: top; }
.old-price-content tr:first-child { background: var(--old-blue); color: #fff; }
.old-price-content a { color: var(--old-red); }
.old-footer { padding-top: 62px; background: #102c50; color: #d3deec; }
.old-footer__grid { display: grid; grid-template-columns: 1.25fr 1fr 1.2fr 1fr; gap: 44px; }
.old-footer__logo { width: 170px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.old-footer h2 { margin-bottom: 18px; color: #fff; font-size: 16px; }
.old-footer a { margin-bottom: 9px; display: block; color: #d3deec; font-size: 13px; text-decoration: none; }
.old-footer p { color: #91a4bb; font-size: 13px; }
.old-footer__phone { color: #fff !important; font-family: GothamProBold, Arial, sans-serif; font-size: 18px !important; }
.old-footer__bottom { margin-top: 42px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12); color: #8096b0; font-size: 12px; }

@media (max-width: 960px) {
    .old-header__slogan { display: none; }
    .old-benefits, .old-news { grid-template-columns: repeat(2, 1fr); }
    .old-teachers { grid-template-columns: repeat(2, 1fr); }
    .old-parent-grid { grid-template-columns: 1fr; gap: 35px; }
    .old-footer__grid { grid-template-columns: repeat(2, 1fr); }
    .old-subject-directory { grid-template-columns: repeat(2, 1fr); }
    .old-profile { grid-template-columns: 280px minmax(0, 1fr); gap: 38px; }
    .old-publication-grid { grid-template-columns: repeat(2, 1fr); }
    .old-service-directory, .old-course-directory { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .old-container { width: min(100% - 28px, 1180px); }
    .old-header__top { min-height: 78px; gap: 10px; }
    .old-logo img { width: 132px; }
    .old-header__contact { margin-left: auto; }
    .old-header__contact a { font-size: 14px; }
    .old-header__contact span, .old-header__callback { display: none; }
    .old-nav .old-container { min-height: 44px; gap: 0; justify-content: space-between; overflow-x: auto; }
    .old-nav a { padding-right: 16px; font-size: 11px; white-space: nowrap; }
    .old-hero { min-height: 560px; background-position: 62% center; }
    .old-hero h1 { font-size: 38px; }
    .old-hero__copy > p:not(.old-kicker) { font-size: 16px; }
    .old-actions { flex-direction: column; align-items: stretch; }
    .old-section { padding: 58px 0; }
    .old-benefits, .old-teachers, .old-reviews, .old-news, .old-two-columns, .old-footer__grid { grid-template-columns: 1fr; }
    .old-result { padding: 24px; grid-template-columns: 1fr; gap: 18px; }
    .old-teacher { display: grid; grid-template-columns: 125px 1fr; }
    .old-teacher > img { height: 100%; min-height: 185px; }
    .old-section--consultation .old-container { align-items: stretch; flex-direction: column; }
    .old-subject-directory, .old-subject-detail, .old-profile, .old-publication-grid, .old-questions article, .old-test-card, .old-service-directory, .old-course-directory, .old-course-intro { grid-template-columns: 1fr; }
    .old-detail-aside { order: -1; }
    .old-profile__photo { max-width: 360px; }
}

/* Exact legacy shell: these rules deliberately restore the geometry of the
   active WordPress theme for the header and homepage sections being ported. */
.old-site .page_wrapper { padding-bottom: 0; }
.old-site header, .old-site header * { box-sizing: content-box; }
.old-site .legacy-home, .old-site .legacy-home * { box-sizing: content-box; }
.old-site .legacy-home { font-family: GothamProRegular, Arial, sans-serif; }
.old-site .legacy-home .main_banner .h1 { color: #fff; font-family: GothamProMedium, Arial, sans-serif; font-weight: 500; }
.old-site .legacy-home .main_banner p { font-family: GothamProRegular, Arial, sans-serif; }
.old-site .legacy-home .title_h2 h2 { color: #000; font-family: GothamProMedium, Arial, sans-serif; font-size: 40px; font-weight: 500; line-height: normal; }
.legacy-advantage-grid { display: flex; gap: 15px; overflow: hidden; }
.legacy-advantage-grid .block { flex: 0 0 230px; margin-right: 0; }
.old-site .legacy-home .legacy-advantages { background: #2f598b url('../legacy/i/home/main_banner2.jpg') center/cover no-repeat; }
.old-site .legacy-home .legacy-advantages .title_h2 h2 { color: #fff; }
.old-site .legacy-home .legacy-results .title_h2 h2 { color: #000; }
.old-site .legacy-results .custom_select {
    position: relative;
    max-width: 752px;
    margin: 0 auto -3px;
}
.old-site .legacy-results .custom_select::after {
    width: 20px;
    height: 12px;
    position: absolute;
    top: 24px;
    right: 22px;
    content: '';
    pointer-events: none;
    background: url('../legacy/i/icons/arrow_select.png') no-repeat center;
}
.old-site .legacy-results .custom_select select {
    width: 100%;
    height: 60px;
    padding: 0 60px 0 25px;
    box-sizing: border-box;
    border: 1px solid #d7d7d9;
    border-bottom: 0;
    border-radius: 0;
    appearance: none;
    background: #fff;
    color: #0a0a0a;
    cursor: pointer;
    font: 400 17px/60px GothamProMedium, Arial, sans-serif;
}
.legacy-services #services_wrap { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.legacy-services .services_item { width: auto; min-height: 325px; margin: 0; float: none; }
.legacy-teacher-grid { display: flex; gap: 20px; overflow: hidden; }
.legacy-teacher-grid .block { flex: 0 0 235px; box-sizing: content-box; }
.old-site .legacy-home .legacy-teachers .title_h2 h2 { color: #000; }
.b-navigation__mob-btn { display: none; width: 48px; height: 48px; padding: 0; border: 0; background: #0b70ac; box-shadow: 0 0 8px #fff; cursor: pointer; font-size: 0; position: fixed; z-index: 10000; margin: 20px; }
.b-navigation__mob-btn::before { content: ''; position: absolute; width: 68%; height: 5px; background: #fff; top: 10px; left: 16%; box-shadow: 0 10px 0 #fff, 0 20px 0 #fff; }
.legacy-mobile-nav,
.legacy-mobile-nav__overlay { display: none; }

@media screen and (max-width: 1200px) {
    .b-navigation__mob-btn { display: block; }
    .legacy-mobile-nav {
        width: 270px;
        padding: 78px 0 25px;
        position: fixed;
        z-index: 10002;
        inset: 0 auto 0 -290px;
        display: block;
        overflow-y: auto;
        box-sizing: border-box;
        background: #305b92;
        box-shadow: 0 0 40px rgba(0,0,0,.5);
        transition: left .2s ease;
    }
    .legacy-mobile-nav a {
        height: 54px;
        padding: 0 20px;
        display: block;
        border-bottom: 1px solid #247eb0;
        color: #fff;
        font: 15px/54px GothamProMedium, Arial, sans-serif;
        text-decoration: none;
    }
    .legacy-mobile-nav__close {
        position: absolute;
        top: 18px;
        right: 18px;
        border: 0;
        background: transparent;
        color: #fff;
        font: 38px/38px Arial, sans-serif;
        cursor: pointer;
    }
    .legacy-mobile-nav__overlay {
        position: fixed;
        z-index: 10001;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
        visibility: hidden;
        opacity: 0;
        background: rgba(30,108,182,.3);
        transition: opacity .2s ease;
    }
    .legacy-menu-open .legacy-mobile-nav { left: 0; }
    .legacy-menu-open .legacy-mobile-nav__overlay { visibility: visible; opacity: 1; }
}

@media screen and (min-width: 1201px) {
    .old-site header { padding-top: 5px !important; }
    .old-site header .top { padding-bottom: 5px !important; }
    .old-site header .menu { padding: 5px 0 !important; }
    .old-site header .menu li.active a::after { bottom: -15px !important; }
    .old-site .content_block { padding-top: 114px !important; }
    .old-site .form_search button { height: 34px !important; }
}

@media screen and (max-width: 768px) {
    .old-site .legacy-home .main_banner .h1 { font-size: 30px; line-height: 36px; }
    .legacy-advantage-grid { display: block; overflow: visible; }
    .legacy-advantage-grid .block { display: block; max-width: none; margin: 0 0 20px; }
    .legacy-services #services_wrap { display: block; }
    .legacy-services .services_item { width: 100%; margin-bottom: 20px; }
    .legacy-teacher-grid { width: 90%; display: block; overflow: visible; }
    .legacy-teacher-grid .block { max-width: none; margin-bottom: 20px; }
}

/* Remaining homepage sections use the original WordPress geometry. */
.old-site .legacy-home .legacy-parents .title_h2 h2,
.old-site .legacy-home .legacy-reviews .title_h2 h2,
.old-site .legacy-home .legacy-reviews .title_h2 h2 a { color: #fff; }
.old-site .legacy-parent-tabs .tab_links { position: relative; }
.old-site .legacy-parent-tabs .hidden_content.active { display: block; }
.old-site .legacy-parent-tabs .tabs_moving_line { bottom: -1px; left: 0; }
.old-site .legacy-parent-tabs .img_block img { max-width: 100%; height: auto; }
.old-site .legacy-home .legacy-trial,
.old-site .legacy-home .legacy-documents { background: #fff; }
.old-site .legacy-home .legacy-trial { position: relative; z-index: 2; }
.legacy-discount-form { display: flex; align-items: flex-start; }
.legacy-discount-form input {
    width: 165px;
    height: 43px;
    padding: 0 12px;
    border: 1px solid #d7d7d9;
    border-radius: 0;
    color: #222;
    font: 14px Arial, sans-serif;
}
.old-site .legacy-home .legacy-discount { padding: 48px 0 55px; }
.old-site .legacy-home .legacy-discount .discount_block {
    top: 0;
    padding: 0;
    overflow: visible;
}
.old-site .legacy-home .legacy-discount .discount_block .block.long_block {
    width: 100%;
    max-width: none;
    padding: 30px 35px 25px;
    box-sizing: border-box;
    float: none;
}
.old-site .legacy-home .legacy-discount .discount_block .number { width: 25%; flex: 0 0 25%; }
.old-site .legacy-home .legacy-discount .discount_block .number span { margin-left: 0; }
.old-site .legacy-home .legacy-discount .discount_block .text { width: 75%; }
.old-site .legacy-home .legacy-discount .legacy-discount-form { max-width: 520px; }
.old-site .legacy-home .legacy-discount .title_discount {
    margin: 24px 0 20px;
    padding: 0;
}
.legacy-price-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}
.legacy-price-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    color: #000;
    box-shadow: 0 1px 4px rgba(15, 48, 88, .18);
}
.old-site .legacy-price-card__title {
    min-height: 76px;
    margin: 0;
    padding: 24px 20px;
    box-sizing: border-box;
    font-family: GothamProBold, Arial, sans-serif;
    font-size: 21px;
    font-weight: normal;
}
.legacy-price-card__title--blue { background: #ebeef4; }
.legacy-price-card__title--green { background: #f8fcf5; }
.legacy-price-card__title--orange { background: #fff7f0; }
.legacy-price-card__counter { padding: 12px 20px; border-bottom: 1px solid #ebeef4; }
.legacy-price-card__counter > span { min-height: 34px; display: block; font-size: 13px; line-height: 17px; }
.legacy-price-card__counter > div { display: flex; align-items: center; gap: 6px; }
.legacy-price-card__counter button {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #325c94;
    cursor: pointer;
    font: 22px/24px GothamProMedium, Arial, sans-serif;
}
.legacy-price-card__counter output {
    width: 42px;
    height: 25px;
    background: #eaeef4;
    color: #325c94;
    text-align: center;
    font: 16px/25px GothamProBold, Arial, sans-serif;
}
.legacy-price-card__price { min-height: 105px; padding: 15px 20px 10px; box-sizing: border-box; }
.legacy-price-card__price s { display: block; opacity: .7; font-size: 12px; }
.legacy-price-card__price strong { display: block; font: 36px/1.15 GothamProBold, Arial, sans-serif; }
.legacy-price-card__price strong small { font-family: GothamProRegular, Arial, sans-serif; font-size: 13px; font-weight: normal; }
.legacy-price-card__price > span { display: block; color: #63b92f; font-size: 13px; }
.legacy-price-card__options { min-height: 61px; margin: 0 20px 12px; }
.legacy-price-card__options label { margin-bottom: 5px; display: block; cursor: pointer; font-size: 12px; line-height: 18px; }
.legacy-price-card__options input { margin: 0 5px 0 0; vertical-align: -1px; }
.legacy-price-card__action {
    min-height: 56px;
    margin: auto 10px 10px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #325c94;
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-family: GothamProMedium, Arial, sans-serif;
    font-size: 12px;
}
.legacy-price-card--simple .legacy-price-card__price { min-height: 92px; padding-top: 28px; }
.legacy-price-card--simple > p { margin: 0 20px 20px; color: #555; font-size: 13px; line-height: 19px; }
@media screen and (max-width: 1000px) and (min-width: 769px) {
    .legacy-price-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.legacy-review-slider { outline: none; }
.legacy-review-track { min-height: 285px; }
.legacy-review-slide { display: none; }
.legacy-review-slide.is-active { display: block; animation: legacy-review-in .28s ease; }
.legacy-review-slider .reviews_text { min-height: 120px; }
.legacy-review-arrow {
    width: 42px; height: 58px; margin: 0; padding: 0; position: absolute; top: 52%; z-index: 5;
    border: 0; background: transparent; cursor: pointer; transform: translateY(-50%);
}
.legacy-review-arrow::before {
    content: ""; width: 18px; height: 18px; position: absolute; top: 19px;
    border-top: 3px solid #fff; border-right: 3px solid #fff;
}
.legacy-review-arrow--prev { left: -58px; }
.legacy-review-arrow--prev::before { left: 14px; transform: rotate(-135deg); }
.legacy-review-arrow--next { right: -58px; }
.legacy-review-arrow--next::before { right: 14px; transform: rotate(45deg); }
.legacy-review-arrow:hover::before,
.legacy-review-arrow:focus-visible::before { border-color: #facd8a; }
.legacy-review-arrow:focus-visible { outline: 2px solid #facd8a; outline-offset: 2px; }
.legacy-review-counter { margin-top: 18px; color: #cbd8e9; font-size: 12px; text-align: center; }
@keyframes legacy-review-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
.legacy-license-grid {
    width: 1210px;
    max-width: calc(100% - 30px);
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 13px;
    overflow: hidden;
}
.legacy-license-grid .block { flex: 0 0 229px; margin-left: 0; }
.legacy-license-grid .block .img img { width: 150px; max-width: 100%; margin: 0 auto; display: block; }
.old-site .legacy-home .legacy-documents { padding-bottom: 80px; }

/* The old stylesheet positioned the footer against the viewport because it
   lived inside a padded wrapper. In October it is a normal document footer. */
.old-site .legacy-footer {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    height: auto !important;
    min-height: 500px !important;
    margin: 0 !important;
    overflow: hidden;
    background: #3565a3 !important;
    font-family: GothamProRegular, Arial, sans-serif;
}
.old-site .legacy-footer > .wrapper,
.old-site .legacy-footer > .wrapper > .container { min-height: 500px; background: #3565a3; }
.old-site .legacy-footer .center_col_content { color: #fff; }
.old-site .legacy-footer .legacy-footer__address { color: #fff; font-size: 14px; line-height: 22px; }
.old-site .legacy-footer .social { display: block; margin: 20px 0 16px; padding-right: 0; }
.old-site .legacy-footer .order_call.btn { display: inline-block; }

@media screen and (max-width: 768px) {
    .old-site .legacy-home .legacy-parents { min-height: 0; padding-bottom: 50px; }
    .old-site .legacy-home .legacy-parents .tab_block_holder { padding: 0; }
    .old-site .legacy-home .legacy-parents .tab_block { display: block; }
    .old-site .legacy-home .legacy-parents .img_block { margin: 25px 0 0; }
    .old-site .legacy-home .legacy-parents .img_block img { max-width: 75%; }
    .old-site .legacy-home .legacy-discount { padding: 35px 0 45px; }
    .old-site .legacy-home .legacy-discount .discount_block { top: 0; padding-left: 0; }
    .old-site .legacy-home .legacy-discount .discount_block .long_block { float: none; display: block; padding: 20px; }
    .old-site .legacy-home .legacy-discount .discount_block .number,
    .old-site .legacy-home .legacy-discount .discount_block .text { width: 100%; }
    .old-site .legacy-home .legacy-discount .discount_block .number span { margin-left: 0; }
    .old-site .legacy-home .legacy-discount .title_discount { margin-top: 20px; padding-left: 0; }
    .legacy-discount-form { display: block; }
    .legacy-discount-form input { width: calc(100% - 26px); }
    .legacy-discount-form .get_discount { width: 100% !important; margin-left: 0 !important; }
    .legacy-price-cards { grid-template-columns: 1fr; gap: 16px; }
    .legacy-price-card__counter > span { min-height: 0; }
    .legacy-price-card__options { min-height: 0; }
    .old-site .legacy-home .legacy-trial .trial_block { display: block; }
    .old-site .legacy-home .legacy-trial .trial_block .left,
    .old-site .legacy-home .legacy-trial .trial_block .right { width: 100%; padding-left: 0; }
    .old-site .legacy-home .legacy-trial .trial_block .right { margin-top: 20px; }
    .legacy-review-slider { width: calc(100% - 30px); }
    .legacy-review-slider .reviews_text { min-height: 0; padding: 24px 20px; }
    .legacy-review-arrow { top: 38px; }
    .legacy-review-arrow--prev { left: 0; }
    .legacy-review-arrow--next { right: 10px; }
    .legacy-license-grid { display: block; }
    .legacy-license-grid .block { display: block; margin: 0 auto 25px !important; }
}

/* Dedicated local landings replace the legacy cards that used to leave the site. */
.legacy-local-service__hero {
    min-height: 390px; margin-bottom: 65px; padding: 45px 65px; box-sizing: border-box !important;
    display: flex; align-items: center; overflow: hidden; background: #f8f5ee;
}
.legacy-local-service--kindergarten .legacy-local-service__hero { background: #f2f1fd; }
.legacy-local-service__copy { width: 68%; position: relative; z-index: 2; }
.legacy-local-service__copy h1 { max-width: 720px; margin: 8px 0 25px !important; }
.legacy-local-service__copy p { max-width: 720px; margin-bottom: 30px; color: #444; font-size: 18px; line-height: 1.65; }
.legacy-local-service__eyebrow { color: #3565a3; font: 13px/1.4 GothamProMedium, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.legacy-local-service__image { width: 32%; text-align: center; }
.legacy-local-service__image img { width: 260px; max-width: 100%; }
.legacy-local-service__section { margin-bottom: 55px; }
.legacy-local-service__section h2 { margin-bottom: 28px; font: 30px/1.25 GothamProMedium, Arial, sans-serif; text-align: center; }
.legacy-local-service__features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.legacy-local-service__features article { min-height: 150px; padding: 26px 22px; box-sizing: border-box !important; border-top: 4px solid #3565a3; box-shadow: 0 8px 28px rgba(36,63,99,.12); }
.legacy-local-service--kindergarten .legacy-local-service__features article { border-color: #8d77bb; }
.legacy-local-service__features strong,
.legacy-local-service__features span { display: block; }
.legacy-local-service__features strong { margin-bottom: 13px; color: #263e60; font: 17px/1.35 GothamProMedium, Arial, sans-serif; }
.legacy-local-service__features span { color: #555; font-size: 14px; line-height: 1.55; }
.legacy-local-service__note { padding: 34px 42px; box-sizing: border-box !important; display: flex; align-items: center; justify-content: space-between; gap: 35px; background: #3565a3; color: #fff; }
.legacy-local-service__note div { max-width: 760px; }
.legacy-local-service__note strong,
.legacy-local-service__note span { display: block; }
.legacy-local-service__note strong { margin-bottom: 8px; font: 24px/1.25 GothamProMedium, Arial, sans-serif; }
.legacy-local-service__note span { font-size: 15px; line-height: 1.55; }
.legacy-local-service__note .btn_more { flex: 0 0 250px; border-color: #fff; color: #fff; }
@media screen and (max-width: 1000px) {
    .legacy-local-service__features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 768px) {
    .legacy-local-service__hero { margin-bottom: 42px; padding: 30px 22px; display: block; }
    .legacy-local-service__copy,
    .legacy-local-service__image { width: 100%; }
    .legacy-local-service__copy p { font-size: 16px; }
    .legacy-local-service__image { margin-top: 30px; }
    .legacy-local-service__image img { width: 190px; }
    .legacy-local-service__features { grid-template-columns: 1fr; }
    .legacy-local-service__features article { min-height: 0; }
    .legacy-local-service__note { padding: 28px 22px; display: block; }
    .legacy-local-service__note .btn_more { margin-top: 24px; display: block; }
}

/* Inner pages: preserve the actual WordPress templates instead of the
   temporary modern card/hero treatment. */
.old-site .legacy-inner,
.old-site .legacy-inner * { box-sizing: content-box; }
.old-site .legacy-inner { min-height: 650px; padding-bottom: 70px; font-family: GothamProRegular, Arial, sans-serif; background: #fff; }
.old-site .legacy-inner h1 { margin: 6px 0 35px; color: #000; font: 500 40px/1.2 GothamProMedium, Arial, sans-serif; }
.old-site .legacy-inner h1.center { text-align: center; }
.old-site .legacy-inner .breadcrumbs a,
.old-site .legacy-inner .breadcrumbs span { color: #999; }
.old-site .legacy-inner .btn_more,
.old-site .legacy-inner .btn_blue { color: #fff; }
.old-site .legacy-inner .btn_more:hover,
.old-site .legacy-inner .btn_blue:hover { color: #3565a3; }
.old-site .legacy-services-index h1 { margin-bottom: -30px; }
.old-site .legacy-services-directory { padding-top: 80px; }
.old-site .legacy-services-directory #services_wrap { margin-bottom: 20px; }
.old-site .legacy-service-copy { margin: 25px 0 45px; color: #555; font-size: 16px; line-height: 1.65; }
.old-site .legacy-service-copy img { max-width: 100%; height: auto; }
.service_category_block { margin: 20px 0 40px; }
.service_category_block .block {
    width: 31.1%;
    min-height: 420px;
    margin: 0 2.7% 30px 0;
    padding: 25px 0 75px;
    position: relative;
    float: left;
    overflow: hidden;
    box-shadow: 0 0 30px #eaeaea;
    text-align: center;
}
.service_category_block .block:nth-child(3n) { margin-right: 0; }
.service_category_block .block h2 { min-height: 56px; margin: 0 22px 18px; font-size: 20px; line-height: 28px; }
.service_category_block .block h2 a { color: #000; text-decoration: none; }
.service_category_block .block .img { height: 130px; margin-bottom: 20px; }
.service_category_block .block .img img { width: 110px; height: 110px; object-fit: contain; }
.service_category_block .block p { height: 125px; margin: 0 25px; overflow: hidden; color: #777; font-size: 14px; line-height: 21px; text-align: left; }
.service_category_block .block .btn_more { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); }
.legacy-subject-service-grid { margin: 30px 0 55px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.legacy-subject-service-grid .block { min-height: 165px; padding: 22px 15px; box-shadow: 0 0 24px #eaeaea; text-align: center; }
.legacy-subject-service-grid .block a { color: #000; text-decoration: none; }
.legacy-subject-service-grid .block .img { height: 90px; }
.legacy-subject-service-grid .block .img img { width: 80px; height: 80px; object-fit: contain; }
.legacy-subject-service-grid .block h2 { margin: 10px 0 0; font-size: 17px; line-height: 22px; }
.legacy-service-advantages { margin: 0 -100vw; padding: 60px 100vw; background: #f8f8f8; }
.legacy-service-advantages .title_h2 { margin-top: 0; }
.legacy-service-teachers { padding: 50px 0; }
.legacy-service-reviews { margin: 0 -100vw -70px; padding: 55px 100vw; }
.old-site .legacy-service-reviews .title_h2 h2,
.old-site .legacy-service-reviews .title_h2 h2 a { color: #fff; }

.legacy-teacher-filter { padding: 22px 0 28px; }
.legacy-teacher-filter .block { width: 48%; margin-right: 3%; }
.legacy-teacher-filter .block:nth-child(2) { margin-right: 0; }
.legacy-teacher-filter select,
.legacy-teacher-filter input { width: calc(100% - 30px); height: 48px; padding: 0 14px; border: 1px solid #d7d7d9; background: #fff; font: 14px Arial, sans-serif; }
.legacy-teacher-filter .input label { display: block; margin-bottom: 8px; color: #777; font-size: 13px; }
.legacy-teacher-directory { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px 20px; }
.legacy-teacher-directory .block { width: auto; min-width: 0; max-width: none; margin: 0; display: flex; }
.legacy-teacher-directory .block:nth-child(2n) { margin-right: 0; }
.legacy-teacher-directory .block[hidden] { display: none; }
.legacy-teacher-directory .legacy-teacher-regalia { min-height: 54px; margin-bottom: 18px; overflow: hidden; color: #666; line-height: 18px; }
.legacy-pagination { margin: 45px 0 20px; }
.legacy-pagination ul { justify-content: center; }
.legacy-publications-page .blog_content .block { width: 100%; }
.legacy-publications-page .blog_content .block .img { text-decoration: none; }
.legacy-publications-page .article_block .img img { max-width: 100%; height: auto; }
.legacy-publications-page .legacy-article-content { color: #666; font-size: 16px; line-height: 1.65; }
.legacy-publications-page .legacy-article-content img { max-width: 100%; height: auto; }
.legacy-review-list .js-show-review { padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; }
.legacy-review-list .hidden_content { display: none; }
.legacy-review-list .hidden_content p { margin-bottom: 14px; }
.legacy-questions-page .description_two { white-space: pre-line; }
.legacy-prices-page .services_block { margin-bottom: 45px; }
.legacy-prices-page .legacy-price-tabs .hidden_content.active { display: block; }
.legacy-prices-page .tab_block img { max-width: 100%; height: auto; }
.legacy-prices-page .tab_block { overflow-x: auto; }
.legacy-tests-page .all_tests { margin-top: 30px; }

/* Disciplines and EGE/OGE courses follow the source WordPress templates. */
.legacy-subject-copy,
.legacy-course-copy { margin: 0 0 30px; color: #555; font-size: 16px; line-height: 1.65; }
.legacy-subject-copy img,
.legacy-course-copy img { max-width: 100%; height: auto; }
.legacy-discipline-directory { font-size: 0; }
.legacy-discipline-directory .block { box-sizing: content-box; vertical-align: top; font-size: 14px; }
.legacy-discipline-directory .block a { height: 100%; display: block; color: #000; text-decoration: none; }
.legacy-teacher-slider .swiper-wrapper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.legacy-teacher-slider .swiper-slide { width: auto !important; }
.legacy-teacher-slider .block { max-width: none; min-height: 390px; }
.legacy-teacher-slider .block .img img { width: 170px; height: 170px; object-fit: cover; }

.legacy-course-subjects { margin: 20px 0 45px; font-size: 0; }
.legacy-course-subjects .block {
    width: 18.98%; min-width: 100px; min-height: 200px; margin: 0 1% 18px;
    padding: 2%; display: inline-block; overflow: hidden; box-shadow: 0 0 30px #eaeaea;
    text-align: center; vertical-align: top; font-size: 14px;
}
.legacy-course-subjects .block a { display: block; color: #000; text-decoration: none; }
.legacy-course-subjects .block .img { height: 97px; margin-top: 20px; display: block; }
.legacy-course-subjects .block .img img { width: auto; height: 100%; margin: 0 auto; object-fit: contain; }
.legacy-course-subjects .block h2 { color: #000; font-size: 20px; line-height: 26px; }
.legacy-course-advantages { margin: 45px -100vw; padding: 55px 100vw; background: #f8f8f8; }
.legacy-course-advantages .title_h2 { margin-top: 0; }

.courses_item_wrap { padding-top: 20px; }
.courses_item {
    min-height: 200px; display: flex; box-sizing: border-box; border-left: 5px solid #999900;
    border-radius: 5px; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.08); text-align: left;
}
.courses_item_l { width: 235px; flex: 0 0 235px; box-sizing: border-box; }
.courses_item_l_content { height: 100%; padding: 30px 30px 45px; box-sizing: border-box; border-right: 2px solid #f6f7fb; }
.courses_item_avatar {
    width: 90px; height: 90px; margin: 0 auto; box-sizing: border-box; border: 2px solid #fff;
    border-radius: 50%; background-color: #f5f5f5; background-position: center; background-repeat: no-repeat; background-size: contain;
}
.courses_item_r { width: 100%; padding: 40px 30px 30px; box-sizing: border-box; }
.courses_item_type { margin-bottom: 20px; display: inline-block; border-bottom: 1px solid #48a1e6; font-size: 16px; text-transform: uppercase; }
.courses_item_title { min-height: 45px; padding-bottom: 20px; color: #4a4a4a; font-size: 24px; font-weight: 600; }
.courses_item_title a { color: #4a4a4a; text-decoration: none; }
.courses_item_content { padding-bottom: 20px; color: #333; font-size: 18px; line-height: 1.45; }
.courses_item_buttons { padding-bottom: 20px; }
.courses_item_btn,
.courses_item_more { width: 192px; height: 60px; margin: 0 20px 20px 0; display: block; float: left; box-sizing: border-box; border: 1px solid #325c94; color: #325c94; line-height: 58px; text-align: center; text-decoration: none; }
.courses_item_btn { background: #325c94; color: #fff; }

/* Local-only lead form. External CRM and SMTP integrations stay disabled. */
.legacy-lead-form {
    max-width: 820px; margin: 35px auto 20px; padding: 28px 30px; box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.3); color: #fff; text-align: left;
}
.legacy-lead-form__title { margin-bottom: 8px; font-size: 25px; font-weight: 600; }
.legacy-lead-form p { margin: 0 0 22px; color: #fff; }
.legacy-lead-form__fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.legacy-lead-form label span { display: block; margin-bottom: 7px; color: #fff; font-size: 14px; }
.legacy-lead-form label small { font-size: 11px; font-weight: normal; }
.legacy-lead-form input[type="text"],
.legacy-lead-form input[type="tel"],
.legacy-lead-form input[type="email"],
.legacy-lead-form textarea {
    width: 100%; padding: 11px 12px; box-sizing: border-box; border: 1px solid #d8dce2;
    border-radius: 2px; background: #fff; color: #222; font: 15px/1.35 Arial, sans-serif;
}
.legacy-lead-form__message { margin-top: 16px; display: block; }
.legacy-lead-form__consent { margin: 16px 0; display: flex; align-items: flex-start; gap: 9px; }
.legacy-lead-form__consent input { margin-top: 3px; flex: 0 0 auto; }
.legacy-lead-form__consent span { margin: 0; line-height: 1.4; }
.legacy-lead-form__errors span { margin-bottom: 7px; display: block; color: #ffd7d7; font-size: 13px; }
.legacy-lead-form__success { margin-top: 15px; padding: 12px 15px; background: #e9f7ec; color: #1f6d31; }
.legacy-lead-form__honeypot { width: 1px; height: 1px; position: absolute; left: -10000px; overflow: hidden; }
.legacy-lead-form .order_call.btn { min-width: 190px; border: 1px solid #fff; background: transparent; color: #fff; cursor: pointer; }

@media screen and (min-width: 1201px) {
    .old-site .legacy-inner.content_block { padding-top: 145px !important; }
}

@media screen and (max-width: 768px) {
    .old-site .legacy-inner { padding-bottom: 35px; }
    .old-site .legacy-inner h1 { margin-bottom: 25px; font-size: 30px; }
    .old-site .legacy-services-index h1 { margin-bottom: 10px; }
    .old-site .legacy-services-directory { padding-top: 20px; }
    .service_category_block .block { width: 100%; min-height: 0; margin: 0 0 25px; padding-bottom: 85px; float: none; }
    .legacy-subject-service-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .legacy-service-advantages,
    .legacy-service-reviews { margin-left: -30px; margin-right: -30px; padding-left: 30px; padding-right: 30px; }
    .legacy-teacher-filter .block { width: 100%; margin: 0 0 18px; float: none; }
    .legacy-teacher-directory { display: block; }
    .legacy-teacher-directory .block { display: block; margin-bottom: 25px; padding: 25px 20px; }
    .legacy-teacher-directory .block .img { margin: 0 auto 20px; display: block; }
    .legacy-teacher-directory .block .description { max-width: none; padding-left: 0; display: block; }
    .description_teacher .img { width: 280px; height: 280px; margin: 15px auto 30px; float: none; }
    .description_teacher .text { width: 100%; padding-bottom: 0; float: none; }
    .description_teacher .btn_blue,
    .description_teacher .btn_gray { position: static; }
    .legacy-publications-page .blog_content .block { display: block; }
    .legacy-publications-page .blog_content .block .img,
    .legacy-publications-page .blog_content .block .text { width: 100%; min-width: 0; max-width: none; display: block; }
    .legacy-publications-page .blog_content .block .img { height: 230px; }
    .legacy-publications-page .blog_content .block .text { width: auto; padding: 25px 20px; }
    .legacy-discipline-directory .block { width: calc(100% - 40px); min-width: 0; max-width: none; height: auto; min-height: 300px; max-height: none; margin: 0 0 20px; padding: 20px; }
    .legacy-teacher-slider .swiper-wrapper { display: block; }
    .legacy-teacher-slider .swiper-slide { margin-bottom: 22px; }
    .legacy-course-subjects .block { width: 96%; max-width: 96%; margin: 0 0 18px; }
    .legacy-course-advantages { margin-left: -30px; margin-right: -30px; padding-left: 30px; padding-right: 30px; }
    .courses_item { display: block; }
    .courses_item_l { width: 100%; }
    .courses_item_l_content { padding: 25px; border-right: 0; border-bottom: 2px solid #f6f7fb; }
    .courses_item_r { width: auto; padding: 28px 20px 20px; }
    .courses_item_title { font-size: 21px; line-height: 1.3; }
    .courses_item_content { font-size: 16px; }
    .courses_item_btn,
    .courses_item_more { width: 100%; margin-right: 0; float: none; }
    .legacy-lead-form { width: 90%; margin-top: 25px; padding: 22px 18px; }
    .legacy-lead-form__fields { grid-template-columns: 1fr; }
}

/* Full EGE/OGE landing used by the original kursi_end_pege.php template. */
.legacy-exam-landing,
.legacy-exam-landing * { box-sizing: border-box; }
.legacy-exam-landing { padding-top: 140px; background: #fff; font-family: GothamProRegular, Arial, sans-serif; }
.legacy-exam-hero {
    min-height: 610px; display: flex; align-items: center; background-position: center; background-repeat: no-repeat; background-size: cover; color: #fff;
}
.legacy-exam-hero__content { width: 1170px; max-width: calc(100% - 40px); margin: 0 auto; padding: 55px 0; }
.legacy-exam-hero__content > span { display: block; color: #fac16b; font: 15px/1.4 GothamProMedium, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.legacy-exam-hero__content h1 { max-width: 720px; margin: 14px 0 12px; color: #fff; font: 56px/1.12 GothamProBold, Arial, sans-serif; }
.legacy-exam-hero__content p { margin: 0 0 35px; color: #fff; font: 30px/1.3 GothamProMedium, Arial, sans-serif; }
.legacy-exam-button {
    min-width: 210px; min-height: 58px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #f4b861; background: #f4b861; color: #1f3655 !important; font: 13px/1.3 GothamProMedium, Arial, sans-serif; text-align: center; text-decoration: none; text-transform: uppercase;
}
.legacy-exam-button:hover { background: transparent; color: #fff !important; }
.legacy-exam-button--blue { border-color: #3565a3; background: #3565a3; color: #fff !important; }
.legacy-exam-button--blue:hover { background: transparent; color: #3565a3 !important; }
.legacy-exam-nav { min-height: 68px; display: flex; align-items: stretch; justify-content: center; background: #243e61; }
.legacy-exam-nav a { padding: 0 27px; display: flex; align-items: center; color: #fff; font: 13px/1 GothamProMedium, Arial, sans-serif; text-decoration: none; text-transform: uppercase; }
.legacy-exam-nav a:hover { background: #3565a3; }
.legacy-exam-section { padding: 75px 0; scroll-margin-top: 150px; }
.legacy-exam-section > .container { width: 1170px; max-width: calc(100% - 40px); }
.legacy-exam-section h2 { margin: 0 0 22px; color: #173f73; font: 36px/1.25 GothamProMedium, Arial, sans-serif; text-align: center; }
.legacy-exam-lead { max-width: 850px; margin: 0 auto 42px; color: #555; font-size: 17px; line-height: 1.7; text-align: center; }
.legacy-exam-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.legacy-exam-facts article { min-height: 150px; padding: 28px 22px; border-top: 4px solid #f4b861; background: #fff; box-shadow: 0 8px 28px rgba(25,54,90,.12); text-align: center; }
.legacy-exam-facts strong,
.legacy-exam-facts span { display: block; }
.legacy-exam-facts strong { margin-bottom: 12px; color: #173f73; font: 17px/1.4 GothamProMedium, Arial, sans-serif; }
.legacy-exam-facts span { color: #555; font-size: 14px; line-height: 1.55; }
.legacy-exam-results { background: #f1f5f9; }
.legacy-exam-result-banner { max-width: 760px; margin: 0 auto 35px; display: flex; align-items: center; justify-content: center; color: #173f73; }
.legacy-exam-result-banner strong { margin-right: 25px; color: #efad4e; font: 92px/.9 GothamProBold, Arial, sans-serif; }
.legacy-exam-result-banner span { font: 22px/1.45 GothamProMedium, Arial, sans-serif; }
.legacy-exam-result-banner small { color: #6c7d91; font: 13px/1.4 GothamProRegular, Arial, sans-serif; }
.legacy-exam-table-wrap { overflow-x: auto; box-shadow: 0 7px 25px rgba(25,54,90,.1); }
.legacy-exam-table-wrap table { width: 100%; min-width: 760px; border-collapse: collapse; background: #fff; }
.legacy-exam-table-wrap th { padding: 18px 12px; background: #3565a3; color: #fff; font: 12px/1.45 GothamProMedium, Arial, sans-serif; }
.legacy-exam-table-wrap td { padding: 14px 12px; border-bottom: 1px solid #e6ebf0; color: #555; font-size: 13px; text-align: center; }
.legacy-exam-table-wrap th:first-child,
.legacy-exam-table-wrap td:first-child { padding-left: 22px; text-align: left; }
.legacy-exam-table-wrap td a { color: #3565a3; font-family: GothamProMedium, Arial, sans-serif; }
.legacy-exam-table-wrap td strong { color: #58a82e; }
.legacy-exam-source { margin-top: 13px; display: block; color: #7a8796; }
.legacy-exam-subject-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.legacy-exam-subject-grid a { min-height: 82px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; border: 1px solid #dce3eb; color: #173f73; text-decoration: none; transition: .2s ease; }
.legacy-exam-subject-grid a:hover { border-color: #3565a3; transform: translateY(-2px); box-shadow: 0 7px 18px rgba(25,54,90,.1); }
.legacy-exam-subject-grid span { margin-bottom: 6px; font: 15px/1.35 GothamProMedium, Arial, sans-serif; }
.legacy-exam-subject-grid small { color: #7a8796; font-size: 11px; }
.legacy-exam-training { background-position: center; background-repeat: no-repeat; background-size: cover; color: #fff; }
.legacy-exam-training h2 { color: #fff; }
.legacy-exam-training-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.legacy-exam-training-grid article { min-height: 220px; padding: 28px 24px; background: rgba(20,45,75,.86); }
.legacy-exam-training-grid b,
.legacy-exam-training-grid strong { display: block; }
.legacy-exam-training-grid b { margin-bottom: 22px; color: #f4b861; font: 30px/1 GothamProBold, Arial, sans-serif; }
.legacy-exam-training-grid strong { margin-bottom: 12px; font: 17px/1.4 GothamProMedium, Arial, sans-serif; }
.legacy-exam-training-grid p { margin: 0; color: #e7edf5; font-size: 14px; line-height: 1.55; }
.legacy-exam-teacher-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.legacy-exam-teacher-grid article { padding: 28px 22px; box-shadow: 0 7px 24px rgba(25,54,90,.12); text-align: center; }
.legacy-exam-teacher-grid img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; }
.legacy-exam-teacher-grid h3 { min-height: 48px; margin: 18px 0 10px; color: #173f73; font: 16px/1.45 GothamProMedium, Arial, sans-serif; }
.legacy-exam-teacher-grid span { min-height: 38px; display: block; color: #666; font-size: 12px; line-height: 1.5; }
.legacy-exam-link { margin-top: 14px; display: inline-block; color: #3565a3; font-size: 12px; }
.legacy-exam-prices { background: #f7f2e8; text-align: center; }
.legacy-exam-prices__discount { display: block; color: #d69a42; font: 52px/1 GothamProBold, Arial, sans-serif; }
.legacy-exam-prices p { max-width: 760px; margin: 0 auto 30px; color: #555; font-size: 16px; line-height: 1.65; }
.legacy-exam-prices .legacy-exam-button { margin: 5px 8px; }
.legacy-exam-discounts { background: #f94f3f; color: #fff; text-align: center; }
.legacy-exam-discounts > .container > span { display: block; margin-bottom: 12px; font: 14px/1.4 GothamProMedium, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.legacy-exam-discounts h2 { color: #fff; }
.legacy-exam-discounts p { max-width: 680px; margin: 0 auto 28px; color: #fff; font-size: 16px; line-height: 1.65; }
.legacy-exam-discounts .legacy-exam-button { border-color: #fff; background: #fff; color: #f94f3f !important; }
.legacy-exam-discounts .legacy-exam-button:hover { background: transparent; color: #fff !important; }
.legacy-exam-landing--oge .legacy-exam-hero__content { text-align: center; }
.legacy-exam-landing--oge .legacy-exam-hero__content h1 { margin-right: auto; margin-left: auto; text-transform: uppercase; }
.legacy-exam-landing--oge .legacy-exam-hero__content > span { color: #fff; }
.legacy-exam-reviews { padding-top: 60px; }

.legacy-exam-choice[hidden] { display: none !important; }
.legacy-exam-choice { position: fixed; z-index: 10020; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; }
.legacy-exam-choice__overlay { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(13, 27, 45, .72); cursor: pointer; }
.legacy-exam-choice__dialog { position: relative; z-index: 1; width: 560px; max-width: 100%; padding: 54px 48px 48px; background: #fff; box-shadow: 0 24px 80px rgba(0, 0, 0, .3); text-align: center; }
.legacy-exam-choice__dialog h2 { margin: 0 0 18px; color: #173f73; font: 28px/1.3 GothamProMedium, Arial, sans-serif; }
.legacy-exam-choice__dialog p { margin: 0 0 28px; color: #555; font-size: 16px; }
.legacy-exam-choice__actions { display: flex; justify-content: center; gap: 18px; }
.legacy-exam-choice__actions .btn_more { min-width: 150px; margin: 0; display: inline-flex; align-items: center; justify-content: center; }
.legacy-exam-choice__close { position: absolute; top: 0; right: 0; width: 54px; height: 54px; padding: 0; border: 0; background: #3565a3; cursor: pointer; }
.legacy-exam-choice__close::before,
.legacy-exam-choice__close::after { content: ''; position: absolute; top: 26px; left: 15px; width: 24px; height: 2px; background: #fff; }
.legacy-exam-choice__close::before { transform: rotate(45deg); }
.legacy-exam-choice__close::after { transform: rotate(-45deg); }
.legacy-exam-choice-open { overflow: hidden; }

@media screen and (max-width: 1000px) {
    .legacy-exam-facts,
    .legacy-exam-training-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .legacy-exam-subject-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 768px) {
    .legacy-exam-landing { padding-top: 0; }
    .legacy-exam-hero { min-height: 540px; }
    .legacy-exam-hero__content { max-width: calc(100% - 40px); padding: 45px 0; }
    .legacy-exam-hero__content h1 { font-size: 42px; }
    .legacy-exam-hero__content p { font-size: 24px; }
    .legacy-exam-nav { padding: 8px 12px; flex-wrap: wrap; }
    .legacy-exam-nav a { min-height: 42px; padding: 0 12px; font-size: 10px; }
    .legacy-exam-section { padding: 52px 0; scroll-margin-top: 0; }
    .legacy-exam-section h2 { font-size: 29px; }
    .legacy-exam-facts,
    .legacy-exam-training-grid,
    .legacy-exam-teacher-grid { grid-template-columns: 1fr; }
    .legacy-exam-subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .legacy-exam-result-banner { display: block; text-align: center; }
    .legacy-exam-result-banner strong { margin: 0 0 12px; display: block; font-size: 76px; }
    .legacy-exam-result-banner span { font-size: 18px; }
    .legacy-exam-table-wrap { margin-right: -20px; }
    .legacy-exam-button { width: 100%; margin: 6px 0 !important; }
}
@media screen and (max-width: 430px) {
    .legacy-exam-subject-grid { grid-template-columns: 1fr; }
    .legacy-exam-choice { padding: 16px; }
    .legacy-exam-choice__dialog { padding: 52px 22px 30px; }
    .legacy-exam-choice__dialog h2 { font-size: 23px; }
    .legacy-exam-choice__actions { flex-direction: column; gap: 12px; }
    .legacy-exam-choice__actions .btn_more { width: 100%; }
}
