/* =========================================================
   The Miners — Careers Page
   Upload via FileZilla → /user/documents/careers.css
   Include in Shoptet <head>:
   <link rel="stylesheet" href="/user/documents/careers.css">
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;900&family=Barlow+Condensed:wght@900&display=swap');

/* Нейтрализует padding/max-width, которые Shoptet добавляет к контентной области */
.p-page-content .content-entry,
.p-page-content .content {
  padding: 0 !important;
  max-width: none !important;
}

.careers-page {
  --yellow: #fedd00;
  --black: #000000;
  --white: #ffffff;
  --gray-bg: #d9d9d9;
  --font: 'Neue Haas Grotesk Display Pro', 'Barlow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --title: 76.8px;
  --subtitle: 24px;
  --body: 18px;
  --button: 24px;
  --caption: 10px;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
}

.careers-page *,
.careers-page *::before,
.careers-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── HERO ── */
.careers-page .hero {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
}

.careers-page .hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── STATS ── */
.careers-page .stats-section {
  background: var(--yellow);
  padding: 60px 80px;
  display: flex;
  gap: 68px;
  align-items: flex-start;
}

.careers-page .stats-title {
  font-size: var(--title);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--black);
  white-space: nowrap;
  flex-shrink: 0;
}

.careers-page .stats-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
  gap: 40px;
}

.careers-page .stats-description {
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--black);
  white-space: nowrap;
}

.careers-page .stats-numbers {
  display: flex;
  gap: 68px;
  align-items: center;
}

.careers-page .stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.careers-page .stat-number {
  font-size: var(--title);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--black);
}

.careers-page .stat-label {
  font-size: var(--body);
  font-weight: 400;
  color: var(--black);
  line-height: 1.5;
}

.careers-page .stat-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(0,0,0,0.2);
}

