:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --ink: #17211b;
  --muted: #66736b;
  --line: #dce3dd;
  --accent: #167a5b;
  --accent-dark: #0d523d;
  --amber: #d99a2b;
  --blue: #256b8f;
  --radius: 8px;
  --shadow: 0 14px 40px rgba(20, 37, 28, 0.08);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 650;
}

nav a {
  text-decoration: none;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  min-height: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 44px;
  align-items: center;
}

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

.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.12rem;
}

.eyebrow,
.tag {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.home-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.panel-row:last-child {
  border-bottom: 0;
}

.panel-row span {
  color: var(--muted);
}

.trust-grid,
.cards {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-grid article,
.guide-card,
.notice,
.product-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.trust-grid article {
  padding: 24px;
}

.trust-grid h2,
.guide-card h3 {
  margin-top: 0;
}

.trust-grid p,
.guide-card p,
.content-page p {
  color: var(--muted);
}

.section-heading,
.article-layout {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto 24px;
}

.section-heading.wide,
.directory-layout {
  width: min(1120px, calc(100% - 32px));
}

.directory-layout {
  margin: 56px auto 72px;
}

.section-heading h2,
.section-heading h1,
.content-page h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.guide-card {
  overflow: hidden;
}

.guide-card.muted {
  opacity: 0.72;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.guide-list-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.guide-list-card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.guide-list-card a {
  text-decoration: none;
}

.guide-list-card p:last-child {
  color: var(--muted);
}

.card-media {
  min-height: 170px;
  background: linear-gradient(135deg, var(--accent), #dfe8df);
}

.card-media.gps {
  background: linear-gradient(135deg, var(--blue), #e3edf1);
}

.card-media.lock {
  background: linear-gradient(135deg, var(--amber), #f2eadc);
}

.card-media.lights {
  background: linear-gradient(135deg, #ffe27a, #263238);
}

.card-media.trainer {
  background: linear-gradient(135deg, #7c8b93, #dce3dd);
}

.card-media.shoes {
  background: linear-gradient(135deg, #8f2d56, #f2e3eb);
}

.card-body {
  padding: 22px;
}

.card-body a {
  text-decoration: none;
}

.site-footer {
  min-height: 92px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.article-layout {
  margin-top: 56px;
}

.content-page {
  margin-bottom: 72px;
}

.lead {
  font-size: 1.16rem;
}

.content-page h2 {
  margin-top: 42px;
  font-size: 1.8rem;
}

.notice {
  padding: 18px;
  border-color: #ead49b;
  background: #fff8e6;
  color: #5e4510;
}

.verdict-box {
  padding: 24px;
  margin: 28px 0;
  border: 1px solid #bdd8cd;
  border-radius: var(--radius);
  background: #edf7f2;
}

.article-visual {
  margin: 30px 0;
}

.article-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article-visual figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-visual img {
  aspect-ratio: 2 / 1;
}

.verdict-box h2 {
  margin-top: 0;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.evidence-grid div {
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.evidence-grid strong,
.evidence-grid span {
  display: block;
}

.evidence-grid strong {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.evidence-grid span,
.sources li {
  color: var(--muted);
}

.content-page li {
  margin: 8px 0;
}

.recommendation-table {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0;
}

.recommendation-table div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.recommendation-table strong,
.recommendation-table span {
  display: block;
}

.recommendation-table strong {
  margin-bottom: 8px;
}

.recommendation-table span {
  color: var(--muted);
  font-size: 0.93rem;
}

.sources a {
  color: var(--accent-dark);
  font-weight: 700;
}

.related-guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.related-guides h2 {
  grid-column: 1 / -1;
  margin: 0;
}

.related-guides a {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  width: fit-content;
  min-height: 46px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.hidden-field {
  display: none;
}

.product-block {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  margin: 24px 0;
}

.product-image {
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #eef1ed;
  color: var(--muted);
  font-weight: 800;
}

.product-info h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.specs,
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.specs span {
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.ratings {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.ratings label {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.ratings span {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--score), #e8eee9 var(--score));
}

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

.price-grid a {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(420px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cookie-banner button {
  min-width: 48px;
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 820px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .hero,
  .trust-grid,
  .cards,
  .directory-grid,
  .related-guides,
  .product-block,
  .evidence-grid,
  .recommendation-table {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 48px 0;
  }

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

  .ratings label {
    grid-template-columns: 1fr;
  }
}
