@font-face {
    font-family: "Geologica";
    src: url("./fonts/Geologica-Regular.woff2") format("woff2"),
        url("./fonts/Geologica-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}







body {
    font-family: "Geologica", Arial, sans-serif;
    background-color: rgb(194, 218, 255);
    color: #0c3dc5;
    margin: 0;
  padding: 0;
    position: relative;
    background-repeat: repeat;
    background-size: auto;
    min-height: 100vh;
    cursor: url('pictures/cursor.png') 16 16, auto;
}
.back-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* видео растягивается на весь экран */
  z-index: -2;
  opacity: 0.7; /* регулируй прозрачность */
}


body::before,
body::after {
    content: "";
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
}
.header-image {
    width: 100%;
    overflow: hidden;
}

.full-width-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%;
    top: -20px;
}

.theme-header {
    text-align: center;
    margin-bottom: 40px;
}

.theme-subtitle {
    font-size: 1.125rem; /* тонкий верхний текст */
    font-weight: 300;
    color: #9ad1ff;
    text-transform: uppercase; /* опционально, чтобы было как заголовок */
    letter-spacing: 1px;
}

.theme-title {
    font-size: 3rem; /* основной жирный текст */
    font-weight: 700;
    color: #0c3dc5;
}

/* Заголовок секции */
h2 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #0c3dc5;
}

/* Сетка оглавления - карточки 4 в ряд */
.toc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    padding: 20px 0;
}

.toc-card {
    position: relative;
}

.toc-card a {
    position: relative;
    display: flex;
    flex-direction: column; /* изменено на колонку */
    justify-content: flex-start; /* выравнивание к верху */
    width: 100%;
    height: 260px; /* увеличена высота */
    padding: 28px 18px 60px 18px; /* больше места снизу для изображения */
    background-color: rgba(255, 255, 255, 0.08);
    color: #0e1e66;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 60, 139, 0.199),
        inset 0 0 40px rgba(255, 255, 255, 0.514);
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
    cursor: url('pictures/pointer.png') 16 16, auto;
}

.toc-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: rgb(20, 57, 182);
    margin-right: 16px;
    letter-spacing: 1px;
    flex-shrink: 0;
    display: inline-block;
    min-width: 32px;
    text-align: center;
}

.toc-title {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    font-size: 1.125rem;
    margin-top: 16px;
    color: rgb(20, 57, 182);
}

.toc-card a:hover .toc-number {
    color: rgba(255, 255, 255, 0.95);
}


/* hover эффект */
.toc-card a:hover {
    background-color: #025bcf;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(26, 119, 255, 0.4);
}
/* hover эффект */
.toc-card a:hover .toc-title {
    color: rgba(255, 255, 255, 0.95);
}
/* картинка справа */
.toc-card a img {
    position: absolute;
    right: -100px;
    top: 80%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    object-fit: contain;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: -1;
}

.toc-card a:hover img {
    opacity: 0.3;
    transform: translateY(-50%) scale(1.1);
}

/* =================================
   НЕАКТИВНАЯ КАРТОЧКА
================================= */
.toc-card.inactive {
    opacity: 0.6;           /* Делаем тусклой */
    cursor: not-allowed;    /* Курсор "запрещено" */
    position: relative;     /* Для позиционирования надписи */
}

/* Затемнение изображения */
.toc-card.inactive img {
    opacity: 0.7;
}

/* Блокируем клики */
.toc-card.inactive a {
    pointer-events: none;   /* Запрет кликов */
}

/* Надпись "СКОРО" */
.toc-card.inactive::after {
    
    
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    
    z-index: 5;
    pointer-events: none;
}

/* Опционально: эффект при наведении */
.toc-card.inactive:hover {
    opacity: 0.7; /* Чуть светлее при наведении */
}



header {
    display: flex;
    flex-direction: column; /* элементы сверху вниз */
    align-items: center; /* центрируем по горизонтали */
    text-align: center; /* текст внутри элементов */
    gap: 20px; /* расстояние между элементами */
    margin-bottom: 40px;
}
/* Заголовки темы */
header h1 {
    font-size: 4rem;
    text-align: left;
    color: #0c3dc5;
    margin-top: 2rem;
    padding: 40px 0px;
}

.back-link {
    display: inline-block;
    margin: 0 auto 2rem auto;
    color: #66ccff;
    text-decoration: none;
    font-size: 1.125rem;
    padding: 6px 12px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.back-link:hover {
    background-color: #0e1e66;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Основной контент */
.theme-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}



/* Секции с 3D моделью */
.three-section {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #ffffff21;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 60, 139, 0.199),
        inset 0 0 40px rgba(255, 255, 255, 0.514);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #3a3a3a;
}

.three-section h2 {
    font-size: 1.125rem;
    color: #66ccff;
    text-align: center;
}

.three-container {
    width: 100%;
    max-width: 1600px; /* фиксированный максимум */
    height: 500px; /* фиксированная высота */
    margin: 40px auto; /* отступы от текста */
    background-color: rgba(255, 255, 255, 0.068); /* фон, как на сайте */
    border: 2px solid rgb(255, 255, 255);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 60, 139, 0.199),
        inset 0 0 40px rgba(255, 255, 255, 0.514);
    z-index: 1; /* выше фона */
}

/* Изображения */
.content-image {
    display: block;
    max-width: 100%;
    margin-top: 20px;
    margin-bottom: 60px;
    border-radius: 16px;
}

/* Кнопки навигации */
.navigation {
    display: flex;
    justify-content: flex-end; /* кнопка "далее" справа */
    margin-top: 2rem;
}

.next-btn,
.prev-btn {
    display: inline-block;
    padding: 10px 18px;
    background-color:rgbargb(44, 90, 214);
    color: #0e1e66;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.next-btn:hover,
.prev-btn:hover {
    background-color:rgb(44, 90, 214);
    transform: translateY(-2px);
}

/* Для кнопки "назад" при необходимости */
.prev-btn {
    margin-right: auto;
}
footer {
    text-align: center;
    font-size: 1.125rem;
    color: rgb(62, 89, 212);
    padding: 15px 0; /* компактный */
    margin-top: 40px;
}

.container {
    max-width: 1600px;
    margin-left: 110px; /* ширина сайдбара + отступ */
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.video-container video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 60, 139, 0.199),
        inset 0 0 40px rgba(255, 255, 255, 0.514);
    margin-top: 20px;
    margin-bottom: 60px;
}
.controls-hint {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);

    font-size: 18px;
    color: #242424;
    font-style: italic;
    user-select: none;

    opacity: 0;
    z-index: 10;
    pointer-events: none;

    background: rgba(255, 255, 255, 0.25);
    padding: 6px 12px;
    border-radius: 12px;

    transition: opacity 0.4s ease;
}

.controls-hint.show {
    opacity: 0.85;
}
.three-row {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin: 40px 0;
}

.three-box::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5; /* поверх рендера */
    pointer-events: none; /* НЕ мешает вращению */
    background-size: 200px;
    opacity: 0.18; /* сила шума — можешь менять */
}
.three-render {
    width: 100%;
    aspect-ratio: 1 / 1; /* квадратные окна */
    background: radial-gradient(
        circle 200px at center,
        rgba(0, 0, 0, 0.267),
        rgba(48, 80, 136, 0)
    );

    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
}
.three-title {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 10px;
    color: #9ad1ff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
    font-weight: 600;
}
.info-block {
    position: relative;
    display: flex;
    align-items: center;

    height: 560px;
    padding-left: 96px;
    padding-right: 360px; /* уменьшите это значение если нужно больше места */

    border-radius: 20px;
    overflow: hidden;

    background-color: rgb(44, 90, 214);

    box-shadow: 0 20px 40px rgba(0, 60, 139, 0.25);
}
.info-block-old {
    position: relative;
    display: flex;
    align-items: flex-start; /* ИЗМЕНЕНО: было center → теперь контент прижат к верху */
    justify-content: flex-start; /* ДОБАВЛЕНО: выравнивание по левому краю */

    height: 660px;
    padding: 40px 60px; /* ИЗМЕНЕНО: равномерные отступы сверху и слева */

    border-radius: 20px;
    overflow: hidden;

    background-color: rgb(44, 90, 214);

    box-shadow: 0 20px 40px rgba(0, 60, 139, 0.25);
}


.info-bg-image-old {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);

    width: 800px; /* уменьшена ширина */
    height: 800px; /* уменьшена высота */
    object-fit: contain;

    opacity: 1;
    pointer-events: none;
}
/* Текст */
.info-text {
    position: relative;
    z-index: 1;

    max-width: 780px;

    color: #ffffff;
}

.info-text h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-text p {
    font-size: 18px;
    line-height: 1.5;
    opacity: 1;
    margin-bottom: 20px; /* ОТСТУП между абзацами */
}





/* Основной контейнер */

.interactive-phagocytosis {
    position: relative;
    display: flex; 
    align-items: center;
    justify-content: flex-start; 
    
    min-height: 650px;
    padding: 0; 
    height: 750px;
    border-radius: 20px;
    overflow: hidden; 
    background: rgb(44, 90, 214);
    box-shadow: 0 20px 40px rgba(0, 60, 139, 0.25);
}

/* Левый блок с круговым навигатором */
.circle-navigator {
    width: 550px;
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 650px;
}

/* Контейнер колеса */
.stage-wheel {
    position: relative;
    width: 420px;
    height: 420px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Центральная область с описанием */
.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    background: rgba(28, 8, 141, 0);
    backdrop-filter: blur(12px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
                inset 0 0 20px rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.4);
    z-index: 2;
    overflow: hidden;
}

/* Описания в центре */
.stage-description {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    color: white;
    padding: 30px;
    box-sizing: border-box;
    text-align: center;
    word-break: break-word;
    font-weight: 300;
}

.stage-description.active {
    opacity: 1;
    visibility: visible;
}

.stage-description h3 {
    font-size: 1.2rem;
    font-weight: 600 !important;
    margin: 0 0 12px 0;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    line-height: 1.3;
    max-width: 100%;
    word-wrap: break-word;
}

.stage-description p {
    font-size: 1.125rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.95;
    max-width: 100%;
    word-wrap: break-word;
}

/* Контейнер для цифр по кругу */
.wheel-digits {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* Цифры по кругу */
.digit-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background:  #ffffff77;
    color: rgb(0, 30, 197);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
    cursor: url('pictures/pointer.png') 16 16, auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-190px) rotate(calc(-1 * var(--angle)));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.418);
    margin: 0;
    padding: 0;
    line-height: 1;
     backdrop-filter: blur(4px);
}


.digit-circle.active {
    background: #1a76ffcc;
    color: white;
    box-shadow: 0 0 10px rgba(5, 0, 73, 0.589);
    border-color: rgba(255, 255, 255, 0.404);
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-190px) rotate(calc(-1 * var(--angle))) scale(1.15);
    backdrop-filter: blur(4px);
}

/* Контейнер для изображения справа */
.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Помещаем ПОД навигатор, но НАД фоном */
}

/* Картинка */
.info-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    pointer-events: none; /* изображение не перехватывает события */
    transition: transform 0.3s ease;
}

/* Области подсветки - они же линзы */
.highlight-area {
    position: absolute;
    cursor: url('pictures/pointer.png') 16 16, auto;
    z-index: 10;
    border-radius: 50%;
    /* По умолчанию невидимы */
    opacity: 0;
    background: rgba(77, 166, 255, 0);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    /* Важно: области не должны перекрывать клики */
    pointer-events: auto;
}

