.comparison-section {
  --comparison-rule: #dbe4ef;
  margin-block: 0 clamp(56px, 6.2vw, 96px);
  padding-top: clamp(32px, 3.8vw, 56px);
  border-top: 1px solid #d2dde9;
  scroll-margin-top: calc(var(--site-header-height, 79px) + 24px);
}
.compare-heading, .compare-tools { display: flex; align-items: center; gap: 18px; }
.compare-heading { justify-content: space-between; align-items: flex-end; margin-bottom: 26px; }
.compare-title { color: var(--ink); font-size: clamp(28px, 2.6vw, 42px); font-weight: 690; line-height: 1.25; letter-spacing: -.04em; }
.compare-description { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.compare-tools { gap: 18px; flex-wrap: wrap; }
.compare-toggle {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 8px 14px; border-radius: 8px; background: #f4f7fb; border: 1px solid #dce5f0;
  color: #2f3e52; font-size: 14.5px; font-weight: 540; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease;
}
.compare-toggle:hover { background: #ebf2fb; border-color: #b5c9e3; }
.compare-toggle input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.compare-copy {
  min-height: 40px; padding: 8px 16px; border: 1px solid #bfd0e4; border-radius: 8px;
  background: #fff; color: var(--blue); font-size: 14px; font-weight: 590;
  box-shadow: 0 2px 6px -2px rgb(15 31 56 / .06);
  transition: all .18s ease;
}
.compare-copy:hover { border-color: var(--blue); color: #fff; background: var(--blue); }
.compare-feedback { color: var(--blue); font-size: 14px; font-weight: 550; }
.compare-feedback:not(:empty) { margin: 0 0 14px; }
.compare-share-url { display: block; width: min(100%, 700px); margin-bottom: 14px; padding: 9px 12px; border: 1px solid var(--comparison-rule); border-radius: 8px; color: #2b4056; }
.compare-share-url[hidden] { display: none; }
.compare-table {
  border-collapse: separate; border-spacing: 0; table-layout: fixed; width: 100%;
  border: 1px solid var(--comparison-rule); border-top: 3px solid var(--navy, #142847);
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow-sm, 0 6px 20px -6px rgb(15 31 56 / .09));
  color: #202c3b; font-size: 15.5px; line-height: 1.65;
}
.compare-name-col { width: 22%; }
.compare-table th, .compare-table td { overflow-wrap: anywhere; padding: 15px clamp(14px, 2.2vw, 30px); border-bottom: 1px solid #e6edf5; border-right: 1px solid #e6edf5; text-align: left; vertical-align: top; }
.compare-table tr > :last-child { border-right: 0; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th { background: linear-gradient(180deg, #f8fafd, #f1f5fa); vertical-align: middle; border-bottom-color: #d3dfec; }
.compare-table .compare-name-head { color: #2d4057; font-weight: 660; font-size: 15px; }
.compare-table .compare-selector { padding-top: 18px; padding-bottom: 18px; }
.compare-select-label { display: block; }
.compare-slot { display: block; margin-bottom: 7px; color: #56687f; font-size: 12.5px; font-weight: 600; letter-spacing: .03em; }
.compare-model {
  display: block; max-width: 100%; width: 100%; min-height: 46px;
  padding: 8px 38px 8px 14px; border: 1px solid #bfd0e4; border-radius: 8px;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  font: inherit; font-size: clamp(18px, 1.75vw, 24px); font-weight: 680; line-height: 1.3; letter-spacing: -.025em;
  color: #143668;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2321478d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  box-shadow: 0 2px 6px -2px rgb(15 31 56 / .06);
  transition: border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.compare-model::picker-icon { display: none; }
.compare-model:hover { border-color: var(--blue); }
.compare-model:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(35 78 232 / .14); outline: none; }
.compare-model option,.compare-model optgroup { background: #fff; color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: normal; }
.compare-detail { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; color: var(--blue); font-size: 13.5px; font-weight: 580; text-underline-offset: 4px; }
.compare-detail:hover { color: var(--accent); text-decoration: underline; }
.compare-table tbody th { font-weight: 600; color: #314256; background: #f8fafd; }
.compare-table tbody td { font-variant-numeric: tabular-nums; transition: background .16s ease; }
.compare-table tbody tr:hover td { background: #f6f9fe; }
.compare-table .compare-different th { color: var(--blue); background: #edf4fc; box-shadow: inset 3px 0 0 var(--accent); }
.compare-table .compare-different td { background: #f5f9ff; font-weight: 520; }
.compare-table .compare-empty { padding: 34px 18px; color: var(--muted); text-align: center; }
.compare-totals { margin-top: 14px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.compare-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 720px) {
  .compare-heading { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 16px; }
  .compare-tools { justify-content: space-between; width: 100%; }
  .compare-name-col { width: 25%; }
  .compare-table { font-size: 14.5px; border-radius: 10px; }
  .compare-table th, .compare-table td { padding: 11px 10px; }
  .compare-table .compare-selector { padding: 12px 10px; }
  .compare-model { min-height: 42px; padding: 6px 28px 6px 10px; background-position: right 8px center; font-size: clamp(16px, 4.4vw, 21px); }
  .compare-slot, .compare-detail { font-size: 12.5px; }
}
@media (max-width: 375px) {
  .compare-name-col { width: 26%; }
  .compare-table { font-size: 13.5px; }
  .compare-table th, .compare-table td, .compare-table .compare-selector { padding-inline: 7px; }
}
