/* =============================================
   케이약국 NEW CSS — Design System
   ============================================= */

:root {
  --c-main: #3b82f6;
  --c-deep: #001bc7;
  --c-accent: #ff5cf4;
  --c-bg: #f0f4ff;
  --c-text: #0a0a23;
  --c-white: #ffffff;
  --c-gray-100: #f8f9fa;
  --c-gray-200: #e9ecef;
  --c-gray-400: #adb5bd;
  --c-gray-600: #6c757d;

  --font: "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 8px 40px rgba(0, 27, 199, 0.12);
  --shadow-lg: 0 20px 20px rgba(0, 27, 199, 0.18);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}
ul {
  list-style: none;
}
section {
  background: var(--c-white);
  position: relative;
  z-index: 1;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* ── Section Labels & Headers ── */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--c-main);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-text);
  display: block;
  width: fit-content;
  margin: 0 auto 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--c-gray-600);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }
  .section-sub {
    font-size: 15px;
  }
}
@media (max-width: 425px) {
  .section-title {
    font-size: 24px;
  }
  .section-sub {
    font-size: 14px;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--c-deep);
  color: var(--c-white);
}
.btn--primary:hover {
  background: var(--c-main);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-text);
}
.btn--outline:hover {
  background: var(--c-text);
  color: var(--c-white);
  transform: translateY(-2px);
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  z-index: 100;
  transition: 0.5s all;
  padding: 0 40px;
  width: 72%;
  margin: 0px auto 0;
}

.header--scrolled {
  background: rgb(255 255 255 / 66%);
  backdrop-filter: blur(20px) saturate(0.5);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 27, 199, 0.08);
  width: 72%;
  margin: 0px auto 0;
  border-radius: 100px;
}

.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo img {
  height: 24px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header__nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  opacity: 0.7;
  transition: all 0.5s;
  line-height: 37px;
  padding: 0 10px;
  border-radius: 160px;
  width: 110px;
  text-align: center;
  border: 1px solid transparent;
}
.header__nav a:hover {
  opacity: 1;
  color: var(--c-deep);
  background: #ffffff9a;
  border: 1px solid var(--c-gray-200);
}
.header--scrolled .header__nav a {
  background: #fff;
  border: 1px solid var(--c-gray-200);
}
.header__cta {
  padding: 10px 22px;
  background: var(--c-deep);
  color: var(--c-white);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  flex-shrink: 0;
  width: 110px;
}
.header__cta:hover {
  background: var(--c-main);
}

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(8, 17, 95, 0.1);
  flex-shrink: 0;
}
.header__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--c-text);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

/* Hamburger → Close (X) */
.header__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Dim */
.header__nav-dim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 35, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.header__nav-dim.is-open {
  display: block;
  opacity: 1;
}

/* Mobile Nav */
.header__mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--c-white);
  padding: 16px 20px;
  border-top: 1px solid var(--c-gray-200);
  position: fixed;
  top: 81px;
  left: 50%;
  width: 90%;
  z-index: 11;
  transform: translateX(-50%);
  border-radius: 20px;
}
.header__mobile-nav a {
  padding: 20px 0;
  font-size: 20px;
  font-weight: 700;
  border-bottom: 1px solid var(--c-gray-200);
  color: var(--c-gray-600);
}
.header__mobile-nav a:last-child {
  border-bottom: none;
}
.header__mobile-nav.open {
  display: flex;
}

@media (max-width: 1440px) {
  .section-header {
    margin-bottom: 20px;
  }
}
@media (max-width: 1024px) {
  .header__logo img {
    height: 30px;
  }
  .header,
  .header--scrolled {
    width: 90%;
  }
}
@media (max-width: 768px) {
  .header {
    padding: 0 20px;
  }
  .header__logo img {
    height: 26px;
  }
  .header__nav {
    display: none;
  }
  .header__cta {
    display: none;
  }
  .header__hamburger {
    display: flex;
  }
  .header--scrolled .header__hamburger span {
    background: var(--c-text);
  }
}
@media (max-width: 425px) {
  .header__logo img {
    height: 20px;
  }
}

/* =============================================
   SECTION 01 — HERO
   ============================================= */
.hero {
  height: 100svh;
  min-height: 680px;
  background: linear-gradient(180deg, #cad8ff 0%, #ffffff 51.53%);
  position: sticky;
  top: 0;
  z-index: 0;
  overflow: hidden;
}

/* 배경 대형 텍스트 — 이미지 뒤에 살짝 보이도록 */
@keyframes heroBgTextIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 40px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.hero__bg-text {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding-left: 2vw;
  padding-right: 2vw;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  line-height: 1;
  animation: heroBgTextIn 1s ease-out 0.3s both;
}

/* 전체 내용 레이어 */
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1440px;
  gap: 60px;
  width: 100%;
  margin: 0 auto;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
}

