/* ══════════════════════════════════════════════════════════════
   Каталог — сетка как на референсе (фото 3), контент ИНТЕЛЛЕКТ
   ══════════════════════════════════════════════════════════════ */

.cat-page {
  padding-top: 168px;
  padding-bottom: 80px;
  min-height: 60vh;
  background: linear-gradient(180deg, #e4ebf4 0%, #eef2f7 28%, #f3f6fa 100%);
}

.cat-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.cat-results { min-width: 0; }

.cat-category-panel {
  position: sticky;
  top: 118px;
  padding: 18px;
  border: 1px solid var(--line, #d8e0e3);
  border-radius: 8px;
  background: var(--surf, #fff);
}

.cat-category-panel h2 {
  margin: 0 0 14px;
  color: var(--text, #172126);
  font-size: 16px;
  line-height: 1.25;
}

.cat-category-nav { display: grid; gap: 4px; }
.cat-category-nav a,
.cat-category-nav span {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border-radius: 6px;
  color: var(--muted, #5e6b72);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.cat-category-nav a:hover,
.cat-category-nav a.is-active { background: #e7f2f4; color: #075d70; }
.cat-category-nav span[aria-disabled="true"] { opacity: .68; }
.cat-category-nav small { font-size: 10px; font-weight: 500; }

@media (max-width: 960px) {
  .cat-layout { grid-template-columns: 1fr; }
  .cat-category-panel { position: static; }
  .cat-category-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .cat-category-nav { grid-template-columns: 1fr; }
}


@media (max-width: 1200px) {
  .cat-page { padding-top: 96px; }
}

@media (max-width: 768px) {
  .cat-page { padding-top: 24px; }
}

.cat-page .wrap {
  max-width: 1000px;
}

/* ── Хлебные крошки ─────────────────────────────────────────── */
.cat-bc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.cat-bc a {
  color: var(--blue);
  text-decoration: none;
}

.cat-bc a:hover { text-decoration: underline; }

.cat-bc-sep {
  color: #b8c8dc;
  user-select: none;
}

.cat-bc-home {
  display: inline-flex;
  color: var(--blue);
}

/* Скрытый заголовок страницы (доступность) */
.cat-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;
}

/* ── Заголовок раздела (напр. избранное) ───────────────────── */
.cat-page-title {
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  max-width: 980px;
}

/* ── Белая панель над контентом ─────────────────────────────── */
.cat-hero {
  background: #fff;
  border-radius: 18px;
  padding: 20px 26px 18px;
  margin-bottom: 22px;
  border: 1px solid #e2e9f1;
  box-shadow:
    0 1px 2px rgba(15, 32, 53, 0.04),
    0 12px 32px rgba(15, 32, 53, 0.06);
}

.cat-hero .cat-bc {
  margin-bottom: 10px;
}

.cat-hero--bc-only {
  padding: 16px 22px 16px;
}

.cat-hero--bc-only .cat-bc {
  margin-bottom: 0;
}

.cat-hero .cat-page-title {
  margin-bottom: 0;
  max-width: none;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

@media (max-width: 640px) {
  .cat-hero {
    padding: 20px 18px 18px;
    border-radius: 14px;
  }
  .cat-hero--bc-only {
    padding: 14px 18px 14px;
  }
}

/* ── Сетка: одна карточка на строку (витрина) ───────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3.2vw, 40px);
  align-items: stretch;
}

/* ── Карточка: фото слева, описание справа ──────────────────── */
.cat-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(218, 238, 255, 0.95);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 32, 53, 0.04),
    0 10px 28px rgba(15, 32, 53, 0.06);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}

/* display:flex у .cat-card перебивает атрибут [hidden] в ряде браузеров */
.cat-card.cat-card--filtered-out {
  display: none !important;
}

.cat-card:hover {
  border-color: rgba(6, 86, 185, 0.35);
  box-shadow:
    0 4px 12px rgba(6, 86, 185, 0.08),
    0 20px 48px rgba(15, 32, 53, 0.1);
  transform: translateY(-5px);
}

.cat-card--soon:hover {
  border-color: #c5d4e6;
  box-shadow: 0 6px 22px rgba(15, 32, 53, 0.07);
  transform: translateY(-2px);
}

.cat-card--soon:hover .cat-card-media img {
  transform: none;
}

/* Область только под фото: избранное не перекрывает «В наличии» справа */
.cat-card-media-slot {
  position: relative;
  flex: 0 0 clamp(200px, 34vw, 340px);
  width: clamp(200px, 34vw, 340px);
  max-width: 100%;
  align-self: stretch;
}

.cat-card-tools {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  z-index: 3;
}

.cat-card-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #9aa8bc;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 32, 53, 0.08);
  transition: color 0.15s, background 0.15s, box-shadow 0.2s var(--ease);
}

.cat-card-tool:hover {
  color: var(--blue);
  background: #fff;
}

.cat-card-tool--fav:hover {
  color: var(--blue);
  background: rgba(6, 86, 185, 0.1);
  box-shadow: 0 2px 14px rgba(6, 86, 185, 0.28);
}

.cat-card-tool--fav.is-active:hover {
  color: var(--blue);
  background: rgba(6, 86, 185, 0.12);
  box-shadow: 0 2px 14px rgba(6, 86, 185, 0.3);
}

.cat-card-tool--fav.is-active {
  color: #b81832;
  background: rgba(196, 30, 58, 0.1);
}

.cat-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: none;
  min-height: 200px;
  aspect-ratio: 1;
  margin: 0;
  text-decoration: none;
  border-radius: 0;
  background:
    radial-gradient(ellipse 92% 78% at 50% 36%, rgba(255, 255, 255, 0.65) 0%, transparent 58%),
    linear-gradient(168deg, #f7fbff 0%, var(--bg) 42%, #e4f0ff 100%);
  border: none;
  border-right: 1px solid rgba(218, 238, 255, 0.9);
  border-bottom: none;
  overflow: hidden;
}

.cat-card-media img {
  width: 72%;
  height: 72%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}

.cat-card:hover .cat-card-media img {
  transform: scale(1.05);
}

/* Три фото по горизонтали при наведении + индикатор снизу */
.cat-card-media--rot {
  position: relative;
  cursor: pointer;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.cat-card-media--rot .cat-card-img {
  position: relative;
  z-index: 0;
  pointer-events: none;
}

.cat-card-rot-tracks {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  z-index: 2;
  display: flex;
  gap: 5px;
  align-items: flex-end;
  pointer-events: none;
}

.cat-card-rot-track {
  flex: 1;
  height: 2px;
  border-radius: 1px;
  background: rgba(15, 32, 53, 0.1);
  transition: background 0.15s ease, opacity 0.15s ease;
}

.cat-card-rot-track.is-active {
  height: 2px;
  border-radius: 1px;
  background: rgba(15, 32, 53, 0.38);
  opacity: 1;
}

.cat-card-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  background: linear-gradient(145deg, #e8f2ff, #d4e8ff);
  opacity: 0.85;
}

.cat-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 20px 22px 22px;
}

@media (min-width: 900px) {
  .cat-card-body {
    padding: 26px 32px 28px;
  }
}

.cat-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.cat-card-sku {
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.cat-card-title {
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
}

@media (min-width: 640px) {
  .cat-card-title {
    margin-bottom: 14px;
  }
}

.cat-card-title a {
  color: var(--text);
  text-decoration: none;
}

.cat-card-title a:hover {
  color: var(--blue);
}

/* Двухстрочный заголовок (название + линейка ИНТЕЛЛЕКТ / МАНУЛ) */
.cat-card-title--stacked .cat-card-title-line {
  display: block;
}

.cat-card-title--stacked .cat-card-title-sub {
  display: block;
  margin-top: 5px;
  font-size: clamp(0.82rem, 1.05vw, 0.94rem);
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--blue);
}

.cat-card-title--stacked a:hover .cat-card-title-sub {
  color: var(--blue);
}

.cat-card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 719px) {
  .cat-card-desc {
    -webkit-line-clamp: 5;
  }
}

.cat-card-specs {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(218, 238, 255, 0.9);
}

@media (min-width: 900px) {
  .cat-card-specs {
    font-size: 0.82rem;
  }
}

.cat-card-avail {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cat-card-avail--ok {
  color: #1a7a3a;
  background: #e8f5ec;
}

.cat-card-avail--ok svg {
  flex-shrink: 0;
}

.cat-card-avail--no {
  color: #5a6578;
  background: #eef2f7;
}

.cat-card-foot {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  margin-top: auto;
  padding-top: 10px;
}

.cat-card-foot--solo {
  justify-content: flex-end;
}

.cat-card-foot--solo .cat-card-buy {
  min-width: min(100%, 240px);
}

.cat-card-foot .cat-card-buy {
  min-width: 200px;
  width: auto;
}

.cat-card-price {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}

.cat-card-price .rub {
  font-weight: 700;
}

.cat-card-price--on-request {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(1.05rem, 1.95vw, 1.22rem);
  line-height: 1.25;
}

.cat-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 0.75rem;
  color: #8a9eb4;
  margin-bottom: 12px;
}

.cat-card-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  margin-top: 0;
  padding: 12px 22px 12px 26px;
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s, transform 0.15s;
  box-sizing: border-box;
}

.cat-card-buy-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 1px;
}

.cat-card-buy-ico svg {
  display: block;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-card-buy:hover:not(:disabled) .cat-card-buy-ico svg {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .cat-card-buy:hover:not(:disabled) .cat-card-buy-ico svg {
    transform: none;
  }
}

/* Structured technical content inside the liquid-glass details panel. */
.catalog-view .cat-card-details-label {
  display: none;
}

.catalog-view .cat-grid--tiles .cat-card.is-details-open .cat-card-details-label {
  display: block;
  color: #587485;
  font-family: "Manrope Local", Arial, sans-serif !important;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.catalog-view .cat-grid--tiles .cat-card.is-details-open .cat-card-purpose-label {
  margin-bottom: 7px;
}

.catalog-view .cat-grid--tiles .cat-card.is-details-open .cat-card-details .cat-card-desc {
  font-size: 14px !important;
  line-height: 1.58;
}

.catalog-view .cat-grid--tiles .cat-card.is-details-open .cat-card-details .cat-card-specs {
  display: block;
  max-height: none;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(120, 157, 173, .25);
  opacity: 1;
  overflow: visible;
}

.catalog-view .cat-card-spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  margin: 10px 0 0;
}

.catalog-view .cat-card-spec-item {
  min-width: 0;
  margin: 0;
  padding-left: 8px;
  border-left: 1px solid rgba(7, 93, 112, .28);
}

.catalog-view .cat-card-spec-item dt,
.catalog-view .cat-card-spec-item dd {
  margin: 0;
}

.catalog-view .cat-card-spec-item dt {
  color: #6b8390;
  font-family: "Manrope Local", Arial, sans-serif !important;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.25;
}

.catalog-view .cat-card-spec-item dd {
  margin-top: 3px;
  color: #173847;
  font-family: "PT Root UI", Arial, sans-serif !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

@media (max-width: 360px) {
  .catalog-view .cat-card-spec-list { gap: 8px; }
  .catalog-view .cat-card-spec-item { padding-left: 6px; }
  .catalog-view .cat-card-spec-item dd { font-size: 12px; }
}

/* Stable tile rhythm: every collapsed card reserves the same space for each content part. */
.catalog-view .cat-grid--tiles {
  --cat-card-media-height: 272px;
  --cat-card-body-height: 312px;
  --cat-details-top-limit: 16px;
  --cat-details-bottom: 150px;
  align-items: start;
}

.catalog-view .cat-grid--tiles .cat-card {
  position: relative;
  align-self: start;
  overflow: hidden;
}

.catalog-view .cat-grid--tiles .cat-card-media-slot {
  width: 100%;
  height: var(--cat-card-media-height);
  min-height: var(--cat-card-media-height);
  aspect-ratio: auto;
}

.catalog-view .cat-grid--tiles .cat-card .cat-card-body {
  display: grid;
  height: var(--cat-card-body-height);
  min-height: var(--cat-card-body-height);
  grid-template-rows: 24px 68px 54px 42px 90px;
  box-sizing: border-box;
}

.catalog-view .cat-grid--tiles .cat-card-head {
  grid-row: 1;
  height: 24px;
  margin: 0;
  overflow: hidden;
}

.catalog-view .cat-grid--tiles .cat-card-title {
  grid-row: 2;
  display: -webkit-box;
  height: 68px;
  margin: 0;
  padding-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  box-sizing: border-box;
}

.catalog-view .cat-grid--tiles .cat-card-details {
  grid-row: 3;
  height: 54px;
  margin: 0;
  padding-top: 8px;
  overflow: hidden;
  box-sizing: border-box;
}

.catalog-view .cat-grid--tiles .cat-card-details-toggle {
  grid-row: 4;
  height: 42px;
  min-height: 42px;
  margin: 0;
}

.catalog-view .cat-grid--tiles .cat-card-foot {
  grid-row: 5;
  display: grid;
  height: 90px;
  margin: 0;
  padding: 8px 0 0;
  grid-template-rows: 30px 44px;
  gap: 8px;
  box-sizing: border-box;
}

.catalog-view .cat-grid--tiles .cat-card-price {
  height: 30px;
  line-height: 30px;
  overflow: hidden;
}

.catalog-view .cat-grid--tiles .cat-card-foot .cat-card-buy {
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
}

.catalog-view .cat-grid--tiles .cat-card.is-details-open .cat-card-body {
  min-height: var(--cat-card-body-height);
}

.catalog-view .cat-grid--tiles .cat-card.is-details-open,
.catalog-view .cat-grid--tiles .cat-card.is-details-open:hover,
.catalog-view .cat-grid--tiles .cat-card.is-details-open:focus-within {
  transform: none;
}

.catalog-view .cat-grid--tiles .cat-card.is-details-open .cat-card-details {
  position: absolute;
  z-index: 6;
  top: auto;
  right: 12px;
  bottom: var(--cat-details-bottom);
  left: 12px;
  width: auto;
  height: auto;
  max-height: calc(100% - var(--cat-details-top-limit) - var(--cat-details-bottom));
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 255, 255, .9), transparent 34%),
    linear-gradient(145deg, rgba(244, 251, 252, .86), rgba(225, 241, 244, .7));
  box-shadow: 0 20px 44px rgba(19, 51, 66, .2), inset 0 1px 0 rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(7, 93, 112, .38) transparent;
  animation: cat-details-glass-in .36s cubic-bezier(.2, .78, .24, 1) both;
}

.catalog-view .cat-grid--tiles .cat-card.is-details-open .cat-card-details .cat-card-desc {
  color: #1c3946;
  font-size: 13px;
  line-height: 1.55;
}

.catalog-view .cat-grid--tiles .cat-card.is-details-open .cat-card-details .cat-card-specs {
  max-height: none;
  color: #294c5b;
}

.catalog-view .cat-grid--tiles .cat-card.is-details-open .cat-card-details-toggle {
  position: relative;
  z-index: 7;
}

@keyframes cat-details-glass-in {
  from {
    opacity: 0;
    transform: translateY(54px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1180px) {
  .catalog-view .cat-grid--tiles { --cat-card-media-height: 260px; }
}

@media (max-width: 720px) {
  .catalog-view .cat-grid--tiles { --cat-card-media-height: 224px; }
}

@media (max-width: 560px) {
  .catalog-view .cat-grid--tiles {
    --cat-card-media-height: 248px;
    --cat-card-body-height: 310px;
  }

  .catalog-view .cat-grid--tiles .cat-card-media-slot {
    height: var(--cat-card-media-height);
    min-height: var(--cat-card-media-height);
    aspect-ratio: auto;
  }

  .catalog-view .cat-grid--tiles .cat-card .cat-card-body {
    height: var(--cat-card-body-height);
    min-height: var(--cat-card-body-height);
    grid-template-rows: 24px 66px 52px 42px 94px;
  }

  .catalog-view .cat-grid--tiles .cat-card-title { height: 66px; }
  .catalog-view .cat-grid--tiles .cat-card-details { height: 52px; }
  .catalog-view .cat-grid--tiles .cat-card-foot { height: 94px; padding-top: 12px; }
  .catalog-view .cat-grid--tiles .cat-card.is-details-open .cat-card-details {
    top: auto;
    --cat-details-bottom: 152px;
    bottom: var(--cat-details-bottom);
    max-height: calc(100% - var(--cat-details-top-limit) - var(--cat-details-bottom));
    padding: 16px;
    border-radius: 14px;
  }
}

@media (max-width: 360px) {
  .catalog-view .cat-grid--tiles { --cat-card-media-height: 224px; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-view .cat-grid--tiles .cat-card.is-details-open .cat-card-details {
    animation: none;
  }
}

.cat-card-buy:hover {
  filter: brightness(1.08);
  transform: scale(1.01);
}

.cat-card-buy:active {
  transform: scale(0.99);
}

.cat-card--soon .cat-card-buy {
  background: #dce4ee;
  color: #5a6b80;
  cursor: default;
}

.cat-card--soon .cat-card-buy:hover {
  filter: none;
}

/* PDP-ссылка на карточке «скоро» (Б6): синяя, как у остальных «Подробнее» */
.cat-card--soon .cat-card-buy.cat-card-buy--primary {
  background: var(--blue);
  color: #fff;
  cursor: pointer;
}

.cat-card--soon .cat-card-buy.cat-card-buy--primary:hover {
  filter: brightness(1.08);
  transform: scale(1.01);
}

.cat-card--soon .cat-card-buy.cat-card-buy--primary:active {
  transform: scale(0.99);
}

.cat-card-buy:disabled {
  cursor: not-allowed;
  opacity: 0.92;
}

.cat-card-buy--in-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #e8f2ff;
  color: var(--blue);
  border: 1.5px solid rgba(6, 86, 185, 0.32);
  box-sizing: border-box;
}

.cat-card-buy-check {
  flex-shrink: 0;
  margin-top: 1px;
}

.cat-card-buy-label {
  white-space: nowrap;
}

.cat-card-buy--in-cart:hover {
  filter: brightness(0.97);
  background: #dceaff;
}

.cat-card-buy--in-cart:active {
  transform: scale(0.99);
}

/* ── Узкий экран: фото сверху, текст снизу ─────────────────── */
@media (max-width: 720px) {
  .cat-card {
    flex-direction: column;
  }

  .cat-card-media-slot {
    flex: none;
    width: 100%;
    max-width: none;
  }

  .cat-card-media {
    flex: none;
    width: 100%;
    max-width: none;
    aspect-ratio: 1;
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid rgba(218, 238, 255, 0.9);
  }

  .cat-card-body {
    justify-content: flex-start;
    padding: 18px 18px 20px;
  }

  .cat-card-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cat-card-foot .cat-card-buy {
    width: 100%;
    min-width: 0;
  }

  .cat-card-foot--solo {
    justify-content: stretch;
  }

  .cat-card-foot--solo .cat-card-buy {
    width: 100%;
    min-width: 0;
  }
}

/* ── Пагинация ──────────────────────────────────────────────── */
.cat-pagination {
  margin-top: 32px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ══ Мини-корзина (модалка) ═══════════════════════════════════ */
body.ccm-lock {
  overflow: hidden;
}

.ccm {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.ccm.ccm--open {
  display: flex;
}

.ccm[hidden] {
  display: none !important;
}

.ccm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  cursor: pointer;
}

.ccm-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: min(88vh, 640px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
  border: 1px solid #e8ecf2;
  overflow: hidden;
}

.ccm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #edf1f6;
  flex-shrink: 0;
}

.ccm-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.ccm-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -8px -10px -8px 8px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #7a8799;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.ccm-close:hover {
  background: #f0f4f8;
  color: var(--text);
}

.ccm-close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.ccm-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.ccm-empty {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 24px 8px;
}

.ccm-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #eef2f7;
}

.ccm-line:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.ccm-line-img-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f7fa;
  border: 1px solid #e8ecf0;
}

