/* ========= Nemo Drive — Mobile (≤960px) ========= */
@media (max-width:960px){
  html{
    -webkit-text-size-adjust:100%;
    scroll-behavior:smooth;
    overflow-x:clip;
    max-width:100%;
    overscroll-behavior-x:none;
  }
  body{
    font-size:16px;line-height:1.65;
    overflow-x:clip;
    max-width:100%;
    width:100%;
    min-width:0;
    overscroll-behavior-x:none;
    touch-action:pan-y;
    position:relative;
  }
  body.nav-open{
    overflow:hidden!important;
    touch-action:none;
  }

  /* 가로 넘침 방지 — 주요 래퍼 */
  .site-header,
  .hero,
  .features,
  .section,
  .cta-banner,
  .site-footer,
  .r-hero,
  .trust,
  .process,
  .courses,
  .r-reviews,
  .r-faq{
    max-width:100%;
    overflow-x:clip;
  }
  .site-header{overflow-x:clip}

  .container{
    width:100%;max-width:100%;
    padding-left:20px;padding-right:20px;
  }

  /* —— Header —— */
  .site-header .inner{
    display:flex;align-items:center;justify-content:space-between;
    gap:12px;height:56px;min-height:56px;
  }
  .brand{font-size:17px;min-width:0}
  .brand-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .menu-toggle{display:inline-flex;flex-shrink:0}
  .header-cta{display:none!important}

  .site-header .nav{
    position:fixed;top:0;right:0;left:auto;bottom:auto;
    width:min(100% - 48px,300px);
    max-width:300px;
    height:100dvh;height:100vh;
    margin:0;padding:24px 20px 28px;
    flex-direction:column;align-items:stretch;
    background:#fff;border-left:1px solid var(--border);
    box-shadow:-8px 0 32px rgba(15,23,42,.15);
    transform:translateX(100%);
    transition:transform .28s ease;
    overflow-y:auto;z-index:60;
  }
  body.nav-open .site-header .nav{transform:translateX(0)}

  .nav .nav-links{
    flex:1;display:flex;flex-direction:column;
    justify-content:center;align-items:stretch;gap:2px;
    font-size:16px;font-weight:600;
  }
  .nav .nav-links a{
    display:block;width:100%;text-align:center;
    padding:14px 16px;border-radius:10px;
    color:var(--text);line-height:1.4;
  }
  .nav .nav-links a.active,
  .nav .nav-links a:hover{background:var(--primary-soft);color:var(--primary)}
  .nav .nav-links a.active::after{display:none}

  .nav-drawer-logo{
    display:flex;justify-content:center;
    padding-top:16px;margin-top:auto;
    border-top:1px solid var(--border);
  }
  .brand-drawer{flex-direction:column;align-items:center;gap:12px}
  .brand-drawer .brand-mark{width:64px;height:64px;border-radius:16px}
  .brand-drawer .brand-mark::before{width:26px;height:26px;border-width:3px}
  .brand-drawer .brand-name{font-size:20px}

  /* —— Typography: 중앙 정렬 + 문단 여백 —— */
  .section{padding:52px 0!important}
  .section-title{
    font-size:1.375rem;line-height:1.4;
    letter-spacing:-.4px;
    margin:0 auto 12px;
    text-align:center!important;
    max-width:22em;
  }
  .section-sub{
    font-size:15px;line-height:1.75;
    margin:0 auto 32px;
    padding:0 8px;
    text-align:center!important;
    color:var(--text-2);
    max-width:28em;
  }
  p{margin-top:0;margin-bottom:0}

  .btn{min-height:48px;font-size:15px;padding:0 20px}
  .btn-lg{min-height:52px;font-size:16px;width:100%}

  /* —— CTA & footer —— */
  .cta-banner{padding:28px 0}
  .cta-banner .inner{
    display:flex;flex-direction:column;
    align-items:stretch;gap:16px;text-align:center;
  }
  .cta-banner h3{font-size:1.25rem;line-height:1.35}
  .cta-banner p{font-size:14px;line-height:1.6}
  .cta-banner .btns{
    display:flex;flex-direction:column;gap:10px;width:100%;
  }
  .cta-banner .btns .btn{width:100%}
  .cta-banner .car{display:none}

  .site-footer{
    padding:40px 0 32px;
    text-align:center;
  }
  .site-footer .grid{
    display:flex;flex-direction:column;align-items:center;
    gap:28px;text-align:center;
  }
  .site-footer .brand{
    justify-content:center;margin:0 auto;
  }
  .site-footer h5{
    font-size:15px;margin:0 0 12px;
    text-align:center;
  }
  .site-footer ul{
    font-size:14px;line-height:1.75;gap:10px;
    align-items:center;text-align:center;
    padding:0;
  }
  .site-footer .tag{
    font-size:14px;line-height:1.75;
    margin-top:4px;max-width:28em;
    text-align:center;
  }
  .site-footer .legal{
    flex-direction:column;align-items:center;gap:10px;
    margin-top:32px;padding-top:20px;
    text-align:center;font-size:12px;line-height:1.6;
  }

  /* —— Index: hero (text + image, white fade blend) —— */
  .hero{
    position:relative;
    background:#fff!important;
    background-image:none!important;
    overflow:hidden;
    padding:0!important;
  }
  .hero .inner{
    position:relative;z-index:2;
    padding:32px 0 0!important;
    max-width:100%!important;
    text-align:center;
    background:#fff;
  }
  /* 텍스트 하단 → 이미지로 이어지는 화이트 페이드 */
  .hero .inner::after{
    content:"";
    position:absolute;
    left:-20px;right:-20px;
    bottom:-52px;
    width:auto;
    margin:0;
    height:56px;
    background:linear-gradient(
      180deg,
      #fff 0%,
      rgba(255,255,255,.92) 35%,
      rgba(255,255,255,.55) 65%,
      rgba(255,255,255,0) 100%
    );
    pointer-events:none;
  }
  .hero::after{
    content:"";
    display:block;
    width:100%;
    min-height:min(56vw,220px);
    height:auto;
    aspect-ratio:1400/745;
    max-height:min(72vw,320px);
    margin-top:-36px;
    background-image:
      linear-gradient(
        180deg,
        rgba(255,255,255,.95) 0%,
        rgba(255,255,255,.5) 10%,
        rgba(255,255,255,.15) 22%,
        transparent 36%
      ),
      url("images/index/hero/hero-bg-web.jpg");
    background-size:100% 100%,contain;
    background-position:center top,center top;
    background-repeat:no-repeat;
    background-color:#fff;
  }
  .hero .small-eyebrow{
    display:block;font-size:15px;
    margin:0 auto 10px;
  }
  .hero h1{
    font-size:1.75rem!important;
    line-height:1.28!important;
    letter-spacing:-.5px!important;
    margin:0 auto 16px!important;
    max-width:14em;
  }
  .hero p.lead{
    font-size:16px!important;
    line-height:1.75!important;
    margin:0 auto 28px!important;
    max-width:22em!important;
  }
  .hero .ctas{
    display:flex;flex-direction:column;gap:10px;width:100%;
  }
  .hero .ctas .btn{width:100%;justify-content:center}

  /* —— Region hero (index 제외): 텍스트·이미지 분리, 가독성 —— */
  .r-hero-songpa,
  .r-hero-gangnam,
  .r-hero-bundang,
  .r-hero-suwon{
    background:#fff!important;
    overflow:hidden;
    padding:0!important;
  }
  .r-hero-songpa .inner,
  .r-hero-gangnam .inner,
  .r-hero-bundang .inner,
  .r-hero-suwon .inner{
    position:relative;z-index:2;
    display:flex!important;flex-direction:column!important;
    padding:32px 0 28px!important;
    gap:0!important;
    text-align:center;
    background:#fff;
  }
  .r-hero-songpa .inner::after,
  .r-hero-gangnam .inner::after,
  .r-hero-bundang .inner::after,
  .r-hero-suwon .inner::after{display:none}
  .r-hero-songpa .copy,
  .r-hero-gangnam .copy,
  .r-hero-bundang .copy,
  .r-hero-suwon .copy{
    order:0;width:100%;max-width:100%;margin:0 auto;
    padding:0 12px;text-align:center;
    display:flex;flex-direction:column;align-items:center;
  }
  .r-hero-songpa .copy .region-badge,
  .r-hero-gangnam .copy .region-badge,
  .r-hero-bundang .copy .region-badge,
  .r-hero-suwon .copy .region-badge{
    display:inline-flex;margin:0 auto 16px;
    font-size:13px;padding:8px 14px;
  }
  .r-hero-songpa .copy h1,
  .r-hero-gangnam .copy h1,
  .r-hero-bundang .copy h1,
  .r-hero-suwon .copy h1{
    font-size:1.875rem!important;
    line-height:1.3!important;
    letter-spacing:-.5px!important;
    margin:0 auto 12px!important;
    max-width:11em;width:100%;
    text-align:center;
  }
  .r-hero-songpa .copy .sub,
  .r-hero-gangnam .copy .sub,
  .r-hero-bundang .copy .sub,
  .r-hero-suwon .copy .sub{
    font-size:17px!important;
    font-weight:700!important;
    line-height:1.4!important;
    margin:0 auto 14px!important;
    max-width:18em;width:100%;
    text-align:center;
  }
  .r-hero-songpa .copy p.lead,
  .r-hero-gangnam .copy p.lead,
  .r-hero-bundang .copy p.lead,
  .r-hero-suwon .copy p.lead{
    font-size:16px!important;
    line-height:1.75!important;
    margin:0 auto 20px!important;
    max-width:20em;width:100%;
    color:var(--text-2);
    text-align:center;
  }
  .r-hero-songpa .micro-feats,
  .r-hero-gangnam .micro-feats,
  .r-hero-bundang .micro-feats,
  .r-hero-suwon .micro-feats,
  .r-hero .micro-feats{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:6px!important;
    margin:0 auto 20px!important;
    width:100%;max-width:100%;
    padding:0 2px;
    justify-items:stretch;
    align-self:stretch;
  }
  .r-hero-songpa .micro,
  .r-hero-gangnam .micro,
  .r-hero-bundang .micro,
  .r-hero-suwon .micro{
    display:flex!important;flex-direction:column!important;
    align-items:center!important;justify-content:center!important;
    width:100%!important;height:auto!important;min-height:76px;
    font-size:10.5px;line-height:1.35;
    font-weight:600;letter-spacing:-.15px;
    padding:10px 3px 8px;
    gap:5px;
    text-align:center;
    word-break:keep-all;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:10px;
  }
  .r-hero-songpa .micro svg,
  .r-hero-gangnam .micro svg,
  .r-hero-bundang .micro svg,
  .r-hero-suwon .micro svg{
    width:18px!important;height:18px!important;
    flex-shrink:0;
  }
  .r-hero-songpa .ctas,
  .r-hero-gangnam .ctas,
  .r-hero-bundang .ctas,
  .r-hero-suwon .ctas{
    display:flex;flex-direction:column;gap:12px;
    width:100%;max-width:360px;margin:0 auto;
    padding:0 12px;
  }
  .r-hero-songpa .ctas .btn,
  .r-hero-gangnam .ctas .btn,
  .r-hero-bundang .ctas .btn,
  .r-hero-suwon .ctas .btn{width:100%;min-height:52px;font-size:16px}
  .r-hero-songpa::after,
  .r-hero-gangnam::after,
  .r-hero-bundang::after,
  .r-hero-suwon::after{
    content:"";
    display:block;width:100%;
    margin-top:0;
    border-top:1px solid var(--border);
    min-height:200px;
    height:auto;
    max-height:min(56vw,240px);
    background-color:var(--surface);
    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
  }
  .r-hero-songpa::after{
    aspect-ratio:2816/1536;
    background-image:url("images/songpa/hero/hero-bg-web.jpg");
  }
  .r-hero-gangnam::after{
    aspect-ratio:3168/1344;
    background-image:url("images/gangnam/hero/hero-bg-web.jpg");
  }
  .r-hero-bundang::after{
    aspect-ratio:3168/1344;
    background-image:url("images/bundang/hero/hero-bg-web.jpg");
  }
  .r-hero-suwon::after{
    aspect-ratio:1672/941;
    background-image:url("images/suwon/hero/hero-bg-web.jpg");
  }

  /* —— Index: features —— */
  .features{padding:28px 0 32px!important}
  .features .grid{
    display:flex!important;flex-direction:column!important;
    gap:10px!important;grid-template-columns:none!important;
  }
  .feat{
    flex-direction:column;align-items:center;text-align:center;
    padding:20px 16px;gap:12px;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius);
  }
  .feat .ico{width:48px;height:48px;flex:0 0 48px}
  .feat .t{font-size:16px;margin:0 0 6px}
  .feat .d{font-size:15px;line-height:1.7;margin:0}

  /* —— Index: cards grids —— */
  .curriculum .grid,
  .pricing .grid,
  .regions .grid{
    display:flex!important;flex-direction:column!important;
    align-items:center!important;
    gap:14px!important;grid-template-columns:none!important;
    max-width:400px;margin-left:auto!important;margin-right:auto!important;
  }
  .regions .grid .reg-card{width:100%;max-width:360px}

  .curr-card .img{aspect-ratio:16/10;min-height:0}
  .curr-card .body{
    padding:20px 16px 22px;
    text-align:center;
  }
  .curr-card .t{font-size:17px;margin:0 0 10px}
  .curr-card .d{
    font-size:15px;line-height:1.75;margin:0;
    max-width:26em;margin-left:auto;margin-right:auto;
  }

  .review{
    padding:22px 18px;
    border:1px solid var(--border);
    border-radius:var(--radius);
    text-align:center;
  }
  .review .stars{margin-bottom:10px}
  .review .quote{
    font-size:15px;line-height:1.8;
    margin:0 0 14px;
  }
  .review .meta{
    font-size:14px;margin-top:0;padding-top:14px;
    text-align:center;
  }

  .price-card{
    padding:22px 18px;gap:14px;
    border-radius:var(--radius-lg);
    text-align:center;
  }
  .price-card .top{
    flex-direction:column;align-items:center;text-align:center;
  }
  .price-card .tag{font-size:17px;margin-bottom:4px}
  .price-card .sub{
    font-size:14px;line-height:1.7;margin:0 0 4px;
  }
  .price-card .car{
    aspect-ratio:16/10;padding:16px;
    background:var(--surface);
  }
  .price-card .car img{
    position:static!important;width:auto!important;height:auto!important;
    max-width:100%;max-height:140px;
    margin:0 auto;object-fit:contain;
  }
  .price-card .meta{
    flex-direction:column;align-items:center;
    justify-content:center;gap:6px;
    padding-top:16px;text-align:center;
  }
  .price-card .amount{font-size:22px}
  .price-card .more{padding:14px;font-size:15px}

  .reg-card{
    padding:20px 16px;text-align:center;
  }
  .reg-card .top{
    flex-direction:column;align-items:center;gap:10px;
  }
  .reg-card .name{font-size:17px}
  .reg-card .areas{
    font-size:14px;line-height:1.75;min-height:0;
    margin:4px 0 8px;
  }
  .reg-card .icon-wrap{width:44px;height:44px;margin:0 auto}
  .reg-card .icon-wrap svg{width:40px;height:40px}
  .reg-card .more{justify-content:center}

  /* —— Index: FAQ —— */
  .faq-section .layout{
    display:flex!important;flex-direction:column!important;
    gap:20px!important;grid-template-columns:none!important;
  }
  .faq-section .container{text-align:center}
  .faq{gap:12px;text-align:left}
  .faq details{padding:18px 16px}
  .faq summary{
    font-size:15px;line-height:1.6;font-weight:600;
    align-items:flex-start;gap:10px;
  }
  .faq summary .q{
    align-items:flex-start;flex:1;
    line-height:1.6;min-width:0;
  }
  .faq summary .q b{flex-shrink:0}
  .faq summary .chev{flex-shrink:0;margin-top:2px}
  .faq .a{
    margin:14px 0 0;padding:0;
    font-size:15px;line-height:1.75;
  }
  .faq-aside{
    padding:24px 20px;text-align:center;
  }
  .faq-aside h4,.faq-aside p{text-align:center}
  .faq-aside p{line-height:1.7;margin-top:6px}
  .faq-aside .btns{flex-direction:column;gap:10px}
  .faq-aside .btn{width:100%;flex:none}

  /* —— Region pages (수원 등 구형 히어로) —— */
  .r-hero:not(.r-hero-songpa):not(.r-hero-gangnam):not(.r-hero-bundang):not(.r-hero-suwon){
    background:#fff!important;
  }
  .r-hero:not(.r-hero-songpa):not(.r-hero-gangnam):not(.r-hero-bundang):not(.r-hero-suwon) .inner{
    display:flex!important;flex-direction:column!important;
    gap:0!important;
    grid-template-columns:none!important;
    padding:32px 0 28px!important;
    text-align:center;
    background:#fff;
  }
  .r-hero:not(.r-hero-songpa):not(.r-hero-gangnam):not(.r-hero-bundang):not(.r-hero-suwon) .copy{
    order:0;width:100%;max-width:100%;margin:0 auto;
    padding:0 12px;text-align:center;
    display:flex;flex-direction:column;align-items:center;
  }
  .r-hero:not(.r-hero-songpa):not(.r-hero-gangnam):not(.r-hero-bundang):not(.r-hero-suwon) .r-hero-photo{
    order:1;width:100%;height:auto;
    min-height:200px;max-height:240px;
    margin-top:0;border-top:1px solid var(--border);
    border-radius:0;
  }
  .r-hero .copy .region-badge{
    display:inline-flex;margin:0 auto 16px;
    font-size:13px;padding:8px 14px;
  }
  .r-hero .copy h1{
    font-size:1.875rem!important;line-height:1.3!important;
    letter-spacing:-.5px!important;
    margin:0 auto 12px!important;
    max-width:11em;width:100%;
    text-align:center;
  }
  .r-hero .copy .sub{
    font-size:17px!important;font-weight:700!important;
    line-height:1.4!important;
    margin:0 auto 14px!important;
    max-width:18em;width:100%;
    text-align:center;
  }
  .r-hero .copy p.lead{
    font-size:16px!important;line-height:1.75!important;
    margin:0 auto 20px!important;
    max-width:20em;width:100%;
    color:var(--text-2);
    text-align:center;
  }
  .r-hero .micro-feats{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:6px!important;
    margin:0 auto 20px!important;
    width:100%;max-width:100%;
    padding:0 2px;
    justify-items:stretch;
  }
  .r-hero .micro{
    display:flex!important;flex-direction:column!important;
    align-items:center!important;justify-content:center!important;
    width:100%!important;height:auto!important;min-height:76px;
    font-size:10.5px;padding:10px 3px 8px;line-height:1.35;
    font-weight:600;letter-spacing:-.15px;gap:5px;
    word-break:keep-all;
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:10px;
    text-align:center;
  }
  .r-hero .micro svg{
    width:18px!important;height:18px!important;
    flex-shrink:0;
  }
  .r-hero .ctas{
    display:flex;flex-direction:column;gap:12px;
    width:100%;max-width:360px;margin:0 auto;
    padding:0 12px;
  }
  .r-hero .ctas .btn{width:100%;min-height:52px;font-size:16px}

  .trust,
  .process,
  .courses,
  .r-reviews,
  .r-faq{padding:40px 0!important}

  .trust h2,
  .process h2,
  .courses h2,
  .r-reviews h2,
  .r-faq h3{
    font-size:1.25rem;line-height:1.4;
    text-align:center!important;
    margin-bottom:12px;
  }
  .trust .sub,
  .process .sub,
  .courses .sub,
  .r-reviews .sub{
    text-align:center!important;
    line-height:1.75;margin:0 auto 28px;
    max-width:28em;padding:0 8px;
  }

  .trust .grid,
  .steps,
  .courses .grid{
    display:flex!important;flex-direction:column!important;
    gap:12px!important;grid-template-columns:none!important;
  }
  .steps::before{display:none!important}
  .trust .item,
  .step,
  .course,
  .r-review{
    padding:20px 16px;text-align:center;
  }
  .trust .item .d,
  .step .d,
  .course .d,
  .r-review .quote{
    line-height:1.75;margin-top:6px;
  }
  .course .body{text-align:center}
  .r-review .meta{text-align:center}
  .r-review .top{justify-content:center}

  .r-faq .layout{
    display:flex!important;flex-direction:column!important;
    gap:24px!important;grid-template-columns:none!important;
  }
  .r-faq .container > .layout > div:first-child{text-align:center}
  .r-faq .faq summary{font-size:15px;line-height:1.6}
  .r-faq .faq .a{
    font-size:15px;line-height:1.75;
    margin:14px 0 0;padding:0;
  }

  .other-regions{
    padding:20px 16px;text-align:center;
  }
  .other-regions__home{
    margin:0 auto 12px;text-align:left;max-width:100%;
  }
  .other-regions__lead{font-size:14px;margin-bottom:14px}
  .other-regions__grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    max-width:340px;margin:0 auto!important;
    justify-items:stretch;
  }
  .other-regions__grid > li{width:100%;max-width:none}
  .other-regions__card{padding:16px 12px}
  .other-regions__name{font-size:15px}
}

