:root {
  --bg: #ffffff;
  --text: #0b1020;
  --muted: #64748b;
  --card: #f5f7fb;
  --line: #e5e7eb;
  --brand: #07b6ff;
  --brand2: #2563eb;
  --shadow: 0 20px 60px rgba(11, 16, 32, 0.12);
  --shadow2: 0 14px 40px rgba(11, 16, 32, 0.1);
  --radius: 22px;
  --radius2: 28px;
  --max: 1160px;
}

/* If join.css already sets base styles, these are gentle fallbacks */
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background-color: var(--bg);
  
}
a {
  color: inherit;
}

.jf-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

/* --- Header --- */
.jf-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}
.jf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}
.jf-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.jf-logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: radial-gradient(
    65% 65% at 30% 30%,
    #5ce1ff 0%,
    #1a94ff 55%,
    #2563eb 100%
  );
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.22);
  position: relative;
}
.jf-logo__mark:after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  transform: rotate(12deg);
}

.jf-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.jf-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}
.jf-lang {
  display: flex;
  gap: 6px;
}
.jf-lang button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.jf-lang button[aria-pressed="true"] {
  border-color: rgba(7, 182, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(7, 182, 255, 0.15);
  color: #055b7a;
}

.jf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(7, 182, 255, 0.45);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.2);
  text-decoration: none;
}
.jf-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.24);
}
.jf-btn:active {
  transform: translateY(0px);
}

/* --- Hero --- */
.jf-hero {
  position: relative;
  overflow: hidden;
  margin-top: 100px;
}
.jf-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  padding: 44px 0 30px;
}

.jf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #0b1020;
}
.jf-kicker .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(7, 182, 255, 0.18);
}

.jf-title {
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.02;
  margin: 12px 0 10px;
  letter-spacing: -0.8px;
}
.jf-title .accent {
  color: var(--brand);
}
.jf-sub {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 52ch;
}

/* Better looking CTA row (what user circled as "not very nice") */
.jf-ctaRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-top: 20px;
}
.jf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.jf-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(245, 247, 251, 0.9);
  border: 1px solid rgba(229, 231, 235, 0.9);
  color: #0b1020;
  font-weight: 700;
  font-size: 13px;
}
.jf-chip svg {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

/* Right image collage */
.jf-collage {
  position: relative;
}
.jf-photoMain {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius2);
  object-fit: cover;
  border: 3px solid rgba(7, 182, 255, 0.38);
}
.jf-photoMini {
  position: absolute;
  right: -128px;
  bottom: -18px;
  width: min(44%, 240px);
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid rgba(37, 99, 235, 0.35);
  transform: rotate(2.5deg);
}

/* Dotted patch like in the reference */
.jf-dotPatch {
  position: absolute;
  left: -20px;
  top: 34%;
  width: 150px;
  height: 150px;
  border-radius: 26px;
  background-image: radial-gradient(
    rgba(7, 182, 255, 0.35) 1.6px,
    transparent 1.7px
  );
  background-size: 10px 10px;
  filter: saturate(1.1);
  opacity: 0.85;
}

/* Fun sticker */
.jf-sticker {
  position: absolute;
  left: -18px;
  top: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.98),
    rgba(6, 182, 255, 0.92)
  );
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.22);
}

/* Floating sparkles */
.jf-spark {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.jf-star {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 6px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(147, 197, 253, 1),
    rgba(6, 182, 255, 1)
  );
  transform: rotate(18deg);
  filter: drop-shadow(0 12px 26px rgba(37, 99, 235, 0.18));
  opacity: 0.9;
}
.jf-star.s1 {
  left: 6%;
  top: 18%;
  animation-duration: 8.6s;
}
.jf-star.s2 {
  left: 42%;
  top: 10%;
  width: 10px;
  height: 10px;
  animation-duration: 7.2s;
  opacity: 0.75;
}
.jf-star.s3 {
  left: 14%;
  top: 72%;
  width: 12px;
  height: 12px;
  animation-duration: 9.1s;
}
.jf-star.s4 {
  right: 10%;
  top: 22%;
  width: 12px;
  height: 12px;
  animation-duration: 8.1s;
}
.jf-star.s5 {
  right: 30%;
  top: 72%;
  width: 10px;
  height: 10px;
  animation-duration: 7.7s;
  opacity: 0.8;
}

@keyframes jf-float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(8deg);
  }
}

