
:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1d2433;
  --muted: #667085;
  --line: #e5e7eb;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-2: #eff6ff;
  --bg-soft: #eef4ff;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(100% - 32px, var(--max)); margin: 0 auto; }
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246,247,251,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  font-size: 22px;
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.hero { padding: 42px 0 22px; }
.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: stretch;
}
.hero-box {
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 55%, #eef4ff 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.hero-box::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(37,99,235,0.14) 0%, rgba(37,99,235,0) 72%);
  pointer-events: none;
}
.hero-side {
  background: linear-gradient(180deg, #0f172a 0%, #172554 100%);
  color: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-side h3 { margin: 0 0 10px; font-size: 22px; }
.hero-side p { margin: 0; color: rgba(255,255,255,0.82); font-size: 14px; }
h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
}
.lead {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
  font-size: 18px;
}
.hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.chip {
  background: var(--accent-2);
  color: var(--accent);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
section { padding: 22px 0; }
.section-title { font-size: 24px; margin: 0 0 6px; }
.section-sub { margin: 0 0 18px; color: var(--muted); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.link-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.link-card h3 { margin: 0 0 8px; font-size: 18px; }
.link-card p { margin: 0; color: var(--muted); font-size: 14px; }
.notice {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--accent-2);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 600;
}
.tool-card {
  transition: transform .18s ease, box-shadow .18s ease;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15,23,42,0.12);
}
.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.tool-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-2);
  color: var(--accent-dark);
  font-size: 22px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent-dark);
  background: var(--accent-2);
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 700;
}
.tool-title { margin: 0 0 6px; font-size: 20px; }
.tool-desc { margin: 0; color: var(--muted); font-size: 14px; }
.converter {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 18px;
  align-items: start;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}
input, select, button {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 14px 14px;
  font-size: 16px;
  background: #fff;
}
button {
  background: var(--accent);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  margin-top: 4px;
}
button:hover { opacity: .95; }
.quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.quick-btn {
  width: auto;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}
.quick-btn.active {
  background: var(--accent-2);
  color: var(--accent-dark);
  border-color: #bfdbfe;
}
.result {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff;
  padding: 18px;
  border-radius: 18px;
  margin-top: 14px;
}
.result small {
  display: block;
  opacity: .75;
  margin-bottom: 8px;
}
.big {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.1;
}
.mini-note { margin-top: 10px; color: var(--muted); font-size: 13px; }
.rich-text p { margin: 0 0 14px; }
.rich-text ul, .rich-text ol { margin: 0 0 14px 20px; }
.rich-text li { margin-bottom: 8px; }
.branch-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.branch-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.branch-meta { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--accent-2);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 13px;
}
.hero-illustration { width: 100%; height: auto; display: block; margin-bottom: 18px; }
footer { padding: 28px 0 50px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.small { font-size: 14px; color: var(--muted); }
.table-box {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
th {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 700;
}
tr:last-child td { border-bottom: 0; }
@media (max-width: 920px) {
  .hero-layout, .converter, .grid-3, .grid-2, .branch-grid { grid-template-columns: 1fr; }
  .grid, .footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 580px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .grid, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-box, .hero-side { padding: 22px; }
}
