/* ==========================================================================
   EICP 서비스 상세 페이지 공통 디자인 시스템
   "Precision Trust" — 네이비(#121c27) + 골드(#c2a386), SUIT
   재사용 컴포넌트: 개념(concept) / 리스크카드(risk) / 단계(step)
                   / 비교표(compare) / FAQ(faq) / CTA
   17개 서비스 서브페이지 공통 레퍼런스
   ========================================================================== */

.svc {
    --navy: #121c27;
    --navy-2: #13304e;
    --gold: #c2a386;
    --gold-deep: #a9855f;
    --gold-soft: #f4efe8;
    --line: #e8e3da;
    --ink: #1b1f24;
    --muted: #6c7177;
    --bg-soft: #f7f6f3;
    font-family: 'SUIT', 'Pretendard', sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
.svc *,
.svc *::before,
.svc *::after { box-sizing: border-box; }
.svc .visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* 공통 섹션 헤더 ------------------------------------------------------------ */
.svc-sec { padding: 96px 0; position: relative; }
.svc-sec--soft { background: var(--bg-soft); }
.svc-sec--navy { background: var(--navy); color: #fff; }

.svc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 18px;
}
.svc-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--gold);
}
.svc-sec--navy .svc-eyebrow { color: var(--gold); }

.svc-title {
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -.02em;
    margin: 0 0 18px;
    color: var(--navy);
}
.svc-sec--navy .svc-title { color: #fff; }
.svc-title .mcc,
.svc-title em { color: var(--gold-deep); font-style: normal; }
.svc-sec--navy .svc-title .mcc { color: var(--gold); }

.svc-lead {
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.85;
    color: var(--muted);
    max-width: 860px;
    margin: 0;
}
.svc-sec--navy .svc-lead { color: rgba(255,255,255,.72); }
.svc-lead strong { color: var(--navy); font-weight: 700; }
.svc-sec--navy .svc-lead strong { color: #fff; }

/* 1. 히어로 (page-header 보강) --------------------------------------------- */
.svc-hero {
    position: relative;
    background: var(--navy);
    color: #fff;
    padding: 92px 0 78px;
    overflow: hidden;
}
.svc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 380px at 84% -10%, rgba(194,163,134,.16), transparent 60%),
        linear-gradient(180deg, #16212e 0%, #101822 100%);
    z-index: 0;
}
.svc-hero > .container { position: relative; z-index: 1; }
.svc-hero__crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.55);
    margin-bottom: 22px;
    list-style: none;
    padding: 0;
}
.svc-hero__crumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.svc-hero__crumb a:hover { color: var(--gold); }
.svc-hero__crumb li { display: inline-flex; align-items: center; gap: 8px; }
.svc-hero__crumb li:not(:last-child)::after {
    content: "›"; color: rgba(255,255,255,.35);
}
.svc-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.12;
    margin: 0 0 16px;
}
.svc-hero h1 .mcc { color: var(--gold); }
.svc-hero__sub {
    font-size: clamp(15px, 1.6vw, 19px);
    color: rgba(255,255,255,.72);
    line-height: 1.7;
    margin: 0;
    max-width: 720px;
}
.svc-hero__rule {
    width: 56px; height: 3px; background: var(--gold);
    margin-top: 28px; border-radius: 2px;
}

/* 2. 개념 (concept) --------------------------------------------------------- */
.svc-concept__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 56px;
    align-items: center;
}
.svc-concept__body p { font-size: 17px; line-height: 1.95; color: #3a4047; margin: 0 0 14px; }
.svc-concept__body strong { color: var(--navy); font-weight: 700; }
.svc-concept__callout {
    margin-top: 26px;
    border-left: 3px solid var(--gold);
    background: var(--gold-soft);
    padding: 20px 24px;
    border-radius: 0 10px 10px 0;
    font-size: 16px;
    line-height: 1.75;
    color: var(--navy);
}
.svc-concept__media {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px -34px rgba(18,28,39,.4);
    background: #fff;
}
.svc-concept__media img { width: 100%; height: auto; display: block; }

/* 3. 리스크 카드 (risk grid) ------------------------------------------------ */
.svc-risk__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 52px;
}
.risk-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 30px 26px 28px;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.risk-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gold);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.risk-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px -28px rgba(18,28,39,.42);
    border-color: transparent;
}
.risk-card:hover::before { transform: scaleY(1); }
.risk-card__no {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--gold-deep);
    margin-bottom: 14px;
    display: inline-block;
}
.risk-card__icon {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--navy);
    color: var(--gold);
    margin-bottom: 18px;
    font-size: 20px;
}
.risk-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.4;
    margin: 0 0 10px;
    letter-spacing: -.01em;
}
.risk-card p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0; }

