/* Оформление карточек главной для сетей на странице города. */
#city-network-stores .col-6 {
  display: flex;
  align-items: stretch;
  margin-bottom: 24px;
}
#city-network-stores .chain_card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  color: #263126;
  background: #fff;
  border: 1px solid #e4e8e2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(35, 52, 29, .04);
  transition: border-color .2s, box-shadow .2s;
}
#city-network-stores .chain_card:hover {
  color: #263126;
  border-color: #acc49d;
  box-shadow: 0 6px 20px rgba(35, 52, 29, .09);
}
#city-network-stores .chain_card:focus-visible {
  outline: 3px solid #589442;
  outline-offset: -3px;
}
#city-network-stores .chain_card_logo {
  display: block;
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 0;
  padding-top: 62.5%;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 1px solid #f0f2ef;
}
#city-network-stores .chain_card_logo img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#city-network-stores .chain_card_body {
  flex: 1;
  padding: 12px;
}
#city-network-stores .chain_card_logo_fitted {
  background-size: contain;
}
#city-network-stores .chain_card_logo_fitted img {
  object-fit: contain;
}
#city-network-stores .chain_card_logo_badge_space {
  background-size: 90% auto;
  background-position: center 24px;
}
#city-network-stores .chain_card_logo_dark {
  background-color: #000;
}
#city-network-stores .chain_card_logo_badge_compact {
  background-size: auto calc(100% - 36px);
  background-position: center 32px;
}
#city-network-stores .chain_card_logo_badge_compact img {
  top: 32px;
  height: calc(100% - 36px);
}
#city-network-stores .chain_card_logo_badge_high .chain_card_recommended {
  top: 6px;
}
#city-network-stores .chain_card h3 {
  color: #263126;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 4px;
  overflow-wrap: break-word;
}
#city-network-stores .chain_card_category {
  color: #6b7369;
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 8px;
  overflow-wrap: break-word;
}
#city-network-stores .chain_card_count {
  display: block;
  color: #3e5137;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
#city-network-stores .chain_card_status {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.4;
}
#city-network-stores .chain_card_recommended {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 7px;
  border: 1px solid #dce9d5;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.4;
  color: #39712a;
  background: #eef5e9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05);
}
#city-network-stores .chain_card_status {
  color: #775326;
  background: #fff3df;
}
#city-network-stores .chain_card_footer {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border-top: 1px solid #edf0eb;
  background: #fafbf8;
}
#city-network-stores .chain_card_rating {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 9px;
  background: #ecefe9;
  color: #46513e;
  font-size: 16px;
  font-weight: 600;
}
#city-network-stores .chain_card_rating_good {
  color: #fff;
  background: #589442;
}
#city-network-stores .chain_card_rating_empty {
  color: #8c9587;
}
#city-network-stores .chain_card_feedback {
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}
#city-network-stores .chain_card_grade,
#city-network-stores .chain_card_reviews {
  display: block;
  font-size: 12px;
  overflow-wrap: break-word;
}
#city-network-stores .chain_card_grade {
  font-weight: 500;
}
#city-network-stores .chain_card_reviews {
  color: #6b7369;
}
#city-network-stores .chain_card_arrow {
  flex: 0 0 16px;
  color: #589442;
}
@media (max-width: 767px) {
  #city-network-stores .col-6 {
    margin-bottom: 0;
  }
  #city-network-stores .chain_card_body {
    padding: 10px 12px;
  }
  #city-network-stores .chain_card h3 {
    font-size: 14px;
  }
  #city-network-stores .chain_card_footer {
    padding: 10px 12px;
    gap: 7px;
  }
  #city-network-stores .chain_card_rating {
    flex-basis: 34px;
    height: 34px;
    font-size: 15px;
  }
  #city-network-stores .chain_card_arrow {
    flex-basis: 14px;
    width: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #city-network-stores .chain_card {
    transition: none;
  }
}

#city-network-stores {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 30px;
  margin: 0;
}
#city-network-stores > .col-6 {
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
  margin-bottom: 0;
}
#city-network-stores .chain_card_main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  color: inherit;
}
#city-network-stores .chain_card_links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 0 12px 12px;
  font-size: 12px;
  line-height: 1.4;
}
#city-network-stores .chain_card_links a {
  color: #39712a;
  text-decoration: underline;
}
#city-network-stores .chain_card_links a:hover {
  color: #263126;
}
#city-network-stores .chain_card_footer {
  color: #263126;
}
#city-network-stores .chain_card_main:focus-visible,
#city-network-stores .chain_card_footer:focus-visible {
  outline: 3px solid #589442;
  outline-offset: -3px;
}
#city-network-stores .city_stores_more {
  grid-column: 1 / -1;
  width: auto;
  max-width: none;
  padding: 0;
}
@media (max-width: 1199px) {
  #city-network-stores {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  #city-network-stores {
    gap: 15px;
  }
}

/* В городской категории блок — самостоятельная строка, а не сжимаемый flex-элемент. */
.city-catalog-page #city-network-stores {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  margin: 0 0 28px;
}
.city-catalog-page #city-network-stores::before,
.city-catalog-page #city-network-stores::after { display: none; }
@media (min-width: 992px) {
  .city-catalog-page #city-network-stores { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
