/* ============================================================
   «Академия» по дизайн-системе главной (theme-v2).
   Общие компоненты t-* — в theme.css, здесь только блоки страницы.
   ============================================================ */

/* ----- Первый экран ----- */
body.theme-v2 .ac-hero { padding: 0; }
body.theme-v2 .ac-crumbs { margin: 0; font-size: 14px; font-weight: 500; color: var(--t-muted); }
body.theme-v2 .ac-crumbs a { color: var(--t-accent); }
body.theme-v2 .ac-crumbs a:hover { color: var(--t-ink); text-decoration: none; }

/* ----- Заголовки секций ----- */
body.theme-v2 .ac-head { margin-bottom: 48px; }
body.theme-v2 .ac-head h2 { max-width: 780px; }
body.theme-v2 .ac-head--split {
  display: grid; gap: 14px 56px; align-items: end;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
body.theme-v2 .ac-head--split .section-tag { grid-column: 1 / -1; }
body.theme-v2 .ac-head--split p { max-width: 440px; justify-self: end; }

/* ----- Форматы обучения ----- */
body.theme-v2 .ac-format-grid { --min: 300px; }
body.theme-v2 .ac-format { --fmt: var(--c-yellow); gap: 12px; padding: 32px; border-radius: 28px; }
body.theme-v2 .ac-format--yellow { --fmt: var(--c-yellow); }
body.theme-v2 .ac-format--blue { --fmt: var(--c-blue); }
body.theme-v2 .ac-format--green { --fmt: var(--c-green); }
body.theme-v2 .ac-format-ico {
  width: 64px; height: 64px; margin-bottom: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--fmt); color: #fff;
}
body.theme-v2 .ac-format--yellow .ac-format-ico { color: var(--t-ink); }
body.theme-v2 .ac-format-ico .ico { width: 28px; height: 28px; }
body.theme-v2 .ac-format h3 { font-size: 22px; }

/* ----- 10 программ: 4 платных курса в ряд, 6 программ LEGO по три ----- */
body.theme-v2 .ac-course-grid { display: grid; gap: 20px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
body.theme-v2 .ac-course-grid > .course-card { grid-column: span 4; }
body.theme-v2 .ac-course-grid > .course-card:nth-child(-n+4) { grid-column: span 3; }

/* Подсетка: плашки и тела карточек одного ряда выравниваются по высоте */
body.theme-v2 .course-card {
  display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: 0;
  min-width: 0; overflow: hidden; border-radius: 28px; background: #fff;
}
/* Цветная плашка ступени: цвет = уровень программы, как ступени на главной */
body.theme-v2 .course-head {
  --lvl: var(--c-blue);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 200px; padding: 24px 24px 28px;
  background: var(--lvl); color: #fff;
}
body.theme-v2 .course-head::after {
  content: ""; position: absolute; right: -70px; bottom: -90px;
  width: 200px; height: 200px; border-radius: 50%;
  border: 28px solid rgba(255,255,255,.16); pointer-events: none;
}
body.theme-v2 .ac-lvl--yellow { --lvl: var(--c-yellow); color: var(--t-ink); }
body.theme-v2 .ac-lvl--blue { --lvl: var(--c-blue); }
body.theme-v2 .ac-lvl--green { --lvl: var(--c-green); }
body.theme-v2 .ac-lvl--purple { --lvl: var(--c-purple); }
body.theme-v2 .course-level {
  position: relative; z-index: 1; align-self: flex-start;
  margin-bottom: auto; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.22); font-size: 13px; font-weight: 600; line-height: 1.3;
}
body.theme-v2 .ac-lvl--yellow .course-level { background: rgba(255,255,255,.5); }
body.theme-v2 .course-head h3 {
  position: relative; z-index: 1; margin: 20px 0 0; color: inherit;
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
  overflow-wrap: break-word; hyphens: auto;
}
body.theme-v2 .course-head p { position: relative; z-index: 1; margin: 0; color: inherit; font-size: 15px; line-height: 1.45; opacity: .9; }

