:root {
  --bg: #f6f8ff;
  --surface: #ffffff;
  --surface-soft: #eef2ff;
  --text: #0b1220;
  --muted: #5f6f89;
  --line: #dde5f3;
  --accent: #3730a3;
  --accent-2: #0ea5e9;
  --accent-soft: #e0e7ff;
  --success: #047857;
  --danger: #dc2626;
  --shadow: 0 22px 60px rgba(31, 41, 91, .12);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(55,48,163,.13), transparent 34rem),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 42%, #ffffff 100%);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .01em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #1d4ed8 55%, var(--accent-2));
  color: white;
  box-shadow: 0 10px 22px rgba(55,48,163,.24);
}
.nav-links { display: flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 800; font-size: 14px; }
.nav-links a { padding: 9px 10px; border-radius: 10px; }
.nav-links a:hover { color: var(--accent); background: var(--accent-soft); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.hero { padding: 70px 0 32px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 28px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}
h1 { margin: 16px 0 14px; font-size: clamp(36px, 6vw, 68px); line-height: 1; letter-spacing: 0; }
.lead { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}
.btn.primary { background: linear-gradient(135deg, var(--accent), #1d4ed8); border-color: transparent; color: #fff; box-shadow: 0 14px 30px rgba(55,48,163,.22); }
.btn:hover { transform: translateY(-1px); }
.hero-panel {
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.hero-panel h2 { margin: 0 0 12px; font-size: 20px; }
.hero-list { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.hero-list li { display: flex; gap: 10px; align-items: start; color: var(--muted); font-weight: 700; font-size: 14px; }
.hero-list i { flex: 0 0 22px; height: 22px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-style: normal; font-size: 12px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-stat { background: linear-gradient(180deg, #fff, #f8faff); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.mini-stat strong { display: block; font-size: 24px; }
.mini-stat span { color: var(--muted); font-size: 13px; font-weight: 700; }
.search-box { margin-top: 16px; position: relative; }
.search-box input {
  width: 100%;
  padding: 14px 14px 14px 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.search-box span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.section { padding: 40px 0; }
.section-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 16px; }
.section h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.section p { margin: 6px 0 0; color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 205px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  box-shadow: 0 10px 32px rgba(31, 41, 91, .06);
}
.tool-card:hover { border-color: color-mix(in srgb, var(--accent), var(--line) 45%); transform: translateY(-3px); box-shadow: 0 18px 44px rgba(31, 41, 91, .1); }
.tool-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent-soft), #eff6ff);
  color: var(--accent);
  font-weight: 900;
}
.tool-card h3 { margin: 0; font-size: 18px; }
.tool-card p { margin: 0; color: var(--muted); font-size: 14px; }
.tool-card .tag { margin-top: auto; color: var(--accent); font-weight: 900; font-size: 14px; }
.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.trust-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.trust-item b { display: block; margin-bottom: 4px; }
.trust-item span { color: var(--muted); font-size: 14px; }
.page-title { padding: 42px 0 20px; }
.page-title h1 { font-size: clamp(30px, 5vw, 48px); }
.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
  padding-bottom: 34px;
}
.calculator {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.calc-head { padding: 20px; border-bottom: 1px solid var(--line); }
.calc-body { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; margin: 12px 0 6px; color: var(--text); font-weight: 800; font-size: 14px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  padding: 12px;
  outline: none;
}
textarea { min-height: 250px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 82%); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}
.tab.active { background: linear-gradient(135deg, var(--accent), #1d4ed8); border-color: transparent; color: #fff; }
.metric { padding: 15px; border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--line); margin-bottom: 10px; }
.metric b { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.metric strong { display: block; font-size: clamp(24px, 4vw, 32px); line-height: 1.1; }
.good { color: var(--success); }
.bad { color: var(--danger); }
.note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.ad-slot {
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f8faff);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  padding: 16px;
}
.seo-content { background: var(--surface); border-top: 1px solid var(--line); padding: 34px 0; }
.seo-content article { max-width: 820px; }
.seo-content h2 { font-size: 26px; margin: 0 0 10px; }
.seo-content h3 { margin-top: 22px; }
.seo-content p, .seo-content li { color: var(--muted); }
.content-card {
  max-width: 860px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px);
}
.content-card h2 { margin-top: 26px; font-size: 24px; }
.content-card h2:first-child { margin-top: 0; }
.content-card p, .content-card li { color: var(--muted); }
.content-card a { color: var(--accent); font-weight: 900; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.blog-card {
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: 0 10px 32px rgba(31, 41, 91, .06);
}
.blog-card b { color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.blog-card h3 { margin: 10px 0 8px; font-size: 19px; }
.blog-card p { color: var(--muted); margin: 0; font-size: 14px; }
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; background: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer a:hover { color: var(--accent); }
.bar { height: 13px; border-radius: 999px; background: var(--surface-soft); overflow: hidden; border: 1px solid var(--line); margin: 12px 0; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.switch input { width: 42px; accent-color: var(--accent); }
.preview-stage { display: grid; place-items: center; min-height: 520px; background: var(--surface-soft); border-radius: 12px; overflow: hidden; }
.phone { aspect-ratio: 9 / 16; height: min(480px, 72vh); border-radius: 28px; background: #0f172a; padding: 10px; box-shadow: 0 20px 45px rgba(15,23,42,.25); }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 20px; background: #020617; }
.screen img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: none; }
canvas { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.hidden { display: none !important; }

@media (max-width: 900px) {
  .hero-grid, .tool-layout, .calc-body { grid-template-columns: 1fr; }
  .tool-grid, .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .nav-links { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .hero { padding-top: 34px; }
  .tool-grid, .blog-grid, .trust-band, .field-grid, .mini-stats { grid-template-columns: 1fr; }
  .calc-body { padding: 16px; }
  .page-title { padding-top: 24px; }
}
