@font-face {
    font-family: 'NanumSquareEB';
    src: url('https://cdn.jsdelivr.net/gh/moonspam/NanumSquare@2.0/NanumSquareEB.woff') format('woff');
}

* { margin: 0; padding: 0; box-sizing: border-box; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

html, body {
    height: 100%;
    overflow: hidden;
    overflow-x: hidden;
}

body {
    color: #333;
    background: #000;
    font-family: 'Noto Sans KR', sans-serif;
    overflow-x: hidden;
}

/* ============================================
   HEADER
============================================ */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 10000;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header .inner {
    max-width: 1440px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px; height: 60px;
}
.header-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.header-logo img { height: 36px; }
.header-nav { display: flex; align-items: center; gap: 10px; }
.header-nav li a { color: rgba(255,255,255,.85); font-size: 14px; transition: color .3s; white-space: nowrap; }
.header-nav li a:hover { color: #fff; }
.header-nav .divider { color: rgba(255,255,255,.25); font-size: 12px; }

/* ============================================
   HAMBURGER
============================================ */
.hamburger-btn {
    display: none; background: none; border: none; cursor: pointer;
    width: 28px; height: 20px; position: relative; flex-shrink: 0;
}
.hamburger-btn span {
    display: block; width: 100%; height: 2px; background: #fff;
    position: absolute; left: 0; transition: all .3s;
}
.hamburger-btn span:nth-child(1) { top: 0; }
.hamburger-btn span:nth-child(2) { top: 9px; }
.hamburger-btn span:nth-child(3) { top: 18px; }
.hamburger-btn.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ============================================
   MOBILE MENU
============================================ */
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,.5); z-index: 9998;
    opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mobile-menu-overlay.active { opacity: 1; pointer-events: all; }
.mobile-menu {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100%;
    background: #fff; z-index: 9999; transition: right .35s ease;
    padding: 80px 30px 30px; overflow-y: auto;
}
.mobile-menu.active { right: 0; }
.mobile-menu .close-btn {
    position: absolute; top: 20px; right: 20px; font-size: 28px;
    color: #999; background: none; cursor: pointer; border: none;
}
.mobile-menu li { border-bottom: 1px solid #eee; }
.mobile-menu li a { display: block; padding: 15px 0; color: #333; font-size: 16px; font-weight: 500; }
.mobile-menu .menu-tel {
    margin-top: 20px; text-align: center; padding: 15px;
    background: #1a2a4a; border-radius: 5px;
}
.mobile-menu .menu-tel a { color: #fff; font-size: 18px; font-weight: 700; }

/* ============================================
   VIDEO BACKGROUND
============================================ */
.video-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; overflow: hidden; transition: filter .5s;
}
.video-bg.blurred { filter: blur(3px); }
.video-bg video { width: 100%; height: 100%; object-fit: cover; }
.video-bg-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15,15,30,.7) 0%, rgba(30,25,20,.5) 50%, rgba(10,10,25,.7) 100%);
    z-index: 1;
}

/* ============================================
   BG CENTER LOGO
============================================ */
.bg-center-logo {
    position: fixed; top: 12vh; left: 50%;
    transform: translate(-50%,-50%); z-index: 0;
    opacity: 0; transition: opacity .6s; pointer-events: none;
}
.bg-center-logo img { height: 60px; filter: brightness(0) invert(1); opacity: .9; }
.bg-center-logo.visible { opacity: 1; }

/* ============================================
   FULLPAGE CONTAINER
============================================ */
#fullpage-container { position: relative; z-index: 1; height: 100vh; overflow: hidden; }

