
/* Финальная доработка 23.08.2026 */

/* Первый экран ОГЭ/ЕГЭ: меньше переносов, крупнее фотография */
@media (min-width:901px){
  .page-exam .oge-hero{
    text-align:left;
    padding-top:clamp(3.4rem,5.4vw,5rem)!important;
    padding-bottom:clamp(3rem,4.8vw,4.4rem)!important;
  }
  .page-exam .oge-hero-grid{
    grid-template-columns:minmax(0,1.45fr) minmax(330px,.55fr)!important;
    gap:clamp(3.2rem,5vw,5rem)!important;
  }
  .page-exam .oge-hero h1{
    max-width:820px;
    margin:0 0 22px;
    font-size:clamp(50px,4.55vw,68px);
    line-height:1.01;
  }
  .page-exam .oge-hero .lead{
    max-width:760px;
    margin-left:0;
    margin-right:0;
  }
  .page-exam .oge-hero-photo{max-width:400px!important}
}
@media (max-width:900px){
  .page-exam .oge-hero{text-align:center}
  .page-exam .oge-hero .lead{margin-left:auto;margin-right:auto}
  .page-exam .oge-hero .hero-actions{justify-content:center}
}

/* Компактнее верхние блоки внутренних страниц */
.page-about .page-hero,
.page-articles .page-hero,
.page-contacts .page-hero{padding-bottom:clamp(2.4rem,4vw,3.5rem)!important}
.page-about main>.section:first-of-type,
.page-articles main>.section:first-of-type,
.page-contacts main>.section:first-of-type{padding-top:clamp(2.5rem,4vw,3.5rem)!important}

/* Полное педагогическое сопровождение */
.support-highlight{
  margin:26px 0 30px;
  padding:22px 24px;
  border:1px solid rgba(91,75,196,.16);
  border-radius:20px;
  background:linear-gradient(135deg,rgba(91,75,196,.08),rgba(255,255,255,.92));
}
.support-highlight strong{display:block;font-size:1.08rem;margin-bottom:10px}
.support-highlight ul{margin:0;padding-left:1.25rem}
.support-highlight li+li{margin-top:7px}
.support-journey-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.support-journey-grid .journey-card{padding:26px}
.support-reviews .proof-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.support-reviews .proof-card img{aspect-ratio:4/3;object-fit:contain;background:#f4f2f8;padding:8px}
.support-reviews .proof-card:nth-child(2) img{object-position:top}
.support-note{
  margin-top:22px;
  padding:16px 18px;
  border-left:4px solid var(--brand);
  background:rgba(91,75,196,.06);
  border-radius:0 14px 14px 0;
  color:var(--muted);
}

/* Отзывы: изображения не обрезаются */
.reviews-section .proof-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.reviews-section .proof-card img{object-fit:contain;background:#f4f2f8;padding:8px}

/* Контакты */
.contact-card{align-self:start}
.form-destination{margin-top:2px}
.form-explainer{margin:0 0 4px;color:var(--muted);line-height:1.55}
.page-contacts .mobile-lead-button{display:none!important}

/* Мобильная кнопка появляется только после прокрутки */
.mobile-lead-button{
  opacity:0;
  transform:translateY(calc(100% + 30px));
  pointer-events:none;
  visibility:hidden;
}
.mobile-lead-button.is-visible{
  opacity:1;
  transform:none;
  pointer-events:auto;
  visibility:visible;
}
@media(max-width:760px){
  body{padding-bottom:0!important}
  body.mobile-cta-visible{padding-bottom:78px!important}
  .mobile-lead-button{display:flex}
}

/* Мобильное меню: понятное состояние и корректное закрытие */
.menu-toggle span{transition:transform .2s ease,opacity .2s ease}
.menu-toggle.is-open span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.menu-toggle.is-open span:nth-child(2){opacity:0}
.menu-toggle.is-open span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* Доступность и резервные переходы */
[data-open-lead]:focus-visible,.contact-line:focus-visible{outline:3px solid rgba(91,75,196,.22);outline-offset:3px}

@media(max-width:900px){
  .support-journey-grid{grid-template-columns:1fr!important}
  .support-reviews .proof-grid,.reviews-section .proof-grid{grid-template-columns:1fr}
}

/* Карточки сопровождения на странице преподавателя */
.support-journey-grid{
  display:grid;
  gap:18px;
}
.support-journey-grid .journey-card{
  background:#fff;
  border:1px solid rgba(91,75,196,.13);
  border-radius:22px;
  box-shadow:0 12px 35px rgba(37,31,71,.06);
}
.support-journey-grid .journey-card>span{
  display:inline-grid;
  place-items:center;
  width:38px;
  height:38px;
  margin-bottom:14px;
  border-radius:50%;
  background:rgba(91,75,196,.12);
  color:var(--brand);
  font-weight:800;
}
.support-journey-grid .journey-card h3{margin:0 0 10px}
.support-journey-grid .journey-card p{margin:0;color:var(--muted)}

@media(max-width:760px){
  .mobile-lead-button{
    left:auto!important;
    right:14px!important;
    width:auto!important;
    min-width:156px;
    padding:0 22px;
    min-height:48px;
    border-radius:999px;
  }
}

/* Семантический заголовок без визуального дублирования */
.visually-hidden{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
