/* === ПЕРЕМЕННЫЕ === */
:root {
  --bg-primary: #0a0f1e;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.8);
  --bg-card-hover: rgba(30, 41, 59, 0.9);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.25);
  --border: rgba(51, 65, 85, 0.6);
  --border-light: rgba(51, 65, 85, 0.3);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--bg-primary);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === ЧАСТИЦЫ === */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* === НАВИГАЦИЯ === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(10, 15, 30, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 15, 30, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
  border-radius: 1px;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.lang-switcher {
  display: flex;
  gap: 2px;
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 3px;
}

.lang-switcher.mobile {
  margin-top: 16px;
  justify-content: center;
}

.lang-btn {
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.lang-btn:hover {
  color: var(--text-secondary);
}

.lang-btn.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: rgba(17, 24, 39, 0.98);
  backdrop-filter: blur(20px);
  padding: 24px;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 99;
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 500;
}

/* === HERO === */
.hero {
  position: relative;
  padding: 130px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  top: -100px;
  left: -200px;
  animation: glow-float 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-glow-2 {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  top: auto;
  bottom: -200px;
  left: auto;
  right: -200px;
  animation-delay: -4s;
  animation-duration: 10s;
}

@keyframes glow-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-line {
  display: block;
}

.hero-line-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: white;
  box-shadow: 0 4px 24px var(--accent-glow), 0 0 60px rgba(59, 130, 246, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px var(--accent-glow), 0 0 80px rgba(59, 130, 246, 0.15);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 24px;
  align-items: center;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* === ТЕЛЕФОН 3D === */
.hero-phone-scene {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.phone-3d-wrapper {
  position: relative;
  transform-style: preserve-3d;
  animation: phone-float 6s ease-in-out infinite;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0) rotateY(-5deg) rotateX(2deg); }
  50% { transform: translateY(-20px) rotateY(5deg) rotateX(-2deg); }
}

.phone-mockup {
  width: 280px;
  height: 570px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 40px;
  border: 2px solid rgba(148, 163, 184, 0.15);
  padding: 10px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 60px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg-secondary);
}

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

/* Плавающие карточки вокруг телефона */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 5;
}

.fc-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.fc-green { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.fc-purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.fc-amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.float-1 {
  top: 60px;
  left: -110px;
  animation: float-card 5s ease-in-out infinite;
}

.float-2 {
  top: 160px;
  right: -120px;
  animation: float-card 5s ease-in-out infinite;
  animation-delay: -1.2s;
}

.float-3 {
  bottom: 160px;
  left: -70px;
  animation: float-card 5s ease-in-out infinite;
  animation-delay: -2.4s;
}

.float-4 {
  bottom: 60px;
  right: -60px;
  animation: float-card 5s ease-in-out infinite;
  animation-delay: -3.6s;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Скролл-индикатор */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scroll-wheel {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.3; transform: translateY(6px); }
}

/* === СЕКЦИИ — ОБЩИЕ === */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header.left {
  text-align: left;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.1;
}

.section-title.left {
  text-align: left;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-subtitle.left {
  text-align: left;
  margin: 0;
}

/* === ВОЗМОЖНОСТИ === */
.features {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  overflow: hidden;
  transform-style: preserve-3d;
}

.card-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  top: -100px;
  right: -100px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.feature-card:hover .card-glow {
  opacity: 1;
}

.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px var(--accent-glow);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.icon-blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.icon-green { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.icon-purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.icon-rose { background: rgba(244, 63, 94, 0.15); color: #f43f5e; }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.icon-orange { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.icon-teal { background: rgba(20, 184, 166, 0.15); color: #14b8a6; }

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === GPS ПРОФИЛЬ — ГЛАВНАЯ ФУНКЦИЯ === */
.gps-section {
  position: relative;
  padding: 140px 0;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #060b18 50%, var(--bg-primary) 100%);
}

/* Сетка на фоне */
.gps-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.gps-bg-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  animation: glow-float 10s ease-in-out infinite;
  pointer-events: none;
}

.gps-bg-glow-2 {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.06) 0%, transparent 60%);
  top: auto;
  bottom: -300px;
  animation-delay: -5s;
}

/* Кольца GPS-сигнала */
.gps-signal-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.gps-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.08);
  animation: gps-ring-expand 4s ease-out infinite;
}

.gps-ring-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -150px;
  animation-delay: 0s;
}

.gps-ring-2 {
  width: 600px;
  height: 600px;
  top: -300px;
  left: -300px;
  animation-delay: -1.3s;
}

.gps-ring-3 {
  width: 900px;
  height: 900px;
  top: -450px;
  left: -450px;
  animation-delay: -2.6s;
}

