/* === БЫСТРОЕ ИСПРАВЛЕНИЕ СТИЛЕЙ === */

/* Гарантируем правильную Bootstrap-совместимость */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    padding: 0 15px;
    position: relative;
}

.col-lg-4 { width: 33.333333%; }
.col-lg-8 { width: 66.666667%; }
.col-md-6 { width: 50%; }
.col-12 { width: 100%; }

/* Основные утилиты */
.text-center { text-align: center; }
.text-white { color: white !important; }
.bg-light { background-color: #f8f9fa !important; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-5 { margin-top: 3rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }

/* === CORPORATE HERO SECTION === */
.hero-section-corporate {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
    position: relative;
    border-bottom: 1px solid #e9ecef;
    padding: 4rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #8B4513 25%, #F5DEB3 25%, #F5DEB3 50%, #8B4513 50%, #8B4513 75%, #F5DEB3 75%);
    opacity: 0.03;
    background-size: 60px 60px;
}

.hero-wrapper {
    position: relative;
    z-index: 2;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    align-items: center;
}

/* Left Side - Main Content */
.hero-main-content {
    color: white;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-logo-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.logo-container {
    flex-shrink: 0;
}

.hero-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.brand-text {
    flex: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title .text-primary {
    color: #FFD700 !important;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
}

/* Progress Stats */
.progress-stats-section {
    margin: 1.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Action Buttons */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-hero {
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-hero::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;
}

.btn-hero:hover::before {
    left: 100%;
}

/* Right Side - Visual Section */
.hero-visual-section {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chess-pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(139, 69, 19, 0.3) 25%, rgba(245, 222, 179, 0.1) 25%, rgba(245, 222, 179, 0.1) 50%, rgba(139, 69, 19, 0.3) 50%, rgba(139, 69, 19, 0.3) 75%, rgba(245, 222, 179, 0.1) 75%);
    background-size: 40px 40px;
    animation: chessMove 20s linear infinite;
}

@keyframes chessMove {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

.financial-chart-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 3;
}

.market-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.indicator-dot.trend-up {
    background: #00C851;
    box-shadow: 0 0 10px #00C851;
}

.indicator-dot.pattern-recognition {
    background: #FFD700;
    box-shadow: 0 0 10px #FFD700;
}

.indicator-dot.neural-network {
    background: #007bff;
    box-shadow: 0 0 10px #007bff;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

.indicator-text {
    font-size: 0.8rem;
    color: white;
    font-weight: 500;
}

/* Responsive Design for Hero */
@media (max-width: 992px) {
    .hero-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-logo-section {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-logo {
        width: 100px;
        height: 100px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-visual-section {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .btn-hero {
        width: 100%;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Cards */
.card {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    padding: 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0.5rem 0.5rem 0 0;
    font-weight: 600;
}

.card-body {
    padding: 1rem;
}

.bg-success {
    background-color: #28a745 !important;
}

.bg-primary {
    background-color: #007bff !important;
}

.bg-info {
    background-color: #17a2b8 !important;
}

.h-100 {
    height: 100% !important;
}

/* === HEADER === */
.header {
    background-color: white;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
}

.brand-name {
    font-weight: 700;
    color: #2c2e61;
    text-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    letter-spacing: 0.5px;
}

.brand-name i {
    color: #007bff;
    margin-right: 0.5rem;
}

.logo img {
    max-height: 40px;
}

.nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 0.5rem;
}

.nav-link {
    color: #495057;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: #e9ecef;
    color: #007bff;
}

/* Header buttons */
.btn-outline-secondary.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    border-radius: 6px;
    border-color: #6c757d;
    color: #6c757d;
    transition: all 0.3s ease;
}

.btn-outline-secondary.btn-sm:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Language dropdown in header */
.dropdown-toggle {
    background: none;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
    background-color: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

/* Footer */
.footer {
    margin-top: 3rem;
    padding: 2rem 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
}

.footer-links a:hover {
    color: #007bff;
}

/* Адаптивность */
@media (max-width: 992px) {
    .col-lg-4, .col-lg-8 {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .col-md-6 {
        width: 100%;
    }
    
    .hero-section {
        min-height: 400px;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
}
