/* ==========================================================================
   IB DIPLOMA PROGRAMME (page-ib-diploma-programme.php)

   Страницы нет в макете: контент пришёл HTML-файлом от заказчика
   (2026-08-20, serif/тёмно-синий исходник). Собрано в дизайн-системе
   сайта: синий хиро с кольцами (как «Полезные ресурсы» / «Для учителей»),
   плашки --color-bg-soft, только токены variables.css.
   ========================================================================== */

.site-header:has(+ .site-main .ibdp-hero) {
  background: var(--color-brand);
}

/* --- Хиро ----------------------------------------------------------------- */

.ibdp-hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + var(--space-48)) var(--side-padding) var(--space-64);
  background: var(--color-brand);
  color: var(--color-text-invert);
}

.ibdp-hero__rings { position: absolute; inset: 0; pointer-events: none; }

.ibdp-hero__ring {
  position: absolute;
  right: -280px;
  bottom: -300px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius-pill);
}

.ibdp-hero__ring--1 { width: 781px; height: 781px; }
.ibdp-hero__ring--2 { width: 650px; height: 650px; right: -215px; bottom: -235px; }
.ibdp-hero__ring--3 { width: 520px; height: 520px; right: -150px; bottom: -170px; }

.ibdp-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: var(--space-48);
  max-width: var(--page-width);
  margin-inline: auto;
  padding-inline: calc(96px - var(--side-padding));
}

.ibdp-hero__texts { flex: 1 1 auto; max-width: 900px; }

.ibdp-eyebrow,
.ibdp-kicker {
  margin-bottom: var(--space-16);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ibdp-kicker { opacity: .5; }
.ibdp-kicker--invert { opacity: .7; }

.ibdp-hero__title {
  margin-bottom: var(--space-24);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: var(--fw-display);
  letter-spacing: var(--ls-display);
}

.ibdp-hero__lead {
  max-width: 720px;
  margin-bottom: var(--space-32);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  opacity: .85;
}

/* Паспорт программы: строки «метка …… значение». */
.ibdp-meta {
  flex: 0 0 400px;
  margin: 0;
  padding: var(--space-24);
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  color: var(--color-text);
}

.ibdp-meta__row {
  display: flex;
  align-items: baseline;
  gap: var(--space-8);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}

.ibdp-meta__row + .ibdp-meta__row { margin-top: var(--space-8); }

.ibdp-meta__row dt {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 13px;
  opacity: .55;
  white-space: nowrap;
}

.ibdp-meta__row dt::after {
  content: '';
  display: inline-block;
}

.ibdp-meta__row dd {
  margin: 0 0 0 auto;
  font-weight: 500;
  text-align: right;
}

/* Словарь внизу «за 30 секунд» – та же таблица, но в плашке листа. */
.ibdp-meta--dark {
  flex: none;
  margin-top: var(--space-32);
  padding: var(--space-24);
  background: var(--color-bg-cold);
}

/* --- Секции --------------------------------------------------------------- */

.ibdp-section { padding: var(--space-64) 0; }
.ibdp-section--band { background: var(--color-bg-cold); }
.ibdp-section--last { padding-bottom: var(--space-96, 96px); }

.ibdp-h2 {
  margin-bottom: var(--space-32);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-h2);
  letter-spacing: var(--ls-h2);
}

.ibdp-h2--tight { margin-bottom: var(--space-24); max-width: 800px; }

.ibdp-h2 em { font-style: normal; color: var(--color-brand); }

.ibdp-statement {
  max-width: 780px;
  margin-bottom: var(--space-32);
  font-size: var(--fs-h3);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: var(--ls-h3);
}

.ibdp-statement--small { font-size: var(--fs-body); font-weight: 400; opacity: .8; }

/* --- Карточки ------------------------------------------------------------- */

.ibdp-cards {
  display: grid;
  gap: var(--space-20);
}

.ibdp-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ibdp-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  padding: var(--space-24);
  background: var(--color-bg-soft);
  border-radius: var(--radius-xl);
}

/* На холодной полосе плашки белые. */
.ibdp-section--band .ibdp-card { background: var(--color-bg); }

