/* ═══════════════════════════════════════════════
   МВ Печать — Оффер «−30% на первый заказ»
   Подключи: <link rel="stylesheet" href="offer.css">
   ═══════════════════════════════════════════════ */

@keyframes offerPulse {
  0%, 100% { box-shadow: 0 16px 40px rgba(224, 80, 16, 0.32); }
  50%      { box-shadow: 0 16px 48px rgba(224, 80, 16, 0.46); }
}

.offer-host {
  position: relative;
}

/* ── Базовая карточка (десктоп, у заголовка) ── */
.offer-card {
  position: absolute; top: 4px; right: 0;
  width: 196px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: linear-gradient(150deg, #ff9d54, #e0501a);
  border-radius: 22px;
  padding: 20px 20px 18px;
  box-shadow: 0 16px 40px rgba(224, 80, 16, 0.32);
  z-index: 6;
  animation: offerPulse 3.2s ease-in-out infinite;
  transition:
    opacity .22s cubic-bezier(.22, 1, .36, 1),
    transform .22s cubic-bezier(.22, 1, .36, 1),
    box-shadow .22s cubic-bezier(.22, 1, .36, 1);
}

.home-hero-section .offer-card {
  top: 54px;
  right: var(--container-pad, 24px);
}

.info-hero .offer-card,
.articles-hero .offer-card {
  top: 0;
  right: 0;
}

.seo-hero .offer-card {
  top: 4px;
  right: 0;
}

.inner-hero-section .hero-title-grid > .hero-lead {
  align-self: start;
  transform: translateY(196px);
}

.offer-card-badge {
  font-size: 9.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.24);
  color: #fff; padding: 5px 10px;
  border-radius: 999px; margin-bottom: 10px;
}
.offer-card-percent {
  font-size: 46px; font-weight: 900;
  letter-spacing: -0.045em; line-height: 0.85;
  color: #fff;
}
.offer-card-sub {
  font-size: 13px; font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
  margin: 2px 0 14px;
}
.offer-card-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 38px;
  background: #fff; border: 0; border-radius: 999px;
  color: #e0501a; font-size: 12px; font-weight: 800;
  cursor: pointer; font-family: inherit;
  transition: transform .18s;
}
.offer-card-btn:hover { transform: translateY(-1px); }

.offer-card.offer-floating {
  z-index: 1500;
}

/* ── Мини-плашка при скролле (десктоп) ── */
.offer-card.offer-mini {
  position: fixed; top: 18px; right: 22px;
  width: auto; flex-direction: row; align-items: center; gap: 10px;
  padding: 9px 16px 9px 14px;
  border-radius: 999px;
  animation: none;
  z-index: 1500;
}
.offer-card.offer-mini .offer-card-badge  { display: none; }
.offer-card.offer-mini .offer-card-body   { display: flex; align-items: baseline; gap: 6px; }
.offer-card.offer-mini .offer-card-percent{ font-size: 19px; }
.offer-card.offer-mini .offer-card-sub    { font-size: 11.5px; margin: 0; }
.offer-card.offer-mini .offer-card-btn    { width: auto; height: 32px; padding: 0 14px; font-size: 11px; }

/* ── Мобайл: прилипает к низу экрана ── */
@media (max-width: 1180px) {
  .offer-card,
  .offer-card.offer-mini {
    position: fixed; left: 12px; right: 12px; bottom: 12px; top: auto;
    width: auto; flex-direction: row; align-items: center; gap: 14px;
    margin: 0; padding: 14px 18px;
    border-radius: 20px;
    z-index: 1500;
    animation: none;
  }

  body.has-visible-cookie .offer-card.offer-floating {
    top: max(12px, env(safe-area-inset-top));
    bottom: auto;
  }

  .home-hero-section .offer-card,
  .inner-hero-section .offer-card,
  .info-hero .offer-card,
  .articles-hero .offer-card,
  .seo-hero .offer-card {
    top: auto;
    right: 12px;
  }

  body.has-visible-cookie .home-hero-section .offer-card.offer-floating,
  body.has-visible-cookie .inner-hero-section .offer-card.offer-floating,
  body.has-visible-cookie .info-hero .offer-card.offer-floating,
  body.has-visible-cookie .articles-hero .offer-card.offer-floating,
  body.has-visible-cookie .seo-hero .offer-card.offer-floating {
    top: max(12px, env(safe-area-inset-top));
  }

  .inner-hero-section .hero-title-grid > .hero-lead {
    transform: none;
  }

  .offer-card-badge   { display: none; }
  .offer-card-body    { display: flex; align-items: baseline; gap: 8px; flex: 1; }
  .offer-card-percent { font-size: 26px; }
  .offer-card-sub     { margin: 0; }
  .offer-card-btn     { width: auto; padding: 0 18px; flex-shrink: 0; }

  /* Освобождаем место снизу страницы под плашку */
  body { padding-bottom: 84px; }
}

@media (max-width: 480px) {
  .offer-card,
  .offer-card.offer-mini {
    gap: 10px;
    padding: 12px 14px;
  }

  .offer-card-percent { font-size: 23px; }
  .offer-card-sub { font-size: 12px; }
  .offer-card-btn {
    height: 36px;
    padding: 0 12px;
    font-size: 11px;
    white-space: nowrap;
  }
}

/* ── Плашка-оффер внутри формы обратной связи ── */
.form-offer-banner {
  margin: 18px 26px 0; padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff9040, #e0501a);
  display: flex; align-items: center; gap: 12px;
}
.form-offer-icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 13px; font-weight: 900; color: #fff;
}
.form-offer-title { font-size: 13.5px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.form-offer-sub   { font-size: 11.5px; color: rgba(255, 255, 255, 0.85); margin-top: 1px; }

@media (max-width: 480px) {
  .form-offer-banner {
    margin: 14px 18px 0;
  }
}
