/* About screen — эффектная страница «О нас» */

.screen.about {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.about-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Атмосферный фон — плавающие орбы */
.about-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about-bg::before,
.about-bg::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(70px);
}

.about-bg::before {
  background: radial-gradient(
    circle at 30% 40%,
    rgba(255, 79, 154, 0.28),
    rgba(255, 79, 154, 0) 55%
  );
  top: -80px;
  left: -120px;
  animation: aboutOrb1 8s ease-in-out infinite;
}

.about-bg::after {
  background: radial-gradient(
    circle at 70% 60%,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0) 60%
  );
  bottom: -100px;
  right: -100px;
  animation: aboutOrb2 9s ease-in-out infinite;
}

@keyframes aboutOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  33% { transform: translate(15px, -20px) scale(1.05); opacity: 0.5; }
  66% { transform: translate(-10px, 12px) scale(0.98); opacity: 0.45; }
}

@keyframes aboutOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  40% { transform: translate(-18px, 15px) scale(1.06); opacity: 0.45; }
  75% { transform: translate(12px, -18px) scale(0.97); opacity: 0.4; }
}

.about-content {
  position: relative;
  width: 100%;
  max-width: 360px;
  max-height: 100%;
  padding: 28px 20px calc(40px + 72px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: aboutFloat 4s ease-in-out infinite;
}

@keyframes aboutFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Появление при заходе на экран */
.about-headline {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.98);
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.about.is-visible .about-headline {
  opacity: 1;
  transform: translateY(0);
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-body p {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}

.about-body p:nth-child(2) {
  transition-delay: 0.3s;
}

.about.is-visible .about-body p {
  opacity: 1;
  transform: translateY(0);
}

.about-accent {
  width: 48px;
  height: 3px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 79, 154, 0.7),
    transparent
  );
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity 0.5s ease 0.45s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s;
}

.about.is-visible .about-accent {
  opacity: 0.9;
  transform: scaleX(1);
}

.about.is-visible .about-accent {
  animation: aboutAccentShimmer 3s ease-in-out 1s infinite;
}

@keyframes aboutAccentShimmer {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.about-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 10px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  z-index: 2;
}

.about-home-btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.about-home-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
}

.about-home-btn:active {
  transform: scale(0.98);
}

.about-home-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.about-home-icon {
  width: 24px;
  height: 24px;
  display: block;
  opacity: 0.95;
}

@media (min-width: 420px) {
  .about-content {
    padding: 36px 28px calc(48px + 72px + env(safe-area-inset-bottom, 0px));
  }

  .about-headline {
    font-size: 24px;
  }

  .about-body p {
    font-size: 15px;
  }
}
