* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #000;
  color: #ddd;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.90);
  border-bottom: 1px solid rgba(255, 88, 20, 0.38);
  backdrop-filter: blur(7px);
}

.nav {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 42px;
  padding: 0 360px 0 180px;
  transform: translateX(110px);
}

.nav a {
  color: #aaa;
  text-decoration: none;
  letter-spacing: 2px;
  font-size: 15px;
  transition: .2s ease;
}

.nav a:hover,
.nav a.active {
  color: #ff681d;
  text-shadow: 0 0 12px rgba(255, 72, 0, .8);
}

.socials {
  position: absolute;
  top: 0;
  right: 28px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social {
  height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
  text-decoration: none;
  border: 1px solid rgba(255, 92, 28, .28);
  background: rgba(24, 8, 3, .45);
  font-size: 11px;
  letter-spacing: 1.2px;
  transition: .2s ease;
}

.social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.social:hover {
  color: #ff7a34;
  border-color: rgba(255, 105, 35, .75);
  background: rgba(67, 18, 4, .58);
  box-shadow: 0 0 14px rgba(255, 74, 0, .16);
}

.hero {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;

  background-color: #000;
  background-image:
    linear-gradient(to bottom, rgba(0,0,0,.02), rgba(0,0,0,.06)),
    url("images/hero.png");
  background-repeat: no-repeat;
  background-position: center center;

  /* Картинка целиком помещается в экран — логотип больше не режется */
  background-size: contain;
}

/* На широких мониторах можно чуть увеличить изображение,
   но не настолько, чтобы срезать верх/низ эмблемы */
@media (min-aspect-ratio: 19/9) {
  .hero {
    background-size: auto 96%;
  }
}

@media (max-width: 1050px) {
  .nav {
    justify-content: flex-start;
    padding-left: 24px;
    padding-right: 300px;
    gap: 24px;
  }

  .social span {
    display: none;
  }

  .social {
    width: 38px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .topbar {
    height: 108px;
  }

  .nav {
    height: 58px;
    padding: 0 12px;
    justify-content: center;
    gap: 15px;
  }

  .nav a {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .socials {
    top: 58px;
    right: 0;
    left: 0;
    height: 50px;
    justify-content: center;
  }

  .hero {
    top: 108px;
  }
}


/* v3: главная картинка как обычный IMG, а не background */
.hero {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  display: block;
  width: auto;
  height: 94%;
  max-width: 94vw;
  object-fit: contain;
}

/* Соцсети чуть дальше от правого края */
.socials {
  right: 90px;
}


/* =========================================================
   LORE PAGE
   ========================================================= */

body.lore-page {
  overflow-x: hidden;
  overflow-y: auto;
  background: #000;
}

.lore-stream {
  position: relative;
  padding-top: 72px;
  background: #000;
}

/* ---------- Первый экран лора ---------- */

.lore-intro {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.lore-intro-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 0;
}

.lore-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at center,
      rgba(0,0,0,.02) 0%,
      rgba(0,0,0,.15) 48%,
      rgba(0,0,0,.78) 100%),
    linear-gradient(to bottom,
      rgba(0,0,0,.16) 0%,
      rgba(0,0,0,.05) 55%,
      rgba(0,0,0,.88) 100%);
}

.lore-intro-title {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 32px 28px;
  margin-top: 8vh;
  text-transform: uppercase;
  text-shadow:
    0 2px 3px #000,
    0 0 18px rgba(0,0,0,.95);
}

.lore-kicker {
  margin-bottom: 10px;
  color: #b9b9b9;
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 700;
  letter-spacing: .48em;
}

.lore-intro-title h1 {
  margin: 0;
  color: #ece6dd;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(52px, 7vw, 118px);
  line-height: .9;
  letter-spacing: .055em;
  font-weight: 900;
  transform: scaleX(.92);
}

.lore-project {
  margin-top: 12px;
  color: #ff681d;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(24px, 3vw, 48px);
  letter-spacing: .18em;
  text-shadow:
    0 0 8px rgba(255, 92, 20, .45),
    0 0 24px rgba(255, 72, 0, .18);
}

.lore-divider {
  width: min(420px, 60vw);
  height: 1px;
  margin: 24px auto 18px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 104, 29, .8),
    transparent
  );
  position: relative;
}

