/* Геотактика, вариант 2.
   Чистый продуктовый стиль: системный шрифт Apple (SF Pro; на других платформах Inter),
   белые и светло-серые ленты, одна тёмная лента для видео и требований, крупные скругления,
   плоские поверхности без теней. Оранжевый Геотактики - единственный акцент.

   Шкала отступов (px): 4 8 12 16 24 32 48 64 96 128 - только эти значения. */

/* ---------- токены ---------- */
.b2 {
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --canvas: #fff;
  --grey: #f5f5f7;
  --dark: #000;
  --dark-2: #1d1d1f;
  --accent: #eb6822;
  --accent-hover: #f5793a;
  --action: #eb6822;
  --action-dark: #f5793a;
  --stage: #261f1b;
  /* серые блоки: очень плавный серо-стальной градиент в двух углах поверх нейтрального серого */
  --grey-grad: radial-gradient(1200px 680px at 6% -12%, rgba(98, 110, 128, 0.16), rgba(98, 110, 128, 0.06) 48%, transparent 74%),
    radial-gradient(1000px 620px at 100% 112%, rgba(120, 124, 134, 0.14), rgba(120, 124, 134, 0.05) 48%, transparent 74%),
    linear-gradient(180deg, #f6f6f8 0%, #f1f1f4 100%);
  --dot: rgba(88, 98, 115, 0.3);
  /* светлый «перламутровый» градиент в духе Apple, в белой и серой гамме сайта: холодный серый, еле заметные сирень, голубой и тёплый персик.
     Большой - для панелей, малый - для половин карточек */
  --apple-grad: radial-gradient(900px 560px at 96% -10%, rgba(255, 190, 150, 0.32) 0%, rgba(255, 190, 150, 0.14) 38%, transparent 74%),
    radial-gradient(800px 540px at 104% 78%, rgba(196, 170, 255, 0.28) 0%, rgba(196, 170, 255, 0.11) 40%, transparent 74%),
    radial-gradient(920px 620px at -6% 108%, rgba(150, 196, 255, 0.34) 0%, rgba(150, 196, 255, 0.13) 40%, transparent 76%),
    radial-gradient(840px 560px at 4% -12%, rgba(176, 186, 214, 0.38) 0%, rgba(176, 186, 214, 0.14) 40%, transparent 76%),
    linear-gradient(180deg, #f8f8fa 0%, #efeff3 100%);
  --apple-grad-sm: radial-gradient(540px 360px at 98% -12%, rgba(255, 190, 150, 0.32) 0%, rgba(255, 190, 150, 0.14) 38%, transparent 74%),
    radial-gradient(480px 340px at 106% 80%, rgba(196, 170, 255, 0.28) 0%, rgba(196, 170, 255, 0.11) 40%, transparent 74%),
    radial-gradient(560px 380px at -8% 112%, rgba(150, 196, 255, 0.34) 0%, rgba(150, 196, 255, 0.13) 40%, transparent 76%),
    radial-gradient(500px 360px at 2% -14%, rgba(176, 186, 214, 0.38) 0%, rgba(176, 186, 214, 0.14) 40%, transparent 76%),
    linear-gradient(180deg, #f8f8fa 0%, #efeff3 100%);
  --stage-text: #1d1d1f;
  --stage-muted: #55555b;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --pill: 980px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 56px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(48px, 6vw, 80px);

  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.012em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
  scrollbar-color: #b4b4ba transparent;
}
.b2 *,
.b2 *::before,
.b2 *::after {
  box-sizing: border-box;
}
.b2 ::selection {
  background: rgba(235, 104, 34, 0.28);
  color: inherit;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
}
:where(.b2) a {
  color: inherit;
  text-decoration: none;
}
:where(.b2) h1,
:where(.b2) h2,
:where(.b2) h3,
:where(.b2) h4,
:where(.b2) h5,
:where(.b2) p {
  margin: 0;
}
.b2 img {
  display: block;
  max-width: 100%;
}
.b2 button {
  font-family: inherit;
}
.b2 :focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
}
.b2-lock {
  overflow: hidden;
}
.b2-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.b2-wrap--text {
  max-width: 800px;
}
.b2-muted {
  color: var(--muted);
}
.b2-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* плавный переход между страницами (Chrome/Edge) */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: 0.2s ease both b2Out;
}
::view-transition-new(root) {
  animation: 0.35s cubic-bezier(0, 0, 0.2, 1) both b2In;
}
@keyframes b2Out {
  to {
    opacity: 0;
  }
}
@keyframes b2In {
  from {
    opacity: 0;
  }
}

/* ---------- логотип ---------- */
.b2-mark {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  color: var(--accent);
}
.b2-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.b2-logo b {
  color: var(--accent);
  font-weight: 700;
}
.b2-logo--big {
  font-size: 28px;
}

/* ---------- кнопки ---------- */
.b2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  height: 44px;
  padding: 0 var(--s5);
  border: 1px solid var(--accent);
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.b2-btn:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}
.b2-btn:active {
  scale: 0.98;
}
.b2-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.b2-btn--outline {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}
.b2-btn--outline:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}
.b2-btn--sm {
  height: 32px;
  padding: 0 var(--s4);
  font-size: 14px;
}
.b2-btn--lg {
  height: 52px;
  padding: 0 var(--s6);
  font-size: 17px;
}
.b2-btn--icon {
  padding: 0 var(--s4) 0 var(--s5);
}
.b2-btn--icon:has(.b2-chev--back) {
  padding: 0 var(--s5) 0 var(--s4);
}
.b2-chev {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 var(--s1) 0 var(--s2);
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.b2-chev--back {
  margin: 0 var(--s2) 0 var(--s1);
  transform: rotate(-135deg);
}
.b2-btn:hover .b2-chev:not(.b2-chev--back) {
  transform: translateX(2px) rotate(45deg);
}
.b2-btn:hover .b2-chev--back {
  transform: translateX(-2px) rotate(-135deg);
}
/* кнопка поверх фото */
.b2-btn--glass {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
.b2-btn--glass:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

/* ---------- заголовки ---------- */
.b2-h1 {
  font-size: clamp(36px, 5.2vw, 56px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--ink);
}
.b2-h1--article {
  margin-bottom: var(--s4);
  font-size: clamp(32px, 4.4vw, 48px);
  overflow-wrap: anywhere;
}
.b2-h2 {
  margin-bottom: var(--s7);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
  color: var(--ink);
}
.b2-h2--md {
  margin-bottom: 0;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.024em;
}
.b2-h2--flush {
  margin-bottom: 0;
}
.b2-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4) var(--s5);
  margin-bottom: var(--s7);
}
.b2-head--spaced {
  margin-top: var(--s8);
  margin-bottom: var(--s6);
}
.b2-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--muted);
}
.b2-center {
  display: flex;
  justify-content: center;
  margin-top: var(--s7);
}

/* единственное появление: первый экран */
.b2-fade {
  animation: b2Rise 0.9s var(--ease-out) both;
}
@keyframes b2Rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
/* подзаголовок и две кнопки выходят друг за другом сразу после заголовка;
   пока шрифт грузится, ждут вместе с заголовком */
.b2-reveal {
  animation: b2Soft 1.1s var(--ease-out) both;
}
.b2-reveal--lead {
  animation-delay: 1.35s;
}
.b2-reveal--b1 {
  animation-name: b2Pop;
  animation-delay: 1.85s;
}
.b2-reveal--b2 {
  animation-name: b2Pop;
  animation-delay: 2.1s;
}
.b2-hero__title.is-split:not(.is-go) ~ .b2-reveal,
.b2-hero__title.is-split:not(.is-go) ~ .b2-hero__cta .b2-reveal {
  animation-play-state: paused;
}
@keyframes b2Soft {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
  }
}
@keyframes b2Pop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
}