@keyframes gps-ring-expand {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Проблема */
.gps-problem {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto 48px;
  padding: 20px 28px;
  background: rgba(244, 63, 94, 0.06);
  border: 1px solid rgba(244, 63, 94, 0.15);
  border-radius: 16px;
  text-align: left;
}

.gps-problem-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(244, 63, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f43f5e;
}

.gps-problem p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.gps-tag {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.gps-title-gradient {
  background: linear-gradient(135deg, #22c55e 0%, var(--accent) 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Основной блок */
.gps-showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

/* === 3D КАРТА === */
.gps-map-scene {
  position: relative;
  perspective: 1000px;
  padding: 30px;
}

.gps-map-3d {
  transform-style: preserve-3d;
  animation: map-hover 6s ease-in-out infinite;
}

@keyframes map-hover {
  0%, 100% { transform: rotateX(55deg) rotateZ(-5deg) translateY(0); }
  50% { transform: rotateX(55deg) rotateZ(-5deg) translateY(-10px); }
}

.gps-map-surface {
  position: relative;
  width: 380px;
  height: 380px;
  background: linear-gradient(145deg, #0d1829 0%, #111d32 50%, #0a1221 100%);
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  box-shadow:
    0 60px 100px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(59, 130, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transform-style: preserve-3d;
}

/* Линии сетки на карте */
.gps-map-grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.gps-grid-h {
  position: absolute;
  width: 100%;
  height: 1px;
  background: rgba(59, 130, 246, 0.06);
}

.gps-grid-h:nth-child(1) { top: 25%; }
.gps-grid-h:nth-child(2) { top: 50%; }
.gps-grid-h:nth-child(3) { top: 75%; }
.gps-grid-h:nth-child(4) { top: 90%; }

.gps-grid-v {
  position: absolute;
  height: 100%;
  width: 1px;
  background: rgba(59, 130, 246, 0.06);
}

.gps-grid-v:nth-child(5) { left: 20%; }
.gps-grid-v:nth-child(6) { left: 45%; }
.gps-grid-v:nth-child(7) { left: 65%; }
.gps-grid-v:nth-child(8) { left: 85%; }

/* Блоки территорий */
.gps-terrain-block {
  position: absolute;
  border-radius: 4px;
  border: 1px solid rgba(59, 130, 246, 0.08);
}

.tb-1 { top: 15%; left: 10%; width: 25%; height: 20%; background: rgba(34, 197, 94, 0.04); border-color: rgba(34, 197, 94, 0.1); }
.tb-2 { top: 60%; left: 55%; width: 35%; height: 25%; background: rgba(59, 130, 246, 0.04); border-color: rgba(59, 130, 246, 0.1); }
.tb-3 { top: 30%; left: 60%; width: 20%; height: 15%; background: rgba(139, 92, 246, 0.04); border-color: rgba(139, 92, 246, 0.1); }
.tb-4 { top: 70%; left: 10%; width: 30%; height: 18%; background: rgba(59, 130, 246, 0.03); border-color: rgba(59, 130, 246, 0.08); }
.tb-5 { top: 10%; left: 50%; width: 15%; height: 12%; background: rgba(34, 197, 94, 0.03); border-color: rgba(34, 197, 94, 0.08); }

/* Пин локации */
.gps-pin-wrapper {
  position: absolute;
  top: 42%;
  left: 48%;
  transform: translate(-50%, -100%);
  z-index: 3;
}

.gps-pin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: pin-bounce 2s ease-in-out infinite;
  transform: translateZ(40px);
}

@keyframes pin-bounce {
  0%, 100% { transform: translateZ(40px) translateY(0); }
  50% { transform: translateZ(40px) translateY(-8px); }
}

.gps-pin-head {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #22c55e, #10b981);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.gps-pin-head svg {
  transform: rotate(45deg);
  color: white;
}

.gps-pin-stick {
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, #22c55e, transparent);
}

.gps-pin-shadow {
  width: 30px;
  height: 8px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 50%;
  margin-top: -4px;
  filter: blur(4px);
  animation: pin-shadow 2s ease-in-out infinite;
}

@keyframes pin-shadow {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(0.7); opacity: 0.5; }
}

.gps-pin-pulse {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(34, 197, 94, 0.3);
  animation: pin-pulse-ring 2s ease-out infinite;
}

.gps-pin-pulse-2 {
  animation-delay: -1s;
}

@keyframes pin-pulse-ring {
  0% { transform: translateX(-50%) scale(0.5); opacity: 0.8; }
  100% { transform: translateX(-50%) scale(2); opacity: 0; }
}

/* Бейдж координат */
.gps-coords-badge {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #22c55e;
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  letter-spacing: 0.02em;
  white-space: nowrap;
  z-index: 3;
}

.gps-coords-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: dot-blink 1.5s ease-in-out infinite;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Плавающие данные */
.gps-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  z-index: 5;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.gps-float svg {
  flex-shrink: 0;
}

.gps-float-accuracy {
  top: 20px;
  left: 10px;
  color: #22c55e;
  animation: float-card 4s ease-in-out infinite;
}

.gps-float-accuracy svg { color: #22c55e; }

.gps-float-saved {
  bottom: 30px;
  right: 10px;
  color: var(--accent);
  animation: float-card 4s ease-in-out infinite;
  animation-delay: -2s;
}

.gps-float-saved svg { color: var(--accent); }

/* === ПРОФИЛЬ === */
.gps-profile-demo {
  display: flex;
  justify-content: center;
}

.gps-profile-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(59, 130, 246, 0.08);
}

.gps-profile-header {
  display: flex;
  gap: 16px;
  padding: 24px 24px 16px;
  align-items: center;
}

.gps-profile-avatar {
  flex-shrink: 0;
}

.gps-profile-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.gps-profile-dates {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.gps-profile-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: #22c55e;
  font-weight: 500;
}

.gps-profile-location svg {
  color: #22c55e;
}

.gps-profile-epitaph {
  padding: 0 24px 16px;
}

.gps-profile-epitaph p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.gps-profile-photos {
  display: flex;
  gap: 8px;
  padding: 0 24px 20px;
}

.gps-photo-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.gps-photo-more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.15);
}

.gps-profile-sections {
  display: flex;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.gps-psec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.gps-psec svg {
  color: var(--accent);
}

.gps-profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, #22c55e, #10b981);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.gps-profile-btn:hover {
  filter: brightness(1.1);
}

/* Три факта */
.gps-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gps-fact {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.gps-fact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22c55e, var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.gps-fact:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(34, 197, 94, 0.1);
}

.gps-fact:hover::before {
  opacity: 1;
}

.gps-fact-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.gps-fact-icon-purple {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.15);
  color: var(--purple);
}

.gps-fact-icon-green {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.gps-fact h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.gps-fact p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Адаптивность GPS */
@media (max-width: 1024px) {
  .gps-showcase {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .gps-map-scene {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .gps-section {
    padding: 80px 0;
  }

  .gps-map-surface {
    width: 300px;
    height: 300px;
  }

  .gps-facts {
    grid-template-columns: 1fr;
  }

  .gps-float {
    display: none;
  }

  .gps-signal-rings {
    display: none;
  }

  .gps-showcase {
    margin-bottom: 48px;
  }
}

@media (max-width: 480px) {
  .gps-map-surface {
    width: 260px;
    height: 260px;
  }

  .gps-problem {
    flex-direction: column;
    text-align: center;
  }
}

/* === КНИГА ЖИЗНИ === */
.book-section {
  position: relative;
  padding: 140px 0;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(15, 10, 30, 1) 50%, var(--bg-primary) 100%);
}

.book-bg-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
  top: -200px;
  right: -300px;
  animation: glow-float 12s ease-in-out infinite;
  pointer-events: none;
}

.book-bg-glow-2 {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
  top: auto;
  bottom: -300px;
  right: auto;
  left: -300px;
  animation-delay: -6s;
}

/* Летающие частицы-звёзды */
.book-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.book-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(139, 92, 246, 0.4);
  border-radius: 50%;
  animation: particle-float 8s ease-in-out infinite;
}

.bp-1 { top: 15%; left: 10%; animation-delay: 0s; width: 3px; height: 3px; }
.bp-2 { top: 25%; right: 15%; animation-delay: -1.5s; width: 5px; height: 5px; background: rgba(59, 130, 246, 0.3); }
.bp-3 { top: 60%; left: 20%; animation-delay: -3s; }
.bp-4 { top: 70%; right: 25%; animation-delay: -4.5s; width: 3px; height: 3px; background: rgba(236, 72, 153, 0.3); }
.bp-5 { top: 40%; left: 5%; animation-delay: -2s; width: 5px; height: 5px; }
.bp-6 { top: 80%; right: 10%; animation-delay: -5.5s; background: rgba(59, 130, 246, 0.3); }

@keyframes particle-float {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.4; }
  25% { transform: translateY(-30px) translateX(10px) scale(1.2); opacity: 0.8; }
  50% { transform: translateY(-15px) translateX(-15px) scale(0.8); opacity: 0.5; }
  75% { transform: translateY(-40px) translateX(5px) scale(1.1); opacity: 0.7; }
}