.lore-divider::after {
  content: "☢";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 0 12px;
  color: #ff681d;
  background: rgba(0,0,0,.72);
  font-size: 18px;
}

.lore-scroll {
  color: rgba(225,225,225,.65);
  font-size: 10px;
  letter-spacing: .22em;
}

.lore-arrow {
  display: block;
  margin-top: 2px;
  color: #ff681d;
  font-size: 30px;
  line-height: 1;
}

/* ---------- Обычные секции лора ---------- */

.lore-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: #000 center / cover no-repeat;
}

/* Затемнение картинки для читаемого текста */
.lore-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.92) 0%,
      rgba(0,0,0,.12) 14%,
      rgba(0,0,0,.08) 76%,
      rgba(0,0,0,.92) 100%
    ),
    radial-gradient(
      circle at center,
      transparent 35%,
      rgba(0,0,0,.18) 70%,
      rgba(0,0,0,.70) 100%
    );
}

/* Плавный "шов" между соседними изображениями */
.lore-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -90px;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0),
    rgba(0,0,0,.48),
    rgba(0,0,0,0)
  );
  filter: blur(14px);
}

/* Широкая область текста поверх изображения */
.lore-content {
  width: min(1420px, 88vw);
  padding: clamp(56px, 7vw, 110px) 0;
  text-align: center;
}

/* Реальный HTML-текст */
.lore-text {
  color: #f2f2f2;
  font-family: Impact, "Arial Black", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(25px, 2.55vw, 49px);
  line-height: 1.25;
  letter-spacing: .012em;

  /* Имитация белых букв с чёрной обводкой как на исходном слайде */
  -webkit-text-stroke: 2px #0b0b0b;
  paint-order: stroke fill;

  text-shadow:
    -2px -2px 0 #090909,
     2px -2px 0 #090909,
    -2px  2px 0 #090909,
     2px  2px 0 #090909,
     0 4px 1px #090909,
     0 7px 12px rgba(0,0,0,.8);
}

.lore-text p {
  margin: 0 0 clamp(38px, 5vh, 72px);
}

.lore-text p:last-child {
  margin-bottom: 0;
}

/* Если какой-то абзац хочется выделить сильнее */
.lore-text .accent {
  color: #ff9b57;
}

/*
  Для каждой следующей страницы просто указывай свою картинку:

  style="background-image:url('../images/lore/lore_2.png')"
*/


@media (max-width: 900px) {
  .lore-content {
    width: 92vw;
  }

  .lore-text {
    font-size: clamp(21px, 4.7vw, 34px);
    -webkit-text-stroke: 1.4px #0b0b0b;
  }
}

@media (max-width: 700px) {
  .lore-stream {
    padding-top: 108px;
  }

  .lore-intro {
    min-height: calc(100vh - 108px);
  }

  .lore-intro-bg {
    object-fit: cover;
  }

  .lore-intro-title {
    margin-top: 0;
  }

  .lore-kicker {
    letter-spacing: .28em;
  }

  .lore-section {
    min-height: auto;
    padding: 70px 0;
  }

  .lore-content {
    width: 92vw;
  }

  .lore-text {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-size: clamp(19px, 5.4vw, 27px);
    line-height: 1.3;
    letter-spacing: 0;
    -webkit-text-stroke: 0;
    text-shadow:
      0 2px 2px #000,
      0 0 8px #000,
      0 0 16px #000;
  }

  .lore-text p {
    margin-bottom: 36px;
  }
}


/* =========================================================
   AMAZ S.T.A.L.K.E.R. v3.0
   ========================================================= */
