* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --radius: 26px;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.88);
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(15, 15, 18, 0.34);
  --panel-strong: rgba(10, 10, 12, 0.56);
  --transition: 0.45s ease;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #333333 0%, #181818 42%, #0b0b0b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.split-page {
  position: relative;
  width: min(1280px, 100%);
  min-height: 84vh;
  display: flex;
  overflow: visible;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #111;
}

.piece {
  position: relative;
  flex: 1 1 50%;
  min-height: 84vh;
  overflow: visible;
  isolation: isolate;
  cursor: pointer;
}

.piece .bg,
.piece .overlay {
  position: absolute;
  inset: 0;
}

.piece .bg {
  z-index: 1;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform var(--transition), filter var(--transition);
}

.left .bg {
  background-image: url("img/left.png");
}

.right .bg {
  background-image: url("img/right.png");
}

.piece .overlay {
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
  transition: background var(--transition), box-shadow var(--transition);
}

.content-box {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  z-index: 6;
  max-width: 560px;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity var(--transition),
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
  overflow: visible;
}

.content-box h2 {
  font-size: clamp(28px, 3.3vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  text-wrap: balance;
  text-transform: none;
  color: #ffffff;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.content-box p {
  margin: 0;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-transform: none;
  max-width: 42ch;
}

/* если используешь список — так будет намного лучше */
.content-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-box li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  text-transform: none;
}

.content-box li:last-child {
  margin-bottom: 0;
}

.content-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #59ffb0;
  box-shadow: 0 0 10px rgba(89, 255, 176, 0.7);
}

.piece:hover .bg,
.piece:active .bg {
  transform: scale(1.08);
  filter: blur(7px) brightness(0.68);
}

.piece:hover .overlay,
.piece:active .overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(255, 140, 40, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.piece:hover .content-box,
.piece:active .content-box {
  opacity: 1;
  transform: translateY(0);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    var(--panel-strong);
  border-color: rgba(255, 210, 120, 0.22);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 24px rgba(255, 145, 50, 0.08);
}

/* мягкое затемнение возле центра */
.left::after,
.right::before {
  content: "";
  position: absolute;
  top: 0;
  width: 110px;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.left::after {
  right: 0;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.52));
}

.right::before {
  left: 0;
  background: linear-gradient(to left, transparent, rgba(0, 0, 0, 0.52));
}

/* ОБЕРТКА ТРЕЩИНЫ */
.crack-wrap {
  position: absolute;
  top: -2%;
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  height: 104%;
  z-index: 7;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.65));
}

/* Общая форма кривой трещины */
.crack {
  position: absolute;
  inset: 0;
  clip-path: polygon(
    44% 0%,
    53% 3%,
    49% 7%,
    61% 11%,
    54% 16%,
    65% 21%,
    51% 27%,
    59% 33%,
    46% 38%,
    55% 44%,
    42% 50%,
    52% 57%,
    41% 64%,
    57% 71%,
    47% 78%,
    60% 85%,
    51% 92%,
    56% 100%,
    46% 100%,
    42% 93%,
    47% 86%,
    36% 79%,
    46% 71%,
    33% 64%,
    44% 57%,
    31% 50%,
    42% 44%,
    35% 38%,
    46% 33%,
    38% 27%,
    49% 21%,
    41% 16%,
    50% 11%,
    44% 7%,
    48% 3%
  );
}

/* внешнее большое свечение */
.glow-1 {
  background: linear-gradient(
    to right,
    rgba(255, 145, 30, 0) 0%,
    rgba(255, 120, 20, 0.26) 22%,
    rgba(255, 90, 10, 0.42) 50%,
    rgba(255, 120, 20, 0.26) 78%,
    rgba(255, 145, 30, 0) 100%
  );
  filter: blur(18px);
  transform: scaleX(1.35);
  opacity: 0.95;
}

/* внутреннее более яркое свечение */
.glow-2 {
  background: linear-gradient(
    to right,
    rgba(255, 180, 70, 0) 0%,
    rgba(255, 170, 60, 0.45) 26%,
    rgba(255, 120, 20, 0.95) 50%,
    rgba(255, 170, 60, 0.45) 74%,
    rgba(255, 180, 70, 0) 100%
  );
  filter: blur(7px);
  transform: scaleX(1.12);
}

/* темное ядро разлома */
.core {
  background: linear-gradient(
    to right,
    rgba(70, 30, 10, 0.94) 0%,
    rgba(10, 5, 2, 1) 25%,
    rgba(0, 0, 0, 1) 50%,
    rgba(10, 5, 2, 1) 75%,
    rgba(70, 30, 10, 0.94) 100%
  );
  box-shadow:
    inset 10px 0 14px rgba(255, 180, 90, 0.1),
    inset -10px 0 14px rgba(255, 180, 90, 0.1),
    0 0 22px rgba(255, 120, 20, 0.22);
}