.book-tag {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--purple);
}

.book-title-gradient {
  background: linear-gradient(135deg, var(--purple) 0%, #ec4899 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Основной блок */
.book-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

/* === 3D КНИГА === */
.book-3d-scene {
  display: flex;
  justify-content: center;
  perspective: 1200px;
  position: relative;
  padding: 40px 0;
}

.book-3d-wrapper {
  position: relative;
  display: inline-block;
}

.book-3d {
  position: relative;
  width: 240px;
  height: 340px;
  transform-style: preserve-3d;
  animation: book-rotate 8s ease-in-out infinite;
}

@keyframes book-rotate {
  0%, 100% { transform: rotateY(-25deg) rotateX(5deg); }
  50% { transform: rotateY(-15deg) rotateX(0deg) translateY(-10px); }
}

@keyframes book-rotate-mobile {
  0%, 100% { transform: rotateY(-12deg) rotateX(3deg); }
  50% { transform: rotateY(-5deg) rotateX(0deg) translateY(-8px); }
}

@keyframes book-rotate-small {
  0%, 100% { transform: rotateY(-8deg) rotateX(2deg) scale(0.7); }
  50% { transform: rotateY(-3deg) rotateX(0deg) scale(0.7) translateY(-6px); }
}

@keyframes book-rotate-xs {
  0%, 100% { transform: rotateY(-5deg) rotateX(2deg) scale(0.58); }
  50% { transform: rotateY(-2deg) rotateX(0deg) scale(0.58) translateY(-5px); }
}

.book-cover {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #2d1b69 0%, #1a0a3e 40%, #0d0620 100%);
  border-radius: 4px 16px 16px 4px;
  transform: translateZ(15px);
  box-shadow:
    0 0 40px rgba(139, 92, 246, 0.25),
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 60px rgba(139, 92, 246, 0.05);
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.book-cover-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  position: relative;
}

.book-cover-ornament {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.book-cover-ornament-bottom {
  top: auto;
  bottom: 20px;
}

.book-cover-photo {
  margin-bottom: 20px;
  opacity: 0.7;
}

.book-cover-title {
  font-size: 0.75rem;
  color: rgba(212, 175, 55, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  font-weight: 600;
}

.book-cover-name {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.book-cover-years {
  font-size: 0.8rem;
  color: rgba(212, 175, 55, 0.5);
  letter-spacing: 0.1em;
}

.book-spine {
  position: absolute;
  left: -14px;
  top: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(90deg, #0d0620 0%, #1a0a3e 40%, #2d1b69 100%);
  transform: rotateY(-90deg) translateZ(0px);
  transform-origin: right center;
  border-radius: 4px 0 0 4px;
  box-shadow: inset -2px 0 8px rgba(0, 0, 0, 0.5);
}

.book-pages {
  position: absolute;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  top: 4px;
  left: 4px;
  transform: translateZ(-2px);
}

.book-page {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(30, 25, 40, 0.9);
  border-radius: 2px 12px 12px 2px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 24px 20px;
}

.page-1 { transform: translateZ(10px); }
.page-2 { transform: translateZ(5px); }
.page-3 { transform: translateZ(0px); background: rgba(20, 15, 30, 0.9); }

.page-photo-placeholder {
  width: 100%;
  height: 80px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px dashed rgba(59, 130, 246, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.page-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-line {
  height: 3px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
}

/* Плавающие теги у книги */
.book-float-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 5;
}

.book-float-tag svg {
  color: var(--purple);
  flex-shrink: 0;
}

.bf-1 {
  top: 20px;
  right: 0;
  animation: float-card 4s ease-in-out infinite;
}

.bf-2 {
  bottom: 40px;
  left: -10px;
  animation: float-card 4s ease-in-out infinite;
  animation-delay: -1.5s;
}

.bf-3 {
  top: 50%;
  right: -20px;
  animation: float-card 4s ease-in-out infinite;
  animation-delay: -3s;
}

/* === Процесс создания книги === */
.book-process {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.book-process-item {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 28px 28px 28px;
  transition: var(--transition);
  overflow: hidden;
}

.book-process-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--purple), var(--accent));
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity var(--transition);
}

.book-process-item:hover::before {
  opacity: 1;
}

.book-process-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 30px var(--purple-glow);
}

.bpi-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(139, 92, 246, 0.08);
  line-height: 1;
  letter-spacing: -0.05em;
}

.bpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}

.bpi-icon-purple {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.15);
  color: var(--purple);
}

.bpi-icon-rose {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
}

.book-process-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.book-process-item p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

.bpi-detail {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bpi-badge {
  padding: 4px 12px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--purple);
}

/* === Для живых и ушедших === */
.book-audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.book-audience-card {
  position: relative;
  padding: 36px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: var(--transition);
  overflow: hidden;
}

.book-audience-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
}