/* заголовок первого экрана: буквы плавно проявляются по очереди, из размытия в резкость */
.b2-hero__title.is-split {
  text-transform: none;
}
.b2-ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em) scale(0.96);
  filter: blur(14px);
  animation: b2Ch 1.1s cubic-bezier(0.19, 1, 0.22, 1) forwards paused;
  animation-delay: calc(0.1s + var(--i) * 48ms);
  /* буква остаётся на своём слое и после анимации: нет скачка при смене способа отрисовки текста */
  will-change: transform;
  backface-visibility: hidden;
}
.is-go .b2-ch {
  animation-play-state: running;
}
@keyframes b2Ch {
  60% {
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

/* зум фото при наведении */
.b2-zoom {
  display: block;
  overflow: hidden;
}
.b2-zoom > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.6s var(--ease-out);
}
a:focus-visible .b2-zoom > img {
  scale: 1.04;
}
@media (hover: hover) {
  a:hover .b2-zoom > img {
    scale: 1.04;
  }
}

/* ---------- шапка: прозрачная над фото, матовая после прокрутки ---------- */
.b2-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  height: var(--header-h);
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.b2-header[data-tone="dark"]:not(.is-scrolled):not(.is-open) {
  color: #fff;
}
.b2-header.is-scrolled,
.b2-header.is-open {
  border-bottom-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.b2-header__left {
  display: flex;
  align-items: center;
  gap: var(--s6);
  min-width: 0;
}
.b2-nav {
  display: flex;
  align-items: center;
  gap: var(--s1);
}
.b2-nav a {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 var(--s3);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.006em;
  opacity: 0.8;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}
.b2-nav a:hover,
.b2-nav a.is-active {
  opacity: 1;
}
.b2-nav a.is-active {
  font-weight: 600;
}
.b2-header__right {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.b2-lang {
  padding: var(--s2);
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.2s var(--ease);
}
.b2-lang:hover {
  opacity: 1;
}
.b2-burger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.b2-burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.b2-burger span:nth-child(1) {
  top: 15px;
}
.b2-burger span:nth-child(2) {
  top: 20px;
}
.b2-burger span:nth-child(3) {
  top: 25px;
}
.is-open .b2-burger span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.is-open .b2-burger span:nth-child(2) {
  opacity: 0;
}
.is-open .b2-burger span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- первый экран ---------- */
.b2-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + var(--s7)) 0 clamp(64px, 11vh, 112px);
  overflow: hidden;
  background: var(--dark);
  color: #fff;
  text-align: center;
}
.b2-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}
.b2-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.1) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 22%);
}
.b2-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.b2-hero__title {
  max-width: 980px;
  margin-bottom: var(--s4);
  font-size: clamp(48px, 8.4vw, 96px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-transform: lowercase;
  text-wrap: balance;
}
.b2-hero__title > span {
  display: block;
}
.b2-hero__title > span::first-letter {
  text-transform: uppercase;
}
.b2-hero__title > span:last-child {
  color: var(--accent);
}
.b2-hero__lead {
  max-width: 640px;
  margin-bottom: var(--s6);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.4;
  letter-spacing: -0.014em;
  color: rgba(255, 255, 255, 0.86);
  text-wrap: pretty;
}
.b2-hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s3);
}
.b2-hero--page {
  min-height: 72vh;
  padding-bottom: var(--s8);
}
.b2-hero--page::before {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.58) 55%, rgba(0, 0, 0, 0.5) 100%);
}
.b2-hero .b2-btn--outline {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
.b2-hero .b2-btn--outline:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}
.b2-hero--page .b2-hero__title {
  font-size: clamp(36px, 6vw, 72px);
  text-transform: none;
}
.b2-hero--page .b2-hero__title > span::first-letter {
  text-transform: none;
}
.b2-hero .b2-crumbs {
  margin-bottom: var(--s5);
  color: rgba(255, 255, 255, 0.85);
}
.b2-hero .b2-crumbs a:hover {
  color: #fff;
}

/* ---------- секции ---------- */
.b2-section {
  padding: var(--section-y) 0;
  background: var(--canvas);
}
.b2-section--grey {
  background: var(--grey-grad);
}
/* точки того же оттенка: густые в углу блока и плавно растворяются к центру */
.b2-section--grey,
.b2-footer {
  position: relative;
  isolation: isolate;
}
.b2-section--grey::before,
.b2-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, var(--dot) 1.4px, transparent 1.9px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(560px 360px at 0% 0%, #000 0%, rgba(0, 0, 0, 0.45) 45%, transparent 100%),
    radial-gradient(520px 340px at 100% 100%, #000 0%, rgba(0, 0, 0, 0.45) 45%, transparent 100%);
  mask-image: radial-gradient(560px 360px at 0% 0%, #000 0%, rgba(0, 0, 0, 0.45) 45%, transparent 100%),
    radial-gradient(520px 340px at 100% 100%, #000 0%, rgba(0, 0, 0, 0.45) 45%, transparent 100%);
  pointer-events: none;
}
.b2-section--top0 {
  padding-top: 0;
}

.b2-featured__grid {
  display: block;
}

/* ---------- карточки: плоские плитки с крупным скруглением ---------- */
.b2-hover {
  position: relative;
  display: block;
}
.b2-feat__box,
.b2-card__box,
.b2-job__box {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-lg);
  background: var(--grey);
  transition: background-color 0.3s var(--ease);
}
.b2-section--grey .b2-feat__box,
.b2-section--grey .b2-card__box,
.b2-section--grey .b2-job__box {
  background: var(--canvas);
}
.b2-feat__title,
.b2-card__title,
.b2-job__title {
  transition: color 0.2s var(--ease);
}
.b2-hover:focus-visible {
  outline-offset: 4px;
  border-radius: var(--r-lg);
}
.b2-feat__title,
.b2-card__title,
.b2-job__title {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.3s var(--ease);
}
@media (hover: hover) {
  .b2-hover:hover :is(.b2-feat__title, .b2-card__title, .b2-job__title) {
    text-decoration-color: var(--accent);
  }
}
.b2-hover:focus-visible :is(.b2-feat__title, .b2-card__title, .b2-job__title) {
  text-decoration-color: var(--accent);
}

/* ---------- единый ховер для всех карточек с фото ----------
   Новости, главная новость, направления, галерея, видео: из-за карточки выезжает оранжевая трапеция,
   карточка приподнимается, получает мягкую тень, фото плавно увеличивается, заголовок подчёркивается оранжевым. */
.b2 {
  --lift: -6px;
  --lift-shadow: 0 22px 36px -24px rgba(29, 29, 31, 0.38);
}
.b2-hover {
  --hr: var(--r-lg);
  isolation: isolate;
}
.b2-post.b2-hover,
.b2-video-wrap {
  --hr: var(--r-md);
}
.b2-hover::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 76%;
  height: 64px;
  border-top-left-radius: var(--hr);
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 36px) 100%, 0 100%);
  opacity: 0;
  transform: translateY(0);
  transition: transform 0.65s var(--ease-out), opacity 0.25s var(--ease);
  pointer-events: none;
}
.b2-feat__box,
.b2-card__box,
.b2-job__box,
.b2-post__box,
.b2-video {
  position: relative;
  z-index: 1;
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out), background-color 0.3s var(--ease);
}
.b2-hover:focus-visible::before {
  opacity: 1;
  transform: translateY(-22px);
}
.b2-hover:focus-visible :is(.b2-feat__box, .b2-card__box, .b2-job__box, .b2-post__box, .b2-video) {
  transform: translateY(var(--lift));
  box-shadow: var(--lift-shadow);
}
.b2-hover:focus-visible .b2-video__play {
  background: var(--accent);
  scale: 1.1;
}
@media (hover: hover) {
  .b2-hover:hover::before {
    opacity: 1;
    transform: translateY(-22px);
  }
  .b2-hover:hover :is(.b2-feat__box, .b2-card__box, .b2-job__box, .b2-post__box, .b2-video) {
    transform: translateY(var(--lift));
    box-shadow: var(--lift-shadow);
  }
  .b2-hover:hover .b2-video__play {
    background: var(--accent);
    scale: 1.12;
  }
  .b2-hover:hover .b2-zoom > img {
    scale: 1.04;
  }
  .b2-hover:hover .b2-post__text {
    text-decoration-color: var(--accent);
  }
}

