@charset "UTF-8";

/*---------------------------------------------------------------------------
    Проект: Биометрические сервисы
    Тёмная тема
---------------------------------------------------------------------------*/
/* Темная страница проекта */
.dark-project {
  background-color: #111111;
  color: #ffffff;
}


/* Убираем боковые padding у container */
#bio-research > .container.project-page,
#bio-limits > .container.project-page,
#bio-competition > .container.project-page,
#bio-quotes > .container.project-page,
#bio-solution > .container.project-page,
#bio-pay > .container.project-page,
#adaptives > .container.project-page,
#make-selfie > .container.project-page,
#make-selfie-errors > .container.project-page,
#bio-fact > .container.project-page,
#bio-one-image > .container.project-page,
#bio-solution .bio-user-flow > .container.project-page {
  padding-right: 0;
  padding-left: 0;
}



/* Белый мобильный burger на тёмной странице */
@media only screen and (max-width: 1024px) {
  body.project-dark-page .custom-mobile-burger {
    color: #ffffff !important;
  }

  body.project-dark-page .custom-mobile-burger span {
    background-color: #ffffff !important;
  }
}

/* При необходимости — уточнения для .project-dark-page */
body.project-dark-page {
  background-color: #111111;
}

body.project-dark-page p, 
body.project-dark-page .project-page .project-col .section-text {
  color: #c5cdd6;
}


/* Контакты внизу проекта: тёмные страницы */
body.project-dark-page .project-contact__phone,
body.project-dark-page .project-contact__tg,
body.project-dark-page .project-contact__email {
  color: #ffffff;
}

/* Заголовок блока инсайта */
body.project-dark-page .project-insight__title {
  color: #ffffff !important;
}

/* Текст инсайта */
body.project-dark-page .project-insight__text {
  color: rgba(255, 255, 255, 0.9) !important;
}

body.project-dark-page .project-insight__content {
  color: #007BF5;
}

body.project-dark-page footer.ln {border-top: solid 1px #252525;}

/* Навигация "Следующий проект" на тёмных страницах */
body.project-dark-page #project-nav .nav-title a {
  color: #545d68;
  text-decoration: none;
  transition: color 0.2s ease-out;
}

/* Название следующего проекта — почти белый */
body.project-dark-page #project-nav .nav-project-title span {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease-out;
}

/* Ховер для ссылки "далее" */
body.project-dark-page #project-nav .nav-title a:hover {
  color: #ffffff;
}


/* ============================================
   Оглавление кейса
   ============================================ */

.bio-toc-row {
  background-color: #111111;
  color: #ffffff;
}

.bio-toc {
  width: 100%;
  margin: 80px 0 64px;
  box-sizing: border-box;
}

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

.bio-toc__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  column-gap: 64px;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}


/* ============================================
   Содержание — левая колонка
   ============================================ */

.bio-toc__left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 24px;
}

.bio-toc__title {
  margin: 0 0 60px;
  color: #ffffff;
  font-family: 'Headline Bold', sans-serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
}

.bio-toc__title-line {
  display: block;
}

.bio-toc__description {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: 'Onest-Regular', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.bio-toc__visual {
  width: 100%;
  max-width: 380px;
  margin-top: 16px;
}

.bio-toc__visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}


/* ============================================
   Содержание — правая колонка
   ============================================ */

.bio-toc__right {
  justify-self: end;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 480px;
  gap: 32px;
  padding-top: 8px;
}

.bio-toc__meta {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  gap: 8px;
  margin: 0;
  padding: 0;
  background: transparent;
}

.bio-toc__meta-item {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 6px;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #ffffff;
  font-family: 'Onest-Regular', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.bio-toc__meta-label {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.5);
}

.bio-toc__meta-value {
  min-width: 0;
  color: #ffffff;
}


/* ============================================
   Содержание — навигация
   ============================================ */

.bio-toc__nav {
  position: relative;
  display: flex;
  flex-direction: column;
  float: none;
  clear: both;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  margin: 80px 0 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  color: #ffffff;
}

.bio-toc__list {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #ffffff;
}

.bio-toc__item {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #ffffff;
}

.bio-toc__link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 14px 0;
  overflow: visible;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease-out;
}

.bio-toc__link:hover,
.bio-toc__link:focus-visible {
  background: transparent;
  color: #ffffff;
}

.bio-toc__num {
  flex: 0 0 24px;
  min-width: 24px;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Fact Expanded Bold', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.bio-toc__link:hover .bio-toc__num,
.bio-toc__link:focus-visible .bio-toc__num {
  color: #ffffff;
}

.bio-toc__text {
  display: block;
  min-width: 0;
  color: #ffffff;
  font-family: 'Onest-Regular', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  transition: color 0.2s ease;
}


/* ============================================
   Содержание — подчёркивание при наведении
   ============================================ */

.bio-toc__link::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: right center;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease-out;
  pointer-events: none;
}

.bio-toc__link:hover::after,
.bio-toc__link:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
  transform-origin: left center;
}

.bio-toc__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 6px;
}


/* ============================================
   Блок «О проекте»
   ============================================ */

.bio-about-row {
  background: radial-gradient(
    circle at 100% 100%,
    #1e2a32 0%,
    #111111 72%
  );
  color: #ffffff;
}

.bio-about {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

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


/* Заголовок блока */

.bio-about__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

.bio-about__title {
  margin: 0;
  color: #ffffff;
  font-family: 'Headline Bold', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}

.bio-about__icon {
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: #ffffff;
  opacity: 0.4;
}


/* Разделитель под заголовком */

.bio-about__divider {
  width: 100%;
  height: 1px;
  margin: 16px 0 40px;
  background-color: #495D6D;
}


/* Смысловые строки */

.bio-about__row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  margin: 0 0 40px;
  padding: 0;
  text-align: left;
}

.bio-about__row:last-child {
  margin-bottom: 0;
}

.bio-about__label {
  flex: 0 0 220px;
  width: 220px;
  padding-top: 2px;
  color: #a1bce3;
  font-family: 'Headline Bold', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-align: left;
  text-transform: uppercase;
}

.bio-about__content {
  flex: 1 1 auto;
  min-width: 0;
  color: #c5cdd6;
  font-family: 'Onest-Regular', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}

.bio-about__content p {
  margin: 0 0 12px;
  text-align: left;
}

.bio-about__content p:last-child {
  margin-bottom: 0;
}


/* Разделители только под контентной колонкой */

.bio-about__row + .bio-about__row {
  padding-top: 24px;
}

.bio-about__row + .bio-about__row::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 260px;
  width: auto;
  height: 1px;
  background-color: rgba(186, 207, 255, 0.30);
}


/* Решение */

.bio-about__solution-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.bio-about__solution-list li {
  position: relative;
  margin: 0 0 14px;
  padding-left: 24px;
  color: #c5cdd6;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}

.bio-about__solution-list li:last-child {
  margin-bottom: 0;
}

.bio-about__solution-list li::before {
  content: "—";
  position: absolute;
  top: 0;
  left: 0;
  color: #8a95a5;
}

.bio-about__solution-name {
  color: #ffffff;
  font-family: "Onest-SemiBold", sans-serif;
}


/* Результаты */

.bio-about__row--result {
  margin-bottom: 0;
}

.bio-about__result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  text-align: left;
}

.bio-about__result-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 140px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background-color: #151b20;
  background-image:
    linear-gradient(
      135deg,
      rgba(10, 14, 18, 0.6) 0%,
      rgba(10, 14, 18, 0.4) 100%
    ),
    url("../images/projects/biometric/bg-result-card.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: left;
}

.bio-about__result-card-text {
  min-width: 0;
  text-align: left;
}

.bio-about__result-label {
  margin: 0 0 16px;
  color: #a0abb8;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
}

.bio-about__result-value {
  color: #ffffff;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  text-align: left;
}

.bio-about__result-sub {
  margin-top: 6px;
  color: #8a95a5;
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
}


/* ============================================
   Адаптив: до 1200px
   ============================================ */

@media only screen and (max-width: 1200px) {
  .bio-toc__inner {
    column-gap: 48px;
  }

  .bio-toc__title {
    font-size: 38px;
  }
}


/* ============================================
   Адаптив: до 1024px
   ============================================ */

@media only screen and (max-width: 1024px) {
  .bio-toc {
    margin: 64px 0;
  }

  .bio-toc__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 40px;
  }

  .bio-toc__left,
  .bio-toc__right {
    min-width: 0;
    max-width: 100%;
  }

  .bio-toc__right {
    justify-self: stretch;
    width: 100%;
  }

  .bio-toc__title {
    font-size: 34px;
  }

  .bio-toc__description {
    max-width: 480px;
    font-size: 15px;
  }

  .bio-toc__visual {
    max-width: 300px;
  }

  .bio-toc__nav {
    margin-top: 64px;
  }

  .bio-about__row {
    gap: 32px;
  }

  .bio-about__label {
    flex-basis: 180px;
    width: 180px;
  }

  .bio-about__row + .bio-about__row::before {
    left: 212px;
  }

  .bio-about__result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ============================================
   Адаптив: до 767px
   ============================================ */

@media only screen and (max-width: 767px) {
  .bio-toc {
    margin: 48px 0;
  }

  .bio-toc__inner {
    display: block;
  }

  .bio-toc__title {
    margin-bottom: 32px;
    font-size: 30px;
  }

  .bio-toc__description {
    max-width: none;
    font-size: 15px;
  }

  .bio-toc__visual {
    display: none;
  }

  .bio-toc__right {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 40px;
    padding-top: 0;
  }

  .bio-toc__meta {
    width: 100%;
  }

  .bio-toc__nav {
    display: none !important;
  }

  .bio-about__title {
    font-size: 24px;
  }

  .bio-about__icon {
    width: 28px;
    height: 28px;
  }

  .bio-about__divider {
    margin-bottom: 32px;
  }

  .bio-about__row {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
  }

  .bio-about__row + .bio-about__row {
    padding-top: 20px;
  }

  .bio-about__row + .bio-about__row::before {
    right: 0;
    left: 0;
    width: 100%;
    background-color: rgba(186, 207, 255, 0.45);
  }

  .bio-about__label {
    flex: none;
    width: 100%;
    padding-top: 0;
    font-size: 12px;
  }

  .bio-about__content {
    width: 100%;
    font-size: 14px;
  }

  .bio-about__solution-list li {
    font-size: 14px;
  }

  .bio-about__result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .bio-about__result-card {
    min-height: 120px;
    padding: 16px;
  }

  .bio-about__result-label {
    margin-bottom: 12px;
  }

  .bio-about__result-value {
    font-size: 28px;
  }
}


/* ============================================
   Адаптив: до 479px
   ============================================ */

@media only screen and (max-width: 479px) {
  .bio-toc {
    margin: 40px 0;
  }

  .bio-toc__title {
    margin-bottom: 24px;
    font-size: 26px;
    letter-spacing: -0.5px;
  }

  .bio-toc__description {
    font-size: 14px;
    line-height: 1.6;
  }

  .bio-toc__meta-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
  }

  .bio-about__title {
    font-size: 20px;
    letter-spacing: 0.04em;
  }

  .bio-about__icon {
    width: 24px;
    height: 24px;
  }

  .bio-about__divider {
    margin: 16px 0 28px;
  }

  .bio-about__row {
    margin-bottom: 28px;
  }

  .bio-about__row + .bio-about__row {
    padding-top: 18px;
  }

  .bio-about__label {
    font-size: 11px;
  }

  .bio-about__content {
    font-size: 14px;
    line-height: 1.55;
  }

  .bio-about__solution-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    font-size: 14px;
  }

  .bio-about__result-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bio-about__result-card {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    min-height: auto;
    padding: 16px;
  }

  .bio-about__result-card-text {
    flex: 1;
  }

  .bio-about__result-label {
    margin-bottom: 4px;
    font-size: 13px;
  }

  .bio-about__result-value {
    font-size: 24px;
  }

  .bio-about__result-sub {
    margin-top: 2px;
  }
}


/* ============================================
   Уменьшение анимаций
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .bio-toc__link,
  .bio-toc__num,
  .bio-toc__text,
  .bio-toc__link::before,
  .bio-about__icon,
  .bio-about__result-card {
    transition: none;
  }
}


/* ============================================
   Блок 1. «Контекст и постановка задачи»
   ============================================ */

.bio-context-row {
  background-color: #111111;
  color: #ffffff;
}

