/*
 * theme-polish.css — Final design HTML fidelity layer
 * ----------------------------------------------------------------
 * Loads LAST in the cascade (after core.css + page-specific CSS).
 * Goal: make the rendered WordPress site visually indistinguishable
 * from the design reference HTML files in /themes/new/*.html.
 *
 * Cascade order:
 *   1) ksl-pretendard, ksl-noto-serif-kr, ksl-fontawesome
 *   2) core.css                         — global base
 *   3) assets/css/pages/{slug}.css      — per-page styles
 *   4) theme-polish.css (this file)     — final consolidation
 *
 * Conventions:
 * - Selectors mirror the design HTML class names.
 * - Tokens follow the design system from index.html / about.html.
 * - Inner-page header is the default (light, 72px); front-page hero
 *   header is opt-in via body.ksl-page-index.
 * - Mobile breakpoints aligned with design HTML: 992px, 768px, 640px.
 * ----------------------------------------------------------------
 */

/* ====================================================================
   1. Canonical design tokens (matches index.html + about.html exactly)
   ==================================================================== */
:root {
  --navy: #0a0f1e;
  --navy-mid: #141b2d;
  --navy-light: #1e2a3f;
  --gold: #b8924a;
  --gold-light: #d4b978;
  --gold-muted: rgba(184, 146, 74, 0.12);
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #777;
  --text-light: #999;
  --bg-page: #f8f7f5;
  --bg-warm: #f5f3ef;
  --bg-card: #ffffff;
  --border-light: #e8e5e0;
  --border-subtle: #f0ede8;
  --header-h: 72px;
  --max-width: 1080px;
  --font-serif: "Noto Serif KR", "Batang", serif;
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-float: 0 20px 50px -12px rgba(10, 15, 30, 0.18);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Front-page specific tokens (overlay header, warmer page bg) */
body.ksl-page-index {
  --header-h: 108px;
  --bg-page: #f6f4ef;
  --bg-warm: #f1ede4;
}

/* ====================================================================
   2. Base — body, typography, container
   ==================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.7;
  font-size: 16px;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Front page hero overlaps fixed header — no body padding */
body.ksl-page-index { padding-top: 0; }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul, li { list-style: none; padding: 0; margin: 0; }
button { cursor: pointer; border: none; font-family: inherit; background: none; }
img { max-width: 100%; display: block; }
strong { font-weight: 800; }

.container,
.inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  padding: 12px 24px;
  z-index: 10000;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* ====================================================================
   3. Section primitives (kicker, title, desc, header)
   ==================================================================== */
.section-py { padding: 100px 0; }
body.ksl-page-index .section-py { padding: 96px 0; }

.section-header {
  text-align: left;
  margin-bottom: 52px;
}
body:not(.ksl-page-index) .section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-kicker {
  color: var(--gold);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}

/* Front-page kicker has flanking gold gradient lines */
body.ksl-page-index .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  position: relative;
}
body.ksl-page-index .section-kicker::before {
  content: '';
  width: 34px;
  height: 1px;
  background: linear-gradient(to right, rgba(184, 146, 74, 0), rgba(184, 146, 74, 0.75));
}
body.ksl-page-index .section-kicker::after {
  content: '';
  width: 34px;
  height: 1px;
  background: linear-gradient(to left, rgba(184, 146, 74, 0), rgba(184, 146, 74, 0.45));
}

.section-title,
.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 16px;
  word-break: keep-all;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
  word-break: keep-all;
  margin: 0;
}
body:not(.ksl-page-index) .section-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ====================================================================
   4. Buttons (shared across all pages)
   ==================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
body.ksl-page-index .btn-group { justify-content: center; }

/* ====================================================================
   5. Header — light variant (default for inner pages)
   ==================================================================== */
