/* Каталог застройщиков (2026-09-25). Deliberately plain: every card looks the same, carries the
   same three facts and the same call to action. No logos, no slogans, no stars, no places in a
   top list - a company here is a row of data, not an advertisement. */

.developers-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px;
  width: 100%; max-width: 1180px; margin: 0 auto; min-width: 0; }

/* The heading lives in the shell, so it is centred on the same column as the page. */
:root[data-page="developers"] #developers .view-title { max-width: 1180px; margin: 0 auto; }

/* ---- empty, error, loading ------------------------------------------------------------------- */

.developers-empty { display: grid; gap: 12px; justify-items: center; padding: 30px 16px;
  border: 1px dashed var(--border); border-radius: var(--radius-card); background: var(--surface-2); }
.developers-empty-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.developers-reset { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--brand-primary, #1f4d3a); font: inherit; font-size: 13px;
  font-weight: 600; cursor: pointer; }
.developers-reset:hover { border-color: var(--brand-primary, #1f4d3a); }

.developers-error { margin: 0; padding: 16px; border: 1px solid var(--border);
  border-radius: var(--radius-card); background: var(--surface-2); font-size: 14px;
  line-height: 1.5; color: var(--ink-2); }

.developers-skeleton { display: grid; gap: 14px; min-width: 0; }
.developers-skeleton-line { height: 14px; max-width: 420px; border-radius: 8px;
  background: var(--surface-2); animation: developers-pulse 1.2s ease-in-out infinite; }
.developers-skeleton-short { max-width: 260px; }
.developers-skeleton-card { min-height: 128px; border-radius: var(--radius-card);
  background: var(--surface-2); animation: developers-pulse 1.2s ease-in-out infinite; }
@keyframes developers-pulse { 0%, 100% { opacity: .45; } 50% { opacity: .9; } }

.developer-card:focus-visible,
.developers-search-input:focus-visible,
.developers-reset:focus-visible { outline: 2px solid var(--brand-primary, #1f4d3a);
  outline-offset: 2px; }

/* ---- «ЖК | Застройщики»: two modes of one catalogue ------------------------------------------ */

/* The switch lives inside each catalogue's own header rather than on a row above it, and looks the
   same on both pages so they read as one section in two modes. (2026-09-26) */
/* V4 tabs: #EEF2F0 track, filled brand-green active (as .rc-tabs on /rent-cover). */
.catalog-tabs { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; padding: 4px;
  border: 0; border-radius: 12px; background: var(--tabs-track, #EEF2F0); }
.catalog-tab { display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none;
  white-space: nowrap; transition: background .15s ease, color .15s ease; }
.catalog-tab:hover { color: var(--brand-primary); }
.catalog-tab.is-active { background: var(--brand-primary);
  color: #fff; box-shadow: 0 4px 12px rgba(31,77,58,.18); }
.catalog-tab:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .catalog-tab { transition: none; } }

/* The tabs join the catalogue header instead of adding to it: one row on a wide screen, and the
   filters move up against it. */
.projects-control-panel .ph-panel-head { margin-bottom: 10px; row-gap: 8px; }
.projects-control-panel .catalog-tabs { margin-left: auto; }
.projects-control-panel .proj-filters-toggle,
.projects-control-panel .ph-reset-all { flex: 0 0 auto; }

@media (max-width: 767.98px) {
  /* Under the title, sharing its row with the filter buttons: the switch costs one short row
     rather than a section of its own. */
  .projects-control-panel .ph-panel-head { flex-wrap: wrap; row-gap: 6px; margin-bottom: 8px; }
  .projects-control-panel .catalog-tabs { margin-left: 0; order: 3; }
  .catalog-tab { height: 28px; padding: 0 12px; }
}

/* The passport's «← Все застройщики» used to be a pill here; it is a text link now and lives in
   developer.css, next to the hero it sits above (2026-09-26). */

/* ---- visual sync V2 (2026-09-27): the directory wears the «ЖК» catalogue's shell --------------------------
   The panel is .projects-control-panel, the grid .project-grid, the card .project-card: same width,
   same four columns, same cover height, same hover. Only what a developer card needs lives here. */

.developers-page { display: block; max-width: none; margin: 0; gap: 0; }
/* the page title is for screen readers; the visible title is the panel's, as on «ЖК» */
#developers > .view-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#developersControls .developers-search-input:hover { border-color: var(--border-strong); }

.developers-body { min-width: 0; }
.developers-grid { align-items: stretch; }
a.project-card.developer-card { display: flex; flex-direction: column; gap: 4px;
  color: var(--ink); text-decoration: none; }
a.project-card.developer-card:hover { border-color: var(--border-strong); }
a.project-card.developer-card:hover .developer-card-cta { color: var(--text-link-hover, var(--brand-primary)); }
.developer-card-cover { flex: none; }
span.developer-card-cover { display: flex; align-items: flex-start; justify-content: flex-end;
  height: 128px; padding: 9px 12px; box-sizing: border-box;
  background: linear-gradient(165deg, color-mix(in srgb, var(--ink) 12%, var(--surface-2)) 0%,
    color-mix(in srgb, var(--ink) 5%, var(--surface-2)) 70%); border-bottom: 1px solid var(--border); }
.developer-card-cover-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); }   /* V4: muted secondary text token instead of a translucent ink mix */
.developer-card-name { margin: 0; font-size: 17px; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.developer-card-cities { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-muted, var(--ink-2)); }
.developer-card-facts { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 6px; font-size: 13px;
  line-height: 1.5; color: var(--ink-2); }
.developer-card-facts b { font-weight: 700; color: var(--ink); }
.developer-card-cta { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; color: var(--text-link, var(--ink)); }

.developers-skeleton-panel { height: 150px; margin-bottom: 16px; border-radius: var(--radius-card);
  background: var(--surface-2); animation: developers-pulse 1.2s ease-in-out infinite; }
.developers-skeleton-card { min-height: 260px; }
@media (max-width: 767.98px) {
  .developers-skeleton-panel { height: 110px; }
  span.developer-card-cover { height: 150px; }
  .developers-control-panel .ph-panel-head-text { flex: 1 1 0; min-width: 0; }
}

/* V4: buttons are 10px controls, not pills. */
.developers-reset{border-radius:10px;}
