:root {
  --nav: #081b30;
  --ink: #102842;
  --muted: #4c6074;
  --accent: #1561ab;
  --line: #dce5ed;
  --surface: #f1f5f8;
  --white: #fff;
  --page-width: 1450px;
  color: var(--ink);
  background: var(--surface);
  font: 1rem/1.5 Inter, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #267cdb; outline-offset: 3px; }

.wrap { width: min(var(--page-width), calc(100% - 64px)); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 3; padding: .65rem 1rem; background: var(--white); }
.site-head { background: var(--nav); color: var(--white); }
.toolbar { display: grid; grid-template-columns: auto minmax(160px, 1fr) auto; align-items: center; gap: 36px; min-height: 74px; }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; }
.brand img { object-fit: contain; background: var(--white); border-radius: 7px; padding: 3px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.15rem; line-height: 1.1; letter-spacing: .10em; }
.brand small { color: #c6d7e6; font-size: .75rem; letter-spacing: .09em; margin-top: 4px; }
.search { display: flex; height: 44px; min-width: 0; background: var(--white); border-radius: 7px; }
.search input { border: 0; border-radius: 7px 0 0 7px; background: transparent; padding: 0 15px; color: var(--ink); width: 100%; min-width: 0; }
.search input:focus { outline-offset: -2px; }
.search button { display: grid; place-items: center; flex: 0 0 52px; border-radius: 0 7px 7px 0; background: #a2defd; border: 0; color: #0c2947; }
.search button:hover { background: #c0eaff; }
.search-icon { position: relative; display: block; width: 15px; height: 15px; border: 2px solid; border-radius: 50%; transform: translate(-2px, -2px); }
.search-icon::after { content: ""; position: absolute; right: -6px; bottom: -4px; width: 8px; height: 2px; border-radius: 1px; background: currentColor; transform: rotate(45deg); }
.language { display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px; color: #e5eff9; text-decoration: none; border: 1px solid #50677e; border-radius: 6px; }
.language:hover { background: #25405e; }
.head-nav { background: #102b45; border-top: 1px solid #30485e; }
.head-nav .wrap { display: flex; flex-wrap: wrap; gap: 34px; min-height: 43px; align-items: stretch; }
.head-nav a { display: grid; align-items: center; color: #e1eaf4; text-decoration: none; border-block: 2px solid transparent; font-size: .9rem; }
.head-nav a:hover, .head-nav a[aria-current] { color: white; border-bottom-color: #9bd9fe; }

.intro-banner { background: linear-gradient(112deg, #112d47 4%, #15416a 64%, #205881); color: white; }
.intro-inner { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; min-height: 192px; gap: 22px; overflow: hidden; }
.intro-copy { padding-block: 22px; }
.intro-copy h1 { margin: 0; font-size: clamp(1.65rem, 3.1vw, 3rem); line-height: 1.14; letter-spacing: -.035em; }
.intro-copy p { margin: 10px 0 0; max-width: 60ch; color: #d1e4f5; }
.intro-media { position: relative; justify-self: end; width: min(100%, 445px); height: 164px; background: white; border-radius: 8px; overflow: hidden; }
.intro-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.intro-media span { position: absolute; right: 10px; bottom: 9px; padding: .25rem .5rem; border-radius: 4px; color: #edf5fa; background: #102b45; font: 600 .78rem/1.4 "Cascadia Mono", monospace; }

.catalog-layout { display: grid; grid-template-columns: minmax(175px, 218px) minmax(0, 1fr); gap: 25px; padding-block: 31px 56px; }
.catalog-filters { padding: 18px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 9px; align-self: start; }
.catalog-filters h2 { margin: 0 0 9px 9px; font-size: 1rem; }
.category-list { display: grid; gap: 4px; }
.category-filter { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; padding: 9px; border-radius: 6px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: .875rem; line-height: 1.3; }
.category-filter:hover { background: #f1f6fb; }
.category-filter[aria-pressed="true"] { background: #e7f2fc; color: #144d86; font-weight: 700; border-color: #cce2f6; }
.category-count { color: #425d76; font-size: .78rem; font-variant-numeric: tabular-nums; }
.catalog-heading { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin: 0 0 14px; }
.catalog-heading h2 { font-size: 1.55rem; line-height: 1.2; margin: 0; }
.catalog-heading p { font-size: .875rem; color: var(--muted); margin: 0; white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.product-card:hover { border-color: #83add3; box-shadow: 0 4px 15px #10375514; }
.product-card > a { display: flex; flex-direction: column; min-height: 100%; text-decoration: none; }
.product-card > a:focus-visible { outline-offset: -3px; }
.media-box { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate; background: #f8fafc; }
.media-box img { width: 100%; height: 100%; object-fit: contain; display: block; position: absolute; inset: 0; background: #fff; }
.media-placeholder { color: #506d87; text-align: center; padding: 1rem; overflow-wrap: anywhere; }
.product-card .media-box { border-bottom: 1px solid #ecf0f4; }
.card-body { display: flex; flex-direction: column; padding: 13px 14px 15px; height: 100%; }
.category-name { color: #4b647b; font-size: .8125rem; line-height: 1.25; font-weight: 600; }
.card-body h3 { font-size: 1rem; line-height: 1.3; margin: 6px 0 12px; overflow-wrap: anywhere; }
.model { font: 600 .875rem/1.35 "Cascadia Mono", "SFMono-Regular", Consolas, monospace; color: #155598; overflow-wrap: anywhere; }
.card-body .model { margin-top: auto; }
.message { margin: 0 0 14px; padding: 14px 17px; background: white; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; }
.retry { margin-bottom: 14px; }

.detail-wrap, .content-page, .state-page { padding-block: 24px 52px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: center; margin-bottom: 19px; color: var(--muted); font-size: .875rem; }
.breadcrumbs > * + *::before { content: "/"; color: #7f91a3; display: inline-block; margin-right: 12px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 22px; }
.gallery, .detail-summary, .detail-section, .solution-card { border: 1px solid var(--line); background: white; border-radius: 9px; overflow: hidden; }
.gallery { padding: 14px; }
.gallery #gallery-main .media-box { aspect-ratio: 1.65; }
.gallery-list { display: flex; gap: 8px; width: max-content; max-width: 100%; margin: 10px auto 0; overflow-x: auto; padding: 4px; }
.gallery-list button { display: block; width: 75px; flex: 0 0 75px; padding: 1px; border: 1px solid #c4d2dd; border-radius: 5px; background: white; }
.gallery-list button[aria-pressed="true"] { border: 2px solid var(--accent); padding: 0; }
.image-preview { display: block; cursor: zoom-in; min-width: 0; }
.image-preview:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.detail-image-grid {
  --image-gap: clamp(10px, 1.5vw, 20px);
  --image-columns: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--image-gap);
  max-width: 1200px;
  margin-inline: auto;
}
.detail-image-grid > .image-preview {
  flex: 0 0 calc((100% - (var(--image-columns) - 1) * var(--image-gap)) / var(--image-columns));
}
.detail-image-grid.single { --image-columns: 1; max-width: 840px; }
.detail-image-grid .media-box { aspect-ratio: 1.65; }
@media (min-width: 1100px) {
  .detail-image-grid:has(> .image-preview:nth-child(3)) { --image-columns: 3; }
}
@media (max-width: 600px) {
  .detail-image-grid { --image-columns: 1; }
}
.image-dialog { width: min(1020px,calc(100% - 24px)); max-height: 92vh; padding: 12px; border: 0; border-radius: 10px; color: var(--ink); background: #fff; }
.image-dialog::backdrop { background: rgb(7 20 30 / .82); }
.image-dialog-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.image-dialog-tools button { min-height: 36px; border: 1px solid var(--line); border-radius: 6px; padding-inline: 14px; background: #fff; cursor: pointer; }
.image-dialog img { display: block; width: auto; height: auto; max-width: 100%; max-height: 76vh; object-fit: contain; margin: auto; }
.product-feature-list { display: grid; gap: 10px; }
.product-feature-list dt { font-weight: 700; }
.product-feature-list dd { margin: 3px 0 0; white-space: pre-wrap; }
.detail-summary { padding: clamp(18px, 4vw, 40px); }
h1 { line-height: 1.12; font-size: clamp(1.8rem, 3.4vw, 3rem); letter-spacing: -.025em; }
.detail-summary h1 { margin: 10px 0; }
.detail-summary .model { font-size: 1.05rem; }
.detail-intro { color: var(--muted); max-width: 58ch; margin-block: 20px; }
.review-note { margin-block: 14px; color: #805316; font-size: .875rem; }
.action-row { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.button { display: inline-flex; text-align: center; align-items: center; justify-content: center; min-height: 43px; padding: .5rem .9rem; border: 1px solid; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: .9375rem; }
.primary { border-color: var(--accent); color: white; background: var(--accent); }
.primary:hover { background: #104e89; }
.outline { border-color: #9eb4c9; color: #174875; background: white; }
.outline:hover { background: #edf5fd; }
.detail-section { margin-top: 19px; padding: clamp(16px, 2.7vw, 34px); }
.detail-section h2 { margin: 0 0 12px; color: var(--ink); font-size: 1.28rem; }
.detail-section p, .detail-section ul { color: var(--muted); margin: 0 0 12px; }
.detail-section h2 + p:last-child, .detail-section h2 + ul:last-child { margin-bottom: 0; }
.detail-section li + li { margin-top: 7px; }
.detail-section video, .drawing { display: block; max-width: 850px; width: 100%; margin-inline: auto; }
.detail-section video { background: var(--nav); min-height: 180px; max-height: 600px; }
.drawing .media-box { aspect-ratio: 16 / 10; }
.spec-list { margin: 0; border: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: 1fr 2fr; border-bottom: 1px solid var(--line); }
.spec-list > div:last-child { border-bottom: 0; }
.spec-list dt, .spec-list dd { margin: 0; padding: .6rem .85rem; overflow-wrap: anywhere; }
.spec-list dt { background: #f1f6fa; font-weight: 600; }
.detail-options { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.inquiry .enquiry-form textarea { resize: vertical; }
.inquiry .enquiry-form + .action-row { margin-top: 18px; }

.content-page > h1, .state-page > h1 { margin-top: 12px; }
.solution-intro { padding: 24px; border-radius: 8px; color: white; background: #163d64; }
.solution-intro h1 { margin: 0 0 10px; }
.solution-intro p { margin: 0; max-width: 68ch; color: #ddedf7; }
.solution-grid, .compact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.solution-card a { display: block; text-decoration: none; }
.solution-card a > div:last-child { padding: 17px; }
.solution-card h2 { font-size: 1.2rem; margin: 0 0 6px; }
.solution-card p, .state-page p { margin-top: 0; color: var(--muted); }
.content-page .detail-section + .button { margin-top: 18px; }
.resource-list { display: grid; padding: 0; margin: 0; list-style: none; }
.resource-list a { background: white; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border-bottom: 1px solid var(--line); text-decoration: none; }
.resource-list a:hover { background: #e9f3fc; }
.resource-meta { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.state-page { min-height: 45vh; }
.site-foot { padding: 35px 0; background: var(--nav); color: #d8e7f2; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; }
.site-foot a { display: block; margin-bottom: 7px; color: #d8e7f2; text-decoration: none; font-size: .9rem; }
.site-foot a:hover { text-decoration: underline; }
.site-foot strong { letter-spacing: .06em; color: white; }
.site-foot p { margin-block: 7px; }

@media (min-width: 1460px) {
  .catalog-results .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1090px) {
  .wrap { width: calc(100% - 36px); }
  .catalog-layout { grid-template-columns: minmax(150px, 178px) minmax(0, 1fr); gap: 16px; }
  .catalog-results .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .toolbar { grid-template-columns: 1fr auto; gap: 8px; padding: 9px 0; }
  .head-actions { grid-column: 2; grid-row: 1; }
  .search { grid-column: 1 / -1; }
  .head-nav .wrap { gap: 17px; }
  .intro-inner { grid-template-columns: 1fr; min-height: 0; }
  .intro-copy { padding-block: 17px; }
  .intro-copy p { margin-top: 5px; }
  .intro-media { display: none; }
  .catalog-layout { display: block; padding-top: 14px; }
  .catalog-filters { padding: 8px; margin-bottom: 14px; }
  .catalog-filters h2 { margin: 0 0 4px 6px; }
  .category-list { display: flex; flex-wrap: wrap; gap: 3px; }
  .category-filter { padding: 7px 6px; }
  .detail-grid { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }
  .catalog-results .product-grid, .compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 24px); }
  .head-nav .wrap { gap: 13px; }
  .catalog-results .product-grid, .compact-grid { gap: 8px; }
  .catalog-heading h2 { font-size: 1.2rem; }
  .catalog-heading { gap: 6px; }
  .card-body { padding: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .detail-options { grid-template-columns: 1fr; }
}
.enquiry-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;margin:0;max-width:810px}
.enquiry-form label:not([hidden]){display:flex;flex-direction:column;gap:5px;font-weight:600;min-width:0}
.enquiry-form input,.enquiry-form textarea{font:inherit;border:1px solid #aab8ba;border-radius:5px;padding:8px 9px;min-width:0}
.enquiry-form label:has(textarea),.enquiry-form p{grid-column:1/-1;margin-bottom:0}
.enquiry-form button{justify-self:start}
#enquiry-feedback{overflow-wrap:anywhere}
@media(max-width:620px){.enquiry-form{grid-template-columns:minmax(0,1fr)}}
