/* Кастомные стили для Brain2Net */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #00d4ff;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Навигация */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0.75rem 0;
}

.navbar .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    transition: all 0.3s ease;
}

.navbar .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-1px);
}

.brand-logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}



/* Главный баннер */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 50px;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section .btn {
    padding: 12px 30px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-2px);
}

/* Заголовки секций */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1a1a2e;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Карточки преимуществ */
.feature-card {
    padding: 30px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card .btn {
    margin-top: auto;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.feature-card p {
    color: #666;
    margin-bottom: 0;
}

/* Карточки услуг */
.service-card {
    padding: 25px;
    border-radius: 10px;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    height: 100%;
    transition: background 0.3s ease;
}

.service-card:hover {
    background: #e9ecef;
}

.service-card h4 {
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.service-card p {
    color: #666;
    margin-bottom: 15px;
}

/* CTA секция */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px;
    border-radius: 15px;
    text-align: center;
    margin-top: 50px;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

/* Боковая панель блога */
.blog-sidebar {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1a1a2e;
}

.blog-post-preview {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.blog-post-preview:last-of-type {
    border-bottom: none;
}

.post-date {
    font-size: 0.85rem;
    color: #999;
    display: block;
    margin-bottom: 8px;
}

.blog-post-preview h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-post-preview h4 a {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-preview h4 a:hover {
    color: var(--primary-color);
}

.blog-post-preview p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

/* Футер */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

.footer p {
    color: #aaa;
}

.footer-link {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

/* Страница контента */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 0;
    margin-bottom: 50px;
    text-align: left;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.content-section {
    margin-bottom: 50px;
}

/* Стили для статьи */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.5rem;
}

.article-content img {
    margin: 2rem 0;
}

.article-content pre {
    overflow-x: auto;
}

.article-content code {
    font-size: 0.9rem;
}

.breadcrumb {
    background: transparent;
}

.breadcrumb-item a {
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 991px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .blog-sidebar {
        margin-top: 50px;
        position: static;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .navbar .btn-outline-light {
        font-size: 0.8rem;
        padding: 0.35rem 0.65rem;
        margin: 0.2rem 0;
    }
}