.bio-context {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

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


/* ============================================
   Заголовок блока
   ============================================ */

.bio-context__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.bio-context__title {
  max-width: calc(100% - 56px);
  margin: 0;

  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bio-context__icon {
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: #ffffff;
  opacity: 0.4;
}

.bio-context__divider {
  width: 100%;
  height: 1px;
  margin: 16px 0 40px;
  background-color: #495D6D;
}


/* ============================================
   1.1. Что такое биометрия
   ============================================ */

.bio-context__subtitle {
  margin: 0 0 24px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.bio-context__main {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
  margin: 0 0 32px;
}

.bio-context__text {
  flex: 1 1 55%;
  min-width: 0;
  max-width: 55%;
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.bio-context__text p {
  margin: 0 0 16px;
}

.bio-context__text p:last-child {
  margin-bottom: 0;
}

.bio-context__list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.bio-context__list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 20px;
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.bio-context__list li:last-child {
  margin-bottom: 0;
}

.bio-context__list li::before {
  content: "•";
  position: absolute;
  top: 0;
  left: 0;
  color: #8a95a5;
}


/* Визуальная область 1.1 */

.bio-context__visual {
  flex: 1 1 45%;
  min-width: 0;
  max-width: 45%;
}

.bio-context__visual-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 24px;
  border: 0;
  border-radius: 16px;
  background-image: url("../images/projects/biometric/biometric-woman-in-room.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}


/* ============================================
   Регуляторный контекст
   ============================================ */

.bio-context__law {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
}

.bio-context__law-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
}

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

.bio-context__law-content {
  flex: 1 1 auto;
  min-width: 0;
}

.bio-context__law-title {
  margin: 0 0 8px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.bio-context__law-text {
  margin: 0;
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}


/* ============================================
   1.2. Проблема
   ============================================ */

.bio-context__problem {
  margin-top: 72px;
}

.bio-context__problem-title {
  margin: 0 0 32px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* Текст слева и скрин до редизайна справа */

.bio-context__problem-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: start;
  gap: 48px;
  width: 100%;
  margin: 0 0 32px;
}

.bio-context__problem-text {
  min-width: 0;
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.bio-context__problem-text p {
  margin: 0;
}

.bio-context__problem-text p + p {
  margin-top: 20px;
}


.bio-context__problem-paradox {
  margin-top: 28px !important;
  color: #ffffff;
  font-family: "Onest-Bold", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* Экран старого раздела */

.bio-context__problem-visual {
  min-width: 0;
  margin: 0;
}

.bio-context__problem-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

.bio-context__problem-caption {
  margin-top: 12px;
  color: #989ea7;
  font-family: "Onest-Regular", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.bio-context__problem-caption a {
  color: #4D3AFF !important;
}

.bio-context__problem-caption a:hover {
  color: #ffffff !important;
}


/* Вступление перед карточками */

.bio-context__problem-intro {
  margin: 0 0 24px;
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}


/* Три ключевые проблемы */

.bio-context__problem-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin: 24px 0px;
  padding: 0;
  list-style: none;
}

.bio-context__problem-item {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.bio-context__problem-item-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.bio-context__problem-item-number {
  flex: 0 0 auto;
  white-space: nowrap;
}

.bio-context__problem-item-heading {
  min-width: 0;
}

.bio-context__problem-item-text {
  margin: 0;
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}


/* Сводный эффект */

.bio-context__problem-result {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.05) 100%);
}

.bio-context__problem-result-title {
  margin: 0 0 8px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.bio-context__problem-result-text {
  margin: 0;
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}


/* ============================================
   Адаптив: до 1200px
   ============================================ */

@media only screen and (max-width: 1200px) {
  .bio-context__title {
    font-size: 26px;
  }

  .bio-context__main {
    gap: 28px;
  }

  .bio-context__problem-top {
    gap: 32px;
  }
}

.bio-context__problem-paradox {
    font-size: 22px;
  }
/* ============================================
   Адаптив: до 1024px
   ============================================ */

@media only screen and (max-width: 1024px) {
  .bio-context__title {
    font-size: 24px;
  }

  .bio-context__subtitle,
  .bio-context__problem-title {
    font-size: 20px;
  }

  .bio-context__main {
    gap: 24px;
  }

  .bio-context__text,
  .bio-context__text p,
  .bio-context__list li,
  .bio-context__problem-text,
  .bio-context__problem-intro {
    font-size: 15px;
  }

  .bio-context__law {
    padding: 20px;
  }

  .bio-context__problem-top {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.75fr);
    gap: 24px;
  }

  .bio-context__problem-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bio-context__problem-item:last-child {
    grid-column: span 2;
  }
}


/* ============================================
   Адаптив: до 767px
   ============================================ */

@media only screen and (max-width: 767px) {
  .bio-context__title {
    max-width: calc(100% - 48px);
    font-size: 22px;
  }

  .bio-context__icon {
    width: 28px;
    height: 28px;
  }

  .bio-context__divider {
    margin-bottom: 32px;
  }

  .bio-context__subtitle,
  .bio-context__problem-title {
    margin-bottom: 20px;
    font-size: 20px;
  }

  .bio-context__main {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
  }

  .bio-context__text,
  .bio-context__visual {
    width: 100%;
    max-width: 100%;
  }

  .bio-context__visual {
    order: -1;
  }

  .bio-context__visual-placeholder {
    aspect-ratio: 16 / 9;
  }

  .bio-context__law {
    gap: 16px;
    padding: 20px;
  }

  .bio-context__law-icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .bio-context__law-title {
    font-size: 16px;
  }

  .bio-context__problem {
    margin-top: 48px;
  }

  .bio-context__problem-top {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 28px;
  }

  .bio-context__problem-list {
    grid-template-columns: 1fr;
  }

  .bio-context__problem-item:last-child {
    grid-column: auto;
  }

  .bio-context__problem-item,
  .bio-context__problem-result {
    padding: 20px;
  }
}

.bio-context__problem-paradox {
    margin-top: 24px !important;
    font-size: 20px;
  }


/* ============================================
   Адаптив: до 479px
   ============================================ */

@media only screen and (max-width: 479px) {
  .bio-context__title {
    max-width: calc(100% - 40px);
    font-size: 19px;
    letter-spacing: 0.03em;
  }

  .bio-context__icon {
    width: 24px;
    height: 24px;
  }

  .bio-context__divider {
    margin: 16px 0 28px;
  }

  .bio-context__subtitle,
  .bio-context__problem-title {
    margin-bottom: 16px;
    font-size: 18px;
  }

  .bio-context__main {
    gap: 16px;
    margin-bottom: 20px;
  }

  .bio-context__text,
  .bio-context__text p,
  .bio-context__list li,
  .bio-context__problem-text,
  .bio-context__problem-intro {
    font-size: 14px;
    line-height: 1.55;
  }

  .bio-context__list li {
    margin-bottom: 8px;
    padding-left: 18px;
  }

  .bio-context__visual-placeholder {
    padding: 16px;
  }

  .bio-context__law {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .bio-context__law-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .bio-context__law-title {
    font-size: 15px;
  }

  .bio-context__law-text,
  .bio-context__problem-item-text,
  .bio-context__problem-result-text {
    font-size: 13px;
    line-height: 1.5;
  }

  .bio-context__problem-caption {
    font-size: 13px;
  }

  .bio-context__problem-item,
  .bio-context__problem-result {
    padding: 16px;
  }

  .bio-context__problem-item-title,
  .bio-context__problem-result-title {
    font-size: 16px;
  }
}

.bio-context__problem-paradox {
    margin-top: 20px !important;
	color: #ffffff !important;
    font-size: 18px;
    line-height: 1.35;
  }


/* ============================================
   Уменьшение анимаций
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .bio-context__icon,
  .bio-context__visual-placeholder,
  .bio-context__problem-image {
    transition: none;
  }
}


/* ============================================
   1.3. Исходные данные и метрики «До»
   ============================================ */

.bio-context__metrics {
  width: 100%;
  margin: 72px 0 0;
  padding: 0;
}

.bio-context__metrics-title {
  margin: 0 0 24px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: left;
}

.bio-context__metrics-intro {
  max-width: 900px;
  margin: 0 0 32px;
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.bio-context__metrics-table-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}


.bio-context__metrics-note {
  margin: 24px 0px 0px 0px;
  color: #989ea7;
  font-family: "Onest-Regular", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

.bio-context__metrics-table {
  width: 100%;
  min-width: 620px;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.02);
  font-family: "Onest-Regular", sans-serif;
  text-align: left;
}

.bio-context__metrics-table thead {
  background: rgba(255, 255, 255, 0.06);
}

.bio-context__metrics-table th {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #a1bce3;
  font-family: "Headline Bold", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
}

.bio-context__metrics-table td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #c5cdd6;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.bio-context__metrics-table th:last-child,
.bio-context__metrics-table td:last-child {
  width: 180px;
  text-align: right;
}

.bio-context__metrics-table td:last-child {
  color: #ffffff;
  font-family: "Onest-Bold", sans-serif;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.bio-context__metrics-table tbody tr:last-child td {
  padding-bottom: 16px;
  border-bottom: none;
}

.bio-context__metrics-term {
  display: inline-block;
  margin-left: 4px;
  color: #8a95a5;
  font-size: 13px;
  font-weight: 400;
}


/* ============================================
   Адаптив: до 1024px
   ============================================ */

@media only screen and (max-width: 1024px) {
  .bio-context__metrics {
    margin-top: 64px;
  }

  .bio-context__metrics-table td:last-child {
    width: 160px;
  }
}


/* ============================================
   Адаптив: до 767px
   ============================================ */

@media only screen and (max-width: 767px) {
  .bio-context__metrics {
    margin-top: 48px;
  }

  .bio-context__metrics-title {
    margin-bottom: 20px;
    font-size: 20px;
  }

  .bio-context__metrics-intro {
    margin-bottom: 24px;
    font-size: 15px;
  }

  .bio-context__metrics-table {
    min-width: 560px;
  }

  .bio-context__metrics-table th,
  .bio-context__metrics-table td {
    padding: 14px 20px;
  }

  .bio-context__metrics-table th {
    font-size: 12px;
  }

  .bio-context__metrics-table td {
    font-size: 14px;
  }

  .bio-context__metrics-table td:last-child {
    width: 140px;
    font-size: 16px;
  }
}


/* ============================================
   Адаптив: до 479px
   ============================================ */

@media only screen and (max-width: 479px) {
  .bio-context__metrics {
    margin-top: 40px;
  }

  .bio-context__metrics-title {
    margin-bottom: 16px;
    font-size: 18px;
  }

  .bio-context__metrics-intro {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.55;
  }

  .bio-context__metrics-table-wrapper {
    overflow: hidden;
    border-radius: 12px;
  }

  .bio-context__metrics-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 12px;
  }

  .bio-context__metrics-table th,
  .bio-context__metrics-table td {
    padding: 12px 10px;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .bio-context__metrics-table th {
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  .bio-context__metrics-table th:first-child,
  .bio-context__metrics-table td:first-child {
    width: 67%;
  }

  .bio-context__metrics-table th:last-child,
  .bio-context__metrics-table td:last-child {
    width: 33%;
    font-size: 13px;
    white-space: normal;
  }

  .bio-context__metrics-term {
    display: block;
    margin: 3px 0 0;
    font-size: 10px;
    line-height: 1.3;
  }
}


/* ============================================
   Блок 1.4. Постановка задачи
   ============================================ */

.task-section {
  padding: 80px 0px;
}

.section-title {
  margin: 0 0 24px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.section-desc {
  max-width: 900px;
  margin: 0 0 48px;
  color: #9da6b2;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.6;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  overflow: hidden;
  background-color: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
}

.step-content {
  padding: 32px;
}

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.step-icon {
  position: relative;
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 50%;
  color: #6d7cff;
}

.step-icon-default,
.step-icon-done {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}

.step-icon-default {
  opacity: 1;
  transform: scale(1);
}

.step-icon-done {
  color: #ffffff;
  opacity: 0;
  border-radius: 50%;
  background-color: #2b3eff;
  transform: scale(0.68);
}

.step-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* Активное состояние этапа */
.step-card.is-complete .step-icon-default {
  opacity: 0;
  transform: scale(0.68);
}

.step-card.is-complete .step-icon-done {
  opacity: 1;
  transform: scale(1);
}

.step-title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-number {
  color: #5265ff;
  font-family: "Onest-Bold", sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.step-title {
  margin: 0;
  color: #ffffff;
  font-family: "Onest-Bold", sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 48px;
}

.step-body p {
  margin: 0;
  color: #a6adb8;
  font-family: "Onest-Regular", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.step-image-wrapper {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-top: 28px;
  border-left: 1px solid #2a2a2a;
  background:
    radial-gradient(
      circle at 50% 100%,
      rgba(43, 62, 255, 0.28) 0,
      rgba(43, 62, 255, 0) 65%
    ),
    #1a1a1a;
}

.step-image-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(28px) translateY(8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* Экран появляется после смены иконки */
.step-card.is-complete .step-image-visual {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.mockup-phone {
  position: relative;
  width: 138px;
  height: 235px;
  padding: 6px;
  border: 4px solid #2e2e2e;
  border-bottom: 0;
  border-radius: 19px 19px 0 0;
  background-color: #050505;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.28);
}

.mockup-phone::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 4px;
  left: 50%;
  width: 42px;
  height: 10px;
  border-radius: 6px;
  background-color: #050505;
  transform: translateX(-50%);
}

.mockup-screen {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 9px;
  padding: 18px 9px 10px;
  overflow: hidden;
  border-radius: 11px 11px 0 0;
  background-color: #1c1c1e;
}

.mockup-topbar {
  width: 38px;
  height: 4px;
  margin: 2px auto 8px;
  border-radius: 4px;
  background-color: #343438;
}

.mockup-heading {
  width: 78%;
  height: 8px;
  border-radius: 3px;
  background-color: #f2f3f5;
}

.mockup-heading--short {
  width: 58%;
}

.mockup-service-card,
.mockup-design-card {
  padding: 9px;
  border: 1px solid #36363a;
  border-radius: 8px;
  background-color: #28282c;
}

.mockup-service-card {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mockup-service-card__icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background-color: #5365ff;
}

.mockup-service-card__lines {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.mockup-service-card__lines span {
  display: block;
  height: 4px;
  border-radius: 4px;
  background-color: #d5d7dc;
}

.mockup-service-card__lines span:last-child {
  width: 62%;
  background-color: #787981;
}

.mockup-progress {
  display: flex;
  gap: 4px;
  margin: 10px 0 4px;
}

.mockup-progress span {
  width: 100%;
  height: 3px;
  border-radius: 5px;
  background-color: #4a4a4f;
}

.mockup-progress .is-active {
  background-color: #5365ff;
}

.mockup-portrait {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mockup-portrait__head {
  width: 38px;
  height: 38px;
  border: 2px solid #7381ff;
  border-radius: 50%;
}

.mockup-portrait__body {
  width: 66px;
  height: 36px;
  margin-top: 6px;
  border: 2px solid #7381ff;
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
}

.mockup-button {
  width: 100%;
  height: 20px;
  margin-top: auto;
  border-radius: 6px;
  background-color: #5365ff;
}

.mockup-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #343438;
}

.mockup-info-row div {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #5365ff;
}

.mockup-info-row span {
  width: 70%;
  height: 5px;
  border-radius: 4px;
  background-color: #9e9fa6;
}

.mockup-design-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 82px;
}

.mockup-design-card__accent {
  width: 100%;
  height: 29px;
  border-radius: 5px;
  background: linear-gradient(135deg, #6b7bff, #2b3eff);
}

.mockup-design-card__line {
  width: 82%;
  height: 5px;
  border-radius: 4px;
  background-color: #dbdde3;
}

.mockup-design-card__line.is-short {
  width: 55%;
  background-color: #76777e;
}

@media (max-width: 767px) {
  .step-card {
    grid-template-columns: 1fr;
  }

  .step-image-wrapper {
    height: 190px;
    padding-top: 22px;
    border-top: 1px solid #2a2a2a;
    border-left: 0;
  }

  .mockup-phone {
    width: 128px;
    height: 205px;
  }
}

@media (max-width: 479px) {
  .section-title {
    margin-bottom: 16px;
    font-size: 19px;
  }

  .section-desc {
    margin-bottom: 28px;
    font-size: 14px;
  }

  .steps-list {
    gap: 14px;
  }

  .step-card {
    border-radius: 12px;
  }

  .step-content {
    padding: 20px;
  }

  .step-header {
    gap: 12px;
    margin-bottom: 18px;
  }

  .step-title {
    font-size: 15px;
  }

  .step-body {
    gap: 12px;
    padding-left: 0;
  }

  .step-body p {
    font-size: 13px;
    line-height: 1.55;
  }

  .step-image-wrapper {
    height: 165px;
  }

  .mockup-phone {
    width: 110px;
    height: 176px;
  }
}

/* Пользователь отключил или ограничил анимацию в системе */
@media (prefers-reduced-motion: reduce) {
  .step-icon-default,
  .step-icon-done,
  .step-image-visual {
    transition: none;
  }

  .step-image-visual {
    transform: none;
  }
}




/* ============================================
БЛОК 2. ИССЛЕДОВАНИЯ
============================================ */

/* ============================================
Тёмный Hero на мобильных
============================================ */

@media only screen and (max-width: 767px) {
  body.project-dark-page #hero {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    min-height: 80svh !important;
    overflow: hidden !important;
    background: #111111 !important;
  }

  body.project-dark-page #hero-image,
  body.project-dark-page #hero-image.hidden {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    min-height: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background-image: url("../images/projects/biometric/hero-biometric.jpg") !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    z-index: 0 !important;
  }

  body.project-dark-page #hero-styles {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    background: linear-gradient(
      180deg,
      rgba(17, 17, 17, 0.24) 0%,
      rgba(17, 17, 17, 0.8) 100%
    ) !important;
    z-index: 1 !important;
  }

  body.project-dark-page #hero-caption {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 80svh !important;
    padding: 40px 0 !important;
    opacity: 1 !important;
  }

  body.project-dark-page #hero-caption .inner {
    display: block !important;
    width: 100% !important;
    padding: 0 42px !important;
    text-align: center !important;
  }

  body.project-dark-page #hero-caption .hero-subtitle {
    justify-content: center !important;
    text-align: center !important;
  }

  body.project-dark-page #image-border-left,
  body.project-dark-page #image-border-right {
    display: none !important;
  }
	
  #page-action-holder {
    display: none !important;
  }
}

@media only screen and (max-width: 600px) {
  body.project-dark-page #hero-caption .inner {
    padding-right: 28px !important;
    padding-left: 28px !important;
  }
}

@media only screen and (max-width: 479px) {
  body.project-dark-page #hero,
  body.project-dark-page #hero-caption {
    min-height: 72svh !important;
  }

  body.project-dark-page #hero-caption {
    padding: 30px 0 !important;
  }
}


.bio-research-row {
  background-color: #111111;
  color: #ffffff;
}

.bio-research {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

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

/* ============================================
Заголовок
============================================ */

.bio-research__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin-bottom: 28px;
}

.bio-research__title {
  margin: 0;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
}

.bio-research__icon {
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: #ffffff;
  opacity: 0.5;
}

.bio-research__divider {
  width: 100%;
  height: 1px;
  margin-bottom: 48px;
  background-color: #495D6D;
}

/* ============================================
Подразделы и текст
============================================ */

.bio-research__subsection {
  margin-bottom: 48px;
}

.bio-research__subsection:last-child {
  margin-bottom: 0;
}

.bio-research__subtitle {
  margin: 86px 0 16px 0px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.bio-research__text {
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.bio-research__text p {
  margin: 0 0 18px;
}

.bio-research__text p:last-child {
  margin-bottom: 0;
}

.bio-research__caption {
  margin-top: 16px;
  color: #8a95a5;
  font-family: "Onest-Regular", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.bio-research__caption p {
  margin: 32px 0px 0px 0px;
  color: #989ea7;
}

.bio-research__caption a {
  color: #00efe4 !important;
}

.bio-research__caption a:hover {
  color: #ffffff !important;
}

/* ============================================
Города исследования
============================================ */

.bio-research__cities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 24px 0 20px;
}

.bio-research__city-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  background-color: #141414;
}

.bio-research__city-crest {
  display: flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
}

.bio-research__city-crest img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
}

.bio-research__city-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}

.bio-research__city-name {
  color: #e0e0e0;
  font-family: "Onest-SemiBold", sans-serif;
  font-size: 15px;
  line-height: 1.3;
}

.bio-research__city-population {
  color: #888888;
  font-family: "Onest-Regular", sans-serif;
  font-size: 13px;
  line-height: 1.3;
}

/* ============================================
Основные барьеры
============================================ */

.bio-research__barriers {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bio-research__barrier {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  width: 100%;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.bio-research__barrier:first-child {
  padding-top: 8px;
}

.bio-research__barrier:last-child {
  border-bottom: 0;
}

.bio-research__barrier-number {
  display: block;
  color: #ffffff;
  font-family: "Onest-Bold", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.bio-research__barrier-desc {
  display: block;
  margin: 0;
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* ============================================
2.5. Таблица инсайтов — desktop / tablet
============================================ */

.bio-research__table-wrapper {
  width: 100%;
  margin: 32px 0px;
  overflow-x: auto;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  background-color: #0d0d0d;
  -webkit-overflow-scrolling: touch;
}

.bio-research__table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-family: "Onest-Regular", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.bio-research__table th {
  padding: 12px 14px;
  border: 1px solid #2a2a2a;
  background-color: #1a1a1a;
  color: #a1bce3;
  font-family: "Headline Bold", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.bio-research__table td {
  padding: 14px;
  border: 1px solid #2a2a2a;
  color: #c5cdd6;
  text-align: left;
  vertical-align: top;
}

.bio-research__table tbody tr:nth-child(odd) td {
  background-color: #0d0d0d;
}

.bio-research__table tbody tr:nth-child(even) td {
  background-color: #121212;
}

.bio-research__insight-number {
  color: #888888;
  font-family: "Onest-Bold", sans-serif;
  font-weight: 700;
}

.bio-research__insight-title {
  color: #e0e0e0;
  font-family: "Onest-Bold", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.bio-research__insight-text,
.bio-research__solution-text {
  color: #c5cdd6;
}

.bio-research__solution-text strong {
  color: #ffffff;
  font-family: "Onest-Bold", sans-serif;
  font-weight: 700;
}

/* ============================================
Адаптив: до 1024px
============================================ */

@media only screen and (max-width: 1024px) {
  .bio-research__cities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================
Адаптив: до 767px
============================================ */

@media only screen and (max-width: 767px) {
  .bio-research__header {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
  }

  .bio-research__title {
    font-size: 22px;
  }

  .bio-research__icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .bio-research__divider {
    margin-bottom: 28px;
  }

  .bio-research__subsection {
    margin-bottom: 32px;
  }

  .bio-research__subtitle {
    margin-bottom: 12px;
    font-size: 19px;
  }

  .bio-research__text {
    font-size: 14px;
    line-height: 1.65;
  }

  .bio-research__text p {
    margin-bottom: 14px;
  }

  .bio-research__cities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0;
  }

  .bio-research__city-card {
    gap: 8px;
    min-height: 54px;
    padding: 10px;
  }

  .bio-research__city-crest {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .bio-research__city-crest img {
    max-width: 30px;
    max-height: 30px;
  }

  .bio-research__city-name {
    font-size: 13px;
  }

  .bio-research__city-population {
    font-size: 11px;
  }

  .bio-research__caption {
    margin-top: 12px;
    font-size: 12px;
  }

  .bio-research__barrier {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }

  .bio-research__barrier-number,
  .bio-research__barrier-desc {
    font-size: 14px;
  }

  /* Таблица становится набором карточек */
  #bio-research .bio-research__table-wrapper {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  #bio-research .bio-research__table {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    font-size: 14px;
  }

  #bio-research .bio-research__table thead {
    display: none;
  }

  #bio-research .bio-research__table tbody {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  #bio-research .bio-research__table tbody tr {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    background-color: #141414;
  }

  #bio-research .bio-research__table tbody td {
    display: block;
    width: 100%;
    padding: 16px 18px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent !important;
    color: #c5cdd6;
    font-family: "Onest-Regular", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
    vertical-align: top;
  }

  #bio-research .bio-research__table tbody td:last-child {
    border-bottom: 0;
  }

  #bio-research .bio-research__table tbody td::before {
    display: block;
    margin: 0 0 7px;
    color: rgba(255, 255, 255, 0.5);
    font-family: "Onest-SemiBold", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  #bio-research .bio-research__table tbody td:nth-child(1) {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  #bio-research .bio-research__table tbody td:nth-child(1)::before {
    content: "Инсайт";
    margin: 0;
  }

  #bio-research .bio-research__table tbody td:nth-child(2)::before {
    content: "Ключевой инсайт";
  }

  #bio-research .bio-research__table tbody td:nth-child(3)::before {
    content: "Пояснение";
  }

  #bio-research .bio-research__table tbody td:nth-child(4)::before {
    content: "Продуктовое решение";
  }

  #bio-research .bio-research__insight-number {
    color: #8a95a5;
    font-family: "Onest-Bold", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
  }

  #bio-research .bio-research__insight-title {
    color: #ffffff;
    font-family: "Onest-Bold", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
  }

  #bio-research .bio-research__insight-text,
  #bio-research .bio-research__solution-text {
    color: #c5cdd6;
  }

  #bio-research .bio-research__solution-text strong {
    color: #ffffff;
    font-family: "Onest-Bold", sans-serif;
  }
}