/* Пастельные варианты карточек – как градиенты формулы баллов. */
.ibdp-card--t1 { background: linear-gradient(150deg, #E6F2FF 0%, #F3F8FE 70%); }
.ibdp-card--t2 { background: linear-gradient(150deg, #F0EAFB 0%, #F7F4FD 70%); }
.ibdp-card--t3 { background: linear-gradient(150deg, #FDF3E0 0%, #FDF8EE 70%); }
.ibdp-card--t4 { background: linear-gradient(150deg, #E4F5EC 0%, #F1FAF5 70%); }
.ibdp-section--band .ibdp-card--t1,
.ibdp-section--band .ibdp-card--t2,
.ibdp-section--band .ibdp-card--t3,
.ibdp-section--band .ibdp-card--t4 { background-color: var(--color-bg); }

.ibdp-card--tilt {
  transform-style: preserve-3d;
  transition: transform .35s var(--dps-ease), box-shadow .35s var(--dps-ease);
  will-change: transform;
}

.ibdp-card--tilt:hover { box-shadow: 0 16px 34px rgba(37, 151, 255, .16), 0 4px 10px rgba(16, 24, 40, .06); }
.ibdp-card--tilt > * { transform: translateZ(20px); }

/* Цветные кружки-номера в карточках секций (палитра формулы + мятный). */
.dps-num--c1 { background: var(--color-brand); }
.dps-num--c2 { background: var(--color-purple); }
.dps-num--c3 { background: var(--color-yellow); }
.dps-num--c4 { background: var(--color-mint); }

.ibdp-card__title--c1 { color: var(--color-brand); }
.ibdp-card__title--c2 { color: var(--color-purple); }
.ibdp-card__title--c3 { color: #B87F02; }
.ibdp-card__title--c4 { color: var(--color-mint); }

.ibdp-card--goal .ibdp-card__title { font-size: var(--fs-h3); }

.ibdp-card__title {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-h3);
  letter-spacing: var(--ls-h3);
}

.ibdp-card__text {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  letter-spacing: var(--ls-small);
  opacity: .65;
}

/* --- Цепочка подготовки --------------------------------------------------- */

.ibdp-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.ibdp-chain li {
  padding: 10px 16px;
  background: var(--color-bg);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  line-height: 1.2;
  font-weight: 500;
  color: var(--color-text);
  transition: transform .3s var(--dps-ease), box-shadow .3s var(--dps-ease);
}

.ibdp-chain li:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 8px 18px rgba(16, 24, 40, .08); }

/* Плашки цепочки – по цветам формулы, по кругу. */
.ibdp-chain li:nth-child(4n + 1) { background: #E6F2FF; color: var(--color-brand-hover); }
.ibdp-chain li:nth-child(4n + 2) { background: #F0EAFB; color: var(--color-purple); }
.ibdp-chain li:nth-child(4n + 3) { background: #FDF3E0; color: #B87F02; }
.ibdp-chain li:nth-child(4n)     { background: #E4F5EC; color: #2E8A5C; }

/* Стрелка – псевдоэлементом снаружи плашки. */
.ibdp-chain li { position: relative; margin-right: 28px; }
.ibdp-chain li:last-child { margin-right: 0; }
.ibdp-chain li:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -24px;
  top: 50%;
  translate: 0 -50%;
  opacity: .45;
}

/* --- «Как складываются 45 баллов» (интерактивный блок, 2026-08-21) --------
   Порт HTML-файла заказчика «dp-scores-block» на токены темы:
   blue → --color-brand, purple → --color-purple, orange → --color-yellow,
   зелёная пилюля → --color-green. Анимации (появление, счётчик, сбор
   баллов кликами, прогресс минимума) – assets/js/page-ib-diploma-programme.js;
   без JS блок статичен и полностью читаем. */

.ibdp-scores { --dps-ease: cubic-bezier(.22, .8, .3, 1); }

.ibdp-scores__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-12);
  font-size: var(--fs-small);
  font-weight: 500;
}

.ibdp-scores__label::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
  animation: dps-dot 2.4s ease-in-out infinite;
}

.ibdp-scores__label--core { margin-top: var(--space-48); }

@keyframes dps-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 151, 255, .35); }
  50% { box-shadow: 0 0 0 7px rgba(37, 151, 255, 0); }
}

.ibdp-scores__pill {
  display: inline-block;
  margin-bottom: var(--space-16);
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  background: var(--color-green);
  color: var(--color-text-invert);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.3;
  transition: transform .35s var(--dps-ease);
}

.ibdp-scores__pill:hover { transform: scale(1.05) rotate(-1.5deg); }

.ibdp-scores__title {
  margin-bottom: var(--space-32);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-h2);
  letter-spacing: var(--ls-h2);
}

.ibdp-scores__title em { font-style: normal; color: var(--color-brand); }

/* Формула. */
.dps-formula {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1.05fr;
  align-items: stretch;
  gap: var(--space-12);
  perspective: 1200px;
}

.dps-op {
  align-self: center;
  font-size: 30px;
  font-weight: 600;
  color: var(--color-border);
  opacity: 0;
  transform: scale(.3) rotate(-90deg);
  transition: opacity .5s var(--dps-ease), transform .5s var(--dps-ease);
}

.dps-op.in { opacity: 1; transform: none; }

.dps-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-24);
  border-radius: var(--radius-xl);
  background: var(--color-bg-soft);
  transform-style: preserve-3d;
  transition: transform .35s var(--dps-ease), box-shadow .35s var(--dps-ease);
  will-change: transform;
}

.dps-card:hover { box-shadow: 0 16px 34px rgba(37, 151, 255, .16), 0 4px 10px rgba(16, 24, 40, .06); }
.dps-card > * { transform: translateZ(24px); }

.dps-card--hl    { background: linear-gradient(150deg, #E6F2FF 0%, #F3F8FE 70%); }
.dps-card--sl    { background: linear-gradient(150deg, #F0EAFB 0%, #F7F4FD 70%); }
.dps-card--bonus { background: linear-gradient(150deg, #FDF3E0 0%, #FDF8EE 70%); }

.dps-num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: var(--space-16);
  border-radius: var(--radius-pill);
  color: var(--color-text-invert);
  font-size: 15px;
  font-weight: 600;
  transition: transform .35s var(--dps-ease);
}

.dps-card:hover .dps-num { transform: scale(1.12) rotate(-6deg); }
.dps-num--blue   { background: var(--color-brand); }
.dps-num--purple { background: var(--color-purple); }
.dps-num--orange { background: var(--color-yellow); }

.dps-num::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2.5px solid transparent;
  border-radius: var(--radius-pill);
  transform: scale(.8);
  transition: border-color .4s var(--dps-ease), transform .4s var(--dps-ease);
}

.dps-num.active { transform: scale(1.12); }
.dps-num--blue.active::after   { border-color: var(--color-brand);  transform: scale(1); }
.dps-num--purple.active::after { border-color: var(--color-purple); transform: scale(1); }
.dps-num--orange.active::after { border-color: var(--color-yellow); transform: scale(1); }

.dps-card__label { margin-bottom: var(--space-12); font-size: 16.5px; font-weight: 600; }
.dps-card__label em { font-style: normal; }
.dps-card--hl .dps-card__label em    { color: var(--color-brand); }
.dps-card--sl .dps-card__label em    { color: var(--color-purple); }
.dps-card--bonus .dps-card__label em { color: var(--color-yellow); }

.dps-minirow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: var(--space-16);
}

.dps-box,
.dps-tag {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border: 0;
  border-radius: 13px;
  background: var(--color-bg);
  box-shadow: 0 2px 6px rgba(16, 24, 40, .06);
  font: inherit;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .3s var(--dps-ease), background .3s var(--dps-ease), color .3s var(--dps-ease);
}

.dps-box { width: 46px; font-size: 21px; font-weight: 700; }
.dps-card--hl .dps-box { color: var(--color-brand); }
.dps-card--sl .dps-box { color: var(--color-purple); }
.dps-card:hover .dps-box,
.dps-card:hover .dps-tag { transform: translateY(-3px); }
.dps-card--hl .dps-box:hover { background: var(--color-brand); color: var(--color-text-invert); transform: translateY(-3px) scale(1.1); }
.dps-card--sl .dps-box:hover { background: var(--color-purple); color: var(--color-text-invert); transform: translateY(-3px) scale(1.1); }

.dps-op-mini { font-size: 16px; font-weight: 600; color: var(--color-border); }

.dps-tag {
  flex-direction: column;
  min-width: 54px;
  padding: 0 12px;
  line-height: 1.05;
}

.dps-tag b { font-size: 18px; font-weight: 700; color: var(--color-yellow); transition: color .3s; }
.dps-tag span { margin-top: 2px; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .6; transition: color .3s; }
.dps-tag:hover { background: var(--color-yellow); transform: translateY(-3px) scale(1.1); }
.dps-tag:hover b, .dps-tag:hover span { color: var(--color-text-invert); opacity: 1; }

/* Плашка засчитана кликом. */
.dps-box.counted { background: var(--color-brand); color: var(--color-text-invert); }
.dps-card--sl .dps-box.counted { background: var(--color-purple); }
.dps-tag.counted { background: var(--color-yellow); }
.dps-tag.counted b, .dps-tag.counted span { color: var(--color-text-invert); opacity: 1; }

.counted { position: relative; }
.counted::after {
  content: '✓';
  position: absolute;
  top: -6px;
  right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  color: var(--color-mint);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(16, 24, 40, .18);
  animation: dps-pop .35s var(--dps-ease);
}

@keyframes dps-pop {
  0% { opacity: 0; transform: scale(.4); }
  70% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}

.dps-result {
  display: flex;
  align-items: baseline;
  gap: var(--space-8);
  margin-top: auto;
  font-size: 15px;
  font-weight: 500;
  opacity: .75;
}

.dps-result b { font-size: 40px; font-weight: 700; line-height: 1; }
.dps-card--hl .dps-result b    { color: var(--color-brand); }
.dps-card--sl .dps-result b    { color: var(--color-purple); }
.dps-card--bonus .dps-result b { color: var(--color-yellow); }

/* Итог 45. */
.dps-card--total {
  justify-content: center;
  overflow: hidden;
  background: var(--color-brand);
  color: var(--color-text-invert);
  box-shadow: 0 10px 26px rgba(37, 151, 255, .28);
}

.dps-card--total:hover { background: var(--color-brand-hover); box-shadow: 0 18px 44px rgba(37, 151, 255, .5); }

.dps-card--total::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: dps-shine 4.5s ease-in-out infinite 1.5s;
  pointer-events: none;
}

@keyframes dps-shine {
  0% { transform: translateX(-120%); }
  45%, 100% { transform: translateX(120%); }
}

.dps-total__label { margin-bottom: 10px; font-size: 16.5px; font-weight: 600; opacity: .9; }
.dps-total__num { font-size: 66px; font-weight: 700; line-height: 1; transform-origin: left center; transition: transform .35s var(--dps-ease); }
.dps-card--total:hover .dps-total__num { transform: scale(1.06); }
.dps-total__cap { margin-top: 6px; font-size: var(--fs-small); font-weight: 600; }
.dps-total__sub { margin-top: 10px; font-size: 13px; font-weight: 500; opacity: .85; }

.num-pop { animation: dps-num-pop .45s var(--dps-ease); }
@keyframes dps-num-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.dps-collect {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-12);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .18);
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--dps-ease), transform .4s var(--dps-ease), background .3s;
  align-self: flex-start;
}

