/* ========== ОСНОВНЫЕ СТИЛИ ========== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #dee2e6;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --primary-dark: #1E2A38;
    --secondary-blue: #2C7DA0;
    --accent-orange: #F4A261;
    --shadow-sm: 0 10px 30px -10px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px -15px rgba(0,0,0,0.2);
    --header-height: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== ХЛЕБНЫЕ КРОШКИ ========== */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}
.breadcrumbs a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumbs a:hover {
    color: var(--accent-color);
}
.breadcrumbs span {
    color: var(--text-dark);
    font-weight: 500;
}

/* ========== КНОПКИ ========== */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid transparent;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #c0392b, #e74c3c);
    color: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
    transition: var(--transition);
}
.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(231, 76, 60, 0.5);
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}
.btn-secondary {
    background: #f8f9fa;
    color: var(--primary-color);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background: #e9ecef;
    border-color: var(--secondary-color);
}
.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}
.btn-outline:hover {
    background: rgba(52, 152, 219, 0.1);
}

/* ========== ШАПКА ========== */
#header-placeholder {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}
#header-placeholder.header-hidden {
    transform: translateY(-100%);
}
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2530 100%);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    flex-shrink: 0;
    min-width: 120px;
}
.logo img {
    height: 50px;
    width: auto;
}
.menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-left: auto;
}
/* ADDED: стили для рядов на десктопе (они должны вести себя как обычные flex-элементы) */
.menu-row-1,
.menu-row-2 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 1.1rem;
    white-space: nowrap;
}
.menu a:not(.catalog):hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
.catalog {
    background: var(--accent-color);
    padding: 8px 20px !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    transition: var(--transition);
}
.catalog:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.5);
}
.phone-dropdown {
    position: relative;
    display: inline-block;
}
.phone-toggle {
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    white-space: nowrap;
}
.phone-toggle:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.5);
}
.phone-toggle i {
    font-size: 0.9rem;
    transition: transform 0.3s;
}
.phone-dropdown:hover .phone-toggle i {
    transform: rotate(180deg);
}
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    overflow: hidden;
}
.phone-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}
.dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    white-space: nowrap;
}
.dropdown-content a:last-child {
    border-bottom: none;
}
.dropdown-content a:hover {
    background: #f8f9fa;
    color: var(--secondary-color);
}
.dropdown-content .chat-link {
    color: var(--accent-color);
    font-weight: 600;
}
.dropdown-content .chat-link:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--accent-color);
}
.phone {
    background: var(--secondary-color);
    padding: 5px 12px !important;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
}
.phone:hover {
    background: #2980b9;
}
.header-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}
.account-icon, .wishlist-icon, .cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}
.account-icon:hover, .wishlist-icon:hover, .cart-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
.account-icon i, .wishlist-icon i, .cart-icon i {
    font-size: 18px;
    color: white;
}
.wishlist-icon.active {
    background: rgba(231, 76, 60, 0.2);
}
.wishlist-icon.active i {
    color: var(--accent-color);
}
.wishlist-count, .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.cart-count {
    background: #27ae60;
}
.counter-updated {
    animation: pulse 0.5s ease-in-out;
    transform: scale(1.3);
}

/* ===== КНОПКА ПОИСКА ===== */
.search-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 2px;
}
.search-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.search-toggle:hover {
    background: var(--accent-orange);
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(244, 162, 97, 0.4);
}

/* ========== СЛАЙДЕР HERO ========== */
.content {
    margin: 30px auto;
    max-width: 1200px;
    border-radius: 20px;
    overflow: hidden;
}
.slick-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.slick-prev, .slick-next {
    width: 50px;
    height: 50px;
    z-index: 10;
}
.slick-prev { left: 25px; }
.slick-next { right: 25px; }
.slick-prev:before, .slick-next:before {
    font-size: 40px;
    opacity: 0.8;
}

/* ========== ЗАГОЛОВКИ СЕКЦИЙ ========== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 50px 0 50px;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
}

/* ========== ПРЕИМУЩЕСТВА ========== */
.advantages-section {
    padding: 80px 0;
    background: var(--light-bg);
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.advantage-card {
    background: white;
    padding: 40px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}
.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: rgba(44,125,160,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-blue);
    font-size: 2.5rem;
    transition: var(--transition);
}
.advantage-card:hover .advantage-icon {
    background: var(--secondary-blue);
    color: white;
    transform: scale(1.1) rotate(5deg);
}
.advantage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}
.advantage-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}
.advantage-stats {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    font-weight: 600;
    color: var(--accent-orange);
    width: 100%;
}
.advantage-stats > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 5px;
}
.advantages-grid .advantage-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.advantages-grid .advantage-stats {
    margin-top: auto;
    display: flex;
    justify-content: center;
    width: 100%;
    padding-bottom: 0;
    margin-bottom: 0;
}
.advantages-grid .advantage-stats > div {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 4px;
}
.advantages-grid .stat-number {
    line-height: 1;
    font-size: 2rem;
    font-weight: 700;
}
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}
.brands-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
}
.brands-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
}