.ccm-line-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ccm-line-info {
  flex: 1;
  min-width: 0;
}

.ccm-line-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 4px;
}

.ccm-line-title:hover {
  text-decoration: underline;
  color: #044a9e;
}

.ccm-line-sku {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.ccm-line-min {
  margin: 0 0 10px;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.35;
}

.ccm-line-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.ccm-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dce4ed;
  border-radius: 10px;
  background: #fafbfc;
  overflow: hidden;
}

.ccm-qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
}

.ccm-qty-btn:hover {
  background: #eef3f8;
  color: var(--blue);
}

.ccm-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  color: var(--muted);
}

.ccm-qty-btn:disabled:hover {
  background: transparent;
  color: var(--muted);
}

.ccm-qty-input {
  width: 44px;
  height: 36px;
  border: none;
  border-left: 1px solid #dce4ed;
  border-right: 1px solid #dce4ed;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  background: #fff;
  -moz-appearance: textfield;
}

.ccm-qty-input::-webkit-outer-spin-button,
.ccm-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.ccm-line-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
  color: var(--muted);
}

.ccm-price-line {
  font-weight: 700;
  color: var(--text);
  font-size: 0.88rem;
}

.ccm-remove {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: -4px;
  border: 1px solid #f0e0e3;
  border-radius: 10px;
  background: #fff8f8;
  color: #c53030;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.ccm-remove:hover {
  background: #ffecec;
  border-color: #e8b4b8;
}

