:root {
  --primary: #0867b2;
  --primary-dark: #07538f;
  --ink: #1c1d1f;
  --muted: #686a6d;
  --paper: #fafaf7;
  --white: #ffffff;
  --line: #ddddda;
  --max: 1120px;
  --header-h: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 80; left: 16px; top: 10px; padding: 10px 14px; background: white; color: var(--primary); transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 38%, transparent); outline-offset: 3px; }

.site-header {
  height: var(--header-h);
  background: var(--primary);
  color: white;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { height: 100%; display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-logo { width: auto; object-fit: contain; }
.brand-logo.icdl { height: 33px; }
.brand-logo.emg { height: 37px; }
.brand-separator { width: 1px; height: 32px; background: rgba(255,255,255,.5); }
.header-link { display: inline-flex; align-items: center; gap: 8px; color: white; text-decoration: none; font-size: 14px; font-weight: 650; }
.header-link span:last-child { transition: transform .2s ease; }
.header-link:hover span:last-child { transform: translate(2px,-2px); }

.hero { padding: clamp(72px, 9vw, 122px) 0 56px; }
.hero-kicker { margin: 0 0 18px; color: var(--primary); font-size: 15px; font-weight: 720; }
.site-title { margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: 1; letter-spacing: -.055em; font-weight: 730; text-wrap: balance; }
.hero-title { margin: 40px 0 0; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -.035em; font-weight: 680; }
.hero-description { max-width: 720px; margin: 20px 0 36px; color: var(--muted); font-size: 18px; line-height: 1.65; text-wrap: pretty; }
.search-form { height: 68px; display: flex; align-items: center; gap: 15px; padding: 0 20px; border: 1px solid #b9bbb9; background: white; transition: border-color .2s ease, box-shadow .2s ease; }
.search-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 10%, transparent); }
.search-form svg { flex: 0 0 auto; color: var(--muted); }
.search-form input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 17px; }
.search-form input::placeholder { color: #8a8c8e; }
.keyboard-hint { color: #8a8c8e; font-size: 12px; }
.category-section { background: var(--paper); }
.category-tabs { display: flex; gap: clamp(28px, 5vw, 66px); overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab { position: relative; flex: 0 0 auto; min-height: 54px; padding: 0; border: 0; background: transparent; color: var(--ink); font-weight: 630; }
.category-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.category-tab:hover, .category-tab.active { color: var(--primary); }
.category-tab.active::after { transform: scaleX(1); }

.faq-section { padding: 66px 0 96px; }
.faq-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.faq-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 48px); letter-spacing: -.045em; }
.results-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; min-height: 84px; display: grid; grid-template-columns: 40px 1fr 28px; align-items: center; gap: 22px; padding: 18px 8px; border: 0; background: transparent; color: var(--ink); text-align: left; }
.faq-question:hover .question-text { color: var(--primary); }
.question-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #777a7c; border-radius: 50%; font-size: 22px; line-height: 1; transition: .2s ease; }
.question-mark::before { content: "+"; transform: translateY(-1px); }
.question-chevron { width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .25s ease; }
.question-text { font-size: clamp(18px, 2vw, 23px); font-weight: 680; letter-spacing: -.02em; transition: color .2s ease; }
.faq-item.open .question-mark { background: var(--primary); border-color: var(--primary); color: white; }
.faq-item.open .question-mark::before { content: "−"; }
.faq-item.open .question-chevron { color: var(--primary); transform: rotate(225deg) translate(-2px,-2px); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.answer-clip { overflow: hidden; min-height: 0; }
.answer-content { padding: 0 64px 40px 70px; }
.answer-content > p { max-width: 760px; margin: 0 0 24px; color: #4c4e50; font-size: 16px; line-height: 1.7; }
.steps { display: grid; gap: 12px; padding: 0; margin: 0 0 26px; list-style: none; }
.steps li { display: flex; align-items: center; gap: 14px; color: #414345; }
.steps strong { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--primary); border-radius: 50%; color: var(--primary); font-size: 14px; font-variant-numeric: tabular-nums; }
.video-button { min-height: 48px; display: inline-flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--primary); background: transparent; color: var(--primary); font-weight: 680; transition: color .2s ease, background .2s ease, transform .15s ease; }
.video-button:hover { background: var(--primary); color: white; }
.video-button:active { transform: scale(.98); }
.empty-state { padding: 56px 8px; border-bottom: 1px solid var(--line); }
.empty-state h3 { margin: 0 0 8px; font-size: 25px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }
.link-button { padding: 0 0 3px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--primary); font-weight: 680; }
.contact-section { border-top: 1px solid var(--line); }
.contact-strip { min-height: 104px; display: flex; align-items: center; gap: 28px; padding-inline: 8px; }
.contact-strip svg { color: var(--muted); }
.contact-strip span { color: var(--muted); }
.contact-strip a { color: var(--primary); font-weight: 700; text-decoration: none; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 28px; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--primary); }

.video-modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 24px; }
.video-modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,25,40,.82); backdrop-filter: blur(7px); }
.modal-panel { position: relative; width: min(900px, 100%); background: white; box-shadow: 0 28px 90px rgba(0,30,50,.32); }
.modal-close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.68); color: white; font-size: 24px; }
.video-frame { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #071a28; }
.video-frame video { width: 100%; height: 100%; display: block; object-fit: contain; background: #071a28; }
.modal-caption { padding: 22px 26px 26px; }
.modal-caption h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.025em; }
.modal-caption p { margin: 0; color: var(--muted); }

@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .container { width: min(calc(100% - 32px), var(--max)); }
  .brand { gap: 9px; }
  .brand-logo.icdl { height: 27px; }
  .brand-logo.emg { height: 29px; }
  .brand-separator { height: 27px; }
  .header-link span:first-child { display: none; }
  .hero { padding: 58px 0 36px; }
  .site-title { font-size: 45px; }
  .hero-title { margin-top: 30px; font-size: 31px; }
  .hero-description { font-size: 16px; }
  .search-form { height: 60px; padding-inline: 15px; }
  .keyboard-hint { display: none; }
  .category-tabs { gap: 28px; }
  .faq-section { padding: 46px 0 72px; }
  .faq-heading { padding-bottom: 18px; }
  .faq-heading h2 { font-size: 35px; }
  .faq-question { grid-template-columns: 34px 1fr 22px; gap: 14px; min-height: 76px; padding-inline: 0; }
  .question-mark { width: 31px; height: 31px; }
  .question-text { font-size: 18px; }
  .answer-content { padding: 0 0 32px 48px; }
  .contact-strip { min-height: 118px; align-content: center; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .contact-strip span { flex: 1; }
  .footer-inner { padding: 28px 0; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
