/* CSP этап C-web (2026-07-15): стили, вынесенные из inline <style>/style=
 * публичных шаблонов, чтобы style-src на лендинге стал строгим ('self',
 * без 'unsafe-inline'). Ноль визуальных изменений — чистый перенос. */

/* --- из base.html: тост согласия Метрики --- */
.metrika-toast {
    position: fixed;
    left: 50%;
    bottom: calc(16px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 120;
    width: min(640px, calc(100% - 32px));
    pointer-events: none;
}

.metrika-toast-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.12);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    pointer-events: auto;
    animation: metrika-toast-in 0.25s ease-out forwards;
}

.metrika-toast-text {
    font-size: 13px;
    line-height: 1.4;
    color: #4b5563;
}

.metrika-toast-link {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.metrika-toast-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.metrika-toast-btn {
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    transition: all 0.2s;
}

.metrika-toast-btn:hover {
    color: #111827;
    border-color: #d1d5db;
    background: #f3f4f6;
}

.metrika-toast-btn-primary {
    color: #ffffff;
    border-color: #2563eb;
    background: #2563eb;
}

.metrika-toast-btn-primary:hover {
    color: #ffffff;
    border-color: #1d4ed8;
    background: #1d4ed8;
}

@keyframes metrika-toast-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- из pages/index.html: базовый шрифт лендинга ---
 * Прежнее `body { background: var(--zp-bg) }` намеренно НЕ переносим:
 * оно было мёртвым (класс `bg-gray-50` бил element-селектор, фактический
 * фон #F9FAFB), перенос в класс изменил бы фон — это регрессия. */
body.zp-landing-body main {
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

/* --- утилиты, заменившие статические style= --- */
/* _hero.html: точки «светофора» терминала */
.zp-tl-dot-red { background: #FF5F57; }
.zp-tl-dot-amber { background: #FEBC2E; }
.zp-tl-dot-green { background: #2FCB6B; }

/* _custom.html: акцентный kicker */
.zp-kicker--accent { color: var(--zp-accent); }

/* _contacts.html: заголовок секции по левому краю */
.zp-sec-head--start { justify-content: flex-start; }

/* _bots.html: чипы платформ (палитра из landing_data.py) */
.zp-chip-tg { background: #E7F3FB; color: #2596BE; }
.zp-chip-max { background: #F0EBFB; color: #7A5AF8; }
.zp-chip-vk { background: #E9F0FA; color: #3D6DB5; }
