/* =========================================================
   ABOUT — prefix: abx
========================================================= */

:root {
  --radius: 32px;
  --blur: 18px;
}

/* ---------- Defaults (fallback) ---------- */
:root {
  --abx-bg1: #0b1730;
  --abx-bg2: #071326;
  --abx-bg3: #050c19;

  --abx-text: #f4f7ff;
  --abx-muted: rgba(210, 225, 255, .72);

  --abx-card: rgba(10, 22, 44, .62);
  --abx-border: rgba(255, 255, 255, .08);

  --abx-accent: #3f6dff;
  --abx-accentSoft: rgba(63, 109, 255, .18);

  --abx-shadow1: 0 48px 160px rgba(255, 255, 255, .14);
  --abx-shadow2: 0 22px 64px rgba(255, 255, 255, .08);
}

/* =========================
   DARK (html[data-theme="dark"])
========================= */
html[data-theme="dark"] {
  --abx-bg1: #0b1730;
  --abx-bg2: #071326;
  --abx-bg3: #050c19;

  --abx-text: #f4f7ff;
  --abx-muted: rgba(210, 225, 255, .72);

  --abx-card: rgba(10, 22, 44, .62);
  --abx-border: rgba(255, 255, 255, .08);

  --abx-accent: #3f6dff;
  --abx-accentSoft: rgba(63, 109, 255, .18);

  /* ✅ белая “тень/свечение” */
  --abx-shadow1: 0 32px 90px rgba(255, 255, 255, .10);
  --abx-shadow2: 0 14px 36px rgba(255, 255, 255, .06);
}

/* =========================
   LIGHT
========================= */
html[data-theme="light"] {
  --abx-bg1: #f6f8ff;
  --abx-bg2: #edf3ff;
  --abx-bg3: #e7efff;

  --abx-text: #0b1220;
  --abx-muted: rgba(11, 18, 32, .64);

  --abx-card: rgba(255, 255, 255, .88);
  --abx-border: rgba(17, 24, 39, .12);

  --abx-accent: #2f62ff;
  --abx-accentSoft: rgba(47, 98, 255, .10);

  /* ✅ чёрная мягкая тень */
  --abx-shadow1: 0 36px 96px rgba(0, 0, 0, .18);
  --abx-shadow2: 0 14px 38px rgba(0, 0, 0, .12);
}

/* =========================
   BASE
========================= */
.abx {
  position: relative;
}

.abx,
.abx * {
  box-sizing: border-box;
}

/* ВАЖНО: тени не режем на секции/сетке */
.abx,
.abx__wrap,
.abx__grid {
  overflow: visible;
}

/* =========================
   SECTION BG + SPACING
========================= */
.abx {
  padding: calc(var(--header-height) + 110px) 20px 120px;
  color: var(--abx-text);

  background:
    radial-gradient(1200px 640px at 50% -220px, rgba(95, 140, 255, .22), transparent 62%),
    linear-gradient(180deg, var(--abx-bg1) 0%, var(--abx-bg2) 56%, var(--abx-bg3) 100%);
}

html[data-theme="light"] .abx {
  background: radial-gradient(1200px 640px at 50% -240px, rgba(95, 140, 255, .16), transparent 62%),
    linear-gradient(180deg, var(--abx-bg1) 0%, var(--abx-bg2) 56%, var(--abx-bg3) 100%);
}

.abx__wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 10px;
}

/* =========================
   TITLE + DESC
========================= */
.abx__title {
  margin: 0 0 16px;
  text-align: center;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: clamp(54px, 4.7vw, 78px);
  line-height: 1.05;
}

.abx__desc {
  margin: 0 auto;
  max-width: 820px;
  text-align: center;
  color: var(--abx-muted);
  font-size: 18px;
  line-height: 1.75;
}

/* =========================
   GRID
========================= */
.abx__grid {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

/* =========================
   CARD (главный фикс “лишнего”)
========================= */
.abx__card {
  position: relative;

  /* ✅ вот это убирает “вылезания” внутреннего свечения */
  overflow: hidden;

  border-radius: var(--radius);
  padding: 44px 50px;

  background: var(--abx-card);
  border: 1px solid var(--abx-border);

  /* тени карточек */
  box-shadow: var(--abx-shadow1), var(--abx-shadow2);

  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

/* Внутренний мягкий свет (НЕ вылезает) */
.abx__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background:
    radial-gradient(520px 240px at 18% 14%, var(--abx-accentSoft), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 44%);
}

/* =========================
   TEXT
========================= */
.abx__h2 {
  margin: 0 0 16px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: .2px;
}

.abx__p {
  margin: 0;
  color: var(--abx-muted);
  font-size: 16px;
  line-height: 1.85;
  max-width: 560px;
}

/* =========================
   VALUES LIST
========================= */
.abx__list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 16px;
}

.abx__li {
  position: relative;
  padding-left: 52px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--abx-muted);
}

.abx__li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);

  width: 22px;
  height: 22px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  border: 2px solid var(--abx-accent);
  color: var(--abx-accent);
  font-weight: 900;
  font-size: 12px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px) {
  .abx {
    padding: calc(var(--header-height) + 86px) 16px 96px;
  }

  .abx__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 56px;
  }

  .abx__card {
    padding: 34px 30px;
    border-radius: 28px;
  }

  .abx__h2 {
    font-size: 34px;
  }
}

