:root {
    --primary: #feca57;
    --secondary: #e74c3c;
    --accent: #3498db;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
}

/* Глобальные стили */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Хедер */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, #34495e 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Стили для сетки товаров каталога */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

/* Адаптивность для разных экранов */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.product-card-catalog {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-catalog:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-image-container {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-catalog:hover .product-image {
    transform: scale(1.05);
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
}

.badge-new {
    background: #28a745;
    color: white;
}

.badge-sale {
    background: #dc3545;
    color: white;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
    line-height: 1.3;
}

.product-price {
    margin-bottom: 15px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.old-price {
    font-size: 16px;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 8px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

/* Хлебные крошки */
.breadcrumb-item a {
    color: #000 !important;
}

.breadcrumb-item.active {
    color: #000 !important;
}

/* Заголовок страницы */
.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Фильтры */
.filter-sidebar {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.filter-header {
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
    margin-bottom: 20px;
}

/* Анимация появления */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-nav .nav-link {
    color: #ffffff !important;  /* БЕЛЫЙ - отличная контрастность */
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin: 0 0.2rem;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.navbar-nav .nav-link:hover {
    color: #feca57 !important;  /* ЯРКО-ЖЕЛТЫЙ при наведении */
    background: rgba(254, 202, 87, 0.1);
    transform: translateY(-2px);
    opacity: 1;
}

.navbar-nav .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-weight: 600;
    opacity: 1;
}

.navbar-nav .nav-link i {
    color: #ffffff;  /* БЕЛЫЕ иконки */
    transition: color 0.3s ease;
    opacity: 0.9;
}

/* Карточки товаров */
.product-card {
    background: white;
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.discount-badge {
    background: linear-gradient(45deg, var(--secondary), var(--warning));
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

/* Кнопки */
.btn {
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--accent), var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

/* Герой секция */
.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%),
                url('https://images.unsplash.com/photo-1556228453-efd6c1ff04f6?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    border-radius: 0 0 50px 50px;
    margin-bottom: 50px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-section .lead {
    font-size: 1.4rem;
    opacity: 0.9;
}

/* Категории */
.category-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px) rotate(2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Цены */
.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.old-price {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 1.1rem;
}

/* Футер */
.main-content {
    position: relative;
    z-index: 2;
}

.main-content::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(248, 249, 250, 0.3) 30%,
        rgba(248, 249, 250, 0.6) 60%,
        #f8f9fa 100%
    );
    z-index: 1;
    pointer-events: none;
}

.footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    padding: 80px 0 30px;
    margin-top: 0;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    z-index: 2;
}

.footer h5 {
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.footer h3 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer p {
    color: #5a6c7d;
    line-height: 1.6;
}

.footer .text-muted {
    color: #6c757d !important;
}

.footer a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #667eea;
    transform: translateY(-2px);
}

/* Социальные иконки */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    margin: 0 8px;
    transition: all 0.3s ease;
    color: #667eea !important;
}

.social-links a:hover {
    background: #667eea;
    color: white !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Контактная информация */
.contact-info {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: #667eea;
    margin-right: 10px;
    width: 20px;
}

/* Разделитель */
.footer hr {
    border-color: rgba(102, 126, 234, 0.2);
    margin: 2rem 0;
}

/* Копирайт */
.footer .text-center {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 50px;
    }

    .footer h5 {
        font-size: 1.1rem;
    }

    .social-links {
        text-align: center;
        margin-top: 1rem;
    }

    .social-links a {
        margin: 0 5px;
    }
}

/* Дополнительные улучшения */
.footer .row > div {
    margin-bottom: 2rem;
}

.footer .bg-light {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        border-radius: 0 0 30px 30px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .footer {
        border-radius: 30px 30px 0 0;
    }

    .product-card {
        margin-bottom: 20px;
    }
}

/* Специальные эффекты */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-gradient {
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Ховер эффекты */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Утилиты */
.rounded-lg {
    border-radius: 20px;
}

.rounded-xl {
    border-radius: 30px;
}

.shadow-soft {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.shadow-hard {
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Стили для страницы "О нас" */
.hero-section-about {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9) 0%, rgba(41, 128, 185, 0.9) 100%),
                url('https://images.unsplash.com/photo-1493663284031-b7e3aaa4c4b1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    border-radius: 0 0 50px 50px;
    margin-bottom: 50px;
}

.hero-section-about h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.image-placeholder-about {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 2rem;
    text-align: center;
}

.feature-card {
    background: white;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.value-item {
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.contact-card {
    background: white;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.breadcrumb {
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    padding: 0.5rem 1rem;
}

.breadcrumb-item a {
    color: white;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgba(255,255,255,0.8);
}

/* Адаптивность для страницы "О нас" */
@media (max-width: 768px) {
    .hero-section-about {
        padding: 60px 0;
        border-radius: 0 0 30px 30px;
    }

    .hero-section-about h1 {
        font-size: 2.5rem;
    }

    .value-item {
        text-align: center;
        flex-direction: column;
    }

    .value-icon {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }

    .image-placeholder-about {
        min-height: 200px;
        margin-bottom: 2rem;
    }
}

/* Стили для слайдера проектов */
.projects-slider {
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

    position: relative;
    overflow: hidden;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-caption {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(52, 152, 219, 0.8) 100%);
    border-radius: 15px;
    padding: 20px;
    left: 50%;
    right: auto;
    bottom: 50px;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
}

.carousel-caption h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.carousel-caption p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 25px;
    height: 25px;
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators .active {
    background-color: var(--primary);
}

/* Анимация для слайдов */
.carousel-item {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Адаптивность для слайдера */
@media (max-width: 768px) {
        height: 300px !important;
    }

    .carousel-caption {
        bottom: 20px;
        width: 90%;
        padding: 15px;
    }

    .carousel-caption h3 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

/* Адаптивные изображения для слайдов */
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Оптимизация размера слайдов */
    max-height: 500px;
    overflow: hidden;
}

/* Исправление для слайдера - убираем конфликт стилей */
    height: 500px !important;
    overflow: hidden;
}

    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

/* Адаптивные слайды - финальная версия */
    height: 500px;
    overflow: hidden;
    position: relative;
}

    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Десктопная версия слайдера */
@media (min-width: 769px) {
        height: 600px;
    }
    
        object-fit: contain;
        background-color: #f8f9fa; /* Фон если изображение меньше контейнера */
    }
}

/* Планшетная версия */
@media (max-width: 768px) and (min-width: 576px) {
        height: 400px;
    }
}

/* Слайдер без inline-стилей */
    position: relative;
    overflow: hidden;
}

/* Десктоп */
    height: 600px;
}

    object-fit: contain;
    background-color: #f8f9fa;
}

