:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --ink: #121727;
  --muted: #667085;
  --line: #dce2ec;
  --accent: #4254ff;
  --accent-2: #7c4dff;
  --accent-soft: #eef0ff;
  --dark: #0b1020;
  --success: #17745a;
  --max: 1180px;
  --shadow: 0 18px 55px rgba(23, 31, 55, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 2%, rgba(124, 77, 255, .08), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(66, 84, 255, .07), transparent 22%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--dark);
  transform: translateY(-140%);
}
.skip-link:focus { transform: none; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.catalog-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(220, 226, 236, .82);
  background: rgba(246, 247, 251, .91);
  backdrop-filter: blur(16px);
}

.catalog-nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.catalog-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  font-weight: 780;
  letter-spacing: -.02em;
}

.catalog-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  overflow: hidden;
  border-radius: 12px;
}

.catalog-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.catalog-brand small {
  display: block;
  margin-top: -2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.catalog-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #3c4458;
  font-size: 14px;
  font-weight: 680;
}

.catalog-nav > a:hover,
.catalog-nav > a[aria-current="page"] { color: var(--accent); }

.catalog-nav-cta {
  padding: 11px 16px;
  border-radius: 12px;
  color: #fff !important;
  background: var(--dark);
}

.catalog-dropdown { position: relative; }
.catalog-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.catalog-dropdown-toggle:hover,
.catalog-dropdown-toggle[aria-expanded="true"],
.catalog-dropdown-toggle.is-active { color: var(--accent); }

.catalog-dropdown-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}

.catalog-dropdown-toggle[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

.catalog-dropdown-menu {
  position: absolute;
  top: calc(100% + 17px);
  left: 50%;
  z-index: 90;
  display: none;
  width: max-content;
  min-width: 305px;
  max-width: min(410px, calc(100vw - 40px));
  padding: 8px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .99);
  box-shadow: 0 18px 48px rgba(23, 31, 55, .15);
}

.catalog-dropdown.open .catalog-dropdown-menu { display: grid; gap: 4px; }
.catalog-dropdown-menu a {
  display: block;
  padding: 11px 13px;
  border-radius: 10px;
  color: var(--ink);
  line-height: 1.35;
}
.catalog-dropdown-menu a:hover,
.catalog-dropdown-menu a:focus-visible,
.catalog-dropdown-menu a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}
.catalog-dropdown-menu .partner-link {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
}