/* ========== КАТЕГОРИИ ========== */
.categories-section {
    padding: 80px 0;
    background: white;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.category-card {
    position: relative;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: white;
    display: block;
}
.category-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.category-card:hover img {
    transform: scale(1.1);
}
.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(30,42,56,0.9) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}
.category-overlay h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.category-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}
.category-btn {
    background: var(--accent-orange);
    color: var(--primary-dark);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    width: fit-content;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}
.category-card:hover .category-btn {
    opacity: 1;
    transform: translateY(0);
}

/* ========== ПОПУЛЯРНЫЕ ТОВАРЫ (СЛАЙДЕР) ========== */
.products-section {
    padding: 40px 0 60px;
}
.products-slider {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    position: relative;
}
.products-slider .slick-track {
    display: flex !important;
    align-items: stretch;
}
.products-slider .slick-slide {
    padding: 15px 20px;
    box-sizing: border-box;
    height: auto !important;
}
.products-slider .slick-list {
    margin: 0 -20px;
}
.products-slider .slick-prev,
.products-slider .slick-next {
    display: none !important;
}
.products-slider .slick-prev {
    left: -25px;
}
.products-slider .slick-next {
    right: -25px;
}
.products-slider .slick-prev:before,
.products-slider .slick-next:before {
    font-size: 30px;
    color: var(--primary-color);
    opacity: 1;
    line-height: 1;
    position: static;
}
.products-slider .slick-prev:hover,
.products-slider .slick-next:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}
.products-slider .slick-prev:hover:before,
.products-slider .slick-next:hover:before {
    color: white;
}
.products-slider .slick-dots {
    bottom: -50px;
}
.products-slider .slick-dots li button:before {
    font-size: 14px;
    color: var(--primary-color);
}
.products-slider .slick-dots li.slick-active button:before {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* ========== КАРТОЧКИ ТОВАРОВ ========== */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
    border: 1px solid rgba(0, 0, 0, 0.03);
}
.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.product-card .product-image img {
    transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.product-card:hover .product-image img {
    transform: scale(1.08);
}
.product-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}
.status-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}
.status {
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
}
.status.discount {
    background: linear-gradient(135deg, #ff6b6b, #fa5252);
}
.status.new {
    background: linear-gradient(135deg, #51cf66, #37b24d);
}
.status.hit {
    background: linear-gradient(135deg, #339af0, #1c7ed6);
}
.status.stock {
    background: linear-gradient(135deg, #9775fa, #7950f2);
}
.status.out-of-stock {
    background: linear-gradient(135deg, #adb5bd, #868e96);
}
.wishlist-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: #495057;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(2px);
}
.wishlist-btn:hover {
    background: #ffffff;
    color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.25);
}
.wishlist-btn.active {
    color: var(--accent-color);
}
.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.product-category {
    font-size: 11px;
    color: #868e96;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: #212529;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    color: #868e96;
}
.brand {
    font-weight: 600;
    color: #495057;
}
.price-container {
    margin: 10px 0 15px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}
.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
}
.old-price {
    font-size: 0.9rem;
    color: #adb5bd;
    text-decoration: line-through;
}
.add-to-cart {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 100%;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.2);
}
.add-to-cart:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}
.add-to-cart:disabled {
    background: #ced4da;
    box-shadow: none;
    cursor: not-allowed;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== СЕКЦИЯ КОНТАКТОВ ========== */
.contact-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 20px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
}
.contact-content {
    padding: 50px;
}
.section-header {
    margin-bottom: 40px;
}
.section-subtitle {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
.contact-text .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 40px;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
    opacity: 0;
}
.benefit-card {
    background: #f8fafc;
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.benefit-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.benefit-card h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}
.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}
.cta-box {
    background: linear-gradient(135deg, var(--primary-color), #1a2530);
    color: white;
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid var(--accent-color);
}
.cta-box p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}
.contact-form-wrapper {
    background: linear-gradient(135deg, #1a2530 0%, var(--primary-color) 100%);
    padding: 50px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}
.contact-form-wrapper .form-header {
    margin-bottom: 20px;
}
.contact-form-wrapper .contact-form {
    margin-bottom: 0;
}
.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    border-radius: 0 0 0 100%;
    opacity: 0.2;
}
.form-header {
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}
.form-header h3 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: white;
}
.form-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}
.contact-form {
    position: relative;
    z-index: 1;
}
.contact-form .form-group {
    margin-bottom: 25px;
}
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.input-with-icon img {
    position: absolute;
    left: 15px;
    width: 20px;
    height: 20px;
    opacity: 0.7;
}
.input-with-icon input,
.form-select,
.contact-form textarea {
    width: 100%;
    padding: 15px 15px 15px 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 16px;
    color: white;
    transition: all 0.3s ease;
}
.input-with-icon input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.form-select option {
    color: #333;
    background-color: #fff;
    padding: 12px;
}
.form-select {
    appearance: none;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 45px 15px 20px;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 18px;
}