/* 왼쪽: 약사 이미지 — 섹션 전체 높이 */
.hero__left {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
  padding-left: 40px;
}

.hero__person {
  height: calc(100vh - 72px);
  min-height: 560px;
  max-height: 900px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: bottom center;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 60px rgba(0, 27, 199, 0.12));
  margin-top: 72px;
}

/* 배지는 숨김 (깔끔하게 유지) */
.hero__badge {
  display: none;
}

/* 오른쪽: 텍스트 — 수직 중앙 정렬 */
.hero__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 0 0 20px;
  position: relative;
  z-index: 3;
}

.hero__sub-tag {
  /* display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  color: var(--c-main);
  font-size: 18px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  width: fit-content;
  letter-spacing: 0.02em;
  border: 1px solid rgba(59, 130, 246, 0.15);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.1); */
  font-size: 36px;
  color: var(--c-accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.hero__headline {
  font-size: clamp(48px, 5.5vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--c-text);
  margin-bottom: 24px;
  position: relative;
  width: fit-content;
}
.hero__headline::before {
  content: "";
  position: absolute;
  bottom: 2px;
  right: 0;
  width: 360px;
  height: 14px;
  background: var(--c-accent);
  z-index: -1;
}
.hero__sub-headline {
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 700;
  color: var(--c-gray-600);
  line-height: 1.5;
}

.hero__desc {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-gray-600);
  line-height: 1.5;
  margin-bottom: 44px;
}

.hero__desc .accent {
  color: var(--c-accent);
  font-weight: 700;
  font-style: normal;
}

.hero__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}
.hero__scroll-hint span {
  display: block;
  width: 28px;
  height: 46px;
  border: 2px solid rgba(10, 10, 35, 0.18);
  border-radius: 100px;
  position: relative;
}
.hero__scroll-hint span::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 8px;
  background: var(--c-text);
  opacity: 0.35;
  border-radius: 2px;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  animation: scrollDown 2s ease infinite;
}
@keyframes scrollDown {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.5;
  }
  100% {
    transform: translateX(-50%) translateY(16px);
    opacity: 0;
  }
}

/* ── 반응형 ── */
@media (max-width: 1540px) {
  .hero__headline{
    font-size: 3.4vw;
  }
  .hero__headline::before {
    width: 20.4vw;
    height: 12px;
  }
}
@media (max-width: 1200px) {
  .hero__sub-tag {
    font-size: 28px;
  }
  .hero__desc {
    font-size: 18px;
  }
}

@media (max-width: 1024px) {
  .hero__right {
    padding: 72px 40px 60px 20px;
  }
  .hero__sub-tag {
    font-size: 24px;
  }
  .hero__desc {
    font-size: 17px;
  }
}

@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .hero__bg-text {
    font-size: 100px;
  }
  .hero__inner {
    position: relative;
    inset: auto;
    left: auto;
    transform: none;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    flex: 1;
  }
  .hero__left {
    order: 2;
    max-height: 480px;
    align-items: flex-end;
    overflow: hidden;
    position: static;
    display: block;
  }
  .hero__person {
    height: 100%;
    min-height: unset;
    margin-top: 0;
  }
  .hero__right {
    order: 1;
    padding: 100px 24px 24px;
    text-align: center;
    align-items: center;
  }
  .hero__sub-tag {
    font-size: 20px;
  }
  .hero__desc {
    font-size: 16px;
    margin-bottom: 32px;
  }
  .hero__btns {
    justify-content: center;
  }
  .hero__scroll-hint {
    display: none;
  }
  .hero__headline {
    font-size: 5.4vw;
  }
  .hero__headline::before {
    width: 32.4vw;
    height: 8px;
  }
}

@media (max-width: 500px) {
  .hero__sub-tag {
    font-size: 17px;
  }
  .hero__desc {
    font-size: 14px;
  }
}

/* =============================================
   MARQUEE
   ============================================= */
.marquee-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  overflow: hidden;
  background: var(--c-deep);
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeRun 24s linear infinite;
}
.marquee-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
  white-space: nowrap;
}
.marquee-inner span {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}
.marquee-inner .sep {
  color: var(--c-accent);
  font-size: 16px;
}

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

/* =============================================
   VISIT MARQUEE — 방문후기 (관리자 연동)
   ============================================= */
