:root {
    --primary: #1e293b;
    --primary-dark: #0f172a;
    --gold: #d97706;
    --gold-light: #fbbf24;
    --blue: #1B6CF7;
    --accent: #2563eb;
    --bg-light: #f4f6fa;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --line: #e6e8ec;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Malgun Gothic', sans-serif;
    color: var(--text-main);
    background: #f8fafc;
    line-height: 1.6;
    padding-bottom: 86px;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.wrap, .container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 700;
    border-radius: 999px;
    padding: 13px 22px;
    font-size: 15px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1.5px solid transparent;
    text-align: center;
    white-space: nowrap;
}
.btn-blue, .btn--gold { background: var(--blue); color: #fff !important; box-shadow: 0 4px 14px rgba(27,108,247,0.25); }
.btn-blue:hover, .btn--gold:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-line { background: #fff; border-color: var(--line); color: #222; }
.btn-line:hover { border-color: var(--blue); color: var(--blue); }
.btn-kakao { background: #FEE500; color: #3c1e1e !important; font-weight: 800; }
.btn-kakao:hover { opacity: 0.92; }
.btn-call { background: #10b981; color: #fff !important; font-weight: 800; box-shadow: 0 4px 14px rgba(16,185,129,0.25); }
.btn-call:hover { opacity: 0.92; }
.btn--sm { padding: 8px 16px; font-size: 0.85rem; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
    background: #0f172a;
    color: #fff;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.site-header .header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    white-space: nowrap;
}
.brand-mark { height: 28px; width: auto; flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 14px; }
.main-nav a {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.88rem;
    transition: color 0.2s;
    white-space: nowrap;
}
.main-nav a:hover { color: var(--gold-light); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
    display: none;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px auto;
    background: #fff;
}
@media (max-width: 860px) {
    .main-nav { display: none; }
    .nav-toggle { display: block; }
}

/* ---------- Breadcrumb ---------- */
.crumb, .breadcrumb {
    font-size: 13.5px;
    color: var(--text-muted);
    padding: 18px 0 8px;
}
.crumb a:hover, .breadcrumb a:hover { color: var(--blue); }
.crumb b, .breadcrumb span { color: #334155; font-weight: 700; }
.crumb span.sep { margin: 0 6px; color: #cbd5e1; }

/* ---------- Hero & Title ---------- */
.hero, .page-hero { padding: 14px 0 8px; }
.eyebrow {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .05em;
    color: var(--blue);
    background: rgba(27,108,247,.08);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 12px;
}
.hero h1, .page-hero h1 {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
    line-height: 1.28;
    color: #0f172a;
}
.aeo-updated { font-size: 13px; color: #64748b; margin: 4px 0 10px; }
.hero p.sub, .page-hero p {
    font-size: 15.5px;
    color: #475569;
    line-height: 1.75;
    margin: 0 0 16px;
    max-width: 820px;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- Direct Answer Box (AEO) ---------- */
.answer-box {
    background: #eef4ff;
    border: 1.5px solid #c9dcff;
    border-radius: 14px;
    padding: 18px 22px;
    margin: 16px 0;
}
.answer-box b { color: #1d4ed8; font-size: 1.05rem; }
.answer-box p { margin: 8px 0 0; font-size: 15px; line-height: 1.8; color: #334155; }

/* ---------- Single Top Banner ---------- */
.banner-single {
    margin: 16px 0 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.banner-single .banner-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    transition: transform 0.2s ease;
}
.banner-single .banner-item:hover img { transform: scale(1.01); }

.banner-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 24px 0;
}
.banner-duo .banner-item img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
@media (max-width: 600px) {
    .banner-duo { grid-template-columns: 1fr; }
}

/* ---------- Content Sections (.sec) ---------- */
.sec {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    margin: 18px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.sec h2 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: #0f172a;
}
.sec p { font-size: 15px; color: #475569; line-height: 1.8; margin: 0 0 10px; }

/* ---------- AEO Fact Table ---------- */
.aeo-fact { margin: 18px 0; padding: 0; overflow: hidden; border: none; background: transparent; }
.aeo-fhead {
    background: #1e293b;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    padding: 13px 18px;
    border-radius: 14px 14px 0 0;
}
.aeo-fact table.aeo-t {
    width: 100%;
    border-collapse: collapse;
    border: 1.5px solid #1e293b;
    border-top: none;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
    background: #fff;
}
.aeo-t td {
    padding: 12px 18px;
    border-top: 1px solid #eef1f6;
    font-size: 14.5px;
}
.aeo-t td:first-child {
    color: #64748b;
    font-weight: 700;
    width: 32%;
    white-space: nowrap;
    background: #f8fafc;
}
.aeo-t td:last-child { font-weight: 600; color: #1e293b; }

/* ---------- Guarantee / Fund Card ---------- */
.fund {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: linear-gradient(135deg, #0f172a, #1B6CF7);
    color: #fff;
    border-radius: 18px;
    padding: 22px 24px;
    margin: 20px 0;
    box-shadow: 0 8px 24px rgba(27,108,247,0.15);
}
.fund .icon { font-size: 26px; }
.fund .big { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.fund p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.65; color: rgba(255,255,255,0.92); }
.fund .warn { margin-top: 8px; font-size: 13px; font-weight: 700; color: #fde047; }

/* ---------- Cases Carousel / 5 Images Gallery ---------- */
.carousel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 12px;
}
@media (max-width: 768px) {
    .carousel {
        display: flex;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
    }
    .carousel .card {
        flex: 0 0 170px;
        scroll-snap-align: start;
    }
}
.card {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.card .card-caption {
    padding: 8px 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    text-align: center;
    background: #fafafa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Process Flow Accordion ---------- */
.pflow { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pstep-d { border: 1px solid #d4e0ff; border-radius: 12px; overflow: hidden; background: #fff; }
.pstep-d[open] { border-color: var(--blue); box-shadow: 0 4px 14px rgba(27,108,247,.08); }
.pstep {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f1f5fd;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #1e3a8a;
    cursor: pointer;
    list-style: none;
    transition: .15s;
}
.pstep::-webkit-details-marker { display: none; }
.pstep-d[open] .pstep { background: #e0ecff; }
.pstep .pnum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    flex: 0 0 26px;
}
.pstep .plabel { flex: 1; }
.pstep .pchev { color: var(--blue); font-size: 13px; transition: transform .2s; }
.pstep-d[open] .pstep .pchev { transform: rotate(180deg); }
.pstep-body { padding: 14px 16px 16px; font-size: 14.5px; color: #475569; line-height: 1.75; }

/* ---------- FAQ Details / Summary ---------- */
.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
}
.faq summary {
    font-size: 15.5px;
    font-weight: 700;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    color: #0f172a;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; font-weight: 300; color: var(--text-muted); }
.faq details[open] summary { color: var(--blue); }
.faq details[open] summary::after { content: '\2212'; color: var(--blue); }
.faq .a { font-size: 14.5px; color: #475569; line-height: 1.75; padding: 0 20px 18px; }
.aeo-lead { color: var(--blue); font-weight: 800; }

/* ---------- Hooklist & Info Cards ---------- */
.hooklist { list-style: none; padding: 0; margin: 8px 0; }
.hooklist li {
    padding: 9px 0 9px 26px;
    position: relative;
    font-size: 14.5px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
}
.hooklist li:before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 900; }

.info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 10px;
}
.info h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 800; color: #1e3a8a; }
.info p { margin: 0; font-size: 14px; color: #475569; line-height: 1.7; }
.info .src { display: block; margin-top: 7px; font-size: 12px; color: #94a3b8; }

/* ---------- Childgrid & Tabs (Related Keywords) ---------- */
.childgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
@media (max-width: 760px) { .childgrid { grid-template-columns: repeat(2, 1fr); } }
.childgrid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 14.5px;
    font-weight: 600;
    color: #334155;
    transition: all 0.15s ease;
}
.childgrid a:hover { border-color: var(--blue); color: var(--blue); }
.childgrid a .arr { color: #cbd5e1; }
.childgrid a:hover .arr { color: var(--blue); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
.tabs a {
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 15px;
    transition: all 0.15s ease;
}
.tabs a:hover { border-color: var(--blue); color: var(--blue); }
.tabs a.on { background: var(--blue); color: #fff; border-color: var(--blue); }

.aeo-moved { margin-top: 18px; }
.aeo-moved .aeo-mlabel { font-size: 13.5px; font-weight: 800; color: #64748b; margin: 0 0 8px; }

/* ---------- CTA Band ---------- */
.ctaband {
    background: linear-gradient(135deg, #0f172a, #1B6CF7);
    color: #fff;
    border-radius: 20px;
    padding: 34px 24px;
    text-align: center;
    margin: 28px 0;
    box-shadow: 0 8px 24px rgba(27,108,247,0.18);
}
.ctaband h2 { font-size: 23px; font-weight: 900; letter-spacing: -0.02em; margin: 0 0 8px; color: #fff; }
.ctaband p { margin: 0 0 18px; opacity: 0.92; font-size: 15px; }
.ctaband .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Estimate Form ---------- */
.estimate-form-wrap {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.estimate-badge {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 6px;
}
.estimate-title { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.estimate-desc { font-size: 0.88rem; color: #64748b; margin-bottom: 16px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 0.85rem; font-weight: 700; color: #334155; }
.form-group input, .form-group select, .form-group textarea {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    background: #f8fafc;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(27,108,247,0.1);
}
.btn-submit {
    width: 100%;
    background: var(--blue);
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}
.btn-submit:hover { opacity: 0.92; }

/* ---------- Bottom Fixed CTA (Mobile & Desktop) ---------- */
.mfix {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 14px rgba(20,34,58,0.09);
}
.mfix a {
    flex: 1;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 7px;
    border-radius: 12px;
    padding: 14px 10px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.mfix .m-call { background: #fff; color: var(--blue); border: 1.6px solid var(--blue); }
.mfix .m-quote { background: var(--blue); color: #fff; }

/* ---------- Footer ---------- */
footer.site-footer, footer.rf {
    background: #0d1118;
    color: #cbd5e1;
    margin-top: 40px;
    padding: 40px 20px 36px;
    font-size: 0.88rem;
}
footer .footer-wrap, footer.rf .wrap { max-width: 1000px; margin: 0 auto; }
footer .logo { font-size: 1.15rem; font-weight: 900; color: #fff; margin-bottom: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
footer nav a { color: #e2e8f0; font-weight: 600; }
footer nav a:hover { color: var(--gold-light); }
footer .biz { font-size: 0.82rem; color: #94a3b8; line-height: 1.7; margin-top: 14px; }
footer .copy { font-size: 0.8rem; color: #64748b; margin-top: 10px; }
footer .sep { color: #475569; margin: 0 8px; }

@media (max-width: 560px) {
    .wrap, .container { padding: 0 16px; }
    .hero h1, .page-hero h1 { font-size: 25px; }
    .hero p.sub { font-size: 14.5px; }
    .sec { padding: 18px 16px; border-radius: 14px; }
    .sec h2 { font-size: 17.5px; }
    .fund { flex-direction: column; gap: 10px; padding: 18px 16px; }
    .fund .big { font-size: 18px; }
    .ctaband { padding: 28px 18px; }
    .ctaband h2 { font-size: 20px; }
    .tabs a { font-size: 12.5px; padding: 7px 12px; }
}