@font-face {
  font-family: "AmazStalker";
  src: url("fonts/amazstalker.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Первый экран */
.lore-kicker {
  font-family: "AmazStalker", "Arial Narrow", sans-serif;
  color: #aaa9a3;
  font-weight: normal;
  letter-spacing: .42em;
}

.lore-intro-title h1 {
  font-family: "AmazStalker", "Arial Narrow", sans-serif;
  color: #c7c4bb;
  font-weight: normal;
  font-size: clamp(48px, 6vw, 98px);
  line-height: 1;
  letter-spacing: .07em;
  transform: none;
  -webkit-text-stroke: 0;
  text-shadow:
    0 3px 3px rgba(0,0,0,.95),
    0 0 12px rgba(0,0,0,.95),
    0 0 26px rgba(0,0,0,.72);
}

/* Не оранжевый: на фоне логотипа он сливался */
.lore-project {
  font-family: "AmazStalker", "Arial Narrow", sans-serif;
  color: #d2b06d;
  font-weight: normal;
  font-size: clamp(24px, 2.8vw, 44px);
  letter-spacing: .20em;
  text-shadow:
    0 2px 3px #000,
    0 0 10px #000,
    0 0 20px rgba(0,0,0,.9);
}

/* Основной текст — меньше, серее и без огромной обводки */
.lore-text {
  font-family: "AmazStalker", "Arial Narrow", sans-serif;
  color: #c9c8c2;
  font-weight: normal;
  text-transform: uppercase;
  font-size: clamp(23px, 2.15vw, 39px);
  line-height: 1.28;
  letter-spacing: .018em;

  -webkit-text-stroke: 0;
  paint-order: normal;

  text-shadow:
    0 2px 2px rgba(0,0,0,1),
    0 0 5px rgba(0,0,0,1),
    0 0 12px rgba(0,0,0,.95);
}

.lore-text p {
  max-width: 1370px;
  margin: 0 auto clamp(32px, 4.2vh, 58px);
}

/* Чуть сильнее приглушаем фон под текстом */
.lore-section::before {
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.90) 0%,
      rgba(0,0,0,.24) 15%,
      rgba(0,0,0,.20) 78%,
      rgba(0,0,0,.92) 100%
    ),
    radial-gradient(
      circle at center,
      rgba(0,0,0,.05) 20%,
      rgba(0,0,0,.18) 65%,
      rgba(0,0,0,.72) 100%
    );
}

@media (max-width: 700px) {
  .lore-text {
    font-family: "AmazStalker", Arial, sans-serif;
    color: #c9c8c2;
    font-size: clamp(18px, 5vw, 26px);
    line-height: 1.32;
  }
}


/* =========================================================
   LORE TUNING v2
   Первый экран: AmazStalker крупнее + тонкая обводка
   Слайды: обычный читаемый шрифт + лёгкая чёрная обводка
   ========================================================= */

/* ---------- Первый экран ---------- */

.lore-kicker {
  font-family: "AmazStalker", sans-serif;
  color: #b9b6ac;
  font-size: clamp(17px, 1.35vw, 24px);
  letter-spacing: .30em;
  text-shadow:
    0 2px 2px rgba(0,0,0,1),
    0 0 8px rgba(0,0,0,.95);
}

.lore-intro-title h1 {
  font-family: "AmazStalker", sans-serif;
  color: #d3d0c7;
  font-size: clamp(72px, 8.2vw, 138px);
  line-height: .92;
  letter-spacing: .045em;
  font-weight: normal;
  transform: none;

  -webkit-text-stroke: 1.4px rgba(10,10,10,.95);
  paint-order: stroke fill;

  text-shadow:
    0 3px 2px rgba(0,0,0,1),
    0 0 8px rgba(0,0,0,1),
    0 0 22px rgba(0,0,0,.9);
}

.lore-project {
  margin-top: 20px;
  font-family: "AmazStalker", sans-serif;
  color: #e3c487;
  font-size: clamp(34px, 3.8vw, 62px);
  line-height: 1;
  letter-spacing: .16em;
  font-weight: normal;

  -webkit-text-stroke: .9px rgba(15,15,15,.9);
  paint-order: stroke fill;

  text-shadow:
    0 2px 2px #000,
    0 0 8px #000,
    0 0 18px rgba(0,0,0,.9);
}

