/*
Theme Name: Земля с нуля
Theme URI: https://zemlyanulya.ru
Author: Земля с нуля
Description: Официальная тема реалити-шоу «Земля с нуля»
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: zemla
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #07090A;
  --bg2: #0D1210;
  --cream: #F2EDE3;
  --cream2: #C9C0AE;
  --gold: #C8922A;
  --gold-lt: #E4B86A;
  --green: #2A4A22;
  --green-lt: #3D6B33;
  --text: #F2EDE3;
  --muted: rgba(242,237,227,0.45);
  --border: rgba(242,237,227,0.08);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999;
}

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 3rem;
  transition: all 0.5s ease;
}
.nav.stuck {
  padding: 0.9rem 3rem;
  background: rgba(7,9,10,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--cream); text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--cream); }
.nav-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none;
  color: var(--bg); background: var(--gold);
  padding: 0.6em 1.6em; border-radius: 2px;
  transition: background 0.3s;
}
.nav-btn:hover { background: var(--gold-lt); }

/* ─── HERO ─── */
.hero {
  position: relative; height: 100vh; min-height: 680px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -10%;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  animation: heroDrift 20s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.06) translate(-2%, 1%); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(7,9,10,0.55) 0%, rgba(7,9,10,0.35) 40%, rgba(7,9,10,0.75) 100%),
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(7,9,10,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.hero-lines {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(242,237,227,0.015) 80px);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 10;
  text-align: center; padding: 2rem;
  animation: fadeUp 1.2s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2rem;
  animation: fadeUp 1s ease 0.2s both;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900; line-height: 0.9;
  font-size: clamp(5rem, 14vw, 14rem);
  letter-spacing: -0.02em;
  color: var(--cream);
  animation: fadeUp 1s ease 0.4s both;
}
.hero-title .line2 {
  display: block;
  -webkit-text-stroke: 1.5px var(--cream);
  color: transparent;
  animation: fadeUp 1s ease 0.6s both;
}
.hero-sub {
  margin-top: 2.5rem;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--muted); line-height: 1.7;
  max-width: 580px; margin-left: auto; margin-right: auto;
  animation: fadeUp 1s ease 0.8s both;
}
.hero-cta {
  margin-top: 3rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 1s ease 1s both;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  padding: 0.85em 2.2em; border-radius: 2px;
  transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--cream); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  animation: fadeUp 1s ease 1.4s both;
}
.hero-scroll span { font-size: 0.6rem; letter-spacing: 0.3em; color: var(--muted); text-transform: uppercase; }
.hero-scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(0.4); opacity: 1; }
}

