@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
  --theme-hue: 140;
  /* неважно, в чёрном режиме градиента всё равно не видно */
}

/* RESET */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  color: white;
}

body {
  background:
    radial-gradient(circle at top left,
      hsl(var(--theme-hue) 80% 18%) 0%,
      hsl(var(--theme-hue) 40% 10%) 45%,
      hsl(var(--theme-hue) 20% 6%) 100%);
  transition: background 0.35s ease;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ЧЁРНЫЙ РЕЖИМ — как раньше */
body.theme-black {
  background: #000000;
  transition: none;
}

/* MAIN LAYOUT */

main {
  width: 100%;
  height: 100%;
  display: flex;
  padding: 50px;
  gap: 40px;
}

/* ========================================= */
/*                LEFT BLOCK                 */
/* ========================================= */

.logo-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 60px;
  gap: 10px;
}

.logo-main {
  font-weight: 800;
  font-size: 5vw;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;

  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.35),
    0 0 40px rgba(255, 255, 255, 0.18),
    0 0 80px rgba(255, 255, 255, 0.12);
}

.logo-tagline {
  font-size: 1rem;
  letter-spacing: 0.28em;
  opacity: 0.55;
  text-transform: uppercase;
}

.logo-cities {
  font-size: 1rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.55;
  color: #ffffff;
  margin-top: 4px;
}

/* ========================================= */
/*                  CUBE                     */
/* ========================================= */

.center-panel {
  width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scene {
  width: 600px;
  height: 600px;
  perspective: 1800px;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(-300px);
  transition: transform 1.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* небольшой постоянный наклон, чтобы куб сразу читался как 3D */

/* лёгкий, почти незаметный наклон — базовый 
.cube.show-front {
  transform: translateZ(-300px) rotateX(-8deg) rotateY(12deg);
}

.cube.show-right {
  transform: translateZ(-300px) rotateX(-8deg) rotateY(-78deg);

}

.cube.show-back {
  transform: translateZ(-300px) rotateX(-8deg) rotateY(-168deg);

}

.cube.show-left {
  transform: translateZ(-300px) rotateX(-8deg) rotateY(102deg);

}

.cube.show-top {
  transform: translateZ(-300px) rotateX(-98deg) rotateY(12deg);

}

.cube.show-bottom {
  transform: translateZ(-300px) rotateX(82deg) rotateY(12deg);
}
*/


/* почти идеальная фронтальность, но 0.2 градуса перспективы */
.cube.show-front {
  transform: translateZ(-300px) rotateX(0.2deg) rotateY(0.2deg);
}

.cube.show-right {
  transform: translateZ(-300px) rotateX(0.2deg) rotateY(-89.8deg);
}

.cube.show-back {
  transform: translateZ(-300px) rotateX(0.2deg) rotateY(-179.8deg);
}

.cube.show-left {
  transform: translateZ(-300px) rotateX(0.2deg) rotateY(90.2deg);
}

.cube.show-top {
  transform: translateZ(-300px) rotateX(-89.8deg) rotateY(0.2deg);
}

.cube.show-bottom {
  transform: translateZ(-300px) rotateX(90.2deg) rotateY(0.2deg);
}


/* ГРАНИ — полупрозрачное стекло */

.cube-face {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 34px;

  background:
    /* основной цвет куба */
    linear-gradient(to bottom right,
      hsla(var(--theme-hue) 55% 25% / 0.35),
      hsla(var(--theme-hue) 35% 15% / 0.32)),

    /* мягкий свет сверху */
    radial-gradient(circle at top,
      hsla(var(--theme-hue) 65% 65% / 0.15),
      transparent 55%),

    /* тень снизу */
    radial-gradient(circle at bottom,
      rgba(0, 0, 0, 0.45),
      transparent 65%);

  backdrop-filter: blur(18px) brightness(1.06);
  -webkit-backdrop-filter: blur(18px) brightness(1.06);

  border: 1px solid rgba(255, 255, 255, 0.05);

  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.25),
    inset 0 0 120px rgba(0, 0, 0, 0.18),
    0 20px 60px rgba(0, 0, 0, 0.65),
    0 0 30px rgba(0, 0, 0, 0.45);

  transition: background 0.35s ease, border-color 0.35s ease;
}

body.theme-black .cube-face {
  background: rgba(10, 10, 15, 0.35);
  backdrop-filter: blur(18px) brightness(1.08);
  -webkit-backdrop-filter: blur(18px) brightness(1.08);

  border: 1px solid rgba(255, 255, 255, 0.06);

  box-shadow:
    inset 0 0 50px rgba(255, 255, 255, 0.02),
    inset 0 0 120px rgba(255, 255, 255, 0.015),
    0 20px 60px rgba(0, 0, 0, 0.65),
    0 0 30px rgba(0, 0, 0, 0.45);
}

/* позиционирование граней в 3D */

.cube-face-front {
  transform: rotateY(0deg) translateZ(300px);
}

.cube-face-back {
  transform: rotateY(180deg) translateZ(300px);
}

.cube-face-right {
  transform: rotateY(90deg) translateZ(300px);
}

.cube-face-left {
  transform: rotateY(-90deg) translateZ(300px);
}

.cube-face-top {
  transform: rotateX(90deg) translateZ(300px);
}

.cube-face-bottom {
  transform: rotateX(-90deg) translateZ(300px);
}

/* Контент внутри граней */

.face-inner {
  width: 100%;
  height: 100%;
  padding: 42px 52px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

/* маленький текст над заголовком */

.face-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  max-width: 70%;
}

.face-meta-line {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* простой текстовый блок над заголовком */

.face-text {
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.75;
  max-width: 70%;
  margin-bottom: 16px;
}

/* плейсхолдеры для фото / скринов */

.media-grid {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  max-width: 100%;
}

.media-grid.wide {
  width: 100%;
}

.media-grid.narrow {
  max-width: 70%;
}

.media-grid.small {
  max-width: 70%;
}

/* сама "картинка" */

.media-card {
  flex: 1;
  height: 110px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.4));
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0.9;
}