.bac-alive::after {
  background: linear-gradient(90deg, #22c55e, #10b981);
}

.bac-memorial::after {
  background: linear-gradient(90deg, var(--purple), #ec4899);
}

.book-audience-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.bac-alive:hover {
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(34, 197, 94, 0.15);
}

.bac-memorial:hover {
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px var(--purple-glow);
}

.bac-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  margin-bottom: 16px;
}

.bac-icon-purple {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
  color: var(--purple);
}

.bac-status {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}

.bac-status-purple {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
  color: var(--purple);
}

.book-audience-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.book-audience-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.bac-quote {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid rgba(139, 92, 246, 0.3);
  border-radius: 0 8px 8px 0;
}

.bac-alive .bac-quote {
  border-left-color: rgba(34, 197, 94, 0.3);
}

.bac-quote span {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* === Адаптивность книги === */
@media (max-width: 1024px) {
  .book-showcase {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .book-3d-scene {
    order: -1;
  }
}

@media (max-width: 768px) {
  .book-section {
    padding: 80px 0;
  }

  .book-audience {
    grid-template-columns: 1fr;
  }

  .book-3d {
    width: 240px;
    height: 340px;
    animation: book-rotate-mobile 8s ease-in-out infinite;
  }

  .book-float-tag {
    padding: 5px 10px;
    font-size: 0.68rem;
    gap: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }

  .book-float-tag svg {
    width: 14px;
    height: 14px;
  }

  .book-3d-scene {
    overflow: visible;
    padding: 30px 0;
  }

  /* Позиции относительно книги (через book-3d-wrapper) */
  .bf-1 {
    top: -5px;
    right: -40px;
  }

  .bf-2 {
    bottom: 10px;
    left: -30px;
  }

  .bf-3 {
    top: 40%;
    right: -50px;
  }

  .book-showcase {
    margin-bottom: 48px;
  }
}

/* === РЕЛИГИИ === */
.religions {
  position: relative;
  padding: 120px 0;
  z-index: 1;
  overflow: hidden;
}

.religion-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.religion-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.religion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  opacity: 0;
  transition: opacity var(--transition);
}

.religion-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.religion-card:hover::before {
  opacity: 1;
}

.rel-symbol {
  font-size: 3rem;
  margin-bottom: 16px;
  line-height: 1;
  filter: drop-shadow(0 0 20px var(--accent-glow));
}

.religion-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.religion-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Молитва — flow шаги */
.rel-prayer-tag {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.rel-prayer-demo {
  margin-bottom: 60px;
}

.rel-prayer-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.rel-flow-step {
  position: relative;
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: var(--transition);
}

.rel-flow-step:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.rel-flow-step-active {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.08);
}

.rel-flow-step-active:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 40px rgba(245, 158, 11, 0.12);
}

.rel-flow-num {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(59, 130, 246, 0.06);
  line-height: 1;
}

.rel-flow-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.rel-flow-icon-purple {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.15);
  color: var(--purple);
}

