/* ===== Страница «О нас» — новый дизайн (черновик) ===== */

.ab2 {
  --ab-navy: #0B2347;
  --ab-navy-2: #0F3D8C;
  --ab-blue: #1D5FD1;
  --ab-blue-pale: #EAF1FC;
  --ab-text: #16233B;
  --ab-muted: #5B6B84;
  --ab-line: #DCE6F2;
  --ab-bg: #F5F8FD;
  color: var(--ab-text);
  font-family: 'Public Sans', 'Manrope', system-ui, sans-serif;
}

.ab2 *,
.ab2 *::before,
.ab2 *::after { box-sizing: border-box; }

.ab2 h1, .ab2 h2, .ab2 h3 {
  font-family: 'Manrope', sans-serif;
  color: var(--ab-text);
  -webkit-text-fill-color: currentColor;
  background: none;
  margin: 0;
}

.ab2-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ab2-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ab-blue);
}

.ab2-kicker::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.ab2-title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 10px !important;
}

.ab2-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ab-muted);
  margin: 14px 0 0;
}

.ab2-section { padding: 88px 0; }
.ab2-section--soft { background: var(--ab-bg); }
.ab2-head { max-width: 640px; margin-bottom: 44px; }
.ab2-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.ab2-head--center .ab2-kicker { justify-content: center; }

/* ---------- Появление при прокрутке ---------- */
.ab2-js .ab2-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.ab2-js .ab2-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ab2-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Кнопки ---------- */
.ab2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
}
.ab2-btn:hover { transform: translateY(-2px); }
.ab2-btn svg { width: 18px; height: 18px; }
.ab2-btn--primary {
  background: var(--ab-blue);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 2px 0 var(--ab-navy-2), 0 12px 24px rgba(29, 95, 209, 0.28);
}
.ab2-btn--primary:hover { background: var(--ab-navy-2); }
.ab2-btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: rgba(255, 255, 255, 0.06);
}
.ab2-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.14); }

/* ---------- 1. HERO ---------- */
.ab2-hero {
  position: relative;
  padding: calc(var(--site-chrome-h, 72px) + 24px) 24px 0;
}
.ab2-hero__card {
  position: relative;
  max-width: 1200px;
  min-height: 560px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--ab-navy);
}
.ab2-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ab2-hero__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 35, 71, 0.94) 0%, rgba(11, 35, 71, 0.72) 45%, rgba(11, 35, 71, 0.15) 100%),
    linear-gradient(0deg, rgba(11, 35, 71, 0.6) 0%, rgba(11, 35, 71, 0) 45%);
}
.ab2-hero__body {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 56px 56px 128px;
}
.ab2-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #DCE8FF;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.ab2-hero__badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.22);
}
.ab2 .ab2-hero h1 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  margin-top: 18px !important;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
}
.ab2 .ab2-hero h1 span { color: #7FB0FF !important; -webkit-text-fill-color: #7FB0FF !important; }
.ab2-hero__text {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: #C9D7EE;
}
.ab2-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Цифры поверх нижнего края */
.ab2-stats {
  position: relative;
  z-index: 2;
  max-width: 1104px;
  margin: -72px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--ab-line);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(11, 35, 71, 0.12);
}
.ab2-stat { padding: 30px 26px; text-align: center; }
.ab2-stat + .ab2-stat { border-left: 1px solid var(--ab-line); }
.ab2-stat b {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ab-navy-2);
}
.ab2-stat span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ab-muted);
}

/* ---------- 2. О КОМПАНИИ ---------- */
.ab2-story {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.ab2-story__media { position: relative; }
.ab2-story__frame {
  aspect-ratio: 4 / 3.4;
  border-radius: 24px;
  overflow: hidden;
}
.ab2 .ab2-story__frame img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover;
}
.ab2-story__media::before {
  content: '';
  position: absolute;
  inset: 22px -22px -22px 22px;
  border-radius: 24px;
  border: 2px solid var(--ab-blue-pale);
  z-index: -1;
}
.ab2-story__year {
  position: absolute;
  left: -22px;
  bottom: 34px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--ab-navy);
  color: #fff;
  box-shadow: 0 18px 40px rgba(11, 35, 71, 0.3);
}
.ab2-story__year b {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}
.ab2-story__year span { font-size: 13px; color: #A9BEE0; }
.ab2-checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ab2-checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.ab2-checks svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 5px;
  border-radius: 50%;
  background: var(--ab-blue-pale);
  color: var(--ab-blue);
}

