:root {
  color-scheme: light;
  --bg: #f5f7f6;
  --panel: #ffffff;
  --text: #17211d;
  --muted: #66736d;
  --line: #dbe2de;
  --accent: #1f6f5b;
  --accent-strong: #155240;
  --soft: #eaf2ef;
  --tag: #eef1f0;
  --shadow: 0 16px 40px rgba(23, 33, 29, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header,
main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 22px 0 12px;
}

.brand {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
  font-size: 1.02rem;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

.nav-links a {
  border-radius: 6px;
  color: var(--muted);
  padding: 7px 9px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--soft);
  color: var(--accent-strong);
}

.hero {
  display: flex;
  align-items: end;
  min-height: 250px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.76)),
    url("https://images.unsplash.com/photo-1542291026-7eec264c27ff?auto=format&fit=crop&w=1800&q=80") center / cover;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 8px;
  max-width: 760px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

section {
  margin: 26px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.35rem;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.category-card,
button,
select,
input {
  font: inherit;
}

.category-card {
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-weight: 750;
  box-shadow: 0 8px 24px rgba(23, 33, 29, 0.05);
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.category-card:hover,
.category-card.active {
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.sort-bar {
  display: flex;
  justify-content: flex-end;
}

.sort-bar label {
  width: min(230px, 100%);
}

.sort-bar select {
  background: var(--panel);
}

.muted-text {
  color: var(--muted);
  font-size: 0.9rem;
}

.shoe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.shoe-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  box-shadow: 0 12px 28px rgba(23, 33, 29, 0.06);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

select,
input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
}

.shoe-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.shoe-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.shoe-price {
  color: var(--accent-strong);
  font-size: 1.02rem;
  white-space: nowrap;
}

.year-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.category-summary {
  display: grid;
  grid-template-columns: minmax(105px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  align-items: start;
}

.category-block {
  display: grid;
  gap: 5px;
}

.field-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.primary-category {
  color: var(--text);
  font-size: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--tag);
  color: #3d4a45;
  font-size: 0.78rem;
  font-weight: 750;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-block {
  display: grid;
  justify-items: center;
  margin-top: -2px;
}

.radar-wrap {
  display: grid;
  place-items: center;
  width: 100%;
}

.radar {
  width: min(172px, 100%);
  height: auto;
  overflow: visible;
}

.radar text {
  fill: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.deal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.deal-link--disabled {
  background: #c9d0cc;
  color: #66736d;
  cursor: not-allowed;
}

.empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  text-align: center;
}

.show-more-controls {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 18px;
}

.show-more-controls[hidden] {
  display: none;
}

.show-more-controls p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.show-more-button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  font-weight: 800;
  cursor: pointer;
}

.show-more-button:hover,
.show-more-button:focus-visible {
  background: var(--accent-strong);
}

.shoe-section-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.shoe-section-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.shoe-section-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.newsletter-section {
  margin-top: 34px;
}

.newsletter-card {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
  box-shadow: 0 12px 28px rgba(23, 33, 29, 0.06);
}

.newsletter-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.newsletter-card p {
  margin: 0;
  color: var(--muted);
}

.newsletter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.newsletter-disclosure {
  font-size: 0.86rem;
}

.newsletter-disclosure a {
  color: var(--accent-strong);
  font-weight: 800;
}

.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0 0 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.site-footer a {
  color: var(--accent-strong);
  font-weight: 800;
}

.policy-page,
.article-page {
  max-width: 820px;
  margin: 30px auto 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 34px;
  box-shadow: 0 12px 28px rgba(23, 33, 29, 0.06);
}

.policy-page h1,
.article-page h1 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
}

.policy-page section,
.article-page section {
  margin: 24px 0 0;
}

.policy-page h2,
.article-page h2 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.article-page h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
}

.policy-page p,
.article-page p {
  margin: 0 0 12px;
  color: #3d4a45;
}

.article-page ul {
  margin: 0 0 14px 20px;
  padding: 0;
  color: #3d4a45;
}

.article-page li {
  margin: 6px 0;
}

.blog-table-wrap {
  width: 100%;
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.blog-comparison-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
}

.blog-comparison-table th,
.blog-comparison-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}

.blog-comparison-table th {
  background: var(--soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.blog-comparison-table tr:last-child td {
  border-bottom: 0;
}

.blog-radar-block {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 22px 0;
}

.blog-radar-chart {
  width: min(430px, 100%);
  height: auto;
  overflow: visible;
}

.blog-radar-chart text {
  fill: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.blog-radar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.blog-radar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
}

.blog-radar-legend-item span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.blog-affiliate-links {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.blog-affiliate-group {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 14px;
}

.blog-affiliate-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-affiliate-group a,
.blog-affiliate-unavailable {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: 800;
}

.blog-affiliate-group a {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.blog-affiliate-group a:hover,
.blog-affiliate-group a:focus-visible {
  background: var(--accent-strong);
}

.blog-affiliate-unavailable {
  background: #d7ddd9;
  color: var(--muted);
  cursor: not-allowed;
}

.blog-page {
  margin: 30px auto 48px;
}

.blog-heading {
  max-width: 720px;
  margin-bottom: 18px;
}

.blog-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
}

.blog-heading p {
  margin: 0;
  color: var(--muted);
}

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

.blog-card {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(23, 33, 29, 0.06);
}

.blog-card > :not(.blog-card__image-link) {
  margin-left: 22px;
  margin-right: 22px;
}

.blog-card > :last-child {
  margin-bottom: 22px;
}

.blog-card__image-link {
  display: block;
}

.blog-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--soft);
}

.blog-card h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.blog-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.blog-card h2 a:hover,
.blog-card h2 a:focus-visible,
.read-link:hover,
.read-link:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  color: var(--accent-strong);
}

