/* =========================
   БАЗОВІ НАЛАШТУВАННЯ
   ========================= */
:root {
  --text: #e9e7df;
  --muted: #b9b7ad;
  --accent: #b6a16b;
  --dark: #090a09;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  background: var(--dark);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
}

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

/* =========================
   ПЕРШИЙ БЛОК — HERO
   ========================= */
.hero {
  min-height: 100vh;
  min-height: 760px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: url("images/bg1.jpeg") center center / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .76) 0%, rgba(0, 0, 0, .35) 48%, rgba(0, 0, 0, .1) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .58), transparent 48%);
}

.main-nav {
  position: absolute;
  z-index: 5;
  top: 46px;
  left: clamp(24px, 7vw, 110px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.main-nav a {
  width: fit-content;
  color: #e7e3d8;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.main-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-title {
  position: relative;
  z-index: 4;
  width: min(600px, 52%);
  margin-left: clamp(24px, 8vw, 130px);
  margin-top: 70px;
  text-shadow: 0 2px 14px #000;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: bold;
}

.hero h1 {
  margin: 8px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: .98;
  letter-spacing: .045em;
  font-weight: 900;
}

.hero-subtitle {
  margin: 14px 0 0;
  font-size: clamp(22px, 3vw, 38px);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-line {
  display: block;
  width: 100px;
  height: 2px;
  margin: 28px 0 16px;
  background: var(--accent);
}

.hero-caption {
  color: #d2d0c7;
  font-size: 16px;
  letter-spacing: .06em;
}

.hero-stalker {
  position: absolute;
  z-index: 2;
  right: clamp(10px, 8vw, 130px);
  bottom: 7%;
  height: 84%;
  width: auto;
  max-width: 48%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .65));
}

.hero-grass {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: cover;
  object-position: bottom;
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  z-index: 6;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-decoration: none;
  font: 42px/1 Arial, sans-serif;
  opacity: .75;
}

/* =========================
   СПІЛЬНІ СТИЛІ СЕКЦІЙ
   ========================= */
.section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 105px 7vw;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Зображення sp.png — декоративний розділювач між секціями. */
.section::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 100%;
  height: 44px;
  background: url("images/sp.png") center top / 100% 44px no-repeat;
  transform: translateY(-20px);
  pointer-events: none;
  opacity: .9;
}

.section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .62);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section h2 {
  margin: 4px 0 24px;
  color: #f1eee5;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.1;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .045em;
  text-shadow: 0 3px 12px #000;
}

.section-kicker {
  margin: 0 0 10px;
}

.section-text {
  color: #dedbd2;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
}

.section-text strong {
  color: #fff;
}

/* =========================
   БЛОК 2 — ГРА
   ========================= */
.game-section {
  background-image: url("images/bg2.jpg");
  min-height: 590px;
}

.game-section::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .48));
}

.game-inner {
  max-width: 900px;
  margin-left: 8%;
}

/* =========================
   БЛОК 3 — МУТАНТИ
   ========================= */
.mutants-section {
  background-image: url("images/bg3.jpg");
  min-height: 650px;
  text-align: center;
}

.mutants-section::after {
  background: rgba(0, 0, 0, .67);
}

.mutants-inner {
  max-width: 1050px;
}

.mutants-image {
  width: min(850px, 90%);
  max-height: 250px;
  object-fit: contain;
  margin: 12px auto 26px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .8));
}

.mutants-text {
  max-width: 900px;
  margin: 0 auto;
}

/* =========================
   БЛОК 4 — ГОЛОВНИЙ ГЕРОЙ
   ========================= */
.strelok-section {
  background-image: url("images/bg4.jpg");
  min-height: 760px;
}

.strelok-section::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, .88));
}

.strelok-inner {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.5fr);
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
}

.strelok-visual {
  height: 610px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.strelok-visual img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .75));
}

.strelok-copy .section-text {
  margin-bottom: 0;
}

/* =========================
   БЛОК 5 — АРТЕФАКТИ
   ========================= */
.artifacts-section {
  background-image: url("images/bg5.jpg");
  min-height: 650px;
}

.artifacts-section::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, .58));
}

.artifacts-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(35px, 7vw, 100px);
}

.artifacts-copy {
  max-width: 570px;
}

.artifact-viewer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.artifact-frame {
  position: relative;
  width: min(390px, 100%);
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border: 1px solid rgba(195, 177, 125, .8);
  background:
    linear-gradient(rgba(8, 9, 8, .78), rgba(8, 9, 8, .9)),
    url("images/bg2.jpg") center / cover;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .6), inset 0 0 25px rgba(0, 0, 0, .8);
}

.artifact-frame::before,
.artifact-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--accent);
  border-style: solid;
  opacity: .8;
}

.artifact-frame::before {
  top: 8px;
  left: 8px;
  border-width: 1px 0 0 1px;
}

.artifact-frame::after {
  right: 8px;
  bottom: 8px;
  border-width: 0 1px 1px 0;
}

.artifact-frame img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, .75));
}

.artifact-frame p {
  margin: 4px 0 0;
  color: #e6d7ae;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 14px;
}

.artifact-counter {
  position: absolute;
  bottom: 10px;
  right: 15px;
  color: #aaa69b;
  font: 11px Arial, sans-serif;
}

.gallery-arrow {
  flex: 0 0 42px;
  width: 42px;
  height: 52px;
  border: 1px solid rgba(195, 177, 125, .65);
  background: rgba(0, 0, 0, .55);
  color: #eee8d7;
  font: 36px/1 Georgia, serif;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.gallery-arrow:hover {
  color: #111;
  background: var(--accent);
}

/* =========================
   ПІДВАЛ
   ========================= */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 7vw;
  color: #85847d;
  background: #070807;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-footer a {
  color: #b9a675;
  text-decoration: none;
}

/* =========================
   АДАПТАЦІЯ ДЛЯ ТЕЛЕФОНІВ
   ========================= */
@media (max-width: 760px) {
  .hero {
    min-height: 720px;
    align-items: flex-start;
  }

  .main-nav {
    top: 24px;
    left: 22px;
    right: 18px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 7px 18px;
  }

  .main-nav a {
    font-size: 10px;
    letter-spacing: .1em;
  }

  .hero-title {
    width: 90%;
    margin: 155px 0 0 24px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 72px);
  }

  .hero-stalker {
    height: 52%;
    max-width: 72%;
    right: -5px;
    bottom: 5%;
    opacity: .9;
  }

  .hero-grass {
    max-height: 19%;
  }

  .section {
    min-height: auto;
    padding: 90px 24px 75px;
  }

  .game-inner {
    margin-left: 0;
  }

  .mutants-image {
    width: 100%;
    max-height: 180px;
  }

  .strelok-inner,
  .artifacts-inner {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .strelok-visual {
    height: 390px;
    order: 2;
  }

  .strelok-copy {
    order: 1;
  }

  .artifacts-copy {
    max-width: none;
  }

  .artifact-frame {
    width: min(310px, 68vw);
  }

  .artifact-viewer {
    gap: 8px;
  }

  .gallery-arrow {
    flex-basis: 36px;
    width: 36px;
    height: 46px;
  }

  .site-footer {
    padding: 18px 22px;
    font-size: 10px;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: 660px;
  }

  .hero-title {
    margin-top: 150px;
  }

  .hero-subtitle {
    font-size: 19px;
  }

  .section h2 {
    font-size: 31px;
  }

  .section-text {
    font-size: 15px;
    line-height: 1.75;
  }
}
