/* ===========================
   Дикая Природа — Design System
   Atmospheric dark nature theme
   =========================== */

:root {
  --bg-deep: #0c0f0c;
  --bg-card: #141916;
  --bg-elevated: #1a201c;
  --text-primary: #e8ece6;
  --text-secondary: #a3b0a5;
  --text-muted: #6b7a6e;
  --accent: #7a9e7e;
  --accent-soft: #5c7a60;
  --border: #2a332c;
  --border-soft: #1f2621;
  --glow: rgba(122, 158, 126, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

/* ========== Typography ========== */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }

.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
}

/* ========== Layout ========== */
.container {
  width: min(1280px, 92%);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  background: rgba(12, 15, 12, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  transition: background var(--transition);
}

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

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
}

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

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to bottom, rgba(12,15,12,0.3) 0%, rgba(12,15,12,0.75) 60%, var(--bg-deep) 100%),
    url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1920&q=80') center/cover no-repeat;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 0 1.5rem;
  animation: fadeUp 1.1s ease-out;
}

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  opacity: 0.9;
}

.hero h1 {
  margin-bottom: 1.4rem;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.hero .lead {
  margin: 0 auto 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  background: var(--accent);
  color: #0c0f0c;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn:hover {
  background: #8fb393;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-soft);
  color: var(--text-primary);
}

/* ========== Continents Grid ========== */
.continents-section {
  padding-top: 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  margin-bottom: 0.8rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

.continents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.continent-card {
  position: relative;
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  transition: all var(--transition);
}

.continent-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-soft);
  box-shadow: var(--shadow);
}

.continent-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.continent-card:hover img {
  transform: scale(1.06);
}

.continent-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,15,12,0.92) 0%, rgba(12,15,12,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
}

.continent-overlay h3 {
  margin-bottom: 0.3rem;
}

.continent-overlay span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== Featured Places ========== */
.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}

.place-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  transition: all var(--transition);
}

.place-card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.place-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.place-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.place-card:hover .place-card__image img {
  transform: scale(1.05);
}

.place-card__body {
  padding: 1.3rem 1.4rem 1.5rem;
}

.place-card__region {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.place-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.place-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========== Continent Page ========== */
.page-hero {
  position: relative;
  height: 55vh;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-deep) 0%, rgba(12,15,12,0.5) 50%, rgba(12,15,12,0.2) 100%);
}

.page-hero h1 {
  margin-bottom: 0.6rem;
}

.page-hero .lead {
  color: var(--text-secondary);
}

.places-count {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ========== Footer ========== */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: var(--text-secondary);
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== Animations ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 1.2rem;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3.5rem 0;
  }
  .continents-grid {
    grid-template-columns: 1fr;
  }
  .place-card {
    max-width: 100%;
  }
}
