:root {
  --navy: #051f35;
  --blue: #102a73;
  --text: #061528;
  --soft: #f2f2f2;
  --line: #142a72;
  --max: 944px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}
.nav {
  height: 138px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { flex: 0 0 180px; }
.logo img { width: 180px; }
.logo small {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  font-size: 17px;
  color: #000;
  white-space: nowrap;
}
.header-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.btn {
  display: inline-flex;
  min-width: 120px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border: 1px solid #bdbdbd;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.btn-dark { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-outline { min-width: 180px; min-height: 64px; border-color: #fff; background: transparent; color: #fff; }
.btn-muted { min-width: 180px; min-height: 64px; border-color: #9da8b0; background: #a6afb5; color: #111; }

.top-rule { height: 14px; background: var(--blue); }
.page-hero {
  padding: 54px 0 74px;
  background: #f2f2f2;
  text-align: center;
}
.page-hero h1 {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 50px;
  line-height: 1.2;
  letter-spacing: 0;
}
.page-hero h2 {
  margin: 0 0 30px;
  color: var(--blue);
  font-size: 28px;
  line-height: 1.35;
}
.page-hero p {
  margin: 0 auto 22px;
  max-width: 760px;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
}

.section { padding: 70px 0; }
.section h2 {
  margin: 0 0 18px;
  color: var(--blue);
  text-align: center;
  font-size: 34px;
  line-height: 1.35;
}
.section p {
  color: #000;
  font-size: 17px;
  font-weight: 600;
}
.center { text-align: center; }
.muted-band { background: #f2f2f2; }
.dark-line { height: 14px; background: var(--navy); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: center;
  margin-top: 54px;
}
.feature-grid.reverse { grid-template-columns: 1.4fr 1fr; }
.feature-grid.reverse .feature-copy { order: 2; }
.feature-copy h3 {
  margin: 0 0 24px;
  color: var(--blue);
  font-size: 22px;
  line-height: 1.35;
}
.feature-copy p { text-align: center; }
.feature-shot {
  width: 100%;
  background: #f7f8fb;
}
.feature-shot img { width: 100%; }

.quote-block {
  padding: 82px 0;
  background: #f2f2f2;
  text-align: center;
}
.quote-block blockquote {
  margin: 0 0 30px;
  color: var(--blue);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.35;
}
.slider-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  color: var(--blue);
  font-size: 48px;
  line-height: 1;
}
.dots { color: var(--blue); font-size: 28px; letter-spacing: 8px; }

.program-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 36px;
}
.program-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 34px auto 0;
}
.program-collage img {
  width: 100%;
  height: 232px;
  object-fit: cover;
}
.program-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 16px 22px;
}
.program-card h3 {
  margin: 0 0 12px;
  color: var(--blue);
  text-align: center;
  font-size: 31px;
  line-height: 1.2;
}
.program-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.program-card h4 {
  margin: 22px 0 4px;
  color: #777;
  font-size: 19px;
}
.program-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}
.program-card .more {
  display: inline-block;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 800;
}

.detail-hero {
  padding: 58px 0 40px;
  text-align: center;
  background: #f2f2f2;
}
.detail-hero h1 {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 46px;
}
.detail-hero p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  font-weight: 600;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}
.detail-layout img {
  width: 100%;
  border: 1px solid #d8d8d8;
}
.detail-list {
  display: grid;
  gap: 22px;
}
.detail-list h3 {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 24px;
}
.detail-list p { margin: 0; }

.cta {
  padding: 66px 0 74px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.cta h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 24px;
  line-height: 1.4;
}
.cta strong {
  display: block;
  margin-bottom: 36px;
  color: #fff;
  font-size: 52px;
  line-height: 1.2;
  font-weight: 800;
}
.cta-actions { display: flex; justify-content: center; gap: 12px; }

.footer {
  padding: 42px 0 88px;
  background: #fff;
  color: #000;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 70px;
  align-items: start;
}
.footer strong { display: block; margin-bottom: 14px; font-size: 17px; }
.footer p { margin: 0 0 12px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.footer-links { display: grid; gap: 8px; margin-top: 4px; }
.footer-links a {
  display: flex;
  min-height: 41px;
  align-items: center;
  justify-content: center;
  background: #f1f1f1;
  font-size: 15px;
  font-weight: 700;
}
.chat {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 15;
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.chat-icon {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 15;
  display: grid;
  width: 65px;
  height: 65px;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
}
.legal {
  max-width: 880px;
  margin: 0 auto;
  color: #111;
}
.legal h1 {
  color: var(--blue);
  font-size: 42px;
  text-align: center;
}
.legal h2 {
  margin-top: 34px;
  text-align: left;
  font-size: 22px;
}
.legal p, .legal li {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}

@media (max-width: 980px) {
  .nav {
    height: auto;
    min-height: 88px;
    flex-wrap: wrap;
    padding: 16px 0;
  }
  .logo { flex-basis: 100%; }
  .menu {
    order: 3;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    justify-content: flex-start;
    font-size: 15px;
  }
  .header-actions { margin-left: auto; }
  .feature-grid,
  .feature-grid.reverse,
  .detail-layout { grid-template-columns: 1fr; }
  .feature-grid.reverse .feature-copy { order: 0; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); max-width: 362px; }
  .nav { width: calc(100% - 28px); max-width: 362px; }
  .logo img { width: 142px; }
  .logo small { font-size: 12px; }
  .menu { gap: 20px; padding-bottom: 4px; }
  .header-actions { width: 100%; }
  .header-actions .btn { flex: 1; }
  .page-hero h1, .detail-hero h1 { font-size: 34px; }
  .page-hero h2 { font-size: 23px; }
  .section h2, .quote-block blockquote { font-size: 27px; }
  .program-cards { grid-template-columns: 1fr; }
  .program-collage { grid-template-columns: 1fr 1fr; }
  .program-collage img { height: 150px; }
  .program-card img { height: 185px; }
  .cta strong { font-size: 34px; }
  .cta-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .chat, .chat-icon { display: none; }
}
