/* ads.css - рекламные баннеры (14.11.2026). Управление: admin/ads.php. Три вида: card (карточка), strip (строка), float (плавающая плашка). */
.mpad{font-family:Inter,system-ui,sans-serif;position:relative;color:#fff;border-radius:18px;overflow:hidden;background:linear-gradient(135deg,#0a3d30,#0E5040 55%,#0b6b66);box-shadow:0 10px 28px rgba(10,61,48,.22);flex:none}
.mpad *{box-sizing:border-box}
.mpad .th{position:relative;background:#000 center/cover no-repeat;flex:none;overflow:hidden;cursor:pointer}
.mpad .th::after{content:"";position:absolute;inset:0;background:radial-gradient(60% 60% at 50% 50%,rgba(0,0,0,0),rgba(0,0,0,.35))}
.mpad .pl{position:absolute;left:50%;top:50%;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;background:rgba(255,255,255,.95);display:grid;place-items:center;z-index:2;animation:mpadp 2.4s infinite}
.mpad .pl svg{width:16px;height:16px;margin-left:2px;fill:#0E5040}
@keyframes mpadp{0%{box-shadow:0 0 0 0 rgba(255,255,255,.45)}70%,100%{box-shadow:0 0 0 14px rgba(255,255,255,0)}}
@media(prefers-reduced-motion:reduce){.mpad .pl{animation:none}}
.mpad .tt{font:800 17px/1.2 Unbounded,Inter,sans-serif;margin:0 0 4px;color:#fff}
.mpad .sb{font-size:12.5px;line-height:1.45;color:#c9e7df}
.mpad .go{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 16px;border-radius:99px;background:#fff;color:#0E5040;font:700 13px/1 Inter,sans-serif;white-space:nowrap;text-decoration:none}
.mpad .go:hover{background:#e9fbf6}
.mpad .go svg{width:11px;height:11px;fill:#0E5040}
.mpad .x{all:unset;cursor:pointer;position:absolute;right:8px;top:8px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:#d5efe8;background:rgba(0,0,0,.28);font-size:17px;line-height:1;z-index:3}
.mpad .x:hover{background:rgba(0,0,0,.5)}
.mpad .mt{display:inline-block;margin-left:8px;font:600 11.5px Inter,sans-serif;color:#a5d6c9}
/* карточка: горизонтальная (ПК и планшет), вертикальная (правая колонка гостя на ПК), компактная (телефон) */
.mpad.v-card.is-h{display:flex;align-items:stretch;margin:0 0 16px}
.mpad.v-card.is-h .th{width:230px;min-height:128px}
.mpad.v-card.is-h .bd{padding:16px 46px 16px 20px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px}
.mpad.v-card.is-h .tt{font-size:19px}
.mpad.v-card.is-v{margin:0 0 14px}.mpad.v-card.is-v .th{height:150px}.mpad.v-card.is-v .bd{padding:14px 16px 16px}.mpad.v-card.is-v .go{margin-top:12px;width:100%;justify-content:center}
.mpad.v-card.is-m{display:block;margin:12px 12px 4px;border-radius:16px}.mpad.v-card.is-m .th{height:118px}.mpad.v-card.is-m .bd{padding:12px 14px 14px}.mpad.v-card.is-m .tt{font-size:15px}.mpad.v-card.is-m .go{margin-top:10px;width:100%;justify-content:center}
/* строка */
.mpad.v-strip{display:flex;align-items:center;gap:12px;border-radius:14px;padding:8px 44px 8px 8px;margin:0 0 14px}
.mpad.v-strip .th{width:46px;height:46px;border-radius:50%}.mpad.v-strip .pl{width:22px;height:22px;margin:-11px 0 0 -11px;animation:none}.mpad.v-strip .pl svg{width:8px;height:8px}
.mpad.v-strip .bd{flex:1;min-width:0}.mpad.v-strip .tt{font:700 13.5px/1.25 Inter,sans-serif;margin:0}.mpad.v-strip .sb{display:none}
.mpad.v-strip .go{height:34px;padding:0 14px}
.mpad.v-strip.is-m{margin:10px 12px 0;padding:8px 40px 8px 8px}.mpad.v-strip.is-m .go{padding:0 12px}.mpad.v-strip.is-m .go span{display:none}
.mpad.v-strip .x{top:50%;margin-top:-14px}
/* плавающая плашка */
.mpad.v-float{position:fixed;z-index:50;width:300px;right:18px;bottom:18px;border-radius:16px;box-shadow:0 18px 40px rgba(2,20,16,.4)}
.mpad.v-float .th{height:112px}.mpad.v-float .bd{padding:11px 14px 13px;display:flex;align-items:center;gap:10px}.mpad.v-float .tt{font:700 13.5px/1.25 Inter,sans-serif;margin:0}.mpad.v-float .sb{display:none}
.mpad.v-float .bd>div{flex:1;min-width:0}.mpad.v-float .go{height:34px;padding:0 13px}
.mpad.v-float.is-m{left:12px;right:12px;bottom:92px;width:auto;display:flex;align-items:center;padding:8px 40px 8px 8px;gap:10px;border-radius:16px}
.mpad.v-float.is-m .th{width:54px;height:54px;border-radius:12px}.mpad.v-float.is-m .th .pl{width:24px;height:24px;margin:-12px 0 0 -12px;animation:none}.mpad.v-float.is-m .th .pl svg{width:9px;height:9px}
.mpad.v-float.is-m .bd{padding:0;flex:1}.mpad.v-float.is-m .go span{display:none}
/* где показывать: телефон до 640, планшет 641-1100, компьютер от 1101 */
@media(max-width:640px){.mpad[data-nodp]{display:none!important}}
@media(min-width:641px) and (max-width:1100px){.mpad[data-nodt]{display:none!important}}
@media(min-width:1101px){.mpad[data-nodd]{display:none!important}}
