/*
 * page-base.css
 * Общая база для страниц услуг: custom-6723, custom-7033, custom-7402,
 * custom-7505, custom-7527, custom-8179, custom-8187, custom-strategy
 * В functions.php добавить загрузку: enqueue_style('page-base', .../page-base.css)
 */

/* ─── Структура страницы ─── */
.lifecycle-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

/* ─── Hero-баннер (изображение за шапкой) ─── */
.hero-background-section {
    position: relative;
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
}

/* Подпись поверх баннера */
.hero-background-section::before {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    background: linear-gradient(135deg, #f1050052 0%, #f10500 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 10px 30px rgba(183, 28, 28, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0   rgba(211, 47, 47, 0.7); }
    70%  { box-shadow: 0 0 0 15px rgba(211, 47, 47, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(211, 47, 47, 0);   }
}

/* ─── Заголовок страницы (entry-header) ─── */
header.entry-header .entry-title {
    font-weight: 600;
    font-size: 1.882rem;
    color: #6a7786;
}

/* ─── Hero h1 ─── */
.hero h1,
header.entry-header .entry-title h1 {
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #aaa9a9ee 50%, #ced4da 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* ─── Step-карточки ─── */
.step-card {
    background: linear-gradient(135deg, #28343e 0%, #0d1114 100%);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}
.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}
.step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 100%;
    background: linear-gradient(180deg, #ed1b24ee 0%, #b1b9c5 100%);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: #364651;
    text-align: right;
    margin-bottom: 20px;
    line-height: 1;
}
.step-title {
    font-size: 1.5rem;
    color: white;   
    font-weight: 600;
}
.step-description {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.8;
}

/* ─── Strategy-блок ─── */
.strategy-section {
    background: linear-gradient(135deg, #28343e 0%, #12171c 100%);
    border-radius: 20px;
    padding: 60px 40px;
    margin-top: 40px;
}
.strategy-title { font-size: 2rem; color: #ffffff; margin-bottom: 25px; font-weight: 700; }
.strategy-text  { font-size: 1.1rem; line-height: 2; color: #f6f6f6; margin-bottom: 30px; }
.highlight      { color: #ed1b24ee; font-weight: 700; }

/* ─── CTA-button (ссылка-кнопка внутри контента) ─── */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #ed1b24ee 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}
.cta-button:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4); }

/* ─── Медиаплан ─── */
.media-plan       { margin-top: 60px; padding-top: 60px; }
.media-plan-title { font-size: 1.8rem; color: #2d3748; margin-bottom: 25px; font-weight: 700; }
.media-plan-text  { font-size: 1.1rem; line-height: 2; color: var(--ast-global-color-subtle-background); margin-bottom: 30px; }

/* ─── Inclusions ─── */
.inclusions {
    background: rgba(15, 20, 32, 0.7);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.inclusions-title { font-size: 1.5rem; color: #ed1b24ee; margin-bottom: 20px; font-weight: 700; }
.inclusions h4    { color: #f0f1f6; font-size: 1.5rem; margin-bottom: 20px; font-weight: 700; }

.inclusions-list { list-style: none; padding: 0; }
.inclusions-list li { padding: 12px 0; font-size: 1.1rem; color: #eef0f3; }
.inclusions-list li:last-child { border-bottom: none; }
.inclusions-list li::before { content: '✓'; color: #ed1b24ee; font-weight: 700; margin-right: 10px; font-size: 1.2rem; }

/* ─── Final CTA (страничная версия) ─── */
.final-cta {
    padding: 40px 50px;
    background: linear-gradient(135deg, #29363e 0%, #1a222770 100%);
}
.final-cta h2 { font-size: 3.2rem; margin-bottom: 24px; color: white; }
.final-cta p  { font-size: 1.3rem; color: #b0b8c4; margin-bottom: 50px; margin-left: auto; margin-right: auto; }

/* ─── Адаптив ─── */
@media (min-width: 1200px) {
    .ast-plain-container.ast-no-sidebar #primary
 {         margin-bottom: 0px;
    }
     }
@media (max-width: 768px) {
    .lifecycle-steps { grid-template-columns: 1fr; }
    .strategy-section { padding: 40px 20px; }
    .hero-background-section { height: 220px; }
    .hero-background-section::before {
        font-size: 0.95rem;
        padding: 10px 20px;
        bottom: 10px;
        right: 10px;
        letter-spacing: 0.5px;
    }

    .step-number { font-size: 2.5rem; }
    .final-cta { padding: 20px 20px; }
    .final-cta h2 { font-size: 1.8rem; }
    .final-cta p  { font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .hero-background-section { height: 160px; }
    .hero-background-section::before {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
    .step-number { font-size: 2rem; }
}
