/* Оформление страниц-каталогов: статьи и компании.
 *
 * Подключается ТОЛЬКО этими двумя страницами — имена вроде .card, .hero и .tag
 * заняты на других страницах своими стилями, поэтому в общий career.css
 * эти правила выносить нельзя.
 */
:root {
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.09), 0 12px 32px rgba(16, 24, 40, 0.11);
}
[data-theme='dark'] {
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.36);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 3px;
}
::-webkit-scrollbar-track {
  background: transparent;
}

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 44px 32px 100px;
}
.hero {
  text-align: center;
  margin-bottom: 48px;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}
.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto 28px;
}
.search-wrap {
  flex: 1;
  position: relative;
}
.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--faint);
}
.search-input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 42px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.search-input::placeholder {
  color: var(--faint);
}
.search-wrap.is-busy .search-input {
  padding-right: 44px;
}
.search-wrap.is-busy::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid var(--faint);
  border-right-color: transparent;
  border-radius: 50%;
  animation: cr-spin 0.7s linear infinite;
}
.is-refreshing {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s 0.15s;
}
.search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.btn-write {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 20px;
  border: none;
  border-radius: 12px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  font-family: inherit;
  text-decoration: none;
}
.btn-write:hover {
  background: var(--brand-strong);
}
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 40px;
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.featured:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.featured-cover {
  position: relative;
  min-height: 340px;
}
.featured-cover-bg {
  position: absolute;
  inset: 0;
}
.featured-cover-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}
.featured-badge {
  position: absolute;
  top: 20px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.featured-body {
  display: flex;
  flex-direction: column;
  padding: 36px 38px;
  justify-content: center;
}
.featured-tags {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.featured-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text-2);
}
.featured-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin-bottom: 12px;
}
.featured-excerpt {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.author-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.author-av {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}
.author-date {
  font-size: 12px;
  color: var(--muted);
}
.featured-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.stat-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--faint);
}
.read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: 1.5px solid var(--line-2);
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.read-btn:hover {
  border-color: var(--brand);
  color: var(--brand-text);
  background: var(--brand-soft);
}

/* Фильтры категорий — единый компонент .cr-filters / .cr-chip в career.css.
   .cr-filters переопределяем нижний отступ под этот каталог. */
.cr-filters {
  margin-bottom: 36px;
}
.content-cols {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 1000px) {
  .content-cols {
    grid-template-columns: 1fr;
  }
  .aside {
    display: none;
  }
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}
.section-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--faint);
}
.art-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}
@media (max-width: 900px) {
  .art-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .art-grid {
    grid-template-columns: 1fr;
  }
  .featured {
    grid-template-columns: 1fr;
  }
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition:
    border-color 0.15s,
    box-shadow 0.18s,
    transform 0.18s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-cover {
  position: relative;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}
.card-cover-bg {
  position: absolute;
  inset: 0;
}
.card-cover-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}
.card-body {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px;
  flex: 1;
}
.card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}
.tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-2);
}
.card-title {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Подвал карточки: автор слева, время чтения и просмотры справа.
   Строка переносится, а не сминается; min-width автора включает перенос. */
.card-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.card-author {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1 1 auto;
  min-width: 130px;
}
.card-av {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--brand-soft);
  color: var(--brand-text);
}
.card-author-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.meta-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.meta-mono svg,
.stat-pill svg {
  flex-shrink: 0;
}
.load-more-row {
  display: flex;
  justify-content: center;
}
.btn-load {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 28px;
  border: 1.5px solid var(--line-2);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.btn-load:hover {
  border-color: var(--brand);
  color: var(--brand-text);
  background: var(--brand-soft);
}
.aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 80px;
}
.aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.aside-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--faint);
  margin-bottom: 14px;
}
.trending-list {
  display: flex;
  flex-direction: column;
}
.trending-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.trending-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.trending-item:first-child {
  padding-top: 0;
}
.trending-body {
  min-width: 0;
}
.trending-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--surface-3);
  line-height: 1;
  flex-shrink: 0;
  min-width: 24px;
}
.trending-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trending-meta {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
}
.state-msg {
  grid-column: 1/-1;
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

/* Конструкция страницы общая с каталогом статей, но оформление карточки своё:
   у компании нет обложки, поэтому вместо градиентной шапки — логотип в строке
   с названием. Так карточка читается как визитка, а не как превью материала. */
.co-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}
@media (max-width: 900px) {
  .co-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .co-grid {
    grid-template-columns: 1fr;
  }
}

.co-card .card-body {
  padding: 20px;
}

