/* ============================================================
   WDTA — shared site styles
   Extracted from V2/index.html so catalog / detail pages share
   the exact same skin (tokens, header, footer, buttons, type).
   ============================================================ */
:root {
  --ink: #0f1b2e;
  --text: #38465c;
  --muted: #66738a;
  --faint: #98a4b7;
  --line: #e6ebf3;
  --line-soft: #eff3f9;
  --bg: #ffffff;
  --bg-soft: #f3f8ff;
  --brand: #1f6ae6;
  --brand-600: #2a78f0;
  --brand-deep: #1551c0;
  --brand-ink: #0c2f6e;
  --brand-soft: #e7f0ff;
  --sky-1: #2a6fe6;
  --sky-2: #57a0f1;
  --green: #18b06a;
  --green-soft: #e4f7ed;
  --gold: #e6a015;
  --gold-soft: #fdeed1;
  --red: #d3493c;
  --red-soft: #fdeceb;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 50, 110, 0.05), 0 8px 20px rgba(15, 50, 110, 0.07);
  --shadow: 0 24px 54px -26px rgba(15, 60, 130, 0.4);
  --mono: "SFMono-Regular", "Roboto Mono", ui-monospace, Consolas, monospace;
  --sans: "Plus Jakarta Sans", "Noto Sans SC", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; letter-spacing: -0.018em; }
h1 { font-size: clamp(2.3rem, 1.5rem + 2.6vw, 3.4rem); font-weight: 300; line-height: 1.12; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.15rem); font-weight: 750; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.32; letter-spacing: -0.01em; }
p { margin: 0; }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 60px 0; position: relative; }
.section.soft { background: linear-gradient(180deg, #ebf2ff 0%, #f7fbff 72%); }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--brand); margin-bottom: 15px; }
.lead { font-size: 1.16rem; line-height: 1.65; color: var(--muted); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 28px; white-space: nowrap; border-radius: var(--radius-pill); font-size: 0.97rem; font-weight: 650; border: 1.5px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 12px 26px -12px rgba(21, 73, 155, 0.75); }
.btn.primary:hover { background: var(--brand-600); }
.btn.ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); }
.btn.lg { height: 56px; padding: 0 34px; font-size: 1.02rem; }
.btn-sm { height: 38px; padding: 0 18px; border-radius: var(--radius-pill); font-size: 0.84rem; font-weight: 650; display: inline-flex; align-items: center; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--brand); }
.link:hover { gap: 9px; }

/* Utility strip */
.strip { background: var(--brand-ink); color: rgba(255, 255, 255, 0.72); font-size: 0.76rem; letter-spacing: 0.02em; }
.strip .container { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.strip-r { display: flex; gap: 20px; color: rgba(255, 255, 255, 0.6); }
.strip-r span { cursor: pointer; }
.strip-r span:hover { color: #fff; }

/* Header */
.header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.nav { height: 72px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 40px; height: 32px; object-fit: contain; }
.brand b { display: block; font-size: 1rem; color: var(--ink); font-weight: 750; }
.brand span { display: block; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.nav-links { display: flex; justify-content: center; gap: 26px; }
.nav-links a { font-size: 0.82rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); padding: 26px 0; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-links a.active::after, .nav-links a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--brand); }
.nav-side { display: flex; align-items: center; gap: 12px; }
.lang { font-size: 0.8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.lang button { background: none; border: none; padding: 0 2px; font: inherit; color: var(--muted); cursor: pointer; }
.lang button:hover { color: var(--brand); }
.lang button.on { color: var(--brand); font-weight: 700; }
.lang .sep { color: var(--faint); }
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
.nav-search { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.nav-search:hover { color: var(--brand); border-color: var(--brand); }

/* Breadcrumb */
.crumb { font-size: 0.84rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb a:hover { color: var(--brand); }
.crumb .sep { color: var(--faint); }
.crumb .cur { color: var(--ink); font-weight: 600; }

/* Code chip (cert number) */
.chip-code { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; border-radius: 5px; padding: 2px 8px; color: var(--brand); background: var(--brand-soft); }
.cat-sec .chip-code, .chip-code.sec { color: var(--red); background: var(--red-soft); }
.cat-gov .chip-code, .chip-code.gov { color: var(--green); background: var(--green-soft); }

/* Stats band */
.stats-band { padding: 44px 0; }
.stats-lead { text-align: center; font-size: 1.2rem; font-weight: 600; color: var(--ink); margin: 0 auto 30px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 900px; margin: 0 auto; }
.stat { text-align: center; padding: 6px 28px; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 60px; background: var(--line); }
.stat .num { font-size: clamp(2.6rem, 5vw, 3.7rem); font-weight: 700; line-height: 1; letter-spacing: -0.035em; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.stat .lab { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }

/* Footer */
.footer { background: linear-gradient(165deg, #0d3373 0%, #07203f 100%); color: rgba(255, 255, 255, 0.62); padding: 58px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 34px; }
.footer h4 { color: #fff; font-size: 0.85rem; margin: 0 0 16px; font-weight: 650; }
.footer a, .footer p { display: block; font-size: 0.85rem; color: rgba(255, 255, 255, 0.62); margin-bottom: 10px; line-height: 1.5; }
.footer a:hover { color: #fff; }
.footer .fbrand b { color: #fff; font-size: 1rem; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 34px; height: 34px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.72); margin: 0; }
.social a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; justify-content: space-between; font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }
.foot-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-legal a { font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); margin: 0; }
.foot-legal a:hover { color: rgba(255, 255, 255, 0.85); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* CTA band */
.cta-band { background: linear-gradient(86deg, #0060eb 3.56%, #3f86f5 52%, #18b06a 120%); border-radius: 24px; padding: 48px 44px; color: #fff; text-align: center; box-shadow: 0 30px 60px -34px rgba(15, 60, 130, 0.55); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.92); margin: 14px auto 26px; max-width: 560px; font-size: 1.05rem; }
.cta-band .btn.primary { background: #fff; color: var(--brand-deep); }
.cta-band .btn.ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.4); }

@media (max-width: 980px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 4px 24px 14px; }
  .header.nav-open .nav-links { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links a.active::after, .nav-links a:hover::after { display: none; }
}
@media (max-width: 640px) { .strip { display: none; } }
@media (max-width: 560px) {
  .section { padding: 44px 0; }
  .container { width: calc(100% - 32px); }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat { padding: 4px 6px; }
  .stat .num { font-size: 2rem; }
  .stat:not(:last-child)::after { height: 40px; }
  .stat .lab { font-size: 0.78rem; }
  .nav-search { display: none; }
  .cta-band { padding: 34px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}
