/* ===== ОБЩИЕ СТИЛИ ДЛЯ ДОПОЛНИТЕЛЬНЫХ СТРАНИЦ ===== */

/* Общие стили для страниц */
body.pages-body {
    background: #191199;
    min-height: 100vh;
    margin: 0;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: #fff;
}

.page-subtitle {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ КЕЙСОВ ===== */

/* Стили для кейсов */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.case-item {
    background: #130c7f;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.case-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-image:hover img {
    transform: scale(1.05);
}

.case-image::after {
    content: "🔍";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-image:hover::after {
    opacity: 1;
}

.case-content {
    padding: 20px;
    color: #fff;
}

.case-theme {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.case-stats {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.case-stats strong {
    color: #fff;
}

/* Модальное окно для просмотра изображений */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.close {
    position: fixed;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: #bbb;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ FAQ ===== */

/* Стили для FAQ */
.faq-container {
    margin-bottom: 60px;
}

.faq-item {
    background: #130c7f;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.faq-question {
    padding: 20px 30px;
    background: #130c7f;
    color: #fff;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #191199;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #130c7f;
}

.faq-answer.active {
    padding: 25px 30px;
    max-height: 800px;
}

.faq-answer p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ НОВОСТЕЙ ===== */

/* Стили для новостей */
.news-container {
    margin-bottom: 60px;
}

.news-item {
    background: #130c7f;
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.news-date {
    background: #130c7f;
    color: #fff;
    padding: 15px 25px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-date::before {
    content: "📅";
    font-size: 1.2rem;
}

.news-content {
    padding: 25px;
    background: #130c7f;
}

.news-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 1.05rem;
    margin: 0;
}

.news-badge {
    display: inline-block;
    background: #191199;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 10px;
}

/* ===== МОБИЛЬНЫЕ СТИЛИ ===== */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .page-container {
        padding: 20px 15px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    /* Мобильные стили для кейсов */
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Мобильные стили для FAQ */
    .faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-answer.active {
        padding: 20px 20px;
        max-height: 800px;
    }
    
    /* Мобильные стили для новостей */
    .news-date,
    .news-content {
        padding: 15px 20px;
    }
    
    .news-date {
        font-size: 1rem;
    }
    
    .news-text {
        font-size: 1rem;
    }
}

/* ===== СТИЛИ ДЛЯ МОБИЛЬНОГО МЕНЮ В ДОПОЛНИТЕЛЬНЫХ СТРАНИЦАХ ===== */

/* Скрываем мобильные ссылки на десктопе */
.mobile-nav-links {
    display: none;
}

@media (max-width: 1100px) {
    /* Показываем мобильные ссылки в мобильном меню */
    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 5px;
        margin-bottom: 10px;
    }

    .mobile-nav-links a {
        width: 100%;
        text-align: center;
        padding: 10px 20px;
        margin: 2px 0;
        border: 1px solid #0048CF;
        background: transparent;
        transition: background 0.3s ease;
        font-size: 15px;
    }

    .mobile-nav-links a:hover,
    .mobile-nav-links a.active {
        background: rgba(55, 124, 255, 0.2);
    }

    /* Делаем основные кнопки тоже на всю ширину */
    .header-button_contact,
    .header-button_login {
        width: 100%;
        text-align: center;
        margin: 2px 0;
    }
} 