:root {
  --ink: #111827;
  --muted: #667085;
  --paper: #f4f6f8;
  --panel: #ffffff;
  --line: #dde3ea;
  --line-strong: #c7d0db;
  --accent: #f58220;
  --accent-dark: #b65008;
  --forest: #123c3b;
  --steel: #1f2937;
  --blueprint: #0f2f4a;
  --shadow: 0 16px 34px rgba(17, 24, 39, .10);
  --soft-shadow: 0 8px 22px rgba(17, 24, 39, .055);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(221, 227, 234, .92);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
  max-width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(142px, 18vw, 210px);
  min-width: 136px;
}

.brand img {
  width: 100%;
  height: auto;
}

nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a,
.text-link,
.section-title a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

nav a:hover,
.text-link:hover {
  color: var(--accent);
}

.hero,
.article-hero {
  max-width: 100%;
  color: white;
  background:
    linear-gradient(105deg, rgba(12, 21, 30, .96) 0%, rgba(15, 47, 74, .82) 52%, rgba(18, 60, 59, .56) 100%),
    url("https://images.unsplash.com/photo-1504148455328-c376907d081c?auto=format&fit=crop&w=1800&q=82") center/cover;
}

.hero {
  min-height: 380px;
  display: grid;
  align-items: end;
  padding: 72px clamp(18px, 5vw, 76px);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.hero > div {
  max-width: 840px;
}

.article-hero {
  width: min(1040px, calc(100% - 32px));
  margin: 28px auto 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 290px);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  padding: clamp(28px, 4.5vw, 52px);
}

.article-hero-split > *,
.product-block > *,
.article-card > * {
  min-width: 0;
}

.article-hero-split > div {
  align-self: end;
}

.hero-product {
  margin: 0;
  align-self: center;
  max-width: 290px;
  justify-self: end;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  padding: 12px;
}

.hero-product img {
  width: 100%;
  height: clamp(170px, 22vw, 230px);
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.hero-product figcaption {
  padding: 12px 4px 2px;
  color: #fff6e8;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow,
.rank {
  color: var(--accent);
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .77rem;
}

h1 {
  margin: 8px 0 18px;
  font-size: clamp(2.25rem, 5.1vw, 4.5rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  margin: 0 0 16px;
  font-weight: 950;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h3 {
  font-size: 1.08rem;
  font-weight: 900;
}

p {
  color: var(--muted);
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.hero p,
.article-hero p {
  color: #edf4f6;
  font-size: 1.04rem;
  max-width: 780px;
}

.content-wrap,
.article-page,
.admin-layout {
  width: min(1040px, calc(100% - 32px));
  margin: 40px auto;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}

.section-title h2 {
  margin-bottom: 0;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.article-card {
  display: grid;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.article-card-media {
  display: block;
  background: #d8dee6;
}

.article-card-media img {
  width: 100%;
  height: 148px;
  object-fit: contain;
  padding: 14px;
  background: linear-gradient(180deg, #f9fafb, #eef2f6);
}

.article-card-body {
  padding: 16px;
}

.article-card span,
.admin-list span {
  display: inline-flex;
  color: var(--forest);
  background: #e7f3ef;
  border: 1px solid #cbe3dc;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 12px 0 8px;
  font-size: 1.12rem;
  line-height: 1.28;
}

.article-card a {
  color: var(--ink);
  text-decoration: none;
}

.article-card p {
  margin-bottom: 18px;
}

.comparison,
.buying-guide {
  margin: 38px 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th {
  color: var(--steel);
  background: #eef2f6;
  font-size: .78rem;
  text-transform: uppercase;
}

th,
td {
  text-align: left;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

tbody tr:hover {
  background: #fbfcfd;
}

.product-list {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.product-block {
  display: grid;
  grid-template-columns: minmax(160px, 230px) 1fr;
  gap: 18px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--soft-shadow);
}

.product-block img {
  width: 100%;
  height: 178px;
  object-fit: contain;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #eef2f6);
  border: 1px solid #e5ebf1;
  padding: 12px;
}

.product-block h2 {
  margin-top: 5px;
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.pros-cons div,
.buying-guide > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--soft-shadow);
}

.buying-guide {
  display: grid;
  gap: 16px;
}

ul {
  margin: 0;
  padding-left: 18px;
}

li {
  margin: 6px 0;
  color: var(--steel);
}

.cta,
.admin-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-weight: 950;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(245, 130, 32, .22);
}

.cta:hover,
.admin-panel button:hover {
  background: var(--accent-dark);
}

.hero-cta {
  margin-top: 18px;
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.internal-links h2 {
  flex-basis: 100%;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 24px;
  align-items: start;
}

.admin-panel,
.admin-list a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-panel {
  padding: 24px;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

input,
select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: white;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-list a {
  display: grid;
  gap: 4px;
  padding: 16px;
  color: var(--ink);
  text-decoration: none;
}

.admin-list small {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px clamp(18px, 4vw, 56px);
  background: #fff;
}

@media (max-width: 820px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  .site-header,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    width: 168px;
  }

  .hero {
    min-height: 340px;
    padding-top: 64px;
  }

  .article-hero-split,
  .product-block,
  .admin-layout,
  .pros-cons {
    grid-template-columns: 1fr;
  }

  .article-hero {
    width: min(100% - 20px, 1040px);
    margin-top: 18px;
  }

  .hero-product {
    justify-self: stretch;
    max-width: 100%;
  }

  .content-wrap,
  .article-page,
  .admin-layout {
    width: min(100% - 20px, 1040px);
  }

  .article-card-media img {
    height: 140px;
  }

  .product-block img {
    height: 176px;
  }
}

@media (max-width: 520px) {
  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--panel);
  }

  td {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    overflow-wrap: anywhere;
  }

  td::before {
    content: attr(data-label);
    color: var(--steel);
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .article-card-body,
  .product-block,
  .buying-guide > div {
    padding: 16px;
  }
}