/* Эффект при наведении - линза */
.highlight-area:hover {
    opacity: 1;
    background: rgba(77, 166, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 40px rgba(255, 77, 151, 0.6);
    /* Создаем эффект линзы через backdrop-filter */
    backdrop-filter: brightness(1.2) contrast(1.2);
    -webkit-backdrop-filter: brightness(1.2) contrast(1.2);
    transform: scale(1.1);
}

/* Активная область */
.highlight-area.active {
    opacity: 0.8;
    background: rgba(26, 119, 255, 0.2);
    border: 2px solid white;
    box-shadow: 0 0 40px rgba(255, 26, 217, 0.8);
}
/* Здесь вы сами расставите координаты для каждого этапа */
/* ВСЕ ОБЛАСТИ - РОВНЫЕ КРУГИ */
.highlight-1 {
    top: 2%;
    left: 58%;
    width: 120px;  /* ширина = диаметр круга */
    height: 120px; /* высота = ширине для идеального круга */
}

.highlight-2 {
    top: 14%;
    left: 52%;
    width: 140px;
    height: 140px;
}

.highlight-3 {
    top: 34%;
    left: 53%;
    width: 120px;
    height: 120px;
}

.highlight-4 {
    top: 46%;
    left: 54%;
    width: 150px;
    height: 150px;
}

.highlight-5 {
    top: 60%;
    left: 60%;
    width: 125px;
    height: 125px;
}

.highlight-6 {
    top: 60%;
    left: 68.5%;
    width: 125px;
    height: 125px;
}

.highlight-7 {
    top: 73%;
    left: 76%;
    width: 130px;
    height: 130px;
}




/* =================================
   CARDS CONTAINER
================================= */

.cards {
    
  display: flex;
  gap: 32px;

  width: 100%;
  max-width: 1400px;
  margin: 48px auto;

  justify-content: space-between;
  align-items: stretch;
}

/* =================================
   CARD BASE
================================= */

.card {
  flex: 1;
  height: 520px;

  perspective: 1200px;
  cursor: url('pictures/pointer.png') 16 16, auto;
}

.card-inner {
  width: 100%;
  height: 100%;

  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

/* =================================
   CARD SIDES
================================= */

.card-front,
.card-back {
  position: absolute;
  inset: 0;

  backface-visibility: hidden;
  border-radius: 28px;

  box-shadow:
    0 10px 20px rgba(0, 60, 139, 0.18),
    inset 0 0 40px rgba(255, 255, 255, 0.5);

  overflow: hidden;
}

.card-back {
  transform: rotateY(180deg);
}

/* =================================
   CARD CONTENT (COMMON)
================================= */

.card-content {
  height: 100%;
  padding-top: 28px;
    align-items: center;
  display: flex;
  flex-direction: column;
}

/* =================================
   CARD TITLE
================================= */

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: #0c3dc5;
}

/* =================================
   FRONT: IMAGE
================================= */

.card-image {
  flex: 1;
  width: 100%;
  overflow: hidden;

  border-radius: 18px;

  display: flex;
  align-items: flex-start;
}

.card-image img {
  width: 100%;

  object-fit: cover;
  object-position: top;

  transition: transform 2s ease; 
   transform-origin: top center; 
   will-change: transform; 
}

/* Эффект зума при наведении на лицевую сторону */
.card-front:hover .card-image img {
  transform: scale(5.55) translateX(-42px) translateY(-24px); /* Увеличение на 10% */
}

/* =================================
   ANNOTATION
================================= */
.card-annotation-1 {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  backdrop-filter: blur(6px);
  
  /* Скрываем элемент */
  opacity: 0;
  visibility: hidden;
  position: absolute;
  
  /* Начальное положение для анимации всплытия */
  transform: translateY(5px);
  
  /* Длительность анимации */
  transition: 
    opacity 0.5s ease,
    transform 0.5s ease,
    visibility 0.5s ease;
  
  /* 
     МАГИЯ ЗДЕСЬ:
     -1s (отрицательная задержка) компенсирует 1s задержку при исчезновении.
     В итоге: при наведении ждем 1с, при уходе — исчезает сразу.
  */
  transition-delay: -1s;
}

/* ПОКАЗЫВАЕМ ПРИ НАВЕДЕНИИ */
.card-front:hover .card-annotation-1 {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  
  /* При наведении устанавливаем честную задержку в 1 секунду */
  transition-delay: 1.5s;
}
/* =================================
   BACK: CENTERED LIST
================================= */

.card-back .card-content {
    margin-top: 25px;
  align-items: center;
}

/* LIST */
.card-list {
  counter-reset: step-counter;
  list-style: none;

  margin: 0;
  padding: 0;

  width: 100%;
  max-width: 520px;
}

.card-list li {
  counter-increment: step-counter;

  position: relative;
  padding: 16px 20px 16px 24px;
  margin-bottom: 18px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: white; /* белый цвет текста */
  background-color: rgba(36, 83, 211, 0.774); /* синий фон всегда */
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(26, 119, 255, 0.3); /* постоянная тень */
  transform: translateY(-3px); /* легкое смещение вверх */
}




/* =================================
   FLIP ICON
================================= */

.flip-icon {
  position: absolute;
  bottom: 20px;
  right: 20px;

  width: 28px;
  height: 28px;

  opacity: 0.85;
}

.flip-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =================================
   RESPONSIVE (BASIC)
================================= */

@media (max-width: 1000px) {
  .cards {
    flex-direction: column;
  }

  .card {
    height: 380px;
  }
}


/* пример */
.annotation-1 {
    top: 45%;
    left: 12%;
}
.zoom-img {
    display: block;
    max-width: 100%;
    margin-top: 20px;
    margin-bottom: 60px;
    border-radius: 16px;
    transition: 0.3s;
    cursor: url('pictures/pointer.png') 16 16, auto;
}

.zoom-img:hover {
    opacity: 0.8;
}

/* МОДАЛЬНОЕ ОКНО */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(201, 223, 255, 1);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
}

/* Увеличенное изображение */
.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 60, 139, 0.199),
        inset 0 0 40px rgba(255, 255, 255, 0.514);
}

/* Кнопка закрытия */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: url('pictures/pointer.png') 16 16, auto;
    user-select: none;
}

.cell-viewer {
    display: flex;
    gap: 32px;
    align-items: stretch;
    margin: 40px 0;
}

.cell-info {
    flex: 1;
    background: rgba(255, 255, 255, 0.05); /* лёгкая прозрачность */
    padding: 24px 48px; /* сверху/снизу 24px, слева/справа 28px */
    border-radius: 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 20px rgba(0, 60, 139, 0.199),
        inset 0 0 40px rgba(255, 255, 255, 0.514);
    display: flex;
    flex-direction: column;
    gap: 16px; /* расстояние между элементами внутри */
    box-sizing: border-box;
}

.cell-info h3 {
    font-size: 1.4rem;
    margin: 0 0 12px 0; /* снизу 12px для отступа от параграфа */
    color: #0e1e66;
}

.cell-info p {
    margin: 0; /* убираем лишние внешние отступы */
    line-height: 1.6;
    font-size:1.125rem;
    color: #0e1e66;
}

/* Если есть списки внутри */
.cell-info ul {
    margin: 0;
    padding-left: 20px;
    line-height: 1.6;
    color: #0e1e66;
    list-style-type: disc;
    font-size:1.125rem;
}

.cell-3d {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.three-box {
    position: relative;
    flex: 1;
    min-height: 450px;
    max-height: 750px;
    background: #4260e300;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    cursor: url('pictures/pointer.png') 16 16, auto;
    overflow: hidden;

    box-shadow: 0 10px 20px rgba(0, 60, 139, 0.199),
        inset 0 0 40px rgba(255, 255, 255, 0.514);
}

/* градиентная обводка */
.three-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 10px; /* толщина рамки */

    pointer-events: none;
    z-index: 2;
}

.cell-controls {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 28px;
    align-items: center;
}

.control-btn {
    width: 36px;
    height: 36px;
    border: 1px;
    border-radius: 50%;
    background: #025bcf;
    color: #ffffff;
    cursor: url('pictures/pointer.png') 16 16, auto;
    font-weight: 900; /* ← увеличить жирность */
    font-size: 15px; /* ← увеличить размер */
    transition: 0.2s;
    box-shadow: 0 10px 20px rgba(0, 60, 139, 0.199);
}

.control-btn:hover {
    background: #025bcf;
    transform: scale(1.07);
}

.cell-counter {
    color: #181818;
    font-size: 1.125rem;
}

.hidden {
    display: none;
}

.test-btn,
.next-theme-btn {
    display: inline-block;
    padding: 14px 24px;
    background-color:rgb(44, 90, 214);
    color: rgb(255, 255, 255);
    font-size: 18px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.25s ease;
    margin: 30px 0;
    text-decoration: none;
    border: none;
    cursor: url('pictures/pointer.png') 16 16, auto;
}

.test-btn:hover,
.next-theme-btn:hover {
    background: #0d69e2;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 119, 255, 0.4);
}

/* блок вопроса */
.question-block {
    background-color: rgba(16, 67, 207, 0.774);
    padding: 40px;
    margin: 20px 0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(26, 119, 255, 0.45);
    color: #ffffff;
}

/* результат теста */
.test-result {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 600;
    color:rgb(12, 59, 190);
}

/* скрываем стандартный radio */
.answer input[type="radio"] {
    display: none;
}

/* контейнер ответа */
.answer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px 18px;
    margin: 12px 0;

    border-radius: 14px;
    cursor: url('pictures/pointer.png') 16 16, auto;

    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;

    transition: 0.25s ease;
}

/* hover */
.answer:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* кастомный radio */
.answer::before {
    content: "";
    width: 20px;
    height: 20px;

    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);

    box-sizing: border-box;
    transition: 0.25s ease;
}

/* выбранный вариант */
.answer:has(input[type="radio"]:checked) {
    background: rgba(255, 255, 255, 0.28);
}