/* дополнительная внутренняя линия жара */
.core::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(
    48% 0%,
    53% 4%,
    51% 8%,
    57% 13%,
    53% 18%,
    59% 23%,
    51% 29%,
    56% 35%,
    49% 40%,
    54% 46%,
    47% 52%,
    53% 58%,
    47% 65%,
    55% 72%,
    49% 79%,
    56% 86%,
    51% 93%,
    54% 100%,
    46% 100%,
    44% 93%,
    48% 86%,
    42% 79%,
    47% 72%,
    41% 65%,
    46% 58%,
    40% 52%,
    46% 46%,
    42% 40%,
    48% 35%,
    43% 29%,
    49% 23%,
    45% 18%,
    50% 13%,
    47% 8%,
    49% 4%
  );
  background: linear-gradient(
    to right,
    rgba(255, 220, 120, 0) 0%,
    rgba(255, 200, 100, 0.45) 35%,
    rgba(255, 150, 40, 0.95) 50%,
    rgba(255, 200, 100, 0.45) 65%,
    rgba(255, 220, 120, 0) 100%
  );
  filter: blur(1px);
  opacity: 0.95;
}

/* label базовый */
.label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 210, 120, 0.28);
  background: rgba(255, 170, 60, 0.12);
  color: #ffd58f;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

/* красный label */
.label2 {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: #ffb3a1;
  background: linear-gradient(
    180deg,
    rgba(255, 80, 40, 0.22),
    rgba(255, 30, 10, 0.12)
  );
  border: 1px solid rgba(255, 90, 60, 0.45);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow:
    0 0 10px rgba(255, 70, 30, 0.25),
    inset 0 0 8px rgba(255, 120, 80, 0.15);
  transition: all 0.3s ease;
}

.piece:hover .label2 {
  color: #ffd6cc;
  background: linear-gradient(
    180deg,
    rgba(255, 90, 50, 0.35),
    rgba(255, 40, 20, 0.18)
  );
  border-color: rgba(255, 120, 80, 0.7);
  box-shadow:
    0 0 18px rgba(255, 80, 40, 0.5),
    inset 0 0 10px rgba(255, 140, 90, 0.25);
}

/* зелёный label */
.label3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 16px;
  border-radius: 999px;
  border: 1px solid rgba(120, 255, 180, 0.32);
  background: linear-gradient(
    180deg,
    rgba(70, 255, 140, 0.2),
    rgba(20, 110, 60, 0.16)
  );
  color: #cffff0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow:
    0 0 14px rgba(60, 255, 140, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 10px rgba(80, 255, 160, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

.piece:hover .label3 {
  color: #ffffff;
  border-color: rgba(140, 255, 190, 0.55);
  background: linear-gradient(
    180deg,
    rgba(80, 255, 150, 0.28),
    rgba(25, 130, 70, 0.22)
  );
  box-shadow:
    0 0 20px rgba(70, 255, 150, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 14px rgba(100, 255, 180, 0.12);
  transform: translateY(-1px);
}

/* телефоны */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .split-page {
    flex-direction: column;
    min-height: auto;
    border-radius: 18px;
  }

  .piece {
    min-height: 72vh;
  }

  .piece .bg {
    filter: brightness(0.78);
  }

  .piece .overlay {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.82),
      rgba(0, 0, 0, 0.24)
    );
  }

  .content-box {
    left: 14px;
    right: 14px;
    bottom: 22px;
    max-width: none;
    padding: 18px 16px 16px;
    border-radius: 18px;

    /* на телефоне показываем сразу */
    opacity: 1;
    transform: none;
  }

  .content-box h2 {
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.12;
    margin-bottom: 10px;
    word-break: break-word;
  }

  .content-box p,
  .content-box li {
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
  }

  .content-box ul {
    margin-top: 8px;
  }

  .content-box li {
    padding-left: 16px;
    margin-bottom: 8px;
  }

  .content-box li::before {
    top: 8px;
    width: 6px;
    height: 6px;
  }

  .label,
  .label2,
  .label3 {
    font-size: 10px;
    line-height: 1;
    padding: 6px 10px;
    margin-bottom: 10px;
    letter-spacing: 0.08em;
  }

  /* трещина по центру между блоками */
  .crack-wrap {
    top: 50%;
    left: -2%;
    width: 104%;
    height: 110px;
    transform: translateY(-50%);
  }

  .crack {
    clip-path: polygon(
      0% 44%,
      3% 53%,
      7% 49%,
      11% 61%,
      16% 54%,
      21% 65%,
      27% 51%,
      33% 59%,
      38% 46%,
      44% 55%,
      50% 42%,
      57% 52%,
      64% 41%,
      71% 57%,
      78% 47%,
      85% 60%,
      92% 51%,
      100% 56%,
      100% 46%,
      93% 42%,
      86% 47%,
      79% 36%,
      71% 46%,
      64% 33%,
      57% 44%,
      50% 31%,
      44% 42%,
      38% 35%,
      33% 46%,
      27% 38%,
      21% 49%,
      16% 41%,
      11% 50%,
      7% 44%,
      3% 48%
    );
  }

  .glow-1 {
    transform: scaleY(1.25);
  }

  .glow-2 {
    transform: scaleY(1.08);
  }

  .left::after,
  .right::before {
    width: 100%;
    height: 70px;
  }

  .left::after {
    top: auto;
    right: auto;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
  }

  .right::before {
    top: 0;
    left: auto;
    background: linear-gradient(to top, transparent, rgba(0, 0, 0, 0.5));
  }
}
.feature-drop {
  position: relative;
  display: inline-block;
  z-index: 50;
}