.site-header {
  background: #fff;
  height: var(--header-h);
  border-bottom: 1px solid var(--border-light);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img { height: 36px; width: auto; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-main {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.logo-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-weight: 500;
}

.gnb {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}
.nav-list {
  display: flex;
  gap: 6px;
  height: 100%;
}
.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0 10px;
  position: relative;
  letter-spacing: -0.01em;
  background: transparent;
  border: 0;
  appearance: none;
  display: inline-flex;
  align-items: center;
  height: 100%;
  cursor: pointer;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active {
  color: var(--navy);
  font-weight: 700;
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  min-width: 180px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  padding: 6px 0;
}
.nav-item:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.sub-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.sub-menu a:hover {
  background: var(--bg-warm);
  color: var(--navy);
  font-weight: 600;
}

.nav-cta {
  padding: 10px 24px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  height: 40px;
}
.nav-cta:hover { background: var(--navy-light); }

.menu-toggle {
  display: none;
  width: 24px;
  height: 18px;
  position: relative;
  z-index: 1100;
  background: none;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--navy);
  position: absolute;
  left: 0;
  transition: 0.3s;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }
.menu-toggle.active span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: rotate(-45deg);
}

/* ====================================================================
   6. Header — front-page hero variant (dark transparent + topline)
   ==================================================================== */
.site-header.site-header--hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: auto;
  background: rgba(10, 15, 30, 0.42);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: none;
}
.site-header--hero .header-inner { height: 72px; }
.site-header--hero .logo-main { color: rgba(255, 255, 255, 0.95); font-size: 18px; }
.site-header--hero .logo-sub {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-header--hero .logo-img { height: 34px; }
.site-header--hero .gnb { gap: 24px; }
.site-header--hero .nav-list { gap: 4px; }
.site-header--hero .nav-link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.84);
  border-radius: 6px;
}
.site-header--hero .nav-link::after { display: none; }
.site-header--hero .nav-link:hover,
.site-header--hero .nav-link.active {
  background: rgba(184, 146, 74, 0.18);
  color: #fff;
}
.site-header--hero .nav-cta {
  background: var(--gold);
  color: var(--navy);
  border-radius: 0;
  font-size: 13px;
  height: 40px;
  padding: 0 18px;
  letter-spacing: 0.01em;
}
.site-header--hero .nav-cta:hover { background: var(--gold-light); }
.site-header--hero .menu-toggle span { background: rgba(255, 255, 255, 0.95); height: 2px; }

.header-topline {
  background: rgba(10, 15, 30, 0.58);
  border-bottom: 1px solid rgba(184, 146, 74, 0.22);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.header-topline-inner {
  height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.topline-copy { font-weight: 600; }
.topline-links {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  font-weight: 700;
}
.topline-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.82);
}
.topline-links a:hover { color: var(--gold-light); }

/* ====================================================================
   7. Compact header variant (location/selfcheck)
   ==================================================================== */
.site-header.site-header--compact {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(10, 15, 30, 0.06);
}

/* ====================================================================
   8. Fade-in animation (shared)
   ==================================================================== */
.fade-section {
  opacity: 1;
  transform: none;
}
body.js-enhanced.ksl-reveal-ready .fade-section {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
body.js-enhanced.ksl-reveal-ready .fade-section.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-section { opacity: 1; transform: none; transition: none; }
}

/* ====================================================================
   9. Footer — dark navy, shared across all pages
   ==================================================================== */
.site-footer {
  background: #050a14;
  color: #e5e7eb;
  padding: 56px 24px 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-sans);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-logo-main {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: #f0ede8;
  letter-spacing: -0.02em;
}
.footer-logo-sub {
  font-size: 11px;
  color: #9ca3af;
  letter-spacing: 0.06em;
}
.footer-desc {
  font-size: 13px;
  line-height: 1.75;
  color: #9ca3af;
  margin: 0;
}
.footer-contact {
  font-size: 13px;
  line-height: 1.85;
  color: #d1d5db;
}
.footer-contact .label {
  color: var(--gold);
  font-weight: 700;
  margin-right: 6px;
}
.footer-contact a {
  color: inherit;
}
.footer-contact a:hover { color: var(--gold-light); }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #f8f8f6;
  font-family: var(--font-sans);
}
.footer-links {
  display: grid;
  gap: 7px;
  font-size: 13px;
}
.footer-links a {
  color: #d1d5db;
  opacity: 0.85;
}
.footer-links a:hover {
  color: var(--gold-light);
  opacity: 1;
}
.footer-quick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}
.footer-quick a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #d1d5db;
  font-size: 12px;
  font-weight: 700;
}
.footer-quick a:hover {
  background: rgba(184, 146, 74, 0.1);
  color: var(--gold-light);
}
.footer-line {
  max-width: var(--max-width);
  margin: 26px auto 16px;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}
