.join-page {
  background: #ffffff;
}

.join-motion body[data-route="join"] .join-hero__content h1,
.join-motion body[data-route="join"] .join-hero__content p {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

.join-motion body[data-route="join"] .join-hero__content h1 {
  transform: translate3d(42px, 0, 0);
}

.join-motion body[data-route="join"] .join-hero__content p {
  transform: translate3d(-22px, 0, 0);
}

.join-motion body[data-route="join"] .join-offices__grid,
.join-motion body[data-route="join"] .join-office,
.join-motion body[data-route="join"] .join-office-mobile-detail,
.join-motion body[data-route="join"] .join-job-tabs,
.join-motion body[data-route="join"] .join-job-detail {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}

.join-motion body[data-route="join"] .join-office {
  transform: translate3d(0, 32px, 0) scale(0.985);
}

.join-motion body[data-route="join"] .join-job-detail {
  opacity: 0;
  transform: translate3d(28px, 18px, 0);
}

.join-motion body[data-route="join"] .join-job-tabs {
  transform: translate3d(-28px, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .join-motion body[data-route="join"] .join-hero__content h1,
  .join-motion body[data-route="join"] .join-hero__content p,
  .join-motion body[data-route="join"] .join-offices__grid,
  .join-motion body[data-route="join"] .join-office,
  .join-motion body[data-route="join"] .join-office-mobile-detail,
  .join-motion body[data-route="join"] .join-job-tabs,
  .join-motion body[data-route="join"] .join-job-detail {
    opacity: 1;
    transform: none;
  }
}

.join-container {
  width: min(1200px, 62.5vw);
  margin: 0 auto;
}

.join-hero {
  position: relative;
  min-height: clamp(430px, 36.46vw, 700px);
  background: url("../../assets/images/join-hero-bg.jpg") center top / cover no-repeat;
}

.join-hero__content {
  position: absolute;
  top: clamp(124px, 9.1vw, 194px);
  left: clamp(520px, 62.7vw, 1262px);
  width: clamp(260px, 18.75vw, 360px);
  color: #111923;
  text-align: right;
}

.join-hero h1 {
  margin: 0 0 clamp(20px, 1.46vw, 28px);
  font-size: clamp(30px, 2.08vw, 40px);
  font-weight: 400;
  letter-spacing: 0;
}

.join-hero p {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  color: #26313c;
  font-size: clamp(13px, 0.89vw, 17px);
}

.join-hero p::before {
  width: clamp(34px, 2.6vw, 50px);
  height: 1px;
  background: currentColor;
  content: "";
}


.join-offices__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  min-height: clamp(280px, 19.79vw, 380px);
  margin: 0;
}

.join-office {
  position: relative;
  display: flex;
  min-width: 0;
  border: 0;
  padding: clamp(78px, 5.21vw, 100px) clamp(32px, 4.17vw, 80px) clamp(48px, 3.44vw, 66px);
  color: #707984;
  background: #f1f2f4;
  text-align: left;
  cursor: pointer;
  transition: background 0.24s ease;
}

.join-office + .join-office {
  border-left: 1px solid #d1d6db;
}

.join-office.is-active {
  background: #ffffff;
}

.join-office:hover:not(.is-active) {
  background: #f7f8f9;
}

.join-office__english {
  position: absolute;
  top: clamp(42px, 2.92vw, 56px);
  left: 50%;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(34px, 3.13vw, 60px);
  font-weight: 300;
  line-height: 1;
  transform: translateX(-50%);
  white-space: nowrap;
}

.join-office__content {
  position: relative;
  z-index: 1;
  width: min(260px, 100%);
  margin: 0 auto;
}

.join-office h2 {
  margin: 0 0 clamp(32px, 2.4vw, 46px);
  color: #151c25;
  font-size: clamp(25px, 1.77vw, 34px);
  font-weight: 500;
  text-align: center;
}

.join-office p {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  margin: 0 0 clamp(12px, 0.83vw, 16px);
  font-size: clamp(12px, 0.83vw, 16px);
  line-height: 1.65;
}

.join-office p:last-child {
  margin-bottom: 0;
}

.join-office__icon {
  width: 17px;
  margin-top: 6px;
}

.join-office-mobile-detail {
  display: none;
}

.join-jobs {
  padding: clamp(78px, 5.83vw, 112px) 0 clamp(150px, 11.46vw, 220px);
}

.join-job-tabs {
  display: flex;
  justify-content: center;
  gap: clamp(52px, 3.75vw, 72px);
  margin: 0 0 clamp(78px, 5.63vw, 108px);
}

.join-job-tabs.is-empty {
  margin-bottom: clamp(36px, 3.13vw, 60px);
}

.join-job-tab {
  position: relative;
  border: 0;
  padding: 0 0 12px;
  color: #929aa3;
  background: transparent;
  font-size: clamp(16px, 1.04vw, 20px);
  cursor: pointer;
  transition: color 0.2s ease;
}

.join-job-tab::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #155fa5;
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.join-job-tab.is-active {
  color: #155fa5;
  font-weight: 600;
}

.join-job-tab.is-active::after {
  transform: scaleX(1);
}

.join-job-detail {
  color: #6e7782;
}

.join-job-empty {
  min-height: clamp(180px, 15.63vw, 300px);
  color: #6e7782;
}

.join-job-empty h2 {
  margin-bottom: clamp(16px, 1.25vw, 24px);
}

.join-job-empty > p {
  margin: 0;
  font-size: clamp(14px, 0.94vw, 18px);
  line-height: 1.8;
}

.join-job-empty .join-job-contact {
  margin-top: clamp(34px, 2.6vw, 50px);
}

.join-job-detail h2 {
  margin: 0 0 clamp(48px, 3.85vw, 74px);
  color: #111923;
  font-size: clamp(26px, 1.77vw, 34px);
  font-weight: 500;
}

.join-job-section + .join-job-section {
  margin-top: clamp(70px, 5.21vw, 100px);
}

.join-job-section h3 {
  margin: 0 0 clamp(34px, 2.5vw, 48px);
  border-bottom: 1px solid #d9dde2;
  padding-bottom: clamp(16px, 1.25vw, 24px);
  color: #1f2730;
  font-size: clamp(21px, 1.46vw, 28px);
  font-weight: 500;
}

.join-job-section ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: job-list;
}

