/* Стили для страницы Маркетинг */

.hero-section-marketing .hero-title {
    font-size: clamp(var(--font-size-2xl), 4.5vw, var(--font-size-4xl));
    line-height: 1.2;
    max-width: 900px;
}

@media (max-width: 768px) {
    .hero-section-marketing .hero-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
        line-height: 1.3;
    }
}

/* Секция "Как мы работаем" */
.workflow-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    background: var(--bg-primary);
}

.marketing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.workflow-header {
    text-align: center;
    margin-bottom: 80px;
    width: 100%;
}

.workflow-title {
    font-size: clamp(var(--font-size-3xl), 4vw, var(--font-size-5xl));
    font-weight: var(--font-weight-extrabold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding-bottom: var(--spacing-md);
    text-align: center;
    width: 100%;
    line-height: 1.2;
}

.workflow-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0, 168, 232, 0.3);
}

.workflow-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
    width: 100%;
}

.workflow-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-3xl);
    align-items: stretch;
}

/* Убираем вертикальную линию timeline */

.workflow-step {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 120px;
    width: 100%;
    margin-bottom: 0;
    height: 100%;
}

.step-visual {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
}

.step-icon {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: var(--shadow-primary-default);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.step-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-icon:hover::before {
    opacity: 1;
}

.step-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-primary-hover);
    background: var(--primary-hover);
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-extrabold);
    font-size: 1.1rem;
    box-shadow: var(--shadow-default);
    border: 3px solid var(--primary-color);
}

.step-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-default);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary-hover);
}

.step-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.step-description {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Убираем стили для feature-tags */

/* Стили для нумерованных шагов */
.step-number {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

/* Блоки с деталями услуг */
.service-details {
    background: rgba(0, 168, 232, 0.1);
    border-radius: 6px;
    padding: 12px 15px;
    margin: 15px 0;
    border-left: 3px solid var(--primary-color);
    border: 1px solid rgba(0, 168, 232, 0.2);
    font-size: 16px;
}

.service-details p {
    margin: 3px 0;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 16px;
}

.service-details p strong {
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    font-size: 16px;
}

/* Предупреждения в услугах */
.service-warning {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 10px 12px;
    margin: 15px 0;
}

.service-warning h4 {
    color: #856404;
    margin-bottom: 6px;
    margin-top: 0;
}

.service-warning p {
    color: #856404;
    margin: 0;
}

/* Стили для брендинга */
.brand-highlight {
    color: var(--text-primary);
}

.brand-on {
    color: var(--primary-color);
}

/* Стили для контента аккордеона */
.accordion-content p {
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-primary);
    font-size: 20px;
}

.accordion-content p strong {
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
}

/* Параграфы внутри service-details должны быть 16px */
.accordion-content .service-details p {
    font-size: 16px;
    margin-top: 3px;
    margin-bottom: 3px;
}

.accordion-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 20px;
}

/* Кнопки в аккордеоне */
.accordion-content .contact-btn {
    margin-top: 25px;
    margin-bottom: 10px;
    display: inline-block;
}

/* Двухстрочные заголовки в аккордеоне */
.accordion-title .title-main {
    display: block;
    font-size: 1em;
    font-weight: 700;
    line-height: 1.3;
}

.accordion-title .title-subtitle {
    display: block;
    font-size: 0.85em;
    font-weight: 400;
    color: var(--primary-color);
    margin-top: 5px;
    line-height: 1.2;
    opacity: 1;
    transition: color 0.3s ease;
}

.accordion-header:hover .accordion-title .title-subtitle,
.accordion-header[aria-expanded="true"] .accordion-title .title-subtitle {
    color: var(--white) !important;
}

/* Нумерованные списки в аккордеоне */
.numbered-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 0;
}

.numbered-list li {
    counter-increment: step-counter;
    position: relative;
    padding: 12px 0;
    padding-left: 25px;
    color: var(--text-primary);
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color);
}

.numbered-list li:last-child {
    border-bottom: none;
}

.numbered-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Аннотации */
.annotation {
    color: var(--text-primary);
    font-style: italic;
}

