/* promo-banner.css — «Дополнительные скидки по промокоду» (js/promo-banner.js).
   С 25.11.2026 вместо праздничной плашки: крупная выделенная полоса с большой
   кнопкой «Ввести промокод» (Alex: «сделай выделено, кнопку большую») и окно
   «Как получить промокод». Без бликов и анимаций. Цвета свои и одинаковые в
   тёмной и светлой теме. */

.d4y-promo[hidden], .d4y-promo-pop[hidden] { display: none !important; }

/* ── Полоса ─────────────────────────────────────────────────────────────── */
.d4y-promo {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 100%; max-width: 640px; box-sizing: border-box;
  margin: 0 auto 22px; padding: 14px 18px 16px;
  border-radius: 18px;
  border: 2px solid #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, .16), rgba(249, 115, 22, .10)), #111a2e;
  box-shadow: 0 14px 40px -22px rgba(245, 158, 11, .8);
  color: #fff; text-align: center; font-family: inherit;
}
.d4y-promo--section { margin-bottom: 28px; }
.d4y-promo-cap {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 19px; font-weight: 900; line-height: 1.25; color: #fde68a;
}
.d4y-promo-cap-ic { font-size: 22px; line-height: 1; }
.d4y-promo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; }
.d4y-promo-big {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 30px;
  border: 0; border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  color: #1f1300 !important; text-decoration: none !important;
  font: inherit; font-size: 19px; font-weight: 900; letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(249, 115, 22, .9);
}
.d4y-promo-big:hover { filter: brightness(1.06); }
.d4y-promo-big:focus-visible, .d4y-promo-hlink:focus-visible { outline: 3px solid #fde68a; outline-offset: 3px; }
.d4y-promo-big-arr { font-size: 24px; line-height: 1; }
.d4y-promo-hlink {
  padding: 6px 4px; border: 0; background: transparent;
  color: #fde68a; font: inherit; font-size: 15px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  min-height: 0 !important; min-width: 0 !important;
}
.d4y-promo-hlink:hover { color: #fff; }

/* Маленькая кнопка-ссылка у блока «Мы в соцсетях» (Alex 25.11.2026: «сделай
   маленькую, не так сильно заметно»). */
.d4y-promo.d4y-promo--small {
  max-width: none; margin: 4px auto 28px; padding: 0 16px;
  border: 0; background: none; box-shadow: none;
}
.d4y-promo-mini {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, .55);
  background: rgba(245, 158, 11, .08);
  color: #fcd34d !important; text-decoration: none !important;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.25;
}
.d4y-promo-mini:hover { background: rgba(245, 158, 11, .16); }
.d4y-promo-mini:focus-visible { outline: 3px solid #fde68a; outline-offset: 2px; }
.d4y-promo-mini-arr { font-size: 18px; line-height: 1; }
:root[data-theme="light"] .d4y-promo-mini { color: #b45309 !important; background: #fffbeb; border-color: #f59e0b; }

@media (max-width: 480px) {
  .d4y-promo { padding: 12px 12px 14px; border-radius: 16px; }
  .d4y-promo-cap { font-size: 17px; }
  .d4y-promo-row { flex-direction: column; gap: 4px; width: 100%; }
  .d4y-promo-big { width: 100%; font-size: 18px; }
}

/* ── Окно «Как получить промокод» ──────────────────────────────────────── */
.d4y-promo-pop {
  position: fixed; inset: 0; z-index: 10050;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 23, .6);
}
.d4y-promo-panel {
  position: relative;
  width: 100%; max-width: 480px; max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 26px 24px 22px;
  border-radius: 18px;
  border: 2px solid #f59e0b;
  background: #0f172a;
  color: #fff; text-align: left;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
  font-family: inherit;
}
.d4y-promo-panel:focus { outline: none; }
.d4y-promo-close {
  /* !important: interactive-feedback.css делает всем кнопкам position: relative. */
  position: absolute !important; top: 10px; right: 12px; left: auto; z-index: 2;
  display: flex; align-items: center; justify-content: center; padding: 0;
  width: 32px; height: 32px; min-width: 0 !important; min-height: 0 !important;
  border: 1px solid rgba(253, 230, 138, .5); border-radius: 50%;
  background: #0f172a; color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
}
.d4y-promo-close:hover { background: #1e293b; }
.d4y-promo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.d4y-promo-body { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.d4y-promo-ic { font-size: 30px; line-height: 1; }
.d4y-promo-title { font-size: 21px; font-weight: 900; line-height: 1.2; color: #fde68a; }
.d4y-promo-how { margin: 4px 0 0; font-size: 15px !important; line-height: 1.5; color: rgba(255, 255, 255, .9); }

.d4y-promo-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.d4y-promo-ways-t { margin-top: 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fde68a; text-align: center; }
.d4y-promo-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.d4y-promo-way {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 62px; padding: 8px 6px;
  border-radius: 12px; border: 1px solid rgba(245, 158, 11, .6);
  background: #1e293b; color: #fff !important;
  font: inherit; font-size: 14.5px; font-weight: 800; text-decoration: none !important;
  cursor: pointer;
}
.d4y-promo-way:hover, .d4y-promo-way.is-on { background: #273449; }
.d4y-promo-way.is-on { box-shadow: inset 0 0 0 1px #fbbf24; }
.d4y-promo-way:focus-visible, .d4y-promo-cta:focus-visible, .d4y-promo-ch:focus-visible { outline: 3px solid #fde68a; outline-offset: 2px; }
.d4y-promo-way-ic { font-size: 20px; line-height: 1; }
.d4y-promo-mail { font-size: 13px; text-align: center; color: rgba(255, 255, 255, .75); }
.d4y-promo-mail a { color: #fde68a !important; font-weight: 700; }

.d4y-promo-cta {
  display: block; width: 100%; text-align: center;
  padding: 13px 16px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, #fbbf24, #f97316); color: #1f1300 !important;
  font: inherit; font-weight: 900; font-size: 16.5px; text-decoration: none !important;
  cursor: pointer;
}
.d4y-promo-cta:hover { filter: brightness(1.06); }
.d4y-promo-cta:disabled { opacity: .7; cursor: default; }

/* Форма заявки на промокод. */
.d4y-promo-form[hidden] { display: none !important; }
.d4y-promo-form {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px; border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, .35); background: rgba(2, 6, 23, .5);
}
.d4y-promo-lbl { font-size: 13.5px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.d4y-promo-inp {
  width: 100%; box-sizing: border-box; padding: 10px 12px; margin-bottom: 4px;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25);
  background: #0a1426; color: #fff; font: inherit; font-size: 16px;
}
.d4y-promo-inp::placeholder { color: rgba(255, 255, 255, .45); }
.d4y-promo-inp:focus { outline: none; border-color: #fbbf24; }
.d4y-promo-inp:disabled { opacity: .6; }
.d4y-promo-chs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.d4y-promo-ch {
  flex: 1 1 auto; padding: 8px 10px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.d4y-promo-ch.is-on { background: #1e293b; border-color: #fbbf24; color: #fde68a; }
.d4y-promo-ch:disabled { opacity: .6; cursor: default; }
.d4y-promo-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.d4y-promo-fmsg { margin: 2px 0 0; min-height: 0; font-size: 14px !important; line-height: 1.4; }
.d4y-promo-fmsg:empty { display: none; }
.d4y-promo-fmsg.is-ok { color: #86efac; font-weight: 700; }
.d4y-promo-fmsg.is-err { color: #fca5a5; }
.d4y-promo-send { margin-top: 4px; }

@media (max-width: 420px) {
  .d4y-promo-panel { padding: 24px 16px 18px; }
  .d4y-promo-title { font-size: 19px; }
  .d4y-promo-way { font-size: 13.5px; }
}
