/* ═══════════════════════════════════════════════════════════
   DESIGN SYSTEM — HASLAS CRIMINAL GOLD
   Style: Dark OLED + Exaggerated Minimalism + Heavy Gold
   Fonts: Bebas Neue (display) · Cinzel (accent) · Montserrat (body)
   Palette: #000 base · #D4AF37 gold · #FFD700 gold-light
═══════════════════════════════════════════════════════════ */

/* === DESIGN TOKENS === */
:root {
  /* Gold */
  --gold:          #D4AF37;
  --gold-light:    #FFD700;
  --gold-bright:   #FFDD00;
  --gold-dark:     #8B6914;
  --gold-mid:      #B8900A;
  --glow-sm:       rgba(212, 175, 55, 0.35);
  --glow-md:       rgba(212, 175, 55, 0.60);
  --glow-lg:       rgba(212, 175, 55, 0.88);

  /* Blacks */
  --bg:            #000000;
  --bg-900:        #080808;
  --bg-800:        #111111;
  --bg-700:        #1A1A1A;
  --card-bg:       rgba(6, 6, 6, 0.94);

  /* Text */
  --text:          #FFFFFF;
  --text-muted:    #AAAAAA;
  --text-dim:      #666666;

  /* Layout */
  --nav-h:         78px;
  --max-w:         1100px;
  --radius:        8px;

  /* Transitions */
  --t1:  0.20s ease;
  --t2:  0.35s ease;
  --t3:  0.50s ease;

  /* Z-index scale */
  --z-bg:      0;
  --z-overlay: 1;
  --z-content: 10;
  --z-nav:     50;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img   { display: block; max-width: 100%; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   PAGE BACKGROUND (shared — index + work)
═══════════════════════════════════════════════════════════ */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  background: url('background.jpg') center / cover no-repeat;
  background-attachment: fixed;
}

/* iOS Safari — fixed attachment causes blank on scroll */
@supports (-webkit-touch-callout: none) {
  .page-bg { background-attachment: scroll; }
}

.page-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.80) 0%,
    rgba(0,0,0,0.60) 45%,
    rgba(0,0,0,0.82) 100%
  );
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.20);
  transition: background var(--t2), border-color var(--t2);
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.97);
  border-bottom-color: rgba(212, 175, 55, 0.40);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Logo brand ─────────────────────────────────────────── */
.logo-link { display: flex; align-items: center; }

.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform var(--t2);
}

.logo-link:hover .logo-brand,
.logo-link:focus-visible .logo-brand {
  transform: scale(1.04);
  outline: none;
}

/* Crown SVG icon */
.logo-crown {
  flex-shrink: 0;
  width: 48px;
  height: auto;
  animation: crownPulse 3s ease-in-out infinite;
  transition: transform var(--t2);
}

.logo-link:hover .logo-crown,
.logo-link:focus-visible .logo-crown {
  transform: translateY(-2px) scale(1.1);
}

@keyframes crownPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(212,175,55,0.5))
                     drop-shadow(0 0 1px rgba(255,215,0,0.3)); }
  50%       { filter: drop-shadow(0 0 10px rgba(212,175,55,0.95))
                     drop-shadow(0 0 20px rgba(212,175,55,0.40)); }
}

/* Text stack */
.logo-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 4px;
}

.logo-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.15rem;
  letter-spacing: 0.06em;
  line-height: 1;
  background: linear-gradient(
    180deg,
    #FFFFFF  0%,
    #FFE55C 10%,
    #FFD700 25%,
    #D4AF37 44%,
    #FFE44D 56%,
    #B8860B 73%,
    #FFD700 87%,
    #8B6914 100%
  );
  background-size: 100% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldDrip 3.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.40));
}

.logo-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  animation: taglineFade 4s ease-in-out infinite;
}

@keyframes taglineFade {
  0%, 100% { opacity: 0.75; }
  50%       { opacity: 1.00; }
}

/* Nav links list */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: color var(--t2), border-color var(--t2), background var(--t2), text-shadow var(--t2);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--gold-light);
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.05);
  text-shadow: 0 0 14px var(--glow-sm);
  outline: none;
}