.footer-notice {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.8;
  color: #6b7280;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 14px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
}
.footer-bottom a:hover { color: var(--gold-light); }

/* ====================================================================
   10. Front-page hero (matches index.html)
   ==================================================================== */
body.ksl-page-index .hero {
  background-color: var(--navy);
  background-image:
    linear-gradient(to right, transparent 0%, var(--gold) 50%, transparent 100%),
    linear-gradient(90deg,
      rgba(10, 15, 30, 0.82) 0%,
      rgba(10, 15, 30, 0.55) 55%,
      rgba(10, 15, 30, 0.82) 100%),
    url('../img/law-900.webp');
  background-size: 100% 2px, cover, cover;
  background-position: left bottom, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  color: white;
  position: relative;
  padding: calc(var(--header-h) + clamp(64px, 9vw, 120px)) 0 110px;
  overflow: hidden;
}
body.ksl-page-index .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
  align-items: center;
  position: relative;
  z-index: 2;
}
body.ksl-page-index .hero-content {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
body.ksl-page-index .hero-kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 18px;
}
body.ksl-page-index .hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.8vw, 58px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: #fff;
}
body.ksl-page-index .hero-content h1 .highlight { color: var(--gold-light); }
body.ksl-page-index .hero-content p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.85;
  margin: 0 0 32px;
  word-break: keep-all;
}
body.ksl-page-index .hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 32px;
}
body.ksl-page-index .hero-trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(184, 146, 74, 0.3);
  background: rgba(184, 146, 74, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
}
body.ksl-page-index .hero-trust-list i {
  color: var(--gold-light);
  font-size: 11px;
}

/* ====================================================================
   11. Stats bar (front page)
   ==================================================================== */
body.ksl-page-index .stats-bar {
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(184, 146, 74, 0.18);
}
body.ksl-page-index .stats-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
body.ksl-page-index .stat-item {
  padding: 30px 16px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
body.ksl-page-index .stat-item:last-child { border-right: none; }
body.ksl-page-index .stat-num {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
body.ksl-page-index .stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
  word-break: keep-all;
}

/* ====================================================================
   12. Situation section (front page)
   ==================================================================== */
body.ksl-page-index .situation {
  background: var(--bg-warm);
  background-image:
    radial-gradient(ellipse 720px 520px at 80% 10%, rgba(184, 146, 74, 0.10), transparent 70%),
    radial-gradient(ellipse 560px 420px at 10% 80%, rgba(10, 15, 30, 0.04), transparent 70%);
  border-top: 1px solid var(--border-subtle);
}
body.ksl-page-index .situation-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
body.ksl-page-index .situation-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 12px 20px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}
body.ksl-page-index .situation-link::after { content: '→'; }
body.ksl-page-index .situation-link:hover { background: var(--navy-light); }
body.ksl-page-index .check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body.ksl-page-index .check-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 22px 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: var(--transition);
}
body.ksl-page-index .check-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(10, 15, 30, 0.10);
}
body.ksl-page-index .check-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
body.ksl-page-index .check-content h3,
body.ksl-page-index .check-content h4 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}
body.ksl-page-index .check-content p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ====================================================================
   13. Solutions section (front page)
   ==================================================================== */
body.ksl-page-index .solutions {
  background: var(--bg-page);
  background-image:
    radial-gradient(ellipse 760px 520px at 14% 18%, rgba(184, 146, 74, 0.07), transparent 68%);
  border-top: 1px solid var(--border-subtle);
}
body.ksl-page-index .solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
body.ksl-page-index .sol-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
body.ksl-page-index .sol-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(10, 15, 30, 0.10);
}
body.ksl-page-index .sol-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 22px;
}
body.ksl-page-index .sol-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 14px;
}
body.ksl-page-index .sol-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0 0 22px;
  flex-grow: 1;
}
body.ksl-page-index .sol-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  padding: 8px 0;
  border-bottom: 1px solid rgba(184, 146, 74, 0.3);
  transition: var(--transition);
}
body.ksl-page-index .sol-link::after { content: '→'; font-size: 14px; }
body.ksl-page-index .sol-link:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* ====================================================================
   14. Cases section (front page)
   ==================================================================== */
