
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── БАЗА ── */
body {
    background: #364651;
    color: #364651;
    line-height: 1.5;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: white; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.ast-single-post .entry-content a,
.ast-comment-content a:not(.ast-comment-edit-reply-wrap a) {
    text-decoration: none !important;
}
.ast-single-post .entry-content a:hover,
.ast-comment-content a:not(.ast-comment-edit-reply-wrap a):hover {
    color: #333333 !important;
    text-decoration: none !important;
}
#ast-scroll-top {
    background-color: var(--ast-border-color);
    font-size: 18px;
}

/* ── ШАПКА ── */
header {
    position: fixed;
    top: 0;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    font-size: 0.9rem;
    color: #364651;
    background-color: #364651;
}
.logo {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 3px;
    color: #ed1b24ee;
}
.header-nav { color: #364651; }
.header-nav svg { margin-left: 8px; }
.header-nav a:hover { color: white; transition: 0.3s; }
.header-nav a:hover svg path { fill: white; }

.masthead.line-decoration:not(.side-header):not(.mixed-header):not(.masthead-mobile-header) {
    border-bottom: 1px solid #36465133;
}

/* ── ЗАГОЛОВОК СТРАНИЦЫ ── */
.page-title.solid-bg { background-color: #364651; }
.page-title h1, .page-title h1 *, .page-title h1 a:hover, #page .page-title .entry-title {
    font-size: 3rem;
    text-align: center;
    margin: 40px 0;
    padding: 40px 0;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #ced4da 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-title .breadcrumbs, .page-title .breadcrumbs a {
    color: #364651;
    text-transform: none;
}
#main { padding: 0; background-color: #364651; }
.hero {
    max-width: 100vw !important;
    width: 100vw;
    height: 350px;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 0;
}
.hero::before {
    content: 'test';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('/wp-content/uploads/2026/06/top-5-uslugi-business-pr-group.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}
.hero > * {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    padding: 0 20px;
    margin-left: auto !important;
}
.hero-content-wrapper {
    padding: 60px;
    border-radius: 10px;
    display: inline-block;
    text-align: center;
}
.hero h1 {
    font-size: clamp(2.5rem, 3rem, 4rem);
    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;
}
.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.95;
    color: #f2f2f2;
    margin-bottom: 30px;
}

.hero-background-section {
    position: relative;
    width: 100%;
    height: 350px;
    background-image: url(/wp-content/uploads/2026/06/top-5-uslugi-business-pr-group.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-background-section::before {
  content: "\041F\043E\043F\0443\043B\044F\0440\043D\044B\0435\0020\0443\0441\043B\0443\0433\0438\0020\0430\0433\0435\043D\0442\0441\0442\0432\0430";  
    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); }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
/* Общее решение для .cta-primary/.cta-secondary, чтобы текст не переносился */
.cta-primary,
.cta-secondary {
    white-space: nowrap;
    min-width: 250px;
}


.cta-primary {
    display: inline-flex;
    padding: 18px 50px;
    background: linear-gradient(135deg, #fff 50%, #8791a5 100%);
    color: #ed1b24;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 12px 30px #5b0b0fee;
    transition: all 0.3s;
}
.cta-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px #ed1b24ee;
}


.info-card {
    width: 400px;
    min-height: 250px;
    background: #fff;
    color: #050810;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.3s;
}
.info-card h3 { color: #ed1b24ee; font-size: 1.5rem; margin-bottom: 15px; }
.info-card p { color: #555; font-size: 0.9rem; }
.hint { font-size: 0.9rem; color: #888; margin-bottom: 20px; font-style: italic; }
#cardImage { max-width: 100px !important; height: auto !important; margin: 10px auto !important; display: block !important; }

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin: 150px 20px 50px 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #ed1b24ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-subtitle {
    font-size: 1.2rem;
    color: #b0b8c4;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.container { text-align: center; max-width: 1200px; margin: 40px auto; padding: 20px; }
.container img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* ── ХРАНЕНИЕ ── */
.storage {
    background: #364651;
    border-radius: 24px;
    padding: 80px;
    border: 1px solid #364651;
    margin-bottom: 40px;
}
.storage-content { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.storage-text h3 { font-size: 2.2rem; margin-bottom: 24px; color: #ed1b24ee; }
.storage-text p { font-size: 1.1rem; color: #8fa0b5; margin-bottom: 32px; }
.storage-tech { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.tech-tag {
    background: #364651;
    padding: 12px 24px;
    border-radius: 30px;
    text-align: center;
    font-weight: 600;
    color: #ed1b24ee;
    border: 1px solid #8c8e92;
}

/* ── ЦЕННОСТИ ── */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.value-card {
    background: #1a222770;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #818183;
    transition: all 0.4s;
    height: 100%;
}
.value-card:hover {
    transform: translateY(-12px);
    border-color: #ed1b24ee;
    box-shadow: 0 30px 60px rgba(133, 134, 136, 0.2);
}
.value-card h4 { font-size: 1.4rem; margin-bottom: 20px; color: #ed1b24ee; }
.audience-title { font-size: 1.6rem; margin-bottom: 30px; color: #fff; }
.value-list { list-style: none; }
.value-list li { padding: 12px 0 12px 24px; position: relative; color: #ffffff; font-size: 1rem; }
.value-list li::before { content: "→"; position: absolute; left: 0; color: #ed1b24ee; font-weight: bold; }

/* ── ФИНАЛЬНЫЙ CTA ── */
.final-cta {
    text-align: center;
    padding: 60px 50px;
    background: linear-gradient(135deg, #29363e 0%, #1a222770 100%);
    border-radius: 24px;
    margin: 80px auto;
    border: 1px solid rgba(167, 169, 173, 0.3);
}
.final-cta h2 { font-size: 3.2rem; margin-bottom: 24px; color: white; }
.final-cta p {
    font-size: 1.3rem;
    color: #b0b8c4;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ── ФУТЕР ── */
#footer.footer-outline-decoration,
#footer.solid-bg {
    background: #364651 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}
#footer { color: #fff !important; }
#cardText {
    font-size: 1rem !important;
    line-height: 1.6;
    color: #F0F5FA;
    margin: 20px 0;
    text-align: center;
}

/* ── WP БЛОКИ КНОПОК ── */
.wp-block-columns.is-layout-flex { justify-content: center; align-items: center; }
.wp-block-column { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wp-block-column .cta-primary { display: inline-block; margin: 0 auto; }


@media (max-width: 1200px) {
    .ast-plain-container.ast-no-sidebar #primary {
        margin-top: 0 !important;
        margin-bottom: 60px;
    }
    .hero-background-section {height: 220px;}
}

@media (max-width: 1024px) {
    .storage-content { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .data-lifecycle { width: 700px; height: 700px; }
    .lifecycle-item { width: 120px; height: 120px; font-size: 0.9rem; }
    .lifecycle-item span { font-size: 2.2rem; }
  .hero-background-section {height: 150px;}
    .hero::before { background-image: url('/wp-content/uploads/2026/01/f768-s.png'); }
}

@media (max-width: 992px) {
    .hero-main-section { flex-direction: column; }
    .hero-background-section {height: 250px;}
}

@media (max-width: 768px) {
    .hero { padding: 100px 20px 0; }
    .hero::before { background-image: url('/wp-content/uploads/2026/01/f480-s.png'); }
    .hero h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
    .hero-content-wrapper { padding: 40px 20px; }
    .hero-background-section{height: 220px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .cta-primary, .cta-secondary { width: 100%; min-width: auto; padding: 16px 30px; font-size: 1.1rem; }
    .data-lifecycle { width: 95vw; height: 95vw; max-height: 500px; }
    .lifecycle-item { width: 100px; height: 100px; font-size: 0.8rem; padding: 8px; }
    .lifecycle-item span { font-size: 2rem; }
    .storage { padding: 50px 30px; }
    .values-grid { grid-template-columns: 1fr; }

    .section-title {
        font-size: 1.2rem;
        text-align: center;
        margin: 50px 0 20px 0;
    }
    .section-subtitle { font-size: 0.85rem; color: #fcfcfc; text-align: center; margin: 0 auto 20px; }
    h2, .entry-content h2, .entry-title h2, .section-title {
        font-weight: 700 !important;
        background: none !important;
        -webkit-text-fill-color: initial !important;
        background-clip: unset !important;
        text-transform: uppercase;
        letter-spacing: 2px;
    }
    .final-cta h2 { font-size: 1.2rem; margin-bottom: 14px; color: white; }

    .footer-grid, .stats { grid-template-columns: 1fr; flex-direction: column; gap: 30px; }
}

@media (max-width: 480px) {
    .hero { min-height: 220px; padding: 40px 15px;height: 220px; }
    .hero h1 { font-size: 1.5rem; }
    .hero-content-wrapper { padding: 20px; }
    .cta-primary, .cta-secondary { padding: 14px 20px; font-size: 1rem; }
     .hero-background-section {height: 160px !important;
}
/* ============================================================
   Главная: единые боковые отступы на мобильных
   --m-side: от края экрана до блока
   --m-pad:  от границы блока до текста (слева = справа)
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --m-side: 10px;
        --m-pad: 14px;
    }

    /* Блоки-секции */
    body section {
        margin: 10px var(--m-side);
        padding: 20px var(--m-pad);
    }

    /* Плашки, у которых свой фон или рамка */
    body .use-cases,
    body .final-cta {
        padding-left: var(--m-pad);
        padding-right: var(--m-pad);
    }

    /* Заголовки и подзаголовки не добавляют свой боковой отступ */
    body section h2,
    body section .section-title,
    body section .section-subtitle {
        margin-left: 0;
        margin-right: 0;
    }

    /* UAGB-заголовки: убираем margin-left: 10px, чтобы текст встал в общую линию */
    body .wp-block-uagb-advanced-heading h2,
    body .wp-block-uagb-advanced-heading .uagb-heading-text h2.text-left {
        margin-left: 0;
    }

    /* Карточки UAGB с цифрами (1–5).
       !important оставлен: плагин генерирует свои inline-стили с непредсказуемой специфичностью */
    .uagb-block-2bb967ca > .uagb-container-inner-blocks-wrap,
    .uagb-block-4b2c6c10 > .uagb-container-inner-blocks-wrap {
        padding-left: var(--m-pad) !important;
        padding-right: var(--m-pad) !important;
    }

    /* Карточки внутри секций: чтобы отступы не суммировались.
       Если у карточки есть своя рамка/фон и текст «липнет» к ней,
       удалите этот блок целиком. */
    section .solution-card,
    section .value-card,
    section .info-card {
        padding-left: 0;
        padding-right: 0;
    }


.hero-background-section::before {
    content: "Популярные услуги агентства";
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    background: linear-gradient(135deg, #f1050052 0%, #f10500 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.8rem;
    padding: 8px 14px;
    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;
}
}

@media (max-width: 480px) {
    :root {
        --m-side: 8px;
        --m-pad: 12px;
    }
}