.form-select:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.form-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* При наведении на опцию — подсветка */
.form-select option:hover,
.form-select option:focus {
    background-color: #f0f7ff;
    color: var(--secondary-color);
}
.input-with-icon input:focus,
.form-select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}
.contact-form textarea {
    padding: 15px;
    resize: vertical;
    min-height: 120px;
}
.submit-btn {
    background: linear-gradient(135deg, var(--accent-color), #c0392b);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}
.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.4);
}
.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ========== КАРТА И КОНТАКТЫ ========== */
.contacts-map-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 20px;
}
.contacts-container {
    max-width: 1200px;
    margin: 0 auto;
}
.contacts-header {
    text-align: center;
    margin-bottom: 50px;
}
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    min-height: 500px;
}
.map-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.map-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.map-header {
    background: var(--primary-color);
    color: white;
    padding: 25px;
    flex-shrink: 0;
}
.map-header h3 {
    font-size: 1.5rem;
    margin: 0 0 5px;
    color: white;
}
.map-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}
.map-placeholder {
    flex: 1;
    width: 100%;
    min-height: 300px;
}
.contacts-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.contact-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    gap: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--secondary-color);
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.contact-icon {
    flex-shrink: 0;
}
.contact-details {
    flex-grow: 1;
}
.contact-details h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.contact-details h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}
.contact-item {
    margin-bottom: 15px;
}
.contact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}
.contact-item p {
    color: var(--text-light);
    margin: 0;
}
.contact-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 8px;
    transition: color 0.3s ease;
}
.contact-link:hover {
    color: var(--accent-color);
}
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}
.call-btn, .whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.call-btn {
    background: var(--secondary-color);
    color: white;
}
.call-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}
.whatsapp-btn {
    background: #25D366;
    color: white;
}
.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}
.working-hours {
    margin-bottom: 15px;
}
.day-time {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.day {
    color: var(--primary-color);
}
.time {
    color: var(--accent-color);
    font-weight: 600;
}
.note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}
.email-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.email-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    text-decoration: none;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.email-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateX(5px);
}
.email-link:hover img {
    filter: brightness(0) invert(1);
}

/* ========== ПОДВАЛ ========== */
.footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 0;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 0.7rem;
}
.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}
.footer .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.footer .contact-item img {
    width: 20px;
    height: 20px;
    margin-top: 5px;
}
.footer .contact-item h4 {
    color: var(--secondary-color);
    margin: 0 0 0.3rem;
    font-size: 1rem;
}
.footer .contact-item p {
    color: #ccc;
    margin: 0.2rem 0;
    font-size: 0.9rem;
}
.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}
.footer-bottom a {
    color: #ddd;
    text-decoration: none;
}
.footer-bottom a:hover {
    color: var(--secondary-color);
}
/* Переключатель версий */
.version-switcher {
    text-align: center;
    margin: 20px 0;
}
.desktop-version-btn,
.mobile-version-btn {
    padding: 10px 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}
.desktop-version-btn:hover,
.mobile-version-btn:hover {
    background: #2980b9;
}

@media (min-width: 769px) {
    .version-switcher {
        display: none; /* скрываем переключатель на десктопе */
    }
}
/* ========== АНИМАЦИИ ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}
.benefit-card, .contact-card, .partners-grid img {
    opacity: 0;
}
.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefit-card:nth-child(4) { animation-delay: 0.4s; }

/* ========== УВЕДОМЛЕНИЯ ========== */
.wishlist-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #27ae60;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
}
.wishlist-notification.show {
    transform: translateY(0);
    opacity: 1;
}
.wishlist-notification i {
    font-size: 20px;
}