body.ksl-page-index .cases-section {
  background: var(--bg-warm);
  background-image:
    radial-gradient(ellipse 820px 560px at 80% 20%, rgba(184, 146, 74, 0.09), transparent 70%);
  border-top: 1px solid var(--border-subtle);
}
body.ksl-page-index .cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
body.ksl-page-index .case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}
body.ksl-page-index .case-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(10, 15, 30, 0.10);
}
body.ksl-page-index .case-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}
body.ksl-page-index .case-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
body.ksl-page-index .case-card:hover .case-img-wrap img { transform: scale(1.04); }
body.ksl-page-index .case-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 15, 30, 0.88);
  color: var(--gold-light);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(184, 146, 74, 0.3);
}
body.ksl-page-index .case-content { padding: 24px; }
body.ksl-page-index .case-head {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy);
  margin: 0 0 8px;
}
body.ksl-page-index .case-meta {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
body.ksl-page-index .case-result {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
body.ksl-page-index .case-result strong {
  color: var(--gold);
  background: var(--gold-muted);
  padding: 1px 4px;
}

/* ====================================================================
   15. Reviews section (front page)
   ==================================================================== */
body.ksl-page-index .reviews-section {
  background: var(--bg-page);
  background-image:
    radial-gradient(ellipse 740px 520px at 18% 12%, rgba(184, 146, 74, 0.06), transparent 70%);
  border-top: 1px solid var(--border-subtle);
}
body.ksl-page-index .review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
body.ksl-page-index .review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 28px;
  transition: var(--transition);
}
body.ksl-page-index .review-card:hover {
  border-color: rgba(184, 146, 74, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(10, 15, 30, 0.10);
}
body.ksl-page-index .stars {
  color: var(--gold);
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 2px;
}
body.ksl-page-index .review-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0 0 16px;
  position: relative;
  padding-top: 16px;
}
body.ksl-page-index .review-text::before {
  content: '"';
  position: absolute;
  top: -6px;
  left: -2px;
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1;
  color: rgba(184, 146, 74, 0.35);
}
body.ksl-page-index .review-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

/* ====================================================================
   16. Profile section (front page)
   ==================================================================== */
body.ksl-page-index .profile-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
}
body.ksl-page-index .profile-editorial {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
body.ksl-page-index .profile-editorial .section-kicker { margin-bottom: 20px; }
body.ksl-page-index .profile-quote {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.42;
  margin: 0 0 44px;
  letter-spacing: -0.02em;
  position: relative;
}
body.ksl-page-index .profile-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.15em;
  left: -0.22em;
  font-size: 3.6em;
  color: rgba(184, 146, 74, 0.13);
  font-family: var(--font-serif);
  line-height: 1;
  pointer-events: none;
}
body.ksl-page-index .profile-quote .gold { color: var(--gold); }
body.ksl-page-index .profile-body-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  text-align: left;
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
  margin-bottom: 36px;
}
body.ksl-page-index .profile-sig {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  text-align: left;
}
body.ksl-page-index .profile-sig-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}
body.ksl-page-index .profile-sig-title {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 3px;
  text-transform: uppercase;
}
body.ksl-page-index .profile-sig-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

/* ====================================================================
   17. Process section (front page, dark)
   ==================================================================== */
body.ksl-page-index .process-section {
  background: var(--navy);
  color: white;
  position: relative;
  overflow: hidden;
}
body.ksl-page-index .process-section::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 900px 680px at 70% 10%, rgba(184, 146, 74, 0.18), transparent 70%),
    radial-gradient(ellipse 780px 720px at 10% 90%, rgba(184, 146, 74, 0.08), transparent 70%),
    repeating-linear-gradient(60deg, transparent 0px, transparent 86px, rgba(184, 146, 74, 0.05) 86px, rgba(184, 146, 74, 0.05) 87px),
    repeating-linear-gradient(-60deg, transparent 0px, transparent 86px, rgba(184, 146, 74, 0.04) 86px, rgba(184, 146, 74, 0.04) 87px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}
