/*
Theme Name:  casiatrade25
Author: ims bishkek

*/
 
       :root {
            --primary-color: #003c52;
            --secondary-color: #6c757d;
            --accent-color: #ff851a;
            --light-bg: #f8f9fa;
            --dark-text: #212529;
			
        }
		
    
        body {
            font-family: "Noto Sans JP", sans-serif;
            line-height: 1.6;
            color: var(--dark-text);
        }
        a {
		color:   var(--primary-color);
		}
        .navbar-brand {
            font-weight: 700;
            color: var(--primary-color) !important;
        }
        
        .navbar-nav .nav-link {
            color: var(--dark-text) !important;
            font-weight: 500;
            margin: 0 8px;
            transition: color 0.3s ease;
        }
        
        .navbar-nav .nav-link:hover {
            color: var(--accent-color) !important;
        }
		
		
li.nav-item.dropdown:hover .dropdown-menu {
    display: block !important;
} 

        
        .btn-primary {
            background: linear-gradient(135deg, #7a7a7a, var(--accent-color));
            border-color: var(--accent-color);
			border: none;
            font-weight: 600;
            padding: 10px 30px;
            border-radius: 6px;
        }
        
        .btn-primary:hover {
            background-color: #e76f00;
			border: none;
            border-color: #e76f00;
            transform: translateY(-1px);
        }
        
        .hero-section {
            background: linear-gradient(135deg, #003c52 0%, #6610f2 100%);
            color: white;
            padding: 100px 0;
            margin-top: 70px;
        }
        
        .hero-section h1 {
            font-weight: 700;
            font-size: 3rem;
            margin-bottom: 1rem;
        }
        
 
 

.video-hero .owl-nav {
    position: absolute; top: 50%; width: 100%; z-index: 10;
}
.video-hero .owl-prev { position: absolute; left: 20px; color: white; font-size: 30px; }
.video-hero .owl-next { position: absolute; right: 20px; color: white; font-size: 30px; }
.video-hero .owl-dots { position: absolute; bottom: 90px; width: 100%; text-align: center; }
.video-hero .owl-dot span { background: white !important; }
.video-hero .owl-dot.active span { background: #007bff !important; }
.services-rounded { position: absolute; bottom: 0; left: 0; width: 100%; z-index: 10; }
        .card {
            border: none;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border-radius: 12px;
            overflow: hidden;
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }
        
        .card-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #7a7a7a, var(--accent-color));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            margin: 0 auto 20px;
        }
        
        .section-title {
            font-weight: 700;
            color: var(--dark-text);
            margin-bottom: 50px;
            text-align: center;
            position: relative;
        }
        
        .section-title::after {
            content: '';
            width: 60px;
            height: 4px;
            background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 2px;
        }
        
        .product-card-img {
            height: 200px;
            object-fit: cover;
            background: linear-gradient(45deg, #f8f9fa, #e9ecef);
        }
        
        .footer {
            background: #1a1a1a;
            color: white;
            padding: 50px 0 20px;
        }
        
        .footer a {
            color: #adb5bd;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .footer a:hover {
            color: var(--accent-color);
        }
        
        .contact-info i {
            color: var(--accent-color);
            margin-right: 10px;
        }
        
        .map-container {
            height: 400px;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        .form-control {
            border-radius: 8px;
            border: 1px solid #dee2e6;
            padding: 12px 15px;
        }
        
        .form-control:focus {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.25);
        }
		
		span.badge.bg-primary.me-2 {
    max-width: 11rem;
    overflow: hidden;
}

.filter-bar .btn { margin: 5px; }
.filter-bar .btn.active { background-color: var(--primary-color); color: white; }
.product-item { transition: all 0.3s ease; }
		
		/* Video Hero Section */
.video-hero {
    position: relative;
 
	margin-top: 95px;
 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.video-hero .owl-item video,
.video-hero .owl-item img {
position: absolute;
    top: 50%; 
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.6) contrast(1.1);
}

.video-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgb(7 65 87 / 0%) 0%, rgb(102 16 242 / 0%) 35%, rgb(6 65 86 / 0%) 65%, rgba(40, 167, 69, 0.6) 100%);
    z-index: -1;
    backdrop-filter: blur(1px);
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(248, 249, 250, 0.95) 70%, 
        var(--light-bg) 100%);
    z-index: 0;
}

.video-hero .container {
    position: relative;
    z-index: 2;
}

