.catalog-categories-page {
  --cc-accent: #fe7250;
  --cc-text: #42464c;
  --cc-bg: #ffffff;
  --cc-card-bg: #ffffff;
  --cc-muted: #9ca3af;
  --cc-shadow: 0 4px 10px rgba(0, 0, 0, 0.10);
  --cc-container-padding: 0 80px;
  --cc-max-width: 1440px;
  --cc-card-body-height: 160px;
}

.cc-page {
  background: var(--cc-bg);
  font-family: 'Raleway', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cc-container {
  width: 100%;
  max-width: var(--cc-max-width);
  margin: 0 auto;
  padding: var(--cc-container-padding);
}

.cc-hero {
  padding-top: 80px;
  padding-bottom: 40px;
}

.cc-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px 0;
  padding: 0;
  list-style: none;
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 150%;
  color: var(--cc-text);
}

.cc-breadcrumbs__link {
  color: var(--cc-text);
  text-decoration: none;
  transition: text-shadow 0.15s ease;
}

.cc-breadcrumbs__link:hover,
.cc-breadcrumbs__link:focus-visible {
  text-shadow: 0 0 0.5px var(--cc-text, #42424c), 0 0 0.5px var(--cc-text, #42424c);
  outline: none;
}

.cc-breadcrumbs__sep {
  flex-shrink: 0;
  display: inline-flex;
  width: 5px;
  height: 9px;
  background-color: var(--cc-text, #42424c);
  -webkit-mask-image: url("/static/images/icons/arrow-right.f8d2d608b95a.svg");
  mask-image: url("/static/images/icons/arrow-right.f8d2d608b95a.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 5px 9px;
  mask-size: 5px 9px;
  user-select: none;
}

.cc-breadcrumbs__current {
  color: var(--cc-text);
  font-weight: 600;
}

.cc-breadcrumbs__link--home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px 0;
  padding: 0;
  color: var(--cc-text);
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 400;
  font-weight: 400;
  line-height: 150%;
}

.cc-back:hover,
.cc-back:focus-visible {
  text-decoration: none;
  text-shadow: 0 0 0.5px var(--cc-text, #42424c), 0 0 0.5px var(--cc-text, #42424c);
  outline: none;
}

.cc-back__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cc-back__icon img {
  display: block;
  width: 24px;
  height: 24px;
}

.cc-back__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.cc-back__icon svg * {
  stroke: var(--cc-text);
}

.cc-heading {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 46px;
  line-height: 110%;
  color: var(--cc-text);
  text-align: center;
}

/* ─── Секция сетки категорий ───────────────────────── */
.cc-catalog {
  padding-bottom: 80px;
}

.cc-grid {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* ─── Карточка категории ───────────────────────────── */
.cc-card {
  display: flex;
  flex-direction: column;
  background: var(--cc-card-bg);
  border-radius: 24px;
  box-shadow: var(--cc-shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

/* Блок изображения */
.cc-card__img-frame {
  width: 100%;
  aspect-ratio: 400 / 360;
  flex-shrink: 0;
  padding: 10px;
  background: var(--cc-card-bg);
}

.cc-card__img-inner {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--cc-card-bg);
}

.cc-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Текстовый блок */
.cc-card__body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  height: var(--cc-card-body-height);
  flex: 0 0 var(--cc-card-body-height);
  min-width: 0;
  box-sizing: border-box;
}

.cc-card__title {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 130%;
  color: var(--cc-text);
}

/* Кнопка «Подробнее» */
.cc-card__btn {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 53px;
  padding: 16px;
  border-radius: 16px;
  background: var(--cc-accent);
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 21px;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--cc-accent);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cc-card__btn:hover,
.cc-card__btn:focus-visible {
  background: #ffffff;
  color: var(--cc-accent);
  outline: none;
}

/* ─── Пустое состояние ─────────────────────────────── */
.cc-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  border: 1px dashed var(--cc-muted);
  border-radius: 16px;
  text-align: center;
  color: var(--cc-muted);
  font-size: 16px;
}

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 1440px) {
  .catalog-categories-page {
    --cc-container-padding: 0 40px;
  }
}

@media (max-width: 1100px) {
  .cc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .catalog-categories-page {
    --cc-container-padding: 0 16px;
  }

  .cc-hero {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .cc-breadcrumbs {
    gap: 12px;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 150%;
  }

  .cc-back,
  .cc-breadcrumbs__link--home {
    gap: 8px;
    font-size: 16px;
    line-height: 150%;
  }

  .cc-back {
    margin-bottom: 24px;
  }

  .cc-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cc-heading {
    font-size: 22px;
    line-height: 130%;
  }

  .cc-catalog {
    padding-bottom: 40px;
  }

  .cc-card {
    border-radius: 16px;
  }

  .cc-card__img-frame {
    box-sizing: border-box;
    height: 144px;
    aspect-ratio: auto;
    padding: 10px;
  }

  .cc-card__body {
    height: 80px;
    flex: 0 0 80px;
    padding: 16px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .cc-card__title {
    flex: 1 1 auto;
    font-size: 16px;
    font-weight: 600;
    line-height: 150%;
    color: #42424c;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .cc-card__btn {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    color: transparent;
    font-size: 0;
    line-height: 0;
  }

  .cc-card__btn::after {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background-color: #ffffff;
    -webkit-mask-image: url("/static/images/icons/arrow-right.f8d2d608b95a.svg");
    mask-image: url("/static/images/icons/arrow-right.f8d2d608b95a.svg");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 24px 24px;
    mask-size: 24px 24px;
  }

  .cc-breadcrumbs__link,
  .cc-back,
  .cc-card__btn {
    -webkit-tap-highlight-color: transparent;
    animation: none;
    transition: none;
  }

  .cc-card__btn:hover,
  .cc-card__btn:focus-visible,
  .cc-card__btn:active {
    background: var(--cc-accent);
    color: transparent;
    opacity: 1;
  }

  .cc-breadcrumbs__link:hover,
  .cc-breadcrumbs__link:focus-visible,
  .cc-breadcrumbs__link:active,
  .cc-back:hover,
  .cc-back:focus-visible,
  .cc-back:active {
    text-shadow: none;
  }
}