.ccm-foot {
  flex-shrink: 0;
  padding: 16px 20px 20px;
  border-top: 1px solid #edf1f6;
  background: #fafbfd;
}

.ccm-total-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.ccm-total-label {
  font-size: 0.95rem;
  color: var(--muted);
}

.ccm-total-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.ccm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.ccm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: filter 0.15s, background 0.15s;
  text-align: center;
  box-sizing: border-box;
}

.ccm-btn--ghost {
  background: #e8ecf2;
  color: var(--text);
}

.ccm-btn--ghost:hover {
  filter: brightness(0.97);
}

.ccm-btn--checkout {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(6, 86, 185, 0.28);
  flex: 1;
  min-width: min(100%, 220px);
}

.ccm-btn--checkout:hover {
  background: #044a9e;
  filter: none;
}

.ccm-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .ccm-actions {
    flex-direction: column-reverse;
  }

  .ccm-btn,
  .ccm-btn--checkout {
    width: 100%;
  }
}

/* ══ Переключатель вида ══════════════════════════════════════ */
.cat-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.cat-view-toggle {
  display: inline-flex;
  gap: 3px;
  background: #fff;
  border: 1px solid #e2e9f1;
  border-radius: 14px;
  padding: 4px;
  box-shadow: 0 1px 4px rgba(15, 32, 53, .06);
}

