
:root {
  --bg: #f2f3f5;
  --surface: #ffffff;
  --ink: #16191f;
  --muted: #6d7380;
  --line: #dfe3ea;
  --blue: #0a7cff;
  --blue-dark: #006be6;
  --green: #0a8f57;
  --shadow: 0 16px 36px rgba(30, 42, 60, .10);
  --radius: 8px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Verdana, Tahoma, sans-serif;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(16px, 4vw, 52px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-weight: 700;
}
.brand strong { display: block; font-size: 18px; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.nav { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.nav a { overflow-wrap: anywhere; }
.nav a:last-child { color: var(--blue); font-weight: 700; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px clamp(16px, 4vw, 40px) 18px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}
.hero p { margin: 0; color: var(--muted); max-width: 620px; font-size: 17px; }
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.hero-panel span { display: block; color: var(--muted); font-size: 13px; }
.hero-panel strong { display: block; margin-top: 6px; font-size: 25px; }
.catalog-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 40px) 46px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 20px;
}
.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #323845;
  font-size: 14px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-image {
  aspect-ratio: 1 / 1;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.card-body { padding: 12px; }
.card-title {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 15px;
  line-height: 1.35;
}
.price { font-weight: 800; font-size: 19px; }
.meta { margin-top: 5px; color: var(--muted); font-size: 13px; }
.product {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 40px) 48px;
}
.breadcrumbs { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(300px, 1fr);
  gap: 24px;
}
.gallery {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.main-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: #fff;
}
.main-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.thumbs img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.product-info {
  min-width: 0;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.product-info h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: 0;
}
.product-price { font-size: 34px; font-weight: 900; margin: 4px 0 16px; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 16px;
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.actions { display: grid; gap: 10px; margin: 14px 0 18px; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  padding: 0 12px;
  text-align: center;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.secondary { background: #eef6ff; color: var(--blue-dark); border-color: #c8e0ff; }
.specs {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.spec {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  font-size: 14px;
}
.spec span:first-child { color: var(--muted); }
.desc {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.section-title { margin: 32px 0 14px; font-size: 24px; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(16px, 4vw, 52px);
  background: #111827;
  color: #fff;
}
.footer p { margin: 5px 0 0; color: #c8ced8; }
.footer a { color: #fff; font-weight: 800; }

@media (max-width: 820px) {
  .topbar { position: static; align-items: flex-start; flex-direction: column; gap: 10px; }
  .nav { width: 100%; align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero, .product-layout { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-info { box-shadow: none; }
  .footer { flex-direction: column; }
}

@media (max-width: 460px) {
  .grid { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; gap: 2px; }
}