.visit-marquee {
  padding: 100px 0 80px;
  background: var(--c-bg);
  overflow: hidden;
}
.visit-marquee__viewport {
  width: 100%;
  overflow: hidden;
  margin-top: 20px;
}
.visit-marquee__track {
  display: flex;
  width: max-content;
  animation: visitMarqueeRun var(--visit-marquee-duration, 40s) linear infinite;
}
.visit-marquee__track:hover {
  animation-play-state: paused;
}
.visit-marquee__group {
  display: flex;
  gap: 20px;
  padding-right: 20px;
}
.visit-item {
  width: 240px;
  height: 320px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-gray-200);
}
.visit-item img,
.visit-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes visitMarqueeRun {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(var(--visit-marquee-shift, -50%));
  }
}

@media (max-width: 768px) {
  .visit-marquee {
    padding: 64px 0 56px;
  }
  .visit-marquee__group {
    gap: 12px;
    padding-right: 12px;
  }
  .visit-item {
    width: 170px;
    height: 230px;
    border-radius: 14px;
  }
}

/* =============================================
   SECTION 02 — BLOG SLIDE
   ============================================= */
.blog {
  padding: 120px 0 80px;
  background: var(--c-white);
}

.blog__swiper-wrap {
  position: relative;
  padding: 20px 0 40px;
}

.blog-swiper {
  padding: 40px 20px !important;
  max-width: 1280px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .blog-swiper {
    padding: 0 20px !important;
    overflow: visible;
  }
  .blog-swiper:hover {
    box-shadow: none;
  }
}

.blog-card {
  background: var(--c-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 27, 199, 0.08);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.blog-card__thumb-wrap {
  position: relative;
  aspect-ratio: 5/3;
  overflow: hidden;
}
.blog-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-card:hover .blog-card__thumb {
  transform: scale(1.05);
}

.blog-card__category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--c-deep);
  color: var(--c-white);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.blog-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-text);
  overflow: hidden;
  word-break: keep-all;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.blog-card__meta {
  font-size: 13px;
  color: var(--c-gray-400);
  margin-top: auto;
}
.blog-card__meta span {
  margin: 0 6px;
}

/* Swiper custom arrows */
.blog-prev,
.blog-next {
  width: 48px !important;
  height: 48px !important;
  background: var(--c-white) !important;
  border-radius: 50%;
  border: 1px solid #e8eef5;
  /* box-shadow: var(--shadow); */
  top: 50% !important;
  transform: translateY(-50%);
}
.blog-prev::after,
.blog-next::after {
  font-size: 14px !important;
  color: var(--c-text);
  font-weight: 700;
}
.blog-prev {
  left: 0 !important;
}
.blog-next {
  right: 0 !important;
}

.blog__footer {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

/* =============================================
   SECTION 03 — FEATURE CARDS (FAN)
   ============================================= */
.features {
  padding: 120px 0 160px;
  background: var(--c-bg);
  /* overflow: hidden 제거 — 회전된 카드 모서리가 클리핑되지 않도록 */
}

.features__fan-wrap {
  display: flex;
  justify-content: center;
  /* 회전 시 카드 모서리가 잘리지 않도록 충분한 상하좌우 여백 */
  padding: 60px 120px 80px;
}

/* 카드 덱 컨테이너 */
.features__fan {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-bottom: 40px;
}

/* ── 공통 카드 ── */
.feat-card {
  width: 380px;
  height: 500px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  margin-left: -55px;
  transition: all 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
  will-change: transform;
}
.feat-card:hover {
  margin-left: 10px;
}
.feat-card:first-child {
  margin-left: 0;
}

/* 클릭 포커스 상태 */
.feat-card.is-front {
  z-index: 20 !important;
  transform: rotate(0deg) translateY(-36px) !important;
  box-shadow: 0 48px 90px rgba(0, 0, 0, 0.3) !important;
}

/* ── 일러스트 영역 (카드 상단 ~58%) ── */
.feat-card__illus {
  position: relative;
  flex: 0 0 58%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  order: 2;
}
.feat-card__illus img {
  position: relative;
  z-index: 1;
}

.feat-card__illus-bg {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.feat-card__illus-icon {
  width: 130px;
  height: 130px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

/* ── 텍스트 영역 (카드 하단 ~42%) ── */
.feat-card__content {
  flex: 1;
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  order: 1;
}

.feat-card__step-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  color: var(--c-white);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  width: fit-content;
}

.feat-card__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--c-white);
}

