:root {
  --ink: #16325c;
  --muted: #667792;
  --soft: #f6f7fb;
  --surface: #ffffff;
  --line: #dde3ee;
  --brand: #0159de;
  --brand-dark: #0146b0;
  --accent: #0159de;
  --accent-dark: #0146b0;
  --success: #248a5b;
  --shadow-sm: 0 14px 36px rgba(13, 56, 148, 0.10);
  --shadow-md: 0 24px 64px rgba(13, 56, 148, 0.16);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

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

img,
svg {
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

main {
  min-height: 60vh;
}

#main-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e8ecf4;
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0, 21, 45, 0.07);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#main-header.is-top {
  background: transparent;
  box-shadow: none;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

#main-header.is-top .gnb > li > a {
  color: #f6f7fb;
}

#main-header.is-top .gnb > li:hover > a {
  color: #f6f7fb;
}

#main-header.is-top .logo,
#main-header.is-top .logo-text {
  color: #f6f7fb;
}

#main-header.is-top .header-tel {
  color: #f6f7fb;
}

#main-header.is-top .hamburger {
  border-color: rgba(255, 255, 255, 0.35);
}

#main-header.is-top .hamburger span {
  background: #fff;
}

/* is-top 상태에서 gnb/mega hover 시 헤더 흰색으로 전환 */
#main-header.is-top:has(.gnb > li:hover),
#main-header.is-top:has(.mega-menu:hover) {
  transition: background 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0, 21, 45, 0.07);
  border-bottom-color: #e8ecf4;
  backdrop-filter: blur(16px);
}

#main-header.is-top:has(.gnb > li:hover) .gnb > li > a,
#main-header.is-top:has(.mega-menu:hover) .gnb > li > a {
  color: #16325c;
}

#main-header.is-top:has(.gnb > li:hover) .gnb > li:hover > a {
  color: #0159de;
}

#main-header.is-top:has(.gnb > li:hover) .logo,
#main-header.is-top:has(.gnb > li:hover) .logo-text,
#main-header.is-top:has(.mega-menu:hover) .logo,
#main-header.is-top:has(.mega-menu:hover) .logo-text {
  color: #16325c;
}

#main-header.is-top:has(.gnb > li:hover) .header-tel,
#main-header.is-top:has(.mega-menu:hover) .header-tel {
  color: #0159de;
}

.header-inner {
  width: 100%;
  height: 6.1111111111rem;
  padding: 0 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  color: #0159de;
}

.logo-mark {
  display: flex;
  align-items: center;
}

.logo-mark img {
  height: 80px;
  width: auto;
  min-width: 44px;
  display: block;
  transition: opacity 0.2s ease;
}

.logo-text {
  font-size: 17px;
  letter-spacing: 0;
  color: #0159de;
}

.pc-nav {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0 135px;
}

/* ── GNB ── */
.gnb {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.gnb > li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gnb > li > a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  min-height: 44px;
  border-radius: 999px;
  color: #16325c;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
}

.gnb > li:hover > a {
  color: #0159de;
}

/* ── 메가 메뉴 ── */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid rgba(0, 33, 71, .08);
  box-shadow: 0 24px 50px rgba(0, 21, 45, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 99;
}

#main-header:has(.gnb > li:hover) .mega-menu,
.mega-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* padding은 JS가 gnb 위치 기준으로 동적 설정 */
}

.mega-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 24px;
  border-right: 1px solid #eef2f7;
}
.mega-col:last-child { border-left: 1px solid #eef2f7; }

.mega-col-title {
  margin: 0 0 14px;
  padding-bottom: 14px;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid #eef2f7;
}

.mega-col-title a {
  font-size: 16px;
  font-weight: 700;
  color: #16325c;
  text-decoration: none;
  transition: color .15s;
}

.mega-col-title a:hover { color: var(--brand); }

/* 호버한 gnb 아이템에 대응하는 컬럼 제목 강조 */
#main-header:has(.gnb > li:nth-child(1):hover) .mega-col:nth-child(1) .mega-col-title a,
#main-header:has(.gnb > li:nth-child(2):hover) .mega-col:nth-child(2) .mega-col-title a,
#main-header:has(.gnb > li:nth-child(3):hover) .mega-col:nth-child(3) .mega-col-title a,
#main-header:has(.gnb > li:nth-child(4):hover) .mega-col:nth-child(4) .mega-col-title a,
#main-header:has(.gnb > li:nth-child(5):hover) .mega-col:nth-child(5) .mega-col-title a {
  color: var(--brand);
}