.section {
    height: 100vh; position: absolute; top: 0; left: 0; width: 100%;
    transition: transform .8s cubic-bezier(.645,.045,.355,1);
}
.section:not(#section-hero) { transform: translateY(100vh); }

/* ============================================
   SECTION INNER WRAP
============================================ */
.section-inner-wrap {
    position: absolute; top: 18vh; left: 50%; transform: translateX(-50%);
    width: 92%; max-width: 1400px; height: 82vh;
    background: #fff; box-shadow: 0 -5px 60px rgba(0,0,0,.4);
    overflow: hidden; border-radius: 12px 12px 0 0;
}
#section-lawyer .section-inner-wrap { overflow-y: auto; }
#section-lawyer .section-inner-wrap::-webkit-scrollbar { width: 6px; }
#section-lawyer .section-inner-wrap::-webkit-scrollbar-track { background: transparent; }
#section-lawyer .section-inner-wrap::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }
#section-map .section-inner-wrap { overflow-y: auto; scroll-behavior: smooth; }
#section-map .section-inner-wrap::-webkit-scrollbar { width: 6px; }
#section-map .section-inner-wrap::-webkit-scrollbar-track { background: transparent; }
#section-map .section-inner-wrap::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }

/* ============================================
   HERO SECTION
============================================ */
#section-hero {
    display: flex; flex-direction: column; justify-content: center;
    align-items: center; text-align: center; z-index: 5;
}
.hero-logo { margin-bottom: 15px; }
.hero-logo img { height: 130px; filter: brightness(0) invert(1); }
.hero-title {
    font-family: 'NanumSquareEB', sans-serif; font-size: 56px; color: #fff;
    letter-spacing: 2px; margin-bottom: 5px; text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hero-subtitle {
    font-size: 15px; color: rgba(255,255,255,.7);
    letter-spacing: 6px; margin-bottom: 45px; font-weight: 300;
}
.hero-desc {
    font-size: 30px; color: rgba(255,255,255,.95);
    line-height: 1.5; margin-bottom: 100px; font-weight: 500;
}
.hero-stats { display: flex; gap: 80px; align-items: center; margin-bottom: 60px; }
.hero-stats li { text-align: center; color: #fff; position: relative; }
.hero-stats li:not(:last-child)::after {
    content: ''; position: absolute; right: -30px; top: 50%;
    transform: translateY(-50%); width: 1px; height: 40px; background: rgba(255,255,255,.2);
}
.stat-label { font-size: 17px; color: rgba(255,255,255,.6); display: block; margin-bottom: 6px; }
.stat-number { font-size: 50px; font-weight: 700; font-family: 'NanumSquareEB', sans-serif; }
.stat-unit { font-size: 26px; color: rgba(255,255,255,.6); margin-left: 2px; }

.scroll-down {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%); text-align: center;
    color: rgba(255,255,255,.5); animation: bounce 2s infinite;
}
.scroll-mouse {
    width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.4);
    border-radius: 12px; position: relative; margin: 0 auto 8px;
}
.scroll-mouse::before {
    content: ''; position: absolute; top: 6px; left: 50%;
    transform: translateX(-50%); width: 3px; height: 8px;
    background: rgba(255,255,255,.6); border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}
@keyframes scrollWheel { 0% { opacity: 1; top: 6px; } 100% { opacity: 0; top: 18px; } }
.scroll-down p { font-size: 11px; letter-spacing: 2px; }
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-8px); }
}

