:root {
  --corp-main-max: 1200px;
  --corp-header-max: 1440px;
  --corp-article-max: 800px;
  --corp-page-pad-desktop: 50px;
  --corp-page-pad-mobile: 24px;
  --ink: #222;
  --navy: #041c59;
  --blue: #222edd;
  --blue-2: #4e57e3;
  --muted: #5b667a;
  --line: #d8deea;
  --paper: #f8faff;
  --soft: #eef4ff;
  --white: #fff;
  --shadow: 0 22px 60px rgba(4, 28, 89, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  letter-spacing: 0;
  font-weight: 300;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.top {
  background: linear-gradient(90deg, #f3f9ff, #fff7ef);
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}
.top-inner {
  width: min(100%, var(--corp-main-max));
  min-height: 36px;
  margin: 0 auto;
  padding: 0 var(--corp-page-pad-desktop);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(219, 230, 243, .86);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(100%, var(--corp-header-max));
  min-height: 86px;
  margin: 0 auto;
  padding: 0 var(--corp-page-pad-desktop);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  flex-wrap: nowrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 170px;
  padding: 0;
}
.brand-logo {
  width: 182px;
  height: auto;
}
.brand-sub { display: none; }
.menu-wrap {
  position: static;
  align-self: auto;
  order: initial;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  border-top: 0;
}
.menu-toggle { display: none; }
.top-menu {
  position: static;
  width: 100%;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  overflow: visible;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.menu-item { position: static; }
.menu-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 86px;
  padding: 0 12px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--navy);
}
.menu-item > a:hover,
.menu-item > a:focus,
.menu-item > a.active,
.menu-item:focus-within > a,
.menu-item.is-open > a {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.submenu-row {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  right: auto;
  z-index: 49;
  width: min(860px, calc(100vw - 100px));
  max-width: min(860px, calc(100vw - 100px));
  max-height: none;
  min-height: 110px;
  overflow: visible;
  padding: 22px 28px;
  border: 1px solid rgba(219, 230, 243, .95);
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 28px 70px rgba(33, 75, 130, .14);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  backdrop-filter: blur(18px);
}
.menu-item:hover .submenu-row,
.menu-item:focus-within .submenu-row,
.menu-item.is-open .submenu-row {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.submenu-inner {
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}
.submenu-inner a {
  display: block;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #e2ecf8;
  border-radius: 8px;
  background: #f8fbff;
  color: #213a5e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  white-space: normal;
  word-break: keep-all;
}
.submenu-inner a:hover,
.submenu-inner a:focus {
  border-color: rgba(35, 104, 255, .32);
  background: #eef6ff;
  color: var(--blue);
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: nowrap;
}
.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 500;
}
.action-phone {
  min-width: 140px;
  border: 0;
  background: #eef4ff;
  color: var(--blue);
  font-family: "Montserrat", "Noto Sans KR", sans-serif;
  font-size: 18px !important;
  font-weight: 600 !important;
}
.action-phone span { display: none; }
.action-kakao {
  min-width: 120px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 18px 40px rgba(34, 46, 221, .2);
}

.layout {
  width: min(100%, var(--corp-main-max));
  margin: 0 auto;
  padding: 64px var(--corp-page-pad-desktop) 110px;
}
.hero {
  position: relative;
  min-height: 360px;
  border: 1px solid #e2ecf8;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(248, 251, 255, .96), rgba(248, 251, 255, .74)),
    url("../img/koreamac/full/hero-center-clean-20260509.jpg") center/cover;
  color: var(--navy);
  box-shadow: var(--shadow);
  padding: 54px 58px;
}
.hero:before { display: none; }
.hero h1 {
  color: var(--navy);
  font-size: clamp(38px, 4.2vw, 54px);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: 0;
  font-weight: 700;
}
.hero p {
  max-width: 680px;
  color: #4d5f7c;
  font-size: 19px;
  line-height: 1.78;
  font-weight: 500;
  word-break: keep-all;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-family: "Montserrat", "Noto Sans KR", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}
.hero-copy,
.hero-visual { position: relative; z-index: 1; }
.hero-visual {
  min-height: 300px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(4, 28, 89, .18);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  color: var(--navy);
  backdrop-filter: blur(12px);
  padding: 14px 16px;
}
.hero-badge span { color: var(--muted); font-weight: 600; }
.hero-actions,
.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-actions a,
.inline-actions a,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 40px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}
.hero-actions .primary,
.inline-actions .primary,
button {
  background: var(--blue);
  color: #fff;
}
.hero-actions .secondary,
.inline-actions .secondary {
  border-color: #cfdaf0;
  background: #fff;
  color: var(--blue);
}
.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
  max-width: 680px;
}
.hero-point {
  border: 1px solid #dbe7f8;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  padding: 15px;
}
.hero-point b {
  display: block;
  color: var(--navy);
  margin-bottom: 5px;
  font-size: 16px;
}
.hero-point span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

.hero-service-banner {
  margin: 24px 0 0;
  border: 1px solid #e2ecf8;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--navy);
  box-shadow: 0 14px 36px rgba(4, 28, 89, .08);
}
.banner-copy b {
  color: var(--navy);
  font-size: 24px;
  line-height: 1.25;
}
.banner-copy p {
  color: var(--muted);
  font-weight: 500;
}
.banner-links a {
  border-radius: 20px;
  background: #eef4ff;
  color: var(--blue);
}

.section,
.legacy-guide,
.media-section {
  padding: 76px 0;
  border-bottom: 1px solid #e8eef7;
}
.section h2,
.legacy-guide h2,
.media-section h2,
.contact h2 {
  color: var(--navy);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.18;
  margin: 0 0 16px;
  font-weight: 700;
  word-break: keep-all;
}
.section p,
.legacy-guide p,
.media-section p,
.contact p {
  color: #4d5f7c;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
  word-break: keep-all;
}
.section-lead,
.legacy-copy,
.media-section > div:first-child p {
  max-width: var(--corp-article-max);
}
.legacy-copy {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.card {
  min-height: 190px;
  border: 1px solid #dfe8f6;
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 12px 34px rgba(4, 28, 89, .07);
}
.card b {
  display: block;
  color: var(--blue);
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.22;
  font-weight: 700;
}
.card p {
  color: #4d5f7c;
  font-size: 15px;
  line-height: 1.7;
}
.card .mark,
.card .tag { display: none; }
.media-section {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 40px;
  align-items: start;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.media-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
  box-shadow: 0 16px 34px rgba(4, 28, 89, .12);
}
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(2, 6, 23, .78));
}
.media-card span,
.media-card .media-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  word-break: keep-all;
}

