:root {
  color-scheme: light;
  --ink: #17282d;
  --muted: #526367;
  --line: #dfe8e9;
  --paper: #ffffff;
  --soft: #f4f8f8;
  --deep: #0f3d46;
  --deep-2: #12333b;
  --blue: #3c74b8;
  --teal: #237b80;
  --mint: #3fa99f;
  --coral: #d83b33;
  --shadow: 0 18px 50px rgba(14, 42, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f8f7;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(15, 61, 70, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 116px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(15, 61, 70, 0.14);
}

.brand-name {
  font-size: 0.94rem;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 4vw, 48px);
  color: #59696e;
  font-size: 0.95rem;
  font-weight: 700;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
}

.desktop-nav a::after {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 30px;
  height: 2px;
  border-radius: 999px;
  background: #c6d1d2;
  content: "";
  transform: translateX(-50%);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  height: 30px;
  border-radius: 4px;
  background: var(--deep);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.mobile-menu {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px;
}

.mobile-menu span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: clamp(330px, 35vw, 430px);
  overflow: hidden;
  background: var(--paper);
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center right;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 28%, rgba(255, 255, 255, 0.68) 52%, rgba(255, 255, 255, 0.12) 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 460px) minmax(230px, 310px);
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  width: min(1120px, calc(100% - 40px));
  min-height: inherit;
  margin: 0 auto;
  padding: 42px 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 4.1vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-text {
  width: min(100%, 430px);
  margin-bottom: 24px;
  color: #45575c;
  font-size: 1rem;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 136px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 85, 72, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  border-color: #dce5e6;
  color: #425156;
}

.metrics-card {
  justify-self: end;
  width: min(100%, 280px);
  padding: 18px 20px;
  border-radius: 6px;
  background: rgba(15, 61, 70, 0.96);
  color: #eaf8f7;
  box-shadow: var(--shadow);
}

.metric-row {
  display: grid;
  grid-template-columns: 32px 68px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-bottom: 1px solid rgba(194, 235, 232, 0.2);
}

.metric-row:last-child {
  border-bottom: 0;
}

.metric-row svg {
  width: 24px;
  height: 24px;
  color: #9fdad9;
}

.metric-row strong {
  font-size: 1.24rem;
}

.metric-row span {
  color: #abc8c9;
  font-size: 0.82rem;
  font-weight: 700;
}

.section-pad {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head h2,
.schedule-panel h2,
.consult-form h2,
.system-inner h2 {
  margin-bottom: 0;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  letter-spacing: 0;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.course-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  min-height: 150px;
  padding: 22px 18px 18px;
  border: 1px solid #e3ebec;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(20, 55, 61, 0.05);
}

.course-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
}

.course-icon svg {
  width: 24px;
  height: 24px;
}

.blue {
  background: var(--blue);
}

.teal {
  background: var(--teal);
}

.mint {
  background: var(--mint);
}

.course-body h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  letter-spacing: 0;
}

.course-body p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 650;
}

.progress {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 82px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.progress.blue {
  color: var(--blue);
}

.progress.teal {
  color: var(--teal);
}

.progress.mint {
  color: var(--mint);
}

.card-arrow {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #dde7e8;
  border-radius: 4px;
  color: #56666a;
  background: #fff;
}

.card-arrow svg {
  width: 16px;
  height: 16px;
}

.system-band {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  color: #fff;
  background: var(--deep);
}

.system-band picture,
.system-band img,
.system-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.system-band img {
  object-fit: cover;
  object-position: right center;
  filter: saturate(0.86);
}

.system-overlay {
  background:
    linear-gradient(90deg, rgba(15, 61, 70, 0.98) 0%, rgba(15, 61, 70, 0.93) 38%, rgba(15, 61, 70, 0.62) 64%, rgba(15, 61, 70, 0.08) 100%),
    linear-gradient(0deg, rgba(10, 39, 45, 0.2), rgba(10, 39, 45, 0.02));
}

.system-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 3fr;
  align-items: center;
  gap: 34px;
  width: min(1120px, calc(100% - 40px));
  min-height: 132px;
  margin: 0 auto;
  padding: 24px 0;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-item {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 0 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 750;
}

.system-item svg {
  width: 28px;
  height: 28px;
  color: #99d8d6;
}

.bottom-section {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.82fr);
  gap: 24px;
  align-items: stretch;
}

.schedule-panel,
.consult-form {
  border: 1px solid #e1ebec;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(20, 55, 61, 0.05);
}

.schedule-panel {
  padding: 22px;
}

.schedule-panel h2 {
  margin-bottom: 16px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 88px repeat(4, minmax(128px, 1fr));
  min-height: 170px;
  overflow: hidden;
  border: 1px solid #e4eeee;
  border-radius: 5px;
}

