/* ============================================================
   Technorazum — Hire (Найм будущего) Page Styles
   Mobile-first | 320 → 480 → 768 → 1024 → 1280 → 1920
   GPU-accelerated animations | @imports shared theme
   ============================================================ */

@import url('../_shared/style.css');
@import url('../main/main.css');

/* ---------- Page-local palette overrides ---------- */
:root {
  --hire-bg: #0a0a0f;
  --hire-bg-soft: #0f0f17;
  --hire-accent: #8B5CF6;
  --hire-accent-2: #3B82F6;
  --hire-accent-3: #06B6D4;
  --hire-gradient: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 50%, #06B6D4 100%);
  --hire-text: #ffffff;
  --hire-text-muted: #e5e7eb;
  --hire-border: rgba(139, 92, 246, 0.18);
  --hire-border-hot: rgba(139, 92, 246, 0.45);
  --hire-card: rgba(255, 255, 255, 0.03);
  --hire-card-hover: rgba(139, 92, 246, 0.08);
}

/* ---------- Reset for this page ---------- */
* { box-sizing: border-box; }
html, body { background: var(--hire-bg); }

/* ============================================================
   HERO
   ============================================================ */
.hire-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.25rem 4rem;
  overflow: hidden;
  isolation: isolate;
}

.hire-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.25), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.18), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.12), transparent 60%);
  animation: hireBgPulse 12s ease-in-out infinite;
  will-change: opacity;
}

@keyframes hireBgPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.65; }
}

.hire-hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  background: var(--hire-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hire-hero__title {
  font-size: clamp(2.25rem, 6vw + 1rem, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--hire-text);
  max-width: 1000px;
  margin: 0 0 1.5rem;
}

.hire-hero__title .accent {
  background: var(--hire-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hire-hero__subtitle {
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.25rem);
  line-height: 1.6;
  color: var(--hire-text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  opacity: 0.9;
}

.hire-hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hire-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.hire-btn--primary {
  background: var(--hire-gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}
.hire-btn--primary:hover,
.hire-btn--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(139, 92, 246, 0.5);
  outline: none;
}

.hire-btn--ghost {
  background: transparent;
  color: var(--hire-text);
  border-color: rgba(255, 255, 255, 0.18);
}
.hire-btn--ghost:hover,
.hire-btn--ghost:focus-visible {
  transform: translateY(-2px);
  border-color: var(--hire-accent-3);
  background: rgba(6, 182, 212, 0.08);
  outline: none;
}

.hire-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: 0.7;
}
.hire-hero__scroll::after {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--hire-accent-3);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0);   opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ============================================================
   GENERIC SECTION
   ============================================================ */
.hire-section {
  position: relative;
  padding: 5rem 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
}

.hire-section__head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.hire-section__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--hire-accent-3);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.hire-section__title {
  font-size: clamp(1.75rem, 3vw + 1rem, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--hire-text);
  margin: 0 0 1rem;
}

.hire-section__title .accent {
  background: var(--hire-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hire-section__lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--hire-text-muted);
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.85;
}

/* ============================================================
   TWO-COLUMN LAYOUT (Gamification block)
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.two-col__text h3 {
  font-size: clamp(1.5rem, 2vw + 0.8rem, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  color: var(--hire-text);
  letter-spacing: -0.02em;
}

.two-col__text h3 .accent {
  background: var(--hire-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.two-col__text p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--hire-text-muted);
  margin: 0 0 1.25rem;
  opacity: 0.9;
}

.two-col__text ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.two-col__text ul li {
  position: relative;
  padding-left: 2rem;
  color: var(--hire-text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.two-col__text ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--hire-accent);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ============================================================
   FLIP-CARD (gamification right column)
   Re-uses .feature-card scaffolding from main.css, extends it
   with a 3D flip on hover/focus (desktop) and tap (mobile).
   ============================================================ */
.flip-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  perspective: 1200px;
  /* Override the auto-cycling animation from main.css — we want
     a controlled reveal + flip, not a fade loop. */
  animation: none !important;
  min-height: 280px;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  min-height: 280px;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.flip-card.is-flipped .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flip-card__face--front {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(59, 130, 246, 0.12));
  border: 1px solid var(--hire-border-hot);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
}

.flip-card__face--back {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(59, 130, 246, 0.18));
  border: 1px solid rgba(6, 182, 212, 0.45);
  box-shadow: 0 10px 40px rgba(6, 182, 212, 0.15);
  transform: rotateY(180deg);
}

.flip-card__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hire-accent-3);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.flip-card__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--hire-text);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.flip-card__text {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--hire-text-muted);
  margin: 0 0 1.5rem;
  opacity: 0.92;
}

.flip-card__hint {
  font-size: 0.8125rem;
  color: var(--hire-accent-3);
  margin-top: auto;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.flip-card__hint::before {
  content: '↻';
  display: inline-block;
  transition: transform 0.4s ease;
}

.flip-card:hover .flip-card__hint::before,
.flip-card:focus-within .flip-card__hint::before {
  transform: rotate(180deg);
}

/* Back face — candidate metrics */
.flip-card__metrics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
}

.flip-card__metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.flip-card__metric:last-child { border-bottom: 0; }

.flip-card__metric-label {
  font-size: 0.875rem;
  color: var(--hire-text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.flip-card__metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--hire-text);
  font-variant-numeric: tabular-nums;
  background: var(--hire-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.flip-card__bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.flip-card__bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--hire-gradient);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card.is-flipped .flip-card__bar-fill { /* will be set by JS */ }

/* ============================================================
   CASE-CHAMP TIMELINE
   ============================================================ */
.case-timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  counter-reset: step;
  margin: 2rem 0 0;
  padding: 0;
}