/* Scribble underline */
.jf-scribble {
  position: relative;
  display: inline-block;
}
.jf-scribble:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 14px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="240" height="20" viewBox="0 0 240 20"><path d="M5 14c25-8 50-8 75 0s50 8 75 0 50-8 80 0" fill="none" stroke="%2306b6ff" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>')
    center/contain no-repeat;
  opacity: 0.95;
  transform: rotate(-1deg);
  pointer-events: none;
}

/* --- Sections --- */
.jf-section {
  padding: 56px 0;
  position: relative;
}
.jf-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.jf-h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0;
  letter-spacing: -0.3px;
}
.jf-headNote {
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.55;
  font-size: 14px;
  padding-bottom: 0;
}

.jf-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.jf-card {
  border: 1px solid transparent;
  background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.96),
        rgba(245, 248, 255, 0.8)
      )
      padding-box,
    linear-gradient(
        135deg,
        rgba(37, 99, 235, 0.22),
        rgba(6, 182, 255, 0.18),
        rgba(124, 58, 237, 0.14)
      )
      border-box;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 44px rgba(11, 16, 32, 0.09);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.jf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 76px rgba(11, 16, 32, 0.14);
}
.jf-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.9),
        rgba(255, 255, 255, 0.66)
      )
      padding-box,
    linear-gradient(135deg, rgba(7, 182, 255, 0.34), rgba(37, 99, 235, 0.26))
      border-box;
  border: 1px solid transparent;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  box-shadow: 0 14px 34px rgba(11, 16, 32, 0.1);
  backdrop-filter: blur(10px);
}
.jf-card__title {
  margin: 0 0 6px;
  font-weight: 900;
  letter-spacing: -0.2px;
}
.jf-card__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.jf-card:before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background-image: radial-gradient(
    rgba(37, 99, 235, 0.22) 1.4px,
    transparent 1.5px
  );
  background-size: 10px 10px;
  transform: rotate(8deg);
  opacity: 0.55;
}
.jf-card__num {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.62);
  background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.88),
        rgba(255, 255, 255, 0.7)
      )
      padding-box,
    linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(6, 182, 255, 0.22))
      border-box;
  border: 1px solid transparent;
  box-shadow: 0 12px 30px rgba(11, 16, 32, 0.1);
  backdrop-filter: blur(10px);
}
.jf-card__num--left {
  right: auto;
  left: 14px;
}
/* Role section split title */
.jf-roleTitle {
  text-align: center;
  margin-bottom: 20px;
}
.jf-roleTitle .small {
  display: block;
  font-weight: 900;
  color: #0b1020;
  opacity: 0.95;
}
.jf-roleTitle .big {
  display: block;
  font-weight: 1000;
  color: var(--brand);
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.6px;
}

.jf-bullets {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.jf-bullets li {
  margin: 6px 0;
}

/* Vacancy description layout */
.jf-vacancy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.jf-kv {
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(11, 16, 32, 0.05);
}
.jf-kv h3 {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.jf-kv dl {
  margin: 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 12px;
}
.jf-kv dt {
  color: #0b1020;
  font-weight: 900;
  font-size: 14px;
}
.jf-kv dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.jf-textBlock {
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(11, 16, 32, 0.05);
}
.jf-textBlock h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.jf-textBlock p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

/* FAQ accordion */
.jf-faq {
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: var(--radius2);
  background: #fff;
  box-shadow: 0 14px 38px rgba(11, 16, 32, 0.06);
  overflow: hidden;
}
.jf-faqItem {
  border-top: 1px solid rgba(229, 231, 235, 0.9);
}
.jf-faqItem:first-child {
  border-top: 0;
}
.jf-faqBtn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
  color: #0b1020;
}
.jf-faqBtn span {
  font-size: 14px;
  line-height: 1.35;
}
.jf-faqIcon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(7, 182, 255, 0.12);
  border: 1px solid rgba(7, 182, 255, 0.18);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.jf-faqIcon svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}
