/* ============================================
   ЯНДЕКС ПЛЮС — светлая тема
   Цвета точно по скринам Яндекс Плюс
   ============================================ */

:root {
  /* Backgrounds */
  --g-bg:              #F2F1F8;   /* светлый лавандово-серый */
  --g-surface:         #FFFFFF;   /* белые карточки          */
  --g-surface-h:       #F7F5FF;   /* hover карточек          */
  --g-surface-solid:   #FFFFFF;
  --g-surface-solid-h: #EEE9FB;
  --g-float:           #FFFFFF;   /* тосты                   */
  --g-float-h:         #F7F5FF;

  /* Brand / Purple Яндекс Плюс */
  --g-brand:    #7B2FBE;               /* фиолетовый            */
  --g-brand-h:  #6A1FA8;               /* темнее при hover      */
  --g-brand-t:  rgba(123,47,190,0.10); /* прозрачный фон        */
  --g-brand-tb: rgba(123,47,190,0.20); /* граница               */

  /* Hero gradient */
  --g-hero-from: #8B2FD9;
  --g-hero-to:   #4A1996;

  /* Text — тёмный на светлом */
  --g-text-1: rgba(0,0,0,0.87);
  --g-text-2: rgba(0,0,0,0.70);
  --g-text-3: rgba(0,0,0,0.50);
  --g-text-4: rgba(0,0,0,0.35);

  /* Lines / Borders */
  --g-line:   rgba(0,0,0,0.08);
  --g-line-h: rgba(0,0,0,0.12);
  --g-line-s: rgba(0,0,0,0.18);

  /* Semantic */
  --g-positive: #19B677;
  --g-warning:  #F59E0B;
  --g-danger:   #EF4444;
  --g-info:     #3B82F6;

  /* Border radius — крупнее, как у Яндекс Плюс */
  --r-xs: 4px;
  --r-s:  6px;
  --r-m:  8px;
  --r-l:  12px;
  --r-xl: 16px;

  /* Typography */
  --font: 'Manrope', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-accent:  600;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  0.15s;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scrollbar-gutter: stable; /* предотвращает прыжок при появлении скроллбара */
}

body {
  background: var(--g-bg);
  color: var(--g-text-1);
  font-family: var(--font);
  font-size: 13px;
  font-weight: var(--fw-regular);
  line-height: 18px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─────────────────────────────────────────────
   HEADER — Яндекс Плюс стиль
───────────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 241, 248, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--g-line);
}

/* Тонкая фирменная полоса снизу хедера */
.header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--g-brand) 30%,
    var(--g-brand) 70%,
    transparent 100%
  );
  opacity: 0.35;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 52px;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

