/* ================= ВКЛАДКА «РАБОТА» ВНУТРИ НИЖНЕЙ РАМКИ ================= */
.jobs-inline-stage {
  position: relative;
  width: 100%;
  min-height: 100%;
  border-radius: 18px;
  padding: 26px 20px 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse 85% 70% at 50% 42%, rgba(155, 38, 86, 0.24) 0%, rgba(16, 10, 26, 0.78) 68%, rgba(10, 6, 18, 0.4) 100%);
  transition: background 0.6s ease, box-shadow 0.6s ease;
}

.jobs-inline-stage.theme-sf {
  background: radial-gradient(ellipse 85% 70% at 50% 42%, rgba(56, 189, 248, 0.22) 0%, rgba(14, 24, 48, 0.78) 68%, rgba(10, 14, 28, 0.4) 100%);
}

/* Атмосферная и насыщенная дневная тема для PRI и Studio Fantastica */
body.light-theme .jobs-inline-stage.theme-pri,
body.theme-morning .jobs-inline-stage.theme-pri {
  background: radial-gradient(ellipse 85% 75% at 50% 40%, rgba(244, 63, 94, 0.22) 0%, rgba(251, 207, 232, 0.55) 48%, rgba(235, 226, 248, 0.85) 100%);
  box-shadow: inset 0 0 60px rgba(225, 29, 72, 0.12);
}

body.light-theme .jobs-inline-stage.theme-sf,
body.theme-morning .jobs-inline-stage.theme-sf {
  background: radial-gradient(ellipse 85% 75% at 50% 40%, rgba(14, 165, 233, 0.24) 0%, rgba(191, 219, 254, 0.58) 48%, rgba(228, 236, 252, 0.85) 100%);
  box-shadow: inset 0 0 60px rgba(2, 132, 199, 0.12);
}

.jobs-art-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.45s ease;
}

body.light-theme .jobs-art-wrap,
body.theme-morning .jobs-art-wrap {
  opacity: 0.85;
  filter: saturate(1.4) contrast(1.15);
}

.pri-geo-spin { transform-origin: 600px 400px; animation: priSpin 46s linear infinite; }
.pri-geo-rev  { transform-origin: 600px 400px; animation: priSpinRev 34s linear infinite; }
.pri-glitch-group { animation: priGlitch 6.5s infinite; }

@keyframes priSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes priSpinRev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes priGlitch {
  0%, 88%, 92%, 96%, 100% { transform: translate3d(0, 0, 0); opacity: 0.55; }
  89% { transform: translate3d(-6px, 2px, 0); opacity: 0.85; }
  90% { transform: translate3d(5px, -2px, 0); opacity: 0.35; }
  94% { transform: translate3d(-4px, 0, 0); opacity: 0.8; }
}

.sf-calm-float { animation: sfFloat 12s ease-in-out infinite alternate; will-change: transform, opacity; }
@keyframes sfFloat { 0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.5; } 100% { transform: translate3d(0, -14px, 0) scale(1.03); opacity: 0.72; } }

.jobs-center {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jobs-main-title {
  font-size: clamp(1.3rem, 2.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 20px;
  background: var(--logo-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.jobs-switcher {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 320px;
  max-width: 100%;
  height: 42px;
  padding: 4px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  user-select: none;
  touch-action: none;
  cursor: grab;
  margin-bottom: 22px;
}

.jobs-switcher:active {
  cursor: grabbing;
}

.jobs-switcher::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 24%;
  height: 52%;
  width: 1px;
  background: var(--glass-border);
  pointer-events: none;
}

.jobs-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  height: calc(100% - 8px);
  border-radius: 999px;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), background 0.5s ease, border-color 0.5s ease;
  pointer-events: none;
}

.jobs-inline-stage.theme-pri .jobs-thumb {
  background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%);
  border: 1px solid rgba(255, 164, 188, 0.55);
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.36);
}

.jobs-inline-stage.theme-sf .jobs-thumb {
  background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  border: 1px solid rgba(178, 222, 255, 0.6);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.36);
}

/* Текст кнопок PRI и Studio Fantastica строго по вертикальному и горизонтальному центру */
.jobs-tab-btn {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  pointer-events: none;
  transition: color 0.25s ease;
}

.jobs-tab-btn.active {
  color: #ffffff;
}

.jobs-viewport {
  width: 100%;
  overflow: hidden;
  padding: 4px 2px 10px;
}

.jobs-info-box {
  width: 100%;
  padding: 28px 24px 34px;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform, opacity;
  transition: border-color 0.5s ease, background-color 0.5s ease;
}

body.light-theme .jobs-info-box,
body.theme-morning .jobs-info-box {
  background: rgba(255, 255, 255, 0.86);
}

.jobs-inline-stage.theme-pri .jobs-info-box { border-color: rgba(225, 29, 72, 0.36); }
.jobs-inline-stage.theme-sf .jobs-info-box  { border-color: rgba(14, 165, 233, 0.38); }

.jobs-info-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.jobs-age-pill {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  transition: all 0.45s ease;
}

.jobs-inline-stage.theme-pri .jobs-age-pill {
  color: #be123c;
  background: rgba(225, 29, 72, 0.14);
  border: 1px solid rgba(225, 29, 72, 0.42);
}

body:not(.theme-morning):not(.light-theme) .jobs-inline-stage.theme-pri .jobs-age-pill {
  color: #ff859d;
}

.jobs-inline-stage.theme-sf .jobs-age-pill {
  color: #0369a1;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(14, 165, 233, 0.42);
}

body:not(.theme-morning):not(.light-theme) .jobs-inline-stage.theme-sf .jobs-age-pill {
  color: #98dcff;
}

.jobs-soon-glow {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  user-select: none;
  animation: soonShine 4.5s ease-in-out infinite;
}

.jobs-inline-stage.theme-pri .jobs-soon-glow { text-shadow: 0 0 24px rgba(225, 29, 72, 0.38); }
.jobs-inline-stage.theme-sf .jobs-soon-glow  { text-shadow: 0 0 26px rgba(14, 165, 233, 0.42); }

@keyframes soonShine {
  0%, 100% { opacity: 0.88; transform: scale3d(0.99, 0.99, 1); }
  50% { opacity: 1; transform: scale3d(1.02, 1.02, 1); }
}