.mega-col > a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.mega-col > a:hover {
  color: var(--brand);
}

@media (max-width: 1020px) {
  .mega-menu { display: none; }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-tel,
.btn-header-consult {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.header-tel {
  color: #0159de;
  font-size: 18px;
}

.header-tel svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-header-consult {
  padding: 0 18px;
  color: #f6f7fb;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(46, 143, 255, 0.30);
}

.btn-header-consult:hover {
  background: var(--accent-dark);
}

.btn-admin-nav {
  padding: 0 14px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #667792;
  border: 1px solid #dde3ee;
  border-radius: 6px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-admin-nav:hover {
  color: #0159de;
  border-color: #0159de;
}

.hamburger {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  gap: 5px;
  padding: 11px;
  border: 1px solid #e0e6f2;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  width: 20px;
  height: 2px;
  display: block;
  background: #16325c;
  border-radius: 999px;
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* 이미지 라이트박스 */
.img-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.img-lightbox.is-open {
  display: flex;
}

.img-lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - 80px);
  object-fit: contain;
  border-radius: 4px;
}

.img-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  padding: 0;
}

.img-lightbox-close svg {
  width: 22px;
  height: 22px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 200;
  overflow-y: auto;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
  border-bottom: 1px solid #e8ecf4;
  flex-shrink: 0;
}

.mobile-logo img {
  height: 30px;
  display: block;
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #16325c;
  padding: 0;
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  flex: 1;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  border: none;
  border-bottom: 1px solid #f0f4f8;
  font-size: 16px;
  font-weight: 600;
  color: #16325c;
  background: none;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.mobile-chevron {
  width: 20px;
  height: 20px;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.mobile-nav-group.is-open > .mobile-nav-toggle .mobile-chevron {
  transform: rotate(180deg);
}

.mobile-nav-sub {
  display: none;
  background: #f8fafc;
}

.mobile-nav-group.is-open .mobile-nav-sub {
  display: block;
}

.mobile-nav-sub a {
  display: block;
  padding: 13px 32px;
  color: #475569;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #f0f4f8;
}

.mobile-nav-sub a:last-child {
  border-bottom: none;
}

.mobile-nav-sub a:hover {
  color: #0159de;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f6f7fb 0%, #eef1f7 56%, #f6f7fb 100%);
}

.hero-bg-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(1, 89, 222, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 89, 222, 0.07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 82%);
}

.hero-glow {
  display: none;
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 680px;
  margin: 0;
  padding: 72px 32px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: center;
  gap: 44px;
}

.hero-left {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  align-items: end;
  align-self: end;
  gap: 18px;
}

.hero-person {
  width: 100%;
  min-height: 560px;
  aspect-ratio: 4 / 6;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-person img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: none;
  transform-origin: center bottom;
}

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

.hero-eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 11px;
  color: var(--brand-dark);
  background: rgba(1, 89, 222, 0.07);
  border: 1px solid rgba(1, 89, 222, 0.12);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.hero-title {
  margin: 22px 0 20px;
  color: #111827;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 60px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-title em {
  color: var(--brand);
  font-style: normal;
}

.hero-subtitle {
  margin: 0 0 32px;
  color: #475569;
  font-size: 19px;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-outline,
.btn-form,
.btn-more {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 900;
  transition: 0.18s ease;
}

.btn-primary {
  color: #f6f7fb;
  background: var(--brand);
  box-shadow: 0 16px 34px rgba(1, 89, 222, 0.20);
}

.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-outline {
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid rgba(1, 89, 222, 0.2);
}

.btn-outline:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.hero-form-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(221, 227, 236, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.hero-form-title {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.hero-form-sub {
  margin: 4px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.req {
  color: #d33d3d;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  outline: none;
}

.form-field textarea {
  min-height: 130px;
  padding: 13px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(1, 89, 222, 0.14);
}

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0;
  color: #475569;
  font-size: 13px;
}

.form-privacy input {
  margin-top: 5px;
}

.btn-form {
  width: 100%;
  border: 0;
  color: #f6f7fb;
  background: var(--accent);
  cursor: pointer;
}

.btn-form:hover {
  background: var(--accent-dark);
}

.hero-trust {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stats-bar {
  background: var(--ink);
  color: #f6f7fb;
}

.stats-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  min-height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-num {
  color: #f6f7fb;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
}

.stat-num sup {
  color: #9abcf4;
  font-size: 17px;
}

.stat-label {
  margin-top: 10px;
  color: #cbd5e1;
  font-weight: 700;
}

.fund-section,
.success-section {
  padding: 88px 0;
}

.fund-section {
  background: #fff;
}

.success-section {
  background: var(--soft);
}

.section-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-title {
  margin: 14px 0 0;
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 44px;
  line-height: 1.24;
  letter-spacing: 0;
}

.section-desc {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

.fund-card,
.case-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.fund-card {
  min-height: 276px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: 0.18s ease;
}

.fund-card:hover {
  border-color: rgba(1, 89, 222, 0.30);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.fund-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #f6f7fb;
  background: var(--brand);
  border-radius: 8px;
  font-size: 24px;
  font-weight: 900;
}

.fund-name {
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
}

.fund-desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.fund-meta {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fund-meta span {
  padding: 7px 9px;
  color: #475569;
  background: #f3f6f9;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.fund-meta strong {
  color: var(--brand-dark);
}

.fund-link {
  margin-top: 18px;
  color: var(--accent-dark);
  font-weight: 900;
}

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

.menu-grid .fund-card {
  min-height: 250px;
}

.menu-grid .fund-icon {
  width: 52px;
  font-size: 14px;
}

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

.process-item {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.process-item span {
  color: var(--accent-dark);
  font-weight: 900;
}

.process-item h3 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-size: 21px;
}

.process-item p {
  margin: 0;
  color: var(--muted);
}

/* ── 1:1 문의 ── */
.inq-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.inq-search-type {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}
.inq-search-input {
  flex: 1;
  min-width: 200px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.inq-search-input:focus { border-color: var(--brand); }
.inq-search-btn {
  height: 42px;
  padding: 0 20px;
  background: var(--brand);
  color: #f6f7fb;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.inq-search-btn:hover { background: var(--brand-dark); }
.inq-search-reset {
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.inq-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.inq-toolbar--bottom { margin-top: 16px; margin-bottom: 0; justify-content: flex-end; }
.inq-total { font-size: 14px; color: var(--muted); margin: 0; }
.inq-total strong { color: var(--ink); }

.inq-write-btn {
  height: 40px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  color: #f6f7fb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s;
}
.inq-write-btn:hover { background: var(--brand-dark); }

.inq-table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.inq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.inq-table thead tr {
  background: #f6f7fb;
}
.inq-table th {
  padding: 14px 16px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.inq-table td {
  padding: 14px 16px;
  color: #374151;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: middle;
}
.inq-table tbody tr:last-child td { border-bottom: none; }
.inq-table tbody tr:hover { background: #fafbff; }

.col-num    { width: 80px; min-width: 80px; text-align: center; white-space: nowrap; }
.col-title  { text-align: center; }
.col-status { width: 10%; text-align: center; }
.col-name   { width: 10%; text-align: center; }
.col-date   { width: 11%; text-align: center; }

.inq-title-text { color: var(--ink); font-weight: 500; }
.inq-empty { text-align: center; padding: 48px 0; color: var(--muted); }

.inq-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.inq-badge--done { background: #e8f5ee; color: #1a7a45; }
.inq-badge--wait { background: #fff3e0; color: #b45309; }

.inq-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.inq-page-btn {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: all 0.15s;
  padding: 0 8px;
}
.inq-page-btn:hover { border-color: var(--brand); color: var(--brand); }
.inq-page-btn--active {
  background: var(--brand);
  border-color: var(--brand);
  color: #f6f7fb;
  font-weight: 700;
}

/* 문의 작성 폼 */
.inq-form-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.inq-form { display: flex; flex-direction: column; gap: 18px; }
.inq-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inq-form-group { display: flex; flex-direction: column; gap: 6px; }
.inq-form-group label { font-size: 14px; font-weight: 700; color: var(--ink); }
.inq-req { color: #dc2626; }
.inq-form-group input,
.inq-form-group textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--ink);
  background: #f8f9fa;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  resize: vertical;
}
.inq-form-group input:focus,
.inq-form-group textarea:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(1,89,222,0.1);
}
.inq-field-err { font-size: 12px; color: #dc2626; }
.inq-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.inq-btn-cancel {
  height: 44px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
}
.inq-btn-submit {
  height: 44px;
  padding: 0 28px;
  background: var(--brand);
  color: #f6f7fb;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.inq-btn-submit:hover { background: var(--brand-dark); }

@media (max-width: 640px) {
  .inq-form-row { grid-template-columns: 1fr; }
  .col-name, .col-date { display: none; }
  .col-status { width: auto; white-space: nowrap; padding: 0 8px; }
  .inq-badge { font-size: 11px; padding: 3px 8px; }
}

.page-hero {
  padding: 78px 0 62px;
  background:
    linear-gradient(135deg, #f6f7fb 0%, #edf1f8 60%, #f6f7fb 100%);
  border-bottom: 1px solid var(--line);
}

/* ── 카테고리별 배경 이미지 ── */
.page-hero.has-bg {
  background-size: cover;
  background-position: center;
  border-bottom-color: transparent;
  min-height: 340px;
  display: flex;
  align-items: center;
}
.page-hero.has-bg .section-inner {
  width: min(var(--max), calc(100% - 32px));
}
.page-hero.has-bg .hero-eyebrow,
.page-hero.has-bg .section-eyebrow,
.page-hero.has-bg .page-desc { display: none; }
.page-hero.has-bg .page-title {
  color: #f6f7fb;
  text-align: center;
  margin: 0 auto;
}

.page-hero--company {
  background-image:
    linear-gradient(rgba(11,42,94,.7), rgba(11,42,94,.7)),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1800&q=80&auto=format&fit=crop');
}
.page-hero--policy {
  background-image:
    linear-gradient(rgba(11,42,94,.7), rgba(11,42,94,.7)),
    url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?w=1800&q=80&auto=format&fit=crop');
}
.page-hero--subsidy {
  background-image:
    linear-gradient(rgba(11,42,94,.7), rgba(11,42,94,.7)),
    url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=1800&q=80&auto=format&fit=crop');
}
.page-hero--cert {
  background-image:
    linear-gradient(rgba(11,42,94,.7), rgba(11,42,94,.7)),
    url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1800&q=80&auto=format&fit=crop');
}
.page-hero--support {
  background-image:
    linear-gradient(rgba(11,42,94,.7), rgba(11,42,94,.7)),
    url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?w=1800&q=80&auto=format&fit=crop');
}

/* ── 브레드크럼 ── */
.breadcrumb-bar {
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
}
.breadcrumb-bar .section-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 500;
}
.breadcrumb-bar a {
  color: #64748b;
  text-decoration: none;
}
.breadcrumb-bar a:hover { color: var(--brand); }
.breadcrumb-bar .bc-sep {
  color: #cbd5e1;
  margin: 0 7px;
  font-size: 11px;
}
.breadcrumb-bar .bc-current {
  color: var(--brand);
  font-weight: 600;
}

.page-title {
  max-width: 935px;
  margin: 18px 0 18px;
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 54px;
  line-height: 1.16;
  letter-spacing: 0;
}

.page-desc {
  max-width: 760px;
  margin: 0;
  color: #475569;
  font-size: 18px;
  font-weight: 500;
}

.detail-section {
  padding: 74px 0 92px;
  background: #fff;
}

.tab-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.tab-list,
.community-tabs {
  display: grid;
  gap: 8px;
}

.tab-list {
  position: sticky;
  top: 96px;
}

.community-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
}

.tab-btn {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #475569;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
}

.tab-btn:hover,
.tab-btn.active {
  color: #f6f7fb;
  background: var(--brand);
  border-color: var(--brand);
}

.tab-panel {
  min-height: 520px;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.tab-panel,
.tab-panel p,
.tab-panel li,
.tab-panel td,
.tab-panel th,
.tab-panel a,
.tab-panel h2,
.tab-panel h3,
.tab-panel h4,
.page-title,
.page-desc {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

.tab-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.tab-panel h2,
.guide-band h2,
.company-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  line-height: 1.28;
}

.tab-summary {
  margin: 14px 0 28px;
  color: #475569;
  font-size: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.info-box {
  padding: 18px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.info-box.wide {
  grid-column: 1 / -1;
}

.info-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.info-box p {
  margin: 0;
  color: #334155;
  font-weight: 600;
}

.tab-panel h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 20px;
}

.doc-list,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.doc-list li,
.check-list li {
  position: relative;
  padding: 12px 12px 12px 34px;
  color: #475569;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.doc-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 20px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.policy-detail-blocks {
  margin-top: 30px;
  display: grid;
  gap: 18px;
}

.policy-detail-block {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.policy-detail-block h3 {
  margin-bottom: 14px;
}

.policy-content .policy-subsection + .policy-subsection {
  margin-top: 24px;
}

.policy-content .policy-subsection h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 17px;
}

.policy-content .policy-subsection p {
  margin: 0;
  color: #475569;
}

.policy-note {
  margin: 10px 0 0;
  color: #667792;
  font-size: 14px;
  line-height: 1.7;
}

.policy-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid rgba(1, 89, 222, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 18px 40px rgba(13, 56, 148, 0.08);
}

.policy-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.policy-table th,
.policy-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(221, 227, 238, 0.9);
  vertical-align: top;
  text-align: left;
  color: #475569;
  line-height: 1.7;
}

.policy-table thead th,
.policy-table tbody th {
  color: var(--ink);
  background: rgba(1, 89, 222, 0.06);
  font-weight: 900;
}

.policy-table thead th {
  font-size: 14px;
  letter-spacing: 0.01em;
}

.policy-table tbody th {
  width: 84px;
  text-align: center;
  color: var(--brand-dark);
}

.policy-table tbody tr:nth-child(even) td,
.policy-table tbody tr:nth-child(even) th {
  background: rgba(247, 249, 252, 0.6);
}

.policy-table a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-table tr:last-child th,
.policy-table tr:last-child td {
  border-bottom: 0;
}

.policy-meta-list {
  margin-top: 16px;
}

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

.intro-card {
  padding: 24px;
  min-height: 210px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.intro-card h2,
.community-item h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 21px;
}

.intro-card p,
.community-item p,
.company-copy p {
  margin: 0;
  color: var(--muted);
}

.guide-band {
  margin-top: 34px;
  padding: 34px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: start;
  color: var(--ink);
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-list {
  display: grid;
  gap: 10px;
}

.community-list {
  display: grid;
  gap: 14px;
}

.community-item {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.company-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 38px;
  align-items: start;
}

.company-copy {
  padding-top: 8px;
}

.company-copy p {
  margin-top: 16px;
  font-size: 17px;
}

.company-strengths {
  display: grid;
  gap: 14px;
}

.company-strength {
  padding: 22px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.company-strength span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #f6f7fb;
  background: var(--brand);
  border-radius: 8px;
  font-weight: 900;
}

.company-strength p {
  margin: 0;
  color: #475569;
  font-weight: 700;
}

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

.case-card {
  min-height: 280px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: var(--brand-dark);
  background: #eaf6f4;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.case-company {
  margin-top: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
}

.case-amount-box {
  min-width: 104px;
  padding: 10px;
  text-align: right;
  background: #fff7e8;
  border-radius: 8px;
}

.case-amount-label {
  color: #8a661e;
  font-size: 12px;
  font-weight: 800;
}

.case-amount {
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 900;
}

.case-desc {
  margin-top: 18px;
  color: #475569;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.case-tag {
  padding: 5px 8px;
  color: #566174;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.case-cta {
  display: inline-flex;
  margin-top: 18px;
  color: var(--brand-dark);
  font-weight: 900;
}

.cases-more {
  margin-top: 36px;
  text-align: center;
}

.btn-more {
  color: #f6f7fb;
  background: var(--ink);
}

.btn-more:hover {
  background: var(--brand-dark);
}

#main-footer {
  color: #d8e0ea;
  background: #0159de;
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.footer-top {
  padding: 54px 0 32px;
  text-align: center;
}

.footer-brand .logo {
  color: #f6f7fb;
  justify-content: center;
}

.footer-brand p {
  margin: 16px auto;
  color: #aeb9c8;
  max-width: 480px;
}

.footer-tel {
  display: inline-flex;
  color: #9abcf4;
  font-size: 24px;
  font-weight: 900;
}

.footer-tel-sub {
  margin-top: 6px !important;
  font-size: 13px;
}

.footer-bottom {
  padding: 20px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-copy {
  margin: 0;
  color: #8f9bad;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  color: #aeb9c8;
  font-size: 13px;
}

.footer-links a {
  cursor: pointer;
}

.footer-modal-btn {
  background: none;
  border: none;
  padding: 0 12px;
  color: #aeb9c8;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  position: relative;
}
.footer-modal-btn + .footer-modal-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 11px;
  background: rgba(255, 255, 255, 0.2);
}
.footer-modal-btn:hover { color: #f6f7fb; }

/* 이용약관 모달 */
.terms_wrap {
  color: #334155;
  font-size: 14px;
  line-height: 1.8;
}
.terms-notice {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #6c757d;
}
.terms-notice p { margin: 0 0 4px; }
.terms-notice p:last-child { margin: 0; }
.terms-standard {
  font-size: 13px;
  color: #6c757d;
  margin: 0 0 16px;
}
.terms-article {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.terms-article h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}
.terms-article p { margin: 0 0 6px; }
.terms-article ol { margin: 0; padding-left: 20px; }
.terms-article ol li { margin-bottom: 6px; }
.terms-article ol ol { margin-top: 6px; }

body.modal-open {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px;
  background: rgba(15, 23, 42, 0.66);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-dialog {
  width: min(920px, 100%);
  max-height: min(82vh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  margin: auto 0;
  flex-shrink: 0;
}

.modal-head {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.3;
}

.modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #334155;
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: #f6f7fb;
  background: var(--brand);
  border-color: var(--brand);
}

.modal-body {
  overflow-y: auto;
  padding: 26px 28px 32px;
}

.privacy_wrap {
  color: #334155;
  font-size: 15px;
  line-height: 1.78;
}

.privacy_wrap p {
  margin: 0 0 8px;
}

.privacy_wrap .bold {
  color: var(--ink);
  font-weight: 900;
}

.privacy_wrap ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.privacy_wrap li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.privacy_wrap .tit {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.floating-btns {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

body:not(.floating-ready) .floating-btns {
  display: none;
}

.floating-btns.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── 챗봇 플로팅 버튼 ── */
.chat-float-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 41;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0159de 0%, #3d7fff 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(1,89,222,.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, bottom 0.28s ease;
}

.chat-float-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: chatRingPulse 2.6s ease-out infinite;
  pointer-events: none;
}

@keyframes chatRingPulse {
  0%   { box-shadow: 0 0 0 0 rgba(1,89,222,.55); }
  70%  { box-shadow: 0 0 0 16px rgba(1,89,222,0); }
  100% { box-shadow: 0 0 0 0 rgba(1,89,222,0); }
}

.chat-icon-svg .spark-main {
  transform-box: fill-box;
  transform-origin: center;
  animation: sparkBreath 3.5s ease-in-out infinite;
}

@keyframes sparkBreath {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%       { transform: scale(1.12) rotate(22.5deg); }
}

.spark-dot {
  transform-box: fill-box;
  transform-origin: center;
}

.spark-dot-1 { animation: sparkTwinkle 2s ease-in-out infinite; }
.spark-dot-2 { animation: sparkTwinkle 2s ease-in-out infinite 0.65s; }
.spark-dot-3 { animation: sparkTwinkle 2s ease-in-out infinite 1.3s; }

@keyframes sparkTwinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.6); }
  50%       { opacity: 1;    transform: scale(1.2); }
}

.chat-float-btn::before {
  content: '챗봇에게 궁금한점을 물어보세요';
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #fff;
  color: #1e293b;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 14px rgba(0,0,0,.13);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.chat-float-btn:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.chat-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1,89,222,.45);
}

@media (max-width: 1020px) {
  .chat-float-btn {
    right: 18px;
    bottom: 18px;
  }
}

/* ── 빠른 상담 모달 카드 ── */
.qc-card {
  width: min(480px, calc(100% - 32px));
  background: #fff;
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 24px 64px rgba(0, 21, 45, 0.22);
  margin: auto 0;
  flex-shrink: 0;
}

.qc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.qc-label {
  font-size: 13px;
  font-weight: 700;
  color: #0159de;
  margin: 0 0 4px;
}

.qc-title {
  font-size: 24px;
  font-weight: 900;
  color: #16325c;
  margin: 0;
}

.qc-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
  margin: 0 0 20px;
}

.qc-field {
  margin-bottom: 14px;
}

.qc-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}

.qc-field input,
.qc-field select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  padding: 11px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  box-sizing: border-box;
}

.qc-field input:focus,
.qc-field select:focus {
  border-color: #0159de;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(1, 89, 222, 0.1);
}

.qc-privacy {
  background: #f8fafc;
  border-radius: 14px;
  padding: 13px 16px;
  margin-bottom: 14px;
}

.qc-privacy label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
}

.qc-privacy input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #0159de;
}

.qc-submit {
  width: 100%;
  background: #0159de;
  color: #f6f7fb;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
}

.qc-submit:hover { background: #0146b0; }
.qc-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.qc-msg {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.qc-msg--success { background: #f0fdf4; color: #16a34a; }
.qc-msg--error   { background: #fef2f2; color: #dc2626; }

@media (max-width: 540px) {
  .qc-card { padding: 24px 20px; border-radius: 20px; }
  .qc-title { font-size: 20px; }
}

.float-btn {
  min-width: 148px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(1, 89, 222, 0.16);
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(1, 36, 92, 0.18);
  font-weight: 900;
  cursor: pointer;
}

.float-gold {
  color: #f6f7fb;
  background: linear-gradient(135deg, #0159de, #2d79eb);
}

.float-gold:hover {
  background: var(--accent-dark);
}

.float-btn:hover {
  transform: translateY(-1px);
}

@media (min-width: 1021px) and (max-width: 1094px) {
  .header-inner { padding: 0 40px; }
}

@media (max-width: 1020px) {
  .header-inner { padding: 0 24px; }

  .pc-nav,
  .header-right {
    display: none;
  }

  .hamburger {
    display: grid;
  }

  .mobile-menu.is-open {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 64px 24px;
    gap: 34px;
  }

  .hero-form-card {
    max-width: 560px;
  }

  .hero-left {
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 16px;
  }

  .hero-person {
    min-height: 440px;
  }

  .hero-title {
    font-size: 48px;
  }

  .section-title {
    font-size: 38px;
  }

  .fund-grid,
  .cases-grid,
  .menu-grid,
  .process-grid,
  .intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab-layout,
  .guide-band,
  .company-layout {
    grid-template-columns: 1fr;
  }

  .tab-list {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-title {
    font-size: 42px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 0 24px;
    height: 64px;
  }

  .logo-mark img {
    height: 60px;
  }

  .logo-text {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-content,
  .section-inner,
  .stats-inner,
  .footer-inner {
    width: min(100% - 24px, var(--max));
  }

  .hero-content {
    width: 100%;
    max-width: none;
    padding: 48px 16px;
  }

  .hero-left {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-person {
    width: min(360px, 100%);
    min-height: 360px;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
  }

  .hero-person img {
    transform: none;
  }

  .hero-title {
    font-size: 36px;
  }

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

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-cta {
    display: grid;
  }

  .btn-primary,
  .btn-outline,
  .btn-more {
    width: 100%;
  }

  .hero-form-card {
    padding: 20px;
  }

  .stats-inner,
  .fund-grid,
  .cases-grid,
  .menu-grid,
  .process-grid,
  .intro-grid,
  .info-grid,
  .doc-list,
  .community-tabs,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 48px 0;
  }

  .page-title {
    font-size: 34px;
  }

  .page-desc {
    font-size: 16px;
  }

  .detail-section {
    padding: 48px 0 70px;
  }

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

  .tab-panel,
  .guide-band {
    padding: 22px;
    overflow-x: auto;
  }

  .tab-panel h2,
  .guide-band h2,
  .company-copy h2 {
    font-size: 26px;
  }

  .tab-summary {
    font-size: 16px;
  }

  .info-box.wide {
    grid-column: auto;
  }

  .panel-actions {
    display: grid;
  }

  .stat-item {
    min-height: 108px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .fund-section,
  .success-section {
    padding: 60px 0;
  }

  .case-header {
    display: grid;
  }

  .case-amount-box {
    text-align: left;
  }

  .footer-bottom {
    padding: 20px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-overlay {
    padding: 12px;
    align-items: center;
  }

  .modal-dialog {
    max-height: 88vh;
  }

  .modal-head {
    min-height: 60px;
    padding: 0 16px;
  }

  .modal-head h2 {
    font-size: 19px;
  }

  .modal-body {
    padding: 20px 16px 26px;
  }

  .privacy_wrap {
    font-size: 14px;
  }

  .floating-btns {
    right: 18px;
    bottom: 18px;
  }

  .float-btn {
    min-width: 148px;
    font-size: 13px;
  }

}