.answer:has(input[type="radio"]:checked)::before {
    background: radial-gradient(
        circle,
        #ffffff 45%,
        transparent 46%
    );
    border-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

/* ========== СТИЛИ ДЛЯ ПРОВЕРКИ ========== */

/* 1. ПРАВИЛЬНЫЙ ОТВЕТ (всегда подсвечивается зеленым) */
.answer.correct {
    background: rgba(70, 255, 150, 0.35);
    border-left: 4px solid #2aff8c;
}

.answer.correct::before {
    background: radial-gradient(circle, #2aff8c 45%, transparent 46%);
    border-color: #2aff8c;
    box-shadow: 0 0 0 4px rgba(42, 255, 140, 0.35);
}

/* 2. НЕПРАВИЛЬНЫЙ ОТВЕТ (только если ответ выбран пользователем и он ошибочен) */
.answer.wrong {
    background: rgba(255, 80, 80, 0.45);
    border-left: 4px solid #ff6b6b;
}

.answer.wrong::before {
    background: radial-gradient(circle, #ff6b6b 45%, transparent 46%);
    border-color: #ff6b6b;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.35);
}

/* 3. ПРАВИЛЬНЫЙ ОТВЕТ, КОТОРЫЙ ПОЛЬЗОВАТЕЛЬ НЕ ВЫБРАЛ — выделяем мягко */
.answer.highlight-correct {
    background: rgba(100, 255, 150, 0.2);
    border-left: 4px solid rgba(42, 255, 140, 0.8);
}

.answer.highlight-correct::before {
    border-color: #2aff8c;
}

/* 4. ПРИОРИТЕТ: если ответ одновременно правильный и был выбран ошибочно */
.answer.correct.wrong {
    /* этот класс не должен существовать, но если вдруг — правильный перебивает */
    background: rgba(70, 255, 150, 0.35);
    border-left: 4px solid #2aff8c;
}

.answer.correct.wrong::before {
    background: radial-gradient(circle, #2aff8c 45%, transparent 46%);
    border-color: #2aff8c;
}

/* 5. Для лучшей читаемости — увеличиваем текст при подсветке */
.answer.correct .lab-test-text,
.answer.highlight-correct .lab-test-text {
    font-weight: 500;
}


.theme-content > section,
.theme-content > div.cards,
.theme-content > .cell-viewer {
    margin-bottom: 32px;
}
.theme-content p {
    margin-bottom: 12px;
    font-size: 1.125rem;
}

.theme-content ul {
    margin-top: 12px;
}

.theme-content li {
    margin-bottom: 8px;
}

.theme-content h2 {
    font-size: 2rem; /* меньше */
    font-weight: 600; /* тоньше */
     color: #0c3dc5;
    margin: 32px 0 20px; /* компактные отступы */
    letter-spacing: 0.3px; /* лёгкий "воздух" */
}

.theme-content h3 {
    font-size: 1.125rem;
    font-weight: 400;
    color: #20348d;
    text-align: center;
    margin: 24px 0 14px;
    opacity: 0.9; /* чуть мягче */
}

@media (min-width: 1400px) {
    .container,
    .theme-content {
        max-width: 1400px;
    }
    .three-container {
        max-width: 1400px;
    }
}

/* ===== ПРОГРЕСС КУРСА ===== */
.course-progress {
    max-width: 1400px;
    margin: 64px auto 32px auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Текст курса */
.course-info {
    font-size: 1.125rem;
    font-weight: 400;
    color: #025bcf;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

/* Полоски прогресса */
.progress-bars {
    display: flex;
    gap: 8px;
    width: 100%;
}

/* Одна полоска */
.progress-bars .bar {
    flex: 1; /* 🔥 делим ширину поровну */
    height: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.555);
    overflow: hidden;
}

/* Активные (пройденные) */
.progress-bars .bar.active {
    background-color: #025bcfbe;
    box-shadow: 0 5px 20px rgba(0, 60, 139, 0.199);
}


.text-block {
    background: rgba(255, 255, 255, 0.12); /* едва заметная подложка */
    backdrop-filter: blur(6px); /* лёгкий блюр фона */
    border-radius: 16px; /* скругления */
    padding: 20px 24px; /* внутренние отступы */
    margin: 20px 0; /* отступ сверху/снизу */
    box-shadow: 0 4px 15px rgba(0, 53, 122, 0.1),
        /* лёгкая тень для объёма */ inset 0 0 20px rgba(255, 255, 255, 0.05);

    font-size: 18px;
    line-height: 1.6; /* удобное чтение */
    color: #0e1e66; /* основной текст */
}
/* ================================
   TOPBAR (бывший sidebar)
================================ */

.sidebar {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;
  height: 84px;

  display: grid;
  grid-template-columns: 1fr auto 1fr; 
  align-items: center;

  padding: 0 16px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.35);

  box-shadow: 0 10px 30px rgba(0, 53, 122, 0.12);
}

/* ================================
   LOGO + COURSE TITLE
================================ */

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
}

.sidebar-logo img {
  width: 54px;
  height: auto;
  display: block;
}

.course-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: #0c47c5;
  white-space: nowrap;
}

/* ================================
   NAVIGATION
================================ */

.sidebar-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
   justify-self: center;
}

.sidebar-nav a {
  position: relative;
  padding-left: 14px;
    cursor: url('pictures/pointer.png') 16 16, auto;
  font-size: 1.125rem;
  line-height: 1;
  text-decoration: none;
  color: #0c3dc5;

  transition: 
    color 0.25s ease,
    transform 0.25s ease;
}

/* DOT */
.sidebar-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);

  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #0051ff;

  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-nav a.active::before {
  opacity: 1;
}

.sidebar-nav a:hover {
  color: #6a99ff;
  transform: translateY(-2px);
}

/* ================================
   EXIT BUTTON
================================ */

.sidebar-footer {
  display: flex;
  align-items: center;
  justify-self: end;
}

.exit-btn {
  width: 30px;
  height: auto;
  cursor: url('pictures/pointer.png') 16 16, auto;

  opacity: 0.8;
  transition: 
    opacity 0.25s ease,
    transform 0.25s ease;
}

.exit-btn:hover {
  opacity: 1;
  transform: scale(1.12);
}

/* ================================
   OPTIONAL: ACTIVE SECTION GLOW
================================ */

.sidebar-nav a.active {
  font-weight: 500;
}

/* ================================
   RESPONSIVE (BASIC)
================================ */

@media (max-width: 900px) {
  .course-title {
    display: none;
  }

  .sidebar-nav {
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .sidebar {
    grid-template-columns: auto auto;
  }

  .sidebar-nav {
    display: none; /* позже можно заменить на бургер */
  }
}


.exit-btn {
    width: 48px;
    height: auto;
    display: block;
    cursor: url('pictures/pointer.png') 16 16, auto;
    transition: opacity 0.25s, transform 0.25s;
}

.exit-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.table-title {
    margin: 32px 0 16px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #0e1e66;
}

/* ТАБЛИЦА */
.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1.125rem;

    border-radius: 16px;
    overflow: hidden;

    /* ВНУТРЕННЕЕ СВЕЧЕНИЕ */
    box-shadow: inset 0 0 40px rgb(255, 255, 255),
        0 8px 24px rgba(0, 53, 122, 0.18);
}

/* ШАПКА */
.info-table thead th {
    padding: 14px 16px;
    text-align: left;
    background-color:rgb(44, 90, 214);
    color: #fff;
    font-weight: 300;
}

/* ЯЧЕЙКИ */
.info-table td {
    padding: 14px 16px;
    color: #0738c0;
    background: rgba(255, 255, 255, 0);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* УБИРАЕМ ЛИНИЮ У ПОСЛЕДНЕЙ СТРОКИ */
.info-table tbody tr:last-child td {
    border-bottom: none;
}

/* ЧЕРЕДОВАНИЕ СТРОК */
.info-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.35);
}

/* НАВЕДЕНИЕ */
.info-table tbody tr:hover td {
    background: rgba(66, 95, 227, 0.15);
    transition: background 0.2s;
}

.definition-block {
    margin: 32px 0;
    padding: 24px 28px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.164);
    backdrop-filter: blur(10px);

    box-shadow: 0 10px 30px rgba(0, 53, 122, 0.18),
        inset 0 0 40px rgba(255, 255, 255, 0.6);

    position: relative;
    
}

/* Небольшой акцент слева */
.definition-block::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 5px;

    background: linear-gradient(180deg, #425fe3, #025bcf);

    border-radius: 4px;
}

.definition-title {
    margin: 0 0 12px;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0c3dc5;
}

.definition-text {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #0738c0;
}

.definition-text strong {
    font-weight: 700;
}
.definitions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки одинаковой ширины */
    gap: 24px;                            /* расстояние между блоками */
    align-items: stretch; 
}


.definitions-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки одинаковой ширины */
    gap: 16px;                             /* расстояние между блоками */
}
.small-definition-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.small-definition-block {
    width: 450px;          /* фиксированная ширина, высота автоматически по тексту */
    padding: 24px 28px;
     margin-bottom: 24px; /* фиксированный вертикальный отступ */
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.308);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 53, 122, 0.18),
                inset 0 0 40px rgba(255, 255, 255, 0.6);

    position: relative;
    margin: 0;             /* отступы задаём через gap у контейнера */
    overflow: hidden; 

}
.small-definition-block::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -80px;

    width: 240px;
    height: 240px;

    background-image: var(--decor-img); 
    background-size: contain;
    background-repeat: no-repeat;

    opacity: 0.52;
    transform: scale(0.9);
    filter: blur(0.5px);

    z-index: -1;
    pointer-events: none;

    transition:
        transform 0.45s ease,
        opacity 0.45s ease,
        filter 0.45s ease;
}

.small-definition-block:hover::after {
    opacity: 1;
    transform: scale(1.2) translateX(-5%) translateY(-3%) rotate(5deg);
    filter: blur(0px);
    z-index: 3;
}



.steps-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

/* Карточка шага */
.step-card {
    position: relative;
    overflow: hidden; /* 🔥 важно для обрезки цифры */

    display: flex;
    align-items: center;
    padding: 28px 28px 28px 48px;

    border-radius: 18px;
    background: rgba(255, 255, 255, 0.308);
    backdrop-filter: blur(10px);

    box-shadow: 0 10px 30px rgba(0, 53, 122, 0.18),
        inset 0 0 40px rgba(255, 255, 255, 0.6);
}

/* Большая цифра */
.step-number {
    position: absolute;
    left: -5px;           /* 👈 уходит за край */
    top: 60%;
    transform: translateY(-50%);

    font-size: 360px;
    font-weight: 800;
    color: #0059ff7e;        /* фиолетовый */
    opacity: 0.25;

    line-height: 1;
    pointer-events: none;
}

/* Текст шага */
.step-text {
    font-size: 1.125rem;
    line-height: 1.5;
    color: #0738c0;
}
/* ===== ЛАБОРАТОРНЫЕ ТЕСТЫ ===== */

.lab-tests {
    margin: 0px 0;
}

/* сетка */
.lab-tests-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

/* карточка */
.lab-test-card {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 22px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.137);

    backdrop-filter: blur(4px);

    box-shadow:
        0 6px 22px rgba(0, 53, 122, 0.18),
        inset 0 0 28px rgba(255, 255, 255, 0);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.lab-test-card::before {
    content: "";
    position: absolute;

    width: 220px;
    height: 220px;

    right: -40px;   /* 👈 уходит за край */
    bottom: -40px;

    background: var(--bg) center / contain no-repeat;

    opacity: 0.35;

    pointer-events: none;
    z-index: 1;
}


/* текст */
.lab-test-text {
    position: relative;
    z-index: 2;

    text-align: center;

    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;

    color: #0c3dc5;
}

.important-block {
    margin: 28px 0;
    padding: 22px 28px;

    border-radius: 16px;

    background-color: rgb(44, 90, 214);

    backdrop-filter: blur(6px);

    box-shadow: 0 6px 22px rgba(0, 53, 122, 0.18);
}
.important-title {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 10px 0;

    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.important-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    

    /* если PNG однотонная, можно слегка приглушить */
    opacity: 0.9;
}
.important-text {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.65;
    font-weight: 300;
    color: #ffffff;
}



