/* ============================================================
   MISA Taplink — «День бренда HELEO4™ + Dermadrop TDA™»
   Временный акционный блок. Управляется js/brand-day.js:
   окно показа ссылок 15.10.2026 00:01 — 16.10.2026 23:59 (МСК).
   ============================================================ */

:root {
  --bd-gold: #c8a56b;
  --bd-gold-deep: #8a6b3a;
  --bd-rose: #b98a7a;
  --bd-ink: #241f1a;
}

/* ── Оболочка блока ── */
.brand-day {
  position: relative;
  margin: 4px 0 18px;
  padding: 22px 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(200, 165, 107, 0.5);
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(200, 165, 107, 0.28), transparent 62%),
    radial-gradient(420px 260px at 0% 100%, rgba(185, 138, 122, 0.18), transparent 60%),
    linear-gradient(158deg, #fffdf9 0%, #fbf3e7 52%, #f6e9d7 100%);
  box-shadow:
    0 16px 40px rgba(138, 107, 58, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.9) inset;
  overflow: hidden;
}

.brand-day::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--bd-gold) 0%, var(--bd-rose) 100%);
}

/* ── Шапка блока ── */
.bd-head {
  text-align: center;
  padding: 0 4px;
}

.bd-kicker {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(200, 165, 107, 0.18);
  border: 1px solid rgba(200, 165, 107, 0.45);
  color: var(--bd-gold-deep);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bd-title {
  margin: 12px 0 0;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--bd-ink);
}

.bd-title__tm {
  font-size: 0.72em;
  font-weight: 700;
  vertical-align: 0.18em;
}

.bd-dates {
  display: block;
  margin-top: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--bd-gold-deep);
  letter-spacing: 0.01em;
}

.bd-lead {
  margin-top: 12px;
  font-size: 0.79rem;
  line-height: 1.6;
  color: #4f4638;
}

.bd-lead strong {
  font-weight: 700;
  color: var(--bd-ink);
}

.bd-note {
  margin-top: 8px;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #7c6b52;
}

/* ── Таймер ── */
.bd-timer {
  margin: 18px 0 4px;
  padding: 14px 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(200, 165, 107, 0.4);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.bd-timer__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bd-gold-deep);
}

.bd-count {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  margin-top: 10px;
}

.bd-count__cell {
  min-width: 52px;
  flex: 1 1 0;
  max-width: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 2px 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(200, 165, 107, 0.35);
  box-shadow: 0 3px 10px rgba(138, 107, 58, 0.08);
}

.bd-count__num {
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1;
  color: var(--bd-ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.bd-count__cap {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #91826a;
}

.bd-count__sep {
  align-self: center;
  padding-top: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(200, 165, 107, 0.75);
}

/* ── Главный CTA ── */
.bd-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid #241f1a;
  background: #241f1a;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(36, 31, 26, 0.22);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.bd-cta__em {
  font-size: 1.05rem;
}

.bd-cta:hover {
  transform: translateY(-1px);
  background: #3a322a;
  box-shadow: 0 14px 30px rgba(36, 31, 26, 0.28);
}

.bd-cta:active {
  transform: translateY(0);
}

/* ── Группы абонементов ── */
.bd-groups {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(200, 165, 107, 0.45);
}

.bd-groups__label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--bd-ink);
}

.bd-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(200, 165, 107, 0.14);
  border: 1px solid rgba(200, 165, 107, 0.38);
  font-size: 0.72rem;
  line-height: 1.5;
  color: #6d5c42;
}

.bd-status__ico {
  flex-shrink: 0;
  font-size: 0.95rem;
  line-height: 1;
}

.bd-status__text strong {
  font-weight: 700;
  color: var(--bd-gold-deep);
}

.bd-group {
  margin-top: 14px;
}

.bd-group__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bd-gold-deep);
}

.bd-group__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 165, 107, 0.5), rgba(200, 165, 107, 0));
}

.bd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.bd-offer {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  min-width: 0;
  min-height: 54px;
  padding: 10px 12px 11px;
  border-radius: 12px;
  border: 1px solid rgba(200, 165, 107, 0.45);
  background: #fff;
  color: var(--bd-ink);
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(138, 107, 58, 0.07);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.bd-offer:hover {
  transform: translateY(-1px);
  border-color: var(--bd-gold);
  box-shadow: 0 8px 18px rgba(138, 107, 58, 0.16);
}

.bd-offer:active {
  transform: translateY(0);
}

.bd-offer__t {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
}

.bd-offer__d {
  font-size: 0.64rem;
  font-weight: 500;
  color: #8b7c63;
  line-height: 1.3;
}

/* Цена */
.bd-offer__p {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.bd-offer__p b {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--bd-gold-deep);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bd-offer__p s {
  font-size: 0.66rem;
  font-weight: 500;
  color: #a99a83;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

/* Заблокированное состояние (до старта акции) */
.brand-day[data-bd-state="warmup"] .bd-offer {
  border-style: dashed;
  border-color: rgba(200, 165, 107, 0.55);
  background: rgba(255, 255, 255, 0.72);
  cursor: not-allowed;
}

/* Завершённое состояние */
.brand-day[data-bd-state="ended"] .bd-grid {
  opacity: 0.5;
}

.brand-day[data-bd-state="ended"] .bd-offer {
  pointer-events: none;
}

/* Тост-подсказка */
.bd-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 9999;
  max-width: min(440px, calc(100vw - 32px));
  transform: translate(-50%, 16px);
  padding: 12px 16px;
  border-radius: 14px;
  background: #241f1a;
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.bd-toast--on {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 360px) {
  .bd-count__cell { min-width: 0; }
  .bd-count__num { font-size: 1.2rem; }
  .brand-day { padding: 18px 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .bd-cta, .bd-offer, .bd-toast { transition: none; }
}