body.ksl-page-index .process-section .container { position: relative; z-index: 1; }
body.ksl-page-index .process-section .section-title { color: #fff; }
body.ksl-page-index .process-section .section-desc { color: rgba(255, 255, 255, 0.6); }
body.ksl-page-index .process-section .section-kicker { color: var(--gold-light); }
body.ksl-page-index .process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 0;
}
body.ksl-page-index .p-step {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 20px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: var(--transition);
}
body.ksl-page-index .p-step:hover {
  border-color: rgba(184, 146, 74, 0.45);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}
body.ksl-page-index .p-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(184, 146, 74, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--gold-light);
  font-size: 16px;
  transition: var(--transition);
}
body.ksl-page-index .p-step:hover .p-num {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
body.ksl-page-index .p-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.ksl-page-index .p-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}
body.ksl-page-index .p-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  word-break: keep-all;
}

/* ====================================================================
   18. Consult section (front page) — kept as full form layout
   ==================================================================== */
body.ksl-page-index .consult-card {
  background: var(--navy);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
body.ksl-page-index .consult-card::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 820px 560px at 60% 12%, rgba(184, 146, 74, 0.20), transparent 70%),
    radial-gradient(ellipse 720px 620px at 20% 86%, rgba(184, 146, 74, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body.ksl-page-index .consult-card > * { position: relative; z-index: 1; }
body.ksl-page-index .consult-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 16px;
}
body.ksl-page-index .consult-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
body.ksl-page-index .consult-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin: 0 0 32px;
  word-break: keep-all;
}
body.ksl-page-index .consult-form-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
  text-align: left;
}
body.ksl-page-index .consult-copy { text-align: left; }
body.ksl-page-index .consult-phone-row {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
body.ksl-page-index .consult-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  width: fit-content;
}
body.ksl-page-index .consult-phone-link:hover { color: #fff; }
body.ksl-page-index .consult-form-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 26px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}
body.ksl-page-index .consult-form {
  display: grid;
  gap: 14px;
  position: relative;
}
body.ksl-page-index .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
body.ksl-page-index .consult-form .form-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
body.ksl-page-index .consult-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
body.ksl-page-index .consult-form .form-label {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
}
body.ksl-page-index .consult-form .form-input,
body.ksl-page-index .consult-form .form-select,
body.ksl-page-index .consult-form .form-textarea {
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 15px;
  font-family: var(--font-sans);
  transition: var(--transition);
  width: 100%;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}