/* главная новость */
.b2-feat .b2-feat__box {
  flex-direction: row;
  align-items: stretch;
}
.b2-feat__img {
  flex: 0 0 50%;
  aspect-ratio: 3 / 2;
  background: #e8e8ed;
}
.b2-feat__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: var(--s3);
  min-width: 0;
  padding: var(--s6) var(--s7);
}
.b2-feat__title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.026em;
  text-wrap: balance;
  color: var(--ink);
}
.b2-feat__text {
  max-width: 62ch;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* текстовая половина главной новости - тот же градиент */
.b2-feat__body {
  background: var(--apple-grad-sm);
}

/* карточки новостей и направлений */
.b2-card__img {
  aspect-ratio: 16 / 10;
  flex: none;
  background: #e8e8ed;
}
.b2-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s5);
}
.b2-card__title {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.b2-card__text {
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.b2-card[hidden] {
  display: none;
}
.b2-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s6) var(--s5);
}
.b2-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.b2-feat + .b2-grid {
  margin-top: var(--s6);
}

/* ---------- карусель ---------- */
.b2-car__track {
  display: flex;
  gap: var(--s5);
  margin: -16px 0 -32px;
  padding: 16px 0 32px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.b2-car__track::-webkit-scrollbar {
  display: none;
}
.b2-car__track > * {
  flex: 0 0 clamp(272px, 24vw, 312px);
  scroll-snap-align: start;
  transition: opacity 0.6s var(--ease-out), scale 0.6s var(--ease-out);
}
/* карточки, не уместившиеся целиком, приглушены и чуть меньше: слайдер «дышит» при прокрутке */
.b2-car.is-ready:not(.is-scatter) .b2-car__track > *:not(.is-in) {
  opacity: 0.5;
  scale: 0.97;
}
.b2-car__bar {
  display: flex;
  align-items: center;
  gap: var(--s6);
  margin-top: var(--s7);
}
.b2-car.is-static .b2-car__bar {
  display: none;
}
.b2-car__progress {
  position: relative;
  flex: 1;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--line);
}
.b2-car__thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: 4px;
  background: var(--accent);
  transform: scaleX(0.3);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.b2-car__arrows {
  display: flex;
  gap: var(--s2);
}
.b2-car__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--canvas);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.25s var(--ease), transform 0.25s var(--ease-out);
}
.b2-car__btn .b2-chev {
  margin: 0 3px 0 0;
}
.b2-car__btn .b2-chev--back {
  margin: 0 0 0 3px;
}
.b2-car__btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent);
}
.b2-car__btn:active:not(:disabled) {
  transform: scale(0.92);
}
.b2-car__btn:disabled {
  opacity: 0.4;
  cursor: default;
}
@media (hover: hover) {
  .b2-car__track {
    cursor: grab;
  }
}
.b2-car__track.is-drag {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.b2-car__track.is-drag * {
  pointer-events: none;
}
.b2-car__track img {
  -webkit-user-drag: none;
  user-select: none;
}

/* новости: карточки прилетают из случайных мест и встают на свои. Значения --sx/--sy/--sr задаёт скрипт при каждой загрузке */
.b2-car {
  clip-path: inset(-460px 0 -120px 0);
}
.b2-scatter {
  --sx: 0px;
  --sy: 0px;
  --sr: 0deg;
  --i: 0;
  /* очень плавная посадка: долгое мягкое торможение без пружинки и перелёта */
  transition: translate 2.4s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 140ms), rotate 2.4s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--i) * 140ms),
    opacity 1.6s cubic-bezier(0.33, 1, 0.68, 1) calc(var(--i) * 140ms), scale 0.6s var(--ease-out);
}
.b2-scatter:not(.is-landed) {
  opacity: 0;
  translate: var(--sx) var(--sy);
  rotate: var(--sr);
}
.b2-car.is-ready .b2-car__track > .b2-scatter:not(.is-landed) {
  opacity: 0;
}
.b2-scatter.is-landed {
  translate: 0 0;
  rotate: 0deg;
}
.b2-car.is-scatter .b2-car__track {
  overflow: visible;
}
/* после посадки задержки по очереди больше не нужны: приглушение краёв слайдера идёт без запаздывания */
.b2-scatter.is-settled {
  transition: opacity 0.6s var(--ease-out), scale 0.6s var(--ease-out);
}
.b2-feat.b2-scatter:not(.is-landed) {
  transition-delay: 0s;
}

/* ---------- панели (видео, требования) ---------- */
/* не ленты на всю ширину, а скруглённая светлая панель с мягким перламутровым градиентом */
/* единые отступы: у панелей тот же вертикальный ритм секции и та же ширина, что у остального содержимого страницы */
#videos,
#system {
  padding: var(--section-y) var(--gutter);
}
#videos > .b2-wrap,
#system > .b2-wrap {
  max-width: calc(1280px - 2 * var(--gutter));
  padding: var(--s8) var(--s7);
  border-radius: 40px;
  background: var(--apple-grad);
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.07);
  color: var(--stage-text);
}
#videos .b2-h2,
#system .b2-h2 {
  color: var(--stage-text);
}

/* ---------- видео ---------- */
.b2-videos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}
.b2-video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: var(--r-md);
  background: #2a2420;
  cursor: pointer;
}
.b2-video .b2-zoom {
  position: absolute;
  inset: 0;
}
.b2-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28, 24, 22, 0.55) 0%, rgba(28, 24, 22, 0) 60%);
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.b2-video__play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  transition: background-color 0.3s var(--ease), scale 0.5s var(--ease-out);
}
.b2-video__play svg {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}
.b2-video.is-playing::after {
  display: none;
}
.b2-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* список «показать все / свернуть»: высота плавно растёт, ролики появляются по очереди */
.b2-more {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.75s var(--ease-out), visibility 0s linear 0.75s;
}
.b2-more.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s;
}
.b2-more__in {
  min-height: 0;
  overflow: hidden;
  margin: -16px;
  padding: 16px;
}
.b2-more .b2-videos {
  padding-top: var(--s5);
}
.b2-more .b2-video {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.5s var(--ease-out), translate 0.7s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.b2-more.is-open .b2-video {
  opacity: 1;
  translate: 0 0;
}
.b2-more.is-open .b2-video:nth-child(3n + 1) {
  transition-delay: 0.1s, 0.1s, 0s, 0s;
}
.b2-more.is-open .b2-video:nth-child(3n + 2) {
  transition-delay: 0.18s, 0.18s, 0s, 0s;
}
.b2-more.is-open .b2-video:nth-child(3n) {
  transition-delay: 0.26s, 0.26s, 0s, 0s;
}
.b2-chev--down {
  margin: -3px 0 0 var(--s2);
  transform: rotate(135deg);
  transition: transform 0.4s var(--ease-out);
}
.b2-btn:hover .b2-chev--down {
  transform: rotate(135deg);
}
.b2-btn.is-open .b2-chev--down,
.b2-btn.is-open:hover .b2-chev--down {
  transform: translateY(3px) rotate(-45deg);
}

/* ---------- галерея ---------- */
.b2-gal {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
}
.b2-post {
  display: block;
  cursor: zoom-in;
}
.b2-post__box {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-md);
}
.b2-post__img {
  aspect-ratio: 4 / 3;
  flex: none;
}
.b2-post__text {
  padding: var(--s3) var(--s4) 14px;
  background: var(--grey);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s var(--ease);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.b2-section--grey .b2-post__text {
  background: var(--canvas);
}

/* ---------- системные требования ---------- */
.b2-promo {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.b2-promo__shape {
  display: none;
}
.b2-promo__img {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  background: #fff;
}
.b2-promo__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s5);
}
.b2-req {
  font-size: 16px;
  line-height: 1.7;
  color: var(--stage-muted);
}
.b2-req strong {
  display: inline-block;
  margin-top: var(--s2);
  font-weight: 600;
  color: var(--stage-text);
}
.b2-req strong:first-child {
  margin-top: 0;
}

