/* 기본 스타일 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3366ff;
    --secondary-color: #3366ff;
    --subpage-hero-bg: #ffffff;
    --text-color: #0b1220;
    --accent-color: #3366ff;
    --accent-soft: rgba(51, 102, 255, 0.18);
    --light-gray: #f1f5f9;
    --gray: #94a3b8;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
    --shadow-sm: 0 6px 18px rgba(11, 18, 32, 0.08);
    --shadow-lg: 0 24px 60px rgba(11, 18, 32, 0.18);
    --radius: 14px;
    --radius-sm: 10px;
    --transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.home-hero {
    background: var(--white);
}

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 서브페이지 상단 히어로(공통) */
.subpage-hero {
    background: var(--subpage-hero-bg) !important;
    color: var(--text-color) !important;
}

.subpage-hero h2,
.subpage-hero p {
    color: var(--text-color) !important;
}

.subpage-hero a,
.subpage-hero .badge,
.subpage-hero .kicker,
.subpage-hero i {
    color: var(--text-color) !important;
}

.subpage-hero h2,
.subpage-hero p,
.subpage-hero .badge,
.subpage-hero .kicker {
    text-shadow: none;
}

.subpage-hero .badge {
    background: rgba(148, 163, 184, 0.18) !important;
    border-color: rgba(148, 163, 184, 0.28) !important;
}

.subpage-hero .kicker {
    color: rgba(100, 116, 139, 0.95) !important;
}

.subpage-hero p {
    color: rgba(11, 18, 32, 0.75) !important;
}

/* 헤더 스타일 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 8px 0;
}

.header {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(11, 18, 32, 0.06);
}

.header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(11, 18, 32, 0.06);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    pointer-events: none;
    transition: height 0.28s var(--ease-out-soft), opacity 0.18s var(--ease-out-soft);
}

.header.submenu-open::after {
    height: 60px;
    opacity: 1;
}

@media (min-width: 992px) {
    .submenu-panel {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 60px;
        display: flex;
        align-items: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s var(--ease-out-soft);
        z-index: 1001;
    }

    .header.submenu-open .submenu-panel {
        opacity: 1;
        pointer-events: auto;
    }

    .submenu-panel-inner {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        justify-content: flex-end;
        gap: 26px;
        align-items: center;
    }

    .submenu-panel-link {
        text-decoration: none;
        font-weight: 700;
        color: var(--text-color);
        letter-spacing: -0.02em;
        padding: 12px 0;
        white-space: nowrap;
    }

    .submenu-panel-link:hover {
        color: var(--text-color);
    }
}

@media (min-width: 992px) {
    .header.submenu-open {
        background: rgba(255, 255, 255, 0.96);
    }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo {
    height: 28px;
    width: auto;
    display: none;
    object-fit: contain;
}

.logo h1 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.logo h1 {
    letter-spacing: -0.03em;
}

@media (max-width: 480px) {
    .logo { gap: 7px; }
    .site-logo { height: 24px; }
    .logo h1 { font-size: 1.9rem; }
}

.nav-menu {
    display: flex;
    list-style: none;
    position: relative;
}

.nav-menu > li {
    margin-left: 30px;
    position: relative;
}

.nav-menu > li > a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 10px 0;
    font-size: 1.2rem;
    display: block;
}

.nav-menu > li > a {
    position: relative;
}

.nav-menu > li > a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s var(--ease-out-soft);
    opacity: 0.9;
}

.nav-menu > li > a:hover {
    color: var(--text-color);
}

.nav-menu > li > a:hover:after {
    transform: scaleX(1);
}

/* 서브메뉴 스타일 */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.28s var(--ease-out-soft);
    z-index: 1000;
    padding: 5px 0;
}

.nav-menu > li:hover .submenu {

    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    display: block;
    padding: 8px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95em;
}

.submenu a:hover {
    background-color: #f5f5f5;
    color: var(--text-color);
    padding-left: 25px;
}

@media (min-width: 992px) {
    .nav-menu {
        position: static;
    }

    .nav-menu > li {
        position: static;
    }

    .submenu {
        display: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }
}

.btn-consult {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    padding: 8px 20px;
    border-radius: 999px;
    transition: var(--transition);
}

