/* Best Seoul Beauty — 반응형 전용 (브레이크포인트: 1280 → 1024 → 768 → 480) */
/* 레퍼런스(cerave) 분기 64.0625rem(1025) / 48rem(768) 기준 */

@media (max-width: 1280px) {
  :root { --gutter: 32px; --fs-display: 42px; }
  .gnb { gap: 16px; }
  .gnb__link { padding: 8px 10px; font-size: 16px; }
  .p-main-hero__title { font-size: 54px; }
  .l-footer__top { grid-template-columns: repeat(3, 1fr); }
  .l-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; --sec-gap: 72px; --fs-display: 38px; }
  body.is-menu-open { overflow: hidden; }
  .l-header__logo-img { height: 40px; }
  .l-header__toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
  .l-header__bar, .l-header__bar::before, .l-header__bar::after { display: block; width: 24px; height: 2px; background: var(--color-navy); transition: transform .2s, background-color .2s; }
  .l-header__bar { position: relative; }
  .l-header__bar::before, .l-header__bar::after { content: ''; position: absolute; left: 0; }
  .l-header__bar::before { top: -7px; }
  .l-header__bar::after { top: 7px; }
  .l-header__toggle[aria-expanded="true"] .l-header__bar { background: transparent; }
  .l-header__toggle[aria-expanded="true"] .l-header__bar::before { transform: translateY(7px) rotate(45deg); }
  .l-header__toggle[aria-expanded="true"] .l-header__bar::after { transform: translateY(-7px) rotate(-45deg); }
  .gnb { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 24px; height: auto; padding: 16px var(--gutter) 40px; background: #fff; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s; }
  .gnb.is-open { transform: none; visibility: visible; }
  .gnb__list { flex-direction: column; align-items: stretch; height: auto; gap: 0; }
  .gnb__item { flex-direction: column; align-items: stretch; height: auto; border-bottom: 1px solid var(--color-line); }
  .gnb__link { padding: 16px 0; font-size: 20px; border-bottom: 0; }
  .gnb__sub { position: static; display: none; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .gnb__item.is-active .gnb__sub { display: block; }
  .gnb__sub a { padding: 6px 0; }
  .gnb__sub a:hover { background: none; }
  .gnb__cta { width: 100%; }
  .c-card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .c-card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .p-detail { grid-template-columns: 1fr; gap: 40px; }
  .p-detail__aside { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .c-toc { display: none; }
  .p-main-hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .p-main-hero__visual { aspect-ratio: 16 / 7; }
  .p-main-types, .p-main-routine { grid-template-columns: 1fr; gap: 40px; }
  .p-skin-test__steps { grid-template-columns: repeat(2, 1fr); }
  .p-ingredient-az__grid { columns: 3; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; --sec-gap: 56px; --fs-display: 32px; --fs-h1: 26px; --fs-h2: 23px; --fs-h3: 20px; }
  .l-sub-visual { padding: 20px 0 40px; }
  .l-sub-visual__lead { font-size: 17px; }
  .c-breadcrumb + .l-sub-visual__title { margin-top: 24px; }
  .l-sub-visual__eyebrow { margin-top: 24px; }
  .c-sec-head { margin-bottom: 28px; }
  .c-sec-head__title { font-size: 28px; flex-basis: 100%; }
  .c-card-grid--4, .c-card-grid--3, .c-card-grid--2 { grid-template-columns: 1fr; gap: 16px; }
  .c-card__link { padding: 22px 20px 20px; }
  .c-prose { font-size: 16px; }
  .c-prose h2 { margin-top: 40px; }
  .c-steps__item { gap: 14px; padding: 18px; }
  .c-steps__num { flex-basis: 36px; height: 36px; font-size: 17px; }
  .c-faq__q { font-size: 17px; }
  .c-sub-tab { margin-top: 24px; overflow-x: auto; }
  .c-sub-tab ul { flex-wrap: nowrap; gap: 20px; white-space: nowrap; }
  .p-hub-group { padding-top: 40px; }
  .p-hub-group__title { font-size: 24px; }
  .p-hub-cta { padding: 32px 20px; }
  .p-detail { padding-top: 40px; }
  .p-detail__aside { grid-template-columns: 1fr; }
  .p-skin-test { padding: 28px 20px; }
  .p-skin-test__steps { grid-template-columns: 1fr; gap: 16px; }
  .p-ingredient-az__grid { columns: 2; column-gap: 24px; }
  .p-main-hero__inner { padding-top: 40px; padding-bottom: 40px; }
  .p-main-hero__title { font-size: 40px; }
  .p-main-hero__lead { font-size: 17px; }
  .p-main-routine__steps { grid-template-columns: 1fr; }
  .p-main-routine__steps li { padding: 18px 20px; font-size: 18px; }
  .p-consult-fit, .p-consult-services, .p-main-guide { grid-template-columns: 1fr; }
  .p-consult-fit__col { padding: 22px 20px; }
  .c-consult-cta { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 48px; padding: 32px 24px; }
  .c-consult-cta__title { font-size: 26px; }
  .p-main-routine__steps--detail li { font-size: 15px; }
  .p-not-found { padding-top: 64px; padding-bottom: 80px; }
  .p-not-found__title { font-size: 30px; }
  .l-footer { padding-top: 56px; }
  .l-footer__top { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .l-footer__bottom { flex-direction: column; }
  .l-footer__legal { flex-wrap: wrap; gap: 8px 20px; }
}

@media (max-width: 480px) {
  .p-main-hero__title { font-size: 34px; }
  .p-main-hero__btns .c-btn { width: 100%; }
  .l-footer__top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