/* ========== БЕГУЩАЯ СТРОКА БРЕНДОВ ========== */
.brands-section {
    padding: 60px 0;
    background: white;
    overflow: hidden;
}
.brands-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}
.brands-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.brands-slider {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.brands-track {
    display: flex;
    animation: scroll 40s linear infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}
.brands-track:hover {
    animation-play-state: paused;
}
.brand-item {
    flex: 0 0 auto;
    margin: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}
.brand-item:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}
.brand-item img {
    max-height: 60px;
    max-width: 150px;
    object-fit: contain;
}
@keyframes scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .brands-track {
        animation: none;
    }
}
@media (max-width: 768px) {
    .brand-item {
        margin: 0 20px;
    }
    .brand-item img {
        max-height: 40px;
    }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 90vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    margin-bottom: 0;
}
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}
.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}
.hero-slider .slide.active {
    opacity: 1;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30,42,56,0.8) 0%, rgba(44,125,160,0.4) 100%);
    z-index: -1;
}
.hero-content {
    max-width: 800px;
    padding: 0 20px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s ease;
}
.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-buttons .btn-primary {
    background: var(--accent-orange);
    color: var(--primary-dark);
    border: none;
    padding: 16px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 20px -5px rgba(244,162,97,0.4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(244,162,97,0.6);
}
.hero-buttons .btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 14px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}
.hero-buttons .btn-outline-light:hover {
    background: white;
    color: var(--primary-dark);
    transform: translateY(-3px);
}
.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 14px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}
.btn-outline-light:hover {
    background: white;
    color: var(--primary-dark);
    transform: translateY(-3px);
}
.hero-floating-badge {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 60px;
    color: white;
    font-weight: 500;
    animation: fadeInUp 1.5s ease 0.5s both;
}
.hero-floating-badge span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== БЛОГ ===== */
.blog {
    padding: 80px 0;
    background: var(--light-bg);
}
#allArticlesGrid {
    margin-bottom: 60px;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-card .blog-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-card .blog-excerpt {
    margin-top: auto;
}
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}
.blog-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}
.blog-card:hover .blog-image img {
    transform: scale(1.05);
}
.blog-content {
    padding: 25px;
}
.blog-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}
.blog-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-dark);
    line-height: 1.4;
}
.blog-excerpt {
    color: var(--text-light);
    line-height: 1.6;
}
.no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    font-size: 1.2rem;
    grid-column: 1 / -1;
}

/* ===== СТИЛИ ДЛЯ РЕЗУЛЬТАТОВ ПОИСКА ===== */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}
.search-result-item:hover {
    background: #f8f9fa;
}
.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    border: 1px solid #eaeef2;
}
.search-result-info {
    flex: 1;
}
.search-result-info .category {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.search-result-info .name {
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 4px;
}
.search-result-info .price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-orange);
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-result-info .old-price {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}
.no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== МОДАЛЬНОЕ ОКНО ПОИСКА ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center !important;
    justify-content: center !important;
    animation: fadeIn 0.3s ease;
}
.modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, var(--primary-color), #1a2530);
    color: white;
    border-radius: 20px 20px 0 0;
}
.modal-header h3 {
    margin: 0;
    font-size: 1.49rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: white;
    transition: transform 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}
.modal-body {
    padding: 25px;
}
.search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}
.search-input-wrapper .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
}
#searchInput {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e7ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#searchInput:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.2);
}
.search-results-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}
.search-results-container::-webkit-scrollbar {
    width: 6px;
}
.search-results-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.search-results-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
.search-results-container .search-result-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 5px;
}
.search-results-container .search-result-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}
.search-results-container .search-result-item img {
    width: 60px;
    height: 60px;
}
.search-results-container .no-results {
    padding: 30px;
    font-size: 1rem;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ========== ПРИНУДИТЕЛЬНЫЕ СТИЛИ ДЛЯ КАРТОЧЕК В СЛАЙДЕРЕ ========== */
.products-slider .slick-slide .product-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}
.products-slider .slick-slide .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}
.products-slider .slick-slide .product-card .product-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f5f7fa;
}
.products-slider .slick-slide .product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.products-slider .slick-slide .product-card:hover .product-image img {
    transform: scale(1.05);
}
.products-slider .slick-slide .product-card .status-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}
.products-slider .slick-slide .product-card .status {
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
}
.products-slider .slick-slide .product-card .status.discount {
    background: linear-gradient(135deg, #ff6b6b, #fa5252);
}
.products-slider .slick-slide .product-card .status.new {
    background: linear-gradient(135deg, #51cf66, #37b24d);
}
.products-slider .slick-slide .product-card .status.hit {
    background: linear-gradient(135deg, #339af0, #1c7ed6);
}
.products-slider .slick-slide .product-card .status.stock {
    background: linear-gradient(135deg, #9775fa, #7950f2);
}
.products-slider .slick-slide .product-card .status.out-of-stock {
    background: linear-gradient(135deg, #adb5bd, #868e96);
}
.products-slider .slick-slide .product-card .wishlist-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: #495057;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(2px);
}
.products-slider .slick-slide .product-card .wishlist-btn:hover {
    background: #ffffff;
    color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.25);
}
.products-slider .slick-slide .product-card .wishlist-btn.active {
    color: var(--accent-color);
}
.products-slider .slick-slide .product-card .product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.products-slider .slick-slide .product-card .product-category {
    font-size: 11px;
    color: #868e96;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.products-slider .slick-slide .product-card .product-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: #212529;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.products-slider .slick-slide .product-card .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    color: #868e96;
}
.products-slider .slick-slide .product-card .brand {
    font-weight: 600;
    color: #495057;
}
.products-slider .slick-slide .product-card .stars {
    color: #fcc419;
    font-size: 12px;
}
.products-slider .slick-slide .product-card .reviews {
    color: #adb5bd;
}
.products-slider .slick-slide .product-card .price-container {
    margin: 10px 0 15px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}
.products-slider .slick-slide .product-card .current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
}
.products-slider .slick-slide .product-card .old-price {
    font-size: 0.9rem;
    color: #adb5bd;
    text-decoration: line-through;
}
.products-slider .slick-slide .product-card .add-to-cart {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    width: 100%;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.2);
}
.products-slider .slick-slide .product-card .add-to-cart:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}
.products-slider .slick-slide .product-card .add-to-cart:disabled {
    background: #ced4da;
    box-shadow: none;
    cursor: not-allowed;
}