.blog-card p {
  margin: 0;
  color: #3d4a45;
}

.blog-card__meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.blog-card__meta span,
.article-meta span {
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-strong);
  padding: 2px 8px;
}

.read-link,
.back-link {
  color: var(--accent-strong);
  font-weight: 800;
}

.blog-article h1 {
  margin-top: 10px;
}

.article-excerpt {
  max-width: 720px;
  font-size: 1.04rem;
  font-weight: 700;
}

.blog-article section > h2 {
  margin-top: 28px;
}

.blog-article section > h2:first-child {
  margin-top: 0;
}

.article-image {
  display: block;
  width: 100%;
  max-height: 430px;
  margin: 18px 0 24px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.shoe-detail-page {
  max-width: 980px;
}

.shoe-detail-page h1 {
  margin-top: 10px;
  margin-bottom: 22px;
}

.detail-title-price {
  color: var(--muted);
  font-weight: 700;
}

.shoe-detail-page .radar-data-table-wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.shoe-detail-page .radar-data-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
}

.shoe-detail-page .radar-data-table th,
.shoe-detail-page .radar-data-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: center;
  vertical-align: top;
  font-size: 0.92rem;
}

.shoe-detail-page .radar-data-table th {
  background: var(--soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.shoe-detail-page .radar-data-table th:first-child,
.shoe-detail-page .radar-data-table td:first-child {
  width: 45%;
}

.shoe-detail-page .radar-data-table th:last-child,
.shoe-detail-page .radar-data-table td:last-child {
  width: 55%;
}

.shoe-detail-page .radar-data-table tr:last-child td {
  border-bottom: 0;
}

.score-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.article-page .score-list li {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  padding: 8px 10px;
  color: var(--accent-strong);
  font-weight: 800;
  text-align: center;
}

.detail-radar-panel {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.detail-radar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 520px;
  margin: 24px auto;
}

.detail-radar {
  width: min(420px, 100%);
  height: auto;
  overflow: visible;
}

.detail-radar text {
  fill: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.radar-note {
  max-width: 620px;
  text-align: center;
}

.top-deal-block {
  margin: 24px 0 34px;
  text-align: center;
}

.top-deal-block .detail-deal-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-deal-block .deal-link {
  width: auto;
  min-width: 140px;
  max-width: 220px;
  min-height: 40px;
  padding: 8px 18px;
}

.top-deal-block .deal-link--disabled {
  width: auto;
  min-width: 160px;
  max-width: 220px;
}

.deal-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.comparison-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.comparison-header h2 {
  margin: 0;
}

.comparison-switch {
  display: inline-flex;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  background: #fff;
}

.comparison-mode {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 800;
}

.comparison-mode.active {
  background: var(--accent);
  color: #fff;
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comparison-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  background: #fff;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 10px 12px;
  text-align: center;
  vertical-align: middle;
  font-size: 0.9rem;
}

.comparison-table th:first-child {
  width: 180px;
  background: var(--soft);
  color: var(--accent-strong);
  text-align: left;
}

.comparison-table th:last-child,
.comparison-table td:last-child {
  border-right: 0;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: 0;
}

.comparison-table thead th {
  background: var(--soft);
  color: var(--accent-strong);
}

.comparison-table thead th a,
.comparison-table thead th span {
  display: block;
}

.comparison-table thead th a {
  color: var(--accent-strong);
  text-decoration: none;
}

.comparison-table thead th span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.comparison-radar-view {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.comparison-radar-view[hidden],
.comparison-table-view[hidden] {
  display: none;
}

.comparison-radar-wrap {
  display: grid;
  place-items: center;
  width: 100%;
}

.comparison-radar {
  width: min(480px, 100%);
  height: auto;
  overflow: visible;
}

.comparison-radar text {
  fill: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.comparison-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  width: min(620px, 100%);
}

.comparison-legend-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.comparison-legend-item span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.comparison-legend-item strong {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.2;
}

.detail-deal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-callout {
  margin: 30px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 20px;
}

.tool-callout h2 {
  margin: 0 0 8px;
}

.tool-callout p {
  margin: 0 0 14px;
}

.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1160px);
  }

  .hero {
    min-height: 220px;
    padding: 28px;
  }

  .topbar {
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .shoe-grid {
    grid-template-columns: 1fr;
  }

  .shoe-section-header {
    display: grid;
    gap: 12px;
  }

  .sort-bar,
  .sort-bar label {
    width: 100%;
  }

  .category-summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .newsletter-button {
    width: 100%;
  }

  .policy-page,
  .article-page {
    padding: 24px;
  }

  .shoe-detail-page .radar-data-table-wrap {
    max-width: 100%;
  }

  .shoe-detail-page .radar-data-table th,
  .shoe-detail-page .radar-data-table td {
    padding: 9px 10px;
    font-size: 0.9rem;
  }

  .comparison-header {
    display: grid;
  }

  .comparison-switch {
    width: 100%;
  }

  .comparison-mode {
    flex: 1;
  }

  .comparison-table {
    min-width: 760px;
  }

  .comparison-legend {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 500px) {
  .top-deal-block .detail-deal-row {
    display: grid;
    gap: 8px;
  }

  .top-deal-block .deal-link {
    width: 100%;
    max-width: 280px;
    justify-self: center;
  }
}

@media (max-width: 400px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .score-list {
    grid-template-columns: 1fr;
  }
}