.catalog-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.catalog-hero { padding: 78px 0 52px; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span:not(:last-child)::after { content: " /"; margin-left: 7px; color: #a0a7b7; }
.eyebrow {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(66, 84, 255, .16);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.catalog-hero h1 {
  max-width: 980px;
  margin: 18px 0 20px;
  font-size: clamp(44px, 6.5vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
}
.catalog-hero .lead {
  max-width: 850px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  font-weight: 760;
}
.btn:hover { border-color: #c5ccff; box-shadow: 0 9px 26px rgba(23, 31, 55, .08); }
.btn-primary { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  max-width: 820px;
}
.stat {
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .8);
}
.stat strong { display: block; font-size: 24px; line-height: 1.1; }
.stat span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }

.catalog-section { padding: 34px 0 84px; }
.section-heading { display: grid; grid-template-columns: 1fr .8fr; gap: 32px; align-items: end; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -.045em; }
.section-heading p { margin: 0; color: var(--muted); }

.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.catalog-card {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 10px 36px rgba(23, 31, 55, .045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.catalog-card::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -88px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 84, 255, .15), transparent 68%);
  pointer-events: none;
}
.catalog-card:hover { transform: translateY(-3px); border-color: #cbd1ff; box-shadow: var(--shadow); }
.catalog-card .card-label { color: var(--accent); font-size: 12px; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.catalog-card h2 { margin: 20px 0 12px; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.04em; }
.catalog-card p { max-width: 610px; margin: 0; color: var(--muted); }
.catalog-card ul { margin: 19px 0 0; padding-left: 18px; color: #3f485c; font-size: 14px; }
.catalog-card .card-action { margin-top: auto; padding-top: 24px; color: var(--accent); font-weight: 780; }
.catalog-card.partner { grid-column: 1 / -1; min-height: 260px; background: linear-gradient(135deg, #12182b, #1b2340); color: #fff; }
.catalog-card.partner p, .catalog-card.partner ul { color: #c5ccdf; }
.catalog-card.partner .card-label, .catalog-card.partner .card-action { color: #aab5ff; }

.catalog-note {
  margin-top: 22px;
  padding: 22px 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 17px 17px 0;
  color: #3f485c;
  background: rgba(238, 240, 255, .75);
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 9px 28px rgba(23, 31, 55, .04);
}
.catalog-search { position: relative; }
.catalog-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 48px 0 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
}
.catalog-search input:focus { border-color: var(--accent); outline: 3px solid rgba(66, 84, 255, .12); }
.catalog-search::after { content: "⌕"; position: absolute; right: 16px; top: 8px; color: var(--muted); font-size: 23px; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.toolbar-actions button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #3f485c;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.toolbar-actions button:hover { border-color: #c5ccff; color: var(--accent); }
.result-count { margin: -10px 0 22px; color: var(--muted); font-size: 13px; }

.category-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 46px;
}
.category-nav a {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: #3f485c;
  background: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.35;
}
.category-nav a:hover { color: var(--accent); border-color: #c5ccff; }

.project-category { scroll-margin-top: 104px; margin: 0 0 48px; }
.project-category-header { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin-bottom: 16px; }
.category-number {
  min-width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 840;
}
.project-category h2 { margin: 1px 0 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.13; letter-spacing: -.03em; }
.project-list { display: grid; gap: 10px; }
.project-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, .9);
}
.project-item[open] { border-color: #cbd1ff; box-shadow: 0 11px 30px rgba(23, 31, 55, .055); }
.project-item summary {
  min-height: 70px;
  display: grid;
  grid-template-columns: 42px 1fr 22px;
  gap: 13px;
  align-items: center;
  padding: 13px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 730;
  line-height: 1.35;
}
.project-item summary::-webkit-details-marker { display: none; }
.project-index { color: var(--accent); font-size: 13px; font-weight: 820; }
.project-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, 2px);
  transition: transform .18s ease;
}
.project-item[open] .project-arrow { transform: rotate(225deg) translate(-2px, 2px); }
.project-body { padding: 0 53px 20px 73px; }
.project-body p { margin: 0; color: var(--muted); }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.project-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #49536a;
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 700;
}
.project-contact { display: inline-flex; margin-top: 15px; color: var(--accent); font-size: 13px; font-weight: 760; }
.project-contact:hover { text-decoration: underline; }
.no-results { display: none; padding: 28px; border: 1px dashed #b8c0d3; border-radius: 18px; color: var(--muted); text-align: center; background: rgba(255, 255, 255, .7); }
.no-results.visible { display: block; }

.method-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 56px;
}
.method-note article {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: #fff;
}
.method-note h3 { margin: 0 0 8px; font-size: 20px; }
.method-note p { margin: 0; color: var(--muted); }

.catalog-cta { padding: 0 0 88px; }
.catalog-cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 27px;
  color: #fff;
  background: linear-gradient(135deg, #11172a, #202949);
}
.catalog-cta-box h2 { margin: 0 0 8px; font-size: clamp(27px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.035em; }
.catalog-cta-box p { max-width: 720px; margin: 0; color: #c4ccde; }

.catalog-footer { padding: 30px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.footer-row a:hover { color: var(--accent); }

@media (max-width: 1180px) {
  .catalog-menu-btn { display: inline-flex; }
  .catalog-nav {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .99);
    box-shadow: var(--shadow);
  }
  .catalog-nav.open { display: flex; }
  .catalog-nav > a { padding: 10px 12px; }
  .catalog-nav-cta { text-align: center; }
  .catalog-dropdown-toggle { width: 100%; justify-content: space-between; padding: 10px 12px; text-align: left; }
  .catalog-dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: 2px;
    padding: 4px 8px 8px 18px;
    transform: none;
    border: 0;
    border-left: 2px solid rgba(66, 84, 255, .18);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 820px) {
  .catalog-hero { padding-top: 52px; }
  .section-heading,
  .catalog-toolbar,
  .catalog-cta-box { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card.partner { grid-column: auto; }
  .category-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-note { grid-template-columns: 1fr; }
  .toolbar-actions { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .catalog-nav { left: 14px; right: 14px; }
  .catalog-brand small { font-size: 9px; }
  .catalog-hero h1 { font-size: 42px; }
  .stat-row { grid-template-columns: 1fr; }
  .catalog-card { min-height: 0; padding: 24px; }
  .category-nav { grid-template-columns: 1fr; }
  .project-item summary { grid-template-columns: 34px 1fr 18px; gap: 8px; padding: 13px; }
  .project-body { padding: 0 38px 18px 55px; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}

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

@media print {
  .catalog-header,
  .catalog-toolbar,
  .catalog-cta,
  .project-contact,
  .catalog-footer { display: none !important; }
  body { background: #fff; }
  .catalog-hero { padding: 20px 0; }
  .project-item { break-inside: avoid; }
  .project-item > * { display: block !important; }
  .project-body { padding: 0 18px 15px 73px; }
}
