/* ============================================================
   СЕКЦИЯ "Пакеты и цены" id="packages" — тарифные карточки (.package-card, .pc-*), таймер акции (.promo-countdown), подсказка (.service-tip).
   ============================================================ */

.service-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: calc(100% - 20px);
  margin: 0 auto var(--gap-lg);
  padding: 10px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 16, 32, 0.7), rgba(10, 8, 18, 0.75));
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 18px rgba(255, 184, 48, 0.08);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  text-align: center;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 680px;
  margin: 0 auto;
}

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 16px 18px;
  border-radius: var(--r-lg);
  text-decoration: none;
  background: linear-gradient(180deg, rgba(24, 18, 36, 0.78), rgba(12, 8, 20, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}

.package-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 184, 48, 0.3);
}

.package-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(90deg, transparent 0%, transparent 42%, rgba(255, 255, 255, 0.18) 50%, transparent 58%, transparent 100%);
  background-size: 220% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderReveal 9s linear infinite;
}

.package-card.pc-premium {
  background: linear-gradient(180deg, rgba(30, 20, 10, 0.82), rgba(18, 12, 6, 0.86) 45%, rgba(255, 184, 48, 0.14) 100%);
  border-color: rgba(255, 184, 48, 0.3);
}

.package-card.pc-full {
  background: linear-gradient(180deg, rgba(20, 10, 28, 0.82), rgba(12, 6, 18, 0.86) 55%, rgba(168, 85, 247, 0.1) 100%);
  border-color: rgba(168, 85, 247, 0.28);
}

.pc-badge-slot {
  height: 22px;
  margin-bottom: -19px;
  display: flex;
  justify-content: flex-end;
}

.pc-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pc-badge.gold {
  background: linear-gradient(90deg, rgba(255, 184, 48, 0.95), rgba(255, 140, 0, 0.95));
  color: #08040C;
  box-shadow: 0 2px 10px rgba(255, 184, 48, 0.3);
}

.pc-badge.pur {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.95), rgba(120, 50, 200, 0.95));
  color: #fff;
}

.pc-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
}

.pc-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-grow: 1;
}

.pc-list li {
  position: relative;
  padding-left: 14px;
  color: rgba(220, 210, 240, 0.86);
  font-size: 11.5px;
  line-height: 1.45;
}

.pc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.pc-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pc-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pc-price {
  color: var(--gold);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.pc-price.alt {
  color: var(--purple);
}

.pc-old {
  position: relative;
  color: rgba(255, 255, 255, 0.35);
  font-size: 14px;
  text-decoration: line-through;
}

.pc-arrow {
  color: var(--gold);
  font-size: 13px;
  flex-shrink: 0;
}

.pc-arrow.pur {
  color: var(--purple);
}

@media (min-width: 1024px) {
  .packages-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
    gap: 20px;
  }
  .package-card {
    padding: 26px 20px 22px;
  }
  .pc-title {
    font-size: 15px;
  }
  .pc-list li {
    font-size: 12.5px;
  }
  .pc-price {
    font-size: 21px;
  }
}

.promo-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  max-width: 640px;
  margin: 0 auto 28px;
  padding: 10px 20px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(20, 16, 32, 0.7), rgba(10, 7, 18, 0.8));
  border: 1px solid rgba(255, 184, 48, 0.12);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.promo-countdown::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--r-md);
  padding: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 184, 48, 0.15), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.promo-countdown__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold);
  white-space: nowrap;
}

.promo-countdown__label .icon {
  font-size: 13px;
}

.promo-countdown__timer {
  display: flex;
  align-items: center;
  gap: 2px;
}

.promo-countdown__unit {
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.promo-countdown__unit span {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  min-width: 22px;
  text-align: center;
}

.promo-countdown__unit small {
  font-size: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.3);
}

.promo-countdown__divider {
  color: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 300;
  padding: 0 1px;
}

@media (max-width: 640px) {
  .promo-countdown {
    padding: 8px 14px;
    gap: 8px 14px;
    margin-bottom: 20px;
  }
  .promo-countdown__label {
    font-size: 9px;
    letter-spacing: 0.5px;
    width: 100%;
    justify-content: center;
  }
  .promo-countdown__label .icon {
    font-size: 11px;
  }
  .promo-countdown__unit span {
    font-size: 15px;
    min-width: 18px;
  }
  .promo-countdown__unit small {
    font-size: 7px;
  }
  .promo-countdown__slots {
    padding-left: 10px;
    border-left: none;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    justify-content: center;
  }
  .promo-countdown__slots-text {
    font-size: 9px;
  }
  .promo-countdown__slots-number {
    font-size: 14px;
  }
  .promo-countdown__divider {
    font-size: 12px;
  }
}

@media (min-width: 1024px) {
  .promo-countdown {
    padding: 12px 28px;
    gap: 16px 28px;
  }
  .promo-countdown__unit span {
    font-size: 20px;
    min-width: 26px;
  }
  .promo-countdown__slots-number {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .pc-badge-slot {
    display: none !important;
  }
}

