* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Geologica', sans-serif;
  background: linear-gradient(135deg, #E0E8FF 0%, #F5FBFF 100%);
  color: #1F2A37;
  
}
html, body {
  overflow-x: hidden;
}



.container {
  width: min(1200px);
  margin: 0 auto;
}
.btn-mito, .btn-immune {
  text-align: center;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

 background: rgba(224, 232, 255, 0.8);
 backdrop-filter: blur(10px);
 -webkit-backdrop-filter: blur(10px);
}
 
/* 2) Ограничиваем контент шапки по центру контейнером */
.site-header .container {
  max-width: 1200px;   /* или то, что у вас задано в .container */
  margin: 0 auto;
  padding: 0 20px;     /* по желанию внутренние отступы */
}
.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.logo {
  font-size: 24px;
  font-weight: 500;
  background: linear-gradient(90deg,#F6A753,#FB4242 25%,#7953F3 50%,#62B0EF 75%,#55EEDF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  transition: opacity .2s;
}
.btn:hover { opacity: .8; }
.btn--menu {
  padding: 2px;
  border-radius: 100px;
  background: linear-gradient(90deg,#7465F2,#57E6E1);
  border: none;
}
.btn--menu__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: calc(100px - 2px);
  background: linear-gradient(135deg,#E0E8FF,#F5FBFF);
  color: #1F2A37;
}
.btn__icon { margin-left: 8px; width: 28px; height: 28px; }
.gradientHeadP {
  font-size: 18px; font-weight: 400;
  background: linear-gradient(90deg,#8073F3,#6DEBE4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* menu.css или в конец style.css */

/* Кнопка-крестик закрытия меню */
.menu-overlay__close {
  position: absolute;
  top: 48px;
  right: 48px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1000;
  display: none;
}

.menu-overlay__close:hover {
  color: #62B0EF;
}

/* Уже существующий код для оверлея */

.menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #152132;
  opacity: 0;
  visibility: hidden;
  /* Добавляем задержку скрытия visibility на длительность анимации opacity */
  transition: 
    opacity 0.4s ease, 
    visibility 0s linear 0.4s;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-overlay.open {
  /* Для открытия — сразу показываем видимость, анимация opacity */
  visibility: visible;     /* без задержки */
  opacity: 1;
  transition: opacity 0.4s ease;
}


.menu-overlay__nav {
  text-align: center;
  width: 65%;
}

.menu-overlay__list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  text-align: left;

}

.menu-overlay__list li {
    margin: 4px 0;
    border: none;
    border-bottom: 1px solid transparent;
    border-image-source: linear-gradient(to right, #8174F3 0%, #62B0EF 50%, #55EEDF 100%);
    border-image-slice: 1;
    padding-bottom: 8px;
}

.menu-overlay__list a {
  font-size: 24px;
  font-weight: 500;
  margin-left: 25px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
  font-style: italic;
}

.menu-overlay__list a:hover {
  opacity: 0.8;
  background-image: linear-gradient(to right, #7270F1, #5AD3E5);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}


.menu-overlay__social {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.menu-overlay__social img {
  width: 64px;
  height: 64px;
  transition: transform 0.2s;
}

.menu-overlay__social img:hover {
  transform: scale(1.1);
}


body .site-header {
  transition: opacity 0.2s, visibility 0.2s;
}
body.menu-open .site-header {
  opacity: 0;
  visibility: hidden;
}

.menu_buttons {
  display: flex;
  gap: 10px;
}
/* Универсальные стили для кнопок/ссылок в оверлей-меню */
.menu_buttons .menu-btn { /* Применяем к .menu-btn, который находится внутри .menu_buttons */
  display: inline-flex;   /* Важно для <a> и для центрирования <span> */
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding: 10px 15px;
  border-radius: 50px;
  background-color: white; /* Белый фон */
  border: none;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;   /* Убирает подчеркивание у ссылок <a> */
  color: #333;             /* Базовый цвет текста (будет перекрыт градиентом) */
  transition: opacity 0.2s ease; /* Плавный переход для hover-эффекта */
}

/* Hover-эффект для единообразия */
.menu_buttons .menu-btn:hover {
  opacity: 0.8;
}

/* Стили для градиентного текста внутри кнопок/ссылок в оверлей-меню */
.menu_buttons .menu-btn .gradient-text {
  background-image: linear-gradient(to right, #7270F1, #5AD3E5);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block; /* Может помочь с некоторыми браузерами и градиентами */
}


.hero {
  padding: 0px 0;
  padding-top: 140px;
}
.hero__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero__subtitle {
  font-size: .9rem; font-weight: 600;
  display: flex; align-items: center; color: #FF5A3C;
}
.hero__icon { margin-right: 8px; }
.hero__icon img { width: 20px; height: 20px; }
.subtitle {
  font-weight: 500; font-size: 16px; letter-spacing: .64px; line-height: 22.4px;
  background: linear-gradient(90deg,#FB4242,#F6A753);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__title {
  font-weight: 300; font-size: 144px; line-height: 1.2;
  margin-top: 35px;
  background: linear-gradient(90deg,#F6A753,#FB4242,#7953F3,#62B0EF,#55EEDF);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__description {
  margin: 16px 0 32px; font-size: 22px; max-width: 450px;
}
.btn--primary {
  position: relative;
  display: flex;
  max-width: 410px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 34px;
  border-radius: 100px;
  background: linear-gradient(90deg,#7953F3,#62B0EF 50%,#55EDFF);
  z-index: 0;
  transition: transform .2s ease;
}
.btn--primary::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px; height: 16px;
  background: linear-gradient(90deg,#7953F3,#62B0EF 50%,#55EDFF);
  filter: blur(24px);
  border-radius: 100px;
  z-index: -1;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 32px rgba(255,255,255,.45);
}
.btn--primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,.6);
}
.buttonHero { font-weight: 700; font-size: 16px; color: #fff; }

.btn--outline {
  position: relative;
  padding: 8px 16px;
  color: #319197;
  border: 2px solid transparent;
  border-radius: 8px;
  background: none;
}
.btn--outline::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(90deg,#7465F2,#33C2CC 50%,#1879E7);
  -webkit-mask: linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.btn_hero {
  font-weight: 400; font-size: 20px; line-height: 1.46;
  background: linear-gradient(90deg,#8073F3,#33C2CC 50%,#1879E7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}
.btn_hero:hover {
  transform: scale(1.05);
}
.hero__buttons { display: flex; gap: 8px; margin-top: 15px; flex-direction: column;}
.btn--wide { width: 410px; margin-top: 8px; }
.btn_w1 { width: 410px; }
.btn_w2 { width: 410px; }

.hero__image-wrap {
  position: relative;
  flex-shrink: 0;
  width: 100%; max-width: 700px;
  margin: 0 auto;
  border-radius: 40px;
  overflow: visible;
  --img-width: 80%;
  --img-offset-x: clamp(-100px, -10vw, -50px);
}
.hero__image {
  position: relative;
  width: var(--img-width);
  left: var(--img-offset-x);
  top: clamp(-65px, -10vw, -50px);
  z-index: 1;
  display: block;
}
.hero__video-link {
  position: absolute;
  bottom: 48px;
  right: calc(100% - var(--img-width) - var(--img-offset-x) + 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  z-index: 2;
}
.hero__video-thumb {
  width: 140px; height: 140px;
  margin-bottom: 0;
  border-radius: 50%;
  object-fit: cover;
   transition: transform 0.3s ease-in-out;
}
.hero__video-thumb:hover{
  transform: scale(1.05);
}
.hero__video-link span {
  margin: 16px 0 0;
  margin-bottom: 48px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  background: linear-gradient(90deg,#FB4242,#F6A753);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__video-link span::after {
  content: "";
  position: absolute;
  left: 0; bottom: 40px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg,#FB4242,#F6A753);
}

/* Секция О НАС */
.about {
  padding: 120px 0 0px;

}
.about__inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  justify-content: space-between;
}
.about__video-wrap {
  position: relative;
  width: 100%;
  max-width: 600px;
  border-radius: 40px;
  overflow: hidden;

}
.about__video-thumb {
  width: 100%;
  display: block;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}
.about__video-thumb:hover {
  transform: scale(1.05);
}
.about__content {
  max-width: 500px;
}
.about__title {
  font-size: 64px; font-weight: 300; margin-bottom: 48px; color: #465068;
}
.about__subtitle {
  font-size: 22px; font-weight: 600; line-height: 1.5; margin-bottom: 24px;
  background: linear-gradient(90deg, #FB4242 0%, #F6A753 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
          background-clip: text;
                  color: transparent;
}
.about_more {
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  font-size: 22px;
  color: #465068;
}
.about__bottom {
  margin-top: 40px;
}
.about__bottom-text {
  display: flex; align-items: flex-start; gap: 16px;
}
.about__icon img {
  width: 48px; height: 48px; margin-top: 4px;
  margin-right: 32px;
}

.about__bottom-text p {
  font-size: 24px; line-height: 1.5; color: #1F2A37; font-weight: 500; letter-spacing: 0;
}
.gradient-text_bottom {
   background: linear-gradient(90deg, #8073F3 0%, #6DEBE4 100%);
  /* обрезаем фон по тексту */
  -webkit-background-clip: text;
  background-clip: text;
  /* делаем сам текст прозрачным, чтобы был виден фон */
  -webkit-text-fill-color: transparent;
          color: transparent;
}
.about_under {
  display: flex;
  align-items: flex-start;
}

.about__ps {
  text-align: right;
  margin-top: 24px;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 600;
  padding-right: 0.2em;
  background: linear-gradient(90deg, #FB4242 0%, #F6A753 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
          background-clip: text;
                  color: transparent;

}



/* === Новая секция "Все дороги ведут к митохондриям" === */
.roads-to-mito {
  padding-top: 120px;
}

.roads-to-mito__inner {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.roads-to-mito__title {
  font-size: 64px;
  font-weight: 300;
  line-height: 1.2;
  text-align: left;
  color: #465068;
}

.roads-to-mito__title .gradient-title {
  display: inline-block;
  background: linear-gradient(90deg, #8073F3 0%, #6DEBE4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 400;
}

.roads-to-mito__item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;    /* <> разрешаем перенос flex-элементов */
}

.roads-to-mito__icon img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;

}

.roads-to-mito__content {
  max-width: calc(100% - 80px);
}

.roads-to-mito__text {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  color: #465068;
}

.roads-to-mito__highlight {
  background: linear-gradient(90deg, #FB4242 0%, #F6A753 100%);

  /* обрезаем фон по контуру текста */
  -webkit-background-clip: text;
          background-clip: text;

  /* делаем сам текст прозрачным, чтобы был виден фон */
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.roads-to-mito__description {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: #6B7994;
  flex: 0 0 100%;     /* <> занимает всю ширину контейнера */
  width: 100%;

}

.roads-to-mito__gradient-text {
  background: linear-gradient(90deg,
    #7C70F3 0%,
    #66B9EE 50%,
    #71ECE5 100%
  );

  /* обрезаем фон по геометрии текста */
  -webkit-background-clip: text;
          background-clip: text;

  /* делаем сам текст прозрачным, чтобы был виден фон */
  -webkit-text-fill-color: transparent;
          color: transparent;
}

/* === MITO ГАЛЕРЕЯ (ИЗМЕНЕННАЯ ВЕРСИЯ) === */
.mito-gallery {
    padding-top: 120px;
    text-align: center;
}

.mito-gallery__title {
    font-size: 64px;
    font-weight: 300;
    color: #465068;
    margin-bottom: 48px;
    font-weight: 300;
    line-height: 1.2;
    text-align: left;
}

.mito-gradient {
    background: linear-gradient(90deg, #F6A753, #FB4242 25%, #7953F3 50%, #62B0EF 75%, #55EEDF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mito-gallery__subtitle {
    margin: 0 auto 64px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.5;
    color: #465068;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 32px;
}

.mito-gallery__icon img{
    width:48px;
    height:48px;
}

.mito_sub_text {
  display: block;
}

.mito_gallery_gradient-text {
    background: linear-gradient(90deg, #8073F3 0%, #6DEBE4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; 
}

.mito-gallery__cloud {
    padding: 0 80px;
    display: grid;
    grid-auto-flow: dense;
    grid-template-columns: repeat(auto-fill, 80px); /* Базовый размер ячейки */
    grid-auto-rows: 80px;
    gap: 16px;
    justify-content: center;
}

.mito-item {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    transition: transform .35s;
    cursor: zoom-in;
}

.mito-item::before { /* Белая рамка */
    content: '';
    position: absolute;
    inset: 0;
    padding: 6px;
    border-radius: 50%;
    background: #fff;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}

.mito-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mito-item:hover {
    transform: scale(1.15);
}

/* Измененные размеры:
  - size-s удален.
  - size-m теперь самый маленький (1x1 ячейка).
  - size-l стал 2x2 ячейки.
  - size-xl стал 3x3 ячейки (вместо 4x4).
*/
.size-m  { grid-column: span 2; grid-row: span 2; }
.size-l  { grid-column: span 3; grid-row: span 3; }
.size-xl { grid-column: span 4; grid-row: span 4; }

.btn--cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 48px;
  width: 440px;
  height: 64px;
  border-radius: 100px;
  font: 700 18px/1 'Geologica', sans-serif;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, #FB4242 0%, #F6A753 100%);
  transition: transform .25s ease;
  position: relative;
  z-index: 0;
  text-align: center;
}

.btn--cta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 16px;
  background: linear-gradient(90deg, #FB4242 0%, #F6A753 100%);
  filter: blur(24px);
  border-radius: 100px;
  z-index: -1;
  pointer-events: none;
}


.btn--cta:hover {
    transform: translateY(-2px);
}

/* === RESEARCH ACCORDION === */
.research { padding: 120px 0; }
.research__title {
  font-size: 64px; font-weight: 400; color: #465068; margin-bottom: 48px; line-height: 1.2;
}
.highlighted_research_title {
  background: linear-gradient(90deg, #8075F3, #6EEAE4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* fallback */
}

.research-item {
  /* Убираем старую границу */
  border: none;

  /* Задаём нижнюю границу толщиной 2px */
  border-bottom: 1px solid transparent;

  /* Источник и отрисовка градиента */
  border-image-source: linear-gradient(
    to right,
    #8174F3 0%,
    #62B0EF 50%,
    #55EEDF 100%
  );
  border-image-slice: 1;
  padding: 0px;
}


.research-item__header {
  width: 100%;
  padding: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

.research-item__num { font-weight: 600; margin-right: 12px; font-size: 22px;  background: linear-gradient(90deg, #FB4242, #F6A753);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* fallback */}
.research-item__name { flex: 1; font-weight: 400; color: #465068; text-align: left; font-size: 22px;}
.highlighted_research_name {
  background: linear-gradient(90deg, #FB4242, #F6A753);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* fallback */
}

.research-item__icon {
  position: relative;
  width: 24px; height: 24px;
}
.research-item__icon::before,
.research-item__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 2px;
  background: #465068;
  transform: translate(-50%, -50%);
  transition: transform .3s ease;
}
.research-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.research-item.open .research-item__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.research-item__body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .6s ease, opacity .6s ease;
}

.research-item.open .research-item__body {
  max-height: 2000px;   /* достаточно большое значение */
  opacity: 1;
}

.research-item__scale {
  display: block;
  width: 70%;
  max-width: 100%;
  margin:56px 0px;
}

.research-item__subtitle {
  font-weight: 500;
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: 0.04px;
  color: #465068;
  margin: 0 0 40px;
  text-transform: uppercase;
}

.research-item__text {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  color: #465068;
  margin-bottom: 40px;
}

.research-item__interpretation {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 300;
  margin-bottom: 32px;
}
.research-item__interpretation .green  { color: #64F41C; font-weight: 600; }
.research-item__interpretation .yellow { color: #FECB25; font-weight: 600;}
.research-item__interpretation .red    { color: #FD1717; font-weight: 600;}
.research-item__interpretation .burgundy    { color: #7A0000; font-weight: 600;}
.research-item__interpretation .orange    { color: #FFAE00; font-weight: 600;}

/* ─── В конец style.css ─── */
.research__actions {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 48px 0 64px;
  flex-wrap: wrap;
}

.btn-mito,
.btn-immune {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 24px 48px;
  border-radius: 9999px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* первая кнопка: пурпурно-голубой градиент */
.btn-mito {
  background: linear-gradient(90deg, #7465F2 0%, #33C2CC 50%, #00E5FF 100%);
  box-shadow: 0 16px 32px rgba(116, 101, 242, 0.3);
}
.btn-mito:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(116, 101, 242, 0.4);
}

/* вторая кнопка: красно-оранжевый градиент */
.btn-immune {
  background: linear-gradient(90deg, #FB4242 0%, #F6A753 100%);
  box-shadow: 0 16px 32px rgba(251, 66, 66, 0.3);
}
.btn-immune:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(251, 66, 66, 0.4);
}



/* ─── full-bleed фон для .diagnostics ─── */
.diagnostics {
  position: relative;
  left: calc(50% - 50vw);
  width: 100vw;
  background-color: #0F192C;
  color: #FFF;
  padding: 120px 0;
}


.diagnostics__title {
  font-size: 56px;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 48px;
}

.diagnostics__title-gradient {
  background: linear-gradient(90deg, #8075F3, #6EEAE4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 400;
}

.diagnos_sub {
  font-weight: 400;
  font-size: 24px;
  line-height: 1.5;
  color: #fff;
}


.diagnostics__lead {
  display: flex;
  align-items: center;
  font-size: 20px;
  margin-bottom: 48px;
  color: #A4B0C1;
}

.diagnostics__lead-icon {
  width: 48px;
  height: 48px;
  margin-right: 32px;
}
.diagnostic_desc {
  max-width: 1000px;
  margin-bottom: 64px;
  font-weight: 400;
  font-size: 20px;
  color: #6B7994;
}

.diagnostics__row {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}


.diagnostics__image img {
  display: block;
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
}

.diagnostics__info {
  max-width: 600px;
}

.diagnostics__text {
  position: relative;
  display: flex;
  align-items: flex-start;
  font-size: 20px;
  margin-bottom: 24px;
  color: #FFFFFF;
  right: clamp(170px, -10vw, -50px);
}

.diagnostics__text-icon {
  width: 48px;
  height: 48px;
  margin-right: 32px;
  margin-top: 15px;
}
.diagnostic_text_sub {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;

}

.diagnostics__highlight {
  background: linear-gradient(90deg, #8073F3, #6DEBE4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
}

.diagnostics__desc_with_image {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 400;
  color: #6B7994;
  margin-bottom: 54px;
}

.diagnostics__btn {
  padding: 16px 32px;
  font-size: 18px;
}
.diagnostics__btn:hover {
  box-shadow: none;
}
.btn_diagnostic {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
}


/* === МИТОХОНДРИАЛЬНАЯ ТЕРАПИЯ НЕ ВСЛЕПУЮ === */
.mito-therapy {
  padding: 120px 0;
}

.mito-therapy__title {
  font-size: 64px;
  font-weight: 300;
  line-height: 1.2;
  color: #465068;
  text-align: left;
  margin-bottom: 56px;
}

.mito-therapy__title .gradient-title {
  display: inline-block;
  background: linear-gradient(90deg, #8073F3 0%, #6DEBE4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 400;
}

.mito-therapy__contrast {
  display: inline-block;
  font-weight: 400;
  color: #465068;   /* тёмно‑серый как в макете */
}

.mito-therapy__lead {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 40px;
}



.mito-therapy__icon img {
  width: 48px;
  height: 48px;
}

.mito-therapy__lead p {
  font-size: 24px;
  line-height: 1.5;
  font-weight: 400;
  color: #1F2A37;
}
.mito-therapy__lead_desc {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 400;
}
.mito-therapy__highlight {
  background: linear-gradient(90deg, #8073F3 0%, #6DEBE4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.mito-therapy__desc {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 300;
  color: #6B7994;

}

/* === SCREENING – кому нужна диагностика === */
.screening { padding-bottom: 120px;}

.screening__box {
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  padding: 80px 0;
}

.screening__inner {
  display: flex;
  gap: 100px;
  align-items: flex-start;
  padding: 0 64px;
}

/* левая колонка */
.screening__col‑media { flex-shrink: 0; width: 500px; }

.screening__title  {
  font-size: 40px;
  font-weight: 300;
  color: #465068;
  margin-bottom: 64px;
}
.screening__title‑accent {
  background: linear-gradient(90deg,#FB4242,#F6A753);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.screening__image img {
  width: 100%;
  max-width: none;      /* снимаем ограничение */
  border-radius: 32px;
}

/* правая колонка */
.screening__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* единый стиль пункта */
.screening-item {
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg,#8174F3,#62B0EF 50%,#55EEDF) 1;
}

.screening-item__header {
  width: 100%;
  padding: 24px 48px 24px 0;   /* +48 px справа под иконку */
  font: 400 20px/1.5 'Geologica', sans-serif;
  text-align: left;
  background: none;
  border: none;
  color: #465068;
  cursor: pointer;
  position: relative;
}

.screening-item__icon {
  position: absolute;
  right: 0; top: 50%;
  width: 24px; height: 24px;
  transform: translateY(-50%);
}
.screening-item__icon::before,
.screening-item__icon::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 2px;
  background: #465068;
  transform: translate(-50%, -50%);
  transition: transform .3s;
}
.screening-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.screening-item.open .screening-item__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.screening-item__body {
  overflow: hidden;
  cursor: pointer;
  max-height: 0;
  opacity: 0;
  transition: max-height .5s ease, opacity .5s ease;
  font: 300 18px/1.5 'Geologica', sans-serif;
  color: #465068;
  padding-right: 48px;   /* чтобы не попадал под плюс/минус */
}
.screening-item.open .screening-item__body {
  max-height: 800px; opacity: 1; padding: 0 0 px 24px 0;
}



/* == полноширинный тёмный фон ========================================== */
.dark-section{
  position:relative;
  left:50%; right:50%;
  margin-left:-50vw; margin-right:-50vw;
  width:100vw;
  background:#0F192C;
  color:#fff;
  padding:120px 0;
  overflow:hidden;
}

/* == ОБЩИЕ ЭЛЕМЕНТЫ БЛОКА ============================================== */
.aging {
  padding-top: 0;
}
/* ── Шапка: заголовок + пояснение ───────────────── */
.aging__header{
  display: flex;
  flex-direction: column;
  gap: 20px;
  column-gap:48px;
  align-items:flex-start;
  margin:0 0 64px;
}

.aging__title{
  font:300 60px/1.2 'Geologica',sans-serif;
  margin:0;
}
.aging__title‑accent{
  background:linear-gradient(90deg,#8175F3,#6EEAE4);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.aging__subtitle{
  font:300 18px/1.55 'Geologica',sans-serif;
  margin:0;
  color: #6B7994;
}

/* ── Лид‑текст ──────────────────────────────────── */
.aging__lead{
  display:flex;align-items:flex-start;gap:24px;
  font:400 20px/1.6 'Geologica',sans-serif;
  margin:0 0 64px;
}
.aging__lead img{flex:0 0 40px;}

.agind__lead_subtitle {
  font-size: 24px;
  font-weight: 400;
    line-height: 1.5;

}


.agind__lead_subtitle_highlighted {
  background: linear-gradient(90deg, #8174F3 0%, #64E8E3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Для кроссбраузерности также добавим: */
  background-clip: text;
  color: transparent;
}


/* == СЛАЙДЕР (обёртка + индикатор) ===================================== */
.slider{
  display:flex;
  gap:48px;
  align-items:stretch;
  position:relative;
}

/* ── Линия‑индикатор ────────────────────────────── */
.slider-progress{
  flex:0 0 32px;
  position:relative;
  display:flex;
  justify-content:center;
}
.slider-progress__line{
  width:2px;
  background:#92A0BD;
  mask:repeating-linear-gradient(#000 0 28px,transparent 28px 56px);
  -webkit-mask:repeating-linear-gradient(#000 0 28px,transparent 28px 56px);
  opacity:.8;
  height:100%;
}
.slider-progress__dot{
  position:absolute;left:50%;
  width:6px; height:32px;
  border-radius:3px;
  background:linear-gradient(180deg,#F6A753 0%,#FB4242 100%);
  transform:translateX(-50%);
  transition:transform .45s cubic-bezier(.33,1,.68,1);
}

/* ── Трек слайдов ───────────────────────────────── */
.slider-wrapper{
  overflow:hidden; flex:1 1 auto; cursor:pointer;
}
.slider-track{
  display:flex; gap:48px;
  transition:transform .6s cubic-bezier(.33,1,.68,1);
  will-change:transform;
}
.slide{
  flex:0 0 calc(70% - 24px);
  min-width:320px;
  padding:56px 64px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
  border-radius:24px;
  backdrop-filter:blur(6px);
}
.slide-num{
  display:inline-block;
  padding:10px 24px;
  font:700 20px 'Geologica',sans-serif;
  color:#fff;
  background:linear-gradient(90deg,#FB4242,#F6A753);
  border-radius:10px 10px 0 10px;
  margin-bottom:32px;
}
.slide-title  {font:600 26px/1.35 'Geologica',sans-serif;margin:0 0 24px;}
.slide p      {font:300 18px/1.6 'Geologica',sans-serif;color:#C6CFDF;margin:0 0 24px;}
.slide-source {font-size:16px;opacity:.65;}




/* =======================================================================
   СЕКЦИЯ «ВЫСОКАЯ КОМПЕТЕНЦИЯ И НАУЧНАЯ БАЗА»
   (полный, автономный CSS‑блок без адаптивных медиазапросов)
   ======================================================================= */

/* ——— общая обёртка секции ——————————————————————————————— */
.competence{
  padding:120px 0;

  padding-top: 120px;
  background:#0F192C;          /* тот‑же тёмный фон, что и в «Крит. роль…» */
  color:#fff;
}

/* ——— заголовок секции ———————————————————————————————— */
.competence__title{
  font:300 64px/1.2 "Geologica",sans-serif;
  margin:0 0 32px;
}
.competence__title-gradient{
  background:linear-gradient(90deg,#8175F3 0%,#6EEAE4 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* ——— подзаголовок с иконкой ——————————————————————————— */
.competence__subtitle{
  display:flex;
  gap:32px;
  align-items:center;
  font:400 24px/1.5 "Geologica",sans-serif;
  color:#FFF;
  margin-bottom:64px;
}
.competence__subtitle img{
  flex:0 0 48px;
}

/* =======================================================================
   КАРТОЧКА с двумя равными колонками и разделителем
   ======================================================================= */
.competence-card{
  display:flex;
  flex-wrap:nowrap;            /* всегда в одну строку */
  overflow:hidden;             /* ничего не вылезет за границу */
  padding:64px 80px;
  background:rgba(255,255,255,.04);          /* лёгкий блюр‑оверлей */
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  margin-bottom:64px;
}

/* ——— левая / правая колонка (каждая ровно 50 %) ————— */
.competence-col{
  flex:1 1 0;                  /* равное деление без жёстких % */
  min-width:0;                 /* чтоб текст не распирал карточку */
  word-break:break-word;
}
.competence-col--left { padding-right:64px; }
.competence-col--right{ padding-left:64px; }

/* ——— вертикальная линия‑разделитель ———————————————— */
.competence-divider{
  flex:0 0 1px;                /* фикс 1 px */
  background:rgba(255,255,255,.25);
}

/* =======================================================================
   Контент левой колонки
   ======================================================================= */
.competence-lead{
  font:500 18px/1 "Geologica",sans-serif;
  letter-spacing:0.04px;
  color:#FFF;
  text-transform:uppercase;
  margin:0 0 32px;
}

/* число + подпись (без <br>) */
.competence-number{
  line-height:1;
  margin:0 0 24px;
  background:linear-gradient(90deg,#8175F3 0%,#6EEAE4 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  font-weight:700;
}
.competence-number__value{
  display:block;
  font-size:72px;
}
.competence-number__patients{
  display:block;
  font-size:52px;              /* примерно ⅔ от числа */
}

.competence-desc{
  font:400 18px/1.5 "Geologica",sans-serif;
  color:#6B7994;
}

/* =======================================================================
   Контент правой колонки (список‑буллеты)
   ======================================================================= */
.competence-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:32px;
}
.competence-list li{
  position:relative;
  font:300 18px/1.5 "Geologica",sans-serif;
  color:#E7F0F9;
  padding-left:28px;
}
.competence-list li::before{
  content:'';
  position:absolute;
  left:0;
  top:.7em;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#3EC4FF;          /* фирменная синяя точка */
}

/* =======================================================================
   Блок CTA‑кнопок (если используется в секции)
   ======================================================================= */
.competence__actions{
  display:flex;
  justify-content:center;
  gap:40px;
  flex-wrap:wrap;
}
.competence__actions .btn-mito,
.competence__actions .btn-immune{
  padding:24px 80px;           /* «дутые» кнопки */
  font-size:20px;
}


.mito3d {
  top: clamp(-20px, -10vw, -50px);
}
/* ══════════════════════════════════════════════════════════════════════
   MITOLAB · ОБМЕН ЗНАНИЯМИ
   ═════════════════════════════════════════════════════════════════════ */

.knowledge-sharing {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  background: #0F192C;
  color: #fff;
  padding: 120px 0;
  padding-top: 0;
  overflow: hidden;
}

.knowledge-heading {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 48px;
}
.knowledge-icon {
  flex: 0 0 48px;
}
.knowledge-title {
  font: 400 24px/1.5 'Geologica', sans-serif;
}
.knowledge-gradient {
  background: linear-gradient(90deg, #8075F3 0%, #6EEAE4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.knowledge-text {
  font: 400 20px/1.5 'Geologica', sans-serif;
  color: #A9B7CE;
  margin-bottom: 64px;
}

.knowledge-slider {
  display: flex;
  align-items: center;
  gap: 24px;
}

.knowledge-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 64px 80px 40px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
}

.knowledge-track {
  display: flex;
  gap: 16px;
  align-items: center;
}

.knowledge-slide {
  flex: 0 0 calc((100% - 16px) / 2);
  border-radius: 16px;
  overflow: hidden;
  /* Анимация появления */
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
.knowledge-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.knowledge-btn {
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}
.knowledge-btn:hover {
  transform: scale(1.06);
}
.knowledge-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.knowledge-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}
.knowledge-dot {
  width: 26px;
  height: 4px;
  border: none;
  border-radius: 2px;
  background: #394F74;
  cursor: pointer;
  padding: 0;
  transition: background .4s cubic-bezier(.33, 1, .68, 1);
}
.knowledge-dot.is-active {
  background: linear-gradient(90deg, #FB4242 0%, #F6A753 100%);
}


/* === PUBLICATIONS SECTION (full‑bleed, как в .dark-section) === */
.publications{
  position: relative;
  left: 50%;              /* «выталкиваем» секцию за пределы центра */
  right: 50%;
  margin-left: -50vw;     /* …и растягиваем на всю ширину вьюпорта */
  margin-right:-50vw;
  width: 100vw;

  background:#0F192C;     /* тот же тёмный фон, что и другие секции */
  color:#fff;
  padding:120px 0;        /* отступы сверху/снизу */
  overflow:hidden;        /* ничего не высовывается за границы */
  padding-top: 0;
}

/* ——— Заголовок ——————————————————————————— */
.publications__title{
  font:300 40px/1.2 'Geologica',sans-serif;
  margin:0 0 48px;
  text-transform:none;
}
.publications__title-gradient{
  display:inline-block;
  background:linear-gradient(90deg,#8175F3 0%,#6EEAE4 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* ——— Сетка изображений публикаций ————————— */
.publications__grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:16px;
  margin-bottom:120px;
}
.publication img{
  width:100%;
  height:auto;
  display:block;
  border-radius:24px;     /* скругление, как в макете */
}

/* ——— Подзаголовок‑слоган и описание ———————— */
.publications__tagline{
  font:300 40px/1.2 'Geologica',sans-serif;
  margin:0 0 32px;
}
.publications__highlight{
  background:linear-gradient(90deg,#8175F3 0%,#6EEAE4 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}
.publications__desc{
  font:400 20px/1.5 'Geologica',sans-serif;
  color:#6B7994;
  max-width:900px;
}

/* === COOPERATION SECTION (FIXED GRID) ================================= */
.cooperation-section {
  padding: 120px 0;
}

.cooperation-section__title {
  font-size: 60px;
  font-weight: 300;
  line-height: 1.2;
  color: #284D78;
  margin-bottom: 16px;
  text-align: left;
}

.cooperation-section__title--gradient {
  background: linear-gradient(90deg, #5F72FF 0%, #6DEBE4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 400;
}

.cooperation-section__description {
  font-size: 28px;
  font-weight: 500;
  color: #465068;
  margin-bottom: 64px;
  text-align: left;
}

.cooperation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* ИСПРАВЛЕНО: Создаем 3 равные колонки */
  gap: 30px;
}

.cooperation-card {
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  min-height: 200px;
  box-sizing: border-box;
  text-decoration: none;
}




.cooperation-card__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.cooperation-card--large {
  grid-column: span 3; /* ИСПРАВЛЕНО: Большая карточка занимает все 3 колонки */
  min-height: 300px;
}

.cooperation-card h3 {
  font-size: 40px;
  font-weight: 600;
  margin: 0 0 16px;
}
.cooperation-section__h3--gradient {
  /* 1. Устанавливаем фон в виде градиента */
  background: linear-gradient(to right, #8D89FF 0%, #74C6E8 100%);

  /* 2. Обрезаем фон по форме текста */
  -webkit-background-clip: text;
  background-clip: text;

  /* 3. Делаем цвет самого текста прозрачным */
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cooperation-card h4 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px;
  line-height: 1.4;
  max-width: 50%;
}
.cooperation-card--gradient {
  /* 1. Sets the background to a linear gradient. */
  background: linear-gradient(to right, #FA4744, #F6A253);

  /* 2. Clips the background to the shape of the text. */
  -webkit-background-clip: text;
  background-clip: text;

  /* 3. Makes the text color transparent to reveal the gradient. */
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cooperation-card p {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 32px;
  max-width: 65%;
}

.cooperation-card__btn {
  padding: 12px 50px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  display: inline-block;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.cooperation-card__content--dark {
  color: #284D78;
}

.cooperation-card__btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.cooperation-card__btn--gradient {
  background: linear-gradient(90deg, #8073F3 0%, #6DEBE4 100%);
  color: #fff;
}

.cooperation-card__btn--orange {
  background: linear-gradient(to right, #FB4242, #F6A753);
  color: #fff;
}

/* === /COOPERATION SECTION === */


/* --- Адаптация для Cooperation --- */
@media (max-width: 1280px) {
  .cooperation-section__title {
    font-size: 54px;
  }
}

/* На планшетах и мобильных все карточки будут в один столбец */
@media (max-width: 1280px) {
  .cooperation-grid {
    grid-template-columns: 1fr; /* ИСПРАВЛЕНО: Один столбец для планшетов */
  }
  .cooperation-card--large {
    grid-column: span 1; /* ИСПРАВЛЕНО: Занимает один столбец */
  }
  .cooperation-card p {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .cooperation-section {
    padding: 80px 0;
  }
  .cooperation-section__title {
    font-size: 40px;
  }
  .cooperation-section__description {
    font-size: 18px;
    margin-bottom: 40px;
  }
  .cooperation-card {
    padding: 24px;
    min-height: 250px;
  }
  .cooperation-card h3 {
    font-size: 24px;
  }
  .cooperation-card h4 {
    font-size: 18px;
  }
  .cooperation-card p {
    font-size: 16px;
    margin-bottom: 24px;
  }
}


/* === TRAINING SECTION =============================================== */
.training{padding:120px 0; padding-top: 120px;}

/* Заголовок */
.training__title{
  font:300 64px/1.2 'Geologica',sans-serif;
  color:#465068;
  margin:0 0 24px;
}
.training__title-highlight {
  background: linear-gradient(90deg, #8075F3 0%, #6EEAE4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}


/* Подтитр */
.training__subtitle{
  font:500 32px/1.5 'Geologica',sans-serif;
  background:linear-gradient(90deg,#FB4242 0%,#F6A753 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  margin:48px 0 24px;
}

/* Список преимуществ/описания */
.training__list{
  list-style:none;
  margin:0 0 64px;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:24px;
}
.training__list li{
  font:500 22px/1.5 'Geologica',sans-serif;
  color:#465068;
}

.training-card{
  background:none;      /* ← убрали белый фон  */
  border:none;          /* ← убрали обводку    */
  box-shadow:none;      /* ← убрали тень       */
  border-radius:0;      /* ← скругление не нужно */
  padding:0;            /* ← выравнивается по контейнеру */
  display:flex;
  gap:64px;
  align-items:flex-start;
  margin-bottom:64px;
  flex-direction: column;
}

.training-card__content{flex:1;}
.training-card__title{
  font:400 38px/1.2 'Geologica',sans-serif;
  background:linear-gradient(90deg,#FB4242 0%,#F6A753 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  margin:0 0 32px;
}
.training-card__text {
  margin-bottom: 32px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  color: #6B7994;
}


.training-card__media{
  flex:0 0 50%;
  position:relative;
  border-radius:24px;
  
  overflow:hidden;
}

.training-card__media img{
  width:100%;
  height:auto;
  display:block;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}
.training-card__media img:hover {
  transform: scale(1.05);
}

/* Лид‑строка */
.training__lead{
  display:flex;
  align-items:flex-start;
  gap:32px;
  margin-bottom:64px;
}
.training__lead-icon img{width:48px;height:48px;}
.training__lead-text{
  font:400 24px/1.5 'Geologica',sans-serif;
  color:#465068;
}
.training__lead-highlight {
  background: linear-gradient(90deg, #8073F3 0%, #6DEBE4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}


/* Кнопки */
.training__actions{
  display:flex;
  justify-content:center;
  gap:40px;
  flex-wrap:wrap;
}
.training__actions .btn-mito,
.training__actions .btn-immune{
  padding:24px 140px;   /* ширина + “дутый” вид */
  font-size:18px;
  font-weight:700;
}




/* ───── Delivery СЕКЦИЯ ───── */
.delivery-section{
  padding:120px 0;
  padding-top: 0;
}

/* ───── ЗАГОЛОВОК ───── */
.delivery-headline{
  font:300 64px/1.2 "Geologica",sans-serif;
  margin:0 0 48px;
  text-transform: uppercase;
  color: #465068;
}
.highlighted_delivery_headline {
  background: linear-gradient(90deg, #8075F3 0%, #6EEAE4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 400;
}


.delivery-smalllead{
  font:400 20px/1.5 "Geologica",sans-serif;
  color:#6B7994;
  margin:0 0 48px;
}

/* ───── ДВЕ КОЛОНКИ ───── */
.therapy-cols {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 0px;
  margin-bottom: 120px;
}

/* Лид-строка */
.therapy__lead {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 32px;
}
.therapy__lead__icon {
  width: 48px;
  height: 48px;
}
.therapy__lead-text {
  font-weight: 400;
  font-size: 24px;
  line-height: 1.5;
  max-width: 80%;
}
.therapy__lead-text_highlighted {
  background: linear-gradient(90deg, #8073E3 0%, #6DEBE4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.therapy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: 300 20px/1.5 "Geologica", sans-serif;
  color: #465068;
}

.therapy-list li {
  position: relative;
  padding-left: 18px;
  font-size: 22px;
  font-weight: 300;
  color: #465068;
}
.therapy-list-highlighted {
  color: #FB4242;
  background-image: -webkit-linear-gradient(90deg, #FB4242 0%, #F6A753 100%);
  background-image: -moz-linear-gradient(90deg, #FB4242 0%, #F6A753 100%);
  background-image: -o-linear-gradient(90deg, #FB4242 0%, #F6A753 100%);
  background-image: linear-gradient(90deg, #FB4242 0%, #F6A753 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


.therapy-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(90deg, #FB4242 0%, #F6A753 100%);
}

/* Чтобы картинка заполняла всю правую колонку */
.therapy-card {
  width: 100%;
  height: auto;
}
.therapy-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}




/* ───── ФОРМЫ ДОСТАВКИ ───── */
.delivery-types__title{
  display:flex;
  align-items:center;
  gap:32px;
  font:400 24px/1.5 "Geologica",sans-serif;
  color:#465068;
  margin:0 0 46px;
}

.delivery-types__grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:15px 15px;
}

.delivery-type{
  text-align:center;
  display:flex;
  flex-direction:column;
  gap:24px;

}
.delivery-type--single{
  grid-column:1 / -1;
  gap:0;
}
.delivery-type img{
  width:100%;
  border-radius:24px;
  transition: transform .3s;
  cursor: pointer;
}
.delivery-type img:hover {
  transform: scale(1.05);
}

.delivery-molecules__title{
  display:flex;
  align-items:center;
  gap:32px;
  font:400 24px/1.5 "Geologica",sans-serif;
  color:#465068;
  margin:0 0 46px;
}

/* ───── ТЕГИ-МОЛЕКУЛЫ ───── */
.delivery-molecules__tags{
  display:flex;
  flex-wrap:wrap;
  gap:12px 16px;
  margin-bottom:48px;
  cursor: pointer;
}

.delivery-molecules__tags span{
  display:inline-block;
  padding:8px 16px;                 /* 8 px сверху/снизу, 16 px слева/справа */
  font:400 22px/1.3 "Geologica",sans-serif;
  border:2px solid transparent;     /* толщина бордера 2 px */
  border-radius:8px;                /* скругление 8 px */

  /* ── 3‑СЛОЙНЫЙ БЭКГРАУНД ──
     1. Градиент — для текста          (clip:text)
     2. #f3f9ff — фон внутри тэга      (clip:padding-box)
     3. Градиент — для бордера         (clip:border-box)          */
  background-image:
    linear-gradient(90deg,#7465F2 0%,#33C2CC 50%,#1879E7 100%),
    linear-gradient(#f3f9ff 0 0),
    linear-gradient(90deg,#7465F2 0%,#33C2CC 50%,#1879E7 100%);
  background-origin:border-box,       padding-box, border-box;
  background-clip:   text,            padding-box, border-box;
  -webkit-background-clip:text,       padding-box, border-box;

  color:transparent;                  /* чтобы градиент был виден в тексте */
  -webkit-text-fill-color:transparent;/* Safari < 16.4 */

  /* ── АНИМАЦИЯ ПРИ НАВЕДЕНИИ ── */
  transition:transform .25s ease;     /* плавное увеличение */
  will-change:transform;              /* оптимизация производительности */
}

.delivery-molecules__tags span:hover{
  transform:scale(1.05);              /* лёгкое увеличение на 5 % */
}


/* ───── CTA‑кнопка ───── */
.delivery-molecules__cta{
  margin-left:0;              /* выравнивание слева */
  line-height:1;              /* текст по центру */
}





/* ═══ СЕКЦИЯ SCIENTISTS ══════════════════════════════════ */
.scientists__title{
  font:300 64px/1.2 "Geologica",sans-serif;
  margin:0 0 48px;
  color:#E7F0F9;
}
.scientists__title‑accent {
    /* направление: из левого‑верхнего угла ↘︎ в правый‑нижний */
    background: linear-gradient(135deg, #8073F3 0%, #6DEBE4 100%);

    /* заставляем градиент «заливать» только контуры букв */
    -webkit-background-clip: text;
    background-clip: text;

    /* делаем сами глифы прозрачными, чтобы просвечивал фон */
    -webkit-text-fill-color: transparent;
    color: transparent;       /* на всякий случай для Firefox ≥ 115 */
}

.scientists__lead{
  display:flex;gap:32px;align-items:flex-start;margin:0 0 40px;
}
.scientists__lead-text{
  font:400 24px/1.5 "Geologica",sans-serif;
  color: #E7F0F9;
}
.scientists__lead__grad {
    background: linear-gradient(135deg, #8073F3 0%, #6DEBE4 100%);

    /* «прижимаем» фон к глифам */
    -webkit-background-clip: text;
    background-clip: text;

    /* делаем заливку символов прозрачной, чтобы просветил фон */
    -webkit-text-fill-color: transparent;
    color: transparent;   /* для Firefox ≥ 115 */
}

.scientists__intro{
  font:400 20px/1.5 "Geologica",sans-serif;
  color:#8D9CB9;
  margin:0 0 64px;
}

/* ---- слайдер (по мотивам knowledge‑slider) ---- */
.scientists-slider{display:flex;align-items:center;gap:24px;}
.scientists-btn{
  width:72px;height:72px;flex:0 0 72px;border:none;background:none;
  cursor:pointer;transition:transform .2s;
}
.scientists-btn:hover{transform:scale(1.06);}
.scientists-btn img{width:100%;pointer-events:none;}

.scientists-viewport{
  position:relative;overflow:hidden;flex:1 1 auto;
  padding:0px 0px 40px;
}
.scientists-track{display:flex;gap:32px;will-change:transform;}

.scientists-slide{
  flex: 0 0 calc(50% - 16px);          /* 2 карты на экране */
  min-width:320px;
  transition:opacity .45s,transform .45s;
}

/* ---- сама карточка учёного ---- */
.scientist-card{
  height:100%;display:flex;flex-direction:column;
  gap:16px;padding:48px 40px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
  border-radius:24px;
  color:#E7F0F9;
}
.scientist-photo{
  width:120px;height:120px;border-radius:50%;object-fit:cover;
  align-self: center;   /* вместо flex‑start  */
  margin: 0 auto 24px;  /* + автоматический горизонтальный отступ */
}
.scientist-name{font:500 22px/1.4 "Geologica",sans-serif;margin:0;align-self: center;   /* выравниваем сам элемент */
  text-align: center;   /* и его текст */}
.scientist-year{font-weight:400;}
.scientist-card p{font:300 18px/1.5 "Geologica",sans-serif;margin:0;}
.scientists__highlight {
    background: linear-gradient(135deg, #FB4242 0%, #F6A753 100%);

    /* прижимаем фон к контурам букв */
    -webkit-background-clip: text;
    background-clip: text;

    /* делаем глифы прозрачными, чтобы просвечивал фон‑градиент */
    -webkit-text-fill-color: transparent;
    color: transparent;               /* для Firefox ≥ 115 */
}

/* точки‑индикаторы */
.scientists-dots{display:flex;gap:8px;justify-content:center;margin-top:32px;}
.scientists-dot{
  width:26px;height:4px;border-radius:2px;border:none;cursor:pointer;
  background:#394F74;transition:background .35s;
}
.scientists-dot.is-active{
  background:linear-gradient(90deg,#FB4242 0%,#F6A753 100%);
}


/* ══════════════════════════════════════════════════════════════════════
   БЛОК «ИССЛЕДОВАНИЯ О МИТОХОНДРИЯХ»
   ═════════════════════════════════════════════════════════════════════ */

.mito-research{
  padding:120px 0;
}

.mito-research__title{
  font:300 64px/1.2 "Geologica",sans-serif;
  color:#465068;
  margin:0 0 48px;
  text-align:left;
}
.mito-research__title‑accent{
  background: linear-gradient(90deg, #8075F3 0%, #6EEAE4 100%);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;     /* для FireFox ≥ 115 */
}

.mito-slider{
  display:flex;
  align-items:center;
  gap:32px;
}

.mito-btn{
  width:80px;height:80px;flex:0 0 80px;
  border:none;background:none;cursor:pointer;
  transition:transform .2s;
}
.mito-btn img{width:100%;pointer-events:none;}
.mito-btn:hover{transform:scale(1.06);}

.mito-viewport{
  position:relative;overflow:hidden;flex:1 1 auto;
}

.mito-track{
  display:flex;gap:24px;
  will-change:transform;
}

.mito-slide{
  flex:0 0 calc(51% - 24px);            /* два слайда в кадре */
  min-width:320px;                      /* не съезжают на маленьких экранах */
  padding:56px 64px;
  background:#fff;
  border-radius:24px;
  box-shadow:0 12px 24px rgba(0,0,0,.04);
  color:#465068;
  transition: opacity .45s, transform .45s;
}

.mito-slide__title{
  font:600 26px/1.35 "Geologica",sans-serif;
  margin:0 0 12px;
}

.mito-slide__author{
  font:400 20px/1.5 "Geologica",sans-serif;
  color:#6B7994;
  margin:0 0 32px;
}

.mito-slide__label {
  font-weight: 500;
  /* задаём линейный градиент */
  background: linear-gradient(90deg, #FB4242 0%, #F6A753 100%);
  /* «обрезаем» фон по тексту */
  -webkit-background-clip: text;
          background-clip: text;
  /* делаем сам текст прозрачным, чтобы был виден фон */
  -webkit-text-fill-color: transparent;
          color: transparent;
}



.mito-slide p{
  font:300 18px/1.5 "Geologica",sans-serif;
  margin:0 0 24px;
}

/* ── индикаторы страниц ─────────────────────────────────────────── */
.mito-dots{
  display:flex;gap:12px;justify-content:center;
  margin:40px 0 0;
}
.mito-dot{
  width:26px;               /* как .scientists-dot */
  height:4px;
  border:none;
  border-radius:2px;
  background:#DFE3EC;
  cursor:pointer;
  transition:background .35s;
}
.mito-dot.is-active{
  background:linear-gradient(90deg,#FB4242 0%, #F6A753 100%);
}

/* дизейблим стрелки, когда нельзя листать дальше */
.mito-btn[disabled]{opacity:.35;cursor:default;transform:none;}


/* ═════════ FOOTER (3×33 %) ═════════ */
.site-footer{
  position:relative;
  left:50%; right:50%;
  margin-left:-50vw; margin-right:-50vw;
  width:100vw;

  background:#0F192C;
  color:#E7F0F9;
  padding:120px 0 80px;
  overflow:hidden;
}

/* ── три равных колонки ───────────────────────── */
.site-footer__inner{
  display:grid;
  grid-template-columns:repeat(3,1fr);   /* ← 33 %‑33 %‑33 % */
  column-gap:120px;
  row-gap:80px;
  align-items:flex-start;
}

/* базовый блок‑колонка просто для совместимости */
.site-footer__col{min-width:0;}          /* ширина управляется гридом */

/* ── бренд + контакты ─────────────────────────── */
.footer-logo{
  font:700 48px/1 'Geologica',sans-serif;
  display:inline-block;
  background:linear-gradient(90deg,#F6A753,#FB4242 25%,#7953F3 50%,#62B0EF 75%,#55EEDF);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  margin:0 0 24px;
}
.footer-tagline{
  font:500 14px/1.4 'Geologica',sans-serif;
  letter-spacing:.8px;
  text-transform:uppercase;
  color:#C6CFDF;
  margin:0 0 48px;
  /* ← max‑width убран */
}

/* соц‑иконки */
.footer-social{
  list-style:none;
  display:flex;
  gap:24px;
  margin:0 0 48px;
  padding:0;
}
.footer-social__link{
  width:64px;height:64px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:16px;
  background:linear-gradient(135deg,#8175F3 0%,#6EEAE4 100%);
  transition:transform .2s;
}
.footer-social__link:hover{transform:translateY(-4px);}
.footer-social__link::before{
  content:"";
  width:28px;height:28px;
  background:#fff;
  mask:center/contain no-repeat;
  -webkit-mask:center/contain no-repeat;
}
.footer-social__link--wa::before  {mask-image:url("images/social/wa.png");  -webkit-mask-image:url("images/social/wa.png");}
.footer-social__link--tg::before  {mask-image:url("images/social/tg.png");  -webkit-mask-image:url("images/social/tg.png");}
.footer-social__link--ig::before  {mask-image:url("images/social/ig.png");  -webkit-mask-image:url("images/social/ig.png");}
.footer-social__link--mail::before{mask-image:url("images/social/mail.png");-webkit-mask-image:url("images/social/mail.png");}

.footer-phone{
  font:700 26px/1 'Geologica',sans-serif;
  color:#fff;
  text-decoration:none;
  display:block;
  margin:0 0 24px;
}
.footer-phone:hover{text-decoration:underline;}

.footer-policy{
  font:400 16px/1.4 'Geologica',sans-serif;
  color:#8CA2C1;
  text-decoration:none;
}
.footer-policy:hover{text-decoration:underline;}

/* ── навигационные колонки ─────────────────────── */
.footer-menu{
  list-style:none;
  padding:0;margin:0;
  display:flex;
  flex-direction:column;
  gap:20px;
}
.footer-menu a{
  font:400 20px/1.3 'Geologica',sans-serif;
  color:#E7F0F9;
  text-decoration:none;
  transition:color .2s;
}
.footer-menu a:hover{
  /* фон‑градиент */
  background:linear-gradient(90deg,#8075F3 0%,#6EEAE4 100%);
  background-size:100% 100%;
  background-repeat:no-repeat;

  /* «прижимаем» фон к глифам */
  -webkit-background-clip:text;
          background-clip:text;

  /* делаем символы прозрачными → виден градиент */
  -webkit-text-fill-color:transparent;
          color:transparent;
}


/* ---------------------- FIXED SOCIAL ICONS ---------------------- */
.fixed-social-icons{position:fixed;bottom:30px;right:30px;display:flex;flex-direction:column;gap:15px;z-index:1000; transition: opacity 0.3s ease;}
.fixed-social-icons img{width:70px;height:70px;border-radius:50%;box-shadow:0 4px 10px rgba(0,0,0,.2);transition:transform .3s;}
.fixed-social-icons img:hover{transform:scale(1.1);}


/* стало */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(31,42,55, .6);
  display: none;
  /* Изменения ниже: */
  align-items: center;
  justify-content: center;
  padding: 5vh 0; /* Добавляем отступы сверху и снизу */
  overflow-y: auto; /* Позволяем скроллить сам оверлей, если окно очень высокое */
  z-index: 2000;
  
}

/* 2) Показать, когда есть класс open */
.modal-overlay.open {
  display: flex;
}

/* стало */
.modal-window {
  background: #F5FBFF;
  border-radius: 24px;
  padding: 40px 32px;
  width: 80%;
  box-shadow: 0 16px 32px rgba(31,42,55,.2);
  position: relative;
  /* Добавленные строки: */
  max-height: 90vh; /* Максимальная высота окна */
  overflow-y: auto;   /* Включаем вертикальный скролл для контента */
}

/* 4) Кнопка закрыть */
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 40px;
  cursor: pointer;
  color: #465068;
}

/* 5) Заголовки */
.modal-title {
  font-size: 28px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 8px;
  color: #465068;
}
.modal-subtitle {
  font-size: 16px;
  text-align: center;
  color: #465068;
  margin-bottom: 24px;
}

/* 6) Форма */
.modal-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  color: #465068;
}
.modal-form label span {
  display: block;
  margin-bottom: 16px;
}
.modal-form input {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border: none;
  border-radius: 24px;
  background: #E3E7F7;
  color: #1F2A37;
}

.modal-form input:focus {
  outline: none; /* убираем дефолтную */
  /* и / или делаем свою «красивую» обводку: */
  box-shadow: 0 0 0 1px rgba(70,80,104, 0.3);
}

/* опционально: стилизовать телефонное поле-флаг */
.phone-field input {
  padding-left: 24px;
  background-image: url('images/kz-flag.png');
  background-repeat: no-repeat;
  background-position: 16px center;
  background-size: 24px;
}

/* 7) Кнопка отправки — переиспользуем ваш .btn--primary */
.modal-form .btn--primary {
  width: 100%;
  margin-top: 32px;
  border: none;
  color: #fff;
}

/* 8) Примечание */
.modal-note {
  font-size: 12px;
  color: #6B7994;
  text-align: center;
  margin-top: 12px;
}



@media (max-width: 1280px) {
  .container {
    width: min(768px);
    padding: 0 25px;
  }
  .hero {
    padding-top: 100px;
  }
  .hero__buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
   .cooperation-card__actions .btn-mito, .cooperation-card__actions .btn-immune {
      width: 100%;
    }
    .cooperation-card__actions {
      flex-direction: column;
    }
  /* HERO */
  .hero__inner {
    flex-direction: column;
    align-items: center;
  }
  .hero__content {
    display: block;
    margin: 0 auto;
  }
  .hero__description {
    margin: 16px auto 32px;
  }
  .hero__title {
    font-size: 120px;

  }
  .hero__description {
    font-size: 22px;
  }
  .buttonHero {
    font-size: 14px;
  }
  .btn--primary {

    margin: 15px auto 0;

  }
  .hero__buttons {
    justify-content: center;
    margin-top: 32px;
  }
  .btn_hero.btn--outline.btn--wide {
    display: table;         /* «блочно-табличный» shrink-to-fit */
    margin: 15px auto 0;    /* 15px сверху, по центру слева/справа */
  }
  .hero__image {
    display: block;
    margin: 25px auto 0;  /* 15px сверху, по центру по горизонтали */
    left: 0;
    top: 0;
    width: 60%;

  }
  .btn-mito, .btn-immune {
    width: 800px;
  }
  .hero__image-wrap {
    --img-width: 80%;
  }
  .hero__video-link {
    right: calc(105% - var(--img-width));
    background: 5px;
  }
  .menu-overlay__nav {
    width: 70%;
  }
  .menu-overlay__list a {
    font-size: 16px;

    color: #fff;
  }


 /*ABOUT*/
  .about {
    padding: 70px 0 0;
  }
  .about__inner {
    flex-direction: column-reverse;
    align-items: center;
  }
  .about__icon {
    display: none;
  }
  .about__bottom-text p {
    font-size: 20px;
    margin: 0 15px;
  }

  /* ROADS TO MITO */
  .roads-to-mito__title {
    font-size: 54px;

  }
  .mito-gallery__title {
    font-size: 54px;
  }


  .diagnostics__title {
    font-size: 40px;
  }
  .diagnostics__row {
    flex-direction: column;
    align-items: center;
  }
  .diagnostics__text {
    right: 0;
  }
  .btn--primary.diagnostics__btn {
      /* 1) Делаем кнопку flex-контейнером */
      display: flex;
      /* 2) Центрируем содержимое по горизонтали */
      justify-content: center;
      /* 3) Центрируем по вертикали */
      align-items: center;

      /* ваши размеры и отступы */
      width: 80%;
      max-width: 600px;
      margin: 15px auto 0;
      padding: 0.75em 1.5em;
    }

  .mito-therapy__title {
    font-size: 48px;
    margin-bottom: 32px;
  }

  .screening__inner {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .screening__box {
    padding: 32px 0;
  }



  .aging__header {
    display: flex;
    flex-direction: column;
  }

  .aging__title {
    font-size: 54px;
  }

  .slide-title {
    font-size: 16px;
  }
  .slide p {
    font-size: 14px;
  }
  .slide {
    padding: 28px 32px;
  }
  .competence__title {
    font-size: 54px;
  }
  .competence-desc {
    margin-bottom: 40px;
  }
  .competence-card {
    flex-direction: column;
  }
  .competence-col--right {
    padding-left: 0;
    margin-top: 40px;
  }
  .knowledge-slide {
    flex: 0 0 100%;
  }
  .publications__title {
    font-size: 34px;
  }
  .publications__grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .publications__tagline {
    font-size: 34px;
  }



  .cooperation__title {
    font-size: 54px;
  }
  .cooperation-card__subtitle {
    font-size: 20px;
  }
  .cooperation-card__desc {
    font-size: 16px;
  }


  .training__title {
    font-size: 54px;
  }
  .training__list li {
    font-size: 18px;
  }
  .training-card {
    flex-direction: column-reverse;
    flex-wrap: wrap;
    align-content: center;
  }
  .training-card img {
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 20px;
  }




  .delivery-headline {
    font-size: 54px;
  }
  .therapy-cols {
    display: flex;
    flex-direction: column;
    gap: 48px;
  }
  .therapy-card {
    width: 70%;
    margin: 0 auto;
  }

  .delivery-types__grid {

    grid-template-columns: repeat(2, 1fr);
  }


  .scientists__title {
    font-size: 54px;
  }
  .scientists-slide {
    flex: 0 0 100%;
  }



  .mito-research__title {
    font-size: 54px;
  }

  .mito-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }


  .footer-social {
    flex-wrap: wrap;
  }
  .footer-phone {
    font-size: 18px;
  }
}









@media (max-width: 767px) {
  .container {
    width: min(479px);
    padding: 0 15px;
  }
  .training__actions .btn-mito, .training__actions .btn-immune {
    width: 450px;
  }
  .subtitle {
    font-size: 14px;
  }
  .hero {
    padding-top: 80px;
  }
  .btn--menu__inner{
    padding: 4px 16px;
  }
  .hero__title {
    font-size: 90px;
  }
  .hero__description {
    font-size: 18px;
  }
  .hero__video-thumb {
    width: 80px;
    height: 80px;
  }
  .hero__video-link {
    bottom: -10px;
  }

  .menu-overlay__list a {
    font-size: 18px;
  }
  .menu-overlay__social img {
    width: 60px;
    height: 60px;
  }
  .gradient-text {
    font-size: 16px
      }

    .competence__actions .btn-mito, .competence__actions .btn-immune {
      font-size: 14px;
    }
    .cooperation-card__actions .btn-mito, .cooperation-card__actions .btn-immune {
      padding: 24px;
      font-size: 16px;
    }
  .roads-to-mito__title {
    font-size: 40px;
  }
  .mito-gallery__cloud {
    padding: 0 15px;
  }

  .research__title {
    font-size: 40px;
  }

  .diagnostics__title {
    font-size: 30px;
  }
  .diagnostic_desc {
    margin-bottom: 32px;
  }

  .mito-therapy__title {
    font-size: 38px;
  }


  .screening__title {
    font-size: 34px;
    text-align: center;
  }

  .screening__image {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .screening__image img {
    max-width: 65%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  .screening-item__body {
    font-size: 14px;
  }

  .aging__title {
    font-size: 40px;
    margin-bottom: 10px;
  }
  /* ряд под лентой */
  .slider-nav{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:100px;            /* расстояние между стрелками и точками */
    margin-top:24px;
  }

  /* стрелки */
  .slider-btn{
    width:64px;height:64px;flex:0 0 90px;
    border:none;background:none;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    transition:transform .2s;
    margin-top: 20px;
  }
  .slider-btn:hover{transform:scale(1.06);}
  .slider-btn img{width:100%;pointer-events:none;}

  /* dots */
  .slider-dots{display:flex;gap:8px; justify-content: center; margin-top: 40px;}
  .slider-dot{
    width:26px;height:4px;border:none;border-radius:2px;cursor:pointer;
    background:#394F74;transition:background .35s;
  }
  .slider-dot.is-active{
    background:linear-gradient(90deg,#FB4242 0%, #F6A753 100%);
  }

  /* сам слайд занимает 100 % ширины вьюпорта */
  .slider-track .slide{flex:0 0 100%;}

  /* скрываем вертикальный индикатор */
  .slider-progress{display:none;}


  .competence__title {
    font-size: 48px;
  }
  .competence__subtitle__text {
    font-size: 20px;
  }
  .competence-lead {
    font-size: 14px;
  }
  .competence-number__value {
    font-size: 50px;
  }
  .competence-number__patients {
    font-size: 30px;
  }
  .hide_on_mobile {
    display: none;
  }
  .competence-col--left {
    padding-right: 0;
  }

  .publications__title {
    font-size: 28px;
  }
  .publications__tagline {
    font-size: 28px;
  }
  .cooperation__title {
    font-size: 40px;
  }
  .cooperation-card__title {
    font-size: 28px;
  }
  .cooperation-card__subtitle {
    font-size: 16px;
  }
  .cooperation-card__desc {
    font-size: 16px;
  }
  .cooperation-card__actions {
    gap: 20px;
  }
  .training__actions .btn-mito, .training__actions .btn-immune {
    padding: 24px 80px;
  }
  
  .training__title {
    font-size: 40px;
  }
  

  .delivery-headline {
    font-size: 32px;
  }

  .delivery-types__grid {
        grid-template-columns: repeat(2, 1fr);
  }

  .delivery-molecules__tags span {
    font-size: 16px;
  }

  .scientists__title {
    font-size: 40px;
  }
  .scientists__intro {
    font-size: 16px;
  }
  .mito-research__title {
    font-size: 40px;
  }


  .site-footer__inner {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
  }



  .fixed-social-icons img {
    width: 60px;
    height: 60px;
  }
  .fixed-social-icons {
    right: 10px;
    bottom: 10px;
  }

  .modal-window {
    width: 87%;
  }


}









@media (max-width: 479px) {
  .container {
    width: min(320px);
    padding: 0;
  }
  .subtitle {
    font-size: 9px;
  }
  .training__actions .btn-mito, .training__actions .btn-immune {
    width: 350px;
  }
  .hero__title {
    font-size: 54px;
  }
  .hero__description {
    font-size: 14px;
    max-width: 310px;
    margin: 0;
  }
  .buttonHero {
    font-size: 14px;
  }
  .btn--primary {
    margin: 0;
    margin-top: 25px;
  }
  .btn--menu__inner{
    padding: 2px 16px;
  }
  .hero__buttons {
    gap: 0;
    margin-top: 20px;
  }
  .btn--primary {
    padding: 24px 15px;
  }
  .btn_w1 {
    width: 282px;
  }
  .btn_w2 {
    width: 282px;
  }
  .btn--wide {
    width: 282px;
    margin-top: 0;
  }
  .btn_hero {
    font-size: 16px;
  }
  .btn_hero.btn--outline.btn--wide {
    margin: 0 auto 0;
  }
  .hero__image {
    margin: 10px auto 0;
    width: 100%;
  }
  .hero__video-link {
        right: calc(85% - var(--img-width));
    }
  .menu-overlay__nav {
    width: 90%;
  }
  .menu-overlay__list a {
    font-size: 13px;
  }
  .menu-overlay__social img {
    width: 50px;
    height: 50px;
  }

  .about__title {
    font-size: 45px;
    margin-bottom: 10px;
  }
  .about__subtitle {
    font-size: 16px;
  }
  .about_more {
    font-size: 16px;
  }
  .about__bottom-text p {
    font-size: 16px;
  }
  .roads-to-mito {
    padding-top: 40px;
  }
  .roads-to-mito__title {
    font-size: 28px;
  }
  .roads-to-mito__content {
    max-width: none;
  }
  .roads-to-mito__icon {
    display: none;
  }
  .roads-to-mito__text {
    font-size: 16px;
  }
  .roads-to-mito__inner {
    gap: 10px;
  }
  .roads-to-mito__description {
    font-size: 14px;
  }


  .mito-gallery__title {
    font-size: 32px;
  }
  .mito-gallery__subtitle img {
    display: none;
  }
  .mito-gallery__subtitle {
    font-size: 16px;
  }
  .mito-gallery__cloud {
    padding: 0;
    grid-template-columns: repeat(auto-fill, 50px);
    grid-auto-rows: 50px;
  }
  .btn--cta {
    width: 270px;
    font-size: 12px;
  }

  .research {
    padding-bottom: 0;
  }
  .research__title {
    font-size: 28px;
  }
  .research-item__name,.research-item__num {
    font-size: 16px;
  }
  .research-item__scale {
    width: 100%;
  }
  .research-item__subtitle { 
    font-size: 22px;
  }
  .research-item__text {
    font-size: 16px;
  }
  .research-item__interpretation {
    font-size: 16px;
  }
  .btn-mito, .btn-immune {
    padding: 14px 23px;
    font-size: 14px;
    text-align: center;
  }
  .research__actions {
    gap: 20px;
  }

  .diagnostics {
    padding-bottom: 40px;
    padding-top: 40px;
  }
  .diagnostics__title {
    font-size: 24px;
  }
  .diagnostics__lead-icon {
    display: none;
  }
  .diagnos_sub {
    font-size: 18px;
  }
  .diagnostic_desc {
    font-size: 14px;
  }

  .diagnostics__text-icon {
    display: none;
  }
  .diagnostic_text_sub {
    font-size: 16px;
  }
  .diagnostics__desc_with_image {
    font-size: 14px;
  }
  .btn_diagnostic {
    font-size: 12px;
  }

  .mito-therapy {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .mito-therapy__title {
    font-size: 24px;
  }

  .mito-therapy__icon {
    display: none;
  }
  .mito-therapy__lead p {
    font-size: 16px;
  }
  .mito-therapy__desc {
    font-size: 14px;
  }

  .screening {
    padding-bottom: 40px;
  }
  .screening__inner {
    padding: 0 20px;
  }
  .screening__title {
    font-size: 20px;
    max-width: 290px;
    margin: 0 auto;
    margin-bottom: 20px;
  }
  .screening__image img {
    max-width: 50%;
  }
  .screening-item__header {
    font-size: 16px;
    padding: 24px 24px 5px 0;
  }
  .screening-item__body {
    font-size: 14px;
    padding: 0 0 12px 0;
  }
  .aging {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .aging__title {
    font-size: 28px;
  }
  .aging__subtitle {
    font-size: 16px;
  }
  .aging__lead img {
    display: none;
  }
  .agind__lead_subtitle {
    font-size: 16px;
  }

  .slide {
    padding: 12px 16px 0px 12px;
    min-width: 0;

  }
  .slide-title {
    font-size: 12px;
  }
  .slide p {
    font-size: 10px;
    margin: 0 0 5px;
  }
  .slider-nav {
    gap: 40px;
  }

  .competence {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .competence__title {
    font-size: 28px;
  }
  .competence__subtitle img {
    display: none;
  }
  .competence__subtitle__text {
    font-size: 16px;
  }

  .competence-card {
    padding: 24px 14px;
  }

  .competence-lead {
    font-size: 10px;
  }
  .competence-desc {
    font-size: 16px;
  }
  .competence-list li {
    font-size: 14px;
  }
  .competence__actions .btn-mito, .competence__actions .btn-immune {
    padding: 18px 40px;
    font-size: 14px;
    text-align: center;
}

  .competence__actions {
    gap: 20px;
  }
  .knowledge-sharing {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .knowledge-heading img {
    display: none;
  }

  .knowledge-title {
    font-size: 16px;
  }
  .knowledge-text {
    font-size: 14px;
  }
  .knowledge-viewport {
    padding: 20px 20px 40px;
  }
  .publications {
    padding-top: 0;
    padding-bottom: 40px;
  }
  .publications__title {
    font-size: 20px;
  }
  .publications__grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    margin-bottom: 40px;
  }
  .publications__tagline {
    font-size: 20px;
  }
  .publications__desc {
    font-size: 14px;
  }
  .cooperation {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .cooperation__title {
    font-size: 28px;
  }
  .cooperation__icon {
    display: none;
  }
  .cooperation__lead-text {
    font-size: 16px;
  }
  .cooperation-card {
    padding: 30px;
  }
  .cooperation-card__title {
    font-size: 22px;
  }
  .cooperation-card__subtitle {
    font-size: 14px;
  }
  .cooperation-card__desc {
    font-size: 14px;
  }
  .cooperation-card__actions .btn-mito, .cooperation-card__actions .btn-immune {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
  }
  .cooperation-card__actions {
    gap: 20px;
  }

  .training {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .training__title {
        font-size: 28px;
  }
  .training__subtitle {
    font-size: 18px;
  }
  .training__list li {
    font-size: 14px;
  }
  .training-card__title {
    font-size: 20px;
  }
  .training-card__text {
    font-size: 14px;
    margin-bottom: 0px;
  }

  .training__lead-icon {
    display: none;
  }
  .training__lead-text {
    font-size: 16px;
  }
  .training__actions .btn-mito, .training__actions .btn-immune {
     padding: 14px 80px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
  }
  .training__actions {
    gap: 20px;
  }
  
  .delivery-headline {
    font-size: 22px;
  }
  .delivery-smalllead {
    font-size: 14px;
  }

  .therapy__lead-icon {
    display: none;
  }
  .therapy__lead-text {
    max-width: 100%;
    font-size: 16px;
  }
  .therapy-list li {
    font-size: 16px;
  }
  .therapy-card {
    width: 100%;
  }
  .delivery-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .delivery-types__title img {
    display: none;
  }
  .delivery-types__title {
    font-size: 20px;
  }
  .delivery-molecules__title img {
    display: none;
  }
  .delivery-molecules__title {
    font-size: 20px;
  }
  .delivery-molecules__tags span {
    font-size: 12px;
  }
  .scientists {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .scientists__title {
    font-size: 28px;
  }
  .scientists__lead img {
    display: none;
  }
  .scientists__lead-text {
    font-size: 16px;
  }
  .scientists__intro {
        font-size: 14px;
    }
  .scientists-slide {
    min-width: 0;
  }
  .scientist-card {
    padding: 20px 20px;
  }
  .scientist-name {
    font-size: 16px;
  }
  .scientist-card p {
    font-size: 14px;
  }
  .mito-research {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .mito-research__title {
    font-size: 28px;
    margin: 0 0 20px;
  }
  .mito-slide {
    padding: 20px;
    min-width: 0;
  }
  .mito-slide__title {
    font-size: 18px;
  }
  .mito-slide p {
    font-size: 14px;
  }

  .footer-social {
    display: grid;
    grid-template-columns: repeat(2, 0fr);
  }

  .fixed-social-icons img {
    width: 40px;
    height: 40px;
  }
  .fixed-social-icons {
    right: 5px;
    bottom: 5px;
  }
  .modal-title {
    font-size: 20px;
  }
  .modal-subtitle {
    font-size: 12px;
  }
  .modal-close {
    right: 10px;
    top: 10px;
  }
  .modal-window {
    width: 90%;
    padding: 20px 16px;
  }
  .modal-form input {
    padding: 10px;
  }
  .modal-form .btn--primary {
    margin-top: 16px;
  }
  .menu_buttons {
    margin-left: 10px;
  }
  .gradient-text {
        font-size: 14px;
  }

}


@media (max-width: 319px) {
  .container {
    width: min(250px);
  }
 
}

@media (max-width: 360px) {
    .training__actions .btn-mito, .training__actions .btn-immune {
    width: 310px;
  }
 }







@media (min-width: 768px){
  .slider-btn, .slider-dots{display:none;}
  .hide_on_dekstop{display: none;}
}



/* Оверлей на весь экран */
#clickable-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Само увеличенное изображение */
#clickable-overlay img {
  max-width: 90%;
  max-height: 90%;
}

img.clickable {
  cursor: zoom-in;
}

#clickable-overlay {
  cursor: zoom-out;
}





.form-message {
  padding: 10px 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}
.form-message--error {
  background-color: #FDEDED; /* Light red */
  color: #D32F2F; /* Dark red */
  border: 1px solid #F5C6CB;
}
.form-message--success {
  background-color: #E6F7F0; /* Light green */
  color: #0D8A58; /* Dark green */
  border: 1px solid #C3E6CB;
}

/* --- Auth Modals --- */
/* --- Auth Modals --- */
.auth-modal {
  max-width: 500px;
  width: 90%;
  background: #F5FBFF; /* Убедитесь, что фон есть, если наследуется */
  border-radius: 24px;
  padding: 30px 35px; /* Немного адаптируем отступы для скролла */
  box-shadow: 0 16px 32px rgba(31,42,55,.2);
  position: relative; /* Уже должно быть */

  /* Добавляем эти свойства для скролла */
  max-height: 90vh; /* Максимальная высота - 90% высоты видимой области экрана */
  overflow-y: auto; /* Показать вертикальный скроллбар, если содержимое превышает max-height */
  display: flex; /* Используем flex для лучшего управления внутренним контентом */
  flex-direction: column; /* Располагаем элементы модального окна (заголовок, форма) в столбец */
}

/* Модифицируем отступы для заголовка, чтобы он выглядел хорошо при скролле */
.auth-modal .modal-title {
  margin-bottom: 20px; /* Уменьшим немного отступ снизу, если нужно */
  flex-shrink: 0; /* Предотвращаем сжатие заголовка при нехватке места */
}

/* Обёртка для формы, чтобы она занимала доступное место и позволяла скролл */
.auth-modal .modal-form {
  flex-grow: 1; /* Позволяет форме занять оставшееся место */
  /* Если нужен дополнительный отступ снизу внутри скроллящейся области */
  /* padding-bottom: 10px; */
}

.auth-form label {
  font-weight: 500;
  font-size: 15px;
}

.auth-form input[type="text"],
.auth-form input[type="tel"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  background-color: #E3E7F7; /* Light grey background for inputs */
  border: 1px solid #D1D9E6;
  border-radius: 12px; /* Softer corners */
  padding: 14px;
  margin-top: 6px;
  font-size: 16px;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="tel"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
  border-color: #7953F3; /* Highlight focus */
  box-shadow: 0 0 0 2px rgba(121, 83, 243, 0.2);
}

.form-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px; /* Reduced top margin */
  margin-bottom: 20px;
}
.checkbox-label {
  display: flex;
}

.forgot-password-link {
  font-size: 14px;
  color: #7953F3;
  text-decoration: none;
}
.forgot-password-link:hover {
  text-decoration: underline;
}

.auth-btn {
  width: auto; /* Adjust button width */
  padding-left: 30px;
  padding-right: 30px;
  margin-top: 0; /* Reset margin from .modal-form .btn--primary */
}

.modal-note.text-center {
  text-align: center;
  margin-top: 20px;
}

.auth-switch-link {
  color: #7953F3;
  font-weight: 600;
  text-decoration: none;
}
.auth-switch-link:hover {
  text-decoration: underline;
}

/* For two-column layout in registration form */
.form-row {
  display: flex;
  gap: 20px;
  width: 100%;
}
.form-half {
  flex: 1;
  min-width: 0; /* Important for flex items to shrink properly */
}

.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #4A5568;
  margin-top: 15px;
  margin-bottom: 20px;
}
.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
  accent-color: #7953F3; /* Modern way to color checkbox */
}
.checkbox-label a {
  color: #7953F3;
  text-decoration: none;
}
.checkbox-label a:hover {
  text-decoration: underline;
}

/* Responsive adjustments for auth modals */
@media (max-width: 480px) {
  .auth-modal {
    padding: 30px 20px;
  }
  .modal-title {
    font-size: 22px;
  }
  .form-row {
    flex-direction: column;
    gap: 0; /* Remove gap if they stack and labels have bottom margin */
  }
  .form-half {
    margin-bottom: 16px; /* Add margin if stacked */
  }
  .form-half:last-child {
    margin-bottom: 0;
  }
   .form-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .auth-btn {
    width: 100%;
  }
  .mito-gallery {
    padding-top: 40px;
  }
}


/* Стили для выбора роли в форме регистрации */
.role-selection {
    display: flex;
    gap: 20px; /* Расстояние между радио-кнопками */
    margin-top: 8px;
    margin-bottom: 12px; /* Отступ снизу до следующего поля */
}

.role-selection label {
    display: flex; /* Для выравнивания радио-кнопки и текста */
    align-items: center;
    gap: 6px; /* Расстояние между радио-кнопкой и текстом */
    font-weight: normal; /* Убираем жирность с label, если она наследуется */
    font-size: 15px; /* Размер текста как у других лейблов */
    margin-bottom: 0; /* Убираем стандартный отступ у label внутри flex */
}

.role-selection input[type="radio"] {
    width: auto; /* Позволяем радио-кнопке иметь свой естественный размер */
    margin-right: 0; /* Убираем отступ, если он был, т.к. используем gap */
}

/* Стили для группы "Код прикрепившего врача" (для управления через JS) */
#referringDoctorCodeGroup.form-group { /* Используем .form-group для консистентности */
    /* display: none; /* Начальное состояние (если врач выбран по умолчанию или скрыто до выбора роли) */
    /* JavaScript будет управлять display: block/none */
}

/* Стили для сообщений об успехе/ошибке в форме (если еще не определены глобально) */
.form-message {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}
.form-message--error {
    background-color: #FDEDED; /* Light red */
    color: #D32F2F; /* Dark red */
    border: 1px solid #F5C6CB;
}
.form-message--success {
    background-color: #E6F7F0; /* Light green */
    color: #0D8A58; /* Dark green */
    border: 1px solid #C3E6CB;
}

/* Небольшой фикс для input[type="date"] в Firefox, чтобы он не был слишком узким */
input[type="date"] {
    min-width: 150px; /* или другое подходящее значение */
}


/* CSS для блока прайс-листа - большие карточки на всю ширину */

.price-list-section {
    padding: 0px 0 80px 0;
}

.price-list-header {
    text-align: left;
    margin-bottom: 40px;
}

.price-cards-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 30px;
    justify-content: space-between; /* Равномерное распределение */
}

.price-card {
    background-color: #FEF6F8;
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    flex: 1; /* Каждая карточка занимает равную долю */
    height: 600px; /* Увеличенная высота */
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Выделенная карточка (средняя) */
.price-card--featured {
    background: linear-gradient(135deg, #FEF6F8 0%, #F0F8FF 100%);
    border: 2px solid #7465F2;
    transform: scale(1.05);
}

.price-card--featured:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Бейдж "ПОПУЛЯРНЫЙ" */
.price-card__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #7465F2 0%, #33C2CC 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-card__title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0px 0 15px 0; /* Уменьшили нижний отступ с 35px до 15px */
    text-align: center;
    line-height: 1.3;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-card__list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    font-size: 18px;
    color: #505050;
    line-height: 1.7;
    flex-grow: 1;
    /* КЛЮЧЕВОЕ: добавляем скролл только для десктопа */
    overflow-y: auto;
    max-height: 280px; /* Увеличенная высота для скролла */
    padding-right: 8px;
}
.centerFormButtonWrapper {
  display: flex;
  justify-content: center;
}

/* Стилизуем скроллбар */
.price-card__list::-webkit-scrollbar {
    width: 6px;
}

.price-card__list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.price-card__list::-webkit-scrollbar-thumb {
    background: #7465F2;
    border-radius: 3px;
}

.price-card__list::-webkit-scrollbar-thumb:hover {
    background: #5a4dd1;
}

.price-card__list li {
    padding: 8px 0;
    border-bottom: 1px solid #FADEE6;
}

.price-card__list li:last-child {
    border-bottom: none;
}

.price-card__bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.price-card__price {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    background: linear-gradient(90deg, #E85A8A 0%, #F47D65 100%);
    padding: 18px 25px;
    border-radius: 100px;
    text-align: center;
}

.price-card--featured .price-card__price {
    background: linear-gradient(90deg, #7465F2 0%, #33C2CC 100%);
    font-size: 36px;
}

.price-card__btn {
    background: linear-gradient(90deg, #7465F2 0%, #33C2CC 50%, #00E5FF 100%);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Geologica', sans-serif;
}

.price-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(116, 101, 242, 0.4);
}

.price-card--featured .price-card__btn {
    background: linear-gradient(90deg, #FB4242 0%, #F6A753 100%);
    font-size: 18px;
    padding: 20px 25px;
}

/* Стили для отображения количества показателей */
.price-card__indicators {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #7465F2;
    background: rgba(116, 101, 242, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    margin: 0 auto 25px auto;
    width: fit-content;
    border: 1px solid rgba(116, 101, 242, 0.2);
}

/* Для выделенной карточки */
.price-card--featured .price-card__indicators {
    background: rgba(251, 66, 66, 0.1);
    color: #FB4242;
    border-color: rgba(251, 66, 66, 0.2);
}

/* Адаптация для планшетов */
@media (max-width: 1280px) {
    .price-card__indicators {
        font-size: 13px;
        padding: 7px 14px;
        margin-bottom: 20px;
    }
}

/* Адаптация для мобильных */
@media (max-width: 767px) {
    .price-card__indicators {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 18px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 479px) {
    .price-card__indicators {
        font-size: 11px;
        padding: 5px 10px;
        margin-bottom: 15px;
    }
}

/* Адаптация для планшетов */
@media (max-width: 1280px) {
    .price-cards-container {
        gap: 25px;
    }
    
    .price-card {
        padding: 35px 25px;
        height: 550px;
    }
    
    .price-card__title {
        font-size: 22px;
        height: 65px;
        margin: 0px 0 30px 0;
    }
    
    .price-card__list {
        font-size: 15px;
        margin-bottom: 30px;
        max-height: 250px;
    }
    
    .price-card__list li {
        padding: 7px 0;
    }
    
    .price-card__bottom {
        gap: 18px;
    }
    
    .price-card__price {
        font-size: 28px;
        padding: 16px 22px;
    }
    
    .price-card--featured .price-card__price {
        font-size: 32px;
    }
    
    .price-card__btn {
        padding: 16px 22px;
        font-size: 15px;
    }
    
    .price-card--featured .price-card__btn {
        font-size: 17px;
        padding: 18px 22px;
    }
}

/* Адаптация для мобильных - БЕЗ СКРОЛЛА */
@media (max-width: 767px) {
    .price-list-section {
        padding: 60px 0;
    }
    
    .price-cards-container {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }
    
    .price-card {
        width: 100%;
        max-width: 100%;
        /* КЛЮЧЕВОЕ: убираем фиксированную высоту для автоподбора */
        height: auto;
        min-height: 500px;
        padding: 30px 25px;
    }
    
    .price-card--featured {
        transform: none;
        border-width: 1px;
    }
    
    .price-card--featured:hover {
        transform: translateY(-5px);
    }
    
    .price-card__title {
        font-size: 20px;
        height: 60px;
        margin: 0px 0 25px 0;
    }
    
    .price-card__list {
        font-size: 15px;
        margin-bottom: 25px;
        /* КЛЮЧЕВОЕ: убираем скролл на мобильных */
        overflow-y: visible;
        max-height: none;
        padding-right: 0;
    }
    
    .price-card__list li {
        padding: 7px 0;
    }
    
    .price-card__bottom {
        gap: 18px;
    }
    
    .price-card__price {
        font-size: 26px;
        padding: 14px 20px;
    }
    
    .price-card--featured .price-card__price {
        font-size: 28px;
    }
    
    .price-card__btn {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .price-card--featured .price-card__btn {
        font-size: 17px;
        padding: 16px 20px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 479px) {
    .price-card {
        padding: 25px 20px;
        min-height: 450px;
    }
    
    .price-card__title {
        font-size: 18px;
        height: 55px;
        margin: 0px 0 20px 0;
    }
    
    .price-card__list {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .price-card__list li {
        padding: 6px 0;
    }
    
    .price-card__bottom {
        gap: 15px;
    }
    
    .price-card__price {
        font-size: 24px;
        padding: 12px 18px;
    }
    
    .price-card--featured .price-card__price {
        font-size: 26px;
    }
    
    .price-card__btn {
        padding: 12px 18px;
        font-size: 15px;
    }
    
    .price-card--featured .price-card__btn {
        font-size: 16px;
        padding: 14px 18px;
    }
}



/* ===================================== */
/* === Adaptive Video Modal Styles === */
/* ===================================== */

/* Default style for Mobile (Vertical Video) 
  Это стиль по умолчанию: соотношение сторон 9:16.
*/
.video-modal-content {
    background-color: #000;
    width: 95vw; /* На мобильных окно занимает почти всю ширину экрана */
    max-width: 420px; /* Ограничение, чтобы на планшетах в портретном режиме не было слишком широким */
    padding: 0;
    
    /* КЛЮЧЕВОЕ ИЗМЕНЕНИЕ: Соотношение сторон по умолчанию - ВЕРТИКАЛЬНОЕ */
    aspect-ratio: 9 / 16;
    
    position: relative;
    overflow: hidden;
    border-radius: 20px; /* Скруглим углы для эстетики на мобильных */
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}

/* Media Query for Desktops (Horizontal Video) 
  Этот стиль применяется, только если ширина экрана БОЛЬШЕ 767px.
*/
@media (min-width: 768px) {
    .video-modal-content {
        width: 90vw; /* На десктопе используем 90% ширины */
        max-width: 1100px; /* Но не более 1100px */
        
        /* КЛЮЧЕВОЕ ИЗМЕНЕНИЕ: Переключаем на ГОРИЗОНТАЛЬНОЕ соотношение */
        aspect-ratio: 16 / 9;
        
        border-radius: 0; /* Убираем скругление для классического вида на ПК */
    }
}


/* Добавить к существующему CSS */

/* Скрытые элементы списка */
.hidden-item {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hidden-item.show {
    display: block;
    opacity: 1;
}

/* Кнопка "Показать еще" */
.show-more-btn {
    background: none;
    border: 1px solid #7465F2;
    color: #7465F2;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto 15px auto;
    display: block;
    font-family: 'Geologica', sans-serif;
}

.show-more-btn:hover {
    background: #7465F2;
    color: white;
}

/* Обновляем высоту карточек для компактности */
.price-card {
    height: auto;
    min-height: 400px; /* Уменьшили с 600px */
}

/* Убираем скролл из списка */
.price-card__list {
    overflow-y: visible;
    max-height: none;
    padding-right: 0;
}

/* Адаптация для мобильных */
@media (max-width: 767px) {
    .price-card {
        min-height: 350px;
    }
    
    .show-more-btn {
        font-size: 11px;
        padding: 6px 14px;
        margin-bottom: 12px;
    }
}

/* --- Эти стили остаются без изменений, они универсальны --- */

/* The video player itself */
.video-modal-content video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Style the close button for the dark background */
.video-modal-content .modal-close {
    color: #fff;
    opacity: 0.8;
    z-index: 10;
    right: 10px;
    top: 10px;
    font-size: 35px;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.video-modal-content .modal-close:hover {
    opacity: 1;
}



/* ======================================= */
/* === Стили для галереи видео курса  === */
/* ======================================= */

/* Контейнер для галереи, по умолчанию скрыт */
.training-video-gallery {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.7s ease-out, opacity 0.5s ease-in, margin-top 0.7s ease-out;
  margin-top: 0;
  border-radius: 24px;
  background-color: #fff;
  padding: 0 40px;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}

/* Класс, который добавляется через JS для открытия галереи */
.training-video-gallery.is-open {
  max-height: 1500px; /* Достаточно большое значение, чтобы вместить контент */
  opacity: 1;
  margin-top: 64px; /* Отступ сверху, когда галерея открыта */
  padding: 40px;
  margin-bottom: 40px;
}

.training-video-gallery__title {
  font-size: 32px;
  font-weight: 500;
  color: #465068;
  margin-bottom: 32px;
  text-align: center;
  background: linear-gradient(90deg,#8075F3 0%,#6EEAE4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Сетка для видео */
.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* "Заглушка" для видео */
.video-placeholder {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Соотношение сторон 16:9 */
  background-color: #E3E7F7;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #465068;
  font-family: 'Geologica', sans-serif;
  overflow: hidden;
}

.video-placeholder p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-placeholder iframe,
.video-placeholder div {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Делаем изображение-триггер кликабельным на вид */
#trainingVideoTrigger {
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Визуальный эффект для триггера, когда галерея открыта */
#trainingVideoTrigger.gallery-is-open {
    transform: scale(1.03);
    box-shadow: 0 0 0 4px #7953F3;
}

/* Адаптация для мобильных */
@media (max-width: 767px) {
  .video-gallery-grid {
    grid-template-columns: 1fr; /* Видео в один столбец */
  }
  .training-video-gallery.is-open {
    padding: 20px 15px;
    margin-top: 40px;
  }
  .training-video-gallery__title {
      font-size: 24px;
  }
}





/* style.css */

/* --- Стили для выбора типа анализа в модальном окне --- */
.analysis-type-selection {
  margin-bottom: 16px;
}

.analysis-type-title {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  color: #465068;
}

.analysis-buttons-group {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* Прячем стандартные радио-кнопки */
.analysis-buttons-group input[type="radio"] {
  display: none; 
}

/* Стилизуем label как кнопку */
.analysis-button {
  flex: 1;
  padding: 12px 10px;
  border: 1px solid #D1D9E6;
  border-radius: 12px;
  background-color: #E3E7F7;
  color: #465068;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Стиль для ВЫБРАННОЙ кнопки */
.analysis-buttons-group input[type="radio"]:checked + .analysis-button {
  background: linear-gradient(90deg, #7465F2, #33C2CC);
  color: #fff;
  border-color: #7465F2;
}

/* Стиль при наведении */
.analysis-button:hover {
  background-color: #d1d9e6;
}

/* Стиль при наведении на уже выбранную кнопку */
.analysis-buttons-group input[type="radio"]:checked + .analysis-button:hover {
  background: linear-gradient(90deg, #7465F2, #33C2CC);
  opacity: 0.9;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 479px) {
  .analysis-buttons-group {
    flex-direction: column;
  }
  .analysis-button {
    font-size: 14px;
  }
}



/* style.css: ДОБАВИТЬ ЭТОТ КОД В КОНЕЦ ФАЙЛА */

/* По умолчанию скрываем оба блока с кнопками */
.user-actions.guest,
.user-actions.user {
    display: none;
}

/* Если у оверлея есть класс .logged-out, показываем кнопки для гостя */
.menu-overlay.logged-out .user-actions.guest {
    display: flex;
    gap: 10px; /* Сохраняем отступ между кнопками */
}

/* Если у оверлея есть класс .logged-in, показываем кнопки для пользователя */
.menu-overlay.logged-in .user-actions.user {
    display: flex;

    gap: 10px;
}


@media (max-width: 768px) {
  .cooperation__main-title {
    font-size: 42px;
  }
  .cooperation__subtitle {
    font-size: 20px;
  }
  .cooperation__text p {
    font-size: 15px;
  }
}
@media (max-width: 480px) {
  .cooperation__main-title {
    font-size: 34px;
  }
}

/* --- Стили для юридической информации в футере --- */
.footer-legal-info {
  font-size: 14px;
  color: #8CA2C1; /* Такой же цвет, как у ссылок на политику */
  line-height: 1.6;
  margin-top: 24px; /* Отступ сверху для отделения от ссылок */
}