.video-hero h1 {
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    color: white;
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.video-hero .lead {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
    color: rgba(255,255,255,0.98);
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.video-hero .btn {
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 10px;
    text-shadow: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 15px 15px 0;
    border: 2px solid;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out 0.9s both;
}

.video-hero .btn-light {
    background: rgba(255,255,255,0.95);
    border-color: rgba(255,255,255,0.9);
    color: var(--dark-text);
}

.video-hero .btn-light:hover {
    background: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    color: var(--dark-text);
}

.video-hero .btn-outline-light {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.video-hero .btn-outline-light:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    color: white;
}

.hero-illustration {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-illustration i {
    animation: float 6s ease-in-out infinite;
}

.hero-illustration .fa-microscope {
    animation-delay: -2s;
}

.hero-illustration .fa-chart-line {
    animation-delay: -4s;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .video-hero {
        height: 90vh;
        min-height: 600px;
        text-align: center;
    }
    
    .video-hero h1 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .video-hero .lead {
        font-size: clamp(1rem, 3vw, 1.2rem);
        margin-bottom: 2rem;
    }
    
    .video-hero .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
        text-align: center;
    }
    
    .hero-illustration {
        display: none;
    }
    
    .video-hero::before {
        background: linear-gradient(135deg, 
            rgba(13, 110, 253, 0.9) 0%, 
            rgba(102, 16, 242, 0.8) 35%, 
            rgba(253, 126, 20, 0.75) 65%, 
            rgba(40, 167, 69, 0.7) 100%);
    }
}

@media (max-width: 576px) {
    .video-hero video {
        filter: brightness(0.5) contrast(1.2);
    }
    
    .video-hero h1 {
        font-size: 1.8rem;
    }
    
    .video-hero .lead {
        font-size: 1rem;
    }
}

/* Оптимизация производительности */
.video-hero video {
    will-change: transform;
}

.video-hero .btn {
    will-change: transform;
    backface-visibility: hidden;
}

/* Фокус для доступности */
.video-hero .btn:focus {
    outline: 2px solid rgba(255,255,255,0.8);
    outline-offset: 2px;
}


/* Карусель в Hero секции */
.hero-carousel {
    position: relative;
    height: 600px;
 
}

.carousel-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) contrast(1.1);
}

.carousel-item {
    transition: transform 0.8s ease-in-out;
}

.carousel-item.active .carousel-image {
    transform: scale(1.05);
}

.carousel-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    color: white;
    text-align: left;
    border-left: 4px solid var(--accent-color);
    animation: slideInLeft 0.6s ease-out 0.3s both;
}

.carousel-caption h5 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    font-size: 1rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}



/* Индикаторы карусели */
.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    margin: 0 4px;
}

.carousel-indicators .active {
    background-color: var(--accent-color);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(253, 126, 20, 0.6);
}

/* Кнопки навигации */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-size: 20px 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3c/svg%3e");
}

/* Анимации */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hover эффекты */
.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 0.9;
}