/* Аннотации внутри аккордеона */
.accordion-content .annotation {
    font-size: 16px;
}

/* Секция "Мы вам точно нужны, если" - Изолированные стили только для страницы маркетинга */
.section-marketing-problems {
    padding: 80px 0;
    background: var(--bg-primary);
}

.section-marketing-problems .leadgen-problems-list {
    grid-template-columns: repeat(12, 1fr) !important;
    /* Профессиональная 12-колоночная сетка */
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-marketing-problems .leadgen-problem-item {
    grid-column: span 4;
    /* По умолчанию 3 в ряд (12 / 3 = 4) */
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    min-height: 90px;
    /* Гарантируем одинаковую минимальную высоту */
}

/* Центрирование 2-х карточек во втором ряду (4-я и 5-я) */
.section-marketing-problems .leadgen-problem-item:nth-child(4) {
    grid-column: 3 / span 4;
    /* Сдвигаем на 2 колонки вправо */
}

.section-marketing-problems .leadgen-problem-item:nth-child(5) {
    grid-column: 7 / span 4;
}

.section-marketing-problems .leadgen-problem-item:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-blue-sm);
}

.section-marketing-problems .leadgen-problem-item p {
    margin: 0;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
}

.section-marketing-problems .leadgen-problem-icon {
    width: 36px;
    height: 36px;
    margin-right: var(--spacing-lg);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent !important;
    /* Убираем фон */
    transition: all 0.3s ease;
}

/* Полное подавление красных эффектов из roadmap.css */
.section-marketing-problems .leadgen-problem-item:hover .leadgen-problem-icon {
    background: rgba(0, 168, 232, 0.1) !important;
    transform: none !important;
    /* Отключаем вращение */
}

.section-marketing-problems .problem-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 2px rgba(0, 168, 232, 0.2), 0 0 8px rgba(0, 168, 232, 0.3);
}

.section-marketing-problems .leadgen-problem-item:hover .problem-dot {
    background: var(--primary-color) !important;
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(0, 168, 232, 0.3), 0 0 12px rgba(0, 168, 232, 0.5) !important;
}

/* Адаптивность */
@media (max-width: 992px) {

    .section-marketing-problems .leadgen-problem-item,
    .section-marketing-problems .leadgen-problem-item:nth-child(4),
    .section-marketing-problems .leadgen-problem-item:nth-child(5) {
        grid-column: span 6 !important;
        /* 2 в ряд */
    }
}

@media (max-width: 600px) {

    .section-marketing-problems .leadgen-problem-item,
    .section-marketing-problems .leadgen-problem-item:nth-child(4),
    .section-marketing-problems .leadgen-problem-item:nth-child(5) {
        grid-column: span 12 !important;
        /* 1 в ряд */
    }

    .section-marketing-problems .leadgen-problem-item {
        padding: 1rem;
        min-height: auto;
    }
}