/* ========== АДАПТИВНОСТЬ (ТОЛЬКО ДЛЯ МОБИЛЬНЫХ) ========== */

/* Планшеты (до 992px) */
@media (max-width: 992px) {
    /* Перестраиваем шапку на две строки */
    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .logo {
        margin-bottom: 5px;
    }
    .menu {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        gap: 12px;
    }
    /* Ряды становятся flex-контейнерами с переносом */
    .menu-row-1,
    .menu-row-2 {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }
    /* Корректировка размеров для планшетов */
    .catalog {
        padding: 6px 16px !important;
        font-size: 1rem;
    }
    .search-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .account-icon, .wishlist-icon, .cart-icon {
        width: 38px;
        height: 38px;
    }
    .account-icon i, .wishlist-icon i, .cart-icon i {
        font-size: 1rem;
    }
    .phone-toggle {
        padding: 6px 12px;
        font-size: 1rem;
    }
    .menu a {
        padding: 6px 10px;
        font-size: 1rem;
    }
    
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    .catalog {
        padding: 5px 12px !important;
        font-size: 0.9rem;
    }
    .search-toggle {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    .account-icon, .wishlist-icon, .cart-icon {
        width: 34px;
        height: 34px;
    }
    .phone-toggle {
        padding: 5px 10px;
        font-size: 0.9rem;
    }
    .menu a {
        padding: 4px 8px;
        font-size: 0.9rem;
    }
    .logo img {
        height: 40px;
    }
    .hero-floating-badge {
        gap: 8px;                /* уменьшаем расстояние между элементами */
        padding: 8px 15px;       /* уменьшаем внутренние отступы */
        border-radius: 30px;     /* чуть скругляем */
        font-size: 0.8rem;       /* уменьшаем шрифт */
        max-width: 95%;           /* ограничиваем ширину, чтобы не вылезало за экран */
        width: auto;
        box-sizing: border-box;
        flex-wrap: wrap;          /* разрешаем перенос, если не помещается */
        justify-content: center;  /* центрируем содержимое */
        bottom: 15px;             /* поднимаем чуть выше */
        left: 50%;                /* оставляем центрирование */
        transform: translateX(-50%);
    }
    .hero-floating-badge span {
        white-space: nowrap;      /* предотвращаем перенос внутри каждого блока */
    }
    .contacts-map-section {
    padding: 40px 15px; /* уменьшаем отступы */
    }

    .contacts-grid {
        grid-template-columns: 1fr; /* одна колонка вместо двух */
        gap: 20px;
    }

    .contacts-info {
        order: 2; /* информация о контактах идёт после карты (если нужно) */
    }

    .map-container {
        order: 1; /* карта сверху */
        margin-bottom: 20px;
    }

    .map-wrapper {
        border-radius: 12px;
    }

    .map-header {
        padding: 15px;
    }

    .map-header h3 {
        font-size: 1.2rem;
    }

    .map-header p {
        font-size: 0.9rem;
    }

    .map-placeholder {
        min-height: 250px; /* уменьшаем высоту карты */
    }

    .contact-card {
        padding: 20px;
        gap: 15px;
    }

    .contact-details h4 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .contact-item strong {
        font-size: 0.95rem;
    }

    .contact-item p {
        font-size: 0.9rem;
    }

    .contact-buttons {
        flex-direction: column; /* кнопки звонка и WhatsApp вертикально */
        gap: 8px;
    }

    .call-btn, .whatsapp-btn {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    .email-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .working-hours .day-time {
        font-size: 0.9rem;
        padding: 6px 0;
    }
    .footer-container {
    grid-template-columns: 1fr; /* одна колонка */
    gap: 25px;
    padding: 0 15px;
    }

    .footer-section {
        text-align: center; /* центрируем содержимое */
    }

    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
        border-bottom: 2px solid var(--secondary-color);
        display: inline-block; /* чтобы подчёркивание было по ширине текста */
        padding-bottom: 5px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        font-size: 0.95rem;
    }

    .footer .contact-item {
        flex-direction: column; /* иконка сверху, текст снизу */
        align-items: center;
        text-align: center;
        gap: 5px;
    }

    .footer .contact-item img {
        margin-top: 0;
        width: 24px;
        height: 24px;
    }

    .footer .contact-item h4 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .footer .contact-item p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1rem;
        font-size: 0.85rem;
    }

    .footer-bottom p {
        margin-bottom: 5px;
    }
}

