/* ================================================================
   Nesislona — pages.css
   Стили отдельных секций: hero главной, about, science, stories,
   expedition, shop, и стили внутренних страниц
   ================================================================ */

/* ──────────────────────────────────────────────
   ГЛАВНАЯ: HERO
   ────────────────────────────────────────────── */

#hero-home {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 80px;
}
.hero-left {
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px) clamp(40px, 6vw, 80px) clamp(24px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-right {
  height: 100vh;
  position: relative;
  overflow: hidden;
}
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 30%);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(139,94,60,0.1);
  border: 1px solid rgba(139,94,60,0.2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 28px;
  animation: fadeUp .6s ease both;
}
.hero-kicker::before { content: '🐘'; font-size: 14px; }

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeUp .6s .1s ease both;
}
.hero-title em { font-style: italic; color: var(--earth2); }

.hero-sub {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--muted);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 44px;
  animation: fadeUp .6s .2s ease both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp .6s .3s ease both;
}

.hero-scroll {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  animation: fadeUp .6s .4s ease both;
}
.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--muted);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ──────────────────────────────────────────────
   ПРЕВЬЮ РАЗДЕЛОВ (главная)
   ────────────────────────────────────────────── */

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.preview-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.preview-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.preview-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.preview-card:hover .preview-img img { transform: scale(1.05); }
.preview-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.preview-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(139,94,60,0.1);
  color: var(--earth);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.preview-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}
.preview-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}
.preview-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--earth);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
.preview-card:hover .preview-link { gap: 10px; }

/* ──────────────────────────────────────────────
   ABOUT SECTION (главная + about.html)
   ────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-img {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-img-badge {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.badge-icon { font-size: 32px; }
.badge-text { font-size: 13px; color: var(--muted); }
.badge-text strong { display: block; color: var(--text); font-size: 15px; font-weight: 700; }

.about-content { display: flex; flex-direction: column; gap: 24px; }

.about-stat-row { display: flex; gap: 20px; flex-wrap: wrap; }
.about-stat {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  flex: 1 1 120px;
  text-align: center;
  box-shadow: var(--shadow);
}
.about-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  color: var(--earth);
}
.about-stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

.about-text { font-size: clamp(14px, 1.6vw, 16px); color: var(--text2); line-height: 1.8; }

/* About page: команда */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.team-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--bg2);
  margin: 0 auto 16px;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-name { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.team-role { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.team-bio { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* About page: timeline */
.timeline {
  position: relative;
  margin-top: 48px;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 40px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--earth);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(139,94,60,0.2);
}
.timeline-year {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--earth);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.timeline-title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.timeline-text { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ──────────────────────────────────────────────
   SCIENCE PAGE
   ────────────────────────────────────────────── */

.science-bg { background: var(--bg3); color: #f5f0e8; }

.science-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.science-card {
  padding: clamp(28px, 3vw, 48px) clamp(20px, 3vw, 36px);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background .3s;
}
.science-card:hover { background: rgba(255,255,255,0.08); }

.sci-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1;
  color: var(--earth3);
  opacity: .3;
  margin-bottom: 16px;
}
.sci-title { font-size: clamp(16px, 2vw, 20px); font-weight: 700; margin-bottom: 14px; color: #f5f0e8; }
.sci-text { font-size: 14px; color: rgba(245,240,232,0.55); line-height: 1.75; }
.sci-icon { font-size: 36px; margin-bottom: 20px; }

.science-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: none;
  border: none;
  padding: 0;
}
.science-feature:hover { background: none; }
.science-img { overflow: hidden; }
.science-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.science-feature-text {
  padding: clamp(32px, 4vw, 64px) clamp(24px, 4vw, 48px);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.science-feature-text p {
  font-size: clamp(14px, 1.6vw, 16px);
  color: rgba(245,240,232,0.65);
  line-height: 1.8;
  margin-top: 20px;
}

/* Science: статьи */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.article-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .3s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-journal {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 10px;
}
.article-title { font-weight: 700; font-size: 15px; line-height: 1.4; margin-bottom: 10px; }
.article-authors { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.article-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--earth);
  text-decoration: none;
}
.article-link:hover { text-decoration: underline; }

/* ──────────────────────────────────────────────
   STORIES PAGE
   ────────────────────────────────────────────── */

.stories-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
}
.story-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.story-img { overflow: hidden; }
.story-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .4s; display: block; }
.story-card:hover .story-img img { transform: scale(1.04); }

.story-body { padding: clamp(16px, 2vw, 28px); }
.story-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(139,94,60,0.1);
  color: var(--earth);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.story-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}
