/**
 * template-responsive.css
 * Адаптивные стили шаблона ДельтаБезопасность
 * Медиа-запросы для всех разрешений
 */

/* ============================================================
   CTA BLOCK VARIANTS - 5 Types (All Red Gradients)
   ============================================================
   1. .cta-action    — Серо-красный градиент (главный CTA)
   2. .cta-info      — Черно-темно-красный градиент (инфо)
   3. .cta-success   — Темно-красный теплый (успешные сценарии)
   4. .cta-alert     — Темно-красный насыщенный (предупреждения)
   5. .cta-compact   — Серый с красной границей (компактный)
   ============================================================ */

/* Base CTA Styles - Flexbox: иконка слева, текст по центру, кнопка справа */
.cta-box-v2 {
    padding: 30px 40px;
    margin: 30px 0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 8px 30px rgba(177, 36, 19, 0.3);
    transition: all 0.3s ease;
}
.cta-box-v2:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(177, 36, 19, 0.4);
}

/* Иконка в круге слева */
.cta-box-v2 .cta-icon-wrapper {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cta-box-v2 .cta-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cta-box-v2 .cta-icon .svgicon { width: 48px; height: 48px; }
.cta-box-v2 .cta-icon .svgicon::before { filter: brightness(0) invert(1); }

/* Контент по центру */
.cta-box-v2 .cta-content {
    flex: 1;
    text-align: left;
}
.cta-box-v2 h3 {
    font-size: 22px;
    margin: 0 0 8px;
    font-weight: 700;
    color: #fff;
}
.cta-box-v2 p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Кнопка справа */
.cta-box-v2 .cta-btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 6px;
    font-size: 13px;
    flex-shrink: 0;
    background: #fff;
    color: #b12413;
    letter-spacing: 0.5px;
}
.cta-box-v2 .cta-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* Variant 1: ACTION — Серо-красный градиент */
.cta-box-v2.cta-action {
    background: linear-gradient(135deg, #3a1a1a 0%, #6b2418 40%, #b12413 100%);
    color: #fff;
}

/* Variant 2: INFO — Черно-темно-красный градиент */
.cta-box-v2.cta-info {
    background: linear-gradient(135deg, #1a1418 0%, #2a1820 40%, #8b2020 100%);
    color: #fff;
}

/* Variant 3: SUCCESS — Темно-красный теплый градиент */
.cta-box-v2.cta-success {
    background: linear-gradient(135deg, #2d1f1a 0%, #5a2820 40%, #9a2820 100%);
    color: #fff;
}

/* Variant 4: ALERT — Темно-красный насыщенный градиент */
.cta-box-v2.cta-alert {
    background: linear-gradient(135deg, #2a1212 0%, #5a1818 40%, #8a1818 100%);
    color: #fff;
}

/* Variant 5: COMPACT — Серый с красной границей (компактный) */
.cta-box-v2.cta-compact {
    padding: 18px 25px;
    text-align: left;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border-left: 4px solid #b12413;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.cta-box-v2.cta-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.cta-box-v2.cta-compact .cta-icon-wrapper {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: #b12413;
}
.cta-box-v2.cta-compact .cta-icon {
    width: 40px;
    height: 40px;
}
.cta-box-v2.cta-compact .cta-icon .svgicon { width: 28px; height: 28px; }
.cta-box-v2.cta-compact .cta-content h3 {
    font-size: 15px;
    margin: 0 0 3px;
    color: #121426;
}
.cta-box-v2.cta-compact .cta-content p {
    font-size: 13px;
    color: #50545c;
}
.cta-box-v2.cta-compact .cta-btn {
    padding: 10px 22px;
    background: #b12413;
    color: #fff;
}
.cta-box-v2.cta-compact .cta-btn:hover {
    background: #c32815;
}

/* CTA Height Variants */
.cta-box-v2.cta-lg { padding: 40px 50px; gap: 30px; }
.cta-box-v2.cta-lg .cta-icon-wrapper { width: 90px; height: 90px; min-width: 90px; }
.cta-box-v2.cta-lg .cta-icon { width: 72px; height: 72px; }
.cta-box-v2.cta-lg .cta-icon .svgicon { width: 56px; height: 56px; }
.cta-box-v2.cta-lg h3 { font-size: 26px; margin: 0 0 12px; }
.cta-box-v2.cta-lg p { font-size: 16px; }
.cta-box-v2.cta-lg .cta-btn { padding: 18px 40px; font-size: 15px; }

.cta-box-v2.cta-sm { padding: 20px 30px; gap: 20px; }
.cta-box-v2.cta-sm .cta-icon-wrapper { width: 60px; height: 60px; min-width: 60px; }
.cta-box-v2.cta-sm .cta-icon { width: 48px; height: 48px; }
.cta-box-v2.cta-sm .cta-icon .svgicon { width: 32px; height: 32px; }
.cta-box-v2.cta-sm h3 { font-size: 18px; margin: 0 0 6px; }
.cta-box-v2.cta-sm p { font-size: 13px; }
.cta-box-v2.cta-sm .cta-btn { padding: 10px 24px; font-size: 12px; }

/* ========== RESPONSIVE ========== */

@media (max-width: 1200px) {
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .benefit-item { width: calc(50% - 15px); }
    .info-card { width: 100%; }
    .structure-blocks { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .step-item { width: calc(50% - 10px); }
    .comparison-grid { grid-template-columns: 1fr; }
    .risk-scenarios { grid-template-columns: repeat(2, 1fr); }
    .data-types { flex-direction: column; }
    /* Icon demo grid tablet: 6 columns */
    .icon-demo-grid { grid-template-columns: repeat(6, 1fr); }
    /* Sidebar TOC becomes top on tablet */
    .content-layout { flex-direction: column; }
    .toc-sidebar {
        width: 100%; position: static; max-height: none; order: -1;
        margin-left: 0;
    }
    .toc-sidebar .toc-block {
        border-left: none; border-top: 4px solid #b12413;
        border-radius: 0 0 4px 4px;
    }
    /* V3 blocks responsive */
    .cta-box { padding: 30px 20px; }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .key-insight { padding: 25px 20px; }
    .risk-matrix { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .callback-inline-form input[type="tel"] { width: 120px; }
    .contact-bar-left { gap: 15px; }
}

@media (max-width: 768px) {
    .main_slide_ttl { font-size: 22px; }
    .main_slide_subttl { margin-top: 18px; font-size: 16px; line-height: 1.6; }
    /* Contact bar mobile: stack vertically */
    .contact-bar .main_wrp { flex-direction: column; gap: 10px; }
    .contact-bar-left { flex-direction: column; gap: 8px; width: 100%; }
    .contact-bar-right { width: 100%; }
    .contact-cta-btn { display: block; text-align: center; }
    .benefit-item { width: 100%; }
    .step-item { width: 100%; }
    .article-content { padding: 20px; }
    .nav { flex-wrap: wrap; }
    .hero-buttons .btn { display: block; margin: 10px auto; }
    /* V3 blocks mobile */
    .advantages-grid { grid-template-columns: 1fr; gap: 15px; }
    .advantage-item { padding: 20px 15px; }
    .risk-scenarios { grid-template-columns: 1fr; gap: 15px; }
    .risk-scenario { padding: 20px 15px; }
    .cta-box { padding: 25px 15px; margin: 20px 0; }
    .cta-box h3 { font-size: 20px; }
    .cta-box .cta-btn { width: 100%; text-align: center; }
    .key-insight { padding: 20px; margin: 20px 0; }
    .key-insight h4 { font-size: 16px; }
    .toc-sidebar .toc-list a { font-size: 13px; padding: 8px; }
    /* Hero benefits mobile */
    .hero-quick-benefits {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    .hero-quick-item { font-size: 13px; }
    /* CTA responsive */
    .cta-box-v2 {
        padding: 25px 20px;
        flex-direction: column;
        text-align: center;
    }
    .cta-box-v2 .cta-icon-wrapper { margin: 0 auto; }
    .cta-box-v2 .cta-content { text-align: center; }
    .cta-box-v2 h3 { font-size: 18px; }
    .cta-box-v2 .cta-btn { width: 100%; text-align: center; }
    .cta-box-v2.cta-compact {
        flex-direction: column;
        text-align: center;
    }
    .cta-box-v2.cta-compact .cta-content { text-align: center; }
    /* Contact bar mobile */
    .contact-bar-logo { display: none; }
    .callback-inline-form input[type="tel"] { display: none; }
    .contact-messengers { display: none; }
    /* Icon demo grid mobile: 4 columns */
    .icon-demo-grid { grid-template-columns: repeat(4, 1fr); }
    .icon-demo-item { padding: 12px 8px; }
    .icon-demo-item .icon-name { font-size: 8px; }
    /* Typography mobile */
    .typography-demo { margin: 30px 0; }
    .typography-sample { padding: 15px; }
}

@media (max-width: 560px) {
    .benefit-card-v2 { width: 100%; }
    .benefits-grid-v2 { margin: 20px 0; }
    .structure-blocks { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
}
