.promo-block-section {
  background: #f9f9f9;
  overflow: hidden;
}

.promo-block {
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 32px 20px 32px;
  background: #f9f9f9;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #0c0c0c;
}

.promo-block *,
.promo-block *::before,
.promo-block *::after {
  box-sizing: border-box;
}

.promo-block__title {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 32px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
  color: #0c0c0c;
}

.promo-block__subtitle {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 500;
  color: #3d5ca8;
}

.promo-block__slider {
  position: relative;
  margin: 8px -28px 0;
}

.promo-block__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .promo-block__track {
    cursor: grab;
  }
}

.promo-block__track.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.promo-block__track::-webkit-scrollbar {
  display: none;
}

.promo-block__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.promo-block__slide picture {
  display: block;
}

.promo-block__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.promo-block__dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
}

.promo-block__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ccd8f7;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.promo-block__dot.is-active {
  background: #3d5ca8;
}

.promo-block__dots:has(.promo-block__dot:only-child) {
  visibility: hidden;
}

#promo-block .promo-block__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 32px 0 0;
  padding: 0;
}

.promo-block__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.promo-block__step:first-child {
  justify-self: start;
}

.promo-block__step:nth-child(2) {
  justify-self: center;
}

.promo-block__step:last-child {
  justify-self: end;
}

.promo-block__step-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ccd8f7;
}

.promo-block__step-ic svg {
  display: block;
  fill: #3d5ca8;
}

.promo-block__step-text {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  text-align: center;
  color: #0c0c0c;
}

.promo-block__cards {
  display: grid;
  grid-template-columns: 209fr 118fr;
  gap: 8px;
  margin-top: 24px;
}

.promo-block__sku {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 113px;
  margin: 0;
  padding: 8px 8px 8px;
  border: none;
  border-radius: 8px;
  background-color: #ccd8f7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' rx='8' fill='none' stroke='%23060c1e' stroke-width='2' stroke-dasharray='10 10'/%3E%3C/svg%3E");
  font-family: 'Montserrat', Arial, sans-serif;
  color: #0c0c0c;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

#allrecords .promo-block__sku,
#allrecords .promo-block__sku:visited,
#allrecords .promo-block__sku:hover,
#allrecords .promo-block__sku:active,
#allrecords .promo-block__sku:focus {
  color: #0c0c0c;
  text-decoration: none;
}

.promo-block__sku:hover {
  box-shadow: 0 4px 16px rgba(61, 92, 168, 0.12);
}

.promo-block__sku:active {
  transform: scale(0.98);
}

.promo-block__sku:focus-visible,
.promo-block__cta:focus-visible,
.promo-block__dot:focus-visible {
  outline: 2px solid #3d5ca8;
  outline-offset: 2px;
}

.promo-block__sku-label {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
}

.promo-block__sku-value {
  margin-top: 4px;
  font-size: 17px;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
  color: #1f1f1f;
}

.promo-block__sku-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.promo-block__sku-press {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  color: #3d5ca8;
  text-decoration: underline;
}

.promo-block__sku-order {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: #1f1f1f;
}

.promo-block__discount {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 113px;
  padding: 0 6px;
  border-radius: 8px;
  background: #fa002c;
  color: #fefefe;
  text-align: center;
}

.promo-block__discount-value {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
}

.promo-block__discount-text {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
}

.promo-block__action {
  position: relative;
}

.promo-block__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  margin: 24px 0 0;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  background: #ffc600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: #1f1f1f;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.promo-block__cta:hover {
  background: #f2bc00;
}

.promo-block__cta:active {
  transform: scale(0.99);
}

.promo-block__cta-default,
.promo-block__cta-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.promo-block__cta-ic {
  flex-shrink: 0;
  display: block;
  fill: currentColor;
}

.promo-block__cta-code {
  display: none;
}

.promo-block__cta.is-revealed {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect width='100%25' height='100%25' rx='8' fill='none' stroke='%233d5ca8' stroke-width='2' stroke-dasharray='10 10'/%3E%3C/svg%3E");
  color: #1f1f1f;
}

.promo-block__cta.is-revealed .promo-block__cta-default {
  display: none;
}

.promo-block__cta.is-revealed .promo-block__cta-code {
  display: flex;
}

.promo-block__cta-code-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #3d5ca8;
}

.promo-block__cta.is-revealed .promo-block__cta-ic {
  fill: #3d5ca8;
}

.promo-toast {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: calc(100% + 10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100vw - 40px);
  padding: 12px 18px;
  border-radius: 8px;
  background: #ffc600;
  box-shadow: 0 8px 24px rgba(12, 12, 12, 0.18);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
  color: #1f1f1f;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  pointer-events: none;
}

.promo-toast::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  margin-left: -7px;
  border: 7px solid transparent;
  border-top-color: #ffc600;
}

.promo-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
}

.promo-toast__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.promo-toast__sub {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.85;
}

.promo-toast__sub[hidden] {
  display: none;
}

.promo-toast__ic {
  flex-shrink: 0;
  display: block;
  fill: #1f1f1f;
}

@media screen and (max-width: 359px) {
  .promo-block__title {
    font-size: 28px;
  }

  .promo-block__discount-value {
    font-size: 28px;
  }

  .promo-block__cta-code-value {
    font-size: 17px;
  }

  .promo-block__step-text,
  .promo-block__sku-label {
    font-size: 14px;
  }

  .promo-block__sku-press {
    font-size: 14px;
  }

  .promo-block__sku-order {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-block__track {
    scroll-behavior: auto;
  }

  .promo-toast,
  .promo-toast.is-visible {
    transition: none;
  }
}
