.shop-list-page {
  --bg: #f4f8fd;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #152033;
  --muted: #66758b;
  --muted-2: #8a97a9;
  --blue: #0b7df3;
  --blue-2: #2f55ff;
  --violet: #6645ff;
  --line: #cfe0f4;
  --line-soft: #e4ebf4;
  --green: #38bf74;
  --orange: #ffad25;
  --danger: #f25568;
  --shadow: 0 16px 40px rgba(33, 65, 106, 0.08);
  --shadow-strong: 0 24px 55px rgba(27, 62, 112, 0.16);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --container: 1590px;
}

.shop-list-page {
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 60px;
  color: var(--text);
}

.shop-list-page .container {
  width: min(var(--container), calc(100% - 48px));
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  margin-left: auto;
  margin-right: auto;
}

.shop-list-page .hero-section {
  background: linear-gradient(122deg, #006fff 0%, #1459ff 50%, #6331f3 100%);
  color: #fff;
  padding-bottom: 32px;
}

.shop-list-page .hero-inner {
  min-height: 260px;
  display: grid;
  grid-template-columns: 1fr minmax(480px, 790px);
  align-items: center;
  gap: 72px;
  padding: 26px 0 32px;
}

.shop-list-page .hero-content {
  min-width: 0;
}

.shop-list-page .section-pill,
.shop-list-page .promo-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.shop-list-page .hero-content h1 {
  margin: 28px 0 20px;
  max-width: 620px;
  font-size: clamp(34px, 3.1vw, 47px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #fff;
}

.shop-list-page .hero-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.shop-list-page .sort-button,
.shop-list-page .create-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: 0;
}

.shop-list-page .sort-button {
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #fff;
  background: rgba(4, 72, 240, 0.34);
}

.shop-list-page .create-store-button {
  padding: 0 18px;
  color: #1959f0;
  background: #fff;
}

.shop-list-page .search-bar {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(20, 43, 114, 0.13);
}

.shop-list-page .search-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}

.shop-list-page .search-bar input::placeholder {
  color: #b6cdf2;
}

.shop-list-page .filters-section {
  background: #fff;
  border-bottom: 1px solid #c6d9f1;
}

.shop-list-page .filters-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.shop-list-page .filters-row::-webkit-scrollbar {
  display: none;
}

.shop-list-page .chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 19px;
  border-radius: 7px;
  color: #334864;
  background: #fff;
  border: 1px solid #9bbbe7;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.shop-list-page .chip.active {
  color: #fff;
  background: #155af4;
  border-color: #155af4;
  box-shadow: 0 8px 18px rgba(21, 90, 244, 0.22);
}

.shop-list-page .chip-confirmed {
  gap: 8px;
}

.shop-list-page .stores-section {
  padding: 34px 0 66px;
}

.shop-list-page .section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.shop-list-page .section-heading h2,
.shop-list-page .list-header h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #0868ff;
}

.shop-list-page .section-heading p,
.shop-list-page .list-header p {
  margin: 10px 0 0;
  color: #59708e;
  font-size: 19px;
  font-weight: 600;
}

.shop-list-page .top-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 52px;
}

/* Предпросмотр баннера staff без ТОП-магазинов: только колонка слота */
.shop-list-page .top-layout--preview-aside-only {
  grid-template-columns: 1fr;
  max-width: 440px;
  margin-left: auto;
  margin-right: 0;
}

.shop-list-page .top-layout--preview-aside-only .top-grid--preview-placeholder {
  display: none;
}

/* Пустая правая колонка: только удерживает пропорции сетки, без рамки/градиента баннера */
.shop-list-page .top-layout-rail {
  min-width: 0;
}

.shop-list-page .top-aside-panel--banner .site-banner-slot {
  min-height: 0;
}

.shop-list-page .top-layout-aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.shop-list-page .top-aside-panel {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 145px;
  border-radius: var(--radius-xl);
  border: 2px solid #d6e6ff;
  background: linear-gradient(165deg, #fbfdff 0%, #eef4ff 55%, #e8f0ff 100%);
  box-shadow: 0 8px 22px rgba(32, 91, 164, 0.06);
}

.shop-list-page .top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
  align-items: start;
}