body.ksl-page-index .consult-form .form-input::placeholder,
body.ksl-page-index .consult-form .form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
body.ksl-page-index .consult-form .form-input:focus,
body.ksl-page-index .consult-form .form-select:focus,
body.ksl-page-index .consult-form .form-textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 146, 74, 0.20);
}
body.ksl-page-index .consult-form .form-textarea {
  resize: vertical;
  min-height: 130px;
}
body.ksl-page-index .consult-form .privacy-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}
body.ksl-page-index .consult-form .privacy-check input { accent-color: var(--gold); }
body.ksl-page-index .consult-form .consult-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  background: var(--gold);
  color: var(--navy);
  height: 52px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-sans);
  transition: var(--transition);
}
body.ksl-page-index .consult-form .consult-submit:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
body.ksl-page-index .consult-form .consult-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
body.ksl-page-index .consult-form-hint {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
body.ksl-page-index .contact-receipt-note {
  background: rgba(184, 146, 74, 0.12);
  border: 1px solid rgba(184, 146, 74, 0.22);
  padding: 12px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}
body.ksl-page-index .contact-receipt-note a {
  color: var(--gold-light);
  text-decoration: underline;
}

/* ====================================================================
   19. Desktop right CTA (sidebar — shared)
   ==================================================================== */
.desktop-right-cta {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  display: none;
}
.desktop-right-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.desktop-right-cta-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(10, 15, 30, 0.93);
  color: #f0ede8;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
  min-width: 164px;
  backdrop-filter: blur(10px);
}
.desktop-right-cta-btn.primary {
  background: var(--gold);
  color: var(--navy);
  border-color: transparent;
}
.desktop-right-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.desktop-right-cta-btn i {
  font-size: 17px;
  width: 20px;
  text-align: center;
}
.desktop-right-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.desktop-right-cta-text .main {
  font-weight: 800;
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
}
.desktop-right-cta-text .sub {
  font-weight: 600;
  font-size: 11px;
  opacity: 0.75;
  white-space: nowrap;
}
.desktop-right-cta-text .sub.mono {
  font-feature-settings: "tnum";
  letter-spacing: 0.02em;
}
.desktop-right-cta-details { position: relative; }
.desktop-right-cta-details > summary { list-style: none; }
.desktop-right-cta-details > summary::-webkit-details-marker { display: none; }
.desktop-right-cta-arrow {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.desktop-right-cta-details[open] .desktop-right-cta-arrow { transform: rotate(180deg); }
.desktop-right-cta-dropdown {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: 0 16px 48px rgba(10, 15, 30, 0.2);
  overflow: hidden;
  padding: 6px;
}
.desktop-right-cta-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
}
.desktop-right-cta-dropdown a:hover { background: var(--bg-warm); }
.desktop-right-cta-chip {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ====================================================================
   20. Fixed CTA bar (mobile — shared)
   ==================================================================== */
body.has-fixed-cta {
  padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}
.fixed-cta-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: var(--navy);
  border-top: 1px solid rgba(184, 146, 74, 0.3);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.fixed-cta-inner {
  width: 100%;
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
}
.fixed-cta-inner > * {
  flex: 1 1 0;
  min-width: 0;
}
.cta-dropdown-wrap,
.cta-faq-wrap {
  position: relative;
  display: flex;
}
.cta-dropdown-btn,
#ctaFaq {
  width: 100%;
  height: 100%;
}
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 13px 0;
  min-height: 58px;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
}
.cta-btn:last-child { border-right: none; }
.cta-btn.primary {
  background: var(--gold);
  color: var(--navy);
}
.cta-btn.primary:hover { background: var(--gold-light); }
.cta-btn:hover { background: var(--navy-mid); }
.cta-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-light);
}
.cta-btn.primary .cta-icon {
  background: rgba(10, 15, 30, 0.18);
  color: var(--navy);
}
.cta-label-main {
  font-size: 11px;
  font-weight: 700;
}
.cta-label-sub {
  font-size: 10px;
  opacity: 0.7;
}
.arrow {
  font-size: 9px;
  opacity: 0.7;
}
.cta-dropdown {
  display: none;
  position: absolute;
  bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: 0 -8px 24px rgba(10, 15, 30, 0.18);
  z-index: 2;
}
.cta-dropdown.open { display: block; }
.cta-dropdown a {
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--border-subtle);
}
.cta-dropdown a:last-child { border-bottom: none; }
.sub-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
#ctaFaqBox {
  display: none;
  position: absolute;
  bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  box-shadow: 0 -8px 24px rgba(10, 15, 30, 0.18);
  z-index: 2;
}
#ctaFaqBox.open { display: block; }
#ctaFaqBox a {
  padding: 11px 14px;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--border-subtle);
}
#ctaFaqBox a:last-child { border-bottom: none; }

/* desktop-consult-bar visibility is controlled in core.css (display: block at ≥993px) */

/* ====================================================================
   21. Responsive breakpoints — matching design HTML exactly
   ==================================================================== */
@media (min-width: 993px) {
  .desktop-right-cta { display: block; }
  .fixed-cta-bar { display: none; }
  body.has-fixed-cta { padding-bottom: 0 !important; }
}