/* ============================================
Адаптив: до 479px
============================================ */

@media only screen and (max-width: 479px) {
  .bio-research__title {
    font-size: 19px;
  }

  .bio-research__subtitle {
    font-size: 17px;
  }

  .bio-research__cities {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .bio-research__city-card {
    min-height: 48px;
    padding: 8px 12px;
  }

  .bio-research__city-crest {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .bio-research__city-crest img {
    max-width: 28px;
    max-height: 28px;
  }

  #bio-research .bio-research__table tbody {
    gap: 12px;
  }

  #bio-research .bio-research__table tbody tr {
    border-radius: 12px;
  }

  #bio-research .bio-research__table tbody td {
    padding: 14px 16px;
    font-size: 13px;
  }

  #bio-research .bio-research__table tbody td:nth-child(1) {
    padding: 12px 16px;
  }

  #bio-research .bio-research__table tbody td::before {
    margin-bottom: 6px;
    font-size: 10px;
  }

  #bio-research .bio-research__insight-title {
    font-size: 14px;
  }
}

/* ============================================
Уменьшение анимаций
============================================ */

@media (prefers-reduced-motion: reduce) {
  .bio-research__icon,
  .bio-research__city-card,
  .bio-research__barrier {
    transition: none;
  }
}




/* ============================================
   БЛОК 3: Ограничения и рамки проекта
   ============================================ */


/* Модификатор для списков внутри таблиц ограничений */
.case-market-insights__unordered-list--fs14 li {
  font-size: 14px !important;
  line-height: 1.5 !important;
  margin-bottom: 10px !important;
}

.case-market-insights__unordered-list--fs14 li:last-child {
  margin-bottom: 0 !important;
}





.bio-limits-row {
  background-color: #111111;
  color: #ffffff;
}

.case-limits {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

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

/* --- Заголовок блока --- */

.case-limits__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin-bottom: 28px;
}

.case-limits__title {
  margin: 0;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
}

.case-limits__icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: #ffffff;
  opacity: 0.5;
}

.case-limits__divider {
  width: 100%;
  height: 1px;
  margin-bottom: 40px;
  background-color: #495D6D;
}

/* --- Вводный текст --- */

