/* Общий фон с комбинированным градиентом */
html {
  font-size: 14px; /* 1rem = 16px */
}
body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: #fff;
  background: radial-gradient(
      circle at 30% 30%,
      rgba(1, 149, 255, 0.2) 0%,
      transparent 70%
    ),
    linear-gradient(135deg, rgba(1, 149, 255, 0.2) 0%, transparent 70%), #0195ff;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  height: 100vh;
}
#screens-container {
  display: flex;
  flex-wrap: nowrap;
  min-height: 100vh;
  position: relative;
  z-index: -1;

  /* overflow: hidden; */
}
/* .pin-spacer {
  padding: 0 !important;
} */
#screens-container {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.3s forwards;
  animation-delay: 1.1s; /* 👈 сдвиг по времени, чтобы после текста */
}

.screen-slide {
  flex: 0 0 100%;
  height: 90vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
#screens {
}

.screen-img,
.intro-image {
  max-width: 70%;
  max-height: 70vh;
  object-fit: contain;
}
.intro-image {
  transform: scale(1.2);
}

/* первая картинка при старте смещена вверх (видно только половину) */
.first-slide {
  transform: translateY(-25%);
}

.bubble {
  flex: 1;
  position: absolute;
  padding: 2rem;
  backdrop-filter: blur(10px);
  background: rgb(255, 255, 255); /* ✅ светлый фон */
  -webkit-backdrop-filter: blur(10px);
  border-radius: 2rem;
  color: #000;
  font-size: 1rem;
  font-weight: 400;
  text-align: left;
  z-index: 4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
    /* светлая внутренняя линия сверху */ inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    /* тёмная внутренняя линия снизу */ 0 -1px 2px rgba(255, 255, 255, 0.25);
  /* margin-top: 1rem;
  
  padding: 2rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: #000;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.9),
    inset 0 -2px 3px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08); */
}
.bubble:after {
  content: "";
  position: absolute;
  top: -12px; /* смещение вниз */
  left: 14px; /* смещение вправо */
  width: 32px;
  height: 32px;
  border-radius: 82% 18% 100% 0% / 35% 0% 100% 65%;
  background: rgb(255, 255, 255);
  z-index: -1;
  transform: rotate(-74deg);
}
.bubble-1 {
  bottom: 5rem;
  right: -8rem;
}
.bubble-2 {
  bottom: 25rem;
  right: -3rem;
}
.bubble-3 {
  bottom: 25rem;
  right: -3rem;
}

/* .bubbleBase {
      position: "absolute",
      paddingVertical: spacing.s,
      paddingHorizontal: spacing.s,
      borderRadius: spacing.l,
      maxWidth: "75%",
      shadowColor: colors.shadow,
      shadowOffset: { width: 0, height: 2 },
      shadowOpacity: 0.1,
      shadowRadius: 2,
      elevation: 2,
      minWidth: 48,
    }, */

/* Контейнер, делим экран на 2 части */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6rem 1.5rem;
  width: 100%;
}

@media (max-width: 1024px) {
  #screens-container {
    display: flex;
    overflow: hidden;
  }
  .screen-slide {
    align-items: center;
  }

  .screen-img,
  .intro-image {
    max-width: 100%;
    max-height: 550px;
    object-fit: contain;
  }
  #screens {
    height: 70vh;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Анимация */
.animate {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.3s forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.3s;
}
.delay-3 {
  animation-delay: 0.5s;
}
.delay-4 {
  animation-delay: 0.8s;
}
.delay-5 {
  animation-delay: 1s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.logo {
  width: 32.125rem;
  max-width: 100%;
  height: auto;
  margin-bottom: 3rem; /* 42px */
}

.headline {
  font-size: 3rem; /* 38px */
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 0.5rem; /* 8px */
}

.subheadline {
  font-size: 1.5rem; /* 24px */
  font-weight: 400;
  margin: 0 0 3.625rem; /* 42px */
  line-height: 1.4;
}

.store-buttons {
  display: flex;
  gap: 1.5625rem; /* 25px */
}

.store-buttons img {
  width: 15.1875rem; /* 243px */
  height: 5.0625rem; /* 81px */
  object-fit: contain;
  transition: transform 0.2s ease;
}

.store-buttons img:hover {
  transform: scale(1.05);
}

/* Правая колонка */
.right {
  display: flex;
  justify-content: center;
}

.screenshot {
  width: 62.25rem; /* 996px */
  max-width: 100%;
  height: auto;
}
.page-content {
  position: absolute; /* ✅ убираем из потока */
  top: 80px; /* отступ сверху, чтобы не липло к футеру/хедеру */
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  width: 0;
  background: #fff;
  color: #000;
  border-radius: 20px;
  line-height: 1.6;
  pointer-events: none;
  opacity: 0;
  height: 0;
  /* 🎯 Тени под неоморфизм */
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.9),
    inset 0 -2px 3px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08);

  transition: transform 0.35s cubic-bezier(0.22, 1.61, 0.36, 1),
    opacity 0.3s ease;
}

