* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #eef1f4;
  color: #1a2332;
  line-height: 1.65;
}
a { color: #0f766e; }
h1, h2, .pim-serif { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }

.pim-head {
  background: #fff;
  border-bottom: 1px solid #d8dee6;
  position: sticky;
  top: 0;
  z-index: 40;
}
.pim-head-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pim-brand {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
}
.pim-brand em { font-style: normal; color: #0d9488; }
.pim-head-link {
  font-size: 14px;
  font-weight: 700;
  color: #fff !important;
  background: #0f766e;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
}

.pim-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.pim-main { min-width: 0; }

.pim-hero {
  padding: 48px 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.pim-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f766e;
  background: #ccfbf1;
  padding: 5px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.pim-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.12;
  color: #0f172a;
}
.pim-lead { font-size: 18px; color: #475569; margin: 0 0 20px; }
.pim-note {
  font-size: 14px;
  color: #64748b;
  border-left: 3px solid #0d9488;
  padding-left: 14px;
  margin: 0;
}

.pim-visual {
  background: #0f172a;
  border-radius: 16px;
  padding: 20px;
  color: #e2e8f0;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}
.pim-visual-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 13px;
}
.pim-live {
  color: #5eead4;
  font-weight: 600;
}
.pim-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  margin-bottom: 16px;
}
.pim-bar {
  flex: 1;
  background: linear-gradient(180deg, #334155, #1e293b);
  border-radius: 4px 4px 0 0;
  height: var(--h, 40%);
  transition: height 0.3s;
}
.pim-bar.is-up { background: linear-gradient(180deg, #2dd4bf, #0f766e); }
.pim-visual-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 11px;
  text-align: center;
  color: #94a3b8;
}
.pim-visual-foot b { display: block; color: #f8fafc; font-size: 15px; }

.pim-rail {
  position: sticky;
  top: 72px;
}
.pim-form-box {
  background: #0f172a;
  color: #f1f5f9;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
}
.pim-form-box h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-family: Georgia, serif;
}
.pim-form-box > p { font-size: 13px; color: #94a3b8; margin: 0 0 16px; }
.pim-form { display: grid; gap: 10px; }
.pim-form label { font-size: 13px; font-weight: 600; display: grid; gap: 4px; }
.pim-form input,
.pim-form textarea {
  padding: 12px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #1e293b;
  color: #f8fafc;
  font-size: 16px;
  width: 100%;
}
.pim-form textarea { min-height: 72px; resize: vertical; }
.pim-btn {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #fff !important;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
}
.pim-btn:hover { filter: brightness(1.06); }
.pim-btn:disabled { opacity: 0.65; }
.pim-fine { font-size: 11px; color: #64748b; margin: 8px 0 0; }
.pim-fine a { color: #94a3b8; }

.pim-block {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}
.pim-block h2 {
  margin: 0 0 14px;
  font-size: 1.5rem;
  color: #0f172a;
}
.pim-block p { color: #475569; margin: 0 0 12px; }

.pim-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.pim-case {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
}
.pim-case-tag { font-size: 12px; color: #64748b; margin-bottom: 8px; }
.pim-case-num {
  font-family: Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
}
.pim-case-num .was { color: #94a3b8; text-decoration: line-through; font-size: 1.1rem; }
.pim-case-num .arr { color: #0d9488; margin: 0 6px; }
.pim-case-note { font-size: 12px; color: #64748b; margin-top: 6px; }
.pim-case svg { width: 100%; height: 36px; margin-top: 10px; }

.pim-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 12px;
}
.pim-compare th,
.pim-compare td {
  border: 1px solid #e2e8f0;
  padding: 12px 14px;
  text-align: left;
}
.pim-compare th { background: #f1f5f9; font-weight: 700; }
.pim-compare td:first-child { font-weight: 600; color: #334155; }

.pim-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.pim-step {
  flex: 1 1 140px;
  padding: 16px;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  font-size: 13px;
  color: #64748b;
}
.pim-step:last-child { border-right: none; }
.pim-step b { display: block; color: #0f172a; margin-bottom: 4px; font-size: 14px; }

.pim-faq details {
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 0;
}
.pim-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
  list-style: none;
}
.pim-faq summary::-webkit-details-marker { display: none; }
.pim-faq p { margin: 10px 0 0; font-size: 15px; color: #475569; }

.pim-cta-band {
  background: linear-gradient(135deg, #0f766e, #115e59);
  color: #ecfdf5;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
  text-align: center;
}
.pim-cta-band h2 { color: #fff; margin: 0 0 8px; }
.pim-cta-band p { color: #99f6e4; margin: 0 0 16px; }
.pim-cta-band .pim-btn { max-width: 280px; margin: 0 auto; background: #fff; color: #0f766e !important; }

.pim-foot {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: #64748b;
  border-top: 1px solid #d8dee6;
  background: #fff;
}

.pim-sticky-m {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: #0f172a;
  z-index: 50;
}
.pim-sticky-m a {
  display: block;
  text-align: center;
  background: #14b8a6;
  color: #fff !important;
  padding: 14px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.pim-toast {
  position: fixed;
  bottom: 20px;
  left: 16px;
  right: 16px;
  max-width: 360px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  color: #fff;
  z-index: 99;
}
.pim-toast-ok { background: #0f766e; }
.pim-toast-err { background: #b91c1c; }

@media (max-width: 960px) {
  .pim-layout { grid-template-columns: 1fr; }
  .pim-rail { position: static; order: -1; }
  .pim-hero { grid-template-columns: 1fr; padding-top: 24px; }
  .pim-visual { order: -1; }
  .pim-cases { grid-template-columns: 1fr; }
  .pim-sticky-m { display: block; }
  .pim-layout { padding-bottom: 72px; }
}
