/* ==========================================
   Центр Комплексного Снабжения — app.css
   ========================================== */

:root {
    --primary: #0f6cb2;
    --accent: #fdd922;
    --accent-hover: #e6bf00;
    --text: #333;
    --text-muted: #666;
    --bg-light: #f8f9fa;
    --activelink: #ff7300;
}

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;
}

.bg-primary-light {
    background-color: #4a97d6 !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: var(--text);
}

.btn-accent:hover,
.btn-accent:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.text-accent {
    color: var(--accent) !important;
}

/* --- Header --- */
.header-top a:hover {
    opacity: 0.85;
}

.navbar-brand img {
    max-height: 50px;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    transition: color .2s;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
}

/* Каталог в шапке: подменю по наведению (десктоп), клик по названию — переход на страницу каталога */
@media (min-width: 992px) {
    .catalog-nav-dropdown:hover > .dropdown-menu {
        display: block;
    }

    .catalog-nav-dropdown > .dropdown-menu {
        margin-top: 0;
    }

    .catalog-nav-dropdown > .dropdown-menu::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 100%;
        height: 0.75rem;
    }

    .dropdown-submenu {
        position: relative;
    }

    .dropdown-submenu > .dropdown-submenu-menu {
        display: none;
        top: 0;
        left: 100%;
        margin-top: 0;
        margin-left: 0;
    }

    .dropdown-submenu:hover > .dropdown-submenu-menu {
        display: block;
    }

    .dropdown-submenu > .dropdown-submenu-menu::before {
        content: "";
        position: absolute;
        top: 0;
        right: 100%;
        width: 0.5rem;
        height: 100%;
    }

    .dropdown-item-has-children:hover,
    .dropdown-submenu:hover > .dropdown-item-has-children {
        background-color: var(--bs-dropdown-link-hover-bg, #f8f9fa);
    }
}

@media (max-width: 991.98px) {
    .catalog-nav-dropdown .dropdown-submenu > .dropdown-submenu-menu {
        position: static;
        display: block;
        float: none;
        border: 0;
        box-shadow: none;
        padding: 0 0 0 1rem;
        margin: 0;
        background: transparent;
    }

    .dropdown-submenu-chevron {
        transform: rotate(90deg);
    }
}

/*breadcrumb*/
.breadcrumb{
    margin-top:20px;
    font-size:12px;
    padding: 10px;
}

/* --- 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: 180px;
    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;
}

/* --- Home slider (Owl Carousel) --- */
.home-slider-section {

    overflow: hidden;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}

.home-slider .home-slider__item {
    position: relative;
}

.home-slider__image {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.home-slider__caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
    text-align: center;
    flex-direction: column;
}

.home-slider__title {
    margin: 0;
    max-width: 36rem;
    color: #fff;
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.home-slider.owl-carousel .owl-nav {
    margin: 0;
}

.home-slider.owl-carousel .owl-nav button.owl-prev,
.home-slider.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--primary) !important;
    font-size: 1.75rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.home-slider.owl-carousel .owl-nav button.owl-prev:hover,
.home-slider.owl-carousel .owl-nav button.owl-next:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

.home-slider.owl-carousel .owl-nav button.owl-prev {
    left: 1rem;
}

.home-slider.owl-carousel .owl-nav button.owl-next {
    right: 1rem;
}

.home-slider.owl-carousel .owl-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1rem;
}

.home-slider.owl-carousel .owl-dots .owl-dot span {
    background: rgba(255, 255, 255, 0.55);
}

.home-slider.owl-carousel .owl-dots .owl-dot.active span,
.home-slider.owl-carousel .owl-dots .owl-dot:hover span {
    background: #fff;
}

/* --- 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 {
    border: 1px solid #eee;
}

.sidebar-heading {
    /* border-bottom: 2px solid var(--primary); */
    padding: 1rem;
    background: var(--accent);
}

.sidebar-heading img {
    /* width: 20px;
    height: 20px; */
}

.sidebar-title {
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;

}

.sidebar-menu .sidebar-item {
    /* margin-bottom: 0.25rem; */
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    border-top: none;
}

.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(--activelink);
    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;
}

.news-card__image-wrap {
    aspect-ratio: 3 / 4;
    background-color: var(--bg-light);
}

.news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card__image {
    transform: scale(1.05);
}

.news-card .card-title {
    font-size: 1rem;
    line-height: 1.35;
}

.news-card .card-title a:hover {
    color: var(--primary) !important;
}

.news-article__header h1 {
    color: var(--primary);
    font-weight: 700;
}

.news-article__image-wrap {
    aspect-ratio: 3 / 4;
    background-color: var(--bg-light);
    max-width: 420px;
    margin-inline: auto;
}

.news-article__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

@media (min-width: 992px) {
    .news-article__image-wrap {
        margin-inline: 0;
        position: sticky;
        top: 1rem;
    }
}

/* --- 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) {
    .home-slider__image {
        height: 240px;
    }

    .home-slider.owl-carousel .owl-nav button.owl-prev,
    .home-slider.owl-carousel .owl-nav button.owl-next {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.5rem;
    }

    .home-slider.owl-carousel .owl-nav button.owl-prev {
        left: 0.5rem;
    }

    .home-slider.owl-carousel .owl-nav button.owl-next {
        right: 0.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);
}