/* ---------- направления (другие направления) ---------- */
.b2-jobs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s5);
}
.b2-job__box {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 240px;
}
.b2-job__top {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding: var(--s5) var(--s5) var(--s3);
}
.b2-job__level {
  font-size: 14px;
  color: var(--muted);
}
.b2-job__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.b2-job__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4);
  padding: 0 var(--s5) var(--s5);
}
.b2-job__text {
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.b2-job__thumb {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: var(--r-sm);
  background-size: cover;
  background-position: center;
}

/* ---------- обратная связь ---------- */
.b2-contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden;
  border-radius: 40px;
  background: var(--grey-grad);
}
.b2-section--grey .b2-contact {
  background: var(--canvas);
}
.b2-contact__side {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--s4);
  min-height: 560px;
  padding: var(--s8) var(--s7);
  background: var(--stage) url("/media/img/design/contact-us.jpg") center / cover;
  color: #fff;
}
.b2-contact__side::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(28, 24, 22, 0.25) 0%, rgba(28, 24, 22, 0.92) 100%);
}
.b2-contact__title {
  font-size: clamp(34px, 3.8vw, 46px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.b2-contact__lead {
  max-width: 34ch;
  font-size: 18px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}
.b2-contact__list {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin: var(--s3) 0 0;
  padding: 0;
  list-style: none;
}
.b2-contact__list li,
.b2-contact__list a {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-size: 17px;
}
.b2-contact__ico {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.b2-contact__ico svg {
  width: 20px;
  height: 20px;
}
.b2-contact__list a:hover .b2-contact__ico {
  background: var(--accent);
  color: var(--ink);
}
.b2-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s4);
  padding: var(--s8) var(--s7);
}
.b2-contact .b2-form {
  background: var(--apple-grad-sm);
}

.b2-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}
.b2-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
  margin-top: var(--s2);
}
.b2-field {
  position: relative;
  display: block;
}
.b2 input,
.b2 textarea {
  width: 100%;
  padding: 14px var(--s4);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.4 var(--font);
  letter-spacing: -0.012em;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  resize: vertical;
}
.b2-field input,
.b2-field textarea {
  padding: 26px var(--s4) 10px;
}
.b2-field textarea {
  min-height: 160px;
}
.b2-field > span {
  position: absolute;
  top: 16px;
  left: 17px;
  font-size: 17px;
  color: #86868b;
  transform-origin: left top;
  pointer-events: none;
  transition: transform 0.25s var(--ease-out), color 0.25s var(--ease);
}
.b2-field :is(input, textarea):focus + span,
.b2-field :is(input, textarea):not(:placeholder-shown) + span {
  transform: translateY(-9px) scale(0.76);
}
.b2-field :is(input, textarea):focus + span {
  color: var(--ink);
}
.b2 input:focus,
.b2 textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(235, 104, 34, 0.2);
}
.b2 ::placeholder {
  color: #86868b;
}
.b2-field ::placeholder {
  color: transparent;
}
.b2-msg {
  font-size: 15px;
}
.b2-msg:empty {
  display: none;
}
.b2-msg.is-ok {
  color: #15803d;
}
.b2-msg.is-err {
  color: #b91c1c;
}
.b2-muted a {
  transition: color 0.2s var(--ease);
}
.b2-muted a:hover {
  color: var(--ink);
}

/* ---------- внутренние страницы ---------- */
.b2-page-head {
  padding: calc(var(--header-h) + var(--s8)) 0 var(--s6);
}
.b2-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-bottom: var(--s4);
  font-size: 14px;
  color: var(--muted);
}
.b2-hero .b2-crumbs {
  justify-content: center;
}
.b2-crumbs a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}
.b2-crumbs a:hover {
  text-decoration-color: var(--accent);
}
.b2-hero .b2-crumbs a {
  color: inherit;
}
.b2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s5);
}
.b2-page-head .b2-chips:not(.b2-chips--labeled) {
  flex-wrap: nowrap;
  margin-right: calc(var(--gutter) * -1);
  padding-right: var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}
.b2-page-head .b2-chips:not(.b2-chips--labeled)::-webkit-scrollbar {
  display: none;
}
.b2-chip {
  flex: none;
}
.b2-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  height: 36px;
  padding: 0 var(--s4);
  border-radius: var(--pill);
  background: var(--grey);
  font-size: 15px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.b2-chip small {
  font-size: 12px;
  color: var(--muted);
}
.b2-chip:hover {
  background: #e8e8ed;
}
.b2-chip.is-active {
  background: var(--ink);
  color: #fff;
}
.b2-chip.is-active small {
  color: rgba(255, 255, 255, 0.7);
}
.b2-cover {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin-top: var(--s6);
  border-radius: var(--r-lg);
  object-fit: cover;
  background: var(--grey);
}
.b2-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s5);
  padding: var(--s8) 0;
  color: var(--muted);
  text-align: center;
}
.b2-article-wrap {
  padding-top: var(--s7);
  padding-bottom: var(--section-y);
}
.b2-page-head + .b2-article-wrap {
  padding-top: var(--s2);
}
.b2-article {
  font-size: 19px;
  line-height: 1.6;
  letter-spacing: -0.014em;
  color: var(--ink);
  overflow-wrap: break-word;
}
.b2-article > :first-child {
  margin-top: 0;
}
.b2-article h1,
.b2-article h2,
.b2-article h3,
.b2-article h4 {
  margin: var(--s7) 0 var(--s3);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.b2-article h2 {
  font-size: 30px;
}
.b2-article h3 {
  font-size: 24px;
}
.b2-article p {
  margin: 0 0 var(--s4);
}
.b2-article a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.b2-article a:hover {
  background: rgba(235, 104, 34, 0.14);
}
.b2-article img,
.b2-article iframe,
.b2-article video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: var(--s6) auto;
  border-radius: var(--r-md);
}
.b2-article iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}
.b2-article figure {
  margin: var(--s6) 0;
}
.b2-article figcaption {
  margin-top: var(--s2);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.b2-article blockquote {
  margin: var(--s6) 0;
  padding: var(--s5) var(--s6);
  border-radius: var(--r-md);
  background: var(--grey);
  font-size: 21px;
  line-height: 1.45;
}
.b2-article ul,
.b2-article ol {
  margin: 0 0 var(--s4);
  padding-left: var(--s5);
}
.b2-article li + li {
  margin-top: var(--s1);
}
.b2-article table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.b2-article td,
.b2-article th {
  padding: var(--s2) var(--s3);
  border: 1px solid var(--line);
}
.b2-chips--labeled {
  align-items: center;
  margin-top: var(--s7);
}
.b2-chips__label {
  font-size: 15px;
  font-weight: 600;
}
.b2-neighbors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
  margin-top: var(--s7);
}
.b2-neighbor {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding: var(--s5);
  border-radius: var(--r-md);
  background: var(--grey);
  transition: background-color 0.2s var(--ease);
}
.b2-neighbor--next {
  grid-column: 2;
  text-align: right;
}
.b2-neighbor--next .b2-neighbor__dir {
  justify-content: flex-end;
}
.b2-neighbor__dir {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.b2-neighbor strong {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (hover: hover) {
  .b2-neighbor:hover {
    background: #e8e8ed;
  }
}
.b2-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}

.b2-skip {
  position: fixed;
  z-index: 200;
  top: var(--s2);
  left: var(--s2);
  padding: var(--s3) var(--s4);
  border-radius: var(--pill);
  background: var(--accent);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-200%);
}
.b2-skip:focus {
  transform: none;
}

/* ---------- подвал ---------- */
.b2-footer {
  padding: var(--s8) 0 var(--s6);
  border-top: 1px solid var(--line);
  background: var(--grey-grad);
}
.b2-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: var(--s8);
}
.b2-footer__brand p {
  max-width: 34ch;
  margin: var(--s3) 0 var(--s5);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.b2-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}