.join-job-section li {
  counter-increment: job-list;
  margin-bottom: clamp(25px, 1.82vw, 35px);
  font-size: clamp(12px, 0.78vw, 15px);
  line-height: 1.9;
}

.join-job-section li:last-child {
  margin-bottom: 0;
}

.join-job-section li::before {
  color: #2a3038;
  content: counter(job-list) ".";
  font-weight: 600;
}

.join-job-section strong {
  color: #2a3038;
}

.join-job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 1.04vw, 20px);
  margin-top: clamp(56px, 4.17vw, 80px);
}

.join-job-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(138px, 8.85vw, 170px);
  min-height: clamp(42px, 2.81vw, 54px);
  border: 1px solid #155fa5;
  padding: 0 clamp(22px, 1.67vw, 32px);
  box-sizing: border-box;
  color: #155fa5;
  background: #ffffff;
  font-size: clamp(13px, 0.89vw, 17px);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.join-job-action:hover {
  transform: translateY(-2px);
}

.join-job-action--boss {
  color: #ffffff;
  background: #155fa5;
}

.join-job-action--boss:hover {
  border-color: #0f4f8c;
  background: #0f4f8c;
}

.join-job-action--apply:hover {
  color: #ffffff;
  background: #155fa5;
}

.join-job-actions + .join-job-contact {
  margin-top: clamp(40px, 3.13vw, 60px);
}

.join-job-contact {
  margin-top: clamp(70px, 5.21vw, 100px);
  color: #111923;
  font-size: clamp(14px, 0.94vw, 18px);
  line-height: 1.85;
}

.join-job-contact strong {
  display: block;
  margin-bottom: clamp(18px, 1.25vw, 24px);
  color: #155fa5;
}

.join-job-contact p {
  margin: 0;
  font-weight: 600;
}

.join-apply-lock {
  overflow: hidden;
}

.join-apply-lock body {
  overflow: hidden;
}

.join-apply-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.join-apply-modal.is-open {
  display: flex;
}

.join-apply-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 29, 0.58);
  backdrop-filter: blur(2px);
}

.join-apply-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: clamp(30px, 2.5vw, 48px);
  box-sizing: border-box;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(14, 28, 46, 0.22);
}

.join-apply-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  color: #6a7480;
  background: #f3f5f7;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.join-apply-modal__close:hover {
  color: #155fa5;
  background: #eaf2fb;
}

.join-apply-modal__header {
  margin-bottom: clamp(24px, 2.08vw, 40px);
  padding-right: 44px;
}

.join-apply-modal__header span {
  display: block;
  margin-bottom: 10px;
  color: #155fa5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.join-apply-modal__header h2 {
  margin: 0 0 12px;
  color: #111923;
  font-size: clamp(26px, 1.98vw, 38px);
  font-weight: 500;
  line-height: 1.2;
}

.join-apply-modal__header p {
  margin: 0;
  color: #6e7782;
  font-size: 15px;
  line-height: 1.75;
}

.join-apply-form {
  display: grid;
  gap: 18px;
}

.join-apply-form label {
  display: grid;
  gap: 9px;
  color: #1f2730;
  font-size: 14px;
  font-weight: 600;
}

.join-apply-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9dde2;
  padding: 0 14px;
  box-sizing: border-box;
  color: #111923;
  background: #ffffff;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.join-apply-form input:focus {
  border-color: #155fa5;
  box-shadow: 0 0 0 3px rgba(21, 95, 165, 0.12);
}

.join-apply-form input[readonly] {
  color: #5f6b76;
  background: #f6f8fa;
}

.join-apply-form__file {
  position: relative;
}