@media (max-width: 520px) {
  .abx__title {
    font-size: clamp(44px, 9vw, 56px);
  }

  .abx__desc {
    font-size: 16px;
  }
}

/* =========================================================
   ABOUT IMAGE SECTION — prefix: abx-media
   Matches About cards style
========================================================= */

.abx-media {
  padding: 0 20px 140px;
}

.abx-media__wrap {
  max-width: 1240px;
  margin: 0 auto;
}

/* контейнер картинки */
.abx-media__card {
  position: relative;
  height: 600px;
  overflow: hidden;

  border-radius: 32px;
  background: var(--abx-card);
  border: 1px solid var(--abx-border);
  box-shadow: var(--abx-shadow1), var(--abx-shadow2);
}

.abx-media__img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  /* ⬅️ ВАЖНО */
  object-position: center;
  display: block;
}

/* внутренний мягкий свет (НЕ вылезает) */
.abx-media__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background:
    radial-gradient(600px 260px at 20% 10%, var(--abx-accentSoft), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 40%);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px) {
  .abx-media {
    padding: 0 16px 110px;
  }

  .abx-media__card {
    border-radius: 28px;
  }
}

/* =========================================================
   TEAM SECTION — prefix: tmx
========================================================= */

:root {
  --tmx-card: 420px;
  --tmx-gap: 28px;
  --tmx-peek: 22px;
  /* внутренний воздух слева/справа */
}

/* section */
.tmx {
  padding: 0 20px 140px;
  color: var(--abx-text);
}

.tmx__wrap {
  max-width: 1640px;
  margin: 0 auto;
  padding: 0 10px;
}

.tmx__title {
  margin: 0 0 14px;
  text-align: center;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: clamp(40px, 3.4vw, 56px);
  line-height: 1.08;
}

.tmx__desc {
  margin: 0 auto;
  max-width: 860px;
  text-align: center;
  color: var(--abx-muted);
  font-size: 18px;
  line-height: 1.75;
}

/* stage (стрелки снаружи) */
.tmx__stage {
  position: relative;
  max-width: calc((var(--tmx-card) * 3) + (var(--tmx-gap) * 2) + (var(--tmx-side) * 2) + 240px);
  margin: 70px auto 0;
  padding: 0 120px;
}

/* viewport: ровно 3 карточки + воздух по краям */
.tmx__viewport {
  overflow: hidden;
  padding: 14px 0;

  -webkit-mask-image: linear-gradient(90deg,
      transparent 0,
      #000 var(--tmx-peek),
      #000 calc(100% - var(--tmx-peek)),
      transparent 100%);
  mask-image: linear-gradient(90deg,
      transparent 0,
      #000 var(--tmx-peek),
      #000 calc(100% - var(--tmx-peek)),
      transparent 100%);
}



/* track: ТОЛЬКО transform, никаких padding */
.tmx__track {
  display: flex;
  gap: var(--tmx-gap);
  padding: 0;

  scroll-behavior: auto;
  scroll-snap-type: none;

  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.tmx__track::-webkit-scrollbar {
  display: none;
}

/* внутренние отступы внутри viewport, не ломают 3 карточки */
.tmx__track::before,
.tmx__track::after {
  content: "";
  flex: 0 0 var(--tmx-side);
}

.tmx__track {
  background: transparent !important;
}

/* card */
.tmx__card {
  flex: 0 0 var(--tmx-card);
  width: var(--tmx-card);

  position: relative;
  overflow: hidden;

  border-radius: 28px;
  padding: 34px 28px 26px;

  background: var(--abx-card);
  border: 1px solid var(--abx-border);

  /* ✅ уменьшили тени (мягкие, вниз, без квадратных боков) */
  box-shadow:
    0 18px 34px rgba(0, 0, 0, .34),
    0 7px 14px rgba(0, 0, 0, .18);

  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));

  text-align: center;
}

/* glow нижний слой */
.tmx__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;

  background:
    radial-gradient(520px 220px at 22% -8%,
      rgba(63, 109, 255, .16),
      rgba(63, 109, 255, .06) 32%,
      rgba(63, 109, 255, 0) 58%);
}

/* верхняя подсветка */
.tmx__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;

  background: linear-gradient(180deg,
      rgba(255, 255, 255, .045) 0%,
      rgba(255, 255, 255, .02) 18%,
      rgba(255, 255, 255, 0) 42%);
}

/* avatar */
.tmx__avatar {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  margin: 6px auto 18px;
  overflow: hidden;

  border: 2px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
}

html[data-theme="light"] .tmx__avatar {
  border-color: rgba(17, 24, 39, .12);
  background: rgba(0, 0, 0, .02);
}

.tmx__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* text */
.tmx__name {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .2px;
}

.tmx__role {
  margin: 0;
  color: var(--abx-accent);
  font-size: 15px;
  line-height: 1.55;
}

/* ---- arrows ---- */
.tmx__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;

  width: 54px;
  height: 54px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  border: 1px solid var(--abx-border);
  background: var(--abx-card);
  color: var(--abx-text);

  box-shadow: var(--abx-shadow2);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));

  cursor: pointer;
  user-select: none;
}

