* {
  box-sizing: border-box;
}

:root {
  --text: #111827;
  --muted: #5f6978;
  --line: #f1f1f1;
  --primary: #00a878;
  --primary-dark: #008464;
  --primary-soft: #effaf6;
  --surface: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(241, 241, 241, 0.9);
  backdrop-filter: blur(16px);
}

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

.brand img {
  width: 71px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #202632;
  font-size: 16px;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0;
  background: #111827;
}

.hero {
  background: linear-gradient(180deg, #f5fbf8 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  min-height: 430px;
  padding: 92px 0 78px;
  text-align: center;
}

.kicker {
  margin: 0 0 16px;
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.22;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 20px;
  word-break: keep-all;
}

.chat-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(720px, 100%);
  margin-top: 42px;
  margin-left: auto;
  margin-right: auto;
  padding: 8px;
  border: 1px solid #d9f1e9;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.chat-box:focus-within {
  border-color: rgba(0, 168, 120, 0.55);
  box-shadow: 0 18px 50px rgba(0, 132, 100, 0.14);
}

.chat-box input {
  width: 100%;
  min-width: 0;
  height: 52px;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: var(--text);
  font: inherit;
  font-size: 17px;
  background: transparent;
}

.chat-box input::placeholder {
  color: #9ca3af;
}

.chat-box button {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.chat-box button:hover,
.chat-box button:focus-visible {
  background: var(--primary-dark);
}

.chat-status {
  width: min(720px, 100%);
  min-height: 24px;
  margin: 14px auto 0;
  color: #243044;
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
}

.chat-status:empty {
  display: none;
}

.chat-status p {
  margin: 0;
}

.chat-status strong {
  display: block;
  margin: 12px 0 6px;
  color: #111827;
  font-size: 13px;
}

.chat-status ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chat-status a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-color: rgba(0, 168, 120, 0.34);
  text-underline-offset: 3px;
}

.chat-status a:hover,
.chat-status a:focus-visible {
  color: var(--primary);
  text-decoration-color: currentColor;
}

.guide-section {
  padding: 78px 0 56px;
}

.section-title {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 38px;
}

.section-title h2,
.contact-section h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.3;
}

.section-title::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.guide-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: stretch;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.guide-tabs {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: #fbfcfd;
}

.guide-tabs button {
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.guide-tabs button:hover,
.guide-tabs button:focus-visible {
  background: #f8fafc;
  color: var(--primary-dark);
}

.guide-tabs button[aria-selected="true"] {
  background: var(--primary);
  color: #fff;
}

.guide-list {
  display: grid;
  min-width: 0;
  padding: 34px;
}

.guide-item {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(300px, 0.78fr);
  align-items: center;
  gap: 34px;
  min-width: 0;
}

.guide-item[hidden] {
  display: none;
}

.guide-copy {
  min-width: 0;
}

.guide-copy h3 {
  margin: 0 0 22px;
  font-size: 26px;
  line-height: 1.35;
}

.guide-copy ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-copy li a {
  color: #2f3745;
  font-size: 17px;
}

.guide-copy li a::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  vertical-align: middle;
}

.guide-copy li a:hover,
.guide-copy li a:focus-visible {
  color: var(--primary);
}

.more-link {
  display: inline-flex;
  margin-top: 28px;
  color: var(--primary-dark);
  font-weight: 700;
}

.guide-item > img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  justify-self: end;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.contact-section {
  padding: 40px 0 104px;
}

.contact-section h2 {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(260px, 1fr);
  align-items: center;
  gap: 54px;
  margin-top: 42px;
}

.contact-grid img {
  width: min(420px, 100%);
  justify-self: center;
  border-radius: 8px;
}

.contact-copy {
  text-align: center;
  font-size: 20px;
}

.contact-copy p {
  margin: 0 0 14px;
}

.contact-copy a {
  display: inline-flex;
  margin-top: 20px;
  color: var(--primary-dark);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid #231e1e;
  background: #231e1e;
  color: #b4b9b4;
}

.footer-inner {
  padding: 44px 0 34px;
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-info {
  display: grid;
  gap: 26px;
}

.footer-info h2 {
  margin: 0 0 10px;
  color: #878282;
  font-size: 15px;
  line-height: 1.4;
}

.footer-info p,
.footer-bottom p {
  margin: 0;
  color: #b4b9b4;
  font-size: 14px;
  line-height: 1.8;
}

.footer-info a:hover,
.footer-info a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: #b4b9b4;
}

.footer-logo {
  width: 113px;
  height: auto;
  margin-top: 4px;
}

.footer-bottom {
  align-items: center;
  margin-top: 34px;
  padding-top: 22px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #878282;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .header-inner {
    min-height: 56px;
  }

  .brand img {
    width: 71px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 56px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .hero-inner {
    min-height: 0;
    padding: 64px 0 54px;
  }

  .kicker {
    font-size: 16px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .chat-box {
    align-items: stretch;
    gap: 8px;
    padding: 7px;
  }

  .chat-box input {
    height: 48px;
    padding: 0 10px;
    font-size: 16px;
  }

  .chat-box button {
    width: 74px;
    height: 48px;
    padding: 0;
  }

  .guide-section {
    padding: 54px 0 32px;
  }

  .section-title {
    display: block;
    margin-bottom: 28px;
  }

  .section-title h2,
  .contact-section h2 {
    font-size: 30px;
  }

  .guide-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    min-height: 0;
  }

  .guide-tabs {
    gap: 6px;
    padding: 12px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    background: #fbfcfd;
    overflow: visible;
  }

  .guide-tabs button {
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font-size: 14px;
    text-align: left;
  }

  .guide-tabs button[aria-selected="true"] {
    background: var(--primary);
  }

  .guide-list {
    padding: 22px;
  }

  .guide-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .guide-item > img {
    order: -1;
    justify-self: stretch;
    max-width: none;
  }

  .guide-copy h3 {
    font-size: 23px;
  }

  .contact-section {
    padding-bottom: 70px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 30px;
  }

  .contact-copy {
    font-size: 18px;
  }

  .footer-inner {
    padding: 36px 0 30px;
  }

  .footer-top,
  .footer-bottom {
    display: grid;
    gap: 22px;
  }

  .footer-info {
    gap: 22px;
  }

  .footer-info p,
  .footer-bottom p {
    font-size: 13px;
  }

  .footer-logo {
    width: 113px;
  }

  .footer-bottom {
    margin-top: 28px;
  }
}

@media (max-width: 640px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-tabs {
    display: flex;
    gap: 8px;
    padding: 14px 14px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .guide-tabs::-webkit-scrollbar {
    display: none;
  }

  .guide-tabs button {
    flex: 0 0 auto;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    text-align: center;
  }

  .guide-tabs button[aria-selected="true"] {
    border-color: var(--primary);
    background: var(--primary);
  }
}