/* ─── TICKER ─── */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden; background: var(--bg2);
  padding: 1rem 0;
}
.ticker-inner {
  display: flex; gap: 4rem; white-space: nowrap;
  animation: ticker 20s linear infinite;
}
.ticker-inner span {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
  flex-shrink: 0;
}
.ticker-inner span.dot { color: var(--gold); font-size: 0.5rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── COMMON ─── */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 3rem; }
.section { padding: 8rem 0; }
.section-sm { padding: 5rem 0; }
.label {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem;
}
.headline {
  font-family: 'Playfair Display', serif;
  font-weight: 700; line-height: 1.1;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  color: var(--cream);
}
.headline em { font-style: italic; color: var(--gold); }
.body-text { font-size: 1rem; line-height: 1.8; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.show { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-32px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-l.show { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(32px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-r.show { opacity: 1; transform: none; }

/* ─── ABOUT ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; align-items: center; }
.about-text .accent { color: var(--cream); font-weight: 500; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 3rem; }
.stat { padding: 2rem; border-top: 1px solid var(--border); }
.stat:nth-child(2n) { border-left: 1px solid var(--border); }
.stat-n { font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 900; line-height: 1; color: var(--cream); }
.stat-n .unit { font-size: 1.5rem; color: var(--gold); }
.stat-l { font-size: 0.7rem; letter-spacing: 0.08em; color: var(--muted); margin-top: 0.4rem; text-transform: uppercase; }
.seasons-bar { background: rgba(242,237,227,0.03); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.season-row { display: flex; align-items: center; gap: 1.5rem; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); transition: background 0.3s; }
.season-row:last-child { border-bottom: none; }
.season-row:hover { background: rgba(242,237,227,0.03); }
.season-n { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; color: var(--border); width: 2.5rem; flex-shrink: 0; line-height: 1; }
.season-row:hover .season-n { color: var(--gold); }
.season-info { flex: 1; }
.season-title { font-size: 0.85rem; font-weight: 500; color: var(--cream); margin-bottom: 0.2rem; }
.season-desc { font-size: 0.72rem; color: var(--muted); }
.season-bar-track { width: 100px; height: 2px; background: var(--border); border-radius: 2px; position: relative; }
.season-bar-fill { height: 100%; background: var(--gold); border-radius: 2px; }

/* ─── PARTICIPANTS ─── */
.participants { background: var(--bg2); }
.participants-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; }
.participants-scroll-hint { font-size: 0.72rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.participants-track { display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 1.5rem; scrollbar-width: none; cursor: grab; }
.participants-track::-webkit-scrollbar { display: none; }
.participants-track.dragging { cursor: grabbing; user-select: none; }
.p-card { flex: 0 0 280px; background: rgba(242,237,227,0.03); border: 1px solid var(--border); border-radius: 3px; overflow: hidden; transition: border-color 0.4s, transform 0.4s; }
.p-card:hover { border-color: rgba(200,146,42,0.35); transform: translateY(-6px); }
.p-card-img { width: 100%; aspect-ratio: 1; background: var(--green); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.p-card-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(40%) contrast(1.1); transition: filter 0.4s; }
.p-card:hover .p-card-img img { filter: grayscale(0%) contrast(1.05); }
.p-card-tag { position: absolute; top: 1rem; left: 1rem; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; background: var(--gold); color: var(--bg); padding: 0.3em 0.8em; }
.p-card-body { padding: 1.5rem; }
.p-card-name { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; color: var(--cream); margin-bottom: 0.25rem; }
.p-card-meta { font-size: 0.72rem; color: var(--muted); margin-bottom: 1rem; }
.p-card-desc { font-size: 0.82rem; line-height: 1.65; color: rgba(242,237,227,0.55); }
.p-card-region { margin-top: 1.2rem; display: flex; align-items: center; gap: 0.4rem; font-size: 0.68rem; font-weight: 600; color: var(--gold-lt); letter-spacing: 0.05em; }
.p-card-region::before { content: ''; display: block; width: 18px; height: 1px; background: var(--gold); }

/* ─── TIMELINE ─── */
.timeline-section { background: var(--bg); }
.timeline { position: relative; margin-top: 5rem; }
.timeline::before { content: ''; position: absolute; left: 3rem; top: 0; bottom: 0; width: 1px; background: var(--border); }
.tl-item { display: grid; grid-template-columns: 6rem 1fr; gap: 3rem; margin-bottom: 4rem; position: relative; }
.tl-num { text-align: right; padding-top: 0.2rem; font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 900; line-height: 1; color: rgba(242,237,227,0.06); transition: color 0.4s; }
.tl-item:hover .tl-num { color: rgba(200,146,42,0.25); }
.tl-dot { position: absolute; left: 3rem; top: 0.6rem; width: 9px; height: 9px; border-radius: 50%; background: var(--border); transform: translateX(-4px); transition: background 0.4s; }
.tl-item:hover .tl-dot { background: var(--gold); }
.tl-act { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.tl-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--cream); margin-bottom: 0.8rem; }
.tl-desc { font-size: 0.9rem; line-height: 1.7; color: var(--muted); max-width: 560px; }
.tl-ep { font-size: 0.7rem; color: var(--green-lt); font-weight: 600; margin-top: 0.8rem; letter-spacing: 0.05em; }

/* ─── GEOGRAPHY ─── */
.geography { background: var(--bg2); }
.geo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; margin-top: 4rem; }
.geo-card { position: relative; overflow: hidden; aspect-ratio: 3/4; cursor: pointer; }
.geo-card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1); transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.geo-card:hover .geo-card-bg { transform: scale(1.08); }
.geo-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,9,10,0.9) 0%, rgba(7,9,10,0.3) 50%, transparent 100%); }
.geo-card-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem; }
.geo-badge { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.geo-name { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: var(--cream); margin-bottom: 0.3rem; }
.geo-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.geo-future { margin-top: 3rem; text-align: center; }
.geo-future-label { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 1.5rem; }
.geo-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.geo-tag { font-size: 0.75rem; color: var(--muted); border: 1px solid var(--border); border-radius: 1px; padding: 0.4em 1em; transition: border-color 0.3s, color 0.3s; }
.geo-tag:hover { border-color: var(--gold); color: var(--cream); }

/* ─── PRIZES ─── */
.prizes { background: var(--bg); }
.prize-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 1.5px; margin-top: 4rem; align-items: end; }
.prize-card { background: rgba(242,237,227,0.03); border: 1px solid var(--border); padding: 3rem 2.5rem; text-align: center; position: relative; transition: border-color 0.4s; }
.prize-card.main { padding: 4rem 2.5rem; border-color: rgba(200,146,42,0.3); background: rgba(200,146,42,0.05); }
.prize-card.main::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold); }
.prize-place { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; }
.prize-amount { font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 900; line-height: 1; color: var(--cream); margin-bottom: 0.5rem; }
.prize-card.main .prize-amount { font-size: 4.5rem; color: var(--gold-lt); }
.prize-currency { font-size: 1rem; color: var(--muted); }
.prize-title { font-size: 0.9rem; font-weight: 600; color: var(--cream); margin: 1.5rem 0 0.8rem; }
.prize-desc { font-size: 0.8rem; line-height: 1.6; color: var(--muted); }

/* ─── CTA ─── */
.cta-section { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; padding: 10rem 0; }
.cta-headline { font-family: 'Playfair Display', serif; font-size: clamp(3rem, 6vw, 6rem); font-weight: 900; line-height: 1.05; color: var(--cream); margin-bottom: 1.5rem; }
.cta-headline em { font-style: italic; color: var(--gold); }
.cta-sub { font-size: 1rem; color: var(--muted); max-width: 540px; margin: 0 auto 3rem; line-height: 1.7; }
.cta-note { font-size: 0.72rem; color: var(--muted); margin-top: 1.5rem; }

/* ─── FOOTER ─── */
footer { background: var(--bg); padding: 3rem; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; }
.footer-logo { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1rem; color: var(--cream); letter-spacing: 0.08em; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.75rem; color: var(--muted); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.7rem; color: rgba(242,237,227,0.2); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 4rem; }
  .prize-grid { grid-template-columns: 1fr; }
  .geo-grid { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 0 1.5rem; }
  .section { padding: 5rem 0; }
}
@media (max-width: 600px) {
  .geo-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 1.5rem; }
  .tl-item { grid-template-columns: 3rem 1fr; gap: 1.5rem; }
  .tl-num { font-size: 2rem; }
}