.dps-collect.show { opacity: 1; transform: none; }
.dps-collect.full { background: var(--color-bg); color: var(--color-brand-hover); }

.dps-collect__reset {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  opacity: .85;
}

.dps-collect__reset:hover { opacity: 1; }

/* Летящий «+7» и конфетти – вставляются в body. */
.dps-flyer {
  position: fixed;
  z-index: 99;
  pointer-events: none;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
  color: var(--color-text-invert);
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(37, 151, 255, .4);
  transition: transform .8s cubic-bezier(.45, .05, .4, 1), opacity .8s ease;
  will-change: transform;
}

.dps-flyer--purple { background: var(--color-purple); box-shadow: 0 6px 18px rgba(132, 91, 234, .4); }
.dps-flyer--orange { background: var(--color-yellow); box-shadow: 0 6px 18px rgba(247, 166, 2, .4); }

.dps-particle {
  position: fixed;
  z-index: 98;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  pointer-events: none;
  transition: transform 1s cubic-bezier(.2, .7, .3, 1), opacity 1s ease;
  will-change: transform;
}

/* Минимум для диплома. */
.dps-min {
  margin-top: var(--space-20);
  padding: var(--space-20) var(--space-24);
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  transition: transform .35s var(--dps-ease), box-shadow .35s var(--dps-ease);
}

