/* ============================================
   Аудиопрактики — лендинг
   Дизайн-система: нейтральная палитра «Спокойствие»
   Bootstrap 5.3+
   ============================================ */

:root {
  --bg-primary: #F7F8FA;
  --accent-calm: #5B7B94;
  --accent-calm-hover: #4A6B80;
  --cta-warm: #C2856B;
  --cta-hover: #A86F5A;
  --text-primary: #2D3436;
  --text-secondary: #636E72;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius-btn: 50px;
  --radius-card: 16px;
}

/* ---- Base ---- */
* { box-sizing: border-box; }

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

.font-serif { font-family: 'Cormorant', Georgia, 'Times New Roman', serif; }

/* ---- Utility classes ---- */
.bg-primary-site { background-color: var(--bg-primary) !important; }
.text-accent { color: var(--accent-calm) !important; }
.text-cta { color: var(--cta-warm) !important; }
.border-accent { border-color: var(--accent-calm) !important; }

/* ---- Buttons ---- */
.btn-cta {
  background-color: var(--cta-warm);
  border-color: var(--cta-warm);
  color: #fff;
  padding: 0.6rem 1.75rem;
  border-radius: var(--radius-btn);
  transition: all 0.2s ease;
  font-weight: 500;
}
.btn-cta:hover,
.btn-cta:focus {
  background-color: var(--cta-hover);
  border-color: var(--cta-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-accent {
  color: var(--accent-calm);
  border: 1.5px solid var(--accent-calm);
  background: transparent;
  padding: 0.6rem 1.75rem;
  border-radius: var(--radius-btn);
  transition: all 0.2s ease;
  font-weight: 500;
}
.btn-outline-accent:hover,
.btn-outline-accent:focus {
  background-color: var(--accent-calm);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-cta {
  color: var(--cta-warm);
  border: 1.5px solid var(--cta-warm);
  background: transparent;
  padding: 0.6rem 1.75rem;
  border-radius: var(--radius-btn);
  transition: all 0.2s ease;
  font-weight: 500;
}
.btn-outline-cta:hover,
.btn-outline-cta:focus {
  background-color: var(--cta-warm);
  color: #fff;
  transform: translateY(-2px);
}

/* ---- Badges ---- */
.badge-accent { background-color: var(--accent-calm) !important; }
.badge-cta { background-color: var(--cta-warm) !important; }

.badge-category {
  background-color: rgba(91, 123, 148, 0.12);
  color: var(--accent-calm);
  font-weight: 500;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-btn);
}

/* ---- Cards ---- */
.card {
  border: none;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-preview-locked {
  opacity: 0.65;
  position: relative;
}
.card-preview-locked:hover { opacity: 0.85; }

.card-lock-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(45, 52, 54, 0.75);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 2;
}

.pricing-card {
  border: 2px solid transparent;
}
.pricing-card-featured {
  border-color: var(--cta-warm);
  box-shadow: var(--shadow-md);
}

/* ---- Navbar ---- */
.navbar {
  background-color: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.navbar-brand {
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 600;
}
.navbar-brand:hover { color: var(--accent-calm); }
.navbar-brand i { color: var(--accent-calm); }

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active { color: var(--accent-calm); }

/* ---- Hero ---- */
.hero-section {
  padding-top: 6rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, rgba(91,123,148,0.06) 0%, rgba(194,133,107,0.04) 100%);
}
.hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.15;
  color: var(--text-primary);
}

.hero-illustration {
  width: 100%;
  height: 420px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(91,123,148,0.15) 0%, rgba(194,133,107,0.1) 50%, rgba(91,123,148,0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.hero-illustration .wave-group {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
}
.hero-illustration .wave-bar {
  width: 12px;
  border-radius: 6px;
  background: var(--accent-calm);
  opacity: 0.6;
}
.hero-illustration .wave-bar:nth-child(odd) { background: var(--cta-warm); }

/* ---- Steps ---- */
.step-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.step-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(91, 123, 148, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  color: var(--accent-calm);
}
.step-number {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cta-warm);
  margin-bottom: 0.5rem;
}

/* ---- Practice Cover Placeholders ---- */
.practice-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #fff;
  position: relative;
}
.cover-sleep { background: linear-gradient(135deg, #3B5998, #5B7B94); }
.cover-energy { background: linear-gradient(135deg, #C2856B, #E8A87C); }
.cover-focus { background: linear-gradient(135deg, #2D6A4F, #52B788); }
.cover-antistress { background: linear-gradient(135deg, #6B5B7B, #9B8FAD); }

.practice-cover .play-hint {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
}

/* ---- QR Section ---- */
.qr-section {
  background: linear-gradient(135deg, rgba(91,123,148,0.08) 0%, rgba(194,133,107,0.05) 100%);
}
.qr-input {
  border: 1.5px solid rgba(91, 123, 148, 0.25);
  border-radius: var(--radius-btn);
  padding: 0.75rem 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s;
  max-width: 300px;
  width: 100%;
}
.qr-input:focus {
  border-color: var(--accent-calm);
  box-shadow: 0 0 0 3px rgba(91, 123, 148, 0.12);
}
.qr-input::placeholder {
  letter-spacing: 0.12em;
  color: #b0b8be;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  text-transform: none;
}

/* ---- Testimonials ---- */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--accent-calm);
  border-radius: 50%;
  padding: 1.25rem;
}

/* ---- Footer ---- */
footer {
  background-color: #EBEDF0;
}
footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover { color: var(--cta-warm); }

/* ---- Accessibility ---- */
.btn:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-calm);
  outline-offset: 2px;
}

html { scroll-behavior: smooth; }

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ---- Preview play button ---- */
.preview-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--accent-calm);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  cursor: pointer;
}
.preview-play:hover { background: var(--accent-calm-hover); }
.preview-play.playing { background: var(--cta-warm); }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: rgba(247, 248, 250, 0.98);
    padding: 1rem;
    border-radius: var(--radius-card);
    margin-top: 0.75rem;
    box-shadow: var(--shadow-md);
  }
  .hero-section { text-align: center; padding-top: 5rem; }
  .hero-section .d-flex { justify-content: center; }
  .hero-illustration { height: 280px; margin-top: 2rem; }
  .qr-illustration svg { width: 120px; height: 120px; }
}
@media (max-width: 767.98px) {
  .hero-illustration { height: 220px; }
}

@media print {
  .navbar, .btn, footer { display: none; }
  body { background: #fff; color: #000; }
}