/* Очень маленькие телефоны (до 480px) */
@media (max-width: 480px) {
    .catalog {
        padding: 4px 10px !important;
        font-size: 0.8rem;
    }
    .search-toggle {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    .account-icon, .wishlist-icon, .cart-icon {
        width: 30px;
        height: 30px;
    }
    .phone-toggle {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    .menu a {
        padding: 3px 6px;
        font-size: 0.8rem;
    }
    .logo img {
        height: 35px;
    }
    .dropdown-content {
        min-width: 150px;
    }
    .hero-floating-badge {
        gap: 5px;
        padding: 5px 10px;
        font-size: 0.7rem;
        border-radius: 20px;
    }
    .contacts-map-section {
        padding: 30px 10px;
    }

    .map-header h3 {
        font-size: 1.1rem;
    }

    .map-header p {
        font-size: 0.85rem;
    }

    .map-placeholder {
        min-height: 200px;
    }

    .contact-card {
        padding: 15px;
    }

    .contact-details h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .contact-item strong,
    .contact-item p {
        font-size: 0.85rem;
    }

    .call-btn, .whatsapp-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .email-link {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .working-hours .day-time {
        font-size: 0.85rem;
    }
    .footer-section h3 {
        font-size: 1.1rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }

    .footer .contact-item p {
        font-size: 0.85rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* ===== СТИЛИ ДЛЯ КАРТОЧЕК В СЛАЙДЕРЕ (УНИКАЛЬНЫЕ КЛАССЫ) ===== */
.slider-product-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}
.slider-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}
.slider-product-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f5f7fa;
}
.slider-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.slider-product-card:hover .slider-product-image img {
    transform: scale(1.05);
}
.slider-status-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}
.slider-status {
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    text-align: center;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
}
.slider-status.discount {
    background: linear-gradient(135deg, #ff6b6b, #fa5252);
}
.slider-status.new {
    background: linear-gradient(135deg, #51cf66, #37b24d);
}
.slider-status.hit {
    background: linear-gradient(135deg, #339af0, #1c7ed6);
}
.slider-status.stock {
    background: linear-gradient(135deg, #9775fa, #7950f2);
}
.slider-status.out-of-stock {
    background: linear-gradient(135deg, #adb5bd, #868e96);
}
.slider-wishlist-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: #495057;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(2px);
}
.slider-wishlist-btn:hover {
    background: #ffffff;
    color: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.25);
}
.slider-wishlist-btn.active {
    color: var(--accent-color);
}
.slider-product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.slider-product-category {
    font-size: 11px;
    color: #868e96;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.slider-product-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: #212529;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.slider-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    color: #868e96;
}
.slider-brand {
    font-weight: 600;
    color: #495057;
}
.slider-stars {
    color: #fcc419;
    font-size: 12px;
}
.slider-reviews {
    color: #adb5bd;
}
.slider-price-container {
    margin: 10px 0 15px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}
.slider-current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
}
.slider-old-price {
    font-size: 0.9rem;
    color: #adb5bd;
    text-decoration: line-through;
}
.slider-add-to-cart {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    width: 100%;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.2);
}
.slider-add-to-cart:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}
.slider-add-to-cart:disabled {
    background: #ced4da;
    box-shadow: none;
    cursor: not-allowed;
}
.slider-quick-view {
    width: 45px;
    height: 45px;
    background: #ecf0f1;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #34495e;
    font-size: 1rem;
    transition: background 0.2s ease;
}
.slider-quick-view:hover {
    background: #bdc3c7;
}
#cancelSearchModal {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #eef2f7;
}
.modal-footer .btn {
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-footer .btn-secondary {
    background: #e9ecef;
    color: #2c3e50;
}

/* ===== ВИДЖЕТ ЧАТА ===== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    border: none;
    box-shadow: 0 10px 25px rgba(52,152,219,0.4);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}
.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(52,152,219,0.6);
}
.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}
.chat-window.open {
    display: flex;
}
.chat-header {
    background: linear-gradient(135deg, var(--primary-color), #1a2530);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.manager-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}
.manager-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 3px;
}
.manager-status {
    font-size: 0.75rem;
    opacity: 0.8;
}
.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.chat-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    position: relative;
    word-wrap: break-word;
}
.chat-message.user {
    align-self: flex-end;
    background: var(--secondary-color);
    color: white;
    border-bottom-right-radius: 0;
}
.chat-message.admin {
    align-self: flex-start;
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 0;
}
.chat-message.system {
    align-self: center;
    background: #e9ecef;
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
    max-width: 100%;
    text-align: center;
}
.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 3px;
    text-align: right;
}
.chat-input-area {
    display: flex;
    padding: 15px 15px !important;
    border-top: 1px solid var(--border-color);
    background: white;
    gap: 10px !important;
    align-items: center;
}
.chat-input-area input {
    flex: 1;
    padding: 12px 18px !important;
    border: 1px solid #e0e7ed;
    border-radius: 30px !important;
    outline: none;
    font-size: 0.95rem !important;
    line-height: 1.4;
    height: auto;
    min-height: 45px;
    box-sizing: border-box;
    background: #f9fafc;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-input-area input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52,152,219,0.2);
    background: white;
}
.chat-input-area button {
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 30px !important;
    padding: 12px 5px !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem !important;
    line-height: 1.4;
    height: auto;
    min-height: 45px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(52,152,219,0.3);
    transition: background 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.chat-input-area button:hover {
    background: #2980b9;
    transform: scale(1.02);
}
.chat-input-area button:active {
    transform: scale(0.98);
}

/* Адаптивность для мобильных (чат) */
@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px);
        height: 450px;
        right: 0;
    }
    .chat-header-info {
        gap: 8px;
    }
    .manager-avatar {
        width: 35px;
        height: 35px;
    }
    .manager-name {
        font-size: 1rem;
    }
    .manager-status {
        font-size: 0.7rem;
    }
    .chat-input-area {
        padding: 10px !important;
    }
    .chat-input-area input {
        padding: 10px 15px !important;
        min-height: 40px;
        font-size: 0.9rem !important;
    }
    .chat-input-area button {
        padding: 10px 18px !important;
        min-height: 40px;
        font-size: 0.9rem !important;
    }
}