.rel-flow-icon-amber {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.rel-flow-step h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.rel-flow-step p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.55;
}

.rel-flow-arrow {
  display: flex;
  align-items: center;
  padding-top: 50px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Уведомление */
.rel-prayer-notification {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(245, 158, 11, 0.06);
}

.rel-notif-bell {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  animation: bell-ring 3s ease-in-out infinite;
}

@keyframes bell-ring {
  0%, 80%, 100% { transform: rotate(0); }
  85% { transform: rotate(8deg); }
  90% { transform: rotate(-8deg); }
  95% { transform: rotate(4deg); }
}

.rel-notif-content {
  flex: 1;
}

.rel-notif-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.rel-notif-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.rel-notif-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Подзаголовок религий */
.rel-religions-subtitle {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}

/* Тип молитвы в карточке */
.rel-prayer-type {
  margin-top: 12px;
  padding: 5px 14px;
  display: inline-block;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f59e0b;
}

/* Баннер "Каждый год" */
.rel-yearly-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  padding: 28px 36px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(59, 130, 246, 0.04) 100%);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius);
  transition: var(--transition);
}

.rel-yearly-banner:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 30px rgba(245, 158, 11, 0.08);
}

.rel-yearly-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 18px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  animation: yearly-glow 3s ease-in-out infinite;
}

@keyframes yearly-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(245, 158, 11, 0); }
  50% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.15); }
}

.rel-yearly-text h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rel-yearly-text p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Адаптивность молитв */
@media (max-width: 768px) {
  .rel-prayer-flow {
    flex-direction: column;
    align-items: center;
  }

  .rel-flow-arrow {
    transform: rotate(90deg);
    padding: 0;
  }

  .rel-flow-step {
    max-width: 100%;
  }

  .rel-yearly-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
}

/* === AI СЕКЦИЯ === */
.ai-section {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}

.ai-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ai-features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 36px;
}

.ai-feat {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ai-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.ai-feat h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.ai-feat p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* AI Чат демо */
.ai-demo {
  perspective: 1000px;
}

.ai-chat-window {
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), 0 0 40px var(--accent-glow);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.ai-chat-window:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  background: rgba(10, 15, 30, 0.5);
}

.ai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: white;
}

.ai-name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}

.ai-status {
  display: block;
  font-size: 0.75rem;
  color: #22c55e;
}

.ai-chat-messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
}

.ai-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.5;
  animation: msg-appear 0.5s ease forwards;
}