.b2-footer h5 {
  margin-bottom: var(--s3);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.b2-footer__cols a {
  display: block;
  padding: var(--s1) 0;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.b2-footer__cols a:hover {
  color: var(--ink);
}
.b2-footer__bottom {
  margin-top: var(--s8);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
/* соцсети: подсветка и заливка в цвет самой иконки */
.b2-social {
  display: flex;
  gap: var(--s3);
}
.b2-social a {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--canvas);
  color: var(--ink);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.b2-social a::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.b2-social svg {
  width: 24px;
  height: 24px;
  transition: transform 0.4s var(--ease-out);
}
.b2-social__ig::before {
  background: linear-gradient(45deg, #fdb347 0%, #f7653b 30%, #e1306c 60%, #833ab4 100%);
}
.b2-social__yt::before {
  background: #ff0033;
}
.b2-social a:focus-visible {
  transform: translateY(-4px);
  border-color: transparent;
  color: #fff;
}
.b2-social a:focus-visible::before {
  opacity: 1;
}
@media (hover: hover) {
  .b2-social a:hover {
    transform: translateY(-4px);
    border-color: transparent;
    color: #fff;
  }
  .b2-social a:hover::before {
    opacity: 1;
  }
  .b2-social a:hover svg {
    transform: scale(1.12) rotate(-6deg);
  }
  .b2-social__ig:hover {
    box-shadow: 0 12px 26px -8px rgba(225, 48, 108, 0.7);
  }
  .b2-social__yt:hover {
    box-shadow: 0 12px 26px -8px rgba(255, 0, 51, 0.65);
  }
}

/* ---------- окна ---------- */
.b2-modal,
.b2-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s5);
  animation: b2In 0.2s var(--ease) both;
}
.b2-modal {
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.b2-lightbox {
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
}
.b2-modal[hidden],
.b2-lightbox[hidden] {
  display: none;
}
/* окно входа: две части, как карточка «Напишите нам» */
.b2-modal__box {
  position: relative;
  width: 100%;
  max-width: 880px;
  overflow: hidden;
  border-radius: 32px;
  /* фон у частей, а не у общей коробки: иначе белая подложка просвечивает тонкой каймой по скруглению фото */
  background: transparent;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
  animation: b2Dialog 0.6s var(--ease-out) both;
}
@keyframes b2Dialog {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
}
.b2-login {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}
.b2-login__side {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s6);
  min-height: 520px;
  padding: var(--s7);
  border-radius: 32px 0 0 32px;
  background: var(--stage) url("/media/img/design/main-bg-1.jpg") 62% center / cover;
  color: #fff;
}
.b2-login__side::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(28, 24, 22, 0.55) 0%, rgba(28, 24, 22, 0.35) 40%, rgba(28, 24, 22, 0.9) 100%);
}
.b2-login__side p {
  max-width: 28ch;
  font-size: 17px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}
.b2-login__main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s8) var(--s7);
  border-radius: 0 32px 32px 0;
  background: var(--canvas);
}
.b2-login__main h2 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.b2-login__lead {
  margin: var(--s3) 0 var(--s6);
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
}
.b2-login .b2-form {
  padding: 0;
  gap: var(--s3);
}
.b2-login .b2-msg.is-err {
  padding: var(--s3) var(--s4);
  border-radius: var(--r-sm);
  background: #fdecec;
  font-size: 15px;
  color: #b42318;
  animation: b2Shake 0.5s var(--ease-out);
}
@keyframes b2Shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}
.b2-field--pass input {
  padding-right: 52px;
}
.b2-pass {
  position: absolute;
  top: 50%;
  right: var(--s2);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.b2-pass:hover {
  background: var(--grey);
  color: var(--ink);
}
.b2-pass svg {
  width: 22px;
  height: 22px;
}
.b2-pass .b2-eye-off {
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.b2-pass.is-on .b2-eye-off {
  opacity: 1;
}
.b2-login__submit {
  width: 100%;
  margin-top: var(--s2);
}
.b2-close {
  position: absolute;
  top: var(--s3);
  right: var(--s3);
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
/* крестик рисуем линиями: символ «×» в шрифте смещён от центра круга */
.b2-close::before,
.b2-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  margin: -1px 0 0 -9px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
}
.b2-close::after {
  transform: rotate(-45deg);
}
.b2-close:hover {
  background: var(--grey);
}
.b2-lightbox .b2-close {
  position: fixed;
  top: var(--s4);
  right: var(--s4);
  color: #fff;
}
.b2-lightbox .b2-close:hover {
  background: rgba(255, 255, 255, 0.14);
}
.b2-lightbox__fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  margin: 0;
  max-width: calc(100% - 144px);
  max-height: 100%;
}
.b2-lightbox__fig img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: var(--r-sm);
  object-fit: contain;
  cursor: default;
}
.b2-lightbox__fig figcaption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-align: center;
}
.b2-lightbox__nav {
  position: fixed;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.b2-lightbox__nav:hover {
  background: #fff;
  color: var(--ink);
}
.b2-lightbox__nav .b2-chev {
  margin: 0 3px 0 0;
}
.b2-lightbox__nav .b2-chev--back {
  margin: 0 0 0 3px;
}
.b2-lightbox__nav--prev {
  left: var(--s5);
}
.b2-lightbox__nav--next {
  right: var(--s5);
}

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .b2-burger {
    display: block;
  }
  .b2-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s2) var(--gutter) var(--s5);
    border-bottom: 1px solid var(--line);
    background: var(--canvas);
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    translate: 0 -8px;
    transition: opacity 0.25s var(--ease), translate 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .is-open .b2-nav {
    opacity: 1;
    visibility: visible;
    translate: 0 0;
    transition-delay: 0s;
  }
  .b2-nav a {
    height: 52px;
    padding: 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    opacity: 1;
  }
  .b2-nav a:last-child {
    border-bottom: 0;
  }
  .b2-promo {
    grid-template-columns: minmax(0, 1fr);
  }
  .b2-grid--4,
  .b2-gal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .b2-promo {
    grid-template-columns: minmax(0, 1fr);
  }
  .b2-footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s7);
  }
}
@media (max-width: 900px) {
  .b2-contact {
    grid-template-columns: minmax(0, 1fr);
  }
  .b2-contact__side {
    min-height: 0;
    padding: var(--s8) var(--s6) var(--s7);
  }
  .b2-form {
    padding: var(--s7) var(--s6);
  }
  #videos > .b2-wrap,
  #system > .b2-wrap {
    padding: var(--s7) var(--s6);
  }
  .b2-feat .b2-feat__box {
    flex-direction: column;
  }
  .b2-feat__img {
    flex: none;
  }
  .b2-feat__body {
    padding: var(--s5);
  }
  .b2-videos,
  .b2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .b2-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .b2 {
    font-size: 16px;
  }
  .b2-header__right {
    gap: var(--s1);
  }
  .b2-logo {
    font-size: 16px;
  }
  .b2-hero__cta {
    width: 100%;
  }
  .b2-hero__cta .b2-btn {
    flex: 1 1 auto;
  }
  .b2-grid,
  .b2-grid--4,
  .b2-videos {
    grid-template-columns: minmax(0, 1fr);
  }
  .b2-gal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s3);
  }
  .b2-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .b2-head--spaced {
    margin-top: var(--s8);
  }
  .b2-neighbors {
    grid-template-columns: minmax(0, 1fr);
  }
  .b2-neighbor--next {
    grid-column: 1;
  }
  .b2-lightbox__fig {
    max-width: 100%;
  }
  .b2-lightbox__nav {
    top: auto;
    bottom: var(--s4);
    margin-top: 0;
  }
  .b2-lightbox__nav--prev {
    left: calc(50% - 56px);
  }
  .b2-lightbox__nav--next {
    right: calc(50% - 56px);
  }
  .b2-car__track {
    gap: var(--s4);
  }
  .b2-car__track > * {
    flex-basis: 78vw;
  }
  .b2-car__arrows {
    display: none;
  }
  .b2-form__row {
    grid-template-columns: minmax(0, 1fr);
  }
  .b2-article {
    font-size: 17px;
  }
  .b2-modal {
    align-items: flex-end;
    padding: var(--s3);
  }
  .b2-modal__box {
    max-height: calc(100vh - var(--s6));
    overflow-y: auto;
    border-radius: 28px;
  }
  .b2-login {
    grid-template-columns: minmax(0, 1fr);
  }
  .b2-login__side {
    min-height: 0;
    padding: var(--s5);
    border-radius: 28px 28px 0 0;
  }
  .b2-login__side p {
    display: none;
  }
  .b2-login__main {
    padding: var(--s6) var(--s5) var(--s6);
    border-radius: 0 0 28px 28px;
  }
  .b2-login__main h2 {
    font-size: 32px;
  }
  #videos > .b2-wrap,
  #system > .b2-wrap {
    padding: var(--s7) var(--s5);
    border-radius: 28px;
  }
  .b2-contact {
    border-radius: 28px;
  }
  .b2-contact__side {
    padding: var(--s8) var(--s5) var(--s6);
  }
  .b2-form {
    padding: var(--s6) var(--s5) var(--s7);
  }
  .b2-more__in {
    margin: -8px;
    padding: 8px;
  }
}