.cat-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #8a9eb4;
  font-family: inherit;
  cursor: pointer;
  transition:
    background 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease;
}

.cat-view-btn.is-active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 10px rgba(6, 86, 185, .28);
  transform: translateY(-0.5px);
}

.cat-view-btn:hover:not(.is-active) {
  background: #f0f4f8;
  color: var(--text);
  transform: scale(1.04);
}

.cat-view-btn:active:not(.is-active) {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .cat-view-btn,
  .cat-view-btn:hover:not(.is-active),
  .cat-view-btn.is-active {
    transform: none;
    transition: background 0.15s ease, color 0.15s ease;
  }
}

/* ══ Плиточный режим: 2 карточки в ряд ═════════════════════ */
.cat-grid--tiles {
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.2vw, 28px);
}

.cat-grid--tiles .cat-card {
  flex-direction: column;
}

.cat-grid--tiles .cat-card-media-slot {
  flex: none;
  width: 100%;
  max-width: none;
}

.cat-grid--tiles .cat-card-media {
  flex: none;
  width: 100%;
  max-width: none;
  aspect-ratio: 1;
  min-height: 0;
  border-right: none;
  border-bottom: 1px solid rgba(218, 238, 255, 0.9);
}

.cat-grid--tiles .cat-card-body {
  justify-content: flex-start;
  padding: 18px 20px 20px;
}

