/* ========== ОСНОВНЫЕ СТИЛИ ========== */
body {
    font-family: 'Segoe UI', 'Roboto', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* ========== ШАПКА ========== */
.site-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 3px solid #dc3545;
}

.header-slogan {
    font-size: 14px;
    color: #666;
    font-style: italic;
    background: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-phones .phone {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.header-phones .phone i {
    margin-right: 8px;
    font-size: 20px;
}

.header-phones .phone:first-child i {
    color: #dc3545;
}

/* ========== НАВИГАЦИЯ ========== */
.navbar-dark.bg-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #1a2632 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    padding: 12px 20px;
    transition: all 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffc107;
    transform: translateY(-2px);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #ffc107;
    font-weight: bold;
    background: rgba(255,193,7,0.1);
}

.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    margin-top: 0;
    padding: 10px 0;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background-color: #dc3545;
    color: white;
    transform: translateX(5px);
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
.main-content {
    min-height: 500px;
}

/* Заголовки */
h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #dc3545;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #dc3545;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

h4, h5, h6 {
    color: #2c3e50;
}

/* Ссылки */
a {
    color: #dc3545;
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: #b02a37;
    text-decoration: none;
}

/* Кнопки */
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220,53,69,0.3);
}

.btn-outline-danger {
    border-width: 2px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220,53,69,0.2);
}

.art-button {
    display: inline-block;
    padding: 10px 30px;
    background-color: #dc3545;
    color: #fff;
    border-radius: 5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.art-button:hover {
    background-color: #bb2d3b;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220,53,69,0.3);
    text-decoration: none;
}

/* ========== КАРТОЧКИ ТОВАРОВ ========== */
.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    margin-bottom: 25px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #dc3545;
}

.product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

/* ========== ЦЕНЫ И ТАБЛИЦЫ ========== */
.price-badge {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table thead th {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* ========== ПОДВАЛ ========== */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-top: 3px solid #dc3545;
}

.site-footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
}

.site-footer a {
    transition: all 0.3s;
}

.site-footer a:hover {
    color: #ffc107 !important;
    transform: translateX(5px);
}

.hover-danger:hover {
    color: #dc3545 !important;
}

/* ========== БЛОК С ГОРОДАМИ ========== */
.cities-block {
    background: #f8f9fa;
}

.cities-block a {
    transition: all 0.3s;
    display: inline-block;
}

.cities-block a:hover {
    color: #dc3545 !important;
    transform: translateX(5px);
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .product-card {
        padding: 20px 15px;
    }
    
    .header-slogan {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .header-phones .phone {
        font-size: 14px;
    }
    
    .btn-danger, .art-button {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table thead th {
        padding: 8px;
    }
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ========== СПИСОК СТАТЕЙ ========== */
.list-group-item {
    border: none;
    padding: 12px 20px;
    margin-bottom: 5px;
    border-radius: 8px !important;
    transition: all 0.3s;
}

.list-group-item:hover {
    background: #dc3545;
    color: white;
    transform: translateX(5px);
}

.list-group-item:hover a {
    color: white;
}

/* ========== ФОРМЫ ========== */
.form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220,53,69,0.25);
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    background: #dc3545;
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}