/* Добавьте в ваш основной CSS-файл */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.slide-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.slide-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; }
.delay-8 { transition-delay: 0.8s; }
.delay-9 { transition-delay: 0.9s; }
.delay-10 { transition-delay: 1.0s; }
.delay-11 { transition-delay: 1.1s; }
.delay-12 { transition-delay: 1.1s; }

.recently-viewed-section {
    margin-top: 60px;
    padding: 20px 0;
    background: #f9f9f9;
    border-radius: 12px;
}
.recently-viewed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 0 20px;
}
.recently-viewed-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}
.recently-viewed-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.recently-viewed-image {
    height: 150px;
    overflow: hidden;
    background: #f0f0f0;
}
.recently-viewed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.recently-viewed-item:hover .recently-viewed-image img {
    transform: scale(1.05);
}
.recently-viewed-info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.recently-viewed-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
    height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.recently-viewed-title-link,
.recently-viewed-title-link a {
    text-decoration: none !important;
}
.recently-viewed-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
}
.recently-viewed-old-price {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
}
.recently-viewed-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.recently-viewed-actions button {
    flex: 1;
    padding: 6px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}
.recently-viewed-add-to-cart {
    background: var(--secondary-color);
    color: white;
}
.recently-viewed-add-to-cart:hover {
    background: #2980b9;
}
.recently-viewed-wishlist {
    background: #f0f0f0;
    color: #666;
}
.recently-viewed-wishlist:hover {
    background: #e0e0e0;
    color: var(--accent-color);
}