.ai-msg-bot {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.ai-msg-user {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.2);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

@keyframes msg-appear {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-quick-actions {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.ai-quick-btn {
  padding: 8px 14px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.ai-quick-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

/* === УСЛУГИ === */
.services-section {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.service-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.svc-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Процесс заказа */
.order-process {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px;
}

.order-process h3 {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.process-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.process-step {
  text-align: center;
  flex: 1;
  min-width: 140px;
}

.ps-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.process-arrow {
  color: var(--text-muted);
  font-size: 1.5rem;
  font-weight: 300;
}

/* === КАК ЭТО РАБОТАЕТ (ТАЙМЛАЙН) === */
.how-section {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 23px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--purple), transparent);
}

.timeline-item {
  display: flex;
  gap: 24px;
  margin-bottom: 36px;
  position: relative;
}

.timeline-dot {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 20px var(--accent-glow);
  z-index: 1;
}

.timeline-content {
  flex: 1;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 14px;
  line-height: 1.6;
}

.timeline-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.timeline-tags span {
  padding: 4px 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

/* === СКАЧАТЬ === */
.download {
  position: relative;
  padding: 120px 0;
  z-index: 1;
}

.download-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.download-bg-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  top: -200px;
  left: -100px;
  pointer-events: none;
  animation: glow-float 10s ease-in-out infinite;
}

.orb-2 {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  top: auto;
  bottom: -200px;
  left: auto;
  right: -100px;
  animation-delay: -5s;
}

.download-inner {
  position: relative;
  text-align: center;
  padding: 80px 40px;
}

.download-inner h2 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.download-inner p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--accent-glow);
}

.store-icon {
  width: 30px;
  height: 30px;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.store-name {
  font-size: 1.15rem;
  font-weight: 700;
}

.download-features {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-features > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
}

.download-features svg {
  color: #22c55e;
}

/* === ФУТЕР === */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-light);
  position: relative;
  z-index: 1;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.footer-name {
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 24px;
  margin-top: 4px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* === REVEAL ANIMATION === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === TILT 3D ЭФФЕКТ НА КАРТОЧКАХ === */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3.2rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .religion-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-header.left {
    text-align: center;
  }

  .section-title.left {
    text-align: center;
  }

  .section-subtitle.left {
    text-align: center;
    margin: 0 auto;
  }

  .ai-features-list {
    max-width: 500px;
    margin: 36px auto 0;
  }
}

@media (max-width: 768px) {
  /* Навигация — убираем полупрозрачность чтобы частицы не мерцали сквозь шапку */
  .navbar {
    background: rgba(10, 15, 30, 0.97);
    padding: 12px 0;
  }
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  /* На мобиле языки слева от бургера — компактный размер */
  .navbar .lang-switcher { padding: 2px; gap: 0; }
  .navbar .lang-btn { padding: 5px 9px; font-size: 0.7rem; }

  /* Hero */
  .hero { padding: 100px 0 50px; min-height: auto; }
  .hero-container { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-content h1 { font-size: 2.5rem; }
  .hero-subtitle { margin: 0 auto 28px; font-size: 1rem; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; gap: 20px; }
  .hero-phone-scene { max-width: 100%; display: flex; justify-content: center; }
  .phone-3d-wrapper { animation: phone-float 6s ease-in-out infinite; transform-origin: center; }
  .phone-mockup { width: 200px; height: 410px; }
  .floating-card { padding: 7px 10px; font-size: 0.7rem; border-radius: 10px; }
  .fc-icon { width: 26px; height: 26px; border-radius: 6px; }
  .fc-icon svg { width: 14px; height: 14px; }
  .floating-card span { max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
  .float-1 { left: -30px; top: 50px; }
  .float-2 { right: -40px; top: 140px; }
  .float-3 { left: -35px; bottom: 140px; }
  .float-4 { right: -30px; bottom: 50px; }
  .scroll-indicator { display: none; }
  .hero-glow, .hero-glow-2 { display: none; }

  /* Общие */
  .section-title { font-size: 2rem; }
  .section-subtitle { font-size: 0.95rem; }
  .container { padding: 0 20px; }

  /* GPS профиль */
  .gps-section { padding: 70px 0; }
  .gps-map-surface { max-width: 90vw; }
  .gps-profile-card { max-width: 90vw; }
  .gps-bg-glow, .gps-bg-glow-2 { display: none; }
  .gps-fact-icon { width: 44px; height: 44px; }

  /* Книга жизни */
  .book-section { padding: 70px 0; }
  .book-bg-glow, .book-bg-glow-2 { display: none; }
  .book-3d { width: 240px; height: 340px; animation: book-rotate-mobile 8s ease-in-out infinite; }
  .book-audience-card { padding: 24px; }

  /* AI */
  .ai-container { gap: 30px; }
  .ai-chat-window { transform: none; max-width: 100%; }
  .ai-features-list { max-width: 100%; }

  /* Религии */
  .rel-symbol { font-size: 2.2rem; }
  .rel-yearly-icon { width: 48px; height: 48px; }

  /* Возможности */
  .features-grid, .religion-cards { grid-template-columns: 1fr; }
  .feature-card { padding: 24px; }
  .feature-icon { width: 44px; height: 44px; }

  /* Услуги */
  .services-grid { grid-template-columns: 1fr; }
  .process-arrow { display: none; }
  .process-steps { gap: 16px; flex-wrap: wrap; }
  .process-step { min-width: 120px; flex: 0 1 calc(50% - 8px); }

  /* Таймлайн */
  .timeline-dot { width: 40px; height: 40px; }
  .timeline-content { padding: 20px; }

  /* Скачать */
  .download-inner { padding: 40px 24px; }
  .download-inner h2 { font-size: 2rem; }
  .download-features { gap: 16px; flex-wrap: wrap; justify-content: center; }

  /* Исторические */
  .historical-section { padding: 70px 0; }
  .hist-showcase { gap: 40px; }
  .hist-profile-card { width: 280px; max-width: 90vw; }
  .hist-monument { min-height: 360px; }
  .hist-glow-ring { display: none; }
  .hist-pedestal { transform: rotateX(45deg) rotateZ(-45deg) scale(0.8); }

  /* Футер */
  .footer { padding: 32px 0; }

  /* Отключаем тяжёлые 3D на мобилках */
  .tilt-card { transform-style: flat !important; }
  .tilt-card:hover { transform: none !important; }
  .gps-map-3d { animation: none; }
}

/* === ИСТОРИЧЕСКИЕ ЛИЧНОСТИ === */
.historical-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #12182d 50%, var(--bg-primary) 100%);
}

.hist-tag {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(234, 179, 8, 0.05)) !important;
  color: #eab308 !important;
  border-color: rgba(234, 179, 8, 0.3) !important;
}

.hist-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

/* 3D Монумент */
.hist-monument {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 460px;
  perspective: 1000px;
}

.hist-pedestal {
  position: absolute;
  bottom: 20px;
  width: 220px;
  height: 60px;
  transform-style: preserve-3d;
  transform: rotateX(55deg) rotateZ(-45deg);
}

.hist-pedestal-top {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e293b, #334155);
  border-radius: 8px;
  transform: translateZ(20px);
  box-shadow: 0 0 40px rgba(234, 179, 8, 0.15);
}

.hist-pedestal-front {
  position: absolute;
  width: 100%;
  height: 40px;
  background: linear-gradient(180deg, #334155, #1e293b);
  border-radius: 0 0 8px 8px;
  transform: rotateX(-90deg) translateZ(-20px) translateY(-20px);
}

.hist-pedestal-side {
  position: absolute;
  width: 40px;
  height: 100%;
  right: 0;
  background: linear-gradient(180deg, #293548, #1a2332);
  border-radius: 0 8px 8px 0;
  transform: rotateY(90deg) translateZ(90px) translateX(20px);
}

/* Профиль-карточка */
.hist-profile-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(30, 41, 59, 0.9));
  border: 1px solid rgba(234, 179, 8, 0.25);
  border-radius: 20px;
  padding: 30px;
  width: 320px;
  text-align: center;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(234, 179, 8, 0.08),
    inset 0 1px 0 rgba(234, 179, 8, 0.1);
  animation: histCardFloat 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes histCardFloat {
  0%, 100% { transform: translateY(0) rotateX(2deg) rotateY(-2deg); }
  50% { transform: translateY(-12px) rotateX(-2deg) rotateY(2deg); }
}

.hist-profile-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
}

.hist-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #334155);
  border: 3px solid rgba(234, 179, 8, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.hist-badge-star {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #eab308, #f59e0b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #0a0f1e;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.4);
  animation: histStarPulse 2s ease-in-out infinite;
}

@keyframes histStarPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(234, 179, 8, 0.4); }
  50% { transform: scale(1.15); box-shadow: 0 2px 16px rgba(234, 179, 8, 0.6); }
}

.hist-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #eab308;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.hist-profile-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hist-profile-dates {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.hist-profile-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.hist-profile-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hist-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hist-stat svg {
  color: #eab308;
  opacity: 0.7;
}

