/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* App-inspired colors (Архетория) */
  --primary-color: #c9a24b;
  --primary-light: #e3c16f;
  --accent-lilac: #9b7bd4;
  --bg-app: #fbf6ef;
  --surface-app: #fffdf9;
  --text-main: #2c2723;
  --text-secondary-app: #6a625b;
  --text-muted-app: #9c938b;

  /* Gradients */
  --primary-gradient: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  --secondary-gradient: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--primary-color) 100%
  );
  --accent-gradient: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--accent-lilac) 100%
  );
  --dark-gradient: linear-gradient(135deg, #1b1438 0%, #4a327a 100%);
  --cosmos-gradient: linear-gradient(
    155deg,
    #6e4fa3 0%,
    #4a327a 42%,
    #1b1438 72%,
    #0e0b1f 100%
  );

  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

  --text-primary: var(--text-main);
  --text-secondary: #111827;
  --text-light: var(--text-muted-app);
  --bg-primary: var(--bg-app);
  --bg-secondary: var(--surface-app);

  /* Typography */
  --font-primary: "Inter", sans-serif;
  --font-display: "Playfair Display", serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Easing curves (Emil Kowalski) — сильнее встроенных CSS-кривых */
  --ease-out: cubic-bezier(
    0.23,
    1,
    0.32,
    1
  ); /* вход/выход — мгновенный отклик */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* движение по экрану */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* лёгкий «отскок» */
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Glass Button Styles */
.glass-btn {
  position: relative;
  padding: 12px 24px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    box-shadow 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    background 220ms var(--ease-out);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.glass-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s;
}

.glass-btn:hover::before {
  left: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .glass-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
  }
}

.glass-btn.primary {
  background: var(--primary-gradient);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-btn.secondary {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.glass-btn.large {
  padding: 16px 32px;
  font-size: 1.1rem;
  border-radius: 16px;
}

.glass-btn.full-width {
  width: 100%;
  justify-content: center;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(201, 162, 75, 0.18);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 10px 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 10px 25px rgba(201, 162, 75, 0.45));
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo-image {
  display: block;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #111827;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: var(--primary-color);
}

.nav-cta {
  border-radius: 999px;
  padding-inline: 20px;
  font-size: 0.9rem;
  /* плоско: сплошной цвет, без стекла/блика/тени */
  background: #1f2937;
  color: #f9fafb;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  white-space: nowrap;
}
.nav-cta::before {
  display: none; /* убрать glass-блик у плоской кнопки */
}

@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover {
    transform: translateY(-1px);
    background: #2a3446;
    box-shadow: none;
  }
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(
      100% 85% at 10% 6%,
      rgba(227, 193, 111, 0.42) 0%,
      rgba(201, 162, 75, 0.12) 38%,
      transparent 58%
    ),
    radial-gradient(
      75% 70% at 88% 92%,
      rgba(155, 123, 212, 0.32) 0%,
      transparent 55%
    ),
    var(--cosmos-gradient);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xxl) var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: white;
}