.feat-card__desc {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

/* ── 카드별 색상 & 기울기 ── */

/* Card 1 — 밝은 파랑 (-8°, 왼쪽으로 기울어짐) */
.feat-card--1 {
  background: #3b82f6;
  transform: rotate(8deg) translateY(20px);
  z-index: 1;
  box-shadow: -4px 20px 50px rgba(59, 130, 246, 0.45);
}
.feat-card--1 .feat-card__illus-bg {
  background: linear-gradient(160deg, #5b9eff 0%, #3b82f6 100%);
}
.feat-card--1:hover:not(.is-front) {
  transform: rotate(-8deg) translateY(2px);
  box-shadow: -4px 32px 64px rgba(59, 130, 246, 0.55);
}

/* Card 2 — 딥 블루 (-3°) */
.feat-card--2 {
  background: #1a3fa6;
  transform: rotate(-3deg) translateY(8px);
  z-index: 2;
  box-shadow: -2px 20px 50px rgba(0, 27, 199, 0.45);
}
.feat-card--2 .feat-card__illus-bg {
  background: linear-gradient(160deg, #2952c8 0%, #1a3fa6 100%);
}
.feat-card--2:hover:not(.is-front) {
  transform: rotate(-3deg) translateY(-2px);
  box-shadow: -2px 32px 64px rgba(0, 27, 199, 0.5);
}

/* Card 3 — 연한 블루 (+3°) */
.feat-card--3 {
  background: #dbe6ff;
  transform: rotate(3deg) translateY(8px);
  z-index: 3;
  box-shadow: 2px 20px 50px rgba(59, 130, 246, 0.2);
}
.feat-card--3 .feat-card__illus-bg {
  background: linear-gradient(160deg, #d0deff 0%, #c5d5ff 100%);
}
.feat-card--3 .feat-card__step-badge {
  background: rgba(59, 130, 246, 0.15);
  color: var(--c-deep);
}
.feat-card--3 .feat-card__title {
  color: var(--c-text);
}
.feat-card--3 .feat-card__desc {
  color: var(--c-gray-600);
}
.feat-card--3:hover:not(.is-front) {
  transform: rotate(3deg) translateY(-2px);
  box-shadow: 2px 32px 64px rgba(59, 130, 246, 0.3);
}

/* Card 4 — 네이비 (+8°, 오른쪽으로 기울어짐) */
.feat-card--4 {
  background: #0d1f5c;
  transform: rotate(8deg) translateY(20px);
  z-index: 4;
  box-shadow: 4px 20px 50px rgba(13, 31, 92, 0.5);
}
.feat-card--4 .feat-card__illus-bg {
  background: linear-gradient(160deg, #1a3285 0%, #0d1f5c 100%);
}
.feat-card--4:hover:not(.is-front) {
  transform: rotate(8deg) translateY(2px);
  box-shadow: 4px 32px 64px rgba(13, 31, 92, 0.6);
}

/* ── 반응형 ── */

@media (max-width: 1440px) {
  .feat-card {
    width: 320px;
    height: 480px;
  }
  .feat-card__title {
    font-size: 24px;
  }
  .feat-card__illus-icon {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 1200px) {
  .features__fan-wrap {
    padding: 40px 60px 60px;
  }
  .feat-card {
    width: 280px;
    height: 460px;
    margin-left: -50px;
  }
  .feat-card__title {
    font-size: 22px;
  }
  .feat-card__desc {
    font-size: 15px;
  }
  .feat-card__illus-icon {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 1100px) {
  .feat-card {
    width: 240px;
    height: 430px;
    margin-left: -45px;
  }
  .feat-card__content {
    padding: 20px 22px 24px;
  }
  .feat-card__title {
    font-size: 20px;
  }
  .feat-card__desc {
    font-size: 14px;
  }
  .feat-card__illus-icon {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 860px) {
  .features {
    padding: 80px 0 120px;
  }
  .features__fan-wrap {
    padding: 20px 24px 40px;
  }
  .features__fan {
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    padding-bottom: 0;
  }
  .feat-card {
    width: calc(50% - 10px);
    height: 400px;
    margin-left: 0 !important;
  }
  .feat-card__content {
    padding: 20px 20px 24px;
  }
  .feat-card__title {
    font-size: 20px;
  }
  .feat-card__desc {
    font-size: 14px;
  }
  .feat-card--1 {
    transform: rotate(-3deg) translateY(8px);
  }
  .feat-card--2 {
    transform: rotate(-1deg) translateY(3px);
  }
  .feat-card--3 {
    transform: rotate(1deg) translateY(3px);
  }
  .feat-card--4 {
    transform: rotate(3deg) translateY(8px);
  }
  .feat-card--1:hover:not(.is-front) {
    transform: rotate(-3deg) translateY(-4px);
  }
  .feat-card--2:hover:not(.is-front) {
    transform: rotate(-1deg) translateY(-4px);
  }
  .feat-card--3:hover:not(.is-front) {
    transform: rotate(1deg) translateY(-4px);
  }
  .feat-card--4:hover:not(.is-front) {
    transform: rotate(3deg) translateY(-4px);
  }
}

@media (max-width: 560px) {
  .features {
    padding: 60px 0 80px;
  }
  .features__fan-wrap {
    padding: 16px 20px 32px;
  }
  .features__fan {
    gap: 16px;
  }
  .feat-card {
    width: 100%;
    /* height: 340px; */
    transform: none !important;
  }
  .feat-card__title {
    font-size: 20px;
  }
  .feat-card__desc {
    font-size: 14px;
  }
  /* 모바일: rotate · hover · is-front 효과 전부 제거 */
  .feat-card:hover {
    margin-left: 0 !important;
  }
  .feat-card:hover:not(.is-front),
  .feat-card--1:hover:not(.is-front),
  .feat-card--2:hover:not(.is-front),
  .feat-card--3:hover:not(.is-front),
  .feat-card--4:hover:not(.is-front) {
    transform: none !important;
    box-shadow: inherit;
  }
  .feat-card.is-front {
    transform: none !important;
    z-index: auto !important;
    box-shadow: inherit !important;
  }
}

@media (max-width: 400px) {
  /* .feat-card { height: 300px; } */
  .feat-card__title {
    font-size: 18px;
  }
  .feat-card__illus-icon {
    width: 80px;
    height: 80px;
  }
  .feat-card__content {
    padding: 16px 18px 20px;
    gap: 8px;
  }
}

/* =============================================
   SECTION 04 — GALLERY
   ============================================= */
.gallery {
  padding: 120px 0;
  background: var(--c-white);
  border-radius: 100px 100px 0 0;
  box-shadow: 0 -4px 20px 3px rgba(0, 27, 199, 0.08);
}

/* 갤러리 전용 컨테이너: 1280px, 패딩 없음 */
.gallery__layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  gap: 20px;
  align-items: stretch;
  max-height: 480px;
}

/* 왼쪽: 세로 영상 */
.gallery__video-col {
  width: 450px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-text);
}

.gallery__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 오른쪽: 리뷰 슬라이더 */
.gallery__reviews-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.gallery-review-swiper {
  width: 100%;
  height: 100%;
  padding: 0 10px !important;
}

.gallery-review-swiper .swiper-wrapper {
  align-items: stretch;
}

.gallery-review-swiper .swiper-slide {
  height: auto;
}
.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
  opacity: 0 !important;
}
/* 리뷰 카드 */
.review-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border-radius: var(--radius);
  border: 1px solid #eee;
  overflow: hidden;
  /* box-shadow: 0 4px 24px rgba(0, 27, 199, 0.08); */
  transition: var(--transition);
  height: 100%;
  color: inherit;
  text-decoration: none;
}
/* .review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
} */

.review-card__thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
}
.review-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.review-card:hover .review-card__thumb {
  transform: scale(1.05);
}

.review-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--c-deep);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.review-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.review-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-text);
}