.case-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--hire-accent), var(--hire-accent-2), var(--hire-accent-3), transparent);
  z-index: 0;
}

.case-step {
  position: relative;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 1.25rem 1.25rem 0;
  background: var(--hire-card);
  border: 1px solid var(--hire-border);
  border-radius: 14px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  z-index: 1;
  counter-increment: step;
}

.case-step:hover {
  transform: translateX(6px);
  border-color: var(--hire-border-hot);
  background: var(--hire-card-hover);
}

.case-step__num {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--hire-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.125rem;
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.35);
  position: relative;
  z-index: 2;
}

.case-step__num::after {
  content: counter(step);
}

.case-step__body { flex: 1; min-width: 0; }

.case-step__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--hire-text);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.case-step__desc {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--hire-text-muted);
  margin: 0;
  opacity: 0.9;
}

.case-step__chip {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hire-accent-3);
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.08);
}

/* Case-champ advantages grid */
.case-advantages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.case-advantage {
  padding: 1.5rem;
  background: var(--hire-card);
  border: 1px solid var(--hire-border);
  border-radius: 14px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.case-advantage:hover {
  transform: translateY(-4px);
  border-color: var(--hire-border-hot);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.15);
}

.case-advantage__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  background: var(--hire-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.case-advantage__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--hire-text);
  margin: 0 0 0.4rem;
}

.case-advantage__text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--hire-text-muted);
  margin: 0;
  opacity: 0.9;
}

/* ============================================================
   AI-SCORING (3 cards)
   ============================================================ */
.scoring-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.scoring-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--hire-card);
  border: 1px solid var(--hire-border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.scoring-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--hire-gradient);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.35s ease;
  filter: blur(14px);
}

.scoring-card:hover {
  transform: translateY(-6px);
  border-color: var(--hire-border-hot);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.25);
}
.scoring-card:hover::before { opacity: 0.35; }

.scoring-card__icon {
  font-size: 2.5rem;
  display: inline-block;
  margin-bottom: 1rem;
  background: var(--hire-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 14px rgba(139, 92, 246, 0.4));
}

.scoring-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--hire-text);
  margin: 0 0 0.5rem;
}

.scoring-card__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--hire-text-muted);
  margin: 0 0 1.25rem;
  opacity: 0.9;
}

.scoring-card__bars {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.scoring-card__bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--hire-text-muted);
}

.scoring-card__bar-row > span:first-child {
  flex: 0 0 96px;
  letter-spacing: 0.04em;
}

.scoring-card__bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.scoring-card__bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--hire-gradient);
  border-radius: 2px;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scoring-card__bar-value {
  flex: 0 0 38px;
  text-align: right;
  color: var(--hire-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   PARTNERS — horizontal scroll strip
   ============================================================ */
.partner-logos {
  position: relative;
  margin: 1.5rem 0 0;
  /* Fade edges for a polished scroll affordance */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.partner-logos__track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.5rem 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.4) transparent;
  -webkit-overflow-scrolling: touch;
}

.partner-logos__track::-webkit-scrollbar { height: 6px; }
.partner-logos__track::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.4);
  border-radius: 3px;
}
.partner-logos__track::-webkit-scrollbar-track { background: transparent; }

.partner-chip {
  flex: 0 0 auto;
  min-width: 180px;
  padding: 1.25rem 1.5rem;
  background: var(--hire-card);
  border: 1px solid var(--hire-border);
  border-radius: 14px;
  text-align: center;
  scroll-snap-align: start;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--hire-text);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.partner-chip:hover,
.partner-chip.is-active {
  transform: translateY(-3px);
  border-color: var(--hire-border-hot);
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.2);
}

.partner-chip__mark {
  font-size: 1.5rem;
  background: var(--hire-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.partner-chip__sub {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hire-text-muted);
  font-weight: 500;
}

.partner-logos__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 0 1rem;
}

.partner-filter {
  padding: 0.5rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: transparent;
  color: var(--hire-text-muted);
  border: 1px solid var(--hire-border);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.partner-filter:hover,
.partner-filter.is-active {
  color: var(--hire-text);
  border-color: var(--hire-border-hot);
  background: rgba(139, 92, 246, 0.1);
}

.partner-logos__note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--hire-text-muted);
  opacity: 0.75;
}

.partner-logos__note a {
  color: var(--hire-accent-3);
  text-decoration: none;
  border-bottom: 1px dashed rgba(6, 182, 212, 0.4);
}
.partner-logos__note a:hover { color: var(--hire-text); }

/* ============================================================
   REVEAL on scroll — paired with hire.js
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   BREAKPOINTS
   ============================================================ */
@media (min-width: 480px) {
  .hire-section { padding: 5rem 1.5rem; }
}

@media (min-width: 768px) {
  .hire-section { padding: 6rem 2rem; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .case-timeline { grid-template-columns: 1fr 1fr; }
  .case-timeline::before {
    top: 0;
    left: 50%;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
  }
  .scoring-grid { grid-template-columns: repeat(3, 1fr); }
  .case-advantages { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .hire-section { padding: 7rem 2rem; }
  .case-timeline { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
  .case-timeline::before { display: none; } /* horizontal layout uses its own visual */
  .case-step { flex-direction: column; text-align: center; padding: 1.5rem 1rem; }
  .case-step__num { margin: 0 auto 0.75rem; }
  .case-advantages { grid-template-columns: repeat(4, 1fr); }
  .partner-chip { min-width: 220px; padding: 1.75rem 2rem; }
}

@media (min-width: 1280px) {
  .hire-section { padding: 8rem 2.5rem; }
}

@media (min-width: 1920px) {
  .hire-section { max-width: 1440px; }
}

/* ============================================================
   REDUCED MOTION — respect user preference
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .flip-card__inner { transition: none; }
}