.tmx__nav--prev {
  left: 10px;
}

.tmx__nav--next {
  right: 10px;
}

.tmx__nav:hover {
  border-color: rgba(63, 109, 255, .35);
}

.tmx__viewport {
  overflow: hidden;
  padding: 14px 0;
  /* чтобы тени не резались */
}


/* ---- responsive ---- */
/* =========================
   Mobile: 1 card + swipe
   ========================= */
/* =========================
   Mobile: 1 card + swipe (NO scrollbar)
   ========================= */
@media (max-width: 768px) {

  /* стрелки убираем */
  .tmx__nav {
    display: none !important;
  }

  .tmx__stage {
    padding: 0;
    margin-top: 34px;
    max-width: 100%;
  }

  /* viewport: свайп без скроллбара */
  .tmx__viewport {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 14px 0 22px;

    /* ⛔ скрываем скролл */
    scrollbar-width: none;
    /* Firefox */
  }

  .tmx__viewport::-webkit-scrollbar {
    display: none;
    /* Chrome / Safari */
  }

  /* track: без transform, чистый свайп */
  .tmx__track {
    transform: none !important;
    will-change: auto;
  }

  /* боковой peek */
  .tmx__track::before,
  .tmx__track::after {
    flex: 0 0 var(--tmx-peek);
  }

  /* 1 карточка */
  .tmx__card {
    flex: 0 0 calc(100% - (var(--tmx-peek) * 2));
    width: calc(100% - (var(--tmx-peek) * 2));
    scroll-snap-align: center;
  }
}


/* если нужно ещё уже — под маленькие экраны */
@media (max-width: 420px) {
  .tmx__avatar {
    width: 96px;
    height: 96px;
  }

  .tmx__card {
    padding: 26px 22px 20px;
  }
}

/* =========================
   HISTORY / CERTIFICATES (BIGGER + MORE VIBRANT)
========================= */

.history {
  max-width: 1320px;
  margin: 120px auto 90px;
  padding: 0 18px;
}

.history__bg {
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: none;
}

html[data-theme="light"] .history__bg {
  background: none;
}

.history__inner {
  padding: 120px 40px 120px;
  min-height: 750px;
  /* ← вот здесь увеличивается длина секции */
}


.history__title {
  margin: 0 0 22px;
  text-align: center;
  font-weight: 950;
  letter-spacing: -0.03em;
  color: var(--abx-text, inherit);
  font-size: clamp(26px, 2.4vw, 44px);
}

/* small accent underline like screenshot */
.history__title::after {
  content: "";
  display: block;
  width: 62px;
  height: 4px;
  border-radius: 99px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, #60a5fa, #22c55e);
  box-shadow: 0 10px 28px rgba(96, 165, 250, .25);
}

/* ===== Timeline ===== */
.timeline {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 12px;
  margin: 16px auto 34px;
  max-width: 1040px;
}

.timeline__arrow {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .10);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
}

.timeline__arrow:hover {
  background: rgba(255, 255, 255, .14);
}

.timeline__arrow:active {
  transform: translateY(1px);
}

.timeline__wrap {
  position: relative;
  padding: 22px 10px;
}

.timeline__line {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 2px;
  background: var(--abx-border);
  transform: translateY(-50%);
}

.timeline__track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 0;
}

.timeline__track::-webkit-scrollbar {
  height: 8px;
}

.timeline__track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .18);
  border-radius: 99px;
}

.year {
  scroll-snap-align: center;
  position: relative;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, .76);
  font-weight: 800;
  letter-spacing: .01em;
  padding: 12px 12px;
  cursor: pointer;
  min-width: 78px;
  text-align: center;
  font-size: 15px;
}

.year::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .25);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% - 26px));
  box-shadow: 0 0 0 0 rgba(96, 165, 250, 0);
  transition: box-shadow .25s ease, background .25s ease;
}

.year.is-active {
  color: #fff;
  font-size: 1.55em;
}

.year.is-active::before {
  background: var(--abx-accent, #3b82f6);
  box-shadow:
    0 0 0 8px rgba(96, 165, 250, .18),
    0 0 18px rgba(96, 165, 250, .35);
}

/* ===== Cards row like screenshot ===== */
.history__cards {
  display: flex;
  justify-content: flex-start;
  /* НЕ center */
  gap: 26px;

  overflow-x: auto;
  /* а не hidden */
  overflow-y: hidden;

  padding: 10px 20px 0;
  /* небольшой внутренний отступ */
  scroll-snap-type: x mandatory;
}


@media (max-width: 1100px) {
  .history__cards {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }

  .history__cards::-webkit-scrollbar {
    height: 10px;
  }

  .history__cards::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .18);
    border-radius: 99px;
  }
}

.card {
  width: 310px;
  flex: 0 0 auto;
  scroll-snap-align: center;
  position: relative;
  cursor: pointer;
  transform: translateY(0);
  transition: transform .28s ease, filter .28s ease;
}

/* верхний белый блок с логотипом */
.card__top {
  height: 230px;
  background: linear-gradient(180deg, #ffffff, #f6f7fb);
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .26);
  display: grid;
  place-items: center;
  padding: 16px;
}

