/* ===================================
   Общие стили
   =================================== */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.top-bar {
    font-size: 0.875rem;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    min-height: 500px;
}

.hero-section h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Hero Section Cards Hover */
.hero-section .col-6 > div:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.25) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Hero Section Buttons */
.hero-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3) !important;
}

.hero-section .btn-outline-light:hover {
    background: rgba(255,255,255,0.2) !important;
    transform: translateY(-2px);
    border-color: #ffffff !important;
}

/* Modern Hero Section */
.hero-section-modern {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%) !important;
    min-height: 600px;
    position: relative;
    color: #ffffff !important;
}

/* Dark Overlay for better contrast */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Animated Background Shapes */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.hero-bg-shapes .shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.hero-bg-shapes .shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 10%;
    animation-delay: 5s;
}

.hero-bg-shapes .shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Hero Content */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.5), 0 0 20px rgba(0,0,0,0.3);
    letter-spacing: -1px;
    font-weight: 800 !important;
    color: #ffffff !important;
}

.hero-subtitle {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    opacity: 1;
    font-weight: 400;
    color: #ffffff !important;
}

.hero-badge {
    animation: slideInDown 0.8s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-features {
    font-size: 1.1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    color: #ffffff !important;
}

.hero-features span {
    color: #ffffff !important;
}

.hero-btn {
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-width: 2px !important;
}

.hero-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.btn-warning.hero-btn {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #1e3a8a !important;
}

.btn-warning.hero-btn:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #1e3a8a !important;
}

.btn-outline-light.hero-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    border-color: white !important;
}

/* Hero Visual - Icons Grid */
.hero-visual {
    position: relative;
    animation: fadeIn 1.2s ease-out;
}

.hero-icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.hero-icon-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    animation: popIn 0.6s ease-out backwards;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-icon-item:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-icon-item i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.hero-icon-item span {
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    color: #ffffff !important;
}

/* ===================================
   Feature Cards
   =================================== */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    background: white;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* ===================================
   Product Cards
   =================================== */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* ===================================
   Project Cards
   =================================== */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.project-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

/* ===================================
   News Cards
   =================================== */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.news-card img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

/* ===================================
   Testimonial Cards
   =================================== */
.testimonial-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.rating i {
    font-size: 1.2rem;
}

/* ===================================
   Team Cards
   =================================== */
.team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.team-card img {
    height: 250px;
    object-fit: cover;
}

/* ===================================
   Partner Logos
   =================================== */
.partner-logo,
.partner-card {
    transition: transform 0.3s ease;
    padding: 20px;
    background: white;
    border-radius: 10px;
}

.partner-logo:hover,
.partner-card:hover {
    transform: scale(1.05);
}

/* ===================================
   Certificate Cards
   =================================== */
.certificate-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.certificate-card img {
    height: 250px;
    object-fit: cover;
}

/* ===================================
   Product Detail
   =================================== */
.thumbnail-image {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail-image:hover,
.thumbnail-image.active {
    border-color: var(--primary-color);
}

/* ===================================
   Page Header
   =================================== */
.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.page-header h1 {
    color: var(--dark-color);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark-color);
    margin-top: auto;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

/* ===================================
   Telegram Float Button
   =================================== */
.telegram-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #0088cc;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,136,204,0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.telegram-float-btn:hover {
    background: #006699;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,136,204,0.6);
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.5);
    cursor: pointer;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
    transform: translateY(-8px) scale(1.15) rotate(5deg);
    box-shadow: 0 12px 35px rgba(13, 110, 253, 0.7);
    border-color: rgba(255, 255, 255, 0.6);
}

.back-to-top-btn:active {
    transform: translateY(-3px) scale(1.05);
}

.back-to-top-btn i {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: bounce 2s infinite;
}

.back-to-top-btn:hover i {
    transform: translateY(-5px) scale(1.2);
    animation: none;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ===================================
   Buttons
   =================================== */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #0a58ca;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13,110,253,0.3);
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13,110,253,0.2);
}

/* ===================================
   Forms
   =================================== */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
}

/* ===================================
   Accordion
   =================================== */
.accordion-button:not(.collapsed) {
    background-color: rgba(13,110,253,0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
}

/* ===================================
   Pagination
   =================================== */
.pagination .page-link {
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===================================
   Badges
   =================================== */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* ===================================
   Map Container
   =================================== */
.map-container {
    position: relative;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===================================
   Responsive
   =================================== */
/* Hero Button Hover Effects */
.hero-section-modern .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3) !important;
}

.hero-section-modern .btn:active {
    transform: translateY(-1px) scale(1);
}

/* Hero Cards Hover */
.hero-visual > div > div > div:hover {
    transform: translateY(-8px) scale(1.03);
    background: rgba(255,255,255,0.18) !important;
    box-shadow: 0 12px 48px rgba(0,0,0,0.3) !important;
}

@media (max-width: 992px) {
    .hero-section-modern {
        min-height: auto !important;
        padding: 4rem 0 !important;
    }
    
    .hero-section-modern .display-2 {
        font-size: 2.5rem !important;
    }
    
    .hero-section-modern .fs-5 {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section-modern {
        min-height: auto !important;
        padding: 3rem 0 !important;
    }
    
    .hero-section-modern .display-2 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-section-modern .fs-5 {
        font-size: 1rem !important;
    }
    
    .hero-section-modern .btn {
        padding: 0.75rem 2rem !important;
        font-size: 0.95rem !important;
    }
    
    .hero-section-modern .badge {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    .hero-visual > div > div > div {
        padding: 1.5rem 1rem !important;
    }
    
    .hero-visual .rounded-circle {
        width: 50px !important;
        height: 50px !important;
    }
    
    .hero-visual .bi {
        font-size: 1.5rem !important;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .hero-icons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }
    
    .hero-icon-item {
        padding: 20px 15px;
    }
    
    .hero-icon-item i {
        font-size: 2rem;
    }
    
    .hero-btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem;
    }
    
    .hero-features {
        font-size: 1rem;
    }
    
    .telegram-float-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 80px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .hero-section-modern {
        padding: 2rem 0 !important;
    }
    
    .hero-section-modern .display-2 {
        font-size: 1.75rem !important;
    }
    
    .hero-section-modern .btn {
        width: 100%;
        padding: 0.875rem 1.5rem !important;
    }
    
    .hero-section-modern .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .hero-visual > div {
        gap: 0.75rem !important;
    }
    
    .hero-visual > div > div > div {
        padding: 1.25rem 0.75rem !important;
    }
    
    .hero-visual .rounded-circle {
        width: 45px !important;
        height: 45px !important;
    }
    
    .hero-visual h6 {
        font-size: 0.85rem !important;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .hero-icons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .hero-icon-item {
        padding: 15px 10px;
    }
    
    .hero-icon-item i {
        font-size: 1.5rem;
    }
    
    .hero-icon-item span {
        font-size: 0.8rem;
    }
    
    .telegram-float-btn {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .back-to-top-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 70px;
    }
}

/* ===================================
   Utilities
   =================================== */
.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;
}

.rounded {
    border-radius: 0.375rem !important;
}

/* ===================================
   Custom Scrollbar
   =================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}