/*
Theme Name: Hibiny Tour Rating
Theme URI: https://glukofolse.ru/
Author: Hibiny Team
Description: Независимый рейтинг туров в Хибины
Version: 1.0
*/

:root {
  --primary: #0d6efd;
  --primary-light: #e7f1ff;
  --success: #10b981;
  --danger: #ef4444;
  --dark: #0b1120;
  --light: #f8fafc;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fa;
  color: #111827;
  line-height: 1.6;
}

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

/* HEADER */
.header {
  background: var(--dark);
  color: #e5e7eb;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-weight: 700;
  font-size: clamp(18px, 4vw, 22px);
  color: white;
}

.nav {
  display: flex;
  gap: 16px;
}

.nav a {
  color: #e5e7eb;
  font-size: clamp(14px, 3.5vw, 16px);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* HERO SECTION - МОБИЛЬНАЯ ОПТИМИЗАЦИЯ */
.hero {
  padding: clamp(24px, 8vh, 60px) 0 clamp(20px, 6vh, 32px);
  background: linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
  color: #f9fafb;
  overflow: hidden;
}

.hero__title {
  font-size: clamp(28px, 8vw, 48px); /* Меньше на мобиле */
  font-weight: 700;
  margin-bottom: clamp(12px, 4vw, 20px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(14px, 4vw, 18px);
  max-width: 100%;
  opacity: 0.95;
  margin-bottom: clamp(20px, 6vw, 32px);
  line-height: 1.5;
}

/* ФИЛЬТРЫ НА МОБИЛЕ */
.hero__filters {
  margin-top: 20px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr; /* Мобильная сетка */
  gap: 12px;
}

@media (min-width: 768px) {
  .hero__filters {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

/* SECTION */
.section {
  padding: clamp(24px, 8vw, 48px) 0;
}

.section__title {
  font-size: clamp(22px, 6vw, 32px);
  font-weight: 600;
  margin-bottom: 12px;
}

.section__subtitle {
  font-size: clamp(14px, 3.5vw, 16px);
  color: #6b7280;
  margin-bottom: 24px;
}

/* TOURS GRID */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(12px, 4vw, 20px);
}

/* TOUR CARD */
.tour-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  transition: all 0.3s ease;
}

.tour-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.tour-card__title {
  font-weight: 600;
  font-size: clamp(15px, 4vw, 18px);
  line-height: 1.3;
  margin-bottom: 8px;
}

.tour-card__meta {
  font-size: clamp(12px, 3vw, 14px);
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tour-card__price {
  font-weight: 700;
  font-size: clamp(18px, 5vw, 24px);
  margin-top: auto;
  color: var(--primary);
}

.rating-badge {
  background: #ecfdf5;
  color: #166534;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 500;
}

/* TRUST BAR */
.trust-bar {
  display: flex;
  gap: 12px;
  font-size: clamp(12px, 3vw, 14px);
  margin-top: 12px;
}

/* FAQ */
.faq {
  border-top: 1px solid #e5e7eb;
  margin-top: 24px;
  padding-top: 24px;
}

.faq-item {
  margin-bottom: 16px;
}

.faq-item__question {
  font-weight: 600;
  cursor: pointer;
  font-size: clamp(14px, 4vw, 16px);
}

/* BADGES */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: clamp(11px, 3vw, 12px);
  background: #f1f5f9;
  color: #475569;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 576px) {
  .container {
    padding: 0 12px;
  }
  
  .hero {
    padding: 32px 0 24px;
  }
  
  .hero__title {
    font-size: 28px;
    margin-bottom: 16px;
  }
  
  .hero__filters {
    padding: 16px;
    margin-top: 24px;
  }
  
  .tours-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .tour-card {
    padding: 16px;
  }
}

/* TABLET */
@media (min-width: 768px) {
  .hero__title {
    font-size: 40px;
  }
}

/* HOVER EFFECTS */
.tour-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* SCROLLBAR (Webkit) */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
/* --- НОВАЯ ШАПКА --- */
.site-header {
  position: absolute; /* Шапка лежит поверх фото */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
}

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

.brand-logo {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 24px;
  font-size: 15px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.header-btn {
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.4);
  transition: all 0.3s;
}

.header-btn:hover {
  background: #fff;
  color: #333;
}

/* --- ГЛАВНЫЙ ЭКРАН (HERO) --- */
.hero-section {
  position: relative;
  height: 600px; /* Высота главного блока */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  /* Замени ссылку на свою картинку фона */
  background: url('https://xn----9sbubztnil8d.xn--p1ai/wp-content/uploads/2026/02/Bezymiannyi.jpg') center/cover no-repeat;
  margin-bottom: 40px;
}

/* Затемнение фона, чтобы текст читался */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-label {
  display: inline-block;
  background: #0d6efd;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(32px, 6vw, 56px); /* Крупный заголовок */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(16px, 3vw, 20px);
  opacity: 0.9;
  margin-bottom: 40px;
  line-height: 1.5;
}

/* --- КРУПНЫЕ ПРЕИМУЩЕСТВА --- */
.features-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.15); /* Стекло */
  padding: 10px 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.feature-icon {
  font-size: 20px;
}

.feature-text {
  font-weight: 600;
  font-size: 15px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .site-header { padding: 15px 0; }
  .main-nav { display: none; } /* Скрываем меню на мобиле (нужен бургер, но пока просто скроем лишнее) */
  .brand-logo { font-size: 18px; }
  .header-btn { padding: 6px 12px; font-size: 13px; }
  
  .hero-section { height: 500px; }
  .features-grid { flex-direction: column; gap: 10px; align-items: center; }
  .feature-item { width: 100%; justify-content: center; }
}
