/* ============================================
   SALES PAGE (Акции)
   Scoped styles (do not affect other pages)
   ============================================ */

.sales-page {
  padding-top: 24px;
  padding-bottom: 60px;
}

.sales-page .blog-hero {
  padding: 25px 0 20px 0;
}

.sales-page .sales-hero {
  padding: 25px 0 20px 0;
}

/* Breadcrumbs */
.sales-page .blog-breadcrumbs {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: rgba(32, 32, 32, 0.5);
  margin-bottom: 28px;
}

.sales-page .blog-breadcrumbs a {
  color: rgba(32, 32, 32, 0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.sales-page .blog-breadcrumbs a:hover {
  color: var(--color-accent-orange);
}

.sales-page .blog-breadcrumbs__current {
  color: var(--color-text);
}

.sales-page .sales-breadcrumbs {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: rgba(32, 32, 32, 0.5);
  margin-bottom: 28px;
}

.sales-page .sales-breadcrumbs a {
  color: rgba(32, 32, 32, 0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.sales-page .sales-breadcrumbs a:hover {
  color: var(--color-accent-orange);
}

.sales-page .sales-breadcrumbs__current {
  color: var(--color-text);
}

/* Sale detail (image + action buttons + offer info) */
.sales-page .sales-offer-detail {
  padding: 10px 0 70px;
}

.sales-page .sales-offer-detail__grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 21px;
  align-items: start;
}

.sales-page .sales-offer-detail__media {
  position: sticky;
  top: 160px;
}

.sales-page .sales-offer-detail__image {
  width: 100%;
  aspect-ratio: 110 / 91; /* 440x364 */
  overflow: hidden;
}

.sales-page .sales-offer-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sales-page .sales-offer-detail__actions {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.sales-page .sales-offer-detail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  border: 1px solid #202020 !important;
}

.sales-page .sales-offer-detail__btn--blur {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.sales-page .sales-offer-detail__title {
  margin: 0 0 25px;
  font-family: "Forum", var(--font-heading), serif;
  font-weight: 400;
  font-size: 52px;
  line-height: 1.1; /* 110% */
  letter-spacing: -0.02em; /* -2% */
  color: var(--color-text);
}

.sales-page .sales-offer-detail__prices {
  margin-bottom: 18px;
  font-family: "Open Sans", var(--font-body), sans-serif;
  font-weight: 400;
  line-height: 1.3; /* 130% */
  color: rgba(32, 32, 32, 0.75);
}

.sales-page .sales-offer-detail__price-row {
  display: flex;
  gap: 6px;
  width: fit-content;
}

.sales-page .sales-offer-detail__price-row--new {
  font-size: 18px;
  letter-spacing: -0.02em; /* -2% */
}

.sales-page .sales-offer-detail__price-row--old {
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: -0.02em; /* -2% */
  opacity: 0.55;
  position: relative;
}

.sales-page .sales-offer-detail__price-row--old::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: currentColor;
  transform: translateY(-50%);
  pointer-events: none;
}

.sales-page .sales-offer-detail__section {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 20px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid rgba(32, 32, 32, 0.12);
}

.sales-page .sales-offer-detail__section--list-last {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(32, 32, 32, 0.12);
}

.sales-page .sales-offer-detail__important {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(32, 32, 32, 0.12);
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 20px;
  align-items: start;
}

.sales-page
  .sales-offer-detail__important
  .sales-offer-detail__section-body
  p:last-child {
  margin-bottom: 0;
}

.sales-page .sales-offer-detail__section-title {
  font-family: "Forum", var(--font-heading), serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.1; /* 110% */
  letter-spacing: -0.02em; /* -2% */
  color: rgba(32, 32, 32, 0.95);
}

.sales-page .sales-offer-detail__section-body {
  font-family: "Open Sans", var(--font-body), sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3; /* 130% */
  letter-spacing: -0.02em; /* -2% */
  /* color: rgba(32, 32, 32, 0.75); */
  color: #202020;
}

.sales-page .sales-offer-detail__section-body p:last-child {
  margin-bottom: 0;
}

.sales-page .sales-offer-detail__section-body strong,
.sales-page .sales-offer-detail__section-body b {
  font-family: "Open Sans", var(--font-body), sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4; /* 140% */
  letter-spacing: -0.02em; /* -2% */
}

.sales-page .sales-offer-detail__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sales-page .sales-offer-detail__list-item {
  padding: 11px 0;
  border-bottom: 1px solid rgba(32, 32, 32, 0.12);
  font-family: "Open Sans", var(--font-body), sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3; /* 130% */
  letter-spacing: -0.02em; /* -2% */
  /* color: rgba(32, 32, 32, 0.75); */
  color: #202020;
}

.sales-page .sales-offer-detail__list-item:last-child {
  border-bottom: 0;
}

/* Backward-compat (if old markup remains somewhere) */
.sales-page .sales-offer-detail__rows {
  border-top: 1px solid rgba(32, 32, 32, 0.12);
}

.sales-page .sales-offer-detail__row {
  padding: 11px 0;
  border-bottom: 1px solid rgba(32, 32, 32, 0.12);
  font-family: "Open Sans", var(--font-body), sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3; /* 130% */
  letter-spacing: -0.02em; /* -2% */
  color: rgba(32, 32, 32, 0.75);
}

/* "Other offers" section on sales detail page */
.sales-page .sales-more-offers {
  padding: 70px 0 0;
}

.sales-page .sales-more-offers .sales-card__icon {
  top: 20px;
  right: 20px;
  height: 10px;
  width: 10px;
}

.sales-page .sales-more-offers__head {
  margin-bottom: 22px;
}

.sales-page .sales-more-offers__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.sales-page .sales-more-offers__grid .sales-card {
  aspect-ratio: 32 / 35; /* 256x280 */
  --sales-card-gradient: linear-gradient(
    179.72deg,
    rgba(46, 87, 203, 0) 30.94%,
    #2e57cb 96.32%
  );
}

.sales-page .sales-more-offers__grid .sales-card::after {
  height: 75%;
}

.sales-page .sales-more-offers__action {
  margin-top: 20px;
}

.sales-page .doctor-specialists {
  background: #f8f7f3;
  padding: 70px 0;
}

/* Title & subtitle */
.sales-page .blog-page-title {
  margin: 0 0 15px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
}

.sales-page .blog-page-subtitle {
  margin: 0 auto 18px;
  max-width: 720px;
  font-family: "Open Sans", var(--font-body), sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.35;
  color: rgba(32, 32, 32, 0.75);
  text-align: center;
}

/* Tabs */
.sales-page .blog-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.sales-page .blog-tabs__tab {
  appearance: none;
  width: 180px;
  border: none;
  border-bottom: 1px solid rgba(32, 32, 32, 0.5);
  background: transparent;
  color: rgba(32, 32, 32, 0.5);
  border-radius: 0;
  padding: 12px 10px;
  font-family: "Forum", var(--font-heading), serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.sales-page .blog-tabs__tab:hover {
  border-bottom-color: rgba(32, 32, 32, 0.7);
  color: rgba(32, 32, 32, 0.7);
}

.sales-page .blog-tabs__tab.active {
  border-bottom-color: rgba(32, 32, 32, 0.95);
  color: rgba(32, 32, 32, 0.95);
}

/* Content */
.sales-page .blog-content {
  padding-top: 20px;
}

.sales-page .blog-content-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.sales-page .blog-content-controls__spacer {
  flex: 1 1 auto;
}

.sales-page .blog-cards-grid.clinics-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sales-page .blog-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: #f8f7f3;
  overflow: hidden;
}

.sales-page .blog-card__media {
  width: 100%;
  position: relative;
}

.sales-page .blog-card__image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: cover;
}

.sales-page .blog-card__body {
  padding: 30px 20px;
}

.sales-page .blog-card__meta {
  font-family: "Open Sans", var(--font-body), sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: rgba(32, 32, 32, 0.6);
  margin: 0 0 20px;
}

.sales-page .blog-card__title {
  margin: 0 0 10px;
  font-family: "Forum", var(--font-heading), serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.sales-page .blog-card__text {
  margin: 0;
  font-family: "Open Sans", var(--font-body), sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: rgba(32, 32, 32, 0.75);
}

/* Sales cards */
.sales-page .sales-card {
  --sales-card-gradient: linear-gradient(
    179.72deg,
    rgba(153, 129, 88, 0) 30.94%,
    #998158 96.32%
  );
  position: relative;
  display: block;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  aspect-ratio: 11 / 7;
  transform: translateZ(0);
}

.sales-page .sales-card--grad-1 {
  --sales-card-gradient: linear-gradient(
    179.72deg,
    rgba(153, 129, 88, 0) 30.94%,
    #998158 96.32%
  );
}

.sales-page .sales-card--grad-2 {
  --sales-card-gradient: linear-gradient(
    179.72deg,
    rgba(46, 87, 203, 0) 30.94%,
    #2e57cb 96.32%
  );
}

.sales-page .sales-card--grad-3 {
  --sales-card-gradient: linear-gradient(
    179.72deg,
    rgba(68, 62, 158, 0) 30.94%,
    #443e9e 96.32%
  );
}

.sales-page .sales-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
}

.sales-page .sales-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 65%;
  background: var(--sales-card-gradient);
  pointer-events: none;
  transition: height 220ms ease;
}

.sales-page .sales-card__icon {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 2;
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 220ms ease;
}

.sales-page .sales-card__icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.sales-page .sales-card:hover .sales-card__icon {
  transform: rotate(45deg) scale(1.25);
}

.sales-page .sales-card:hover::after {
  height: 100%;
}

.sales-page .sales-card__content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  z-index: 2;
}