.gradient-text {
  /* Фирменный градиент Архетории */
  background: linear-gradient(90deg, #fbe7b2 0%, #e3c16f 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.play-icon {
  width: 20px;
  height: 20px;
}

.hero-stats {
  display: flex;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeInRight 1s ease-out 0.3s both;
}

.phone-mockup {
  position: relative;
  transform: perspective(1200px) rotateY(-12deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition: var(--transition-smooth);
}

.phone-mockup:hover {
  transform: perspective(1200px) rotateY(-8deg) rotateX(2deg) scale(1.03);
}

.phone-screen {
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  background: transparent;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.phone-screen-link {
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  border-radius: 24px;
  max-width: 300px;
  width: 100%;
  position: relative;
  z-index: 1;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.phone-screen--fallback {
  display: none;
}

.phone-screen-link.is-video-failed #hero-phone-video {
  display: none;
}

.phone-screen-link.is-video-failed .phone-screen--fallback {
  display: block;
}

.phone-screen-link:focus-visible {
  outline: 2px solid var(--primary-color, #c9a24b);
  outline-offset: 4px;
}

html {
  scroll-behavior: smooth;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 5;
  transform-style: preserve-3d;
}

.floating-card {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
  overflow: hidden;
}

/* Знаки зодиака вокруг телефона — лаконичные круглые медальоны без подписей */
.floating-zodiac {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(145deg, #e3c16f 0%, #c9a24b 100%);
  box-shadow:
    0 10px 28px rgba(14, 11, 31, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 24px rgba(201, 162, 75, 0.22);
  animation: float-zodiac 4.2s ease-in-out infinite;
  overflow: hidden;
  pointer-events: none;
  transform: translate3d(0, 0, 40px);
  z-index: 5;
}

.floating-zodiac picture,
.floating-zodiac img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #1b1438;
}

.floating-zodiac.zodiac-1 {
  top: 10%;
  right: -10px;
  animation-delay: 0s;
}

.floating-zodiac.zodiac-2 {
  top: 44%;
  left: -22px;
  animation-delay: -1.4s;
}

.floating-zodiac.zodiac-3 {
  bottom: 16%;
  right: 2px;
  animation-delay: -2.8s;
}

.floating-card img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.card-1 {
  top: 10%;
  right: -20px;
  animation-delay: 0s;
}

.card-2 {
  top: 50%;
  left: -30px;
  animation-delay: 1s;
}

.card-3 {
  bottom: 20%;
  right: -10px;
  animation-delay: 2s;
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 1000px;
  margin: 0 auto;
}

/* Features Section */
.features {
  padding: var(--spacing-xxl) 0;
  /* Более мягкий фон блока с возможностями в фирменных цветах */
  background: linear-gradient(180deg, #FBF6EF 0%, #ffffff 55%, #FBF6EF 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
}

.feature-card {
  background: white;
  padding: var(--spacing-xl);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-card--with-image {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: linear-gradient(165deg, #ffffff 0%, #fbf6ef 42%, #f6ecf6 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 12px 40px rgba(15, 23, 42, 0.07);
}

.feature-card--with-image:hover {
  border-color: rgba(201, 162, 75, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 20px 48px rgba(201, 162, 75, 0.12);
}

.feature-card--with-image .feature-text {
  flex: 1 1 auto;
  max-width: min(58%, 26rem);
  min-width: 0;
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  color: white;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Превью экрана приложения в карточке фичи */
.feature-demo-wrap {
  flex: 0 0 auto;
  width: 132px;
  height: 204px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(201, 162, 75, 0.22);
  background: #0e0b1f;
  box-shadow:
    0 14px 36px rgba(27, 20, 56, 0.2),
    0 4px 10px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.feature-demo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: #0e0b1f;
}

.feature-card--with-image:hover .feature-demo-wrap {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 75, 0.52);
  box-shadow:
    0 22px 48px rgba(27, 20, 56, 0.28),
    0 8px 20px rgba(201, 162, 75, 0.1);
}

/* How It Works Section (Путь до образа) */
.how-it-works {
  padding: var(--spacing-xxl) 0;
  background:
    radial-gradient(
      circle at top left,
      rgba(227, 193, 111, 0.16),
      transparent 55%
    ),
    linear-gradient(180deg, #FBF6EF 0%, #ffffff 55%, #FBF6EF 100%);
}

.how-it-works .section-header {
  margin-bottom: var(--spacing-xl);
}

.how-it-works .section-subtitle {
  color: var(--text-secondary);
}

.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-xl);
}

.how-step {
  position: relative;
  padding: var(--spacing-xl);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.how-step::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 4px solid transparent;
  background: linear-gradient(90deg, var(--primary-color), #9b7bd4) border-box;
  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.how-step-number {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: var(--spacing-xs);
}

.how-step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: var(--spacing-sm);
}

.how-step-text {
  color: var(--text-secondary);
}

/* Platforms Section */
.platforms {
  padding: var(--spacing-xxl) 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(155, 123, 212, 0.22),
      transparent 55%
    ),
    linear-gradient(180deg, #ffffff 0%, #FBF6EF 100%);
}

.platforms-header {
  max-width: 720px;
  margin: 0 auto var(--spacing-xxl);
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-xl);
}

.platforms-grid--single {
  max-width: 560px;
  margin: 0 auto;
}

.platform-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: var(--spacing-xl);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.platform-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--primary-gradient);
  opacity: 0.08;
  z-index: -1;
}

.platform-card--android::after,
.platform-card--ios::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.55;
  z-index: -1;
}

.platform-card--android::after {
  right: -60px;
  bottom: -80px;
  background: radial-gradient(circle, #4ecdc4 0%, transparent 70%);
}

.platform-card--ios::after {
  right: -60px;
  bottom: -80px;
  background: radial-gradient(circle, #C9A24B 0%, transparent 70%);
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
}

.platform-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;
}

.platform-card--ios .platform-badge::before {
  background: #9b7bd4;
}

.platform-card--ios .glass-btn.secondary {
  background: #111827;
  color: #f9fafb;
  border-color: #111827;
}

.platform-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #111827;
}

.platform-text {
  color: #111827;
  max-width: 420px;
}

.platform-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--spacing-md);
}

.platform-list li {
  position: relative;
  padding-left: 20px;
  color: #111827;
  font-size: 0.98rem;
}

.platform-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: 0;
  color: var(--primary-color);
}

.platform-hint {
  margin-top: var(--spacing-sm);
  font-size: 0.9rem;
  color: #6b7280;
}

/* Testimonials Section — современный блок отзывов */
.testimonials {
  padding: var(--spacing-xxl) 0;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(201, 162, 75, 0.08),
      transparent 50%
    ),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
}

.testimonials .section-title {
  color: #0f172a;
  background: none;
  -webkit-text-fill-color: #0f172a;
}

.testimonials .section-subtitle {
  color: #475569;
  font-size: 1.1rem;
  line-height: 1.6;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  align-items: stretch;
}

.testimonial-card {
  background: #ffffff;
  padding: var(--spacing-xl) var(--spacing-lg);
  border-radius: 20px;
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.testimonial-card:hover {
  box-shadow: 0 12px 40px rgba(201, 162, 75, 0.12);
  border-color: rgba(201, 162, 75, 0.15);
  transform: translateY(-4px);
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 4px 0 0 4px;
}

.testimonial-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.quote-icon {
  color: var(--primary-color);
  opacity: 0.7;
  flex-shrink: 0;
}

.quote-icon svg {
  width: 28px;
  height: 28px;
}

.testimonial-content p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #1e293b;
  font-style: normal;
  margin: 0;
  position: relative;
  flex: 1;
}

.rating {
  display: flex;
  gap: 4px;
  margin-bottom: var(--spacing-md);
}

.star {
  color: #f59e0b;
  font-size: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding-top: var(--spacing-md);
  margin-top: auto;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f1f5f9;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.testimonial-card:hover .author-avatar {
  border-color: rgba(201, 162, 75, 0.3);
}

.author-info {
  min-width: 0;
}

.author-name {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 2px;
  font-size: 0.95rem;
  line-height: 1.3;
}

.author-role {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* CTA Section */
.cta-section {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #4A327A 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: white;
  margin-bottom: var(--spacing-md);
}

.cta-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.cta-features {
  display: flex;
  gap: var(--spacing-xl);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
}

.cta-icon {
  color: #3bb272;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  padding: 4px;
  width: 32px;
  height: 32px;
}

/* Footer */
.footer {
  background:
    radial-gradient(
      circle at top right,
      rgba(155, 123, 212, 0.16),
      transparent 55%
    ),
    linear-gradient(180deg, #fbf6ef 0%, #f6ecf6 100%);
  color: #0f172a;
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
  border-top: 1px solid rgba(201, 162, 75, 0.18);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-xxl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.footer-brand .logo-text {
  color: #0f172a;
  background: none;
  -webkit-text-fill-color: var(--primary-color);
}

.footer-description {
  color: #475569;
  margin-top: var(--spacing-sm);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-xl);
}

.footer-title {
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: #0f172a;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin-bottom: var(--spacing-xs);
}

.footer-link {
  color: #334155;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--primary-color);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(201, 162, 75, 0.2);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-copyright {
  color: #64748b;
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--primary-gradient);
  transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes float-zodiac {
  0%,
  100% {
    transform: translate3d(0, 0, 40px);
  }
  50% {
    transform: translate3d(0, -8px, 40px);
  }
}

@keyframes starGlow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Simplified animations only */

/* Enhanced animation classes - Simplified */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
  will-change: transform, opacity;
}

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

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

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.bounce-in {
  opacity: 0;
  transform: scale(0.3);
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bounce-in.visible {
  opacity: 1;
  transform: scale(1);
}

.rotate-in {
  opacity: 0;
  transform: rotate(-180deg);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rotate-in.visible {
  opacity: 1;
  transform: rotate(0deg);
}

/* Hover animations for cards - Simplified */
.feature-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Staggered animations */
.features-grid .feature-card:nth-child(1) {
  animation-delay: 0.1s;
}
.features-grid .feature-card:nth-child(2) {
  animation-delay: 0.2s;
}
.features-grid .feature-card:nth-child(3) {
  animation-delay: 0.3s;
}
.features-grid .feature-card:nth-child(4) {
  animation-delay: 0.4s;
}
.features-grid .feature-card:nth-child(5) {
  animation-delay: 0.5s;
}
.features-grid .feature-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Continuous animations - simplified */
.floating-card {
  animation: float 4s ease-in-out infinite;
}

/* Button press animation — мгновенный «отклик на нажатие» (Emil: scale 0.95–0.98) */
.glass-btn:active {
  transform: scale(0.97);
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201, 162, 75, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(201, 162, 75, 0.4);
}

.scroll-to-top:active {
  transform: translateY(-1px);
}

/* Loading animation for buttons */
.glass-btn.loading {
  position: relative;
  color: transparent;
}

.glass-btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Parallax elements */
.parallax-element {
  will-change: transform;
}

/* Smooth reveal for sections */
.section-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-xl);
  }

  .slider-controls {
    gap: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .hero-container {
    padding-top: 40px;
  }
  .nav-container {
    margin: 0;
    padding: 10px 10px;
  }
  .platform-card {
    padding: var(--spacing-lg);
  }
  .how-step {
    padding: var(--spacing-lg);
  }
  .nav-menu {
    display: none;
  }

  .nav-cta {
    display: none;
  }

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

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card--with-image {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-card--with-image .feature-text {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--spacing-sm);
    row-gap: var(--spacing-sm);
    align-items: center;
    max-width: 100%;
  }

  .feature-card--with-image .feature-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
  }

  .feature-card--with-image .feature-title {
    margin-bottom: 0;
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .feature-card--with-image .feature-description {
    grid-column: 1 / -1;
  }

  .feature-demo-wrap {
    align-self: center;
    width: min(148px, 42vw);
    height: min(228px, 64vw);
    margin-top: 0.35rem;
  }

  .feature-demo-image {
    width: 100%;
    height: 100%;
  }

  .testimonials-slider {
    margin: 0 var(--spacing-sm);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: var(--spacing-lg);
    min-height: auto;
  }

  .slider-controls {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }

  .trial-card {
    padding: var(--spacing-lg);
  }

  .guarantee-items {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-features {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
    max-width: 280px;
    margin: 0 auto;
    text-align: left;
  }
  .cta-feature {
    align-items: center;
    text-align: left;
  }
  .cta-feature span {
    text-align: left;
  }
  .cta-icon {
    flex: 0 0 32px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .hero-container {
    padding: var(--spacing-sm) var(--spacing-sm);
    gap: 0;
  }

  .hero-subtitle {
    margin-bottom: var(--spacing-md);
  }

  .floating-card,
  .floating-zodiac {
    display: none;
  }

  .phone-mockup {
    transform: none;
  }

  .feature-card,
  .testimonial-card {
    padding: var(--spacing-lg);
  }

  .testimonial-card {
    padding: var(--spacing-md);
  }

  .testimonial-card {
    padding: var(--spacing-md);
  }

  .author-avatar {
    width: 44px;
    height: 44px;
  }

  .testimonial-content p {
    font-size: 1rem;
  }

  .slider-dots {
    gap: var(--spacing-xs);
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .plan-price .price {
    font-size: 2.5rem;
  }

  .trial-icon {
    width: 60px;
    height: 60px;
  }

  /* Fix mobile button sizes */
  .glass-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .glass-btn.large {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .hero-cta .glass-btn {
    width: 100%;
    max-width: 280px;
  }

  .cta-buttons .glass-btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(201, 162, 75, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201, 162, 75, 0.4);
}

.back-to-top:active {
  transform: translateY(-1px);
}

/* Additional animation styles */
.testimonial-card {
  will-change: transform;
}

.feature-icon {
  will-change: transform;
  transition: transform 0.3s ease;
}

.step-number {
  will-change: transform;
  transition: transform 0.3s ease;
}

/* Enhanced button animations */
.glass-btn {
  will-change: transform, box-shadow;
  position: relative;
  overflow: hidden;
}

.glass-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.glass-btn:active::after {
  width: 300px;
  height: 300px;
}

/* Improved card hover effects */
.feature-card,
.testimonial-card {
  will-change: transform, box-shadow;
}

/* Smooth transitions for all interactive elements */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Performance optimizations */
.hero-visual,
.floating-card,
.parallax-element {
  transform: translateZ(0);
  backface-visibility: hidden;
}

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

  .floating-card,
  .floating-zodiac {
    animation: none !important;
  }

  .slider-track {
    transition: none !important;
  }
}

/* Focus styles for better accessibility */
.glass-btn:focus,
.slider-btn:focus,
.dot:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .glass-btn {
    border: 2px solid currentColor;
  }

  .testimonial-card {
    border: 1px solid currentColor;
  }
}

/* FAQ */
.faq {
  padding: var(--spacing-xxl) 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.faq-item {
  background: white;
  border: 1px solid rgba(201, 162, 75, 0.15);
  border-radius: 16px;
  padding: 0 var(--spacing-lg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

.faq-item[open] {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
  padding: var(--spacing-md) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 var(--spacing-md);
  color: var(--text-secondary-app);
  line-height: 1.6;
}

/* ============================================================
   Motion polish (Emil Kowalski) — цвета и контент не меняем,
   добавляем только живость: easing, отклик на нажатие, движение.
   ============================================================ */

/* Плавный фундамент для микродвижения (только transform/box-shadow) */
.feature-icon,
.platform-card,
.how-step,
.faq-item {
  transition:
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out);
}

/* Hover-микроанимации — только на устройствах с настоящим наведением */
@media (hover: hover) and (pointer: fine) {
  /* Иконка фичи слегка оживает вместе с карточкой */
  .feature-card:hover .feature-icon {
    transform: translateY(-2px) scale(1.06) rotate(-3deg);
  }

  /* Карточки платформ — мягкий подъём */
  .platform-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
  }

  /* Шаги «как это работает» — лёгкий подъём */
  .how-step:hover {
    transform: translateY(-4px);
  }

  /* FAQ-карточка чуть приподнимается при наведении */
  .faq-item:hover {
    transform: translateY(-2px);
  }
}

/* Единый отклик на нажатие (Emil: вдавливание scale 0.95–0.98) */
.back-to-top:active,
.scroll-to-top:active {
  transform: scale(0.97);
}

/* FAQ-«плюс» крутится сильной кривой, а не слабым ease */
.faq-question::after {
  transition: transform 240ms var(--ease-out);
}

/* Плавающие знаки зодиака колышутся вразнобой */
.floating-zodiac.zodiac-2 {
  animation-delay: -1.3s;
}
.floating-zodiac.zodiac-3 {
  animation-delay: -2.6s;
}

/* Reduced-motion: оставляем opacity/цвет, убираем именно движение */
@media (prefers-reduced-motion: reduce) {
  .feature-card:hover .feature-icon,
  .platform-card:hover,
  .how-step:hover,
  .faq-item:hover,
  .glass-btn:active {
    transform: none !important;
  }

  .feature-card--with-image:hover .feature-demo-wrap {
    transform: none !important;
  }
}

/* ============================================================
   REDESIGN (референс mywearai): glass-шапка, премиальный hero +
   волна, блок статистики, блок «Почему выбирают», glass-меню.
   Палитра Архетории: золото #C9A24B → лаванда #9B7BD4 → космос #1B1438.
   ============================================================ */

/* ---------- 1. Glass-шапка: плавающая «пилюля» (frosted) ---------- */
.header {
  position: fixed;
  top: 14px;
  left: 16px;
  right: 16px;
  margin-inline: auto;
  max-width: 1180px;
  width: auto;
  border-radius: 22px;
  border: none;
  background: transparent;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.12);
  transition: box-shadow 320ms var(--ease-out);
}

/* Стекло шапки вынесено в ::before — тогда сама .header НЕ является
   backdrop-root, и вложенное мобильное меню может само размывать фон. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  transition: background 320ms var(--ease-out);
}

/* Чуть плотнее + глубже тень при скролле */
.header.scrolled {
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.16);
}
.header.scrolled::before {
  background: rgba(255, 255, 255, 0.66);
}

/* Контент hero не должен заезжать под плавающую шапку */
.hero {
  padding-top: clamp(88px, 12vh, 120px);
}

/* Фолбэк, если backdrop-filter не поддерживается / выключена прозрачность */
@supports not (
  (backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))
) {
  .header::before {
    background: rgba(255, 255, 255, 0.92);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .header::before {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ---------- 2. Hero: глубина и «дорогой» воздух ---------- */
.hero {
  background:
    radial-gradient(
      110% 95% at 8% 4%,
      rgba(251, 231, 178, 0.55) 0%,
      rgba(227, 193, 111, 0.28) 28%,
      transparent 58%
    ),
    radial-gradient(
      85% 75% at 92% 88%,
      rgba(155, 123, 212, 0.38) 0%,
      rgba(110, 79, 163, 0.15) 40%,
      transparent 62%
    ),
    radial-gradient(
      70% 55% at 50% 105%,
      rgba(74, 50, 122, 0.45) 0%,
      transparent 65%
    ),
    linear-gradient(
      155deg,
      #8a6b2e 0%,
      #6e4fa3 26%,
      #4a327a 54%,
      #1b1438 78%,
      #0e0b1f 100%
    );
  padding-bottom: clamp(90px, 13vh, 150px);
}

/* Зерно меняем на мягкое золотое и лиловое свечение */
.hero::before {
  background:
    radial-gradient(
      44% 44% at 18% 18%,
      rgba(251, 231, 178, 0.22),
      transparent 68%
    ),
    radial-gradient(
      38% 38% at 82% 72%,
      rgba(155, 123, 212, 0.14),
      transparent 70%
    );
  opacity: 1;
}

/* Бейдж-рейтинг над заголовком */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: var(--spacing-md);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.hero-eyebrow svg {
  color: #ffd76a; /* золотая звезда — общепринятая конвенция рейтинга */
  flex: 0 0 auto;
}

/* Премиальная primary-кнопка в hero */
.hero .glass-btn.primary {
  padding: 16px 34px;
  font-size: 1.05rem;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
}

/* ---------- 3. Волна-переход внизу hero ---------- */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 2;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: clamp(60px, 8vw, 120px);
}
.hero-wave path {
  fill: #FBF6EF; /* = фон секции статистики ниже */
}

/* ---------- 4. Блок статистики ---------- */
.stats {
  background: linear-gradient(180deg, #FBF6EF 0%, #ffffff 100%);
  padding: clamp(2rem, 5vw, 3.5rem) 0 var(--spacing-xxl);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}
.stat-card {
  background: linear-gradient(165deg, #ffffff 0%, #fbf6ef 100%);
  border: 1px solid rgba(201, 162, 75, 0.14);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.25rem) var(--spacing-lg);
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 12px 30px rgba(15, 23, 42, 0.05);
  transition:
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out);
}
.stat-value {
  display: block;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: #4A327A;
  white-space: nowrap;
}
.stat-caption {
  display: block;
  margin-top: 10px;
  color: var(--text-secondary-app);
  font-size: 0.95rem;
}

/* ---------- 5. Блок «Почему выбирают ELWEAR?» ---------- */
.why {
  background: #ffffff;
  padding: var(--spacing-xxl) 0;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}
.why-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #f6ecf6 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 16px 40px rgba(15, 23, 42, 0.06);
  transition:
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out);
}
/* Ряд «иконка слева + заголовок справа» — на всех размерах */
.why-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--spacing-md);
}
.why-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(201, 162, 75, 0.12);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.25;
  color: var(--text-main);
}
.why-text {
  color: var(--text-secondary-app);
  line-height: 1.6;
}
.why-divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
  margin: var(--spacing-lg) 0 var(--spacing-md);
  margin-top: auto; /* прижимаем цифру к низу карточки */
}
.why-stat {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--primary-color);
}
.why-stat-label {
  display: block;
  margin-top: 6px;
  color: var(--text-muted-app);
  font-size: 0.9rem;
}

