:root {
  --primary-gradient: var(--accent);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.15);
  --border-radius: 20px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Плавные анимации для элементов */
.animate-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.9) translateY(30px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-scale.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Page Container */
.guide-page {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 1.25rem;
  background: var(--accent);
  padding: 2rem;
  border-radius: 16px;
}

.header h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header p {
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: white;
  opacity: 0.95;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 0 auto;
}

/* Content */
.intro-text {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.intro-text p {
  color: #555;
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}

/* Measurement Grid */
.measurement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Measurement Card */
.measurement-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  cursor: pointer;
}

.measurement-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-medium);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Card Image */
.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.card-image-fallback {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--accent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.measurement-card:hover .card-image {
  transform: scale(1.05);
}

/* Card Content */
.card-content {
  padding: 1.5rem;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
}

.card-number {
  background: var(--primary-gradient);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.measurement-card:hover .card-number {
  transform: rotate(360deg);
}

.card-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Scroll indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1001;
}

.scroll-progress {
  height: 100%;
  background: var(--primary-gradient);
  width: 0%;
  transition: width 0.3s ease;
}

/* Mobile Adaptations */
@media (max-width: 768px) {
  .guide-page {
    padding-top: 1rem;
    padding-bottom: 3rem;
  }

  .container {
    padding: 0 1rem;
  }

  .header {
    margin-top: 4rem;
    margin-bottom: 2rem;
  }

  .intro-text {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .intro-text p {
    font-size: 1rem;
  }

  .measurement-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card-image {
    height: 150px;
  }

  .card-image-fallback {
    height: 150px;
    font-size: 3rem;
  }

  .card-content {
    padding: 1.2rem;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .card-description {
    font-size: 0.9rem;
  }

  .measurement-card:hover {
    transform: translateY(-5px) scale(1.01);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .intro-text {
    padding: 1.2rem;
  }

  .card-content {
    padding: 1rem;
  }

  .card-title {
    font-size: 1.1rem;
    gap: 0.75rem;
  }

  .card-number {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-in,
  .animate-scale,
  .animate-slide-left {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Override: app layout */
.app-page .app-main {
  padding: 0 !important;
  max-width: 100% !important;
  min-height: 0 !important;
}
.app-page .guide-page {
  padding-top: calc(58px + 1.5rem);
}