/* «Уменьшить движение»: без перемещений и масштаба, плавные смены цвета остаются */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .b2-fade {
    animation: b2In 0.5s var(--ease-out) both;
  }
  .b2-zoom > img {
    transition: none;
    scale: none !important;
  }
  .b2-nav {
    translate: none !important;
  }
  .b2-more,
  .b2-more .b2-video,
  .b2-post__text,
  .b2-post::before,
  .b2-hover::before {
    transition-duration: 0.01s;
  }
}

/* ---------- фото со скруглёнными углами: без светлой и тёмной каймы ----------
   Кайма возникала из-за подложки под фото: края скругления сглаживаются и подмешивают цвет контейнера.
   Поэтому подложки убраны (фон остаётся только у текстовой части), а фото чуть шире рамки,
   чтобы на дробных пикселях между ним и краем не оставалось зазора. */
.b2-feat__box,
.b2-card__box,
.b2-section--grey .b2-feat__box,
.b2-section--grey .b2-card__box,
.b2 .b2-hover:is(:hover, .is-hovered, :focus-visible) :is(.b2-feat__box, .b2-card__box) {
  background: transparent;
}
.b2-card__body {
  background: var(--grey);
}
.b2-section--grey .b2-card__body {
  background: var(--canvas);
}
.b2-feat__img,
.b2-card__img,
.b2-cover,
.b2-promo__img,
.b2-post,
.b2-video,
.b2-section--grey .b2-post {
  background: transparent;
}
.b2-zoom {
  isolation: isolate;
}
.b2-zoom > img {
  width: calc(100% + 1px);
  height: calc(100% + 1px);
  max-width: none;
  margin: -0.5px;
}
/* у роликов YouTube в превью бывают чёрные полосы сверху и снизу: слегка увеличиваем кадр, чтобы они ушли за край */
.b2-video .b2-zoom > img {
  scale: 1.03;
}
@media (hover: hover) {
  .b2-hover:hover .b2-video .b2-zoom > img {
    scale: 1.07;
  }
}

/* ---------- страница новости: удобное чтение ---------- */
/* полоса прогресса под шапкой */
.b2-progress {
  position: fixed;
  z-index: 49;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: 3px;
  pointer-events: none;
}
.b2-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
/* вводный абзац под заголовком */
.b2-lead {
  max-width: 34em;
  margin: 0 0 var(--s5);
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.016em;
  color: var(--ink-2);
  text-wrap: pretty;
}
.b2-meta--row {
  justify-content: space-between;
  gap: var(--s3) var(--s5);
}
/* переключатель размера текста */
.b2-textsize {
  display: inline-flex;
  gap: var(--s1);
}
.b2-textsize button {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 var(--s3);
  border: 0;
  border-radius: var(--pill);
  background: var(--grey);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 36px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.b2-textsize button small {
  font-size: 13px;
  font-weight: 700;
}
.b2-textsize button:hover:not(:disabled) {
  background: #e4e4ea;
}
.b2-textsize button:disabled {
  opacity: 0.4;
  cursor: default;
}
.b2-textsize button[data-size="-1"] {
  font-size: 14px;
}
/* содержание */
.b2-toc {
  margin: 0 0 var(--s7);
  padding: var(--s5) var(--s6);
  border-radius: var(--r-md);
  background: var(--grey);
}
.b2-toc[hidden] {
  display: none;
}
.b2-toc strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.b2-toc ol {
  margin: var(--s3) 0 0;
  padding: 0 0 0 var(--s5);
}
.b2-toc li {
  padding: var(--s1) 0;
  font-size: 16px;
  line-height: 1.35;
  color: var(--muted);
}
.b2-toc li::marker {
  color: var(--accent);
  font-weight: 600;
}
.b2-toc a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s var(--ease), color 0.2s var(--ease);
}
.b2-toc a:hover,
.b2-toc a.is-active {
  color: var(--ink);
  text-decoration-color: var(--accent);
}
.b2-toc a.is-active {
  font-weight: 600;
}
/* сам текст: комфортный размер, интерлиньяж и ритм абзацев */
.b2-article {
  font-size: var(--read-size, 20px);
  line-height: 1.75;
  letter-spacing: -0.011em;
  color: #26262b;
  text-wrap: pretty;
  transition: font-size 0.2s var(--ease);
}
.b2-article p {
  margin: 0 0 1.25em;
}
.b2-article strong,
.b2-article b {
  font-weight: 600;
  color: var(--ink);
}
.b2-article h2,
.b2-article h3,
.b2-article h4 {
  text-wrap: balance;
  scroll-margin-top: var(--s7);
}
.b2-article h2 {
  margin: 2.1em 0 0.6em;
  font-size: 1.5em;
  line-height: 1.2;
}
.b2-article h3 {
  margin: 1.8em 0 0.5em;
  font-size: 1.2em;
}
.b2-article ul,
.b2-article ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}
.b2-article li {
  padding-left: 0.2em;
}
.b2-article li + li {
  margin-top: 0.45em;
}
.b2-article li::marker {
  color: var(--accent);
}
.b2-article blockquote {
  margin: 1.8em 0;
  padding: var(--s5) var(--s6);
  border-radius: var(--r-md);
  background: var(--grey);
  font-size: 1.1em;
  line-height: 1.55;
}
.b2-article blockquote p:last-child {
  margin-bottom: 0;
}
.b2-article img {
  margin: 1.8em auto;
}
.b2-article tr:nth-child(even) {
  background: var(--grey);
}
.b2-article td,
.b2-article th {
  padding: var(--s3) var(--s4);
  font-size: 0.9em;
}
.b2-article hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .b2-article {
    font-size: var(--read-size, 18px);
    line-height: 1.7;
  }
  .b2-toc {
    padding: var(--s4) var(--s5);
  }
}

/* текст из Word приходит со своими встроенными размерами, цветами и ширинами: приводим к единому виду */
.b2-article :is(p, span, li, strong, b, em, i, a, td, th, div) {
  font-size: inherit !important;
  font-family: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  background: transparent !important;
}
.b2-article figure,
.b2-article figure img,
.b2-article img {
  max-width: 100% !important;
  height: auto !important;
}
.b2-article figure {
  width: 100% !important;
  margin: 1.8em 0;
}
.b2-article figure img {
  width: 100% !important;
  margin: 0;
  border-radius: var(--r-md);
}
.b2-article figure + figure {
  margin-top: 1.2em;
}

/* в ленте новостей и у главной новости оранжевой плашки нет: только подъём, тень, зум фото и подчёркивание заголовка */
.b2-car .b2-hover::before,
.b2-feat.b2-hover::before {
  display: none;
}

/* внутренняя страница новости: широкая область чтения, текст и картинки по одной ширине */
.b2-wrap--read {
  max-width: 960px;
}
.b2-wrap--read .b2-lead {
  max-width: 40em;
}