@media (hover: hover) and (pointer: fine) {
  .stat-card:hover,
  .why-card:hover {
    transform: translateY(-6px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 24px 56px rgba(201, 162, 75, 0.14);
  }
}

/* ---------- 6. Glass мобильное меню ---------- */
.nav-menu__cta {
  display: none;
}

/* Полноэкранная размывающая подложка под открытым меню.
   На уровне body → backdrop-filter реально размывает страницу. */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900; /* ниже шапки (1000), выше контента */
  background: rgba(27, 20, 56, 0.32);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 260ms var(--ease-out),
    visibility 0s linear 260ms;
}
.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 260ms var(--ease-out);
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 14px 14px;
    border-radius: 22px;
    /* Матовая панель в цветах бренда */
    background: linear-gradient(
      180deg,
      rgba(110, 79, 163, 0.94) 0%,
      rgba(27, 20, 56, 0.96) 100%
    );
    backdrop-filter: blur(26px) saturate(150%);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    border: none;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    /* спрятано до открытия */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    transition:
      opacity 240ms var(--ease-out),
      transform 240ms var(--ease-out),
      visibility 0s linear 240ms;
  }

  .nav-menu.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition:
      opacity 240ms var(--ease-out),
      transform 240ms var(--ease-out);
  }

  .nav-menu .nav-link {
    display: block;
    padding: 12px 6px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
  }
  .nav-menu .nav-link::after {
    display: none;
  }

  .nav-menu__cta {
    display: block;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  /* Белая кнопка на синей панели (как App Store у референса) */
  .nav-menu__cta .glass-btn.primary {
    background: #fff;
    color: var(--primary-color);
    border: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  }

  @supports not (
    (backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))
  ) {
    .nav-menu {
      background: linear-gradient(180deg, #6e4fa3 0%, #1b1438 100%);
    }
  }
}