/* ── Бренд ── */
.site-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Иконка — заменяем звезду на Плюс-символ */
.brand-icon {
  width: 28px; height: 28px;
  border-radius: var(--r-m);
  background: var(--g-brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(123,47,190,0.3);
}
.brand-icon svg { color: #FFFFFF; }

.site-title {
  font-size: 15px;
  font-weight: var(--fw-accent);
  color: var(--g-text-1);
  line-height: 20px;
  letter-spacing: -0.1px;
}

/* Плюс-бейдж — градиент как «Баллы Плюса» */
.plus-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: var(--r-xl);
  background: linear-gradient(90deg, #FF85B0 0%, #C060E8 50%, #7B40D0 100%);
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.3px;
  line-height: 16px;
  box-shadow: 0 1px 8px rgba(200,80,220,0.3);
}

/* ─────────────────────────────────────────────
   ENTRY TIMER (#5)
───────────────────────────────────────────── */

.entry-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #6B20B0 0%, #B050D8 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  /* sticky в потоке — выше шапки, не перекрывает её */
  position: sticky;
  top: 0;
  z-index: 110;
  box-shadow: 0 2px 10px rgba(100,30,160,0.35);
  /* скрыт по умолчанию через height */
  max-height: 0;
  padding: 0 14px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.entry-timer--visible {
  max-height: 52px;
  padding: 10px 14px 10px 16px;
  opacity: 1;
}
.entry-timer-icon { font-size: 15px; flex-shrink: 0; }
.entry-timer-text { flex: 1; line-height: 1.3; }
.entry-timer-text strong { font-weight: 800; }
.entry-timer-close {
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 22px; height: 22px;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.entry-timer-close:hover { background: rgba(255,255,255,0.30); }

/* ─────────────────────────────────────────────
   BANNER SLOTS
───────────────────────────────────────────── */

.banner-slot {
  width: 100%;
  margin-bottom: 10px;
}
#bannerBottom { margin-bottom: 0; margin-top: 10px; }

.banner-carousel {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.banner-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
}
.banner-item {
  flex-shrink: 0;
  position: relative;  /* контейнер для badge и кнопки «i» */
}
.banner-link {
  display: block;
  transition: filter 0.15s;
}
.banner-link:hover { filter: brightness(1.04); }
.banner-link img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Возрастная маркировка ── */
.banner-age-badge {
  position: absolute;
  top: 5px; left: 7px;
  font-size: 9px; font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.38);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  padding: 2px 4px;
  letter-spacing: 0.3px;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── Кнопка «i» — информация о рекламодателе ── */
.banner-info-btn {
  position: absolute;
  bottom: 5px; right: 6px;
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.32);
  color: rgba(255,255,255,0.85);
  font-size: 10px; font-weight: 700; font-style: italic;
  font-family: Georgia, serif;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.15s, border-color 0.15s;
  padding: 0;
  line-height: 1;
}
.banner-info-btn:hover {
  background: rgba(0,0,0,0.55);
  border-color: rgba(255,255,255,0.80);
}

/* ── Bottom-sheet: информация о рекламодателе ── */
.banner-info-sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0);
  z-index: 1000;
  display: flex; align-items: flex-end;
  pointer-events: none;
  transition: background 0.25s;
}
.banner-info-sheet-overlay.is-open {
  background: rgba(0,0,0,0.45);
  pointer-events: auto;
}
.banner-info-sheet {
  width: 100%;
  background: var(--g-surface);
  border-radius: 16px 16px 0 0;
  padding: 16px 20px 32px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
  transform: translateY(100%);
  transition: transform 0.30s cubic-bezier(0.4,0,0.2,1);
}
.banner-info-sheet-overlay.is-open .banner-info-sheet {
  transform: translateY(0);
}
.banner-info-sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.banner-info-sheet-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--g-text-3);
}
.banner-info-sheet-close {
  width: 28px; height: 28px;
  border-radius: 50%; border: none;
  background: var(--g-bg);
  color: var(--g-text-2);
  font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.banner-info-sheet-close:hover { background: var(--g-line); }
.banner-info-sheet-text {
  font-size: 12px; line-height: 1.6;
  color: var(--g-text-2);
  white-space: pre-wrap;
  margin: 0;
}

/* Dots */
.banner-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}
.banner-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.50);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.banner-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}
/* Ad label */
.banner-ad-label {
  position: absolute;
  top: 5px; right: 8px;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.70);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.40);
}

/* ─────────────────────────────────────────────
   MAIN
───────────────────────────────────────────── */

.main {
  position: relative;
  z-index: 1;
  padding: 0 16px 60px;
  max-width: 560px;
  margin: -36px auto 0; /* overlap: заходим на баннер */
  width: 100%;
}

/* ── Сетка карточек ── */
.offers-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.offers-grid.is-hidden { display: none !important; }
.offers-grid.fading { opacity: 0; transform: translateY(3px); }

/* ── Responsive ── */
@media (min-width: 600px) {
  .header-inner, .main { max-width: 600px; }
}
@media (min-width: 800px) {
  .header-inner, .main { max-width: 760px; }
  .main { padding: 20px 24px 64px; }
  .offers-grid { gap: 10px; }
}
@media (min-width: 1100px) {
  .header-inner, .main { max-width: 680px; }
  .offers-grid { gap: 12px; }
}

/* ─────────────────────────────────────────────
   SKELETON
───────────────────────────────────────────── */

