/* ============================================================
   СТИЛИ СТРАНИЦЫ МАРКЕТПЛЕЙСА
   (Blacksprut / Mega / Kraken / OmgOmg / Зеленый Мир)
   Дополняет style.css — подключается после него.
   ============================================================ */

/* ===== Стили страницы под маркетплейс ===== */
.mp-hero {
    background: linear-gradient(145deg, #0f172a, #1a2744);
    border-radius: var(--radius);
    padding: 48px 36px 44px;
    margin: 0 0 32px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.mp-hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(25,118,210,0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.mp-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}
.mp-hero h1 .brand {
    color: #fde047;
}
.mp-hero p {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 640px;
    margin: 12px auto 20px;
    position: relative;
    z-index: 1;
}
.mp-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.mp-hero-actions .hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}
.mp-hero-actions .hero-btn.primary {
    background: #fde047;
    color: #1e293b;
}
.mp-hero-actions .hero-btn.primary:hover {
    background: #facc15;
    transform: translateY(-2px);
}
.mp-hero-actions .hero-btn.secondary {
    background: rgba(255,255,255,0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.12);
}
.mp-hero-actions .hero-btn.secondary:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.mp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(253,224,71,0.12);
    color: #fde047;
    border: 1px solid rgba(253,224,71,0.25);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

/* ============================================================
   МОДИФИКАТОРЫ ДЛЯ KRAKEN (зелёный акцент)
   ============================================================ */
.mp-hero--kraken h1 .brand {
    color: #34d399;
}
.mp-hero--kraken::after {
    background: radial-gradient(circle, rgba(52,211,153,0.15) 0%, transparent 70%);
}
.mp-hero--kraken .mp-badge {
    background: rgba(52,211,153,0.12);
    color: #34d399;
    border-color: rgba(52,211,153,0.25);
}
.mp-hero--kraken .hero-btn.primary {
    background: #34d399;
    color: #0f172a;
}
.mp-hero--kraken .hero-btn.primary:hover {
    background: #10b981;
}
.mp-cta--kraken::after {
    background: radial-gradient(circle, rgba(52,211,153,0.12) 0%, transparent 70%);
}
.mp-cta--kraken a {
    background: #34d399;
    color: #0f172a;
}
.mp-cta--kraken a:hover {
    background: #10b981;
}

/* ============================================================
   МОДИФИКАТОРЫ ДЛЯ MEGA (жёлтый акцент — базовый цвет уже #fde047)
   ============================================================ */
.mp-hero--mega h1 .brand {
    color: #fde047;
}
.mp-hero--mega::after {
    background: radial-gradient(circle, rgba(253,224,71,0.15) 0%, transparent 70%);
}
.mp-hero--mega .mp-badge {
    background: rgba(253,224,71,0.12);
    color: #fde047;
    border-color: rgba(253,224,71,0.25);
}
.mp-hero--mega .hero-btn.primary {
    background: #fde047;
    color: #1e293b;
}
.mp-hero--mega .hero-btn.primary:hover {
    background: #facc15;
}
.mp-cta--mega::after {
    background: radial-gradient(circle, rgba(253,224,71,0.12) 0%, transparent 70%);
}
.mp-cta--mega a {
    background: #fde047;
    color: #1e293b;
}
.mp-cta--mega a:hover {
    background: #facc15;
}

/* ============================================================
   МОДИФИКАТОРЫ ДЛЯ OMGOMG (оранжевый акцент)
   ============================================================ */
.mp-hero--omg h1 .brand {
    color: #fb923c;
}
.mp-hero--omg::after {
    background: radial-gradient(circle, rgba(251,146,60,0.15) 0%, transparent 70%);
}
.mp-hero--omg .mp-badge {
    background: rgba(251,146,60,0.12);
    color: #fb923c;
    border-color: rgba(251,146,60,0.25);
}
.mp-hero--omg .hero-btn.primary {
    background: #fb923c;
    color: #0f172a;
}
.mp-hero--omg .hero-btn.primary:hover {
    background: #f97316;
}
.mp-cta--omg::after {
    background: radial-gradient(circle, rgba(251,146,60,0.12) 0%, transparent 70%);
}
.mp-cta--omg a {
    background: #fb923c;
    color: #0f172a;
}
.mp-cta--omg a:hover {
    background: #f97316;
}

/* ============================================================
   МОДИФИКАТОРЫ ДЛЯ ЗЕЛЕНОГО МИРА (изумрудный акцент)
   ============================================================ */
.mp-hero--green h1 .brand {
    color: #4ade80;
}
.mp-hero--green::after {
    background: radial-gradient(circle, rgba(74,222,128,0.15) 0%, transparent 70%);
}
.mp-hero--green .mp-badge {
    background: rgba(74,222,128,0.12);
    color: #4ade80;
    border-color: rgba(74,222,128,0.25);
}
.mp-hero--green .hero-btn.primary {
    background: #4ade80;
    color: #0f172a;
}
.mp-hero--green .hero-btn.primary:hover {
    background: #22c55e;
}
.mp-cta--green::after {
    background: radial-gradient(circle, rgba(74,222,128,0.12) 0%, transparent 70%);
}
.mp-cta--green a {
    background: #4ade80;
    color: #0f172a;
}
.mp-cta--green a:hover {
    background: #22c55e;
}

/* ============================================================
   ЯКОРНЫЕ ОТСТУПЫ
   Чтобы при клике по ссылкам #how-to, #faq и другим
   sticky-хедер и sticky-навбар не перекрывали заголовки.
   ============================================================ */
.mp-section[id],
.section-anchor[id] {
    scroll-margin-top: 130px;
}
@media (max-width: 768px) {
    .mp-section[id],
    .section-anchor[id] {
        scroll-margin-top: 80px;
    }
}

/* Секции */
.mp-section {
    padding: 24px 0;
}
.mp-section .section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text);
}
.mp-section .section-title i {
    color: var(--primary);
}
.mp-section .section-sub {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: -12px;
    margin-bottom: 24px;
    line-height: 1.7;
}

