/* ==================== HERO НОВЫЙ - ПРОФЕССИОНАЛЬНЫЙ РЕДИЗАЙН ==================== */

/* Фон и общие стили */
.hero-new {
    position: relative;
    min-height: 100vh;
    background: #0a1a2d;
    color: white;
    overflow: hidden;
    padding: 60px 0 80px;
    display: flex;
    align-items: center;
}

.hero-bg-parallax {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(10, 26, 45, 0.9) 0%, rgba(26, 82, 118, 0.8) 100%),
        url('https://legalorder.ru/wp-content/uploads/2026/01/1767256513.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: translateZ(0);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 107, 53, 0.1) 0%,
        rgba(255, 159, 67, 0.05) 50%,
        rgba(46, 134, 193, 0.1) 100%);
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 13fr 7fr; /* 1.3:0.7 = 13:7 */
    gap: 60px;
    align-items: start;
}

/* Стиль для кнопки отзывов в верхней панели */
.contact-bar-btn.reviews {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
}

.contact-bar-btn.reviews:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.contact-bar-btn.reviews i {
    margin-right: 5px;
    color: #ffd700;
}

/* ==================== ВЕРХНЯЯ КОНТАКТНАЯ ПАНЕЛЬ ==================== */
.top-contact-bar {
    background: rgba(10, 26, 45, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 159, 67, 0.3);
    padding: 15px 0; /* Уменьшил с 8px до 5px */
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Уменьшил тень */
}

.top-contact-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-contact-bar .contact-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-contact-bar .contact-bar-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-contact-bar .contact-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px; /* Уменьшил вертикальные отступы */
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    line-height: 1.2;
    outline: none; /* Убирает обводку браузера */
    -webkit-appearance: none; /* Убирает стандартные стили кнопок */
    -moz-appearance: none;
    appearance: none;
}

.top-contact-bar .contact-bar-btn i {
    font-size: 1.1rem;
}

/* Убираем голубизну на мобильных */
.top-contact-bar .contact-bar-btn:focus,
.top-contact-bar .contact-bar-btn:active,
.top-contact-bar .contact-bar-btn:visited {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    outline: none;
}

/* Telegram */
.top-contact-bar .contact-bar-btn.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 136, 204, 0.3);
}

/* Email */
.top-contact-bar .contact-bar-btn.email:hover {
    background: #dc3545;
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

/* Phone */
.top-contact-bar .contact-bar-btn.phone:hover {
    background: #28a745;
    border-color: #28a745;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

/* Исправляем Hero секцию - убираем лишний отступ */
.hero-new {
    padding-top: 60px !important; /* Уменьшил со 120px до 60px */
}

/* Мобильная версия */
@media (max-width: 768px) {
    .top-contact-bar {
        padding: 15px 0;
    }
    
    .top-contact-bar .contact-bar-content {
        justify-content: center;
    }
    
    .top-contact-bar .contact-bar-links {
        gap: 8px;
    }
    
    .top-contact-bar .contact-bar-btn {
        padding: 8px 12px;
        border-radius: 40px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    /* ИСПРАВЛЕНИЕ: скрываем текст на мобильных */
    .top-contact-bar .contact-bar-btn span {
        display: none; /* ← МЕНЯЕМ inline НА none */
    }
    
    .top-contact-bar .contact-bar-btn i {
        font-size: 1.2rem; /* Можно увеличить иконку */
        margin-right: 0; /* Убираем отступ, так как текста нет */
    }
    
    /* Цвета для мобильных при нажатии */
    .top-contact-bar .contact-bar-btn.telegram:active {
        background: #0088cc;
    }
    
    .top-contact-bar .contact-bar-btn.email:active {
        background: #dc3545;
    }
    
    .top-contact-bar .contact-bar-btn.phone:active {
        background: #28a745;
    }
}

@media (max-width: 480px) {
    .top-contact-bar .contact-bar-links {
        gap: 5px;
    }
    
    .top-contact-bar .contact-bar-btn {
        padding: 6px 10px;
    }
    
    /* ИСПРАВЛЕНИЕ: скрываем текст на маленьких экранах */
    .top-contact-bar .contact-bar-btn span {
        display: none;
    }
    
    .top-contact-bar .contact-bar-btn i {
        font-size: 1.1rem;
    }
}

/* ==================== КНОПКА КОНТАКТОВ В HERO ==================== */

.hero-contacts-button {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.hero-contacts-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 159, 67, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-contacts-button i {
    font-size: 1.3rem;
    color: #2E86C1;
}

.hero-contacts-button .button-text {
    font-size: 1.2rem;
    font-weight: 700;
}

.hero-contacts-button .button-subtext {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 500;
}

/* Анимация пульсации (опционально) */
@keyframes contacts-pulse {
    0% { border-color: rgba(255, 255, 255, 0.2); }
    50% { border-color: rgba(46, 134, 193, 0.4); }
    100% { border-color: rgba(255, 255, 255, 0.2); }
}

.hero-contacts-button {
    animation: contacts-pulse 3s infinite;
}

/* Левый блок */
.hero-branding {
    margin-bottom: 40px;
}

.specialization-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 159, 67, 0.3);
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #FF9F43;
}

.specialization-badge i {
    font-size: 1.2rem;
}

.hero-headline {
    margin-bottom: 40px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: white; /* ← ОСНОВНОЙ ЦВЕТ БЕЛЫЙ */
}

.title-line {
    display: block;
}

.title-line.accent {
    color: #FF9F43; /* ← АКЦЕНТ ОРАНЖЕВЫЙ */
    position: relative;
    display: inline-block;
}

.title-line.accent::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FF9F43, #FFD166);
    border-radius: 2px;
}

/* Тикер проблем */
.problem-ticker {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    max-width: 600px;
}

.ticker-track {
    position: relative;
    height: 50px;
    overflow: hidden;
}

.ticker-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.ticker-item.active {
    opacity: 1;
    transform: translateY(0);
}

.ticker-item i {
    color: #FF9F43;
    font-size: 1.3rem;
}

/* Подзаголовок-решение */
.hero-solution {
    margin-bottom: 40px;
}

.solution-title {
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    line-height: 1.4;
    color: white !important; /* ← ГЛАВНОЕ ИСПРАВЛЕНИЕ */
}

.solution-title i {
    color: #FF9F43;
    font-size: 1.8rem;
}

.solution-title .highlight {
    color: #FF9F43;
    font-weight: 700;
    font-size: 1.6rem;
}

/* Список особенностей */
.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 50px;
    max-width: 700px;
}

.feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: rgba(255, 159, 67, 0.3);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2E86C1, #1A5276);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.feature-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Срочный CTA */
.hero-urgent-cta {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* кнопки на всю ширину */
}

.urgency-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #FF6B35, #FF9F43);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
    width: fit-content;
    align-self: center; /* центрируем только этот элемент */
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.workflow-block {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 159, 67, 0.3);
}

/* Блок "Выберите свой случай" */
.steps-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #FF9F43;
    background: rgba(255, 255, 255, 0.12) !important; /* Светлый полупрозрачный */
    border-radius: 50px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    width: fit-content;
    backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.steps-title i {
    color: #FF9F43;
    font-size: 1.3rem;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: rgba(255, 159, 67, 0.3);
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #2E86C1, #1A5276);
    border-radius: 0 2px 2px 0;
}

.step-num {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FF9F43, #FF7F00);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255, 159, 67, 0.3);
}

.step-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.step-text strong {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 3px;
}

.step-text span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Улучшения для модульного блока */
.step-item {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: rgba(255, 159, 67, 0.3);
}