.skeleton-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--g-surface);
  border: 1px solid var(--g-line);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
}
.skeleton-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(123,47,190,0.04) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: shimmer 1.8s ease-in-out infinite;
}
@keyframes shimmer {
  to { transform: translateX(200%); }
}
.sk-logo {
  width: 80px; height: 80px;
  border-radius: 16px;
  background: var(--g-surface);
  flex-shrink: 0;
}
.sk-content { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.sk-line { border-radius: var(--r-s); background: var(--g-surface); }
.sk-line--title { height: 16px; width: 60%; }
.sk-line--desc  { height: 12px; width: 84%; }
.sk-line--short { height: 12px; width: 40%; }
.sk-cta {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(123,47,190,0.08);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   EMPTY STATE
───────────────────────────────────────────── */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 72px 20px;
  text-align: center;
}
.empty-icon {
  width: 64px; height: 64px;
  border-radius: var(--r-xl);
  background: var(--g-brand-t);
  border: 1px solid var(--g-brand-tb);
  display: flex; align-items: center; justify-content: center;
  color: var(--g-brand);
}
.empty-state p {
  font-size: 15px;
  line-height: 20px;
  color: var(--g-text-3);
}

/* ─────────────────────────────────────────────
   LOADING STATE
───────────────────────────────────────────── */

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 64px 20px;
  color: var(--g-text-4);
  font-size: 13px;
}
.spinner {
  width: 28px; height: 28px;
  border: 2px solid rgba(0,0,0,0.10);
  border-top-color: var(--g-brand);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── iOS safe area ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .main { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* ─────────────────────────────────────────────
   OFFER CARD
───────────────────────────────────────────── */

.offer-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  overflow: hidden;
  cursor: pointer;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;

  opacity: 0;
  animation: cardIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.offer-card:hover {
  background: #FAFAFF;
  border-color: rgba(123,47,190,0.2);
  box-shadow: 0 4px 16px rgba(123,47,190,0.08);
}

/* Тонкая левая полоска — всегда, не только hover */
.offer-card::before {
  content: '';
  position: absolute;
  left: 0; top: 14%; bottom: 14%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--g-brand);
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 2;
}
.offer-card:hover::before { opacity: 0.6; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Stagger */
.offer-card:nth-child(1)  { animation-delay: 0.03s; }
.offer-card:nth-child(2)  { animation-delay: 0.06s; }
.offer-card:nth-child(3)  { animation-delay: 0.09s; }
.offer-card:nth-child(4)  { animation-delay: 0.12s; }
.offer-card:nth-child(5)  { animation-delay: 0.15s; }
.offer-card:nth-child(6)  { animation-delay: 0.18s; }
.offer-card:nth-child(7)  { animation-delay: 0.21s; }
.offer-card:nth-child(8)  { animation-delay: 0.24s; }
.offer-card:nth-child(9)  { animation-delay: 0.27s; }
.offer-card:nth-child(10) { animation-delay: 0.30s; }

/* ── Логотип ── */
.offer-logo,
.offer-logo-placeholder {
  width: 64px; height: 64px;
  border-radius: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.18s var(--ease);
}
.offer-logo {
  object-fit: cover;
  background: var(--g-surface);
  border: 1px solid var(--g-line);
}
.offer-logo-placeholder {
  background: linear-gradient(135deg, #8B2FD9 0%, #4A1996 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
}
.offer-card:hover .offer-logo,
.offer-card:hover .offer-logo-placeholder { transform: scale(1.03); }

/* ── Контент ── */
.offer-content {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Бейджи ── */
.offer-badges {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 9px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-new {
  background: rgba(123,47,190,0.12);
  color: var(--g-brand);
  border: 1px solid rgba(123,47,190,0.22);
}
.badge-hot {
  background: #17A27A;
  color: #FFFFFF;
  border: none;
}

/* ── Название ── */
.offer-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}
.offer-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  color: var(--g-text-1);
  min-width: 0;
}
.offer-card:hover .offer-name { color: var(--g-brand); }

/* ── Verified badge ── */
.offer-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(54,151,241,0.15);
  color: rgb(54,151,241);
  border: 1px solid rgba(54,151,241,0.25);
  transition: transform var(--dur) var(--ease);
}
.offer-card:hover .offer-verified { transform: scale(1.1); }

/* ── Бонус-бейдж ── */
.offer-bonus {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0 5px;
  padding: 2px 7px;
  background: rgba(123,47,190,0.10);
  border: 1px solid rgba(123,47,190,0.20);
  border-radius: var(--r-m);
  font-size: 12px;
  font-weight: var(--fw-accent);
  color: var(--g-brand);
  line-height: 16px;
  width: fit-content;
  max-width: 100%;
  transition: border-color var(--dur) var(--ease);
}
.offer-bonus svg { color: var(--g-brand-h); flex-shrink: 0; }
.offer-bonus span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.offer-card:hover .offer-bonus { border-color: rgba(123,47,190,0.35); }

/* ── Описание + разворот ── */
.offer-desc-wrap { display: flex; flex-direction: column; gap: 4px; }

.offer-description {
  font-size: 13px;
  line-height: 18px;
  color: var(--g-text-3);
  white-space: pre-line;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease);
}
.offer-description.expanded { max-height: 400px; }

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: rgba(0,0,0,0.60);
  font-family: var(--font);
  font-size: 11px;
  font-weight: var(--fw-accent);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  width: fit-content;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.read-more-btn:hover { color: var(--g-brand); }
.read-more-btn .rm-icon { transition: transform 0.3s var(--ease); }
.read-more-btn.is-expanded .rm-icon { transform: rotate(180deg); }

/* ── Таймер ── */
.offer-countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 11px;
  line-height: 16px;
  color: var(--g-text-4);
}
.cd-val {
  font-variant-numeric: tabular-nums;
  font-weight: var(--fw-accent);
  color: rgb(255,106,84);
}