.cat-grid--tiles .cat-card-foot {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.cat-grid--tiles .cat-card-foot .cat-card-buy,
.cat-grid--tiles .cat-card-foot--solo .cat-card-buy {
  width: 100%;
  min-width: 0;
}

@media (max-width: 560px) {
  .cat-grid--tiles {
    grid-template-columns: 1fr;
  }

}
.cat-category-status {
  margin: 0 0 24px;
  padding: 28px;
  border: 1px solid #d5e0e8;
  border-radius: 8px;
  background: #f4f8fb;
}
.cat-category-status-kicker { margin: 0 0 8px; color: #0b68bd; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.cat-category-status h2 { margin: 0 0 10px; font-size: 26px; }
.cat-category-status p:not(.cat-category-status-kicker) { max-width: 720px; margin: 0 0 16px; color: #62758a; line-height: 1.6; }
.cat-category-status a { color: #075d70; font-weight: 700; }

/* Catalog discovery experience: filters, sorting and responsive product views */
.cat-page {
  --cat-ink: #102438;
  --cat-muted: #607487;
  --cat-line: #dce6ee;
  --cat-soft: #f3f7fa;
  --cat-accent: #075d70;
  --cat-accent-dark: #064b5a;
  padding-bottom: 72px;
  color: var(--cat-ink);
}

.cat-page .wrap { max-width: 1380px; }

.cat-hero {
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--cat-line);
}

.cat-hero .cat-bc { margin-bottom: 34px; }
.cat-hero-kicker,
.cat-filter-eyebrow {
  margin: 0 0 8px;
  color: var(--cat-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cat-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(36px, 4.2vw, 64px);
  line-height: .98;
  letter-spacing: -.045em;
}

.cat-hero-lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--cat-muted);
  font-size: 18px;
  line-height: 1.55;
}

.cat-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-top: 30px;
}

.cat-category-panel {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 0 18px 22px;
  border: 1px solid var(--cat-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(25, 54, 78, .06);
  scrollbar-width: thin;
}

.cat-filter-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -18px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--cat-line);
  background: #fff;
}

.cat-filter-head h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.cat-filter-eyebrow { margin-bottom: 3px; }
.cat-filter-close { display: none; }

.cat-filter-section {
  min-width: 0;
  margin: 0;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--cat-line);
}

.cat-filter-section h3,
.cat-filter-section legend {
  width: 100%;
  margin: 0 0 13px;
  padding: 0;
  color: var(--cat-ink);
  font-size: 14px;
  font-weight: 800;
}

.cat-filter-section label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 11px;
  color: #344b5f;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}

.cat-filter-section input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--cat-accent);
}

.cat-category-nav { gap: 3px; }
.cat-category-nav a {
  padding: 9px 10px;
  border-radius: 6px;
  color: #344b5f;
  font-size: 13px;
  line-height: 1.35;
}

