/* ===================================
   КРОКУС — СТИЛИ ГЛАВНОЙ СТРАНИЦЫ
=================================== */

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #1a2a4a 0%, #14213b 35%, #0d1a2e 70%, #0a1424 100%);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* Логотип в hero */
.hero-logo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 8px 30px rgba(240,122,26,0.35));
  animation: logoFloat 5s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Звёзды */
.hero-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8%  12%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px   1px   at 22% 6%,  rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(2px   2px   at 38% 18%, rgba(95,168,232,0.7) 0%, transparent 100%),
    radial-gradient(1px   1px   at 52% 4%,  rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 67% 10%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px   1px   at 81% 16%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(2px   2px   at 93% 8%,  rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px   1px   at 14% 32%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px   1px   at 45% 25%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 75% 28%, rgba(95,168,232,0.5) 0%, transparent 100%),
    radial-gradient(1px   1px   at 3%  42%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px   1px   at 58% 35%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(2px   2px   at 88% 22%, rgba(255,255,255,0.6) 0%, transparent 100%);
  animation: starTwinkle 5s ease-in-out infinite alternate;
}
@keyframes starTwinkle { 0%{opacity:.7} 100%{opacity:1} }

/* Тёплое закатное небо (как на логотипе) */
.hero-aurora {
  position: absolute; top: 0; left: 0; right: 0; height: 70%;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255,200,120,0.25) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 5%, rgba(240,122,26,0.15) 0%, transparent 60%);
  animation: aurora 7s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes aurora {
  0%   { opacity:.6; transform:scaleX(1); }
  100% { opacity:1;  transform:scaleX(1.06); }
}

/* Горы SVG */
.hero-mountains {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 55%;
}
.hero-mountains svg { width: 100%; height: 100%; }

/* Контент */
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 1.2rem;
  padding: 0 1rem;
  max-width: 100%; /* блок не шире экрана, даже если что-то внутри не влезает */
}

.hero-pre {
  font-size: 1.05rem;
  color: var(--green-bright);
  font-weight: 500;
}

.hero-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(4.5rem, 14vw, 11rem);
  font-weight: 900;
  line-height: 0.9;
  background: linear-gradient(135deg, #ffa94d 0%, #f07a1a 50%, #5fa8e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 50px rgba(240,122,26,0.35));
  letter-spacing: -2px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 480px;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.hero-scroll-line {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 70px;
  background: linear-gradient(to bottom, var(--green-bright), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity:.3; transform:translateX(-50%) scaleY(1); }
  50%      { opacity:1;  transform:translateX(-50%) scaleY(1.15); }
}

/* ===== О ТУРИЗМЕ ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-left .section-title { margin-bottom: 1.5rem; }
.about-left p { font-size: 1rem; line-height: 1.9; }
.about-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-mini-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color var(--transition), background var(--transition);
}
.about-mini-card:hover {
  border-color: var(--card-border-hover);
  background: var(--card-bg-hover);
}
.amc-icon { font-size: 1.8rem; display: block; margin-bottom: 0.7rem; color: var(--gold); }
.about-mini-card h4 { font-family: 'Unbounded', sans-serif; font-size: 0.8rem; margin-bottom: 0.4rem; color: var(--white); }
.about-mini-card p  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* ===== БОЛЬШАЯ СТАТИСТИКА ===== */
.counter-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 2rem 0;
}
.big-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 3rem;
  text-align: center;
}
.count-num {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--green-bright);
  line-height: 1;
}
.big-stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.stats-divider {
  width: 1px;
  height: 60px;
  background: var(--card-border);
  flex-shrink: 0;
}

/* ===== УВЛЕЧЕНИЯ ===== */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.hobby-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}
.hobby-card:hover {
  border-color: var(--card-border-hover);
  background: var(--card-bg-hover);
}
.hobby-icon { font-size: 2rem; margin-bottom: 0.8rem; color: var(--gold); }
.hobby-card h3 { font-family: 'Unbounded', sans-serif; font-size: 0.95rem; margin-bottom: 0.6rem; }
.hobby-card p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ===== ПОСЛЕДНИЕ ПОХОДЫ ===== */
.recent-hikes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.recent-hike {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
  text-decoration: none;
  color: inherit;
}
.recent-hike:hover { border-color: var(--card-border-hover); }
.recent-hike .ridge { height: 120px; }

.rh-body { padding: 1.4rem; }
.rh-body h3 { font-family: 'Unbounded', sans-serif; font-size: 0.95rem; margin: 0.5rem 0 0.4rem; color: var(--white); }
.rh-body p  { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; }

/* ===== БЛИЖАЙШЕЕ СОБЫТИЕ ===== */
.next-event {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.next-event::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
  background: var(--gold);
}
.next-event h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
.next-event p { font-size: 0.95rem; }

.ne-right { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.ne-details { display: flex; flex-direction: column; gap: 0.6rem; }
.ne-detail  { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; }
.ne-detail .icon { color: var(--gold); }

/* ===== ВСТУПИТЬ ===== */
.join-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--card-bg);
  border: 1px solid rgba(95,168,232,0.25);
  border-radius: 20px;
  padding: 3rem;
  flex-wrap: wrap;
}
.jb-text h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.6rem; }
.jb-text p  { font-size: 1rem; max-width: 500px; }
.jb-btns { display: flex; gap: 1rem; flex-shrink: 0; flex-wrap: wrap; }

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
  .about-grid   { gap: 3rem; }
  .hobbies-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .about-grid   { grid-template-columns: 1fr; gap: 2.5rem; }
  .recent-hikes { grid-template-columns: 1fr; }
  .hobbies-grid { grid-template-columns: repeat(2, 1fr); }
  /* minmax(0, 1fr) и перенос строк — иначе длинные строки расписания
     распирали блок и текст обрезался справа на телефонах */
  .next-event   { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .ne-right     { flex-direction: row; justify-content: flex-start; flex-wrap: wrap; }
  .ne-detail    { white-space: normal; align-items: flex-start; }
  .counter-group { gap: 0; }
  .big-stat     { padding: 1rem 1.5rem; }
  .stats-divider { display: none; }
}
@media (max-width: 480px) {
  .hobbies-grid { grid-template-columns: 1fr; }
  .about-cards-grid { grid-template-columns: 1fr; }
  .join-banner  { flex-direction: column; align-items: flex-start; }
  .next-event,
  .join-banner  { padding: 2rem 1.5rem; }
  /* «КРОКУС» шириной примерно 5,3 размера шрифта: на узких телефонах уменьшаем
     заголовок по ширине экрана, иначе он вылезал за края и обрезался */
  .hero-title   { font-size: min(16vw, 4.5rem); }
  .hero-desc br { display: none; } /* ручной перенос строки на узком экране только мешает */
  .hero-btns    { flex-direction: column; width: 100%; }
  .hero-btns .btn { text-align: center; justify-content: center; }
}

/* ===== «ЧЕМ ЖИВЁТ КЛУБ» В ЗАКРЕПЛЁННОМ РЕЖИМЕ =====
   Блок должен целиком помещаться в экран, поэтому на компьютере все пять
   карточек в ряд (компактный вид карточек для планшета и телефона — в global.css) */
@media (min-width: 1100px) {
  .pin-on .hobbies-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
  .pin-on .hobby-card { padding: 1.6rem 1.3rem; }
}
@media (max-width: 1099px) {
  .pin-on .hobbies-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
}
@media (max-width: 600px) {
  .pin-on .hobbies-grid { grid-template-columns: 1fr; gap: 0.5rem; }
}