/* Мобильная */
@media (max-width: 768px) {
        height: 300px;
    }
    
        object-fit: cover;
    }
}

/* Оптимальные стили для слайдера */
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Мобильная версия */
@media (max-width: 768px) {
        height: 300px;
    }
    
        object-fit: cover;
        border-radius: 0;
    }
}

/* Полноэкранный слайдер для компьютера */
@media (min-width: 769px) {
        height: 70vh; /* 70% высоты экрана */
        max-height: 800px;
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    }
    
        max-height: 90%;
        max-width: 90%;
        object-fit: contain;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    
    /* Растягиваем карусель на всю ширину */
    .carousel-inner {
        border-radius: 0 !important;
    }
}

/* Мобильная версия - компактная */
@media (max-width: 768px) {
        height: 300px;
        background: #f8f9fa;
    }
    
        object-fit: cover;
        border-radius: 0;
    }
}

/* Слайдер с фоновым изображением */
@media (min-width: 769px) {
    .carousel-inner {
        background-image: url('/media/home/kukhnya-saper-5.webp');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
    }
    
    .carousel-inner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4); /* Тёмный оверлей для читаемости */
        z-index: 1;
    }
    
        height: 70vh;
        max-height: 800px;
        background: transparent !important;
        position: relative;
        z-index: 2;
    }
    
        width: auto;
        max-width: 80%;
        max-height: 80%;
        object-fit: contain;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        background: rgba(255,255,255,0.1);
        backdrop-filter: blur(10px);
    }
}

/* Мобильная - оставляем простой вариант */
@media (max-width: 768px) {
    .carousel-inner {
        background: #f8f9fa;
    }
}

/* Простой и рабочий слайдер */
@media (min-width: 769px) {
        height: 600px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
        max-height: 90%;
        max-width: 90%;
        object-fit: contain;
        border-radius: 10px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }
}

@media (max-width: 768px) {
        height: 300px;
        background: #f8f9fa;
    }
    
        object-fit: cover;
        border-radius: 0;
    }
}

/* Минималистичный быстрый слайдер */
@media (min-width: 769px) {
        height: 500px;
        background: #f8f9fa !important; /* Простой светлый фон */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
        max-height: 100%;
        max-width: 100%;
        object-fit: contain; /* Полное изображение без обрезки */
    }
}

@media (max-width: 768px) {
        height: 300px;
        background: #f8f9fa;
    }
    
        object-fit: cover; /* Обрезка для заполнения на телефоне */
    }
}
