/* --- ГЛОБАЛЬНЫЕ НАСТРОЙКИ --- */
:root {
    --bs-primary: #f3b700;
    --bs-primary-rgb: 243, 183, 0;
    --gradient-primary: linear-gradient(135deg, #ff8a00, #ffc400);
    --gradient-blue: linear-gradient(135deg, #0072ff, #00c6ff);
    --gradient-green: linear-gradient(135deg, #28a745, #20c997);
    --gradient-purple: linear-gradient(135deg, #6a11cb, #2575fc);
}

body {
    background-color: #000000 !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

main {
    flex: 1;
}

.bg-dark {
    background-color: #000000 !important;
}

/* --- HEADER И НАВИГАЦИЯ --- */
.site-header {
    padding: 15px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1000;
}

.site-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-image: url('logo.png');
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 95%;
    border: 3px solid var(--bs-primary);
    box-shadow: 0 0 20px rgba(var(--bs-primary-rgb), 0.5);
    transition: all 0.3s ease-in-out;
    display: inline-block;
}

.site-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(var(--bs-primary-rgb), 0.75);
}

.navbar {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.navbar .container {
    position: relative;
}

.navbar-vk-button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link.active {
    background: rgba(var(--bs-primary-rgb), 0.15);
}

.nav-link.active::after {
    width: 70%;
}

/* --- HERO СЕКЦИЯ --- */
.hero-section {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    margin: 2rem 0;
    padding: 4rem 2rem !important;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 6s infinite linear;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.hero-section .container-fluid {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- КАРТОЧКИ --- */
.card {
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a;
    border: 1px solid #333;
    transition: all 0.3s ease-in-out;
    border-radius: 1rem;
    z-index: 1;
    height: 100%;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: -1;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(var(--bs-primary-rgb), 0.5);
}

.card-warm {
    border-top: 4px solid transparent;
    background-image: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)),
        var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-img-container {
    position: relative;
    overflow: hidden;
}

/* Стили для всех бэджей */
.product-badge {
    position: absolute;
    top: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50rem;
    font-size: 0.8em;
    font-weight: 700;
    color: #fff;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Позиционирование каждого бэджа по горизонтали */
.badge-hit {
    left: 1rem;
    background: var(--gradient-primary);
}

.badge-premium {
    left: 1rem;
    background: var(--gradient-purple);
}

.badge-quality {
    left: 1rem;
    background: linear-gradient(135deg, #00b09b, #96c93d); /* Зеленый градиент */
}

/* Если бэджей несколько, смещаем их вертикально */
.product-badge:nth-child(2) {
    top: 3.2rem; /* Смещение для второго бэджа */
}

.product-badge:nth-child(3) {
    top: 5.4rem; /* Смещение для третьего бэджа */
}

/* --- КНОПКИ --- */
.btn-gradient-border {
    position: relative;
    z-index: 1;
    background-color: #1a1a1a;
    color: #fff;
    border: 2px solid transparent;
    border-radius: 50rem;
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.btn-gradient-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    background: var(--gradient-primary);
    background-size: 400% 400%;
    border-radius: 50rem;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-gradient-border:hover {
    background-color: #2a2a2a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-icon {
    height: 1.2em;
    width: 1.2em;
    margin-right: 0.5rem;
    border-radius: 50%;
}

/* --- СПИСКИ --- */
.service-features {
    padding-left: 0;
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: 0.95em;
    color: #adb5bd;
    transition: color 0.3s ease;
}

.service-features li:hover {
    color: #fff;
}

.service-features .bi-check-circle-fill {
    color: var(--bs-primary);
    margin-right: 0.75rem;
    margin-top: 0.15rem;
    font-size: 1.1em;
}

/* --- FAB КНОПКИ --- */
.fab-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fab-menu {
    background: rgba(33, 37, 41, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 0.75rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s ease;
}

.fab-container:hover .fab-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.fab-menu a {
    color: #20c997;
    font-size: 1.7rem;
    transition: all 0.3s ease;
}

.fab-menu a:hover {
    color: #52d9b3;
    transform: scale(1.2) translateY(-3px);
}

.fab-button {
    width: 60px;
    height: 60px;
    background: var(--gradient-blue);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(0, 110, 253, 0.4);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 110, 253, 0.5);
}

.fab-button .bi {
    font-size: 1.8rem;
    color: #fff;
}

/* --- ОТЗЫВЫ --- */
.card .bi-person-circle {
    font-size: 2.5rem;
    color: var(--bs-primary);
}

.text-warning {
    color: #ffc107 !important;
}

/* --- ФУТЕР --- */
.footer {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    margin-top: 3rem;
    padding: 2.5rem 0 !important;
}

/* --- МОДАЛЬНОЕ ОКНО --- */
.modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 1rem;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid #333;
    padding: 1.5rem;
}

.modal-title-custom {
    font-weight: 700;
    color: var(--bs-primary);
    font-size: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.form-control,
.form-select {
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background-color: #2a2a2a;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
    color: #fff;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #ddd;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem !important;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .navbar-vk-button {
        position: static;
        transform: none;
        margin-top: 1rem;
        justify-content: center;
    }

    .navbar-vk-button .btn {
        width: 100%;
    }

    .site-logo {
        width: 100px;
        height: 100px;
    }

    .fab-menu {
        flex-direction: column;
    }
}

/* Анимация появления элементов */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-primary);
}

/*services.html*/
/* Стили для страницы услуг */
.process-step {
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    background: rgba(var(--bs-primary-rgb), 0.1);
}

.process-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), 0.1);
    transition: all 0.3s ease;
}

.process-step:hover .process-icon {
    background: rgba(var(--bs-primary-rgb), 0.2);
    transform: scale(1.1);
}

.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
}

.breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #6c757d;
}

