/* Эффекты и интерактивные примеры. Содержимое доступно и без JavaScript. */

/* 01. Доступность и закреплённая шапка */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.js-only {
  display: none !important;
}
.enhanced .js-only {
  display: revert !important;
}
.reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--cta-light));
  z-index: 80;
  pointer-events: none;
}
header {
  position: sticky;
  top: 0;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
body.scrolled header {
  background: #1c2433ed;
  backdrop-filter: blur(16px);
  box-shadow: 0 6px 28px #10122225;
}
:root {
  scroll-padding-top: 118px;
}
.desktop-nav a {
  position: relative;
  transition: color 0.2s;
}
.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.desktop-nav a[aria-current='true'] {
  color: var(--accent);
}
.desktop-nav a[aria-current='true']::after,
.desktop-nav a:hover::after {
  transform: scaleX(1);
}
.menu-toggle span {
  transition:
    transform 0.25s,
    opacity 0.25s;
}
.menu-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}
/* Кнопки скачивания открывают официальную страницу загрузки. */
.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(130deg, var(--cta-light), var(--cta));
  border: 1px solid var(--cta-border);
  font-weight: 800;
  box-shadow:
    0 5px 0 var(--cta-edge),
    0 12px 32px rgb(var(--cta-rgb) / 0.15);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    filter 0.2s;
  color: var(--cta-text);
}
.button::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -100% auto -100% -55%;
  width: 36%;
  background: linear-gradient(90deg, transparent, #fff0e6b3, transparent);
  transform: skewX(-20deg) translateX(-220%);
  pointer-events: none;
}
.button:hover {
  background: linear-gradient(130deg, var(--cta-hover-light), var(--cta-hover));
  transform: translateY(-3px) scale(1.015);
  box-shadow:
    0 7px 0 var(--cta-edge),
    0 16px 44px rgb(var(--cta-rgb) / 0.33);
}
.button:active {
  transform: translateY(3px) scale(0.98);
  box-shadow:
    0 1px 0 var(--cta-edge),
    0 3px 14px rgb(var(--cta-rgb) / 0.2);
}
.button:focus-visible {
  outline: 3px solid #ffe7d9;
  outline-offset: 6px;
  box-shadow:
    0 5px 0 var(--cta-edge),
    0 0 0 10px rgb(var(--cta-rgb) / 0.2);
}
.header-button {
  font-size: 15px;
  padding: 13px 25px;
  min-height: 54px;
}
.hero .download {
  font-size: 20px;
  min-height: 77px;
  width: 380px;
  max-width: 100%;
  gap: 22px;
}
.hero .download svg {
  width: 25px;
  height: 25px;
}
.hero .download-note {
  font-size: 13px;
  margin-top: 17px;
}
.motion-on .button::before {
  animation: cta-shine 6s ease-in-out infinite;
}
.motion-on .hero .download {
  animation: cta-breathe 3.6s ease-in-out infinite;
}
.motion-on .download > span:not(.ripple) {
  animation: download-nudge 2.8s ease-in-out infinite;
}
.motion-on .hero h1 {
  animation: title-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.motion-on .hero .pill {
  animation: title-in 0.6s 0.04s both;
}
.motion-on .hero h2 {
  animation: title-in 0.8s 0.12s both;
}
.motion-on .hero-copy > p {
  animation: title-in 0.8s 0.22s both;
}
.motion-on .hero-checks {
  animation: title-in 0.8s 0.3s both;
}
.motion-on .hero-picture img {
  animation: hero-float 6s ease-in-out infinite;
  translate: var(--hero-x, 0px) var(--hero-y, 0px);
  transition: translate 0.25s ease-out;
}
.hero-sparks {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  display: none;
}
.motion-on .hero-sparks {
  display: block;
}
.hero-sparks i {
  position: absolute;
  left: calc(43% + var(--i) * 4.8%);
  top: calc(10% + var(--i) * 6%);
  width: calc(3px + var(--i) * 0.35px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgb(var(--accent-rgb) / 0.6);
  animation: spark-drift calc(5s + var(--i) * 0.42s) calc(var(--i) * -0.65s) ease-in-out infinite;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
/* Появление при прокрутке включается после настройки наблюдателей в app.js. */
.motion-on [data-reveal] {
  opacity: 0;
  transition:
    opacity 0.7s calc(var(--reveal-delay, 0) * 1ms),
    translate 0.7s calc(var(--reveal-delay, 0) * 1ms);
}
.motion-on .section-title[data-reveal],
.motion-on .step[data-reveal],
.motion-on .mid-cta[data-reveal] {
  translate: 0 24px;
}
.motion-on [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}
.enhanced .benefit {
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))
    translateY(var(--lift, 0px));
  transition:
    transform 0.24s ease-out,
    border-color 0.3s,
    box-shadow 0.3s,
    opacity 0.7s calc(var(--reveal-delay, 0) * 1ms);
  transform-style: preserve-3d;
}
.benefit::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0;
  background: radial-gradient(
    500px circle at var(--spot-x, 50%) var(--spot-y, 30%),
    rgb(var(--accent-rgb) / 0.13),
    transparent 55%
  );
  transition: opacity 0.3s;
  pointer-events: none;
}
.motion-on .benefit:hover::before,
.benefit:focus-within::before {
  opacity: 1;
}
.benefit:hover,
.benefit:focus-within {
  border-color: rgb(var(--accent-rgb) / 0.4);
  box-shadow: 0 15px 38px #14152745;
}
.motion-on .benefit img {
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.motion-on .benefit:hover img {
  transform: translateY(-5px) scale(1.045);
}
.benefit.retro-active {
  background: #172e2e;
  border-color: #79dfbb88;
}
.benefit.retro-active img {
  filter: sepia(0.45) hue-rotate(42deg) saturate(1.3);
}
.retro-active .mode-label {
  font-family: monospace;
  color: #b7ff8c;
  letter-spacing: 5px;
  text-shadow: 2px 2px #356751;
}
.retro-active::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    #091a0914 0px,
    #091a0914 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.6;
}
.benefit.is-frozen {
  border-color: #88d8ee88;
}
.is-frozen .demo-meter span {
  background: linear-gradient(90deg, #7bd2ee, #c2f9ff);
}

/* 02. Интерактивные примеры и инструкция */
.demo-toolbar {
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: -12px 0 25px;
  color: #b3b4c9;
  font-size: 13px;
}
.enhanced .demo-toolbar {
  display: flex !important;
}
.text-button {
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 0;
  min-height: 44px;
  white-space: nowrap;
}
.text-button:hover {
  color: var(--accent-light);
}
.text-button span {
  font-size: 20px;
  margin-left: 7px;
}
.card-demo {
  margin: 24px 23px 0;
  padding-top: 21px;
  border-top: 1px solid #ffffff12;
  text-align: center;
}
.enhanced .card-demo {
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.demo-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  color: var(--accent);
  font-family: Rubik, Arial, sans-serif;
  font-size: 35px;
  line-height: 1.3;
  min-height: 46px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.7px;
}
.demo-number small {
  font:
    500 14px Manrope,
    sans-serif;
  color: #b0b2ca;
  letter-spacing: 0;
}
.mode-label {
  font-size: 26px;
  letter-spacing: 1px;
}
.play-button,
.secondary-play,
.step-action {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 44px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
  padding: 11px 13px;
  transition:
    background 0.2s,
    transform 0.2s,
    border-color 0.2s;
  cursor: pointer;
}
.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #a4d26918;
  color: #b6e680;
  border: 1px solid #94c75d60;
  width: 100%;
  margin-top: auto;
}
.play-button:hover {
  background: #b1e47930;
  border-color: #b4ec78;
  transform: translateY(-2px);
}
.play-button:active,
.secondary-play:active,
.step-action:active {
  transform: scale(0.96);
}
.play-button[aria-pressed='true'] {
  background: #99d454;
  color: #172b0c;
  border-color: #aee071;
}
.secondary-play {
  border: 1px solid #ffffff29;
  background: #ffffff05;
  color: #dcdeeb;
  flex: none;
  min-width: 50px;
}
.secondary-play:hover {
  background: #ffffff12;
}
.secondary-play:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}
.demo-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.demo-actions .play-button {
  margin-top: 0;
}
.demo-meter {
  height: 7px;
  background: #12152673;
  border-radius: 9px;
  overflow: hidden;
  flex: none;
}
.demo-meter span {
  display: block;
  height: 100%;
  width: var(--fill, 100%);
  background: linear-gradient(90deg, #94d552, #c2f583);
  border-radius: inherit;
  transition: width 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}
[data-meter='ammo'] span {
  --fill: 20%;
}
[data-meter='xp'] span {
  --fill: 25%;
  background: linear-gradient(90deg, #b19aff, #ffca63);
}
.demo-caption {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: #a4a7be;
  min-height: 39px;
  margin-top: 0;
  align-content: center;
}
.range-label {
  font-size: 13px;
  color: #c4c5d4;
}
.resource-range {
  accent-color: #a4d65f;
  width: 100%;
  cursor: pointer;
  min-height: 44px;
  margin: 0;
}
.range-endpoints {
  display: flex;
  justify-content: space-between;
  color: #999eb6;
  font-size: 12px;
  margin-top: -12px;
}
.card-demo button:focus-visible,
.step-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.motion-on .benefit.just-changed img {
  animation: reward-pop 0.5s ease;
}
.motion-on .benefit.level-up {
  animation: level-glow 0.75s ease;
}
.mid-cta {
  margin-top: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 31px;
  background: linear-gradient(120deg, #374352, #273546);
  border: 1px solid rgb(var(--cta-rgb) / 0.27);
  border-radius: 15px;
}
.mid-cta h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.mid-cta p {
  font-size: 14px;
  color: #c0c4d0;
  margin: 0;
}
.mid-cta .download {
  min-width: 285px;
  font-size: 17px;
  min-height: 64px;
  flex: none;
}
.step {
  border-radius: 14px;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.step-action {
  display: block;
  margin: 23px auto 0;
  background: transparent;
  border: 1px solid #ffffff24;
  color: #e3deef;
  max-width: 100%;
  padding-inline: 20px;
}
.step-action:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.step.is-active {
  box-shadow:
    0 0 0 1px rgb(var(--accent-rgb) / 0.3),
    0 8px 35px rgb(var(--accent-rgb) / 0.055);
  background: #ffffff04;
}
.step.is-active .step-action {
  background: rgb(var(--accent-rgb) / 0.09);
  border-color: rgb(var(--accent-rgb) / 0.47);
  color: var(--accent-light);
}
.motion-on .step.is-active .step-picture img {
  animation: reward-pop 0.55s ease;
}
.walkthrough {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 19px 22px;
  border-radius: 10px;
  background: #ffffff04;
  border: 1px solid #ffffff0b;
}
.walkthrough-line {
  height: 4px;
  overflow: hidden;
  background: #ffffff0c;
  border-radius: 3px;
}
.walkthrough-line span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 0.5s ease;
}
.walkthrough p {
  font-size: 14px;
  color: #c7c7d8;
  text-align: center;
  margin: 13px 0 0;
  min-height: 48px;
  align-content: center;
}
.faq-list details {
  transition:
    border-color 0.3s,
    background 0.3s;
}
.faq-list details:hover {
  border-color: rgb(var(--accent-rgb) / 0.31);
}
.faq-list details[open] {
  background: #2c3d4d;
  border-color: rgb(var(--accent-rgb) / 0.27);
}
.motion-on .faq-list details[open] p {
  animation: answer-in 0.32s ease both;
}
.motion-on .final-cta h2 span {
  background: linear-gradient(90deg, #83ded6, var(--accent-light), #83ded6);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: accent-shift 7s linear infinite;
}

/* 03. Частицы, нажатия и закреплённые кнопки */
#effects-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}
.burst-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--particle-color, var(--accent));
  border-radius: 2px;
  animation: particle-out 0.8s cubic-bezier(0.12, 0.6, 0.35, 1) both;
  pointer-events: none;
}
.ripple {
  position: absolute;
  z-index: -1;
  width: var(--ripple-size);
  height: var(--ripple-size);
  left: var(--ripple-x);
  top: var(--ripple-y);
  border-radius: 50%;
  background: #fff0e666;
  transform: scale(0);
  animation: ripple-out 0.55s ease-out forwards;
  pointer-events: none;
}
.motion-tools {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  align-items: center;
  gap: 8px;
}
.enhanced .motion-tools {
  display: flex !important;
}
.motion-tools button {
  height: 44px;
  border: 1px solid #ffffff26;
  border-radius: 50px;
  background: #243446ed;
  backdrop-filter: blur(12px);
  color: #d9ddec;
  box-shadow: 0 5px 20px #15182e44;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 650;
}
.motion-tools button:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}
.motion-tools button > span:first-child {
  color: var(--accent);
  margin-right: 7px;
}
.motion-tools #back-top {
  width: 44px;
  padding: 0;
  font-size: 22px;
}
.motion-tools [hidden] {
  display: none !important;
}
.mobile-download-bar {
  display: none !important;
}
.page-hidden *,
.page-hidden *::before,
.page-hidden *::after,
.hero-offscreen .hero *,
.hero-offscreen .hero *::before {
  animation-play-state: paused !important;
}
.motion-off {
  scroll-behavior: auto;
}
.motion-off body {
  scroll-behavior: auto;
}
.motion-off *,
.motion-off *::before,
.motion-off *::after {
  animation: none !important;
  transition: none !important;
}
.motion-off .benefit {
  transform: none !important;
}
.motion-off .hero-picture img {
  translate: 0 0 !important;
}
.motion-off .hero-sparks {
  display: none;
}
.motion-off [data-reveal] {
  opacity: 1 !important;
  translate: none !important;
}

