.advent {
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 28px;
  padding: 34px 22px 18px;
  color: #fff;
  background: linear-gradient(180deg, #6d274c 0%, #4c1838 46%, #351228 100%);
  border-radius: 0;
  overflow: hidden;
  position: relative;
  top: -8px;
  border-top: 3px solid #ff8d00;
}

.advent-snow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.advent-snow span {
  position: absolute;
  top: -14%;
  color: #fff;
  line-height: 1;
  animation-name: advent-snow-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.advent-snow i {
  display: block;
  font-style: normal;
  animation: advent-snow-spin 4.8s ease-in-out infinite alternate;
}

@keyframes advent-snow-fall {
  0% { top: -14%; transform: translateX(0); }
  50% { transform: translateX(var(--drift, 12px)); }
  100% { top: 108%; transform: translateX(0); }
}

@keyframes advent-snow-spin {
  from { transform: rotate(-18deg); }
  to { transform: rotate(18deg); }
}

.advent-head,
.advent-carousel,
.advent-foot {
  position: relative;
  z-index: 1;
}

.advent-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  text-align: center;
}

.advent-head h2 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: .03em;
  text-align: center;
  text-transform: uppercase;
}

.advent-head h2::before {
  display: none;
}

.advent-head h2 span {
  color: #f0c14a;
}

.advent-lead {
  max-width: 620px;
  margin-top: 4px;
  color: rgba(255, 255, 255, .88);
  font-size: 15px;
  line-height: 1.45;
}

.advent-when {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.advent-when svg,
.advent-foot svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: rgba(255, 255, 255, .8);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.advent-head p,
.advent-foot,
.advent-finished {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}

.advent-copy {
  height: 36px;
  padding: 0 12px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  cursor: pointer;
}

.advent-finished {
  margin-bottom: 10px;
  color: #ffd27a;
  font-size: 18px;
  font-weight: 700;
}

.advent-board {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.advent-weekdays,
.advent-pad {
  display: none;
}

.advent-carousel {
  display: flex;
  align-items: center;
  gap: 4px;
}

.advent-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, .88);
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.advent-arrow::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.advent-arrow.is-next::before {
  transform: rotate(45deg);
}

.advent-arrow.is-prev::before {
  transform: rotate(-135deg);
}

.advent-arrow:hover {
  color: #fff;
  background: transparent;
}

.advent-arrow:disabled {
  opacity: .35;
  cursor: default;
}

.advent-viewport {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding: 36px 0;
  overflow: hidden;
}

.advent-track {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: transform .4s ease;
}

.advent-cell {
  position: relative;
  display: flex;
  flex: 0 0 132px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-sizing: border-box;
  width: 132px;
  min-width: 0;
  max-width: none;
  min-height: 0;
  padding: 8px;
  color: #fff;
  background: rgba(36, 10, 32, .42);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  cursor: pointer;
}

.advent-date {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  position: relative;
  top: 4px;
}

.advent-cell.is-today,
.advent-cell.is-opened {
  background: linear-gradient(180deg, #e7a03a 0%, #8d4c24 34%, #2c121c 100%);
  border-color: #ffb13a;
  box-shadow: 0 0 0 1px rgba(255, 186, 70, .35), 0 0 18px rgba(255, 150, 32, .55);
}

.advent-shape {
  position: relative;
  display: block;
  width: 75px;
  max-width: 75px;
  filter: none;
  transition: transform .28s ease;
}

.advent-cell:hover .advent-shape {
  transform: scale(1.07);
}

.advent-shape img {
  display: block;
  width: 75px;
  height: 75px;
  max-width: 75px;
  object-fit: contain;
  transform-origin: center center;
}

.advent-cell.is-cat .advent-num {
  top: 25%;
}

.advent-cell.is-gift .advent-num {
  top: 58%;
}

.advent-cell.is-future .advent-shape {
  filter: none;
}

.advent-cell.is-future .advent-num,
.advent-cell.is-today .advent-num,
.advent-cell.is-opened .advent-num {
  display: none;
}

.advent-cell.is-past .advent-shape {
  filter: brightness(0.6) grayscale(.3);
}

.advent-cell.is-past .advent-num {
  display: none;
}
button.advent-cell.is-past {
  filter: grayscale(1);
}
.advent-num {
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}
.advent-caption {
  width: 100%;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
}

.advent-cell.is-today .advent-shape,
.advent-cell.is-opened .advent-shape {
  filter: none;
}

.advent-cell.is-today .advent-caption,
.advent-cell.is-opened .advent-caption {
  color: #fff;
  font-weight: 700;
}

.advent-cell.is-opening {
  z-index: 2;
}

.advent-cell.is-opening .advent-shape {
  animation: advent-burst .72s ease;
}

.advent-cell.is-opening .advent-shape::before,
.advent-cell.is-opening .advent-shape::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  pointer-events: none;
}

.advent-cell.is-opening .advent-shape::before {
  box-shadow:
    -34px -18px 0 #ffe08a,
    28px -26px 0 #ffb03a,
    -18px 24px 0 #fff4c8,
    36px 12px 0 #ffd56a;
  animation: advent-sparks .78s ease-out forwards;
}

.advent-cell.is-opening .advent-shape::after {
  box-shadow: 0 0 0 0 rgba(255, 210, 90, .75);
  animation: advent-ring .78s ease-out forwards;
}

.advent-cell.is-shrinking .advent-shape img {
  animation: advent-shrink .32s ease-in forwards;
}

.advent-cell.is-dropping .advent-shape img {
  animation: advent-drop .55s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}

@keyframes advent-burst {
  0% { transform: scale(1); }
  28% { transform: scale(1.2) rotate(-6deg); filter: drop-shadow(0 0 26px rgba(255, 214, 90, 1)) brightness(1.45); }
  58% { transform: scale(.94) rotate(3deg); filter: drop-shadow(0 0 16px rgba(255, 160, 40, .95)); }
  100% { transform: scale(1) rotate(0); filter: drop-shadow(0 0 12px rgba(255, 146, 43, .85)); }
}

@keyframes advent-ring {
  0% { transform: scale(.4); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 210, 90, .8); }
  100% { transform: scale(1); opacity: 0; box-shadow: 0 0 0 36px rgba(255, 210, 90, 0); }
}

