.ShopPage {
  --page-bottom-pad: 72px;
  min-height: 100svh;
  padding: 160px 64px var(--page-bottom-pad);
  background: #ecece9;
  color: #191919;
}

.PageHeader {
  width: min(1280px, 100%);
  margin: 0 auto;
  text-align: center;
}

.PageHeader__title {
  margin: 0;
  padding: 0 12px 16px;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.4;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.ShopPage__anchors {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 34px;
  margin: 46px auto 0;
}

.ShopPage__anchors a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  font-size: 14px;
  letter-spacing: 0.07em;
  opacity: 0.72;
}

.ShopPage__anchors a.is-active {
  opacity: 1;
}

.StoreRows[hidden] {
  display: none !important;
}

.StoreRows {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.PageHeader + .StoreRows {
  margin-top: 72px;
}

.StoreRows + .StoreRows {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid rgba(25, 25, 25, 0.14);
}

.ShopPage.is-region-filtered .StoreRows {
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

.ShopPage.is-region-filtered .StoreRows.is-region-current {
  margin-top: 72px !important;
}

.StoreRow {
  position: relative;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 180px;
  align-items: start;
  gap: 24px;
  padding: 38px 0;
}

.StoreRow::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: calc(260px + 24px);
  border-bottom: 1px solid rgba(25, 25, 25, 0.14);
}

.StoreRows > .StoreRow:last-child::after {
  display: none;
}

.StoreRows:first-of-type .StoreRow:first-child,
.ShopPage.is-region-filtered .StoreRows.is-region-current .StoreRow:first-child {
  border-top: 1px solid rgba(25, 25, 25, 0.14);
}

.StoreRow__region {
  margin: 0;
  min-height: 1px;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0.05em;
  font-weight: 400;
}

.StoreRow__main {
  min-width: 0;
}

.StoreRow__title {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.StoreRow__main p {
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: rgba(25, 25, 25, 0.82);
}

.StoreRow__main a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.StoreRow__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  align-self: center;
  min-width: 146px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(25, 25, 25, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(25, 25, 25, 0.84);
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

@media (hover: hover) and (pointer: fine) {
  .StoreRow__more:hover {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(25, 25, 25, 0.24);
    color: rgba(25, 25, 25, 0.9);
  }

  .StoreRow__more:active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(25, 25, 25, 0.22);
  }
}

.StoreRow__more:focus-visible {
  outline: none;
  border-color: rgba(25, 25, 25, 0.28);
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 1100px) {
  .ShopPage {
    --page-bottom-pad: 56px;
    padding: 108px 24px var(--page-bottom-pad);
  }

  .PageHeader__title {
    padding: 0 10px 12px;
    font-size: 13px;
  }

  .ShopPage__anchors {
    margin-top: 30px;
    gap: 16px 24px;
  }

  .StoreRows + .StoreRows {
    margin-top: 22px;
    padding-top: 22px;
  }

  .PageHeader + .StoreRows,
  .ShopPage.is-region-filtered .StoreRows.is-region-current {
    margin-top: 44px !important;
  }

  .StoreRow {
    grid-template-columns: 180px minmax(0, 1fr);
    row-gap: 16px;
    padding: 30px 0;
  }

  .StoreRow::after {
    left: calc(180px + 24px);
  }

  .StoreRow__region {
    font-size: 15px;
  }

  .StoreRow__main p {
    font-size: 13px;
    line-height: 1.68;
  }

  .StoreRow__more {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .ShopPage {
    --page-bottom-pad: 46px;
    --shop-nav-offset: 56px;
    padding: 94px 20px var(--page-bottom-pad);
  }

  .ShopPage__anchors {
    width: 100%;
    margin-top: 24px;
    gap: 10px 18px;
  }

  .PageHeader + .StoreRows,
  .ShopPage.is-region-filtered .StoreRows.is-region-current {
    margin-top: 72px !important;
  }

  .StoreRows {
    scroll-margin-top: var(--shop-nav-offset);
  }

  .StoreRows + .StoreRows {
    margin-top: 34px;
    padding-top: 0;
    border-top: 0;
  }

  .StoreRow {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 34px 0 32px;
  }

  .StoreRow::after {
    left: 0;
  }

  .StoreRows:first-of-type .StoreRow:first-child,
  .ShopPage.is-region-filtered .StoreRows.is-region-current .StoreRow:first-child {
    border-top: 0;
  }

  .StoreRow__region {
    display: block;
    margin: 2px 0 4px;
    padding: 0 0 44px;
    border-bottom: 1px solid rgba(25, 25, 25, 0.14);
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-align: center;
  }

  .StoreRow__region:empty {
    display: none;
  }

  .StoreRow__main p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.72;
  }

  .StoreRow__more {
    grid-column: 1;
    justify-self: center;
    margin-top: 8px;
    min-width: 172px;
    height: 54px;
    padding: 0 24px;
    border-color: rgba(25, 25, 25, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(25, 25, 25, 0.84);
    font-size: 16px;
    text-decoration: none;
    box-shadow: none;
  }
}