/* Звезда-бейдж */
.hist-star-badge {
  position: absolute;
  top: 10px;
  right: calc(50% - 160px - 30px);
  font-size: 2rem;
  color: #eab308;
  filter: drop-shadow(0 0 12px rgba(234, 179, 8, 0.5));
  animation: histStarSpin 8s linear infinite;
  z-index: 3;
}

@keyframes histStarSpin {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(10deg) scale(1.1); }
  50% { transform: rotate(0deg) scale(1); }
  75% { transform: rotate(-10deg) scale(1.1); }
  100% { transform: rotate(0deg) scale(1); }
}

/* Кольца свечения */
.hist-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  border: 1px solid rgba(234, 179, 8, 0.1);
  transform: translate(-50%, -50%);
  animation: histRingExpand 4s ease-out infinite;
}

.hist-glow-ring-2 {
  animation-delay: 2s;
}

@keyframes histRingExpand {
  0% { width: 200px; height: 200px; opacity: 0.4; border-color: rgba(234, 179, 8, 0.2); }
  100% { width: 500px; height: 500px; opacity: 0; border-color: rgba(234, 179, 8, 0); }
}

/* Карточки преимуществ */
.hist-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.hist-feat-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.hist-feat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #eab308, transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.hist-feat-card:hover {
  border-color: rgba(234, 179, 8, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(234, 179, 8, 0.08);
}

.hist-feat-card:hover::before {
  opacity: 1;
}

.hist-feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(234, 179, 8, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #eab308;
}

.hist-feat-icon-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.hist-feat-icon-emerald {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.hist-feat-icon-rose {
  background: rgba(244, 63, 94, 0.1);
  color: #f43f5e;
}

.hist-feat-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.hist-feat-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Задержки анимации карточек */
.hist-feat-card-1 { transition-delay: 0s; }
.hist-feat-card-2 { transition-delay: 0.1s; }
.hist-feat-card-3 { transition-delay: 0.2s; }
.hist-feat-card-4 { transition-delay: 0.3s; }

/* Цитата */
.hist-quote {
  margin-top: 60px;
  text-align: center;
  position: relative;
  padding: 40px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.04), rgba(234, 179, 8, 0.01));
  border: 1px solid rgba(234, 179, 8, 0.1);
  border-radius: 20px;
}

.hist-quote-mark {
  font-size: 4rem;
  color: #eab308;
  opacity: 0.3;
  line-height: 1;
  margin-bottom: -10px;
  font-family: Georgia, serif;
}

.hist-quote p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
}

/* Фоновые частицы */
.hist-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hist-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #eab308;
  border-radius: 50%;
  opacity: 0;
  animation: histParticleFloat 8s ease-in-out infinite;
}

.hist-p1 { top: 20%; left: 10%; animation-delay: 0s; }
.hist-p2 { top: 60%; left: 85%; animation-delay: 1.5s; }
.hist-p3 { top: 40%; left: 5%; animation-delay: 3s; }
.hist-p4 { top: 80%; left: 70%; animation-delay: 4.5s; }
.hist-p5 { top: 15%; left: 90%; animation-delay: 6s; }

@keyframes histParticleFloat {
  0% { opacity: 0; transform: translateY(20px) scale(0.5); }
  20% { opacity: 0.6; }
  80% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-60px) scale(1.2); }
}

