@charset "UTF-8";
/* Светлая тема «Клевер»: ФАЙЛ СГЕНЕРИРОВАН из statica/space/partner.css скриптом _tools/gen_klever.py — вручную не править. Ручные правки — в statica/space/klever.css. */
/* ==========================================================================
   BUX2 (агент M3): лента «Рекламные блоки» над страницами, баннер 234×60 в левой колонке,
   «Реклама за клики» в правой колонке, страницы «Рекламные блоки», «Контекст за клики», «Реклама на своём сайте».
   Цвета — переменные темы Cosmos Glass (--cg-*) с запасными значениями.
   ========================================================================== */

/* ---------- Лента рекламных блоков (templates/rbloki.tpl) ---------- */
.rbl { position: relative; margin: 0 0 14px; padding: 8px 40px; border-radius: var(--cg-radius, 16px);
  background: var(--cg-panel, rgba(243, 247, 240, 0.82)); box-shadow: inset 0 0 0 1px var(--cg-border, rgba(110, 170, 60, 0.091)); }
.rbl__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.rbl__track::-webkit-scrollbar { display: none; }
.rbl__i { position: relative; flex: 0 0 172px; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 64px; padding: 9px 12px 8px;
  box-sizing: border-box; border-radius: 12px; scroll-snap-align: start; text-decoration: none !important;
  background: linear-gradient(160deg, rgba(177, 235, 91, 0.09), rgba(248, 250, 246, 0.35)); box-shadow: inset 0 0 0 1px var(--cg-border, rgba(110, 170, 60, 0.091));
  transition: box-shadow .2s, transform .2s, background-color .2s; }