.contact {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 32px;
  align-items: start;
  border-radius: 8px;
  background: #f8fbff;
  padding: 36px;
}
.form-card {
  border: 1px solid #dfe8f6;
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}
.field { margin-bottom: 12px; }
.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 12px 13px;
  color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
.agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #4d5f7c;
  font-size: 13px;
  line-height: 1.55;
}
.agree input { width: auto; margin-top: 4px; }
.status {
  min-height: 22px;
  color: var(--blue);
  font-size: 13px;
}

footer {
  background: #041c59;
  color: rgba(255, 255, 255, .78);
  padding: 38px var(--corp-page-pad-desktop);
}
.footer-inner {
  width: min(100%, var(--corp-main-max));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 1.8;
}
.footer-logo { margin-bottom: 8px; }
.footer-logo img { width: 127px; height: auto; }
.mobile-action { display: none; }

@media (max-width: 1180px) {
  .header-inner { gap: 20px; }
  .brand { min-width: 155px; }
  .brand-logo { width: 162px; }
  .top-menu { font-size: 14px; }
  .menu-item > a { padding: 0 9px; }
  .actions a { min-width: 0; padding: 0 16px; }
}

@media (max-width: 1020px) {
  .top-inner,
  .header-inner,
  .layout,
  footer {
    padding-left: var(--corp-page-pad-mobile);
    padding-right: var(--corp-page-pad-mobile);
  }
  .top-inner { align-items: flex-start; flex-direction: column; padding-top: 10px; padding-bottom: 10px; }
  .header-inner {
    min-height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
  }
  .brand-logo { width: 150px; }
  .menu-wrap {
    order: 4;
    width: 100%;
    flex-basis: 100%;
    overflow: hidden;
  }
  .top-menu {
    min-height: 46px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .menu-item { position: relative; }
  .menu-item > a {
    min-height: 46px;
    padding: 0 11px;
    font-size: 13px;
  }
  .submenu-row {
    left: 0;
    width: max-content;
    max-width: calc(100vw - 48px);
    padding: 14px;
    transform: translateY(-8px);
  }
  .menu-item:hover .submenu-row,
  .menu-item:focus-within .submenu-row,
  .menu-item.is-open .submenu-row {
    transform: translateY(0);
  }
  .submenu-inner {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
  }
  .submenu-inner a {
    min-width: 150px;
    white-space: normal;
  }
  .actions { display: none; }
  .layout { padding-top: 34px; }
  .hero { padding: 36px 28px; min-height: 300px; }
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 17px; }
  .hero-points,
  .cards,
  .media-section,
  .contact {
    grid-template-columns: 1fr;
  }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-action {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
  }
  .mobile-action a {
    flex: 1;
    padding: 15px 10px;
    text-align: center;
    color: #fff;
    font-weight: 700;
  }
  .mobile-action .call { background: var(--navy); }
  .mobile-action .chat { background: var(--blue); }
  footer { padding-bottom: 86px; }
}

@media (max-width: 640px) {
  .hero { padding: 30px 20px; }
  .hero h1 { font-size: 32px; }
  .hero-actions a,
  .inline-actions a,
  button { width: 100%; }
  .media-grid { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 24px; }
  .contact { padding: 26px 20px; }
}