.shop-list-page .store-card {
  position: relative;
  display: flex;
  gap: 16px;
  min-width: 0;
  min-height: 145px;
  background: #fff;
  border: 2px solid #bcdcff;
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: 0 10px 26px rgba(32, 91, 164, 0.03);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  text-decoration: none;
  color: inherit;
}

.shop-list-page .store-card--top {
  min-height: 145px;
}

.shop-list-page .store-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #83b9fb;
}

.shop-list-page .store-logo {
  width: 90px;
  height: 90px;
  flex: 0 0 auto;
  border-radius: 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-align: center;
  background:
    linear-gradient(rgba(3, 31, 67, 0.32), rgba(3, 31, 67, 0.32)),
    repeating-linear-gradient(112deg, rgba(255,255,255,.08) 0 3px, transparent 3px 15px),
    linear-gradient(135deg, #051d3d 0%, #0b4975 52%, #061427 100%);
}

.shop-list-page .store-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-list-page .store-body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.shop-list-page .store-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-list-page .store-title-row h3 {
  margin: 0;
  min-width: 0;
  color: #172033;
  font-size: 19px;
  line-height: 1.18;
  font-weight: 750;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-list-page .verify-badge {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  display: inline-block;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.5 2.5l2.55 1.84 3.12.04 1 2.96 2.5 1.9-.93 3.02.93 3.02-2.5 1.9-1 2.96-3.12.04L12.5 22l-2.55-1.84-3.12-.04-1-2.96-2.5-1.9.93-3.02-.93-3.02 2.5-1.9 1-2.96 3.12-.04L12.5 2.5z' stroke='%23006FFF' stroke-width='2'/%3E%3Cpath d='M8.7 12.4l2.4 2.35 5.2-5.35' stroke='%23006FFF' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.shop-list-page .top-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #126bff, #6337f5);
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
}

.shop-list-page .store-meta {
  margin: 8px 0 20px;
  color: #50617a;
  font-weight: 700;
  font-size: 14px;
}

.shop-list-page .store-stats {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.shop-list-page .store-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  color: #121b2c;
  white-space: nowrap;
}

.shop-list-page .store-stats strong {
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.shop-list-page .store-stats em {
  font-style: normal;
  color: #62718a;
  font-weight: 700;
  font-size: 11px;
}

.shop-list-page .store-stats .rating > span {
  color: #ffb000;
  font-size: 16px;
}

.shop-list-page .promo-card {
  min-height: 328px;
  border-radius: var(--radius-xl);
  padding: 72px 46px 54px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 100%, rgba(169, 51, 255, 0.94), transparent 42%),
    linear-gradient(135deg, #075fff 0%, #0f64ff 43%, #6032f5 100%);
  box-shadow: var(--shadow-strong);
}

.shop-list-page .promo-label {
  padding: 10px 16px;
  font-size: 16px;
  margin-bottom: 40px;
}

.shop-list-page .promo-label__logo {
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 12px;
}

.shop-list-page .promo-card h2 {
  margin: 0;
  max-width: 400px;
  font-size: 39px;
  line-height: 1.07;
  letter-spacing: -0.035em;
  color: #fff;
}

.shop-list-page .promo-card p {
  margin: 22px 0 30px;
  max-width: 450px;
  font-size: 21px;
  line-height: 1.42;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.shop-list-page .gift-button {
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #075fff;
  background: #fff;
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 16px 26px rgba(10, 29, 80, 0.16);
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.shop-list-page .list-header {
  margin-bottom: 18px;
}

.shop-list-page .stores-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 16px;
  align-items: start;
}

.shop-list-page .stores-grid .store-card {
  min-height: 145px;
  padding: 22px 26px;
  border-color: #cce2ff;
}

.shop-list-page .stores-grid .store-card .top-badge {
  display: none;
}

.shop-list-page .pagination {
  width: max-content;
  max-width: 100%;
  margin: 54px auto 0;
  min-height: 46px;
  padding: 7px 9px 7px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: #fff;
  color: #63728b;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.shop-list-page .pagination .page {
  min-width: 33px;
  height: 33px;
  border-radius: 8px;
  border: 1px solid #b7d2f7;
  color: #2866d9;
  background: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.shop-list-page .pagination .page.active {
  border-color: #b9d3ff;
  background: #dceaff;
}

.shop-list-page .pagination .next {
  min-width: 28px;
  border-color: transparent;
  background: transparent;
  color: #7d8ba1;
  font-size: 24px;
}

.shop-list-page .icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex: 0 0 auto;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.shop-list-page .icon-store { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10h14v10H5V10zm2 2v6h10v-6H7zm-3-2l1.2-6h13.6L20 10H4zm4 2h3v6H8v-6z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10h14v10H5V10zm2 2v6h10v-6H7zm-3-2l1.2-6h13.6L20 10H4zm4 2h3v6H8v-6z'/%3E%3C/svg%3E"); }
.shop-list-page .icon-search { color: #a4c4f0; mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 4a6.5 6.5 0 104.1 11.5l4 4 1.4-1.4-4-4A6.5 6.5 0 0010.5 4zm0 2a4.5 4.5 0 110 9 4.5 4.5 0 010-9z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 4a6.5 6.5 0 104.1 11.5l4 4 1.4-1.4-4-4A6.5 6.5 0 0010.5 4zm0 2a4.5 4.5 0 110 9 4.5 4.5 0 010-9z'/%3E%3C/svg%3E"); }
.shop-list-page .icon-shield { color: #25324a; width: 18px; height: 18px; mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.3-8 11-4.6-1.7-8-6-8-11V5l8-3zm-1 13.2l5.2-5.2-1.4-1.4L11 12.4 9.2 10.6 7.8 12l3.2 3.2z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.3-8 11-4.6-1.7-8-6-8-11V5l8-3zm-1 13.2l5.2-5.2-1.4-1.4L11 12.4 9.2 10.6 7.8 12l3.2 3.2z'/%3E%3C/svg%3E"); }
.shop-list-page .icon-crown, .shop-list-page .icon-crown-small { color: #0868ff; mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7l5 4 4-7 4 7 5-4-2 11H5L3 7zm2 13h14v2H5v-2z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7l5 4 4-7 4 7 5-4-2 11H5L3 7zm2 13h14v2H5v-2z'/%3E%3C/svg%3E"); }
.shop-list-page .icon-crown-small { color: #fff; width: 16px; height: 16px; }
.shop-list-page .icon-gift { mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 7h-2.2A3 3 0 0012.5 4L12 5l-.5-1A3 3 0 006.2 7H4v5h1v8h14v-8h1V7zm-6.2-1.6A1 1 0 0116 6.1V7h-3.1l.9-1.6zM8 6.1a1 1 0 011.8-.7l.9 1.6H8v-.9zM6 9h5v2H6V9zm7 0h5v2h-5V9zm-6 4h4v5H7v-5zm6 0h4v5h-4v-5z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 7h-2.2A3 3 0 0012.5 4L12 5l-.5-1A3 3 0 006.2 7H4v5h1v8h14v-8h1V7zm-6.2-1.6A1 1 0 0116 6.1V7h-3.1l.9-1.6zM8 6.1a1 1 0 011.8-.7l.9 1.6H8v-.9zM6 9h5v2H6V9zm7 0h5v2h-5V9zm-6 4h4v5H7v-5zm6 0h4v5h-4v-5z'/%3E%3C/svg%3E"); }
.shop-list-page .icon-arrow-right { width: 18px; height: 18px; mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 4l6 6-6 6-1.5-1.5L11 10 6.5 5.5 8 4z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 4l6 6-6 6-1.5-1.5L11 10 6.5 5.5 8 4z'/%3E%3C/svg%3E"); }

@media (max-width: 1440px) {
  .shop-list-page {
    --container: 1320px;
  }

  .shop-list-page .hero-inner { grid-template-columns: 1fr minmax(420px, 620px); gap: 44px; }
  .shop-list-page .top-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .shop-list-page .promo-card h2 { font-size: 34px; }
  .shop-list-page .store-card { padding: 19px; }
  .shop-list-page .store-logo { width: 78px; height: 78px; }
  .shop-list-page .store-title-row h3 { font-size: 17px; }
}

@media (max-width: 1180px) {
  .shop-list-page .container {
    width: min(100% - 32px, 920px);
  }

  .shop-list-page .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }
  .shop-list-page .search-bar {
    max-width: 760px;
  }
  .shop-list-page .top-layout {
    grid-template-columns: 1fr;
  }
  .shop-list-page .top-layout-rail {
    display: none;
  }
  .shop-list-page .promo-card {
    min-height: auto;
    padding: 38px;
  }
  .shop-list-page .stores-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shop-list-page .container {
    width: min(100% - 32px, 620px);
  }

  .shop-list-page .hero-inner {
    min-height: 0;
    padding: 28px 0 30px;
  }
  .shop-list-page .section-pill {
    padding: 10px 14px;
    font-size: 14px;
  }
  .shop-list-page .hero-content h1 {
    margin: 22px 0 20px;
    font-size: 32px;
    line-height: 1.09;
  }
  .shop-list-page .hero-controls {
    display: grid;
    grid-template-columns: 1fr;
  }
  .shop-list-page .sort-button,
  .shop-list-page .create-store-button {
    width: 100%;
    min-height: 44px;
  }
  .shop-list-page .search-bar {
    height: 54px;
    border-radius: 14px;
    padding: 0 16px;
  }
  .shop-list-page .filters-row {
    min-height: 66px;
    gap: 8px;
  }
  .shop-list-page .chip {
    min-height: 34px;
    padding: 0 14px;
  }
  .shop-list-page .stores-section {
    padding: 28px 0 44px;
  }
  .shop-list-page .section-heading {
    gap: 10px;
  }
  .shop-list-page .section-heading h2,
  .shop-list-page .list-header h2 {
    font-size: 24px;
  }
  .shop-list-page .section-heading p,
  .shop-list-page .list-header p {
    font-size: 16px;
  }
  .shop-list-page .top-grid,
  .shop-list-page .stores-grid {
    grid-template-columns: 1fr;
  }
  .shop-list-page .top-layout {
    gap: 18px;
    margin-bottom: 34px;
  }
  .shop-list-page .store-card,
  .shop-list-page .stores-grid .store-card {
    padding: 16px;
    border-width: 1px;
    border-radius: 20px;
  }
  .shop-list-page .store-logo {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    font-size: 10px;
  }
  .shop-list-page .store-title-row {
    flex-wrap: wrap;
  }
  .shop-list-page .store-title-row h3 {
    width: calc(100% - 36px);
    font-size: 17px;
  }
  .shop-list-page .top-badge {
    padding: 7px 12px;
    font-size: 12px;
  }
  .shop-list-page .store-stats {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }
  .shop-list-page .store-stats strong {
    font-size: 18px;
  }
  .shop-list-page .promo-card {
    border-radius: 22px;
    padding: 28px 22px;
  }
  .shop-list-page .promo-label {
    margin-bottom: 24px;
    font-size: 13px;
  }
  .shop-list-page .promo-card h2 {
    font-size: 28px;
  }
  .shop-list-page .promo-card p {
    font-size: 16px;
  }
  .shop-list-page .gift-button {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    font-size: 17px;
  }
  .shop-list-page .pagination {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
  }
}

@media (max-width: 390px) {
  .shop-list-page .hero-content h1 {
    font-size: 29px;
  }
  .shop-list-page .store-card,
  .shop-list-page .stores-grid .store-card {
    gap: 12px;
    padding: 14px;
  }
  .shop-list-page .store-logo {
    width: 58px;
    height: 58px;
  }
}
