/* Main Styles - Основные стили ТРОН */

:root {
    --tron-blue: #0066CC;
    --tron-dark-blue: #004499;
    --tron-light-blue: #E6F2FF;
    --tron-gray: #F5F5F5;
    --tron-dark-gray: #666666;
    --tron-text: #333333;
    --tron-white: #FFFFFF;
    --tron-success: #28a745;
    --tron-warning: #ffc107;
    --tron-danger: #dc3545;
    --tron-info: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--tron-white);
    color: var(--tron-text);
    line-height: 1.6;
    font-size: 16px;
}

/* Container - для хедера и футера */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Wide Container - для контента страниц */
.container-wide {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--tron-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--tron-text);
}

a {
    color: var(--tron-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--tron-dark-blue);
}

/* Utility Classes */
.text-primary { color: var(--tron-blue) !important; }
.text-secondary { color: var(--tron-dark-gray) !important; }
.text-success { color: var(--tron-success) !important; }
.text-warning { color: var(--tron-warning) !important; }
.text-danger { color: var(--tron-danger) !important; }
.text-info { color: var(--tron-info) !important; }

.bg-primary { background-color: var(--tron-blue) !important; }
.bg-secondary { background-color: var(--tron-gray) !important; }
.bg-light { background-color: var(--tron-light-blue) !important; }

/* Spacing */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

/* Flexbox */
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }

/* Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Shadows */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Border Radius */
.rounded { border-radius: 0.25rem !important; }
.rounded-sm { border-radius: 0.125rem !important; }
.rounded-lg { border-radius: 0.5rem !important; }
.rounded-xl { border-radius: 1rem !important; }
.rounded-pill { border-radius: 50rem !important; }

/* Transitions */
.transition {
    transition: all 0.3s ease !important;
}

/* Hover Effects */
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Focus States */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.25);
}

/* Selection */
::selection {
    background-color: var(--tron-blue);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--tron-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--tron-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tron-dark-blue);
}

/* Footer Styles */
.footer {
    background-color: var(--tron-blue);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.logo-img { 
    width: 150px;
}

.footer-left .logo-img {
    width: 170px;

}

.footer .contact-info {
    color: rgba(255, 255, 255, 0.9);
}

.footer .phone-number,
.footer .email-address {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.footer .phone-label,
.footer .email-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-section h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: white;
    color: var(--tron-blue);
    transform: translateY(-2px);
}

.social-icon-vk:hover {
    background-color: #4680C2;
    color: white;
}

.social-icon-telegram:hover {
    background-color: #0088cc;
    color: white;
}

@media (max-width: 991px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-left,
    .footer-section {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}