:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-strong: #f0eadf;
  --ink: #171717;
  --muted: #65615b;
  --line: #ded7ca;
  --red: #d9243d;
  --green: #0d7f68;
  --gold: #b7812f;
  --blue: #1e5b8f;
  --shadow: 0 18px 50px rgba(35, 28, 20, 0.12);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(217, 36, 61, 0.07), transparent 330px),
    radial-gradient(circle at top right, rgba(13, 127, 104, 0.11), transparent 360px),
    var(--bg);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(222, 215, 202, 0.78);
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(12px);
}

.header-inner,
.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--surface-strong);
  color: var(--ink);
}

.hero {
  padding: 52px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.88fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(36px, 6vw, 68px);
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 36px);
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.lead {
  margin: 18px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.visual-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.visual-card img {
  display: block;
  width: 100%;
  height: auto;
}

main section {
  padding: 38px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 20px;
}

.section-head p,
.copy p,
.copy li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

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

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

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

.card,
.ranking,
.table-wrap,
.callout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card {
  padding: 20px;
}

.ranking {
  overflow: hidden;
}

.ranking-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.ranking-row:first-child {
  border-top: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 5px 9px;
  background: rgba(13, 127, 104, 0.11);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.tag.warn {
  background: rgba(183, 129, 47, 0.15);
  color: var(--gold);
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  background: var(--surface-strong);
  font-size: 13px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.callout {
  padding: 22px;
  border-color: rgba(217, 36, 61, 0.28);
  background: #fff7f4;
}

.breadcrumbs {
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  text-decoration: none;
}

.footer {
  margin-top: 30px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #eee8dc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  padding-left: 18px;
  position: relative;
}

.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px 18px;
}

details + details {
  margin-top: 12px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-grid,
  .grid.three,
  .grid.two,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .wrap {
    width: min(100% - 22px, 1120px);
  }

  h1 {
    font-size: 34px;
  }

  .button {
    width: 100%;
  }

  th,
  td {
    padding: 12px 10px;
    font-size: 14px;
  }
}
