/* Страницы «Международная программа» и «Российская программа».
   Вёрстка по макету Figma (фреймы 2001:66 и 2001:770), а отступы, ритм
   блоков и поведение общих элементов — по главной странице.
   Классы с префиксом .acad- , чтобы не пересекаться с остальным сайтом. */

.acad { font-family: Roboto, Arial, sans-serif; color: #231f20; }
/* Поля как у шапки и у главной: --side-padding плавно идёт от 150px на 1440
   до 24px на 1024, дальше 20, 14 и 6px — блоки встают ровно по линии шапки. */
.acad { --acad-gutter: var(--side-padding, 20px); }
/* на телефонах блоки главной держат 20px на любой ширине, хотя --side-padding там ниже */
@media (max-width: 768px) { .acad { --acad-gutter: 20px; } }
.acad__container { max-width: var(--page-width, 1440px); margin: 0 auto; padding-left: var(--acad-gutter); padding-right: var(--acad-gutter); box-sizing: border-box; }
.acad h1, .acad h2, .acad h3 { font-family: Lora, serif; font-weight: 500; margin: 0; }

/* ---------- Обложка ---------- */
.acad-hero { position: relative; background: #f4f4f4 center top / cover no-repeat; overflow: hidden; }
/* Background positioning follows the homepage hero on desktop and mobile. */
.acad-hero { background-position: center center; }
@media (min-width: 1440px) { .acad-hero { background-size: 100% auto; } }
@media (max-width: 500px) { .acad-hero { background-size: cover; } }
@media (max-width: 460px) { .acad-hero { background-position: center top; } }
@media (max-width: 430px) { .acad-hero { background-size: cover; } }
.acad-hero__container { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 40px; align-items: center; min-height: 512px; padding-top: 32px; padding-bottom: 32px; }
/* Международная обложка: больше воздуха над заголовком и под вводным текстом. */
.acad-hero--international .acad-hero__container { padding-top: 64px; padding-bottom: 64px; }
.acad-hero__text { max-width: 460px; }
/* типографика из макета: заголовок Lora Medium 32, первый абзац Lora курсив 20,
   следующие — обычный Roboto 16 с пустой строкой перед ними */
.acad .acad-hero__title { font-size: 32px; line-height: normal; margin-bottom: 46px; }
.acad-hero__lead p { margin: 0; }
.acad-hero__lead .acad-hero__lead-main { font-family: Lora, serif; font-style: italic; font-size: 20px; line-height: normal; }
.acad-hero__lead .acad-hero__lead-note { font-family: Roboto, Arial, sans-serif; font-style: normal; font-size: 16px; line-height: normal; margin-top: 31px; }
/* герб лежит внутри контейнера, поэтому не может выйти за его границы */
.acad-hero__crest { justify-self: end; align-self: center; display: block; width: 100%; max-width: 505px; height: auto; }

/* Российская программа: колонка текста 554px и векторный герб 257px, как в макете */
/* в макете содержимое приподнято над центром на ~20px — отсюда несимметричный отступ */
.acad-hero--rf .acad-hero__container { grid-template-columns: minmax(0, 554px) minmax(0, 1fr); min-height: 543px; padding-bottom: 74px; }
.acad-hero--rf .acad-hero__text { max-width: 554px; }
.acad-hero--rf .acad-hero__crest { width: 257px; max-width: 257px; margin-right: clamp(0px, calc((100vw - 1024px) * .26), 108px); }

/* ---------- Программа обучения ----------
   Карточки — разметка и поведение блока «Программа обучения» с главной (.acad-card). */
.acad-programme { position: relative; background: #1d1d1d; }
.acad-programme__bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.acad-programme__bg span { position: absolute; inset: -30px; display: block; background: center / cover no-repeat; filter: grayscale(1) blur(7px) brightness(.55); }
.acad-programme::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .3); z-index: 1; }
/* белая полоса снизу: тёмный фон заканчивается на середине карточек, как на главной */
.acad-programme::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 148px; background: #fff; z-index: 1; }
.acad-programme__container { position: relative; z-index: 2; padding-top: 50px; }
.acad .acad-programme__title { font-size: 32px; line-height: 32px; color: #fff; text-align: center; margin-bottom: 30px; }
.acad-programme__subtitle { color: #fff; font-size: 16px; line-height: 1.5; text-align: center; margin: 0 auto 30px; max-width: 1140px; }
.acad-programme--subtitle-left .acad-programme__subtitle { text-align: left; }

.acad .acad-cards { display: flex; gap: 20px; max-width: 1140px; margin: 0 auto; flex-wrap: wrap; justify-content: center; position: relative; z-index: 2; }
.acad .acad-card-link { text-decoration: none; color: inherit; display: block; cursor: pointer; }
.acad .acad-card { background-color: #efefef; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, .1); width: 270px; height: 296px; position: relative; transition: box-shadow .2s ease, background-color .15s ease; }
.acad .acad-card::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background-color: #d2232a; border-radius: 0 0 16px 16px; }
.acad .acad-card .acad-card__red { opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility .15s ease; }
.acad .acad-card:hover, .acad .acad-card.active { box-shadow: 0 12px 24px rgba(0, 0, 0, .15); background-color: #d2232a; }
.acad .acad-card:hover::after, .acad .acad-card.active::after { display: none; }
.acad .acad-card:hover .acad-card__header, .acad .acad-card:hover .acad-card__body,
.acad .acad-card.active .acad-card__header, .acad .acad-card.active .acad-card__body { opacity: 0; visibility: hidden; }
.acad .acad-card:hover .acad-card__red, .acad .acad-card.active .acad-card__red { opacity: 1; visibility: visible; justify-content: space-between; }
.acad .acad-card__header { padding: 24px; min-height: 80px; display: flex; align-items: center; justify-content: center; font-family: Lora, serif; font-weight: 500; font-size: 24px; line-height: 32px; text-align: center; color: #000; transition: opacity .15s ease, visibility .15s ease; flex-shrink: 0; }
.acad .acad-card__body { padding: 20px; text-align: center; transition: opacity .15s ease, visibility .15s ease; }
.acad .acad-card__red { background-color: transparent; padding: 20px; text-align: center; position: absolute; top: 0; left: 0; width: 100%; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 16px; }
.acad .acad-card__name { font-family: Lora, serif; font-weight: 500; font-size: 24px; line-height: 32px; text-align: center; padding-top: 10px; color: #fff; }
.acad .acad-card__program { font-weight: 400; font-size: 20px; margin-top: 20px; color: #fff; }
.acad .acad-card__age { display: inline-flex; align-items: center; justify-content: center; font-family: Roboto, sans-serif; background-color: #a52b31; font-size: 16px; font-weight: 400; padding: 6px 16px; width: 133px; height: 41px; box-sizing: border-box; border-radius: 6px; margin-top: 30px; color: #fff; white-space: nowrap; }
/* фото детей: те же картинки и посадка, что на главной — низом в край карточки */
.acad .acad-card__img { display: block; width: 100%; height: 203px; margin: -39px auto 0; object-fit: contain; }
/* У Primary пропорции 250×203, а рамка 230×203: contain оставляет зазор.
   Прижимаем само изображение к красной линии, не растягивая и не обрезая его. */
.acad .acad-card__img[src$="Primary%201.webp"],
.acad .acad-card__img[src$="Primary 1.webp"] { object-position: center bottom; }
/* как .laptop/.student на главной: высота по пропорциям (230×187) — низ фото ложится на красную линию */
.acad .acad-card__img--up { margin-top: -27px; height: auto; }
.acad .acad-card__img--cover { object-fit: cover; }

/* ---------- Преимущества ---------- */
.acad-benefits { background: #fff; padding: 40px 0; }
.acad .acad-benefits__title { font-size: 32px; text-align: center; margin-bottom: 40px; }
.acad-benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 20px; }
.acad-benefit__icon { width: 110px; height: 108px; margin-bottom: 18px; display: flex; align-items: flex-end; }
/* Размеры SVG — из Figma: не растягиваем флаг 100×85 или книги 85×85 до высоты 108px. */
.acad-benefit__icon svg, .acad-benefit__icon img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.acad-benefit__name { font-weight: 700; font-size: 16px; line-height: 1.3; margin: 0 0 16px; }
.acad-benefit__text { font-size: 16px; line-height: 1.4; margin: 0; }

/* ---------- Подробнее ---------- */
/* фон по умолчанию белый (Российская программа); международная передаёт свою картинку */
.acad-details { position: relative; background: #fff center/cover no-repeat; padding: 40px 0; }
.acad .acad-details__title { font-size: 32px; text-align: center; margin-bottom: 40px; }
.acad-details__top { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.acad-details__list { list-style: none; margin: 0; padding: 0; }
.acad-details__list > li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.4; margin-bottom: 16px; }
.acad-details__list > li::before { content: "—"; position: absolute; left: 0; top: 0; color: #d2232a; }
.acad-details__list ul { list-style: none; margin: 6px 0 0; padding: 0; }
.acad-details__list ul li::before { content: "•"; color: #231f20; margin-right: 8px; }
.acad-details__shield { width: 100%; max-width: 267px; height: auto; display: block; margin-left: auto; }
.acad-details__note { font-weight: 700; font-size: 16px; line-height: 1.4; margin: 28px 0 24px; }

/* ---------- Аккордеон ступеней ----------
   Разметка и поведение — как у аккордеонов главной страницы:
   скрипт сайта сам вешает обработчики на .accordion_header и ставит
   класс open на .accordion_content. Свой инициализатор звать НЕЛЬЗЯ —
   обработчик навесится дважды и аккордеон перестанет открываться. */
.acad-stages .accordion_item { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.acad-stages .accordion_item:last-child { margin-bottom: 0; }
/* без серого фона ни в каком состоянии: после клика курсор остаётся на заголовке,
   и подсветка при наведении выглядела как постоянная серая полоса */
.acad-stages .accordion_header,
.acad-stages .accordion_header:hover,
.acad-stages .accordion_header.active { background: transparent !important; }
.acad-stages .accordion_header { position: relative; display: flex; align-items: center; padding: 20px 76px 20px 32px; cursor: pointer; }
.acad-stages .accordion_info { flex: 1; min-width: 0; font-family: Lora, serif; font-weight: 500; font-size: 24px; line-height: 28px; overflow-wrap: break-word; }
.acad-stages .accordion_header::before { content: ""; position: absolute; right: 32px; top: 50%; width: 18px; height: 2px; background-color: #d9d9d9; transform: translateY(-50%); transition: all .3s; }
.acad-stages .accordion_header::after { content: ""; position: absolute; right: 41px; top: 50%; width: 2px; height: 18px; background-color: #d9d9d9; transform: translateX(50%) translateY(-50%); transition: all .3s; }
.acad-stages .accordion_header.active::before { background-color: #d2232a; transform: translateY(-50%) rotate(45deg); }
.acad-stages .accordion_header.active::after { width: 18px; height: 2px; background-color: #d2232a; transform: translateX(50%) translateY(-50%) rotate(-45deg); }
.acad-stages .accordion_content { max-height: 0; overflow: hidden; padding: 0 32px; transition: max-height .8s cubic-bezier(.4, 0, .2, 1), padding .8s cubic-bezier(.4, 0, .2, 1); }
/* отступы открытой ступени по макету: подзаголовок через 32px после строки заголовка,
   текст через 27px после подзаголовка */
.acad-stages .accordion_content.open { max-height: 3000px; padding: 32px 32px 32px; }
.acad-stage__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.acad-stage__lead { font-weight: 500; font-size: 24px; line-height: 26px; margin: 0 0 27px; }
/* «Для детей 11–14 лет.» не разрываем — иначе на строке остаётся одно «лет.» */
.acad-stage__age { color: #d2232a; white-space: nowrap; }
.acad-stage__text { font-size: 16px; line-height: normal; margin: 0; }
.acad-stage__photo { width: 100%; height: auto; border-radius: 6px; display: block; }

/* фото ступени как в макете: квадрат 337px у правого нижнего края карточки, верхом
   поднимается до строки заголовка, текст слева от него. Карточка — точка отсчёта
   для фото, поэтому у самого раскрывающегося блока позиционирования быть не должно. */
@media (min-width: 861px) {
  .acad-stages .accordion_item--photo { position: relative; }
  .acad-stages .accordion_item--photo .accordion_header { z-index: 1; }
  .acad-stages .accordion_item--photo .accordion_content,
  .acad-stages .accordion_item--photo .acad-stage__body { position: static; }
  /* 352 = фото 337 + отступ справа 40 + зазор 7 - поле блока 32;
     205 = 337 - заголовок 68 - поля 32 + 32: карточка не ниже фото */
  .acad-stages .accordion_item--photo .acad-stage__body { display: block; padding-right: 352px; min-height: 205px; }
  .acad-stages .accordion_item--photo .acad-stage__photo { position: absolute; right: 40px; bottom: 0; width: 337px; height: 337px; max-width: none; object-fit: contain; object-position: bottom; border-radius: 0; pointer-events: none; transition: opacity .3s; }
  .acad-stages .accordion_item--photo .accordion_content:not(.open) .acad-stage__photo { opacity: 0; }
}
/* подзаголовок на фото не заходит: с новыми длинными текстами фото поднимается
   до самого верха карточки, и заход ложился на головы детей. Длинный подзаголовок
   переносится, возраст уходит на вторую строку целиком (white-space: nowrap) */

/* ---------- Академические успехи ---------- */
.acad-results { background: #fff; padding: 40px 0; }
/* между заголовком и подзаголовком в макете ~22px */
.acad .acad-results__title { font-size: 32px; text-align: center; margin-bottom: 22px; }
.acad-results__subtitle { font-family: Lora, serif; font-style: italic; font-size: 20px; text-align: center; margin: 0 0 40px; }
.acad-results__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-bottom: 36px; }
.acad-chart__bar { position: relative; height: 46px; border-radius: 12px; background: #d9d9d9; overflow: hidden; margin-bottom: 14px; }
.acad-chart__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 16px; }
.acad-chart__fill--uk { background: #828283; }
.acad-chart__fill--cis { background: #d2232a; }
.acad-chart__label { font-weight: 700; font-size: 16px; text-align: center; margin: 18px 0 0; }
.acad-results__legend { display: flex; flex-wrap: wrap; gap: 12px 48px; justify-content: center; margin-bottom: 36px; }
.acad-results__legend span { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.acad-results__legend i { width: 40px; height: 25px; border-radius: 6px; display: block; }
.acad-results__footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.acad-results__text { font-size: 16px; line-height: 1.4; margin: 0; max-width: 880px; }
.acad-btn { display: inline-flex; align-items: center; justify-content: center; background: #d2232a; color: #fff; border-radius: 6px; padding: 10px 20px; min-width: 207px; font-size: 16px; text-decoration: none; transition: background .2s ease; }
.acad-btn:hover { background: #b01d23; color: #fff; }

/* фото кампуса в форме экскурсии: во внутренних стилях на него наложен фильтр
   brightness(1.4) contrast(1.25), и фото выглядело засвеченным. На главной этот
   фильтр закомментирован — показываем фото как там, без фильтра. */
.acad .form_step2_image img,
.acad .form_step2_campus_image { filter: none !important; }

/* ---------- Форма «Записаться на пробный день» ----------
   Один в один рецепт тёмной формы с главной страницы (.block18):
   затемнение с размытием на фоне, сама форма слоем выше, текст белый.
   Фоновое фото то же, что у тёмной формы на главной (передаётся из шаблона).
   Блок «Получить консультацию» намеренно НЕ трогаем — на главной он светлый. */
.acad #trial-day-form .form_bg::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, .698); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 1; pointer-events: none;
}
.acad #trial-day-form .form_hover { position: relative; z-index: 2; }
.acad #trial-day-form .form_hover_step2 { position: relative; z-index: 2; }
.acad #trial-day-form .form_txt { color: #fff !important; }
.acad #trial-day-form .alt_text { color: #fff !important; }
.acad #trial-day-form .alt_text a { color: #d2232a !important; }
.acad #trial-day-form .number,
.acad #trial-day-form .capcha { color: #fff !important; }
.acad #trial-day-form label { color: #fff !important; }
.acad #trial-day-form .form_step2_alt_text { color: #fff !important; }

/* ---------- Наша команда ---------- */
.acad #block14 { padding-top: 50px; }

/* ---------- Наши кампусы ----------
   Один в один правила главной страницы: её style.css в этом макете не подключён. */
.acad #block4 { max-width: 1440px; width: 100%; margin: 0 auto; padding: 50px var(--acad-gutter); box-sizing: border-box; }
.acad .container_campuses { max-width: 1140px; margin: 0 auto; text-align: center; }
.acad h2.campuses { font-family: Lora, serif; font-weight: 500; font-size: 32px; line-height: 50px; color: #000; margin: 0 0 20px; }
.acad #block4 .subtitle { font-weight: 400; font-size: 16px; line-height: 28px; color: #000; margin: 0 0 20px; }
.acad .campuses_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.acad .campus_card { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, .1); transition: transform .3s ease, box-shadow .3s ease; cursor: pointer; }
.acad .campus_card:hover { transform: translateY(-8px); box-shadow: 0 12px 20px rgba(0, 0, 0, .15); }
.acad .campus_card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.acad .campus_card::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); border-radius: 12px; z-index: 0; pointer-events: none; }
.acad .campus_label { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-weight: 500; font-size: 28px; text-align: center; z-index: 2; pointer-events: none; text-shadow: 0 2px 4px rgba(0, 0, 0, .3); white-space: nowrap; }
.acad .map_button { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0, 0, 0, .1); transition: transform .3s ease, box-shadow .3s ease; cursor: pointer; }
.acad .map_button:hover { transform: translateY(-8px); box-shadow: 0 12px 20px rgba(0, 0, 0, .15); }
.acad .map_button_link { display: block; position: relative; width: 100%; height: 100%; text-decoration: none; }
.acad .map_image { width: 100%; height: 200px; display: block; object-fit: cover; }
.acad .map_overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #c00; opacity: .9; mix-blend-mode: multiply; pointer-events: none; }
.acad .map_text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: Roboto, sans-serif; font-weight: 500; font-size: 28px; color: #fff; text-align: center; z-index: 1; pointer-events: none; text-shadow: 0 2px 4px rgba(0, 0, 0, .3); }

/* Блок отзывов учителей приходит вместе с блоком «Наша команда»,
   но в макете его нет. Чтобы вернуть — удалить это правило. */
.acad #block14ReviewsSection { display: none !important; }

/* ---------- Адаптив ---------- */

/* Карточки программ в две колонки, как на главной до 1373px.
   Нечётная последняя карточка — по центру под двумя. Тёмный фон за всеми карточками. */
@media (max-width: 1373px) {
  .acad .acad-cards { display: grid; grid-template-columns: repeat(2, 270px); grid-auto-rows: 1fr; gap: 20px; justify-content: center; place-items: stretch; }
  .acad .acad-cards > .acad-card-link:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: 270px; }
  /* карточка остаётся 296px, как на главной: там правило height: 100% для этой ширины
     перебивается базовым height: 296px. Растянутая под ряд карточка (328px из-за
     заголовков в две строки) оставляла пустую полосу между фото и красной линией. */
  .acad .acad-card { height: 296px; min-height: 0; }
  .acad .acad-card .acad-card__red { height: 100%; }
  .acad-programme::after { display: none; }
  .acad-programme__container { padding-bottom: 40px; }
}

@media (max-width: 1100px) {
  .acad-hero__container { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 28px; min-height: 420px; }
  .acad-hero__crest { max-width: 420px; }
  .acad-hero--rf .acad-hero__container { grid-template-columns: minmax(0, 1fr) 257px; min-height: 480px; }
  .acad-hero--rf .acad-hero__crest { margin-right: 0; }
  .acad-benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .acad-results__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* контакты: на главной крупный шрифт держится до 769px, а во внутренних
   стилях он уменьшался уже с 1023px */
@media (min-width: 769px) and (max-width: 1023px) {
  .acad .block20_campuses .block20_contact_title { font-size: 24px !important; }
  .acad .block20_campuses .block20_contact_label,
  .acad .block20_campuses .block20_contact_value,
  .acad .block20_campuses .block20_address_value,
  .acad .block20_campuses .block20_coordinates_value,
  .acad .block20_campuses .block20_hours_day,
  .acad .block20_campuses .block20_hours_time { font-size: 20px !important; }
}

@media (max-width: 1023px) {
  .acad .campuses_grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .acad-hero__container,
  .acad-hero--rf .acad-hero__container { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; padding-bottom: 32px; }
  .acad-hero--international .acad-hero__container { padding-top: 48px; padding-bottom: 48px; }
  .acad-hero__text, .acad-hero--rf .acad-hero__text { max-width: none; }
  .acad-hero__crest { justify-self: center; max-width: 320px; margin-top: 8px; }
  .acad-hero--rf .acad-hero__crest { width: 200px; max-width: 200px; margin-right: 0; }
  .acad-details__top { grid-template-columns: 1fr; }
  .acad-details__shield { max-width: 180px; margin: 0 auto; }
  .acad-stage__body { grid-template-columns: 1fr; }
  .acad-stage__photo { max-width: 300px; margin: 0 auto; }
  .acad-results__footer { grid-template-columns: 1fr; justify-items: start; }
}

/* Телефон: ритм и размеры как у главной на мобильных */
@media (max-width: 768px) {
  /* шапка здесь закреплена — обложку сдвигаем под неё, как на странице детского сада */
  .acad-hero { margin-top: 123px; }
  .acad .acad-hero__title { font-size: 24px; margin-bottom: 24px; }
  .acad-hero__lead .acad-hero__lead-main { font-size: 16px; }
  .acad-hero__lead .acad-hero__lead-note { font-size: 14px; margin-top: 20px; }

  .acad .acad-programme__title, .acad .acad-benefits__title, .acad .acad-details__title,
  .acad .acad-results__title { font-size: 24px; margin-bottom: 24px; }
  .acad .acad-results__title { margin-bottom: 12px; }
  .acad-results__subtitle { font-size: 17px; margin-bottom: 24px; }
  /* академические успехи: плотнее, легенда — столбиком с квадратами на одной линии */
  .acad-results__grid { gap: 22px; margin-bottom: 26px; }
  .acad-chart__bar { margin-bottom: 10px; }
  .acad-chart__label { margin-top: 12px; }
  .acad-results__legend { display: grid; justify-content: center; justify-items: start; gap: 10px; margin-bottom: 26px; }
  .acad-results__footer { gap: 20px; }
  .acad-results__text { font-size: 14px; line-height: normal; }

  /* программа обучения: красные карточки 2×165 с названием, описанием и возрастом */
  .acad-programme__container { padding-top: 32px; padding-bottom: 32px; }
  .acad .acad-programme__title { line-height: 24px; text-align: left; }
  .acad-programme__subtitle { font-size: 14px; line-height: 1.714em; text-align: left; margin-bottom: 24px; }
  .acad-programme::after { display: block; height: 144px; }
  .acad .acad-cards { grid-template-columns: repeat(2, 165px); gap: clamp(15px, 2vw, 20px); }
  .acad .acad-cards > .acad-card-link:last-child:nth-child(odd) { width: 165px; }
  .acad .acad-card { border-radius: 12px; width: 165px; height: 100%; min-height: 100%; display: flex; flex-direction: column; background-color: #d73237 !important; box-shadow: 0 4px 12px rgba(0, 0, 0, .1) !important; }
  .acad .acad-card::after { display: none; }
  .acad .acad-card .acad-card__header,
  .acad .acad-card .acad-card__body { display: none !important; }
  .acad .acad-card .acad-card__red { flex-direction: column; align-items: center; justify-content: space-between; padding: 24px 8px; gap: 10px; opacity: 1 !important; visibility: visible !important; display: flex !important; height: 100% !important; position: static !important; overflow-wrap: break-word; }
  .acad .acad-card__red .acad-card__name { font-size: 20px; line-height: 1em; padding-top: 0; }
  .acad .acad-card__red .acad-card__program { font-family: Roboto, sans-serif; font-size: 14px; line-height: 1.5em; margin-top: 0; }
  .acad .acad-card__red .acad-card__age { background-color: #b9181d; line-height: 1.17em; padding: clamp(6px, 1.5vw, 8px) clamp(12px, 3vw, 16px); width: auto; height: auto; border-radius: 4px; margin-top: 0; white-space: normal; }

  /* преимущества: слайдер как «Преимущества» на главной — карточки 318px через 20px,
     текущая по центру, соседние выглядывают по краям экрана. Листает academics_v2.js
     (класс .is-slider); без скрипта лента просто прокручивается пальцем. */
  /* отступы тоже как у главной: 32px секции + 25px вокруг слайдера */
  .acad-benefits { padding: 57px 0; }
  .acad-benefits__viewport { margin: 0 calc(-1 * var(--acad-gutter)); padding: 0 var(--acad-gutter); overflow-x: auto; scrollbar-width: none; }
  .acad-benefits__viewport::-webkit-scrollbar { display: none; }
  .acad-benefits__viewport.is-slider { padding: 0; overflow: hidden; }
  .acad-benefits__grid { display: flex; gap: 20px; width: max-content; }
  .is-slider .acad-benefits__grid { cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
  .is-slider .acad-benefits__grid.is-dragging { cursor: grabbing; }
  .acad-benefit { flex: 0 0 318px; width: 318px; box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start;
                  background: #fff; border: 2px solid #e4e4e7; border-radius: 8px; padding: 32px 16px; }
  .acad-benefit__icon { height: 108px; margin-bottom: 20px; }
  .acad-benefit__icon svg, .acad-benefit__icon img { max-width: 100%; object-fit: contain; object-position: left bottom; }
  .acad-benefit__icon img { -webkit-user-drag: none; }
  .acad-benefit__name { line-height: 1.172em; margin-bottom: 10px; }
  .acad-benefit__text { font-size: 14px; line-height: normal; padding-top: 10px; }

  .acad-details { padding: 32px 0; }
  .acad-results { padding: 32px 0; }
  .acad #block14 { padding-top: 32px; }

  /* наши кампусы — как на главной: две колонки, заголовок и текст слева */
  .acad #block4 { padding-top: 32px; padding-bottom: 32px; }
  .acad h2.campuses { font-size: 24px; line-height: 40px; text-align: left; margin-bottom: 24px; }
  .acad #block4 .subtitle { font-size: 14px; line-height: 19.6px; text-align: left; margin-bottom: 20px; }
  /* фото 165×103 по центру колонки, как на главной: растянутые на всю колонку
     при фиксированной высоте они становились широкими и низкими */
  .acad .campuses_grid > * { justify-self: center; }
  .acad .campus_card img, .acad .map_image { width: 165px; height: 103px; }
  .acad .campus_label, .acad .map_text { font-size: 16px; }

  /* поле телефона: номер помещается целиком, как на главной */
  /* у главной флаг, «+7» и стрелка стоят через 2px, во внутренних стилях — через 6px,
     и обёртка флага была на 12px шире содержимого: на номер оставалось 78px из нужных 90 */
  .acad .form_hover .phone_wrapper { display: flex; }
  .acad .form_hover .phone_flag_selector { gap: 2px; }
  .acad .form_hover .phone_flag_selector_wrapper { flex: 0 0 auto; width: fit-content !important; min-width: 0 !important; }
  .acad .form_hover .phone_number { flex: 1 1 auto; min-width: 0; }
  .acad .form_hover .phone_number input[type="tel"] { width: 100% !important; min-width: 0 !important; box-sizing: border-box; padding-left: 3px !important; padding-right: 6px !important; }

  /* то же во втором шаге форм (имя, телефон, e-mail…): флаг через 2px и по содержимому,
     без отступа слева. У формы пробного дня во внутренних стилях был свой отступ 12px
     с !important — селектор длиннее, чтобы перебить его */
  .acad .form_step2_field_phone .phone_flag_selector { gap: 2px; }
  .acad .form_step2_field_phone .phone_flag_selector_wrapper { width: fit-content !important; min-width: 0 !important; }
  .acad .form_step2_field_phone .phone_number { padding-left: 0 !important; }
  .acad .form_hover_step2 .form_step2_input_wrapper.form_step2_field_phone .phone_number input[type="tel"] { padding-left: 0 !important; padding-right: 4px !important; }
}

/* узкие телефоны — как на главной до 385px */
@media (max-width: 385px) {
  .acad .campuses_grid { gap: clamp(10px, 2vw, 20px); }
  .acad .campuses_grid > * { justify-self: stretch; }
  .acad .campus_card img, .acad .map_image { width: 100%; height: 105px; }
  /* во втором шаге формы имя и телефон — каждый на всю ширину: в половине строки номер не помещается */
  .acad .form_step2_field_parent, .acad .form_step2_field_phone { grid-column: 1 / -1; }
}

/* карточки программ до 380px — как на главной: две колонки по ширине экрана */
@media (max-width: 380px) {
  .acad .acad-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acad .acad-card { width: 100%; }
  .acad .acad-cards > .acad-card-link:last-child:nth-child(odd) { width: calc((100% - clamp(15px, 2vw, 20px)) / 2); }
  .acad .acad-card .acad-card__red { padding: 20px 8px; }
}

/* второй шаг форм на планшете и десктопе: у формы пробного дня во внутренних стилях
   отступ перед номером 30px — номер не помещался; ставим 10px, как в остальных формах */
@media (min-width: 769px) {
  .acad .form_hover_step2 .form_step2_input_wrapper.form_step2_field_phone .phone_number input[type="tel"] { padding-left: 10px !important; }
}
/* 769–1023px: в три колонки поле телефона ~150px — номер не помещается (и на главной тоже).
   Здесь поля второго шага в две колонки. */
@media (min-width: 769px) and (max-width: 1023px) {
  .acad .form_step2_row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* номер телефона — Roboto, как на главной (в форме пробного дня был Arial) */
.acad input[type="tel"] { font-family: Roboto, Arial, sans-serif; }

@media (max-width: 640px) {
  .acad-stages .accordion_header { padding: 16px 56px 16px 20px; }
  .acad-stages .accordion_header::before { right: 20px; }
  .acad-stages .accordion_header::after { right: 29px; }
  .acad-stages .accordion_header.active::after { right: 20px; transform: translateX(0) translateY(-50%) rotate(-45deg); }
  .acad-stages .accordion_info { font-size: 20px; line-height: 24px; }
  .acad-stages .accordion_content { padding: 0 20px; }
  .acad-stages .accordion_content.open { padding: 20px 20px 22px; }
  .acad-stage__lead { margin-bottom: 16px; }
  .acad-stage__lead { font-size: 20px; line-height: 24px; }
}