.card__top img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* нижний блок */
.card__bottom {
  margin-top: -26px;
  background: rgba(255, 255, 255, .97);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .20);
  padding: 40px 20px 20px;
  text-align: center;
  min-height: 108px;
}

.card__title {
  margin: 0;
  font-weight: 900;
  font-size: 18px;
  color: #111827;
  line-height: 1.25;
}

.card__desc {
  margin: 12px 0 0;
  color: rgba(17, 24, 39, .68);
  font-size: 14px;
  line-height: 1.6;

  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height .38s ease, opacity .25s ease, transform .25s ease;
}

/* Активная карточка: ниже и с подсветкой */
.card.is-active {
  transform: translateY(20px);
}

.card.is-active .card__top {
  box-shadow:
    0 28px 70px rgba(0, 0, 0, .30),
    0 0 0 1px rgba(96, 165, 250, .35),
    0 0 34px rgba(96, 165, 250, .22);
}

.card.is-active .card__bottom {
  box-shadow:
    0 26px 62px rgba(0, 0, 0, .24),
    0 0 0 1px rgba(34, 197, 94, .20);
}

/* Показываем описание только у выбранного года */
.card.is-expanded .card__desc {
  max-height: 190px;
  opacity: 1;
  transform: translateY(0);
}

/* hover эффект */
.card:hover {
  transform: translateY(16px);
}

/* responsive */
@media (max-width: 680px) {
  .history__inner {
    padding: 46px 16px 30px;
  }

  .timeline {
    grid-template-columns: 48px 1fr 48px;
  }

  .timeline__arrow {
    width: 48px;
    height: 48px;
  }

  .card {
    width: 280px;
  }

  .card__top {
    height: 210px;
  }
}

/* =========================
   HISTORY / CERTIFICATES (FIXED)
========================= */

.history {
  max-width: 1900px;
  margin: 120px auto 90px;
  padding: 0 40px;
}

.history__bg {
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: none;
}

html[data-theme="light"] .history__bg {
  background: none;
}

.history__inner {
  padding: 110px 40px 110px;
  min-height: 900px;
  /* было 750 */


}

@media (max-width: 720px) {
  .history__inner {
    padding: 44px 16px 34px;
  }
}

.history__title {
  margin: 0 0 18px;
  text-align: center;
  font-weight: 950;
  letter-spacing: -0.03em;
  color: var(--abx-text, inherit);
  font-size: clamp(24px, 2.2vw, 40px);
}

.history__title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  border-radius: 99px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, #60a5fa, #22c55e);
  box-shadow: 0 10px 28px rgba(96, 165, 250, .22);
}

/* =========================
   Timeline (years) FIX
========================= */

.timeline {
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  gap: 14px;
  margin: 18px auto 28px;
  max-width: 1120px;
}

@media (max-width: 720px) {
  .timeline {
    grid-template-columns: 48px 1fr 48px;
  }
}

.timeline__arrow {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  border: 1px solid var(--abx-border);
  background: var(--abx-card);
  color: var(--abx-text, inherit);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
}

.timeline__arrow:hover {
  background: var(--abx-card);
  opacity: .85;
}

.timeline__arrow:active {
  transform: translateY(1px);
}

/* ВАЖНО: чтобы точка/кружок НЕ обрезалась */
.timeline__wrap {
  position: relative;
  padding: 28px 10px;
  /* ↑ увеличили */
  overflow: visible;
  /* ↑ важно */
}

.timeline__line {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 2px;
  background: var(--abx-border);
  transform: translateY(-50%);
}

/* ВАЖНО: у трека тоже overflow visible */
.timeline__track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  overflow-y: visible;
  /* ↑ важно */
  scroll-snap-type: x mandatory;
  padding: 10px 0;
  /* ↑ чтобы было место сверху */
}

.timeline__track::-webkit-scrollbar {
  height: 8px;
}

.timeline__track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .18);
  border-radius: 99px;
}

.year {
  scroll-snap-align: center;
  position: relative;
  background: transparent;
  border: 0;
  color: var(--abx-muted, rgba(100, 100, 100, .78));
  font-weight: 850;
  letter-spacing: .01em;
  padding: 20px 20px;
  cursor: pointer;
  min-width: 86px;
  text-align: center;
  font-size: 15px;
}

.year::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--abx-border);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% - 22px));
  /* ↑ Fixed offset */
  transition: box-shadow .25s ease, background .25s ease;
}

.year.is-active {
  color: var(--abx-text, inherit);
  font-size: 1.6em;
}

.year.is-active::before {
  background: #fff;
  box-shadow:
    0 0 0 9px rgba(96, 165, 250, .18),
    0 0 18px rgba(96, 165, 250, .35);
}

/* =========================
   Cards row FIX: 1 ROW ALWAYS
========================= */

/* HISTORY cards: no clipping, correct first/last visibility */
.history .history__cards {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 26px;

  justify-content: flex-start !important;

  overflow-x: auto !important;
  overflow-y: hidden !important;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  /* ✅ запас слева/справа чтобы 1-я и последняя не резались */
  padding: 10px 24px 18px !important;
  scroll-padding-left: 24px;
  scroll-padding-right: 24px;
}


