:root {
    --navy: #082a56;
    --navy2: #123d74;
    --blue: #2553d8;
    --text: #111b30;
    --muted: #727f94;
    --line: #e8edf4;
    --bg: #eef3f8;
    --white: #fff;
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Pretendard,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Noto Sans KR",
        Arial,
        sans-serif;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
}

.card-page {
    width: min(100%, 520px);
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
    box-shadow: 0 24px 70px rgba(20, 38, 68, 0.13);
}

/* 상단 프로필 - 카카오톡 공유 이미지와 같은 단순 카드형 */
.profile {
    padding: 30px 24px;
    background-color: var(--blue);
    background-image:
        linear-gradient(rgba(8, 42, 86, 0.32), rgba(8, 42, 86, 0.32)),
        url("./images/bg.png");
    background-position: center;
    background-size: cover;
    color: #fff;
}
.profile__top {
    display: flex;
    align-items: center;
    gap: 14px;
}
.avatar {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.92);
    background: #fff;
    overflow: hidden;
}
.profile__heading {
    min-width: 0;
}
h1 {
    margin: 0;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 700;
}
.position,
.company {
    margin: 5px 0 0;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 600;
}
.position .divider {
    display: inline-block;
    margin: 0 4px;
    opacity: 0.78;
}
.company {
    margin-top: 4px;
}
.profile__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}
.profile__tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
    white-space: nowrap;
}

/* 프로필과 상담 버튼 영역을 완전히 분리해 데스크톱 모바일 미리보기의 경계선 제거 */
.contact-wrap {
    padding: 20px 22px;
    background: #fff;
    border: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 10px;
}
.contact-card {
    min-height: 116px;
    border: 1px solid #e4eaf2;
    border-radius: 18px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(24, 48, 82, 0.05);
}
button.contact-card {
    width: 100%;
    color: inherit;
}
.contact-card:active {
    transform: translateY(1px);
}
.contact-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 9px;
    border-radius: 14px;
    background: #edf2f8;
    color: var(--navy);
    font-size: 17px;
    font-weight: 900;
}
.contact-card strong {
    display: block;
    font-size: 14px;
}
.contact-card small {
    display: block;
    margin-top: 5px;
    color: #8893a5;
    font-size: 10px;
}
.contact-card--call .contact-icon {
    color: #fff;
    background: linear-gradient(145deg, #29c667, #48d782);
}
.contact-card--kakao .contact-icon {
    background: #fee500;
    color: #211d0f;
    font-size: 10px;
}
.contact-card--sms .contact-icon {
    color: #fff;
    background: linear-gradient(145deg, #2785ff, #1768df);
}

.content {
    padding: 0 22px 26px;
    border-top: 1px solid var(--line);
}
.info-section {
    padding-top: 27px;
}
.section-title span,
.qr-label {
    color: #89a0bb;
    font-size: 10px;
    letter-spacing: 0.2em;
    font-weight: 800;
}
h2 {
    margin: 5px 0 15px;
    font-size: 19px;
}
dl {
    margin: 0;
}
dl div {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eff2f6;
}
dt {
    font-size: 13px;
    color: #8791a2;
}
dd {
    margin: 0;
    font-size: 14px;
    font-weight: 650;
    word-break: break-all;
}

.qr-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 25px;
    padding: 20px;
    border-radius: 20px;
    background: #f5f8fc;
}
.qr-section h2 {
    margin-bottom: 8px;
}
.qr-section p {
    margin: 0;
    color: #7a8799;
    font-size: 12px;
    line-height: 1.6;
}
.qr-section img {
    width: 104px;
    height: 104px;
    flex: 0 0 auto;
    padding: 7px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e5eaf1;
}

footer {
    padding: 25px 22px 42px;
    text-align: center;
    background: var(--navy);
    color: #fff;
}
footer strong {
    font-size: 18px;
    font-style: italic;
    letter-spacing: 0.04em;
}
footer p {
    margin: 6px 0 0;
    font-size: 11px;
    opacity: 0.67;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 20px);
    background: #111827;
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: 0.22s ease;
    white-space: nowrap;
    z-index: 100;
}
.toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.company-copy {
    margin: 30px -22px 0;
    padding: 30px 22px 0;
    border-top: 1px solid var(--line);
}
.company-copy__heading span {
    display: block;
    margin-bottom: 6px;
    color: #89a0bb;
    font-size: 10px;
    letter-spacing: 0.2em;
    font-weight: 800;
}
.company-copy__heading h2 {
    margin: 0 0 20px;
    font-size: 21px;
    line-height: 1.45;
}
.company-copy p {
    margin: 0 0 16px;
    color: #5f6d81;
    font-size: 14px;
    line-height: 1.8;
    word-break: keep-all;
    text-align: left;
}
.company-copy h3 {
    margin: 30px 0 14px;
    padding-top: 2px;
    color: var(--text);
    font-size: 17px;
}
.company-copy p strong,
.company-copy li strong {
    color: var(--text);
    font-weight: 800;
}

.service-number {
    margin-right: 0.45em;
}
.company-copy ol {
    margin: 0;
    padding: 0;
    list-style: none;
}
.company-copy li {
    margin: 0 0 15px;
    padding: 17px 18px;
    border: 1px solid #e8edf4;
    border-radius: 15px;
    background: #f8fafc;
    color: #69778b;
    font-size: 13px;
    line-height: 1.7;
}
.service-copy {
    display: block;
}
.service-copy p {
    margin: 3px 0 0;
    text-align: left;
}
.company-copy__closing {
    margin-top: 28px !important;
    padding: 21px;
    border-radius: 18px;
    background: var(--navy);
    color: #fff !important;
    font-weight: 650;
    line-height: 1.75 !important;
    text-align: center !important;
}

@media (min-width: 700px) {
    body {
        padding: 36px 0;
    }
    .card-page {
        border-radius: 28px;
        overflow: hidden;
    }
}
@media (max-width: 390px) {
    .profile {
        padding: 22px 18px 20px;
    }
    .profile__top {
        gap: 16px;
    }
    .avatar {
        width: 82px;
        height: 82px;
        flex: 0 0 82px;
    }
    h1 {
        font-size: 20px;
    }
    .position,
    .company {
        font-size: 13px;
    }
    .profile__tags {
        gap: 7px;
        margin-top: 14px;
    }
    .profile__tags span {
        padding: 6px 10px;
        font-size: 11px;
    }
    .contact-wrap {
        padding-left: 18px;
        padding-right: 18px;
    }
    .contact-grid {
        gap: 8px;
    }
    .contact-card {
        min-height: 108px;
    }
    .contact-card strong {
        font-size: 13px;
    }
    .qr-section {
        padding: 16px;
    }
    .qr-section img {
        width: 92px;
        height: 92px;
    }
}