/* ── TEAM ── */
.careers-page .team-section {
  background: var(--white);
  padding: 80px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.careers-page .team-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.careers-page .team-card-image {
  width: 100%;
  aspect-ratio: 281/500;
  background: var(--gray-bg);
  flex-shrink: 0;
  max-width: 282px;
  object-fit: cover;
}

.careers-page .team-card-name {
  font-size: var(--subtitle);
  font-weight: 900;
  line-height: 0.9;
  color: var(--black);
}

.careers-page .team-card-role {
  font-size: var(--caption);
  font-weight: 400;
  text-decoration: underline;
  color: var(--black);
  line-height: 1;
  margin-top: -8px;
}

.careers-page .team-card-quote {
  font-size: var(--body);
  font-weight: 400;
  color: var(--black);
  line-height: 1.5;
}

/* ── TICKER ── */
.careers-page .ticker-wrap {
  background: var(--yellow);
  height: 49px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.careers-page .ticker-track {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: careers-ticker 20s linear infinite;
  will-change: transform;
}

.careers-page .ticker-country {
  font-size: var(--subtitle);
  font-weight: 900;
  line-height: 0.9;
  color: var(--black);
  white-space: nowrap;
}

.careers-page .ticker-arrow {
  width: 12px;
  height: 10px;
  flex-shrink: 0;
  transform: rotate(180deg);
  opacity: 0.6;
}

@keyframes careers-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── JOBS ── */
.careers-page .jobs-section {
  background: var(--white);
  padding: 60px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.careers-page .jobs-title {
  font-size: var(--title);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--black);
  text-align: center;
  white-space: nowrap;
}

.careers-page .jobs-container {
  display: flex;
  flex-direction: column;
  width: 1300px;
  margin: 0 auto;
}

.careers-page .jobs-tabs {
  display: flex;
  height: 43px;
  align-self: flex-start;
}

.careers-page .tab-btn {
  padding: 16px 20px;
  font-size: var(--button);
  font-weight: 900;
  line-height: 0.9;
  cursor: pointer;
  border: none;
  outline: none;
  white-space: nowrap;
  font-family: var(--font);
  transition: background 0.15s, color 0.15s;
}

.careers-page .tab-btn.active {
  background: var(--black);
  color: var(--white);
  border-radius: 2px 0 0 2px;
}

.careers-page .tab-btn.inactive {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
  border-radius: 0 2px 2px 0;
}

.careers-page .job-row {
  background: var(--black);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px;
  cursor: pointer;
  transition: background 0.15s;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.careers-page .job-row:first-of-type { border-top: none; border-radius: 2px 2px 0 0; }
.careers-page .job-row:last-of-type  { border-radius: 0 0 2px 2px; }
.careers-page .job-row:hover         { background: #111; }

.careers-page .job-left {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.careers-page .job-num {
  font-size: var(--button);
  font-weight: 900;
  line-height: 0.9;
  color: var(--white);
}

.careers-page .job-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.careers-page .job-title {
  font-size: var(--button);
  font-weight: 900;
  line-height: 0.9;
  color: var(--white);
}

.careers-page .job-tags {
  display: flex;
  gap: 10px;
  align-items: center;
}

.careers-page .job-tag {
  font-size: var(--caption);
  font-weight: 400;
  color: var(--white);
  text-decoration: underline;
  line-height: 1;
}

.careers-page .job-arrow {
  width: 32px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.careers-page .job-arrow svg {
  width: 40px;
  height: 32px;
}

.careers-page .job-row--open .job-arrow {
  transform: rotate(90deg);
}

/* ── FOOTER ── */
.careers-page footer {
  background: var(--white);
  padding: 40px 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.careers-page .footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.careers-page .footer-tagline {
  font-size: 60px;
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--black);
  white-space: pre;
}

.careers-page .footer-links {
  display: flex;
  gap: 33px;
  align-items: flex-start;
}

.careers-page .footer-col {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.careers-page .footer-col-title {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  color: var(--black);
  line-height: 13px;
}

.careers-page .footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.careers-page .footer-col-links a {
  font-size: 16px;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  line-height: 13px;
}

.careers-page .footer-col-links a:hover { text-decoration: underline; }

.careers-page .footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.careers-page .footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.careers-page .footer-social svg {
  width: 24px;
  height: 24px;
  color: var(--black);
}

.careers-page .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 799px;
}

.careers-page .footer-copy {
  font-size: 14px;
  font-weight: 300;
  color: var(--black);
  line-height: 13px;
}

/* ── JOB DETAIL ACCORDION ── */
.careers-page .job-detail {
  background: var(--white);
  padding: 40px;
  display: none;
}

.careers-page .job-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.4fr;
  gap: 32px;
  align-items: start;
}

.careers-page .job-col-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.careers-page .job-detail-desc {
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--black);
}

.careers-page .job-apply-btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 900;
  padding: 12px 20px;
  text-decoration: underline;
  cursor: pointer;
  border: none;
  width: fit-content;
}

.careers-page .job-apply-btn:hover { opacity: 0.88; }

.careers-page .job-loc-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.careers-page .job-loc-link {
  font-size: var(--body);
  font-weight: 400;
  color: var(--black);
  text-decoration: underline;
}

.careers-page .job-loc-pill {
  background: var(--yellow);
  color: var(--black);
  font-size: var(--body);
  font-weight: 400;
  padding: 4px 10px;
  text-decoration: underline;
}

/* ── JOB DETAIL CARD (offer / responsibilities) ── */
.careers-page .job-detail-card {
  border: 1px solid var(--black);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.careers-page .job-card-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 14px;
}

.careers-page .job-card-hr {
  border: none;
  border-top: 1px solid var(--black);
  margin: 0 0 20px 0;
}

/* Offer list (What we offer) */
.careers-page .job-offer-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.careers-page .job-offer-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.careers-page .offer-icon {
  width: 40px;
  height: 40px;
  background: var(--yellow);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.careers-page .offer-icon svg {
  width: 20px;
  height: 20px;
}

.careers-page .job-offer-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--black);
  padding-top: 4px;
}

/* Responsibilities / Values list */
.careers-page .job-resp-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.careers-page .job-resp-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: start;
}

.careers-page .resp-key {
  font-size: 15px;
  font-weight: 900;
  color: var(--black);
  line-height: 1.4;
}

.careers-page .resp-val {
  font-size: 15px;
  font-weight: 400;
  color: var(--black);
  line-height: 1.4;
}

/* ── GROWTH PATH ── */
.careers-page .job-growth {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.15);
}