/* чуть компактнее декоративная линия */
.lore-divider {
  margin-top: 26px;
}

/* ---------- Слайды с самим лором ---------- */

.lore-text {
  /* На длинном тексте сталкерский шрифт НЕ используем */
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  color: #c9c8c3;
  font-size: clamp(24px, 2.05vw, 38px);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: .018em;
  text-transform: uppercase;

  /* Небольшая чёрная обводка, только чтобы отделить от фона */
  -webkit-text-stroke: .75px rgba(0,0,0,.95);
  paint-order: stroke fill;

  text-shadow:
    0 2px 2px rgba(0,0,0,1),
    0 0 5px rgba(0,0,0,.95),
    0 0 10px rgba(0,0,0,.75);
}

.lore-text p {
  max-width: 1320px;
  margin: 0 auto clamp(34px, 4.5vh, 58px);
}

/* Чуть сильнее затемняем область за текстом, но без "чёрной плашки" */
.lore-section::before {
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.82) 0%,
      rgba(0,0,0,.22) 14%,
      rgba(0,0,0,.24) 80%,
      rgba(0,0,0,.88) 100%
    ),
    radial-gradient(
      ellipse at center,
      rgba(0,0,0,.08) 20%,
      rgba(0,0,0,.22) 68%,
      rgba(0,0,0,.72) 100%
    );
}

@media (max-width: 900px) {
  .lore-kicker {
    font-size: clamp(15px, 2.4vw, 20px);
  }

  .lore-intro-title h1 {
    font-size: clamp(58px, 11vw, 96px);
    -webkit-text-stroke: 1px rgba(10,10,10,.95);
  }

  .lore-project {
    font-size: clamp(28px, 5vw, 44px);
  }

  .lore-text {
    font-size: clamp(22px, 3.6vw, 32px);
  }
}

@media (max-width: 700px) {
  .lore-intro-title h1 {
    font-size: clamp(48px, 13vw, 78px);
    letter-spacing: .02em;
  }

  .lore-project {
    font-size: clamp(24px, 7vw, 38px);
    letter-spacing: .10em;
  }

  .lore-text {
    font-family: Arial, Helvetica, sans-serif;
    color: #c9c8c3;
    font-size: clamp(18px, 5.2vw, 26px);
    line-height: 1.34;
    -webkit-text-stroke: .4px rgba(0,0,0,.95);
  }
}


/* =========================================================
   FINAL LORE OVERRIDE
   ========================================================= */

body.lore-page .lore-kicker {
  font-family: "AmazStalker", sans-serif;
  color: #d1ccc1;
  font-size: clamp(18px, 1.45vw, 26px);
  font-weight: normal;
  letter-spacing: .28em;
  -webkit-text-stroke: .45px rgba(20, 10, 5, .95);
  text-shadow:
    0 2px 2px #000,
    0 0 7px #000;
}

body.lore-page .lore-intro-title h1 {
  font-family: "AmazStalker", sans-serif;
  color: #d8d5ce;
  font-size: clamp(78px, 8.7vw, 145px);
  line-height: .92;
  font-weight: normal;
  letter-spacing: .035em;
  transform: none;
  -webkit-text-stroke: 1.15px #1d0b06;
  paint-order: stroke fill;
  text-shadow:
    0 3px 2px #000,
    0 0 7px #000,
    0 0 18px rgba(0,0,0,.90);
}

body.lore-page .lore-project {
  display: inline-block;
  margin-top: 24px;
  font-family: "AmazStalker", sans-serif;
  font-size: clamp(40px, 4.2vw, 70px);
  line-height: 1;
  font-weight: normal;
  letter-spacing: .14em;

  background-image: linear-gradient(
    180deg,
    #fff0ad 0%,
    #ffc33f 18%,
    #ff7a17 43%,
    #f23a12 68%,
    #c8180d 88%,
    #ff641c 100%
  );
  background-size: 100% 100%;
  background-repeat: no-repeat;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ff681d;

  -webkit-text-stroke: 1px rgba(72, 15, 7, .92);
  paint-order: stroke fill;

  filter:
    drop-shadow(0 2px 1px rgba(0,0,0,1))
    drop-shadow(0 0 4px rgba(0,0,0,.95))
    drop-shadow(0 0 7px rgba(255,70,15,.28));
}