.step-price {
    color: #3182ce;
    font-weight: 700;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.step-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-item:hover .step-arrow {
    opacity: 1;
    color: #3182ce;
}

.urgency-badge i {
    color: #3182ce;
}

.cta-guarantee i {
    color: #38a169;
}

/* Акцент на модульность */
.workflow-block {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.steps-title {
    background: #f7fafc;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}

/* Соединительные линии между шагами */
.steps-list {
    position: relative;
}

.steps-list::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 19px; /* 40px/2 + 20px/2 */
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(46, 134, 193, 0.3) 0%,
        rgba(46, 134, 193, 0.3) 100%);
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
}

/* Стили для полезных разделов в сайдбаре */
.useful-sections-sidebar {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.useful-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.useful-title i {
    color: #ffd966;
    font-size: 18px;
}

.useful-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    text-decoration: none;
    color: white;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.useful-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
    border-color: #ffd966;
}

.useful-link i:first-child {
    font-size: 18px;
    color: #ffd966;
    width: 24px;
    text-align: center;
}

.useful-link span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.useful-link i:last-child {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}

.useful-link:hover i:last-child {
    color: #ffd966;
}

/* Стиль для неактивных ссылок */
.useful-link.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: rgba(255,255,255,0.02);
}

.useful-link.disabled:hover {
    transform: none;
    border-color: rgba(255,255,255,0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .steps-title {
        font-size: 1.1rem;
        padding: 10px 18px;
        margin: 0 auto 25px;
    }
    
    .step-item {
        padding: 15px;
    }
    
    .step-num {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .step-text strong {
        font-size: 1rem;
    }
    
    .step-text span {
        font-size: 0.85rem;
    }
    
    /* Убираем соединительную линию на мобильных */
    .steps-list::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .steps-title {
        font-size: 1rem;
        padding: 8px 16px;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 20px 15px;
    }
    
    .step-num {
        align-self: center;
    }
    
    .step-item::before {
        width: 100%;
        height: 4px;
        border-radius: 2px 2px 0 0;
    }
}

.hero-main-button {
    width: 100%;
    background: linear-gradient(135deg, #FF9F43, #FF7F00);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 25px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.hero-main-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 159, 67, 0.4);
}

.hero-main-button.pulse {
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0% { box-shadow: 0 5px 20px rgba(255, 159, 67, 0.3); }
    50% { box-shadow: 0 5px 30px rgba(255, 159, 67, 0.6); }
    100% { box-shadow: 0 5px 20px rgba(255, 159, 67, 0.3); }
}

.hero-main-button i {
    font-size: 1.5rem;
}

.button-text {
    font-size: 1.3rem;
}

.button-subtext {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.cta-guarantee {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.cta-guarantee i {
    color: #27AE60;
}

/* Правый блок */
.hero-trust-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ==================== СТАТИСТИКА В HERO (РЕДИЗАЙН ПОД СТИЛЬ "БЫСТРЫЙ СТАРТ") ==================== */

.trust-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Новый стиль для карточек статистики */
.trust-stats .stat-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 20px; /* Немного увеличил вертикальные отступы */
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* ИЗМЕНЕНО: выравнивание по центру */
    justify-content: center; /* Добавлено: центрирование по вертикали */
    gap: 8px; /* Немного увеличил отступ */
    cursor: default;
    transition: all 0.3s ease;
    color: white;
    text-align: center; /* ИЗМЕНЕНО: текст по центру */
    box-sizing: border-box;
}

.trust-stats .stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: rgba(255, 159, 67, 0.3);
}

/* Стилизуем число - УВЕЛИЧЕНО */
.trust-stats .stat-number {
    font-size: 2.4rem; /* УВЕЛИЧЕНО с 2rem до 2.4rem */
    font-weight: 700;
    color: #FF9F43;
    margin-bottom: 0;
    line-height: 1.2;
}

/* Стилизуем текст - УВЕЛИЧЕНО */
.trust-stats .stat-label {
    font-size: 1.1rem; /* УВЕЛИЧЕНО с 0.9rem до 1.1rem */
    color: rgba(255, 255, 255, 0.9); /* Сделал ярче (было 0.7) */
    font-weight: 500; /* Немного жирнее (было 400) */
    text-transform: none;
}

/* Адаптивность для мобильных */
@media (max-width: 992px) {
    .trust-stats .stat-number {
        font-size: 2.2rem;
    }
    .trust-stats .stat-label {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .trust-stats .stat-card {
        padding: 18px 15px;
    }
    .trust-stats .stat-number {
        font-size: 2rem;
    }
    .trust-stats .stat-label {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .trust-stats .stat-card {
        padding: 15px 12px;
    }
    .trust-stats .stat-number {
        font-size: 1.8rem;
    }
    .trust-stats .stat-label {
        font-size: 0.9rem;
    }
}

.quick-actions {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.actions-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #FF9F43;
}

.actions-title i {
    font-size: 1.3rem;
}

.action-button {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    text-align: left;
}

.action-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: rgba(255, 159, 67, 0.3);
}

.action-button i {
    font-size: 1.5rem;
    color: #2E86C1;
    flex-shrink: 0;
}

.action-content {
    flex: 1;
}

.action-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 3px;
}

.action-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 3px;
    white-space: normal !important;
    word-break: normal !important;
    line-height: 1.2;
}

.action-button:nth-child(5) .action-title {
    word-break: keep-all !important;
    hyphens: none !important;
}

.action-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.guarantee-block {
    background: rgba(26, 82, 118, 0.3);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(46, 134, 193, 0.3);
}

.guarantee-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2E86C1;
}

.guarantee-title i {
    font-size: 1.3rem;
}

.guarantee-list {
    list-style: none;
    padding: 0;
}

.guarantee-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.guarantee-list i {
    color: #27AE60;
    font-size: 1rem;
}

/* Улучшения для быстрых действий с ценами */
.action-price {
    color: #3182ce;
    font-weight: 700;
    font-size: 16px;
    margin-top: 5px;
    display: block;
}

/* Исправление позиционирования бейджей */
/* Оставляем только ключевые бейджи */
/*.action-button:nth-child(2) .action-badge,
.action-button:nth-child(4) .action-badge {
    display: none;
}

/* Оставляем только "Экономия 20%" */
/*.action-button:nth-child(5) .action-badge {
    display: block;
    background: #38a169;
    top: 12px;
    right: 12px;
    font-size: 11px;
    padding: 4px 8px;
    max-width: 80px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-features {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-new {
        padding: 60px 0 40px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature {
        padding: 20px;
    }
    
    .timer {
        font-size: 2rem;
    }
    
    .hero-main-button {
        padding: 20px;
        font-size: 1.1rem;
    }
    
    .button-text {
        font-size: 1.1rem;
    }
    
    .problem-ticker {
        padding: 15px;
    }
    
    .ticker-item {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .solution-title {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .timer {
        font-size: 1.8rem;
    }
    
    .specialization-badge {
        font-size: 0.85rem;
        padding: 10px 20px;
    }
}

/* ==================== ИСПРАВЛЕНИЕ ШИРИНЫ ==================== */

/* 1. Сбрасываем стандартные отступы */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Предотвращаем горизонтальный скролл */
}

/* 2. Основной контейнер для ПК */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box; /* Важно! */
}

/* 3. Для очень больших экранов (более 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* 4. Для экранов меньше 1200px */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }
}

/* 5. Для мобильных */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* 6. Исправляем растягивание секций */
section {
    width: 100%;
    box-sizing: border-box;
}

/* 7. Геро секция должна быть на всю ширину */
.hero-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    left: 0;
    right: 0;
    position: relative;
}

/* 8. Финальный CTA тоже на всю ширину */
.final-cta {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    left: 0;
    right: 0;
    position: relative;
}

/* 9. Если есть еще проблемы с гридами */
.problems-grid,
.cases-grid,
.stats-grid,
.advantages-grid,
.formats-grid {
    width: 100%;
    box-sizing: border-box;
}

/* 10. Исправление для карточек, которые выходят за границы */
.problem-card,
.case-card,
.stat-card,
.advantage,
.format-card {
    box-sizing: border-box;
    max-width: 100%;
}

