:root {
  --page-background: #fff;
  --surface-background: #f5f5f5;
  --primary-color: #e60023;
  --text-color: #252525;
  --muted-color: #777;
  --border-color: #e5e5e5;
  --container-width: 1120px;
  --content-width: 1120px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page-background);
  color: var(--text-color);
  font:
    15px/1.55 Arial,
    Helvetica,
    sans-serif;
}
a {
  color: var(--primary-color);
  text-decoration: none;
}
img {
  max-width: 100%;
  object-fit: contain;
  vertical-align: middle;
}
.site-header {
  border-bottom: 1px solid #eee;
  background: white;
}
.masthead {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px;
  gap: 16px;
}
.masthead > a {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.masthead img {
  display: block;
  width: 54px;
  height: 54px;
}
.account {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.account a {
  white-space: nowrap;
}
.account a,
.action a,
.banner a,
.review > a {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  border-radius: 6px;
  padding: 11px 20px;
  font-weight: bold;
  text-align: center;
}
.account a:last-child {
  background: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}
.site-header nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 12px;
  flex-wrap: wrap;
}
.site-header nav a {
  color: #222;
  font-size: 13px;
  font-weight: bold;
}
main {
  max-width: var(--content-width);
  margin: auto;
  padding: 20px 12px 50px;
}
.breadcrumbs {
  font-size: 11px;
  color: var(--muted-color);
  margin-bottom: 10px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
h1 {
  font-size: 32px;
}
h2 {
  font-size: 23px;
}
h3 {
  font-size: 18px;
}
p {
  margin: 0 0 15px;
}
main section {
  margin-bottom: 24px;
}
main > section:first-of-type p:nth-of-type(1),
main > section:first-of-type p:nth-of-type(2) {
  font-size: 12px;
  color: var(--muted-color);
}
.contents {
  background: #eee;
  max-width: 360px;
  padding: 10px 18px;
  margin: 16px 0;
}
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f5f5f5;
  border-left: 4px solid var(--primary-color);
  padding: 14px 18px;
  margin: 15px 0;
}
.ranking {
  margin: 20px 0 36px;
}
.ranking article,
.review {
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 4px 16px #0000000a;
  overflow: hidden;
  margin-bottom: 12px;
  background: white;
}
.ranking article {
  border-left: 3px solid var(--primary-color);
}
.offer {
  display: grid;
  grid-template-columns: 30px 145px minmax(0, 1fr) 185px;
  gap: 14px;
  align-items: center;
  padding: 22px 18px 10px;
}
.rank {
  color: var(--primary-color);
  font-size: 24px;
  text-align: center;
}
.offer img {
  width: 145px;
  height: 65px;
}
.offer strong,
.review strong {
  display: block;
  font-size: 17px;
}
.offer p {
  font-size: 12px;
  margin: 5px 0;
  color: #555;
}
.offer small,
.review small {
  display: inline-block;
  background: #ffe8eb;
  color: var(--primary-color);
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 12px;
}
.action {
  text-align: center;
}
.action a {
  display: block;
  margin-top: 8px;
}
.stars {
  color: var(--primary-color);
  font-size: 13px;
}
.legal {
  font-size: 10px;
  color: #999;
  margin: 4px 18px 12px;
}
.ranking details {
  background: #f5f5f5;
  text-align: center;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: bold;
  padding: 10px;
}
.ranking details p {
  color: #555;
  margin: 8px;
}
summary {
  cursor: pointer;
}
.review {
  padding: 18px;
  margin: 16px 0 30px;
}
.review header {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #f8f8f8;
  margin: -18px -18px 18px;
  padding: 15px 18px;
}
.review header img {
  width: 120px;
  height: 55px;
}
.review ul {
  columns: 2;
  list-style: none;
  padding: 0;
}
.review li {
  break-inside: avoid;
  margin-bottom: 8px;
}
.review li:before {
  content: "✓";
  color: var(--primary-color);
  margin-right: 8px;
}
.review > a {
  display: table;
  margin-left: auto;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: center;
  font-size: 13px;
  border-top: 2px solid var(--primary-color);
}
th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
}
tbody tr:nth-child(even) {
  background: #fafafa;
}
.faq {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 5px;
  padding: 12px 15px;
  font-size: 14px;
}
.faq p {
  margin: 12px 0 0;
}
.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 840px;
}
.related a {
  background: #222;
  color: white;
  border-radius: 10px;
  overflow: hidden;
}
.related img {
  width: 100%;
  height: 125px;
  object-fit: cover;
}
.related strong {
  display: block;
  padding: 12px;
}
footer {
  padding: 25px 12px;
  text-align: center;
  background: #fafafa;
  font-size: 12px;
}
footer nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.warning {
  background: #ffe500;
  color: #111;
  max-width: 570px;
  margin: 0 auto 20px;
  padding: 10px;
  font-weight: bold;
}
@media (max-width: 700px) {
  body {
    font-size: 14px;
  }
  .masthead {
    justify-content: space-between;
    min-height: 70px;
    padding: 12px;
    gap: 8px;
  }
  .masthead img {
    width: 42px;
    height: 42px;
  }
  .account {
    gap: 6px;
  }
  .account a {
    padding: 9px 12px;
    font-size: 12px;
  }
  .site-header nav {
    gap: 10px;
    padding: 8px;
  }
  .site-header nav a {
    font-size: 11px;
  }
  h1 {
    font-size: 25px;
  }
  h2 {
    font-size: 21px;
  }
  .offer {
    grid-template-columns: 22px 95px 1fr;
    gap: 8px;
    padding: 14px 10px;
  }
  .offer img {
    width: 95px;
    height: 50px;
  }
  .offer strong {
    font-size: 14px;
  }
  .action {
    grid-column: 2/4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
  }
  .action a {
    margin: 0;
    padding: 9px 12px;
    flex: 1;
  }
  .review ul {
    columns: 1;
  }
  .banner {
    flex-wrap: wrap;
  }
  .related {
    grid-template-columns: 1fr;
  }
  .related img {
    height: 150px;
  }
  th,
  td {
    padding: 8px;
    min-width: 110px;
  }
}
