.index-section__h1 {text-align: center;}
.pop-cats { padding: 16px 0 8px; }
.pop-cats__title {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 12px;
}
.pop-cats__group { margin-bottom: 4px; border: 1px solid #eee; border-radius: 10px; overflow: hidden; }
.pop-cats__group + .pop-cats__group { margin-top: 10px; }
.pop-cats__group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  background: #ff851f;
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  list-style: none;
}
.pop-cats__group-title::-webkit-details-marker { display: none; } /* для Safari/Chrome */
.pop-cats__group-title::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  transition: transform .2s;
}
.pop-cats__group[open] .pop-cats__group-title::after { transform: rotate(225deg) translate(-2px,-2px); }
.pop-cats__sub-title {
  margin: 0;
  padding: 10px 8px 4px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 400;
  color: #888;
  letter-spacing: .03em;
}
.pop-cats__list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  font-size: 14px;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid #f2f2f2;
}
.pop-cats__list a:last-child { border-bottom: none; }
.pop-cats__list a::after {
  content: "›";
  color: #f07d00;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  margin-left: 4px;
}
.pop-cats__list a:active { background: #fff8dd; }
.pop-cats__group-title a {
  color: #fff;
}

@media (min-width: 767px) {
  .pop-cats {
    display: grid;
    clear: both;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
  .pop-cats__title {
    grid-column: 1 / -1;
    font-size: 24px;
    margin-bottom: 4px;
  }
  .pop-cats__group {
    margin-bottom: 0;
  }
  .pop-cats__group + .pop-cats__group { margin-top: 0; }
  .pop-cats__group-title {
    font-size: 18px;
    padding: 14px 16px;
  }
  .pop-cats__sub-title {
    font-size: 16px;
    padding: 12px 12px 6px;
  }
  .pop-cats__list a {
    font-size: 16px;
    padding: 12px 16px;
  }
  .pop-cats__list a:hover { background: #fff8dd; }
}

.pop-cats--overlay .cat-tile {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid #eee;
  background: #fff;
  padding: 0;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
}
.pop-cats--cards .cat-tile::after,
.pop-cats--overlay .cat-tile::after {
  display: none;
}
.pop-cats--overlay .cat-tile span {
  position: absolute;
  bottom: 0;
  left: 0;
  width: fit-content;
  padding: 4px;
  background: rgba(255,255,255,.65);
  display: block;
}
.pop-cats--overlay .cat-tile:active {
  opacity: .85;
}
.pop-cats--overlay .cat-tile:active span {
  color: #ff851f;
}
.pop-cats--overlay .cat-tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.cat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pop-cats--cards .cat-tile {
  display: flex;
  flex-direction: column;
  padding: 14px 14px 0;
  border: none;
  background: #f4f4f4;
  border-radius: 12px;
}
.pop-cats--cards .cat-tile span {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75em;
  text-align: center;
}
.pop-cats--cards .cat-tile img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  object-position: bottom;
}
.pop-cats--cards .cat-tile:active { background: #eee; }
@media (min-width: 768px) {
  .pop-cats--overlay .cat-tile { font-size: 16px; }
  .pop-cats--cards .cat-tile { padding: 18px 18px 0; }
  .pop-cats--cards .cat-tile img { height: 220px; }
}