.story-card:first-child .story-title { font-size: clamp(20px, 2.5vw, 28px); }
.story-excerpt { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.story-footer { display: flex; justify-content: space-between; align-items: center; }
.story-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.story-meta::before { content: '🕐'; font-size: 13px; }
.read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--earth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
.read-more:hover { gap: 10px; }

/* Stories: второй ряд (4 колонки) */
.stories-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.stories-grid-4 .story-title { font-size: clamp(14px, 1.6vw, 16px); }

/* ──────────────────────────────────────────────
   EXPEDITION PAGE
   ────────────────────────────────────────────── */

.expedition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.expedition-img {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.expedition-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.expedition-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.expedition-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: clamp(16px, 2vw, 22px);
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color .2s;
}
.expedition-item:hover { border-color: rgba(139,94,60,0.3); }
.exp-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(139,94,60,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.exp-item-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.exp-item-text { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* Volunteer form */
.volunteer-form {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-lg);
}
.volunteer-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 8px;
}
.volunteer-form .form-desc { font-size: 15px; color: var(--muted); margin-bottom: 32px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text2); }
.form-input,
.form-select,
.form-textarea {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--earth); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-submit {
  margin-top: 8px;
  padding: 15px 40px;
  border-radius: 100px;
  background: var(--earth);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.form-submit:hover { background: var(--earth2); transform: translateY(-2px); }

/* ──────────────────────────────────────────────
   SHOP PAGE
   ────────────────────────────────────────────── */

.merch-bg { background: var(--bg2); }

.merch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.merch-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.merch-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.merch-img {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}
.merch-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
  display: block;
}
.merch-card:hover .merch-img img { transform: scale(1.05); }

.merch-badge-new,
.merch-badge-hit {
  position: absolute;
  top: 14px; left: 14px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.merch-badge-new { background: var(--green); color: #fff; }
.merch-badge-hit { background: var(--earth); color: #fff; }

.merch-body { padding: clamp(16px, 2vw, 20px) clamp(16px, 2vw, 22px) clamp(18px, 2vw, 24px); flex: 1; display: flex; flex-direction: column; }
.merch-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.merch-desc { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.6; flex: 1; }
.merch-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.merch-price { font-size: clamp(18px, 2vw, 22px); font-weight: 800; color: var(--earth); }
.merch-btn {
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--earth);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, transform .2s;
  white-space: nowrap;
}
.merch-btn:hover { background: var(--earth2); transform: scale(1.04); }

/* Shop: cart sidebar */
.shop-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.cart-panel {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}
.cart-panel h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-empty {
  text-align: center;
  padding: 32px 0;
  color: var(--muted);
  font-size: 14px;
}
.cart-empty-icon { font-size: 40px; margin-bottom: 12px; }
#cart-items { min-height: 60px; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-name { font-size: 14px; font-weight: 600; flex: 1; }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--earth); }
.cart-item-remove {
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: none;
  line-height: 1;
  padding: 0 4px;
}
.cart-item-remove:hover { color: #c0392b; }
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 8px;
  font-weight: 700;
  font-size: 16px;
}
.cart-total-price { font-size: 24px; color: var(--earth); font-family: 'Playfair Display', serif; }
.checkout-btn {
  width: 100%;
  padding: 15px;
  border-radius: 100px;
  background: var(--earth);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: background .2s;
}
.checkout-btn:hover { background: var(--earth2); }

/* Shop: order form */
.order-form-section {
  background: var(--bg);
  padding: clamp(48px, 6vw, 80px) 0;
}
.order-form {
  max-width: 680px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-lg);
}
.order-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 8px;
}
.order-form .form-desc { font-size: 15px; color: var(--muted); margin-bottom: 28px; }

/* ──────────────────────────────────────────────
   RESPONSIVE — СТРАНИЦЫ
   ────────────────────────────────────────────── */

@media (max-width: 768px) {
  /* Главная hero */
  #hero-home {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
  }
  .hero-right {
    height: auto;
    max-height: 50vh;
    order: -1;
  }
  .hero-right::after {
    background: linear-gradient(to top, var(--bg) 0%, transparent 60%);
  }
  .hero-left {
    padding: 24px 20px 40px;
  }
  .hero-scroll { display: none; }

  /* Превью */
  .preview-grid {
    grid-template-columns: 1fr;
  }

  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .about-stat-row { flex-wrap: wrap; }
  .about-stat { flex: 1 1 calc(50% - 10px); }

  /* Team */
  .team-grid { grid-template-columns: 1fr 1fr; }

  /* Science */
  .science-grid { grid-template-columns: 1fr; }
  .science-feature { grid-template-columns: 1fr; }
  .science-img { aspect-ratio: 16/9; }

  /* Stories */
  .stories-grid { grid-template-columns: 1fr; }
  .stories-grid-4 { grid-template-columns: 1fr 1fr; }

  /* Expedition */
  .expedition-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }

  /* Shop */
  .merch-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .cart-panel { position: static; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: -1px; }

  .merch-grid { grid-template-columns: 1fr; }
  .merch-footer { flex-direction: column; align-items: stretch; }
  .merch-btn { text-align: center; }

  .about-stat { flex: 1 1 100%; }

  .stories-grid-4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn-earth,
  .hero-actions .btn-outline { width: 100%; text-align: center; }
}