.media-card.tall {
  height: 150px;
}

.media-card.pill {
  height: 46px;
  border-radius: 999px;
}

/* заголовок и подзаголовок — как тебе нравилось, в левом нижнем углу */

.face-label {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 6px;
}

.face-sub {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ================= ABOUT FACE (TOP) ================= */
/* ================= ABOUT FACE (TOP) ================= */

.about-face {
  padding: 26px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  overflow: hidden;
  /* чтобы ничего не вылезало визуально */
}

/* Верхний блок */

.about-header {
  max-width: 100%;
  /* было 62% */
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-kicker {
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  opacity: 0.45;
  text-transform: uppercase;
}

.about-title {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-body {
  font-size: 0.72rem;
  line-height: 1.4;
  opacity: 0.75;
  max-width: 96%;
  /* почти вся ширина, но без упора в край */
}

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

.about-grid {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  width: 100%;
  /* растянуть на всю ширину куба */
}

.about-card {
  flex: 1 1 0;
  /* две равные колонки */
  max-width: none;
  /* убираем ограничение 200px */
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  /* чуть вытянутое фото */
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 55%);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-name {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.about-role {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.6;
}

.about-text {
  font-size: 0.72rem;
  line-height: 1.3;
  opacity: 0.78;
}

.about-link {
  margin-top: 2px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  align-self: flex-start;
  transition: 0.2s ease;
}

.about-link:hover {
  opacity: 1;
  transform: translateX(3px);
}

/* ================= HERO FACE (FRONT) ================= */

.hero-face {
  padding: 42px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* весь верхний блок прижат вправо */

.hero-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  /* всё выравниваем к правому краю */
  gap: 18px;
}

/* маленький верхний текст */

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.6;
  max-width: 80%;
  margin-left: auto;
  text-align: right;
}

/* заголовок — крупный, но тоже правый край */

.hero-title {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.05;
  max-width: 80%;
  /* 75–80% ширины куба */
  margin-left: auto;
  /* прижимаем к правому краю */
  text-align: right;
}

/* основной текст — под заголовком, тоже справа */

.hero-body {
  max-width: 78%;
  margin-left: auto;
  /* тоже к правому краю */
  text-align: right;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.78;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* =============== LEFT FACE — ACHIEVEMENTS =============== */
/* =============== LEFT FACE — ACHIEVEMENTS =============== */

.achievements-face {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  width: 100%;
}

/* HEADER */

.ach-header {
  text-align: center;
  margin-bottom: 18px;
}

.ach-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.26em;
  opacity: 0.45;
  text-transform: uppercase;
}

.ach-title {
  font-size: 2rem;
  /* как у front-заголовка по ощущению */
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 6px;
}

.ach-body {
  font-size: 0.78rem;
  opacity: 0.78;
  line-height: 1.45;
  max-width: 70%;
  margin: 12px auto 0 auto;
  /* как текст под заголовком на front */
}

/* LIST */

.ach-list {
  margin-top: 28px;
  width: 82%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ach-item {
  text-align: right;
}

.ach-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.86;
}

.ach-desc {
  font-size: 0.76rem;
  opacity: 0.7;
  line-height: 1.36;
  margin-top: 6px;
}

/* FOOTER */

.ach-footer {
  font-size: 0.62rem;
  opacity: 0.42;
  letter-spacing: 0.22em;
  margin-top: auto;
  text-align: center;
  padding-top: 18px;
}

/* =============== RIGHT FACE — ALLERGY CHECKER (GRAPH AI) =============== */

.checker-face {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
}

/* HEADER */

.checker-header {
  max-width: 80%;
  margin-left: auto;
  text-align: right;
}

.checker-kicker {
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  opacity: 0.45;
  text-transform: uppercase;
}

.checker-title {
  margin-top: 6px;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* MAIN LAYOUT */

.checker-main {
  margin-top: 16px;
  display: flex;
  gap: 22px;
  align-items: stretch;
  height: 100%;
}

.checker-copy {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checker-block-title {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.82;
}

.checker-block-text {
  margin-top: 4px;
  font-size: 0.74rem;
  line-height: 1.4;
  opacity: 0.78;
}

/* GRAPH BLOCK */
.graph-visual {
  width: 220px;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.graph-svg {
  width: 220px;
  height: 220px;
}

/* линии */
.graph-edges line {
  stroke: rgba(255, 255, 255, 0.38);
  stroke-width: 1.1;
  stroke-linecap: round;
}

/* узлы */
.graph-node {
  fill: #ffffff;
  stroke: rgba(0, 0, 0, 0.4);
  stroke-width: 0.4;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.7));
}

/* Лента скринов под графом */
/* Лента мини-скринов */
.checker-screens {
  margin: 14px 0px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 5 одинаковых квадратов */
.screen-card {
  width: 95px;
  /* Гарантированно влезает 5 штук */
  height: 95px;
  /* Квадрат */
  border-radius: 14px;
  margin: 0px 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  opacity: 0.9;
  transition: all 0.2s ease;
}

.screen-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* hover эффект – минималистичный */
.screen-card:hover {
  opacity: 1;
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.65),
    0 0 18px rgba(255, 255, 255, 0.10);
}

/* FOOTER */

.checker-footer {
  margin-top: auto;
  font-size: 0.62rem;
  opacity: 0.42;
  letter-spacing: 0.22em;
  text-align: center;
  padding-top: 8px;
}

/* =============== BACK FACE — TCM / ONCOLOGY BRIDGE =============== */

.tcm-face {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
}

/* HEADER */

.tcm-header {
  max-width: 78%;
  text-align: left;
}

.tcm-kicker {
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  opacity: 0.45;
  text-transform: uppercase;
}

.tcm-title {
  margin-top: 6px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.tcm-sub {
  margin-top: 8px;
  font-size: 0.74rem;
  line-height: 1.4;
  opacity: 0.78;
}

/* MAIN LAYOUT */

.tcm-main {
  margin-top: 16px;
  display: flex;
  gap: 22px;
  align-items: stretch;
  height: 100%;
}

/* левая колонка текста */

.tcm-copy {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tcm-block-title {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.82;
}

.tcm-block-text {
  margin-top: 4px;
  font-size: 0.74rem;
  line-height: 1.4;
  opacity: 0.78;
}

/* правая колонка – визуальный мост */

.tcm-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* орбита / круги */

.tcm-orbit {
  position: relative;
  width: 200px;
  height: 200px;
}

.tcm-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.tcm-orbit-ring-outer {
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.06);
}

.tcm-orbit-ring-inner {
  inset: 26px;
  border-color: rgba(255, 255, 255, 0.22);
}

/* три центральных узла */

.tcm-orbit-node {
  position: absolute;
  width: 60px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
}

.tcm-orbit-node span {
  opacity: 0.9;
}

/* позиции узлов (слегка сдвинутые) */
.tcm-node-tcm {
  top: 20px;
  left: 70px;
}

.tcm-node-bridge {
  top: 84px;
  left: 122px;
}

.tcm-node-oncology {
  bottom: 22px;
  left: 40px;
}

/* маленькие точки вокруг орбиты */

.tcm-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.9;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.tcm-dot.dot-1 {
  top: 12px;
  left: 32px;
}

.tcm-dot.dot-2 {
  top: 46px;
  right: 18px;
}

.tcm-dot.dot-3 {
  bottom: 30px;
  right: 34px;
}

.tcm-dot.dot-4 {
  bottom: 18px;
  left: 98px;
}

/* ступенчатое описание под орбитой */

.tcm-steps {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tcm-step {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tcm-step-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
}

.tcm-step-text {
  font-size: 0.7rem;
  line-height: 1.35;
  opacity: 0.8;
}

/* FOOTER */

.tcm-footer {
  margin-top: auto;
  font-size: 0.62rem;
  opacity: 0.42;
  letter-spacing: 0.22em;
  text-align: center;
  padding-top: 8px;
}

/* ================= CONTACT FACE (BOTTOM) ================= */

.contact-face {
  padding: 42px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* верхний блок – красиво и спокойно */

.contact-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  opacity: 0.45;
  text-transform: uppercase;
}

.contact-title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  max-width: 80%;
}

.contact-body {
  max-width: 70%;
  opacity: 0.7;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* середина – контакты как premium list */

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-item:hover {
  opacity: 0.8;
  transform: translateX(6px);
}

.contact-label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  opacity: 0.5;
  text-transform: uppercase;
}

.contact-value {
  font-size: 1.1rem;
  margin-top: 2px;
  opacity: 0.9;
  font-weight: 500;
}

/* низ – маленькая тихая подпись */

.contact-bottom-note {
  opacity: 0.3;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ========================================= */
/*         RIGHT SIDE — VERTICAL MENU        */
/* ========================================= */

.menu-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.menu-side .btn {
  width: 130px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.menu-side .btn:hover {
  background: rgba(56, 182, 255, 0.1);
  border-color: var(--blue);
  color: #ffffff;
  transform: translateX(6px);
  box-shadow: 0 0 18px rgba(56, 182, 255, 0.6);
}

/* Активная кнопка — всегда светится */
.menu-side .btn.active {
  background: rgba(56, 182, 255, 0.12);
  border-color: var(--blue);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(56, 182, 255, 0.45);
}

/* Активная кнопка не должна прыгать как hover */
.menu-side .btn.active:hover {
  transform: translateX(6px);
}

/* ========================================= */
/*                RESPONSIVE                 */
/* ========================================= */

@media (max-width: 1100px) {
  main {
    flex-direction: column;
    justify-content: center;
    padding: 20px;
  }

  .logo-block {
    padding-left: 20px;
    align-items: flex-start;
  }

  .center-panel {
    width: 320px;
  }

  .scene {
    width: 320px;
    height: 320px;
  }

  .cube-face {
    width: 320px;
    height: 320px;
  }

  .cube {
    transform: translateZ(-160px);
  }

  .cube.show-front {
    transform: translateZ(-160px) rotateX(-18deg) rotateY(25deg);
  }

  .cube.show-right {
    transform: translateZ(-160px) rotateX(-18deg) rotateY(-65deg);
  }

  .cube.show-back {
    transform: translateZ(-160px) rotateX(-18deg) rotateY(-155deg);
  }

  .cube.show-left {
    transform: translateZ(-160px) rotateX(-18deg) rotateY(115deg);
  }

  .cube.show-top {
    transform: translateZ(-160px) rotateX(-108deg) rotateY(25deg);
  }

  .cube.show-bottom {
    transform: translateZ(-160px) rotateX(72deg) rotateY(25deg);
  }
}

.theme-slider {

  right: 60px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0.7;
}

.theme-slider:hover {
  opacity: 1;
}

.theme-slider input[type="range"] {
  width: 140px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.theme-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.theme-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  margin-top: -5.5px;
  cursor: pointer;
}

.theme-slider input[type="range"]::-moz-range-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.theme-slider input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

/* ================== SCREEN LIGHTBOX (FULLSCREEN) ================== */

.screen-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  /* поверх всего */
  display: none;
  /* по умолчанию скрыт */
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* клики не проходят, пока нет .is-open */
}

.screen-lightbox.is-open {
  display: flex;
  pointer-events: auto;
}

/* полупрозрачный фон */
.screen-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.40));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* контейнер для картинки */
.screen-lightbox-content {
  position: relative;

  /* адаптивный квадрат */
  width: min(80vw, 80vh);
  height: min(80vw, 80vh);

  border-radius: 26px;
  overflow: hidden;

  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(255, 255, 255, 0.12);

  background: rgba(0, 0, 0, 0.87);
}

/* сама картинка */
.screen-lightbox-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 60%);
}

/* круглая кнопка с крестиком */
.screen-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.screen-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.75);
  transform: scale(1.04);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
}