/* ── Просмотры — скрыты в новом дизайне ── */
.card-viewers { display: none; }
.card-viewers-hidden {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-size: 11px;
  line-height: 16px;
  font-weight: var(--fw-regular);
  color: var(--g-text-4);
  white-space: nowrap;
}
.viewer-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--g-brand);
  flex-shrink: 0;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1;    transform: scale(1);    }
  50%       { opacity: 0.7; transform: scale(1.3);  }
}
.viewer-num { font-variant-numeric: tabular-nums; transition: opacity 0.25s var(--ease); }

/* ─────────────────────────────────────────────
   CTA КНОПКА — скрыта, вся карточка кликабельна
───────────────────────────────────────────── */

.offer-cta { display: none; }

/* ── Кнопка «Получить» справа ── */
.offer-action-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 50px;
  background: linear-gradient(90deg, rgba(180,100,230,0.12), rgba(120,60,200,0.12));
  border: 1px solid rgba(150,80,220,0.22);
  color: var(--g-brand);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.offer-card:hover .offer-action-btn {
  background: linear-gradient(90deg, #C060E8 0%, #7040C8 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(160,80,220,0.35);
}

/* Pulse — кнопка топ-оффера (#4) — только transform+opacity (GPU composited) */
.offer-action-btn--pulse {
  animation: ctaPulse 2.2s ease-in-out infinite;
  box-shadow: 0 3px 10px rgba(160,80,220,0.30);
}
@keyframes ctaPulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.05); opacity: 0.9; }
}

/* ─────────────────────────────────────────────
   ACCENT STRIPE (admin override)
───────────────────────────────────────────── */

.offer-card { --card-accent: transparent; }
.offer-card::after {
  content: '';
  position: absolute;
  left: 0; top: 12%; bottom: 12%;
  width: 2px;
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  background: var(--card-accent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
  z-index: 3;
}
.offer-card.has-accent::after    { opacity: 1; }
.offer-card.has-accent::before   { opacity: 0; } /* hide default stripe */
.offer-card.has-accent:hover::before { opacity: 0; }

/* ─────────────────────────────────────────────
   GEO HEADER
───────────────────────────────────────────── */

.geo-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 11px;
  line-height: 16px;
  color: var(--g-text-4);
  opacity: 0;
  animation: fadeIn 0.4s var(--ease) 0.2s forwards;
}
.geo-flag { font-size: 13px; line-height: 1; flex-shrink: 0; }
.geo-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────
   ACTIVITY TOASTS
───────────────────────────────────────────── */

