:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --ink: #14171a;
  --ink-soft: #5b6470;
  --line: #e6e8ec;
  --brand: #1f3a5f;
  --brand-2: #2f6f9f;
  --accent: #c9a24b;
  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,23,26,.04), 0 8px 24px rgba(20,23,26,.06);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Noto Sans KR", "Microsoft YaHei", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* Language switcher */
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 12px; font-size: 13px; color: var(--ink-soft); font-weight: 600;
}
.lang button.active { background: var(--brand); color: #fff; }

/* Hero */
.hero {
  background: radial-gradient(1200px 400px at 70% -10%, rgba(47,111,159,.12), transparent),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 84px 0 72px;
}
.hero h1 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.18; margin: 0 0 18px; letter-spacing: -.02em; }
.hero p.lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--ink-soft); max-width: 640px; margin: 0 0 28px; }
.eyebrow { display:inline-block; font-size: 13px; font-weight: 700; letter-spacing:.08em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #182d4a; text-decoration: none; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-2); text-decoration: none; }

/* Sections */
section.block { padding: 72px 0; border-bottom: 1px solid var(--line); }
section.block h2 { font-size: clamp(22px, 2.8vw, 30px); margin: 0 0 12px; letter-spacing: -.01em; }
section.block .sub { color: var(--ink-soft); max-width: 680px; margin: 0 0 36px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.card .ico {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 16px;
  background: rgba(47,111,159,.10); color: var(--brand-2);
  display: grid; place-items: center;
}
.card .ico svg { width: 22px; height: 22px; }

/* Company info table */
.info-table { width: 100%; border-collapse: collapse; background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-table th, .info-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th { width: 200px; color: var(--ink-soft); font-weight: 600; background: var(--bg-soft); }
@media (max-width: 560px){ .info-table th { width: 130px; } }

/* Contact */
.contact-cards { display:grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 820px){ .contact-cards { grid-template-columns: 1fr; } }
.contact-cards .card .label { font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing:.06em; }
.contact-cards .card .value { font-size: 17px; font-weight: 600; margin-top: 4px; word-break: break-word; }

/* Legal/doc pages */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 6px; }
.doc .updated { color: var(--ink-soft); font-size: 14px; margin: 0 0 36px; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; }
.doc h3 { font-size: 16px; margin: 22px 0 8px; }
.doc p, .doc li { color: #2a2f36; font-size: 15.5px; }
.doc ul { padding-left: 20px; }
.doc table.simple { width:100%; border-collapse: collapse; margin: 14px 0; }
.doc table.simple th, .doc table.simple td { border: 1px solid var(--line); padding: 10px 12px; font-size: 14.5px; text-align: left; }
.doc table.simple th { background: var(--bg-soft); }
.back-home { display:inline-block; margin-bottom: 28px; font-size: 14px; }

/* Footer */
.site-footer { background: #0f1722; color: #c4ccd6; padding: 48px 0 36px; }
.site-footer a { color: #c4ccd6; }
.site-footer .cols { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 820px){ .site-footer .cols { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h4 { color:#fff; font-size: 14px; margin: 0 0 12px; letter-spacing:.03em; }
.site-footer .legal { font-size: 13px; line-height: 1.9; color:#9aa6b3; }
.site-footer .legal strong { color:#e7ecf1; font-weight:600; }
.site-footer ul { list-style:none; margin:0; padding:0; font-size: 14px; line-height: 2; }
.site-footer .bottom { border-top: 1px solid #1e2a3a; margin-top: 32px; padding-top: 18px; font-size: 12.5px; color:#7e8a98; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.placeholder { background: #fff6d6; color:#8a6d00; padding: 0 4px; border-radius: 4px; border:1px dashed #e0c558; }

/* Calendar (static, client-only) */
.cal-toolbar { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:18px; }
.cal-toolbar .label { font-size:14px; color:var(--ink-soft); font-weight:600; }
.loc-group { display:inline-flex; border:1px solid var(--line); border-radius:999px; overflow:hidden; }
.loc-btn { border:0; background:#fff; cursor:pointer; padding:10px 20px; font-size:15px; font-weight:600; color:var(--ink-soft); font-family:inherit; }
.loc-btn + .loc-btn { border-left:1px solid var(--line); }
.loc-btn.is-active { background:var(--brand); color:#fff; }
.cal-legend { display:flex; gap:18px; flex-wrap:wrap; font-size:13px; color:var(--ink-soft); margin-bottom:20px; }
.cal-legend span { display:inline-flex; align-items:center; gap:6px; }
.cal-dot { width:12px; height:12px; border-radius:4px; display:inline-block; }
.cal-dot.open { background:#fff; border:1px solid var(--brand-2); }
.cal-dot.sel { background:var(--brand); }
.cal-dot.closed { background:var(--bg-soft); border:1px solid var(--line); }
.cal-wrap { display:grid; grid-template-columns:repeat(2,1fr); gap:28px; }
@media (max-width:820px){ .cal-wrap { grid-template-columns:1fr; } }
.cal-month { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow); }
.cal-title { font-weight:700; font-size:16px; margin-bottom:14px; text-align:center; }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.cal-dow { text-align:center; font-size:12px; color:var(--ink-soft); font-weight:600; padding-bottom:6px; }
.cal-cell { aspect-ratio:1/1; border:1px solid transparent; border-radius:10px; font-size:14px; display:flex; align-items:center; justify-content:center; background:transparent; font-family:inherit; padding:0; }
.cal-empty { border:0; }
.cal-cell.is-open { border-color:var(--brand-2); color:var(--brand); background:#fff; cursor:pointer; font-weight:600; }
.cal-cell.is-open:hover { background:rgba(47,111,159,.10); }
.cal-cell.is-closed { color:#c2c8d0; background:var(--bg-soft); }
.cal-cell.is-selected { background:var(--brand); color:#fff; border-color:var(--brand); }
.cal-summary { margin-top:24px; padding:18px 20px; background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--radius); font-size:15px; }
.cal-summary .muted { color:var(--ink-soft); font-size:14px; }
.cal-note { margin-top:14px; font-size:13px; color:var(--ink-soft); }