/* ============================================
   LAWYER INTRO
============================================ */
.lawyer-section-inner { display: flex; flex-direction: column; }
.lawyer-intro {
    max-width: 1350px; margin: 0 auto; display: flex;
    align-items: flex-start; gap: 55px; padding: 45px 50px 0px;
}
.lawyer-intro .ceo-img {
    width: 521px; flex-shrink: 0;
    display: flex; align-items: flex-start; justify-content: center;
}
.lawyer-intro .ceo-img img { width: 100%; height: auto; display: block; }
.ceo-text { flex: 1; min-width: 0; }
.ceo-greeting { position: relative; margin-bottom: 32px; }
.ceo-text .quote-icon {
    color: #b0b8c4; font-size: 85px;
    font-family: Georgia, 'Times New Roman', serif; font-weight: bold;
    line-height: 0.6; margin-bottom: 1px; letter-spacing: -3px;
}
.ceo-text .big-text { font-size: 26px; line-height: 1.5; color: #222; font-weight: 300; }
.ceo-text .big-text strong { font-weight: 700; color: #1a2a4a; }
.ceo-name-area {
    display: flex; flex-direction: column; margin-bottom: 36px;
    padding-bottom: 32px; border-bottom: 1px solid #e2e5ea; position: relative;
}
.ceo-name-area::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 100%; height: 1px; background: #e2e5ea;
}
.ceo-registered { font-size: 13px; color: #999; letter-spacing: 1px; margin-bottom: 8px; }
.ceo-name-row { display: flex; align-items: baseline; gap: 14px; }
.ceo-name { font-size: 28px; font-weight: 700; color: #1a2a4a; letter-spacing: 8px; }
.ceo-title-label { font-size: 15px; font-weight: 400; color: #666; letter-spacing: 1px; padding-left: 14px; border-left: 1px solid #ccc; }
.ceo-credentials { background: #f7f8fa; border-radius: 8px; padding: 28px 30px; border: 1px solid #eceef2; }
.credentials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.credential-block { padding: 16px 20px; position: relative; }
.credentials-grid .credential-block:nth-child(1),
.credentials-grid .credential-block:nth-child(2) { border-bottom: 1px solid #e2e5ea; }
.credentials-grid .credential-block:nth-child(odd) { border-right: 1px solid #e2e5ea; }
.credential-block h4 {
    font-size: 15px; font-weight: 600; color: #1a2a4a;
    text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
}
.credential-block h4::before {
    content: ''; display: inline-block; width: 4px; height: 4px;
    background: #3a6fb0; border-radius: 50%; flex-shrink: 0;
}
.credential-block ul { list-style: none; padding: 0; margin: 0; }
.credential-block ul li { font-size: 16px; color: #555; line-height: 1.8; }

/* ============================================
   CASES
============================================ */
.cases-wrap { display: flex; flex-direction: column; justify-content: center; padding: 60px 0; height: 100%; }
.section-title-main { text-align: center; font-size: 36px; font-weight: 700; color: #222; margin-bottom: 10px; }
.section-desc { text-align: center; font-size: 16px; color: #888; margin-bottom: 50px; }
.cases-slider-viewport { max-width: 1200px; margin: 0 auto; overflow: hidden; padding: 0 40px; width: 100%; }
.cases-slider-track { display: flex; gap: 20px; will-change: transform; }
.case-card {
    flex-shrink: 0; border-radius: 8px; overflow: hidden;
    cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.case-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.case-img {
    position: relative; width: 100%; height: 0; padding-bottom: 130%;
    overflow: hidden; border-radius: 8px; background: #1a1a2e;
}
.case-img img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease;
}
.case-card:hover .case-img img { transform: scale(1.05); filter: brightness(0.6); }
.case-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 25px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff; transform: translateY(20px); opacity: 0; transition: all 0.4s ease; z-index: 2;
}
.case-card:hover .case-overlay { transform: translateY(0); opacity: 1; }
.case-overlay .category-tag { display: inline-block; background: #c23b3b; color: #fff; padding: 4px 12px; font-size: 12px; font-weight: 600; border-radius: 2px; margin-bottom: 10px; }
.case-overlay h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.case-overlay p { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-img::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 50%; background: linear-gradient(transparent, rgba(0,0,0,0.4));
    z-index: 1; pointer-events: none;
}
.cases-nav { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 30px; }
.cases-nav button {
    width: 45px; height: 45px; border-radius: 50%; background: #333;
    color: #fff; font-size: 18px; display: flex; align-items: center;
    justify-content: center; cursor: pointer; border: none; transition: background .3s;
}
.cases-nav button:hover { background: #555; }

/* ============================================
   DIFFERENTIATORS
============================================ */
.diff-wrap { display: flex; flex-direction: column; height: 100%; }
.diff-top { padding: 80px 40px; background: #fff; text-align: left; flex: 0 0 auto; }
.diff-top .center { max-width: 1200px; margin: 0 auto; }
.diff-headline { font-size: 34px; line-height: 1.5; color: #222; font-weight: 300; letter-spacing: -1px; }
.diff-headline span { color: #c23b3b; font-weight: 700; }
.diff-bottom {
    flex: 1;
    background: linear-gradient(135deg, rgba(30,35,50,.95), rgba(40,45,60,.95));
    display: flex; align-items: center; padding: 60px 40px; overflow: hidden;
}
.diff-content { max-width: 1200px; margin: 0 auto; display: flex; gap: 60px; width: 100%; }
.diff-left { flex: 0 0 300px; }
.diff-left .quote {
    color: rgba(255,255,255,.25); font-size: 85px;
    font-family: Georgia, 'Times New Roman', serif; font-weight: bold;
    line-height: 0.6; margin-bottom: 1px; letter-spacing: -3px;
}
.diff-left p { font-size: 24px; color: #fff; line-height: 1.6; margin-bottom: 30px; }
.diff-right { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 20px; }
.diff-card {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    padding: 30px 20px; text-align: center; border-radius: 4px; transition: all .3s;
}
.diff-card:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.card-icon { width: 50px; height: 50px; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; }
.card-icon i { font-size: 37px; color: #fff; opacity: .8; }
.card-label { color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.6; }

/* ============================================
   CONSULTATION
============================================ */
.consult-wrap {
    display: flex; flex-direction: column; justify-content: center;
    align-items: center; padding: 60px 40px; height: 100%;
}
.consult-title { text-align: center; margin-bottom: 8px; }
.consult-title h2 { font-size: 36px; color: #222; font-weight: 400; }
.consult-title h2 span { font-size: 14px; color: #aaa; display: block; margin-top: 5px; letter-spacing: 1px; }
.consult-subtitle { text-align: center; font-size: 20px; color: #555; margin-bottom: 8px; }
.consult-subtitle strong { font-weight: 700; color: #222; }
.consult-note { text-align: center; font-size: 13px; color: #aaa; margin-bottom: 40px; }
.consult-form { width: 100%; max-width: 700px; }
.form-row { display: flex; gap: 15px; margin-bottom: 15px; }
.form-row input[type="text"], .form-row select {
    flex: 1; height: 50px; border: 1px solid #ddd; border-radius: 3px;
    padding: 0 15px; font-size: 14px; font-family: 'Noto Sans KR', sans-serif;
    outline: none; transition: border-color .3s;
}
.form-row input:focus, .form-row select:focus { border-color: #4a90d9; }
.form-row select {
    appearance: none; color: #333;
    background: #fff url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
    background-size: 20px;
}
.form-row select:invalid, .form-row select option[disabled] { color: #999; }
.form-textarea { width: 100%; margin-bottom: 15px; position: relative; }
.form-textarea .byte-info { position: absolute; top: 10px; right: 15px; font-size: 12px; color: #aaa; }
.form-textarea textarea {
    width: 100%; height: 150px; border: 1px solid #ddd; border-radius: 3px;
    padding: 15px; font-size: 14px; font-family: 'Noto Sans KR', sans-serif;
    outline: none; resize: none;
}
.form-textarea textarea:focus { border-color: #4a90d9; }
.form-agree { margin-bottom: 20px; font-size: 14px; color: #666; display: flex; align-items: center; gap: 8px; }
.form-agree input[type="checkbox"] { width: 18px; height: 18px; accent-color: #4a90d9; }
.form-submit {
    width: 100%; height: 55px; background: #1a2a4a; color: #fff; border: none;
    border-radius: 3px; font-size: 16px; font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer; transition: background .3s;
}
.form-submit:hover { background: #2a3a5a; }

/* ============================================
   MAP
============================================ */
.map-wrap { display: flex; flex-direction: column; justify-content: center; padding: 50px 0 40px; }
.map-title { text-align: center; font-size: 30px; color: #222; margin-bottom: 50px; font-weight: 400; }
.map-title strong { font-weight: 700; }
.map-title span { color: #4a90d9; }
.map-content { max-width: 1200px; margin: 0 auto; display: flex; gap: 40px; padding: 0 40px; width: 100%; }
.map-info { flex: 0 0 300px; }
.address { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 25px; }
.contact-info { margin-bottom: 25px; }

.tel-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: #1a2a4a; color: #fff;
    font-size: 18px; font-weight: 700;
    padding: 14px 30px; border-radius: 5px;
    transition: all .3s; font-family: 'Noto Sans KR', sans-serif;
}
.tel-btn:hover {
    background: #2a3a5a; transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26,42,74,.3); color: #fff;
}
.tel-btn i { font-size: 20px; }

.map-embed {
    flex: 1; min-height: 350px; background: #e8e8e8;
    border-radius: 4px; position: relative; overflow: hidden;
}
.map-embed iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* ============================================
   FOOTER
============================================ */
#site-footer { background: #16171d; padding: 35px 0 30px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; width: 100%; }
.footer-top {
    display: flex; gap: 10px; margin-bottom: 30px;
    padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-top a { color: rgba(255,255,255,.6); font-size: 13px; }
.footer-top a:hover { color: #fff; }
.footer-main { display: flex; justify-content: space-between; align-items: flex-start; }
.footer-logo-text { font-family: 'NanumSquareEB', sans-serif; color: #fff; font-size: 20px; margin-bottom: 15px; }
.footer-address { color: rgba(255,255,255,.4); font-size: 13px; line-height: 1.8; font-style: normal; }
.footer-right { text-align: right; }
.footer-tel-label { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.5); font-size: 13px; margin-bottom: 8px; justify-content: flex-end; }
.footer-tel { font-size: 32px; color: #fff; font-weight: 700; font-family: 'NanumSquareEB', sans-serif; margin-bottom: 5px; }
.footer-tel-sub { font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 15px; }
.footer-ad { font-size: 12px; color: rgba(255,255,255,.3); border: 1px solid rgba(255,255,255,.1); padding: 8px 12px; display: inline-block; }
.footer-sns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 15px; }
.footer-sns a {
    width: 35px; height: 35px; border-radius: 50%;
    background: rgba(255,255,255,.1); display: flex; align-items: center;
    justify-content: center; color: rgba(255,255,255,.5); font-size: 16px; transition: all .3s;
}
.footer-sns a:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ============================================
   SIDE CONTROLS
============================================ */
.side-controls {
    position: fixed; right: 30px; top: 50%; transform: translateY(-50%);
    z-index: 9998; display: flex; flex-direction: column; gap: 5px;
    opacity: 0; transition: opacity .5s;
}
.side-controls.visible { opacity: 1; }
.side-controls button {
    width: 50px; height: 50px; background: rgba(50,50,50,.8); border: none;
    color: #fff; font-size: 20px; cursor: pointer; border-radius: 3px;
    display: flex; align-items: center; justify-content: center; transition: background .3s;
}
.side-controls button:hover { background: rgba(80,80,80,.9); }

/* ============================================
   MOBILE BOTTOM BAR
============================================ */
.mobile-bottom-bar {
    display: none; position: fixed; bottom: 0; left: 0; width: 100%;
    z-index: 10001; background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,.1);
}
.mobile-bottom-bar ul { display: flex; height: 56px; }
.mobile-bottom-bar li { flex: 1; display: flex; align-items: center; justify-content: center; border-right: 1px solid #eee; }
.mobile-bottom-bar li:last-child { border-right: none; }
.mobile-bottom-bar li a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #333; font-size: 11px; font-weight: 500; }
.mobile-bottom-bar li a i { font-size: 20px; }


/* ============================================
   ★★★ RESPONSIVE - TABLET (<=1024px) ★★★
============================================ */
@media (max-width: 1024px) {
    html, body {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        height: auto;
        width: 100%;
    }

    /* 비디오 배경: 모바일에서 absolute → jank 방지 */
    .video-bg {
        position: absolute;
        height: 100vh;
        width: 100%;
    }

    /* bg 센터 로고 숨김 */
    .bg-center-logo { display: none !important; }

    /* 풀페이지 해제 */
    #fullpage-container {
        height: auto;
        overflow: visible;
        width: 100%;
    }

    .section {
        position: relative !important;
        height: auto !important;
        min-height: auto !important;
        transform: none !important;
        opacity: 1 !important;
        width: 100%;
    }

    #section-hero {
        min-height: 100vh;
        height: 100vh !important;
    }

    .section-inner-wrap {
        position: relative !important;
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        box-shadow: none;
        top: 0 !important;
        height: auto !important;
        min-height: auto;
        border-radius: 0;
        overflow: visible !important;
    }

    .side-controls { display: none !important; }
    .header .inner { padding: 0 20px; }
    .cases-slider-viewport { padding: 0 20px; }

    /* 성공사례 높이 auto */
    .cases-wrap { height: auto; }

    /* 차별화 섹션 높이 auto */
    .diff-wrap { height: auto; }

    /* 상담 높이 auto */
    .consult-wrap { height: auto; }
}


/* ============================================
   ★★★ RESPONSIVE - MOBILE (<=768px) ★★★
============================================ */
@media (max-width: 768px) {
    /* 글로벌 오버플로우 완전 차단 */
    html {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        -webkit-text-size-adjust: 100%;
    }
    #fullpage-container,
    .section,
    .section-inner-wrap {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* 헤더 */
    .header-nav { display: none; }
    .hamburger-btn { display: block; }
    .mobile-bottom-bar { display: block; }
    .header .inner { height: 55px; padding: 0 15px; }
    .header-logo img { height: 28px; }

    /* ── 히어로 섹션 ── */
    #section-hero {
        padding: 0 20px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-logo { margin-bottom: 10px; }
    .hero-logo img {
        height: 55px;
    }

    .hero-subtitle {
        font-size: 9px;
        letter-spacing: 3px;
        margin-bottom: 25px;
    }

    .hero-desc {
        font-size: 18px;
        margin-bottom: 50px;
        line-height: 1.6;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 25px;
        justify-content: center;
        margin-bottom: 30px;
    }
    .hero-stats li { min-width: 80px; }
    .hero-stats li::after { display: none; }
    .stat-label { font-size: 12px; margin-bottom: 3px; }
    .stat-number { font-size: 24px; }
    .stat-unit { font-size: 14px; }

    .scroll-down { bottom: 75px; }

    /* ── 변호사 소개 ── */
    .lawyer-intro {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 25px;
    }
    .lawyer-intro .ceo-img {
        width: 180px;
        margin: 0 auto;
    }
    .ceo-text .big-text { font-size: 18px; }
    .ceo-text .quote-icon { font-size: 36px; }
    .ceo-greeting { text-align: center; }
    .ceo-name-area { align-items: center; margin-bottom: 24px; padding-bottom: 20px; }
    .ceo-name-row { flex-direction: column; align-items: center; gap: 6px; }
    .ceo-name { font-size: 22px; letter-spacing: 5px; }
    .ceo-title-label { border-left: none; padding-left: 0; }

    .credentials-grid { grid-template-columns: 1fr; }
    .credentials-grid .credential-block:nth-child(odd) { border-right: none; }
    .credentials-grid .credential-block:nth-child(1),
    .credentials-grid .credential-block:nth-child(2),
    .credentials-grid .credential-block:nth-child(3) { border-bottom: 1px solid #e2e5ea; }
    .ceo-credentials { text-align: left; padding: 15px; }
    .credential-block { padding: 12px 15px; }
    .credential-block h4 { font-size: 13px; margin-bottom: 6px; }
    .credential-block ul li { font-size: 14px; line-height: 1.7; }

    /* ── 성공사례 ── */
    .cases-wrap { padding: 40px 0; }
    .section-title-main { font-size: 24px; }
    .section-desc { font-size: 14px; margin-bottom: 30px; }
    .cases-slider-viewport { padding: 0 15px; }
    .case-img { padding-bottom: 140%; }
    .cases-nav { margin-top: 20px; }
    .cases-nav button { width: 40px; height: 40px; font-size: 16px; }

    /* ── 차별화 섹션 ── */
    .diff-top { padding: 35px 20px; }
    .diff-headline { font-size: 20px; line-height: 1.6; letter-spacing: -0.5px; }
    .diff-bottom { padding: 30px 20px; }
    .diff-content { flex-direction: column; gap: 25px; }
    .diff-left { flex: none; }
    .diff-left .quote { font-size: 50px; }
    .diff-left p { font-size: 18px; margin-bottom: 0; }
    .diff-right { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .diff-card { padding: 20px 12px; }
    .card-icon { width: 36px; height: 36px; margin-bottom: 10px; }
    .card-icon i { font-size: 28px; }
    .card-label { font-size: 12px; line-height: 1.5; }

    /* ── 상담 섹션 ── */
    .consult-wrap { padding: 35px 20px; }
    .consult-title h2 { font-size: 24px; }
    .consult-title h2 span { font-size: 11px; }
    .consult-subtitle { font-size: 16px; }
    .consult-note { font-size: 12px; margin-bottom: 25px; }
    .consult-form { padding: 0; }
    .form-row { flex-direction: column; gap: 10px; }
    .form-row input[type="text"], .form-row select { height: 46px; font-size: 14px; }
    .form-textarea textarea { height: 120px; }
    .form-submit { height: 50px; font-size: 15px; }

    /* ── 지도 섹션 ── */
    .map-wrap { padding: 30px 0; }
    .map-title { font-size: 20px; padding: 0 20px; margin-bottom: 30px; }
    .map-content { flex-direction: column; padding: 0 20px; gap: 20px; }
    .map-info { flex: none; }
    .address { font-size: 14px; margin-bottom: 15px; }
    .map-embed { min-height: 220px; }
    .tel-btn { width: 100%; justify-content: center; font-size: 16px; padding: 12px 20px; }

    /* ── 푸터 ── */
    .footer-inner { padding: 0 20px; }
    .footer-main { flex-direction: column; gap: 25px; }
    .footer-right { text-align: left; }
    .footer-tel-label { justify-content: flex-start; }
    .footer-tel { font-size: 24px; }
    .footer-sns { justify-content: flex-start; }
    .footer-logo-text { font-size: 16px; }
    .footer-address { font-size: 12px; }
    #site-footer { padding-bottom: 70px; }
}


/* ============================================
   ★★★ RESPONSIVE - SMALL (<=400px) ★★★
============================================ */
@media (max-width: 400px) {
    .hero-logo img { height: 45px; }
    .hero-desc { font-size: 16px; margin-bottom: 40px; }
    .hero-subtitle { font-size: 8px; letter-spacing: 2px; }
    .stat-number { font-size: 22px; }
    .stat-label { font-size: 11px; }
    .stat-unit { font-size: 13px; }
    .ceo-text .big-text { font-size: 16px; }
    .diff-headline { font-size: 18px; }
    .card-label { font-size: 11px; }
    .consult-title h2 { font-size: 22px; }
    .map-title { font-size: 18px; }
}