/* "Работа" highlighted */
.nav-link--work {
  color: var(--gold-dark);
  border-color: rgba(212, 175, 55, 0.28);
}
.nav-link--work:hover,
.nav-link--work:focus-visible {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.10);
}

/* ═══════════════════════════════════════════════════════════
   HAMBURGER
═══════════════════════════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 5px;
  cursor: pointer;
  transition: border-color var(--t2);
}
.hamburger:hover { border-color: var(--gold); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform var(--t2), opacity var(--t2);
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px)  rotate(45deg);  }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: var(--z-content);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) 24px 60px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 680px;
}

/* ═══════════════════════════════════════════════════════════
   CHARACTER CROSSFADE
   Structure:  .char-wrap (entrance anim + interaction)
               └── .char-float (float anim)
                   ├── .char-img--default (z-index 2, opacity 1)
                   └── .char-img--alt    (z-index 3, opacity 0, abs)
═══════════════════════════════════════════════════════════ */
.char-wrap {
  position: relative;
  width: clamp(220px, 60vw, 500px);
  margin-bottom: 22px;
  cursor: pointer;
}

.char-float {
  position: relative;
  animation: charFloat 6s ease-in-out 0.9s infinite;
}

.char-img {
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.40s ease;
}

.char-img--default {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  opacity: 1;
}

.char-img--alt {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 3;
  opacity: 0;
}

/* Desktop — CSS hover crossfade */
@media (hover: hover) {
  .char-wrap:hover .char-img--default { opacity: 0; }
  .char-wrap:hover .char-img--alt     { opacity: 1; }
}

/* Mobile — JS adds .tapped class */
.char-wrap.tapped .char-img--default { opacity: 0; }
.char-wrap.tapped .char-img--alt     { opacity: 1; }

@keyframes charFloat {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-14px); }
}

/* ═══════════════════════════════════════════════════════════
   HERO TYPOGRAPHY
═══════════════════════════════════════════════════════════ */
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

/* ── GOLD DRIP EFFECT ────────────────────────────────────── */
.gold-drip {
  background: linear-gradient(
    180deg,
    #FFFFFF  0%,
    #FFE55C 10%,
    #FFD700 25%,
    #D4AF37 44%,
    #FFE44D 56%,
    #B8860B 73%,
    #FFD700 87%,
    #8B6914 100%
  );
  background-size: 100% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldDrip 4s ease-in-out infinite;
  filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.45));
}

@keyframes goldDrip {
  0%   { background-position: 0% 0%;   }
  50%  { background-position: 0% 100%; }
  100% { background-position: 0% 0%;   }
}

.hero-sub {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.90rem, 2.4vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 42px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.15);
}

/* ═══════════════════════════════════════════════════════════
   GOLD BUTTONS
═══════════════════════════════════════════════════════════ */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 28px;
  min-height: 56px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(0, 0, 0, 0.82);
  border: 2.5px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  animation: btnGlow 2.5s ease-in-out infinite;
  transition:
    transform    var(--t2),
    background   var(--t2),
    color        var(--t2),
    box-shadow   var(--t2),
    border-color var(--t2);
}

/* Shimmer sweep on hover */
.btn-gold::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 25%,
    rgba(255, 215, 0, 0.14) 50%,
    transparent 75%
  );
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}
.btn-gold:hover::after,
.btn-gold:focus-visible::after { transform: translateX(100%); }

.btn-gold:hover,
.btn-gold:focus-visible {
  transform: scale(1.06) translateY(-3px);
  background: rgba(212, 175, 55, 0.10);
  color: var(--gold-bright);
  border-color: var(--gold-light);
  box-shadow:
    0 0 18px var(--glow-md),
    0 0 36px var(--glow-sm),
    0 12px 32px rgba(0, 0, 0, 0.65);
  outline: none;
  animation-play-state: paused;
}

.btn-gold:active { transform: scale(0.97); }