@media (prefers-reduced-transparency: reduce) and (max-width: 768px) {
  .nav-menu {
    background: linear-gradient(180deg, #6e4fa3 0%, #1b1438 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ---------- Адаптив новых блоков ---------- */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  .why-grid {
    grid-template-columns: 1fr;
  }

  /* «Почему выбирают»: компактнее на мобиле (ряд иконка+заголовок — в .why-head) */
  .why-card {
    padding: var(--spacing-lg);
  }
  .why-head {
    gap: 12px;
    margin-bottom: var(--spacing-sm);
  }
  .why-icon {
    width: 48px;
    height: 48px;
  }
  .why-title {
    font-size: 1.15rem;
  }
  .why-divider {
    margin-top: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .hero-eyebrow {
    font-size: 0.78rem;
    padding: 6px 12px;
  }
}

/* Reduced-motion для новых интерактивов */
@media (prefers-reduced-motion: reduce) {
  .stat-card:hover,
  .why-card:hover {
    transform: none !important;
  }
}

/* ============================================================
   7. Контраст шапки на тёмном hero → светлые элементы,
      под лого светлая подложка-чип. При скролле (.scrolled)
      всё возвращается к тёмному, чип исчезает.
   ============================================================ */

/* Лого в шапке: постоянный паддинг (без сдвига при смене состояния),
   светлый чип на hero, прозрачный при скролле. Только в .header — в
   футере подложка не нужна. */
.header .logo {
  padding: 6px 14px 3px 5px;
  border-radius: 22px; /* тот же радиус, что у шапки и меню */
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  transition:
    background-color 320ms var(--ease-out),
    box-shadow 320ms var(--ease-out);
}
.header.scrolled .logo {
  background: transparent;
  box-shadow: none;
}

/* На синем (не проскроллено) гамбургер белый */
.header:not(.scrolled) .mobile-menu-toggle span {
  background: #fff;
}

/* Десктоп: пункты меню белые на синем (на мобиле они в светлом
   выпадающем меню — остаются тёмными) */
@media (min-width: 769px) {
  .header:not(.scrolled) .nav-link {
    color: #fff;
  }
  .header:not(.scrolled) .nav-link:hover {
    color: rgba(255, 255, 255, 0.82);
  }
  .header:not(.scrolled) .nav-link::after {
    background: #fff;
  }
}

/* Фолбэк для чипа лого, если прозрачность выключена */
@media (prefers-reduced-transparency: reduce) {
  .header .logo {
    background: #fff;
  }
  .header.scrolled .logo {
    background: transparent;
  }
}
