.ju {
  color: #413d45;
  font-family: "Montserrat", sans-serif;
  background: #ffffff;
}

.ju-wrap {
  width: 100%;
  max-width: 1148px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.ju-hero-img {
  display: block;
  width: 100%;
  max-width: 1600px;
  height: auto;
  margin: 0 auto;
}

.ju-intro {
  padding-top: 32px;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.ju-title {
  margin: 0;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  color: #622599;
}

.ju-line {
  width: 100%;
  height: 1px;
  background: #e6e1ec;
}

.ju-intro-text {
  margin: 0;
  max-width: 820px;
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.ju-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 8px;
}

.ju-pill {
  padding: 14px 24px;
  border: 1.5px solid #622599;
  border-radius: 999px;
  font-family: "Montserrat Alternates", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #622599;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.ju-pill:hover {
  background: #622599;
  color: #ffffff;
}

.ju-pill-yellow {
  border-color: #d8c54e;
  background: #d8c54e;
  color: #413d45;
}

.ju-pill-yellow:hover {
  border-color: #e0d592;
  background: #e0d592;
  color: #413d45;
}

.ju-section {
  padding-top: 56px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.ju-section-rovers {
  padding-bottom: 72px;
}

.ju-h2 {
  margin: 0;
  text-align: center;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.25;
  color: inherit;
}

.ju-h3 {
  margin: 0;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: #413d45;
}

.ju-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 48px;
  align-items: stretch;
}

.ju-split-center {
  gap: 40px;
  align-items: center;
}

.ju-split-reverse > :last-child {
  order: -1;
}

.ju-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ju-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.ju-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 6px;
}

.ju-btn,
.ju-btn-outline,
.ju-btn-white {
  display: inline-block;
  border-radius: 999px;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.ju-btn {
  padding: 14px 32px;
  background: #622599;
  color: #ffffff;
}

.ju-btn:hover {
  background: #4a1c75;
  color: #ffffff;
}

.ju-btn-outline {
  padding: 12.5px 24px;
  border: 1.5px solid #622599;
  color: #622599;
}

.ju-btn-outline:hover {
  background: #f3eef8;
  color: #622599;
}

.ju-btn-white {
  padding: 16px 44px;
  background: #ffffff;
  color: #622599;
  font-size: 15px;
}

.ju-btn-white:hover {
  background: #e0d592;
  color: #413d45;
}

.ju-media {
  position: relative;
  min-height: 360px;
  height: 100%;
}

.ju-media-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 200px 24px 200px 24px;
  box-shadow: 14px 14px 0 #d8c54e;
}

.ju-section-cubs .ju-media-main {
  object-position: 40% 50%;
}

.ju-section-rovers .ju-media-main {
  object-position: 50% 25%;
}

.ju-section-scouts .ju-media-main {
  border-radius: 24px 200px 24px 200px;
  box-shadow: -14px 14px 0 #d8c54e;
}

.ju-media-small {
  position: absolute;
  left: -20px;
  bottom: -28px;
  width: 38%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #ffffff;
}

.ju-section-scouts .ju-media-small {
  left: auto;
  right: -20px;
}

.ju-steps {
  background: #622599;
  color: #ffffff;
}

.ju-steps-inner,
.ju-why-inner {
  padding-top: 56px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.ju-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px 32px;
}

.ju-step {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ju-step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #d8c54e;
  color: #413d45;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 700;
  font-size: 22px;
}

.ju-step-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #ede6f5;
}

.ju-step-text strong {
  font-weight: 700;
  color: #ffffff;
}

.ju-leaders {
  padding-top: 56px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.ju-leaders-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.ju-leaders-text {
  max-width: 760px;
}

.ju-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ju-list-item {
  list-style: none;
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 1.6;
}

.ju-list-item::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: #622599;
}

.ju-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 200px 24px 200px 24px;
  box-shadow: 14px 14px 0 #d8c54e;
}

.ju-photo-left {
  border-radius: 24px 200px 24px 200px;
  box-shadow: -14px 14px 0 #d8c54e;
}

.ju-center {
  display: flex;
  justify-content: center;
}

.ju-why {
  margin-top: 48px;
  background: #622599;
  color: #ffffff;
}

.ju-why-inner {
  max-width: 1048px;
}

.ju-why-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 40px 64px;
}