.feature-drop summary {
  list-style: none;
  cursor: pointer;
}

.feature-drop summary::-webkit-details-marker {
  display: none;
}

/* ОБЩЕЕ ОКНО */
.feature-popup {
  position: absolute;
  left: 0;
  bottom: calc(100% + 14px); /* открытие ВВЕРХ на ПК */
  width: min(460px, 78vw);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(120, 255, 180, 0.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    rgba(10, 16, 14, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(70, 255, 150, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.08);

  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}

/* стрелочка вниз к label */
.feature-popup::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 100%;
  width: 14px;
  height: 14px;
  background: rgba(10, 16, 14, 0.92);
  border-right: 1px solid rgba(120, 255, 180, 0.22);
  border-bottom: 1px solid rgba(120, 255, 180, 0.22);
  transform: rotate(45deg) translateY(-8px);
}

/* ПК список */
.feature-popup-desktop ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-popup-desktop li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.92);
}

.feature-popup-desktop li:last-child {
  margin-bottom: 0;
}

/* мобильный слайдер по умолчанию скрыт */
.feature-slider-mobile {
  display: none;
}

/* ПК: hover/focus/open */
@media (hover: hover) and (pointer: fine) {
  .feature-drop:hover .feature-popup,
  .feature-drop:focus-within .feature-popup,
  .feature-drop[open] .feature-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* универсально для тапа */
.feature-drop[open] .feature-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* активная label */
.feature-drop:hover .label3,
.feature-drop[open] .label3 {
  color: #ffffff;
  border-color: rgba(140, 255, 190, 0.55);
  background: linear-gradient(
    180deg,
    rgba(80, 255, 150, 0.28),
    rgba(25, 130, 70, 0.22)
  );
  box-shadow:
    0 0 20px rgba(70, 255, 150, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 14px rgba(100, 255, 180, 0.12);
}

/* ТЕЛЕФОН */
@media (max-width: 768px) {
  .feature-drop {
    display: block;
    width: 100%;
  }

  .feature-popup {
    position: static;
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    border-radius: 16px;
    transform: none;
  }

  .feature-popup::after {
    display: none;
  }

  .feature-popup-desktop {
    display: none;
  }

  .feature-slider-mobile {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .feature-slider-mobile::-webkit-scrollbar {
    height: 6px;
  }

  .feature-slider-mobile::-webkit-scrollbar-thumb {
    background: rgba(120, 255, 180, 0.35);
    border-radius: 999px;
  }

  .feature-slide {
    flex: 0 0 88%;
    scroll-snap-align: start;
    padding: 14px 14px 12px;
    border-radius: 14px;
    border: 1px solid rgba(120, 255, 180, 0.18);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
      rgba(12, 20, 17, 0.82);
    color: rgba(255,255,255,0.92);
    font-size: 14px;
    line-height: 1.5;
    min-height: 96px;
    display: flex;
    align-items: center;
  }
}

/* ПК-лого */
.logo-badge {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 30;

  width: 132px;
  height: 132px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 4px solid #ff3b2f;
  background: rgba(5, 10, 12, 0.82);
  box-shadow:
    0 0 0 6px rgba(255, 59, 47, 0.08),
    0 0 28px rgba(255, 59, 47, 0.18),
    inset 0 0 20px rgba(0, 0, 0, 0.35);

  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.logo-badge:hover {
  transform: scale(1.04);
  border-color: #ff5a4f;
  background: rgba(8, 14, 16, 0.92);
  box-shadow:
    0 0 0 8px rgba(255, 59, 47, 0.10),
    0 0 34px rgba(255, 59, 47, 0.28),
    inset 0 0 24px rgba(0, 0, 0, 0.42);
}

.logo-badge img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}

.logo-badge.text-logo span,
.logo-badge-mobile.text-logo span {
  color: #ff3b2f;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

/* мобильное лого внутри карточки */
.logo-badge-mobile {
  display: none;
  width: 74px;
  height: 74px;
  margin: 14px 0 12px;
  border-radius: 50%;

  align-items: center;
  justify-content: center;

  border: 3px solid #ff3b2f;
  background: rgba(8, 14, 16, 0.88);
  box-shadow:
    0 0 18px rgba(255, 59, 47, 0.18),
    inset 0 0 14px rgba(0, 0, 0, 0.35);

  text-decoration: none;
}

.logo-badge-mobile img {
  width: 68%;
  height: 68%;
  object-fit: contain;
  display: block;
}

/* блок кнопок */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* телефон */
@media (max-width: 768px) {
  .logo-badge {
    display: none;
  }

  .logo-badge-mobile {
    display: flex;
  }

  .button-group {
    gap: 8px;
    margin-top: 10px;
  }
}