.case-limits__lead {
  max-width: 900px;
  margin: 0 0 48px;
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

/* --- Подразделы --- */

.case-limits__subsection {
  width: 100%;
}

.case-limits__subtitle {
  margin: 0 0 16px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.case-limits__text {
  max-width: 900px;
  margin: 0 0 32px;
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.case-limits__text p {
  margin: 0;
}

.case-limits__subsection + .case-limits__subsection {
  margin-top: 72px;
}


/* --- Строки с метками (ЗАДАЧА / НАПРАВЛЕНИЯ РЕШЕНИЯ) --- */

.case-limits__row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.case-limits__row:last-child {
  border-bottom: none;
}

.case-limits__label {
  flex: 0 0 220px;
  width: 220px;
  padding-top: 2px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.case-limits__value {
  flex: 1 1 auto;
  min-width: 0;
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

/* --- Список в блоке "НАПРАВЛЕНИЯ РЕШЕНИЯ" --- */

.case-limits__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-limits__list li {
  position: relative;
  margin: 0 0 14px;
  padding-left: 24px;
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.case-limits__list li:last-child {
  margin-bottom: 0;
}

.case-limits__list li::before {
  content: "—";
  position: absolute;
  top: 0;
  left: 0;
  color: #8a95a5;
}

@media only screen and (max-width: 767px) {
  .case-limits__subsection + .case-limits__subsection {
    margin-top: 48px;
  }
}

@media only screen and (max-width: 479px) {
  .case-limits__subsection + .case-limits__subsection {
    margin-top: 40px;
  }
}

/* ============================================
   АДАПТИВ: Блок «Ограничения»
   ============================================ */

@media only screen and (max-width: 1024px) {
  .case-limits__title {
    font-size: 24px;
  }

  .case-limits__lead {
    font-size: 15px;
  }

  .case-limits__subtitle {
    font-size: 20px;
  }

  .case-limits__text {
    font-size: 15px;
  }

  .case-limits__row {
    gap: 32px;
  }

  .case-limits__label {
    flex-basis: 180px;
    width: 180px;
  }

  .case-limits__value {
    font-size: 15px;
  }

  .case-limits__list li {
    font-size: 15px;
  }
}

@media only screen and (max-width: 767px) {
  .case-limits__header {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
  }

  .case-limits__title {
    font-size: 22px;
  }

  .case-limits__icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
  }

  .case-limits__divider {
    margin-bottom: 28px;
  }

  .case-limits__lead {
    margin-bottom: 32px;
    font-size: 14px;
  }

  .case-limits__subtitle {
    font-size: 19px;
  }

  .case-limits__text {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .case-limits__row {
    flex-direction: column;
    gap: 8px;
    padding: 18px 0;
  }

  .case-limits__label {
    flex: none;
    width: 100%;
    padding-top: 0;
    font-size: 12px;
  }

  .case-limits__value {
    width: 100%;
    font-size: 14px;
  }

  .case-limits__list li {
    font-size: 14px;
    padding-left: 20px;
  }
}

@media only screen and (max-width: 479px) {
  .case-limits__title {
    font-size: 19px;
  }

  .case-limits__icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
  }

  .case-limits__subtitle {
    font-size: 17px;
  }

  .case-limits__text {
    font-size: 14px;
  }

  .case-limits__row {
    padding: 14px 0;
  }

  .case-limits__label {
    font-size: 11px;
  }

  .case-limits__value {
    font-size: 14px;
  }

  .case-limits__list li {
    font-size: 14px;
    margin-bottom: 10px;
    padding-left: 18px;
  }
}

/* Уменьшение анимаций */
@media (prefers-reduced-motion: reduce) {
  .case-limits__icon {
    transition: none;
  }
}




/* ============================================
БЛОК 4: КОНКУРЕНТНЫЙ АНАЛИЗ
============================================ */

.bio-competition-row {
  background-color: #111111;
  color: #ffffff;
}

.case-competition {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

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

/* ============================================
Заголовок
============================================ */

.case-competition__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin-bottom: 28px;
}

.case-competition__title {
  margin: 0;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
}

.case-competition__icon {
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: #ffffff;
  opacity: 0.5;
}

.case-competition__divider {
  width: 100%;
  height: 1px;
  margin-bottom: 40px;
  background-color: #495D6D;
}

/* ============================================
Текст и подзаголовок
============================================ */

.case-competition__lead {
  max-width: 900px;
  margin: 0 0 48px;
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.case-competition__subtitle {
  margin: 0 0 24px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

/* ============================================
Таблица — desktop
============================================ */

.case-competition {
  width: 100%;
}

/* ============================================
Подзаголовок
============================================ */

.case-competition__subtitle {
  margin: 0 0 24px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

/* ============================================
   4.1. Сводная таблица конкурентов
   ============================================ */

.case-competition__subtitle {
  margin: 0 0 24px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: left;
}

/* ============================================
   Таблица — desktop / tablet
   ============================================ */

.case-competition__table-wrapper {
  width: 100%;
  margin: 0 0 30px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}

.case-competition__table {
  width: 100%;
  min-width: 800px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-spacing: 0;
  font-family: "Onest-Regular", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.case-competition__table th {
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.04);
  color: #a1bce3;
  font-family: "Headline Bold", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.case-competition__table td {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c5cdd6;
  text-align: left;
  vertical-align: middle;
}

.case-competition__table tbody tr:nth-child(even) td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Общая рамка находится на wrapper,
   поэтому убираем дублирующие крайние границы ячеек */

.case-competition__table th:first-child,
.case-competition__table td:first-child {
  border-left: 0;
}

.case-competition__table th:last-child,
.case-competition__table td:last-child {
  border-right: 0;
}

.case-competition__table thead tr:first-child th {
  border-top: 0;
}

.case-competition__table tbody tr:last-child td {
  border-bottom: 0;
}

/* ============================================
   Название банка и логотип
   ============================================ */

.case-competition__bank-cell {
  color: #ffffff !important;
  font-family: "Onest-Bold", sans-serif;
  font-weight: 700;
}

.case-competition__bank-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 24px;
}

.case-competition__bank-content img {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
}

/* ============================================
   Ссылка на Figma
   ============================================ */

.case-competition__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: #00efe4;
  font-family: "Onest-Regular", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.case-competition__link-icon {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: currentColor;
  transform: translateY(1px);
}

.case-competition__link:hover,
.case-competition__link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.case-competition__link:focus-visible {
  outline: 2px solid rgba(77, 58, 255, 0.8);
  outline-offset: 4px;
}

/* ============================================
   Адаптив: до 1024px
   ============================================ */

@media only screen and (max-width: 1024px) {
  .case-competition__subtitle {
    font-size: 20px;
  }

  .case-competition__table {
    min-width: 700px;
    font-size: 13px;
  }

  .case-competition__table th,
  .case-competition__table td {
    padding: 14px 16px;
  }
}

/* ============================================
   Таблица → карточки: до 899px
   ============================================ */

@media only screen and (max-width: 899px) {
  .case-competition__table-wrapper {
    margin-bottom: 24px;
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .case-competition__table {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    font-size: 14px;
  }

  .case-competition__table thead {
    display: none;
  }

  .case-competition__table tbody {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .case-competition__table tbody tr {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background-color: #141414;
  }

  .case-competition__table tbody tr:nth-child(odd) td,
  .case-competition__table tbody tr:nth-child(even) td {
    background: transparent;
  }

  .case-competition__table tbody td {
    display: block;
    width: 100%;
    padding: 15px 18px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #c5cdd6;
    font-family: "Onest-Regular", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
    vertical-align: top;
  }

  .case-competition__table tbody td:last-child {
    border-bottom: 0;
  }

  .case-competition__table tbody td::before {
    display: block;
    margin: 0 0 7px;
    color: rgba(255, 255, 255, 0.5);
    font-family: "Onest-SemiBold", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .case-competition__table tbody td:nth-child(1)::before {
    content: "Банк";
  }

  .case-competition__table tbody td:nth-child(2)::before {
    content: "Стратегическая группа";
  }

  .case-competition__table tbody td:nth-child(3)::before {
    content: "Уникальное отличие";
  }

  .case-competition__table tbody td:nth-child(4)::before {
    content: "Целевая аудитория";
  }

  /* В мобильной карточке название банка — заголовок,
     поэтому label «Банк» визуально скрываем */

  .case-competition__bank-cell {
    color: #ffffff !important;
    font-family: "Onest-Bold", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
  }

  .case-competition__bank-cell::before {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .case-competition__bank-content {
    gap: 10px;
    min-height: 24px;
  }

  .case-competition__bank-content img {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
  }
}

/* ============================================
   Адаптив: до 767px
   ============================================ */

@media only screen and (max-width: 767px) {
  .case-competition__subtitle {
    margin-bottom: 20px;
    font-size: 19px;
  }
}

/* ============================================
   Адаптив: до 479px
   ============================================ */

@media only screen and (max-width: 479px) {
  .case-competition__subtitle {
    font-size: 17px;
  }

  .case-competition__table tbody {
    gap: 12px;
  }

  .case-competition__table tbody tr {
    border-radius: 12px;
  }

  .case-competition__table tbody td {
    padding: 13px 16px;
    font-size: 13px;
    line-height: 1.55;
  }

  .case-competition__table tbody td::before {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .case-competition__bank-cell {
    font-size: 14px;
  }

  .case-competition__bank-content {
    gap: 9px;
    min-height: 22px;
  }

  .case-competition__bank-content img {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
  }

  .case-competition__link {
    font-size: 12px;
  }

  .case-competition__link-icon {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
  }
}

/* ============================================
   Уменьшение анимаций
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .case-competition__link {
    transition: none;
  }
}


/* ============================================
БЛОК 4.2: АНАЛИЗ UX-ПОДХОДОВ КОНКУРЕНТОВ
============================================ */

.case-ux-analysis {
  width: 100%;
  margin: 64px 0 0;
  padding: 0;
  text-align: left;
}

.case-ux-analysis *,
.case-ux-analysis *::before,
.case-ux-analysis *::after {
  box-sizing: border-box;
}

.case-ux-analysis__inner {
  width: 100%;
  margin: 0;
  padding: 0;
}

.case-ux-analysis__title {
  margin: 0 0 24px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* ============================================
Таблица — desktop / tablet
============================================ */

.case-ux-analysis__table-wrapper {
  width: 100%;
  margin: 0;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background-color: #0d0d0d;
  -webkit-overflow-scrolling: touch;
}

.case-ux-analysis__table {
  width: 100%;
  min-width: 840px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-family: "Onest-Regular", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.case-ux-analysis__table th {
  padding: 15px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.05);
  color: #a1bce3;
  font-family: "Headline Bold", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-align: left;
  text-transform: uppercase;
}

.case-ux-analysis__table th:last-child {
  border-right: 0;
}

.case-ux-analysis__table td {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #c5cdd6;
  text-align: left;
  vertical-align: top;
}

.case-ux-analysis__table td:last-child {
  border-right: 0;
}

.case-ux-analysis__table tbody tr:last-child td {
  border-bottom: 0;
}

.case-ux-analysis__table tbody tr:nth-child(even) td {
  background-color: rgba(255, 255, 255, 0.015);
}

/* Колонки таблицы */

.case-ux-analysis__table th:nth-child(1),
.case-ux-analysis__table td:nth-child(1) {
  width: 18%;
}

.case-ux-analysis__table th:nth-child(2),
.case-ux-analysis__table td:nth-child(2) {
  width: 39%;
}

.case-ux-analysis__table th:nth-child(3),
.case-ux-analysis__table td:nth-child(3) {
  width: 43%;
}

/* ============================================
Ячейка «Аспект»
============================================ */

.case-ux-analysis .aspect-cell {
  color: #ffffff;
  font-family: "Onest-Bold", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

/* ============================================
Оценка: badge
============================================ */

.case-ux-analysis .status-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: "Onest-Regular", sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.case-ux-analysis .status-badge__icon {
  display: flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  font-family: "Onest-Bold", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.case-ux-analysis .status-badge__text {
  min-width: 0;
}

.case-ux-analysis .status-badge__text strong {
  font-family: "Onest-Bold", sans-serif;
  font-weight: 700;
}

/* Не работает / провал */

.case-ux-analysis .status-badge--error {
  border-color: rgba(244, 95, 95, 0.22);
  background-color: rgba(244, 95, 95, 0.08);
  color: #ffd3d3;
}

.case-ux-analysis .status-badge--error .status-badge__icon {
  background-color: rgba(244, 95, 95, 0.2);
  color: #ff9191;
}

/* Риск / требует осторожности */

.case-ux-analysis .status-badge--warning {
  border-color: rgba(255, 193, 85, 0.22);
  background-color: rgba(255, 193, 85, 0.08);
  color: #ffe4af;
}

.case-ux-analysis .status-badge--warning .status-badge__icon {
  background-color: rgba(255, 193, 85, 0.2);
  color: #ffd071;
}

/* Работает */

.case-ux-analysis .status-badge--success {
  border-color: rgba(99, 209, 157, 0.22);
  background-color: rgba(99, 209, 157, 0.08);
  color: #c7f3dd;
}

.case-ux-analysis .status-badge--success .status-badge__icon {
  background-color: rgba(99, 209, 157, 0.2);
  color: #8aebb9;
}

/* ============================================
Адаптив: до 1024px
============================================ */

@media only screen and (max-width: 1024px) {
  .case-ux-analysis {
    margin-top: 56px;
  }

  .case-ux-analysis__title {
    font-size: 20px;
  }

  .case-ux-analysis__table {
    min-width: 740px;
    font-size: 13px;
  }

  .case-ux-analysis__table th {
    padding: 13px 14px;
    font-size: 11px;
  }

  .case-ux-analysis__table td {
    padding: 14px;
  }

  .case-ux-analysis .status-badge {
    padding: 11px 12px;
    font-size: 12px;
  }
}

/* ============================================
Таблица → карточки: до 767px
============================================ */

@media only screen and (max-width: 767px) {
  .case-ux-analysis {
    margin-top: 48px;
  }

  .case-ux-analysis__title {
    margin-bottom: 20px;
    font-size: 19px;
  }

  .case-ux-analysis__table-wrapper {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .case-ux-analysis__table {
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    font-size: 14px;
  }

  .case-ux-analysis__table thead {
    display: none;
  }

  .case-ux-analysis__table tbody {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .case-ux-analysis__table tbody tr {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background-color: #141414;
  }

  .case-ux-analysis__table tbody tr:nth-child(even) td,
  .case-ux-analysis__table tbody tr:nth-child(odd) td {
    background: transparent;
  }

  .case-ux-analysis__table tbody td,
  .case-ux-analysis__table th:nth-child(n),
  .case-ux-analysis__table td:nth-child(n) {
    display: block;
    width: 100%;
  }

  .case-ux-analysis__table tbody td {
    padding: 15px 18px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #c5cdd6;
    font-size: 14px;
    line-height: 1.55;
  }

  .case-ux-analysis__table tbody td:last-child {
    border-bottom: 0;
  }

  .case-ux-analysis__table tbody td::before {
    display: block;
    margin: 0 0 7px;
    color: rgba(255, 255, 255, 0.5);
    font-family: "Onest-SemiBold", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .case-ux-analysis__table tbody td:nth-child(1)::before {
    content: "Аспект";
  }

  .case-ux-analysis__table tbody td:nth-child(2)::before {
    content: "Подход конкурентов";
  }

  .case-ux-analysis__table tbody td:nth-child(3)::before {
    content: "Целевая оценка";
  }

  .case-ux-analysis .aspect-cell {
    font-size: 15px;
  }

  .case-ux-analysis .status-badge {
    padding: 12px;
    font-size: 13px;
  }
}

/* ============================================
Адаптив: до 479px
============================================ */

@media only screen and (max-width: 479px) {
  .case-ux-analysis {
    margin-top: 40px;
  }

  .case-ux-analysis__title {
    margin-bottom: 16px;
    font-size: 17px;
  }

  .case-ux-analysis__table tbody {
    gap: 12px;
  }

  .case-ux-analysis__table tbody tr {
    border-radius: 12px;
  }

  .case-ux-analysis__table tbody td {
    padding: 13px 16px;
    font-size: 13px;
    line-height: 1.55;
  }

  .case-ux-analysis__table tbody td::before {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .case-ux-analysis .aspect-cell {
    font-size: 14px;
  }

  .case-ux-analysis .status-badge {
    gap: 9px;
    padding: 11px;
    font-size: 12px;
    line-height: 1.5;
  }

  .case-ux-analysis .status-badge__icon {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
    font-size: 11px;
  }
}

/* ============================================
Уменьшение анимаций
============================================ */

@media (prefers-reduced-motion: reduce) {
  .case-ux-analysis * {
    transition: none !important;
  }
}


/* ==========================================================================
   БЛОК 4.3: КЛЮЧЕВЫЕ ВЫВОДЫ ПО РЫНКУ (С ПОДПИСЬЮ К ГРАФИКУ)
   ========================================================================== */

.case-market-insights {
  width: 100%;
  margin: 64px 0 0;
  padding: 0;
  color: #ffffff;
  text-align: left;
}

.case-market-insights *,
.case-market-insights *::before,
.case-market-insights *::after {
  box-sizing: border-box;
}

.case-market-insights__header {
  width: 100%;
  margin: 0 0 24px;
}

.case-market-insights__subtitle {
  margin: 0;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.case-market-insights__intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px; /* Немного увеличили высоту, чтобы подпись комфортно влезала */
  width: 100%;
  margin: 0 0 48px;
}

.case-market-insights__intro-content {
  position: relative;
  z-index: 2;
  padding-right: 445px; 
}

.case-market-insights__lead {
  max-width: 100%;
  margin: 0;
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.case-market-insights__note {
  max-width: 100%;
  margin: 16px 0 0;
  color: #8a95a5;
  font-family: "Onest-Regular", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

/* Оболочка позиции для блока картинки */
.case-market-insights__image-wrapper {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 415px; 
  margin: 0;
}

/* Внутренний контейнер для группировки картинки и подписи */
.case-market-insights__img-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.case-market-insights__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Стили подписи под изображением */
.case-market-insights__img-caption {
  display: block;
  margin-top: 12px;
  color: #989ea7;
  font-family: "Onest-Regular", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

/* Строки таблицы/спецификаций */
.case-market-insights__row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 28px 0;
}

.case-market-insights__row:first-of-type {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.case-market-insights__row + .case-market-insights__row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.case-market-insights__label {
  padding-top: 2px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.case-market-insights__value {
  min-width: 0;
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

/* Списки */
.case-market-insights__ordered-list,
.case-market-insights__unordered-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-market-insights__ordered-list {
  counter-reset: market-insight;
}

.case-market-insights__ordered-list li,
.case-market-insights__unordered-list li {
  position: relative;
  margin: 0 0 14px;
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.case-market-insights__ordered-list li:last-child,
.case-market-insights__unordered-list li:last-child {
  margin-bottom: 0;
}

.case-market-insights__ordered-list li {
  padding-left: 30px;
  counter-increment: market-insight;
}

.case-market-insights__ordered-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #8a95a5;
  font-family: "Onest-Bold", sans-serif;
  font-size: 14px;
  font-weight: 700;
  content: counter(market-insight) ".";
}

.case-market-insights__unordered-list li {
  padding-left: 24px;
}

.case-market-insights__unordered-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #8a95a5;
  content: "—";
}

.case-market-insights__ordered-list strong,
.case-market-insights__unordered-list strong {
  color: #ffffff;
  font-family: "Onest-Bold", sans-serif;
  font-weight: 700;
}

/* ==========================================================================
   Адаптив: Планшеты (до 1024px)
   ========================================================================== */
@media only screen and (max-width: 1024px) {
  .case-market-insights {
    margin-top: 56px;
  }

  .case-market-insights__intro-content {
    padding-right: 350px; 
  }

  .case-market-insights__image-wrapper {
    width: 320px;
  }

  .case-market-insights__row {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 32px;
  }

  .case-market-insights__lead,
  .case-market-insights__value,
  .case-market-insights__ordered-list li,
  .case-market-insights__unordered-list li {
    font-size: 15px;
  }

  .case-market-insights__label {
    font-size: 12px;
  }
}

/* ==========================================================================
   Адаптив: Мобильные (до 767px)
   ========================================================================== */
@media only screen and (max-width: 767px) {
  .case-market-insights {
    margin-top: 48px;
  }

  .case-market-insights__subtitle {
    font-size: 19px;
  }

  .case-market-insights__intro {
    position: static;
    display: block;
    min-height: auto;
    margin-bottom: 32px;
  }

  .case-market-insights__intro-content {
    padding-right: 0; 
  }

  .case-market-insights__image-wrapper {
    position: static;
    transform: none;
    width: 100%;
    max-width: 340px; /* Чуть увеличили лимит на мобильных, чтобы подпись не сильно дробилась */
    margin: 24px 0 0 0;
    justify-self: start;
  }

  .case-market-insights__lead {
    font-size: 14px;
    line-height: 1.65;
  }

  .case-market-insights__note {
    margin-top: 12px;
    font-size: 13px;
  }

  .case-market-insights__img-caption {
    font-size: 12px;
    text-align: left; /* На мобильных выравниваем подпись по левому краю для аккуратности */
    width: 100%;
  }

  .case-market-insights__row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 0;
  }

  .case-market-insights__label {
    padding-top: 0;
    font-size: 12px;
  }

  .case-market-insights__value,
  .case-market-insights__ordered-list li,
  .case-market-insights__unordered-list li {
    font-size: 14px;
  }
}

@media only screen and (max-width: 479px) {
  .case-market-insights__subtitle {
    font-size: 17px;
  }

  .case-market-insights__image-wrapper {
    max-width: 260px;
  }

  .case-market-insights__row {
    padding: 16px 0;
  }

  .case-market-insights__value,
  .case-market-insights__ordered-list li,
  .case-market-insights__unordered-list li {
    font-size: 13px;
    line-height: 1.55;
  }
}









/* ============================================
   БЛОК 5: КОНЦЕПЦИЯ РЕШЕНИЯ
   ============================================ */

/* Убираем боковые padding у основного container */
#bio-solution > .container.project-page {
  padding-right: 0;
  padding-left: 0;
}

/* Кастомные отступы для линии-разделителя */
.case-solution__divider--custom {
  /* Первое число — отступ сверху, второе — слева/справа (0), третье — снизу */
  margin: 52px 0px 32px 0px !important; 
}

/* Адаптивные отступы для мобильных экранов (меньше 767px) */
@media only screen and (max-width: 767px) {
  .case-solution__divider--custom {
    margin: 16px 0 24px 0px !important; /* Чуть уменьшаем отступы на смартфонах */
  }
}


/*
  Flow находится вне .container.project-page.
  overflow ограничивается на уровне блока, чтобы
  не возникала горизонтальная прокрутка страницы.
*/
.bio-solution-row {
  overflow: hidden;
  background-color: #111111;
  color: #ffffff;
}

/* Базовый контейнер заголовка и текстовой части */
.case-solution {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

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

/* ============================================
   Заголовок раздела
   ============================================ */

.case-solution__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0 0 28px;
}

.case-solution__title {
  margin: 0;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
}

.case-solution__icon {
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: #ffffff;
  opacity: 0.5;
}

.case-solution__divider {
  width: 100%;
  height: 1px;
  margin: 0 0 40px;
  background-color: #495D6D;
}

/* ============================================
   5.1. Пользовательские сценарии
   ============================================ */

.case-solution__scenarios {
  padding: 0;
}

.case-solution__subtitle {
  margin: 0 0 24px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.case-solution__lead {
  max-width: 900px;
  margin: 0;
  color: #9da6b2;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.6;
}

/* ============================================
   USER FLOW
   Отдельная широкая section
   ============================================ */

.bio-user-flow {
  width: 100%;
  margin: 0;
  padding: 0 0 80px;
  text-align: left;
}

/*
  Обнуляем боковые padding только у контейнеров,
  которые находятся внутри блока user flow.
*/
#bio-solution .bio-user-flow > .container.project-page {
  padding-right: 0;
  padding-left: 0;
}

/* Верхняя строка с подсказкой */
.bio-user-flow__head {
  display: flex;
  align-items: flex-end;
  width: 100%;
  margin: 40px 0 20px;
}

/*
  margin-left: auto прижимает подсказку вправо,
  потому что родитель .bio-user-flow__head — flex.
*/
.bio-user-flow__hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.52);
  font-family: "Onest-Regular", sans-serif;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.bio-user-flow__hint svg {
  display: block;
  width: 28px;
  height: 28px;
}

/* ============================================
   Интерактивная область user flow
   Двухосевое перемещение SVG: X + Y
   ============================================ */

.bio-user-flow__viewport {
  position: relative;
  width: 100%;
  height: min(78dvh, 820px);
  min-height: 460px;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background-color: #151515;
  cursor: grab;
  outline: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.bio-user-flow__viewport:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -3px;
}

.bio-user-flow__viewport.is-dragging {
  cursor: grabbing;
}

/*
  Canvas передвигается JavaScript:
  translate3d(offsetX, offsetY, 0).

  top и left равны 0: SVG стартует от верхнего
  левого угла и не центрируется автоматически.
*/
.bio-user-flow__canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: max-content;
  height: max-content;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/*
  Актуальный SVG из Figma: 2479 × 1395.
  Для desktop берём исходную ширину изображения,
  чтобы карта не масштабировалась непредсказуемо.
*/
.bio-user-flow__svg {
  display: block;
  width: 2479px;
  height: auto;
  max-width: none;
  pointer-events: none;
}

/* ============================================
   Градиенты по краям карты
   ============================================ */

.bio-user-flow__fade {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  pointer-events: none;
}

/*
  Делаем градиенты компактными, чтобы они не
  перекрывали крайние экраны/карточки flow.
*/
.bio-user-flow__fade--left {
  left: 0;
  width: min(5vw, 72px);
  background: linear-gradient(
    90deg,
    rgba(21, 21, 21, 0.72) 0%,
    rgba(21, 21, 21, 0) 100%
  );
}

.bio-user-flow__fade--right {
  right: 0;
  width: min(5vw, 72px);
  background: linear-gradient(
    270deg,
    rgba(21, 21, 21, 0.72) 0%,
    rgba(21, 21, 21, 0) 100%
  );
}

/* ============================================
   Подсказка и управляющие кнопки
   ============================================ */

.bio-user-flow__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
}

.bio-user-flow__instruction {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-family: "Onest-Regular", sans-serif;
  font-size: 14px;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.bio-user-flow__controls {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

/*
  Кнопки управляют перемещением по горизонтали.
  Вертикальное перемещение доступно через drag
  или клавиши ↑ / ↓ при фокусе на viewport.
*/
.bio-user-flow__button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background-color: transparent;
  color: #ffffff;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 19px;
  line-height: 1;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.bio-user-flow__button:hover {
  border-color: rgba(255, 255, 255, 0.56);
  background-color: rgba(255, 255, 255, 0.08);
}

.bio-user-flow__button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.bio-user-flow__button:disabled {
  cursor: default;
  opacity: 0.3;
}

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

@media (max-width: 767px) {
  .case-solution__header {
    gap: 16px;
    margin-bottom: 20px;
  }

  .case-solution__title {
    font-size: 22px;
    line-height: 1.3;
  }

  .case-solution__icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .case-solution__divider {
    margin-bottom: 0;
  }

  .case-solution__scenarios {
    padding: 56px 0 0;
  }

  .case-solution__subtitle {
    margin-bottom: 16px;
    font-size: 20px;
  }

  .case-solution__lead {
    font-size: 15px;
    line-height: 1.65;
  }

  .bio-user-flow {
    padding-bottom: 56px;
  }

  .bio-user-flow__head {
    align-items: flex-start;
    margin: 32px 0 16px;
  }

  .bio-user-flow__hint {
    font-size: 13px;
  }

  .bio-user-flow__viewport {
    height: min(68dvh, 580px);
    min-height: 380px;
    border-radius: 12px;
  }

  /*
    При ширине 1180px SVG 2479 × 1395
    отображается примерно высотой 664px.
    Это оставляет запас для перемещения карты по Y.
  */
  .bio-user-flow__svg {
    width: 1180px;
  }

  .bio-user-flow__fade--left,
  .bio-user-flow__fade--right {
    width: 48px;
  }

  .bio-user-flow__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .bio-user-flow__controls {
    align-self: flex-end;
  }
}

/* Учитываем системную настройку уменьшения движения */
@media (prefers-reduced-motion: reduce) {
  .bio-user-flow__button {
    transition: none;
  }
}







/* ============================================
   5.2. НОВАЯ СТРУКТУРА ГЛАВНОЙ СТРАНИЦЫ РАЗДЕЛА
   ============================================ */

.bio-structure {
  width: 100%;
  margin: 72px 0 0;
  text-align: left;
}

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

/* ============================================
   Заголовок подраздела
   ============================================ */

.bio-structure__title {
  max-width: 900px;
  margin: 0 0 48px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: left;
}

/* ============================================
   Desktop-сетка
   ============================================ */

.bio-structure__grid {
  display: grid;
  grid-template-columns:
    minmax(280px, 0.78fr)
    48px
    minmax(0, 1.22fr);

  grid-template-rows:
    minmax(130px, 1.1fr)
    minmax(112px, 0.85fr)
    minmax(160px, 1.45fr)
    minmax(150px, 1.3fr)
    minmax(150px, 1.3fr);

  column-gap: 24px;
  row-gap: 24px;
  width: 100%;
  align-items: center;
  text-align: left;
}

/* ============================================
   GIF
   ============================================ */

.bio-structure__media-wrapper {
  position: sticky;
  top: 40px;
  grid-column: 1;
  grid-row: 1 / span 5;
  align-self: start;
  width: 100%;
}

.bio-structure__gif {
  display: block;
  width: 80%;
  height: auto;
  border-radius: 24px;
  object-fit: contain;
}

/* ============================================
   Привязка к строкам desktop-сетки
   ============================================ */

.r1 {
  grid-row: 1;
}

.r2 {
  grid-row: 2;
}

.r3 {
  grid-row: 3;
}

.r4 {
  grid-row: 4;
}

.r5 {
  grid-row: 5;
}

/* ============================================
   Скобки-связи
   ============================================ */
.bio-structure__bracket {
  position: relative;
  grid-column: 2;
  justify-self: center;
  align-self: center;

  width: 20px;
  height: min(70%, 120px);

  border-top: 2px solid rgba(255, 255, 255, 0.2);
  border-right: 2px solid rgba(255, 255, 255, 0.2);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);

  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}


.bio-structure__bracket::after {
  content: none;
}

.bio-structure__desc-text + .bio-structure__desc-text {
  margin-top: 12px;
}


/* ============================================
   Текстовые блоки
   ============================================ */

.bio-structure__description {
  grid-column: 3;
  min-width: 0;
  padding: 0 0 0 12px;
  text-align: left;
}

.bio-structure__desc-title {
  margin: 0 0 12px;
  color: #ffffff;
  font-family: "Onest-Bold", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-align: left;
}

.bio-structure__desc-text {
  max-width: 620px;
  margin: 0;
  color: #989ea7;
  font-family: "Onest-Regular", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.55;
  text-align: left;
}

/* ============================================
   Планшет: компактнее колонки и интервалы
   768–1024px
   ============================================ */

@media (max-width: 1024px) {
  .bio-structure {
    margin-top: 64px;
  }

  .bio-structure__title {
    margin-bottom: 40px;
  }

  .bio-structure__grid {
    grid-template-columns:
      minmax(230px, 0.75fr)
      36px
      minmax(0, 1.25fr);

    column-gap: 16px;
    row-gap: 20px;
  }

  .bio-structure__media-wrapper {
    top: 24px;
  }

  .bio-structure__gif {
    border-radius: 20px;
  }

  .bio-structure__bracket {
    width: 17px;
  }

  .bio-structure__description {
    padding-left: 8px;
  }

  .bio-structure__desc-title {
    font-size: 17px;
  }
}

/* ============================================
   Mobile: GIF сверху, описания ниже
   ============================================ */

@media (max-width: 767px) {
  .bio-structure {
    margin-top: 56px;
  }

  .bio-structure__title {
    margin-bottom: 32px;
    font-size: 20px;
    line-height: 1.3;
  }

  /*
    Важно: переопределяем grid на одну колонку.
    r1–r5 больше не влияют на порядок элементов:
    браузер выводит их в порядке HTML.
  */
  .bio-structure__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    row-gap: 0;
    column-gap: 0;
  }

  .bio-structure__media-wrapper {
    position: static;
    grid-column: 1;
    grid-row: auto;
    width: min(100%, 320px);
    margin: 0 0 36px;
  }

  .bio-structure__gif {
    width: 100%;
    border-radius: 18px;
  }

  /*
    Скобки не нужны на мобильном:
    связь между экраном и описаниями читается
    по последовательной вертикальной структуре.
  */
  .bio-structure__bracket {
    display: none;
  }

  .bio-structure__description {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .bio-structure__description.r1 {
    padding-top: 0;
  }

  .bio-structure__description.r5 {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .bio-structure__desc-title {
    margin-bottom: 10px;
    font-size: 17px;
    line-height: 1.35;
  }

  .bio-structure__desc-text {
    max-width: none;
    font-size: 14px;
    line-height: 1.6;
  }
}



/* ============================================
   Биометрические сервисы:
   главная страница в светлой и тёмной темах
   ============================================ */

.bio-themes {
  width: 100%;
  margin: 64px 0;
  text-align: left;
}

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

/* Заголовок и вводный текст */

.bio-themes__title {
  max-width: 760px;
  margin: 0 0 16px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: left;
}

.bio-themes__intro {
  max-width: 680px;
  margin: 0 0 32px;
  color: #989ea7;
  font-family: "Onest-Regular", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.55;
  text-align: left;
}

/* Сетка двух экранов */

.bio-themes__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.bio-themes__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  text-align: left;
}

/*
  Контейнер сохраняет одинаковую высоту у двух изображений.
  При необходимости измени 544 / 600 на реальные пропорции экспортов.
*/
.bio-themes__media {
  width: 100%;
  max-width: 544px;
  aspect-ratio: 544 / 600;
  overflow: hidden;
  border-radius: 22px;
  background-color: #f3f5f7;
}

/* Фоны видны только во время загрузки изображений */

.bio-themes__media--light {
  background:
    linear-gradient(180deg, #f4f6f8 0%, #e1e7ed 100%);
}

.bio-themes__media--dark {
  background:
    linear-gradient(180deg, #22262d 0%, #101216 100%);
}

/*
  cover: экран заполняет карточку без искажения пропорций.
  Если экспорт уже имеет нужные размеры и не должен обрезаться,
  замени cover на contain.
*/
.bio-themes__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.bio-themes__caption {
  margin-top: 10px;
  color: #989ea7;
  font-family: "Onest-Regular", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

/* ============================================
   Планшет: сохраняем две колонки
   ============================================ */

@media (max-width: 1070px) {
  .bio-themes__grid {
    gap: 20px;
  }

  .bio-themes__media {
    max-width: none;
    border-radius: 20px;
  }
}

/* ============================================
   Мобильные: две карточки, пока сохраняется
   читаемая ширина
   ============================================ */

@media (max-width: 767px) {
  .bio-themes {
    margin: 48px 0;
  }

  .bio-themes__title {
    font-size: 20px;
  }

  .bio-themes__intro {
    margin-bottom: 24px;
  }

  .bio-themes__grid {
    gap: 16px;
  }

  .bio-themes__media {
    border-radius: 16px;
  }

  .bio-themes__caption {
    margin-top: 8px;
    font-size: 12px;
  }
}

/* ============================================
   Узкие мобильные: одна колонка, чтобы оба
   экрана оставались читаемыми
   ============================================ */

@media (max-width: 479px) {
  .bio-themes {
    margin: 40px 0;
  }

  .bio-themes__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .bio-themes__media {
    width: min(100%, 360px);
    margin: 0 auto;
    border-radius: 14px;
  }

  .bio-themes__caption {
    margin-top: 10px;
    text-align: center;
  }
}




/* ============================================
   5.3. Сценарий №1
   ============================================ */

.bio-scenario-section {
  width: 100%;
  margin-top: 72px;
  text-align: left;
}

.bio-scenario-section__title {
  margin: 0 0 16px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: left;
}

.bio-scenario-section__lead {
  max-width: 800px;
  margin: 0 0 32px;
  color: #989ea7;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}

.bio-scenario-section__lead--wide {
  max-width: none;
}

@media (max-width: 767px) {
  .bio-scenario-section {
    margin-top: 56px;
  }

  .bio-scenario-section__title {
    font-size: 20px;
  }

  .bio-scenario-section__lead {
    margin-bottom: 24px;
  }
}


/* ============================================
   Биометрические сервисы:
   слайдер пользовательских сценариев
   ============================================ */

.bio-scenarios-slider {
  width: 100%;
  margin: 72px 0 0;
  text-align: left;
}

.bio-scenarios-slider *,
.bio-scenarios-slider *::before,
.bio-scenarios-slider *::after {
  box-sizing: border-box;
}

/* ============================================
   Заголовок и описание
   ============================================ */

.bio-scenarios-slider__title {
  max-width: 760px;
  margin: 0 0 16px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: left;
}

.bio-scenarios-slider__lead {
  margin: 0 0 32px;
  color: #989ea7;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  text-align: left;
}

/* ============================================
   Список условий пользователя (новый блок)
   ============================================ */

.bio-scenarios-slider__list {
  margin: 0 0 32px;
  padding: 0;
}

.bio-scenarios-slider__list-item {
  display: flex;
  align-items: flex-start;
  margin: 0 0 12px;
  color: #989ea7;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.bio-scenarios-slider__list-item:last-child {
  margin-bottom: 0;
}

.bio-scenarios-slider__list-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-right: 12px;
}

/* ============================================
   Основа слайдера
   ============================================ */

.bio-scenarios-slider__container {
  position: relative;
  width: 100%;
}

.bio-scenarios-slider__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.bio-scenarios-slider__track {
  display: flex;
  width: 100%;
  transform: translateX(0);
  transition: transform 0.55s ease-in-out;
  will-change: transform;
}

.bio-scenarios-slider__slide {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
}

/* ============================================
   Слайд: изображение + текст
   ============================================ */

.bio-scenarios-slider__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 0 24px;
}

.bio-scenarios-slider__mockup {
  display: flex;
  justify-content: center;
  width: 100%;
}

.bio-scenarios-slider__image {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 22px;
  object-fit: contain;
  background-color: #17191d;
}

/* ============================================
   Подпись сценария
   ============================================ */

.bio-scenarios-slider__caption {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  color: #ffffff;
  text-align: left;
}

.bio-scenarios-slider__step-number {
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #0562ef;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.bio-scenarios-slider__caption-content {
  min-width: 0;
}

.bio-scenarios-slider__scenario-title {
  margin: 2px 0 8px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-align: left;
}

.bio-scenarios-slider__step-text {
  margin: 0;
  color: #989ea7;
  font-family: "Onest-Regular", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.55;
  text-align: left;
}

/* ============================================
   Управление слайдером
   ============================================ */

.bio-scenarios-slider__controls {
  display: block;
  width: 100%;
  max-width: 480px;
  min-height: 28px;
  margin: 8px auto 0;
}

/* Стрелки */

.bio-scenarios-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;
  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background-color: rgba(21, 23, 27, 0.72);
  backdrop-filter: blur(8px);
  color: #ffffff;
  cursor: pointer;

  transform: translateY(-50%);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.bio-scenarios-slider__arrow svg {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.bio-scenarios-slider__arrow--prev {
  left: calc(50% - 312px);
}

.bio-scenarios-slider__arrow--next {
  right: calc(50% - 312px);
}

.bio-scenarios-slider__arrow:hover {
  border-color: #ffffff;
  background-color: #ffffff;
  color: #15171b;
}

.bio-scenarios-slider__arrow:focus-visible,
.bio-scenarios-slider__dots button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.bio-scenarios-slider__arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

/* Точки */

.bio-scenarios-slider__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
}

.bio-scenarios-slider__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.bio-scenarios-slider__dots button:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.bio-scenarios-slider__dots button.is-active {
  background-color: #ffffff;
  transform: scale(1.35);
}

/* Текст только для screen reader */

.bio-scenarios-slider__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Планшет: до 767px
   ============================================ */

@media (max-width: 767px) {
  .bio-scenarios-slider {
    margin-top: 56px;
  }

  .bio-scenarios-slider__title {
    font-size: 20px;
  }

  .bio-scenarios-slider__lead {
    margin-bottom: 24px;
  }

  .bio-scenarios-slider__item {
    max-width: 460px;
    padding: 24px 0 20px;
  }

  .bio-scenarios-slider__image,
  .bio-scenarios-slider__caption,
  .bio-scenarios-slider__controls {
    max-width: 400px;
  }

  .bio-scenarios-slider__image {
    border-radius: 18px;
  }

  .bio-scenarios-slider__scenario-title {
    font-size: 17px;
  }

  .bio-scenarios-slider__arrow {
    width: 40px;
    height: 40px;
  }

  .bio-scenarios-slider__arrow--prev {
    left: calc(50% - 258px);
  }

  .bio-scenarios-slider__arrow--next {
    right: calc(50% - 258px);
  }
}

/* ============================================
   Узкие мобильные: до 479px
   ============================================ */

@media (max-width: 479px) {
  .bio-scenarios-slider {
    margin-top: 48px;
  }

  .bio-scenarios-slider__item {
    gap: 18px;
    padding: 20px 0;
  }

  .bio-scenarios-slider__image,
  .bio-scenarios-slider__caption,
  .bio-scenarios-slider__controls {
    max-width: 280px;
  }

  .bio-scenarios-slider__image {
    border-radius: 14px;
  }

  .bio-scenarios-slider__caption {
    gap: 10px;
  }

  .bio-scenarios-slider__step-number {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .bio-scenarios-slider__scenario-title {
    margin-top: 1px;
    font-size: 16px;
  }

  .bio-scenarios-slider__step-text {
    font-size: 14px;
    line-height: 1.55;
  }

  .bio-scenarios-slider__arrow {
    top: 42%;
    width: 36px;
    height: 36px;
  }

  .bio-scenarios-slider__arrow svg {
    width: 20px;
    height: 20px;
  }

  .bio-scenarios-slider__arrow--prev {
    left: calc(50% - 166px);
  }

  .bio-scenarios-slider__arrow--next {
    right: calc(50% - 166px);
  }
}
/* ============================================
   Уменьшение анимаций
   ============================================ */

/*
  Пока оставляем закомментированным:
  у тебя системная настройка reduced motion активна,
  и transition: none отключает листание во время проверки.

  Когда сайт будет готов, можешь оставить короткую
  длительность вместо полного отключения.
*/

/*
@media (prefers-reduced-motion: reduce) {
  .bio-scenarios-slider__track {
    transition-duration: 120ms;
  }

  .bio-scenarios-slider__arrow,
  .bio-scenarios-slider__dots button {
    transition-duration: 120ms;
  }
}
*/






/*---------------------------------------------------------------------------
    5.7. Подтверждение платежа (id="bio-pay")
---------------------------------------------------------------------------*/

.bio-pay-showcase {
  width: 100%;
  margin: 32px 0 0 0;
  text-align: left;
}

.bio-pay-showcase *,
.bio-pay-showcase *::before,
.bio-pay-showcase *::after {
  box-sizing: border-box;
}

/* Статичный фон-контейнер */
.bio-pay-showcase__bg {
  width: 100%;
  aspect-ratio: 16 / 9; 
  min-height: 380px;
  max-height: 560px;
  
  display: flex;
  align-items: flex-end; /* КРИТИЧНО: Прижимает контент строго к нижнему краю */
  justify-content: center;

  border-radius: 16px;
  background-color: #17191d;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden; /* Обрезает всё, что выходит за рамки плашки */
}

/* Контейнер мокапа, прижатый к низу */
.bio-pay-showcase__mockup-bottom {
  width: 100%;
  max-width: 340px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 24px 0 24px; /* Нижний отступ равен 0, чтобы не было зазора */
}

/* GIF-изображение смартфона, обрезанное снизу */
.bio-pay-showcase__gif-cropped {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  vertical-align: bottom; /* Убирает дефолтный инлайновый микро-отступ картинок */
}

/* Подпись под блоком */
.bio-pay-showcase__caption {
  display: block;
  margin-top: 12px;
  color: #989ea7;
  font-family: "Onest-Regular", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

/* ============================================
   Адаптивная логика
   ============================================ */

@media (max-width: 1024px) {
  .bio-pay-showcase__bg {
    min-height: 320px;
  }
  
  .bio-pay-showcase__mockup-bottom {
    max-width: 240px;
    padding: 16px 16px 0 16px;
  }
  
  .bio-pay-showcase__gif-cropped {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }
}

@media (max-width: 767px) {
  .bio-pay-showcase__bg {
    aspect-ratio: 4 / 3; 
    min-height: 280px;
    border-radius: 12px;
  }
  
  .bio-pay-showcase__mockup-bottom {
    max-width: 210px;
  }
  
  .bio-pay-showcase__gif-cropped {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
  }
  
  .bio-pay-showcase__caption {
    font-size: 12px;
  }
}

@media (max-width: 479px) {
  .bio-pay-showcase__bg {
    aspect-ratio: 1.1 / 1; /* Оптимальный квадратный бокс для узких экранов */
    min-height: 240px;
  }
  
  .bio-pay-showcase__mockup-bottom {
    max-width: 170px;
    padding: 12px 12px 0 12px;
  }
  
  .bio-pay-showcase__gif-cropped {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bio-pay-showcase__bg,
  .bio-pay-showcase__gif-cropped {
    transition: none !important;
  }
}





/*---------------------------------------------------------------------------
    5.8. Функционал «Как сделать селфи» (id="make-selfie")
---------------------------------------------------------------------------*/

.bio-selfie__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: start;
  width: 100%;
  margin-top: 32px;
}

/* Левая текстовая колонка */
.bio-selfie__left-col {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.bio-selfie__left-col .bio-scenario-section__lead p {
  margin: 0;
  color: #c5cdd6;
}

.bio-selfie__left-col .bio-scenario-section__lead em {
  color: #ffffff;
  font-style: italic;
}

/* Карточка цитат в стиле рамки с макета */
.bio-selfie__quotes-card {
  margin-top: 32px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.01) 100-px
  );
}

.bio-selfie__quotes-title {
  margin: 0 0 20px 0;
  color: #ffffff;
  font-family: "Onest-Bold", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.bio-selfie__quotes-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bio-selfie__quotes-list li {
  position: relative;
  margin: 0 0 16px 0;
  padding-left: 0;
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.bio-selfie__quotes-list li:last-child {
  margin-bottom: 0;
}

/* Правая колонка с изображением смартфона */
.bio-selfie__right-col {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.bio-selfie__image-container {
  position: relative;
  width: 100%;
  max-width: 440px; /* Ограничение физического масштаба смартфона */
  display: flex;
  justify-content: center;
}

.bio-selfie__mockup-img {
  display: block;
  height: auto;
  object-fit: contain;
}

/* ============================================
   Адаптивные медиа-запросы
   ============================================ */

/* Планшетная версия (до 1024px) */
@media only screen and (max-width: 1024px) {
  .bio-selfie__grid {
    gap: 32px;
  }
  
  .bio-selfie__quotes-card {
    padding: 24px;
    margin-top: 24px;
  }
  
  .bio-selfie__image-container {
    max-width: 340px;
  }
}

/* Перенос изображения под текст (до 767px) */
@media only screen and (max-width: 767px) {
  .bio-selfie__grid {
    grid-template-columns: 1fr; /* Переключение сетки в одну колонку */
    gap: 40px;
  }
  
  .bio-selfie__right-col {
    order: 2; /* Явно гарантируем, что картинка встанет ниже */
  }
  
  .bio-selfie__left-col {
    order: 1;
  }
  
  .bio-selfie__quotes-card {
    padding: 20px;
  }
  
  .bio-selfie__quotes-list li {
    font-size: 13px;
    margin-bottom: 14px;
  }
  
  .bio-selfie__image-container {
    max-width: 290px; /* Аккуратный размер на экранах телефонов */
  }
}

/* Узкие мобильные экраны (до 479px) */
@media only screen and (max-width: 479px) {
  .bio-selfie__grid {
    gap: 28px;
  }
  
  .bio-selfie__quotes-card {
    padding: 16px;
    border-radius: 12px;
  }
  
  .bio-selfie__quotes-title {
    font-size: 16px;
    margin-bottom: 14px;
  }
  
  .bio-selfie__image-container {
    max-width: 240px;
  }
}

/* Отключение аппаратных оптимизаций при экономии движения */
@media (prefers-reduced-motion: reduce) {
  .bio-selfie__mockup-img {
    transition: none !important;
  }
}







/*---------------------------------------------------------------------------
    5.9. Ошибки во время сканирования (id="make-selfie-errors") — БЕЗОТКАЗНЫЙ CSS
---------------------------------------------------------------------------*/

#make-selfie-errors .bio-errors-showcase {
  width: 100%;
  margin: 32px 0 0 0;
  text-align: left;
}

#make-selfie-errors .bio-errors-showcase *,
#make-selfie-errors .bio-errors-showcase *::before,
#make-selfie-errors .bio-errors-showcase *::after {
  box-sizing: border-box;
}

/* Статичный контейнер */
#make-selfie-errors .bio-errors-showcase__bg {
  width: 100%;
  aspect-ratio: 16 / 9 !important; 
  min-height: 380px;
  max-height: 650px;
  display: flex !important;
  align-items: center !important; 
  justify-content: center !important;
  border-radius: 16px;
  background-color: #17191d !important;
  overflow: hidden !important; 
}

/* Контейнер мокапа */
#make-selfie-errors .bio-errors-showcase__mockup-center {
  width: 100% !important;
  max-width: 310px !important; 
  height: 100% !important;
  display: flex !important;
  align-items: center !important; 
  justify-content: center !important;
  padding: 24px !important; 
  position: relative !important;
}

/* Внутренний трек смартфона */
#make-selfie-errors .bio-errors-slider-track {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 262 / 534 !important; 
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Базовое состояние слайда-контейнера */
#make-selfie-errors .bio-errors-slide {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Стили изображения */
#make-selfie-errors .bio-errors-showcase__gif {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  border-radius: 24px !important; 
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* Подпись под блоком */
#make-selfie-errors .bio-errors-showcase__caption {
  display: block !important;
  margin-top: 12px !important;
  color: #989ea7 !important;
  font-family: "Onest-Regular", sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

/* Точки пагинации */
#make-selfie-errors .bio-errors-slider-dots {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 20px 0 0 0 !important;
  padding: 0 !important;
}

#make-selfie-errors .bio-errors-dot {
  width: 8px !important;
  height: 8px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background-color: rgba(255, 255, 255, 0.25) !important;
  cursor: pointer !important;
  display: block !important;
  margin: 0 !important;
  transition: background-color 0.3s ease, transform 0.3s ease !important;
}

#make-selfie-errors .bio-errors-dot:hover {
  background-color: rgba(255, 255, 255, 0.5) !important;
}

#make-selfie-errors .bio-errors-dot.is-active {
  background-color: #ffffff !important;
  transform: scale(1.35) !important;
}

/* Адаптив */
@media (max-width: 1024px) {
  #make-selfie-errors .bio-errors-showcase__bg { min-height: 320px !important; }
  #make-selfie-errors .bio-errors-showcase__mockup-center { max-width: 230px !important; padding: 16px !important; }
  #make-selfie-errors .bio-errors-showcase__gif { border-radius: 20px !important; }
}
@media (max-width: 767px) {
  #make-selfie-errors .bio-errors-showcase__bg { aspect-ratio: 4 / 3 !important; min-height: 280px !important; border-radius: 12px !important; }
  #make-selfie-errors .bio-errors-showcase__mockup-center { max-width: 190px !important; }
  #make-selfie-errors .bio-errors-showcase__gif { border-radius: 18px !important; }
  #make-selfie-errors .bio-errors-showcase__caption { font-size: 12px !important; }
}
@media (max-width: 479px) {
  #make-selfie-errors .bio-errors-showcase__bg { aspect-ratio: 1.1 / 1 !important; min-height: 240px !important; }
  #make-selfie-errors .bio-errors-showcase__mockup-center { max-width: 150px !important; padding: 12px !important; }
  #make-selfie-errors .bio-errors-showcase__gif { border-radius: 14px !important; }
}





/* ==========================================================================
   БЛОК 6: АДАПТИВНЫЕ МАКЕТЫ
   ========================================================================== */

/* Шапка секции (Шрифты Headline Bold, стилистика ВТБ — теперь на белом фоне) */
.bio-wide-hero__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.bio-wide-hero__title {
  margin: 0;
  color: #151515; /* Темный цвет текста заголовка для интеграции со светлой темой */
  font-family: "Headline Bold", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
}

.bio-wide-hero__icon {
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: #ffffff;
  opacity: 0.25; /* Прозрачность как у иконок в прошлых блоках */
}

.bio-wide-hero__divider {
  width: 100%;
  height: 1px;
  margin: 16px 0 0 0;
  background-color: #495D6D;
}

/* Класс-строка, отвечающий за 100% растяжение и фон контентной секции */
.bio-adaptives {
  /* ХАК РАСТЯЖЕНИЯ: Принудительно заставляем блок игнорировать границы любых родительских контейнеров */
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  box-sizing: border-box !important;
  
  margin: 48px 0 80px 0 !important; /* Уменьшен верхний отступ, чтобы плашка аккуратно стояла под линией */
  padding: 100px 0;
  overflow: hidden;
  
  /* ФОН: Теперь управляется слайдером, убираем background-image */
  background-color: #2a2a2a; 
  background-image: none !important;
}





/* ==============================================================
   Блок с одним изображением (id="bio-one-image")
   ============================================================== */

#bio-one-image {
  width: 100%;
}

.bio-one-screen *,
.bio-one-screen *::before,
.bio-one-screen *::after {
  box-sizing: border-box;
}

/* Обёртка: картинка + подпись */
.bio-one-screen__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 24px; /* Аккуратный отступ от верхнего края секции */
}

/* Карточка с изображением — Десктоп (фирменные тона ВТБ) */
.bio-one-screen__item {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  width: 1126px;
  max-width: 100%;
}

/* Изображение внутри карточки */
.bio-one-screen__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Сохраняет пропорции, лишнее аккуратно обрезается */
  object-position: top center;
}

/* Подпись под изображением (цвет синхронизирован с .bio-themes__caption) */
.bio-one-screen__caption-text {
  margin-top: 12px;
  font-family: 'Onest-Regular', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: #989ea7; /* Серый цвет текста для тёмной темы */
  text-align: center;
}


/* ---------- Адаптивность ---------- */

/* До ~1126px: пропорциональное резиновое уменьшение */
@media only screen and (max-width: 1126px) {
  .bio-one-screen__item {
    width: 100%;
    max-width: 1126px;
    height: auto;
    aspect-ratio: 1126 / 600; /* Жестко сохраняем пропорцию мокапа */
    border-radius: 20px;
  }

  .bio-one-screen__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Планшеты и мобильные устройства */
@media only screen and (max-width: 767px) {
  .bio-one-screen__item {
    border-radius: 16px;
  }

  .bio-one-screen__caption-text {
    font-size: 12px;
    margin-top: 10px;
  }
}

/* Узкие мобильные экраны смартфонов */
@media only screen and (max-width: 479px) {
  .bio-one-screen__item {
    border-radius: 14px;
    width: 100%;
    max-width: 360px; /* Оптимальная ширина для современных смартфонов */
    height: auto;
    aspect-ratio: 1126 / 600;
  }

  .bio-one-screen__caption-text {
    margin-top: 10px;
    font-size: 12px;
  }
}

















/* ============================================
   Фоновый слайдер
   ============================================ */

.bio-adaptives__slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  background-color: #111111;
}

.bio-adaptives__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Слайд, который сейчас активен или анимируется, встает на передний план */
.bio-adaptives__slide.is-active {
  z-index: 2;
}

.bio-adaptives__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Контент поверх слайдера */
.bio-adaptives .container.project-page {
  position: relative;
  z-index: 3;
  min-height: 400px; /* Сохраняем высоту блока */
}

/* Эффект фиксации фона для десктопов */
@media all and (min-width: 1025px) {
  .bio-adaptives {
    /* Параллакс для слайдера не применяем */
  }
}

/* Ловим внутренний контейнер и возвращаем контент на стандартные рельсы сетки кейса */
.bio-adaptives .container.project-page {
  max-width: 1240px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 50px !important;
  box-sizing: border-box !important;
}

.bio-wide-hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* Текстовый контейнер (Шрифты Onest) */
.bio-wide-hero__content-box {
  max-width: 580px; 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.bio-wide-hero__tag {
  color: #4cc9f0;
  font-family: "Onest-Medium", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.bio-wide-hero__heading {
  margin: 0;
  color: #ffffff;
  font-family: "Onest-Bold", sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.bio-wide-hero__text {
  margin: 0;
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

/* ============================================
   Тоггл переключения темы
   ============================================ */

.bio-wide-hero__header {
  position: relative;
}

.bio-theme-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background-color: #515b6a;
  border-radius: 8px;
}

.bio-theme-toggle__button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background-color: transparent;
  color: #ffffff;
  font-family: "Onest-Medium", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 
    background-color 0.2s ease,
    color 0.2s ease;
}

.bio-theme-toggle__button:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.bio-theme-toggle__button[aria-pressed="true"] {
  background-color: #ffffff;
  color: #151515;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.bio-theme-toggle__label {
  white-space: nowrap;
}

/* Скрываем неактивный слайдер */
.bio-adaptives[hidden] {
  display: none !important;
}

/* Адаптив для тоггла */
@media only screen and (max-width: 767px) {
  .bio-wide-hero__header {
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .bio-theme-toggle {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  
  .bio-theme-toggle__button {
    flex: 1;
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* ==========================================================================
   Адаптивность (Responsive Media Queries) под мобильные экраны
   ========================================================================== */

@media only screen and (max-width: 1024px) {
  .bio-wide-hero__title {
    font-size: 24px;
  }
  
  .bio-adaptives {
    margin: 40px 0 64px 0 !important;
    padding: 80px 0;
  }
  
  .bio-adaptives .container.project-page {
    padding: 0 50px !important;
    min-height: 320px; /* Сохраняем высоту на планшете */
  }
  
  .bio-wide-hero__heading {
    font-size: 26px;
  }
  
  .bio-wide-hero__content-box {
    max-width: 480px;
  }
}

@media only screen and (max-width: 767px) {
  .bio-wide-hero__header {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .bio-wide-hero__title {
    font-size: 22px;
  }
  
  .bio-wide-hero__icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }
  
  .bio-adaptives {
    margin: 32px 0 48px 0 !important;
    padding: 60px 0;
  }
  
  .bio-adaptives .container.project-page {
    padding: 0 40px !important;
    min-height: 280px; /* Сохраняем высоту на мобильном */
  }
  
  .bio-wide-hero__content-box {
    max-width: 100%;
  }
  
  .bio-wide-hero__heading {
    font-size: 22px;
  }
  
  .bio-wide-hero__text {
    font-size: 14px;
    line-height: 1.6;
  }
}

@media only screen and (max-width: 479px) {
  .bio-wide-hero__title {
    font-size: 19px;
  }
  
  .bio-wide-hero__icon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }
  
  .bio-adaptives {
    margin: 28px 0 40px 0 !important;
    padding: 48px 0;
  }
  
  .bio-adaptives .container.project-page {
    padding: 0 30px !important;
    min-height: 240px; /* Сохраняем высоту на узком мобильном */
  }
  
  .bio-wide-hero__heading {
    font-size: 19px;
  }
}

/* Отключение параллакса при системной настройке экономии ресурсов движения */
@media (prefers-reduced-motion: reduce) {
  .bio-adaptives__slide {
    transition: opacity 0s !important;
  }
}





/*---------------------------------------------------------------------------
    6.1. Интересный факт о биометрии (id="bio-fact")
---------------------------------------------------------------------------*/

.bio-fact-showcase {
  width: 100%;
  margin: 32px 0 0 0;
  text-align: left;
}

.bio-fact-showcase *,
.bio-fact-showcase *::before,
.bio-fact-showcase *::after {
  box-sizing: border-box;
}

/* Статичный фон-контейнер */
.bio-fact-showcase__bg {
  width: 100%;
  aspect-ratio: 16 / 9; 
  min-height: 380px;
  max-height: 560px;
  
  display: flex;
  align-items: center; /* Центрируем плашку по вертикали */
  justify-content: center; /* Центрируем плашку по горизонтали */

  border-radius: 16px;
  background-color: #17191d;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  padding: 40px;
  position: relative;
}

/* Затемняющий оверлей для читабельности */
.bio-fact-showcase__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 21, 26, 0.7); 
  z-index: 1;
}

/* Контейнер для текста по центру */
.bio-fact-showcase__content {
  position: relative;
  z-index: 2; 
  max-width: 680px; 
  width: 100%;
  height: 100%; /* Растягиваем на всю высоту, чтобы работал точный отступ сверху */
  text-align: center; 
  display: flex;
  flex-direction: column;
  justify-content: center; /* Центрируем основные тексты */
  padding-top: 24px; /* Фиксированный отступ в 24px от верхнего края плашки */
}

/* Надзаголовок "Интересный факт" в самом верху */
.bio-fact-showcase__tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%); /* Выравнивание строго по центру */
  
  color: #ffffff;
  font-family: "Onest-Bold", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase; /* Перевод в КРУПНЫЙ ШРИФТ */
}

/* Главный заголовок факта */
.bio-fact-showcase__title {
  margin: 24px 0 14px 0; /* Отступаем от верхнего тега */
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Абзац текста */
.bio-fact-showcase__text {
  margin: 0;
  color: #ffffff !important;
  font-family: "Headline Bold", sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.bio-fact-showcase__text span {color: #5265ff !important;}
/* ============================================
   Адаптив (Планшеты и мобильные)
   ============================================ */

@media (max-width: 1024px) {
  .bio-fact-showcase__bg {
    min-height: 320px;
    padding: 32px;
  }
  
  .bio-fact-showcase__content {
    padding-top: 20px; /* Немного уменьшаем отступ на планшетах */
  }
  
  .bio-fact-showcase__title {
    font-size: 21px;
    margin-top: 20px;
  }
  
  .bio-fact-showcase__text {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .bio-fact-showcase__bg {
    aspect-ratio: 4 / 3; 
    min-height: 280px;
    border-radius: 12px;
    padding: 24px;
  }
  
  .bio-fact-showcase__title {
    font-size: 19px;
    margin-top: 16px;
    margin-bottom: 10px;
  }
  
  .bio-fact-showcase__tag {
    font-size: 11px;
  }
}

@media (max-width: 479px) {
  .bio-fact-showcase__bg {
    aspect-ratio: 1.1 / 1; 
    min-height: 260px;
    padding: 20px;
  }
  
  .bio-fact-showcase__content {
    padding-top: 16px; /* Минимальный аккуратный отступ для мобильных телефонов */
  }
  
  .bio-fact-showcase__title {
    font-size: 17px;
  }
  
  .bio-fact-showcase__text {
    font-size: 13px;
    line-height: 1.55;
  }
}












/* ============================================
   10.1. Глоссарий
   ============================================ */

.bio-glossary {
  width: 100%;
  margin: 0px 0px 72px 0px;
  padding: 0;
  color: #ffffff;
  font-family: "Onest-Regular", sans-serif;
  text-align: left;
}

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

/* Заголовок блока */

.bio-glossary__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.bio-glossary__title {
  max-width: calc(100% - 56px);
  margin: 0;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bio-glossary__icon {
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: #ffffff;
  opacity: 0.4;
}

/* Разделитель */

.bio-glossary__divider {
  width: 100%;
  height: 1px;
  margin: 16px 0 40px;
  background-color: rgba(186, 207, 255, 0.3);
}

/* Общая оболочка */

.bio-glossary__table {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.015);
}

/* Шапка */

.bio-glossary__head {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  background-color: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bio-glossary__th {
  min-width: 0;
  padding: 16px 24px;
  color: #a1bce3;
  font-family: "Headline Bold", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
}

.bio-glossary__th:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

/* Строки */

.bio-glossary__row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-width: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bio-glossary__row:last-child {
  border-bottom: 0;
}

/* Ячейки */

.bio-glossary__td {
  min-width: 0;
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
}

.bio-glossary__term {
  color: #ffffff;
  font-family: "Onest-SemiBold", sans-serif;
  font-weight: 600;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.bio-glossary__definition {
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
}

/* ============================================
   Адаптив: до 1200px
   ============================================ */

@media only screen and (max-width: 1200px) {
  .bio-glossary__head,
  .bio-glossary__row {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .bio-glossary__td {
    padding: 18px 20px;
    font-size: 14px;
  }

  .bio-glossary__th {
    padding: 15px 20px;
  }
}

/* ============================================
   Адаптив: до 1024px
   ============================================ */

@media only screen and (max-width: 1024px) {
  .bio-glossary__title {
    font-size: 24px;
  }

  .bio-glossary__head,
  .bio-glossary__row {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .bio-glossary__td {
    padding: 18px;
  }

  .bio-glossary__th {
    padding: 14px 18px;
  }
}

/* ============================================
   Адаптив: до 767px
   ============================================ */

@media only screen and (max-width: 767px) {
  .bio-glossary__title {
    max-width: calc(100% - 48px);
    font-size: 22px;
  }

  .bio-glossary__icon {
    width: 28px;
    height: 28px;
  }

  .bio-glossary__divider {
    margin-bottom: 32px;
  }

  .bio-glossary__table {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .bio-glossary__head {
    display: none;
  }

  .bio-glossary__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .bio-glossary__row {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.02);
  }

  .bio-glossary__td {
    display: block;
    width: 100%;
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.55;
  }

  .bio-glossary__td::before {
    display: block;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.5);
    font-family: "Onest-SemiBold", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
    content: attr(data-label);
  }

  .bio-glossary__term {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: transparent;
    color: #ffffff;
    font-size: 15px;
  }

  .bio-glossary__definition {
    color: #c5cdd6;
  }
}

/* ============================================
   Адаптив: до 479px
   ============================================ */

@media only screen and (max-width: 479px) {
  .bio-glossary__title {
    max-width: calc(100% - 40px);
    font-size: 19px;
    letter-spacing: 0.03em;
  }

  .bio-glossary__icon {
    width: 24px;
    height: 24px;
  }

  .bio-glossary__divider {
    margin: 16px 0 28px;
  }

  .bio-glossary__body {
    gap: 12px;
  }

  .bio-glossary__row {
    border-radius: 10px;
  }

  .bio-glossary__td {
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.55;
  }

  .bio-glossary__td::before {
    margin-bottom: 6px;
    font-size: 9px;
  }

  .bio-glossary__term {
    font-size: 14px;
  }
}

/* ============================================
   Уменьшение анимаций
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .bio-glossary__icon {
    transition: none;
  }
}






















/* ============================================
   БЛОК 10.2: Цитаты респондентов
   ============================================ */

.bio-quotes-row {
  background-color: #111111;
  color: #ffffff;
}

.case-quotes {
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

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

/* --- Главный заголовок раздела --- */

.case-quotes__main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin-bottom: 28px;
}

.case-quotes__main-title {
  margin: 0;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
}

.case-quotes__icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  color: #ffffff;
  opacity: 0.5;
}

.case-quotes__divider {
  width: 100%;
  height: 1px;
  margin-bottom: 40px;
  background-color: #495D6D;
}

/* --- Подзаголовок блока цитат --- */

.case-quotes__title {
  margin: 0 0 32px;
  color: #ffffff;
  font-family: "Headline Bold", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

/* --- Сетка карточек --- */

.case-quotes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

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

.case-quotes__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.02);
}

.case-quotes__text {
  margin: 0 0 24px;
  color: #c5cdd6;
  font-family: "Onest-Regular", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

/* --- Подвал карточки --- */

.case-quotes__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.case-quotes__tag {
  font-family: "Onest-Regular", sans-serif;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Цвета тегов */
.case-quotes__tag--fear {
  color: #4cc9f0;
}

.case-quotes__tag--utility {
  color: #4cc9f0;
}

.case-quotes__tag--ebs {
  color: #4cc9f0;
}

.case-quotes__tag--bonus {
  color: #4cc9f0;
}

.case-quotes__tag--tech {
  color: #4cc9f0;
}

.case-quotes__tag--vacuum {
  color: #4cc9f0;
}

/* --- Аватар --- */

.case-quotes__avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
}

/* ============================================
   АДАПТИВ: Блок «Цитаты респондентов»
   ============================================ */

@media only screen and (max-width: 1200px) {
  .case-quotes__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 1024px) {
  .case-quotes__main-title {
    font-size: 24px;
  }

  .case-quotes__title {
    font-size: 20px;
  }
}

@media only screen and (max-width: 767px) {
  .case-quotes__main-header {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
  }

  .case-quotes__main-title {
    font-size: 22px;
  }

  .case-quotes__icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
  }

  .case-quotes__divider {
    margin-bottom: 28px;
  }

  .case-quotes__title {
    margin-bottom: 24px;
    font-size: 19px;
  }

  .case-quotes__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-quotes__card {
    min-height: auto;
    padding: 20px;
  }

  .case-quotes__text {
    font-size: 14px;
    margin-bottom: 20px;
  }
}

@media only screen and (max-width: 479px) {
  .case-quotes__main-title {
    font-size: 19px;
  }

  .case-quotes__icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
  }

  .case-quotes__title {
    font-size: 17px;
  }

  .case-quotes__card {
    padding: 16px;
  }

  .case-quotes__text {
    font-size: 13px;
  }

  .case-quotes__tag {
    font-size: 10px;
  }

  .case-quotes__avatar {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
  }
}

/* Уменьшение анимаций */
@media (prefers-reduced-motion: reduce) {
  .case-quotes__icon {
    transition: none;
  }
}

//* --- Копируем стили соцсетей для контактов --- */

.project-contact__tg,
.project-contact__email {
  display: inline-block !important;
  position: relative !important;
  color: #000000 !important;
  font-family: 'Fact Expanded ExtraBold', sans-serif !important;
  font-size: 16px !important;
  text-decoration: none !important;
}

body.project-dark-page .project-contact__tg,
body.project-dark-page .project-contact__email,
.light-content .project-contact__tg,
.light-content .project-contact__email {
  color: #ffffff !important;
}

/* ТОЧНО КАК В .socials-text li a::before */
.project-contact__tg::before,
.project-contact__email::before {
  content: '' !important;
  position: absolute !important;
  bottom: 0px !important;
  left: 0 !important;
  width: 100% !important;
  height: 1px !important;
  z-index: 0 !important;
  background: rgba(0, 0, 0, 1) !important;
  transform: scaleX(0) !important;
  transform-origin: right !important;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out 0.3s !important;
}

body.project-dark-page .project-contact__tg::before,
body.project-dark-page .project-contact__email::before,
.light-content .project-contact__tg::before,
.light-content .project-contact__email::before {
  background: rgba(255, 255, 255, 1) !important;
}

.project-contact__tg:hover::before,
.project-contact__email:hover::before {
  transform: scaleX(1) !important;
  transform-origin: left !important;
}


/* ============================================
   Биометрия: анимация появления двух тем
   ============================================ */

/* Начальное состояние карточек */
section.bio-themes.has-animation .bio-themes__item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

/* Секция получила .animate-in — карточки появляются */
section.bio-themes.has-animation.animate-in .bio-themes__item {
  opacity: 1;
  transform: translateY(0);
}

/* Второй экран появляется с небольшой задержкой */
section.bio-themes.has-animation.animate-in .bio-themes__item:nth-child(2) {
  transition-delay: 160ms;
}

/* Доступность: убираем движение по системной настройке */
@media (prefers-reduced-motion: reduce) {
  section.bio-themes.has-animation .bio-themes__item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ============================================
   Слайдер сценариев: плавное листание
   ============================================ */

.bio-scenarios-slider__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.bio-scenarios-slider__track {
  display: flex !important;
  width: 100% !important;
  transform: translateX(0);
  transition: transform 0.55s ease-in-out !important;
  will-change: transform;
}

.bio-scenarios-slider__slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
}

/* Индивидуальный сброс скругления hero — только для кейса биометрии */
body.project-dark-page #hero,
body.project-dark-page #hero-styles,
body.project-dark-page #hero-height,
body.project-dark-page #hero-image {
  border-radius: 0 !important;
}