.review-card__excerpt {
  font-size: 16px;
  color: var(--c-gray-600);
  line-height: 1.7;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card__meta {
  font-size: 12px;
  color: var(--c-gray-400);
  font-weight: 600;
  margin-top: auto;
}

/* 갤러리 리뷰 swiper 네비게이션 — reviews-col 기준 좌우 끝 */
.gallery__reviews-col {
  position: relative;
}

.gallery-review-prev,
.gallery-review-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10;
  width: 44px !important;
  height: 44px !important;
  background: var(--c-white) !important;
  border-radius: 50%;
  box-shadow: var(--shadow);
  margin-top: 0 !important;
}
.gallery-review-prev::after,
.gallery-review-next::after {
  font-size: 13px !important;
  color: var(--c-text);
  font-weight: 700;
}
.gallery-review-prev {
  left: -22px !important;
  right: auto !important;
}
.gallery-review-next {
  right: -22px !important;
  left: auto !important;
}

.gallery-review-pagination {
  position: static !important;
  margin-top: 20px;
  text-align: left;
}
.gallery-review-pagination .swiper-pagination-bullet {
  background: var(--c-gray-200);
  opacity: 1;
}
.gallery-review-pagination .swiper-pagination-bullet-active {
  background: var(--c-main);
  width: 24px;
  border-radius: 100px;
}

