:root {
  color-scheme: light;
  --navy: #06366d;
  --blue: #0878ee;
  --blue-dark: #075bbd;
  --pale-blue: #eef7ff;
  --ink: #142d56;
  --muted: #536985;
  --line: #d9e8f8;
  --content: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; scrollbar-gutter: stable; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, textarea { font: inherit; }

.skip-link {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 2px 12px rgba(12, 49, 94, .08);
}

.header-inner {
  width: min(calc(100% - 48px), 1440px);
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand { display: block; width: 140px; flex: 0 0 auto; }
.brand img { width: 100%; height: auto; }

.site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); }
.site-nav > a:not(.nav-cta),
.product-nav-dropdown > a { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 28px 0 25px; font-size: 14px; font-weight: 600; }
.site-nav > a:not(.nav-cta)::after,
.product-nav-dropdown > a::after { position: absolute; right: 0; bottom: 19px; left: 0; height: 2px; content: ""; background: var(--blue); transform: scaleX(0); transition: transform .2s ease; }
.site-nav > a:not(.nav-cta):hover::after,
.site-nav > a.active::after,
.product-nav-dropdown > a:hover::after,
.product-nav-dropdown > a.active::after { transform: scaleX(1); }

.product-nav-dropdown { position: relative; }
.product-nav-chevron { width: 12px; height: 12px; flex: 0 0 auto; transition: transform .2s ease; }
.product-nav-dropdown:hover .product-nav-chevron,
.product-nav-dropdown:focus-within .product-nav-chevron { transform: rotate(180deg); }
.product-nav-options { position: absolute; z-index: 15; top: 100%; left: 0; display: none; min-width: 260px; padding: 14px 20px; border: 0; border-radius: 2px; background: #fff; box-shadow: 0 8px 24px rgba(12, 34, 68, .12); }
.product-nav-dropdown:hover .product-nav-options,
.product-nav-dropdown:focus-within .product-nav-options { display: flex; flex-direction: column; }
.product-nav-options a { display: flex; align-items: center; min-height: 36px; padding: 4px 0; color: #2b3445; font-size: 14px; font-weight: 500; line-height: 1.4; white-space: nowrap; transition: color .15s ease; }
.product-nav-options a:hover,
.product-nav-options a[aria-current="page"] { color: var(--blue); background: transparent; }

.nav-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  transition: background-color .2s ease, transform .2s ease;
}

.nav-cta { padding: 12px 19px; color: #fff; background: var(--blue); font-size: 14px; }
.nav-cta:hover, .button-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.menu-toggle { display: none; }

.hero { position: relative; width: 100%; margin: 0; overflow: hidden; background: #0b4f91; }
.hero-image { width: 100%; height: auto; }
.hero-cta { position: absolute; right: 3.2%; bottom: 3.5%; width: 18%; height: 10%; border-radius: 40px; }
.hero-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.section-pad { padding: 76px max(24px, calc((100% - var(--content)) / 2)); }
.section-heading { margin: 0 auto 42px; text-align: center; }
.eyebrow { margin: 0 0 6px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section-heading h1, .section-heading h2 { margin: 0; color: #0b2e68; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; }
.heading-rule { display: block; width: 54px; height: 3px; margin: 15px auto 0; background: var(--blue); }
.section-heading-left { margin: 0 0 23px; text-align: left; }
.section-heading-left .heading-rule { margin-left: 0; }

.advantages { padding-top: 62px; padding-bottom: 68px; }
.advantages .section-heading { margin-bottom: 32px; }
.advantage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 44px; }
.advantage-item { display: flex; min-height: 135px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.advantage-item img { width: 72px; height: 72px; object-fit: contain; }
.advantage-item h2 { margin: 12px 0 0; color: #123a75; font-size: 15px; font-weight: 600; }

.products { background: linear-gradient(180deg, #f4faff 0%, #eaf5ff 100%); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-load-state:empty { display: none; }
.product-card { display: flex; min-width: 0; flex-direction: column; padding: 14px; border: 1px solid rgba(255,255,255,.9); border-radius: 8px; background: #fff; box-shadow: 0 7px 22px rgba(27, 86, 146, .08); }
.product-image { display: flex; height: 220px; align-items: center; justify-content: center; overflow: hidden; background: transparent; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.product-image:hover img { transform: scale(1.04); }
.product-card h3 { display: flex; min-height: 52px; align-items: center; justify-content: center; margin: 10px 0 6px; color: #0b2e68; font-size: 17px; line-height: 1.3; text-align: center; }
.button { min-height: 44px; padding: 11px 18px; }
.button-primary { width: 100%; margin-top: auto; color: #fff; background: var(--blue); }
.button span, .nav-cta span { font-size: 19px; line-height: 1; }

.about { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
.about-image { overflow: hidden; border-radius: 7px; }
.about-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.about-copy p { margin: 0 0 14px; color: #344e70; font-size: 14px; }
.about-copy p:last-child { margin-bottom: 0; }

.factory { padding-top: 66px; padding-bottom: 70px; }
.factory .section-heading { margin-bottom: 30px; }
.gallery-shell { position: relative; display: flex; align-items: center; gap: 20px; }
.gallery-viewport { width: 100%; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; scroll-snap-type: x mandatory; }
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery-track { display: grid; grid-auto-columns: calc((100% - 36px) / 3); grid-auto-flow: column; gap: 18px; }
.gallery-card { position: relative; min-width: 0; height: 240px; margin: 0; overflow: hidden; border-radius: 6px; background: #dce7f2; scroll-snap-align: start; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-card:hover img { transform: scale(1.035); }
.gallery-card figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 12px 14px; color: #fff; background: linear-gradient(transparent, rgba(3, 38, 78, .94)); font-size: 14px; font-weight: 700; text-align: center; }
.gallery-arrow { position: absolute; z-index: 2; display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: var(--navy); font-size: 30px; line-height: 1; cursor: pointer; }
.gallery-arrow:disabled { opacity: .4; cursor: default; }
.gallery-prev { left: -18px; }
.gallery-next { right: -18px; }
.gallery-dots { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.gallery-dot { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: #9dbbda; cursor: pointer; }
.gallery-dot.is-active { background: var(--blue); }

.quote { background: linear-gradient(180deg, #f0f8ff 0%, #e7f3ff 100%); }
.quote .section-heading { margin-bottom: 26px; }
.section-intro { margin: 15px 0 0; color: var(--muted); }
.quote-form { display: grid; gap: 22px; padding: 34px; border: 1px solid #e4effb; border-radius: 8px; background: rgba(255,255,255,.94); box-shadow: 0 12px 30px rgba(32, 94, 157, .07); }
.form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.quote-form label { display: flex; flex-direction: column; gap: 8px; color: #163c76; font-size: 14px; font-weight: 700; }
.field-title { display: block; }
.required-mark { color: #e23737; }
.quote-form input, .quote-form textarea { width: 100%; border: 1px solid #cbdcf0; border-radius: 5px; outline: none; color: var(--ink); background: #fff; font-size: 14px; font-weight: 400; }
.quote-form input { height: 46px; padding: 0 13px; }
.quote-form textarea { min-height: 115px; padding: 13px; resize: vertical; }
.quote-form input:focus, .quote-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8, 120, 238, .12); }
.quote-form input::placeholder, .quote-form textarea::placeholder { color: #9aabc0; }
.form-submit { min-height: 50px; font-size: 16px; cursor: pointer; }
.form-note { margin: -12px 0 0; color: #6b7f98; font-size: 12px; text-align: center; }

.site-footer { color: #fff; background: #062a50; }
.footer-inner { display: grid; width: min(calc(100% - 48px), var(--content)); grid-template-columns: 1.4fr .6fr .8fr; gap: 50px; margin: 0 auto; padding: 48px 0 40px; }
.footer-brand { display: grid; grid-template-columns: auto 1fr; align-content: start; align-items: start; gap: 12px 26px; }
.footer-wordmark { display: block; width: 128px; }
.footer-wordmark img { display: block; width: 100%; height: auto; }
.footer-brand p { max-width: 420px; margin: 0; color: #c3d2e3; font-size: 13px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.footer-links h2, .footer-contact h2 { margin: 0 0 8px; font-size: 15px; }
.footer-links a, .footer-contact > a:not(.button) { color: #c3d2e3; font-size: 13px; }
.footer-links a:hover, .footer-contact > a:not(.button):hover { color: #fff; }
.button-light { min-height: 40px; padding: 8px 13px; color: var(--blue-dark); background: #fff; font-size: 13px; }
.button-light:hover { background: #e9f4ff; }
.footer-bottom { padding: 13px 24px; border-top: 1px solid rgba(255,255,255,.12); color: #aabbd0; font-size: 12px; text-align: center; }

:focus-visible { outline: 3px solid #61aaff; outline-offset: 3px; }

@media (max-width: 1120px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .header-inner { height: 70px; }
  .brand { width: 120px; }
  .menu-toggle { display: flex; width: 42px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 5px; background: #fff; cursor: pointer; }
  .menu-toggle span { width: 19px; height: 2px; background: var(--navy); }
  .site-nav { position: absolute; top: 70px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 8px 24px 18px; background: #fff; box-shadow: 0 10px 16px rgba(12, 49, 94, .1); }
  .site-nav.is-open { display: flex; flex-direction: column; }
  .site-nav > a:not(.nav-cta),
  .product-nav-dropdown > a { padding: 12px 4px; }
  .site-nav > a:not(.nav-cta)::after,
  .product-nav-dropdown > a::after { display: none; }
  .product-nav-options { position: static; display: grid; margin: 2px 0 6px; padding: 4px 0 4px 12px; border: 0; border-left: 2px solid #e5eaf1; border-radius: 0; box-shadow: none; }
  .product-nav-options::before { display: none; }
  .product-nav-options a { padding: 8px 12px; font-size: 13px; }
  .nav-cta { margin-top: 8px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .product-image { height: clamp(180px, 30vw, 250px); }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-image img { aspect-ratio: 16 / 8; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 68px; }
  .header-inner { width: calc(100% - 32px); height: 64px; }
  .brand { width: 108px; }
  .site-nav { top: 64px; padding-right: 16px; padding-left: 16px; }
  .hero-cta { right: 3%; bottom: 3%; width: 23%; height: 10%; }
  .section-pad { padding: 54px 18px; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h1, .section-heading h2 { font-size: 29px; }
  .advantages { padding-top: 48px; padding-bottom: 48px; }
  .advantage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
  .advantage-item { min-height: 120px; }
  .advantage-item img { width: 58px; height: 58px; }
  .advantage-item h2 { max-width: 160px; margin-top: 8px; font-size: 12px; }
  .product-grid { gap: 12px; }
  .product-card { padding: 9px; }
  .product-image { height: clamp(130px, 39vw, 190px); }
  .product-card h3 { min-height: 48px; margin: 7px 0; font-size: 13px; }
  .button { min-height: 40px; padding: 9px 10px; font-size: 13px; }
  .about { gap: 25px; }
  .about-image img { aspect-ratio: 4 / 3; }
  .about-copy p { font-size: 13px; }
  .gallery-shell { gap: 0; }
  .gallery-track { grid-auto-columns: 85%; gap: 12px; }
  .gallery-card { height: 225px; }
  .gallery-prev { left: -8px; }
  .gallery-next { right: -8px; }
  .gallery-arrow { width: 34px; height: 34px; font-size: 26px; }
  .quote-form { gap: 18px; padding: 20px 16px; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner { width: calc(100% - 36px); grid-template-columns: 1fr 1fr; gap: 28px 18px; padding: 36px 0 30px; }
  .footer-brand { grid-template-columns: 1fr; gap: 6px; }
  .footer-wordmark { width: 120px; }
  .footer-brand p { font-size: 12px; }
  .footer-brand p br { display: none; }
  .footer-links h2, .footer-contact h2 { font-size: 14px; }
  .footer-links a, .footer-contact > a:not(.button) { font-size: 12px; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