.jf-faqPanel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.jf-faqPanel > div {
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.jf-faqItem[aria-expanded="true"] .jf-faqIcon svg {
  transform: rotate(45deg);
}

/* Form */
.jf-apply {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}
.jf-form {
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: var(--radius2);
  background: #fff;
  box-shadow: 0 14px 38px rgba(11, 16, 32, 0.06);
  padding: 18px;
}
.jf-form h3 {
  margin: 0 0 8px;
  font-size: 27px;
}
.jf-form p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.jf-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.jf-field label {
  font-weight: 800;
  font-size: 12px;
  color: #0b1020;
}
.jf-input,
.jf-select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  outline: none;
  background: #fff;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.jf-input:focus,
.jf-select:focus {
  border-color: rgba(7, 182, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(7, 182, 255, 0.15);
}

.jf-file {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.jf-file input[type="file"] {
  display: none;
}
.jf-fileLabel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  background: rgba(245, 247, 251, 0.95);
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
}
.jf-fileName {
  color: var(--muted);
  font-size: 13px;
}

.jf-applyPhotoWrap {
  position: relative;
}
.jf-applyPhoto {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  border-radius: var(--radius2);
  border: 1px solid rgba(229, 231, 235, 0.95);
  box-shadow: var(--shadow2);
  object-position: left center;
}
.jf-applyBadge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(229, 231, 235, 0.92);
  box-shadow: 0 10px 24px rgba(11, 16, 32, 0.08);
  font-weight: 900;
  font-size: 13px;
}

/* Footer */
.jf-footer {
  border-top: 1px solid rgba(229, 231, 235, 0.8);
  padding: 26px 0 40px;
  color: var(--muted);
}
.jf-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.jf-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}
.jf-footer a:hover {
  color: #0b1020;
}

/* Responsive */
@media (max-width: 980px) {
  .jf-hero__inner {
    grid-template-columns: 1fr;
    padding-top: 30px;
  }
  .jf-collage {
    order: -1;
  }
  .jf-photoMini {
    right: 10px;
    bottom: -22px;
  }
  .jf-grid3 {
    grid-template-columns: 1fr;
  }
  .jf-vacancy {
    grid-template-columns: 1fr;
  }
  .jf-apply {
    grid-template-columns: 1fr;
  }
  .jf-dotPatch {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .jf-star {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 6px;
    background: radial-gradient(
      circle at 30% 30%,
      rgba(147, 197, 253, 1),
      rgba(6, 182, 255, 1)
    );
    transform: rotate(18deg);
    filter: drop-shadow(0 12px 26px rgba(37, 99, 235, 0.18));
    opacity: 0.9;
  }
  .jf-btn:hover {
    transform: none;
  }
  .jf-card:hover {
    transform: none;
  }
}

/* Section tints + dividers to make the layout feel more "alive" */
.jf-section {
  position: relative;
}
.jf-section .jf-wrap {
  position: relative;
  z-index: 1;
}

.jf-divider {
  height: 86px;
  margin: -10px 0 -16px;
  overflow: hidden;
  pointer-events: none;
}
.jf-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}
.jf-divider path {
  fill: rgba(37, 99, 235, 0.05);
  stroke: rgba(6, 182, 255, 0.12);
  stroke-width: 1.2;
}

/* CTA meta list (replaces chips near the Apply button) */
.jf-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
}
.jf-meta li {
  position: relative;
  padding-left: 18px;
}
.jf-meta li:before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  position: absolute;
  left: 0;
  top: 3px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
  opacity: 0.9;
}

/* Slightly richer primary button */
.jf-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.24);
}
.jf-btn:hover {
  filter: brightness(1.02);
  box-shadow: 0 22px 58px rgba(37, 99, 235, 0.3);
}

/* Make FAQ feel more "product-like" */
.jf-faqItem {
  position: relative;
}
.jf-faqItem:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    rgba(37, 99, 235, 0),
    rgba(6, 182, 255, 0.35),
    rgba(37, 99, 235, 0)
  );
  opacity: 0.75;
}

.join-form-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid rgba(217, 48, 37, 0.35);
  background: rgba(217, 48, 37, 0.06);
  color: #d93025;
  font-size: 14px;
}



/* Состояние отправки */
.jf-btn.is-disabled,
.jf-btn:disabled {
  opacity: 0.55;          /* “серая” */
  filter: grayscale(0.2);
  cursor: not-allowed;
  pointer-events: none;   /* чтобы точно не нажималась */
}

/* (опционально) текст "Sending..." чуть спокойнее */
.jf-btn.is-loading {
  opacity: 0.7;
}

/* (опционально) маленький спиннер */
.jf-btn.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: rgba(255, 255, 255, 1);
  border-radius: 50%;
  margin-left: 10px;
  display: inline-block;
  vertical-align: middle;
  animation: jfspin 0.7s linear infinite;
}

@keyframes jfspin {
  to { transform: rotate(360deg); }
}