.activity-toast-wrap {
  position: fixed;
  bottom: 20px;
  left: 14px;
  z-index: 9000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 280px;
}
.activity-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--g-float);
  border: 1px solid var(--g-line-h);
  border-radius: var(--r-xl);
  padding: 8px 12px 8px 10px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  pointer-events: none;
  will-change: transform, opacity;
  opacity: 0;
  transform: translateX(-14px) scale(0.98);
  transition:
    opacity 0.28s var(--ease),
    transform 0.28s var(--ease);
}
.activity-toast.toast-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.activity-toast.toast-hiding {
  opacity: 0;
  transform: translateX(-10px) scale(0.98);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.toast-flag  { font-size: 18px; line-height: 1; flex-shrink: 0; }
.toast-body  { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.toast-name  {
  font-size: 12px;
  font-weight: var(--fw-accent);
  line-height: 16px;
  color: var(--g-text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast-action {
  font-size: 11px;
  line-height: 16px;
  color: var(--g-text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast-time {
  font-size: 10px;
  line-height: 14px;
  color: var(--g-text-4);
  margin-top: 1px;
}
.toast-earn {
  font-weight: var(--fw-accent);
  color: var(--g-brand);
}

@media (max-width: 480px) {
  .offer-verified { width: 15px; height: 15px; }

  /* Логотип меньше — текст не переносится на 4 строки */
  .offer-logo,
  .offer-logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }
  .offer-logo-placeholder { font-size: 17px; }

  /* Кнопка "Получить" — всегда яркая на мобайле (hover не работает) */
  .offer-action-btn {
    background: linear-gradient(90deg, #C060E8 0%, #7040C8 100%);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(160,80,220,0.30);
    padding: 10px 16px;
    font-size: 13px;
    min-height: 44px; /* удобный размер для пальца */
  }
}

/* ─────────────────────────────────────────────
   SECTION HEADER
───────────────────────────────────────────── */

.section-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0 2px;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  color: var(--g-text-1);
}
.section-count {
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--g-text-4);
  line-height: 18px;
}

/* ─────────────────────────────────────────────
   CATEGORY CHIP
───────────────────────────────────────────── */

.offer-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--g-text-4);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─────────────────────────────────────────────
   PROMO CODE BLOCK  (вдохновлено ris.promo)
───────────────────────────────────────────── */

.promo-code-block {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 7px 12px;
  border: 1.5px dashed rgba(0,0,0,0.18);
  border-radius: 8px;
  cursor: pointer;
  background: rgba(0,0,0,0.03);
  transition:
    border-color var(--dur) var(--ease),
    background   var(--dur) var(--ease);
  width: fit-content;
  max-width: 100%;
}
.promo-code-block:hover {
  border-color: rgba(123,47,190,0.50);
  background: rgba(123,47,190,0.06);
}
.promo-code-block.copied {
  border-color: var(--g-positive);
  background: rgba(59,201,153,0.08);
}
.promo-code-icon {
  flex-shrink: 0;
  color: var(--g-text-3);
  transition: color var(--dur) var(--ease);
}
.promo-code-block:hover .promo-code-icon { color: var(--g-brand); }
.promo-code-block.copied  .promo-code-icon { color: var(--g-positive); }

.promo-code-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--g-text-1);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.promo-code-hint {
  font-size: 10px;
  color: rgba(0,0,0,0.60);
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
  transition: color var(--dur) var(--ease);
}
.promo-code-block.copied .promo-code-hint { color: var(--g-positive); }

/* Дисклеймер на карточке */
.offer-disclaimer {
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.4;
  color: rgba(0,0,0,0.38);
  border-top: 1px solid var(--g-line);
  padding-top: 6px;
}

/* ─────────────────────────────────────────────
   HERO BANNER — Яндекс Плюс стиль
───────────────────────────────────────────── */

/* ─────────────────────────────────────────────
   HERO — мудборд: персик + лаванда + жемчуг
───────────────────────────────────────────── */

.hero-banner {
  background:
    linear-gradient(135deg,
      #D4A0E8 0%,
      #A068D0 28%,
      #7040B8 60%,
      #4A1A98 100%
    );
  padding: 28px 20px 64px; /* увеличенный низ для overlap */
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Жемчужный блик поверх градиента */
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255,220,180,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 100%, rgba(200,160,255,0.18) 0%, transparent 55%);
  pointer-events: none;
}

/* Тэг — градиент как «Баллы Плюса» у Яндекса */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #FF85B0 0%, #C060E8 50%, #7B40D0 100%);
  border: none;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 12px rgba(200,80,220,0.35);
}

.hero-title {
  font-size: 30px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.18;
  margin-bottom: 10px;
  letter-spacing: -0.6px;
  text-shadow: 0 1px 20px rgba(80,20,150,0.3);
}

.hero-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
}