.btn-consult:hover {
    background: linear-gradient(135deg, var(--secondary-color), #050e1b);
}

/* 모바일 메뉴 버튼 및 메뉴 스타일 */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    z-index: 1001;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 2000;
    transition: var(--transition);
    padding: 0;
    box-shadow: 2px 0 18px rgba(11, 18, 32, 0.14);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-close {
    text-align: right;
    margin-bottom: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 10px;
    align-self: flex-end;
}

.mobile-menu-content {
    padding: 0;
    flex: 1;
}

.mobile-menu-header {
    display: flex;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.mobile-menu-item {
    flex: 0 0 30%;
    text-align: center;
    background: rgba(241, 245, 249, 0.9);
    padding: 12px 5px;
    margin-bottom: 10px;
    border-radius: 12px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid rgba(11, 18, 32, 0.06);
}

.mobile-menu-item:hover {
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.26);
    color: var(--primary-color);
}

.mobile-menu-contact {
    text-align: center;
    margin: 25px 0;
}

.mobile-menu-contact .btn-primary {
    width: 100%;
    max-width: 200px;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 999px;
}

.mobile-menu-contact-info {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid rgba(11, 18, 32, 0.08);
    border-bottom: 1px solid rgba(11, 18, 32, 0.08);
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(11, 18, 32, 0.72);
    text-decoration: none;
    font-size: 0.9rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--accent-color);
}

@media (min-width: 992px) {
    .mobile-menu {
        display: none;
    }
}

@media (max-width: 991px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    body.home-hero .header .container {
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid rgba(11, 18, 32, 0.12);
        border-radius: 14px;
        padding: 10px 12px;
        box-shadow: 0 10px 24px rgba(11, 18, 32, 0.14);
    }

    body.home-hero .header .container .mobile-menu-btn {
        color: var(--text-color);
        text-shadow: none;
    }

    body.home-hero .header {
        padding: 10px 0;
    }

    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 16px;
        border-bottom: 1px solid rgba(15, 23, 42, 0.10);
        margin-bottom: 0;
        flex-wrap: nowrap;
    }

    .mobile-menu-brand {
        font-weight: 900;
        font-size: 1.25rem;
        letter-spacing: -0.02em;
        color: var(--primary-color);
    }

    .mobile-menu-header .mobile-menu-close {
        margin: 0;
        padding: 6px;
        border: 0;
        background: transparent;
        font-size: 1.8rem;
        line-height: 1;
        cursor: pointer;
        align-self: auto;
    }

    .mm-nav {
        padding: 10px 0 96px;
    }

    .mm-section {
        border-bottom: 1px solid rgba(15, 23, 42, 0.10);
    }

    .mm-trigger {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 16px;
        border: 0;
        background: transparent;
        cursor: pointer;
        font-size: 1.05rem;
        font-weight: 900;
        letter-spacing: -0.02em;
        color: #0b1220;
    }

    .mm-trigger i {
        color: rgba(15, 23, 42, 0.55);
        transition: transform 0.2s ease;
    }

    .mm-section.open .mm-trigger i {
        transform: rotate(180deg);
    }

    .mm-panel {
        display: none;
        padding: 6px 16px 14px;
    }

    .mm-section.open .mm-panel {
        display: block;
    }

    .mm-link {
        display: block;
        padding: 10px 0;
        text-decoration: none;
        color: rgba(15, 23, 42, 0.78);
        font-size: 0.98rem;
        font-weight: 800;
        letter-spacing: -0.02em;
    }

    .mm-single-link {
        display: block;
        padding: 18px 16px;
        text-decoration: none;
        color: #0b1220;
        font-size: 1.05rem;
        font-weight: 900;
        letter-spacing: -0.02em;
        border-bottom: 1px solid rgba(15, 23, 42, 0.10);
    }

    .mm-quickbar {
        position: sticky;
        bottom: 0;
        z-index: 1;
        width: 100%;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -18px 40px rgba(11, 18, 32, 0.22);
        border-top: 1px solid rgba(255, 255, 255, 0.10);
    }

    .mm-quickbar-inner {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mm-quickbar-title {
        font-weight: 900;
        color: rgba(255, 255, 255, 0.92);
        min-width: 70px;
        letter-spacing: -0.02em;
    }

    .mm-quickbar-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex: 1;
    }

    .mm-quickbar-trigger {
        flex: 1;
        height: 44px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.10);
        color: rgba(255, 255, 255, 0.92);
        border-radius: 14px;
        padding: 0 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        cursor: pointer;
    }

    .mm-quickbar-click {
        font-weight: 900;
        background: rgba(11, 18, 32, 0.22);
        padding: 6px 10px;
        border-radius: 999px;
    }

    .mm-quickbar-talk {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        border: 0;
        background: rgba(255, 255, 255, 0.18);
        color: rgba(255, 255, 255, 0.92);
        font-weight: 900;
        cursor: pointer;
    }
}