.carousel-image-container:hover .carousel-image {
    transform: scale(1.08);
    filter: brightness(1) contrast(1.15);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .hero-carousel {
        height: 500px;
    }
    
    .carousel-caption h5 {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .hero-carousel {
        height: 450px;
    }
    
    .carousel-caption {
        bottom: 20px;
        left: 20px;
        right: 20px;
        padding: 15px;
    }
    
    .carousel-caption h5 {
        font-size: 1.2rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 400px;
        border-radius: 15px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 8%;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
    }
}

/* Оптимизация производительности */
.carousel-image {
    will-change: transform;
}

.carousel-control-prev,
.carousel-control-next {
    will-change: opacity;
}

/* Доступность */
.carousel-indicators button:focus,
.carousel-control-prev:focus,
.carousel-control-next:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.carousel-caption {
    max-width: 100%;
    word-wrap: break-word;
}

/* Кастомные переходы */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-property: opacity;
    transform: none;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end,
.carousel-fade .carousel-item-next.carousel-item-start.active,
.carousel-fade .carousel-item-prev.carousel-item-end.active {
    opacity: 0;
}

.carousel-fade .carousel-item-left.active,
.carousel-fade .carousel-item-right.active {
    opacity: 0;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-left.active,
.carousel-fade .carousel-item-right.active {
    transform: translateX(0);
}



/* ✅ ПАРТНЕРЫ - ОДИНАКОВЫЕ ЯЧЕЙКИ + АДАПТИВНЫЕ SVG */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* ✅ Одинаковые ячейки */
    gap: 15px;
    justify-items: center;
    margin: 20px 0;
}

.partner-item {
    width: 120px;           /* ✅ Фиксированная ширина */
    height: 100px;  
	margin: 10px; 
    display: flex;
    align-items: center;    /* ✅ По центру */
    justify-content: center;
    padding: 15px;          /* ✅ Отступы */
    border: 1px solid #dee2e6;
    border-radius: 8px;     /* ✅ Скругление */
    background: #fff;
    transition: all 0.3s ease;
}

.partner-item:hover {
    border-color: #007cba;
    box-shadow: 0 4px 12px rgba(0,124,186,0.15);
    transform: translateY(-2px);
}

.partner-logo {
    max-width: 90px;        /* ✅ Максимум для SVG */
    max-height: 70px;       /* ✅ Максимум для SVG */
    width: auto;            /* ✅ Авто ширина */
    height: auto;           /* ✅ Авто высота */
    object-fit: contain;    /* ✅ SVG подстраивается БЕЗ искажений */
    object-position: center;
}

/* ✅ АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .partner-item {
        width: 100px;
        height: 80px;
        padding: 10px;
    }
    
    .partner-logo {
        max-width: 70px;
        max-height: 50px;
    }
}


section#services {
    background-image: url(./images/servicesbg.jpeg);
    padding: 100px 0 !important;
	position:relative;
}


section#services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgb(7 65 87 / 78%) 0%, rgb(102 16 242 / 49%) 35%, rgb(6 65 86 / 41%) 65%, rgba(40, 167, 69, 0.6) 100%);
    z-index: 0;
 
}

section#services h2.section-title {
    color: white;
    font-size: 3rem;
}
.services-rounded {
    position: absolute;
    bottom: 0;
    width: 100%;
}


/* Принудительное переопределение с !important */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

.btn-primary:hover,
.btn-primary:active {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}


nav.navbar {
    padding: 2rem 0;
}


.text-center.phone a {
    color: #023d53;
    font-weight: bold;
}


/* Стили для секции категорий с изображениями */
.category-card {
    position: relative;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    border: none;
}

.category-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.8) contrast(1.1);
}

.category-card:hover .card-img {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.15);
}

.category-card-overlay {
    position: relative;
    width: 100%;
	    height: 100%;
    padding: 1.5rem;
    background: white;
    z-index: 2;
    transition: all 0.4s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

 
.card-content {
    text-align: center;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.card-title {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    position: relative;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .card-title::after {
    opacity: 1;
}

.category-card:hover .card-title {
    color: var(--primary-color);
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
    max-width: 100%;
}

.category-card:hover .card-text {
    color: var(--dark-text);
}

.category-link {
    color: var(--primary-color) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px;
    border: 2px solid transparent;
    border-radius: 25px;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(90deg, var(--primary-color), var(--accent-color)) border-box;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.category-card:hover .category-link::before {
    left: 100%;
}

.category-link:hover {
    color: white !important;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    border-color: transparent !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 60, 82, 0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .category-card {
        border-radius: 12px;
    }
    
    .category-card-image {
        height: 200px;
    }
    
    .category-card-overlay {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .card-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .category-link {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
    
    .category-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

@media (max-width: 576px) {
    .category-card-image {
        height: 180px;
    }
    
    .category-card-overlay {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .category-link {
        padding: 5px 14px;
        font-size: 0.8rem;
    }
}

/* Анимации появления */
.category-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Эффекты для изображений */
.card-img {
    will-change: transform, filter;
}

.category-card:hover .card-img {
    animation: imageZoom 0.6s ease-out;
}

@keyframes imageZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Дополнительные эффекты */
.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 60, 82, 0.05) 0%, 
        rgba(255, 133, 26, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.category-card:hover::after {
    opacity: 1;
}

/* Фокус для доступности */
.category-card:focus-within {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.category-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Lazy loading для изображений */
.card-img {
    loading: lazy;
}

/* Hover эффекты для мобильных */
@media (hover: none) and (pointer: coarse) {
    .category-card:hover {
        transform: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    }
    
    .category-card:hover .card-img {
        transform: none;
    }
    
    .category-card:hover .category-card-overlay {
        background: white;
        padding: 1.5rem;
        transform: none;
    }
}


ul.dropdown-menu {
    padding: 0rem;
}

ul.dropdown-menu li a {
    text-decoration: none;
}

ul.dropdown-menu li {
    border-bottom: 1px solid black;
    padding: 0.5rem 1rem;
}

ul.dropdown-menu li:last-child {
    border-bottom: 0;
}