/* ---------- 3. ИСТОРИЯ (горизонтальная линия) ---------- */
.ab2-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ab2-timeline::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 25px;
  height: 2px;
  background: linear-gradient(90deg, var(--ab-line), var(--ab-blue), var(--ab-line));
}
.ab2-tl { position: relative; text-align: center; }
.ab2-tl__dot {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid var(--ab-blue);
  color: var(--ab-blue);
  box-shadow: 0 0 0 6px var(--ab-bg);
}
.ab2-tl__dot svg { width: 22px; height: 22px; }
.ab2-tl:last-child .ab2-tl__dot { background: var(--ab-blue); color: #fff; }
.ab2-tl__card {
  height: calc(100% - 70px);
  padding: 20px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--ab-line);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.ab2-tl__card:hover {
  transform: translateY(-6px);
  border-color: var(--ab-blue);
  box-shadow: 0 16px 34px rgba(15, 61, 140, 0.12);
}
.ab2-tl__year {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--ab-navy-2);
}
.ab2-tl h3 { margin-top: 6px !important; font-size: 15px; font-weight: 800; }
.ab2-tl p { margin: 8px 0 0; font-size: 13px; line-height: 1.55; color: var(--ab-muted); }

/* ---------- 4. ЧТО МЫ ДЕЛАЕМ ---------- */
.ab2-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ab2-service {
  position: relative;
  padding: 28px 24px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--ab-line);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.ab2-service:hover {
  transform: translateY(-6px);
  border-color: var(--ab-blue);
  box-shadow: 0 18px 40px rgba(15, 61, 140, 0.12);
}
.ab2-service__num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 44px;
  font-weight: 800;
  color: var(--ab-blue-pale);
  line-height: 1;
}
.ab2-icon {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ab-blue), var(--ab-navy-2));
  color: #fff;
  box-shadow: 0 10px 22px rgba(29, 95, 209, 0.3);
}
.ab2-icon svg { width: 26px; height: 26px; }
.ab2-service h3 { margin-top: 20px !important; font-size: 17px; font-weight: 800; }
.ab2-service p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--ab-muted); }

/* ---------- 5. ЦИТАТА + ЦЕННОСТИ ---------- */
.ab2-quote {
  position: relative;
  padding: 64px 56px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 20%, rgba(29, 95, 209, 0.55), transparent 55%),
    linear-gradient(135deg, var(--ab-navy) 0%, var(--ab-navy-2) 100%);
  color: #fff;
  overflow: hidden;
}
.ab2-quote__mark {
  position: absolute;
  top: -10px;
  left: 36px;
  font-family: Georgia, serif;
  font-size: 180px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
}
.ab2-quote blockquote {
  position: relative;
  margin: 0;
  max-width: 820px;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.ab2-quote cite { display: block; margin-top: 20px; font-style: normal; font-size: 14px; color: #A9BEE0; }

.ab2-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.ab2-value {
  padding: 28px 26px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--ab-line);
}
.ab2-value .ab2-icon { width: 48px; height: 48px; border-radius: 14px; }
.ab2-value h3 { margin-top: 18px !important; font-size: 17px; font-weight: 800; }
.ab2-value p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--ab-muted); }

