/* ==========================================================================
   사장님연구소 SAJANG LAB — 디자인 시스템
   크림 베이지 · 딥 네이비 · 차분한 오렌지
   ========================================================================== */

:root {
  --cream: #faf7f2;
  --cream-2: #f4efe6;
  --paper: #ffffff;
  --navy: #16263e;
  --navy-2: #22384f;
  --navy-3: #2f4a66;
  --orange: #d96b27;
  --orange-dark: #b9551b;
  --orange-soft: #fbeade;
  --orange-line: #f0c9ad;
  --ink: #1b2433;
  --muted: #5c6675;
  --muted-2: #7d8794;
  --line: #e7dfd3;
  --line-strong: #d8cdbb;
  --green: #2e6b4f;
  --green-soft: #e7f1eb;
  --red: #b3402f;
  --red-soft: #fbeceb;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(22, 38, 62, .04), 0 10px 28px -18px rgba(22, 38, 62, .35);
  --shadow-lg: 0 2px 4px rgba(22, 38, 62, .05), 0 24px 48px -28px rgba(22, 38, 62, .45);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
          "Noto Sans KR", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  --header-h: 66px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--cream);
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  padding-bottom: 0;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.35; letter-spacing: -0.025em; font-weight: 800; color: var(--navy); }
p { margin: 0 0 14px; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
ul, ol { margin: 0 0 16px; padding-left: 1.2em; }
li { margin: 4px 0; }
strong { color: var(--navy); font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--navy);
  display: grid; place-items: center; flex: 0 0 auto; color: #FAF7F2;
}
.brand-mark svg { stroke: #FAF7F2; }
.site-footer .brand-mark svg { stroke: #FAF7F2; }
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -0.03em; }
.brand-en { font-size: 10px; font-weight: 700; letter-spacing: .18em; color: var(--orange); }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.site-nav a {
  padding: 8px 12px; border-radius: 10px; color: var(--navy-3); font-weight: 600; font-size: 15px;
  text-decoration: none; white-space: nowrap;
}
.site-nav a:hover { background: var(--cream-2); color: var(--navy); text-decoration: none; }
.site-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-note { font-size: 12.5px; color: var(--muted); display: none; }
.menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line-strong);
  background: var(--paper); color: var(--navy); cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn svg { width: 20px; height: 20px; }