.dps-min:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(37, 151, 255, .16), 0 4px 10px rgba(16, 24, 40, .06); }
.dps-min b { color: var(--color-brand); }

.dps-min__text {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.dps-min__text::before {
  content: '';
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
  animation: dps-dot 2.4s ease-in-out infinite;
}

.dps-min__track {
  position: relative;
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-cold);
}

.dps-min__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #5DB4F8, var(--color-brand));
  transition: width 1.4s cubic-bezier(.3, .9, .3, 1);
}

.dps-min__marker {
  position: absolute;
  top: 50%;
  left: 0;
  width: 26px;
  height: 26px;
  border: 3px solid var(--color-brand);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  box-shadow: 0 3px 8px rgba(37, 151, 255, .3);
  transform: translate(-50%, -50%) scale(0);
  transition: left 1.4s cubic-bezier(.3, .9, .3, 1), transform .4s var(--dps-ease) 1.2s;
}

.dps-min.go .dps-min__marker { transform: translate(-50%, -50%) scale(1); }

.dps-min__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  opacity: .6;
}

.dps-min__scale b { color: var(--color-brand); }

/* Ядро. */
.dps-core {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-16);
}

.dps-core__card {
  padding: var(--space-24);
  border-radius: var(--radius-xl);
  background: var(--color-bg-soft);
  text-align: center;
  transition: transform .35s var(--dps-ease), box-shadow .35s var(--dps-ease);
}