/* 4. 정리방법 단계 (step flow) ---------------------------------------------- */
.svc-step__list {
    margin-top: 52px;
    display: grid;
    gap: 18px;
}
.step-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .35s, transform .35s;
}
.step-item:hover { box-shadow: 0 22px 44px -30px rgba(18,28,39,.4); transform: translateX(4px); }
.step-item__no {
    background: var(--navy);
    color: var(--gold);
    font-size: 30px;
    font-weight: 800;
    display: grid;
    place-items: center;
    letter-spacing: -.02em;
    position: relative;
}
.step-item__no::after {
    content: "STEP";
    position: absolute; bottom: 14px;
    font-size: 9px; letter-spacing: .18em;
    color: rgba(255,255,255,.4); font-weight: 700;
}
.step-item__body { padding: 24px 28px; }
.step-item__body h3 {
    font-size: 19px; font-weight: 800; color: var(--navy);
    margin: 0 0 8px; letter-spacing: -.01em;
}
.step-item__body p { font-size: 15px; line-height: 1.72; color: var(--muted); margin: 0; }
.step-item__tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.step-item__tags span {
    font-size: 12.5px; font-weight: 600;
    color: var(--gold-deep);
    background: var(--gold-soft);
    border-radius: 999px;
    padding: 5px 12px;
}

/* 5. 비교표 (compare) ------------------------------------------------------- */
.svc-compare__scroll { margin-top: 48px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
    width: 100%;
    min-width: 680px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.compare-table thead th {
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    padding: 18px 22px;
    text-align: left;
    font-size: 15.5px;
}
.compare-table thead th.is-key { background: var(--navy-2); color: var(--gold); }
.compare-table tbody th {
    text-align: left;
    font-weight: 700;
    color: var(--navy);
    background: var(--bg-soft);
    padding: 16px 22px;
    white-space: nowrap;
    border-top: 1px solid var(--line);
}
.compare-table tbody td {
    padding: 16px 22px;
    color: #41474e;
    line-height: 1.6;
    border-top: 1px solid var(--line);
    vertical-align: top;
}
.compare-table tbody td.is-key {
    background: var(--gold-soft);
    color: var(--navy);
    font-weight: 600;
}

/* 6. FAQ (details/summary, JS 불필요) --------------------------------------- */
.svc-faq__list { margin-top: 44px; max-width: 920px; }
.faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.faq-item[open] { border-color: var(--gold); box-shadow: 0 18px 40px -30px rgba(18,28,39,.4); }
.faq-item > summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary .faq-q {
    flex: none;
    color: var(--gold-deep);
    font-weight: 800;
    font-size: 18px;
}
.faq-item > summary .faq-ico {
    margin-left: auto;
    flex: none;
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--gold-deep);
    transition: transform .35s, background .3s, color .3s, border-color .3s;
    font-size: 16px;
}
.faq-item[open] > summary .faq-ico {
    transform: rotate(45deg);
    background: var(--navy);
    color: var(--gold);
    border-color: var(--navy);
}
.faq-item__a {
    padding: 0 26px 24px 58px;
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--muted);
}
.faq-item__a strong { color: var(--navy); }

/* 지원사업 공고 카드 (기업마당 API) ---------------------------------------- */
.svc-prog__filter {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px;
}
.svc-prog__filter a {
    font-size: 14.5px; font-weight: 700;
    color: var(--muted);
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 9px 20px;
    text-decoration: none;
    transition: all .25s;
}
.svc-prog__filter a:hover { color: var(--navy); border-color: var(--gold); }
.svc-prog__filter a.is-on { background: var(--navy); color: var(--gold); border-color: var(--navy); }

.svc-prog__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 30px;
}
.prog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px 24px 22px;
    position: relative;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.prog-card::before {
    content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px;
    background: var(--gold); transform: scaleX(0); transform-origin: left;
    transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.prog-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(18,28,39,.42); border-color: transparent; }
