:root {
  --ink: #172331;
  --muted: #637083;
  --line: #d9e1ea;
  --blue: #0f5d9a;
  --red: #c8392c;
  --bg: #f4f7fb;
  --white: #fff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Tahoma, sans-serif;
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.inner, .section, .footer .inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
}
.brand img { width: 172px; height: auto; }
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  font-size: 14px;
}
.nav a {
  padding: 10px 12px;
  border-radius: 6px;
  color: #24394f;
}
.nav a:hover, .nav a.active {
  background: #e8f2fb;
  color: var(--blue);
}

.hero {
  position: relative;
  overflow: hidden;
  background: #0d263d;
  color: #fff;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10,28,46,.92), rgba(10,28,46,.58), rgba(10,28,46,.18));
}
.hero img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}
.hero .copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: #f0c84b;
  font-weight: 700;
  letter-spacing: 0;
}
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: 0; }
h1 { max-width: 760px; font-size: clamp(34px, 5vw, 56px); }
.hero p:not(.eyebrow) { max-width: 680px; margin: 18px 0 0; font-size: 18px; }

.section { padding: 54px 0; }
.compact { padding-top: 26px; }
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}
.title-row p { max-width: 650px; margin: 0; color: var(--muted); }
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #eef3f8;
}
.card .body { padding: 22px; }
.card h3 { margin-bottom: 10px; font-size: 21px; }
.card p { margin: 0 0 14px; color: var(--muted); }
.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}
.btn.red { background: var(--red); }
.panel {
  background: #fff;
  border-top: 4px solid var(--blue);
  padding: 28px;
}
.panel p { color: var(--muted); }
.list { padding-left: 20px; color: var(--muted); }
.list li { margin: 8px 0; }

.breadcrumb {
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb a { color: var(--blue); }
.product-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 28px;
  align-items: start;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 26px;
  align-items: start;
}
.product-nav {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.product-nav h3 {
  margin-bottom: 12px;
  color: var(--blue);
}
.product-nav .group {
  margin-top: 16px;
}
.product-nav strong {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid #e7edf3;
}
.product-nav a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 1px solid #f0f3f7;
}
.product-nav a:hover,
.product-nav a.active {
  color: var(--red);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product-main {
  background: #fff;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.product-main > img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  background: #eef3f8;
  margin: 20px 0 28px;
}
.sidebox {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.sidebox a {
  display: block;
  padding: 9px 0;
  color: var(--blue);
  border-bottom: 1px solid #eef2f6;
}
.footer {
  margin-top: 40px;
  background: #0d263d;
  color: #dbe9f4;
}
.footer .inner { padding: 34px 0; }
.footer small { color: #b8cad8; }

@media (max-width: 860px) {
  .header .inner, .title-row { display: block; }
  .nav { justify-content: flex-start; margin-top: 12px; }
  .hero img { height: 420px; }
  .grid.three, .grid.two, .product-layout, .catalog-layout, .product-grid { grid-template-columns: 1fr; }
  .sidebox, .product-nav { position: static; max-height: none; }
}