/* Центрированный текст */
.centered-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Мобильная адаптация */
@media (max-width: 768px) {

    /* Адаптация секции workflow */
    .workflow-section {
        padding: 48px 0;
    }

    .workflow-header {
        margin-bottom: 60px;
    }

    .workflow-title {
        font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-4xl));
    }

    .workflow-timeline {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .workflow-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    /* Убираем ссылки на вертикальную линию */

    .workflow-step {
        padding-left: 80px;
        margin-bottom: 40px;
    }

    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        top: -5px;
        right: -5px;
    }

    .step-content {
        padding: 25px;
        border-radius: 15px;
    }

    .step-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .step-description {
        font-size: 1rem;
        margin-bottom: 0;
    }

    /* Убираем ссылки на feature-tags */

    /* Уменьшаем нумерованные шаги */
    .step-number {
        width: 25px;
        height: 25px;
        font-size: 14px;
    }

    /* Адаптируем блоки с деталями услуг */
    .service-details {
        padding: 10px 12px;
        margin: 12px 0;
        border-left-width: 2px;
        border-radius: 5px;
        font-size: 14px;
    }

    .service-details p {
        font-size: 14px;
        margin: 2px 0;
    }

    .service-details p strong {
        font-size: 14px;
    }

    .accordion-content .service-details p {
        font-size: 14px !important;
    }

    .accordion-content .annotation {
        font-size: 14px;
    }

    /* Адаптируем предупреждения */
    .service-warning {
        padding: 8px 10px;
        margin: 12px 0;
        border-radius: 5px;
    }

    .service-warning h4 {
        font-size: 15px;
        margin-bottom: 5px;
        margin-top: 0;
    }

    .service-warning p {
        font-size: 14px;
    }

    /* Адаптируем элементы проблем */
    /* Стили теперь наследуются из основного блока и адаптивной сетки выше */

    /* Контент аккордеона на планшетах */
    .accordion-content p {
        margin-top: 18px;
        margin-bottom: 12px;
        font-weight: 500;
        font-size: 18px;
    }

    .accordion-content h4 {
        margin-top: 18px;
        margin-bottom: 8px;
        font-size: 18px;
        color: var(--primary-color);
    }

    /* Кнопки в аккордеоне */
    .accordion-content .contact-btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 16px;
        margin-top: 20px;
        margin-bottom: 15px;
    }

    /* Нумерованный список на планшетах */
    .numbered-list li {
        padding: 10px 0;
        padding-left: 20px;
        font-size: 14px;
    }

    .numbered-list li::before {
        width: 18px;
        height: 18px;
        font-size: 11px;
        left: -4px;
    }

    /* Двухстрочные заголовки на планшетах */
    .accordion-title .title-main {
        font-size: 0.95em;
    }

    .accordion-title .title-subtitle {
        font-size: 0.8em;
        margin-top: 4px;
    }
}

@media (max-width: 480px) {

    /* Адаптация workflow для очень маленьких экранов */
    .workflow-section {
        padding: 40px 0;
    }

    .workflow-title {
        font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-3xl));
    }

    .workflow-timeline {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .workflow-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }

    /* Убираем ссылки на вертикальную линию */

    .workflow-step {
        padding-left: 60px;
        margin-bottom: 30px;
    }

    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
        top: -3px;
        right: -3px;
    }

    .step-content {
        padding: 20px;
        border-radius: 12px;
    }

    .step-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .step-description {
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    /* Убираем ссылки на feature-tags */

    /* Еще более мелкие экраны */
    .step-number {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .service-details {
        padding: 8px 10px;
        margin: 10px 0;
        border-radius: 4px;
        font-size: 13px;
    }

    .service-details p {
        font-size: 13px;
        margin: 1px 0;
    }

    .service-details p strong {
        font-size: 13px;
    }

    .accordion-content .service-details p {
        font-size: 13px !important;
    }

    .accordion-content .annotation {
        font-size: 14px;
    }

    .service-warning {
        padding: 6px 8px;
        margin: 10px 0;
        border-radius: 4px;
    }

    .service-warning h4 {
        font-size: 14px;
        margin-bottom: 4px;
        margin-top: 0;
    }

    .service-warning p {
        font-size: 13px;
    }

    .leadgen-problem-item p {
        font-size: 14px;
    }

    .leadgen-problem-icon {
        margin-right: 8px;
    }

    /* Контент аккордеона на смартфонах */
    .accordion-content p {
        margin-top: 15px;
        margin-bottom: 10px;
        font-weight: 500;
        font-size: 16px;
    }

    .accordion-content h4 {
        margin-top: 15px;
        margin-bottom: 6px;
        font-size: 16px;
        color: var(--primary-color);
    }

    .accordion-content .contact-btn {
        margin-top: 18px;
        margin-bottom: 12px;
        padding: 14px 20px;
    }

    /* Нумерованный список на смартфонах */
    .numbered-list li {
        padding: 10px 0;
        padding-left: 18px;
        font-size: 14px;
    }

    .numbered-list li::before {
        width: 16px;
        height: 16px;
        font-size: 10px;
        left: -3px;
    }

    /* Двухстрочные заголовки на смартфонах */
    .accordion-title .title-main {
        font-size: 0.9em;
    }

    .accordion-title .title-subtitle {
        font-size: 0.75em;
        margin-top: 3px;
    }
}