.co-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.co-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--brand-text);
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.co-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.co-head-text {
  min-width: 0;
}
.co-name {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.co-name span {
  min-width: 0; /* без этого длинное название вытолкнет галочку за карточку */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.co-check {
  flex-shrink: 0;
  color: var(--green-text);
}
.trending-empty {
  font-size: 13px;
  color: var(--muted);
}
.co-meta {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Показатели в подвале карточки */
.co-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
}
.co-stat svg {
  color: var(--faint);
  flex-shrink: 0;
}
.co-rating {
  color: var(--amber-text);
}
.co-rating svg {
  color: var(--amber-text);
}

/* Сложность — главное, что ищут глазами в каталоге заданий, поэтому уровень
   вынесен в цветную полосу слева: её видно при беглом просмотре колонки,
   не читая текст. У статьи эту роль играет обложка, у компании — логотип. */
.te-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}
@media (max-width: 900px) {
  .te-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .te-grid {
    grid-template-columns: 1fr;
  }
}

.te-card {
  padding: 20px;
  border-left: 3px solid var(--line-2);
  cursor: default;
}
.te-card[data-card-level='junior'] {
  border-left-color: var(--green-text);
}
.te-card[data-card-level='middle'] {
  border-left-color: var(--amber-text);
}
.te-card[data-card-level='senior'] {
  border-left-color: var(--brand);
}

.te-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.te-author-av {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.te-author {
  min-width: 0;
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.te-level {
  margin-left: auto;
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
}
.te-level-junior {
  background: var(--green-soft);
  color: var(--green-text);
}
.te-level-middle {
  background: var(--amber-soft);
  color: var(--amber-text);
}
.te-level-senior {
  background: var(--brand-soft);
  color: var(--brand-text);
}

.te-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  margin-bottom: 14px;
  border-top: 1px solid var(--line);
}
.te-cat {
  margin-left: auto;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

/* Основное действие карточки — начать прохождение */
.te-start {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.te-start:hover {
  background: var(--brand);
  border-color: transparent;
  color: var(--on-brand);
}
.te-start svg {
  flex-shrink: 0;
}

/* Конкурс — событие с призом и сроком, поэтому карточка похожа на билет:
   сверху приз, ниже линия отрыва и сам кейс. Шкала внизу показывает, сколько
   времени уже прошло, а её цвет — насколько срочно нужно успеть. */
.cn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}
@media (max-width: 900px) {
  .cn-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .cn-grid {
    grid-template-columns: 1fr;
  }
}

.cn-card {
  cursor: default;
  --cn-accent: var(--green-text);
}
.cn-card[data-urgency='soon'] {
  --cn-accent: var(--amber-text);
}
.cn-card[data-urgency='urgent'] {
  --cn-accent: var(--red-text);
}
.cn-card[data-urgency='closed'] {
  --cn-accent: var(--faint);
}

.cn-prize {
  padding: 16px 20px 18px;
  background: var(--surface-2);
  color: var(--text);
}
.cn-prize.is-empty,
.cn-card[data-urgency='closed'] .cn-prize {
  color: var(--muted);
}
.cn-prize-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.cn-prize-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.cn-prize-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--brand);
  color: var(--on-brand);
}
.cn-card[data-urgency='closed'] .cn-prize-icon {
  background: var(--surface-3);
  color: var(--muted);
}
.cn-prize-value {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cn-prize.is-empty .cn-prize-value {
  font-size: 15px;
  font-weight: 600;
}
.cn-cat {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.cn-cut {
  position: relative;
  height: 0;
  border-top: 1.5px dashed var(--line-2);
}
.cn-cut::before,
.cn-cut::after {
  content: '';
  position: absolute;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
}
.cn-cut::before {
  left: -12px;
}
.cn-cut::after {
  right: -12px;
}

.cn-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 20px 20px;
}
.cn-company {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  min-width: 0;
}
.cn-company-av {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cn-company-name {
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cn-time {
  margin-bottom: 16px;
}
.cn-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 8px;
}
.cn-time-label,
.cn-people {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
}
.cn-time-label {
  font-weight: 700;
  color: var(--cn-accent);
}
.cn-card[data-urgency='calm'] .cn-time-label,
.cn-card[data-urgency='closed'] .cn-time-label {
  color: var(--text-2);
}
.cn-people {
  color: var(--muted);
}
.cn-time-label svg,
.cn-people svg {
  flex-shrink: 0;
}
.cn-people svg {
  color: var(--faint);
}
.cn-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.cn-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cn-accent);
}

.cn-start {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 40px;
  margin-top: auto;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.cn-start:hover {
  background: var(--surface-2);
}
.cn-start.is-open {
  border-color: transparent;
  background: var(--brand);
  color: var(--on-brand);
}
.cn-start.is-open:hover {
  background: var(--brand-strong);
}
.cn-start svg {
  flex-shrink: 0;
}

/* Сетки карточек перестраиваются выше, рядом со своими блоками:
   1000px — прячется боковая панель, 900px — две колонки, 580px — одна.
   Здесь остальное: поля страницы, размер заголовка и строка поиска. */

@media (max-width: 680px) {
  main {
    padding: 28px 18px 72px;
  }

  .hero {
    margin-bottom: 32px;
  }
  .hero-title {
    font-size: 30px;
  }
  .hero-sub {
    font-size: 14.5px;
  }

  /* Кнопка не помещается рядом с полем — переносим её под поиск на всю ширину */
  .search-row {
    flex-wrap: wrap;
  }
  .search-wrap {
    flex-basis: 100%;
  }
  .btn-write {
    width: 100%;
    justify-content: center;
  }

  .cr-filters {
    margin-bottom: 26px;
  }
  .featured-body {
    padding: 24px 22px;
  }
  .co-card .card-body {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  main {
    padding: 24px 14px 64px;
  }
  .hero-title {
    font-size: 26px;
  }
  .hero-sub {
    font-size: 14px;
  }
}