/* ==================== ОСНОВНЫЕ СТИЛИ ==================== */
#legalorder-home {
    font-family: 'Roboto', sans-serif;
    color: #2C3E50;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
    color: #1A5276;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: #7F8C8D;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #FF9F43, #FF7F00);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 159, 67, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 159, 67, 0.4);
}

.btn-secondary {
    background: white;
    color: #2E86C1;
    border: 2px solid #2E86C1;
}

.btn-secondary:hover {
    background: #2E86C1;
    color: white;
}

.btn-urgent {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 159, 67, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 159, 67, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 159, 67, 0); }
}


/* ==================== СЕГМЕНТАЦИЯ ПО ПРОБЛЕМАМ (ИСПРАВЛЕННАЯ) ==================== */
.problems-section {
    background: #F8F9FA;
    padding: 80px 0;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.problem-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%; /* Фиксируем высоту */
    min-height: 320px; /* Минимальная высота для выравнивания */
}

.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #2E86C1;
}

.problem-icon {
    font-size: 3rem;
    color: #2E86C1;
    margin-bottom: 20px;
    height: 60px; /* Фиксированная высота иконки */
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-card h3 {
    color: #1A5276;
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 66px; /* Примерно 3 строки (22px × 3) */
    display: flex;
    align-items: center;
    justify-content: center;
}

.problem-card p {
    color: #7F8C8D;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1; /* Растягиваем параграф для заполнения пространства */
}

.problem-card strong {
    color: #2E86C1;
    font-weight: 700;
}

.problem-cta {
    color: #2E86C1;
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin-top: auto; /* Прижимаем к низу */
    padding-top: 15px;
    border-top: 1px solid rgba(46, 134, 193, 0.2);
    transition: all 0.3s ease;
}

.problem-card:hover .problem-cta {
    color: #FF9F43;
    border-top-color: rgba(255, 159, 67, 0.3);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .problems-section {
        padding: 60px 0;
    }
    
    .problems-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
        margin: 2rem auto 0;
    }
    
    .problem-card {
        min-height: 300px;
        padding: 25px;
    }
    
    .problem-card h3 {
        min-height: auto; /* На мобильных убираем фиксированную высоту */
        font-size: 1.2rem;
    }
    
    .problem-icon {
        font-size: 2.5rem;
        height: 50px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .problems-section {
        padding: 50px 0;
    }
    
    .problem-card {
        padding: 20px;
        min-height: 280px;
    }
    
    .problem-card h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .problem-card p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .problem-cta {
        font-size: 0.95rem;
    }
}

/* ==================== СТАТИСТИКА (ИСПРАВЛЕННАЯ) ==================== */
.stats-section {
    padding: 80px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF9F43, #2E86C1);
    opacity: 0.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 3rem;
    counter-reset: stat-counter;
}

.stat-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 15px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-height: 200px;
}

.stat-card::before {
    counter-increment: stat-counter;
    content: counter(stat-counter);
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(46, 134, 193, 0.05);
    line-height: 1;
    z-index: 0;
    font-family: 'Montserrat', sans-serif;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #2E86C1;
}

/* Добавим иконки для каждой карточки */
.stat-card:nth-child(1)::after {
    content: '\f2bb'; /* Иконка страховки */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 2.5rem;
    color: #2E86C1;
    margin-bottom: 20px;
    display: block;
    position: relative;
    z-index: 1;
}

.stat-card:nth-child(2)::after {
    content: '\f007'; /* Иконка человека */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 2.5rem;
    color: #27AE60;
    margin-bottom: 20px;
    display: block;
    position: relative;
    z-index: 1;
}

.stat-card:nth-child(3)::after {
    content: '\f0e0'; /* Иконка анализа */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 2.5rem;
    color: #FF9F43;
    margin-bottom: 20px;
    display: block;
    position: relative;
    z-index: 1;
}

.stat-card:nth-child(4)::after {
    content: '\f0f6'; /* Иконка суда */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 2.5rem;
    color: #9B59B6;
    margin-bottom: 20px;
    display: block;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-weight: 700;
    color: #1A5276;
    margin-bottom: 15px;
    font-size: 1.2rem;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.stat-desc {
    color: #7F8C8D;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    margin-top: auto;
}

/* Декоративный элемент на hover */
.stat-card::after {
    transition: transform 0.3s ease;
}

.stat-card:hover::after {
    transform: scale(1.1);
}

/* Градиентный фон при наведении */
.stat-card::before {
    transition: color 0.3s ease;
}

.stat-card:hover::before {
    color: rgba(46, 134, 193, 0.1);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
        margin: 2rem auto 0;
    }
    
    .stat-card {
        padding: 30px 25px;
        min-height: 180px;
    }
    
    .stat-label {
        font-size: 1.1rem;
        min-height: 50px;
    }
    
    .stat-desc {
        font-size: 0.9rem;
    }
    
    .stat-card::before {
        font-size: 2.5rem;
        top: 15px;
        right: 15px;
    }
    
    .stat-card::after {
        font-size: 2rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 50px 0;
    }
    
    .stat-card {
        padding: 25px 20px;
        min-height: 160px;
    }
    
    .stat-label {
        font-size: 1rem;
        min-height: 40px;
    }
    
    .stat-card::before {
        font-size: 2rem;
        top: 10px;
        right: 10px;
    }
    
    .stat-card::after {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
}

/* ==================== РЕАЛЬНЫЕ КЕЙСЫ (ИСПРАВЛЕННАЯ) ==================== */
.cases-section {
    background: #F8F9FA;
    padding: 80px 0;
    position: relative;
}

.cases-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #27AE60, #2E86C1);
    opacity: 0.8;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 3rem 0;
}

.case-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    position: relative;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 550px;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #2E86C1;
}

.case-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, #2E86C1, #1A5276);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(46, 134, 193, 0.3);
    z-index: 2;
}

.case-card h3 {
    color: #1A5276;
    font-size: 1.4rem;
    margin: 20px 0 25px 0;
    line-height: 1.4;
    min-height: 66px;
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 159, 67, 0.3); /* ЗАМЕНА: вместо ::after */
}

/* УДАЛИТЬ старый псевдоэлемент:
.case-card h3::after {
    content: '';
    position: absolute;
    top: 70px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: linear-gradient(90deg, #FF9F43, transparent);
    border-radius: 1px;
}
*/

.case-field {
    margin: 15px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    border-left: 4px solid #2E86C1;
    transition: all 0.3s ease;
    flex-grow: 1;
}

.case-card:hover .case-field {
    border-left-color: #FF9F43;
    background: #f0f7ff;
}

.case-field strong {
    color: #1A5276;
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 700;
}

.case-field strong::before {
    content: '▸ ';
    color: #FF9F43;
    margin-right: 5px;
}