/* 04. Ключевые кадры анимаций */
@keyframes cta-shine {
  0%,
  55% {
    transform: skewX(-20deg) translateX(-220%);
  }
  83%,
  100% {
    transform: skewX(-20deg) translateX(650%);
  }
}
@keyframes cta-breathe {
  0%,
  100% {
    box-shadow:
      0 5px 0 var(--cta-edge),
      0 12px 28px rgb(var(--cta-rgb) / 0.15);
  }
  50% {
    box-shadow:
      0 5px 0 var(--cta-edge),
      0 12px 44px rgb(var(--cta-rgb) / 0.31);
  }
}
@keyframes download-nudge {
  0%,
  65%,
  100% {
    transform: translateY(0);
  }
  76% {
    transform: translateY(4px);
  }
  87% {
    transform: translateY(-2px);
  }
}
@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-12px) rotate(0.4deg);
  }
}
@keyframes spark-drift {
  0%,
  100% {
    opacity: 0;
    transform: translateY(12px) scale(0.7);
  }
  35%,
  65% {
    opacity: 0.65;
  }
  80% {
    transform: translateY(-45px) scale(1.2);
  }
}
@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes reward-pop {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: translateY(-7px) scale(1.08);
  }
}
@keyframes level-glow {
  0%,
  100% {
    box-shadow: 0 0 0 transparent;
  }
  35% {
    box-shadow: 0 0 40px rgb(var(--accent-rgb) / 0.4);
  }
}
@keyframes particle-out {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5) rotate(0);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2)
      rotate(var(--spin));
  }
}
@keyframes ripple-out {
  to {
    transform: scale(1);
    opacity: 0;
  }
}
@keyframes answer-in {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes accent-shift {
  to {
    background-position: -200% 0;
  }
}

/* 05. Адаптивные стили эффектов */
@media (max-width: 1150px) {
  .header-button {
    padding: 12px 20px;
    font-size: 14px;
  }
  .card-demo {
    margin-inline: 18px;
  }
  .demo-number {
    font-size: 31px;
  }
  .demo-actions {
    gap: 6px;
  }
  .play-button,
  .secondary-play {
    padding-inline: 10px;
    font-size: 13px;
  }
  .mid-cta {
    padding: 26px;
    gap: 22px;
  }
  .mid-cta h3 {
    font-size: 22px;
  }
  .mid-cta .download {
    min-width: 260px;
  }
}
@media (max-width: 900px) {
  .hero .download {
    font-size: 18px;
    min-height: 70px;
    width: 350px;
  }
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .benefit img {
    height: 220px;
  }
  .benefit h3 {
    font-size: 23px;
  }
  .benefit p {
    font-size: 16px;
  }
  .demo-actions {
    flex-wrap: wrap;
  }
  .demo-actions .play-button {
    flex: 1;
    min-width: 130px;
  }
  .card-demo .play-button,
  .secondary-play {
    font-size: 14px;
  }
  .mid-cta {
    flex-direction: column;
    text-align: center;
  }
  .mid-cta .download {
    min-width: 300px;
  }
  .motion-label {
    display: none;
  }
  .motion-tools #motion-toggle {
    width: 44px;
    padding: 0;
  }
  .motion-tools button > span:first-child {
    margin: 0;
  }
  .motion-tools {
    right: 14px;
    bottom: 16px;
  }
}
@media (max-width: 600px) {
  :root {
    scroll-padding-top: 95px;
  }
  body {
    padding-bottom: 108px;
  }
  .hero .download {
    width: 100%;
    max-width: 370px;
    min-height: 72px;
    font-size: 18px;
    gap: 18px;
  }
  .hero .download-note {
    font-size: 12px;
    margin-top: 17px;
  }
  .hero-sparks {
    display: none !important;
  }
  .hero-inner {
    padding-bottom: 370px;
  }
  .hero-checks {
    margin-bottom: 26px;
  }
  .benefit-grid {
    gap: 15px 12px;
  }
  .benefit img {
    height: 158px;
  }
  .benefit h3 {
    font-size: 18px;
    line-height: 1.3;
  }
  .benefit p {
    font-size: 14px;
  }
  .demo-toolbar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -6px;
    margin-bottom: 21px;
    gap: 0;
    font-size: 12px;
  }
  .text-button {
    padding-block: 6px;
    font-size: 13px;
  }
  .card-demo {
    margin: 19px 12px 0;
    padding-top: 17px;
    gap: 10px;
  }
  .demo-number {
    font-size: 29px;
    min-height: 41px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .demo-number small {
    font-size: 12px;
  }
  .mode-label {
    font-size: 20px;
    letter-spacing: 0.5px;
  }
  .demo-actions {
    flex-direction: column;
  }
  .demo-actions .play-button {
    min-width: 0;
  }
  .card-demo .play-button,
  .secondary-play {
    font-size: 12px;
    padding: 10px 7px;
    min-height: 44px;
    white-space: normal;
    gap: 5px;
  }
  .demo-caption {
    font-size: 12px;
    min-height: 58px;
    line-height: 1.55;
  }
  .demo-meter {
    height: 6px;
  }
  .range-label {
    font-size: 12px;
  }
  .mid-cta {
    padding: 25px 18px;
    margin-top: 29px;
    gap: 22px;
  }
  .mid-cta h3 {
    font-size: 23px;
    line-height: 1.3;
  }
  .mid-cta p {
    font-size: 14px;
  }
  .mid-cta .download {
    min-width: 0;
    max-width: none;
    width: 100%;
    font-size: 16px;
  }
  .step-action {
    font-size: 14px;
  }
  .walkthrough {
    padding: 17px;
  }
  .walkthrough p {
    font-size: 14px;
    min-height: 70px;
  }
  .motion-tools {
    bottom: 18px;
    right: 12px;
    gap: 6px;
    transition: bottom 0.25s;
  }
  .has-mobile-cta .motion-tools {
    bottom: 117px;
  }
  .enhanced .mobile-download-bar:not([hidden]) {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: fixed;
    z-index: 45;
    inset: auto 0 0;
    background: #1b2839f2;
    backdrop-filter: blur(18px);
    border-top: 1px solid rgb(var(--cta-rgb) / 0.18);
    padding: 12px 18px calc(9px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 25px #11172b22;
  }
  .mobile-download-bar .download {
    font-size: 17px;
    min-height: 52px;
    width: 100%;
    max-width: 460px;
    gap: 17px;
    padding: 12px 20px;
  }
  .mobile-download-bar > span {
    font-size: 11px;
    color: #bac0d0;
    margin-top: 5px;
  }
  .motion-on .mobile-download-bar {
    animation: title-in 0.28s ease both;
  }
  .final-cta .download {
    font-size: 18px;
    min-height: 70px;
  }
  .final-cta .download-note {
    margin-top: 18px;
  }
}
@media (max-width: 360px) {
  .card-demo {
    margin-inline: 10px;
  }
  .demo-number {
    font-size: 26px;
  }
  .benefit h3 {
    font-size: 17px;
  }
  .hero .download {
    font-size: 16px;
  }
  .play-button > span {
    display: none;
  }
  .mode-label {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-sparks {
    display: none !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    translate: 0 0 !important;
  }
  .benefit {
    transform: none !important;
  }
}
.enhanced .mobile-download-bar {
  display: none !important;
}
@media (max-width: 600px) {
  .enhanced .mobile-download-bar:not([hidden]) {
    display: flex !important;
  }
}

/* 06. Карусель отзывов */
.reviews-section {
  overflow: hidden;
}
.reviews-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 6px 2px 23px;
  overscroll-behavior-x: contain;
}
.reviews-track::-webkit-scrollbar {
  display: none;
}
.review-card {
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 27px;
  border: 1px solid #ffffff13;
  border-radius: 16px;
  background: linear-gradient(145deg, #2d3b4e, #243143);
  transition:
    border-color 0.25s,
    transform 0.25s;
  position: relative;
  overflow: hidden;
}
.review-card:hover {
  border-color: rgb(var(--accent-rgb) / 0.37);
  transform: translateY(-4px);
}
.review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 23px;
}
.review-stars {
  color: #ffca63;
  font-size: 20px;
  letter-spacing: 3px;
  white-space: nowrap;
}
.review-sample {
  font-size: 11px;
  color: #aeb4cb;
  border: 1px solid #ffffff15;
  border-radius: 4px;
  padding: 3px 6px;
}
.review-card blockquote {
  margin: 0 0 29px;
  color: #e0e1ed;
  font-size: 16px;
  line-height: 1.9;
  flex: 1;
}
.review-person {
  display: flex;
  gap: 13px;
  align-items: center;
  border-top: 1px solid #ffffff0d;
  padding-top: 20px;
}
.review-avatar {
  height: 45px;
  width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 50%;
  color: #e8d4ff;
  background: #55436d;
  font-family: Rubik, sans-serif;
  font-size: 20px;
  font-weight: 600;
}
.avatar-1,
.avatar-4 {
  background: #3a614c;
  color: #d6f5b2;
}
.avatar-2,
.avatar-5 {
  background: #695434;
  color: #ffe1a7;
}
.review-person h3 {
  font-size: 17px;
  margin-bottom: 4px;
  letter-spacing: 0;
}
.review-person > div > span {
  font-size: 12px;
  color: #a7adc5;
}
.enhanced .reviews-navigation {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 6px;
}
.review-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid #ffffff25;
  border-radius: 50%;
  background: #ffffff04;
  color: var(--accent-light);
  font-size: 22px;
  transition: 0.2s;
}
.review-arrow:hover {
  background: rgb(var(--accent-rgb) / 0.09);
  border-color: rgb(var(--accent-rgb) / 0.47);
}
.review-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.review-dots {
  display: flex;
  align-items: center;
  gap: 0;
}
.review-dot {
  position: relative;
  width: 32px;
  height: 44px;
  border: 0;
  background: none;
  padding: 0;
}
.review-dot::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  margin: auto;
  border-radius: 8px;
  background: #606581;
  transition:
    width 0.25s,
    background 0.25s;
}
.review-dot[aria-current='true']::before {
  width: 24px;
  background: var(--accent);
}
.reviews-section .section-title p {
  font-size: 13px;
  color: #a6adc5;
}
.faq-section {
  padding-top: 30px;
}
.desktop-nav {
  gap: 25px;
}
@media (max-width: 1150px) {
  .desktop-nav {
    gap: 17px;
    font-size: 13px;
  }
  .review-card {
    padding: 23px;
  }
  .review-stars {
    font-size: 17px;
    letter-spacing: 2px;
  }
  .review-top {
    gap: 7px;
  }
}
@media (max-width: 900px) {
  .review-card {
    flex-basis: calc((100% - 22px) / 2);
  }
  .review-stars {
    font-size: 20px;
  }
}
@media (max-width: 600px) {
  .review-card {
    flex-basis: 100%;
    padding: 25px;
  }
  .review-card blockquote {
    font-size: 16px;
    line-height: 1.8;
  }
  .reviews-track {
    padding-bottom: 17px;
  }
  .review-person > div > span {
    font-size: 13px;
  }
  .review-sample {
    font-size: 12px;
  }
  .reviews-section .section-title p {
    font-size: 12px;
  }
  .faq-section {
    padding-top: 10px;
  }
}

/* Портреты игровых персонажей в примерах отзывов. */
.review-avatar {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 2px solid rgb(var(--accent-rgb) / 0.25);
  background: #243143;
  box-shadow: 0 3px 12px #11142335;
}
.review-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.motion-on .review-card:hover .review-avatar img {
  transform: scale(1.1);
}
.review-person {
  gap: 14px;
}
.review-person > div {
  min-width: 0;
}