/* Staggered pulse for hero row */
.btn-row .btn-gold:nth-child(1) { animation-delay: 0.0s; }
.btn-row .btn-gold:nth-child(2) { animation-delay: 0.5s; }
.btn-row .btn-gold:nth-child(3) { animation-delay: 1.0s; }

@keyframes btnGlow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(212,175,55,0.25), 0 0 16px rgba(212,175,55,0.10);
  }
  50% {
    box-shadow: 0 0 18px rgba(212,175,55,0.55), 0 0 36px rgba(212,175,55,0.25), 0 0 54px rgba(212,175,55,0.12);
  }
}

/* ═══════════════════════════════════════════════════════════
   ENTRANCE ANIMATIONS
═══════════════════════════════════════════════════════════ */
.animate-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   WORK PAGE
═══════════════════════════════════════════════════════════ */
.work-section {
  position: relative;
  z-index: var(--z-content);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 52px) 24px 80px;
}

.work-card {
  background: var(--card-bg);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 14px;
  padding: 52px 44px;
  max-width: 820px;
  width: 100%;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 60px rgba(212, 175, 55, 0.06),
    inset 0 1px 0 rgba(212, 175, 55, 0.12),
    0 28px 80px rgba(0, 0, 0, 0.92);
}

.work-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.work-tagline {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.20);
  text-shadow: 0 0 20px var(--glow-sm);
}

.job-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-card {
  background: rgba(16, 16, 16, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 26px;
  cursor: default;
  transition: border-color var(--t2), box-shadow var(--t2), background var(--t2);
}

.job-card:hover {
  border-color: rgba(212, 175, 55, 0.38);
  border-left-color: var(--gold-light);
  background: rgba(22, 22, 22, 0.95);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.07);
}

.job-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.job-title {
  font-family: 'Cinzel', serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.job-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.70;
  margin-bottom: 14px;
}

.job-reqs {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.job-reqs li {
  font-size: 13px;
  color: #777777;
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.job-reqs li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
}

.work-cta {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.work-cta p {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.97);
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 16px;
    gap: 0;
  }

  .nav-links.open { display: flex; }

  .nav-link {
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    padding: 15px 24px;
    font-size: 13px;
    justify-content: flex-start;
    letter-spacing: 0.10em;
  }

  .nav-links li:last-child .nav-link { border-bottom: none; }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-gold {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .work-card { padding: 32px 20px; }
}

@media (max-width: 480px) {
  .char-wrap { width: clamp(180px, 82vw, 310px); }
  .hero { padding-top: calc(var(--nav-h) + 16px); }
  .work-section { padding-top: calc(var(--nav-h) + 32px); }
}

/* ═══════════════════════════════════════════════════════════
   WORK PAGE v2 — JOB CONTENT
═══════════════════════════════════════════════════════════ */
.cities-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.city-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.30);
  padding: 6px 14px;
  border-radius: 20px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.work-box {
  background: rgba(14, 14, 14, 0.86);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.work-box-title {
  font-family: 'Cinzel', serif;
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.pos-list,
.req-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pos-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}

.pos-item::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.pos-note {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 3px;
  font-style: italic;
}

.pos-individ {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(212, 175, 55, 0.18);
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.5;
}

.req-item {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}

.req-item::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
}

.req-sub {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.benefit-item {
  background: rgba(14, 14, 14, 0.82);
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.work-highlight {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: var(--radius);
  padding: 18px 24px;
  text-align: center;
  margin-bottom: 22px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  letter-spacing: 0.08em;
  color: var(--gold-light);
  text-shadow: 0 0 22px var(--glow-sm);
}

.work-extra {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
  padding: 14px 18px;
  background: rgba(10, 10, 10, 0.7);
  border-left: 2px solid rgba(212, 175, 55, 0.25);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .work-grid     { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   DOLLAR RAIN
═══════════════════════════════════════════════════════════ */
.dollar-rain {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  overflow: hidden;
  perspective: 800px;
}

.dollar-bill {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: auto;
  will-change: transform, opacity;
  transform-origin: center center;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

@media (prefers-reduced-motion: reduce) {
  .dollar-rain { display: none; }
}