.join-apply-form__file strong {
  display: flex;
  align-items: center;
  min-height: 78px;
  border: 1px dashed #b7c3d1;
  padding: 0 18px;
  box-sizing: border-box;
  color: #4e5966;
  background: #f8fbff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.join-apply-form__file:hover strong {
  border-color: #155fa5;
  color: #155fa5;
  background: #eef6ff;
}

.join-apply-form__file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.join-apply-form__message {
  min-height: 22px;
  margin: 0;
  color: #8b5e15;
  font-size: 13px;
  line-height: 1.6;
}

.join-apply-form__message.is-error {
  color: #b42318;
}

.join-apply-form__message.is-success {
  color: #155fa5;
}

.join-apply-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}

.join-apply-form__actions button {
  min-width: 116px;
  min-height: 42px;
  border: 1px solid #cfd6dd;
  padding: 0 20px;
  box-sizing: border-box;
  color: #3f4a56;
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.join-apply-form__actions button:hover {
  border-color: #155fa5;
  color: #155fa5;
}

.join-apply-form__actions button[type="submit"] {
  border-color: #155fa5;
  color: #ffffff;
  background: #155fa5;
}

.join-apply-form__actions button[type="submit"]:hover {
  border-color: #0f4f8c;
  background: #0f4f8c;
}

@media (max-width: 1024px) {
  .join-container {
    width: min(900px, 88vw);
  }

  .join-hero__content {
    left: min(65.7vw, calc(100vw - 292px));
  }

  .join-offices__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .join-office:nth-child(odd) {
    border-left: 0;
  }

  .join-office:nth-child(n + 3) {
    border-top: 1px solid #d1d6db;
  }
}

@media (max-width: 767px) {
  .join-container {
    width: var(--mobile-content-width);
  }
  .join-office__icon {
    margin-top: 0px;
  }
  .join-hero {
    min-height: 520px;
    background-position: 46% top;
  }

  .join-hero__content {
    position: static;
    width: var(--mobile-content-width);
    margin: 0 auto;
    padding-top: 112px;
    text-align: right;
  }

  .join-hero h1 {
    margin-bottom: 16px;
    font-size: 31px;
  }

  .join-hero p {
    font-size: 13px;
  }

  .join-hero p::before {
    width: 32px;
  }

  .join-offices__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    min-height: 0;
    padding: 20px var(--mobile-page-x) 18px;
  }

  .join-office {
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-left: 0;
    border-top: 0;
    border-bottom: 0;
    padding: 0;
    color: #68737f;
    background: transparent;
  }

  .join-office:nth-child(n + 3) {
    border-top: 0;
  }

  .join-office.is-active {
    color: #155fa5;
    background: transparent;
  }

  .join-office.is-active::after {
    display: none;
  }

  .join-office__english {
    display: none;
  }

  .join-office__content {
    width: 100%;
  }

  .join-office h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
  }

  .join-office.is-active h2 {
    font-weight: 600;
  }

  .join-office p {
    display: none;
  }

  .join-office-mobile-detail {
    display: block;
    grid-column: 1 / -1;
    margin-top: 8px;
    padding: 0;
    color: #5f6b76;
    background: transparent;
    box-shadow: none;
  }

  .join-office-mobile-detail p {
    display: grid;
    grid-template-columns: 17px minmax(0, 1fr);
    gap: 9px;
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.65;
    text-align: left;
  }

  .join-office-mobile-detail p:last-child {
    margin-bottom: 0;
  }

  .join-jobs {
    padding: 44px 0 86px;
  }

  .join-job-tabs {
    justify-content: flex-start;
    gap: 28px;
    margin-bottom: 38px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .join-job-tabs::-webkit-scrollbar {
    display: none;
  }

  .join-job-tab {
    flex: 0 0 auto;
    font-size: 16px;
    white-space: nowrap;
  }

  .join-job-detail h2 {
    margin-bottom: 34px;
    font-size: 25px;
  }

  .join-job-section + .join-job-section {
    margin-top: 52px;
  }

  .join-job-section h3 {
    margin-bottom: 25px;
    padding-bottom: 14px;
    font-size: 21px;
  }

  .join-job-section li {
    margin-bottom: 22px;
    font-size: 13px;
    line-height: 1.85;
  }

  .join-job-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 42px;
  }

  .join-job-action {
    width: 100%;
    min-height: 46px;
  }

  .join-job-actions + .join-job-contact {
    margin-top: 38px;
  }

  .join-job-contact {
    margin-top: 52px;
    font-size: 14px;
  }

  .join-apply-modal {
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
  }

  .join-apply-modal__dialog {
    width: 100%;
    max-height: none;
    margin: auto 0;
    padding: 26px 18px 22px;
  }

  .join-apply-modal__close {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
  }

  .join-apply-modal__header {
    padding-right: 38px;
  }

  .join-apply-modal__header h2 {
    font-size: 25px;
  }

  .join-apply-form__file strong {
    min-height: 72px;
  }

  .join-apply-form__actions {
    flex-direction: column-reverse;
  }

  .join-apply-form__actions button {
    width: 100%;
  }
}