/*products.html*/
/* Стили для страницы товаров */
.benefit-item {
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    background: rgba(var(--bs-primary-rgb), 0.1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), 0.1);
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background: rgba(var(--bs-primary-rgb), 0.2);
    transform: scale(1.1);
}

/* Стили для поиска и фильтров */
#searchInput,
#categoryFilter {
    border: 2px solid #333;
    transition: all 0.3s ease;
}

#searchInput:focus,
#categoryFilter:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.input-group-text {
    background-color: #2a2a2a;
    border: 2px solid #333;
    border-right: none;
}

/* Анимация для карточек товаров */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Стили для сообщения "Товары не найдены" */
#noProductsMessage {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/*about.html*/
/* Стили для страницы "О нас" */
.team-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), 0.1);
    transition: all 0.3s ease;
}

.team-card:hover .team-photo {
    background: rgba(var(--bs-primary-rgb), 0.2);
    transform: scale(1.1);
}

/* Стили для модального окна сотрудника */
#teamModal .modal-content {
    border-radius: 1rem;
}

#teamModal .team-photo {
    width: 100px;
    height: 100px;
}

/* Анимации для карточек команды */
.team-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Стили для сертификатов */
.certificate-item {
    padding: 2rem;
    text-align: center;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-3px);
    background: rgba(var(--bs-primary-rgb), 0.05);
}

/* Адаптивность для изображений */
.img-fluid {
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Стили для отзывов */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/*contact.html*/
/* Стили для страницы контактов */
.contact-item {
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(var(--bs-primary-rgb), 0.05);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-link {
    color: #6c757d;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    color: var(--bs-primary);
    transform: scale(1.2);
}

/* Стили для карты */
.map-container {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .social-link {
        font-size: 1.5rem;
    }
}

/*сертификаты*/
.certificate-section {
    margin: 40px 0;
}

.certificate-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.certificate-img-container {
    height: 250px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.certificate-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.certificate-img-container:hover .certificate-img {
    transform: scale(1.05);
}

.certificate-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-img-container:hover .certificate-overlay {
    opacity: 1;
}

.modal-content {
    background-color: #2c3e50;
    color: #f8f9fa;
}

.modal-img {
    width: 100%;
    border-radius: 5px;
}

.person-certificate {
    border-left: 4px solid #ffc107;
}

.company-certificate {
    border-left: 4px solid #0d6efd;
}

.certificate-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/**/
.card-header {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.badge-hit {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.badge-sale {
    background: linear-gradient(135deg, #4cd964, #34a853);
}

.card-body {
    padding: 20px;
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.product-category {
    color: #aaa;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.product-description {
    color: #bbb;
    margin-bottom: 20px;
    line-height: 1.5;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 1.2rem;
}

.new-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffd43b;
    position: relative;
}

.sale-tag {
    position: absolute;
    top: -10px;
    right: -40px;
    background: #ff6b6b;
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 15px;
    transform: rotate(5deg);
}

.savings {
    background: rgba(76, 217, 100, 0.15);
    color: #4cd964;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-buy {
    flex: 1;
    background: linear-gradient(135deg, #ffd43b, #fcc419);
    color: #212529;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #fcc419, #e67700);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(252, 196, 25, 0.4);
}

.btn-details {
    background: transparent;
    border: 1px solid #555;
    color: #ddd;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-details:hover {
    border-color: #ffd43b;
    color: #ffd43b;
}

.benefits {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.benefit-icon {
    color: #ffd43b;
    font-size: 1.2rem;
}

.benefit-text {
    color: #ccc;
    font-size: 0.95rem;
}

.limited-offer {
    background: rgba(255, 107, 107, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fire-icon {
    color: #ff6b6b;
    font-size: 1.5rem;
}

.offer-text {
    color: #ff6b6b;
    font-weight: 600;
    font-size: 0.9rem;
}

/*модалка*/
.btn-gradient-border {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #212529;
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-gradient-border:hover {
    background: linear-gradient(135deg, #ff9800, #ff5722);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
}

.stat-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.modal-content {
    border: 2px solid #ffc107;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #2c3e50, #1a2530);
    border-bottom: 1px solid #ffc107;
}

.form-control,
.form-select {
    background-color: #2c3e50;
    border: 1px solid #495057;
    color: white;
}

.alert {
    border-radius: 10px;
    border: none;
}

#loadingSpinner {
    display: none;
    width: 2rem;
    height: 2rem;
}

/* Календарь для поля даты */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Стили для валидации */
.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.is-invalid~.invalid-feedback {
    display: block;
}