#compare {
  margin-block: 8px clamp(40px, 5vw, 76px);
  color: var(--ink);
}
.cmp-heading { margin-block-end: 20px; }
.cmp-heading h2 {
  font-size: clamp(2.1rem, 3vw, 2.95rem);
  font-weight: 700;
  letter-spacing: -.055em;
}
[dir="rtl"] .cmp-heading h2 { letter-spacing: 0; line-height: 1.4; }
.cmp-heading p { margin-block-start: 6px; color: var(--muted); }
.cmp-selectors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-block-end: 16px;
}
.cmp-card {
  display: grid;
  grid-template-columns: minmax(90px, 37%) minmax(0, 1fr);
  gap: clamp(10px, 2vw, 30px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f7fc;
  padding: clamp(12px, 1.6vw, 24px);
}
.cmp-card:nth-child(2) { background: #f4f8f6; }
.cmp-art { display: grid; place-items: center; min-width: 0; }
.cmp-art img {
  width: 100%; height: clamp(102px, 10vw, 150px);
  object-fit: contain; filter: drop-shadow(0 4px 3px #152e4215);
}
.cmp-fields { min-width: 0; }
.cmp-fields label { display: block; margin-block: 9px 3px; font-size: .875rem; font-weight: 600; }
.cmp-fields label:first-child { margin-block-start: 0; }
.cmp-select { position: relative; }
.cmp-select::after {
  position: absolute; content: ""; top: 43%; inset-inline-end: 12px; width: 6px; height: 6px;
  border: solid #405472; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none;
}
.cmp-select select {
  display: block; width: 100%; min-width: 0; height: 41px;
  border: 1px solid #ccd7e5; border-radius: 7px; appearance: none; cursor: pointer;
  padding: 0 28px 0 10px; text-overflow: ellipsis; background: #fff; color: var(--ink); font-size: .92rem;
}
[dir="rtl"] .cmp-select select { padding: 0 10px 0 28px; text-align: right; }
.cmp-table { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.cmp-table table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cmp-table th, .cmp-table td { padding: 10px 15px; text-align: start; overflow-wrap: anywhere; }
.cmp-table thead th { background: #ecf1f8; color: var(--navy); font-size: 1rem; vertical-align: top; }
.cmp-table thead th:first-child { width: 30%; }
.cmp-table thead th small { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; margin-block-start: 2px; }
.cmp-table tbody th, .cmp-table tbody td { border-top: 1px solid var(--line); font-size: .94rem; }
.cmp-table th[scope="row"] { font-weight: 500; color: var(--muted); }
.cmp-table td { font-weight: 600; }
.cmp-table .cmp-group th { background: #f4f7fa; padding-block: 9px; }
.cmp-group small { margin-inline-start: 8px; font-weight: 400; color: var(--muted); }
@media (max-width: 630px) {
  .cmp-card { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px; }
  .cmp-selectors { gap: 8px; margin-block-end: 10px; }
  .cmp-art img { width: 80%; height: 100px; }
  .cmp-fields label { font-size: .875rem; }
  .cmp-select select { height: 39px; font-size: .86rem; padding-inline-start: 7px; }
  .cmp-table th, .cmp-table td { padding: 9px 7px; }
  .cmp-table thead th, .cmp-table tbody th, .cmp-table tbody td { font-size: .875rem; }
  .cmp-table th:first-child { width: 29%; }
  .cmp-table .cmp-group small { font-size: .78rem; }
}
