/* ==========================================================================
   Mega Discount Banner — яскравий блок знижки з таймером (блок 3)
   ========================================================================== */

.mega-discount-section {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 2rem auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

.mega-discount__content {
  background: linear-gradient(135deg, rgba(231, 30, 20, 0.85) 0%, rgba(255, 120, 0, 0.85) 100%);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 40px rgba(231, 30, 20, 0.3);
}

/* === BADGE === */

.mega-discount__badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

/* === TITLE === */

.mega-discount__title {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--color-white);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mega-discount__subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 2rem 0;
  line-height: 1.4;
}

/* === TIMER === */

.mega-discount__timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.mega-discount__digit-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.mega-discount__digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-white);
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
}

.mega-discount__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: lowercase;
}

.mega-discount__sep {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 0.25rem;
  align-self: flex-start;
  padding-top: 1rem;
}

/* === TODAY DATE === */

.mega-discount__today-date {
  display: inline-block;
  margin-left: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 1px;
}

/* === SCROLL BUTTON === */

.mega-discount__scroll-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  text-decoration: none;
  transition: background var(--transition-normal) ease,
              border-color var(--transition-normal) ease;
  min-height: 48px;
}

@media (hover: hover) and (pointer: fine) {
  .mega-discount__scroll-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
  }
}

.mega-discount__scroll-btn:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}

/* === TABLET === */

@media (width >= 768px) and (width < 1024px) {
  .mega-discount-section {
    padding: 0 1.5rem;
  }

  .mega-discount__content {
    padding: 2.5rem 1.5rem;
  }

  .mega-discount__title {
    font-size: 2.25rem;
  }

  .mega-discount__digit {
    min-width: 56px;
    height: 56px;
    font-size: 1.75rem;
  }
}

/* === MOBILE === */

@media (width < 768px) {
  .mega-discount-section {
    padding: 0 0.75rem;
    margin-bottom: 1.5rem;
  }

  .mega-discount__content {
    padding: 2rem 1rem;
    border-radius: 12px;
  }

  .mega-discount__badge {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
  }

  .mega-discount__title {
    font-size: 1.75rem;
  }

  .mega-discount__subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .mega-discount__digit {
    min-width: 48px;
    height: 48px;
    font-size: 1.5rem;
    border-radius: 10px;
  }

  .mega-discount__sep {
    font-size: 1.5rem;
    padding-top: 0.75rem;
  }

  .mega-discount__label {
    font-size: 0.7rem;
  }

  .mega-discount__scroll-btn {
    width: 100%;
    text-align: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    box-sizing: border-box;
    min-height: 52px;
  }
}

/* === VERY SMALL MOBILE === */

@media (width < 360px) {
  .mega-discount__content {
    padding: 1.5rem 0.75rem;
  }

  .mega-discount__title {
    font-size: 1.4rem;
  }

  .mega-discount__digit {
    min-width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}

/* === iOS Safari === */

@supports (-webkit-touch-callout: none) {
  .mega-discount__content {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

/* === FALLBACK === */

@supports not (backdrop-filter: blur(10px)) {
  .mega-discount__content {
    background: linear-gradient(135deg, rgba(231, 30, 20, 0.95) 0%, rgba(255, 120, 0, 0.95) 100%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* === REDUCED MOTION === */

@media (prefers-reduced-motion: reduce) {
  .mega-discount__scroll-btn {
    transition: none;
  }
}