.schedule-title {
  display: grid;
  place-items: center;
  background: var(--deep);
  color: #fff;
  font-weight: 850;
}

.schedule-grid article {
  padding: 18px 16px;
  background: #fff;
  border-left: 1px solid #e7f0f1;
}

.schedule-grid h3 {
  display: grid;
  place-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  border-radius: 4px;
  background: #edf7f7;
  color: #285f9f;
  font-size: 0.9rem;
}

.schedule-grid article:nth-of-type(2) h3,
.schedule-grid article:nth-of-type(4) h3 {
  color: var(--teal);
}

.schedule-grid p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #56666a;
  font-size: 0.84rem;
  font-weight: 700;
}

.schedule-grid p span:first-child {
  width: 10px;
  height: 10px;
  border: 2px solid #c4d1d3;
  border-radius: 50%;
  flex: 0 0 auto;
}

.schedule-grid p span:last-child {
  width: auto;
  height: auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  flex: 1 1 auto;
  white-space: nowrap;
}

.consult-form {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.consult-form p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.consult-form label {
  display: grid;
  gap: 5px;
}

.consult-form label span {
  color: #536368;
  font-size: 0.78rem;
  font-weight: 800;
}

.consult-form input {
  width: 100%;
  height: 38px;
  border: 1px solid #e0e9ea;
  border-radius: 4px;
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
}

.consult-form input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(70, 174, 179, 0.16);
}

.form-btn {
  width: 100%;
  margin-top: 2px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0 30px;
  color: #59696e;
  font-size: 0.84rem;
  font-weight: 700;
}

.site-footer p {
  margin-bottom: 0;
}

.mobile-tabbar {
  display: none;
}

@media (max-width: 920px) {
  .desktop-nav,
  .header-cta,
  .brand-name {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .site-header {
    height: 58px;
    padding-inline: 18px;
  }

  .brand {
    min-width: auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.74) 48%, rgba(255, 255, 255, 0.1)),
      linear-gradient(0deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    width: min(100% - 32px, 560px);
    min-height: 450px;
    padding: 36px 0 28px;
  }

  .hero-copy {
    max-width: 340px;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .metrics-card {
    justify-self: start;
    width: min(100%, 302px);
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-inner {
    grid-template-columns: 1fr;
  }

  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 0;
  }

  .bottom-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 72px;
  }

  .hero-media img {
    object-position: 62% center;
  }

  .hero-inner {
    width: min(100% - 28px, 440px);
    min-height: 520px;
    align-content: start;
    padding-top: 36px;
  }

  .eyebrow {
    font-size: 0.78rem;
  }

  h1 {
    margin-bottom: 12px;
  }

  .hero-text {
    width: 260px;
    margin-bottom: 16px;
    font-size: 0.84rem;
  }

  .btn {
    min-width: 126px;
    height: 38px;
    font-size: 0.82rem;
  }

  .metrics-card {
    width: 278px;
    margin-top: 10px;
    padding: 14px 16px;
  }

  .metric-row {
    grid-template-columns: 28px 72px 1fr;
    min-height: 42px;
  }

  .section-pad {
    width: min(100% - 28px, 440px);
    padding: 28px 0;
  }

  .course-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .course-card {
    grid-template-columns: 34px 1fr 28px;
    align-items: center;
    min-height: 54px;
    padding: 10px 8px 10px 12px;
    gap: 10px;
  }

  .course-icon {
    width: 30px;
    height: 30px;
  }

  .course-icon svg {
    width: 17px;
    height: 17px;
  }

  .course-body h3 {
    margin-bottom: 0;
    font-size: 0.9rem;
  }

  .course-body p,
  .progress {
    display: none;
  }

  .card-arrow {
    position: static;
  }

  .system-band {
    min-height: 210px;
  }

  .system-inner {
    width: min(100% - 28px, 440px);
    min-height: 210px;
    gap: 18px;
  }

  .system-grid {
    grid-template-columns: 1fr 1fr;
  }

  .system-item {
    min-height: 62px;
    padding: 0 8px;
    font-size: 0.8rem;
  }

  .schedule-panel,
  .consult-form {
    padding: 16px;
  }

  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .schedule-title {
    min-height: 42px;
  }

  .schedule-grid article {
    border-left: 0;
    border-bottom: 1px solid #e7f0f1;
  }

  .schedule-grid article:last-child {
    border-bottom: 0;
  }

  .site-footer {
    width: min(100% - 28px, 440px);
    padding-bottom: 20px;
  }

  .mobile-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 62px;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(15, 61, 70, 0.12);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 -10px 28px rgba(19, 52, 58, 0.1);
  }

  .mobile-tabbar a {
    display: grid;
    justify-items: center;
    gap: 3px;
    color: #667579;
    font-size: 0.68rem;
    font-weight: 800;
  }

  .mobile-tabbar svg {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
