/* 서비스 유형 선택 — Figma PC v2 (2026-06) */
@import url('/img/Pretendard-1.3.8/web/variable/pretendardvariable.css');

.request-select-page {
  background: #ffffff;
  min-height: 0;
  --rs-sticky-header-offset: 110px;
}

#wrap.request-select-page > .container {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#wrap.request-select-page .rs-main,
#wrap.request-select-page .rs-hero,
#wrap.request-select-page .rs-stage {
  min-height: 0;
  height: auto;
  overflow: visible;
}

.rs-main {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 160px;
  box-sizing: border-box;
  font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== 히어로 ===== */
.rs-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto 100px;
  padding: 0 240px;
  box-sizing: border-box;
}

.rs-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: center;
}

.rs-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 48px);
  font-weight: 700;
  line-height: 130%;
  letter-spacing: -0.025em;
  color: #0a0a0a;
}

.rs-hero__subtitle {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 140%;
  letter-spacing: -0.012em;
  color: rgba(9, 9, 11, 0.75);
}

/* ===== 탭 ===== */
.rs-tabs {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  padding: 6px;
  background: #1f363d;
  border-radius: 14px;
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.12),
    0 4px 8px rgba(0, 0, 0, 0.08),
    0 0 4px rgba(0, 0, 0, 0.08);
}

.rs-tabs__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.012em;
  color: #ffffff;
  opacity: 0.9;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.rs-tabs__btn.is-active {
  background: #ffffff;
  color: #0a0a0a;
  font-weight: 700;
  opacity: 1;
}

.rs-tabs__btn:focus-visible {
  outline: 2px solid #40798c;
  outline-offset: 2px;
}

/* ===== 캐러셀 ===== */
.rs-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.rs-carousel {
  position: relative;
  width: 100%;
}

.rs-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.rs-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.rs-carousel__viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.rs-carousel__viewport:focus-visible {
  outline: 2px solid #40798c;
  outline-offset: 4px;
}

.rs-carousel__track {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 100px;
  width: max-content;
  padding: 0 max(24px, calc(50% - 406px));
  box-sizing: border-box;
}

.rs-carousel__nav {
  display: none;
}

/* ===== 패널 ===== */
.rs-panel {
  flex: 0 0 642px;
  max-width: 642px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  opacity: 0.72;
  transform: scale(0.96);
  transform-origin: center top;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition:
    flex-basis 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
    max-width 0.45s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.rs-panel--featured {
  flex: 0 0 812px;
  max-width: 812px;
  opacity: 1;
  transform: scale(1);
}

.rs-panel__visual {
  width: 100%;
  height: 380px;
  border-radius: 32px;
  background-color: #e4f2f3;
  background-size: cover;
  background-position: center;
  transition: height 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.rs-panel--featured .rs-panel__visual {
  height: 480px;
}

.rs-panel__visual--interpret {
  background-image: linear-gradient(135deg, rgba(31, 54, 61, 0.2), rgba(64, 121, 140, 0.15)), url('/img/home/service-slide-interpret.png');
}

.rs-panel__visual--translation {
  background-image: linear-gradient(135deg, rgba(31, 54, 61, 0.2), rgba(64, 121, 140, 0.15)), url('/img/home/service-slide-translation.png');
}

.rs-panel__visual--mw {
  background-image: linear-gradient(135deg, rgba(31, 54, 61, 0.2), rgba(64, 121, 140, 0.15)), url('/img/home/service-slide-mw.png');
}

.rs-panel__body {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.rs-panel__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rs-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.rs-panel__title-ko {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 36px);
  font-weight: 700;
  line-height: 130%;
  letter-spacing: -0.025em;
  color: #0a0a0a;
}

.rs-panel__title-en {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 136.4%;
  letter-spacing: -0.018em;
  color: rgba(9, 9, 11, 0.5);
}

.rs-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rs-panel__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1px solid rgba(113, 113, 123, 0.22);
  border-radius: 999px;
  background: #ffffff;
  font-size: 20px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.012em;
  color: #0a0a0a;
}

.rs-panel__actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  width: 192px;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.rs-panel--featured .rs-panel__actions {
  opacity: 1;
  pointer-events: auto;
}

.rs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 90px;
  min-height: 60px;
  padding: 16px 28px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.012em;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.rs-btn--primary {
  background: #40798c;
  color: #ffffff;
}

.rs-btn--primary:hover,
.rs-btn--primary:focus-visible {
  background: #356878;
  transform: translateY(-1px);
}

.rs-btn--outline {
  background: #ffffff;
  border: 1px solid #40798c;
  color: #40798c;
}

.rs-btn--outline:hover,
.rs-btn--outline:focus-visible {
  background: rgba(64, 121, 140, 0.06);
}

.rs-btn:focus-visible {
  outline: 2px solid #1f363d;
  outline-offset: 2px;
}

/* ===== PC (Figma Frame 20 / 23) ===== */
@media (min-width: 1024px) {
  body.site-subpage .request-select-page .rs-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 100px 0 160px;
  }

  .request-select-page .rs-hero {
    flex: 0 0 auto;
    margin-bottom: 100px;
    background: #ffffff;
  }

  .request-select-page .rs-stage {
    flex: 0 0 auto;
  }

  .request-select-page .rs-carousel__track {
    align-items: flex-start;
  }
}