.q-block {
    margin: 28px 0;
    padding: 22px 28px;

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.308);
    backdrop-filter: blur(10px);

    box-shadow: 0 10px 30px rgba(0, 53, 122, 0.18),
        inset 0 0 40px rgba(255, 255, 255, 0.6);
}
.q-title {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0 0 10px 0;

    font-size: 1.125rem;
    font-weight: 700;
    color: #0738c0;
    letter-spacing: 0.05em;
   
    
    
    
    text-transform: uppercase;
    
}
.q-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    

    /* если PNG однотонная, можно слегка приглушить */
    opacity: 0.9;
}
.q-text {
    margin: 0;
    font-size:1.125rem;
    line-height: 1.7;
    color: #0738c0;
}

/* ====== КЛЕТКА С ЗУМОМ ====== */

.cell-zoom-wrapper {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* КАНВАС */
.cell-zoom-canvas {
    position: relative;
    width: 100%;
    height: 420px;

    background-color: rgb(44, 90, 214);
    border-radius: 16px;

    overflow: hidden;
    box-shadow: 0 0px 20px rgba(0, 60, 139, 0.199);
    cursor: url('pictures/pointer.png') 16 16, auto;
}


/* ====== ВИДЕО КЛЕТКИ ====== */

.cell-gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    pointer-events: none;
    /* Добавляем transition для transform и opacity */
    transition: 
        opacity 0.8s ease,
        transform 0.8s ease;
    cursor: url('pictures/pointer.png') 16 16, auto;
}

/* При зуме: видео затемняется и слегка увеличивается */
.cell-zoom-canvas.zoomed .cell-gif {
    opacity: 0.35;
    transform: scale(4) translateY(130px); /* лёгкое увеличение, не влияет на layout */
}


/* ====== РЕЦЕПТОРЫ ====== */

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

/* Контейнер рецептора */
.receptor {
    position: absolute;
    pointer-events: auto;
}

/* Иконки рецепторов */
.receptor img {
    height: 170px;
    cursor: url('pictures/pointer.png') 16 16, auto;

    opacity: 0;
    transform: scale(0.7);

    transition:
        transform 0.35s ease,
        opacity 1s ease,
        filter 0.35s ease;

    z-index: 5;
}

/* ====== КАСКАДНОЕ ПОЯВЛЕНИЕ ====== */

.cell-zoom-canvas.zoomed .receptor:nth-child(1) img {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.5s;
}
.cell-zoom-canvas.zoomed .receptor:nth-child(2) img {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.6s;
}
.cell-zoom-canvas.zoomed .receptor:nth-child(3) img {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.7s;
}
.cell-zoom-canvas.zoomed .receptor:nth-child(4) img {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.8s;
}
.cell-zoom-canvas.zoomed .receptor:nth-child(5) img {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.9s;
}
.cell-zoom-canvas.zoomed .receptor:nth-child(6) img {
    opacity: 1;
    transform: scale(1);
    transition-delay: 1s;
}
.cell-zoom-canvas.zoomed .receptor:nth-child(7) img {
    opacity: 1;
    transform: scale(1);
    transition-delay: 1.1s;
}
.cell-zoom-canvas.zoomed .receptor:nth-child(8) img {
    opacity: 1;
    transform: scale(1);
    transition-delay: 1.2s;
}
.cell-zoom-canvas.zoomed .receptor:nth-child(9) img {
    opacity: 1;
    transform: scale(1);
    transition-delay: 1.3s;
}
.cell-zoom-canvas.zoomed .receptor:nth-child(10) img {
    opacity: 1;
    transform: scale(1);
    transition-delay: 1.4s;
}

/* ====== HOVER РЕЦЕПТОРОВ ====== */

.cell-zoom-canvas.zoomed .receptor:hover img {
    transform: scale(1.05) translateY(-20px) translateX(10px);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.25));
    transition-delay: 0s;
}

/* ====== ПОДПИСИ ====== */

.receptor-label {
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);

    background: rgba(36, 36, 36, 0.85);
    color: #fff;

    font-size: 18px;
    padding: 4px 10px;
    border-radius: 8px;

    opacity: 0;
    transition: opacity 0.3s;

    white-space: nowrap;
}

.receptor:hover .receptor-label {
    opacity: 1;
}

/* ====== ПОДСКАЗКА ====== */

.cell-zoom-hint {
    margin-top: 12px;
    font-size: 18px;
    opacity: 0.7;
    color: #242424;
    font-style: italic;
    user-select: none;
}

.scheme-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; /* 1-й узкий, 2-й широкий, 3-й узкий */
    gap: 24px;
    align-items: stretch; /* одинаковая высота */
    width: 100%;
    margin-top: 40px;
}

.scheme-item {
    display: flex;
    flex-direction: column;
    height: 100%; /* минимальная ширина для контента */
}

.scheme-block {
    flex: 1; /* растягиваем карточку внутри блока */
    width: 100%;
    background-color: rgb(44, 90, 214);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 20px rgba(0, 60, 139, 0.2);
    display: flex;
    flex-direction: column;
}

.block-title {
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    color: #0c3dc5;
}

/* Первый блок: прямоугольники */
.rectangles {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    height: 100%; /* растягиваем на всю высоту родителя */
    justify-content: center; /* центрируем все `.rectangle` вертикально */
    
}

.rectangle {
background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 18px;
    line-height: 1.4;
    color: #fff;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Сетки картинок */
.images-grid {
    display: grid;
    gap: 6px;
    justify-items: center;
}

.images-grid-7 {
    grid-template-columns: repeat(3, 1fr);
}

.images-grid-4 {
    grid-template-columns: repeat(2, 1fr);
}

.image-item img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    gap: 2px;
}

.caption {
    color: rgb(255, 255, 255);
    text-align: center;
    font-size: 1.125rem;
    font-weight: 300;
}

.steps-icons {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
    margin: 48px auto;
    flex-wrap: nowrap;
}

.steps-icon {
    flex: 1;
    height: 240px;
    perspective: 1000px;
    cursor: url('pictures/pointer.png') 16 16, auto;
    display: flex;
    min-width: 0;
    position: relative; /* чтобы абсолютные иконки позиционировались */
}

.steps-icon-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.steps-icon.flipped .steps-icon-inner {
    transform: rotateY(180deg);
}

.steps-icon-front,
.steps-icon-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    backface-visibility: hidden;
    box-shadow:
        0 10px 20px rgba(0, 60, 139, 0.18),
        inset 0 0 36px rgba(255, 255, 255, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
}

.steps-icon-front {
    background: rgba(255, 255, 255, 0.12);
    position: relative;
}

.steps-icon-front img {
    position: absolute;
    right: -160px;
    bottom: -160px;
    width: 480px;
    height: 480px;
    object-fit: contain;
    filter: blur(3px);
    transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease;
    pointer-events: none;
    opacity: 0.5;
}

.steps-text {
    position: absolute;
    left: -5px;           /* 👈 уходит за край */
    top: 60%;
    transform: translateY(-50%);

    font-size: 360px;
    font-weight: 800;
    color: #0059ff7e;        /* фиолетовый */
    opacity: 0.25;

    line-height: 1;


    z-index: 1;
    
    
    line-height: 1.3;
    max-width: 60%;
    text-align: left;
    z-index: 1;
}





.steps-icon:hover .steps-icon-front img {
    transform: scale(1.25);
    filter: blur(0);
    opacity: 0.95;
    z-index: 4;
}

.steps-icon-back {
    transform: rotateY(180deg);
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
    font-size: 1.125rem;
    line-height: 1.5;
    color: #0738c0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    overflow: hidden;
}

/* flip icons вне front/back */
.steps-flip-icon {
    position: absolute;
    bottom: 14px;
    right: 210px;
    width: 28px;
    height: 28px;
    z-index: 5;
    pointer-events: auto;
}

.steps-flip-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none !important; /* запрещаем наследовать transform */
}
/* Вся полоса прокрутки */
::-webkit-scrollbar {
    width: 16px;          /* ширина скролла */
}

/* Ползунок */
::-webkit-scrollbar-thumb {
    background-color: #0051ff; /* цвет ползунка */
    border-radius: 6px;        /* скругление углов */
    box-shadow:
        inset 0 0 36px rgba(255, 255, 255, 0.45);
}

/* Фон полосы прокрутки */
::-webkit-scrollbar-track {
    background: rgba(0, 81, 255, 0.219);  /* цвет трека */
    border-radius: 6px;
}

/* При наведении на ползунок */
::-webkit-scrollbar-thumb:hover {
    background-color: #002292;
}

.info-bg-video {
    position: absolute;
    right: -600px; /* как у картинки */
    top: 50%;
    transform: translateY(-50%);
    width: 520px;
    height: auto;
    object-fit: contain;
    opacity: 1;
    pointer-events: none; /* чтобы видео не мешало кликам */
}
/* ============================= */
/* ГЛАВНЫЙ КОНТЕЙНЕР */
/* ============================= */
.circle-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 750px;
    margin-bottom: 0;
    border-radius: 24px;
    background-color: rgba(36, 83, 211, 0.774);
    box-shadow: 0 10px 30px rgba(0, 53, 122, 0.18);
    overflow: hidden;
    padding: 0 60px;
    box-sizing: border-box;
}

/* ============================= */
/* ВИДЕО НА ЗАДНЕМ ПЛАНЕ */
/* ============================= */
.bg-video {
    position:absolute;
    
    left: 0px;
    width: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}


.bg-video1 {
    position:absolute;
    top: -100px;
    left: 0px;
    width: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* ============================= */
/* КОНТЕНТ ПОВЕРХ ВИДЕО */
/* ============================= */
.circle-section > .circle-container,
.circle-section > .circle-text-recept {
    position: relative;
    z-index: 1;
}

/* ============================= */
/* ЛЕВАЯ ЗОНА - КРУГ */
/* ============================= */
.circle-container {
    position: absolute;
    left: -5%;
    width: 800px;
    height: 800px;
    flex-shrink: 0;
    overflow: hidden;
    
}

.circle {
    position: absolute;
    left: -210px;              /* 👈 Сдвигаем круг на половину ширины влево */
    top: 15%;
    transform: translateY(-50%); /* 👈 ТОЛЬКО вертикальное центрирование */
    width: 540px;  
    height: 540px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.575);
    background: rgba(255, 255, 255, 0.068);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
                inset 0 0 20px rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    cursor: url('pictures/pointer.png') 16 16, auto;
    transition: transform 0.3s ease;


}

/* ТОЧКИ */
.dot {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -20px;
    margin-top: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb#0c3dc5;
    font-size: 16px;
    font-weight: 600;
    pointer-events: none;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.418);
}

.dot::after {
    content: "";
    position: absolute;
    inset: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease, height 0.25s ease;
}

.dot.active::after {
    width: 34px;
    height: 34px;
}

.dot.active {
    width: 60px;
    height: 60px;
    margin-left: -30px;
    margin-top: -30px;
    font-size: 24px;
    backdrop-filter: blur(16px);
    font-weight: 700;
    background: #ffffff8f;
    color: #2453d3;
    background: #1a76ffcc;
    color: white;
    box-shadow: 0 0 10px rgba(5, 0, 73, 0.589);
    border-color: rgba(255, 255, 255, 0.404);
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-190px) rotate(calc(-1 * var(--angle))) scale(1.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.418);
}

/* 6 точек - радиус 240px (половина ширины круга) */
.dot:nth-child(1) { transform: rotate(0deg) translateX(270px); }
.dot:nth-child(2) { transform: rotate(60deg) translateX(270px); }
.dot:nth-child(3) { transform: rotate(120deg) translateX(270px); }
.dot:nth-child(4) { transform: rotate(180deg) translateX(270px); }
.dot:nth-child(5) { transform: rotate(240deg) translateX(270px); }
.dot:nth-child(6) { transform: rotate(300deg) translateX(270px); }