/* 메인 배너 */
.main-banner {
    background: radial-gradient(900px 520px at 18% 20%, rgba(56, 189, 248, 0.35), transparent 55%),
        radial-gradient(900px 520px at 86% 22%, rgba(168, 85, 247, 0.20), transparent 55%),
        linear-gradient(135deg, #eef2ff, #f8fafc);
    color: #0b1220;

    padding: 0;
    height: 100vh;
    min-height: 720px;
    max-height: none;
    text-align: left;
    position: relative;
    display: flex;
    align-items: center;
}

.main-banner .container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.main-banner .main-banner-overlay {
    position: relative;

    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 1200px;
    text-align: left;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-banner .hero-copy .hero-line {
    display: block;
}

.main-banner .main-banner-overlay .main-cta {
    align-self: center;
    margin-left: 0;
    margin-right: 0;
    padding: 12px 30px;
}

.main-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: none;
    word-break: keep-all;
}

.main-banner p {
    font-size: 1.6rem;
    line-height: 1.45;
    margin-bottom: 30px;
    text-shadow: none;
    word-break: keep-all;
}

.main-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.35);
    pointer-events: none;
}

body.home-hero .header {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.home-hero .header.whiteboard-bg {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(11, 18, 32, 0.06);
    box-shadow: var(--shadow-sm);
}

body.home-hero .header.whiteboard-bg .logo h1 {
    color: #3366ff;
    text-shadow: none;
}

body.home-hero .header.whiteboard-bg .nav-menu > li > a {
    color: #000;
    text-shadow: none;
}

body.home-hero .header.whiteboard-bg .nav-menu > li > a:after {
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

body.home-hero .header.whiteboard-bg .mobile-menu-btn {
    color: var(--text-color);
    text-shadow: none;
}

body.home-hero .logo h1 {
    color: #3366ff;
    text-shadow: none;
}

body.home-hero .nav-menu > li > a {
    color: #000;
    text-shadow: none;
}

body.home-hero .nav-menu > li > a:after {
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

body.home-hero .mobile-menu-btn {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

body.home-hero .main-banner {
    background-image: url('../img/home.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

body.home-hero .main-banner::after {
    background: transparent;
}

body.home-hero .main-banner .main-banner-overlay {
    color: rgba(255, 255, 255, 0.96);
}

body.home-hero .main-banner h2,
body.home-hero .main-banner p {
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

body.home-hero .main-banner p {
    color: rgba(255, 255, 255, 0.90);
}

body.home-hero .reveal-on-scroll {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    filter: blur(2px);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
    transition-delay: 0ms;
    will-change: opacity, transform, filter;
}

body.home-hero .reveal-on-scroll.reveal-up {
    transform: translate3d(0, 18px, 0);
}

body.home-hero .reveal-on-scroll.reveal-zoom {
    transform: scale(0.965);
    filter: blur(3px);
}

body.home-hero .reveal-on-scroll.reveal-fade {
    transform: none;
    filter: none;
}

body.home-hero .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
    body.home-hero .reveal-on-scroll {
        transition: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}

.main-cta {
    padding: 54px 0 26px;
    background: #ffffff;
    text-align: center;
    text-align: center;
}

.main-cta .banner-content {
    max-width: 980px;
    margin: 0 auto;
}

.main-cta .banner-content h2 {
    font-size: 2.2rem;
    margin-bottom: 14px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0b1220;
}

.main-cta .banner-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(11, 18, 32, 0.78);
    margin-bottom: 22px;
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #3366ff;
    color: white;
}

.btn-gray {
    background: #e5e7eb;
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.14);
}

.btn-gray:hover {
    filter: brightness(0.98);
    transform: translateY(-2px);
}

.btn-gray:active {
    transform: translateY(0);
}

.btn-primary:hover {
    filter: brightness(0.98);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.35);
}

.btn[disabled],
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.floating-btn {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.86);
    color: var(--primary-color);
    box-shadow: 0 16px 36px rgba(11, 18, 32, 0.20);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.floating-btn:hover {
    transform: translateY(-2px);
}

.floating-btn.primary {
    background: linear-gradient(135deg, #334155, #0f172a);
    color: #fff;
    border-color: rgba(148, 163, 184, 0.55);
}

.floating-tooltip {
    position: absolute;
    right: 64px;
    bottom: 0;
    background: rgba(11, 18, 32, 0.92);
    color: rgba(255, 255, 255, 0.92);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    width: max-content;
    max-width: 240px;
    box-shadow: 0 18px 44px rgba(11, 18, 32, 0.22);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: var(--transition);
}

.floating-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* 섹션 공통 스타일 */
.section {
    padding: 80px 0;
}

.svc-page {
    padding-top: 96px;
}

.svc-page-title {
    text-align: center;
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    padding: 44px 0 22px;
    margin: 0;
}

.svc-page-rule {
    width: 100%;
    height: 1px;
    background: rgba(15, 23, 42, 0.10);
}

.svc-section {
    padding: 54px 0;
}

.svc-intro {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 34px;
    align-items: start;
}

.svc-intro-media {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    width: 100%;
    max-width: 280px;
}

.svc-intro-media img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

body.page-rehabilitation .svc-intro-media,
body.page-bankruptcy .svc-intro-media {
    border: 0;
    background: transparent;
    box-shadow: none;
    margin-top: -22px;
}

.svc-intro-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0;
}

.svc-intro-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--svc-accent-soft);
    color: var(--svc-accent);
}

.svc-intro-desc {
    color: rgba(11, 18, 32, 0.78);
    line-height: 1.9;
    margin: 0;
}

@media (max-width: 991px) {
    .svc-intro {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .svc-intro-media {
        max-width: 100%;
    }

    body.page-rehabilitation .svc-intro-media,
    body.page-bankruptcy .svc-intro-media {
        margin-top: 0;
    }

    .svc-intro-media img {
        aspect-ratio: 16 / 9;
    }
}

.svc-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.svc-card {
    background: rgba(241, 245, 249, 0.55);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    padding: 26px 26px 24px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.svc-card-title {
    margin: 0 0 16px;
    text-align: center;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.svc-card-subtitle {
    color: rgba(148, 163, 184, 0.75);
    font-weight: 800;
    font-size: 0.9rem;
    margin: 0 0 14px;
}

.svc-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.svc-checklist li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(11, 18, 32, 0.75);
    line-height: 1.7;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.svc-checklist li:first-child {
    padding-top: 0;
    border-top: none;
}

.svc-check {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: var(--svc-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-top: 2px;
    flex: 0 0 auto;
}

.svc-cta {
    margin-top: 36px;
    border-radius: 18px;
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
    background: var(--svc-cta-bg);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.svc-cta-title {
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0;
}

.svc-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
}

.svc-process {
    margin-top: 46px;
}

.svc-process-title {
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
}

.svc-process-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 26px;
    align-items: start;
}

.svc-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.svc-step {
    text-align: center;
    color: rgba(11, 18, 32, 0.72);
    font-weight: 800;
    font-size: 0.9rem;
}

.svc-step-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(241, 245, 249, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--svc-accent);
}

.svc-process-notes {
    display: grid;
    gap: 12px;
}

.svc-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(11, 18, 32, 0.76);
    line-height: 1.75;
}

.svc-note-bullet {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--svc-accent);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    flex: 0 0 auto;
}

body.page-rehabilitation {
    --svc-accent: #6d5efc;
    --svc-accent-soft: rgba(109, 94, 252, 0.14);
    --svc-cta-bg: linear-gradient(90deg, #3a2f1b, #6a4e22);
}

body.page-bankruptcy {
    --svc-accent: #c7a66a;
    --svc-accent-soft: rgba(199, 166, 106, 0.16);
    --svc-cta-bg: linear-gradient(90deg, #12102d, #2a2464);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 22px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-icon {
    font-size: 2.5rem;
    color: #3366ff;
    margin-bottom: 20px;
}

/* 성공 사례 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.case-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.case-category {
    font-weight: 500;
}

.case-rate {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
}

.case-content {
    padding: 20px;
}

.case-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.case-info:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.case-footer {
    padding: 15px 20px;
    background-color: #f9f9f9;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    word-break: keep-all;
    min-height: 3em;
}

.slider {
    position: relative;
}

.slider-viewport {
    overflow: hidden;
    border-radius: var(--radius);
}

.slider-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 1fr);
    gap: 18px;
    transition: transform 0.45s var(--ease-out-soft);
    will-change: transform;
}

.slider-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 22px rgba(11, 18, 32, 0.12);
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    transform: translateY(-2px);
}

.slider-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* 상담 절차 */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), #64748b);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* 고객 후기 */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.testimonial {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.testimonial-content {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.testimonial-author {
    font-weight: 500;
}

.testimonial-author span {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 5px;
}

.faq {
    max-width: 980px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

.faq-q {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    text-align: left;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.faq-q:hover {
    background: rgba(148, 163, 184, 0.12);
}

.faq-q span {
    flex: 1;
}

.faq-q i {
    color: rgba(11, 18, 32, 0.55);
    transition: transform 0.35s var(--ease-out-soft);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    background: rgba(241, 245, 249, 0.75);
    transition: max-height 0.38s var(--ease-out-soft);
}

.faq-a-inner {
    padding: 0 18px 18px;
    color: rgba(11, 18, 32, 0.78);
    line-height: 1.75;
    transition: padding-top 0.28s var(--ease-out-soft);
}

.faq-item.open .faq-q i {
    transform: rotate(180deg);
}

.faq-item.open .faq-a {
    max-height: 520px;
}

.faq-item.open .faq-a-inner {
    padding-top: 12px;
}

/* 연락처 섹션 */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.contact-details {
    margin-top: 30px;
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-details i {
    margin-right: 10px;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

/* 폼 스타일 */
.contact-form {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 12px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(148, 163, 184, 0.70);
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.22);
}

.agreement-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    color: var(--text-color);
}

.agree-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.agreement-row > label {
    width: 100%;
}

.agreement-row .privacy-detail-btn {
    align-self: flex-start;
    margin-left: 28px;
}

.agree-row .privacy-detail-btn {
    align-self: flex-start;
    margin-left: 28px;
}

.agreement-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.agreement-row .checkbox-ui {
    width: 18px;
    height: 18px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.agreement-row input[type="checkbox"]:checked + .checkbox-ui {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.agreement-row input[type="checkbox"]:checked + .checkbox-ui:after {
    content: '';
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: -1px;
}

.privacy-detail-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.privacy-detail-btn:hover {
    text-decoration: underline;
}

.form-group input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    width: 18px;
    height: 18px;
    min-width: 18px;
    padding: 0;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
    accent-color: var(--accent-color);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 푸터 */
.footer {
    background: #3366ff;
    color: white;
    font-size: 1.05rem;
    padding: 60px 0 20px;
}

.footer .btn-primary.footer-qi-btn {
    background: #e5e7eb;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.12);
}

.footer .btn-primary.footer-qi-btn:hover {
    filter: none;
    transform: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.footer-about p {
    color: white;
    margin-bottom: 20px;
    line-height: 1.6;
}

.trust-text p {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: white;
    font-size: 1rem;
}

.trust-text p:before {
    content: '•';
    color: white;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4:after,
.footer-contact h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: white;
}

.footer-contact i {
    margin-right: 10px;
    color: white;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 20px;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-bottom p {
    margin-bottom: 5px;
}

body.has-quick-inquiry {
    padding-bottom: calc(var(--quick-inquiry-height, 0px) + env(safe-area-inset-bottom, 0px));
}

.quick-inquiry-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 1500;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: rgba(255, 255, 255, 0.92);
    padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -18px 40px rgba(11, 18, 32, 0.22);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.quick-inquiry-inner {
    display: flex;
    align-items: flex-end;
    gap: 18px;
}

.quick-inquiry-title {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    min-width: 70px;
    letter-spacing: -0.02em;
}

.qi-mobile-actions {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 1;
}

.qi-mobile-trigger {
    flex: 1;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.qi-mobile-icon {
    font-size: 1.05rem;
}

.qi-mobile-text {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.qi-mobile-click {
    margin-left: 4px;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 900;
}

.qi-kakao-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.qi-kakao-icon {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.quick-inquiry-form {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.qi-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 160px;
}

.qi-field label {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.78);
}

.qi-field label[for="quick-debt-cause"],
.qi-field label[for="quick-name"] {
    font-size: 0.82rem;
}

.qi-field input,
.qi-field select {
    height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.94);
    outline: none;
}

.qi-field select#quick-debt-cause,
.qi-field input#quick-name {
    height: 40px;
    padding: 8px 10px;
    font-size: 0.92rem;
}

.qi-field input::placeholder {
    color: rgba(255, 255, 255, 0.60);
}

.qi-field input:focus,
.qi-field select:focus {
    border-color: rgba(148, 163, 184, 0.70);
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.20);
}

.qi-field select option {
    color: #0b1220;
}

.qi-agree {
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.qi-agree .privacy-detail-btn {
    align-self: flex-start;
    margin-left: 28px;
}

.qi-agree-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    height: auto;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

.qi-agree-row .privacy-detail-btn {
    align-self: flex-start;
    margin-left: 28px;
}

.qi-agree-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
}

.qi-agree-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.quick-inquiry-bar .privacy-detail-btn {
    color: rgba(255, 255, 255, 0.92);
}

.qi-submit {
    height: 44px;
    padding: 0 22px;
    white-space: nowrap;
}

.qi-submit.btn-primary,
.qi-cta.btn-primary {
    background: #e5e7eb;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.12);
}

.qi-submit.btn-primary:hover,
.qi-cta.btn-primary:hover {
    filter: none;
    transform: none;
}

.qi-cta {
    display: none;
    height: 44px;
    padding: 0 22px;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .quick-inquiry-form {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .qi-field {
        flex: 1 1 180px;
        min-width: 0;
    }

    .qi-agree {
        flex: 1 1 280px;
    }
}

@media (max-width: 576px) {
    .quick-inquiry-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .quick-inquiry-title {
        min-width: 0;
        align-self: center;
        text-align: center;
        width: 100%;
    }

    .quick-inquiry-form {
        display: none;
    }

    .qi-mobile-actions {
        display: flex;
    }

    .qi-agree-row {
        height: auto;
        padding: 10px;
    }

    .qi-submit {
        width: 100%;
    }
}

.qi-sheet {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
}

.qi-sheet.open {
    display: block;
}

.qi-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 32, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.qi-sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 18px 18px 0 0;
    max-width: 560px;
    margin: 0 auto;
    padding: 12px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -24px 55px rgba(11, 18, 32, 0.32);
    border: 1px solid rgba(15, 23, 42, 0.10);
    transform: translateY(110%);
    transition: transform 0.34s var(--ease-out-soft);
}

.qi-sheet.open .qi-sheet-panel {
    transform: translateY(0);
}

.qi-sheet-handle {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.16);
    margin: 6px auto 10px;
}

.qi-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.qi-sheet-header h3 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.qi-sheet-close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(241, 245, 249, 0.9);
    color: rgba(11, 18, 32, 0.75);
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qi-sheet-form {
    display: grid;
    gap: 12px;
}

.qi-sheet-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qi-sheet-field label {
    font-size: 0.9rem;
    color: rgba(11, 18, 32, 0.72);
    font-weight: 700;
}

.qi-sheet-field input,
.qi-sheet-field select {
    height: 46px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(248, 250, 252, 0.95);
    color: rgba(11, 18, 32, 0.88);
    outline: none;
}

.qi-sheet-field input:focus,
.qi-sheet-field select:focus {
    border-color: rgba(148, 163, 184, 0.70);
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.20);
}

.qi-sheet-agree {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(241, 245, 249, 0.75);
}

.qi-sheet-agree .privacy-detail-btn {
    align-self: flex-start;
    margin-left: 28px;
}

.qi-sheet-agree-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: rgba(11, 18, 32, 0.82);
    font-weight: 700;
    font-size: 0.92rem;
}

.qi-sheet-agree-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.qi-sheet-submit {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    font-weight: 900;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 18, 32, 0.50);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    z-index: 2300;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.38s var(--ease-out-soft);
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 18px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
    transform: translateY(10px) scale(0.985);
    opacity: 0;
    transition: transform 0.38s var(--ease-out-soft), opacity 0.38s var(--ease-out-soft);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

@keyframes modalPop {
    0% {
        transform: translateY(14px) scale(0.98);
        opacity: 0;
    }
    60% {
        transform: translateY(-2px) scale(1.002);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal.show .modal-content {
    animation: modalPop 0.48s var(--ease-out-soft) both;
}

@media (prefers-reduced-motion: reduce) {
    .modal,
    .modal-content,
    .service-card,
    .case-card,
    .process-step,
    .testimonial {
        transition: none !important;
        animation: none !important;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
}

.modal-body h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.modal-body p {
    margin-bottom: 25px;
    color: #666;
}

.lawyer-modal-content {
    max-width: 980px;
    width: min(980px, 92vw);
    max-height: 82vh;
    overflow: auto;
    padding: 28px;
    text-align: left;
}

.lawyer-modal-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.lawyer-modal-photo {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 50px rgba(11, 18, 32, 0.12);
    background: rgba(241, 245, 249, 0.85);
    object-fit: cover;
    aspect-ratio: 3 / 4;
}

.lawyer-modal-name {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-color);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.lawyer-modal-role {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(11, 31, 58, 0.08);
    border: 1px solid rgba(11, 31, 58, 0.12);
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 14px;
}

.lawyer-modal-intro {
    color: rgba(11, 18, 32, 0.78);
    line-height: 1.9;
    margin-bottom: 14px;
}

.lawyer-modal-section-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--primary-color);
    margin: 18px 0 10px;
}

.lawyer-modal-list {
    margin: 0;
    padding-left: 18px;
    color: rgba(11, 18, 32, 0.78);
    line-height: 1.85;
}

@media (max-width: 768px) {
    .lawyer-modal-grid {
        grid-template-columns: 1fr;
    }

    .lawyer-modal-photo {
        max-width: 340px;
        margin: 0 auto;
    }
}

/* 반응형 디자인 */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-details {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .contact-details p {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-banner {
        height: 100vh;
        min-height: 520px;
        max-height: none;
    }
    
    .main-banner h2 {
        font-size: 2rem;
    }

    .main-banner p {
        font-size: 1.4rem;
        line-height: 1.45;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .service-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .main-banner {
        height: 100vh;
        min-height: 440px;
        max-height: none;
        align-items: flex-start;
    }
    
    .main-banner h2 {
        font-size: 1.8rem;
    }

    .main-banner p {
        font-size: 1.3rem;
        line-height: 1.45;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
    }

    .main-banner .main-banner-overlay {
        padding-top: 120px;
    }

    body.home-hero .main-banner .main-banner-overlay {
        padding-top: 170px;
        background: transparent;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 14px;
    }

    .main-banner .hero-box h2 {
        margin-bottom: 0;
    }

    .main-banner .hero-box p {
        margin-bottom: 0;
    }

    body.home-hero .header {
        padding: 0;
    }

    body.home-hero .header .container {
        max-width: none;
        width: 100%;
        margin: 0;
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 10px 16px;
    }
}

.subpage-header,
.cta-section {
    background: radial-gradient(1000px 520px at 18% 12%, rgba(148, 163, 184, 0.22), transparent 60%),
        radial-gradient(1200px 620px at 80% 0%, rgba(255, 255, 255, 0.10), transparent 55%),
        linear-gradient(135deg, #07152b, #0b1f3a) !important;
    color: #fff !important;
}

.cta-band {
    padding: 70px 0;
    text-align: center;
    background: #3366ff !important;
    color: #fff !important;
}

.cta-band h3 {
    font-size: 1.9rem;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cta-band p {
    opacity: 0.95;
    margin-bottom: 22px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
    background: transparent;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .cta-band {
        padding: 58px 0;
    }

    .cta-band h3 {
        font-size: 1.6rem;
    }

    .btn-outline-white {
        padding: 11px 22px;
    }
}

.subpage-header .subpage-title,
.cta-band h2,
.cta-section .cta-title {
    color: #fff !important;
    letter-spacing: -0.03em;
}

.subpage-header .subpage-subtitle,
.cta-section .cta-subtitle {
    color: rgba(255, 255, 255, 0.92) !important;
}

.section-title,
.subpage-title {
    color: var(--text-color) !important;
}

.section-title:after {
    background-color: var(--accent-color) !important;
}

.lawyer-role,
.value-icon,
.btn-white {
    color: var(--accent-color) !important;
}

.stepper-progress > div {
    background: linear-gradient(135deg, var(--accent-color), #64748b) !important;
}

.opt-btn input {
    accent-color: var(--accent-color) !important;
}

body.page-cases .subpage-hero {
    background: var(--subpage-hero-bg) !important;
    color: var(--text-color) !important;
}

body.page-cases .subpage-hero h2 {
    color: var(--text-color) !important;
}

body.page-cases .subpage-hero p {
    color: rgba(11, 18, 32, 0.75) !important;
}