.case-savings {
    background: linear-gradient(135deg, #27AE60, #219653);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem; /* УМЕНЬШЕННЫЙ размер шрифта */
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3; /* Улучшенный межстрочный интервал */
}

/* УДАЛИТЬ эмоджи:
.case-savings::before {
    content: '💰';
    position: absolute;
    left: 20px;
    font-size: 1.8rem;
    opacity: 0.3;
}

.case-savings::after {
    content: '💰';
    position: absolute;
    right: 20px;
    font-size: 1.8rem;
    opacity: 0.3;
}
*/



.case-button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #FF9F43, #FF7F00);
    color: white;
    padding: 18px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.case-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.case-button:hover {
    background: linear-gradient(135deg, #FF7F00, #E67E22);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 159, 67, 0.4);
}

.case-button:hover::before {
    left: 100%;
}

.cases-footer {
    text-align: center;
    margin-top: 50px;
}

.btn-outline {
    background: transparent;
    color: #2E86C1;
    border: 2px solid #2E86C1;
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline:hover {
    background: #2E86C1;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(46, 134, 193, 0.3);
}

.btn-outline i {
    font-size: 1.2rem;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cases-section {
        padding: 60px 0;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 500px;
        margin: 2rem auto 0;
    }
    
    .case-card {
        min-height: 500px;
        padding: 25px;
    }
    
    .case-card h3 {
        font-size: 1.3rem;
        min-height: 60px;
        margin: 15px 0 20px 0;
        padding-bottom: 12px;
        border-bottom: 2px solid rgba(255, 159, 67, 0.3);
    }
    
    .case-field {
        padding: 18px;
        font-size: 0.9rem;
    }
    
    .case-savings {
        padding: 15px; /* Уменьшенный padding */
        font-size: 1.1rem; /* Еще меньше на мобильных */
        min-height: 60px;
        line-height: 1.2;
    }
    
    .case-savings::before,
    .case-savings::after {
        font-size: 1.2rem;
        left: 10px;
        right: 10px;
    }
    
    .case-button {
        padding: 16px;
        font-size: 1rem;
    }
    
    .case-badge {
        left: 25px;
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .cases-section {
        padding: 50px 0;
    }
    
    .case-card {
        padding: 20px;
        min-height: 450px;
    }
    
    .case-card h3 {
        font-size: 1.2rem;
        min-height: 50px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 159, 67, 0.3);
    }
    
    .case-field {
        padding: 15px;
        margin: 12px 0;
        font-size: 0.85rem;
    }
    
    .case-savings {
        padding: 12px 15px;
        font-size: 1rem; /* Минимальный размер */
        min-height: 55px;
        line-height: 1.1;
    }
    
    .case-savings::before,
    .case-savings::after {
        font-size: 1rem;
        left: 8px;
        right: 8px;
    }
    
    .case-button {
        padding: 15px;
        font-size: 0.95rem;
    }
    
    .btn-outline {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

/* ==================== КАК МЫ РАБОТАЕМ (ИСПРАВЛЕННАЯ) ==================== */
.process-section {
    padding: 80px 0;
    background: white;
    position: relative;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF9F43, #2E86C1);
    opacity: 0.8;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 3rem;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
    padding: 40px 30px;
    background: white;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-height: 350px; /* Фиксируем высоту для выравнивания */
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #2E86C1;
}

/* Обновляем соединительные линии */
.step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #2E86C1;
    opacity: 0.5;
    font-weight: bold;
    z-index: 1;
}

/* Убираем старую линию */
/*
.step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 40px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: #2E86C1;
    opacity: 0.3;
}
*/

.step-number {
    display: inline-flex;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2E86C1, #1A5276);
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(46, 134, 193, 0.3);
    position: relative;
    z-index: 1;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(46, 134, 193, 0.2);
    border-radius: 50%;
    z-index: 0;
}

.step-icon {
    font-size: 3rem;
    color: #FF9F43;
    margin-bottom: 25px;
    height: 70px; /* Фиксируем высоту иконки */
    display: flex;
    align-items: center;
    justify-content: center;
}

.step h3 {
    color: #1A5276;
    margin-bottom: 20px;
    font-size: 1.4rem;
    line-height: 1.3;
    min-height: 66px; /* Фиксированная высота заголовка (≈3 строки) */
    display: flex;
    align-items: center;
    justify-content: center;
}

.step p {
    color: #7F8C8D;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1; /* Растягиваем текст для заполнения пространства */
}

/* Декоративный элемент для акцента */
.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #FF9F43, #2E86C1);
    border-radius: 5px 5px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step:hover::before {
    opacity: 1;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Прячем стрелки на планшетах */
    .step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 992px) {
    .process-steps {
        gap: 30px;
    }
    
    .step {
        padding: 35px 25px;
        min-height: 320px;
    }
    
    .step h3 {
        font-size: 1.3rem;
        min-height: 60px;
    }
    
    .step-icon {
        font-size: 2.5rem;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .process-section {
        padding: 60px 0;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 500px;
        margin: 2rem auto 0;
    }
    
    .step {
        padding: 30px 25px;
        min-height: 300px;
    }
    
    .step h3 {
        font-size: 1.3rem;
        min-height: 55px;
        margin-bottom: 15px;
    }
    
    .step p {
        font-size: 0.9rem;
    }
    
    .step-icon {
        font-size: 2.5rem;
        height: 55px;
        margin-bottom: 20px;
    }
    
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .process-section {
        padding: 50px 0;
    }
    
    .step {
        padding: 25px 20px;
        min-height: 280px;
    }
    
    .step h3 {
        font-size: 1.2rem;
        min-height: 50px;
    }
    
    .step p {
        font-size: 0.85rem;
    }
    
    .step-icon {
        font-size: 2.2rem;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
}

/* ==================== ПРЕИМУЩЕСТВА (ИСПРАВЛЕННАЯ) ==================== */
.advantages-section {
    background: #F8F9FA;
    padding: 80px 0;
    position: relative;
}

.advantages-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2E86C1, #27AE60);
    opacity: 0.8;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.advantage {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-height: 300px; /* Фиксированная минимальная высота */
    position: relative;
    overflow: hidden;
}

.advantage:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #2E86C1;
}

/* Градиентный акцент при наведении */
.advantage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #FF9F43, #2E86C1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advantage:hover::before {
    opacity: 1;
}

.advantage-icon {
    font-size: 3rem;
    color: #2E86C1;
    margin-bottom: 25px;
    height: 80px; /* Фиксированная высота иконки */
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(46, 134, 193, 0.1), rgba(255, 159, 67, 0.1));
    border-radius: 20px;
    transition: all 0.3s ease;
}

.advantage:hover .advantage-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(46, 134, 193, 0.2), rgba(255, 159, 67, 0.2));
}

.advantage h3 {
    color: #1A5276;
    margin-bottom: 20px;
    font-size: 1.3rem;
    line-height: 1.3;
    min-height: 66px; /* Фиксированная высота заголовка (≈3 строки) */
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage p {
    color: #7F8C8D;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1; /* Растягиваем текст для заполнения пространства */
}

/* Декоративный номер преимущества */
.advantage::after {
    content: attr(data-number);
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(46, 134, 193, 0.05);
    line-height: 1;
    font-family: 'Montserrat', sans-serif;
    z-index: 0;
}

/* Разные цвета для иконок (опционально) */
.advantage:nth-child(1) .advantage-icon {
    color: #2E86C1;
    background: linear-gradient(135deg, rgba(46, 134, 193, 0.1), rgba(26, 82, 118, 0.1));
}

.advantage:nth-child(2) .advantage-icon {
    color: #FF9F43;
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.1), rgba(255, 107, 53, 0.1));
}

.advantage:nth-child(3) .advantage-icon {
    color: #27AE60;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(33, 150, 83, 0.1));
}

.advantage:nth-child(4) .advantage-icon {
    color: #9B59B6;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(142, 68, 173, 0.1));
}

