/* style.css - Стили как на gemy-spb.ru */


/* Категории товаров (одинакового размера) */
.categories-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
                rgba(0, 86, 166, 0) 0%,
                rgba(0, 86, 166, 0) 70%,
                rgba(0, 86, 166, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-btn {
    background: var(--secondary);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.category-card:hover .category-btn {
    transform: translateY(0);
}

.category-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.category-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 50px;
}

.category-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed var(--border);
}

.category-count,
.category-price {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-light);
}

.category-count i,
.category-price i {
    margin-right: 8px;
    color: var(--primary);
    font-size: 16px;
}

.category-price {
    color: var(--secondary);
    font-weight: 600;
}

/* Адаптивность категорий */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .category-image {
        height: 200px;
    }
    
    .category-content {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-image {
        height: 180px;
    }
    
    .category-content {
        padding: 15px;
    }
    
    .category-title {
        font-size: 16px;
        min-height: 45px;
    }
}

/* Альтернативный вариант: с иконками категорий */
.category-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.category-icon i {
    font-size: 24px;
    color: var(--primary);
}

/* Вариант с разделителями */
.category-divider {
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    width: 50px;
    margin: 0 auto 15px;
    border-radius: 2px;
}

/* Вариант с плоским дизайном */
.category-card.flat {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-card.flat:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Вариант с рамкой при наведении */
.category-card.bordered {
    border: 2px solid transparent;
}

.category-card.bordered:hover {
    border-color: var(--primary);
}



:root {
    --primary: #0056a6;
    --primary-dark: #004080;
    --primary-light: #e6f0ff;
    --secondary: #ff6b00;
    --secondary-dark: #e05a00;
    --text: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --border: #e0e0e0;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Верхняя панель */
.top-bar {
    background-color: var(--primary);
    color: white;
    font-size: 14px;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    transition: opacity 0.3s;
}

.top-bar-links a:hover {
    opacity: 0.8;
}

.location i {
    margin-right: 5px;
}

/* Шапка */
.header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.header-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
}

/* Логотип */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 14px;
    color: var(--text-light);
}

/* Контакты в шапке */
.header-contacts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-icon {
    background: var(--primary-light);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-phone {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 2px;
}

.contact-email {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-time,
.contact-desc {
    font-size: 13px;
    color: var(--text-light);
}

/* Корзина */
.header-cart .cart-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 10px 15px;
    transition: all 0.3s;
}

.header-cart .cart-link:hover {
    background: var(--primary);
    color: white;
}

.header-cart .cart-link:hover .cart-title,
.header-cart .cart-link:hover .cart-total {
    color: white;
}

.cart-icon {
    position: relative;
    margin-right: 10px;
    font-size: 24px;
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary);
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-info {
    display: flex;
    flex-direction: column;
}

.cart-title {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.cart-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

/* Навигация */
.main-nav {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s;
    border-radius: var(--radius);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    background: var(--primary);
    color: white;
}

.nav-menu > li > a i {
    margin-right: 8px;
    font-size: 16px;
}

/* Выпадающее меню */
.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    z-index: 1000;
    padding: 10px 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Поиск */
.nav-search {
    width: 300px;
}

.search-form {
    display: flex;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: var(--primary);
}

.search-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-button:hover {
    background: var(--primary-dark);
}

/* Главный баннер */
.hero-banner {
    background: linear-gradient(rgba(0, 86, 166, 0.9), rgba(0, 86, 166, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    margin-bottom: 40px;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: center;
    font-size: 16px;
}

.feature i {
    color: var(--secondary);
    margin-right: 10px;
    font-size: 20px;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    gap: 10px;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-cart {
    background: var(--primary);
    color: white;
    width: 100%;
}

.btn-cart:hover {
    background: var(--primary-dark);
}

/* Секции */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s;
}

.section-link:hover {
    gap: 12px;
}

.bg-light {
    background: var(--bg-light);
    padding: 60px 0;
}

/* Категории */
.categories-section {
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    background: white;
    grid-column: span 3;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card.category-col-2 {
    grid-column: span 6;
}

.category-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.category-card.category-col-2 .category-image {
    height: 250px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: white;
    z-index: 2;
}

.category-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.category-count {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.3s;
}

.category-link:hover {
    gap: 12px;
}

/* Преимущества */
.advantages-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: transform 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
}

.advantage-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
}

.advantage-text {
    color: var(--text-light);
    font-size: 15px;
}

/* Товары */
.products-section {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0,