.prog-card:hover::before { transform: scaleX(1); }
.prog-card__top { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.prog-card__field {
    font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
    color: var(--navy); background: var(--gold-soft);
    border-radius: 6px; padding: 5px 11px;
}
.prog-card__target {
    font-size: 12.5px; font-weight: 600; color: var(--muted);
    margin-left: auto;
}
.prog-card__title {
    font-size: 18px; font-weight: 800; color: var(--navy);
    line-height: 1.45; letter-spacing: -.01em;
    margin: 0 0 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 52px;
}
.prog-card__desc {
    font-size: 14px; line-height: 1.65; color: var(--muted);
    margin: 0 0 18px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prog-card__meta { font-size: 13.5px; color: #4a5057; display: grid; gap: 7px; margin-bottom: 18px; }
.prog-card__meta span { display: flex; align-items: center; gap: 8px; }
.prog-card__meta i { color: var(--gold-deep); width: 14px; text-align: center; }
.prog-card__link {
    margin-top: auto;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14.5px; font-weight: 800; color: var(--navy);
    text-decoration: none;
    padding-top: 16px; border-top: 1px solid var(--line);
    transition: color .25s;
}
.prog-card__link i { transition: transform .25s; color: var(--gold-deep); }
.prog-card__link:hover { color: var(--gold-deep); }
.prog-card__link:hover i { transform: translateX(4px); }
.svc-prog__empty {
    margin-top: 30px; padding: 48px; text-align: center;
    border: 1px dashed var(--line); border-radius: 14px;
    color: var(--muted); font-size: 16px;
}
.svc-prog__note { margin-top: 22px; font-size: 13px; color: var(--muted); text-align: right; }

/* 7. CTA -------------------------------------------------------------------- */
.svc-cta { background: var(--navy); color: #fff; padding: 84px 0; position: relative; overflow: hidden; text-align: center; }
.svc-cta::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(720px 320px at 50% -30%, rgba(194,163,134,.2), transparent 60%);
}
.svc-cta > .container { position: relative; z-index: 1; }
.svc-cta h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 16px;
    letter-spacing: -.02em;
}
.svc-cta h2 .mcc { color: var(--gold); }
.svc-cta p { font-size: 17px; line-height: 1.8; color: rgba(255,255,255,.7); margin: 0 0 30px; }
.svc-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: var(--navy);
    font-weight: 800;
    font-size: 17px;
    padding: 16px 38px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .3s, box-shadow .3s, background .3s;
    box-shadow: 0 16px 36px -16px rgba(194,163,134,.7);
}
.svc-cta__btn:hover { transform: translateY(-3px); background: #d2b594; color: var(--navy); box-shadow: 0 22px 44px -16px rgba(194,163,134,.8); }
.svc-cta__btn i { transition: transform .3s; }
.svc-cta__btn:hover i { transform: translateX(4px); }

/* 진입 애니메이션 ----------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .svc-reveal { opacity: 0; transform: translateY(22px); animation: svcUp .7s cubic-bezier(.2,.7,.2,1) forwards; }
    .svc-reveal[data-d="1"] { animation-delay: .08s; }
    .svc-reveal[data-d="2"] { animation-delay: .16s; }
    .svc-reveal[data-d="3"] { animation-delay: .24s; }
    .svc-reveal[data-d="4"] { animation-delay: .32s; }
    .svc-reveal[data-d="5"] { animation-delay: .40s; }
    .svc-reveal[data-d="6"] { animation-delay: .48s; }
    @keyframes svcUp { to { opacity: 1; transform: none; } }
}

/* 반응형 -------------------------------------------------------------------- */
@media (max-width: 991px) {
    .svc-sec { padding: 72px 0; }
    .svc-concept__grid { grid-template-columns: 1fr; gap: 36px; }
    .svc-risk__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .svc-prog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .svc-sec { padding: 56px 0; }
    .svc-risk__grid { grid-template-columns: 1fr; }
    .svc-prog__grid { grid-template-columns: 1fr; }
    .step-item { grid-template-columns: 64px 1fr; }
    .step-item__no { font-size: 24px; }
    .step-item__body { padding: 20px; }
    .faq-item > summary { padding: 18px 18px; font-size: 15.5px; }
    .faq-item__a { padding: 0 18px 20px 18px; }
}
