/* ============================================================
   EXODUS — фанатский гид по Metro Exodus
   Общие стили сайта
   ============================================================ */

:root {
  --bg: #0b0d10;
  --bg-2: #11151b;
  --card: #161c24;
  --card-hover: #1b232d;
  --border: #242d38;
  --text: #d8dee6;
  --muted: #8f9aa8;
  --accent: #e8a33d;
  --accent-dark: #b97a22;
  --danger: #c2503c;
  --radius: 14px;
  --max: 1160px;
  --font-head: 'Russo One', 'Arial Black', sans-serif;
  --font-body: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: #f5bc63; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 16, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-head);
  font-size: 26px;
  letter-spacing: 3px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo span { color: var(--accent); }
.logo .logo-mark {
  width: 30px; height: 30px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--accent);
}
.main-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
}
.main-nav a {
  color: var(--text);
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}
.main-nav a:hover { background: var(--card-hover); color: var(--accent); }
.main-nav a.active { color: var(--accent); background: rgba(232, 163, 61, .1); }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 22px;
  width: 44px; height: 44px;
  cursor: pointer;
}

/* ---------- Герой (главная) ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://cdn.cloudflare.steamstatic.com/steam/apps/412020/library_hero.jpg') center 30% / cover no-repeat;
  animation: kenburns 26s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,13,16,.55) 0%, rgba(11,13,16,.72) 55%, var(--bg) 100%);
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.hero-content { position: relative; z-index: 2; padding: 90px 0 110px; }
.hero-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(232,163,61,.45);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  background: rgba(11,13,16,.5);
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.05;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.hero h1 span { color: var(--accent); }
.hero p.lead {
  max-width: 620px;
  margin: 24px 0 36px;
  font-size: 19px;
  color: #cfd6de;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #14100a;
  box-shadow: 0 8px 26px rgba(232,163,61,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(232,163,61,.4); color: #14100a; }
.btn-ghost {
  border-color: rgba(255,255,255,.35);
  color: #fff;
  background: rgba(11,13,16,.35);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-2px); }

/* ---------- Секции ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-kicker {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2, .page-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  color: #fff;
  letter-spacing: 1px;
  line-height: 1.2;
}
.section-head p { margin-top: 14px; color: var(--muted); }

/* ---------- Карточки ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(232,163,61,.5);
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
}
.card-img { position: relative; height: 190px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3 { font-family: var(--font-head); font-size: 20px; color: #fff; letter-spacing: .5px; }
.card-body p { color: var(--muted); font-size: 15.5px; flex: 1; }
.card-link {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.card-link::after { content: ' →'; }

/* ---------- Баннер подстраниц ---------- */
.page-hero {
  position: relative;
  padding: 110px 0 70px;
  background: url('https://cdn.cloudflare.steamstatic.com/steam/apps/412020/header.jpg') center / cover no-repeat;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,16,.82), rgba(11,13,16,.94));
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Статьи / контент ---------- */
.article { max-width: 860px; margin: 0 auto; }
.article h2 {
  font-family: var(--font-head);
  font-size: 27px;
  color: #fff;
  margin: 54px 0 18px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  letter-spacing: .5px;
}
.article h3 { font-family: var(--font-head); font-size: 19px; color: #f0e6d2; margin: 30px 0 12px; letter-spacing: .5px; }
.article p { margin-bottom: 16px; color: var(--text); }
.article ul, .article ol { margin: 0 0 18px 22px; }
.article li { margin-bottom: 9px; }
.article li::marker { color: var(--accent); }
.article strong { color: #fff; }
.article .spoiler-note {
  background: rgba(194, 80, 60, .12);
  border: 1px solid rgba(194, 80, 60, .4);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  color: #e5b8ae;
  margin: 26px 0;
}
.tip-box {
  background: rgba(232, 163, 61, .08);
  border: 1px solid rgba(232, 163, 61, .35);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 15.5px;
}
.tip-box strong { color: var(--accent); }

/* Глава с номером */
.chapter { display: flex; gap: 22px; margin-top: 46px; }
.chapter-num {
  flex: 0 0 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chapter-body h2 { margin-top: 8px; padding-left: 0; border-left: none; }

/* ---------- Две колонки с постером ---------- */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.split .lead { font-size: 18px; color: var(--muted); margin-bottom: 18px; }

/* ---------- Список фич ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(232,163,61,.45); }
.feature .ico { font-size: 30px; margin-bottom: 14px; }
.feature h3 { font-family: var(--font-head); font-size: 17px; color: #fff; margin-bottom: 8px; letter-spacing: .5px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* ---------- Реквизиты / контакты ---------- */
.requisites {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  font-size: 15.5px;
}
.requisites th, .requisites td {
  text-align: left;
  padding: 13px 16px;
  border: 1px solid var(--border);
}
.requisites th { background: var(--card); color: var(--muted); font-weight: 500; width: 260px; }
.requisites td { color: var(--text); }
.placeholder-tag {
  display: inline-block;
  background: rgba(232,163,61,.12);
  border: 1px dashed rgba(232,163,61,.55);
  color: var(--accent);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 13.5px;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 22px;
}
.contact-card h3 { font-family: var(--font-head); color: #fff; font-size: 19px; margin-bottom: 10px; }
.contact-card p { color: var(--muted); font-size: 15.5px; }

/* ---------- Футер ---------- */
.site-footer {
  background: #080a0d;
  border-top: 1px solid var(--border);
  padding: 56px 0 30px;
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { font-family: var(--font-head); color: #fff; font-size: 15px; letter-spacing: 1px; margin-bottom: 16px; text-transform: uppercase; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--muted); font-size: 14.5px; }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 380px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: #5d6874;
  font-size: 13px;
}
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border: 2px solid #5d6874;
  border-radius: 8px;
  font-family: var(--font-head);
  color: #9aa5b1;
  font-size: 15px;
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  transform: translateY(140%);
  transition: transform .45s cubic-bezier(.2,.9,.3,1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.cookie-banner .btn { padding: 10px 22px; font-size: 13px; }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 860px) {
  .burger { display: block; }
  .main-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(11,13,16,.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform .35s ease;
    z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; padding: 14px 24px 22px; gap: 2px; }
  .main-nav a { display: block; padding: 13px 14px; font-size: 16px; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .chapter { flex-direction: column; gap: 12px; }
  .requisites th { width: auto; }
  .section { padding: 60px 0; }
}