/* на узких экранах — скролл */
/* =========================
   HISTORY – MOBILE VERSION
========================= */
@media (max-width: 560px) {

  .history {
    margin: 100px auto 50px;
    padding: 0 12px;
  }

  .history__inner {
    padding: 34px 12px 22px;
  }

  .history__title {
    font-size: 24px;
    margin-bottom: 8px;
  }

  /* ===== УБИРАЕМ СТРЕЛКИ ===== */
  .timeline__arrow {
    display: none !important;
  }

  .timeline {
    grid-template-columns: 1fr;
    margin: 6px auto 8px;
    /* чуть больше снизу */
  }

  .timeline__wrap {
    padding: 34px 4px 14px;
    /* было 18px -> стало 34px */
    overflow: visible;
  }

  .timeline__line {
    left: 4px;
    right: 4px;
  }

  /* ===== ГОДА КОМПАКТНЫЕ ===== */
  .timeline__track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    /* компактное расстояние */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 6px 0;
  }

  .year {
    min-width: 46px;
    font-size: 12px;
    padding: 40px 4px 4px;
    scroll-snap-align: center;
  }

  .year::before {
    width: 8px;
    height: 8px;
    transform: translate(-50%, calc(-50% - 15px));
    /* Fixed scale */
  }

  .year.is-active {
    font-size: 15px;
  }

  /* ===== КАРТОЧКИ ===== */


  .card {
    width: 88vw;
    max-width: 360px;
    scroll-snap-align: center;
    border-radius: 20px;
  }

  .card__top {
    height: 170px;
    padding-top: 26px;
  }

  .card__img {
    max-height: 110px;
  }

  .card.is-active {
    transform: translateY(6px);
  }

  .card__title {
    font-size: 16px;
  }

  .card__desc {
    font-size: 13px;
    line-height: 1.5;
  }

}


.card {
  width: 320px;
  flex: 0 0 auto;
  scroll-snap-align: center;

  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .25);
  transition: transform .35s ease, box-shadow .35s ease;

  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 80px rgba(0, 0, 0, .35);
}

/* верх логотипа */
.card__top {
  height: 240px;
  background: linear-gradient(180deg, #ffffff, #f3f4f6);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 36px;
  /* ↑ поднимаем */
  padding-left: 24px;
  padding-right: 24px;
}

.card__img {
  max-width: 95%;
  max-height: 200px;
  object-fit: contain;
  display: block;
  transform: translateY(-6px) scale(1.1);
  /* ↑ поднимаем + уменьшаем */
  transition: transform .3s ease;
}

/* нижний блок текста */
.card__bottom {
  padding: 20px 24px 22px;
  text-align: center;
  background: rgba(255, 255, 255, .97);
}

/* заголовок всегда видно */
.card__title {
  font-size: 18px;
  font-weight: 900;
  margin: 0;
  color: #111827;
  line-height: 1.25;
}

/* описание скрыто по умолчанию */
.card__desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(17, 24, 39, .70);

  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height .38s ease, opacity .25s ease, transform .25s ease;
}

/* ✅ только активная карточка раскрывает описание */
.card.is-expanded .card__desc {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
}

/* ✅ активная карточка — ниже и ярче */
.card.is-active {
  transform: translateY(16px);
  box-shadow:
    0 35px 90px rgba(0, 0, 0, .38),
    0 0 0 2px rgba(96, 165, 250, .22),
    0 0 44px rgba(96, 165, 250, .14);
}

.card.is-expanded .card__img {
  transform: translateY(-10px) scale(.96);
  /* активную чуть крупнее */
}

/* спец: если нужно точечно для EBRD */
.card__img--ebrd {
  transform: translateY(-14px) scale(.80);
}

.card.is-expanded .card__img--ebrd {
  transform: translateY(-18px) scale(.88);
}

/* =========================
   HISTORY – MOBILE FIX (ONLY)
   Place at END of CSS
========================= */
/* =========================
   HISTORY – MOBILE PATCH (ONLY)
   Put this block at the VERY END of CSS
========================= */
@media (max-width: 560px) {

  /* 1) Ряд карточек: начинаем слева + нормальный snap */
  .history .history__cards {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    gap: 14px !important;

    /* card = 88vw -> (100-88)/2 = 6vw */
    padding: 6px 6vw 18px !important;
    scroll-padding-left: 6vw;
    scroll-padding-right: 6vw;

    scrollbar-width: none;
  }

  .history .history__cards::-webkit-scrollbar {
    display: none;
  }

  /* 2) ОТМЕНЯЕМ глобальный .card (который ломает history) — только внутри history и только на мобиле */
  .history .history__cards .card {
    width: 88vw !important;
    max-width: 360px !important;
    flex: 0 0 auto !important;

    scroll-snap-align: center !important;

    /* возвращаем “как было” */
    display: block !important;
    overflow: visible !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    transform: translateY(0) !important;
  }

  /* 3) Возвращаем стили верх/низ блоков, чтобы работал твой вариант с двумя “плашками” */
  .history .history__cards .card__top {
    height: 170px !important;
    padding: 16px !important;
    border-radius: 16px !important;
    display: grid !important;
    place-items: center !important;
  }

  .history .history__cards .card__bottom {
    margin-top: -26px !important;
    border-radius: 0 0 16px 16px !important;
    padding: 40px 20px 20px !important;
    text-align: center !important;
    background: rgba(255, 255, 255, .97) !important;
  }

  .history .history__cards .card__img {
    width: 100% !important;
    height: 100% !important;
    max-height: 110px !important;
    object-fit: contain !important;
    transform: none !important;
  }

  /* 4) На телефонах hover может “залипать” и мешать */
  @media (hover: none) {
    .history .history__cards .card:hover {
      transform: translateY(0) !important;
      box-shadow: none !important;
    }
  }

  /* 5) Активная карточка: твой эффект “чуть ниже” */
  .history .history__cards .card.is-active {
    transform: translateY(6px) !important;
  }
}

