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

/* ----- Первый экран ----- */
body.theme-v2 .ab-hero .breadcrumb { margin: 0; font-size: 15px; font-weight: 600; color: var(--t-muted); }
body.theme-v2 .ab-hero .breadcrumb a { color: var(--t-accent); }
body.theme-v2 .ab-hero .breadcrumb a:hover { color: var(--t-ink); text-decoration: none; }
body.theme-v2 .ab-hero-art { max-width: 540px; }
body.theme-v2 .ab-year { right: 0; bottom: 8%; max-width: 230px; gap: 4px; }
body.theme-v2 .ab-year strong { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--t-accent); }
body.theme-v2 .ab-year span { line-height: 1.35; }

/* ----- Миссия и цифры ----- */
body.theme-v2 .ab-mission-grid {
  display: grid; gap: 28px 56px; align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
body.theme-v2 .ab-mission-text { display: flex; flex-direction: column; gap: 18px; }
body.theme-v2 .ab-mission-text p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--t-muted); text-wrap: pretty; }
body.theme-v2 .ab-stats {
  display: grid; gap: 16px; margin-top: 64px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
body.theme-v2 .ab-stat {
  --stat: var(--c-blue);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: 230px; padding: 28px; border-radius: 28px;
  background: var(--stat); color: #fff;
}
body.theme-v2 .ab-stat::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 170px; height: 170px;
  border-radius: 50%; border: 26px solid rgba(255,255,255,.16); pointer-events: none;
}
body.theme-v2 .ab-stat--yellow { --stat: var(--c-yellow); color: var(--t-ink); }
body.theme-v2 .ab-stat--blue { --stat: var(--c-blue); }
body.theme-v2 .ab-stat--green { --stat: var(--c-green); }
body.theme-v2 .ab-stat--purple { --stat: var(--c-purple); }
body.theme-v2 .ab-stat-num { position: relative; font-size: clamp(40px, 4vw, 52px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; white-space: nowrap; }
body.theme-v2 .ab-stat-label { position: relative; font-size: 15px; line-height: 1.45; opacity: .92; text-wrap: pretty; }

/* ----- Принципы ----- */
body.theme-v2 .ab-values-head { max-width: 760px; margin-bottom: 56px; }
body.theme-v2 .ab-values { --min: 340px; gap: 44px 28px; }
body.theme-v2 .t-tile-img.ab-tile--yellow { --tile: var(--c-yellow); }
body.theme-v2 .t-tile-img.ab-tile--blue { --tile: var(--c-blue); }
body.theme-v2 .t-tile-img.ab-tile--green { --tile: var(--c-green); }
body.theme-v2 .t-tile-img.ab-tile--purple { --tile: var(--c-purple); }
body.theme-v2 .t-tile-img.ab-tile--accent { --tile: var(--t-accent); }
body.theme-v2 .ab-values .t-tile-body p { text-wrap: pretty; }

/* ----- История: вертикальная лента лет ----- */
body.theme-v2 .ab-history-head { position: sticky; top: 110px; align-self: start; }
body.theme-v2 .ab-tl { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
body.theme-v2 .ab-tl-item {
  --tl: var(--t-accent);
  position: relative; display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 8px 24px;
  padding: 0 0 40px 52px;
}
/* линия между точками */
body.theme-v2 .ab-tl-item::before {
  content: ""; position: absolute; left: 13px; top: 14px; bottom: -14px;
  width: 2px; background: var(--t-line);
}
/* точка года */
body.theme-v2 .ab-tl-item::after {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 28px; height: 28px; border-radius: 50%; box-sizing: border-box;
  background: var(--tl); border: 6px solid #fff; box-shadow: 0 0 0 2px var(--tl);
}
body.theme-v2 .ab-tl--yellow { --tl: var(--c-yellow); }
body.theme-v2 .ab-tl--blue { --tl: var(--c-blue); }
body.theme-v2 .ab-tl--green { --tl: var(--c-green); }
body.theme-v2 .ab-tl--purple { --tl: var(--c-purple); }
body.theme-v2 .ab-tl-year { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--t-ink); }
body.theme-v2 .ab-tl-body { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
body.theme-v2 .ab-tl-body h3 { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
body.theme-v2 .ab-tl-body p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--t-muted); text-wrap: pretty; }
/* Последний шаг — «сейчас»: оранжевая карточка */
body.theme-v2 .ab-tl-item--now {
  margin-left: 52px; padding: 30px; border-radius: 28px;
  background: var(--t-accent); color: #fff;
}
body.theme-v2 .ab-tl-item--now::before { content: none; }
body.theme-v2 .ab-tl-item--now::after { left: -52px; top: 34px; }
body.theme-v2 .ab-tl-item--now .ab-tl-year,
body.theme-v2 .ab-tl-item--now h3 { color: #fff; }
body.theme-v2 .ab-tl-item--now p { color: rgba(255,255,255,.9); }

/* ----- Команда ----- */
body.theme-v2 .ab-team-grid {
  display: grid; gap: 40px 56px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
body.theme-v2 .ab-team .section-head p { max-width: 520px; }
body.theme-v2 .ab-team-row { display: flex; justify-content: center; padding-left: 28px; }
/* Пустые карточки команды — абстрактные «аватары»: круг с верхом кубика 2×2 */
body.theme-v2 .ab-team .team-card {
  --who: var(--c-blue);
  flex: none; width: clamp(84px, 11vw, 148px); aspect-ratio: 1 / 1; margin-left: -28px;
  border-radius: 50%; border: 8px solid var(--t-cream);
  background:
    radial-gradient(circle at 36% 36%, rgba(255,255,255,.34) 0 9%, transparent calc(9% + 1px)),
    radial-gradient(circle at 64% 36%, rgba(255,255,255,.34) 0 9%, transparent calc(9% + 1px)),
    radial-gradient(circle at 36% 64%, rgba(255,255,255,.34) 0 9%, transparent calc(9% + 1px)),
    radial-gradient(circle at 64% 64%, rgba(255,255,255,.34) 0 9%, transparent calc(9% + 1px)),
    var(--who);
}
body.theme-v2 .ab-team .team-card:nth-child(1) { --who: var(--c-yellow); }
body.theme-v2 .ab-team .team-card:nth-child(2) { --who: var(--c-blue); transform: translateY(-14px); }
body.theme-v2 .ab-team .team-card:nth-child(3) { --who: var(--c-green); }
body.theme-v2 .ab-team .team-card:nth-child(4) { --who: var(--c-purple); transform: translateY(-14px); }

/* ----- Баннер ----- */
body.theme-v2 .ab-band-text { display: flex; flex-direction: column; gap: 16px; }
body.theme-v2 .ab-band-text p { max-width: 560px; }
body.theme-v2 .ab-band-btn { justify-self: start; }

@media (min-width: 981px) {
  body.theme-v2 .ab-history-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  body.theme-v2 .ab-band { grid-template-columns: minmax(0, 1fr) auto; }
  body.theme-v2 .ab-band-btn { justify-self: end; }
}
@media (max-width: 980px) {
  body.theme-v2 .ab-history-head { position: static; }
}
@media (max-width: 600px) {
  body.theme-v2 .ab-hero h1 { overflow-wrap: break-word; hyphens: auto; }
  body.theme-v2 .ab-year { right: -4px; bottom: 2%; padding: 12px 16px; max-width: 190px; }
  body.theme-v2 .ab-year strong { font-size: 28px; }
  body.theme-v2 .ab-stats { margin-top: 44px; }
  body.theme-v2 .ab-stat { min-height: 0; gap: 20px; }
  body.theme-v2 .ab-values-head { margin-bottom: 36px; }
  body.theme-v2 .ab-tl-item { grid-template-columns: minmax(0, 1fr); padding: 0 0 32px 44px; }
  body.theme-v2 .ab-tl-year { font-size: 30px; }
  body.theme-v2 .ab-tl-item--now { margin-left: 44px; padding: 22px; }
  body.theme-v2 .ab-tl-item--now::after { left: -44px; top: 24px; }
  body.theme-v2 .ab-team-row { padding-left: 24px; }
  body.theme-v2 .ab-team .team-card { margin-left: -24px; border-width: 6px; }
  /* Казахская кнопка длиннее: баннер теснее, кнопка во всю ширину */
  body.theme-v2 .ab-band { padding: 36px 24px; }
  body.theme-v2 .ab-band-btn { justify-self: stretch; justify-content: center; padding: 16px 20px; font-size: 16px; text-align: center; }
}
