:root {
  --ink: #222022;
  --muted: #6f6d70;
  --line: #d8d6d7;
  --red: #ed1c2e;
  --paper: #fff;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #fff; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 13px clamp(18px, 4vw, 64px);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

.brand { display: flex; align-items: center; width: clamp(112px, 10vw, 154px); text-decoration: none; }
.brand img { display: block; width: 100%; height: auto; }

.main-nav { display: flex; justify-content: flex-end; align-items: center; gap: clamp(14px, 2vw, 30px); }
.main-nav > a, .dropdown > button { padding: 12px 0; border: 0; background: none; text-decoration: none; font-size: 1.05rem; color: #2e2b2d; cursor: pointer; }
.main-nav > a:hover, .main-nav > a:focus-visible, .dropdown > button:hover, .dropdown > button:focus-visible { color: var(--red); }
.dropdown { position: relative; }
.dropdown > button::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 8px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); }
.dropdown-menu { position: absolute; top: 100%; left: -22px; min-width: 220px; padding: 9px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 34px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s ease; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu, .dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 12px 13px; text-decoration: none; border-radius: 5px; }
.dropdown-menu a:hover, .dropdown-menu a:focus-visible { color: var(--red); background: #f6f5f5; }

.contact-button { justify-self: end; padding: 12px 18px; text-decoration: none; border: 1.5px solid #282528; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.contact-button:hover, .contact-button:focus-visible { background: var(--ink); color: white; }
.menu-toggle { display: none; }
.language-switch { display: flex; align-items: center; gap: 4px; }
.language-switch a { min-width: 31px; padding: 7px 6px; border-radius: 4px; color: #5e5a5d; text-align: center; text-decoration: none; font-size: .82rem; font-weight: 800; }
.language-switch a:hover, .language-switch a:focus-visible { color: var(--red); }
.language-switch a.active { color: white; background: var(--ink); }

#app { min-height: calc(100vh - 280px); }
.page-shell { width: min(100%, 1600px); margin: 0 auto; background: white; }
.page-image-wrap { position: relative; background: white; }
.page-image { display: block; width: 100%; height: auto; }
.page-tools { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px clamp(18px, 5vw, 72px); border-top: 1px solid var(--line); }
.page-tools a { text-decoration: none; font-weight: 700; }
.page-tools a:hover { color: var(--red); }

.detail-panel { padding: 38px clamp(18px, 5vw, 72px) 58px; border-top: 1px solid var(--line); background: #fff; }
.detail-panel h2 { margin: 0 0 22px; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.detail-card { display: flex; flex-direction: column; min-height: 300px; overflow: hidden; text-decoration: none; background: white; border: 1px solid #d7d5d5; border-radius: 8px; transition: transform .18s, box-shadow .18s, border-color .18s; }
.detail-card:hover, .detail-card:focus-visible { transform: translateY(-2px); border-color: #a8a4a5; box-shadow: 0 9px 24px rgba(0,0,0,.09); }
.detail-card img { width: 100%; height: 220px; object-fit: contain; padding: 12px; background: #f7f7f7; border-bottom: 1px solid #e0dede; }
.detail-card span { padding: 16px; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }

.contact-page { width: min(1080px, calc(100% - 32px)); margin: 42px auto 70px; background: white; padding: clamp(24px, 5vw, 68px); font-size: 1.03rem; box-shadow: 0 18px 48px rgba(0,0,0,.08); }
.contact-page h1 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 3.4rem); }
.contact-page .intro { max-width: 790px; margin: 0 0 38px; font-size: 1.1rem; line-height: 1.55; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 24px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; color: var(--ink); border: 1px solid #aaa6a8; border-radius: 4px; background: white; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(237,28,46,.15); border-color: var(--red); }
.field textarea { min-height: 140px; resize: vertical; }
.field small { color: #656164; }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.submit-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.submit-row button { padding: 14px 23px; border: 0; border-radius: 999px; color: white; background: var(--red); font-weight: 800; cursor: pointer; }
.submit-row button:hover { background: #c81424; }
.form-status { color: #484448; }

.not-found { max-width: 760px; margin: 80px auto; padding: 40px; background: white; text-align: center; }
.not-found a { color: var(--red); }

.site-footer { display: grid; grid-template-columns: .8fr .8fr 1.35fr 1.2fr .8fr; gap: 28px; padding: 28px clamp(18px, 4vw, 64px); color: white; background: #3f3d40; font-size: 1rem; line-height: 1.45; }
.site-footer div { display: flex; flex-direction: column; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; }

@media (max-width: 1700px) {
  .site-header { grid-template-columns: auto 1fr auto; gap: 14px; }
  .menu-toggle { display: block; justify-self: end; padding: 9px 12px; border: 1px solid #777; border-radius: 5px; background: white; }
  .contact-button { display: none; }
  .language-switch { grid-column: 1 / -1; justify-content: flex-end; margin-top: -8px; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; align-items: stretch; padding: 12px 22px 22px; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 10px 25px rgba(0,0,0,.08); }
  .main-nav.open { display: grid; }
  .main-nav > a, .dropdown > button { width: 100%; padding: 10px; text-align: left; }
  .dropdown-menu { position: static; display: none; min-width: 0; margin: 0 0 5px 12px; box-shadow: none; opacity: 1; visibility: visible; transform: none; border: 0; border-left: 2px solid var(--red); border-radius: 0; }
  .dropdown.open .dropdown-menu { display: block; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .site-footer { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .site-header { min-height: 64px; padding: 9px 16px; }
  .brand { width: 112px; }
  .page-shell { width: 100%; overflow: visible; }
  .page-image { width: 100%; max-width: 100%; height: auto; transform: none; }
  .page-tools { align-items: flex-start; flex-direction: column; }
  .detail-panel { padding: 28px 16px 40px; }
  .detail-grid { grid-template-columns: 1fr; }
  .contact-page { margin: 20px auto 42px; padding: 24px 18px 32px; }
  .contact-form { grid-template-columns: 1fr; }
  .field.full, .consent, .submit-row { grid-column: 1; }
  .site-footer { grid-template-columns: 1fr; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.html-page { width: min(1180px, 100%); margin: 0 auto; background: #fff; }
.content-header { padding: clamp(38px, 7vw, 92px) clamp(20px, 7vw, 92px) 30px; }
.content-header h1 { max-width: 1000px; margin: .2rem 0 1.5rem; font-size: clamp(1.7rem, 2.6vw, 2.7rem); line-height: 1.12; letter-spacing: -.015em; overflow-wrap: anywhere; }
.content-header p { max-width: 900px; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.65; }
.content-header .subheading { max-width: 900px; margin: 2rem 0 .6rem; font-size: clamp(1.2rem, 1.8vw, 1.55rem); line-height: 1.25; }
.content-header .bullet { position: relative; margin: .35rem 0 .35rem 1.25rem; padding-left: .75rem; }
.content-header .bullet::before { content: "•"; position: absolute; left: -.65rem; font-weight: 700; }
.technical-figure { margin: 0 clamp(16px, 4vw, 60px) 45px; border: 0; background: #fff; }
.technical-figure img { display: block; width: 100%; height: auto; }
.home-hero { margin: 30px 0 28px; overflow: hidden; border-radius: 2px; background: #eee; }
.home-hero img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.category-figure { margin: 0 clamp(20px, 7vw, 92px) 20px; border: 0; background: #fff; }
.category-figure img { display: block; width: 100%; max-height: 620px; object-fit: contain; }
.technical-figure figcaption { padding: 10px 14px; color: var(--muted); font-size: .85rem; }
.html-page .detail-panel { border-top: 0; }
@media (max-width: 620px) {
  .content-header { padding-top: 32px; }
  .technical-figure { margin-left: 10px; margin-right: 10px; }
}
