/* Ленивый ЗОЖ - Стили для Tilda */

/* Шрифты */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700&family=Comfortaa:wght@400;600;700&display=swap');

/* CSS Переменные для цветов */
:root {
  /* Основные цвета - мягкие и приглушенные */
  --bg-color: hsl(32, 50%, 98%);
  --text-color: hsl(20, 15%, 25%);
  --card-bg: hsl(32, 40%, 96%);
  
  /* Нежный мятный как основной */
  --primary-color: hsl(150, 25%, 45%);
  --primary-light: hsl(150, 35%, 85%);
  --primary-bg: hsl(32, 50%, 98%);
  
  /* Теплый персиковый для secondary */
  --secondary-color: hsl(15, 40%, 88%);
  --secondary-dark: hsl(20, 15%, 25%);
  
  /* Мягкие дополнительные тона */
  --muted-color: hsl(20, 8%, 55%);
  --muted-bg: hsl(32, 30%, 92%);
  
  /* Терракотовый для акцентов */
  --accent-color: hsl(25, 35%, 75%);
  
  /* Приглушенный оливковый */
  --nature-color: hsl(85, 20%, 50%);
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, hsl(150, 35%, 85%) 0%, hsl(15, 40%, 88%) 100%);
  --gradient-warm: linear-gradient(180deg, hsl(32, 50%, 98%) 0%, hsl(15, 40%, 92%) 100%);
  --gradient-nature: linear-gradient(135deg, hsl(85, 25%, 85%) 0%, hsl(150, 30%, 85%) 100%);
  
  /* Тени */
  --shadow-soft: 0 4px 20px -4px hsl(20, 15%, 25%, 0.1);
  --shadow-warm: 0 8px 30px -8px hsl(25, 35%, 75%, 0.15);
  
  --border-radius: 1rem;
}

/* Базовые стили */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.font-heading {
  font-family: 'Comfortaa', sans-serif;
}

/* Контейнер */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Типографика */
h1, h2, h3 {
  font-family: 'Comfortaa', sans-serif;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p, li {
  line-height: 1.75;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--primary-bg);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: hsl(150, 30%, 40%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid hsl(150, 25%, 45%, 0.3);
}

.btn-outline:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* Карточки */
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid hsl(32, 25%, 88%);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-warm);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: calc(var(--border-radius) - 4px);
  margin-bottom: 1rem;
}

.card-square {
  aspect-ratio: 1;
}

.card-video {
  aspect-ratio: 16/9;
}

/* Бейджи */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-primary {
  background: var(--primary-light);
  color: var(--primary-color);
}

.badge-accent {
  background: hsl(25, 35%, 75%, 0.3);
  color: var(--secondary-dark);
}

.badge-nature {
  background: hsl(85, 20%, 50%, 0.2);
  color: var(--nature-color);
}

/* Анимации */
@keyframes gentle-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes fade-in-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.gentle-float {
  animation: gentle-float 6s ease-in-out infinite;
}

.fade-in-up {
  animation: fade-in-up 0.6s ease-out;
}

.breathe {
  animation: breathe 4s ease-in-out infinite;
}

/* Градиентные фоны */
.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-warm {
  background: var(--gradient-warm);
}

.bg-gradient-nature {
  background: var(--gradient-nature);
}

/* Утилиты */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-muted { color: var(--muted-color); }
.text-nature { color: var(--nature-color); }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-5 { padding: 3rem 0; }
.py-6 { padding: 4rem 0; }
.py-7 { padding: 5rem 0; }

/* Сетка */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

/* Флекс */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.flex-wrap {
  flex-wrap: wrap;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Адаптивность */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
}

/* Специфичные стили для блоков */

/* Header */
.header {
  background: var(--bg-color);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(32, 25%, 88%);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary-color);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-bg);
  font-size: 0.8rem;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--muted-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-warm);
  opacity: 0.8;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
}

.hero-decorations {
  position: absolute;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  opacity: 0.3;
}

.hero-decoration-1 {
  top: 5rem;
  right: 5rem;
  background: var(--primary-light);
  animation: gentle-float 6s ease-in-out infinite;
}

.hero-decoration-2 {
  bottom: 8rem;
  left: 4rem;
  background: var(--accent-color);
  width: 96px;
  height: 96px;
  animation: gentle-float 6s ease-in-out infinite 2s;
}

.hero-decoration-3 {
  top: 50%;
  left: 2.5rem;
  background: var(--nature-color);
  width: 64px;
  height: 64px;
  opacity: 0.25;
  animation: gentle-float 6s ease-in-out infinite 4s;
}

/* Footer */
.footer {
  background: var(--card-bg);
  border-top: 1px solid hsl(32, 25%, 88%);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-bottom {
  border-top: 1px solid hsl(32, 25%, 88%);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  color: var(--muted-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-decorations {
    display: none;
  }
}