/* Карточки преимуществ */
.mp-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 1.4em 0;
}
.mp-benefit {
    padding: 20px 18px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}
.mp-benefit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.mp-benefit .benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 10px;
}
.mp-benefit h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.mp-benefit p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Шаги */
.mp-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 1.4em 0;
}
.mp-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 22px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.mp-step .step-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mp-step .step-body { flex: 1; }
.mp-step .step-body h4 {
    margin-top: 4px;
    margin-bottom: 6px;
    font-size: 1.08rem;
    color: var(--text);
}
.mp-step .step-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}
.mp-step .step-body p + p {
    margin-top: 8px;
}

/* FAQ (дублируется для страниц маркетплейсов — в style.css уже есть) */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    cursor: pointer;
}
.faq-item:last-child { border-bottom: none; }
.faq-item .question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 15px;
    color: var(--text);
}
.faq-item .question i {
    color: var(--text-muted);
    transition: transform 0.3s;
}
.faq-item.open .question i { transform: rotate(180deg); }
.faq-item .answer {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    display: none;
    padding-right: 20px;
}
.faq-item.open .answer { display: block; }

/* Callout */
.mp-callout {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 1.4em 0;
    border-left: 4px solid;
}
.mp-callout .callout-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1.4;
}
.mp-callout .callout-body { flex: 1; }
.mp-callout .callout-body p:last-child { margin-bottom: 0; }
.mp-callout.info { background: #e3f0ff; border-color: #1976d2; color: var(--text); }
.mp-callout.warn { background: #fff7ed; border-color: #f59e0b; color: var(--text); }
.mp-callout.danger { background: #fee2e2; border-color: #ef4444; color: var(--text); }
.mp-callout.success { background: #dcfce7; border-color: #22c55e; color: var(--text); }

/* Таблица сравнения */
.mp-table-wrap {
    overflow-x: auto;
    margin: 1.4em 0;
}
.mp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.mp-table th {
    background: var(--primary);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}
.mp-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}
.mp-table tr:nth-child(even) td { background: var(--bg); }
.mp-table tr:hover td { background: var(--primary-light); }
.mp-table td .yes { color: #16a34a; font-weight: 600; }
.mp-table td .no { color: #dc2626; font-weight: 600; }

/* CTA-блок */
.mp-cta {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: var(--radius);
    padding: 32px 28px;
    margin: 1.8em 0;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.mp-cta::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(253,224,71,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.mp-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.mp-cta p {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.mp-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #fde047;
    color: #1e293b;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}
.mp-cta a:hover {
    background: #facc15;
    transform: translateY(-2px);
}

/* Общее */
.mp-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.mp-content p { margin-bottom: 1.2em; }
.mp-content strong { color: var(--text); }
.mp-content ul, .mp-content ol { margin: 0 0 1.2em 24px; }
.mp-content ul li, .mp-content ol li { margin-bottom: 0.4em; }
.mp-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.4em 0 0.4em 0;
}
.mp-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 1em 0 0.3em 0;
}
.mp-content code {
    background: var(--border);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--text);
}

/* ===== Специфичные для маркетплейса классы ===== */

/* Кнопки в мобильном меню и в navbar с брендовыми цветами */
.btn-full {
    width: 100%;
    text-align: center;
}

.brand-mega,
.nav-icon.mega {
    font-weight: 700;
    color: #fde047;
}
.brand-kraken,
.nav-icon.kraken {
    color: #34d399;
}
.brand-green,
.nav-icon.green {
    color: #4ade80;
}
.brand-blacksprut,
.nav-icon.blacksprut {
    color: #94a3b8;
}
.brand-omg,
.nav-icon.omg {
    color: #fb923c;
}

/* Карточка зеркал на странице маркетплейса */
.card-mirror-marketplace {
    padding: 20px 22px;
}

/* Карточка FAQ на странице маркетплейса */
.card-faq {
    padding: 8px 22px;
}

/* Теги маркетплейсов в блоке "Другие маркетплейсы" */
.hero-tags-marketplace {
    justify-content: flex-start;
    margin-top: 1em;
}
.hero-tags-marketplace a {
    background: rgba(25, 118, 210, 0.08);
    color: #1976d2;
    border-color: rgba(25, 118, 210, 0.2);
}
.hero-tags-marketplace a:hover {
    background: rgba(25, 118, 210, 0.16);
    border-color: rgba(25, 118, 210, 0.35);
    color: #1559a0;
}
.hero-tags-marketplace a.highlight {
    color: #1976d2;
    border-color: rgba(25, 118, 210, 0.2);
    background: rgba(25, 118, 210, 0.08);
}
.hero-tags-marketplace a.highlight:hover {
    color: #1559a0;
    border-color: rgba(25, 118, 210, 0.35);
    background: rgba(25, 118, 210, 0.16);
}

/* ===== Адаптив для страницы маркетплейса ===== */
@media (max-width: 992px) {
    .mp-benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .mp-hero { padding: 32px 20px; }
    .mp-hero h1 { font-size: 1.7rem; }
    .mp-hero p { font-size: 1rem; }
    .mp-hero-actions .hero-btn { width: 100%; justify-content: center; }
    .mp-step { flex-direction: column; text-align: left; }
    .mp-step .step-num { width: 40px; height: 40px; font-size: 1rem; }
}
@media (max-width: 480px) {
    .mp-benefits { grid-template-columns: 1fr; }
    .mp-hero h1 { font-size: 1.45rem; }
}