.dps-core__card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(37, 151, 255, .16), 0 4px 10px rgba(16, 24, 40, .06); }

.dps-core__pill {
  display: inline-block;
  margin-bottom: var(--space-12);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  color: var(--color-text-invert);
  font-size: var(--fs-body);
  font-weight: 600;
  transition: transform .35s var(--dps-ease);
}

.dps-core__card:hover .dps-core__pill { transform: scale(1.08) rotate(-2deg); }
.dps-core__pill--blue   { background: var(--color-brand); }
.dps-core__pill--purple { background: var(--color-purple); }
.dps-core__pill--grey   { background: #AEB4C2; }

.dps-core__card p { margin-bottom: var(--space-12); font-size: 14.5px; line-height: 1.5; }
.dps-core__card p span { opacity: .6; }

.dps-core__badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  box-shadow: 0 2px 6px rgba(16, 24, 40, .05);
  font-size: 13px;
  font-weight: 500;
  opacity: .75;
}

.dps-core__badge--blue   { color: var(--color-brand); opacity: 1; }
.dps-core__badge--purple { color: var(--color-purple); opacity: 1; }

/* Баннер сессий. */
.dps-banner {
  position: relative;
  margin-top: var(--space-48);
  padding: 76px 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, #3AA4F5 0%, var(--color-brand) 45%, var(--color-brand-hover) 100%);
  overflow: hidden;
  text-align: center;
}

.dps-banner::before,
.dps-banner::after {
  content: '';
  position: absolute;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .07);
  pointer-events: none;
}

.dps-banner::before { width: 620px; height: 620px; left: -180px; top: -320px; }
.dps-banner::after { width: 520px; height: 520px; right: -160px; bottom: -300px; }

.dps-banner__title {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  color: var(--color-text-invert);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-h2);
  letter-spacing: var(--ls-h2);
}

.dps-banner__title .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px) rotate(2deg);
  transition: opacity .5s var(--dps-ease), transform .5s var(--dps-ease);
}

.dps-banner.in .dps-banner__title .w { opacity: 1; transform: none; }

.dps-chip {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-lg);
  animation: dps-float 5s ease-in-out infinite;
  transition: transform .3s var(--dps-ease);
}

.dps-chip:hover { transform: scale(1.15) rotate(6deg); animation-play-state: paused; }
.dps-chip svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dps-chip--orange { background: var(--color-yellow); }
.dps-chip--purple { background: var(--color-purple); }
.dps-chip--coral  { background: var(--color-red); }
.dps-chip--violet { background: #9B6DF2; }

.dps-chip:nth-of-type(1) { left: 5%; top: 16%; }
.dps-chip:nth-of-type(2) { left: 22%; top: 64%; width: 48px; height: 48px; animation-delay: .8s; }
.dps-chip:nth-of-type(3) { left: 12%; bottom: 8%; width: 44px; height: 44px; animation-delay: 1.6s; }
.dps-chip:nth-of-type(4) { right: 20%; top: 12%; animation-delay: .4s; }
.dps-chip:nth-of-type(5) { right: 6%; top: 38%; width: 50px; height: 50px; animation-delay: 1.2s; }
.dps-chip:nth-of-type(6) { right: 13%; bottom: 10%; width: 46px; height: 46px; animation-delay: 2s; }

@keyframes dps-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Глоссарий. */
.dps-glossary {
  padding: 14px 34px;
  border-radius: var(--radius-xl);
  background: var(--color-bg-cold);
  overflow: hidden;
}

.dps-glossary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-24);
  padding: 13px 6px;
  border-radius: var(--radius-md);
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity .55s var(--dps-ease), transform .55s var(--dps-ease),
              background .25s var(--dps-ease), padding .25s var(--dps-ease);
}