/* Разделитель на 185px ниже */
body.lore-page .lore-divider {
  transform: translateY(185px);
}

/* Надпись + стрелка тоже на 185px ниже */
body.lore-page .lore-scroll {
  transform: translateY(185px);
}

/* Основной лор — НЕ сталкерский шрифт */
body.lore-page .lore-text {
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  color: #c7c6c0;
  font-size: clamp(24px, 2.05vw, 38px);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: .018em;
  text-transform: uppercase;

  -webkit-text-stroke: .65px rgba(0,0,0,.98);
  paint-order: stroke fill;

  text-shadow:
    0 2px 2px #000,
    0 0 4px #000,
    0 0 9px rgba(0,0,0,.88);
}

body.lore-page .lore-text p {
  max-width: 1320px;
  margin: 0 auto clamp(34px, 4.5vh, 58px);
}

@media (max-width: 900px) {
  body.lore-page .lore-intro-title h1 {
    font-size: clamp(62px, 11vw, 100px);
  }

  body.lore-page .lore-project {
    font-size: clamp(31px, 5.2vw, 48px);
  }

  body.lore-page .lore-text {
    font-size: clamp(22px, 3.6vw, 32px);
  }
}

@media (max-width: 700px) {
  body.lore-page .lore-divider,
  body.lore-page .lore-scroll {
    transform: translateY(110px);
  }

  body.lore-page .lore-intro-title h1 {
    font-size: clamp(48px, 13vw, 78px);
  }

  body.lore-page .lore-project {
    font-size: clamp(25px, 7vw, 39px);
    letter-spacing: .10em;
  }

  body.lore-page .lore-text {
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(18px, 5.2vw, 26px);
    line-height: 1.34;
    -webkit-text-stroke: .4px #000;
  }
}


/* =========================================================
   LORE FINAL SIMPLE COLORS
   ========================================================= */

/* ИСТОРИЯ ЗОНЫ — примерно в 2 раза крупнее */
body.lore-page .lore-kicker {
  font-family: "AmazStalker", sans-serif;
  color: #d8d5ce;
  font-size: clamp(34px, 2.9vw, 52px);
  font-weight: normal;
  letter-spacing: .20em;
  -webkit-text-stroke: .8px #1d0b06;
  paint-order: stroke fill;
  text-shadow:
    0 2px 2px #000,
    0 0 7px #000,
    0 0 14px rgba(0,0,0,.9);
}

/* EMERGING ZONE — без градиента, как ЛОР ПРОЕКТА */
body.lore-page .lore-project {
  display: inline-block;
  margin-top: 24px;
  font-family: "AmazStalker", sans-serif;
  font-size: clamp(40px, 4.2vw, 70px);
  line-height: 1;
  font-weight: normal;
  letter-spacing: .14em;

  background: none !important;
  background-image: none !important;

  color: #d8d5ce !important;
  -webkit-text-fill-color: #d8d5ce !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;

  -webkit-text-stroke: 1px #1d0b06;
  paint-order: stroke fill;

  filter: none;
  text-shadow:
    0 3px 2px #000,
    0 0 7px #000,
    0 0 18px rgba(0,0,0,.90);
}

/* Сохраняем твой сдвиг */
body.lore-page .lore-divider,
body.lore-page .lore-scroll {
  transform: translateY(185px);
}

@media (max-width: 900px) {
  body.lore-page .lore-kicker {
    font-size: clamp(27px, 4vw, 40px);
  }
}

@media (max-width: 700px) {
  body.lore-page .lore-kicker {
    font-size: clamp(23px, 6vw, 34px);
  }

  body.lore-page .lore-divider,
  body.lore-page .lore-scroll {
    transform: translateY(110px);
  }
}