@media (max-width:480px){
  .container{padding-left:16px;padding-right:16px}

  .hero h1{font-size:1.5rem!important}
  .hero .inner::after{left:-16px;right:-16px;height:48px}
  .hero::after{
    max-height:min(65vw,280px);
    margin-top:-32px;
    background-size:100% 100%,contain;
    background-position:center top,center top;
  }
  .r-hero-songpa .copy h1,
  .r-hero-gangnam .copy h1,
  .r-hero-bundang .copy h1,
  .r-hero-suwon .copy h1{font-size:1.625rem!important}
  .r-hero-songpa::after,
  .r-hero-gangnam::after,
  .r-hero-bundang::after,
  .r-hero-suwon::after{max-height:min(50vw,220px)}
  .r-hero .copy h1{font-size:1.625rem!important}
  .section-title{font-size:1.25rem}
  .r-hero-songpa .micro,
  .r-hero-gangnam .micro,
  .r-hero-bundang .micro,
  .r-hero-suwon .micro,
  .r-hero .micro{
    font-size:10px!important;
    min-height:70px;
    padding:8px 2px 7px;
    gap:4px;
  }
  .r-hero-songpa .micro svg,
  .r-hero-gangnam .micro svg,
  .r-hero-bundang .micro svg,
  .r-hero-suwon .micro svg,
  .r-hero .micro svg{width:16px!important;height:16px!important}
}