/* Фикс прыжка секции history */
/* Увеличение высоты секции history (поставь в самый конец CSS) */
#history .history__inner {
  min-height: 900px;
  /* было 750 */
}

@media (max-width: 720px) {
  #history .history__inner {
    min-height: 980px;
    /* на мобиле нужно больше из-за переноса текста */
  }
}

/* =========================================================
   HISTORY — FINAL FIX (place at VERY END of CSS)
   Goal: section never jumps when card expands
========================================================= */

/* Desktop / tablets */
#history .history__inner {
  min-height: 980px !important;
  /* запас под раскрытый текст */
}

/* If you want even more запас on big screens */
@media (min-width: 1200px) {
  #history .history__inner {
    min-height: 1020px !important;
  }
}

/* Mobile: текст переносится сильнее → нужно больше */
@media (max-width: 720px) {
  #history .history__inner {
    min-height: 580px !important;
  }
}

/* Small mobile */
@media (max-width: 420px) {
  #history .history__inner {
    min-height: 1160px !important;
  }
}

/* HIDE SCROLLBAR BUT KEEP SCROLL */
.history .history__cards {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE / Edge */
}

.history .history__cards::-webkit-scrollbar {
  display: none;
  /* Chrome / Safari */
}


/* =====================================================
   HISTORY SECTION — WOW REDESIGN
   Place at very end to override all previous rules
===================================================== */

/* ─── Section container ─── */
.history {
  position: relative;
  max-width: 1200px !important;
  margin: 80px auto 60px !important;
  padding: 0 24px !important;
}

.history__bg {
  background: none !important;
  border-radius: 32px !important;
}

html[data-theme="dark"] .history__bg {
  background: none !important;
}




/* =====================================================
   HISTORY SECTION — FEATURED CARD REDESIGN v2
   Place at very end to override all previous rules
===================================================== */

.history {
  position: relative;
  max-width: 1200px !important;
  margin: 80px auto 60px !important;
  padding: 0 24px !important;
}

.history__bg {
  background: none !important;
  border-radius: 28px !important;
  overflow: visible !important;
}

html[data-theme="dark"] .history__bg {
  background: none !important;
}

.history__inner {
  padding: 60px 40px 60px !important;
  min-height: auto !important;
}

@media (max-width: 720px) {
  .history__inner {
    padding: 40px 16px 40px !important;
    min-height: auto !important;
  }
}

.history__title {
  font-size: clamp(28px, 3vw, 44px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 8px !important;
}

.history__title::after {
  content: "";
  display: block;
  width: 64px !important;
  height: 3px !important;
  background: linear-gradient(90deg, #2563eb, #0ea5e9) !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, .25) !important;
  margin: 12px auto 0 !important;
  border-radius: 99px;
}

/* =====================
   TIMELINE — progress bar
===================== */
.timeline {
  max-width: 700px !important;
  margin: 32px auto 40px !important;
  display: flex !important;
  align-items: center;
  gap: 12px !important;
}

.timeline__arrow {
  flex: 0 0 44px;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #fff !important;
  border: 1px solid rgba(148, 163, 184, .20) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .06) !important;
  color: #334155 !important;
  font-size: 22px !important;
  display: grid !important;
  place-items: center !important;
  transition: all .25s ease !important;
  cursor: pointer;
}

html[data-theme="dark"] .timeline__arrow {
  background: rgba(30, 41, 59, .60) !important;
  border-color: rgba(148, 163, 184, .15) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .20) !important;
  color: #f1f5f9 !important;
}

.timeline__arrow:hover {
  transform: scale(1.12) !important;
  border-color: #2563eb !important;
  background: rgba(37, 99, 235, .08) !important;
  box-shadow: 0 6px 24px rgba(37, 99, 235, .18) !important;
}

.timeline__wrap {
  flex: 1;
  position: relative;
  padding: 18px 0 !important;
  overflow: visible !important;
}

.timeline__line {
  position: absolute;
  left: 0 !important;
  right: 0 !important;
  top: 50%;
  height: 3px !important;
  border-radius: 99px;
  background: rgba(148, 163, 184, .15) !important;
  transform: translateY(-50%);
  overflow: hidden;
}

html[data-theme="dark"] .timeline__line {
  background: rgba(148, 163, 184, .12) !important;
}

.timeline__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  box-shadow: 0 0 12px rgba(37, 99, 235, .35);
  transition: width .5s cubic-bezier(.4, 0, .2, 1);
  width: 0;
}

