/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2d3142;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #1a3a6b; text-decoration: none; transition: color .2s; }
a:hover { color: #e8a020; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===== VARIABLES ===== */
:root {
    --blue: #1a3a6b;
    --blue-dark: #122952;
    --orange: #e8a020;
    --orange-dark: #d4901a;
    --gray-bg: #f0f4f9;
    --gray-text: #6b7280;
    --border: #e0e4ed;
    --shadow: 0 4px 24px rgba(0,0,0,0.07);
    --radius: 12px;
}

/* ===== HEADER ===== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 30px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.site-logo a {
    font-size: 20px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1.2;
}

.site-logo span { color: var(--orange); }

/* Top-level nav list */
.main-nav > ul {
    display: flex;
    gap: 4px;
    align-items: center;
    list-style: none;
}

/* Top-level items */
.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    font-size: 14px;
    font-weight: 500;
    color: #444;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all .2s;
    display: block;
    white-space: nowrap;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a {
    color: var(--blue);
    background: var(--gray-bg);
}

/* Стрелка у пункта с подменю */
.main-nav > ul > li.menu-item-has-children > a::after {
    content: " ▾";
    font-size: 10px;
    opacity: 0.55;
    margin-left: 2px;
}

/* ===== DROPDOWN ===== */
.main-nav > ul > li > ul {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    min-width: 230px;
    padding: 8px;
    z-index: 9999;
    list-style: none;
    border: 1px solid var(--border);
}

.main-nav > ul > li:hover > ul {
    display: block;
}

.main-nav > ul > li > ul > li > a {
    display: block;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 400;
    border-radius: 6px;
    color: #333;
    white-space: nowrap;
    transition: all .15s;
}

.main-nav > ul > li > ul > li > a:hover {
    background: var(--gray-bg);
    color: var(--blue);
}

.header-cta {
    background: var(--orange);
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 6px;
    font-weight: 700 !important;
    white-space: nowrap;
}

.header-cta:hover { background: var(--orange-dark) !important; color: #fff !important; }

.burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.burger span { width: 24px; height: 2px; background: var(--blue); border-radius: 2px; transition: all .3s; display: block; }

/* ===== HERO ===== */
.hero {
    background: var(--blue);
    padding: 90px 0;
}

/* Hero с фоновым изображением */
.hero.hero-img {
    background: url('/wp-content/uploads/hero/hero-bg.webp') center center / cover no-repeat;
    position: relative;
}
.hero.hero-img .container { position: relative; z-index: 1; }
.hero.hero-img h1 { color: var(--blue) !important; }
.hero.hero-img .hero-sub { color: #444 !important; }
.hero.hero-img .badge { background: rgba(240,244,249,0.92); color: var(--blue); }
.hero.hero-img .btn-outline {
    background: #fff;
    color: var(--blue);
    border: 2px solid var(--blue);
}
.hero.hero-img .btn-outline:hover { background: var(--blue); color: #fff; }

/* ===== HERO MAIN ===== */
.hero-main {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

/* Фоновое изображение — абсолютное, справа */
.hero-bg {
    position: absolute;
    top: 0; right: 0;
    width: 60%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Белый градиент поверх — от полного белого слева до прозрачного */
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 70%;
    height: 100%;
    background: linear-gradient(
        to right,
        #ffffff 0%,
        #ffffff 45%,
        rgba(255,255,255,0.9) 58%,
        rgba(255,255,255,0.4) 72%,
        rgba(255,255,255,0) 85%
    );
    z-index: 1;
}

/* Контейнер поверх всего */
.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    min-height: 700px;
}

.hero-text-block {
    max-width: 500px;
    padding: 60px 0;
}

.hero-text-block h1 {
    font-size: clamp(30px, 4vw, 54px) !important;
    font-weight: 800 !important;
    color: var(--blue) !important;
    line-height: 1.1 !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: 16px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 420px;
}

.hero-badges-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 8px;
    margin-bottom: 32px;
    width: fit-content;
}

.badge-dark {
    background: #f0f4f9;
    color: var(--blue);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid rgba(26,58,107,0.08);
}

.hero-cta-row {
    display: flex;
    gap: 14px;
    align-items: center;
}

.btn-blue-outline {
    background: #fff;
    color: var(--blue);
    border: 2px solid var(--blue);
    padding: 15px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    transition: all .2s;
    display: inline-block;
}
.btn-blue-outline:hover { background: var(--blue); color: #fff; }

/* Адаптив hero */
@media (max-width: 900px) {
    .hero-main { min-height: 580px; }
    .hero-bg { width: 55%; }
    .hero-container { min-height: 580px; }
    .hero-text-block h1 { font-size: 32px !important; }
}

@media (max-width: 640px) {
    /* Убираем ВСЕ фоновые изображения в hero на мобиле */
    .hero,
    .hero-img,
    .hero.hero-img,
    .hero-main,
    .hero-split {
        background-image: none !important;
        background-color: transparent !important;
    }
    .hero-bg {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    .hero-overlay { display: none !important; }
    .hero-container { min-height: auto !important; padding: 0 20px; background: transparent !important; }
    .hero-text-block { padding: 50px 0; max-width: 100%; }
    .hero-text-block h1 { color: var(--blue) !important; font-size: 28px !important; }
    .hero-desc { color: #444 !important; }
    .badge-dark { background: rgba(240,244,249,0.7); color: var(--blue); border-color: transparent; }
    .hero-cta-row { flex-direction: column; }
    .hero-cta-row .btn { width: 100%; text-align: center; }
    .btn-blue-outline { border-color: var(--blue); color: var(--blue); background: rgba(255,255,255,0.6); }

    /* ===== МОБИЛЬНЫЙ ДИЗАЙН: логотип на фоне, прозрачные блоки ===== */

    /* Логотип фиксированным водяным знаком — на всех страницах */
    body.page::before,
    body.home::before {
        content: '';
        position: fixed;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        width: 80vw;
        height: 80vw;
        background-image: url('/wp-content/uploads/hero/logo-bg.webp');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: contain;
        opacity: 0.27;
        z-index: 0;
        pointer-events: none;
    }
    body.page > *:not(.float-contacts):not(.site-header):not(#cookie-banner),
    body.home > *:not(.float-contacts):not(.site-header):not(#cookie-banner) { position: relative; z-index: 1; }
    .float-contacts { z-index: 998 !important; position: fixed !important; }
    .site-header { position: sticky !important; z-index: 1000 !important; }

    /* ── Главная страница: прозрачные блоки ── */
    /* Статистика */
    .stats,
    .stats-grid,
    .stat-item { background: transparent !important; border-color: rgba(26,58,107,0.1) !important; }

    /* Секции */
    .section { background: transparent !important; }
    .section-gray { background: rgba(240,244,249,0.35) !important; }
    .section-blue { background: rgba(26,58,107,0.88) !important; }

    /* Карточки направлений */
    .card { background: rgba(255,255,255,0.55) !important; backdrop-filter: blur(3px); }
    .card:hover { background: rgba(255,255,255,0.75) !important; }

    /* Блок «Почему мы» */
    .why-card { background: rgba(255,255,255,0.55) !important; backdrop-filter: blur(3px); }

    /* Кейсы */
    .case-card { background: rgba(255,255,255,0.55) !important; }

    /* Теги направлений */
    .tag { background: rgba(255,255,255,0.6) !important; }

    /* Форма */
    .form-wrap { background: transparent; }

    /* Убираем синий фон hero на страницах */
    body.page .service-hero {
        background: transparent !important;
    }
    body.page .service-hero h1 { color: var(--blue) !important; }
    body.page .service-hero p { color: #444 !important; }
    body.page .trust-row .trust-item { color: #666 !important; }
    body.page .trust-row .trust-item strong { color: var(--blue) !important; }

    /* Прозрачные блоки контента */
    body.page .situations-block,
    body.page .steps-block,
    body.page .price-block,
    body.page .faq-block,
    body.page .page-form-block {
        background: rgba(255,255,255,0.6) !important;
        backdrop-filter: blur(2px);
    }

    body.page .step-item {
        background: rgba(240,244,249,0.5) !important;
    }

    body.page .case-block {
        background: rgba(232,245,233,0.6) !important;
    }

    /* Синий CTA блок внизу — полупрозрачный */
    body.page .page-cta {
        background: rgba(26,58,107,0.85) !important;
    }

    /* Таблица цен */
    body.page .price-table tr:nth-child(even) td {
        background: rgba(240,244,249,0.4) !important;
    }
    body.page .price-table td {
        background: rgba(255,255,255,0.3) !important;
    }
}

/* Split hero — светлый фон, изображение справа */
.hero-split {
    background: #fff;
    padding: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-split-inner {
    display: grid;
    grid-template-columns: 55% 45%;
    min-height: 540px;
    align-items: stretch;
}

.hero-split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px 50px 70px 0;
    padding-left: max(30px, calc((100vw - 1200px) / 2 + 30px));
}

/* Переопределяем hero h1 для split-варианта */
.hero-split .hero-split-content h1 {
    font-size: clamp(26px, 3.2vw, 44px) !important;
    font-weight: 800 !important;
    color: var(--blue) !important;
    line-height: 1.15 !important;
    margin-bottom: 16px !important;
}

.hero-split .hero-sub {
    font-size: 17px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
}

.hero-split-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.badge-dark {
    background: var(--gray-bg);
    color: var(--blue);
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.hero-split .hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-blue-outline {
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    transition: all .2s;
    display: inline-block;
}
.btn-blue-outline:hover { background: var(--blue); color: #fff; }

.hero-split-image {
    overflow: hidden;
    position: relative;
}

.hero-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

@media (max-width: 900px) {
    .hero-split-inner { grid-template-columns: 1fr; min-height: auto; }
    .hero-split-image { height: 240px; }
    .hero-split-content { padding: 50px 20px; }
}

@media (max-width: 600px) {
    .hero-split-image { display: none; }
    .hero-split-content { padding: 50px 20px; }
    .hero-split-badges { gap: 6px; }
    .badge-dark { font-size: 12px; }
}

.hero h1 {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 680px;
}

.hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
    max-width: 580px;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.badge {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 7px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    transition: all .2s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--orange);
    color: #fff;
}
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: #fff; color: #fff; }

.btn-blue {
    background: var(--blue);
    color: #fff;
}
.btn-blue:hover { background: var(--blue-dark); color: #fff; }

/* ===== STATS ===== */
.stats {
    background: var(--gray-bg);
    padding: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    text-align: center;
    padding: 32px 20px;
    border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-num {
    font-size: 38px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1.1;
}

.stat-label {
    font-size: 13px;
    color: var(--gray-text);
    margin-top: 6px;
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-gray { background: var(--gray-bg); }
.section-blue { background: var(--blue); }

.section-title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    color: var(--blue);
    text-align: center;
    margin-bottom: 40px;
}

.section-title-white { color: #fff; }

/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 22px;
    margin-bottom: 44px;
}

.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--blue);
    transition: transform .2s, box-shadow .2s;
    display: block;
    text-decoration: none;
    color: inherit;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.10); color: inherit; }
.card-urgent { border-top-color: var(--orange); }

.card-icon { font-size: 30px; margin-bottom: 14px; }

.card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-more {
    font-size: 14px;
    font-weight: 700;
    color: var(--orange);
}

/* ===== ALL DIRECTIONS TAGS ===== */
.directions-list {
    text-align: center;
}

.directions-list p {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    margin-bottom: 14px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: center;
}

.tag {
    background: #fff;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 13px;
    color: #444;
    transition: all .2s;
}
.tag:hover { border-color: var(--blue); color: var(--blue); background: var(--gray-bg); }

/* ===== WHY US ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.why-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.why-icon { font-size: 34px; margin-bottom: 14px; }
.why-card h4 { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.why-card p { font-size: 13px; color: var(--gray-text); line-height: 1.6; }

/* ===== CASES ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.case-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border-left: 4px solid #2e7d32;
}

.case-cat {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 14px;
}

.case-card p { font-size: 14px; line-height: 1.7; color: #444; margin-bottom: 14px; }
.case-result { font-size: 20px; font-weight: 800; color: var(--blue); }
.case-period { font-size: 12px; color: #aaa; margin-top: 4px; }

/* ===== FORM SECTION ===== */
.form-section { text-align: center; }
.form-section h2 { color: #fff; margin-bottom: 12px; }
.form-section > p { color: rgba(255,255,255,0.82); font-size: 16px; margin-bottom: 30px; line-height: 1.6; }
.form-wrap { max-width: 560px; margin: 0 auto; }

/* CF7 styles */
.wpcf7-form { text-align: left; }
.wpcf7-form p { margin-bottom: 12px; }

/* Два поля в строку */
.cf7-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.cf7-row p { margin-bottom: 0; }

/* Согласие */
.cf7-consent { font-size: 12px !important; opacity: 0.75; line-height: 1.5; }
.cf7-consent a { color: #e8a020; }
.cf7-consent .wpcf7-list-item { margin: 0; }
.cf7-consent .wpcf7-list-item-label { font-size: 12px; }

/* Label */
.wpcf7-form label { display: block; font-size: 13px; margin-bottom: 4px; opacity: 0.7; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: border-color .2s;
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder { color: rgba(255,255,255,0.55); }
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.15);
}
.wpcf7-form input[type="submit"] {
    background: var(--orange);
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background .2s;
}
.wpcf7-form input[type="submit"]:hover { background: var(--orange-dark); }

/* ===== SERVICE PAGE ===== */
.service-hero {
    background: var(--blue);
    padding: 70px 0;
}
.service-hero h1 { font-size: clamp(24px, 3.5vw, 40px); font-weight: 800; color: #fff; margin-bottom: 14px; max-width: 700px; }
.service-hero p { font-size: 17px; color: rgba(255,255,255,0.85); max-width: 600px; line-height: 1.7; margin-bottom: 30px; }
.trust-row { display: flex; gap: 20px; flex-wrap: wrap; }
.trust-item { font-size: 13px; color: rgba(255,255,255,0.75); }
.trust-item strong { color: #fff; }

.page-form-block {
    background: var(--gray-bg);
    border-radius: var(--radius);
    padding: 32px;
    margin: 40px 0;
}
.page-form-block h3 { font-size: 20px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.page-form-block > p { color: var(--gray-text); margin-bottom: 20px; }
.page-form-block .wpcf7-form input[type="text"],
.page-form-block .wpcf7-form input[type="tel"],
.page-form-block .wpcf7-form textarea {
    background: #fff;
    border: 2px solid var(--border);
    color: #333;
}
.page-form-block .wpcf7-form input::placeholder,
.page-form-block .wpcf7-form textarea::placeholder { color: #aaa; }
.page-form-block .wpcf7-form input:focus,
.page-form-block .wpcf7-form textarea:focus { border-color: var(--blue); }

.situations-block {
    background: #fff8e1;
    border-left: 4px solid var(--orange);
    padding: 24px 28px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 36px 0;
}
.situations-block h2 { font-size: 20px; font-weight: 700; color: var(--blue); margin-bottom: 16px; }
.situations-block ul { padding-left: 0; }
.situations-block ul li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}
.situations-block ul li::before { content: "→"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }

.steps-block { margin: 36px 0; }
.steps-block h2 { font-size: 24px; font-weight: 700; color: var(--blue); margin-bottom: 24px; }
.step-item {
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--gray-bg);
    border-radius: 10px;
}
.step-num {
    width: 36px;
    height: 36px;
    background: var(--blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}
.step-content h3 { font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.step-content p { font-size: 14px; color: var(--gray-text); line-height: 1.6; }

.price-block { margin: 36px 0; }
.price-block h2 { font-size: 24px; font-weight: 700; color: var(--blue); margin-bottom: 20px; }
.price-table { width: 100%; border-collapse: collapse; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 15px rgba(0,0,0,0.05); }
.price-table th { background: var(--blue); color: #fff; padding: 14px 18px; text-align: left; font-size: 14px; }
.price-table td { padding: 13px 18px; font-size: 14px; border-bottom: 1px solid var(--border); }
.price-table tr:nth-child(even) td { background: var(--gray-bg); }
.price-table tr:last-child td { border-bottom: none; }
.price-table .price-val { font-weight: 700; color: var(--blue); }

.case-block {
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    padding: 24px 28px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 36px 0;
}
.case-block h2 { font-size: 20px; font-weight: 700; color: #1b5e20; margin-bottom: 14px; }
.case-block p { font-size: 14px; line-height: 1.7; color: #333; margin-bottom: 8px; }
.case-block .result { font-size: 22px; font-weight: 800; color: #1b5e20; margin-top: 14px; }

.faq-block { margin: 36px 0; }
.faq-block h2 { font-size: 24px; font-weight: 700; color: var(--blue); margin-bottom: 20px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 15px; font-weight: 600; color: var(--blue); margin-bottom: 10px; cursor: pointer; }
.faq-a { font-size: 14px; color: var(--gray-text); line-height: 1.7; }

.page-cta {
    background: var(--blue);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    margin: 40px 0;
}
.page-cta h2 { color: #fff; font-size: 24px; margin-bottom: 10px; }
.page-cta p { color: rgba(255,255,255,0.8); margin-bottom: 24px; }
.page-cta .wpcf7-form input[type="text"],
.page-cta .wpcf7-form input[type="tel"],
.page-cta .wpcf7-form textarea {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.25);
    color: #fff;
}
.page-cta .wpcf7-form input::placeholder { color: rgba(255,255,255,0.55); }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--blue);
    color: rgba(255,255,255,0.75);
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}

.footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }

.footer-phone {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    display: block;
}
.footer-phone:hover { color: var(--orange); }

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,0.7) !important; }
.site-footer a:hover { color: var(--orange) !important; }
.footer-col ul li a { font-size: 14px; }
.footer-phone { color: #fff !important; font-size: 20px; font-weight: 700; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* ===== BLOG ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.post-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s;
}
.post-card:hover { transform: translateY(-3px); }
.post-card-body { padding: 24px; }
.post-cat { font-size: 12px; font-weight: 600; color: var(--orange); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.post-card h2 a { font-size: 18px; font-weight: 700; color: var(--blue); line-height: 1.4; }
.post-card h2 a:hover { color: var(--orange); }
.post-excerpt { font-size: 14px; color: var(--gray-text); line-height: 1.6; margin: 10px 0 16px; }
.post-meta { font-size: 12px; color: #aaa; }

/* ===== CONSULT DROPDOWN ===== */
.consult-wrap {
    position: relative;
    display: inline-block;
}

.consult-drop {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    min-width: 220px;
    z-index: 999;
    overflow: hidden;
}

.consult-wrap.open .consult-drop { display: block; }

.consult-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #333 !important;
    font-size: 15px;
    font-weight: 500;
    transition: background .15s;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}
.consult-item:last-child { border-bottom: none; }
.consult-item:hover { background: var(--gray-bg); color: var(--blue) !important; }
.consult-item svg { flex-shrink: 0; color: var(--blue); }

/* ===== FLOATING CONTACT BUTTONS ===== */

@keyframes pulse-phone {
    0%   { box-shadow: -3px 0 0 0 rgba(26,58,107,0.6), -6px 0 0 0 rgba(26,58,107,0.3); }
    50%  { box-shadow: -3px 0 0 6px rgba(26,58,107,0.2), -6px 0 0 12px rgba(26,58,107,0.08); }
    100% { box-shadow: -3px 0 0 0 rgba(26,58,107,0.6), -6px 0 0 0 rgba(26,58,107,0.3); }
}
@keyframes pulse-tg {
    0%   { box-shadow: -3px 0 0 0 rgba(0,136,204,0.6), -6px 0 0 0 rgba(0,136,204,0.3); }
    50%  { box-shadow: -3px 0 0 6px rgba(0,136,204,0.2), -6px 0 0 12px rgba(0,136,204,0.08); }
    100% { box-shadow: -3px 0 0 0 rgba(0,136,204,0.6), -6px 0 0 0 rgba(0,136,204,0.3); }
}
@keyframes pulse-max {
    0%   { box-shadow: -3px 0 0 0 rgba(255,99,71,0.6), -6px 0 0 0 rgba(255,99,71,0.3); }
    50%  { box-shadow: -3px 0 0 6px rgba(255,99,71,0.2), -6px 0 0 12px rgba(255,99,71,0.08); }
    100% { box-shadow: -3px 0 0 0 rgba(255,99,71,0.6), -6px 0 0 0 rgba(255,99,71,0.3); }
}

.float-contacts {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.float-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 14px 0 0 14px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: max-width .3s ease, background .2s;
    overflow: hidden;
    max-width: 60px;
}

.float-btn:hover {
    max-width: 210px;
    color: #fff !important;
}

.float-btn svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.float-btn span {
    opacity: 0;
    transition: opacity .15s ease .15s;
}
.float-btn:hover span { opacity: 1; }

/* Цвета и пульсация */
.float-phone {
    background: #1a3a6b;
    animation: pulse-phone 2.5s ease-in-out infinite;
}
.float-phone:hover { background: #122952; animation: none; box-shadow: none; }

.float-telegram {
    background: #0088cc;
    animation: pulse-tg 2.5s ease-in-out infinite .5s;
}
.float-telegram:hover { background: #0077b3; animation: none; box-shadow: none; }

.float-max {
    background: linear-gradient(135deg, #5B9BF8 0%, #9B6FE8 50%, #E86FC5 100%);
    animation: pulse-max 2.5s ease-in-out infinite 1s;
}
.float-max:hover { background: linear-gradient(135deg, #4a8ae0 0%, #8a5fd6 50%, #d65fb3 100%); animation: none; box-shadow: none; }

/* Мобиле */
@media (max-width: 768px) {
    .float-contacts { top: auto; bottom: 72px; transform: none; gap: 5px; }
    .float-btn { max-width: 50px; padding: 12px 13px; border-radius: 10px 0 0 10px; }
    .float-btn:hover { max-width: 50px; }
    .float-btn span { display: none; }
    .float-btn svg { width: 22px; height: 22px; }
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
    position: fixed;
    bottom: -120px;
    left: 0; right: 0;
    background: #1e2d4a;
    color: rgba(255,255,255,0.9);
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    transition: bottom .4s ease;
    flex-wrap: wrap;
}
#cookie-banner.cookie-visible { bottom: 0; }
.cookie-text { font-size: 14px; line-height: 1.6; flex: 1; min-width: 200px; }
.cookie-text a { color: #e8a020; }
.cookie-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.cookie-btn {
    background: #e8a020;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
.cookie-btn:hover { background: #d4901a; }
.cookie-link { font-size: 13px; color: rgba(255,255,255,0.6); }
.cookie-link:hover { color: #fff; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span:last-child { color: rgba(255,255,255,0.5); }

/* ===== ARTICLE META ===== */
.article-meta {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}

/* ===== BLOG GRID ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.blog-card { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.10); }

.blog-card-inner { display: block; padding: 28px; text-decoration: none; color: inherit; height: 100%; }

.blog-card-meta { font-size: 12px; color: #aaa; margin-bottom: 12px; font-weight: 500; }

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--blue);
    line-height: 1.4;
    margin-bottom: 12px;
}
.blog-card:hover .blog-card-title { color: var(--orange); }

.blog-card-excerpt {
    font-size: 14px;
    color: var(--gray-text);
    line-height: 1.65;
    margin-bottom: 18px;
}

.blog-card-more {
    font-size: 14px;
    font-weight: 700;
    color: var(--orange);
}

/* ===== PAGINATION ===== */
.blog-pagination { margin-top: 20px; }

.blog-pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    background: #fff;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all .2s;
}

.blog-pagination .page-numbers.current {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

.blog-pagination .page-numbers:hover:not(.current) {
    background: var(--gray-bg);
    border-color: var(--blue);
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
    width: auto;
    padding: 0 16px;
}

/* ===== ARTICLE LAYOUT ===== */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
    padding-top: 50px;
    padding-bottom: 20px;
    align-items: start;
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    min-width: 0;
}

.article-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--blue);
    margin: 32px 0 14px;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--blue);
    margin: 24px 0 10px;
}

.article-content p { margin-bottom: 16px; }

.article-content ul, .article-content ol {
    padding-left: 22px;
    margin-bottom: 16px;
}

.article-content ul li, .article-content ol li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* ===== ARTICLE SIDEBAR ===== */
.article-sidebar { position: sticky; top: 90px; }

.sidebar-cta {
    background: var(--blue);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.sidebar-cta h3 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.sidebar-cta p { color: rgba(255,255,255,0.8); font-size: 13px; margin-bottom: 18px; line-height: 1.5; }

.sidebar-nav {
    background: var(--gray-bg);
    border-radius: var(--radius);
    padding: 20px;
}

.sidebar-nav h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 14px;
}

.sidebar-nav ul { padding: 0; }
.sidebar-nav ul li { margin-bottom: 6px; }
.sidebar-nav ul li a {
    font-size: 14px;
    color: #444;
    transition: color .15s;
}
.sidebar-nav ul li a:hover { color: var(--blue); }
.sidebar-nav ul li:last-child a { color: var(--orange); font-weight: 600; }

/* ===== POST NAVIGATION ===== */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 30px 0 60px;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.post-nav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: var(--gray-bg);
    border-radius: var(--radius);
    text-decoration: none;
    transition: background .2s;
}
.post-nav-item:hover { background: #e4eaf5; }

.post-nav-label {
    font-size: 12px;
    color: #aaa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    line-height: 1.4;
}

.post-nav-next { text-align: right; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1/-1; }
}

@media (max-width: 960px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .post-navigation { grid-template-columns: 1fr; }
    .post-nav-next { text-align: left; }
}

@media (max-width: 768px) {
    .header-inner { padding: 14px 20px; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 16px 20px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .burger { display: flex; }
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 28px; }
    .hero-sub { font-size: 16px; }
    .section { padding: 55px 0; }
    .container { padding: 0 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .step-item { flex-direction: column; gap: 12px; }
    .price-table { font-size: 13px; }
    .price-table th, .price-table td { padding: 10px 12px; }
    .page-cta { padding: 28px 20px; }
    .page-form-block { padding: 24px 20px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .cards-grid { grid-template-columns: 1fr; }
    .cases-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .hero-btns { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
    .hero-badges { gap: 8px; }
    .badge { font-size: 12px; padding: 6px 12px; }
}