.rbl__i:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--cg-gold, rgba(110, 170, 60, 0.35)), 0 8px 18px -12px rgba(110, 170, 60, 0.28); }
.rbl__t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--cg-gold-light, #2f7a4f); font-weight: 700; font-size: 13px; line-height: 1.3; word-break: break-word; }
.rbl__d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--cg-muted, #5b6f65); font-size: 12px; line-height: 1.3; word-break: break-word; }
.rbl__tag { position: absolute; top: 3px; right: 7px; font-size: 9px; letter-spacing: .4px; text-transform: uppercase; color: var(--cg-muted, #5b6f65); opacity: .75; }
.rbl__add { align-items: center; text-align: center; background: rgba(177, 235, 91, 0.06); box-shadow: inset 0 0 0 1px rgba(110, 170, 60, 0.158); border: 0; }
.rbl__add .fa-plus { color: var(--cg-gold, #2f7a4f); font-size: 15px; }
.rbl__add .rbl__t { font-size: 12.5px; }
.rbl__nav { position: absolute; top: 50%; z-index: 2; width: 28px; height: 28px; margin-top: -14px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--cg-gold-light, #2f7a4f); background: rgba(248, 250, 246, 0.75); box-shadow: inset 0 0 0 1px var(--cg-border, rgba(110, 170, 60, 0.091)); transition: opacity .2s, background-color .2s; }
.rbl__nav:hover { background: rgba(177, 235, 91, 0.18); }
.rbl__nav--prev { left: 7px; }
.rbl__nav--next { right: 7px; }
.rbl.is-start .rbl__nav--prev, .rbl.is-end .rbl__nav--next { opacity: .3; pointer-events: none; }
.rbl.is-start.is-end .rbl__nav { display: none; }
.rbl.is-start.is-end { padding-left: 10px; padding-right: 10px; }
.rbl--demo { padding: 8px; margin: 0; }
.rbl--demo .rbl__i { flex-basis: 190px; max-width: 100%; }

/* Блоков нет — одна строка-приглашение вместо пустой полосы */
.rbl-empty { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; padding: 7px 14px; border-radius: 999px;
  font-size: 13px; line-height: 1.35; color: var(--cg-muted, #5b6f65) !important; text-align: center; text-decoration: none !important;
  background: rgba(177, 235, 91, 0.05); box-shadow: inset 0 0 0 1px var(--cg-line, rgba(25, 61, 45, 0.16)); transition: box-shadow .2s, color .2s; }
.rbl-empty b { color: var(--cg-gold-light, #2f7a4f); font-weight: 600; }
.rbl-empty .fa-plus { color: var(--cg-gold, #2f7a4f); }
.rbl-empty:hover { box-shadow: inset 0 0 0 1px var(--cg-border, rgba(110, 170, 60, 0.091)); color: var(--cg-text, #1f2623) !important; }

@media (max-width: 980px) {
  .rbl { padding: 7px 8px; margin-bottom: 10px; }
  .rbl__nav { display: none; }
  .rbl__i { flex-basis: 150px; min-height: 58px; padding: 8px 10px 7px; }
  .rbl-empty { border-radius: 14px; font-size: 12.5px; }
  .rbl-empty span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rbl__i, .rbl__i:hover { transition: none; transform: none; } }

/* ---------- Баннер 234×60 в левой колонке (templates/menu/banner234.tpl) ---------- */
.b234__slot { min-height: 64px; text-align: center; padding-bottom: 6px; }
.b234__slot img { display: block; width: 100%; max-width: 234px; height: auto; margin: 0 auto; border-radius: 4px; }

/* ---------- «Реклама за клики» в правой колонке (templates/menu/ppc-box.tpl) и предпросмотр ---------- */
.ppcx { margin-top: 14px; }
.ppcx__ban { display: block; margin: 0 auto 8px; max-width: 234px; line-height: 0; }
.ppcx__ban img { display: block; width: 100%; height: auto; border-radius: 4px; }
.ppcx__i { margin: 0 0 8px; padding: 9px 10px; border-radius: 12px; background: rgba(248, 250, 246, 0.38); box-shadow: inset 0 0 0 1px var(--cg-line, rgba(25, 61, 45, 0.16)); text-align: left; }
.ppcx__t { display: block; color: var(--cg-gold-light, #2f7a4f) !important; font-weight: 700; font-size: 13.5px; line-height: 1.3; word-break: break-word; text-decoration: none !important; }
a.ppcx__t:hover { text-decoration: underline !important; }
.ppcx__d { margin-top: 3px; color: var(--cg-text, #1f2623); font-size: 12.5px; line-height: 1.4; word-break: break-word; }
.ppcx__h { margin-top: 3px; color: var(--cg-muted, #5b6f65); font-size: 11px; }
.ppcx__empty { margin: 0 0 8px; padding: 10px; border-radius: 12px; font-size: 12.5px; line-height: 1.4; color: var(--cg-muted, #5b6f65); text-align: center;
  box-shadow: inset 0 0 0 1px var(--cg-line, rgba(25, 61, 45, 0.16)); }

/* ---------- Страницы раздела ---------- */
.an { padding: 0 7px 16px; color: var(--cg-text, #1f2623); font-size: 14px; line-height: 1.5; }
.an *, .an *::before, .an *::after { box-sizing: border-box; }
.an a { text-decoration: none; }
.an small { font-size: 12px; }
.an [hidden] { display: none !important; }

/* вкладки */
.an-nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 12px; padding: 6px; border-radius: var(--cg-radius, 16px);
  background: rgba(248, 250, 246, 0.5); box-shadow: inset 0 0 0 1px var(--cg-line, rgba(25, 61, 45, 0.16)); }
.an-nav__i { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 10px; border-radius: 11px;
  color: var(--cg-muted, #5b6f65); font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: background-color .18s, color .18s; }
.an-nav__i:hover { color: var(--cg-text, #1f2623); background: rgba(177, 235, 91, 0.08); }
.an-nav__i.is-cur { color: #19251f; background: linear-gradient(135deg, #c4f377, #b2ea5a); box-shadow: 0 8px 18px -12px rgba(110, 170, 60, 0.315); }

.an-wallet { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; font-size: 13px; color: var(--cg-muted, #5b6f65); }
.an-wallet b { color: var(--cg-text, #1f2623); }
.an-wallet a { color: var(--cg-gold, #2f7a4f); margin-left: 4px; }
.an-wallet .fa-wallet { color: var(--cg-gold, #2f7a4f); }

/* пояснение и цифры */
.an-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 18px; align-items: start; margin: 0 0 14px; padding: 16px 18px; border-radius: var(--cg-radius, 16px);
  background: var(--cg-panel, rgba(243, 247, 240, 0.82)); box-shadow: inset 0 0 0 1px var(--cg-border, rgba(110, 170, 60, 0.091)); }
.an-intro p { margin: 0 0 8px; color: var(--cg-muted, #5b6f65); }
.an-intro p:last-child { margin-bottom: 0; }
.an-intro p b { color: var(--cg-text, #1f2623); }
.an-facts { display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 8px; }
.an-fact { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 12px; background: rgba(248, 250, 246, 0.45); box-shadow: inset 0 0 0 1px var(--cg-line, rgba(25, 61, 45, 0.16)); }
.an-fact small { color: var(--cg-muted, #5b6f65); font-size: 11.5px; }
.an-fact b { color: var(--cg-gold-light, #2f7a4f); font-size: 15px; white-space: nowrap; }

/* карточка, форма */
.an-card { margin: 0 0 16px; padding: 16px 18px; border-radius: var(--cg-radius, 16px); background: var(--cg-panel, rgba(243, 247, 240, 0.82)); box-shadow: inset 0 0 0 1px var(--cg-line, rgba(25, 61, 45, 0.16)); }
.an-h { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--cg-gold-light, #2f7a4f); }
.an-h small { margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--cg-muted, #5b6f65); background: rgba(25, 61, 45, 0.056); }
.an-h--list { margin: 18px 0 10px; }
.an-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 18px; align-items: start; }
.an-fields { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.an-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; position: relative; }
.an-f > span { font-size: 13px; font-weight: 600; color: var(--cg-text, #1f2623); }
.an-f > span small { font-weight: 400; color: var(--cg-muted, #5b6f65); }
.an input[type="text"], .an input[type="url"], .an select, .an textarea {
  width: 100%; min-height: 40px; padding: 9px 12px; border-radius: 11px; border: 1px solid rgba(25, 61, 45, 0.18); background: rgba(250, 252, 249, 0.6);
  color: var(--cg-text, #1f2623); font: 14px/1.4 inherit; font-family: inherit; outline: none; transition: border-color .18s, box-shadow .18s; }
.an textarea { resize: vertical; min-height: 76px; }
.an input:focus, .an select:focus, .an textarea:focus { border-color: var(--cg-gold, #2f7a4f); box-shadow: 0 0 0 3px rgba(110, 170, 60, 0.052); }
.an select option { background: #f3f7f0; color: #1f2623; }
.an-count { align-self: flex-end; font-size: 11px !important; color: var(--cg-muted, #5b6f65); }
.an-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.an-calc { min-height: 18px; font-size: 12.5px; color: var(--cg-gold-light, #2f7a4f); }
.an-calc:empty { display: none; }
.an-check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; color: var(--cg-muted, #5b6f65); font-size: 13px; }
.an-check input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; accent-color: var(--cg-gold, #2f7a4f); }
.an-check b { color: var(--cg-gold-light, #2f7a4f); }
.an-check--box { padding: 11px 13px; border-radius: 12px; background: rgba(177, 235, 91, 0.07); box-shadow: inset 0 0 0 1px var(--cg-border, rgba(110, 170, 60, 0.091)); color: var(--cg-text, #1f2623); }
.an-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.an-seg__i { position: relative; cursor: pointer; }
.an-seg__i input { position: absolute; opacity: 0; pointer-events: none; }
.an-seg__i span { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--cg-muted, #5b6f65);
  box-shadow: inset 0 0 0 1px rgba(25, 61, 45, 0.16); transition: background-color .18s, color .18s, box-shadow .18s; }
.an-seg__i input:checked + span { color: #19251f; font-weight: 600; background: linear-gradient(135deg, #c4f377, #b2ea5a); box-shadow: none; }
.an-seg__i input:focus-visible + span { box-shadow: 0 0 0 3px rgba(110, 170, 60, 0.122); }
.an-kind { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--cg-gold-light, #2f7a4f); background: rgba(177, 235, 91, 0.1); }
.an-file { position: relative; overflow: hidden; align-self: flex-start; }
.an-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.an-form--inline { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.an-form--inline .an-f { flex: 1 1 280px; }

/* предпросмотр */
.an-pv { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.an-pv > small { color: var(--cg-muted, #5b6f65); }
.ppc-demo { padding: 10px; border-radius: 12px; background: rgba(248, 250, 246, 0.45); box-shadow: inset 0 0 0 1px var(--cg-line, rgba(25, 61, 45, 0.16)); }
.ppc-demo .ppcx__i { margin: 0; }
.ppc-demo--ban { display: flex; align-items: center; justify-content: center; min-height: 80px; }
.ppc-demo--ban img { display: block; max-width: 100%; height: auto; }
.ppc-demo__ph { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 468px; aspect-ratio: 468 / 60; border-radius: 6px; font-size: 12px;
  color: var(--cg-muted, #5b6f65); border: 1px dashed var(--cg-border, rgba(47, 122, 79, 0.234)); }
.ppc-demo--ban.is-234 .ppc-demo__ph { max-width: 234px; aspect-ratio: 234 / 60; }

/* кнопки */
.an-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.an-btns--top { margin: 0 0 6px; }
.an-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 18px; border: 0; border-radius: 12px; cursor: pointer;
  font: 600 14px/1.2 inherit; font-family: inherit; color: #19251f !important; text-align: center; white-space: nowrap;
  background: linear-gradient(135deg, #c4f377, #b2ea5a); box-shadow: 0 8px 18px -12px rgba(110, 170, 60, 0.315), inset 0 1px 0 rgba(255, 255, 255, 0.21);
  transition: transform .18s, filter .18s; }
.an-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.an-btn:disabled, .an-btn.is-busy { cursor: default; filter: grayscale(.6) brightness(.8); transform: none; pointer-events: none; }
.an-btn--ghost { color: var(--cg-text, #1f2623) !important; background: rgba(25, 61, 45, 0.042); box-shadow: inset 0 0 0 1px rgba(25, 61, 45, 0.16); }
.an-btn--ghost:hover { background: rgba(177, 235, 91, 0.1); filter: none; }
.an-btn--danger { color: #232b27 !important; background: rgba(224, 96, 80, 0.12); box-shadow: inset 0 0 0 1px rgba(224, 96, 80, 0.12); }
.an-btn--danger:hover { background: rgba(224, 96, 80, 0.22); filter: none; }
.an-btn--sm { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
/* кнопки отправки тема красит правилом с высокой точностью (.sp-theme button[type=submit]:not(…)) — в разделе остаётся золото */
.an .an-btn[type="submit"]:not(.an-btn--ghost) { min-height: 40px !important; padding: 9px 18px !important; border-radius: 12px !important; color: #19251f !important;
  background: linear-gradient(135deg, #c4f377, #b2ea5a) !important;
  box-shadow: 0 8px 18px -12px rgba(110, 170, 60, 0.315), inset 0 1px 0 rgba(255, 255, 255, 0.21) !important; }
.an .an-btn--sm[type="submit"]:not(.an-btn--ghost) { min-height: 34px !important; padding: 6px 12px !important; border-radius: 10px !important; }

/* сообщения и пустые списки */
.an-alert { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 11px 14px; border-radius: 12px; font-size: 13px; line-height: 1.45;
  background: rgba(177, 235, 91, 0.08); box-shadow: inset 0 0 0 1px var(--cg-border, rgba(110, 170, 60, 0.091)); }
.an-alert > i { margin-top: 2px; color: var(--cg-gold, #2f7a4f); }
.an-alert--bad { background: rgba(224, 96, 80, 0.1); box-shadow: inset 0 0 0 1px rgba(224, 96, 80, 0.12); }
.an-alert--bad > i { color: #ba3d2c; }
.an-empty { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--cg-radius, 16px); color: var(--cg-muted, #5b6f65);
  box-shadow: inset 0 0 0 1px var(--cg-line, rgba(25, 61, 45, 0.16)); }
.an-empty > i { font-size: 22px; color: var(--cg-gold, #2f7a4f); }
.an-empty p { margin: 0; }

/* статусы */
.an-st { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.an-st--ok { color: #298e46; background: rgba(76, 190, 120, 0.14); box-shadow: inset 0 0 0 1px rgba(76, 190, 120, 0.105); }
.an-st--wait { color: var(--cg-gold-light, #2f7a4f); background: rgba(177, 235, 91, 0.12); box-shadow: inset 0 0 0 1px var(--cg-border, rgba(110, 170, 60, 0.091)); }
.an-st--bad { color: #ba3e2c; background: rgba(224, 96, 80, 0.14); box-shadow: inset 0 0 0 1px rgba(224, 96, 80, 0.12); }
.an-st--off { color: var(--cg-muted, #5b6f65); background: rgba(25, 61, 45, 0.056); box-shadow: inset 0 0 0 1px rgba(25, 61, 45, 0.16); }
.an-st--info { color: var(--cg-text, #1f2623); background: rgba(25, 61, 45, 0.056); }

/* списки своих блоков, объявлений и сайтов */
.an-list { display: flex; flex-direction: column; gap: 10px; }
.an-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; padding: 14px 16px; border-radius: var(--cg-radius, 16px);
  background: var(--cg-panel, rgba(243, 247, 240, 0.82)); box-shadow: inset 0 0 0 1px var(--cg-line, rgba(25, 61, 45, 0.16)); }
.an-item__main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.an-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.an-item__t { color: var(--cg-gold-light, #2f7a4f); font-size: 15px; word-break: break-word; }
.an-item__t .fa-globe { color: var(--cg-gold, #2f7a4f); }
.an-item__d { color: var(--cg-text, #1f2623); font-size: 13px; word-break: break-word; }
.an-item__url { color: var(--cg-muted, #5b6f65) !important; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-item__url:hover { color: var(--cg-gold, #2f7a4f) !important; }
.an-item__note { font-size: 12.5px; color: #ba3e2c; }
.an-item__ban { display: block; max-width: 100%; height: auto; margin: 2px 0; border-radius: 4px; }
.an-item__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 12px; color: var(--cg-muted, #5b6f65); }
.an-item__meta b { color: var(--cg-text, #1f2623); }
.an-item__act { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 170px; }
.an-topup { display: flex; gap: 6px; min-width: 0; }
.an-topup input[type="text"] { min-height: 34px; width: 92px; min-width: 0; padding: 6px 9px; font-size: 13px; }
.an-topup .an-btn { flex: none; }

/* коды для сайта партнёра */
.an-codes { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid var(--cg-line, rgba(25, 61, 45, 0.099)); }
.an-codes__help { margin: 0; font-size: 12.5px; color: var(--cg-muted, #5b6f65); }
.an-code__head { margin-bottom: 4px; font-size: 13px; }
.an-code__head b { color: var(--cg-gold-light, #2f7a4f); }
.an-code__head small { color: var(--cg-muted, #5b6f65); }
.an-code__row { display: flex; gap: 8px; align-items: stretch; }
.an-code__row textarea { flex: 1 1 auto; min-height: 54px; font: 12px/1.45 Consolas, Menlo, monospace; color: #37433d; resize: none; white-space: pre; overflow-x: auto; }

/* таблицы статистики */
.an-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--cg-line, rgba(25, 61, 45, 0.16)); }
.an-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.an-table th, .an-table td { padding: 8px 12px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--cg-line, rgba(25, 61, 45, 0.099)); }
.an-table th { font-weight: 600; color: var(--cg-muted, #5b6f65); background: rgba(248, 250, 246, 0.45); }
.an-table tr:last-child td { border-bottom: 0; }
.an-table b { color: var(--cg-gold-light, #2f7a4f); }

@media (max-width: 1180px) {
  .an-grid { grid-template-columns: minmax(0, 1fr); }
  .an-intro { grid-template-columns: minmax(0, 1fr); }
  .an-facts { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}
@media (max-width: 700px) {
  .an { padding: 0 0 14px; }
  .an-nav__i { flex: 1 1 100%; justify-content: flex-start; }
  .an-intro, .an-card { padding: 13px 13px; }
  .an-item { grid-template-columns: minmax(0, 1fr); padding: 12px 13px; }
  .an-item__act { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .an-item__act .an-btn { flex: 1 1 auto; }
  .an-topup { flex: 1 1 100%; max-width: 100%; }
  .an-topup input[type="text"] { flex: 1 1 0; width: 0; }
  .an-item__act .an-topup .an-btn { flex: 0 0 auto; }
  .an-row2 { grid-template-columns: minmax(0, 1fr); }
  .an-code__row { flex-direction: column; }
  .an-btn { white-space: normal; }
}
