:root {
  --red: #c8102e;
  --red-dark: #a00d24;
  --navy: #0f1c2e;
  --navy-2: #182a42;
  --blue: #1f5fbf;
  --ink: #1b2430;
  --muted: #5d6877;
  --line: #e3e7ec;
  --bg: #ffffff;
  --bg-muted: #f4f6f9;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 15px/1.6 var(--body); color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(30px, 4vw, 42px); }
h3 { font-size: 22px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font: 600 13px/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin: 0 0 12px; }
.eyebrow--light { color: #ff6b7f; }

.btn { display: inline-block; background: var(--red); color: #fff; font-weight: 600; padding: 12px 22px; border: 0; border-radius: 2px; cursor: pointer; font-size: 15px; transition: background .2s; }
.btn:hover { background: var(--red-dark); }
.btn--light { background: #fff; color: var(--red); }
.btn--light:hover { background: #f1f1f1; }
.link { color: var(--red); font-weight: 600; white-space: nowrap; }

/* Top bar */
.topbar { background: var(--navy); color: #b9c3d0; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar__contact { display: flex; gap: 24px; }
.topbar a:hover { color: #fff; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav__drop > a { display: block; padding: 10px 12px; font-weight: 500; font-size: 14px; }
.nav > a:hover, .nav__drop > a:hover { color: var(--red); }
.nav__cta { background: var(--red); color: #fff !important; border-radius: 2px; margin-left: 8px; }
.nav__cta:hover { background: var(--red-dark); }
.nav__drop { position: relative; }
.nav__menu { position: absolute; top: 100%; left: 0; min-width: 280px; background: #fff; border-top: 3px solid var(--red); box-shadow: 0 12px 30px rgba(15,28,46,.12); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.nav__menu a { display: block; padding: 8px 18px; font-size: 14px; }
.nav__menu a:hover { background: var(--bg-muted); color: var(--red); }
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Hero */
.hero { position: relative; color: #fff; background: linear-gradient(90deg, rgba(15,28,46,.97) 0%, rgba(15,28,46,.92) 50%, rgba(15,28,46,.78) 100%), url(assets/banner.png) 20% center/cover; }
.hero__inner { padding-top: 96px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero__lead { max-width: 520px; font-size: 17px; color: #d1d8e2; margin: 20px 0 32px; }
.search { display: flex; max-width: 620px; background: #fff; border-radius: 2px; overflow: hidden; }
.search select, .search input { border: 0; font: inherit; padding: 14px 16px; color: var(--ink); }
.search select { background: var(--bg-muted); border-right: 1px solid var(--line); cursor: pointer; }
.search input { flex: 1; min-width: 0; outline: none; }
.search button { border: 0; background: var(--red); color: #fff; font: 600 15px var(--body); padding: 0 26px; cursor: pointer; }
.search button:hover { background: var(--red-dark); }
.hero__stats { list-style: none; display: flex; gap: 48px; padding: 0; margin: 48px 0 0; }
.hero__stats strong { display: block; font: 700 36px/1 var(--head); }
.hero__stats span { font-size: 13px; color: #aab5c3; }

/* Category strip */
.cats { background: var(--navy-2); }
.cats__grid { display: flex; flex-wrap: wrap; }
.cats__grid a { flex: 1 1 auto; padding: 16px 18px; color: #d1d8e2; font-size: 14px; font-weight: 500; text-align: center; border-right: 1px solid rgba(255,255,255,.08); transition: .2s; }
.cats__grid a:hover { background: var(--red); color: #fff; }

/* Sections */
.section { padding: 88px 0; }
.section--muted { background: var(--bg-muted); }
.section--dark { background: var(--navy); color: #fff; }
.section__head { margin-bottom: 40px; }
.section__head--center { text-align: center; }

/* Featured product */
.featured { display: grid; grid-template-columns: 340px minmax(0, 1fr); border: 1px solid var(--line); margin-bottom: 24px; }
.featured__img { background: var(--bg-muted); display: grid; place-items: center; padding: 32px; }
.featured__img img { max-height: 240px; mix-blend-mode: multiply; }
.featured__body { padding: 36px 40px; }
.tag { display: inline-block; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; margin-bottom: 14px; }
.featured__body h3 { font-size: 32px; }
.featured__body > p { color: var(--muted); margin: 8px 0 20px; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0 0 28px; }
.specs div { background: #fff; padding: 12px 14px; }
.specs dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.specs dd { margin: 4px 0 0; font: 700 22px/1 var(--head); }

.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.product { border: 1px solid var(--line); transition: .2s; }
.product img { aspect-ratio: 1; object-fit: contain; width: 100%; background: var(--bg-muted); padding: 20px; mix-blend-mode: multiply; }
.product span { display: block; padding: 14px 16px; font-weight: 600; font-size: 14px; border-top: 3px solid transparent; }
.product:hover { border-color: var(--red); box-shadow: 0 10px 24px rgba(15,28,46,.08); }
.product:hover span { color: var(--red); }

/* Applications */
.apps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.apps figure { position: relative; margin: 0; overflow: hidden; aspect-ratio: 229 / 412; }
.apps img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; filter: saturate(.85); }
.apps figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(15,28,46,.92)); }
.apps figcaption { position: absolute; left: 14px; right: 14px; bottom: 16px; z-index: 1; font: 700 19px/1.15 var(--head); text-transform: uppercase; border-left: 3px solid var(--red); padding-left: 10px; }
.apps figure:hover img { transform: scale(1.06); }

/* Why us */
.why { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.why__intro p { color: var(--muted); margin: 20px 0; }
.why__intro blockquote { margin: 28px 0 0; padding: 18px 22px; border-left: 4px solid var(--red); background: var(--bg-muted); font: 600 22px/1.3 var(--head); }
.why__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.why__grid li { background: #fff; padding: 28px; }
.why__grid b { font: 700 15px var(--head); color: var(--red); }
.why__grid h3 { margin: 6px 0 8px; }
.why__grid p { margin: 0; color: var(--muted); font-size: 14px; }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.clients img { background: #fff; aspect-ratio: 1200 / 490; object-fit: contain; border: 1px solid var(--line); filter: grayscale(1); opacity: .8; transition: .2s; }
.clients img:hover { filter: none; opacity: 1; }

/* News */
.news { display: grid; grid-template-columns: 120px 1fr auto; gap: 32px; align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.news time { font: 700 20px/1.1 var(--head); color: var(--red); }
.news p { margin: 6px 0 0; color: var(--muted); }

/* CTA */
.cta { background: var(--red); color: #fff; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.cta h2 { font-size: clamp(26px, 3vw, 34px); }
.cta p { margin: 6px 0 0; opacity: .9; }

/* Footer */
.footer { background: var(--navy); color: #aab5c3; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1fr 1.3fr 1.5fr 1.5fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer h4 { color: #fff; font-size: 18px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer a { display: block; padding: 3px 0; }
.footer a:hover { color: #fff; }
.footer p { margin: 0 0 12px; }
.footer p span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #6f7c8e; }
.footer p a { display: inline; color: #fff; }
.footer__form input, .footer__form textarea { width: 100%; margin-bottom: 10px; padding: 11px 12px; background: var(--navy-2); border: 1px solid #2a3d58; color: #fff; font: inherit; border-radius: 2px; resize: vertical; }
.footer__form input:focus, .footer__form textarea:focus { outline: none; border-color: var(--red); }
.footer__form .ok { color: #7fd1a0; margin-top: 10px; }
.footer__bottom { border-top: 1px solid #22344d; padding-top: 20px; padding-bottom: 24px; font-size: 13px; color: #6f7c8e; }

/* Responsive */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav.open { display: flex; }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; }
  .nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { display: block; }
  .nav__cta { margin: 8px 0 0; text-align: center; }
  .products { grid-template-columns: repeat(3, 1fr); }
  .featured { grid-template-columns: 260px minmax(0, 1fr); }
  .specs { grid-template-columns: 1fr 1fr; }
  .apps { grid-template-columns: repeat(4, 1fr); }
  .why { grid-template-columns: 1fr; gap: 40px; }
  .clients { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .topbar__inner > span:first-child { display: none; }
  .topbar__contact { gap: 16px; font-size: 12px; }
  .brand img { height: 28px; }
  .hero__inner { padding-top: 56px; padding-bottom: 48px; }
  .search select { display: none; }
  .search button { padding: 0 16px; }
  .hero__stats { gap: 24px; }
  .hero__stats strong { font-size: 28px; }
  .cats__grid a { flex-basis: 50%; }
  .section { padding: 60px 0; }
  .featured { grid-template-columns: 1fr; }
  .featured__body { padding: 24px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .apps { grid-template-columns: 1fr 1fr; }
  .apps figure { aspect-ratio: 4 / 5; }
  .why__grid { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .news { grid-template-columns: 1fr; gap: 10px; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Inner pages ---------- */
.nav a.active { color: var(--red); }
.nav a.nav__cta.active { color: #fff; background: var(--red-dark); }
.muted { color: var(--muted); }
.narrow { max-width: 680px; margin-top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.btn--sm { padding: 7px 14px; font-size: 13px; }

.page-hero { background: linear-gradient(90deg, rgba(15,28,46,.97), rgba(15,28,46,.85)), url(assets/banner.png) 20% center/cover; color: #fff; padding: 56px 0 60px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); text-transform: uppercase; }
.page-hero__lead { max-width: 620px; color: #d1d8e2; font-size: 17px; margin: 14px 0 0; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: #8d99a9; margin-bottom: 28px; }
.crumbs a:hover { color: #fff; }

/* Products */
.with-side { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.side { position: sticky; top: 96px; border: 1px solid var(--line); }
.side h4 { font-size: 16px; text-transform: uppercase; letter-spacing: .08em; padding: 14px 18px; background: var(--navy); color: #fff; }
.side a { display: block; padding: 10px 18px; font-size: 14px; border-top: 1px solid var(--line); }
.side a:hover { color: var(--red); background: var(--bg-muted); }
.side .side__stock { color: var(--red); font-weight: 600; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cat { border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 26px 28px; display: flex; flex-direction: column; scroll-margin-top: 96px; }
.cat h2 { font-size: 26px; margin-bottom: 12px; }
.cat ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted); font-size: 14px; flex: 1; }
.cat li { margin: 3px 0; }
.cat li::marker { color: var(--red); }

/* Stock */
.stock-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.stock-bar p { margin: 0; color: var(--muted); }
.stock-search { flex: 1; max-width: 480px; }
.stock-search input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); font: inherit; border-radius: 2px; }
.stock-search input:focus { outline: none; border-color: var(--red); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.stock-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stock-table th { text-align: left; background: var(--navy); color: #fff; font-weight: 600; padding: 12px 16px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.stock-table td { padding: 10px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.stock-table tbody tr:hover { background: var(--bg-muted); }
.stock-table img { width: 64px; height: 64px; object-fit: contain; background: #fff; }
.stock-table strong { display: block; }
.stock-table code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.cat-label { font-size: 12px; color: var(--muted); }
.stock-table td:last-child { text-align: right; }
.stock-empty { text-align: center; padding: 40px 16px; border: 1px dashed var(--line); margin-top: 16px; }
.stock-empty p { color: var(--muted); }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { margin-bottom: 16px; }
.split__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.quote { margin: 24px 0 0; padding: 18px 22px; border-left: 4px solid var(--red); background: var(--bg-muted); font: 600 22px/1.3 var(--head); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line); }
.timeline li { position: relative; padding-top: 36px; }
.timeline li::before { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--bg-muted); }
.tl__year { font: 700 15px var(--head); color: var(--red); letter-spacing: .04em; }
.timeline h3 { margin: 4px 0 8px; }
.timeline p { margin: 0; color: var(--muted); font-size: 14px; }
.why__grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Application */
.adv { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.adv li { border-top: 3px solid var(--red); padding-top: 18px; }
.adv p { color: #aab5c3; font-size: 14px; margin: 8px 0 0; }
.industries { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.industries h3 { padding-bottom: 10px; border-bottom: 2px solid var(--red); margin-bottom: 10px; }
.industries ul { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14px; }
.industries li { padding: 4px 0; }
.apps--light figcaption { color: #fff; }

/* News */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { border: 1px solid var(--line); padding: 26px; transition: .2s; }
.post:hover { border-color: var(--red); }
.post__meta { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.post__meta .tag { margin: 0; }
.post time { font-size: 13px; color: var(--muted); }
.post h2 { font-size: 24px; margin-bottom: 10px; }
.post p { margin: 0; color: var(--muted); font-size: 14px; }

/* Contact */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.contact__info { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.info { display: block; background: #fff; padding: 20px 24px; }
.info span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.info strong { font: 600 20px/1.3 var(--head); }
a.info:hover strong { color: var(--red); }
.contact__form { border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 32px; }
.contact__form h2 { font-size: 32px; }
.contact__form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.contact__form input, .contact__form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--line); font: 400 15px var(--body); border-radius: 2px; resize: vertical; }
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--red); }
.contact__form .ok { color: #1f8a4c; font-weight: 600; }

@media (max-width: 1080px) {
  .with-side { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; display: flex; flex-wrap: wrap; }
  .side h4 { width: 100%; }
  .side a { border-right: 1px solid var(--line); }
  .split, .contact { grid-template-columns: 1fr; }
  .timeline, .adv { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
  .why__grid--3, .posts { grid-template-columns: 1fr 1fr; }
  .industries { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .timeline, .adv, .why__grid--3, .posts, .contact__form .row { grid-template-columns: 1fr; }
  .industries { grid-template-columns: 1fr 1fr; }
  .stock-bar { flex-direction: column; align-items: stretch; }
  .stock-table th:nth-child(4), .stock-table td:nth-child(4) { display: none; }
  .stock-table td, .stock-table th { padding: 10px; }
  .stock-table img { width: 48px; height: 48px; }
  .contact__form { padding: 22px; }
}