@keyframes advent-sparks {
  0% { transform: scale(.2); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes advent-shrink {
  from { transform: scale(1); }
  to { transform: scale(0); }
}

@keyframes advent-drop {
  0% { transform: scale(0); }
  62% { transform: scale(1.14); }
  82% { transform: scale(0.94); }
  100% { transform: scale(1); }
}

.advent-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 50px 0 0;
  text-align: center;
}

.advent-foot span {
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
}

.advent-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 14, .72);
  animation: advent-modal-fade .28s ease;
}

.advent-modal[hidden] {
  display: none;
}

body.advent-modal-open {
  overflow: hidden;
}

.advent-modal-card {
  position: relative;
  width: min(460px, 100%);
  padding: 28px 26px 24px;
  text-align: center;
  color: #f4f7fb;
  background: #101114;
  border: 1px solid #ff2a2a;
  border-radius: 18px;
  box-shadow: 0 0 18px rgba(255, 30, 40, .45), 0 24px 80px rgba(0, 0, 0, .5);
  animation: advent-modal-in .42s cubic-bezier(0.22, 1.15, 0.36, 1);
}

@keyframes advent-modal-fade {
  from { background: rgba(2, 6, 14, 0); }
  to { background: rgba(2, 6, 14, .72); }
}

@keyframes advent-modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.9); }
  to { opacity: 1; transform: none; }
}

.advent-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.advent-modal-mark img {
  width: 84px;
  height: auto;
}

.advent-modal-date {
  margin: 8px 0 0;
  color: #ff8f00;
  font-size: 14px;
}

.advent-modal-card h3 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
}

.advent-modal-discount {
  margin: 8px 0 0;
  color: #fff;
  font-size: 64px;
  font-weight: 800;
  line-height: .95;
  display: none;
}

.advent-modal-text,
.advent-modal-period,
.advent-code-hint {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  line-height: 1.45;
}

.advent-code {
  display: grid;
  grid-template-columns: 1fr max-content minmax(0, max-content) 1fr;
  column-gap: 10px;
  row-gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 10px;
  text-align: center;
  border: 1px dashed rgba(255, 70, 70, .75);
  border-radius: 10px;
}

.advent-code span {
  grid-column: 2;
  grid-row: 1;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
}

.advent-code b {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: .04em;
  text-align: left;
  overflow-wrap: anywhere;
}

.advent-code .advent-copy {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  width: auto;
}

