:root {
  --ink: #070707;
  --muted: #4f5358;
  --soft-muted: #6b6f75;
  --line: #dedede;
  --paper: #ffffff;
  --wash: #fbfbfb;
  --accent: #ffb000;
  --accent-deep: #f1a000;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.38;
}

a {
  color: inherit;
}

.advertorial-bar {
  height: 36px;
  display: grid;
  place-items: center;
  background: #050505;
  color: #fff;
  font-size: 14px;
}

.site-header {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(28px, 4.8vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.brand {
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.3vw, 52px);
  height: 100%;
  color: #0d0d0d;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  background: var(--accent);
}

.search-button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.search-button svg,
.best-for svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.page-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 20px 20px;
}

.intro {
  max-width: 720px;
  margin: 0 0 14px;
}

.intro h1 {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: 0;
}

.intro p {
  margin: 0;
  color: #111;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 46px;
  align-items: start;
}

.reviews {
  display: grid;
  gap: 5px;
}

.product-row {
  min-height: 126px;
  display: grid;
  grid-template-columns: 48px 138px minmax(250px, 1fr) 270px;
  align-items: center;
  gap: 18px;
  padding: 10px 16px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #050505;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.product-image {
  position: relative;
  height: 108px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-image.xiaomi img {
  max-height: 118px;
}

.product-image.topdon img {
  max-width: 128px;
}

.product-copy h2 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.2;
}

.product-copy ul {
  margin: 0;
  padding-left: 17px;
  color: #111;
  font-size: 14px;
  line-height: 1.38;
}

.best-for {
  display: grid;
  gap: 8px;
  justify-items: start;
  align-content: center;
}

.best-for > span {
  font-size: 13px;
  font-weight: 800;
}

.best-for div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
}

.best-for p {
  margin: 0;
  font-size: 14px;
}

.shop-link {
  min-width: 164px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid #e09900;
  border-radius: 4px;
  background: var(--accent);
  color: #050505;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.14);
}

.shop-link:hover {
  background: var(--accent-deep);
}

.price-note {
  margin: 5px 12px 0;
  color: var(--soft-muted);
  font-size: 13px;
}

.sidebar {
  display: grid;
  gap: 14px;
}

.side-box {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.side-box h2 {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.23;
}

.checklist {
  display: grid;
  gap: 17px;
}

.checklist article {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
}

.check {
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  margin-top: 3px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.checklist h3 {
  margin: 0 0 2px;
  font-size: 16px;
  line-height: 1.2;
}

.checklist p,
.disclosure p {
  margin: 0;
  color: #222;
  font-size: 14px;
  line-height: 1.38;
}

.disclosure p + p {
  margin-top: 12px;
}

.company-details {
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 40px;
  margin-top: 0;
  padding: 24px clamp(28px, 5vw, 82px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.site-footer p {
  max-width: 300px;
  margin: 0;
  color: #111;
  font-size: 14px;
}

.site-footer nav {
  display: grid;
  gap: 5px;
  align-content: start;
  font-size: 14px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .site-header {
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 12px;
  }

  .main-nav {
    gap: 24px;
    height: 36px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  .advertorial-bar {
    height: 34px;
  }

  .page-shell {
    padding: 24px 14px 18px;
  }

  .intro h1 {
    font-size: 22px;
  }

  .product-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .rank {
    align-self: start;
  }

  .product-image {
    width: 150px;
    max-width: 100%;
    grid-column: 2;
    grid-row: 1;
  }

  .product-copy {
    grid-column: 1 / -1;
  }

  .best-for {
    grid-column: 1 / -1;
    padding-left: 54px;
  }

  .sidebar,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 24px 20px;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 22px;
  }

  .main-nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    font-size: 14px;
  }

  .side-box {
    padding: 20px;
  }
}

.legal-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 52px 20px 80px;
}

.legal-page h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
}

.legal-page h2 {
  margin-top: 30px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.contact-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}
