* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #f6f7f9;
  color: #1d1f23;
}

.site-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 22px 32px;
  background: white;
  border-bottom: 1px solid #e3e5e8;
}

.brand {
  font-size: 24px;
  font-weight: 800;
}

.tagline {
  color: #777;
}

main {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  margin: 28px 0 18px;
  color: #5b6572;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  color: #1f5fcc;
  text-decoration: underline;
}

.manual-detail {
  padding-bottom: 70px;
}

.product-summary {
  overflow: hidden;
  background: white;
  border: 1px solid #e1e5ea;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(29, 39, 52, .06);
}

.product-heading {
  padding: clamp(28px, 5vw, 46px);
  border-bottom: 1px solid #edf0f3;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #647184;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.product-heading h1 {
  max-width: 760px;
  margin: 0;
  color: #171b21;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #edf0f3;
}

.meta-item {
  display: flex;
  min-height: 104px;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 22px 24px;
  background: white;
}

.meta-wide {
  grid-column: span 2;
}

.detail-label {
  color: #748091;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.detail-value,
.meta-item strong {
  color: #252b33;
  font-size: 14px;
  line-height: 1.5;
}

.model-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.category-pill,
.tag,
.year-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dce2e8;
  border-radius: 999px;
  padding: 5px 10px;
  color: #465363;
  font-size: 12px;
  line-height: 1.2;
}

.category-pill {
  background: #f3f6f9;
  font-weight: 700;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.language-tag {
  background: #f5f8fb;
}

.region-tag {
  background: #faf8f4;
}

.manuals-section {
  margin-top: 44px;
}

.section-heading h2 {
  margin: 0;
  color: #1c222a;
  font-size: 26px;
  letter-spacing: -.015em;
}

.section-heading p {
  margin: 7px 0 22px;
  color: #697483;
  font-size: 15px;
}

.manual-variants {
  display: grid;
  gap: 14px;
}

.manual-variant {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 26px;
  background: white;
  border: 1px solid #e1e5ea;
  border-radius: 13px;
  box-shadow: 0 4px 14px rgba(29, 39, 52, .035);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.manual-variant:hover {
  border-color: #cbd4df;
  box-shadow: 0 8px 22px rgba(29, 39, 52, .08);
  transform: translateY(-1px);
}

.variant-main {
  min-width: 0;
  flex: 1;
}

.variant-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.variant-heading h3 {
  margin: 0;
  color: #1d232b;
  font-size: 20px;
}

.year-badge {
  background: #f5f6f8;
  color: #657181;
  font-weight: 700;
}

.variant-details {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr);
  gap: 22px;
}

.variant-detail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.manual-actions {
  display: flex;
  flex-shrink: 0;
  gap: 9px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #1f5fcc;
  border-radius: 8px;
  padding: 0 16px;
  background: #1f5fcc;
  color: white;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}

.button:hover,
.button:focus-visible {
  border-color: #174b9f;
  background: #174b9f;
}

.button.secondary {
  border-color: #d4dae2;
  background: white;
  color: #344050;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: #aeb8c5;
  background: #f7f8fa;
}

.empty-state {
  border: 1px solid #e1e5ea;
}

@media (max-width: 800px) {
  .product-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .meta-wide {
    grid-column: span 2;
  }

  .manual-variant {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
  }

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

  .manual-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 28px, 1100px);
  }

  .back-link {
    margin-top: 20px;
  }

  .product-heading {
    padding: 28px 22px;
  }

  .product-meta {
    display: block;
  }

  .meta-item,
  .meta-wide {
    min-height: auto;
    border-bottom: 1px solid #edf0f3;
  }

  .meta-item:last-child {
    border-bottom: 0;
  }

  .manual-variant {
    padding: 22px 20px;
  }

  .variant-details {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .manual-actions {
    width: 100%;
  }

  .button {
    flex: 1;
  }
}

.hero {
  padding: 70px 0 45px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin: 0 0 14px;
}

.hero p {
  color: #666;
  margin: 0 auto 30px;
  max-width: 650px;
  font-size: 18px;
}

.search-bar {
  display: flex;
  max-width: 760px;
  margin: auto;
  background: white;
  padding: 6px;
  border-radius: 12px;
  box-shadow:
    0 4px 20px rgba(0,0,0,.08);
}

.search-bar input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 15px;
  font-size: 17px;
}

.search-bar button {
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  background: #1e2329;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

.filters {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

.filter-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.filter-group select {
  width: 100%;
  padding: 11px;
  border: 1px solid #d6d9dd;
  border-radius: 7px;
  background: white;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.manual-card {
  background: white;
  border: 1px solid #e2e4e8;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 14px;
  transition:
    transform .15s ease,
    box-shadow .15s ease;
}

.manual-card:hover {
  transform: translateY(-1px);
  box-shadow:
    0 5px 18px rgba(0,0,0,.07);
}

.manual-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.manual-model {
  font-family: monospace;
  color: #555;
  margin-bottom: 10px;
}

.manual-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #eef0f3;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
}

.manual-link {
  display: inline-block;
  margin-top: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #1f5fcc;
}

.empty-state {
  padding: 50px;
  text-align: center;
  color: #888;
  background: white;
  border-radius: 10px;
}

footer {
  margin-top: 70px;
  padding: 30px;
  text-align: center;
  color: #888;
}