/* ---------- теги ---------- */
.b2-chips,
.b2-chips--labeled {
  display: none;
}
.b2-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s5);
}
.b2-tag {
  flex: none;
  gap: 2px;
  height: 36px;
  padding: 0 var(--s4);
  border: 1px solid var(--line);
  background: var(--canvas);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.3s var(--ease-out);
}
.b2-tag__hash {
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s var(--ease);
}
.b2-tag small {
  margin-left: var(--s1);
  padding: 1px 7px;
  border-radius: var(--pill);
  background: var(--grey);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
@media (hover: hover) {
  .b2-tag:hover {
    border-color: var(--accent);
    background: rgba(235, 104, 34, 0.08);
    color: var(--ink);
    transform: translateY(-1px);
  }
}
.b2-tag.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.b2-tag.is-active .b2-tag__hash {
  color: var(--accent);
}
.b2-tag.is-active small {
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
}
/* «Ещё теги»: кнопка в конце видимых тегов, остальные раскрываются полосой ниже */
.b2-tags__more {
  order: 1;
  flex: none;
  height: 36px;
  padding: 0 var(--s4);
  border: 1px dashed var(--line2);
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.b2-tags__more:hover {
  border-color: var(--ink);
}
.b2-tags__more .b2-chev--down {
  margin-left: var(--s2);
}
.b2-tags__more.is-open .b2-chev--down {
  transform: translateY(3px) rotate(-45deg);
}
.b2-tags__extra {
  order: 2;
  display: grid;
  flex: 0 0 100%;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.6s var(--ease-out), visibility 0s linear 0.6s;
}
.b2-tags__extra.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s;
}
.b2-tags__in {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  min-height: 0;
  margin: -4px;
  padding: 4px;
  overflow: hidden;
}
.b2-tags__extra .b2-tag {
  opacity: 0;
  translate: 0 8px;
  transition: opacity 0.4s var(--ease-out) 0.1s, translate 0.5s var(--ease-out) 0.1s, border-color 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.b2-tags__extra.is-open .b2-tag {
  opacity: 1;
  translate: 0 0;
}
/* теги внизу статьи */
.b2-tags--article {
  margin: var(--s7) 0 0;
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}
.b2-tags__label {
  margin-right: var(--s2);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.b2-page-head .b2-tags {
  margin-top: var(--s5);
}

/* список тегов: одна строка + плавное раскрытие по кнопке */
.b2-tagbox {
  margin-top: var(--s5);
}
.b2-tagbox .b2-tags {
  margin-top: 0;
}
.b2-tagbox__clip {
  margin: -4px;
  padding: 4px;
  overflow: hidden;
  transition: height 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.b2-tagbox__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  margin-top: var(--s3);
  padding: var(--s2) 0;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.b2-tagbox__btn[hidden] {
  display: none;
}
.b2-tagbox__btn span {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.b2-tagbox__btn .b2-chev--down {
  margin: -3px 0 0 var(--s2);
}
.b2-tagbox__btn.is-open .b2-chev--down {
  transform: translateY(3px) rotate(-45deg);
}

/* главная новость: простое проявление */
.b2-fadein {
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.b2-fadein.is-in-view {
  opacity: 1;
}

/* ---------- появление блоков при прокрутке ---------- */
/* направления, видео, галерея: карточки плавно выплывают снизу по очереди */
.b2-rise {
  opacity: 0;
  translate: 0 36px;
  scale: 0.97;
  transition: opacity 0.9s var(--ease-out) var(--d, 0ms), translate 1.1s var(--ease-out) var(--d, 0ms), scale 1.1s var(--ease-out) var(--d, 0ms);
}
.b2-rise.is-in-view {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}
/* остальные блоки: просто fade in */
.b2-reveal-fade {
  opacity: 0;
  transition: opacity 0.9s var(--ease) var(--d, 0ms);
}
.b2-reveal-fade.is-in-view {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .b2-rise {
    translate: none;
    scale: none;
  }
}

/* ---------- кнопка «Войти» на первом экране: заливка слева направо ---------- */
.b2-fill {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  height: 56px;
  padding: 0 var(--s7);
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 600 18px/1 var(--font);
  letter-spacing: -0.01em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  transition: color 0.15s var(--ease), border-color 0.3s var(--ease), box-shadow 0.5s var(--ease-out);
}
/* заливка расходится кругом от левого края и накрывает кнопку слева направо */
.b2-fill::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(100deg, #ff8a4c 0%, var(--accent) 60%, #f07a38 100%);
  clip-path: circle(0 at 0% 50%);
  transition: clip-path 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.b2-fill > span {
  transition: transform 0.6s var(--ease-out);
}
.b2-fill .b2-chev {
  margin: 0;
  transition: transform 0.6s var(--ease-out);
}
@media (hover: hover) {
  .b2-fill:hover::before {
    clip-path: circle(150% at 0% 50%);
  }
  .b2-fill:hover {
    border-color: var(--accent);
    color: var(--ink);
    /* текст темнеет, только когда заливка его уже накрыла */
    transition: color 0.15s var(--ease) 0.2s, border-color 0.3s var(--ease), box-shadow 0.5s var(--ease-out);
    box-shadow: 0 18px 40px -18px rgba(235, 104, 34, 0.75);
  }
  .b2-fill:hover > span {
    transform: translateX(-2px);
  }
  .b2-fill:hover .b2-chev {
    transform: translateX(6px) rotate(45deg);
  }
}
.b2-fill:focus-visible::before {
  clip-path: circle(150% at 0% 50%);
}
.b2-fill:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
}
.b2-fill:active {
  scale: 0.98;
}

/* ---------- единая анимация наведения для всех кнопок: заливка кругом от левого края ---------- */
.b2-btn,
.b2-car__btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.b2-btn::before,
.b2-car__btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--fill, var(--ink));
  clip-path: circle(0 at 0% 50%);
  transition: clip-path 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}
.b2-btn--outline,
.b2-btn--glass,
.b2-car__btn {
  --fill: var(--accent);
}
.b2-btn:disabled::before {
  display: none;
}
.b2-btn,
.b2-car__btn {
  transition: color 0.15s var(--ease), border-color 0.3s var(--ease);
}
@media (hover: hover) {
  .b2 .b2-btn:hover:not(:disabled)::before,
  .b2 .b2-car__btn:hover:not(:disabled)::before {
    clip-path: circle(150% at 0% 50%);
  }
  /* основная оранжевая: заливается тёмным, текст белеет */
  .b2 .b2-btn:hover:not(:disabled) {
    border-color: var(--ink);
    background: var(--accent);
    color: #fff;
    transition: color 0.15s var(--ease) 0.2s, border-color 0.3s var(--ease);
  }
  /* контурные и стеклянные: заливаются оранжевым, текст остаётся тёмным */
  .b2 .b2-btn--outline:hover:not(:disabled),
  .b2 .b2-btn--glass:hover:not(:disabled) {
    border-color: var(--accent);
    background: transparent;
    color: var(--ink);
  }
  .b2-hero .b2-btn--outline:hover:not(:disabled),
  .b2 .b2-btn--glass:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.16);
  }
  .b2 .b2-car__btn:hover:not(:disabled) {
    border-color: var(--accent);
    background: var(--canvas);
    color: var(--ink);
    transition: color 0.15s var(--ease) 0.2s, border-color 0.3s var(--ease);
  }
}
.b2 .b2-btn:focus-visible::before,
.b2 .b2-car__btn:focus-visible::before {
  clip-path: circle(150% at 0% 50%);
}

/* =====================================================================
   Переключатель темы и тёмная тема
   Тема задаётся атрибутом data-theme на <html>: "light" или "dark".
   ===================================================================== */
.b2-theme {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease), background-color 0.3s var(--ease);
}
.b2-theme:hover {
  opacity: 1;
  background: rgba(127, 127, 127, 0.18);
}
.b2-theme svg {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: transform 0.6s var(--ease-out), opacity 0.35s var(--ease);
}
/* в светлой теме виден месяц (переключит на тёмную), в тёмной - солнце */
.b2-theme__sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
}
.b2-theme__moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}
html[data-theme="dark"] .b2-theme__sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}
html[data-theme="dark"] .b2-theme__moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.4);
}

/* плавная смена цветов при переключении (класс живёт полсекунды) */
.b2-theme-anim,
.b2-theme-anim *,
.b2-theme-anim *::before,
.b2-theme-anim *::after {
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), fill 0.4s var(--ease), box-shadow 0.4s var(--ease) !important;
}

