:root {
  --teal-900: #004d40;
  --teal-700: #00796b;
  --teal-600: #009688;
  --teal-100: #e0f2f1;
  --coral: #ff7070;
  --red: #d43636;
  --ink: #20252b;
  --muted: #5e666d;
  --line: #dde5e3;
  --surface: #f7faf9;
  --white: #ffffff;
  --shell: 1120px;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--white);
}

body {
  margin: 0;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

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

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  background: #519d95;
  color: var(--white);
  font-weight: 800;
}

.topbar__inner {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-main {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.logo img {
  width: 205px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 18px;
  font-weight: 800;
}

.desktop-nav a[aria-current="page"],
.desktop-nav a:hover,
.mobile-nav a[aria-current="page"],
.mobile-nav a:hover {
  color: var(--teal-700);
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary span,
.mobile-nav summary span::before,
.mobile-nav summary span::after {
  width: 20px;
  height: 2px;
  display: block;
  background: var(--ink);
  content: "";
}

.mobile-nav summary span::before {
  transform: translateY(-7px);
}

.mobile-nav summary span::after {
  transform: translateY(5px);
}

.mobile-nav nav {
  position: absolute;
  top: 52px;
  right: 0;
  z-index: 10;
  width: 210px;
  display: grid;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 16px 30px rgb(0 0 0 / 12%);
}

.mobile-nav nav a {
  padding: 14px 18px;
  font-weight: 800;
}

.hero {
  overflow: hidden;
}

.hero__inner {
  position: relative;
  min-height: 472px;
  display: grid;
  align-items: center;
}

.hero picture {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
}

.hero__copy {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(620px, 58%);
  padding-top: 30px;
}

.hero__copy h1 {
  margin: 0;
  font-size: 58px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

.hero__copy h1 span {
  color: var(--red);
  font-size: 70px;
}

.hero__copy p {
  margin: 24px 0 0;
  font-size: 24px;
  line-height: 1.35;
}

.home-consult {
  margin-top: -26px;
  position: relative;
  z-index: 2;
}

.consult-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.consult-grid--outlined {
  grid-template-columns: 1fr;
  gap: 20px;
}

.consult-card {
  min-height: 260px;
  padding: 50px 30px 40px;
}

.consult-card--outlined {
  min-height: 168px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 32px;
  padding: 34px;
}

.consult-card--light {
  background: var(--teal-100);
}

.consult-card--primary {
  background: var(--teal-600);
  color: var(--white);
}

.consult-card--dark {
  background: var(--teal-900);
  color: var(--white);
}

.consult-card.consult-card--outlined {
  border: 1px solid var(--teal-600);
  background: var(--white);
  color: var(--teal-700);
}

.consult-card img {
  width: 74px;
}

.consult-card--outlined img {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.consult-card h2 {
  margin: 28px 0 10px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
}

.consult-card--outlined h2 {
  margin: 0 0 8px;
}

.consult-card p {
  margin: 0;
  font-size: 15px;
  word-break: keep-all;
}

.consult-card__note,
.consult-card__hours {
  margin-top: 24px !important;
}

.page-section,
.intro-section,
.video-preview,
.home-map {
  padding: 80px 0;
}

.section-heading {
  margin: 0 auto 68px;
  text-align: center;
}

.section-heading img {
  width: 70px;
  margin: 0 auto 22px;
}

.section-heading h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 720px;
  margin: 10px auto 0;
  color: var(--ink);
  font-size: 16px;
  word-break: keep-all;
}

.intro-section {
  background: url("/assets/flower-big.png") no-repeat 50% 100%;
  text-align: center;
}

.intro-section__inner img {
  width: 78px;
  margin: 0 auto 18px;
}

.intro-section h2,
.section-title-row h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.25;
  font-weight: 900;
}

.intro-section p {
  margin: 10px 0 24px;
  color: var(--muted);
}

.button-link {
  --button-color: var(--teal-600);

  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 18px;
  border: 2px solid currentColor;
  color: var(--button-color);
  font-weight: 900;
  line-height: 1.2;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.button-link--primary {
  --button-color: var(--teal-600);
}

.button-link--accent {
  --button-color: var(--coral);
}

.button-link--outline {
  --button-color: var(--ink);
}

.button-link--map {
  --button-color: #31a823;
}

.button-link:hover {
  background: var(--button-color);
}

.button-link:hover span,
.button-link:hover {
  color: var(--white);
}

.section-title-row {
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 20px;
}

.video-grid--page {
  grid-template-columns: repeat(3, 1fr);
}

.video-card {
  display: block;
  min-width: 0;
}

.video-card a {
  display: block;
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
}

.video-card strong {
  min-height: 54px;
  display: block;
  margin-top: 14px;
  overflow: hidden;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 900;
}

.video-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.map-panel {
  display: grid;
  gap: 28px;
}

.map-panel__visual {
  height: 420px;
  position: relative;
  overflow: hidden;
  background: #e6e4e0;
}

.map-panel__visual iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.map-panel__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.map-panel__summary h2 {
  margin: 0;
  color: var(--teal-900);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 900;
}

.map-panel__summary p {
  margin: 8px 0 0;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item--wide img {
  aspect-ratio: 2 / 1;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.narrow-content {
  width: min(740px, 100%);
  margin: 0 auto;
}

.counseling-detail {
  background: url("/assets/flower-big.png") no-repeat 50% 0;
  background-size: 460px auto;
}

.counseling-summary {
  margin-top: 36px;
  color: var(--teal-900);
  text-align: center;
}

.counseling-summary strong,
.counseling-summary span {
  display: block;
  font-size: 26px;
  line-height: 1.35;
  font-weight: 900;
}

.payment-band {
  margin-top: 28px;
  padding: 16px;
  background: var(--teal-600);
  color: var(--white);
  text-align: center;
  font-size: 20px;
  font-weight: 900;
}

.contact-panel {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
  padding: 42px;
  border: 1px solid var(--teal-600);
  background: var(--surface);
}

.contact-panel span {
  display: block;
  color: var(--teal-700);
  font-weight: 900;
}

.contact-panel a:not(.button-link),
.contact-panel strong {
  display: block;
  margin-top: 4px;
  color: var(--teal-900);
  font-size: 34px;
  line-height: 1.2;
  font-weight: 900;
}

.contact-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

.contact-panel__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.transport-list {
  margin-top: 52px;
  display: grid;
  gap: 34px;
}

.transport-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
  align-items: start;
}

.transport-list h2 {
  margin: 0 0 12px;
  color: var(--teal-900);
  font-size: 22px;
  font-weight: 900;
}

.transport-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.route-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 3px;
  color: var(--white);
  font-weight: 900;
}

.route-badge--green,
.route-badge--subway {
  background: #3cc344;
}

.route-badge--blue {
  background: #386de8;
}

.route-badge--subway {
  border-radius: 16px;
  margin-right: 8px;
}

.center-cta {
  margin-top: 38px;
  text-align: center;
}

.site-footer {
  margin-top: 60px;
  padding: 44px 0;
  background: var(--teal-900);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 36px;
}

.site-footer img {
  width: 180px;
}

.site-footer h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 900;
}

.site-footer p {
  margin: 12px 0 0;
  color: rgb(255 255 255 / 78%);
  word-break: keep-all;
}

.site-footer a {
  color: var(--white);
  font-weight: 900;
}

@media (max-width: 900px) {
  .shell {
    width: min(100% - 32px, var(--shell));
  }

  .topbar__inner {
    justify-content: center;
    text-align: center;
  }

  .topbar__inner a {
    display: none;
  }

  .header-main {
    min-height: 96px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .logo img {
    width: 192px;
  }

  .hero__inner {
    min-height: 500px;
    width: 100%;
  }

  .hero picture img {
    object-fit: cover;
    object-position: 32% bottom;
  }

  .hero__copy {
    display: none;
  }

  .home-consult {
    width: 100%;
    margin-top: 0;
  }

  .consult-grid,
  .video-grid,
  .video-grid--page,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .consult-card {
    min-height: 0;
    padding: 42px 30px;
  }

  .consult-card--outlined {
    min-height: 150px;
    padding: 28px 22px;
    column-gap: 20px;
  }

  .consult-card--outlined img {
    width: 58px;
  }

  .page-section,
  .intro-section,
  .video-preview,
  .home-map {
    padding: 56px 0;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-heading h1,
  .intro-section h2,
  .section-title-row h2 {
    font-size: 30px;
  }

  .intro-section p br {
    display: none;
  }

  .section-title-row,
  .map-panel__summary,
  .contact-panel__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  .counseling-summary strong,
  .counseling-summary span,
  .map-panel__summary h2 {
    font-size: 22px;
  }

  .payment-band {
    font-size: 17px;
  }

  .contact-panel {
    padding: 28px 22px;
  }

  .contact-panel a:not(.button-link),
  .contact-panel strong {
    font-size: 28px;
  }
}

@media (max-width: 520px) {
  .logo img {
    width: 174px;
  }

  .hero__inner {
    min-height: 480px;
  }

  .map-panel__visual {
    height: 300px;
  }

  .transport-list article {
    grid-template-columns: 1fr;
  }
}
