/* Стили для страницы Маркетинг */

/* Секция "Как мы работаем" */
.workflow-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.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: 3rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    text-align: center;
    width: 100%;
}

.workflow-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.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: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Убираем вертикальную линию timeline */

.workflow-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
    padding-left: 120px;
    width: 100%;
}

.workflow-step:last-child {
    margin-bottom: 0;
}

.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(--white);
    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(--white);
    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%;
}

.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(--secondary-color);
    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: #f8f9fa;
    border-radius: 6px;
    padding: 12px 15px;
    margin: 15px 0;
    border-left: 2px solid var(--primary-color);
}

.service-details p {
    margin: 3px 0;
    font-weight: 500;
}

/* Предупреждения в услугах */
.service-warning {
    background: #fff3cd;
    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(--secondary-color);
}

.brand-on {
    color: var(--primary-color);
}

/* Стили для контента аккордеона */
.accordion-content p {
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.accordion-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Кнопки в аккордеоне */
.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;
}

/* Нумерованные списки в аккордеоне */
.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(--secondary-color);
    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(--secondary-color);
    font-style: italic;
}

/* Центрирование текста относительно иконок в проблемах */
.leadgen-problem-item {
    display: flex;
    align-items: center;
    transition: var(--transition-normal);
}

.leadgen-problem-item:hover {
    transform: translateX(10px);
}

.leadgen-problem-item p {
    margin: 0;
}

/* Стили для анимированных стрелочек */
.leadgen-problem-icon {
    margin-right: 15px;
    flex-shrink: 0;
}

.leadgen-problem-icon .reveal-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    animation: bounce-right 2s infinite;
}

.leadgen-problem-item:hover .reveal-icon {
    color: var(--primary-hover);
    transform: scale(1.2);
    animation: none;
}

/* Анимация подпрыгивания стрелочек */
@keyframes bounce-right {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(0);
    }

    40% {
        transform: translateX(5px);
    }

    60% {
        transform: translateX(3px);
    }
}

/* Дополнительная анимация при наведении */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.leadgen-problem-item:hover .leadgen-problem-icon {
    animation: pulse-green 1s ease-out;
}

/* Центрированный текст */
.centered-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Мобильная адаптация */
@media (max-width: 768px) {

    /* Адаптация секции workflow */
    .workflow-section {
        padding: 60px 0;
    }

    .workflow-header {
        margin-bottom: 60px;
    }

    .workflow-title {
        font-size: 2.2rem;
    }

    .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;
    }

    .service-details p {
        font-size: 14px;
        margin: 2px 0;
    }

    /* Адаптируем предупреждения */
    .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;
    }

    /* Адаптируем элементы проблем */
    .leadgen-problem-item {
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .leadgen-problem-item p {
        font-size: 15px;
        line-height: 1.4;
    }

    .leadgen-problem-icon {
        margin-right: 10px;
        margin-top: 2px;
        flex-shrink: 0;
    }

    /* Контент аккордеона на планшетах */
    .accordion-content p {
        margin-top: 18px;
        margin-bottom: 12px;
        font-weight: 500;
    }

    .accordion-content h4 {
        margin-top: 18px;
        margin-bottom: 8px;
        font-size: 16px;
    }

    /* Кнопки в аккордеоне */
    .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: 1.8rem;
    }

    .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;
    }

    .service-details p {
        font-size: 13px;
        margin: 1px 0;
    }

    .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: 14px;
    }

    .accordion-content h4 {
        margin-top: 15px;
        margin-bottom: 6px;
        font-size: 15px;
    }

    .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;
    }
}