/* ==========================================
   Центр Комплексного Снабжения — app.css
   ========================================== */

:root {
    --primary: #0e0c7d;
    --accent: #f56e00;
    --accent-hover: #e56a00;
    --text: #333;
    --text-muted: #666;
    --bg-light: #f8f9fa;
}

body {
    color: var(--text);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* --- Colors override --- */
.bg-primary,
.header-top.bg-primary {
    background-color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #0b0a66;
    border-color: #0b0a66;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.text-accent {
    color: var(--accent) !important;
}

/* --- Header --- */
.header-top a:hover {
    opacity: 0.85;
}

.navbar-brand img {
    max-height: 50px;
}

.nav-link {
    color: var(--text) !important;
    font-weight: 500;
    transition: color .2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* --- Section titles --- */
.section-title {
    color: var(--primary);
    font-weight: 700;
    position: relative;
}

/* --- Card Img hover effect --- */
.card-img-wrap {
    overflow: hidden;
}

.card-img-wrap img {
    transition: transform 0.35s ease;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-img-wrap:hover img {
    transform: scale(1.07);
}

/* --- Product cards --- */
.product-card .card-body {
    display: flex;
    flex-direction: column;
}

.product-name a:hover {
    color: var(--primary) !important;
}

.product-price {
    color: var(--primary);
    font-size: 1.1rem;
}

/* --- Hero banner --- */
.hero-banner {
    background: #fff url('../images/bg-hero.webp') center/cover no-repeat;
    min-height: 380px;
    display: flex;
    /* color:#0b0a66 */
}

.hero-overlay {
    width: 100%;
    padding: 3rem 2rem;
}

.hero-content {
    max-width: 650px;
}

/* --- Steps (How we work) --- */
.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

/* --- Advantages --- */
.advantage-card {
    border-radius: 0.5rem;
    transition: box-shadow .3s;
}

.advantage-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1a18a8 100%);
}

/* --- Sidebar --- */
.sidebar-title {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.sidebar-menu .sidebar-item {
    margin-bottom: 0.25rem;
}

.sidebar-link {
    display: block;
    padding: 0.35rem 0;
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color .2s;
}

.sidebar-link:hover,
.sidebar-item.active>div>.sidebar-link {
    color: var(--primary);
    font-weight: 600;
}

.sidebar-toggle {
    color: var(--text-muted);
    transition: transform .3s;
    border: none;
    background: none;
}

.sidebar-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
}

.sidebar-submenu {
    padding-left: 1rem;
    border-left: 2px solid #eee;
    margin-top: 0.25rem;
}

.sidebar-submenu li.active .sidebar-link {
    color: var(--accent);
    font-weight: 600;
}

/* --- Footer --- */
.footer {
    color: #aaa;
}

.footer h6 {
    color: #fff;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: color .2s;
}

.footer-links a:hover {
    color: #fff;
}

/* --- Product gallery --- */
.main-product-image {
    max-height: 450px;
    object-fit: contain;
    background: #f8f9fa;
}

.product-thumb {
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s;
}

.product-thumb.active,
.product-thumb:hover {
    border-color: var(--primary);
}

/* --- News --- */
.news-content img {
    max-width: 100%;
    height: auto;
}

/* --- Page content --- */
.page-content h2 {
    color: var(--primary);
    margin-top: 1.5rem;
}

.page-content h3 {
    color: var(--text);
    margin-top: 1.25rem;
}

/* --- Order modal --- */
#orderModal .modal-header {
    background: none;
}

#orderModal .modal-title {
    color: var(--primary);
    font-weight: 700;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-banner {
        min-height: 280px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .card-img-wrap img {
        height: 160px;
    }
}

/** * --- Mobile Call Button --- 
 * Появляется на мобильных устройствах и позволяет пользователю быстро позвонить в компанию.
 */
.mobile-call-btn {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #198754;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    z-index: 1040;
    text-decoration: none;
}

.mobile-call-btn:hover,
.mobile-call-btn:focus {
    color: #fff;
    background-color: #157347;
}

@media (max-width: 991.98px) {
    .mobile-call-btn {
        display: inline-flex;
    }
}

#cookieNotice {
	background: rgba(47, 47, 81, 0.8) !important;
	z-index: 999999 !important;
}
#cookieNotice a {
	color: var(--primary-color);
}