/* Адаптивность */
@media (max-width: 1200px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .advantage {
        padding: 35px 25px;
        min-height: 280px;
    }
    
    .advantage h3 {
        font-size: 1.2rem;
        min-height: 60px;
        margin-bottom: 15px;
    }
    
    .advantage-icon {
        font-size: 2.5rem;
        height: 70px;
        width: 70px;
        margin-bottom: 20px;
    }
    
    .advantage p {
        font-size: 0.9rem;
    }
    
    .advantage::after {
        font-size: 3rem;
        bottom: 5px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .advantages-section {
        padding: 60px 0;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 500px;
        margin: 2rem auto 0;
    }
    
    .advantage {
        padding: 30px 25px;
        min-height: 260px;
    }
    
    .advantage h3 {
        font-size: 1.2rem;
        min-height: 55px;
    }
    
    .advantage-icon {
        font-size: 2.5rem;
        height: 65px;
        width: 65px;
        margin-bottom: 20px;
    }
    
    .advantage p {
        font-size: 0.9rem;
    }
    
    .advantage::after {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .advantages-section {
        padding: 50px 0;
    }
    
    .advantage {
        padding: 25px 20px;
        min-height: 240px;
    }
    
    .advantage h3 {
        font-size: 1.1rem;
        min-height: 50px;
    }
    
    .advantage-icon {
        font-size: 2.2rem;
        height: 60px;
        width: 60px;
        margin-bottom: 15px;
    }
    
    .advantage p {
        font-size: 0.85rem;
    }
    
    .advantage::after {
        font-size: 2rem;
    }
}

/* Модульная система с адаптивностью */
.modules-section {
    padding: 40px 0;
    background: #f8fafc;
}

.modules-section .container {
    max-width: 100%;
    padding: 0 15px;
}

.modules-tabs {
    width: 100%;
    margin: 30px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.module-tab {
    border-bottom: 1px solid #e2e8f0;
}

.module-tab:last-child {
    border-bottom: none;
}

.tab-header {
    display: flex;
    align-items: center;
    padding: 20px 15px;
    cursor: pointer;
    background: #f7fafc;
    transition: background 0.3s ease;
    position: relative;
}

.tab-header:hover {
    background: #edf2f7;
}

.tab-header i {
    font-size: 20px;
    color: #3182ce;
    width: 30px;
    flex-shrink: 0;
}

.tab-header h3 {
    margin: 0;
    font-size: 16px;
    color: #2d3748;
    flex: 1;
    line-height: 1.3;
    padding-right: 30px;
}

.tab-indicator {
    width: 20px;
    height: 20px;
    background: #3182ce;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.module-tab.active .tab-indicator {
    transform: translateY(-50%) rotate(45deg);
}

.tab-content {
    padding: 20px 15px;
    display: none;
}

.module-tab.active .tab-content {
    display: block;
}

/* Шаги внутри таба */
.module-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.module-steps .step {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 4px solid #3182ce;
    flex-direction: column;
}

.module-steps .step-number {
    width: 35px;
    height: 35px;
    background: #3182ce;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.module-tab:nth-child(2) .step-number {
    background: #d69e2e;
}

.step-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #2d3748;
    line-height: 1.3;
}

.step-price {
    color: #3182ce;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
    display: block;
}

.module-tab:nth-child(2) .step-price {
    color: #d69e2e;
}

.step-content p {
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 14px;
}

.step-result {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #38a169;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}

.step-result i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* CTA */
.module-cta {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.module-button {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto 15px;
    width: 100%;
    max-width: 400px;
}

.module-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(49, 130, 206, 0.3);
}

.module-button i {
    font-size: 20px;
}

.module-button small {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.3;
}

.module-note {
    background: #f0fff4;
    padding: 12px 15px;
    border-radius: 8px;
    color: #276749;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
    text-align: left;
}

.module-note i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* Преимущества */
.modules-benefits {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.benefit {
    text-align: center;
    padding: 20px 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.benefit i {
    font-size: 24px;
    color: #3182ce;
    margin-bottom: 15px;
}

.benefit h4 {
    margin: 0 0 8px 0;
    color: #2d3748;
    font-size: 16px;
    line-height: 1.3;
}

.benefit p {
    color: #718096;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

/* Десктопные стили (только для больших экранов) */
@media (min-width: 768px) {
    .modules-section {
        padding: 60px 0;
    }
    
    .modules-tabs {
        max-width: 900px;
        margin: 40px auto;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    }
    
    .tab-header {
        padding: 25px 30px;
    }
    
    .tab-header i {
        font-size: 24px;
        width: 40px;
    }
    
    .tab-header h3 {
        font-size: 20px;
        padding-right: 0;
    }
    
    .tab-indicator {
        position: static;
        transform: none;
        margin-left: auto;
    }
    
    .module-tab.active .tab-indicator {
        transform: rotate(45deg);
    }
    
    .tab-content {
        padding: 30px;
    }
    
    .module-steps {
        gap: 25px;
        margin-bottom: 30px;
    }
    
    .module-steps .step {
        flex-direction: row;
        padding: 25px;
        border-left-width: 4px;
    }
    
    .module-steps .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .step-content h4 {
        font-size: 18px;
    }
    
    .step-price {
        font-size: 20px;
    }
    
    .step-content p {
        font-size: 15px;
    }
    
    .step-result {
        font-size: 15px;
    }
    
    .module-cta {
        padding-top: 30px;
    }
    
    .module-button {
        padding: 20px 40px;
        font-size: 18px;
        width: auto;
        display: inline-flex;
    }
    
    .module-button i {
        font-size: 22px;
    }
    
    .module-button small {
        font-size: 14px;
    }
    
    .module-note {
        padding: 15px 20px;
        font-size: 15px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .modules-benefits {
        flex-direction: row;
        grid-template-columns: repeat(3, 1fr);
        display: grid;
        gap: 30px;
        margin-top: 60px;
    }
    
    .benefit {
        padding: 30px;
    }
    
    .benefit i {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .benefit h4 {
        font-size: 18px;
    }
    
    .benefit p {
        font-size: 14px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .tab-header h3 {
        font-size: 14px;
    }
    
    .step-content h4 {
        font-size: 15px;
    }
    
    .step-price {
        font-size: 16px;
    }
    
    .module-button {
        font-size: 15px;
        padding: 14px 16px;
    }
}

/* ==================== ФОРМАТЫ ПОМОЩИ ==================== */
.formats-section {
    padding: 80px 0;
    background: white;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
    align-items: stretch; /* Важно для выравнивания высоты */
}

.format-card {
    background: white;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    overflow: visible; /* Изменено с hidden на visible для бейджа */
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%; /* Занимает всю доступную высоту */
}

.format-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.format-card.popular {
    border-color: #FF9F43;
    transform: scale(1.05);
}

.format-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.format-badge {
    position: absolute;
    top: -10px; /* Изменено для предотвращения наложения */
    right: 15px;
    background: #FF9F43;
    color: white;
    padding: 8px 15px; /* Увеличен padding */
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10; /* Повышен z-index */
}

.format-header {
    background: linear-gradient(135deg, #1A5276, #2E86C1); /* Добавлен градиент */
    color: white;
    padding: 25px 20px; /* Немного уменьшен padding */
    text-align: center;
    margin-top: 0; /* Убираем отступ сверху */
    flex-shrink: 0; /* Запрещаем сжиматься */
}

.format-header h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white !important; /* Принудительно белый цвет */
    min-height: 50px; /* Фиксированная высота для заголовка */
    display: flex;
    align-items: center;
    justify-content: center;
}

.format-price {
    font-size: 2rem;
    font-weight: 700;
    color: #FF9F43;
}

.format-body {
    padding: 25px;
    flex-grow: 1; /* Занимает доступное пространство */
    display: flex;
    flex-direction: column;
}

.format-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    flex-grow: 1; /* Список растягивается */
}

.format-body li {
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.format-body li i {
    color: #27AE60;
    margin-top: 3px;
    flex-shrink: 0; /* Иконки не сжимаются */
}

.format-button {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #2E86C1, #1A5276); /* Добавлен градиент */
    color: white;
    padding: 15px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto; /* Прижимает кнопку к низу */
    flex-shrink: 0; /* Запрещаем сжиматься */
}

.format-button:hover {
    background: linear-gradient(135deg, #1A5276, #154360);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Адаптивность */
@media (max-width: 992px) {
    .format-card.popular {
        transform: none;
    }
    
    .format-card.popular:hover {
        transform: translateY(-10px);
    }
    
    .formats-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .formats-section {
        padding: 50px 0;
    }
    
    .formats-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 3rem auto 0;
    }
}

/* Модульные преимущества - мобильная версия */
.modules-benefits {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    width: 100%;
}

.benefit {
    text-align: center;
    padding: 20px 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    width: 100%;
    box-sizing: border-box;
}

.benefit i {
    font-size: 24px;
    color: #3182ce;
    margin-bottom: 12px;
    display: block;
}

.benefit h4 {
    margin: 0 0 8px 0;
    color: #2d3748;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
}

.benefit p {
    color: #718096;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    padding: 0 5px;
}

/* Вертикальное выравнивание для очень маленьких экранов */
@media (max-width: 360px) {
    .modules-benefits {
        gap: 12px;
        margin-top: 25px;
    }
    
    .benefit {
        padding: 16px 12px;
        border-radius: 8px;
    }
    
    .benefit i {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .benefit h4 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .benefit p {
        font-size: 13px;
        line-height: 1.3;
    }
}

/* Горизонтальное расположение на средних экранах */
@media (min-width: 480px) and (max-width: 767px) {
    .modules-benefits {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .benefit:last-child {
        grid-column: 1 / -1; /* Последний элемент на всю ширину */
        max-width: 50%;
        justify-self: center;
    }
}

/* Десктопная версия (таблетки и больше) */
@media (min-width: 768px) {
    .modules-benefits {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        margin-top: 50px;
    }
    
    .benefit {
        padding: 30px 20px;
        border-radius: 12px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .benefit:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    
    .benefit i {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .benefit h4 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .benefit p {
        font-size: 15px;
        line-height: 1.5;
    }
}

/* Альтернативный вариант: аккордеон на мобильных */
@media (max-width: 767px) {
    /* .modules-benefits-accordion - если хотите сделать аккордеон */
    .modules-benefits.accordion {
        gap: 10px;
    }
    
    .modules-benefits.accordion .benefit {
        padding: 15px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    
    .modules-benefits.accordion .benefit:hover {
        background-color: #f7fafc;
    }
    
    .modules-benefits.accordion .benefit p {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
    }
    
    .modules-benefits.accordion .benefit.active p {
        max-height: 100px;
        padding-top: 10px;
    }
}

/* Гарантия одинаковой высоты элементов */
@media (min-width: 768px) {
    .modules-benefits {
        align-items: stretch;
    }
    
    .benefit {
        display: flex;
        flex-direction: column;
        min-height: 200px; /* Фиксированная минимальная высота */
    }
    
    .benefit p {
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Особые стили для темной темы */
@media (prefers-color-scheme: dark) {
    .benefit {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .benefit h4 {
        color: #e2e8f0;
    }
    
    .benefit p {
        color: #a0aec0;
    }
}

/* ==================== КОНТАКТЫ НА ГЛАВНОЙ ==================== */
.home-contacts {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: visible;
}

/* Добавим декоративные элементы */
.home-contacts:before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(77, 168, 218, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.home-contacts:after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(44, 62, 80, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.home-contacts .section-title {
    text-align: center;
    font-size: 42px;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.home-contacts .section-subtitle {
    text-align: center;
    color: #666;
    font-size: 18px;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.home-contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.home-contact-card {
    background: white;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden; /* Оставляем hidden */
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
    will-change: transform, box-shadow;
}

.home-contact-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 2px solid;
}

.home-contact-card.telegram:hover {
    border-color: #0088cc;
}

.home-contact-card.phone:hover {
    border-color: #28a745;
}

.home-contact-card.email:hover {
    border-color: #dc3545;
}

.home-contact-card.contacts:hover {
    border-color: #2c3e50;
}

/* ИСПРАВЛЕНИЕ: убираем проблему с исчезновением карточки */
.home-contact-card:after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.8) 100%);
    /* УДАЛЯЕМ проблемные свойства: */
    /* -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); */
    /* -webkit-mask-composite: xor; */
    /* mask-composite: exclude; */
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.home-contact-card:hover:after {
    opacity: 1;
}

.home-contact-card.telegram:after {
    background: linear-gradient(135deg, #0088cc, #34b7f1, #0088cc);
}

.home-contact-card.phone:after {
    background: linear-gradient(135deg, #28a745, #20c997, #28a745);
}

.home-contact-card.email:after {
    background: linear-gradient(135deg, #dc3545, #e83e8c, #dc3545);
}

.home-contact-card.contacts:after {
    background: linear-gradient(135deg, #2c3e50, #4da8da, #2c3e50);
}

/* Декоративная полоска сверху */
.home-contact-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent 0%, currentColor 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none; /* Чтобы не мешал кликам */
}

.home-contact-card:hover:before {
    opacity: 0.8;
}

/* Индикатор состояния */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #666;
    transition: all 0.3s ease;
}

.home-contact-card:hover .status-indicator {
    transform: translateY(-2px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.status-dot.online {
    background: #28a745;
    animation: pulse 2s infinite;
}

.status-dot.online:after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid #28a745;
    opacity: 0.3;
    animation: pulse-border 2s infinite;
}

.status-dot.working-hours {
    background: #ffc107;
    animation: pulse-yellow 2s infinite;
}

.status-dot.working-hours:after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid #ffc107;
    opacity: 0.3;
}

.status-dot.available {
    background: #17a2b8;
    animation: pulse-blue 2s infinite;
}

.status-dot.available:after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid #17a2b8;
    opacity: 0.3;
}

.status-dot.always {
    background: #6c757d;
    animation: pulse-gray 2s infinite;
}

.status-dot.always:after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid #6c757d;
    opacity: 0.3;
}

.status-text {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.home-contact-card:hover .status-text {
    color: #4da8da;
    font-weight: 600;
}

/* Градиенты для разных карточек */
.home-contact-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 0 0 2px #0088cc, 0 20px 50px rgba(0,0,0,0.15);
}

.home-contact-card.telegram:hover {
    box-shadow: 0 0 0 2px #0088cc, 0 20px 50px rgba(0, 136, 204, 0.15);
}

.home-contact-card.phone:hover {
    box-shadow: 0 0 0 2px #28a745, 0 20px 50px rgba(40, 167, 69, 0.15);
}

.home-contact-card.email:hover {
    box-shadow: 0 0 0 2px #dc3545, 0 20px 50px rgba(220, 53, 69, 0.15);
}

.home-contact-card.contacts:hover {
    box-shadow: 0 0 0 2px #2c3e50, 0 20px 50px rgba(44, 62, 80, 0.15);
}

/* Специфичные цвета для текста статуса */
.home-contact-card.telegram:hover .status-text {
    color: #0088cc;
}

.home-contact-card.phone:hover .status-text {
    color: #28a745;
}

.home-contact-card.email:hover .status-text {
    color: #dc3545;
}

.home-contact-card.contacts:hover .status-text {
    color: #2c3e50;
}

/* Анимации для индикаторов */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes pulse-border {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
    100% { transform: scale(1); opacity: 0.3; }
}

@keyframes pulse-yellow {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes pulse-blue {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes pulse-gray {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 32px;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.home-contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Блестящий эффект на иконках */
.contact-icon:after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.home-contact-card:hover .contact-icon:after {
    opacity: 1;
}

.contact-icon.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #34b7f1 100%);
}

.contact-icon.phone {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.contact-icon.email {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.contact-icon.contacts {
    background: linear-gradient(135deg, #2c3e50 0%, #4da8da 100%);
}

.home-contact-card h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.home-contact-card p {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
    padding: 0 5px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.home-contact-card:hover .contact-link {
    background: white;
    color: #4da8da;
    transform: translateY(-2px);
    border-color: #4da8da;
    box-shadow: 0 5px 15px rgba(77, 168, 218, 0.2);
}

/* Специфичные цвета для ссылок в каждой карточке */
.home-contact-card.telegram:hover .contact-link {
    color: #0088cc;
    border-color: #0088cc;
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.2);
}

.home-contact-card.phone:hover .contact-link {
    color: #28a745;
    border-color: #28a745;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
}

.home-contact-card.email:hover .contact-link {
    color: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.2);
}

.home-contact-card.contacts:hover .contact-link {
    color: #2c3e50;
    border-color: #2c3e50;
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.2);
}


/* Адаптивность */
@media (max-width: 1200px) {
    .home-contact-cards {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .home-contacts {
        padding: 70px 15px;
    }
    
    .home-contacts .section-title {
        font-size: 32px;
    }
    
    .home-contacts .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .home-contact-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 20px;
    }
    
    .home-contact-card {
        min-height: 300px;
        padding: 30px 20px;
    }
    
    .status-indicator {
        margin-bottom: 12px;
    }
}

/* Анимация загрузки карточек */
@media (prefers-reduced-motion: no-preference) {
    .home-contact-card {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.6s ease forwards;
    }
    
    .home-contact-card:nth-child(1) { animation-delay: 0.1s; }
    .home-contact-card:nth-child(2) { animation-delay: 0.2s; }
    .home-contact-card:nth-child(3) { animation-delay: 0.3s; }
    .home-contact-card:nth-child(4) { animation-delay: 0.4s; }
    
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }


/* ==================== ФИНАЛЬНЫЙ CTA (ИСПРАВЛЕННАЯ) ==================== */
.final-cta {
    background: linear-gradient(135deg, #1A5276, #2E86C1);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Декоративные элементы фона */
.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 159, 67, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(46, 134, 193, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.final-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FF9F43, transparent);
    z-index: 1;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.final-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.final-cta h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #FF9F43;
    margin: 20px auto;
    border-radius: 2px;
}

.cta-text {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-text strong {
    color: #FF9F43;
    font-weight: 700;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 2.5rem 0 3rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 250px;
    justify-content: center;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: rgba(255, 159, 67, 0.4);
}

.feature i {
    color: #FF9F43;
    font-size: 1.6rem;
    min-width: 30px;
    text-align: center;
}

.cta-button {
    background: linear-gradient(135deg, #FF9F43, #FF7F00);
    color: white;
    padding: 22px 60px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 25px rgba(255, 159, 67, 0.3);
    margin: 1.5rem 0;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 159, 67, 0.5);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button i {
    font-size: 1.6rem;
}

.cta-note {
    margin-top: 30px;
    font-size: 0.95rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cta-note i {
    color: #27AE60;
    font-size: 1.1rem;
}

.cta-note a {
    color: #FF9F43;
    text-decoration: underline;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-note a:hover {
    color: white;
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 992px) {
    .final-cta {
        padding: 80px 0;
    }
    
    .final-cta h2 {
        font-size: 2.4rem;
    }
    
    .cta-text {
        font-size: 1.2rem;
    }
    
    .cta-features {
        gap: 20px;
        margin: 2rem 0 2.5rem;
    }
    
    .feature {
        min-width: 220px;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 20px 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .final-cta {
        padding: 70px 0;
    }
    
    .final-cta h2 {
        font-size: 2rem;
    }
    
    .final-cta h2::after {
        width: 60px;
        height: 3px;
        margin: 15px auto;
    }
    
    .cta-text {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin: 1.5rem 0 2rem;
    }
    
    .feature {
        width: 100%;
        max-width: 300px;
        justify-content: flex-start;
        padding: 15px 25px;
    }
    
    .cta-button {
        padding: 18px 40px;
        font-size: 1.1rem;
        width: 100%;
        max-width: 300px;
        justify-content: center;
        text-align: center;
    }
    
    .cta-button i {
        font-size: 1.4rem;
    }
    
    .cta-note {
        font-size: 0.9rem;
        text-align: center;
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .final-cta {
        padding: 60px 0;
    }
    
    .final-cta h2 {
        font-size: 1.8rem;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .feature {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .feature i {
        font-size: 1.4rem;
    }
    
    .cta-button {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .cta-button i {
        font-size: 1.3rem;
    }
    
    .cta-note {
        font-size: 0.85rem;
    }
}

/* ==================== КАСТОМНЫЕ МОДАЛЬНЫЕ ОКНА ==================== */

.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal.show {
    display: flex;
    opacity: 1;
}

.custom-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s ease;
    position: relative;
    text-align: center;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.custom-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #7F8C8D;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.custom-modal-close:hover {
    background: #f8f9fa;
    color: #2C3E50;
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 36px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.modal-icon.phone {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.modal-icon.email {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
}

.modal-icon.contacts {
    background: linear-gradient(135deg, #2c3e50, #4da8da);
}

.custom-modal-content h3 {
    color: #1A5276;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.modal-subtitle {
    color: #7F8C8D;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Стили для телефона */
.phone-number {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin: 25px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2C3E50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.phone-number:hover {
    border-color: #28a745;
    background: #f0fff4;
}

.phone-number a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-number a:hover {
    color: #28a745;
}

/* Стили для email */
.email-address {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    margin: 25px 0;
    font-size: 22px;
    font-weight: 600;
    color: #2C3E50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    word-break: break-all;
}

.email-address:hover {
    border-color: #dc3545;
    background: #fff5f5;
}

.email-address a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-address a:hover {
    color: #dc3545;
}

/* Кнопки модального окна */
.modal-buttons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.modal-btn {
    flex: 1;
    min-width: 200px;
    padding: 18px 25px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-btn.primary {
    background: linear-gradient(135deg, #2E86C1, #1A5276);
    color: white;
    box-shadow: 0 5px 20px rgba(46, 134, 193, 0.3);
}

.modal-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 134, 193, 0.4);
}

.modal-btn.secondary {
    background: #f8f9fa;
    color: #2C3E50;
    border: 2px solid #dee2e6;
}

.modal-btn.secondary:hover {
    background: #e9ecef;
}

/* Заметка внизу модального окна */
.modal-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #7F8C8D;
    font-size: 14px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-note i {
    color: #2E86C1;
}

/* Сетка контактов в модальном окне */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.contact-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
}

.contact-item:hover {
    background: white;
    border-color: #2E86C1;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: white;
    font-size: 24px;
}

.contact-item-icon.telegram {
    background: linear-gradient(135deg, #0088cc, #34b7f1);
}

.contact-item-icon.phone {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.contact-item-icon.email {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
}

.contact-item-icon.page {
    background: linear-gradient(135deg, #2c3e50, #4da8da);
}

.contact-item-content h4 {
    color: #1A5276;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-item-content p {
    color: #7F8C8D;
    font-size: 14px;
    margin-bottom: 10px;
}

.contact-item-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.contact-item-status.online {
    background: #d4edda;
    color: #155724;
}

.contact-item-status.hours {
    background: #fff3cd;
    color: #856404;
}

.contact-item-status.available {
    background: #d1ecf1;
    color: #0c5460;
}

.contact-item-status.always {
    background: #e2e3e5;
    color: #383d41;
}

/* Адаптивность */
@media (max-width: 768px) {
    .custom-modal-content {
        padding: 30px 25px;
        width: 95%;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-btn {
        min-width: 100%;
    }
    
    .phone-number {
        font-size: 24px;
        padding: 15px;
    }
    
    .email-address {
        font-size: 18px;
        padding: 15px;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .custom-modal-content {
        padding: 25px 20px;
    }
    
    .custom-modal-content h3 {
        font-size: 24px;
    }
    
    .modal-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
        margin-bottom: 20px;
    }
    
    .phone-number {
        font-size: 20px;
    }
    
    .email-address {
        font-size: 16px;
    }
}

/* Стили для модального окна формы */
.modal-icon.form {
    background: linear-gradient(135deg, #9B59B6, #8E44AD);
}

.consent-block {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.consent-block::-webkit-scrollbar {
    width: 6px;
}

.consent-block::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.consent-block::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.consent-item {
    transition: all 0.3s ease;
}

.consent-item:hover {
    background: #eef7ff;
    border-color: #2E86C1;
}

.consent-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

#acceptFormButton:not(:disabled) {
    opacity: 1 !important;
    cursor: pointer !important;
}

/* ==================== МОДАЛЬНОЕ ОКНО СОГЛАСИЯ ==================== */
.consent-modal {
    display: none; /* По умолчанию скрыто */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999; /* Очень высокий z-index */
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.consent-modal.show {
    display: flex !important; /* Важно! */
    opacity: 1;
}

.consent-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: modalAppear 0.3s ease;
    position: relative;
    z-index: 100000;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.consent-content h3 {
    color: #1A5276;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.consent-content h3 i {
    color: #FF9F43;
}

.consent-content p {
    color: #7F8C8D;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.consent-checkbox {
    margin: 25px 0;
    padding: 20px;
    background: #F8F9FA;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.consent-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #2C3E50;
    font-weight: 500;
}

.consent-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.consent-checkbox .checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #2E86C1;
    border-radius: 4px;
    position: relative;
    margin-right: 10px;
    flex-shrink: 0;
    cursor: pointer;
}

.consent-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #2E86C1;
}

.consent-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.consent-checkbox a {
    color: #2E86C1;
    text-decoration: underline;
    transition: color 0.3s;
}

.consent-checkbox a:hover {
    color: #1A5276;
}

.consent-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.consent-buttons .btn {
    flex: 1;
    padding: 18px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.consent-buttons .btn-primary {
    background: linear-gradient(135deg, #FF9F43, #FF7F00);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 159, 67, 0.3);
}

.consent-buttons .btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 159, 67, 0.4);
}

.consent-buttons .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.consent-buttons .btn-secondary {
    background: #F8F9FA;
    color: #2C3E50;
    border: 2px solid #dee2e6;
}

.consent-buttons .btn-secondary:hover {
    background: #e9ecef;
}

/* Адаптивность модального окна */
@media (max-width: 768px) {
    .consent-content {
        padding: 30px 25px;
        max-width: 90%;
    }
    
    .consent-buttons {
        flex-direction: column;
    }
    
    .consent-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .consent-content {
        padding: 25px 20px;
    }
    
    .consent-content h3 {
        font-size: 1.3rem;
    }
    
    .consent-checkbox {
        padding: 15px;
    }
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        line-height: 1.4;
        padding: 0 15px;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    /* Увеличиваем контраст на мобильных */
    .hero-section {
        background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.9)),
                    url('http://legalorder.ru/wp-content/uploads/2025/06/595595.jpg');
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .badge {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .process-step:not(:last-child):after {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .problems-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .formats-grid {
        grid-template-columns: 1fr;
    }
    
    .format-card.popular {
        transform: none;
    }
    
    .format-card.popular:hover {
        transform: translateY(-10px);
    }
    
    .cta-features {
        flex-direction: column;
        gap: 20px;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .consent-content {
        padding: 25px;
    }
    
    .consent-buttons {
        flex-direction: column;
    }
}

/* ==================== КРИТИЧЕСКИ ВАЖНЫЕ ДОПОЛНЕНИЯ ==================== */

/* Стили для модального окна (дополнение к существующим) */
.consent-checkbox .checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #2E86C1;
    border-radius: 4px;
    position: relative;
    margin-right: 10px;
    vertical-align: middle;
    flex-shrink: 0;
}

.consent-checkbox input[type="checkbox"] {
    display: none; /* Скрываем нативный чекбокс */
}

.consent-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2E86C1;
    font-weight: bold;
    font-size: 14px;
}

.consent-checkbox label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.consent-checkbox a {
    color: #2E86C1;
    text-decoration: underline;
    transition: color 0.3s;
}

.consent-checkbox a:hover {
    color: #1A5276;
}

.consent-note {
    margin-top: 20px;
    font-size: 12px;
    color: #666;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Анимация для кнопки при ошибке */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Ограничение высоты для модального окна на мобильных */
@media (max-width: 768px) {
    .consent-content {
        max-height: 80vh;
        overflow-y: auto;
        margin: 0 auto;
    }
    
    .consent-checkbox label {
        font-size: 13px;
    }
}

/* Исправление для body при открытом модальном окне */
body.modal-open {
    overflow: hidden;
    height: 100vh;
}

.shake {
    animation: shake 0.5s ease;
}

.feature, .problem-card, .case-card {
    will-change: transform;
}

@media (max-width: 768px) {
    .hero-bg-parallax {
        background-attachment: scroll !important; /* Отключаем параллакс на мобильных */
    }
}

/* ==================== ФОРМА БЕСПЛАТНОГО РАЗБОРА ==================== */
.free-analysis-section {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, #0a1a2d 0%, #1A5276 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.free-analysis-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    opacity: 0.8;
}

.analysis-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.analysis-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.analysis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
}

.analysis-header {
    margin-bottom: var(--spacing-lg);
}

.analysis-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.analysis-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.analysis-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.phone-input {
    width: 100%;
    padding: 18px 25px;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    transition: all var(--transition-fast);
    font-family: 'Roboto', sans-serif;
}

.phone-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 159, 67, 0.1);
}

.phone-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.analysis-button {
    width: 100%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-lg);
    padding: 20px 30px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.analysis-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 159, 67, 0.4);
}

.analysis-button:active {
    transform: translateY(-2px);
}

.analysis-button i {
    font-size: 1.5rem;
    transition: transform var(--transition-fast);
}

.analysis-button:hover i {
    transform: translateX(5px);
}

.analysis-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: var(--spacing-md);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.analysis-guarantee i {
    color: var(--color-success);
    font-size: 1.1rem;
}

.analysis-guarantee span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Декоративные элементы */
.analysis-decor {
    position: absolute;
    z-index: 1;
}

.analysis-decor-1 {
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 159, 67, 0.1) 0%, transparent 70%);
    border-radius: var(--radius-circle);
}

.analysis-decor-2 {
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(46, 134, 193, 0.1) 0%, transparent 70%);
    border-radius: var(--radius-circle);
}

/* ==================== ПОДВАЛ С РЕКВИЗИТАМИ ==================== */
.legalorder-footer {
    background: #0a1a2d;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
    border-top: 3px solid #FF9F43;
    font-family: 'Roboto', sans-serif;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Сетка для 3 колонок */
.legalorder-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    justify-content: center;
}

/* На планшетах */
@media (max-width: 992px) {
    .legalorder-footer .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* На мобильных */
@media (max-width: 768px) {
    .legalorder-footer {
        padding: 40px 0 20px;
    }
    
    .legalorder-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
}

.footer-col h4 {
    color: #FF9F43;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.footer-logo i {
    color: #FF9F43;
}

.footer-copyright {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-tagline {
    font-size: 0.9rem;
    color: #FF9F43;
    font-weight: 500;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-list li i {
    width: 20px;
    color: #FF9F43;
    margin-right: 8px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: #FF9F43;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Адаптивность формы */
@media (max-width: 768px) {
    .analysis-card {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .analysis-title {
        font-size: 1.8rem;
    }
    
    .analysis-subtitle {
        font-size: 1.1rem;
    }
    
    .phone-input {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .analysis-button {
        padding: 18px 25px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .analysis-title {
        font-size: 1.6rem;
    }
    
    .analysis-subtitle {
        font-size: 1rem;
    }
    
    .analysis-guarantee {
        flex-direction: column;
        gap: 5px;
    }
}

/* Стили для маски телефона (если нужно) */
.phone-input::-webkit-inner-spin-button,
.phone-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.phone-input[type="number"] {
    -moz-appearance: textfield;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .contact-bar-links {
        display: flex;
        justify-content: center;
        gap: 10px;
    }
    
    .contact-bar-btn {
        padding: 8px 12px !important;
    }
    
    .contact-bar-btn span {
        display: none; /* Скрываем текст на мобильных */
    }
    
    .contact-bar-btn i {
        margin-right: 0 !important;
        font-size: 18px;
    }
    
    /* Для кнопки отзывов тоже скрываем текст */
    .contact-bar-btn.reviews span {
        display: none;
    }
    
    .contact-bar-btn.reviews i {
        margin-right: 0;
    }
}