.sales-page .sales-card__price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 15px;
  border: 1px solid #ffffff80;
  background: #ffffff26;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: #fff;
  font-family: "Open Sans", var(--font-body), sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3; /* 130% */
  letter-spacing: 0;
  margin: 0 0 18px;
}

.sales-page .sales-card__title {
  margin: 0;
  font-family: "Forum", var(--font-heading), serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.1; /* 110% */
  letter-spacing: -0.02em; /* -2% */
  color: #fff;
}

/* Pagination */
.sales-page .blog-pagination {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sales-page .blog-pagination__pages {
  display: flex;
  align-items: center;
  gap: 1px;
}

.sales-page .blog-pagination__arrow {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  color: rgba(32, 32, 32, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sales-page .blog-pagination__page {
  font-family: "Open Sans", var(--font-body), sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0;
  color: rgba(32, 32, 32, 0.85);
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  border-radius: 5px;
  padding: 0 8px;
  background: transparent;
  transition: background var(--transition-fast);
}

.sales-page .blog-pagination__page:hover,
.sales-page .blog-pagination__page.active {
  background: rgba(32, 32, 32, 0.05); /* #2020200D */
}

.sales-detail-page .sales-card__title {
  margin: 0;
  font-family: "Forum", var(--font-heading), serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1200px) {
  .sales-page .blog-cards-grid.clinics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sales-page .sales-more-offers__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1199px) {
  .sales-page .sales-offer-detail__section {
    grid-template-columns: 200px 1fr;
  }

  .sales-page .sales-offer-detail__important {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 991px) {
  .sales-page .sales-offer-detail__grid {
    grid-template-columns: 300px 1fr;
  }

  .sales-page .sales-offer-detail__section,
  .sales-page .sales-offer-detail__important {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sales-page .sales-offer-detail__title {
    font-size: 42px;
  }

  .sales-page .sales-more-offers__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .sales-page .sales-offer-detail__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .sales-page .sales-offer-detail__media {
    position: static;
    top: auto;
  }

  .sales-page .sales-offer-detail__actions .sales-offer-detail__btn {
    width: fit-content !important;
    max-width: 100%;
  }

  .sales-page .sales-offer-detail__title {
    font-size: 28px;
    font-family: "Forum", var(--font-heading), serif;
    font-weight: 400;
    line-height: 0.9; /* 90% */
    letter-spacing: -0.02em; /* -2% */
    margin-bottom: 15px;
  }

  .sales-page .sales-offer-detail__price-row--new {
    font-size: 14px;
    line-height: 1.3; /* 130% */
    letter-spacing: -0.02em; /* -2% */
  }

  .sales-page .sales-offer-detail__price-row--old {
    font-size: 12px;
    line-height: 1.3; /* 130% */
    letter-spacing: -0.02em; /* -2% */
    position: relative;
  }

  .sales-page .sales-offer-detail__section {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sales-page .sales-offer-detail__section-title {
    font-family: "Forum", var(--font-heading), serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.1; /* 110% */
    letter-spacing: -0.02em; /* -2% */
  }

  .sales-page .sales-offer-detail__section-body {
    font-family: "Open Sans", var(--font-body), sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.3; /* 130% */
    letter-spacing: -0.02em; /* -2% */
  }

  .sales-page .sales-offer-detail__important {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sales-page .blog-page-title {
    font-size: 34px;
    text-align: left;
  }

  .sales-page .blog-page-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    font-size: 14px;
  }

  .sales-page .blog-content-controls {
    margin-bottom: 10px;
  }

  .sales-page .blog-cards-grid.clinics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sales-page .sales-more-offers__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sales-page .sales-card__content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .sales-page .sales-card__price {
    padding: 9px 14px;
    margin-bottom: 14px;
  }

  .sales-page .sales-card__title {
    font-size: 20px;
  }

  .sales-page .blog-tabs__tab {
    width: 180px;
  }

  .sales-page .sales-offer-detail {
    padding: 10px 0 50px;
  }

  .sales-page .doctor-specialists {
    padding: 50px 0;
  }

  .sales-page .sales-more-offers {
    padding: 50px 0 0;
  }

  .sales-more-offers .section-title {
    font-size: 28px;
  }
}

@media (max-width: 575px) {
  .sales-page .blog-page-title {
    font-size: 28px;
  }

  .sales-page .blog-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    gap: 10px;
  }

  .sales-page .blog-tabs__tab {
    width: 100%;
  }

  .sales-page .sales-more-offers__grid {
    grid-template-columns: 1fr;
  }

  .sales-page .sales-card {
    aspect-ratio: 29 / 16;
  }

  .sales-page .sales-card__icon {
    top: 15px;
    right: 15px;
    width: 10px;
    height: 10px;
  }

  .sales-page .sales-card__content {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }

  .sales-page .sales-card__price {
    font-size: 12px;
    line-height: 1.3; /* 130% */
    padding: 5px 12px;
    margin-bottom: 12px;
  }

  .sales-page .sales-card__title {
    font-size: 16px;
    line-height: 1.1; /* 110% */
    letter-spacing: -0.02em; /* -2% */
  }

  .sales-page .blog-cards-grid.clinics-grid {
    gap: 10px;
  }

  .sales-page .blog-tabs__tab {
    width: 100%;
    font-size: 16px;
    padding: 5px;
  }

  .sales-page .blog-card__meta {
    font-size: 10px;
    margin-bottom: 30px;
  }

  .sales-page .blog-card__body {
    padding: 15px;
  }

  .sales-page .blog-card__title {
    font-size: 16px;
  }

  .sales-page .blog-card__text {
    font-size: 10px;
  }

  .sales-page .blog-card {
    min-height: auto;
  }

  .sales-page .blog-content {
    padding-bottom: 0;
  }

  .sales-page .blog-pagination__page {
    font-size: 12px;
    min-width: 27px;
    padding: 0 4px;
  }

  .sales-page .blog-pagination {
    gap: 5px;
  }

  .sales-page .blog-pagination__arrow {
    width: 14px;
  }

  .sales-page .sales-hero {
    padding: 0;
  }

  .sales-page .sales-offer-detail__actions .sales-offer-detail__btn,
  .sales-more-offers__action .btn {
    font-size: 12px;
    padding: 5px 16px;
  }

  .doctor-specialists-action,
  .sales-page .sales-more-offers__action {
    text-align: left !important;
  }

  .sales-page .sales-more-offers__grid .sales-card {
    aspect-ratio: 16 / 9;
  }

  .sales-detail-page .sales-card__icon {
    width: 10px;
    height: 10px;
  }

  .sales-page .sales-offer-detail__price-row--old {
    margin-top: 5px;
  }

  .sales-page .sales-offer-detail__section-body strong,
  .sales-page .sales-offer-detail__section-body b,
  .sales-page .sales-offer-detail__list-item {
    font-size: 12px;
  }

  .sales-page .sales-offer-detail__section-body br {
    display: none;
  }

  .sales-page .sales-offer-detail__section {
    padding-top: 15px;
    margin-top: 15px;
  }

  .sales-page .sales-offer-detail__list-item:last-child {
    padding-bottom: 0;
  }

  .sales-page .sales-offer-detail__important {
    padding: 20px 15px;
  }

  .sales-page .sales-more-offers__head {
    text-align: left !important;
  }

  .sales-page .sales-more-offers__head br {
    display: none;
  }

  .sales-page .sales-more-offers__grid {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sales-page .sales-card__icon {
    transition: none;
  }
  .sales-page .sales-card::after {
    transition: none;
  }
}