.ju-why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.ju-why-icon {
  flex: none;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.ju-why-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ju-why-title {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.ju-why-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #e4daf0;
}

.ju-why .ju-btn-white {
  padding: 14px 32px;
  font-size: 14px;
}

.ju-nowrap {
  white-space: nowrap;
}

@media screen and (max-width: 855px) {
  .ju-intro {
    gap: 16px;
  }

  .ju-intro-text {
    line-height: 1.6;
  }

  .ju-pills {
    width: 100%;
    max-width: 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .ju-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px 8px;
    border-radius: 20px;
    font-size: 15px;
    line-height: 1.25;
    text-align: center;
  }

  .ju-pill-dot {
    display: none;
  }

  .ju-pill-age {
    font-size: 13px;
    font-weight: 500;
  }

  .ju-section .ju-split {
    gap: 44px;
  }

  .ju-section {
    padding-top: 40px;
    gap: 20px;
  }

  .ju-h2 {
    line-height: 1.2;
  }

  .ju-age {
    display: block;
    margin-top: 6px;
    font-size: 0.7em;
    font-weight: 600;
    color: #622599;
  }

  .ju-steps .ju-age {
    color: inherit;
  }

  .ju-paren {
    display: none;
  }

  .ju-split {
    gap: 32px;
  }

  .ju-split > .ju-media,
  .ju-split > .ju-photo {
    order: -1;
  }

  .ju-copy {
    gap: 12px;
  }

  .ju-text,
  .ju-list-item {
    line-height: 1.6;
  }

  .ju-leaders {
    padding-top: 40px;
    gap: 28px;
  }
}

@media screen and (max-width: 599px) {
  .ju-media {
    min-height: 300px;
  }

  .ju-media-main,
  .ju-photo {
    border-radius: 120px 20px 120px 20px;
  }

  .ju-section-scouts .ju-media-main,
  .ju-photo-left {
    border-radius: 20px 120px 20px 120px;
  }

  .ju-media-small {
    left: -8px;
  }

  .ju-section-scouts .ju-media-small {
    right: -8px;
  }

  .ju-buttons > a {
    width: 100%;
  }
}

.vacancies {
  width: 100%;
  max-width: 1148px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.vacancies-title {
  margin: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6e1ec;
  text-align: center;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.2;
  color: #622599;
  text-wrap: balance;
}

.vacancies-list {
  margin-top: 40px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max(calc((100% - 48px) / 3), min(340px, 86%));
  grid-template-rows: repeat(5, auto);
  gap: 22px 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 8px;
  outline: none;
}

.vacancies-list::-webkit-scrollbar {
  display: none;
}

.vacancy-card {
  grid-row: span 5;
  display: grid;
  grid-template-rows: subgrid;
  align-content: start;
  scroll-snap-align: start;
  background: #f5f1f9;
  border-radius: 12px;
  padding: clamp(24px, 1.7vw, 32px);
  gap: 22px;
  min-width: 0;
}

.vacancy-role {
  margin: 0;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 1.25vw, 24px);
  line-height: 1.3;
  color: #413d45;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: pretty;
}

:lang(en) .vacancy-role {
  hyphens: manual;
}

.vacancy-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vacancy-skills-field {
  gap: 8px;
}

.vacancy-label {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #622599;
}

.vacancy-value {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: #413d45;
}

.vacancy-contact {
  color: #622599;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.vacancy-skills {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vacancy-skill {
  display: flex;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: #413d45;
  overflow-wrap: anywhere;
}

.vacancy-skill::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8c54e;
  margin-top: 9px;
}

.vacancy-apply {
  align-self: end;
  width: 100%;
  height: 60px;
  border-radius: 30px;
  background: #5e2a96;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.vacancy-apply:hover {
  background: #4b1f7c;
  color: #ffffff;
}

.vacancies-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.vacancies-arrow {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid #622599;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.vacancies-arrow:hover {
  background: #f5f1f9;
}

.vacancies-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.vacancies-arrow:disabled:hover {
  background: #ffffff;
}

.vacancies-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vacancies-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  border: 0;
  padding: 0;
  background: #d7c9e6;
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}

.vacancies-dot.active {
  width: 28px;
  background: #622599;
}

@media screen and (max-width: 759px) {
  .vacancies {
    padding-left: 16px;
    padding-right: 16px;
  }
}
