:root {
  --brand: #475878;
  --brand-dark: #2f3f5b;
  --text: #1f2937;
  --muted: #667085;
  --bg: #f6f8fb;
  --white: #ffffff;
  --line: #e4e9f2;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.10);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(228, 233, 242, 0.85);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0;
}

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

.brand small {
  color: var(--muted);
  font-size: 13px;
}

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

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

.top-nav a[aria-current="page"],
.top-nav a:hover {
  background: #eef2f8;
  color: var(--brand-dark);
}

.nav-shop {
  border: 1px solid var(--line);
  color: var(--brand-dark) !important;
}

main {
  min-height: 72vh;
}

.hero,
.page-hero,
.product-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 34px;
  align-items: center;
  padding: clamp(42px, 7vw, 86px) 0 42px;
}

.hero-copy h1,
.page-hero h1,
.product-copy h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p,
.page-hero p,
.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.cta-row,
.index-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
}

.button.primary {
  color: var(--white);
  background: var(--brand);
  box-shadow: 0 12px 24px rgba(71, 88, 120, 0.25);
}

.button.primary:hover {
  background: var(--brand-dark);
}

.button.secondary {
  color: var(--brand-dark);
  background: var(--white);
  border-color: var(--line);
}

.hero-panel,
.detail-card,
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 30px;
}

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

.hero-panel strong {
  display: block;
  margin: 12px 0 4px;
  color: var(--brand-dark);
  font-size: 54px;
  line-height: 1;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 70px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 28px;
}

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

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

.language-card {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  text-decoration: none;
}

.language-card strong,
.language-card span,
.language-card small {
  display: block;
}

.language-card span {
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 700;
}

.language-card small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.language-card .language-code {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef2f8;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.language-card strong {
  padding-right: 42px;
}

.page-hero {
  padding: 38px 0 22px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--brand-dark);
  text-decoration: none;
}

.page-count {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.product-list {
  display: grid;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 70px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 16px;
  text-decoration: none;
}

.product-card h2 {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.3;
}

.product-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.product-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.product-page {
  padding: 34px 0 70px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 34px;
  align-items: center;
}

.stock-line {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-weight: 700;
}

.product-media {
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 28px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.product-media img {
  display: block;
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.no-image {
  color: var(--muted);
  text-align: center;
}

.product-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 18px;
  margin-top: 26px;
}

.detail-card {
  padding: 24px;
}

.detail-card h2,
.why-band h2,
.similar-section h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

.specs-card dl {
  margin: 0;
}

.specs-card div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.specs-card div:last-child {
  border-bottom: 0;
}

.specs-card dt {
  color: var(--muted);
}

.specs-card dd {
  margin: 0;
  font-weight: 700;
}

.why-band {
  margin-top: 20px;
  padding: 26px;
  border-radius: 16px;
  background: var(--brand-dark);
  color: var(--white);
}

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

.why-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.similar-section {
  margin-top: 28px;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer p {
  margin: 0;
}

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

  .brand {
    min-width: 0;
  }

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

  .hero,
  .product-hero,
  .product-details {
    grid-template-columns: 1fr;
  }

  .product-media {
    min-height: 240px;
  }

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

@media (max-width: 520px) {
  .hero,
  .page-hero,
  .product-page,
  .section,
  .product-list {
    width: min(100% - 24px, 1180px);
  }

  .hero-copy h1,
  .page-hero h1,
  .product-copy h1 {
    font-size: 34px;
  }

  .button {
    width: 100%;
  }

  .specs-card div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}