.timeline__track {
  display: flex !important;
  justify-content: space-between !important;
  position: relative;
  z-index: 2;
  gap: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
  width: 100%;
}

.year {
  flex: 1;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  color: rgba(148, 163, 184, .55) !important;
  transition: all .3s ease !important;
  cursor: pointer;
  position: relative;
}

.year::before {
  display: none !important;
}

.year__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(148, 163, 184, .30);
  border: 2.5px solid #fff;
  margin-bottom: 8px;
  transition: all .35s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 0 0 2px rgba(148, 163, 184, .15);
  z-index: 3;
}

html[data-theme="dark"] .year__dot {
  border-color: #0b1220;
}

.year:hover {
  color: var(--abx-text, inherit) !important;
}

.year:hover .year__dot {
  background: rgba(37, 99, 235, .40);
  border-color: rgba(37, 99, 235, .30);
  box-shadow: 0 0 10px rgba(37, 99, 235, .25);
}

.year.is-active {
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

html[data-theme="dark"] .year.is-active {
  color: #f1f5f9 !important;
}

.year.is-active .year__dot {
  width: 18px;
  height: 18px;
  background: #2563eb;
  border-color: transparent;
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, .20),
    0 0 0 8px rgba(37, 99, 235, .08),
    0 0 16px rgba(37, 99, 235, .35);
  animation: dotPulse 2.5s ease-in-out infinite;
}

.year.is-active .year__label {
  font-weight: 900;
  font-size: 15px;
}

@keyframes dotPulse {

  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(37, 99, 235, .20),
      0 0 0 8px rgba(37, 99, 235, .08),
      0 0 16px rgba(37, 99, 235, .35);
  }

  50% {
    box-shadow:
      0 0 0 6px rgba(37, 99, 235, .28),
      0 0 0 12px rgba(37, 99, 235, .12),
      0 0 22px rgba(37, 99, 235, .45);
  }
}

/* =====================
   FEATURED CARD — single card display
===================== */
.history__cards {
  overflow: visible !important;
  display: block !important;
  padding: 0 !important;
  scrollbar-width: none;
}

.history__cards::-webkit-scrollbar {
  display: none;
}

.history-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.history-display__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.history-display__year {
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.85;
}

.history-display__title {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 900;
  color: var(--abx-text, #111827);
  line-height: 1.25;
  margin: 0;
}

.history-display__desc {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(15, 23, 42, .75);
  margin: 0;
}

html[data-theme="dark"] .history-display__desc {
  color: rgba(241, 245, 249, .75);
}

.history-display__counter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(148, 163, 184, .80);
  margin-top: 8px;
}

.history-display__visual {
  position: relative;
  perspective: 1000px;
}

.history-display__card {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, .08),
    0 0 0 1px rgba(15, 23, 42, .06);
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  transform-origin: center right;
  height: 320px;
}

html[data-theme="dark"] .history-display__card {
  background: rgba(30, 41, 59, .40);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .30);
}

/* switching animation */
.history-display__card.is-switching {
  opacity: 0 !important;
  transform: translateY(12px) scale(0.96) !important;
}

.history-display__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity .3s ease;
}

html[data-theme="dark"] .history-display__img {
  filter: brightness(0.90) contrast(1.05);
}

@media (max-width: 768px) {
  .history-display {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .history-display__info {
    align-items: center;
  }

  .history-display__card {
    height: 260px;
  }
}


/* =========================================================
   CERTIFICATES & LICENSES GALLERY — prefix: certs
========================================================= */

/* ─── Section ─── */
.certs {
  position: relative;
  padding: 120px 24px 140px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(37, 99, 235, .06), transparent 60%),
    linear-gradient(180deg, var(--abx-bg1, #0c1120) 0%, var(--abx-bg2, #0e1628) 100%);
}

html[data-theme="light"] .certs {
  background:
    radial-gradient(900px 500px at 50% 0%, rgba(37, 99, 235, .06), transparent 60%),
    linear-gradient(180deg, #f6f8ff 0%, #edf3ff 56%, #e7efff 100%);
}

/* ─── Floating Particles ─── */
.certs__particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: certFloat 18s ease-in-out infinite;
}

.certs__particle--1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(37, 99, 235, .10), transparent 70%);
  top: 8%;
  left: -6%;
  animation-delay: 0s;
  opacity: .6;
}

.certs__particle--2 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(14, 165, 233, .08), transparent 70%);
  bottom: 12%;
  right: -4%;
  animation-delay: -6s;
  opacity: .5;
}

.certs__particle--3 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(37, 99, 235, .06), transparent 70%);
  top: 50%;
  left: 60%;
  animation-delay: -12s;
  opacity: .4;
}

@keyframes certFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: var(--p-opacity, .5);
  }

  25% {
    transform: translate(30px, -40px) scale(1.08);
  }

  50% {
    transform: translate(-20px, 20px) scale(.95);
    opacity: calc(var(--p-opacity, .5) * 1.3);
  }

  75% {
    transform: translate(15px, 35px) scale(1.04);
  }
}

/* ─── Title area ─── */
.certs__wrap {
  max-width: 1300px;
  margin: 0 auto;
}

.certs__header {
  text-align: center;
  margin-bottom: 64px;
}