.page-content > p,
.page-content > h2,
.page-content > h3,
.page-content > div,
.page-content > p > a,
.page-content > p > br,
.page-content > button {
  display: none;
}

.page-content.active > p,
.page-content.active > h2,
.page-content.active > h3,
.page-content.active > div,
.page-content.active > p > a,
.page-content.active > p > br,
.page-content.active > button {
  display: block;
}

.page-content.active {
  position: static;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  margin: 2rem 1rem 8rem 1rem;
  width: 95%;
  height: auto;
  max-width: 800px;
  padding: 2rem;
}
/* Футер с блюром */
.footer-wrap {
  position: fixed;
  bottom: 20px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center; /* меню и иконки справа */
  z-index: 100;
  margin: 0 auto; /* 👈 центрирует фон */
  box-sizing: border-box; /* ✅ ширина учитывает padding */
}

/* фон и контент футера */
.footer-bg {
  width: 100%; /* 👈 убираем 100%, пусть подстраивается */
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(190, 190, 190, 0.55);
  padding: 1.5rem 2rem;
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15), 0 -1px 2px rgba(255, 255, 255, 0.25);
  box-sizing: border-box;
}

.footer-left .footer-logo {
  height: 44px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-box {
  cursor: pointer;
  background-color: #fff;
  padding: 10px 18px;
  display: flex;
  border-radius: 32px;
}
.logo-box img {
  height: 28px;
}

.menu-toggle {
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  color: #000;
  background-color: #fff;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

/* меню вынесено — теперь блюр будет работать */
.footer-menu {
  position: fixed;
  bottom: 120px;
  right: 5%;
  display: flex;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(190, 190, 190, 0.55);
  color: #000;
  padding: 2rem;
  border-radius: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15), 0 -1px 2px rgba(255, 255, 255, 0.25);
  flex-direction: column;
  gap: 1rem;
  transform: scale(0);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 200;
  box-sizing: border-box;
}

.footer-menu.active {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.footer-menu a {
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.footer-menu a:hover {
  color: #0195ff;
}

@media (max-width: 768px) {
  .footer-menu {
    bottom: 90px;
    padding: 1.5rem 2rem;
  }
  .footer-wrap {
    bottom: 10px;
  }
  .footer-left .footer-logo {
    height: 37px;
  }
  .menu-toggle {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
  }
  .logo-box {
    cursor: pointer;
    background-color: #fff;
    padding: 8px 14px;
    display: flex;
    border-radius: 32px;
  }
  .logo-box img {
    height: 24px;
  }
  .footer-right {
    gap: 1rem;
  }
  .footer-menu a {
    font-size: 1.2rem;
  }

  .bubble {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 400;
    border-radius: 12px;
  }
  .bubble-1 {
    bottom: 5rem;
    right: 0;
  }
  .bubble-2 {
    bottom: 15rem;
    right: 4rem;
  }
  .bubble-3 {
    bottom: 20rem;
    right: -3rem;
  }
}

.back-btn {
  position: sticky;
  top: 20px; /* отступ сверху */
  right: 5%; /* отступ справа */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%; /* круглая */
  background: #f0f0f0;
  color: #222;
  font-size: 1.5rem; /* стрелка побольше */
  font-weight: bold;
  cursor: pointer;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.8),
    inset -1px -1px 2px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.back-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}
.headerText {
  text-align: center;
}

.terms-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.terms-date {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.terms-section {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.terms-paragraph {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #222;
}

/* 📱 Адаптив */
@media (max-width: 768px) {
  .footer {
    text-align: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    padding: 1rem;
  }

  .footer a {
    font-size: 0.9rem;
  }
}

@media (max-width: 1400px) {
  html {
    font-size: 12px; /* 1rem = 16px */
  }
  .left {
    flex: auto;
  }
}
/* 📱 Мобильная версия */
@media (max-width: 1024px) {
  /* 1024px */
  .container {
    flex-direction: column;
    text-align: center;
    padding: 0 1.25rem 0 1.25rem; /* 20px */
    margin-top: 4rem;
  }

  .left {
    max-width: 100%;
    margin-bottom: 1.875rem; /* 30px */
  }

  .right {
    max-width: 100%;
    justify-content: center;
  }

  .logo {
    width: 17.5rem; /* 280px */
    margin-bottom: 2rem; /* 30px */
  }

  .headline {
    font-size: 1.8rem; /* 26px */
    margin-bottom: 1rem; /* 10px */
  }

  .subheadline {
    font-size: 1.125rem; /* 18px */
    margin-bottom: 2.6rem; /* 20px */
  }

  .store-buttons {
    justify-content: center;
  }

  .store-buttons img {
    width: 9.375rem; /* 150px */
    height: 3.125rem; /* 50px */
  }

  .screenshot {
    max-width: 90%;
    margin: 0 auto;
  }
}
