:root {
    --navy: #06152d;
    --blue: #1245db;
    --blue-dark: #0b35b1;
    --lime: #83e600;
    --ink: #111827;
    --muted: #657085;
    --line: #e5e9f0;
    --soft: #f5f7fa;
    --white: #fff;
    --max: 1240px;
    --site-header-height: 71px;
    --type-display: clamp(42px, 5vw, 68px);
    --type-page-title: clamp(38px, 4vw, 48px);
    --type-section-title: clamp(32px, 3.5vw, 44px);
    --type-subtitle: 22px;
    --type-body: 16px;
    --type-caption: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Pretendard, sans-serif; font-size: var(--type-body); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.container { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(6,21,45,.08); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.header-inner { width: min(calc(100% - 48px), var(--max)); height: 70px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { width: 240px; overflow: hidden; justify-self: start; }
.brand img { width: 240px; height: auto; }
.desktop-nav { display: flex; gap: 42px; justify-self: center; }
.desktop-nav a { position: relative; font-size: 16px; font-weight: 600; }
.desktop-nav a::after { position: absolute; right: 0; bottom: -10px; left: 0; height: 2px; background: var(--blue); content: ""; transform: scaleX(0); transition: transform .2s ease; }
.desktop-nav a:hover::after, .desktop-nav a.is-active::after { transform: scaleX(1); }
.header-call { justify-self: end; display: flex; flex-direction: column; padding-left: 22px; border-left: 1px solid var(--line); }
.call-label { color: var(--muted); font-size: 14px; line-height: 1.2; }
.header-call strong { color: var(--blue); font-size: 20px; line-height: 1.2; letter-spacing: -.02em; }
.menu-button, .mobile-nav { display: none; }

.site-footer { padding: 58px 0 34px; color: #8f9bad; background: #09111e; font-size: 14px; }
.site-footer a { color: inherit; text-decoration: none; }
.footer-top { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 48px; }
.footer-summary p { max-width: 620px; margin: 14px 0 0; color: #7f8b9e; line-height: 1.7; }
.footer-brand, .site-footer .footer-brand { display: inline-flex; width: 255px; }
.footer-brand img { width: 100%; height: auto; filter: brightness(0) invert(1); opacity: .96; }
.footer-contact { display: grid; justify-items: end; gap: 3px; }
.footer-contact > span { margin-bottom: 2px; color: #8f9bad; font-size: 14px; }
.site-footer .footer-contact a:first-of-type { color: #fff; font-size: 25px; font-weight: 800; line-height: 1.2; letter-spacing: -.025em; }
.site-footer .footer-contact a:last-of-type { color: #aab4c2; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 32px 0 0; color: #c5ceda; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.site-footer .company-info { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; line-height: 1.65; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.site-footer .footer-bottom .copyright { margin: 0; color: #596474; }
.site-footer .footer-bottom > a { color: #596474; font-size: 13px; }

@media (max-width: 980px) {
    .header-inner { display: flex; justify-content: space-between; }
    .desktop-nav, .header-call { display: none; }
    .menu-button { width: 38px; height: 38px; padding: 8px; display: flex; flex-direction: column; justify-content: center; gap: 5px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
    .menu-button span { width: 100%; height: 2px; background: var(--navy); transition: opacity .18s ease, transform .18s ease; }
    .menu-button:focus { outline: 0; box-shadow: none; }
    .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .mobile-nav { position: absolute; top: 100%; right: 0; left: 0; display: flex; visibility: hidden; flex-direction: column; padding: 10px 24px 18px; border-top: 1px solid #edf0f4; background: #fff; box-shadow: 0 16px 30px rgba(6,21,45,.12); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
    .mobile-nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
    .mobile-nav a { min-height: 48px; display: flex; align-items: center; padding: 0 6px; border-bottom: 1px solid #edf0f4; color: #172238; font-size: 16px; font-weight: 700; }
    .mobile-nav a.is-active { color: var(--blue); }
    .mobile-nav a:last-child { min-height: 44px; justify-content: center; margin-top: 10px; border: 0; border-radius: 7px; color: var(--blue); background: #f1f5ff; }
}

@media (max-width: 640px) {
    :root {
        --site-header-height: 49px;
        --type-display: 38px;
        --type-page-title: 32px;
        --type-section-title: 30px;
        --type-subtitle: 19px;
        --type-body: 15px;
        --type-caption: 13px;
    }
    .container, .header-inner { width: min(calc(100% - 32px), var(--max)); }
    .header-inner { height: 48px; }
    .brand, .brand img { width: 142px; }
    .menu-button { width: 30px; height: 30px; padding: 6px; }
    .mobile-nav { padding: 6px 16px 14px; }
    .site-footer { padding: 36px 0 24px; }
    .footer-brand, .site-footer .footer-brand { width: 220px; }
    .footer-top { display: flex; align-items: flex-start; flex-direction: column; gap: 22px; }
    .footer-contact { justify-items: start; }
    .footer-links { gap: 10px 20px; margin-top: 22px; }
    .site-footer .company-info { display: grid; gap: 5px; }
    .footer-bottom { align-items: flex-start; gap: 12px; flex-direction: column; }
}
