:root {
  --bg: #f7f8fc;
  --card: #ffffff;
  --text: #1f2937;
  --sub: #4b5563;
  --primary: #1d4ed8;
  --line: #e5e7eb;
}

* {
  box-sizing: border-box;
}

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.hero {
  background: linear-gradient(120deg, #0f172a 0%, #1e3a8a 55%, #172554 100%);
  color: #fff;
  padding: 104px 0 116px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

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

.hero-figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.home-badge {
  display: inline-flex;
  align-items: center;
  position: fixed;
  top: 16px;
  left: calc((100vw - min(1100px, 92%)) / 2 - 10px);
  z-index: 9999;
  margin: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #1e3a8a;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.home-badge:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.home-badge:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

.menu-dropdown {
  position: fixed;
  top: 16px;
  right: calc((100vw - min(1100px, 92%)) / 2 - 10px);
  z-index: 9999;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 2px solid rgba(147, 197, 253, 0.55);
  background: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.22);
}

.menu-btn:hover {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(147, 197, 253, 0.9);
}

.menu-btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

.menu-icon {
  width: 22px;
  height: 18px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-icon-bar {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.35);
}

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

.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.38);
  display: none;
}

.menu-item {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.10);
}

/* Hover or keyboard focus opens the menu */
.menu-dropdown:hover .menu-panel,
.menu-dropdown:focus-within .menu-panel {
  display: block;
}

h1, h2, h3 {
  line-height: 1.3;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}

h2 {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

h3 {
  font-size: 1.05rem;
}

.lead {
  max-width: 640px;
  color: #e5e7eb;
}

.cta {
  display: inline-block;
  margin-top: 18px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
}

.section {
  padding: 64px 0;
}

.alt {
  background: #eef2ff;
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.split-media {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--line);
}

.split-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.split-text h2 {
  margin-top: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

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

.card-body {
  padding: 20px 22px 22px;
}

.subtab-card {
  text-decoration: none;
  color: inherit;
}

.subtab-card:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

.subtab-pager {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.pager-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  min-width: 44px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.pager-btn:hover {
  transform: translateY(-1px);
  background: #f8fafc;
}

.pager-btn.is-active {
  background: #1d4ed8;
  color: #fff;
  border-color: rgba(29, 78, 216, 0.55);
}

.pager-btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

.gallery-strip {
  padding-top: 56px;
  padding-bottom: 56px;
}

.gallery-title {
  text-align: center;
  margin-bottom: 8px;
}

.gallery-lead {
  text-align: center;
  color: var(--sub);
  max-width: 560px;
  margin: 0 auto 28px;
}

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

.gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 10px 12px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.process-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.process-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}

.process-visual {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--line);
}

.process-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.process-content h3 {
  margin-top: 0;
}

.faq-section {
  padding-top: 56px;
  padding-bottom: 56px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.faq-aside {
  margin: 0;
  position: sticky;
  top: 24px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  border: 1px solid var(--line);
}

.faq-aside img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.faq-main h3 {
  margin-top: 0;
}

.process {
  margin: 12px 0 0;
  padding-left: 18px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq-item:last-child {
  border-bottom: 0;
}

.contact {
  background: linear-gradient(135deg, #0b1220 0%, #111c33 50%, #0f172a 100%);
  color: #e5e7eb;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: center;
}

.contact-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.contact-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.contact-copy h3 {
  margin-top: 0;
  color: #f8fafc;
}

.contact-note {
  font-weight: 700;
  color: #c7d2fe;
  margin-bottom: 18px;
}

.btn-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  padding: 14px 22px;
  background: #229ed9;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.35);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.hero-copy .btn-telegram {
  margin-top: 18px;
}

.btn-telegram:hover {
  background: #1b8bc2;
  box-shadow: 0 10px 28px rgba(34, 158, 217, 0.45);
}

.btn-telegram:active {
  transform: translateY(1px);
}

.btn-telegram:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

.btn-telegram-icon {
  flex-shrink: 0;
}

.floating-inquiry {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: #229ed9;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 32px rgba(34, 158, 217, 0.42);
}

.floating-inquiry:hover {
  background: #1b8bc2;
  transform: translateY(-1px);
}

.floating-inquiry:active {
  transform: translateY(1px);
}

.floating-inquiry:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

.floating-inquiry svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 520px) {
  .floating-inquiry {
    right: 14px;
    bottom: 14px;
  }
}

.footer {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--sub);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-figure {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .split-media {
    order: -1;
  }

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

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

  .process-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process-visual {
    order: -1;
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-aside {
    position: static;
    max-height: none;
  }

  .faq-aside img {
    aspect-ratio: 16 / 10;
    max-height: 220px;
    object-fit: cover;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-figure {
    order: -1;
  }

  .section {
    padding: 52px 0;
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
