/* ============================================
   TradeMasteryPro - Основные стили
   ============================================ */

/* Импорт Bootstrap Icons */
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css');

/* ============================================
   Переменные и базовые настройки
   ============================================ */
:root {
    --color-orange: #ff6b35;
    --color-turquoise: #00d4ff;
    --color-dark-bg: #1a1a1a;
    --color-dark-text: #1a1a1a;
    --color-dark-text-alt: #2c3e50;
    --color-white: #ffffff;
    --gradient-main: linear-gradient(135deg, #ff6b35 0%, #00d4ff 100%);
    --gradient-reverse: linear-gradient(135deg, #00d4ff 0%, #ff6b35 100%);
    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 10px 15px rgba(0, 0, 0, 0.2), 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    background-color: var(--color-dark-bg);
    color: var(--color-dark-text-alt);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   Навигация
   ============================================ */
.navbar {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--color-white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--color-turquoise) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Мега-меню */
.dropdown-menu {
    background-color: rgba(26, 26, 26, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 250px;
}

.dropdown-item {
    color: var(--color-white) !important;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--gradient-main);
    color: var(--color-white) !important;
}

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* ============================================
   Hero секция
   ============================================ */
.hero-section {
    min-height: 90vh;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-image-container {
    position: relative;
    z-index: 2;
}

.hero-image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-card-hover);
}

/* ============================================
   Карточки с боковыми акцентами
   ============================================ */
.card-custom {
    background-color: var(--color-white);
    border: none;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-custom::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--gradient-main);
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.card-custom.orange-accent::before {
    background: var(--color-orange);
}

.card-custom.turquoise-accent::before {
    background: var(--color-turquoise);
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-dark-text);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--color-dark-text-alt);
    font-size: 1.1rem;
}

/* ============================================
   Статистика с круглыми бейджами
   ============================================ */
.stats-section {
    background-color: var(--color-dark-bg);
    padding: 4rem 0;
}

.stat-badge {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
    transition: transform 0.3s ease;
}

.stat-badge:hover {
    transform: scale(1.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.stat-description {
    text-align: center;
    color: var(--color-white);
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* ============================================
   CTA секции
   ============================================ */
.cta-section {
    background: var(--gradient-main);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(100px);
}

.cta-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-cta {
    background-color: var(--color-white);
    color: var(--color-dark-text);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: var(--color-dark-text);
}

.btn-gradient {
    background: var(--gradient-main);
    color: var(--color-white);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
    color: var(--color-white);
}

/* ============================================
   Секции услуг
   ============================================ */
.services-section {
    padding: 5rem 0;
    background-color: var(--color-dark-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 3rem;
}

.service-card {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 2.5rem;
    height: 100%;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--gradient-main);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.service-icon {
    font-size: 3rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark-text);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-dark-text-alt);
    font-size: 1rem;
    line-height: 1.7;
}

/* ============================================
   Отзывы
   ============================================ */
.testimonial-section {
    padding: 5rem 0;
    background-color: var(--color-dark-bg);
}

.testimonial-card {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    color: var(--color-orange);
    opacity: 0.2;
    font-weight: 800;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--color-dark-text-alt);
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--color-dark-text);
    margin-top: 1rem;
}

.testimonial-role {
    color: var(--color-turquoise);
    font-size: 0.9rem;
}

/* ============================================
   Футер
   ============================================ */
.footer {
    background-color: #0f0f0f;
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
}

.footer-content {
    color: rgba(255, 255, 255, 0.8);
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-turquoise);
}

.footer-contact {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-contact strong {
    color: var(--color-white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient-main);
    transform: translateY(-3px);
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Формы
   ============================================ */
.form-section {
    padding: 5rem 0;
    background-color: var(--color-dark-bg);
}

.contact-form {
    background-color: var(--color-white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-card);
}

.form-label {
    font-weight: 600;
    color: var(--color-dark-text);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-turquoise);
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
    outline: none;
}

.form-check-input:checked {
    background-color: var(--color-orange);
    border-color: var(--color-orange);
}

.form-check-label {
    color: var(--color-dark-text-alt);
}

.form-check-label a {
    color: var(--color-turquoise);
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

.alert {
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   Типографика
   ============================================ */
.display-5 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
}

.display-6 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--color-dark-text);
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Утилиты
   ============================================ */
.bg-dark-custom {
    background-color: var(--color-dark-bg);
}

.bg-white-custom {
    background-color: var(--color-white);
}

.text-white-custom {
    color: var(--color-white);
}

.shadow-custom {
    box-shadow: var(--shadow-card);
}

.shadow-custom-hover {
    box-shadow: var(--shadow-card-hover);
}

/* ============================================
   Адаптивность
   ============================================ */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2.5rem;
    }
    
    .display-6 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .dropdown-menu {
        text-align: center;
    }
    
    .stat-badge {
        width: 120px;
        height: 120px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .card-custom {
        padding: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .btn-cta,
    .btn-gradient {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .stat-badge {
        width: 100px;
        height: 100px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
}

/* ============================================
   Изображения
   ============================================ */
.img-placeholder {
    width: 100%;
    height: auto;
    min-height: 300px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.img-placeholder::before {
    content: 'Image 1980x1280';
}

/* ============================================
   Дополнительные секции
   ============================================ */
.compliance-section,
.certifications-section,
.differentiators-section,
.supported-section {
    padding: 5rem 0;
    background-color: var(--color-dark-bg);
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.logo-item {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.logo-item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ============================================
   Загрузка и анимации (минимум)
   ============================================ */
.fade-in {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* Убираем лишние анимации для производительности */
* {
    animation-duration: 0.3s !important;
    animation-timing-function: ease !important;
}

/* ============================================
   Стили для секции контактов
   ============================================ */
.contact-info-card {
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.contact-info {
    font-size: 1rem;
    line-height: 1.8;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.1rem;
}

.contact-content {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-dark-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.contact-value {
    font-size: 1rem;
    color: var(--color-dark-text-alt);
    margin: 0;
    line-height: 1.6;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.contact-value a {
    color: var(--color-turquoise);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-value a:hover {
    color: var(--color-orange);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-icon {
        margin-bottom: 0.5rem;
    }
}

