:root {
    color-scheme: light;
    --ink: #19232e;
    --muted: #536272;
    --paper: #f5f6f8;
    --line: #dce2e8;
    --dark: #101c29;
    --accent: #ffad5c;
    --rust: #a44217;
    --radius: 14px;
    font-family: "Instrument Sans", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  }
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-padding-top: 22px; }
  body { margin: 0; background: var(--paper); color: var(--ink); }
  body:has(dialog[open]) { overflow: hidden; }
  a { color: inherit; text-decoration: none; }
  button, input { font: inherit; }
  button { cursor: pointer; }
  button:disabled { opacity: .43; cursor: default; }
  :focus-visible { outline: 3px solid #b95022; outline-offset: 4px; }
  [hidden] { display: none !important; }
  img { display: block; max-width: 100%; }
  .frame { width: min(1184px, calc(100% - 80px)); margin-inline: auto; }
  .masthead { background: #0c1520; color: white; border-bottom: 1px solid #ffffff1c; }
  .masthead .frame { min-height: 69px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .identity { display: inline-flex; align-items: center; gap: 11px; font-size: .94rem; font-weight: 700; white-space: nowrap; }
  .mark { width: 28px; height: 28px; border: 1px solid #ffad5ca0; border-radius: 7px; color: var(--accent); display: grid; place-items: center; }
  .mark::after { content: ""; width: 13px; height: 13px; background: repeating-linear-gradient(135deg, currentColor 0 2px, transparent 2px 5px); }
  .menu { display: flex; align-items: center; gap: clamp(16px, 3vw, 39px); color: #cfdae4; font-size: .88rem; }
  .menu a:hover { color: var(--accent); }
  .hero { position: relative; isolation: isolate; overflow: hidden; color: #f8fafc; background: radial-gradient(ellipse at 78% 48%, #293d50 0, #182837 36%, var(--dark) 74%); }
  .hero::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .28; background-image: linear-gradient(#8197ad3b 1px, transparent 1px), linear-gradient(90deg, #8197ad3b 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(90deg, transparent 27%, #000 88%); }
  .hero-grid { min-height: 475px; display: grid; grid-template-columns: 1fr .95fr; gap: clamp(30px, 6vw, 85px); align-items: center; padding-block: 56px 64px; }
  .hero h1 { font-size: clamp(2.4rem, 4.65vw, 4rem); line-height: 1.14; letter-spacing: -.045em; margin: 0; }
  .hero h1 span { display: block; }
  .hero p { color: #c2cfdb; font-size: clamp(.92rem, 1.4vw, 1.03rem); margin: 22px 0 28px; line-height: 1.8; }
  .actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .action { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 0 17px; border: 1px solid transparent; border-radius: 7px; font-size: .88rem; font-weight: 700; }
  .primary { background: var(--accent); color: #21170f; }
  .primary:hover { background: #ffc58a; }
  .secondary { background: #ffffff08; border-color: #ffffff42; color: #fff; }
  .secondary:hover { background: #ffffff15; }
  .hero-visual { inline-size: 100%; padding-top: 20px; position: relative; }
  .hero-visual::before { content: ""; position: absolute; inset: 0 3% 27px; border: 1px solid #a4bbd141; border-radius: 4px; pointer-events: none; }
  .hero-visual::after { content: ""; position: absolute; width: 20%; height: 1px; right: 3%; top: 0; background: var(--accent); pointer-events: none; }
  .hero-photo { position: relative; display: grid; min-height: 285px; width: 100%; place-items: center; margin: 0; padding: 0; border: 0; background: transparent; }
  .hero-photo img { width: min(77%, 365px); aspect-ratio: 600 / 504; height: auto; object-fit: contain; filter: drop-shadow(12px 21px 18px #080d17b3); transition: transform .2s; }
  .hero-photo:hover img { transform: translateY(-5px); }
  .model-label { position: relative; margin: 13px 3% 0; display: flex; justify-content: space-between; color: #c7d3df; font: .8rem ui-monospace, Consolas, monospace; letter-spacing: .08em; }
  .model-label span:last-child { color: var(--accent); }
  .catalog { padding-block: 63px 68px; }
  .section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
  h2 { margin: 0; font-size: clamp(1.55rem, 3.5vw, 2.15rem); letter-spacing: -.03em; }
  .section-head p { color: var(--muted); margin: 8px 0 0; font-size: .88rem; }
  .search { position: relative; display: flex; align-items: center; width: min(100%, 326px); }
  .search::before { content: ""; border: 1.65px solid #627486; width: 13px; height: 13px; border-radius: 100%; position: absolute; left: 16px; top: 15px; pointer-events: none; }
  .search::after { content: ""; position: absolute; width: 6px; height: 1.65px; border-radius: 4px; background: #627486; left: 26px; top: 27px; transform: rotate(45deg); pointer-events: none; }
  .search input { width: 100%; min-height: 45px; padding: 8px 44px 8px 39px; border: 1px solid #cbd4dc; color: var(--ink); background: #fff; border-radius: 7px; font-size: .88rem; }
  .search input::-webkit-search-cancel-button { display: none; }
  .clear { position: absolute; right: 7px; width: 32px; height: 32px; border: 0; background: transparent; color: #4a5c70; font-size: 1.2rem; border-radius: 5px; }
  .clear:hover { background: var(--paper); }
  .filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
  .filter { padding: 8px 13px; min-height: 38px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #39485a; font-size: .82rem; font-weight: 600; }
  .filter:hover { border-color: #ba6339; color: var(--rust); }
  .filter[aria-pressed="true"] { background: #1c2c3a; border-color: #1c2c3a; color: #fff; }
  .result { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-top: 1px solid var(--line); margin-bottom: 15px; padding-top: 15px; }
  .result p { color: var(--muted); font-size: .83rem; margin: 0; }
  .products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 17px; }
  .card { width: 100%; min-width: 0; display: flex; flex-direction: column; text-align: left; padding: 0; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .18s, border-color .18s, transform .18s; }
  .card:hover { border-color: #ae673f; transform: translateY(-2px); box-shadow: 0 10px 22px #27384a16; }
  .card-picture { align-self: stretch; display: grid; height: clamp(123px, 15vw, 164px); padding: 14px 20px 12px; place-items: center; background: #fff; }
  .card-picture img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
  .card-body { display: flex; flex-direction: column; flex: 1; width: 100%; padding: 12px 16px 14px; border-top: 1px solid #edf0f3; }
  .card-series { font-size: .73rem; color: var(--rust); font-weight: 700; }
  .card-title { margin-top: 4px; font: 700 clamp(.94rem, 1.65vw, 1.23rem) ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
  .metrics { margin: 10px 0 11px; flex: 1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 7px; font-size: .69rem; }
  .metrics span { color: var(--muted); display: block; }
  .metrics strong { color: var(--ink); font-weight: 700; display: block; font-size: .77rem; margin-top: 3px; }
  .metrics .see-image { grid-column: 1 / -1; }
  .card-link { display: flex; justify-content: space-between; gap: 8px; align-items: center; border-top: 1px solid #edf0f3; padding-top: 9px; color: #303e4c; font-size: .77rem; font-weight: 650; }
  .card-link span { color: var(--rust); font-size: 1rem; }
  .empty { grid-column: 1 / -1; margin: 0; padding: 25px; background: #fff; border: 1px dashed #c5d0db; border-radius: var(--radius); color: var(--muted); }
  .resources { background: #e9eef3; border-top: 1px solid var(--line); padding-block: 49px 59px; }
  .resource-grid { display: grid; gap: 14px; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 21px; }
  .resource { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; min-height: 66px; padding: 12px 15px; border-radius: 8px; border: 1px solid #cfd8e0; background: #fff; color: var(--ink); font-size: .9rem; font-weight: 700; }
  .resource:hover { border-color: #ae673f; }
  .resource span { color: var(--rust); }
  footer { background: #0c1520; color: #d2dce6; padding: 20px 0; font-size: .78rem; }
  footer .frame { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
  footer a:hover { color: var(--accent); }
  dialog { width: min(1000px, calc(100% - 30px)); max-height: 94dvh; padding: 0; border: 0; border-radius: 12px; color: var(--ink); background: #fff; overflow: hidden; box-shadow: 0 20px 90px #0b152988; }
  dialog::backdrop { background: #09131dc9; }
  .viewer { display: flex; flex-direction: column; max-height: 94dvh; }
  .viewer-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 17px; border-bottom: 1px solid var(--line); }
  .viewer-title { margin: 0; font-size: 1.12rem; }
  .viewer-context { color: var(--muted); margin: 4px 0 0; font-size: .8rem; }
  .viewer-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 9px 16px; background: #f7f8fa; border-bottom: 1px solid var(--line); }
  .tool-group { display: flex; flex-wrap: wrap; gap: 6px; }
  .tool { min-height: 35px; padding: 5px 9px; border: 1px solid #cdd6df; background: #fff; color: #233243; border-radius: 6px; white-space: nowrap; font-size: .8rem; }
  .tool:hover:not(:disabled) { border-color: #a44217; }
  .close { width: 36px; font-size: 1.18rem; }
  .viewer-scroll { overflow: auto; flex: 1; min-height: 0; padding: 14px; background: #e8edf2; }
  .media { width: var(--media-width, 100%); max-width: none; margin-inline: auto; overflow: hidden; background: #fff; }
  .media img { width: 100%; max-width: none; }
  .media[data-side="0"] img, .media[data-side="1"] img { width: 200%; }
  .media[data-side="1"] img { transform: translateX(-50%); }
  @media (max-width: 960px) {
    .frame { width: calc(100% - 48px); }
    .products { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .hero-grid { min-height: 410px; gap: 30px; }
    .hero-photo { min-height: 240px; }
  }
  @media (max-width: 650px) {
    .frame { width: calc(100% - 30px); }
    .masthead .frame { min-height: 57px; gap: 10px; }
    .identity { font-size: .81rem; gap: 6px; }
    .mark { width: 23px; height: 23px; }
    .menu { gap: 14px; font-size: .75rem; }
    .hero-grid { grid-template-columns: 1fr; padding-block: 34px 28px; gap: 22px; }
    .hero h1 { font-size: clamp(2.1rem, 8.7vw, 3.3rem); }
    .hero p { margin: 14px 0 18px; }
    .hero-visual { padding-top: 10px; }
    .hero-photo { min-height: 0; padding-block: 9px; }
    .hero-photo img { width: min(64%, 235px); }
    .catalog { padding-block: 37px 45px; }
    .section-head { display: grid; gap: 15px; margin-bottom: 15px; }
    .search { width: 100%; }
    .filters { margin-bottom: 15px; gap: 6px; }
    .filter { padding-inline: 9px; }
    .products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .card-picture { padding: 11px 10px 8px; }
    .card-body { padding: 9px 8px 10px; }
    .metrics { gap: 4px; }
    .metrics strong { font-size: .72rem; }
    .tool { min-height: 39px; }
    .resources { padding-block: 32px 39px; }
    .resource-grid { grid-template-columns: 1fr; gap: 8px; }
    .resource { min-height: 46px; }
    .viewer-scroll { padding: 5px; }
    .viewer-tools { padding-inline: 7px; }
  }
  @media (max-width: 335px) {
    .menu { gap: 8px; }
    .metrics { grid-template-columns: 1fr; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
  }
  .whatsapp-action { background: #178747; color: #fff; }
  .whatsapp-action:hover { background: #116c38; }
  .contact { padding-block: 56px; background: #fff; border-top: 1px solid var(--line); }
  .contact-content { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
  .contact h2 { max-width: 600px; font-size: clamp(1.5rem, 3vw, 2rem); }
  .contact p { max-width: 540px; color: var(--muted); font-size: .94rem; line-height: 1.7; margin: 14px 0 0; }
  .contact-actions { display: flex; flex-direction: column; align-items: center; gap: 13px; flex-shrink: 0; }
  .contact-number { color: #116c38; font-size: .96rem; letter-spacing: .025em; }
  .contact-number:hover { text-decoration: underline; }
  .floating-contact { position: fixed; z-index: 10; right: 22px; bottom: 22px; display: inline-flex; gap: 14px; align-items: center; min-height: 46px; padding: 12px 18px; border-radius: 28px; background: #178747; color: #fff; font-size: .9rem; font-weight: 700; box-shadow: 0 5px 20px #0c281e35; }
  .floating-contact:hover { background: #116c38; }
  .inquiry-link { display: inline-flex; align-items: center; border-color: #178747; color: #116c38; }
  footer { padding-bottom: 85px; }
  @media (max-width: 650px) {
    .masthead .frame { flex-wrap: wrap; padding-block: 14px; gap: 14px; }
    .menu { width: 100%; justify-content: space-between; }
    .contact { padding-block: 35px; }
    .contact-content { flex-direction: column; align-items: flex-start; gap: 24px; }
    .contact-actions { align-items: flex-start; }
    .floating-contact { right: 15px; bottom: 15px; min-height: 44px; }
  }