.certs__title {
  font-size: clamp(32px, 3.4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--abx-text, #e2e8f0);
  margin: 0 0 16px;
}

.certs__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  box-shadow: 0 4px 16px rgba(37, 99, 235, .25);
  margin: 16px auto 0;
  border-radius: 99px;
}

.certs__subtitle {
  font-size: 16px;
  color: var(--abx-muted, rgba(226, 232, 240, .55));
  max-width: 560px;
  margin: 16px auto 0;
  line-height: 1.7;
}

/* ─── Grid: responsive columns ─── */
.certs__grid {
  position: relative;
  columns: 4;
  column-gap: 20px;
}

/* Mouse-follow glow on the grid */
.certs__grid::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .08), transparent 60%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  left: var(--glow-x, -200px);
  top: var(--glow-y, -200px);
  transition: left .35s ease, top .35s ease;
  z-index: 0;
}

html[data-theme="light"] .certs__grid::before {
  background: radial-gradient(circle, rgba(37, 99, 235, .05), transparent 60%);
}

/* ─── Card item ─── */
.certs__item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius-md, 14px);
  overflow: hidden;
  cursor: pointer;
  z-index: 1;

  /* glass effect */
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow:
    0 8px 32px rgba(0, 0, 0, .12),
    0 0 0 0 rgba(37, 99, 235, 0);

  transition:
    transform .4s cubic-bezier(.4, 0, .2, 1),
    box-shadow .4s cubic-bezier(.4, 0, .2, 1),
    border-color .35s ease;

  /* scroll reveal hidden state */
  opacity: 0;
  transform: translateY(40px) scale(.97);
}

.certs__item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity .7s cubic-bezier(.4, 0, .2, 1),
    transform .7s cubic-bezier(.4, 0, .2, 1),
    box-shadow .4s ease,
    border-color .35s ease;
}

/* hover */
.certs__item:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(37, 99, 235, .30);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, .18),
    0 0 0 1px rgba(37, 99, 235, .15),
    0 0 40px rgba(37, 99, 235, .08);
}

/* zoom icon overlay */
.certs__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .35) 100%);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
}

.certs__item:hover::after {
  opacity: 1;
}

.certs__zoom {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(37, 99, 235, .85);
  display: grid;
  place-items: center;
  color: #fff;
  z-index: 3;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}

.certs__item:hover .certs__zoom {
  opacity: 1;
  transform: scale(1);
}

/* image */
.certs__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background-color: rgba(0, 0, 0, 0.05);
  /* Placeholder while loading */
}

/* ─── Light theme card ─── */
html[data-theme="light"] .certs__item {
  background: rgba(255, 255, 255, .88);
  border-color: rgba(17, 24, 39, .10);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .06);
}

html[data-theme="light"] .certs__item:hover {
  border-color: rgba(37, 99, 235, .25);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, .10),
    0 0 0 1px rgba(37, 99, 235, .12),
    0 0 40px rgba(37, 99, 235, .06);
}

/* ─── Responsive grid ─── */
@media (max-width: 1100px) {
  .certs__grid {
    columns: 3;
  }
}

@media (max-width: 768px) {
  .certs__grid {
    columns: 2;
    column-gap: 14px;
  }

  .certs__item {
    margin-bottom: 14px;
  }

  .certs {
    padding: 80px 16px 100px;
  }

  .certs__header {
    margin-bottom: 44px;
  }
}

@media (max-width: 480px) {
  .certs__grid {
    columns: 1;
  }

  .certs__item {
    border-radius: 12px;
  }

  .certs {
    padding: 60px 12px 80px;
  }
}

/* =========================================================
   LIGHTBOX — fullscreen
========================================================= */
.certs-lb {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.certs-lb.is-open {
  opacity: 1;
  visibility: visible;
}

.certs-lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

html[data-theme="light"] .certs-lb__backdrop {
  background: rgba(255, 255, 255, .88);
}

.certs-lb__img {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .40);
  transform: scale(.92);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}

.certs-lb.is-open .certs-lb__img {
  transform: scale(1);
}

html[data-theme="light"] .certs-lb__img {
  box-shadow: 0 32px 100px rgba(0, 0, 0, .15);
}

/* nav buttons */
.certs-lb__close,
.certs-lb__prev,
.certs-lb__next {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .25s ease;
}

html[data-theme="light"] .certs-lb__close,
html[data-theme="light"] .certs-lb__prev,
html[data-theme="light"] .certs-lb__next {
  background: rgba(15, 23, 42, .08);
  border-color: rgba(15, 23, 42, .12);
  color: #0f172a;
}

.certs-lb__close:hover,
.certs-lb__prev:hover,
.certs-lb__next:hover {
  background: rgba(37, 99, 235, .85);
  border-color: transparent;
  color: #fff;
  transform: scale(1.1);
}

.certs-lb__close {
  top: 24px;
  right: 24px;
}

.certs-lb__prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.certs-lb__next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.certs-lb__prev:hover,
.certs-lb__next:hover {
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 640px) {

  .certs-lb__prev,
  .certs-lb__next {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .certs-lb__prev {
    left: 12px;
  }

  .certs-lb__next {
    right: 12px;
  }

  .certs-lb__close {
    top: 16px;
    right: 16px;
  }
}