body.theme-v2 .course-body { flex: 1; display: flex; flex-direction: column; gap: 20px; padding: 24px; }
body.theme-v2 .course-meta { display: flex; flex-wrap: wrap; gap: 6px; }
body.theme-v2 .course-meta > div {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: var(--t-gray);
  font-size: 13px; color: var(--t-ink);
}
body.theme-v2 .course-meta .ico { width: 15px; height: 15px; color: var(--t-accent); }
body.theme-v2 .course-meta strong { font-weight: 600; }
body.theme-v2 .course-topics { flex: 1; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
body.theme-v2 .course-topics li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; color: var(--t-muted); }
body.theme-v2 .course-topics li::before {
  content: ""; position: absolute; left: 5px; top: 3px;
  width: 6px; height: 11px; border: solid var(--t-accent); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
body.theme-v2 .course-price {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px;
  padding-top: 18px; border-top: 1px solid var(--t-line);
}
body.theme-v2 .course-price .num { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
body.theme-v2 .course-price .lbl { font-size: 14px; color: var(--t-muted); }
body.theme-v2 .course-cta {
  display: flex; justify-content: center; align-items: center;
  padding: 14px 20px; border-radius: 999px; background: var(--t-gray); color: var(--t-ink);
  font-size: 15px; font-weight: 600; text-align: center;
  transition: background .2s, color .2s;
}
body.theme-v2 .course-cta:hover { background: var(--t-accent); color: #fff; }

/* ----- Преподаватели: фото как плитки «Почему» на главной ----- */
body.theme-v2 .teachers-grid { display: grid; gap: 48px 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.theme-v2 .teacher-card { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
body.theme-v2 .teacher-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 24px; background: var(--t-gray); }
body.theme-v2 .teacher-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
body.theme-v2 .teacher-body h3 { margin: 0 0 18px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
body.theme-v2 .teacher-details { display: flex; flex-direction: column; gap: 14px; margin: 0; }
body.theme-v2 .teacher-detail { padding-top: 14px; border-top: 1px solid var(--t-line); }
body.theme-v2 .teacher-detail dt { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--t-accent); }
body.theme-v2 .teacher-detail dd { margin: 0; font-size: 14px; line-height: 1.55; color: var(--t-muted); }
body.theme-v2 .teacher-detail ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
body.theme-v2 .teacher-detail li { position: relative; padding-left: 14px; }
body.theme-v2 .teacher-detail li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--t-accent);
}

/* ----- 4 шага: горизонтальная лента ----- */
body.theme-v2 .ac-steps { display: grid; gap: 28px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.theme-v2 .ac-step { position: relative; display: flex; flex-direction: column; gap: 22px; padding: 0; border-top: 0; }
body.theme-v2 .ac-step::before {
  content: ""; position: absolute; top: 27px; left: 72px; right: -12px;
  border-top: 2px dashed var(--t-accent); opacity: .45;
}
body.theme-v2 .ac-step:last-child::before { content: none; }
body.theme-v2 .ac-step .t-step-num { width: 56px; height: 56px; font-size: 20px; background: var(--t-cream); }
body.theme-v2 .ac-step:last-child .t-step-num { background: var(--t-accent); color: #fff; }
body.theme-v2 .ac-step > div { padding-top: 0; }
body.theme-v2 .ac-step h3 { font-size: 22px; }
body.theme-v2 .ac-step p { max-width: 260px; }

/* ----- Сертификат ----- */
body.theme-v2 .ac-cert-grid { --split-min: 400px; align-items: center; }
body.theme-v2 .ac-cert-art { --art: var(--c-blue); max-width: 520px; }
body.theme-v2 .ac-cert-art img { left: 58%; width: 76%; }
body.theme-v2 .ac-cert-art .cert-paper {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 210px; padding: 22px 20px 18px; border-radius: 20px; background: #fff;
  text-align: center; transform: rotate(-4deg);
  box-shadow: 0 12px 40px rgba(47,47,52,.16);
}
body.theme-v2 .cert-paper .seal {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px;
  border-radius: 50%; background: var(--t-accent); color: #fff; font-size: 18px; font-weight: 800;
}
body.theme-v2 .cert-paper .title { font-size: 14px; font-weight: 800; letter-spacing: .16em; color: var(--t-ink); }
body.theme-v2 .cert-paper .name { font-size: 12px; color: var(--t-muted); }
body.theme-v2 .cert-paper .sig { width: 70%; height: 1.5px; margin: 10px auto 2px; background: var(--t-ink); }
body.theme-v2 .cert-paper .sig-name { font-size: 11px; color: var(--t-muted); }

body.theme-v2 .ac-cert-copy { display: flex; flex-direction: column; gap: 18px; }
body.theme-v2 .ac-cert-copy .section-head { margin-bottom: 6px; }
body.theme-v2 .ac-cert-p { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.55; color: var(--t-muted); }
body.theme-v2 .ac-features { display: flex; flex-direction: column; margin: 12px 0 0; padding: 0; list-style: none; }
body.theme-v2 .ac-features li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 18px 0; border-top: 1px solid var(--t-line);
}
body.theme-v2 .ac-check { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--t-accent); color: #fff; }
body.theme-v2 .ac-check .ico { width: 18px; height: 18px; }
body.theme-v2 .ac-features li > div + div { display: flex; flex-direction: column; gap: 4px; padding-top: 1px; }
body.theme-v2 .ac-features strong { font-size: 17px; font-weight: 700; }
body.theme-v2 .ac-features span { font-size: 15px; line-height: 1.5; color: var(--t-muted); }

/* ----- Баннер ----- */
body.theme-v2 .ac-band-text { display: flex; flex-direction: column; gap: 16px; }
body.theme-v2 .ac-band-btn { justify-self: end; max-width: 100%; white-space: normal; text-align: center; }

/* ----- Адаптив ----- */
@media (max-width: 1100px) {
  body.theme-v2 .ac-course-grid > .course-card { grid-column: span 6; }
  body.theme-v2 .ac-course-grid > .course-card:nth-child(-n+4) { grid-column: span 6; }
  body.theme-v2 .teachers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  body.theme-v2 .ac-head--split { grid-template-columns: minmax(0, 1fr); }
  body.theme-v2 .ac-head--split p { justify-self: start; }
  body.theme-v2 .ac-band-btn { justify-self: start; }
}
@media (max-width: 900px) {
  body.theme-v2 .ac-steps { display: flex; gap: 0; }
  body.theme-v2 .ac-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-top: 1px solid var(--t-line); }
  body.theme-v2 .ac-step::before { content: none; }
  body.theme-v2 .ac-step > div { padding-top: 6px; }
  body.theme-v2 .ac-step p { max-width: none; }
}
@media (max-width: 680px) {
  body.theme-v2 .ac-course-grid > .course-card { grid-column: 1 / -1; }
  body.theme-v2 .ac-course-grid > .course-card:nth-child(-n+4) { grid-column: 1 / -1; }
  body.theme-v2 .course-head { min-height: 0; }
}
@media (max-width: 600px) {
  body.theme-v2 .ac-head { margin-bottom: 36px; }
  body.theme-v2 .teachers-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  body.theme-v2 .ac-format { padding: 26px; }
  body.theme-v2 .ac-cert-art .cert-paper { width: 150px; padding: 14px 12px 12px; }
  body.theme-v2 .ac-band .t-band { padding: 36px 24px; }
  body.theme-v2 .ac-band-btn { padding: 15px 22px; font-size: 16px; }
}
