.catalog_hub_page {
  display: grid;
  gap: 16px;
}

.catalog_hub_page .goods_head {
  display: grid;
  gap: 8px;
}

.catalog_hub_page .goods_subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.catalog_hub_cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  background: var(--surface);
  border: 1px solid #e4eaf3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 12px;
}

.catalog_hub_card {
  border: 1px solid #dfe7f3;
  border-radius: 14px;
  background: #fff;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 10px;
  text-align: center;
  color: #152e4f;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.catalog_hub_card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
  background: #f7fafe;
}

.catalog_hub_card:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 43, 43, 0.5);
  box-shadow: 0 10px 22px rgba(19, 45, 82, 0.14);
}

.catalog_hub_page .goods_text {
  margin-bottom: 10px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid #e4eaf3;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 1020px) {
  .catalog_hub_cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .catalog_hub_cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .catalog_hub_cards {
    grid-template-columns: 1fr;
  }
}

.storefront_help_sections {
  display: grid;
  gap: clamp(18px, 2vw, 26px);
  margin-top: 26px;
}

.storefront_links_block,
.storefront_faq_block {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2vw, 28px);
  background:
    radial-gradient(circle at top right, rgba(200, 31, 37, 0.06), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(186, 201, 221, 0.72);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.storefront_links_block::before,
.storefront_faq_block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #16345f 0%, #c81f25 100%);
  opacity: 0.95;
}

.storefront_service_links::before {
  background: linear-gradient(90deg, #16345f 0%, #4d74b8 100%);
}

.storefront_related_links::before {
  background: linear-gradient(90deg, #16345f 0%, #c81f25 70%, #e9b44c 100%);
}

.storefront_faq_block::before {
  background: linear-gradient(90deg, #16345f 0%, #89a6d8 100%);
}

.storefront_links_block h2,
.storefront_faq_block h2 {
  margin: 0 0 18px;
  padding-right: 38px;
  font-size: clamp(1.1rem, 1.2vw, 1.28rem);
  line-height: 1.2;
  color: #16345f;
}

.storefront_links_block ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.storefront_links_block li,
.storefront_faq_block details {
  margin: 0;
}

.storefront_links_block a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 110px;
  padding: 18px 18px 16px;
  color: #16345f;
  text-decoration: none;
  border-radius: 18px;
  border: 1px solid rgba(195, 208, 227, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 246, 253, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.storefront_links_block a:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 31, 37, 0.3);
  box-shadow: 0 16px 30px rgba(19, 45, 82, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
}

.storefront_link_content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.storefront_link_title {
  display: block;
  font-size: clamp(1rem, 1.05vw, 1.14rem);
  line-height: 1.3;
  font-weight: 800;
  color: #16345f;
}

.storefront_link_desc {
  display: block;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #627898;
}

.storefront_link_icon {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #16345f 0%, #244a84 100%);
  box-shadow: 0 10px 18px rgba(22, 52, 95, 0.22);
}

.storefront_related_links .storefront_link_icon {
  background: linear-gradient(135deg, #c81f25 0%, #16345f 100%);
}

.storefront_link_icon::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

.storefront_faq_block details + details {
  margin-top: 12px;
}

.storefront_faq_block details {
  border: 1px solid rgba(197, 210, 229, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.storefront_faq_block summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 800;
  color: #16345f;
}

.storefront_faq_block summary span {
  min-width: 0;
}

.storefront_faq_block summary::-webkit-details-marker {
  display: none;
}

.storefront_faq_block summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #edf3fb;
  color: #16345f;
  font-size: 1.15rem;
  font-weight: 500;
  flex: 0 0 auto;
}

.storefront_faq_block details[open] summary::after {
  content: "−";
  background: #16345f;
  color: #fff;
}

.storefront_faq_block p {
  margin: 0;
  padding: 0 18px 18px;
  color: #596f8d;
  line-height: 1.7;
}

@media (min-width: 900px) {
  .storefront_links_block ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .storefront_help_sections {
    margin-top: 22px;
  }

  .storefront_links_block,
  .storefront_faq_block {
    padding: 16px;
    border-radius: 20px;
  }

  .storefront_links_block h2,
  .storefront_faq_block h2 {
    margin-bottom: 14px;
    padding-right: 0;
  }

  .storefront_links_block a {
    min-height: 96px;
    padding: 14px;
    gap: 12px;
    border-radius: 16px;
  }

  .storefront_link_desc {
    font-size: 0.9rem;
  }

  .storefront_link_icon {
    width: 38px;
    height: 38px;
  }

  .storefront_faq_block summary {
    padding: 14px;
    font-size: 0.96rem;
  }

  .storefront_faq_block p {
    padding: 0 14px 14px;
    font-size: 0.94rem;
  }
}