/* ── Орбы — жемчужно-персиковые ── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-orb--a {
  width: 240px; height: 240px;
  top: -90px; right: -60px;
  background:
    radial-gradient(circle at 35% 28%,
      rgba(255,230,200,0.45) 0%,
      rgba(220,170,255,0.2) 40%,
      transparent 70%);
  box-shadow: inset 0 0 40px rgba(255,200,150,0.1);
  animation: orb-float 9s ease-in-out infinite;
}

.hero-orb--b {
  width: 130px; height: 130px;
  bottom: -50px; left: -25px;
  background:
    radial-gradient(circle at 38% 30%,
      rgba(255,210,240,0.4) 0%,
      rgba(180,140,255,0.18) 50%,
      transparent 75%);
  animation: orb-float 11s ease-in-out infinite reverse;
  animation-delay: -4s;
}

.hero-orb--c {
  width: 64px; height: 64px;
  top: 24px; left: 24px;
  background:
    radial-gradient(circle at 38% 30%,
      rgba(255,240,210,0.5) 0%,
      rgba(200,160,255,0.2) 55%,
      transparent 100%);
  animation: orb-float 7s ease-in-out infinite;
  animation-delay: -2s;
}

/* ── Искры ── */
.hero-spark {
  position: absolute;
  pointer-events: none;
  animation: spark-pulse 4s ease-in-out infinite;
}
.hero-spark--1 { width: 18px; height: 18px; top: 20px; right: 88px; animation-delay: 0s; }
.hero-spark--2 { width: 14px; height: 14px; bottom: 30px; right: 36px; animation-delay: -1.5s; }
.hero-spark--3 { width: 9px;  height: 9px;  top: 54px;  left: 58px;  animation-delay: -0.7s; }
.hero-spark--4 { width: 11px; height: 11px; bottom: 44px; left: 110px; animation-delay: -2.2s; }

@keyframes orb-float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-14px) scale(1.03); }
}
@keyframes spark-pulse {
  0%,100% { opacity: 0.55; transform: scale(1) rotate(0deg); }
  50%      { opacity: 1;    transform: scale(1.3) rotate(20deg); }
}

@media (min-width: 600px) {
  .hero-banner { padding: 48px 24px 48px; }
  .hero-title  { font-size: 38px; letter-spacing: -1px; }
}

/* ─────────────────────────────────────────────
   EXIT-INTENT POPUP
───────────────────────────────────────────── */

.exit-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.50);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.exit-popup-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

.exit-popup-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 36px 28px 28px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: scale(0.88) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.exit-popup-overlay.is-visible .exit-popup-card {
  transform: scale(1) translateY(0);
}

.exit-popup-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(0,0,0,0.06);
  border: none;
  color: rgba(0,0,0,0.45);
  font-size: 14px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 10px;
  font-family: var(--font);
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.exit-popup-close:hover { background: rgba(0,0,0,0.12); color: rgba(0,0,0,0.75); }

.exit-popup-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C060E8, #7040C8);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(160,80,220,0.4);
}

/* ── Email форма в попапе ── */
.exit-popup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}
.exit-popup-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--g-text-1);
  background: #FAFAFA;
  outline: none;
  transition: border-color 0.18s ease;
  box-sizing: border-box;
}
.exit-popup-input:focus {
  border-color: var(--g-brand);
  background: #fff;
}
.exit-popup-input::placeholder { color: rgba(0,0,0,0.35); }

.exit-popup-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: rgba(25,178,119,0.1);
  border: 1px solid rgba(25,178,119,0.25);
  border-radius: 12px;
  color: #17A27A;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.exit-popup-title {
  font-size: 22px;
  font-weight: 800;
  color: #1A1A2E;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.exit-popup-desc {
  font-size: 14px;
  color: rgba(0,0,0,0.55);
  line-height: 1.65;
  margin-bottom: 22px;
}
.exit-popup-desc strong { color: var(--g-brand); }

.exit-popup-cta {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--g-hero-from) 0%, var(--g-hero-to) 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--r-l);
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  letter-spacing: 0.1px;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.exit-popup-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(123,47,190,0.40);
}
.exit-popup-skip {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: rgba(0,0,0,0.35);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  transition: color 0.15s;
}
.exit-popup-skip:hover { color: rgba(0,0,0,0.60); }
