/* =========================================================
  hero.css
  Hero + header/navigation.
========================================================= */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding: 18px 0;
}

.header-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(12, 35, 27, 0.52);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 850;
  letter-spacing: -0.025em;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(255, 220, 29, 0.16);
}

.brand-mark img {
  width: 86%;
  height: 86%;
  object-fit: contain;
}

.brand-text small {
  display: block;
  margin-top: -3px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover {
  color: var(--yellow);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 70px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 220, 29, 0.30), transparent 23%),
    radial-gradient(circle at 18% 82%, rgba(240, 106, 42, 0.26), transparent 28%),
    linear-gradient(135deg, rgba(13, 43, 32, 0.96), rgba(46, 7, 90, 0.94)),
    linear-gradient(135deg, var(--forest), var(--purple-deep));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.42) 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255,220,29,0.34) 1px, transparent 1.4px);
  background-size: 74px 74px, 118px 118px;
  background-position: 0 0, 38px 28px;
  opacity: 0.18;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -8% -2px -8%;
  height: 310px;
  background:
    linear-gradient(140deg, transparent 0 46%, rgba(255,255,255,0.20) 46% 48%, transparent 48%),
    linear-gradient(135deg, #0b261c 0 50%, transparent 50%),
    linear-gradient(225deg, #173d2d 0 50%, transparent 50%);
  clip-path: polygon(0 100%, 14% 55%, 27% 86%, 41% 42%, 55% 90%, 70% 50%, 83% 84%, 100% 48%, 100% 100%);
  opacity: 0.95;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-title {
  margin: 0;
  font-size: clamp(52px, 7.6vw, 92px);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: -0.065em;
}

.hero-subtitle {
  margin: 8px 0 24px;
  color: var(--yellow);
  font-size: clamp(27px, 3.6vw, 44px);
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -0.025em;
  text-shadow: 0 10px 34px rgba(255, 176, 0, 0.34);
}

.hero-lead {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 26px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-visual {
  position: relative;
  min-height: 540px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 220, 29, 0.36), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.045));
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(180deg, rgba(13, 43, 32, 0.18), rgba(13, 43, 32, 0.52)),
    url("../assets/hero-camp-karpaty.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.95;
}

.photo-instruction {
  position: absolute;
  left: 24px;
  top: 24px;
  right: 24px;
  z-index: 5;
  padding: 18px;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.32);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.photo-instruction small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 700;
}

.scene-mountains,
.scene-ground,
.scene-tent,
.scene-fire {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.scene-mountains {
  inset: auto 0 94px 0;
  height: 258px;
  background:
    linear-gradient(140deg, transparent 0 46%, rgba(255,255,255,0.28) 46% 48%, transparent 48%),
    linear-gradient(135deg, #173a2d 0 50%, transparent 50%),
    linear-gradient(225deg, #234f39 0 50%, transparent 50%);
  clip-path: polygon(0 100%, 18% 32%, 34% 78%, 50% 20%, 66% 86%, 82% 38%, 100% 100%);
  opacity: 0.78;
}

.scene-ground {
  inset: auto 0 0 0;
  height: 158px;
  background: linear-gradient(180deg, rgba(24, 61, 45, 0.92), rgba(16, 41, 31, 0.98));
}

.scene-tent {
  left: 58px;
  bottom: 54px;
  width: 192px;
  height: 112px;
  background: var(--yellow);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 22px 24px rgba(0,0,0,0.22));
}

.scene-tent::after {
  content: "";
  position: absolute;
  left: 67px;
  bottom: 0;
  width: 58px;
  height: 74px;
  background: var(--purple-deep);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.scene-fire {
  right: 74px;
  bottom: 44px;
  width: 120px;
  height: 126px;
}

.flame {
  position: absolute;
  left: 34px;
  bottom: 38px;
  width: 56px;
  height: 82px;
  background: var(--amber);
  border-radius: 80% 0 80% 80%;
  transform: rotate(-45deg);
  box-shadow: 0 0 72px rgba(255, 176, 0, 0.58);
}

.flame::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 11px;
  width: 27px;
  height: 43px;
  background: #fff1a8;
  border-radius: 80% 0 80% 80%;
}

.logs {
  position: absolute;
  left: 20px;
  bottom: 26px;
  width: 88px;
  height: 11px;
  border-radius: 999px;
  background: #f4d1a0;
  transform: rotate(18deg);
}

.logs::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #e0b078;
  transform: rotate(-36deg);
}

@media (max-width: 1120px) {
  .nav-links {
    gap: 11px;
    font-size: 13px;
  }
}

@media (max-width: 1020px) {
  .hero {
    min-height: auto;
    padding-top: 120px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-inner {
    border-radius: 24px;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 84px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 24px;
    background: rgba(12, 35, 27, 0.92);
    backdrop-filter: blur(18px);
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 22px, var(--max));
  }

  .hero {
    padding: 104px 0 42px;
  }

  .brand-text small {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 390px;
    border-radius: 28px;
  }

  .photo-instruction {
    left: 16px;
    top: 16px;
    right: 16px;
    padding: 14px;
  }

  .scene-mountains {
    height: 210px;
    bottom: 76px;
  }

  .scene-ground {
    height: 126px;
  }

  .scene-tent {
    left: 28px;
    bottom: 42px;
    width: 142px;
    height: 86px;
  }

  .scene-tent::after {
    left: 49px;
    width: 44px;
    height: 56px;
  }

  .scene-fire {
    right: 24px;
    bottom: 22px;
    transform: scale(0.78);
  }
}