.cat-category-nav a:hover { background: var(--cat-soft); color: var(--cat-accent); }
.cat-category-nav a.is-active { background: #e9f5f6; color: var(--cat-accent-dark); }

.cat-filter-reset {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  border: 1px solid var(--cat-line);
  border-radius: 7px;
  background: #fff;
  color: var(--cat-accent);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.cat-filter-reset:hover { border-color: var(--cat-accent); background: #f7fbfc; }
.cat-results { min-width: 0; }

.cat-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

.cat-search {
  display: flex;
  min-width: 0;
  height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #cddae4;
  border-radius: 8px;
  background: #fff;
  color: #6b7f91;
}

.cat-search:focus-within { border-color: var(--cat-accent); box-shadow: 0 0 0 3px rgba(7, 93, 112, .12); }
.cat-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--cat-ink); font: inherit; }
.cat-search input::placeholder { color: #8495a4; }

.cat-sort { display: grid; gap: 5px; }
.cat-sort > span { color: var(--cat-muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.cat-sort select {
  height: 46px;
  min-width: 184px;
  padding: 0 36px 0 12px;
  border: 1px solid #cddae4;
  border-radius: 8px;
  background-color: #fff;
  color: var(--cat-ink);
  font: inherit;
  font-size: 14px;
}

.cat-results-count { margin: 0 2px 14px; color: var(--cat-muted); font-size: 13px; white-space: nowrap; }
.cat-view-toggle { height: 46px; padding: 3px; border: 1px solid #cddae4; border-radius: 8px; background: #fff; }
.cat-view-btn { width: 38px; height: 38px; border-radius: 5px; }
.cat-view-btn.is-active { background: var(--cat-accent); color: #fff; }
.cat-mobile-filters { display: none; }

.cat-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 18px;
}

.cat-active-filters[hidden],
.cat-filter-backdrop[hidden] { display: none !important; }

.cat-filter-chip {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #cfe0e5;
  border-radius: 999px;
  background: #eef7f8;
  color: var(--cat-accent-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.cat-filter-chip--clear { border-color: transparent; background: transparent; color: var(--cat-muted); text-decoration: underline; }

.cat-grid { gap: 16px; }
.cat-grid--tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cat-card {
  border: 1px solid var(--cat-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(20, 53, 77, .04);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.cat-card:hover { border-color: #bfd0dc; box-shadow: 0 14px 32px rgba(20, 53, 77, .1); transform: translateY(-2px); }
.cat-card[hidden] { display: none !important; }
.cat-card-img { object-fit: contain; }

.cat-grid--tiles .cat-card-media-slot { aspect-ratio: 1.18; min-height: 0; background: #f7f9fb; }
.cat-grid--tiles .cat-card-media { padding: 16px; }
.cat-grid--tiles .cat-card-body { min-height: 310px; padding: 16px 17px 18px; }
.cat-grid--tiles .cat-card-head { gap: 8px; }
.cat-grid--tiles .cat-card-title { margin-top: 9px; font-size: 17px; line-height: 1.28; }
.cat-grid--tiles .cat-card-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.cat-grid--tiles .cat-card-specs {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.cat-grid--tiles .cat-card-foot { margin-top: auto; }
.cat-grid:not(.cat-grid--tiles) .cat-card { grid-template-columns: 250px minmax(0, 1fr); }
.cat-grid:not(.cat-grid--tiles) .cat-card-media-slot { min-height: 250px; }
.cat-grid:not(.cat-grid--tiles) .cat-card-body { padding: 22px 24px; }

.cat-empty {
  padding: 64px 28px;
  border: 1px dashed #c9d7e1;
  text-align: center;
  background: var(--cat-soft);
}

.cat-empty h2 { margin: 0 0 9px; font-size: 25px; }
.cat-empty p { margin: 0 auto 20px; color: var(--cat-muted); }
.cat-empty button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 7px; background: var(--cat-accent); color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.cat-pagination { margin-top: 22px; color: var(--cat-muted); font-size: 13px; text-align: left; }

.cat-search input:focus-visible,
.cat-sort select:focus-visible,
.cat-view-btn:focus-visible,
.cat-mobile-filters:focus-visible,
.cat-filter-close:focus-visible,
.cat-filter-reset:focus-visible,
.cat-filter-chip:focus-visible { outline: 3px solid rgba(7, 93, 112, .28); outline-offset: 2px; }

@media (max-width: 1180px) {
  .cat-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 22px; }
  .cat-grid--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-toolbar { grid-template-columns: minmax(210px, 1fr) auto auto; }
  .cat-results-count { display: none; }
}

@media (max-width: 900px) {
  .cat-page .wrap { padding-right: 24px; padding-left: 24px; }
  .cat-layout { display: block; padding-top: 22px; }
  .cat-category-panel {
    position: fixed;
    z-index: 1202;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(360px, calc(100vw - 34px));
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: 18px 0 48px rgba(10, 33, 49, .2);
    transform: translateX(-105%);
    transition: transform .24s ease;
    padding-bottom: 92px;
  }

  .cat-category-panel.is-open { transform: translateX(0); }
  .cat-filter-close {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--cat-line);
    border-radius: 7px;
    background: #fff;
    color: var(--cat-ink);
    font-size: 26px;
    cursor: pointer;
  }

  .cat-filter-backdrop { position: fixed; z-index: 1201; inset: 0; display: block; background: rgba(9, 25, 38, .48); }
  body.cat-filter-open { overflow: hidden; }
  .cat-mobile-filters {
    display: inline-flex;
    height: 46px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 15px;
    border: 1px solid #cddae4;
    border-radius: 8px;
    background: #fff;
    color: var(--cat-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
  }

  .cat-mobile-filters-count { display: inline-grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; border-radius: 999px; background: var(--cat-accent); color: #fff; font-size: 11px; }
  .cat-toolbar { grid-template-columns: minmax(180px, 1fr) auto auto auto; }
  .cat-sort > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (max-width: 720px) {
  .cat-hero { padding: 22px 0 26px; }
  .cat-hero .cat-bc { margin-bottom: 26px; }
  .cat-hero-lead { font-size: 16px; }
  .cat-toolbar { grid-template-columns: 1fr auto auto; align-items: center; }
  .cat-search { grid-column: 1 / -1; }
  .cat-sort { min-width: 0; }
  .cat-sort select { min-width: 0; width: 100%; }
  .cat-grid--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .cat-page { padding-bottom: 48px; }
  .cat-page .wrap { padding-right: 16px; padding-left: 16px; }
  .cat-hero h1 { font-size: 39px; }
  .cat-toolbar { gap: 8px; }
  .cat-mobile-filters { padding: 0 12px; }
  .cat-sort { grid-column: 1 / 2; }
  .cat-view-toggle { grid-column: 2 / 4; justify-self: end; }
  .cat-grid--tiles { grid-template-columns: 1fr; }
  .cat-grid--tiles .cat-card-media-slot { aspect-ratio: 1.35; }
  .cat-grid--tiles .cat-card-body { min-height: 0; }
  .cat-grid:not(.cat-grid--tiles) .cat-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .cat-grid:not(.cat-grid--tiles) .cat-card-media-slot { min-height: 0; border-right: 1px solid var(--cat-line); border-bottom: 0; }
  .cat-grid:not(.cat-grid--tiles) .cat-card-body { min-width: 0; padding: 13px; }
  .cat-grid:not(.cat-grid--tiles) .cat-card-desc,
  .cat-grid:not(.cat-grid--tiles) .cat-card-specs { display: none; }
  .cat-grid:not(.cat-grid--tiles) .cat-card-title { font-size: 14px; }
  .cat-grid:not(.cat-grid--tiles) .cat-card-head { display: block; }
  .cat-grid:not(.cat-grid--tiles) .cat-card-avail { margin-top: 5px; }
  .cat-grid:not(.cat-grid--tiles) .cat-card-foot { align-items: stretch; gap: 8px; }
  .cat-grid:not(.cat-grid--tiles) .cat-card-buy { width: 42px; min-width: 42px; padding: 0; font-size: 0; }
  .cat-grid:not(.cat-grid--tiles) .cat-card-buy-ico { margin: 0; }
}

/* Заголовок каталога — часть страницы, без отдельной белой карточки. */
.cat-hero {
  margin-bottom: 0;
  padding: 18px 0 30px;
  border: 0;
  border-bottom: 1px solid var(--cat-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 560px) {
  .cat-hero { padding: 12px 0 22px; }
}

/* ══ Premium catalog pass · 2026-08-11 ═══════════════════════
   Плотная B2B-композиция, прогрессивное раскрытие характеристик
   и статусные флажки без шаблонных pill-бейджей. */
.catalog-view .cat-page {
  padding-top: 136px;
  background: #f2f5f7;
}

.catalog-view .cat-hero {
  padding-top: 10px;
  padding-bottom: 28px;
}

.catalog-view .cat-hero h1 {
  text-wrap: balance;
}

.catalog-view :is(.cat-hero-lead, .cat-card-title, .cat-card-desc, .cat-card-specs, .cat-category-status p) {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: pretty;
}

.catalog-view .cat-layout {
  gap: 24px;
  padding-top: 24px;
}

.catalog-view .cat-category-panel {
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(22, 49, 68, .055);
}

.catalog-view .cat-toolbar {
  margin-bottom: 16px;
}

.catalog-view .cat-search,
.catalog-view .cat-sort select,
.catalog-view .cat-view-toggle,
.catalog-view .cat-mobile-filters {
  border-radius: 7px;
}

.catalog-view .cat-grid {
  align-items: start;
  gap: 16px;
}

.catalog-view .cat-card {
  align-self: start;
  border-color: #d7e1e7;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(20, 53, 77, .035);
  overflow: clip;
}

.catalog-view .cat-card:hover {
  border-color: #9fb8c5;
  box-shadow: 0 14px 30px rgba(20, 53, 77, .085);
  transform: translateY(-3px);
}

.catalog-view .cat-grid--tiles .cat-card-media-slot {
  aspect-ratio: 1.22;
  background: #edf2f4;
  overflow: hidden;
}

.catalog-view .cat-card-media {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  background: #edf2f4;
}

.catalog-view .cat-card-media img {
  width: 74%;
  height: 74%;
  transition: transform .32s cubic-bezier(.22, .8, .24, 1);
}

.catalog-view .cat-card:hover .cat-card-media img {
  transform: scale(1.025);
}

.cat-card-badges {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}

.cat-card-badge {
  position: relative;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  min-width: 78px;
  padding: 5px 18px 5px 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(20, 45, 61, .15);
  animation: cat-badge-enter .46s cubic-bezier(.22, .8, .22, 1) both;
  overflow: hidden;
}

.cat-card-badge::after {
  position: absolute;
  inset: -10px auto -10px -24px;
  width: 16px;
  background: rgba(255, 255, 255, .28);
  content: "";
  transform: skewX(-18deg) translateX(0);
  transition: transform .55s cubic-bezier(.2, .75, .25, 1);
}

.cat-card:hover .cat-card-badge::after,
.cat-card:focus-within .cat-card-badge::after {
  transform: skewX(-18deg) translateX(122px);
}

.cat-card-badge--new { background: #087084; }
.cat-card-badge--sale { background: #a95518; }

@keyframes cat-badge-enter {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.catalog-view .cat-grid--tiles .cat-card-body {
  min-height: 0;
  padding: 16px 16px 18px;
}

.catalog-view .cat-card-head {
  margin-bottom: 8px;
}

.catalog-view .cat-card-sku {
  font-size: 10px;
  letter-spacing: .055em;
}

.catalog-view .cat-card-avail {
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 10px;
}

.catalog-view .cat-grid--tiles .cat-card-title {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.34;
  letter-spacing: -.012em;
}

.cat-card-details {
  min-width: 0;
  margin-top: 10px;
}

.catalog-view .cat-grid--tiles .cat-card-details .cat-card-desc {
  margin: 0;
  -webkit-line-clamp: 2;
  color: #536a7d;
  font-size: 12px;
  line-height: 1.5;
}

.catalog-view .cat-card-details .cat-card-specs {
  max-height: 0;
  margin: 0;
  padding-top: 0;
  border-top-color: transparent;
  opacity: 0;
  overflow: hidden;
  transition: max-height .34s cubic-bezier(.22, .8, .22, 1), opacity .22s ease, margin .28s ease, padding .28s ease, border-color .28s ease;
}

.catalog-view .cat-card.is-details-open .cat-card-desc {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.catalog-view .cat-card.is-details-open .cat-card-specs {
  max-height: 260px;
  margin-top: 12px;
  padding-top: 12px;
  border-top-color: #dce6eb;
  opacity: 1;
}

.cat-card-details-toggle {
  display: inline-flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid #e0e8ec;
  border-bottom: 1px solid #e0e8ec;
  border-radius: 0;
  background: transparent;
  color: #075d70;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}

.cat-card-details-toggle:hover {
  border-color: #aac2cc;
  color: #064b5a;
}

.cat-card-details-toggle svg {
  flex: 0 0 auto;
  transition: transform .28s cubic-bezier(.22, .8, .22, 1);
}

.cat-card.is-details-open .cat-card-details-toggle svg {
  transform: rotate(180deg);
}

.cat-card-details-toggle:focus-visible {
  outline: 3px solid rgba(7, 93, 112, .24);
  outline-offset: 3px;
}

.catalog-view .cat-card-foot {
  margin-top: 14px;
  padding-top: 0;
}

.catalog-view .cat-card-price {
  font-variant-numeric: tabular-nums;
}

.catalog-view .cat-card-buy {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 7px;
  background: #075d70;
  font-size: 13px;
  font-weight: 700;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.catalog-view .cat-card-buy:hover {
  background: #064b5a;
  box-shadow: 0 8px 18px rgba(7, 93, 112, .16);
  filter: none;
  transform: translateY(-1px);
}

.catalog-view .cat-card-buy:active {
  box-shadow: none;
  transform: translateY(1px);
}

.catalog-view .cat-card--soon .cat-card-buy.cat-card-buy--primary {
  background: #075d70;
}

.catalog-view .cat-card-tool {
  border: 1px solid rgba(208, 220, 227, .9);
  border-radius: 7px;
  box-shadow: 0 4px 12px rgba(20, 53, 77, .06);
}

.catalog-view .cat-page.cat-motion-ready .cat-card {
  animation: cat-card-enter .42s cubic-bezier(.22, .8, .22, 1) backwards;
  animation-delay: calc(var(--cat-card-order, 0) * 55ms);
}

@keyframes cat-card-enter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.catalog-view .cat-grid:not(.cat-grid--tiles) .cat-card-details {
  margin-top: 8px;
}

.catalog-view .cat-grid:not(.cat-grid--tiles) .cat-card-details-toggle {
  width: min(100%, 250px);
}

@media (max-width: 1200px) {
  .catalog-view .cat-page { padding-top: 104px; }
}

@media (max-width: 900px) {
  .catalog-view .cat-layout { padding-top: 20px; }
  .catalog-view .cat-category-panel { border-radius: 0; }
}

@media (max-width: 768px) {
  .catalog-view .cat-page { padding-top: 24px; }
  .catalog-view .cat-hero { padding-top: 6px; }
}

@media (max-width: 560px) {
  .catalog-view .cat-page .wrap { padding-right: 16px; padding-left: 16px; }
  .catalog-view .cat-hero { padding-bottom: 20px; }
  .catalog-view .cat-hero h1 { font-size: clamp(32px, 10vw, 39px); }
  .catalog-view .cat-grid--tiles .cat-card-media-slot { aspect-ratio: 1.2; }
  .catalog-view .cat-grid--tiles .cat-card-body { padding: 16px; }
  .catalog-view .cat-grid--tiles .cat-card-title { font-size: 16px; }
  .cat-card-badges { top: 12px; }
  .cat-card-badge { min-height: 26px; min-width: 72px; font-size: 9px; }
  .catalog-view .cat-grid:not(.cat-grid--tiles) .cat-card-details-toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-view .cat-page.cat-motion-ready .cat-card,
  .cat-card-badge {
    animation: none;
  }

  .cat-card-badge::after {
    display: none;
  }

  .catalog-view .cat-card,
  .catalog-view .cat-card-media img,
  .catalog-view .cat-card-details .cat-card-specs,
  .cat-card-details-toggle svg {
    transition-duration: .01ms;
  }
}