.dps-glossary__row.in { opacity: 1; transform: none; }
.dps-glossary__row + .dps-glossary__row { border-top: 1px solid rgba(125, 132, 148, .14); }
.dps-glossary__row:hover { background: var(--color-bg); padding-left: 14px; padding-right: 14px; }

.dps-glossary__abbr {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .55;
  transition: color .25s var(--dps-ease), transform .25s var(--dps-ease), opacity .25s;
  transform-origin: left center;
}

.dps-glossary__row:hover .dps-glossary__abbr { color: var(--color-brand); opacity: 1; transform: scale(1.15); }

.dps-glossary__def {
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
  text-align: right;
}

/* Появление при прокрутке. */
.dps-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--dps-ease), transform .6s var(--dps-ease);
}

.dps-reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ibdp-scores *, .ibdp-scores *::before, .ibdp-scores *::after { transition: none !important; animation: none !important; }
  .dps-reveal, .dps-op, .dps-glossary__row { opacity: 1; transform: none; }
}

/* --- Таймлайн ------------------------------------------------------------- */

.ibdp-timeline {
  position: relative;
  display: flex;
  gap: var(--space-16);
}

/* Пунктирная линия сквозь точки. */
.ibdp-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  border-top: 1px dashed var(--color-border);
}

.ibdp-stage {
  position: relative;
  flex: 1 1 0;
  text-align: center;
  padding: 0 var(--space-8);
}

.ibdp-stage__dot {
  display: block;
  width: 15px;
  height: 15px;
  margin: 0 auto var(--space-12);
  background: var(--color-brand);
  border: 3px solid var(--color-bg);
  border-radius: var(--radius-pill);
  position: relative;
  z-index: 1;
  transition: transform .3s var(--dps-ease);
}

/* Точки этапов – палитра формулы. */
.ibdp-stage:nth-child(2) .ibdp-stage__dot { background: var(--color-purple); }
.ibdp-stage:nth-child(3) .ibdp-stage__dot { background: var(--color-yellow); }
.ibdp-stage:nth-child(4) .ibdp-stage__dot { background: var(--color-mint); }
.ibdp-stage:nth-child(5) .ibdp-stage__dot { background: var(--color-red); }
.ibdp-stage:hover .ibdp-stage__dot { transform: scale(1.4); }

.ibdp-stage__title {
  margin-bottom: var(--space-4);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  font-weight: 600;
}

.ibdp-stage__text {
  font-size: 14px;
  line-height: 1.45;
  opacity: .6;
}

/* --- IB + AP -------------------------------------------------------------- */

.ibdp-combo {
  display: flex;
  align-items: stretch;
  margin-bottom: var(--space-16);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.ibdp-combo__box {
  flex: 1 1 0;
  padding: var(--space-32) var(--space-24);
  background: var(--color-bg);
}

.ibdp-combo__label {
  margin-bottom: var(--space-8);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .55;
}

.ibdp-combo__value {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-h3);
}

.ibdp-combo__plus {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 64px;
  background: var(--color-yellow);
  color: var(--color-text-invert);
  font-size: 28px;
  font-weight: 500;
}

.ibdp-combo__box { transition: background .3s var(--dps-ease); }
.ibdp-combo__box:hover { background: #E6F2FF; }

.ibdp-ap-link { margin-top: var(--space-16); }

/* Кнопка-призрак на светлом фоне (в базе есть только белый .btn--ghost). */
.btn--ghost-dark {
  background: transparent;
  color: var(--color-brand);
  border: 1px solid var(--color-brand);
}

.btn--ghost-dark:hover {
  background: var(--color-brand);
  color: var(--color-text-invert);
}

/* --- Видео ---------------------------------------------------------------- */

.ibdp-video {
  display: flex;
  aspect-ratio: 16 / 9;
  max-width: 920px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-bg-cold);
}

