/* ITD Themes — catalogue frame. The demos keep their own styles; only the frame carries the ITD identity. */
:root {
  --ink: #111317; --ink-2: #2a2d33; --mut: #5b606a; --line: #dcdfd8; --line-2: #c9cdc5;
  --red: #d90000; --red-dk: #b00000; --white: #ffffff; --canvas: #f5f6f3; --soft: #eceee9;
  --r-card: 16px; --r-ctl: 12px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(17, 19, 23, .06), 0 8px 24px rgba(17, 19, 23, .06);
  --shadow-up: 0 2px 4px rgba(17, 19, 23, .08), 0 16px 36px rgba(17, 19, 23, .10);
  --gut: 24px; --max: 1240px;
  --font: "Outfit", Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 16px/1.55 var(--font); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.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 { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--white); padding: 10px 16px; border-radius: var(--r-ctl); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }

/* Header */
.hd { background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 40; }
.hd-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); flex: none; }
.brand img { width: 28px; height: auto; }
.brand b { font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.brand small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #a9adb5; font-weight: 500; margin-top: -2px; }
.nav { display: flex; gap: 4px; margin-left: 16px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--r-ctl); color: #d6d8dc; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .08); }
.hd-sp { flex: 1; }
.langs { display: flex; gap: 2px; }
.langs a { text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .04em; padding: 6px 8px; border-radius: 8px; color: #a9adb5; }
.langs a[aria-current="true"] { color: var(--white); background: rgba(255, 255, 255, .1); }
.langs a:hover { color: var(--white); }
.sl-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .22); background: none; color: var(--white); cursor: pointer; font-weight: 500; font-size: 14px; }
.sl-btn:hover { border-color: var(--white); }
.sl-btn .n { background: var(--red); color: var(--white); border-radius: var(--r-pill); min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; }
.sl-btn .n[data-zero] { background: rgba(255, 255, 255, .16); }
.burger { display: none; width: 44px; height: 44px; border-radius: var(--r-ctl); border: 1px solid rgba(255, 255, 255, .22); background: none; color: var(--white); cursor: pointer; place-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid transparent; font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dk); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); }
.btn-line { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.heart { width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--white); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; flex: none; transition: transform .15s ease, border-color .15s ease, color .15s ease; }
.heart:hover { transform: translateY(-1px); border-color: var(--ink); }
.heart[aria-pressed="true"] { color: var(--red); border-color: var(--red); }
.heart[aria-pressed="true"] .icon { fill: currentColor; }

/* Type */
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.02; letter-spacing: -.03em; font-weight: 600; margin: 0; text-wrap: balance; }
.h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.02em; font-weight: 600; margin: 0; text-wrap: balance; }
.h3 { font-size: 20px; line-height: 1.25; font-weight: 600; margin: 0; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--mut); margin: 0; text-wrap: pretty; }
.center { text-align: center; }
.sec { padding: 80px 0; }
.sec-hd { max-width: 720px; margin: 0 auto 40px; text-align: center; display: grid; gap: 12px; }