/* ===== 반응형 ===== */
@media (max-width: 1439px) {
  .rs-hero {
    padding-left: 80px;
    padding-right: 80px;
  }

  .rs-carousel__track {
    gap: 48px;
    padding: 0 max(16px, calc(50% - 320px));
  }

  .rs-panel {
    flex-basis: 520px;
    max-width: 520px;
  }

  .rs-panel--featured {
    flex-basis: 640px;
    max-width: 640px;
  }
}

@media (max-width: 1023px) {
  /* M) 서비스 유형 선택 — Figma 375px */
  .request-select-page {
    --rs-sticky-header-offset: 70px;
  }

  .rs-main {
    padding: 80px 0;
    box-sizing: border-box;
  }

  .rs-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 375px;
    margin: 0 auto 64px;
    padding: 0 16px;
    gap: 48px;
    box-sizing: border-box;
  }

  .rs-hero__copy {
    gap: 16px;
    width: 100%;
    max-width: 343px;
  }

  .rs-hero__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 130%;
    letter-spacing: -0.025em;
    text-align: center;
  }

  .rs-hero__subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: -0.012em;
    text-align: center;
    color: rgba(9, 9, 11, 0.75);
  }

  .rs-tabs {
    width: 100%;
    max-width: 333px;
    height: 60px;
    padding: 6px;
    box-sizing: border-box;
  }

  .rs-tabs__btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px;
    font-size: 20px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: -0.012em;
    opacity: 0.9;
  }

  .rs-tabs__btn.is-active {
    font-weight: 700;
    opacity: 1;
  }

  .rs-carousel__nav {
    display: none;
  }

  .rs-carousel__viewport {
    padding: 0 16px;
    overflow: visible;
    scroll-snap-type: none;
    cursor: default;
  }

  .rs-carousel__track {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    padding: 0;
  }

  .rs-panel,
  .rs-panel--featured {
    flex: none;
    width: 100%;
    max-width: 343px;
    margin: 0 auto;
    opacity: 1;
    transform: none;
    gap: 32px;
    scroll-margin-top: calc(var(--rs-sticky-header-offset, 110px) + 16px);
  }

  .rs-panel:not(.rs-panel--featured) {
    display: flex;
  }

  .rs-panel__visual,
  .rs-panel--featured .rs-panel__visual {
    width: 100%;
    height: auto;
    aspect-ratio: 343 / 203;
    min-height: 0;
    border-radius: 24px;
  }

  .rs-panel__body {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    width: 100%;
  }

  .rs-panel__content {
    gap: 24px;
    width: 100%;
  }

  .rs-panel__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .rs-panel__title-ko {
    font-size: 36px;
    font-weight: 700;
    line-height: 130%;
    letter-spacing: -0.025em;
    text-align: left;
  }

  .rs-panel__title-en {
    font-size: 18px;
    font-weight: 400;
    line-height: 145%;
    letter-spacing: -0.0002em;
    text-align: left;
    color: rgba(9, 9, 11, 0.5);
  }

  .rs-panel__chips {
    gap: 12px;
  }

  .rs-panel__chip {
    height: 40px;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0.005em;
  }

  .rs-panel__actions {
    width: 100%;
    opacity: 1;
    pointer-events: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .rs-btn {
    width: 100%;
    min-width: 90px;
    min-height: 60px;
    height: 60px;
    padding: 16px 28px;
    font-size: 20px;
    font-weight: 500;
    line-height: 140%;
    letter-spacing: -0.012em;
    border-radius: 12px;
    box-sizing: border-box;
  }
}

.rs-custom-pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  width: 100%;
  max-width: 1920px;
  margin: 32px auto 0;
  padding: 0 24px;
  box-sizing: border-box;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(9, 9, 11, 0.65);
}

.rs-custom-pay a {
  color: #40798c;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .rs-hero__title {
    font-size: clamp(2rem, 10vw, 48px);
  }

  .rs-tabs__btn {
    font-size: clamp(14px, 3.8vw, 20px);
    padding: 10px 8px;
  }
}