html[data-theme="dark"] {
  color-scheme: dark;
}
html[data-theme="dark"] .b2 {
  --ink: #f5f5f7;
  --ink-2: #d1d1d6;
  --muted: #a1a1a8;
  --line: #34343a;
  --line2: #4a4a52;
  --canvas: #0b0b0d;
  --grey: #17171a;
  --card2: #1e1e22;
  --stage-text: #f5f5f7;
  --stage-muted: #b4b4ba;
  --dot: rgba(150, 160, 185, 0.2);
  --grey-grad: radial-gradient(1200px 680px at 6% -12%, rgba(110, 125, 160, 0.16), rgba(110, 125, 160, 0.05) 48%, transparent 74%),
    radial-gradient(1000px 620px at 100% 112%, rgba(235, 104, 34, 0.08), rgba(235, 104, 34, 0.03) 48%, transparent 74%),
    linear-gradient(180deg, #141417 0%, #101012 100%);
  --apple-grad: radial-gradient(900px 560px at 96% -10%, rgba(235, 104, 34, 0.26) 0%, rgba(235, 104, 34, 0.1) 38%, transparent 74%),
    radial-gradient(800px 540px at 104% 78%, rgba(150, 110, 255, 0.2) 0%, rgba(150, 110, 255, 0.08) 40%, transparent 74%),
    radial-gradient(920px 620px at -6% 108%, rgba(60, 130, 255, 0.22) 0%, rgba(60, 130, 255, 0.08) 40%, transparent 76%),
    radial-gradient(840px 560px at 4% -12%, rgba(120, 130, 170, 0.2) 0%, rgba(120, 130, 170, 0.07) 40%, transparent 76%),
    linear-gradient(180deg, #151518 0%, #111114 100%);
  --apple-grad-sm: radial-gradient(540px 360px at 98% -12%, rgba(235, 104, 34, 0.26) 0%, rgba(235, 104, 34, 0.1) 38%, transparent 74%),
    radial-gradient(480px 340px at 106% 80%, rgba(150, 110, 255, 0.2) 0%, rgba(150, 110, 255, 0.08) 40%, transparent 74%),
    radial-gradient(560px 380px at -8% 112%, rgba(60, 130, 255, 0.22) 0%, rgba(60, 130, 255, 0.08) 40%, transparent 76%),
    radial-gradient(500px 360px at 2% -14%, rgba(120, 130, 170, 0.2) 0%, rgba(120, 130, 170, 0.07) 40%, transparent 76%),
    linear-gradient(180deg, #151518 0%, #111114 100%);
  scrollbar-color: #4a4a52 transparent;
}

/* шапка */
html[data-theme="dark"] .b2-header.is-scrolled,
html[data-theme="dark"] .b2-header.is-open {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(11, 11, 13, 0.82);
}

/* карточки на серых секциях чуть светлее самой секции */
html[data-theme="dark"] .b2 .b2-section--grey .b2-feat__box,
html[data-theme="dark"] .b2 .b2-section--grey .b2-job__box,
html[data-theme="dark"] .b2 .b2-section--grey .b2-card__body,
html[data-theme="dark"] .b2 .b2-section--grey .b2-post__text,
html[data-theme="dark"] .b2 .b2-section--grey .b2-contact {
  background: var(--card2);
}
html[data-theme="dark"] .b2 .b2-section--grey .b2-feat__box,
html[data-theme="dark"] .b2 .b2-section--grey .b2-card__box,
html[data-theme="dark"] .b2 .b2-section--grey .b2-post {
  background: transparent;
}
html[data-theme="dark"] #videos > .b2-wrap,
html[data-theme="dark"] #system > .b2-wrap {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* подложки изображений и мелкие поверхности */
html[data-theme="dark"] .b2-feat__img,
html[data-theme="dark"] .b2-card__img,
html[data-theme="dark"] .b2-cover {
  background: #1c1c20;
}
html[data-theme="dark"] .b2-chip:hover,
html[data-theme="dark"] .b2-neighbor:hover {
  background: #26262b;
}
html[data-theme="dark"] .b2-textsize button:hover:not(:disabled) {
  background: #2a2a2f;
}
html[data-theme="dark"] .b2-promo__img {
  background: transparent;
}

/* текст статьи */
html[data-theme="dark"] .b2-article {
  color: #e4e4e9;
}

/* кнопки и элементы с оранжевой заливкой: тёмный текст на оранжевом, светлая заливка вместо тёмной */
html[data-theme="dark"] .b2 .b2-btn {
  color: #1d1d1f;
}
html[data-theme="dark"] .b2 .b2-btn--outline {
  color: var(--ink);
}
html[data-theme="dark"] .b2 .b2-btn--glass {
  color: #fff;
}
@media (hover: hover) {
  html[data-theme="dark"] .b2 .b2-btn:hover:not(:disabled),
  html[data-theme="dark"] .b2 .b2-btn--outline:hover:not(:disabled),
  html[data-theme="dark"] .b2 .b2-car__btn:hover:not(:disabled),
  html[data-theme="dark"] .b2 .b2-fill:hover {
    color: #1d1d1f;
  }
}
html[data-theme="dark"] .b2 .b2-btn:focus-visible,
html[data-theme="dark"] .b2 .b2-fill:focus-visible {
  color: #1d1d1f;
}
html[data-theme="dark"] .b2-chip.is-active,
html[data-theme="dark"] .b2-tag.is-active {
  color: #1d1d1f;
}
html[data-theme="dark"] .b2-chip.is-active small,
html[data-theme="dark"] .b2-tag.is-active small {
  background: rgba(0, 0, 0, 0.1);
  color: rgba(29, 29, 31, 0.75);
}
html[data-theme="dark"] .b2-video__play,
html[data-theme="dark"] .b2-skip,
html[data-theme="dark"] .b2-lightbox__nav:hover,
html[data-theme="dark"] .b2-contact__list a:hover .b2-contact__ico {
  color: #1d1d1f;
}

/* форма: сообщения */
html[data-theme="dark"] .b2-msg.is-ok {
  color: #6ee7a0;
}
html[data-theme="dark"] .b2-msg.is-err {
  color: #fca5a5;
}
html[data-theme="dark"] .b2-login .b2-msg.is-err {
  background: rgba(180, 35, 24, 0.2);
  color: #fda29b;
}
html[data-theme="dark"] .b2 input,
html[data-theme="dark"] .b2 textarea {
  background: #141417;
}
html[data-theme="dark"] .b2-modal__box {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
}

/* картинки в тёмной теме чуть мягче, чтобы не слепили */
html[data-theme="dark"] .b2-feat__img img,
html[data-theme="dark"] .b2-card__img img,
html[data-theme="dark"] .b2-post__img img,
html[data-theme="dark"] .b2-cover,
html[data-theme="dark"] .b2-article img {
  filter: brightness(0.92);
}

/* ---------- glow у кнопки «Войти» на первом экране ---------- */
/* в покое мягкое оранжевое свечение «дышит», при наведении вспыхивает сильнее */
.b2-fill {
  filter: drop-shadow(0 0 10px rgba(235, 104, 34, 0.35));
  animation: b2Glow 3.2s ease-in-out infinite;
  transition: color 0.15s var(--ease), border-color 0.3s var(--ease), box-shadow 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}
@keyframes b2Glow {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(235, 104, 34, 0.28));
  }
  50% {
    filter: drop-shadow(0 0 22px rgba(235, 104, 34, 0.6));
  }
}
/* свечение не должно перебивать появление: сначала кнопка выходит, затем начинает «дышать» */
.b2-fill.b2-reveal {
  animation: b2Pop 1.1s var(--ease-out) both, b2Glow 3.2s ease-in-out infinite;
  animation-delay: 1.85s, 3s;
}
.b2-fill.b2-reveal--b2 {
  animation-delay: 2.1s, 3.2s;
}
.b2-hero__title.is-split:not(.is-go) ~ .b2-hero__cta .b2-fill.b2-reveal {
  animation-play-state: paused, paused;
}
@media (hover: hover) {
  .b2-fill:hover {
    animation: none;
    filter: drop-shadow(0 0 16px rgba(235, 104, 34, 0.85)) drop-shadow(0 0 48px rgba(235, 104, 34, 0.55));
  }
  /* гасим только свечение: если убрать и появление, после ухода курсора оно стартует заново и кнопка пропадает */
  .b2-fill.b2-reveal:hover {
    animation: b2Pop 1.1s var(--ease-out) both;
    animation-delay: 1.85s;
  }
  .b2-fill.b2-reveal--b2:hover {
    animation-delay: 2.1s;
  }
}
.b2-fill:focus-visible {
  animation: none;
  filter: drop-shadow(0 0 16px rgba(235, 104, 34, 0.85)) drop-shadow(0 0 48px rgba(235, 104, 34, 0.55));
}
.b2-fill.b2-reveal:focus-visible {
  animation: b2Pop 1.1s var(--ease-out) both;
  animation-delay: 1.85s;
}
@media (prefers-reduced-motion: reduce) {
  .b2-fill {
    animation: none;
  }
  /* появление остаётся (как у подзаголовка), отключается только свечение */
  .b2-fill.b2-reveal {
    animation: b2Pop 1.1s var(--ease-out) both;
    animation-delay: 1.85s;
  }
  .b2-fill.b2-reveal--b2 {
    animation-delay: 2.1s;
  }
}