/* Hero */
.hero { padding: 88px 0 56px; text-align: center; }
.hero .lead { max-width: 640px; margin: 20px auto 0; }
.search { display: flex; align-items: center; gap: 8px; max-width: 720px; margin: 36px auto 0; background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 6px 6px 6px 20px; box-shadow: var(--shadow); }
.search:focus-within { border-color: var(--ink); }
.search .icon { color: var(--mut); }
.search input { flex: 1; min-width: 0; border: 0; background: none; height: 48px; font-size: 17px; outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--white); text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-top: 48px; }
.stat b { display: block; font-size: 32px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.stat span { font-size: 14px; color: var(--mut); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.card-img { display: block; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card-bd { padding: 16px 18px 18px; display: grid; gap: 4px; flex: 1; }
.card-id { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--mut); text-transform: uppercase; }
.card-t { font-size: 18px; font-weight: 600; line-height: 1.25; margin: 0; }
.card-t a { text-decoration: none; }
.card-t a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card-meta { font-size: 14px; color: var(--mut); }
.card-ft { display: flex; align-items: center; gap: 8px; margin-top: 12px; position: relative; z-index: 1; }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--soft); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.card-ft .sp { flex: 1; }

/* Industries */
.inds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ind { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.ind:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ind img { width: 72px; height: 54px; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); }
.ind b { display: block; font-weight: 600; font-size: 15px; line-height: 1.25; }
.ind span { font-size: 13px; color: var(--mut); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-size: 14px; font-weight: 600; color: var(--red); margin-bottom: 16px; }
.step p { margin: 8px 0 0; color: var(--mut); }
.help { background: var(--ink); color: var(--white); border-radius: 24px; padding: 56px 32px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.help .lead { color: #c3c6cc; max-width: 560px; }

/* Catalogue */
.cat-hd { padding: 48px 0 24px; text-align: center; display: grid; gap: 16px; }
.cat-hd .search { margin-top: 8px; width: 100%; }
.cat { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 80px; }
.flt { position: sticky; top: 92px; display: grid; gap: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; max-height: calc(100vh - 112px); overflow: auto; }
.flt-hd { display: none; }
.flt { grid-template-columns: minmax(0, 1fr); }
.flt fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; min-width: 0; }
.nav-langs { display: none; }
.flt legend { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); margin-bottom: 8px; padding: 0; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 2px 8px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.opt:hover { background: var(--canvas); }
.opt input { width: 18px; height: 18px; accent-color: var(--red); margin: 0; flex: none; }
.opt span { flex: 1; }
.opt em { font-style: normal; font-size: 13px; color: var(--mut); }
.res-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.res-bar .count { font-weight: 600; }
.res-bar .sp { flex: 1; }
.res-bar select { height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-ctl); padding: 0 12px; background: var(--white); }
.flt-open { display: none; }
.empty { text-align: center; padding: 64px 24px; background: var(--white); border: 1px dashed var(--line-2); border-radius: var(--r-card); display: grid; gap: 12px; justify-items: center; }
.empty[hidden] { display: none; }
.more { display: flex; justify-content: center; margin-top: 32px; }
.more[hidden] { display: none; }
.card[hidden] { display: none; }

/* Detail */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--mut); padding: 24px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.dt { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; padding: 32px 0 64px; align-items: start; }
.gal { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; align-items: start; }
.shot { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.shot figcaption { font-size: 13px; color: var(--mut); padding: 8px 12px; border-top: 1px solid var(--line); }
.shot img { width: 100%; height: auto; }
.dt-info { display: grid; gap: 20px; position: sticky; top: 92px; }
.dt-info .h1 { font-size: clamp(34px, 4vw, 52px); }
.dt-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fact dt { color: var(--mut); }
.fact dd { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.note { font-size: 14px; color: var(--mut); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pages { columns: 2; column-gap: 32px; margin: 16px 0 0; padding: 0; list-style: none; }
.pages li { padding: 8px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: 15px; }
.quote { border-left: 3px solid var(--red); padding: 4px 0 4px 18px; display: grid; gap: 8px; }
.quote b { font-size: 22px; font-weight: 600; line-height: 1.25; }
.quote span { color: var(--mut); }

/* Shortlist drawer */
.sl { position: fixed; inset: 0; z-index: 80; display: none; }
.sl[data-open] { display: block; }
.sl-bg { position: absolute; inset: 0; background: rgba(17, 19, 23, .45); }
.sl-pn { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--canvas); display: flex; flex-direction: column; box-shadow: var(--shadow-up); }
.sl-hd { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); background: var(--white); }
.sl-hd h2 { margin: 0; font-size: 20px; font-weight: 600; flex: 1; }
.x { width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--white); cursor: pointer; display: grid; place-items: center; }
.sl-ls { flex: 1; overflow: auto; padding: 16px 24px; display: grid; gap: 12px; align-content: start; }
.sl-it { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 8px; }
.sl-it img { width: 88px; height: 66px; object-fit: cover; object-position: top; border-radius: 8px; }
.sl-it a { text-decoration: none; font-weight: 600; line-height: 1.25; }
.sl-it small { display: block; color: var(--mut); font-size: 13px; }
.sl-ft { padding: 16px 24px 24px; border-top: 1px solid var(--line); background: var(--white); display: grid; gap: 10px; }
.sl-ft .row { display: flex; gap: 8px; flex-wrap: wrap; }
.sl-ft .row .btn { flex: 1; }
.sl-ft input { width: 100%; height: 40px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; font-size: 13px; }
.sl-msg { font-size: 13px; color: var(--mut); margin: 0; }
.sl-msg.warn { color: var(--red-dk); }

/* Footer */
.ft { background: var(--ink); color: #c3c6cc; padding: 56px 0 40px; margin-top: 40px; font-size: 15px; }
.ft-in { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.ft a { color: var(--white); text-decoration: none; }
.ft a:hover { text-decoration: underline; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ft h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #8f939b; margin: 0 0 12px; font-weight: 600; }
.ft-bt { border-top: 1px solid #2a2d33; margin-top: 40px; padding-top: 20px; font-size: 13px; color: #8f939b; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

/* Responsive */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dt { grid-template-columns: minmax(0, 1fr); }
  .dt-info { position: static; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
  .hd[data-menu] .nav { display: grid; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); padding: 8px 16px 16px; margin: 0; border-top: 1px solid #2a2d33; }
  .hd[data-menu] .nav a { min-height: 48px; display: flex; align-items: center; }
  .cat { grid-template-columns: minmax(0, 1fr); }
  .flt { position: fixed; inset: 0; z-index: 70; border-radius: 0; max-height: none; display: none; padding-bottom: 96px; }
  .flt[data-open] { display: grid; align-content: start; }
  .flt-hd { display: flex; align-items: center; justify-content: space-between; }
  .flt-hd b { font-size: 20px; font-weight: 600; }
  .flt-apply { position: fixed; left: 16px; right: 16px; bottom: 16px; }
  .flt-open { display: inline-flex; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .ft-in { grid-template-columns: minmax(0, 1fr); }
  .cols2 { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 901px) { .flt-apply { display: none; } }
@media (max-width: 640px) {
  :root { --gut: 16px; }
  .grid, .inds { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 56px 0 40px; }
  .sec { padding: 56px 0; }
  .hd-in { gap: 8px; }
  .hd-in > .langs { display: none; }
  .hd[data-menu] .nav .nav-langs { display: flex; gap: 6px; padding-top: 8px; border-top: 1px solid #2a2d33; margin-top: 4px; }
  .nav-langs a { min-height: 44px; min-width: 52px; display: inline-flex; align-items: center; justify-content: center; }
  .sl-btn { padding: 0 12px; }
  .brand small { display: none; }
  .sl-btn .lbl { display: none; }
  .search { padding-left: 14px; }
  .search .btn { padding: 0 16px; }
  .stats { gap: 24px 32px; }
  .gal { grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; }
  .fact { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pages { columns: 1; }
  .dt-ctas .btn { flex: 1; }
  .help { padding: 40px 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