/* Адаптивность исторические */
@media (max-width: 1024px) {
  .hist-showcase {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hist-monument {
    min-height: 380px;
  }
}

@media (max-width: 768px) {
  .hist-features {
    grid-template-columns: 1fr;
  }

  .hist-profile-card {
    width: 280px;
    padding: 24px;
  }

  .hist-monument {
    min-height: 360px;
  }

  .hist-quote {
    padding: 24px;
  }

  .hist-quote p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  /* Контейнер */
  .container { padding: 0 16px; }

  /* Hero */
  .hero { padding: 80px 0 40px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-stats { gap: 12px; flex-wrap: wrap; justify-content: center; }
  .stat-number { font-size: 1.4rem; }
  .stat-label { font-size: 0.7rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .phone-mockup { width: 160px; height: 330px; border-radius: 28px; padding: 6px; }
  .phone-screen { border-radius: 22px; }
  .floating-card { padding: 5px 8px; font-size: 0.65rem; gap: 6px; }
  .fc-icon { width: 22px; height: 22px; }
  .fc-icon svg { width: 12px; height: 12px; }
  .float-1 { left: -85px; top: 40px; }
  .float-2 { right: -90px; top: 120px; }
  .float-3 { left: -65px; bottom: 120px; }
  .float-4 { right: -70px; bottom: 40px; }

  /* Общие */
  .section-title { font-size: 1.7rem; }
  .section-subtitle { font-size: 0.85rem; }
  .section-tag { font-size: 0.7rem; padding: 6px 14px; }

  /* GPS профиль */
  .gps-section { padding: 50px 0; }
  .gps-map-surface { width: 240px; height: 240px; max-width: 85vw; }
  .gps-map-scene { min-height: 300px; }
  .gps-fact-icon { width: 36px; height: 36px; }
  .gps-fact { padding: 16px; }
  .gps-problem { padding: 16px; font-size: 0.9rem; }

  /* Книга жизни */
  .book-section { padding: 50px 0; }
  .book-3d { width: 240px; height: 340px; animation: book-rotate-small 8s ease-in-out infinite; }
  .book-3d-scene { min-height: 280px; }
  .book-audience-card { padding: 20px; }
  .book-process-item { padding: 16px; }

  /* AI */
  .ai-section { padding: 50px 0; }
  .ai-msg { max-width: 92%; font-size: 0.8rem; }
  .ai-feat { padding: 16px; }

  /* Религии */
  .religions-section { padding: 50px 0; }
  .rel-symbol { font-size: 1.8rem; }
  .religion-card { padding: 20px; }
  .rel-flow-step { padding: 16px; }
  .rel-yearly-banner { padding: 20px; }
  .rel-yearly-icon { width: 40px; height: 40px; }

  /* Возможности */
  .features { padding: 50px 0; }
  .feature-card { padding: 20px; }
  .feature-icon { width: 40px; height: 40px; }

  /* Таймлайн */
  .timeline-dot { width: 32px; height: 32px; }
  .timeline-dot svg { width: 16px; height: 16px; }
  .timeline-content { padding: 16px; }
  .timeline-item { padding-left: 52px; }

  /* Скачать */
  .store-buttons { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; max-width: 280px; justify-content: center; }
  .download-inner { padding: 32px 16px; }
  .download-inner h2 { font-size: 1.7rem; }
  .download-features { gap: 8px; font-size: 0.8rem; }

  /* Исторические */
  .historical-section { padding: 50px 0; }
  .hist-monument { min-height: 300px; }
  .hist-profile-card { width: 260px; max-width: 88vw; padding: 20px; }
  .hist-profile-name { font-size: 1.1rem; }
  .hist-feat-card { padding: 18px; }
  .hist-quote { padding: 20px; }
  .hist-quote p { font-size: 0.9rem; }
  .hist-quote-mark { font-size: 3rem; }
  .hist-pedestal { display: none; }
  .hist-star-badge { font-size: 1.5rem; right: calc(50% - 130px - 20px); }
  .hist-particles { display: none; }

  /* Футер */
  .footer { padding: 24px 0; }
  .footer-name { font-size: 0.95rem; }
  .footer-tagline { font-size: 0.8rem; }
}

/* Очень маленькие экраны (SE, Galaxy S) */
@media (max-width: 375px) {
  .hero-content h1 { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.85rem; }
  .phone-mockup { width: 140px; height: 290px; border-radius: 24px; padding: 5px; }
  .phone-screen { border-radius: 19px; }
  .stat-number { font-size: 1.2rem; }
  .stat-label { font-size: 0.65rem; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 0.8rem; }
  .gps-map-surface { width: 200px; height: 200px; }
  .book-3d { width: 240px; height: 340px; animation: book-rotate-xs 8s ease-in-out infinite; }
  .floating-card { padding: 4px 6px; font-size: 0.6rem; gap: 4px; }
  .fc-icon { width: 18px; height: 18px; }
  .fc-icon svg { width: 10px; height: 10px; }
  .float-1 { left: -72px; top: 30px; }
  .float-2 { right: -75px; top: 100px; }
  .float-3 { left: -55px; bottom: 100px; }
  .float-4 { right: -58px; bottom: 30px; }
  .hist-profile-card { width: 230px; padding: 16px; }
  .hist-profile-name { font-size: 1rem; }
}
