:root, [data-theme="light"] {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.25rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px;
  --font-display: 'Cabinet Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Satoshi', 'Segoe UI', sans-serif;

  --navy: #0B1F3F;
  --orange: #E4521F;
  --orange-hover: #C8431A;
  --green: #138A6A;

  --bg: #F6F8FA;
  --surface: #FFFFFF;
  --surface-2: #EDF1F5;
  --text: #0B1F3F;
  --muted: #4E5B6E;
  --faint: #7C8797;
  --border: #D9E0E8;
  --dark-bg: #0B1F3F;
  --dark-text: #E9EEF5;
  --dark-muted: #A9B6C8;
  --shadow: 0 1px 2px rgba(11,31,63,.06), 0 8px 24px rgba(11,31,63,.06);
}
[data-theme="dark"] {
  --bg: #07142A;
  --surface: #0D1E38;
  --surface-2: #0A1930;
  --text: #EAF0F7;
  --muted: #A6B3C5;
  --faint: #7F8DA2;
  --border: #1F3354;
  --dark-bg: #040D1D;
  --green: #3CC49D;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap { width: min(1200px, 100% - 2 * var(--space-6)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--space-4); top: var(--space-4); z-index: 100; background: var(--surface); padding: var(--space-2) var(--space-4); }
.sr { position: absolute; left: 0; top: 0; white-space: nowrap; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* top bar + header */
.topbar { background: var(--navy); color: #C9D3E1; font-size: var(--text-xs); }
[data-theme="dark"] .topbar { background: #040D1D; }
.topbar-in { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-2); }
.topbar a { text-decoration: none; color: #fff; }
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-in { display: flex; align-items: center; gap: var(--space-8); padding-block: var(--space-3); }
.brand { flex-shrink: 0; }
.logo { height: 56px; width: auto; }
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }
.nav { display: flex; gap: var(--space-6); margin-left: auto; }
.nav a { text-decoration: none; font-size: var(--text-sm); font-weight: 500; color: var(--muted); padding-block: var(--space-2); transition: color .15s; }
.nav a:hover { color: var(--text); }
.actions { display: flex; align-items: center; gap: var(--space-2); }
.icon-btn { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.icon-btn:hover { border-color: var(--faint); }
.lang { font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; }
.i-sun { display: none; } [data-theme="dark"] .i-sun { display: block; } [data-theme="dark"] .i-moon { display: none; }
.menu-btn { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-5); border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: var(--text-sm); font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: var(--text); }
.btn-accent { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.btn-ghost { background: transparent; }
.btn-lg { min-height: 52px; padding: 0 var(--space-6); font-size: var(--text-base); }
.btn-sm { min-height: 36px; padding: 0 var(--space-3); font-size: var(--text-xs); }

.eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: var(--space-3); }
.eyebrow.on-dark { color: #5FD3AF; }

/* hero */
.hero { padding-block: clamp(var(--space-10), 6vw, var(--space-20)) var(--space-12); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
.hero h1 { font-size: var(--text-2xl); font-weight: 800; }
.lead { margin-top: var(--space-6); font-size: var(--text-lg); line-height: 1.5; color: var(--muted); max-width: 38ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.facts { list-style: none; padding: 0; margin: clamp(var(--space-10), 5vw, var(--space-16)) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.facts li { padding: var(--space-5) var(--space-5) 0 0; display: grid; gap: var(--space-1); }
.facts li + li { padding-left: var(--space-5); border-left: 1px solid var(--border); }
.facts strong { font-size: var(--text-sm); }
.facts span { font-size: var(--text-xs); color: var(--muted); }

/* sections */
.section { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }
.section-alt { background: var(--surface-2); }
.sec-head { max-width: 60ch; margin-bottom: var(--space-10); }
.sec-head h2 { font-size: var(--text-xl); font-weight: 800; }
.sec-head > p:not(.eyebrow) { margin-top: var(--space-4); color: var(--muted); }
.sec-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: var(--space-6); flex-wrap: wrap; }

/* areas */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.area { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.area img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.area-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.area h3 { font-size: var(--text-lg); font-weight: 700; }
.area p { color: var(--muted); font-size: var(--text-sm); }
.area .link { margin-top: auto; padding-top: var(--space-2); font-size: var(--text-sm); font-weight: 700; color: var(--orange); text-decoration: none; }
.area .link:hover { text-decoration: underline; }
[data-theme="dark"] .area .link { color: #FF7B4D; }
.area-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
.area-feature img { aspect-ratio: auto; height: 100%; }
.area-feature .area-body { padding: clamp(var(--space-6), 4vw, var(--space-12)); justify-content: center; }
.area-feature h3 { font-size: var(--text-xl); font-weight: 800; }
.area-feature p { font-size: var(--text-base); }
.tag { align-self: flex-start; font-size: var(--text-xs); font-weight: 700; color: var(--orange); border: 1px solid currentColor; border-radius: 999px; padding: 2px var(--space-3); }
.chips { list-style: none; padding: 0; margin: var(--space-2) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips li { font-size: var(--text-xs); font-weight: 500; padding: var(--space-1) var(--space-3); background: var(--surface-2); border-radius: var(--radius-sm); }

/* catalog */
.filters { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.filter { min-height: 40px; padding: 0 var(--space-4); border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: var(--text-sm); font-weight: 500; }
.filter.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
[data-theme="dark"] .filter.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.table-wrap { position: relative; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.cat { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 720px; }
.cat th { text-align: left; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 700; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); }
.cat td { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--muted); }
.cat td strong { color: var(--text); }
.cat tr:last-child td { border-bottom: 0; }
.cat td:last-child { text-align: right; }
.cat tr[hidden] { display: none; }
.note { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--faint); max-width: 80ch; }

/* process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 2px solid var(--navy); }
[data-theme="dark"] .steps { border-top-color: var(--text); }
.steps li { padding: var(--space-6) var(--space-5) 0 0; position: relative; }
.steps li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.steps .n { font-family: var(--font-display); font-weight: 800; font-size: var(--text-sm); color: var(--faint); }
.steps h3 { font-size: var(--text-lg); font-weight: 700; margin: var(--space-2) 0 var(--space-2); }
.steps p { font-size: var(--text-sm); color: var(--muted); }

/* quality */
.section-dark { background: var(--dark-bg); color: var(--dark-text); }
.quality { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(var(--space-8), 6vw, var(--space-20)); align-items: start; }
.quality h2 { font-size: var(--text-xl); font-weight: 800; }
.quality > div > p:not(.eyebrow) { margin: var(--space-4) 0 var(--space-8); color: var(--dark-muted); max-width: 42ch; }
.docs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); overflow: hidden; }
.docs > div { background: var(--dark-bg); padding: var(--space-6); }
.docs dt { font-weight: 700; margin-bottom: var(--space-2); }
.docs dd { margin: 0; font-size: var(--text-sm); color: var(--dark-muted); }

/* welfare */
.welfare { position: relative; min-height: clamp(460px, 60vw, 640px); display: flex; align-items: flex-end; overflow: hidden; }
.welfare > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.welfare-in { position: relative; padding-block: var(--space-12); }
.welfare-card { background: var(--surface); max-width: 520px; padding: clamp(var(--space-6), 4vw, var(--space-10)); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.welfare-card h2 { font-size: var(--text-xl); font-weight: 800; margin-bottom: var(--space-4); }
.welfare-card p:not(.eyebrow) { color: var(--muted); }

/* about */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(var(--space-8), 6vw, var(--space-20)); }
.about h2 { font-size: var(--text-xl); font-weight: 800; }
.about-copy { display: grid; gap: var(--space-5); color: var(--muted); }
.about-copy p:first-child { font-size: var(--text-lg); color: var(--text); line-height: 1.5; }
.who { list-style: none; padding: var(--space-5) 0 0; margin: 0; border-top: 1px solid var(--border); }
.who li { display: grid; gap: var(--space-1); }
.who strong { color: var(--text); font-size: var(--text-sm); }
.who span { font-size: var(--text-sm); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(var(--space-8), 6vw, var(--space-20)); align-items: start; }
.contact h2 { font-size: var(--text-xl); font-weight: 800; }
.contact > div > p:not(.eyebrow) { margin-top: var(--space-4); color: var(--muted); max-width: 42ch; }
.contact-list { margin: var(--space-8) 0 0; display: grid; gap: var(--space-4); }
.contact-list dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 700; }
.contact-list dd { margin: 0; font-weight: 500; }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(var(--space-6), 4vw, var(--space-10)); display: grid; gap: var(--space-4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form label { display: grid; gap: var(--space-2); font-size: var(--text-sm); font-weight: 500; }
.form input, .form select, .form textarea { font: inherit; font-size: var(--text-base); color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-3); min-height: 48px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 25%, transparent); }
.form .invalid { border-color: #C0392B; }
.form button { justify-self: start; }
.form-status { font-size: var(--text-sm); color: var(--green); min-height: 1.5em; }

/* footer */
.footer { background: var(--dark-bg); color: var(--dark-muted); padding-block: var(--space-12) var(--space-8); font-size: var(--text-sm); }
.footer-in { display: grid; grid-template-columns: 1fr auto; gap: var(--space-8); }
.footer-logo { height: 44px; width: auto; margin-bottom: var(--space-3); }
.footer-nav { display: flex; gap: var(--space-6); flex-wrap: wrap; align-items: start; }
.footer-nav a { text-decoration: none; color: var(--dark-text); }
.footer-nav a:hover { text-decoration: underline; }
.fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: var(--space-6); font-size: var(--text-xs); }

/* responsive */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-10); }
  .areas { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: var(--space-2) var(--space-6) var(--space-4); }
  .nav.open { display: flex; }
  .nav a { padding-block: var(--space-3); border-bottom: 1px solid var(--border); }
  .menu-btn { display: inline-grid; }
  .actions { margin-left: auto; }
  .hide-sm { display: none; }
  .hero-grid, .quality, .about, .contact, .area-feature { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 10; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .area-feature img { aspect-ratio: 3 / 2; }
}
@media (max-width: 600px) {
  .topbar span { display: none; }
  .topbar-in { justify-content: flex-end; }
  .logo { height: 38px; }
  .areas, .steps, .docs, .field-row { grid-template-columns: 1fr; }
  .facts li { padding-right: var(--space-3); }
  .facts li + li { padding-left: var(--space-3); }
  .footer-in { grid-template-columns: 1fr; }
  .steps { border-top: 0; border-left: 2px solid var(--navy); padding-left: var(--space-6); row-gap: var(--space-8); }
  [data-theme="dark"] .steps { border-left-color: var(--text); }
  .steps li { padding: 0; }
  .steps li::before { top: 4px; left: calc(-1 * var(--space-6) - 7px); }
  .cat { min-width: 0; }
  .cat thead { display: none; }
  .cat tr { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1) var(--space-4); padding: var(--space-5); border-bottom: 1px solid var(--border); }
  .cat tr:last-child { border-bottom: 0; }
  .cat td { padding: 0; border: 0; }
  .cat td:first-child, .cat td:nth-child(4) { grid-column: 1 / -1; }
  .cat td:last-child { grid-column: 1 / -1; text-align: left; padding-top: var(--space-3); }
}

/* v2 additions */
.topbar-links { display: flex; gap: var(--space-5); }
.area-links { margin-top: auto; display: flex; gap: var(--space-5); flex-wrap: wrap; align-items: center; }
.area-links .link { margin-top: 0; }
.area .link-muted { color: var(--muted); }
[data-theme="dark"] .area .link-muted { color: var(--muted); }
.tag-muted { color: var(--green); }
.spec td.val { color: var(--text); font-weight: 500; white-space: nowrap; }
.spec td:last-child { text-align: left; }
.uses { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-top: var(--space-8); }
.use { display: grid; grid-template-columns: auto 1fr; gap: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); }
.use-rate { display: grid; align-content: start; gap: var(--space-1); min-width: 7ch; border-right: 1px solid var(--border); padding-right: var(--space-6); }
.use-rate span { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); line-height: 1; color: var(--orange); }
.use-rate small { font-size: var(--text-xs); color: var(--muted); font-weight: 500; }
.use h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); }
.use p { font-size: var(--text-sm); color: var(--muted); }
.about-side { position: sticky; top: 110px; align-self: start; }
.about-facts { margin: var(--space-8) 0 0; display: grid; gap: var(--space-4); border-top: 1px solid var(--border); padding-top: var(--space-6); }
.about-facts dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 700; }
.about-facts dd { margin: 0; font-weight: 500; color: var(--text); }
.about-copy { gap: var(--space-8); }
.about-copy p.about-lead { font-size: var(--text-lg); color: var(--text); line-height: 1.5; }
.about-block { display: grid; gap: var(--space-3); border-top: 1px solid var(--border); padding-top: var(--space-6); }
.about-block h3 { font-size: var(--text-lg); font-weight: 700; color: var(--text); }
.about-block blockquote { margin: var(--space-2) 0 0; padding-left: var(--space-5); border-left: 3px solid var(--orange); font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); line-height: 1.35; color: var(--text); }
.about-close { font-weight: 500; color: var(--text); }
address { font-style: normal; line-height: 1.5; }
.map-link { display: inline-block; margin-top: var(--space-2); font-size: var(--text-sm); color: var(--orange); font-weight: 700; text-decoration: none; }
.footer-addr { margin-top: var(--space-2); font-size: var(--text-xs); }
.footer-addr a { color: var(--dark-text); }
@media (max-width: 860px) {
  .uses { grid-template-columns: 1fr; }
  .about-side { position: static; }
}
@media (max-width: 600px) {
  .topbar-links a:first-child { display: none; }
  .use { grid-template-columns: 1fr; }
  .use-rate { border-right: 0; padding-right: 0; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: var(--space-3); }
  .spec td.val { white-space: normal; }
  .spec tr { grid-template-columns: 1fr; }
}