/* Слайдер статей */
.articles-slider {
    margin-top: 40px;
    padding: 0 20px;
}
.articles-slider .slick-track {
    display: flex !important;
}
.articles-slider .slick-slide {
    padding: 15px;
    height: auto !important;
}
.articles-slider .slick-prev,
.articles-slider .slick-next {
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(52,152,219,0.8);
    border-radius: 50%;
    transition: background 0.3s;
}
.articles-slider .slick-prev:hover,
.articles-slider .slick-next:hover {
    background: #3498db;
}
.articles-slider .slick-prev {
    left: -20px;
}
.articles-slider .slick-next {
    right: -20px;
}
.articles-slider .slick-prev:before,
.articles-slider .slick-next:before {
    font-size: 20px;
    color: white;
    opacity: 1;
}
.articles-slider .slick-dots {
    bottom: -30px;
}
.articles-slider .slick-dots li button:before {
    font-size: 12px;
    color: #3498db;
}
.articles-slider .blog-card {
    margin: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.articles-slider .blog-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card a,
.blog-card-link {
    text-decoration: none;
}

/* ===== СТИЛИ ДЛЯ СТАТЕЙ ===== */
.blog-article {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.blog-article .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 16px;
    margin-bottom: 40px;
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 40px 0 20px;
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.article-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #2c3e50;
}

.article-content ul, .article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th {
    background: var(--secondary-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: top;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background: #f8fafc;
}

.tip-box, .warning-box {
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tip-box {
    background: #e8f5e9;
    border-left: 5px solid #2e7d32;
    color: #1e4620;
}

.warning-box {
    background: #ffebee;
    border-left: 5px solid #c62828;
    color: #891515;
}

.tip-box i, .warning-box i {
    font-size: 24px;
}

.article-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eef2f7;
    flex-wrap: wrap;
}

.article-actions .btn {
    padding: 15px 30px;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
}

.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eef2f7;
}

.related-articles h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 1.6rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-card {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-card h4 {
    padding: 15px;
    margin: 0;
    color: var(--primary-color);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .article-header h1 {
        font-size: 2rem;
    }
    .article-image {
        height: 250px;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .article-actions {
        flex-direction: column;
    }
    .article-actions .btn {
        width: 100%;
        text-align: center;
    }
}
.vk-btn, .telegram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.vk-btn {
    background: #4c75a3;
    color: white;
}
.vk-btn:hover {
    background: #3a5a80;
    transform: translateY(-2px);
}
.telegram-btn {
    background: #26a5e4;
    color: white;
}
.telegram-btn:hover {
    background: #1e8ac0;
    transform: translateY(-2px);
}
/* Социальные сети в футере */
.footer .social-links {
    margin-top: 0;
}

.footer .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.footer .social-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer .social-icon i {
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.footer .social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

.footer .social-icon.vk:hover {
    background: #2787F5;
    border-color: #2787F5;
}

.footer .social-icon.telegram:hover {
    background: #0088cc;
    border-color: #0088cc;
}
/* ========== ДОСТУПНОСТЬ ========== */

/* Скрытый текст для скринридеров */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Фокус для клавиатуры */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.advantage-card:focus-visible,
.category-card:focus-visible,
.product-card:focus-visible,
.contact-card:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

/* Уменьшение анимации для пользователей с vestibular disorders */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-floating-badge,
    .advantage-card,
    .category-card,
    .blog-card,
    .product-card {
        animation: none;
        transform: none;
    }
    .brands-track {
        animation: none;
    }
}

/* Высокая контрастность */
@media (prefers-contrast: high) {
    .advantage-card,
    .category-card,
    .product-card,
    .blog-card,
    .contact-card {
        border: 2px solid currentColor;
    }
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .submit-btn,
    .store-btn,
    .sidebar-phone {
        border: 2px solid currentColor;
    }
    .status-badge {
        border: 1px solid currentColor;
    }
}
.slick-slider .slick-track, .slick-slider .slick-list {
    margin-top: 25px;
    margin-bottom: 25px;
}
.slider-product-card, .slick-slide {
    margin-right: 12px;
    margin-left: 12px;
}
.benefit-card.visible, .contact-card.visible, .benefits-grid {
    opacity: 1;
    animation: fadeInUp 1s ease forwards;
}

/* Кнопка "Все бренды" */
.brands-footer {
    text-align: center;
    margin-top: 30px;
}

.btn-brands-all {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 60px;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-brands-all:hover {
    background: #3498db;
    color: white;
}

.btn-brands-all i {
    font-size: 16px;
    transition: transform 0.2s;
}

.btn-brands-all:hover i {
    transform: translateX(6px);
}

/* Модальное окно брендов */
.modal-content--large {
    max-width: 900px;
    width: 95%;
}

.brands-total {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Алфавитная навигация */
.brands-alphabet {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.alphabet-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #2c3e50;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.alphabet-letter:hover {
    background: #3498db;
    color: white;
}

/* Список брендов */
.brands-list-container {
 
    padding-right: 10px;
}

.brand-group {
    margin-bottom: 25px;
}

.brand-group-letter {
    font-size: 24px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

.brand-group-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px 20px;
}

.brand-group-items span {
    font-size: 15px;
    color: #2c3e50;
    padding: 4px 0;
}

/* Кастомизация скроллбара */
.brands-list-container::-webkit-scrollbar {
    width: 6px;
}
.brands-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.brands-list-container::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 10px;
}

/* Исправление обрезанных картинок в блоке "Читайте также" */
.blog-article .related-card img,
.related-grid .related-card img {
    object-fit: contain !important;
    background: #f5f7fa;
    height: 150px;
    width: 100%;
}