/* ---------- 6. ПАРТНЁРЫ (бегущая строка) ---------- */
.ab2-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ab2-marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: ab2-marquee 28s linear infinite;
}
.ab2-marquee:hover .ab2-marquee__track { animation-play-state: paused; }
.ab2-brand {
  flex-shrink: 0;
  min-width: 190px;
  padding: 26px 30px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--ab-line);
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ab-navy);
}
@keyframes ab2-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ab2-marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ---------- 7. CTA ---------- */
.ab2-cta {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 52px 56px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--ab-blue) 0%, var(--ab-navy-2) 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(15, 61, 140, 0.3);
}
.ab2 .ab2-cta h2 { color: #fff !important; -webkit-text-fill-color: #fff !important; font-size: clamp(24px, 3vw, 36px); font-weight: 800; line-height: 1.2; }
.ab2-cta p { margin: 12px 0 0; color: #D6E4FF; font-size: 16px; line-height: 1.6; }
.ab2-cta__actions { display: flex; flex-direction: column; gap: 12px; }
.ab2-cta .ab2-btn--primary { background: #fff; color: var(--ab-navy-2) !important; -webkit-text-fill-color: var(--ab-navy-2) !important; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); }
.ab2-cta .ab2-btn--primary:hover { background: #EAF1FC; }

/* ===================== ПЛАНШЕТ ===================== */
@media (max-width: 1024px) {
  .ab2-timeline { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .ab2-timeline::before { display: none; }
  .ab2-services { grid-template-columns: repeat(2, 1fr); }
  .ab2-story { gap: 44px; }
}

/* ===================== ТЕЛЕФОН ===================== */
@media (max-width: 768px) {
  .ab2-wrap { padding: 0 16px; }
  .ab2-section { padding: 60px 0; }
  .ab2-head { margin-bottom: 28px; }

  html body .ab2 .ab2-hero { padding: calc(var(--site-chrome-h, 64px) + 16px) 12px 0 !important; }
  .ab2-story__frame { aspect-ratio: 4 / 3; border-radius: 20px; }
  .ab2-hero__card { min-height: 520px; border-radius: 22px; }
  .ab2-hero__card::after {
    background: linear-gradient(0deg, rgba(11, 35, 71, 0.96) 0%, rgba(11, 35, 71, 0.75) 55%, rgba(11, 35, 71, 0.25) 100%);
  }
  .ab2-hero__body { padding: 28px 22px 100px; }
  .ab2-hero__text { font-size: 15px; }
  .ab2-hero__actions .ab2-btn { flex: 1 1 100%; }

  .ab2-stats { grid-template-columns: repeat(2, 1fr); margin: -64px 16px 0; border-radius: 18px; }
  .ab2-stat { padding: 22px 12px; }
  .ab2-stat + .ab2-stat { border-left: 0; }
  .ab2-stat:nth-child(2n) { border-left: 1px solid var(--ab-line); }
  .ab2-stat:nth-child(n + 3) { border-top: 1px solid var(--ab-line); }

  .ab2-story { grid-template-columns: 1fr; gap: 40px; }
  .ab2-story__media::before { display: none; }
  .ab2-story__year { left: 14px; bottom: 14px; padding: 14px 18px; }
  .ab2-story__year b { font-size: 26px; }

  /* История — вертикальная линия */
  .ab2-timeline { grid-template-columns: 1fr; gap: 14px; padding-left: 0; }
  .ab2-timeline::before {
    display: block;
    left: 21px;
    right: auto;
    top: 10px;
    bottom: 10px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--ab-blue), var(--ab-line));
  }
  .ab2-tl { display: grid; grid-template-columns: 44px 1fr; gap: 14px; text-align: left; align-items: start; }
  .ab2-tl__dot { width: 44px; height: 44px; margin: 0; box-shadow: 0 0 0 5px var(--ab-bg); }
  .ab2-tl__dot svg { width: 18px; height: 18px; }
  .ab2-tl__card { height: auto; padding: 16px 18px; }
  .ab2-tl__card:hover { transform: none; }

  .ab2-services { grid-template-columns: 1fr; gap: 12px; }
  .ab2-service { padding: 22px 20px; display: grid; grid-template-columns: 54px 1fr; column-gap: 16px; }
  .ab2-service .ab2-icon { grid-row: span 2; }
  .ab2-service h3 { margin-top: 2px !important; }
  .ab2-service__num { display: none; }
  .ab2-service:hover { transform: none; }

  .ab2-quote { padding: 40px 24px; border-radius: 22px; }
  .ab2-quote__mark { font-size: 120px; left: 16px; }
  .ab2-values { grid-template-columns: 1fr; gap: 12px; }

  .ab2-brand { min-width: 150px; padding: 20px 22px; font-size: 18px; }

  .ab2-cta { grid-template-columns: 1fr; gap: 24px; padding: 36px 24px; border-radius: 22px; }
}