.advent-modal-go {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 18px;
  color: #fff;
  background: #e10600;
  border-radius: 8px;
  box-shadow: 0 0 14px rgba(255, 30, 40, .4);
  font-weight: 700;
  text-decoration: none;
}
.advent-modal-body {
  padding-bottom: 10px;
}
.advent-modal-go:hover,
.advent-modal-go:focus {
  color: #fff;
  background: #ff2a2a;
}

.advent-teaser .advent-product-heading {
  font-weight: 700;
  white-space: normal;
}

.advent-teaser p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .85);
  font-size: 14px;
  line-height: 1.4;
}

.advent-teaser-go {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px 10px;
  color: #fff;
  background: #af0000;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.advent-teaser-go:hover,
.advent-teaser-go:focus {
  color: #fff;
  background: #c40000;
  text-decoration: none;
}

.advent-product-banner {
  position: relative;
  width: 100%;
  margin: 20px 0 15px;
  padding: 25px;
  color: #fff;
  background: #1c1c1c;
  border-radius: 10px;
}

.advent-product-badge {
  position: absolute;
  top: -14px;
  left: 10px;
  z-index: 1;
  padding: 4px 10px;
  color: #fff;
  background: #000;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}

.advent-product-badge span {
  background: linear-gradient(90deg, #df3a39, #6b5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.advent-product-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.advent-product-heading {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  white-space: nowrap;
}

.advent-product-code {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.advent-product-code .fa-copy,
.advent-product-code .fa-check-circle {
  font-size: 18px;
}

.advent-product-code .fa-check-circle {
  color: #1dd41d;
}

.advent-product-price {
  box-sizing: border-box;
  width: 100%;
  margin-top: 10px;
  padding: 5px 10px;
  color: #fff;
  background: #af0000;
  border-radius: 7px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.advent-product-note {
  margin: 14px 0 0;
  font-size: 1.2rem;
}

.advent-timer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  margin-top: 14px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.advent-cd-unit {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.advent-cd-unit b {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.advent-cd-unit i,
.advent-timer i {
  display: block;
  margin-top: 5px;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
}

.advent-cd-sep {
  padding-bottom: 16px;
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 1180px) {
  .advent-product-price {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .advent-product-heading {
    gap: 5px;
    font-size: 18px;
  }

  .advent-cd-unit b {
    font-size: 24px;
  }
}
p.advent-lead {
  color: rgb(255, 210, 122);
}

@media (min-width: 1024px) {
  .advent {
    height: auto;
    padding: 36px 28px 20px;
  }
  .advent-arrow { display: none; }
  .advent-carousel { display: block; }
  .advent-board {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
  }
  .advent-pad { display: block; }
  .advent-weekdays { display: none; }
  .advent-track {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin: 0;
    transform: none;
  }
  .advent-viewport {
    width: auto;
    flex: none;
    padding: 0;
    overflow: visible;
  }
  button.advent-cell {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: none;
  }
}

@media (max-width: 900px) {
  .advent {
    height: auto;
    min-height: 0;
    padding: 28px 12px 18px;
  }
  .advent-head h2 { font-size: 22px; }
  .advent-arrow { flex-basis: 36px; width: 36px; }
  .advent-arrow::before { width: 14px; height: 14px; border-width: 3px; }
}

@media (max-width: 560px) {
  .advent { padding: 22px 4px 18px; }
  .advent-head { margin-bottom: 8px; gap: 6px; padding: 0 22px; }
  .advent-lead { font-size: 13px; line-height: 1.35; }
  .advent-carousel { position: relative; gap: 0; }
  .advent-viewport { width: 100%; padding: 26px 0; }
  .advent-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 28px;
    height: 44px;
    margin: 0;
    transform: translateY(-50%);
  }
  .advent-arrow.is-prev { left: 10px; }
  .advent-arrow.is-next { right: 10px; }
  .advent-arrow::before { width: 14px; height: 14px; border-width: 3px; }
  .advent-cell,
  .advent-cell.is-today,
  .advent-cell.is-opened { gap: 0; min-height: 0; padding: 8px; }
  .advent-foot {
    margin-top: 14px;
    padding: 0 12px;
  }
  .advent-foot span {
    max-width: none;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
  }
  .advent-num { font-size: 16px; }
  .advent-modal-discount { font-size: 48px; }
}
