:root {
  --navy: #12304f;
  --navy-dark: #0b2036;
  --navy-light: #1d4a75;
  --red: #c4161c;
  --red-dark: #9b1015;
  --gold: #f2b632;
  --bg: #e9edf1;
  --panel: #ffffff;
  --line: #d5dce3;
  --text: #2a3440;
  --muted: #66727f;
  --link: #1d4a75;
  --radius: 4px;
  --wrap: 1100px;
}

* { box-sizing: border-box; }

html { font-size: 15px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--red); text-decoration: underline; }

img, svg { max-width: 100%; }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 15px; }

/* ---------- header ---------- */
.site-header {
  background: linear-gradient(#1a3d63, var(--navy) 60%, var(--navy-dark));
  color: #fff;
  border-bottom: 4px solid var(--red);
}
.header-top {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 92px;
  padding: 12px 15px;
}
.logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.logo:hover { color: #fff; text-decoration: none; }
.logo-mark {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25);
}
.logo-mark svg { width: 30px; height: 30px; fill: #fff; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 1.75rem; font-weight: bold; letter-spacing: .5px; line-height: 1; }
.logo-name span { color: var(--gold); }
.logo-tag { font-size: .8rem; color: #b9c8d8; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px; }

.top-nav { margin-left: auto; }
.top-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.top-nav a {
  display: block; padding: 7px 13px; color: #dfe8f1; font-size: .9rem;
  border-radius: var(--radius); background: rgba(255,255,255,.06);
}
.top-nav a:hover, .top-nav a.active { background: var(--red); color: #fff; text-decoration: none; }

/* ---------- category tabs + mega menu ---------- */
.cat-bar { background: #0a1c2f; position: relative; }
.cat-tabs { list-style: none; margin: 0 auto; padding: 0 15px; display: flex; flex-wrap: wrap; max-width: var(--wrap); }
.cat-tabs > li { position: static; }
.cat-tabs > li > a {
  display: block; padding: 11px 14px; color: #fff; font-weight: bold; font-size: .92rem;
  border-right: 1px solid rgba(255,255,255,.08);
}
.cat-tabs > li:first-child > a { border-left: 1px solid rgba(255,255,255,.08); }
.cat-tabs > li:hover > a, .cat-tabs > li:focus-within > a { background: var(--red); text-decoration: none; }
.mega {
  display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
  background: #fff; border-top: 3px solid var(--red); box-shadow: 0 12px 25px rgba(0,0,0,.25);
}
.cat-tabs > li:hover .mega, .cat-tabs > li:focus-within .mega { display: block; }
.mega-inner { max-width: var(--wrap); margin: 0 auto; padding: 18px 15px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px 24px; }
.mega h4 { font-size: .95rem; margin: 0 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.mega h4 a { color: var(--navy); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li a { display: block; padding: 2px 0; font-size: .87rem; color: var(--text); }
.mega li a:hover { color: var(--red); }
.mega .all { font-weight: bold; color: var(--red); }

/* ---------- layout ---------- */
.page { display: grid; grid-template-columns: 215px 1fr; gap: 20px; padding: 20px 15px 30px; }
.page.full { grid-template-columns: 1fr; }
.content { min-width: 0; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.box > :last-child { margin-bottom: 0; }

.bar-title {
  background: linear-gradient(var(--navy-light), var(--navy)); color: #fff; margin: 0 0 15px;
  padding: 9px 14px; font-size: 1.05rem; border-radius: var(--radius);
}

.breadcrumbs { font-size: .85rem; color: var(--muted); margin: 0 0 12px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span.sep { margin: 0 6px; }

/* ---------- sidebar ---------- */
.sidebar .side-block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.side-title { margin: 0; padding: 9px 12px; background: var(--red); color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .5px; }
.side-sub { margin: 0; padding: 8px 12px 4px; font-size: .95rem; color: var(--navy); border-top: 1px solid var(--line); }
.side-sub span { color: var(--red); }
.side-list { list-style: none; margin: 0; padding: 0 0 8px; }
.side-list a { display: block; padding: 3px 12px 3px 22px; font-size: .88rem; color: var(--text); position: relative; }
.side-list a::before { content: "\203A"; position: absolute; left: 12px; color: var(--red); }
.side-list a:hover { background: #f3f6f9; color: var(--red); text-decoration: none; }
.side-all { display: block; padding: 9px 12px; background: var(--navy); color: #fff; font-weight: bold; font-size: .9rem; }
.side-all:hover { background: var(--red); color: #fff; text-decoration: none; }
.side-specs { list-style: none; margin: 0; padding: 8px 12px 10px; font-size: .87rem; }
.side-specs li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dotted var(--line); }
.side-specs li span:last-child { font-weight: bold; text-align: right; }

/* ---------- home: slider ---------- */
.slider { position: relative; border-radius: var(--radius); overflow: hidden; height: 300px; margin-bottom: 20px; border: 1px solid var(--line); }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center; padding: 0 50px;
  color: #fff; opacity: 0; transition: opacity .8s ease; pointer-events: none;
}
.slide.on { opacity: 1; pointer-events: auto; }
.slide-1 { background: linear-gradient(115deg, #0e2a47 0%, #1d4a75 55%, #3f7cb3 100%); }
.slide-2 { background: linear-gradient(115deg, #5b0c10 0%, #c4161c 55%, #e5533a 100%); }
.slide-3 { background: linear-gradient(115deg, #1c2a35 0%, #34495e 50%, #5d7b91 100%); }
.slide-text { max-width: 55%; position: relative; z-index: 2; }
.slide-kicker { text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; color: var(--gold); font-weight: bold; }
.slide h2 { color: #fff; font-size: 2.1rem; margin: 6px 0 10px; }
.slide p { margin: 0 0 18px; color: #e3ebf3; }
.slide-art { position: absolute; right: 40px; bottom: 0; height: 88%; opacity: .95; }
.slide-art svg { height: 100%; width: auto; fill: rgba(255,255,255,.16); }
.btn {
  display: inline-block; background: var(--red); color: #fff; padding: 9px 20px; border-radius: var(--radius);
  font-weight: bold; border-bottom: 3px solid var(--red-dark);
}
.btn:hover { background: var(--red-dark); color: #fff; text-decoration: none; }
.slide-2 .btn { background: var(--navy); border-bottom-color: var(--navy-dark); }
.slider-dots { position: absolute; bottom: 14px; left: 50px; display: flex; gap: 8px; z-index: 3; }
.slider-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.slider-dots button.on { background: #fff; }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 20px; }
.tile {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center; padding: 16px 8px 12px; color: var(--navy); font-weight: bold;
  transition: transform .15s, box-shadow .15s;
}
.tile svg { width: 64px; height: 64px; fill: var(--navy-light); display: block; margin: 0 auto 8px; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.12); text-decoration: none; color: var(--red); }
.tile:hover svg { fill: var(--red); }

.brand-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.brand-chip {
  display: flex; align-items: center; justify-content: center; height: 62px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: bold; font-size: 1.05rem; color: var(--navy); letter-spacing: .3px; text-align: center;
}
.brand-chip:hover { border-color: var(--red); color: var(--red); text-decoration: none; }

.home-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.index-products { columns: 3 170px; column-gap: 20px; }
.index-products ul { list-style: none; margin: 0 0 14px; padding: 0; break-inside: avoid; }
.index-products li a { font-size: .87rem; color: var(--text); }
.index-products li.head a { font-weight: bold; color: var(--navy); font-size: .95rem; }

/* ---------- category / listing ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 10px; }
.hub-item { display: block; text-align: center; padding: 14px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #fafbfc; color: var(--text); font-size: .9rem; }
.hub-item svg { width: 54px; height: 54px; fill: var(--navy-light); display: block; margin: 0 auto 6px; }
.hub-item:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.hub-item:hover svg { fill: var(--red); }
.hub-item.static:hover { border-color: var(--line); color: var(--text); }
.hub-item.static:hover svg { fill: var(--navy-light); }
.hub-item small { display: block; color: var(--muted); font-size: .78rem; }
.filter-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 10px; }
.filter-list li { background: #eef2f6; border-radius: 12px; padding: 2px 10px; font-size: .82rem; color: var(--muted); }

.product-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.p-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; color: var(--text);
}
.p-card:hover { border-color: var(--navy-light); box-shadow: 0 4px 12px rgba(0,0,0,.08); text-decoration: none; color: var(--text); }
.p-img { background: linear-gradient(#f6f8fa, #e8edf2); border-radius: var(--radius); height: 130px; display: grid; place-items: center; margin-bottom: 10px; position: relative; }
.p-img svg { width: 70px; height: 70px; fill: #9fb2c5; }
.p-brand { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--red); font-weight: bold; }
.p-name { font-size: .9rem; color: var(--navy); margin: 3px 0 6px; flex: 1; }
.p-model { font-size: .8rem; color: var(--muted); }
.badge { position: absolute; top: 8px; right: 8px; background: #2f7d32; color: #fff; font-size: .68rem; padding: 2px 6px; border-radius: 3px; font-weight: bold; }

/* ---------- product page ---------- */
.product-top { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.product-photo { background: linear-gradient(#f6f8fa, #e3e9ef); border: 1px solid var(--line); border-radius: var(--radius); height: 280px; display: grid; place-items: center; position: relative; }
.product-photo svg { width: 150px; height: 150px; fill: #9fb2c5; }
.product-brand { font-size: .85rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--red); font-weight: bold; }
.product-model { color: var(--muted); font-size: 1rem; margin: -4px 0 14px; }
.color-table, .spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.color-table th, .color-table td, .spec-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.color-table th { background: #eef2f6; color: var(--navy); }
.spec-table tr.head td { background: var(--navy); color: #fff; font-weight: bold; text-transform: uppercase; font-size: .8rem; letter-spacing: 1px; }
.spec-table tr:nth-child(even):not(.head) td { background: #f6f8fa; }
.spec-table td:first-child { width: 45%; color: var(--muted); }
.features { padding-left: 20px; }
.features li { margin-bottom: 4px; }

.tabs-nav { display: flex; gap: 4px; border-bottom: 3px solid var(--navy); margin: 22px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.tabs-nav a { display: block; padding: 8px 16px; background: #dfe5eb; color: var(--navy); font-weight: bold; border-radius: var(--radius) var(--radius) 0 0; }
.tabs-nav a:hover { background: var(--navy); color: #fff; text-decoration: none; }
.tab-panel { padding-top: 16px; }

/* ---------- text pages ---------- */
.prose p { margin: 0 0 1em; }
.prose h2 { margin-top: 1.3em; }
.prose ul { padding-left: 20px; }
.faq dt { font-weight: bold; color: var(--navy); margin-top: 14px; }
.faq dd { margin: 4px 0 0; }
.brand-columns { columns: 4 160px; column-gap: 20px; list-style: none; padding: 0; margin: 0 0 15px; }
.brand-columns li { padding: 2px 0; break-inside: avoid; }
.sitemap-list { columns: 2 260px; column-gap: 24px; padding-left: 18px; font-size: .88rem; }

/* ---------- partners ---------- */
.partners { background: #f4f7fa; border-top: 1px solid var(--line); padding: 28px 0 32px; }
.partners h2 { margin: 0 0 14px; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 1px; }
.partner-card {
  display: flex; align-items: center; gap: 16px; max-width: 520px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; color: var(--text);
}
.partner-card:hover { border-color: var(--navy-light); box-shadow: 0 4px 12px rgba(0,0,0,.08); text-decoration: none; color: var(--text); }
.partner-mark {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); display: grid; place-items: center;
}
.partner-mark svg { width: 30px; height: 30px; fill: #fff; }
.partner-copy { display: flex; flex-direction: column; min-width: 0; }
.partner-name { font-weight: bold; color: var(--navy); font-size: 1.05rem; }
.partner-desc { color: var(--muted); font-size: .9rem; }
.partner-url { color: var(--red); font-size: .85rem; margin-top: 2px; }
.partner-card:hover .partner-url { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-dark); color: #b8c6d4; font-size: .88rem; border-top: 4px solid var(--red); }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding: 28px 15px 18px; }
.footer-cols h4 { color: #fff; font-size: .95rem; margin-bottom: 8px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols a { color: #b8c6d4; }
.footer-cols a:hover { color: #fff; }
.footer-brand .logo-name { font-size: 1.35rem; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 12px 15px; text-align: center; color: #7f93a7; font-size: .8rem; }
.footer-bottom ul { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.footer-bottom li + li { border-left: 1px solid rgba(255,255,255,.15); }
.footer-bottom li a { color: #9fb2c5; padding: 0 10px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .home-cols, .product-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .slide-text { max-width: 100%; }
  .slide-art { display: none; }
  .header-top { flex-wrap: wrap; }
  .top-nav { margin-left: 0; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .slider { height: 340px; }
  .slide { padding: 0 22px; }
  .slide h2 { font-size: 1.6rem; }
  .cat-tabs > li > a { padding: 8px 9px; font-size: .85rem; }
  .mega { display: none !important; }
}