@media (max-width: 1440px) {
  .gallery__video-col {
    width: 33.333%;
  }
  .gallery__layout {
    width: 95%;
  }
}
@media (max-width: 1024px) {
  .gallery__layout {
    flex-direction: column;
    min-height: unset;
    padding: 0 20px;
    max-height: none;
  }
  .gallery__video-col {
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 500px;
  }
  .gallery-review-swiper {
    padding: 0 !important;
  }
}

@media (max-width: 900px) {
  .gallery {
    border-radius: 0;
  }
  .gallery__layout {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .gallery__layout {
    gap: 24px;
  }
  .gallery__video-col {
    max-height: 400px;
  }
}

/* =============================================
   SECTION 05 — LOCATION
   ============================================= */
.location {
  background: var(--c-deep);
  padding: 100px 0;
  color: var(--c-white);
}

.location__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.location__map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--c-gray-200);
  height: 540px;
}

/* Kakao map container sizing */
.root_daum_roughmap {
  width: 100% !important;
}

.location .section-label {
  color: rgba(255, 255, 255, 0.5);
}

.location__title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.location__sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 40px;
  line-height: 1.6;
}

.location__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.location__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.location__icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.location__icon svg {
  width: 20px;
  height: 20px;
  color: var(--c-white);
}

.location__label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.location__value {
  font-size: 20px;
  color: var(--c-white);
  line-height: 1.6;
}

.location__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.map-btn--naver {
  background: #03c75a;
  color: var(--c-white);
  border-color: #03c75a;
}
.map-btn--naver:hover {
  background: #02a84e;
  transform: translateY(-2px);
}

.map-btn--kakao {
  background: #fee500;
  color: #3c1e1e;
  border-color: #fee500;
}
.map-btn--kakao:hover {
  background: #fada00;
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .location__inner {
    display: flex;
    flex-direction: column-reverse;
    gap: 48px;
  }
  .location__info,
  .location__map-wrap {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .location {
    padding: 80px 0;
  }
  .location__btns {
    flex-wrap: nowrap;
  }
  .location__btns > * {
    width: 50%;
  }
  .location__map-wrap {
    height: 340px;
  }
}

/* =============================================
   FLOATING CTA
   ============================================= */
.float-cta {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  pointer-events: none;
}

.float-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}
.float-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.float-btn--call {
  background: var(--c-deep);
  color: var(--c-white);
  border: 1px solid #2b4fff;
}
.float-btn--map {
  background: #03c75a;
  color: var(--c-white);
  border: none;
}
.float-btn--blog {
  background: #03c75a;
  color: var(--c-white);
}
.float-btn--call svg,
.float-btn--map svg {
  width: 24px;
  height: 24px;
}
@media (max-width: 480px) {
  .float-cta {
    right: 16px;
    bottom: 20px;
  }
  .float-btn span {
    display: none;
  }
  .float-btn {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .float-btn.float-btn--map svg,
  .float-btn.float-btn--call svg {
    width: 32px;
    height: 32px;
  }
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--c-text);
  padding: 60px 0 32px;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
}
.footer .container {
  padding: 0 20px;
}
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer__brand {
}

.footer__logo {
  height: 32px;
  width: auto;
  margin-bottom: 8px;
}

.footer__tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer__info p {
  font-size: 13px;
  line-height: 1.6;
}
.footer__info a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__links {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer__links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}
.footer__links a:hover {
  color: var(--c-white);
}
.footer__links span {
  color: rgba(255, 255, 255, 0.2);
}

.footer__copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

@media (max-width: 1024px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 48px 0 24px;
  }
}

/* 커스텀 fade-in 제거 — AOS 라이브러리로 대체 */

/* =============================================
   INTRO POPUP
   ============================================= */
.intro-dim {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 35, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.intro-dim.is-visible {
  opacity: 1;
  pointer-events: all;
}

.intro-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 40px));
  z-index: 9001;
  width: 680px;
  height: 400px;
  max-width: calc(100vw - 32px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(0, 27, 199, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.intro-popup.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: all;
}

/* Close button */
.intro-popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background 0.2s;
}
.intro-popup__close:hover {
  background: #fff;
}
.intro-popup__close svg {
  width: 18px;
  height: 18px;
  color: var(--c-text);
}

/* Slide layout */
.intro-slide {
  display: flex;
  min-height: 400px;
  position: relative;
}
.intro-slide--hidden {
  display: none;
}

