/* ==========================================================================
   AI SubFinder — 디자인 시스템
   Tailwind CDN 대신 자체 CSS를 쓰는 이유:
   cdn.tailwindcss.com은 제작용(development) 빌드라 콘솔 경고가 뜨고,
   애드센스 심사·Core Web Vitals에서 불리합니다. 동일한 디자인 목표를
   의존성 없는 CSS로 구현했습니다.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;

  --bg: #080b12;
  --bg-soft: #0c1019;
  --surface: #111725;
  --surface-2: #161e2f;
  --surface-3: #1c2538;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2f9;
  --text-2: #a9b4c7;
  --text-3: #6d7a90;
  --accent: #5b8cff;
  --accent-2: #8b5cf6;
  --accent-soft: rgba(91, 140, 255, 0.14);
  --good: #34d399;
  --good-soft: rgba(52, 211, 153, 0.12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --bad: #fb7185;
  --bad-soft: rgba(251, 113, 133, 0.12);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.7);

  --header-h: 64px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-soft: #eef1f7;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #eef2f8;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.18);
  --text: #0f172a;
  --text-2: #4b5872;
  --text-3: #7d8aa1;
  --accent: #3355e8;
  --accent-2: #7c3aed;
  --accent-soft: rgba(51, 85, 232, 0.09);
  --good: #059669;
  --good-soft: rgba(5, 150, 105, 0.1);
  --warn: #b45309;
  --warn-soft: rgba(180, 83, 9, 0.1);
  --bad: #e11d48;
  --bad-soft: rgba(225, 29, 72, 0.08);
  --shadow: 0 12px 30px -16px rgba(15, 23, 42, 0.25);
  --shadow-lg: 0 30px 70px -30px rgba(15, 23, 42, 0.35);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
section[id] { scroll-margin-top: calc(var(--header-h) + 18px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section-title {
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.25; font-weight: 800; letter-spacing: -0.035em;
}
.section-sub { margin-top: 14px; color: var(--text-2); font-size: clamp(14px, 1.2vw, 16px); }
.grad-text {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, #22d3ee 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 900; font-size: 18px; letter-spacing: 0;
  box-shadow: 0 6px 18px -8px var(--accent);
}
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -0.03em; }
.brand-sub { font-size: 10px; color: var(--text-3); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 8px 13px; border-radius: 10px; font-size: 14px; font-weight: 600;
  color: var(--text-2); transition: color .18s, background .18s; white-space: nowrap;
}
.nav-link:hover, .nav-link.is-active { color: var(--text); background: var(--surface-2); }
.nav-link.is-active { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  transition: .2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
[data-theme="dark"] .icon-sun, :root:not([data-theme="light"]) .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }
.menu-btn { display: none; }
.mobile-nav {
  display: none; position: fixed; inset: var(--header-h) 0 auto 0; z-index: 55;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 10px 20px 22px; box-shadow: var(--shadow);
}
.mobile-nav.is-open { display: block; animation: slideDown .22s var(--ease); }
.mobile-nav a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); font-weight: 650; font-size: 15px; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- buttons / chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 14.5px;
  border: 1px solid transparent; transition: .2s var(--ease); white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  box-shadow: 0 12px 26px -12px var(--accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px var(--accent); }
.btn-ghost { border-color: var(--line-strong); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-quiet { color: var(--text-2); }
.btn-quiet:hover { color: var(--text); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
  border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line);
}
.chip--good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.chip--warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip--accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip--free { background: var(--good-soft); color: var(--good); border-color: transparent; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 76px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 620px; z-index: -1;
  background:
    radial-gradient(46% 52% at 18% 22%, rgba(91, 140, 255, 0.22), transparent 70%),
    radial-gradient(40% 46% at 82% 8%, rgba(139, 92, 246, 0.18), transparent 70%);
  filter: blur(8px);
}
[data-theme="light"] .hero::before { opacity: .55; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 12.5px; font-weight: 650; color: var(--text-2); margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px var(--good-soft); }
.hero-title { font-size: clamp(34px, 5.1vw, 60px); line-height: 1.15; font-weight: 850; letter-spacing: -0.045em; }
.hero-sub { margin-top: 20px; font-size: clamp(15px, 1.4vw, 17.5px); color: var(--text-2); max-width: 560px; }
.hero-sub strong { color: var(--text); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: 12.5px; color: var(--text-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--good); }

.hero-panel {
  position: relative; border-radius: var(--radius-xl); padding: 22px;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.hero-panel::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 42%);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-title { font-size: 13px; font-weight: 750; color: var(--text-2); }
.panel-total { font-size: 30px; font-weight: 850; letter-spacing: -0.04em; margin-top: 2px; }
.panel-total small { font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.stack { display: grid; gap: 10px; }
.stack-row {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
}
.stack-dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.stack-name { font-size: 13px; font-weight: 650; line-height: 1.3; }
.stack-name small { display: block; font-size: 11px; color: var(--text-3); font-weight: 500; }
.stack-price { font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.stack-bar { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.stack-bar i { display: block; height: 100%; border-radius: 999px; }
.panel-foot {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px;
}
.panel-foot b { color: var(--bad); }

/* ---------- stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card {
  padding: 20px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line);
}
.stat-label { font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: 0.02em; }
.stat-value { font-size: clamp(20px, 2.2vw, 28px); font-weight: 850; letter-spacing: -0.035em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat-note { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card-pad { padding: clamp(20px, 2.4vw, 28px); }

/* ---------- calculator ---------- */
.calc-shell { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.calc-main { padding: clamp(18px, 2.2vw, 26px); }
.calc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.calc-toolbar .label { font-size: 12.5px; font-weight: 700; color: var(--text-3); margin-right: 4px; }
.preset-btn {
  padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 650;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2);
  transition: .18s;
}
.preset-btn:hover { border-color: var(--accent); color: var(--accent); }
.preset-btn.is-on { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.calc-group { margin-bottom: 22px; }
.calc-group:last-child { margin-bottom: 0; }
.calc-group-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.calc-group-head .svc-dot { width: 22px; height: 22px; border-radius: 7px; font-size: 10px; }
.calc-group-head h4 { font-size: 13.5px; font-weight: 750; }
.calc-group-head .count { font-size: 11.5px; color: var(--text-3); margin-left: auto; }
.plan-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.plan-check {
  position: relative; display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); cursor: pointer; transition: .18s var(--ease);
  user-select: none;
}
.plan-check:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.plan-check input { position: absolute; opacity: 0; pointer-events: none; }
.plan-check .box {
  width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; flex-shrink: 0; transition: .15s;
}
.plan-check .box svg { width: 11px; height: 11px; opacity: 0; transform: scale(.6); transition: .15s; }
.plan-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.plan-check:has(input:checked) .box { background: var(--accent); border-color: var(--accent); }
.plan-check:has(input:checked) .box svg { opacity: 1; transform: none; color: #fff; }
.plan-check:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.plan-check .pc-body { min-width: 0; flex: 1; overflow: hidden; }
.plan-check .pc-name { display: block; font-size: 13px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-check .pc-price { display: block; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; line-height: 1.3; margin-top: 1px; }
.plan-check .pc-price.free { color: var(--good); font-weight: 650; }

.calc-summary { position: sticky; top: calc(var(--header-h) + 18px); }
.summary-card { padding: clamp(20px, 2.4vw, 26px); border-radius: var(--radius-lg); }
.summary-label { font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.summary-total { font-size: clamp(30px, 3.6vw, 40px); font-weight: 850; letter-spacing: -0.045em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.summary-total small { font-size: 15px; font-weight: 650; color: var(--text-3); }
.summary-year { font-size: 13px; color: var(--text-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.summary-divider { height: 1px; background: var(--line); margin: 18px 0; }
.saving-box {
  padding: 14px 16px; border-radius: 14px; background: var(--good-soft);
  border: 1px solid color-mix(in srgb, var(--good) 30%, transparent); margin-top: 16px;
}
.saving-box .sb-label { font-size: 12px; font-weight: 700; color: var(--good); }
.saving-box .sb-value { font-size: 24px; font-weight: 850; letter-spacing: -0.03em; color: var(--good); font-variant-numeric: tabular-nums; }
.saving-box .sb-note { font-size: 11.5px; color: var(--text-2); margin-top: 2px; }
.insight-list { display: grid; gap: 8px; margin-top: 16px; }
.insight {
  display: flex; gap: 10px; padding: 11px 12px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.55;
  animation: fadeUp .35s var(--ease) both;
}
.insight .ic { flex-shrink: 0; width: 18px; height: 18px; color: var(--text-3); margin-top: 1px; }
.insight .ic svg { width: 18px; height: 18px; }
.insight b { font-weight: 750; }
.insight--bad { background: var(--bad-soft); border-color: transparent; }
.insight--bad .ic { color: var(--bad); }
.insight--warn { background: var(--warn-soft); border-color: transparent; }
.insight--warn .ic { color: var(--warn); }
.insight--good { background: var(--good-soft); border-color: transparent; }
.insight--good .ic { color: var(--good); }
.insight--info .ic { color: var(--accent); }
.calc-empty { padding: 26px 10px; text-align: center; color: var(--text-3); font-size: 13px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- controls / filters ---------- */
.controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 14px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); margin-bottom: 18px;
}
.segmented { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.segmented button {
  padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 650; color: var(--text-3);
  transition: .18s; white-space: nowrap;
}
.segmented button.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented button:hover { color: var(--text); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 650;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2);
  transition: .18s;
}
.filter-chip:hover { border-color: var(--line-strong); color: var(--text); }
.filter-chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.select-wrap { position: relative; margin-left: auto; }
.select-wrap select {
  appearance: none; padding: 9px 34px 9px 13px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; font-weight: 650;
  cursor: pointer;
}
.select-wrap::after {
  content: ""; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px;
  border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.result-count { font-size: 12.5px; color: var(--text-3); margin-bottom: 10px; }

/* ---------- price table ---------- */
.table-wrap {
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--surface);
  /* overflow:hidden 은 sticky 헤더의 기준을 이 박스로 바꿔 행을 가린다.
     clip 은 스크롤 컨테이너를 만들지 않아 헤더가 뷰포트에 붙는다. */
  overflow: hidden;
  overflow: clip;
}
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-table thead th {
  position: sticky; top: var(--header-h); z-index: 2;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  padding: 14px 16px; text-align: left; font-size: 11.5px; font-weight: 800;
  color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
}
.price-table thead th.num { text-align: right; }
.price-table tbody tr { border-bottom: 1px solid var(--line); transition: background .15s; }
.price-table tbody tr:last-child { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--surface-2); }
.price-table tbody tr.is-selected { background: var(--accent-soft); }
.price-table td { padding: 15px 16px; vertical-align: middle; }
.cell-service { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.svc-dot {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  color: #fff; font-size: 11px; font-weight: 800; flex-shrink: 0; letter-spacing: -0.04em;
}
.cell-plan { min-width: 150px; }
.plan-name { font-weight: 750; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.plan-badge {
  font-size: 10px; font-weight: 800; padding: 2.5px 7px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent); letter-spacing: -0.01em;
}
.plan-sub { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.cell-price { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-main { font-weight: 800; font-size: 15px; letter-spacing: -0.02em; }
.price-main.free { color: var(--good); }
.price-main .per { font-size: 11px; font-weight: 600; color: var(--text-3); }
.price-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.price-sub .strike { text-decoration: line-through; opacity: .6; }
.price-sub .off { color: var(--good); font-weight: 700; }
.cell-tags { min-width: 180px; }
.mini-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.mini-tag { font-size: 10.5px; font-weight: 650; padding: 3px 8px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); }
.cell-pick { text-align: center; width: 76px; }
.pick {
  width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; margin-inline: auto; transition: .15s;
}
.pick svg { width: 13px; height: 13px; opacity: 0; color: #fff; }
.pick:hover { border-color: var(--accent); }
.pick.is-on { background: var(--accent); border-color: var(--accent); }
.pick.is-on svg { opacity: 1; }
.pick:disabled { opacity: .3; cursor: not-allowed; }
.verified { font-size: 11px; color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }

/* mobile cards */
.card-list { display: none; gap: 10px; }
.plan-card {
  padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: .18s;
}
.plan-card.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.pc-head { display: flex; align-items: center; gap: 8px; }
.pc-svc { font-size: 12px; font-weight: 700; color: var(--text-2); }
.pc-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 9px; }
.pc-main > .pc-title { min-width: 0; }
.pc-title { font-size: 17px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.25; }
.pc-price-wrap { text-align: right; flex-shrink: 0; }
.pc-main .price-main { font-size: 16px; }
.pc-main .price-sub { font-size: 10.5px; margin-top: 1px; }
.plan-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 11px; }
.plan-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.plan-card-foot .verified { font-size: 10.5px; }
.add-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 8px;
  font-size: 12px; font-weight: 700; border: 1px solid var(--line-strong); color: var(--text-2);
}
.add-btn.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.add-btn svg { width: 13px; height: 13px; }

/* ---------- compare bar ---------- */
.compare-bar {
  position: fixed; left: 50%; bottom: 18px; z-index: 70; width: min(720px, calc(100% - 24px));
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 18px; background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: transform .32s var(--ease), opacity .25s;
}
.compare-bar.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.cmp-slots { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.cmp-slot {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 11px; background: var(--surface-2); border: 1px dashed var(--line-strong); font-size: 12.5px;
}
.cmp-slot.filled { border-style: solid; border-color: var(--line); }
.cmp-slot .svc-dot { width: 22px; height: 22px; font-size: 9.5px; border-radius: 6px; }
.cmp-slot .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-slot .name small { display: block; font-size: 10.5px; color: var(--text-3); font-weight: 500; }
.cmp-slot .x { margin-left: auto; color: var(--text-3); flex-shrink: 0; padding: 2px; }
.cmp-slot .x:hover { color: var(--bad); }
.cmp-slot .placeholder { color: var(--text-3); font-weight: 600; }
.cmp-vs { font-size: 11px; font-weight: 800; color: var(--text-3); flex-shrink: 0; }
.compare-bar .btn { flex-shrink: 0; }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  padding: 0; background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal.is-open { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-shell {
  position: absolute; inset: 3vh 50% auto auto; transform: translateX(50%);
  width: min(1080px, calc(100% - 32px)); max-height: 94vh; overflow: auto;
  background: var(--bg-soft); border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  animation: modalIn .28s var(--ease);
}
.modal-shell--narrow { width: min(760px, calc(100% - 32px)); }
@keyframes modalIn { from { opacity: 0; transform: translate(50%, 14px) scale(.99); } to { opacity: 1; transform: translate(50%, 0) scale(1); } }
.modal-head {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 24px 18px; background: color-mix(in srgb, var(--bg-soft) 94%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.modal-head p { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.modal-close {
  margin-left: auto; width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
}
.modal-close:hover { color: var(--text); border-color: var(--line-strong); }
.modal-body { padding: 22px 24px 30px; }

/* compare modal */
.cmp-heads { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.cmp-head {
  padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.cmp-head .svc { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.cmp-head .svc-dot { width: 24px; height: 24px; font-size: 10px; border-radius: 7px; }
.cmp-head h3 { font-size: 19px; font-weight: 800; margin-top: 10px; letter-spacing: -0.03em; }
.cmp-head .price { font-size: 22px; font-weight: 850; margin-top: 2px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cmp-head .price small { font-size: 12px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.cmp-head .sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.cmp-table { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 0 12px; }
.cmp-row-label {
  padding: 14px 4px; font-size: 12px; font-weight: 750; color: var(--text-3);
  border-top: 1px solid var(--line); letter-spacing: 0.02em;
}
.cmp-cell {
  padding: 14px 16px; font-size: 13.5px; border-top: 1px solid var(--line);
  background: var(--surface); border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  line-height: 1.6;
}
.cmp-cell:first-of-type { border-radius: 0; }
.cmp-cell ul { display: grid; gap: 6px; }
.cmp-cell li { display: flex; gap: 8px; }
.cmp-cell li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); margin-top: 8px; flex-shrink: 0; }
.cmp-cell.is-better { background: var(--good-soft); }
.cmp-cell.is-better li::before { background: var(--good); }
.cmp-cell .win { display: flex; width: max-content; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; color: var(--good); margin-bottom: 4px; }
.cmp-cell .win svg { width: 12px; height: 12px; }
.cmp-verdict {
  margin-top: 20px; padding: 20px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line);
}
.cmp-verdict h4 { font-size: 13px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.cmp-verdict h4 svg { width: 16px; height: 16px; color: var(--accent); }
.cmp-verdict p { font-size: 13.5px; color: var(--text-2); line-height: 1.75; }
.cmp-verdict p + p { margin-top: 8px; }
.cmp-verdict b { color: var(--text); }
.cmp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chart-box { margin-top: 18px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.chart-box h4 { font-size: 13px; font-weight: 800; margin-bottom: 4px; }
.chart-box p { font-size: 11.5px; color: var(--text-3); margin-bottom: 12px; }
.chart-legend { display: flex; gap: 16px; font-size: 11.5px; color: var(--text-2); margin-bottom: 8px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; }
.chart-svg { width: 100%; height: auto; overflow: visible; }
.chart-empty { font-size: 12.5px; color: var(--text-3); padding: 18px 0; text-align: center; }

/* ---------- timeline ---------- */
.tl-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.tl-list { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 18px 1fr; gap: 14px; padding-bottom: 26px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 7px; top: 16px; bottom: 0; width: 1px; background: var(--line-strong);
}
.tl-item:last-child::before { display: none; }
.tl-node {
  width: 15px; height: 15px; border-radius: 50%; margin-top: 4px; background: var(--surface);
  border: 2px solid var(--accent); position: relative; z-index: 1;
}
.tl-item.is-unverified .tl-node { border-color: var(--warn); }
.tl-date { font-size: 11.5px; font-weight: 700; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.tl-date .warn-tag { font-size: 10px; color: var(--warn); background: var(--warn-soft); padding: 2px 6px; border-radius: 5px; font-weight: 750; }
.tl-title { font-size: 14.5px; font-weight: 750; margin-top: 4px; line-height: 1.45; }
.tl-detail { font-size: 12.5px; color: var(--text-2); margin-top: 5px; line-height: 1.65; }
.tl-svc { font-size: 11px; font-weight: 700; color: var(--text-3); margin-top: 6px; }
.hist-picker { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.hist-picker label { font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.hist-picker select {
  appearance: none; padding: 9px 34px 9px 13px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; font-weight: 650; cursor: pointer;
}
.hist-rows { display: grid; gap: 8px; margin-top: 14px; }
.hist-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 12.5px;
}
.hist-row .d { color: var(--text-3); font-weight: 600; }
.hist-row .v { font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- guide ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-card { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.guide-num { font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: 0.1em; }
.guide-card h3 { font-size: 18px; font-weight: 800; margin-top: 10px; line-height: 1.35; letter-spacing: -0.025em; }
.guide-card p { font-size: 13px; color: var(--text-2); margin-top: 10px; line-height: 1.7; }
.guide-more { margin-top: 16px; font-size: 12.5px; font-weight: 750; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.guide-more svg { width: 14px; height: 14px; }
.article {
  padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--line); margin-top: 18px; display: none;
}
.article.is-open { display: block; animation: fadeUp .3s var(--ease); }
.article h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.03em; }
.article h4 { font-size: 15.5px; font-weight: 800; margin-top: 26px; color: var(--text); }
.article p { font-size: 14px; color: var(--text-2); margin-top: 10px; line-height: 1.85; }
.article ul { margin-top: 10px; display: grid; gap: 7px; }
.article ul li { font-size: 13.5px; color: var(--text-2); padding-left: 16px; position: relative; line-height: 1.7; }
.article ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.article table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.article th { text-align: left; padding: 9px 12px; background: var(--surface-2); font-size: 11.5px; color: var(--text-3); letter-spacing: 0.04em; }
.article th:first-child { border-radius: 8px 0 0 8px; }
.article th:last-child { border-radius: 0 8px 8px 0; }
.article td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.article td strong { color: var(--text); }
.article-close { margin-top: 22px; }
.callout {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft);
  border-left: 3px solid var(--accent); font-size: 13px; color: var(--text-2); line-height: 1.7;
}
.callout b { color: var(--text); }

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 8px; max-width: 880px; margin-inline: auto; }
.acc-item { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.acc-btn {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 17px 20px;
  text-align: left; font-size: 14.5px; font-weight: 700; line-height: 1.5;
}
.acc-btn:hover { background: var(--surface-2); }
.acc-icon { margin-left: auto; flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.7px;
  background: var(--text-3); border-radius: 2px; transform: translate(-50%, -50%); transition: .25s var(--ease);
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.is-open .acc-icon::after { transform: translate(-50%, -50%) rotate(0); }
.acc-item.is-open .acc-btn { color: var(--accent); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--ease); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 20px 18px; font-size: 13.5px; color: var(--text-2); line-height: 1.8; }

/* ---------- ad slots ---------- */
.ad-slot {
  display: grid; place-items: center; min-height: 96px; margin: 0 auto;
  border-radius: var(--radius); border: 1px dashed var(--line-strong);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--text-3); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  text-align: center; padding: 12px;
}
.ad-slot small { display: block; font-size: 10px; letter-spacing: 0; text-transform: none; margin-top: 4px; opacity: .8; }

/* ---------- service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.svc-card { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.svc-card-head { display: flex; align-items: center; gap: 12px; }
.svc-card-head .svc-dot { width: 40px; height: 40px; border-radius: 12px; font-size: 15px; }
.svc-card-head h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.svc-card-head p { font-size: 11.5px; color: var(--text-3); }
.svc-card .tagline { font-size: 13px; font-weight: 700; color: var(--accent); margin-top: 14px; }
.svc-card .desc { font-size: 13px; color: var(--text-2); margin-top: 8px; line-height: 1.75; }
.pros { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.pros h5 { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.pros ul { display: grid; gap: 5px; }
.pros li { font-size: 12px; color: var(--text-2); padding-left: 13px; position: relative; line-height: 1.55; }
.pros li::before { content: ""; position: absolute; left: 0; top: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }
.pros .plus li::before { background: var(--good); }
.pros .minus li::before { background: var(--bad); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding-block: 48px 32px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand p { font-size: 12.5px; color: var(--text-3); margin-top: 12px; line-height: 1.75; max-width: 300px; }
.footer-col h4 { font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.footer-col a, .footer-col button {
  display: block; font-size: 13px; color: var(--text-2); padding: 5px 0; text-align: left;
}
.footer-col a:hover, .footer-col button:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  font-size: 11.5px; color: var(--text-3);
}
.footer-bottom .disclaimer { max-width: 720px; line-height: 1.7; }

/* policy modal body */
.policy h3 { font-size: 16px; font-weight: 800; margin-top: 24px; }
.policy h3:first-child { margin-top: 0; }
.policy p, .policy li { font-size: 13.5px; color: var(--text-2); line-height: 1.85; }
.policy p { margin-top: 8px; }
.policy ul { margin-top: 8px; display: grid; gap: 5px; }
.policy ul li { padding-left: 14px; position: relative; }
.policy ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }
.policy .meta { margin-top: 6px; font-size: 12px; color: var(--text-3); }
.policy table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12.5px; }
.policy th, .policy td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; color: var(--text-2); }
.policy th { background: var(--surface-2); color: var(--text-3); font-size: 11.5px; }

/* contact form */
.contact-form { display: grid; gap: 12px; margin-top: 14px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface-2); font-size: 13.5px; color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 11.5px; color: var(--text-3); line-height: 1.6; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 92px; z-index: 90; transform: translate(-50%, 20px);
  padding: 11px 18px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none;
  transition: .28s var(--ease); white-space: nowrap; max-width: calc(100% - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- price ladder ---------- */
.ladder { display: grid; gap: 7px; margin-top: 4px; }
.ladder-row {
  display: grid; grid-template-columns: 86px 1fr 88px; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-2);
}
.ladder-row.is-on { color: var(--text); font-weight: 800; }
.ladder-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ladder-track { height: 9px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.ladder-track i { display: block; height: 100%; border-radius: 999px; opacity: .45; }
.ladder-row.is-on .ladder-track i { opacity: 1; }
.ladder-val { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.vs-bars { display: grid; gap: 12px; margin-top: 6px; }
.vs-bar-name { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.vs-bar-track { height: 12px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.vs-bar-track i { display: block; height: 100%; border-radius: 999px; }
.vs-bar-val { font-size: 11.5px; color: var(--text-3); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 520px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-shell { grid-template-columns: 1fr; }
  .calc-summary { position: static; }
  .tl-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .header-actions { margin-left: auto; }
  .svc-grid { grid-template-columns: 1fr; }
  .table-wrap { display: none; }
  .card-list { display: grid; }
  .cmp-heads, .cmp-table { grid-template-columns: 78px 1fr 1fr; }
  .cmp-row-label { font-size: 11px; padding-right: 0; }
  .cmp-cell { padding: 12px 10px; font-size: 12.5px; }
  .cmp-head { padding: 12px 10px; }
  .cmp-head h3 { font-size: 16px; }
  .cmp-head .price { font-size: 17px; }
  .modal-shell { inset: 0; transform: none; width: 100%; max-height: 100%; border-radius: 0; }
  @keyframes modalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .modal-head { padding: 16px 18px 14px; }
  .modal-body { padding: 18px; }
}
@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .brand-sub { display: none; }
  .hero-cta .btn { flex: 1; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 15px; }
  .plan-checks { grid-template-columns: 1fr 1fr; }
  .pros { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .controls { padding: 11px; }
  .select-wrap { margin-left: 0; width: 100%; }
  .select-wrap select { width: 100%; }
  .compare-bar { bottom: 10px; padding: 10px; gap: 8px; border-radius: 14px; flex-wrap: wrap; }
  .cmp-slot { padding: 7px 8px; }
  .cmp-slot .name { font-size: 11.5px; }
  .compare-bar .btn { width: 100%; }
  .cmp-heads, .cmp-table { grid-template-columns: 64px 1fr 1fr; gap: 0 8px; }
  .cmp-cell { font-size: 12px; }
  .price-table thead th { top: 0; }
  .article table { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}


@media (max-width: 520px) {
  .cmp-heads { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cmp-heads > div:first-child { display: none; }
  .cmp-table { grid-template-columns: 1fr 1fr; gap: 0 8px; }
  .cmp-row-label { grid-column: 1 / -1; padding: 12px 2px 4px; border-top: 1px solid var(--line); font-size: 11.5px; }
  .cmp-cell { padding: 10px 10px 12px; font-size: 12px; border-radius: 10px; }
  .ladder-row { grid-template-columns: 64px 1fr 76px; gap: 8px; font-size: 11px; }
  .hero-title { font-size: 32px; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .compare-bar, .ad-slot, .site-footer, .modal-close { display: none !important; }
  body { background: #fff; color: #000; }
}
