/* страница Интернет-магазин / Mbookshop */

.shop-page {
  padding-top: 20px;
}

.shop-page__title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 24px;
  max-width: none;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-brand);
}

.shop-page__title-rule {
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 1px;
  margin-top: calc((1lh - 1px) / 2);
  background-color: var(--c-brand);
}

.shop-page__heading {
  margin: 0 0 20px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  text-transform: uppercase;
  color: #33cfab;
}

.shop-intro__row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
}

.shop-intro__text p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--c-title);
}

.shop-intro__text p:last-child {
  margin-bottom: 0;
}

.shop-intro__mark {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-support {
  box-sizing: border-box;
  width: max-content;
  max-width: 100%;
  min-width: 270px;
  padding: 20px 22px;
  border-radius: 16px;
  background-color: #f0f0f0;
}

.shop-support__label,
.shop-support__phone {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--c-title);
  white-space: nowrap;
}

.shop-support__label {
  font-weight: 700;
}

.shop-support__phone {
  margin-top: 4px;
  font-weight: 400;
}

.shop-support__phone a {
  color: inherit;
  text-decoration: none;
}

.shop-support__phone a:hover,
.shop-support__phone a:focus-visible {
  color: var(--c-brand);
}

.shop-authors__text {
  margin: 0 0 12px;
  max-width: 920px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--c-title);
}

.shop-authors__text:last-of-type {
  margin-bottom: 20px;
}

.shop-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 920px;
}

.shop-benefits li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 22px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--c-title);
}

.shop-benefits li:last-child {
  margin-bottom: 0;
}

.shop-benefits li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--c-brand);
}

.shop-benefits__label {
  font-weight: 700;
  color: var(--c-brand);
}

.shop-editions {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(
    calc(var(--bs-gutter-x, 1.5rem) * 0.5),
    calc((100vw - var(--w-container)) / 2 + var(--bs-gutter-x, 1.5rem) * 0.5)
  );
  padding-right: max(
    calc(var(--bs-gutter-x, 1.5rem) * 0.5),
    calc((100vw - var(--w-container)) / 2 + var(--bs-gutter-x, 1.5rem) * 0.5)
  );
  background-color: #f5f5f5;
}

.shop-editions__text {
  margin: 0 0 20px;
  max-width: 920px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--c-title);
}

.shop-editions__list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 920px;
}

.shop-editions__list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 22px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--c-title);
}

.shop-editions__list li:last-child {
  margin-bottom: 0;
}

.shop-editions__list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--c-brand);
}

/* условия сотрудничества */

.shop-terms__lead {
  margin: 0 0 24px;
  max-width: 920px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--c-title);
}

.shop-start {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.shop-start__lead,
.shop-start__item {
  box-sizing: border-box;
  padding: 12px 18px;
  border: 1px solid var(--c-brand);
  border-radius: 16px;
  background-color: #ffffff;
}

.shop-start__lead {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shop-start__title {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--c-brand);
  text-transform: none;
}

.shop-start__text {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  color: var(--c-title);
}

.shop-start__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.shop-start__text a:hover,
.shop-start__text a:focus-visible {
  color: var(--c-brand);
}

.shop-start__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.shop-start__num {
  flex-shrink: 0;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  color: #33cfab;
}

.shop-start__item-text {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  color: var(--c-title);
}

.shop-terms__subtitle {
  margin: 36px 0 20px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: var(--c-brand);
  text-transform: none;
}

.shop-why {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  max-width: 920px;
}

.shop-why li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 22px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--c-title);
}

.shop-why li:last-child {
  margin-bottom: 0;
}

.shop-why li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--c-brand);
}

.shop-why__label {
  font-weight: 700;
  color: var(--c-brand);
}

.shop-terms__cta-text {
  margin: 0 0 8px;
  max-width: 920px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: var(--c-brand);
}

.shop-terms__contacts {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--c-title);
}

.shop-terms__contacts a {
  color: inherit;
  text-decoration: none;
}

.shop-terms__contacts a:hover,
.shop-terms__contacts a:focus-visible {
  color: var(--c-brand);
}

.shop-terms__btn-wrap {
  margin: 0;
  text-align: center;
}

.shop-terms__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 220px;
  padding: 14px 36px;
  border: 0;
  border-radius: 999px;
  background-color: var(--c-brand);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  transition: opacity 0.2s ease;
}

.shop-terms__btn:hover,
.shop-terms__btn:focus-visible {
  opacity: 0.9;
  color: #ffffff;
}

.shop-terms__btn:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 3px;
}

@media (min-width: 992px) {
  .shop-page {
    padding-top: 28px;
  }

  .breadcrumbs {
    margin-bottom: 28px;
  }

  .shop-page__title {
    margin-bottom: 28px;
    font-size: 28px;
  }

  .shop-page__title-rule {
    width: clamp(60px, 8vw, 110px);
    height: 3px;
    margin-top: calc((1lh - 3px) / 2);
  }

  .shop-page__heading {
    margin-bottom: 24px;
    font-size: 24px;
    line-height: 30px;
  }

  .shop-intro__row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 27px;
  }

  .shop-intro__text {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  .shop-support {
    flex: 0 0 auto;
    width: max-content;
    min-width: 290px;
    padding: 24px 28px;
  }

  .shop-authors,
  .shop-terms__lead {
    margin-bottom: 28px;
  }

  .shop-start {
    grid-template-columns: 1.15fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
  }

  .shop-start__lead {
    grid-row: 1 / -1;
    padding: 16px 26px;
  }

  .shop-start__title {
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 26px;
  }

  .shop-start__text {
    font-size: 16px;
    line-height: 24px;
  }

  .shop-start__item {
    align-items: center;
    padding: 12px 20px;
  }

  .shop-start__num {
    font-size: 40px;
  }

  .shop-start__item-text {
    font-size: 16px;
    line-height: 24px;
  }

  .shop-terms__subtitle {
    margin-top: 48px;
    margin-bottom: 24px;
    font-size: 20px;
    line-height: 26px;
  }

  .shop-terms__btn {
    min-width: 260px;
    padding: 16px 44px;
  }
}