/* Left image area */
.intro-slide__left {
  width: 44%;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.intro-slide__left--blue {
  background: linear-gradient(160deg, #c7d9ff 0%, #a5c0ff 50%, #dde8ff 100%);
}
.intro-slide__left--blue img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}
.intro_person_talk {
  position: absolute;
  width: 120px;
  top: 53px;
  left: 12px;
}
.intro-slide__left--map {
  background: #e8eef5;
}
.intro-slide__left--map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.intro-slide__left--map .map_path {
  width: 102px;
  position: absolute;
  bottom: 83px;
  left: 74px;
}
.intro-slide__left--map .map_video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.intro-slide__left--map .pin {
  position: absolute;
  top: 0px;
  left: 130px;
  width: 120px;
  animation: movingpin 2s linear infinite;
  transition: 0.5s all;
}
@keyframes movingpin {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(6px);
  }
  100% {
    transform: translateY(0px);
  }
}
.intro-slide__left--coming {
  background: linear-gradient(160deg, #f0f4ff 0%, #dce6ff 100%);
  align-items: center;
  justify-content: center;
}
.intro-slide__coming-badge {
  background: rgba(59, 130, 246, 0.15);
  border: 2px dashed rgba(59, 130, 246, 0.4);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-main);
  line-height: 1.6;
}

/* Right content area */
.intro-slide__right {
  flex: 1;
  background: #fff;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video_con {
  width: 100%;
}
.video_con video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Dot indicators */
.intro-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.intro-dot {
  width: 24px;
  height: 5px;
  border-radius: 100px;
  background: var(--c-gray-200);
  transition:
    background 0.3s,
    width 0.3s;
}
.intro-dot--active {
  background: var(--c-main);
  width: 36px;
}

/* Title & desc */
.intro-slide__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1.35;
  letter-spacing: -0.03em;
  margin-top: 4px;
}
.intro-slide__desc {
  font-size: 16px;
  color: var(--c-gray-600);
  line-height: 1.7;
}

/* Next / CTA button */
.intro-slide__btn {
  margin-top: auto;
  width: 100%;
  padding: 14px 0;
  border-radius: 14px;
  background: var(--c-main);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  letter-spacing: -0.01em;
}
.intro-slide__btn:hover {
  background: var(--c-deep);
  transform: translateY(-1px);
}
.intro-slide__btn--last:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Footer: checkbox + skip */
.intro-slide__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.intro-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--c-gray-600);
  cursor: pointer;
  user-select: none;
}
.intro-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--c-main);
  cursor: pointer;
}
.intro-skip {
  font-size: 12px;
  color: var(--c-gray-400);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: color 0.2s;
}
.intro-skip:hover {
  color: var(--c-gray-600);
}

/* Mobile */
@media (max-width: 768px) {
  .intro-popup {
    border-radius: 20px 20px 0 0;
    left: 0;
    top: auto;
    bottom: 0;
    transform: translateY(100%);
    max-width: 100%;
    width: 100%;
    height: auto;
  }
  .intro-popup.is-visible {
    transform: translateY(0);
  }
  .intro-slide {
    flex-direction: column;
    min-height: unset;
  }
  .intro-slide__left {
    width: 100%;
    height: 320px;
  }
  .intro-slide__right {
    padding: 20px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  }
  .intro-slide__title {
    font-size: 19px;
  }
  .intro_person_talk {
    position: absolute;
    width: 39%;
    top: 5%;
    left: 5%;
  }
  .intro-slide__left--map .map_path svg {
    width: 100%;
  }
  .intro-slide__left--map .map_path {
    position: absolute;
    width: 21%;
    bottom: 15%;
    left: 35%;
  }
  .intro-slide__left--map .pin {
    left: 45%;
    width: 27%;
  }
  .intro-slide__left--map .map {
    aspect-ratio: 5 auto / 3;
    height: 100%;
  }
  .video_con {
    width: 100%;
    height: 100%;
    position: relative;
  }
  .video_con video {
    position: absolute;
    top: -50%;
    height: auto;
  }
}

/* =============================================
   SECTION : PAYMENTS (결제 수단)
   ============================================= */
.pay {
  padding: 120px 0 100px;
  background: #f8f9fa;
  overflow: hidden; /* 모여있는 상태의 회전 카드가 밖으로 삐져나오지 않게 */
}

/* ── 스테이지: 이미지들이 흩어질 무대 ── */
.pay__stage {
  --k: 1; /* 퍼짐 거리·크기 배율 (반응형에서 축소) */
  position: relative;
  max-width: 1280px;
  height: 480px;
  margin: 0 auto;
}

/* ── 아이템 공통 (이미지만) ── */
.pay-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--w) * var(--k));
  /* 기본(모여있는) 상태: 가운데에 오밀조밀 */
  transform: translate(calc(-50% + var(--gx)), calc(-50% + var(--gy)))
    rotate(var(--gr)) scale(0.55);
  transition: transform 0.9s cubic-bezier(0.34, 1.3, 0.4, 1);
  will-change: transform;
}
.pay-card img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(0, 27, 199, 0.14));
}