.careers-page .job-growth-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--black);
  margin-bottom: 16px;
}

.careers-page .job-growth-hr {
  border: none;
  border-top: 1px solid var(--black);
  margin: 0 0 32px 0;
}

.careers-page .growth-diagram {
  display: flex;
  align-items: center;
  gap: 0;
}

.careers-page .growth-node {
  position: relative;
  border: 1.5px solid var(--black);
  padding: 20px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 160px;
}

.careers-page .growth-badge {
  position: absolute;
  top: -1px;
  left: -1px;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  line-height: 1;
}

.careers-page .growth-icon {
  width: 44px;
  height: 44px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

.careers-page .growth-icon svg {
  width: 24px;
  height: 24px;
}

.careers-page .growth-label {
  font-size: 16px;
  font-weight: 900;
  color: var(--black);
  line-height: 1.1;
}

.careers-page .growth-arrow {
  flex-shrink: 0;
  padding: 0 12px;
  color: var(--black);
  font-size: 20px;
  display: flex;
  align-items: center;
}

.careers-page .growth-arrow svg {
  width: 32px;
  height: 16px;
}

.careers-page .growth-split {
  display: flex;
  align-items: center;
  gap: 0;
}

.careers-page .growth-branch-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.careers-page .growth-branch-arrows {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 0 12px;
  height: 100%;
  gap: 32px;
}

.careers-page .growth-branch-arrows svg {
  width: 32px;
  height: 16px;
}

/* fix: first/last-of-type for job rows won't work with detail panels interleaved */
.careers-page #panel-coffee .job-row:first-child,
.careers-page #panel-hq .job-row:first-child {
  border-top: none;
  border-radius: 2px 2px 0 0;
}

.careers-page #panel-coffee > :last-child,
.careers-page #panel-hq > :last-child {
  border-radius: 0 0 2px 2px;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   CAREERS PAGE — GLOBAL DOM OVERRIDES
   'page-careers' is added to <body> by careers.js ONLY when
   .careers-page is present — zero impact on any other page.
   ═══════════════════════════════════════════════════════════════ */

/* 1. Hide Shoptet chrome we don't need on careers */
.page-careers .top-navigation-bar  { display: none !important; }
.page-careers .breadcrumbs-wrapper { display: none !important; }
.page-careers .pageArticleDetail > header { display: none !important; }

/* 2. Float the main nav over the hero */
.page-careers .overall-wrapper { position: relative; }
.page-careers #header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: none !important;
}
.page-careers #header .navigation-wrapper {
  background: transparent !important;
}
/* Invert black logo → white so it's visible on dark hero */
.page-careers #header .site-name img {
  filter: brightness(0) invert(1);
}
/* Nav links white */
.page-careers #header .menu-level-1 > li > a,
.page-careers #header .top-nav-button-login,
.page-careers #header .cart-count,
.page-careers #header .cart-count .cart-price,
.page-careers #header .navigation-buttons a {
  color: #ffffff !important;
}
/* Hamburger icon white on mobile */
.page-careers #header .top-navigation-tools a {
  filter: brightness(0) invert(1);
}

/* 3. Strip padding/max-width from every wrapper between #header and .careers-page */
.page-careers #content-wrapper {
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  margin-top: 0 !important;
}
.page-careers .content-wrapper-in { padding: 0 !important; }
.page-careers #content            { padding: 0 !important; max-width: none !important; }
.page-careers .content-inner      { padding: 0 !important; }
.page-careers .pageArticleDetail  { padding: 0 !important; margin: 0 !important; }
.page-careers [itemprop="about"]  { padding: 0 !important; margin: 0 !important; }

/* 4. Hero: full viewport, break out of any container max-width */
.page-careers .careers-page .hero {
  height: 100vh !important;
  width: 100vw !important;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
/* Dark gradient at top so nav text stays readable over any photo */
.page-careers .careers-page .hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
