/* Source: 2.2 Стройбан - Каталог работ (десктоп).html
   Extracted from v3 mock on 2026-07-13. */
.work-catalog-page-shell {
  background: var(--page-backdrop);
  /* Near-black selection surface used by the tabs, the type rail and the steps strip. Declared
     once here rather than repeating raw hex at each call site. */
  --sb-catalog-active-surface: oklch(0.18 0 0);
  --sb-catalog-on-active: oklch(0.99 0 0);
  --sb-catalog-on-active-muted: oklch(0.78 0 0);
}
.work-catalog-page-shell .wrap { max-width: 1344px; margin: 0 auto; padding: 0 24px; }
.work-catalog-page-shell a { color: inherit; text-decoration: none; }

  /* header */
  .sb-header { position: sticky; top: 0; z-index: 40; background: var(--background); border-bottom: 1px solid var(--border); }

  /* breadcrumb */
  .work-catalog-page-shell .crumb { display: flex; align-items: center; gap: 8px; font-size: var(--text-xs); color: var(--foreground); padding: 18px 0 0; }
  .work-catalog-page-shell .crumb a:hover { color: var(--foreground); }
  .work-catalog-page-shell .crumb i, .work-catalog-page-shell .crumb svg.lucide { width: 13px; height: 13px; }

  /* hero */
  .work-catalog-page-shell .dir-hero { padding: 22px 0 30px; }
  .work-catalog-page-shell .dir-hero h1 { font-size: var(--text-display); font-weight: 800; letter-spacing: -0.025em; margin: 6px 0 14px; max-width: 22ch; line-height: 1.05; }
  .work-catalog-page-shell .dir-hero .lead { font-size: var(--text-lg); color: var(--foreground); margin: 0 0 26px; max-width: 64ch; line-height: 1.5; }
  .work-catalog-page-shell .dir-hero .lead b { color: var(--foreground); font-weight: 600; }
  .work-catalog-page-shell .searchbar { display: flex; gap: 10px; max-width: 720px; }
  .work-catalog-page-shell .searchbar .field { flex: 1; display: flex; align-items: center; gap: 11px; padding: 0 16px; background: var(--card); border: 2px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
  .work-catalog-page-shell .searchbar .field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px oklch(0.85 0.12 95 / 0.4); }
  .work-catalog-page-shell .searchbar .field i, .work-catalog-page-shell .searchbar .field svg.lucide { width: 20px; height: 20px; color: var(--foreground); flex: none; }
  .work-catalog-page-shell .searchbar input { border: none; outline: none; width: 100%; height: 3.25rem; font-family: inherit; font-size: var(--text-base); background: transparent; color: var(--foreground); }
  .work-catalog-page-shell .searchbar .sb-btn { height: 3.25rem; flex: none; }

  /* object-type chips */
  .work-catalog-page-shell .obj-chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
  .work-catalog-page-shell .obj-chips .lbl { font-size: var(--text-sm); color: var(--foreground); }
  .work-catalog-page-shell .obj-chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: var(--text-sm); font-weight: 500; color: var(--foreground); cursor: pointer; transition: all .15s ease; }
  .work-catalog-page-shell .obj-chip:hover { background: var(--sb-catalog-active-surface); color: var(--sb-catalog-on-active); border-color: var(--sb-catalog-active-surface); }
  .work-catalog-page-shell .obj-chip i, .work-catalog-page-shell .obj-chip svg.lucide { width: 15px; height: 15px; }

  /* section */
  .work-catalog-page-shell .dir-sec { padding: 14px 0 40px; }
  .work-catalog-page-shell .dir-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
  .work-catalog-page-shell .dir-sec-head h2 { font-size: var(--text-h3); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
  .work-catalog-page-shell .dir-sec-head .cnt { font-size: var(--text-sm); color: var(--foreground); }

  /* Category directory. Object categories are tabs across the top, building types a rail on the
     left, and the stages of the selected type fill the panel beside them. Breakpoints follow the
     kit's Tailwind steps (1024 / 768) so design and code switch at the same widths. */
  .work-catalog-page-shell .cat-title { font-size: var(--text-h2); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 22px; }

  .work-catalog-page-shell .cat-tabs { display: flex; align-items: center; gap: 6px; padding: 4px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 18px; flex-wrap: wrap; }
  .work-catalog-page-shell .cat-tab { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: none; border-radius: 9px; background: transparent; color: var(--foreground); cursor: pointer; font-family: inherit; font-size: var(--text-sm); font-weight: 600; white-space: nowrap; flex: none; transition: background-color .12s ease; }
  .work-catalog-page-shell .cat-tab:hover { background: var(--muted); }
  .work-catalog-page-shell .cat-tab[data-active="true"] { background: var(--sb-catalog-active-surface); color: var(--sb-catalog-on-active); }
  .work-catalog-page-shell .cat-tab[data-active="true"]:hover { background: var(--sb-catalog-active-surface); }
  .work-catalog-page-shell .cat-tab-ic { display: grid; place-items: center; flex: none; color: var(--foreground); }
  .work-catalog-page-shell .cat-tab[data-active="true"] .cat-tab-ic { color: var(--primary); }
  .work-catalog-page-shell .cat-tab-ic i, .work-catalog-page-shell .cat-tab-ic svg { width: 17px; height: 17px; }
  .work-catalog-page-shell .cat-tab-n { font-variant-numeric: tabular-nums; font-size: var(--text-xs); font-weight: 700; border-radius: 999px; padding: 2px 8px; background: var(--sb-catalog-active-surface); color: var(--sb-catalog-on-active); }
  .work-catalog-page-shell .cat-tab[data-active="true"] .cat-tab-n { background: var(--primary); color: var(--primary-foreground); }

  .work-catalog-page-shell .cat-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 0; align-items: stretch; }

  .work-catalog-page-shell .cat-stages { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--border); border-right: none; border-radius: var(--radius) 0 0 var(--radius); background: var(--card); }
  .work-catalog-page-shell .stage-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px; border: none; background: transparent; border-radius: 10px; cursor: pointer; font-family: inherit; text-align: left; transition: background-color .12s ease; }
  .work-catalog-page-shell .stage-item:hover { background: var(--muted); }
  .work-catalog-page-shell .stage-item[data-active="true"] { background: var(--sb-catalog-active-surface); }
  .work-catalog-page-shell .stage-t { flex: 1; min-width: 0; font-size: var(--text-sm); font-weight: 600; color: var(--foreground); }
  .work-catalog-page-shell .stage-item[data-active="true"] .stage-t { color: var(--sb-catalog-on-active); }
  .work-catalog-page-shell .stage-n { font-size: var(--text-xs); color: var(--foreground); font-variant-numeric: tabular-nums; }
  .work-catalog-page-shell .stage-item[data-active="true"] .stage-n { color: var(--sb-catalog-on-active); }
  .work-catalog-page-shell .stage-arrow { width: 15px; height: 15px; color: var(--muted-foreground); flex: none; }
  .work-catalog-page-shell .stage-item[data-active="true"] .stage-arrow { color: var(--sb-catalog-on-active); }

  .work-catalog-page-shell .cat-types { padding: 18px 22px; border: 1px solid var(--border); border-radius: 0 var(--radius) var(--radius) 0; background: var(--card); }
  .work-catalog-page-shell .ct-head { font-size: var(--text-h4); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 14px; }
  .work-catalog-page-shell .ct-list { list-style: none; margin: 0; padding: 0; columns: 2 240px; column-gap: 48px; column-rule: 1px solid var(--border); }
  .work-catalog-page-shell .ct-empty { margin: 0; padding: 8px 0; font-size: var(--text-sm); color: var(--foreground); }
  /* The stage list is capped only where vertical space is scarce; the two-column desktop layout
     shows every stage, so the control stays hidden there. */
  .work-catalog-page-shell .ct-more { display: none; align-items: center; justify-content: center; gap: 7px; width: 100%; height: 40px; margin-top: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--background); font-family: inherit; font-size: var(--text-sm); font-weight: 600; color: var(--foreground); cursor: pointer; }
  .work-catalog-page-shell .ct-more i, .work-catalog-page-shell .ct-more svg { width: 16px; height: 16px; }

  @media (max-width: 1024px) {
    .work-catalog-page-shell .cat-layout { grid-template-columns: 230px minmax(0, 1fr); }
    .work-catalog-page-shell .ct-list { columns: 1; column-rule: none; }
  }

  @media (max-width: 768px) {
    /* One column below the md step: tabs and the type rail scroll horizontally instead of
       wrapping, so the stage panel keeps the full width of the viewport. */
    .work-catalog-page-shell .cat-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 4px 16px; border: none; border-radius: 0; background: transparent; }
    .work-catalog-page-shell .cat-tabs::-webkit-scrollbar { display: none; }
    .work-catalog-page-shell .cat-layout { grid-template-columns: minmax(0, 1fr); }
    .work-catalog-page-shell .cat-stages { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 8px; border: none; border-radius: 0; background: transparent; margin: 0 -16px 12px; padding: 0 16px 2px; }
    .work-catalog-page-shell .cat-stages::-webkit-scrollbar { display: none; }
    .work-catalog-page-shell .stage-item { width: auto; background: var(--card); border: 1px solid var(--border); }
    .work-catalog-page-shell .cat-types { padding: 14px 16px; border-radius: var(--radius); border-right: 1px solid var(--border); }
    .work-catalog-page-shell .ct-more { display: flex; }
    /* Every stage is in the markup — good for SEO and for the desktop layout — but the ones past
       the cap are hidden here until the reader expands the list. */
    .work-catalog-page-shell .ct-list[data-collapsed="true"] li[data-beyond-cap="true"] { display: none; }
  }
  .work-catalog-page-shell .ct-list li { break-inside: avoid; }
  .work-catalog-page-shell .ct-list li a { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 7px 12px 7px 0; font-size: var(--text-sm); color: var(--foreground); text-decoration: none; }
  .work-catalog-page-shell .ct-list li a:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 3px; }
  .work-catalog-page-shell .ct-list .il-n { font-size: var(--text-xs); color: var(--foreground); font-variant-numeric: tabular-nums; flex: none; }
  .work-catalog-page-shell .cat-links li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: var(--text-sm); color: var(--foreground); border-top: 1px solid var(--border); transition: color .12s ease; }
  .work-catalog-page-shell .cat-links li:first-child a { border-top: none; }
  .work-catalog-page-shell .cat-links li a:hover { color: var(--primary-hover); }
  .work-catalog-page-shell .cat-links li a .n { font-size: var(--text-xs); color: var(--foreground); font-variant-numeric: tabular-nums; flex: none; }
  .work-catalog-page-shell .cat-links li a:hover .n { color: var(--primary-hover); }
  .work-catalog-page-shell .cat-more { margin-top: 14px; font-size: var(--text-sm); font-weight: 600; color: var(--primary-hover); display: inline-flex; align-items: center; gap: 6px; }
  .work-catalog-page-shell .cat-more i, .work-catalog-page-shell .cat-more svg.lucide { width: 15px; height: 15px; }

  /* cities */
  .work-catalog-page-shell .city-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
  @media (max-width: 1024px){ .work-catalog-page-shell .city-grid { grid-template-columns: repeat(3, 1fr); } }
  @media (max-width: 640px){ .work-catalog-page-shell .city-grid { grid-template-columns: repeat(2, 1fr); } }
  .work-catalog-page-shell .city-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: border-color .12s ease; }
  .work-catalog-page-shell .city-card:hover { border-color: var(--sb-catalog-active-surface); }
  .work-catalog-page-shell .city-card .cn { font-size: var(--text-base); font-weight: 600; }
  .work-catalog-page-shell .city-card .cs { font-size: var(--text-xs); color: var(--foreground); margin-top: 2px; }
  .work-catalog-page-shell .city-card i, .work-catalog-page-shell .city-card svg.lucide { width: 18px; height: 18px; color: var(--muted-foreground); flex: none; }

  /* how it works strip */
  .work-catalog-page-shell .how { background: var(--sb-catalog-active-surface); color: var(--sb-catalog-on-active); border-radius: 18px; padding: 34px 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  @media (max-width: 768px){ .work-catalog-page-shell .how { grid-template-columns: 1fr; gap: 22px; } }
  .work-catalog-page-shell .how-step { display: flex; gap: 14px; align-items: flex-start; }
  .work-catalog-page-shell .how-step .num { width: 38px; height: 38px; border-radius: 10px; background: var(--primary); color: var(--primary-foreground); font-weight: 800; display: grid; place-items: center; flex: none; }
  .work-catalog-page-shell .how-step h4 { font-size: var(--text-base); font-weight: 700; margin: 2px 0 6px; }
  .work-catalog-page-shell .how-step p { font-size: var(--text-sm); color: var(--sb-catalog-on-active-muted); margin: 0; line-height: 1.5; }

  /* SEO text */
  .work-catalog-page-shell .seo-text { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; }
  .work-catalog-page-shell .seo-text h2 { font-size: var(--text-h4); font-weight: 700; margin: 0 0 12px; }
  .work-catalog-page-shell .seo-text p { font-size: var(--text-sm); color: var(--foreground); line-height: 1.65; margin: 0 0 12px; max-width: 90ch; }
  .work-catalog-page-shell .seo-text p:last-child { margin-bottom: 0; }

  /* footer */
  .work-catalog-page-shell .footer { background: var(--background); border-top: 1px solid var(--border); margin-top: 44px; }
  .work-catalog-page-shell .foot-main { padding: 48px 0 36px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
  @media (max-width: 1024px){ .work-catalog-page-shell .foot-main { grid-template-columns: 1fr 1fr; gap: 28px; } }
  .work-catalog-page-shell .foot-col h4 { font-size: var(--text-sm); font-weight: 600; margin: 0 0 14px; }
  .work-catalog-page-shell .foot-col a { display: block; font-size: var(--text-sm); color: var(--foreground); padding: 5px 0; }
  .work-catalog-page-shell .foot-col a:hover { color: var(--foreground); }
  .work-catalog-page-shell .foot-brand p { font-size: var(--text-sm); color: var(--foreground); line-height: 1.5; margin: 14px 0 0; max-width: 30ch; }
  .work-catalog-page-shell .foot-bottom { border-top: 1px solid var(--border); padding: 22px 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .work-catalog-page-shell .foot-bottom .legal { font-size: var(--text-xs); color: var(--foreground); display: flex; gap: 16px; flex-wrap: wrap; }
  .work-catalog-page-shell .foot-bottom .soc { display: flex; gap: 8px; }
  .work-catalog-page-shell .foot-bottom .soc a { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 9px; display: grid; place-items: center; color: var(--foreground); background: var(--card); }
  .work-catalog-page-shell .foot-bottom .soc a:hover { color: var(--foreground); }
  .work-catalog-page-shell .foot-bottom .soc i, .work-catalog-page-shell .foot-bottom .soc svg.lucide { width: 17px; height: 17px; }