@media (max-width: 992px) {
  :root { --header-h: 72px; }
  body.ksl-page-index { --header-h: 72px; }
  body.ksl-page-index .header-topline { display: none; }

  .gnb {
    position: fixed;
    top: 72px;
    right: -100%;
    width: min(100%, 360px);
    height: calc(100vh - 72px);
    background: var(--bg-card);
    flex-direction: column;
    padding: 20px 0 40px;
    overflow-y: auto;
    border-left: 1px solid var(--border-light);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
    transition: right 0.3s ease;
    z-index: 1000;
    align-items: flex-start;
    gap: 0;
  }
  .gnb.open { right: 0; }
  .nav-list {
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 0;
  }
  .nav-item {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-link {
    width: 100%;
    height: auto;
    padding: 15px 24px;
    font-size: 15px;
    color: var(--navy);
    font-weight: 700;
    border-radius: 0;
  }
  .nav-link::after { display: none; }
  .sub-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-warm);
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 6px;
    display: none;
  }
  .nav-item.active .sub-menu { display: block; }
  .sub-menu a { padding: 11px 32px; font-size: 13px; }
  .nav-cta {
    margin: 24px auto;
    width: calc(100% - 48px);
    text-align: center;
    height: 46px;
    justify-content: center;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
  }

  body { overflow-x: hidden; }
  body.ksl-page-index .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  body.ksl-page-index .hero { text-align: center; }
  body.ksl-page-index .btn-group { justify-content: center; }
  body.ksl-page-index .hero-trust-list { justify-content: center; }
  body.ksl-page-index .situation-wrapper { grid-template-columns: 1fr; gap: 48px; }
  body.ksl-page-index .solution-grid { grid-template-columns: 1fr; }
  body.ksl-page-index .process-steps { grid-template-columns: repeat(3, 1fr); }
  body.ksl-page-index .cases-grid { grid-template-columns: 1fr; }
  body.ksl-page-index .review-grid { grid-template-columns: 1fr; }
  body.ksl-page-index .consult-form-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 992px) {
  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .site-header {
    z-index: 10020;
  }

  body.menu-open .fixed-cta-bar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .site-header .menu-toggle {
    width: 44px;
    height: 44px;
    margin-right: -10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    z-index: 10002;
  }

  .site-header .menu-toggle span {
    left: 10px;
    width: 24px;
    transform-origin: center;
  }

  .site-header .menu-toggle span:nth-child(1) {
    top: 14px;
  }

  .site-header .menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .site-header .menu-toggle span:nth-child(3) {
    bottom: 14px;
  }

  .site-header .menu-toggle.active span:nth-child(1),
  .site-header .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }

  .site-header .menu-toggle.active span:nth-child(2),
  .site-header .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .site-header .menu-toggle.active span:nth-child(3),
  .site-header .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
  }

  .site-header .gnb {
    pointer-events: none;
    visibility: hidden;
    height: calc(100vh - var(--header-h, 72px));
    height: calc(100dvh - var(--header-h, 72px));
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transition: right 0.3s ease, visibility 0s linear 0.3s;
  }

  .site-header .gnb.open {
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
  }

  .site-header .gnb .nav-list {
    flex: 0 0 auto;
    overflow: visible;
  }

  .site-header .gnb .sub-menu li {
    display: block;
    width: 100%;
  }

  .site-header .gnb .nav-link,
  .site-header .gnb .sub-menu a,
  .site-header .gnb .nav-cta {
    min-height: 48px;
  }
}

@media (max-width: 640px) {
  .site-header .gnb {
    width: 100%;
    border-left: 0;
    border-radius: 0;
  }
}

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

@media (max-width: 768px) {
  html body { font-size: 15px; }
  .section-py { padding: 72px 0; }
  body.ksl-page-index .section-py { padding: 64px 0; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  body.ksl-page-index .section-py { padding: 64px 0; }
  body.ksl-page-index .btn { width: 100%; }
  body.ksl-page-index .btn-group { flex-direction: column; }
  body.ksl-page-index .process-steps { grid-template-columns: 1fr; }
  body.ksl-page-index .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  body.ksl-page-index .stat-item:nth-child(2) { border-right: none; }
  body.ksl-page-index .stat-item:nth-child(3) {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
  body.ksl-page-index .stat-item:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
  body.ksl-page-index .profile-body-cols { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-quick { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .site-footer { padding: 40px 16px 28px; }
}

@media (max-width: 1180px) {
  body.ksl-page-index .process-steps { grid-template-columns: repeat(3, 1fr); }
}
