/* ===== Tokens ===== */
:root {
  --bg-black: #050505;
  --bg-dark: #0a0a0a;
  --bg-panel: #151515;
  --text-light: #e6e1d8;
  --gold-dark: #8b5a10;
  --gold-mid: #c28a24;
  --gold-bright: #d29b31;
  --gold-deep: #9a6515;
  --gold-border: #a66d12;
  --cta-bg: #050505;
  --title-white: #f3eee6;
  --title-gold: #f0c33a;
  --tg-blue: #2aaee9;
  --max-content: 500px;
  --side-padding: clamp(10px, 3vw, 14px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  font-family: "Oswald", Impact, "Arial Narrow Bold", sans-serif;
  color: var(--text-light);
  background: var(--bg-black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Full-viewport cinematic background ===== */
.page {
  position: relative;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.page__bg {
  position: fixed;
  left: 0;
  right: 0;
  top: 14%;
  bottom: auto;
  height: 42%;
  z-index: 0;
  background-color: var(--bg-black);
  background-image: url("assets/hero-bg.webp");
  background-size: cover;
  background-position: center 78%;
  background-repeat: no-repeat;
}

.page__overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(5, 5, 5, 0.7) 0%,
      rgba(5, 5, 5, 0.2) 10%,
      transparent 18%,
      transparent 48%,
      rgba(5, 5, 5, 0.55) 58%,
      #050505 70%,
      #050505 100%
    );
}

/* ===== Hero content ===== */
.hero {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100svh;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  justify-content: space-between;
  padding:
    max(clamp(28px, 5vh, 52px), var(--safe-top))
    var(--side-padding)
    max(18px, var(--safe-bottom));
}

.hero__poster {
  width: 100%;
  max-width: var(--max-content);
  height: auto;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
}

/* ===== Unified headline block ===== */
.hero-title {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0 4px;
  text-align: center;
  font-family: "Oswald", Impact, "Arial Narrow Bold", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  overflow: visible;
}

.hero-title__line {
  display: block;
  width: 100%;
  margin: 0;
  line-height: 0.92;
  overflow: visible;
  text-align: center;
}

.hero-title__line--main {
  font-size: clamp(52px, 14.5vw, 86px);
  letter-spacing: 0.01em;
  color: var(--title-white);
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.18) 0 1px,
      transparent 1px 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1px 4px
    ),
    linear-gradient(180deg, #f7f2ea 0%, #d8d0c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.85))
          drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.hero-title__line--gold {
  margin-top: 0.04em;
  font-size: clamp(28px, 8.2vw, 46px);
  letter-spacing: 0.04em;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.16) 0 1px,
      transparent 1px 3px
    ),
    linear-gradient(180deg, #ffe36a 0%, #f0c33a 42%, #c49216 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.85))
          drop-shadow(0 0 12px rgba(240, 195, 58, 0.28));
}

/* ===== CTA buttons ===== */
.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2.2vw, 14px);
  width: calc(100% - 24px);
  max-width: 390px;
  margin-top: auto;
  margin-bottom: clamp(88px, 20vh, 180px);
  margin-left: auto;
  margin-right: auto;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 10px 16px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: #050505;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cta__badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta__badge--telegram {
  background: var(--tg-blue);
  box-shadow: 0 2px 8px rgba(42, 174, 233, 0.35);
}

.cta__badge--instagram {
  background: radial-gradient(
    circle at 30% 28%,
    #fdf497 0%,
    #fd5949 42%,
    #d6249f 68%,
    #285aeb 100%
  );
  box-shadow: 0 2px 8px rgba(214, 36, 159, 0.35);
}

.cta__icon {
  width: 26px;
  height: 26px;
  color: #fff;
}

.cta__text {
  display: flex;
  flex-direction: column;
  font-family: "Montserrat", "Arial Narrow Bold", sans-serif;
  font-size: clamp(13px, 3.6vw, 16px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.18;
  text-transform: uppercase;
  color: #fff;
}

.cta__text-line {
  display: block;
  white-space: nowrap;
}

.cta--manager {
  border-color: #e8c547;
  box-shadow: 0 0 10px rgba(232, 197, 71, 0.45),
              0 0 22px rgba(232, 197, 71, 0.18);
}

.cta--manager:hover {
  box-shadow: 0 0 14px rgba(232, 197, 71, 0.6),
              0 0 28px rgba(232, 197, 71, 0.24);
}

.cta--manager:focus-visible {
  outline: 2px solid #e8c547;
  outline-offset: 3px;
}

.cta--apply {
  border-color: #4ec3f7;
  box-shadow: 0 0 10px rgba(78, 195, 247, 0.45),
              0 0 22px rgba(78, 195, 247, 0.18);
}

.cta--apply:hover {
  box-shadow: 0 0 14px rgba(78, 195, 247, 0.6),
              0 0 28px rgba(78, 195, 247, 0.24);
}

.cta--apply:focus-visible {
  outline: 2px solid #4ec3f7;
  outline-offset: 3px;
}

.cta--instagram {
  border: 2px solid transparent;
  background:
    linear-gradient(#050505, #050505) padding-box,
    linear-gradient(90deg, #f09433 0%, #e1306c 48%, #833ab4 100%) border-box;
  box-shadow: 0 0 10px rgba(225, 48, 108, 0.42),
              0 0 22px rgba(131, 58, 180, 0.22);
}

.cta--instagram:hover {
  box-shadow: 0 0 14px rgba(225, 48, 108, 0.58),
              0 0 28px rgba(131, 58, 180, 0.3);
}

.cta--instagram:focus-visible {
  outline: 2px solid #e1306c;
  outline-offset: 3px;
}

.cta:active {
  transform: scale(0.985);
}

/* ===== Narrow / short viewport tuning ===== */
@media (max-width: 360px) {
  .hero-title__line--main {
    font-size: clamp(44px, 13.5vw, 58px);
  }

  .hero-title__line--gold {
    font-size: clamp(22px, 7.4vw, 30px);
  }

  .cta__text {
    font-size: 12px;
  }

  .cta__badge {
    width: 42px;
    height: 42px;
  }
}

@media (max-height: 740px) {
  .page__bg {
    top: 12%;
    height: 40%;
    background-position: center 76%;
  }

  .hero {
    padding-top: max(clamp(18px, 3.5vh, 32px), var(--safe-top));
  }

  .hero-title__line--main {
    font-size: clamp(46px, 13vw, 72px);
  }

  .hero-title__line--gold {
    font-size: clamp(24px, 7.2vw, 38px);
  }

  .cta-stack {
    gap: 8px;
    margin-bottom: clamp(56px, 14vh, 110px);
  }

  .cta {
    min-height: 64px;
    padding: 8px 14px;
  }

  .cta__badge {
    width: 44px;
    height: 44px;
  }
}

/* ===== Desktop ===== */
@media (min-width: 768px) {
  .page__bg {
    top: 12%;
    height: 46%;
    background-position: center 74%;
  }

  .hero-title__line--main {
    font-size: 86px;
  }

  .hero-title__line--gold {
    font-size: 46px;
  }

  .cta {
    min-height: 80px;
  }

  .cta__text {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}