.dot:nth-child(1)::before { content: "1"; }
.dot:nth-child(2)::before { content: "2"; }
.dot:nth-child(3)::before { content: "3"; }
.dot:nth-child(4)::before { content: "4"; }
.dot:nth-child(5)::before { content: "5"; }
.dot:nth-child(6)::before { content: "6"; }

/* Текст слева */
.static-text-left {
    position: absolute;
    top: 49%;
    left: 55px;
    transform: translateY(-50%);
    width: 160px;
    text-align: left;
    pointer-events: none;
    z-index: 2; /* 👈 Поверх круга */
}

.static-text-left .text-item {
    display: none;
    color: white;
    font-size: 24px;
    
    line-height: 1.5;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.25s, transform 0.25s;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.static-text-left .text-item.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* ============================= */
/* ПРАВАЯ ЧАСТЬ - РЕЦЕПТОРЫ */
/* ============================= */
.circle-text-recept {
    left: -50px; 
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stage {
    display: none;
}

.stage.active {
    display: block;
}

.recept-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.recept-cell {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 18px;
    line-height: 1.4;
    color: #fff;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}





/* =================================
   INFO BLOCK - BASE CONTAINER
================================= */

.info-block-crb {
    position: relative;
    display: flex;
    align-items: center;

    height: 660px;
    padding-left: 96px;
    padding-right: 360px;

    border-radius: 20px;
    overflow: hidden;

    background-color: rgb(44, 90, 214);

    box-shadow: 0 20px 40px rgba(0, 60, 139, 0.25);
}

/* =================================
   INFO TEXT - CONTENT
================================= */




.info-block-crb1 {
    position: relative;
    display: flex;
    align-items: center;

    height: 560px;
    padding-left: 96px;
    padding-right: 360px;

    border-radius: 20px;
    overflow: hidden;

    background-color: rgb(44, 90, 214);

    box-shadow: 0 20px 40px rgba(0, 60, 139, 0.25);
}










.info-text-crb {
    position: relative;
    z-index: 2;

    max-width: 580px;

    color: #ffffff;
}

/* Описание */
.info-description p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
}

/* =================================
   HIGHLIGHT / NORM BLOCK
================================= */

.info-highlight-block,
.info-norm-block {
    margin-top: 32px;
    padding: 24px;

    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;

    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Заголовок акцентного блока */
.info-highlight-title {
    display: flex;
    align-items: center;
    gap: 10px;
    
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.highlight-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Содержимое акцентного блока */
.info-highlight-content p {
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
}

.info-highlight-content strong {
    color: #ffffff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
}

/* =================================
   BACKGROUND IMAGE / VIDEO
================================= */


.info-bg-image-crb {
    position: absolute;
    
    /* Растягиваем на всю ширину и высоту */
    left: 0;
    height: 100%;
    
    object-fit: cover;
    object-position: center;
    
    z-index: 1;
    pointer-events: none;
}


/* Основной текст */
.info-text {
    position: relative;
    z-index: 1;
    max-width: 580px;
    color: #ffffff;
}

.info-description p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
}

/* Блок с нормой */
.info-norm-block {
    margin-top: 32px;
    padding: 24px;
    
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Заголовок нормы */
.info-norm-title {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Контейнер значений */
.info-norm-values {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Строка с нормой */
.info-norm-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Метка (мужчины/женщины) */
.norm-label {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Значение нормы */
.norm-value {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 10px;
}

/* Разделитель между строками */
.info-norm-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 4px 0;
}







/* Видео дендритных клеток - отдельный стиль */
.info-bg-video-dend {
    position: absolute;
    
    /* СДВИГ ВПРАВО - регулируйте эти значения */
    left: auto;
    right: 0;
    width: 100%;
    height: 100%;
    
    object-fit: cover;
    object-position: center right;  /* Смещаем фокус вправо */
    
    z-index: 1;
    pointer-events: none;
}





/* =================================
   ФОНОВОЕ ИЗОБРАЖЕНИЕ
================================= */
.info-bg-image-crb {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.25;  /* Прозрачность для читаемости текста */
    z-index: 1;
    pointer-events: none;
}

/* =================================
   HOTSPOT POINT (Точка)
================================= */
.interactive-hotspot {
    position: absolute;
    z-index: 10;
    cursor: url('pictures/pointer.png') 16 16, auto;
}

.hotspot-dot {
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: hotspot-pulse 2s infinite;
    position: relative;
    z-index: 2;
}

.hotspot-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: hotspot-ring 2s infinite;
    z-index: 1;
}

@keyframes hotspot-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    50% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes hotspot-ring {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* =================================
   МАГНИФИКАТОР (Окошко лупы)
================================= */
.magnifier-container {
    position: absolute;
    z-index: 20;
    
    /* Размеры самой лупы */
    width: 200px;
    height: 200px;
    border-radius: 50%; /* Круглая форма */
    
    /* Позиция по умолчанию */
    top: 50%;
    left: 50%;
    
    /* Скрыто по умолчанию */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
    /* Стиль рамки */
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden; /* Обрезаем изображение по кругу */
    
    transition: opacity 0.3s ease;
    transform: translate(-50%, -120%); /* Сдвиг вверх, чтобы не перекрывать курсор */
}

/* Класс для показа лупы */
.magnifier-container.active {
    opacity: 1;
    visibility: visible;
}

/* =================================
   ИЗОБРАЖЕНИЕ ВНУТРИ ЛУПЫ
================================= */
.info-zoom-image {
    position: absolute;
    top: 0;
    left: 0;
    
    /* ВАЖНО: Изображение больше контейнера = эффект зума */
    /* 200% = 2-кратное увеличение */
    width: 200%;
    height: 200%;
    
    object-fit: cover;
    object-position: center;
}




/* ============================================
   ПЛАВНАЯ ЗАГРУЗКА СТРАНИЦ
   ============================================ */

/* Затемнение при переходе */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0c2ec5 0%, #2a52d8 100%);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-transition-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Лоадер */
.page-loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: loader-spin 1s linear infinite;
}

@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

/* Плавное появление контента */
body {
    opacity: 0;
    animation: page-fade-in 0.8s ease forwards;
}

@keyframes page-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Скрываем контент до загрузки */
.theme-content,
.container,
header,
.sidebar {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded .theme-content,
body.loaded .container,
body.loaded header,
body.loaded .sidebar {
    opacity: 1;
}

/* Плавный скролл к якорю */
html {
    scroll-behavior: smooth;
}

/* Прогресс-бар загрузки сверху */
.page-load-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0051ff, #6a99ff);
    z-index: 10000;
    width: 0%;
    transition: width 0.4s ease;
}

.page-load-progress.complete {
    width: 100%;
    opacity: 0;
    transition: width 0.4s ease, opacity 0.4s ease 0.3s;
}

/* ============================================
   ИСПРАВЛЕНИЕ ПУСТОЙ ОБЛАСТИ ПОСЛЕ ЗАГРУЗКИ
   ============================================ */

body.loaded::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0c2ec5 0%, #2a52d8 100%);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1s ease, visibility 1s ease;
}

body.loaded.transitioning::after {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Убираем все возможные пустые области */
body::after {
    display: none !important;
}

/* Гарантируем, что контент не перекрывается */
.container,
.theme-content {
    position: relative;
    z-index: 1;
}




/* ============================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
    /* ----- ОБЩИЕ КОНТЕЙНЕРЫ ----- */
    .container,
    .theme-content {
        max-width: 100%;
        margin: 0;
        padding: 0 16px;
    }
    
    body {
        font-size: 14px;
    }
    
    /* ----- ЗАГОЛОВКИ ----- */
    header h1 {
        font-size: 2rem;
        padding: 20px 0;
        text-align: center;
    }
    
    .theme-title {
        font-size: 1.75rem;
    }
    
    .theme-subtitle {
        font-size: 0.875rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.125rem;
    }
    
    /* ----- САЙДБАР (TOPBAR) ----- */
    .sidebar {
        height: 64px;
        padding: 0 12px;
        grid-template-columns: auto 1fr auto;
    }
    
    .sidebar-logo img {
        width: 40px;
    }
    
    .course-title {
        font-size: 14px;
        display: none;
    }
    
    .sidebar-nav {
        gap: 16px;
    }
    
    .sidebar-nav a {
        font-size: 0.875rem;
        padding-left: 10px;
    }
    
    .exit-btn {
        width: 36px;
    }
    
    /* ----- TOC СЕТКА (ОГЛАВЛЕНИЕ) ----- */
    .toc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px 0;
    }
    
    .toc-card a {
        height: 180px;
        padding: 16px 12px 40px 12px;
        font-size: 0.875rem;
    }
    
    .toc-number {
        font-size: 0.875rem;
        min-width: 24px;
        margin-right: 8px;
    }
    
    .toc-title {
        font-size: 0.875rem;
        margin-top: 8px;
    }
    
    .toc-card a img {
        width: 180px;
        height: 180px;
        right: -60px;
        top: 70%;
    }
    
    /* ----- КАРТОЧКИ (FLIP CARDS) ----- */
    .cards {
        flex-direction: column;
        gap: 16px;
        margin: 24px auto;
    }
    
    .card {
        height: 400px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-list li {
        font-size: 0.875rem;
        padding: 12px 16px;
        margin-bottom: 12px;
    }
    
    .flip-icon {
        bottom: 12px;
        right: 12px;
        width: 24px;
        height: 24px;
    }
    
    /* ----- ИНФОРМАЦИОННЫЕ БЛОКИ ----- */
    .info-block,
    .info-block-old,
    .info-block-crb,
    .info-block-crb1 {
        height: auto;
        min-height: 500px;
        padding: 24px;
        padding-right: 24px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-text {
        max-width: 100%;
        padding-right: 0;
    }
    
    .info-text h2 {
        font-size: 1.25rem;
    }
    
    .info-text p {
        font-size: 0.875rem;
    }
    
    .info-bg-image,
    .info-bg-image-old,
    .info-bg-image-crb,
    .info-bg-video,
    .info-bg-video-dend {
        position: relative;
        width: 100%;
        height: 200px;
        right: 0;
        top: 0;
        transform: none;
        margin-top: 16px;
    }
    
    /* ----- КРУГОВОЙ НАВИГАТОР ----- */
    .interactive-phagocytosis {
        height: auto;
        min-height: 500px;
        flex-direction: column;
        padding: 16px;
    }
    
    .circle-navigator {
        width: 100%;
        min-height: 350px;
    }
    
    .stage-wheel {
        width: 280px;
        height: 280px;
    }
    
    .wheel-center {
        width: 180px;
        height: 180px;
        padding: 20px;
    }
    
    .digit-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-130px) rotate(calc(-1 * var(--angle)));
    }
    
    .digit-circle.active {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-130px) rotate(calc(-1 * var(--angle))) scale(1.15);
    }
    
    .stage-description h3 {
        font-size: 1rem;
    }
    
    .stage-description p {
        font-size: 0.875rem;
    }
    
    .image-container {
        position: relative;
        height: 200px;
        margin-top: 16px;
    }
    
    /* ----- 3D КОНТЕЙНЕРЫ ----- */
    .three-section,
    .three-container {
        height: 350px;
    }
    
    .three-box {
        min-height: 300px;
        max-height: 400px;
    }
    
    .three-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .three-title {
        font-size: 0.875rem;
    }
    
    /* ----- КЛЕТКА С ЗУМОМ ----- */
    .cell-viewer {
        flex-direction: column;
        gap: 16px;
    }
    
    .cell-info {
        padding: 16px 20px;
    }
    
    .cell-info h3 {
        font-size: 1.1rem;
    }
    
    .cell-info p,
    .cell-info ul {
        font-size: 0.875rem;
    }
    
    .cell-zoom-canvas {
        height: 300px;
    }
    
    .cell-gif {
        height: 100%;
    }
    
    .receptor img {
        height: 100px;
    }
    
    .cell-controls {
        gap: 16px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    /* ----- ТАБЛИЦЫ ----- */
    .info-table {
        font-size: 0.875rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .info-table thead th,
    .info-table td {
        padding: 10px 12px;
        white-space: nowrap;
    }
    
    /* ----- ОПРЕДЕЛЕНИЯ И ШАГИ ----- */
    .definitions-grid,
    .definitions-container,
    .small-definition-container,
    .steps-block {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .definition-block,
    .small-definition-block,
    .step-card {
        padding: 16px 20px;
    }
    
    .step-number {
        font-size: 200px;
        left: 0;
    }
    
    .step-text {
        font-size: 0.875rem;
    }
    
    .definition-title,
    .definition-text {
        font-size: 0.875rem;
    }
    
    /* ----- ЛАБОРАТОРНЫЕ ТЕСТЫ ----- */
    .lab-tests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .lab-test-card {
        min-height: 140px;
        padding: 16px;
    }
    
    .lab-test-text {
        font-size: 0.875rem;
    }
    
    .lab-test-card::before {
        width: 120px;
        height: 120px;
        right: -20px;
        bottom: -20px;
    }
    
    /* ----- ВАЖНЫЕ БЛОКИ ----- */
    .important-block,
    .q-block {
        padding: 16px 20px;
        margin: 20px 0;
    }
    
    .important-title,
    .q-title {
        font-size: 0.875rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .important-icon,
    .q-icon {
        width: 24px;
        height: 24px;
    }
    
    .important-text,
    .q-text {
        font-size: 0.875rem;
    }
    
    /* ----- СХЕМЫ ----- */
    .scheme-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .scheme-block {
        padding: 20px;
    }
    
    .block-title {
        font-size: 1.1rem;
    }
    
    .rectangles {
        gap: 20px;
    }
    
    .rectangle {
        font-size: 0.875rem;
        padding: 8px 12px;
    }
    
    .images-grid-7,
    .images-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .image-item img {
        width: 100px;
        height: 100px;
    }
    
    /* ----- ШАГИ С ИКОНКАМИ ----- */
    .steps-icons {
        flex-direction: column;
        gap: 16px;
    }
    
    .steps-icon {
        height: 200px;
    }
    
    .steps-text {
        font-size: 150px;
        left: 0;
    }
    
    .steps-icon-front img {
        width: 280px;
        height: 280px;
        right: -80px;
        bottom: -80px;
    }
    
    .steps-flip-icon {
        right: 120px;
        bottom: 10px;
    }
    
    /* ----- КРУГЛАЯ СЕКЦИЯ ----- */
    .circle-section {
        height: auto;
        min-height: 500px;
        padding: 20px;
        flex-direction: column;
    }
    
    .circle-container {
        position: relative;
        left: 0;
        width: 100%;
        height: 300px;
        margin-bottom: 20px;
    }
    
    .circle {
        width: 280px;
        height: 280px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .dot {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .dot.active {
        width: 48px;
        height: 48px;
    }
    
    .dot:nth-child(1),
    .dot:nth-child(2),
    .dot:nth-child(3),
    .dot:nth-child(4),
    .dot:nth-child(5),
    .dot:nth-child(6) {
        transform: rotate(calc(var(--dot-angle, 0deg))) translateX(140px);
    }
    
    .static-text-left {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        text-align: center;
        margin-bottom: 16px;
    }
    
    .circle-text-recept {
        left: 0;
        width: 100%;
    }
    
    .recept-table {
        grid-template-columns: 1fr;
    }
    
    .recept-cell {
        font-size: 0.875rem;
        padding: 8px 12px;
    }
    
    /* ----- ПРОГРЕСС КУРСА ----- */
    .course-progress {
        margin: 32px auto 16px auto;
    }
    
    .course-info {
        font-size: 0.875rem;
    }
    
    .progress-bars .bar {
        height: 4px;
    }
    
    /* ----- КНОПКИ НАВИГАЦИИ ----- */
    .navigation {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .next-btn,
    .prev-btn,
    .test-btn,
    .next-theme-btn {
        padding: 12px 20px;
        font-size: 0.875rem;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .back-link {
        font-size: 0.875rem;
        padding: 4px 10px;
    }
    
    /* ----- ТЕКСТОВЫЕ БЛОКИ ----- */
    .text-block {
        padding: 16px 20px;
        font-size: 0.875rem;
        margin: 16px 0;
    }
    
    .theme-content p {
        font-size: 0.875rem;
        margin-bottom: 10px;
    }
    
    .theme-content li {
        font-size: 0.875rem;
        margin-bottom: 6px;
    }
    
    /* ----- ВИДЕО КОНТЕЙНЕРЫ ----- */
    .video-container video {
        margin-top: 12px;
        margin-bottom: 32px;
    }
    
    .content-image,
    .zoom-img {
        margin-top: 12px;
        margin-bottom: 32px;
    }
    
    /* ----- МОДАЛЬНОЕ ОКНО ----- */
    .modal-content {
        max-width: 95%;
        max-height: 85%;
    }
    
    .close {
        font-size: 32px;
        top: 15px;
        right: 20px;
    }
    
    /* ----- ТЕСТЫ ----- */
    .question-block {
        padding: 24px;
        margin: 16px 0;
    }
    
    .answer {
        padding: 12px 14px;
        font-size: 0.875rem;
        gap: 10px;
    }
    
    .answer::before {
        width: 18px;
        height: 18px;
    }
    
    .test-result {
        font-size: 16px;
    }
    
    /* ----- СКРОЛЛБАР ----- */
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-thumb {
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-track {
        border-radius: 4px;
    }
    
    /* ----- FOOTER ----- */
    footer {
        font-size: 0.875rem;
        padding: 12px 0;
    }
}

/* ============================================
   ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (max-width: 480px)
   ============================================ */

@media (max-width: 480px) {
    /* ----- КОНТЕЙНЕРЫ ----- */
    .container,
    .theme-content {
        padding: 0 12px;
    }
    
    /* ----- ЗАГОЛОВКИ ----- */
    header h1 {
        font-size: 1.5rem;
        padding: 16px 0;
    }
    
    .theme-title {
        font-size: 1.5rem;
    }
    
    /* ----- TOC СЕТКА ----- */
    .toc-grid {
        grid-template-columns: 1fr;
    }
    
    .toc-card a {
        height: 140px;
        padding: 12px 10px 30px 10px;
    }
    
    .toc-card a img {
        width: 120px;
        height: 120px;
        right: -40px;
        top: 60%;
    }
    
    /* ----- САЙДБАР ----- */
    .sidebar {
        height: 56px;
        padding: 0 8px;
    }
    
    .sidebar-logo img {
        width: 32px;
    }
    
    .sidebar-nav {
        gap: 8px;
    }
    
    .sidebar-nav a {
        font-size: 0.75rem;
        padding-left: 6px;
    }
    
    /* ----- КАРТОЧКИ ----- */
    .card {
        height: 350px;
    }
    
    /* ----- КРУГОВОЙ НАВИГАТОР ----- */
    .stage-wheel {
        width: 240px;
        height: 240px;
    }
    
    .wheel-center {
        width: 150px;
        height: 150px;
        padding: 15px;
    }
    
    .digit-circle {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-110px) rotate(calc(-1 * var(--angle)));
    }
    
    .digit-circle.active {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-110px) rotate(calc(-1 * var(--angle))) scale(1.15);
    }
    
    /* ----- 3D КОНТЕЙНЕРЫ ----- */
    .three-section,
    .three-container {
        height: 280px;
    }
    
    .three-box {
        min-height: 250px;
    }
    
    /* ----- ЛАБОРАТОРНЫЕ ТЕСТЫ ----- */
    .lab-tests-grid {
        grid-template-columns: 1fr;
    }
    
    .lab-test-card {
        min-height: 120px;
    }
    
    /* ----- КРУГЛАЯ СЕКЦИЯ ----- */
    .circle {
        width: 240px;
        height: 240px;
    }
    
    .dot {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    
    .dot.active {
        width: 40px;
        height: 40px;
    }
    
    /* ----- КНОПКИ ----- */
    .next-btn,
    .prev-btn,
    .test-btn,
    .next-theme-btn {
        padding: 10px 16px;
        font-size: 0.8125rem;
    }
    
    /* ----- ТАБЛИЦЫ ----- */
    .info-table {
        font-size: 0.75rem;
    }
    
    .info-table thead th,
    .info-table td {
        padding: 8px 10px;
    }
    
    /* ----- ТЕКСТ ----- */
    .text-block,
    .definition-block,
    .important-block,
    .q-block {
        padding: 14px 16px;
        font-size: 0.8125rem;
    }
    
    .theme-content p,
    .theme-content li {
        font-size: 0.8125rem;
    }
}

/* ============================================
   АЛЬБОМНАЯ ОРИЕНТАЦИЯ НА МОБИЛЬНЫХ
   ============================================ */

@media (max-height: 500px) and (orientation: landscape) {
    .sidebar {
        height: 56px;
    }
    
    .three-section,
    .three-container,
    .interactive-phagocytosis,
    .circle-section {
        min-height: 300px;
        max-height: 350px;
    }
    
    .card {
        height: 280px;
    }
    
    .toc-card a {
        height: 120px;
    }
    
    .info-block,
    .info-block-old {
        min-height: 300px;
    }
}

/* ============================================
   УЛУЧШЕНИЯ ДЛЯ СЕНСОРНЫХ ЭКРАНОВ
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    /* Увеличиваем области клика для пальцев */
    .toc-card a,
    .card,
    .answer,
    .control-btn,
    .digit-circle,
    .dot,
    .receptor,
    .highlight-area {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Убираем hover эффекты на тач-устройствах */
    .toc-card a:hover,
    .card-front:hover .card-image img,
    .steps-icon:hover .steps-icon-front img {
        transform: none;
    }
    
    /* Делаем кнопки более заметными */
    .next-btn,
    .prev-btn,
    .test-btn,
    .next-theme-btn {
        min-height: 48px;
        touch-action: manipulation;
    }
    
    /* Улучшаем видимость активных состояний */
    .answer:has(input[type="radio"]:checked),
    .digit-circle.active,
    .dot.active {
        background: rgba(26, 118, 255, 0.4);
    }
}

/* ============================================
   ПРИНУДИТЕЛЬНЫЙ ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ
   ДЛЯ ТАБЛИЦ НА МОБИЛЬНЫХ
   ============================================ */

@media (max-width: 768px) {
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 16px 0;
    }
    
    .table-wrapper table {
        min-width: 600px;
    }
}

/* ============================================
   ОПТИМИЗАЦИЯ ЗАГРУЗКИ НА МОБИЛЬНЫХ
   ============================================ */

@media (max-width: 768px) {
    /* Отключаем тяжелые анимации */
    .back-video,
    .bg-video,
    .bg-video1 {
        display: none;
    }
    
    body {
        background-color: rgb(194, 218, 255);
    }
    
    /* Упрощаем тени для производительности */
    .toc-card a,
    .card-front,
    .card-back,
    .three-section,
    .three-container {
        box-shadow: 0 4px 12px rgba(0, 60, 139, 0.15);
    }
    
    /* Отключаем backdrop-filter на слабых устройствах */
    .sidebar,
    .definition-block,
    .small-definition-block,
    .step-card,
    .cell-info {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.5);
    }
}





/* ============================================
   CIRCLE SECTION - МОБИЛЬНАЯ ВЕРСИЯ (ИСПРАВЛЕНИЕ)
   ============================================ */

@media (max-width: 768px) {
    /* ----- ОСНОВНОЙ КОНТЕЙНЕР ----- */
    .circle-section {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: auto;
        min-height: 700px;
        padding: 20px 16px;
        padding-top: 40px;
        overflow: visible;
        background-color: rgba(36, 83, 211, 0.774);
        border-radius: 24px;
        box-shadow: 0 10px 30px rgba(0, 53, 122, 0.18);
    }
    
    /* ----- ВИДЕО НА ЗАДНЕМ ПЛАНЕ - ИСПРАВЛЕНИЕ ----- */
    .bg-video,
    .bg-video1 {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60%;
        object-fit: cover;
        z-index: 0;
        pointer-events: none;
        top: auto !important;
        right: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .bg-video1 {
        top: auto !important;
        bottom: 0 !important;
    }
    
    /* ----- КОНТЕЙНЕР КРУГА - ЦЕНТРИРОВАНИЕ ----- */
    .circle-container {
        position: relative;
        left: 0 !important;
        width: 100%;
        max-width: 320px;
        height: 320px;
        flex-shrink: 0;
        overflow: visible;
        margin: 0 auto 24px auto;
        order: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* ----- КРУГ - ЦЕНТРИРОВАНИЕ ----- */
    .circle {
        position: absolute;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.575);
        background: rgba(255, 255, 255, 0.068);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
                    inset 0 0 20px rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(10px);
        cursor: url('pictures/pointer.png') 16 16, auto;
        transition: transform 0.3s ease;
        margin: 0;
        padding: 0;
    }
    
    /* ----- ТОЧКИ НА КРУГЕ ----- */
    .dot {
        width: 32px;
        height: 32px;
        font-size: 13px;
        margin: 0;
    }
    
    .dot.active {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    /* Радиус для точек (половина ширины круга = 140px) */
    .dot:nth-child(1) { transform: rotate(0deg) translateX(140px); }
    .dot:nth-child(2) { transform: rotate(60deg) translateX(140px); }
    .dot:nth-child(3) { transform: rotate(120deg) translateX(140px); }
    .dot:nth-child(4) { transform: rotate(180deg) translateX(140px); }
    .dot:nth-child(5) { transform: rotate(240deg) translateX(140px); }
    .dot:nth-child(6) { transform: rotate(300deg) translateX(140px); }
    
    /* ----- ТЕКСТ СЛЕВА ОТ КРУГА ----- */
    .static-text-left {
        position: absolute;
        top: 50%;
        left: 10px;
        transform: translateY(-50%);
        width: 100px;
        text-align: right;
        pointer-events: none;
        z-index: 2;
    }
    
    .static-text-left .text-item {
        font-size: 16px;
    }
    
    /* ----- ЦЕНТРАЛЬНОЕ ОПИСАНИЕ СТАДИЙ - ИСПРАВЛЕНИЕ ----- */
    .wheel-center {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 200px;
        height: 200px;
        background: rgba(28, 8, 141, 0.6);
        backdrop-filter: blur(12px);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 20px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
                    inset 0 0 20px rgba(255, 255, 255, 0.4);
        border: 2px solid rgba(255, 255, 255, 0.4);
        z-index: 10;
        overflow: hidden;
    }
    
    /* Описание стадий */
    .stage-description {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s ease;
        color: white;
        padding: 20px;
        box-sizing: border-box;
        text-align: center;
        word-break: break-word;
        font-weight: 300;
    }
    
    .stage-description.active {
        display: flex;
        opacity: 1;
        visibility: visible;
    }
    
    .stage-description h3 {
        font-size: 1rem;
        font-weight: 600 !important;
        margin: 0 0 10px 0;
        color: #ffffff !important;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-shadow: 0 2px 8px rgba(0,0,0,0.5);
        line-height: 1.3;
        max-width: 100%;
        word-wrap: break-word;
    }
    
    .stage-description p {
        font-size: 0.875rem;
        line-height: 1.4;
        margin: 0;
        opacity: 0.95;
        max-width: 100%;
        word-wrap: break-word;
    }
    
    /* ----- БЛОК С РЕЦЕПТОРАМИ ----- */
    .circle-text-recept {
        position: relative;
        left: 0 !important;
        width: 100%;
        max-width: 400px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        order: 2;
        margin: 0 auto 20px auto;
        z-index: 1;
    }
    
    /* ----- ТАБЛИЦА РЕЦЕПТОРОВ - 3 КОЛОНКИ ----- */
    .recept-table {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
    }
    
    .recept-cell {
        padding: 8px 10px;
        font-size: 13px;
        line-height: 1.3;
        border-radius: 10px;
        background-color: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(6px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: #fff;
        text-align: center;
        font-weight: 500;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    
    /* ----- СТАДИИ ----- */
    .stage {
        width: 100%;
    }
    
    .stage.active {
        display: block;
    }
    
    /* ----- СКРЫВАЕМ ТЕКСТ СЛЕВА НА МОБИЛЬНЫХ ----- */
    .static-text-left {
        display: none;
    }
}

/* ============================================
   ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (max-width: 480px)
   ============================================ */

@media (max-width: 480px) {
    .circle-section {
        min-height: 600px;
        padding: 16px 12px;
        padding-top: 30px;
    }
    
    .circle-container {
        max-width: 280px;
        height: 280px;
    }
    
    .circle {
        width: 240px;
        height: 240px;
    }
    
    /* Точки еще меньше */
    .dot {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .dot.active {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    /* Радиус для точек (половина ширины круга = 120px) */
    .dot:nth-child(1) { transform: rotate(0deg) translateX(120px); }
    .dot:nth-child(2) { transform: rotate(60deg) translateX(120px); }
    .dot:nth-child(3) { transform: rotate(120deg) translateX(120px); }
    .dot:nth-child(4) { transform: rotate(180deg) translateX(120px); }
    .dot:nth-child(5) { transform: rotate(240deg) translateX(120px); }
    .dot:nth-child(6) { transform: rotate(300deg) translateX(120px); }
    
    /* Центральное описание */
    .wheel-center {
        width: 160px;
        height: 160px;
        padding: 15px;
    }
    
    .stage-description h3 {
        font-size: 0.875rem;
    }
    
    .stage-description p {
        font-size: 0.75rem;
    }
    
    /* Рецепторы */
    .circle-text-recept {
        max-width: 350px;
    }
    
    .recept-cell {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    /* Видео занимает меньше места */
    .bg-video,
    .bg-video1 {
        height: 50%;
    }
}

/* Для мобильных - более плавный переход */
@media (max-width: 768px) {
    .bg-video,
    .bg-video1 {
        -webkit-mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.2) 15%,
            rgba(0, 0, 0, 0.5) 30%,
            rgba(0, 0, 0, 0.8) 50%,
            black 70%
        );
        mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.2) 15%,
            rgba(0, 0, 0, 0.5) 30%,
            rgba(0, 0, 0, 0.8) 50%,
            black 70%
        );
    }
    
    .bg-video::after,
    .bg-video1::after {
        height: 60%;
        background: linear-gradient(
            to bottom,
            rgba(36, 83, 211, 0) 0%,
            rgba(36, 83, 211, 0.2) 20%,
            rgba(36, 83, 211, 0.4) 40%,
            rgba(36, 83, 211, 0.7) 70%,
            rgba(36, 83, 211, 1) 100%
        );
    }
}

/* Альтернатива: размытие края через filter */
@media (max-width: 768px) {
    .bg-video,
    .bg-video1 {
        filter: blur(0px);
    }
    
    /* Создаем размытый оверлей для верхнего края */
    .circle-section::before {
        content: "";
        position: absolute;
        top: 40%;
        left: 0;
        width: 100%;
        height: 150px;
        background: linear-gradient(
            to bottom,
            rgba(36, 83, 211, 0.8) 0%,
            rgba(36, 83, 211, 0) 100%
        );
        filter: blur(20px);
        pointer-events: none;
        z-index: 2;
    }
}



/* Мобильная версия */
@media (max-width: 768px) {
    .wheel-center {
        width: 180px;
        height: 180px;
        padding: 15px;
        background: rgba(28, 8, 141, 0.85); /* Ещё более непрозрачный */
    }
    
    .stage-description {
        padding: 15px;
    }
    
    .stage-description h3 {
        font-size: 0.9rem;
        font-weight: 800 !important;
        text-shadow: 0 2px 10px rgba(0,0,0,1); /* Максимальная тень */
    }
    
    .stage-description p {
        font-size: 0.8rem;
        text-shadow: 0 1px 6px rgba(0,0,0,0.8);
    }
}

@media (max-width: 480px) {
    .wheel-center {
        width: 160px;
        height: 160px;
        padding: 12px;
        background: rgba(28, 8, 141, 0.9);
    }
    
    .stage-description h3 {
        font-size: 0.8rem;
    }
    
    .stage-description p {
        font-size: 0.75rem;
    }
}

/* ----- МОБИЛЬНЫЕ 768px (круг 280px, радиус 140px) ----- */
@media (max-width: 768px) {
    .dot {
        width: 32px;
        height: 32px;
        font-size: 13px;
        margin-left: -16px;
        margin-top: -16px;
    }
    
    .dot.active {
        width: 48px;
        height: 48px;
        font-size: 18px;
        margin-left: -24px;
        margin-top: -24px;
    }
    
    /* Радиус 140px (половина круга 280px) */
    .dot:nth-child(1) { --dot-angle: 0deg; transform: rotate(0deg) translateX(140px) rotate(0deg); }
    .dot:nth-child(2) { --dot-angle: 60deg; transform: rotate(60deg) translateX(140px) rotate(-60deg); }
    .dot:nth-child(3) { --dot-angle: 120deg; transform: rotate(120deg) translateX(140px) rotate(-120deg); }
    .dot:nth-child(4) { --dot-angle: 180deg; transform: rotate(180deg) translateX(140px) rotate(-180deg); }
    .dot:nth-child(5) { --dot-angle: 240deg; transform: rotate(240deg) translateX(140px) rotate(-240deg); }
    .dot:nth-child(6) { --dot-angle: 300deg; transform: rotate(300deg) translateX(140px) rotate(-300deg); }
    
    .dot.active {
        transform: rotate(var(--dot-angle)) translateX(140px) rotate(calc(-1 * var(--dot-angle))) scale(1.15);
    }
}

/* ----- МОБИЛЬНЫЕ 480px (круг 240px, радиус 120px) ----- */
@media (max-width: 480px) {
    .dot {
        width: 28px;
        height: 28px;
        font-size: 11px;
        margin-left: -14px;
        margin-top: -14px;
    }
    
    .dot.active {
        width: 40px;
        height: 40px;
        font-size: 14px;
        margin-left: -20px;
        margin-top: -20px;
    }
    
    /* Радиус 120px (половина круга 240px) */
    .dot:nth-child(1) { --dot-angle: 0deg; transform: rotate(0deg) translateX(120px) rotate(0deg); }
    .dot:nth-child(2) { --dot-angle: 60deg; transform: rotate(60deg) translateX(120px) rotate(-60deg); }
    .dot:nth-child(3) { --dot-angle: 120deg; transform: rotate(120deg) translateX(120px) rotate(-120deg); }
    .dot:nth-child(4) { --dot-angle: 180deg; transform: rotate(180deg) translateX(120px) rotate(-180deg); }
    .dot:nth-child(5) { --dot-angle: 240deg; transform: rotate(240deg) translateX(120px) rotate(-240deg); }
    .dot:nth-child(6) { --dot-angle: 300deg; transform: rotate(300deg) translateX(120px) rotate(-300deg); }
    
    .dot.active {
        transform: rotate(var(--dot-angle)) translateX(120px) rotate(calc(-1 * var(--dot-angle))) scale(1.15);
    }
}

/* ----- ЦИФРЫ ВНУТРИ ТОЧЕК - ЧТОБЫ НЕ ПЕРЕВОРАЧИВАЛИСЬ ----- */
.dot::before {
    content: attr(data-number);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ============================================
   МОБИЛЬНАЯ АДАПТАЦИЯ - ЦЕНТРИРОВАНИЕ ВСЕГО КОНТЕНТА
   ============================================ */

@media (max-width: 768px) {
    /* ----- BODY И HTML ----- */
    html,
    body {
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    /* ----- CONTAINER - ГЛАВНОЕ ИСПРАВЛЕНИЕ ----- */
    .container {
        max-width: 100% !important;
        margin-left: 0 !important; /* Убираем отступ для сайдбара */
        margin-right: 0 !important;
        margin: 0 auto !important; /* Центрируем */
        width: 100% !important;
        padding: 0 16px !important; /* Отступы по краям */
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* ----- THEME CONTENT ----- */
    .theme-content {
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    /* ----- ЗАГОЛОВКИ ----- */
    header h1 {
        text-align: center !important;
        padding: 20px 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        font-size: 1.5rem !important;
    }
    
    .theme-title {
        text-align: center !important;
        font-size: 1.3rem !important;
    }
    
    .theme-subtitle {
        text-align: center !important;
        font-size: 0.75rem !important;
    }
    
    h2, h3 {
        text-align: center !important;
    }
    
    .theme-content h2 {
        text-align: center !important;
        font-size: 1.1rem !important;
        margin: 24px 0 16px !important;
    }
    
    .theme-content h3 {
        text-align: center !important;
        font-size: 0.95rem !important;
    }
    
    /* ----- SIDEBAR ----- */
    .sidebar {
        padding: 0 16px !important;
        margin: 0 !important;
    }
    
    /* ----- ВСЕ СЕКЦИИ КОНТЕНТА ----- */
    .theme-content > section,
    .theme-content > div.cards,
    .theme-content > .cell-viewer,
    .theme-content > .interactive-phagocytosis,
    .theme-content > .circle-section,
    .theme-content > .info-block,
    .theme-content > .info-block-old,
    .theme-content > .info-block-crb,
    .theme-content > .info-block-crb1,
    .theme-content > .three-section,
    .theme-content > .three-container,
    .theme-content > .definitions-grid,
    .theme-content > .definitions-container,
    .theme-content > .small-definition-container,
    .theme-content > .steps-block,
    .theme-content > .lab-tests,
    .theme-content > .scheme-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* ----- INFO БЛОКИ ----- */
    .info-block,
    .info-block-old,
    .info-block-crb,
    .info-block-crb1 {
        padding: 24px 20px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        align-items: center !important;
        justify-content: center !important;
        height: auto !important;
        min-height: 450px !important;
    }
    
    .info-text {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center !important;
    }
    
    .info-bg-image,
    .info-bg-image-old,
    .info-bg-image-crb,
    .info-bg-video,
    .info-bg-video-dend {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        transform: none !important;
        width: 100% !important;
        margin: 20px auto !important;
        display: block !important;
    }
    
    /* ----- КРУГОВАЯ СЕКЦИЯ ----- */
    .circle-section {
        padding: 20px 16px !important;
        justify-content: center !important;
        align-items: center !important;
        height: auto !important;
        min-height: 650px !important;
    }
    
    .circle-container {
        left: 0 !important;
        position: relative !important;
        margin: 0 auto 24px auto !important;
        width: 100% !important;
        max-width: 320px !important;
    }
    
    .circle {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .circle-text-recept {
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 16px !important;
    }
    
    /* ----- КАРТОЧКИ ----- */
    .cards {
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin: 24px auto !important;
    }
    
    .card {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* ----- 3D КОНТЕЙНЕРЫ ----- */
    .three-section,
    .three-container {
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin: 24px auto !important;
        width: 100% !important;
    }
    
    /* ----- ТАБЛИЦЫ ----- */
    .info-table {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        display: block !important;
        overflow-x: auto !important;
    }
    
    .table-title {
        text-align: center !important;
    }
    
    /* ----- ОПРЕДЕЛЕНИЯ ----- */
    .definitions-grid,
    .definitions-container,
    .small-definition-container,
    .steps-block {
        padding: 0 !important;
        grid-template-columns: 1fr !important;
    }
    
    .definition-block,
    .small-definition-block,
    .step-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* ----- ЛАБОРАТОРНЫЕ ТЕСТЫ ----- */
    .lab-tests-grid {
        padding: 0 !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* ----- ВАЖНЫЕ БЛОКИ ----- */
    .important-block,
    .q-block,
    .text-block {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin: 20px auto !important;
    }
    
    /* ----- КЛЕТКА С ЗУМОМ ----- */
    .cell-viewer {
        padding: 0 !important;
        flex-direction: column !important;
        margin: 24px auto !important;
    }
    
    .cell-info {
        width: 100% !important;
        padding: 20px !important;
        margin: 0 !important;
    }
    
    /* ----- НАВИГАЦИЯ ----- */
    .navigation {
        justify-content: center !important;
        padding: 0 !important;
        margin: 24px auto !important;
        width: 100% !important;
    }
    
    .next-btn,
    .prev-btn,
    .test-btn,
    .next-theme-btn {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        width: 100% !important;
        max-width: 280px !important;
        text-align: center !important;
    }
    
    /* ----- ФУТЕР ----- */
    footer {
        padding: 15px 16px !important;
        text-align: center !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* ----- ИЗОБРАЖЕНИЯ И ВИДЕО ----- */
    .content-image,
    .zoom-img {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .video-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .video-container video {
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
    }
    
    /* ----- СХЕМЫ ----- */
    .scheme-wrapper {
        grid-template-columns: 1fr !important;
        padding: 0 !important;
    }
    
    .scheme-block {
        padding: 20px !important;
    }
    
    /* ----- ПРОГРЕСС КУРСА ----- */
    .course-progress {
        padding: 0 16px !important;
        margin: 32px auto !important;
    }
    
    /* ----- ТОЧКИ НА КРУГЕ ----- */
    .dot {
        margin-left: -16px !important;
        margin-top: -16px !important;
    }
    
    .dot.active {
        margin-left: -24px !important;
        margin-top: -24px !important;
    }
}

/* ============================================
   ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (480px)
   ============================================ */

@media (max-width: 480px) {
    .container {
        padding: 0 12px !important;
    }
    
    .info-block,
    .info-block-old,
    .info-block-crb,
    .info-block-crb1 {
        padding: 20px 16px !important;
        min-height: 400px !important;
    }
    
    .important-block,
    .q-block,
    .text-block {
        padding: 18px 16px !important;
    }
    
    .circle-section {
        padding: 16px 12px !important;
        min-height: 550px !important;
    }
    
    .lab-tests-grid {
        grid-template-columns: 1fr !important;
    }
    
    header h1 {
        font-size: 1.25rem !important;
    }
    
    .theme-title {
        font-size: 1.15rem !important;
    }
}

/* ============================================
   ИСПРАВЛЕНИЕ ПЛАВНОЙ ЗАГРУЗКИ
   ============================================ */

.page-transition-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
}

.page-transition-overlay.active {
    pointer-events: auto !important;
}

.page-load-progress {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    pointer-events: none !important;
}

body.loaded::after {
    display: none !important;
}

/* ============================================
   ВИДЕО ДЕНДРИТНОЙ КЛЕТКИ - МОБИЛЬНАЯ АДАПТАЦИЯ
   ============================================ */



/* ----- МОБИЛЬНЫЕ 768px ----- */
@media (max-width: 768px) {
    .info-bg-video-dend {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        height: 50% !important;
        object-fit: cover;
        object-position: center bottom;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        
        /* Более плавный переход для мобильных */
        -webkit-mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.15) 10%,
            rgba(0, 0, 0, 0.4) 25%,
            rgba(0, 0, 0, 0.7) 45%,
            black 65%
        );
        mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.15) 10%,
            rgba(0, 0, 0, 0.4) 25%,
            rgba(0, 0, 0, 0.7) 45%,
            black 65%
        );
    }
    
    .info-bg-video-dend::after {
        height: 60%;
        background: linear-gradient(
            to bottom,
            rgba(36, 83, 211, 0) 0%,
            rgba(36, 83, 211, 0.15) 15%,
            rgba(36, 83, 211, 0.35) 35%,
            rgba(36, 83, 211, 0.65) 60%,
            rgba(36, 83, 211, 1) 100%
        );
    }
    
    /* Дополнительный блюр для верхнего края */
    .info-block-old::before {
        content: "";
        position: absolute;
        top: 40%;
        left: 0;
        width: 100%;
        height: 150px;
        background: linear-gradient(
            to bottom,
            rgba(36, 83, 211, 0.8) 0%,
            rgba(36, 83, 211, 0) 100%
        );
        filter: blur(20px);
        pointer-events: none;
        z-index: 2;
    }
}

/* ----- МОБИЛЬНЫЕ 480px ----- */
@media (max-width: 480px) {
    .info-bg-video-dend {
        height: 45% !important;
        
        -webkit-mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.1) 8%,
            rgba(0, 0, 0, 0.35) 20%,
            rgba(0, 0, 0, 0.65) 40%,
            black 60%
        );
        mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.1) 8%,
            rgba(0, 0, 0, 0.35) 20%,
            rgba(0, 0, 0, 0.65) 40%,
            black 60%
        );
    }
    
    .info-bg-video-dend::after {
        height: 65%;
    }
    
    .info-block-old::before {
        height: 120px;
        top: 35%;
    }
}


/* ============================================
   МОБИЛЬНЫЕ 480px
   ============================================ */

@media (max-width: 480px) {
    .info-block-old {
        min-height: 450px !important;
        padding: 24px 16px !important;
    }
    
    .info-bg-video-dend {
        height: 45% !important;
    }
    
    .info-block-old::before {
        top: 38%;
        height: 100px;
    }
}