.mobile-menu {
  display: none; border-top: 1px solid var(--line); background: var(--paper);
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 10px 20px 18px; }
.mobile-menu li { margin: 0; }
.mobile-menu a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--navy);
  font-weight: 700; font-size: 15.5px; text-decoration: none;
}
.mobile-menu small { color: var(--muted-2); font-weight: 500; font-size: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  font-family: inherit; font-size: 15.5px; font-weight: 700; line-height: 1.2;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  min-height: 48px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 20px -12px rgba(217, 107, 39, .8); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--paper); border-color: var(--navy); }
.btn-ghost { background: var(--paper); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-sm { padding: 9px 14px; min-height: 40px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto 40%; height: 520px;
  background: radial-gradient(closest-side, rgba(217, 107, 39, .12), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800;
  letter-spacing: .12em; color: var(--orange-dark); text-transform: uppercase; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); border-radius: 2px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.18; letter-spacing: -0.04em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-lead { font-size: 17.5px; color: var(--muted); margin: 18px 0 26px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: 13.5px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta b { color: var(--navy); font-weight: 800; }

.hero-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px; box-shadow: var(--shadow-lg); position: relative;
}
.hero-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hero-card-title { font-size: 13px; font-weight: 800; color: var(--navy); }
.chip-live {
  font-size: 11px; font-weight: 800; color: var(--green); background: var(--green-soft);
  border-radius: 999px; padding: 4px 9px; display: inline-flex; align-items: center; gap: 5px;
}
.chip-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero-rows { display: grid; gap: 10px; }
.hero-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.hero-row span { color: var(--muted); }
.hero-row b { color: var(--navy); font-variant-numeric: tabular-nums; }
.hero-total {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong);
  display: flex; align-items: flex-end; justify-content: space-between;
}
.hero-total small { color: var(--muted); font-size: 12px; display: block; margin-bottom: 2px; }
.hero-total b { font-size: 27px; color: var(--orange-dark); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero-note { font-size: 11.5px; color: var(--muted-2); margin-top: 12px; }

/* ---------- sections ---------- */
.section { padding: 44px 0; }
.section-tight { padding: 30px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(23px, 2.6vw, 30px); letter-spacing: -0.035em; }
.section-head p { color: var(--muted); margin: 8px 0 0; font-size: 15px; max-width: 620px; }
.section-more { font-size: 14px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.section-more::after { content: " →"; color: var(--orange); }
.kicker {
  font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--orange-dark);
  text-transform: uppercase; margin-bottom: 8px;
}

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

/* ---------- cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); position: relative; min-width: 0;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card-link:hover .card-title { color: var(--orange-dark); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--orange-soft);
  display: grid; place-items: center; margin-bottom: 14px; flex: 0 0 auto;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--orange-dark); }
.card-icon.navy { background: #e8edf3; }
.card-icon.navy svg { stroke: var(--navy); }
.card-title { font-size: 17.5px; font-weight: 800; margin: 0 0 6px; color: var(--navy); letter-spacing: -0.02em; }
.card-desc { font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.65; }
.card-foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted-2); }
.card-num {
  position: absolute; top: 18px; right: 20px; font-size: 12px; font-weight: 800;
  color: var(--line-strong); letter-spacing: .04em;
}

.tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; background: var(--cream-2); color: var(--navy-3);
  border: 1px solid var(--line);
}
.tag.orange { background: var(--orange-soft); color: var(--orange-dark); border-color: var(--orange-line); }
.tag.green { background: var(--green-soft); color: var(--green); border-color: #cbe2d5; }
.tag.navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- passport / stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.stat { padding: 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 24px; color: var(--navy); letter-spacing: -0.03em; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- calculator layout ---------- */
.calc-wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.calc-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.calc-form h2 { font-size: 18px; margin-bottom: 4px; }
.calc-form .hint { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.field label .opt { font-weight: 500; color: var(--muted-2); font-size: 12px; }
.input-shell {
  display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 11px;
  background: #fffdfa; padding: 0 14px; transition: border-color .15s, box-shadow .15s;
}
.input-shell:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(217, 107, 39, .13); }
.input-shell input, .input-shell select {
  border: 0; background: transparent; font-family: inherit; font-size: 16px; font-weight: 600;
  color: var(--navy); padding: 12px 0; width: 100%; min-width: 0; outline: none;
  font-variant-numeric: tabular-nums;
}
.input-shell select { cursor: pointer; }
.input-shell .unit { font-size: 13px; color: var(--muted-2); font-weight: 600; padding-left: 8px; white-space: nowrap; }
.field-help { font-size: 12.5px; color: var(--muted-2); margin-top: 5px; }
.field-error { font-size: 12.5px; color: var(--red); margin-top: 5px; display: none; }
.field.has-error .input-shell { border-color: var(--red); background: #fff8f7; }
.field.has-error .field-error { display: block; }

.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span {
  display: inline-block; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: #fff; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.radio-pill input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.radio-pill input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }

.calc-actions { display: flex; gap: 8px; margin-top: 20px; }
.calc-actions .btn { flex: 1; }

.result {
  background: var(--navy); color: #f3ede3; border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-lg); position: sticky; top: calc(var(--header-h) + 16px);
}
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.result-head h2 { color: #fff; font-size: 15px; letter-spacing: -0.01em; }
.result-head .tag { background: rgba(255, 255, 255, .12); color: #f3ede3; border-color: rgba(255, 255, 255, .18); }
.result-main { padding: 4px 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .14); margin-bottom: 14px; }
.result-main small { display: block; font-size: 12.5px; color: #b9c4d2; margin-bottom: 4px; }
.result-main b {
  font-size: clamp(28px, 3.4vw, 36px); font-weight: 800; color: #fff; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.result-main b.neg { color: #ffb4a2; }
.result-rows { display: grid; gap: 9px; }
.result-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; }
.result-row span { color: #b9c4d2; }
.result-row b { color: #fff; font-variant-numeric: tabular-nums; }
.result-note { margin-top: 14px; font-size: 12px; color: #a9b6c6; line-height: 1.6; }
.result-status {
  margin-top: 14px; padding: 11px 13px; border-radius: 10px; font-size: 13px; font-weight: 600;
  background: rgba(255, 255, 255, .1); color: #fff; line-height: 1.55;
}
.result-status.warn { background: rgba(217, 107, 39, .22); color: #ffd8bf; }
.result-status.good { background: rgba(94, 190, 143, .18); color: #c6f0d9; }

/* ---------- prose / article ---------- */
.article { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 4vw, 46px); box-shadow: var(--shadow); }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 26px; }
.article-head h1 { font-size: clamp(27px, 3.4vw, 38px); margin: 10px 0 12px; letter-spacing: -0.035em; }
.article-lead { font-size: 16.5px; color: var(--muted); margin: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted-2); margin-top: 16px; }
.prose { font-size: 16.5px; line-height: 1.85; color: #253044; }
.prose h2 {
  font-size: clamp(20px, 2.2vw, 24px); margin: 38px 0 14px; padding-left: 14px;
  border-left: 4px solid var(--orange); line-height: 1.4; scroll-margin-top: 90px;
}
.prose h3 { font-size: 18px; margin: 26px 0 10px; color: var(--navy); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.25em; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--orange); font-weight: 700; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0 24px; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; }
.prose th { background: var(--cream-2); color: var(--navy); font-weight: 800; }
.prose td { color: #33405a; }
.prose .table-wrap { overflow-x: auto; margin: 20px 0 24px; -webkit-overflow-scrolling: touch; }
.prose .table-wrap table { margin: 0; min-width: 480px; }
.callout {
  background: var(--orange-soft); border: 1px solid var(--orange-line); border-radius: var(--radius-sm);
  padding: 16px 18px; margin: 22px 0; font-size: 15px; color: #6b3a16;
}
.callout b { color: var(--orange-dark); display: block; margin-bottom: 4px; font-size: 13.5px; letter-spacing: .02em; }
.callout p:last-child { margin-bottom: 0; }
.callout.navy { background: #eef2f7; border-color: #d5dfe9; color: #24384f; }
.callout.navy b { color: var(--navy); }
.checklist { list-style: none; padding: 0; margin: 18px 0 24px; }
.checklist li { padding-left: 30px; position: relative; margin: 9px 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 17px; height: 17px;
  border: 1.5px solid var(--orange); border-radius: 4px; background: #fff;
}
.faq { margin: 30px 0 10px; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: #fffdfa; margin-bottom: 10px;
  padding: 0 18px;
}
.faq summary {
  cursor: pointer; padding: 15px 24px 15px 0; font-weight: 700; color: var(--navy); font-size: 15.5px;
  position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--orange); font-weight: 700; font-size: 20px;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { font-size: 15px; color: #3c4a61; margin: 0 0 16px; }

.related { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.related h2 { font-size: 18px; margin-bottom: 14px; border: 0; padding: 0; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.related-item {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 12px; background: #fffdfa; text-decoration: none; color: inherit;
}
.related-item:hover { text-decoration: none; border-color: var(--orange); background: var(--orange-soft); }
.related-item b { display: block; color: var(--navy); font-size: 14.5px; }
.related-item span { font-size: 12.5px; color: var(--muted); }
.related-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--paper); display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); }
.related-icon svg { width: 15px; height: 15px; stroke: var(--orange-dark); }

.toc { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 26px; }
.toc b { display: block; font-size: 13px; color: var(--navy); margin-bottom: 8px; letter-spacing: .02em; }
.toc ol { margin: 0; padding-left: 1.15em; font-size: 14px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--navy-3); text-decoration: none; }
.toc a:hover { color: var(--orange-dark); text-decoration: underline; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 40px 0 8px; }
.page-hero .kicker { margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(29px, 3.8vw, 42px); letter-spacing: -0.04em; }
.page-hero p { color: var(--muted); font-size: 16.5px; max-width: 720px; margin-top: 12px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted-2); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span::before { content: "/"; margin-right: 6px; color: var(--line-strong); }

/* ---------- resources ---------- */
.res-list { display: grid; gap: 12px; }
.res-item {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow); min-width: 0;
}
.res-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; letter-spacing: 0; line-height: 1.1; text-align: center; padding: 4px;
  word-break: break-all;
}
.res-icon.xlsx { background: #e7f1ea; color: #1f6b43; }
.res-icon.csv { background: #eef2f7; color: #2b4a6b; }
.res-icon.pdf { background: #fbeae6; color: #a8402f; }
.res-body { min-width: 0; }
.res-body h3 { font-size: 16px; margin: 0 0 3px; }
.res-body p { font-size: 13.5px; color: var(--muted); margin: 0; }
.res-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; font-size: 11.5px; color: var(--muted-2); }
.res-files { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.file-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: #fffdfa; color: var(--navy);
  font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; min-height: 40px;
}
.file-btn:hover { border-color: var(--orange); color: var(--orange-dark); text-decoration: none; background: var(--orange-soft); }
.file-btn svg { width: 14px; height: 14px; }
.file-btn .size { font-weight: 500; color: var(--muted-2); font-size: 11.5px; }

/* ---------- store ---------- */
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.product-cover {
  height: 128px; display: flex; align-items: flex-end; padding: 14px 18px; position: relative;
  background: linear-gradient(135deg, #16263e, #2c4a66);
  color: #fff;
}
.product-cover.alt { background: linear-gradient(135deg, #d96b27, #b9551b); }
.product-cover.alt2 { background: linear-gradient(135deg, #2f5a49, #1f4234); }
.product-cover.alt3 { background: linear-gradient(135deg, #3a3f5c, #242a44); }
.product-cover b { font-size: 17px; line-height: 1.3; letter-spacing: -0.02em; position: relative; z-index: 1; max-width: 80%; }
.product-cover .p-code { position: absolute; top: 12px; right: 14px; font-size: 10.5px; letter-spacing: .12em; opacity: .75; }
.product-cover .p-format { position: absolute; top: 34px; right: 14px; font-size: 10px; opacity: .6; }
.product-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-body p { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.product-body ul { font-size: 13px; color: #3c4a61; padding-left: 1.1em; margin: 0 0 14px; }
.product-body li { margin: 3px 0; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.price small { font-size: 12px; color: var(--muted-2); font-weight: 600; display: block; letter-spacing: 0; }

/* ---------- forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-field { margin-bottom: 14px; min-width: 0; }
.form-field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.form-field .req { color: var(--orange); }
.form-field input[type="text"], .form-field input[type="email"], .form-field select, .form-field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 11px; padding: 12px 14px;
  font-family: inherit; font-size: 15px; color: var(--navy); background: #fffdfa; min-height: 46px;
}
.form-field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(217, 107, 39, .13);
}
.consent {
  display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: 11px; background: #fffdfa; font-size: 13.5px; color: #3c4a61; margin: 4px 0 14px;
}
.consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); flex: 0 0 auto; }
.consent label { margin: 0; font-weight: 500; font-size: 13.5px; color: #3c4a61; cursor: pointer; }
.consent a { text-decoration: underline; }
.form-note { font-size: 12.5px; color: var(--muted-2); line-height: 1.6; margin-top: 10px; }
.form-status { border-radius: 11px; padding: 13px 15px; font-size: 14px; margin-top: 14px; display: none; line-height: 1.6; }
.form-status.show { display: block; }
.form-status.ok { background: var(--green-soft); color: #1f5238; border: 1px solid #c4dfd1; }
.form-status.err { background: var(--red-soft); color: var(--red); border: 1px solid #f0cfcb; }
.form-status.info { background: var(--orange-soft); color: #7a4117; border: 1px solid var(--orange-line); }

.newsletter {
  background: var(--navy); border-radius: 24px; padding: clamp(24px, 4vw, 44px); color: #f3ede3;
  position: relative; overflow: hidden;
}
.newsletter::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 280px; height: 280px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(217, 107, 39, .35), transparent);
}
.newsletter h2 { color: #fff; font-size: clamp(22px, 2.6vw, 29px); }
.newsletter p { color: #c8d2de; margin: 10px 0 20px; font-size: 15px; max-width: 560px; }
.newsletter .form-field label { color: #e6dccd; }
.newsletter .consent { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #ddd4c6; }
.newsletter .consent label { color: #ddd4c6; }
.newsletter .form-field input { background: rgba(255, 255, 255, .96); }
.newsletter .form-note { color: #a9b6c6; }
.newsletter-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; max-width: 560px; }
.newsletter-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 36px; align-items: start; position: relative; z-index: 1; }
.newsletter-side { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 20px 22px; }
.newsletter-side b { display: block; color: #fff; font-size: 14px; margin-bottom: 12px; letter-spacing: -0.01em; }
.newsletter-side ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 9px; }
.newsletter-side li { position: relative; padding-left: 20px; font-size: 14px; color: #d7dfe8; margin: 0; }
.newsletter-side li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.newsletter-side-note { font-size: 12px; color: #a9b6c6; margin: 0; line-height: 1.6; }
.newsletter-form .form-field { margin-bottom: 0; }
.newsletter .form-status.ok { background: rgba(94, 190, 143, .18); color: #d3f2e2; border-color: rgba(94, 190, 143, .4); }
.newsletter .form-status.info { background: rgba(217, 107, 39, .2); color: #ffdcc4; border-color: rgba(217, 107, 39, .45); }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(13, 21, 33, .58); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; background: var(--paper); border-radius: 20px; width: min(620px, 100%);
  max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); padding: 26px;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer; color: var(--navy);
  display: grid; place-items: center; font-size: 18px; line-height: 1;
}
.modal-close:hover { background: var(--cream-2); }
.modal h3 { font-size: 21px; margin: 0 0 6px; padding-right: 40px; }
.modal .modal-sub { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.modal-spec { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.modal-spec h4 { font-size: 13px; margin-bottom: 8px; color: var(--navy); letter-spacing: .02em; }
.modal-spec ul { font-size: 14px; color: #3c4a61; margin: 0 0 12px; }
.modal-panel table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0 4px; }
.modal-panel th, .modal-panel td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.modal-panel th { background: var(--cream-2); color: var(--navy); font-weight: 800; white-space: nowrap; }
.modal-panel td { color: #3c4a61; }
.pay-panel {
  background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  margin-top: 16px;
}
.pay-panel h4 { font-size: 14px; margin: 0 0 6px; color: var(--navy); display: flex; align-items: center; gap: 7px; }
.pay-panel p { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.code-row { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.code-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; font-weight: 700;
  background: #fff; border: 1px dashed var(--line-strong); border-radius: 9px; padding: 9px 12px; color: var(--navy);
}
.copy-ok { font-size: 12px; color: var(--green); font-weight: 700; opacity: 0; transition: opacity .2s; }
.copy-ok.show { opacity: 1; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #c3ccd8; margin-top: 56px; padding: 44px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-mark { background: rgba(255, 255, 255, .1); }
.footer-about { font-size: 13.5px; line-height: 1.75; color: #a7b3c2; margin: 14px 0 0; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: .08em; margin: 4px 0 12px; text-transform: uppercase; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 7px 0; }
.footer-col a { color: #b9c4d2; font-size: 14px; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-info {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12.5px; color: #8d9aab; line-height: 1.9;
}
.footer-info b { color: #c3ccd8; font-weight: 600; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.footer-legal a { color: #c3ccd8; }
.footer-legal a:hover { color: #fff; }
.footer-bottom { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12px; color: #7d8a9c; }
.disclaimer { font-size: 12px; color: #8d9aab; margin-top: 12px; line-height: 1.75; }

/* ---------- misc ---------- */
.notice-bar {
  background: var(--orange-soft); border: 1px solid var(--orange-line); color: #6b3a16;
  border-radius: 12px; padding: 12px 16px; font-size: 13.5px; margin: 16px 0; line-height: 1.6;
}
.notice-bar b { color: var(--orange-dark); }
.section-alt { background: var(--cream-2); border-block: 1px solid var(--line); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill {
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--navy-3); border-radius: 999px;
  padding: 7px 14px; font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.pill:hover { border-color: var(--navy); }
.pill.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.hidden { display: none !important; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }

.ad-slot { margin: 28px 0; min-height: 0; text-align: center; }
.ad-slot .ad-label { font-size: 10px; letter-spacing: .12em; color: var(--muted-2); display: block; margin-bottom: 4px; }

/* ---------- mobile bottom nav ---------- */
.mnav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.mnav ul { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 0; padding: 0; }
.mnav a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 2px;
  color: var(--muted); font-size: 10.5px; font-weight: 700; text-decoration: none; border-radius: 10px;
}
.mnav a svg { width: 21px; height: 21px; stroke: currentColor; }
.mnav a[aria-current="page"] { color: var(--orange-dark); }
.mnav a[aria-current="page"] svg { stroke: var(--orange); }

/* ---------- 404 ---------- */
.err-wrap { padding: 70px 0 40px; text-align: center; }
.err-wrap .err-code { color: var(--orange); }
.err-code { font-size: clamp(64px, 12vw, 120px); font-weight: 800; color: var(--orange); line-height: 1; letter-spacing: -0.05em; }
.err-wrap h1 { font-size: clamp(24px, 3.4vw, 34px); margin: 14px 0 10px; }
.err-wrap p { color: var(--muted); max-width: 520px; margin: 0 auto 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .newsletter-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-card { max-width: 520px; }
  .calc-wrap { grid-template-columns: 1fr; }
  .result { position: static; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-cta .btn { display: none; }
}

@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .mnav { display: block; }
  .site-header { position: sticky; }
  .header-inner { height: 60px; gap: 12px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-name { font-size: 16px; }
  .container, .narrow { width: min(1120px, 100% - 32px); }
  .hero { padding: 30px 0 26px; }
  .hero-lead { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .section { padding: 32px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 18px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
  .grid-2, .grid-3, .grid-4, .store-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .res-item { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .res-icon { width: 42px; height: 42px; }
  .res-files { grid-column: 1 / -1; justify-content: flex-start; }
  .file-btn { flex: 1 1 auto; justify-content: center; }
  .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-form .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .article { border-radius: 16px; padding: 20px 18px; }
  .prose { font-size: 16px; }
  .prose h2 { margin-top: 30px; }
  .modal-panel { padding: 20px; max-height: 92vh; }
  .err-wrap { padding: 44px 0 20px; }
  .page-hero { padding: 26px 0 4px; }
}

@media (max-width: 380px) {
  .brand-text .brand-en { display: none; }
  .hero h1 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .mnav, .site-footer, .ad-slot, .hero-actions, .calc-actions { display: none !important; }
  body { background: #fff; padding: 0; }
  .article, .card { box-shadow: none; border-color: #ccc; }
}
