/* ════════════════════════════════════════════════════════
   БАЗОВЫЕ НАСТРОЙКИ
   ════════════════════════════════════════════════════════ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #2D3748;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ════════════════════════════════════════════════════════
   АНИМАЦИИ
   ════════════════════════════════════════════════════════ */

/* Fade In Up */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up:nth-child(1) { animation-delay: 0.2s; }
.fade-in-up:nth-child(2) { animation-delay: 0.4s; }
.fade-in-up:nth-child(3) { animation-delay: 0.6s; }

/* Fade In при скролле */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Parallax эффект */
.parallax {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Hover эффекты для карточек */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* ════════════════════════════════════════════════════════
   КНОПКИ
   ════════════════════════════════════════════════════════ */

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: #2E8B57;
  color: #FFFFFF !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #257a4a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46,139,87,0.3);
}

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: #2E8B57 !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid #2E8B57;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(46,139,87,0.1);
}

/* ════════════════════════════════════════════════════════
   КАРТОЧКИ МАРШРУТОВ
   ════════════════════════════════════════════════════════ */

.route-card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.route-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.route-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.route-card-content {
  padding: 20px;
}

.route-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #2D3748;
}

.route-card-description {
  font-size: 14px;
  color: #718096;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.route-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.route-tag {
  background: #F7FAFC;
  color: #4A5568;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* Бейдж "Популярно" / "Новинка" */
.route-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 1;
}

.route-badge.popular {
  background: #FF6B6B;
  color: #FFFFFF;
}

.route-badge.new {
  background: #4A90E2;
  color: #FFFFFF;
}

/* ════════════════════════════════════════════════════════
   ФОРМЫ
   ════════════════════════════════════════════════════════ */

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 12px 16px;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  transition: border-color 0.3s ease;
  width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #2E8B57;
}

/* ════════════════════════════════════════════════════════
   СЕТКА И АДАПТАЦИЯ
   ════════════════════════════════════════════════════════ */

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

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  h1 { font-size: 36px !important; }
  h2 { font-size: 28px !important; }
  h3 { font-size: 22px !important; }
}

/* ════════════════════════════════════════════════════════
   УТИЛИТЫ
   ════════════════════════════════════════════════════════ */

.text-center { text-align: center; }
.text-primary { color: #2E8B57; }
.text-accent { color: #FF6B6B; }
.bg-light { background: #F8F9FA; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

/* ════════════════════════════════════════════════════════
   НАВИГАЦИЯ
   ════════════════════════════════════════════════════════ */

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.sticky-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ════════════════════════════════════════════════════════
   КНОПКА "НАВЕРХ"
   ════════════════════════════════════════════════════════ */

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #2E8B57;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 4px 15px rgba(46,139,87,0.4);
}

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

.scroll-to-top:hover {
  background: #257a4a;
  transform: translateY(-3px);
}