/* ── 퍼진 상태 ── */
.pay__stage.is-spread .pay-card {
  transform: translate(
      calc(-50% + var(--sx) * var(--k)),
      calc(-50% + var(--sy) * var(--k))
    )
    rotate(var(--sr));
}

/* 촥— 퍼질 때 살짝씩 시차 */
.pay__stage.is-spread .pay-card:nth-child(1) { transition-delay: 0s; }
.pay__stage.is-spread .pay-card:nth-child(2) { transition-delay: 0.04s; }
.pay__stage.is-spread .pay-card:nth-child(3) { transition-delay: 0.08s; }
.pay__stage.is-spread .pay-card:nth-child(4) { transition-delay: 0.12s; }
.pay__stage.is-spread .pay-card:nth-child(5) { transition-delay: 0.16s; }
.pay__stage.is-spread .pay-card:nth-child(6) { transition-delay: 0.2s; }
.pay__stage.is-spread .pay-card:nth-child(7) { transition-delay: 0.24s; }
.pay__stage.is-spread .pay-card:nth-child(8) { transition-delay: 0.28s; }
.pay__stage.is-spread .pay-card:nth-child(9) { transition-delay: 0.32s; }

/* ── 아이템별 크기(--w) / 위치: --g*(모임) / --s*(퍼짐) ── */
.pay-card--alipay     { --w: 130px; --gx: -40px; --gy: -26px; --gr: -14deg; --sx: -495px; --sy: -140px; --sr: -7deg; }
.pay-card--naverpay   { --w: 150px; --gx: 26px;  --gy: -38px; --gr: 9deg;   --sx: -253px; --sy: -115px; --sr: 4deg; }
.pay-card--applepay   { --w: 210px; --gx: -8px;  --gy: 10px;  --gr: -5deg;  --sx: 0px;    --sy: -150px; --sr: -3deg; }
.pay-card--samsungpay { --w: 128px; --gx: 44px;  --gy: -16px; --gr: 16deg;  --sx: 253px;  --sy: -110px; --sr: 6deg; }
.pay-card--wechatpay  { --w: 230px; --gx: -52px; --gy: 28px;  --gr: -10deg; --sx: 495px;  --sy: -145px; --sr: -8deg; }
.pay-card--kakaopay   { --w: 130px; --gx: 12px;  --gy: 40px;  --gr: 12deg;  --sx: -374px; --sy: 125px;  --sr: 6deg; }
.pay-card--incheoneum { --w: 150px; --gx: -30px; --gy: -8px;  --gr: -18deg; --sx: -50px;  --sy: 145px;  --sr: -5deg; }
.pay-card--go-oil     { --w: 235px; --gx: 30px;  --gy: 14px;  --gr: 7deg;   --sx: 260px;  --sy: 125px;  --sr: 3deg; }

/* ── 온누리상품권 불가 안내 ── */
.pay__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
  font-size: 15px;
  color: var(--c-gray-600);
}
@media (prefers-reduced-motion: reduce) {
  .pay-card { transition: none; }
}

/* ── 반응형 ── */
@media (max-width: 1200px) {
  .pay__stage { --k: 0.85; }
}
@media (max-width: 1024px) {
  .pay {
    padding: 80px 0 70px;
  }
  .pay__stage {
    --k: 0.6;
    height: 320px;
  }
}
@media (max-width: 640px) {
  .pay__stage {
    --k: 1;
    height: 360px;
  }

  /* 모바일: 3×3 배치로 재정렬 */
  .pay-card--alipay     { --w: 68px;  --sx: -112px; --sy: -122px; }
  .pay-card--naverpay   { --w: 68px;  --sx: 0px;    --sy: -128px; }
  .pay-card--applepay   { --w: 116px; --sx: 112px;  --sy: -118px; }
  .pay-card--samsungpay { --w: 72px;  --sx: -112px; --sy: -2px; }
  .pay-card--wechatpay  { --w: 122px; --sx: 0px;    --sy: 4px; }
  .pay-card--kakaopay   { --w: 68px;  --sx: 112px;  --sy: -6px; }
  .pay-card--incheoneum { --w: 68px;  --sx: -85px; --sy: 118px; }
  .pay-card--go-oil     { --w: 110px; --sx: 55px;  --sy: 120px; }

  .pay__note {
    margin-top: 32px;
    font-size: 13px;
  }
}