.ibdp-video__stub {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ibdp-video__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--color-brand);
  border-radius: var(--radius-pill);
}

.ibdp-video__play::after {
  content: '';
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--color-text-invert);
  margin-left: 5px;
}

.ibdp-caption {
  max-width: 720px;
  margin-top: var(--space-24);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-body);
  opacity: .8;
}

/* --- Финальный CTA -------------------------------------------------------- */

.ibdp-cta {
  padding: var(--space-48);
  background: var(--color-brand);
  border-radius: var(--radius-2xl);
  color: var(--color-text-invert);
}

.ibdp-cta__title {
  max-width: 720px;
  margin-bottom: var(--space-16);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-h2);
  letter-spacing: var(--ls-h2);
}

.ibdp-cta__text {
  max-width: 620px;
  margin-bottom: var(--space-32);
  opacity: .85;
}

.btn--white {
  background: var(--color-bg);
  color: var(--color-text);
}

.btn--white:hover { background: var(--color-bg-soft); }

/* Чипы в хиро (палитра dp-scores-block). */
.ibdp-hero__chip { position: absolute; }
.ibdp-hero__chip--1 { right: 24%; top: 22%; }
.ibdp-hero__chip--2 { right: 7%; top: 55%; width: 48px; height: 48px; animation-delay: .8s; }
.ibdp-hero__chip--3 { right: 16%; bottom: 12%; width: 44px; height: 44px; animation-delay: 1.6s; }

/* Финальный CTA: круги и чипы как у баннера сессий. */
.ibdp-cta { position: relative; overflow: hidden; }

.ibdp-cta::before,
.ibdp-cta::after {
  content: '';
  position: absolute;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .07);
  pointer-events: none;
}

.ibdp-cta::before { width: 620px; height: 620px; left: -180px; top: -320px; }
.ibdp-cta::after { width: 520px; height: 520px; right: -160px; bottom: -300px; }

.ibdp-cta__chip { position: absolute; z-index: 1; }
.ibdp-cta__chip--1 { right: 10%; top: 18%; }
.ibdp-cta__chip--2 { right: 22%; bottom: 16%; width: 46px; height: 46px; animation-delay: 1.2s; }

.ibdp-cta > :not(.ibdp-cta__chip) { position: relative; z-index: 2; }

/* Пословное появление заголовка CTA (JS режет на .w). */
.ibdp-cta__title .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px) rotate(2deg);
  transition: opacity .5s var(--dps-ease), transform .5s var(--dps-ease);
}

.ibdp-cta.in .ibdp-cta__title .w { opacity: 1; transform: none; }

/* --- Адаптив -------------------------------------------------------------- */

@media (max-width: 1279px) {
  .ibdp-hero__inner { flex-direction: column; align-items: stretch; padding-inline: 0; }
  .ibdp-meta { flex-basis: auto; max-width: 400px; }
  .ibdp-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dps-formula { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dps-op { display: none; }
}

@media (max-width: 1023px) {
  .ibdp-hero__chip { display: none; }
}

@media (max-width: 767px) {
  .ibdp-cards--4,
  .dps-formula,
  .dps-core { grid-template-columns: minmax(0, 1fr); }
  .ibdp-cta__chip { display: none; }
  .dps-banner { padding: 56px 22px; }
  .dps-chip { width: 40px !important; height: 40px !important; }
  .dps-chip svg { width: 20px; height: 20px; }
  .dps-total__num { font-size: 54px; }
  .dps-glossary { padding-inline: var(--space-16); }
  .dps-glossary__def { text-align: left; }
  .dps-glossary__row { flex-direction: column; gap: 2px; }

  .ibdp-timeline { flex-direction: column; gap: var(--space-24); }
  .ibdp-timeline::before { content: none; }
  .ibdp-stage { text-align: left; padding-left: var(--space-24); border-left: 1px dashed var(--color-border); }
  .ibdp-stage__dot { margin: 0 0 var(--space-8); }

  .ibdp-combo { flex-direction: column; }
  .ibdp-combo__plus { flex-basis: 44px; }

  .ibdp-marksheet { padding: var(--space-20); }
  .ibdp-cta { padding: var(--space-24); }
  .ibdp-section { padding: var(--space-48) 0; }
}
