/* ══════════════════════════════════════════════════════════════
   «Твой репетитор» — страница «О проекте» (новый дизайн)
   Подключается только на /o-proekte/ (build.js → meta.css).
   Первый экран, заголовки и финальный призыв — общие, в site.css.
   ══════════════════════════════════════════════════════════════ */

.ab-sec { padding: clamp(70px, 9vw, 120px) 0 0; }
.ab-head { max-width: 780px; }
.ab-head.sec-head--center { max-width: none; }

/* Общая светлая карточка */
.ab-card { padding: clamp(24px, 2.6vw, 32px); border-radius: 24px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-xs); overflow: hidden; }
.ab-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.ab-card p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: var(--text-secondary); }

/* ══════════════ КОРОТКО В ЦИФРАХ ══════════════ */
.ab-facts { padding-top: clamp(4px, 1vw, 12px); }
.ab-facts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ab-fact { display: flex; align-items: center; gap: 20px; padding: clamp(20px, 2.4vw, 28px); border-radius: 24px; background: rgba(255, 255, 255, .78); border: 1px solid var(--border); box-shadow: var(--shadow-xs); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); overflow: hidden; }
.ab-fact__num {
  flex-shrink: 0; font-family: var(--font-mono); font-size: clamp(52px, 5.6vw, 72px); font-weight: 600; letter-spacing: -.06em; line-height: .9;
  background: linear-gradient(135deg, #f59e6c, #e8734a 45%, #c2603a); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ab-fact p { font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.ab-fact b { color: var(--ink); }

/* ══════════════ ЗАЧЕМ МЫ ЭТО ДЕЛАЕМ ══════════════ */
.ab-why { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ab-card__tag { margin-bottom: 14px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--tutor-t); }

/* ══════════════ ЧЕМ ОТЛИЧАЕМСЯ ══════════════ */
.ab-sec--tint { margin-top: clamp(70px, 9vw, 120px); padding-bottom: clamp(70px, 9vw, 120px); background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .7) 18%, rgba(255, 255, 255, .7) 82%, transparent); }
.ab-why--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ab-diff { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ab-dcard { --spot: color-mix(in srgb, var(--rc) 14%, transparent); border-top: 3px solid var(--rc); }
.ab-dcard__ic { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 14px; background: color-mix(in srgb, var(--rc) 12%, transparent); color: var(--rt); }

/* ══════════════ КУДА РАЗВИВАЕМСЯ ══════════════ */
.ab-road { position: relative; margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
/* Линия времени через точки шагов */
.ab-road::before { content: ''; position: absolute; left: 32px; right: 32px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--tutor) 0 22%, rgba(26, 26, 31, .1) 38%); }
.ab-step { position: relative; padding: 36px clamp(22px, 2.4vw, 30px) 0; }
.ab-step::before { content: ''; position: absolute; left: clamp(22px, 2.4vw, 30px); top: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid rgba(26, 26, 31, .2); }
.ab-step.is-now::before { background: var(--tutor); border-color: var(--tutor); box-shadow: 0 0 0 6px rgba(232, 115, 74, .18); }
.ab-step__top { display: flex; align-items: center; gap: 12px; }
.ab-step__year { font-family: var(--font-mono); font-size: clamp(34px, 3.6vw, 44px); font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--text-muted); }
.ab-step.is-now .ab-step__year { color: var(--ink); }
.ab-step__badge { padding: 5px 11px; border-radius: 999px; background: linear-gradient(135deg, #f08a5d, #e8734a); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 6px 16px -6px rgba(232, 115, 74, .7); }
.ab-step h3 { margin-top: 16px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.ab-step p { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--text-secondary); }

/* ══════════════ ОСНОВАТЕЛЬ ══════════════ */
.ab-founder { padding: clamp(70px, 9vw, 120px) 0 0; }
.ab-founder__card {
  display: flex; align-items: center; gap: clamp(24px, 4vw, 48px); max-width: 960px; margin: 0 auto;
  padding: clamp(28px, 5vw, 56px); border-radius: 32px; background: #fff; border: 1px solid var(--border); overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(99, 102, 241, .4), 0 20px 40px -24px rgba(26, 26, 31, .18);
  --spot: rgba(99, 102, 241, .1);
}
.ab-founder__card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(280px circle at calc(100% - 60px) 50px, rgba(99, 102, 241, .12), transparent); }
.ab-founder__av { width: 112px; height: 112px; border-radius: 30px; font-size: 38px; }
.ab-founder .eyebrow { color: var(--student-t); }
.ab-founder__name { margin-top: 12px; font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.ab-founder__role { margin-top: 6px; font-size: 14.5px; color: var(--text-secondary); }
.ab-founder__text { margin-top: 16px; max-width: 560px; font-size: 16.5px; line-height: 1.6; color: var(--ink); }

/* ══════════════ КОНТАКТЫ ══════════════ */
.ab-contacts { padding: clamp(70px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); scroll-margin-top: 20px; }
.ab-contacts__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; margin: clamp(32px, 4vw, 44px) auto 0; }
.ab-contact { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 22px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-xs); color: var(--ink); overflow: hidden; transition: transform .25s var(--ease-out), box-shadow .25s ease, border-color .25s ease; }
.ab-contact:hover { color: var(--ink); transform: translateY(-2px); border-color: rgba(26, 26, 31, .16); box-shadow: var(--shadow-md); }
.ab-contact__ic { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; }
.ab-contact__ic--mail { background: rgba(232, 115, 74, .12); color: var(--tutor-t); }
.ab-contact__ic--tg { background: var(--telegram); color: #fff; }
.ab-contact__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ab-contact__txt small { font-size: 12.5px; color: var(--text-muted); }
.ab-contact__txt b { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-contact__arr { flex-shrink: 0; color: var(--text-muted); transition: transform .25s var(--ease-out), color .25s ease; }
.ab-contact:hover .ab-contact__arr { color: var(--tutor); transform: translateX(3px); }

/* ══════════════ АДАПТИВ ══════════════ */
@media (max-width: 960px) {
  .ab-facts__grid, .ab-why, .ab-diff { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .ab-road { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 560px; }
  .ab-road::before { left: 6px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--tutor) 0 22%, rgba(26, 26, 31, .1) 38%); }
  .ab-step { padding: 0 0 36px 40px; }
  .ab-step:last-child { padding-bottom: 0; }
  .ab-step::before { left: 0; top: 10px; }
}
@media (max-width: 640px) {
  .ab-founder__card { flex-direction: column; align-items: flex-start; border-radius: 26px; }
  .ab-founder__av { width: 88px; height: 88px; border-radius: 24px; font-size: 30px; }
  .ab-contacts__grid { grid-template-columns: minmax(0, 1fr); }
}
