/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ACD921;
    --primary-light: #C4E455;
    --primary-dark: #8FB817;
    --gradient: linear-gradient(135deg, #ACD921 10%, #cf6bf7 100%);
    --gradient-hover: linear-gradient(135deg, #C4E455 10%, #cf6bf7 100%);
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-dark: #2c3e50;
    --text-medium: #5a6c7d;
    --text-light: #7f8c8d;
    --border-color: #e1e8ed;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.logo-main h1 {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
    font-weight: 400;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav li {
    margin: 0;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

/* Кнопки в шапке */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.contacts-icon, .cart-icon {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 25px;
    transition: all 0.3s;
    border: none;
    font-size: 14px;
    font-weight: 500;
    background: var(--gradient);
    color: white;
    white-space: nowrap;
}

.contacts-icon:hover, .cart-icon:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: var(--gradient-hover);
}

.cart-count {
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
}

/* Основные секции */
.section {
    padding: 100px 0 60px;
}

.section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-dark);
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient);
    margin: 15px auto;
    border-radius: 2px;
}

/* Секция About */
.about-content {
    text-align: center;
    margin-bottom: 60px;
}

.about-description {
    color: var(--text-dark);
    font-size: 20px;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature p {
    color: var(--text-medium);
    font-size: 15px;
}

/* Карусель-галерея */
.carousel-section {
    margin-top: 60px;
}

.carousel-gallery {
    position: relative;
    margin-bottom: 40px;
}

.carousel-container {
    width: 100%;
    position: relative;
    perspective: 1200px;
    margin-bottom: 30px;
}

.carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: center;
    transform-style: preserve-3d;
    height: 500px;
}

.carousel-slide {
    position: absolute;
    left: 50%;
    width: 350px;
    height: 450px;
    transition: all 0.8s ease;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    cursor: pointer;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
}

.carousel-slide.prev {
    transform: translateX(-150%) scale(0.85) rotateY(15deg);
    opacity: 0.6;
    z-index: 1;
    filter: brightness(0.8);
}

.carousel-slide.active {
    transform: translateX(-50%) scale(1) rotateY(0);
    opacity: 1;
    z-index: 2;
    filter: brightness(1);
}

.carousel-slide.next {
    transform: translateX(50%) scale(0.85) rotateY(-15deg);
    opacity: 0.6;
    z-index: 1;
    filter: brightness(0.8);
}

.carousel-slide.hidden {
    opacity: 0;
    z-index: 0;
}

.carousel-slide img,
.carousel-slide video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}

/* Индикаторы карусели */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.carousel-indicator.active {
    background: var(--gradient);
    transform: scale(1.3);
}

.carousel-indicator:hover {
    background: var(--gradient);
}

/* Кнопка призыва к действию */
.carousel-cta {
    text-align: center;
    margin-top: 40px;
}

.cta-button {
    display: inline-block;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    padding: 18px 45px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: var(--gradient-hover);
}

/* Фильтры по категориям */
.category-filters {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-medium);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.filter-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: var(--shadow);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    z-index: 1;
}

.product-gallery {
    display: flex;
    height: 300px;
    position: relative;
    overflow: hidden;
    margin-top: 4px;
}

.gallery-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-color);
    cursor: zoom-in;
    border-radius: 12px;
    margin: 8px;
}

.gallery-main.zoomed {
    cursor: grab;
    overflow: auto;
}

.gallery-main.zoomed img {
    cursor: grab;
    transform: scale(2);
    transition: transform 0.3s ease;
}

.gallery-main:active.zoomed {
    cursor: grabbing;
}

.gallery-main:active.zoomed img {
    cursor: grabbing;
}

.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
    border-radius: 8px;
}

.gallery-thumbs {
    width: 80px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--bg-color);
    border-left: 1px solid var(--border-color);
    overflow: visible;
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    border: 2px solid transparent;
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.product-info {
    padding: 24px;
}

.product-name {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 600;
}

.product-description {
    color: var(--text-medium);
    font-size: 15px;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.product-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-light);
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border-radius: 25px;
    padding: 6px;
    border: 1px solid var(--border-color);
}

.quantity-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-display {
    margin: 0 12px;
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
}

.add-to-cart {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    flex-grow: 1;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: var(--gradient-hover);
}

/* FAQ */
.faq-item {
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.faq-item h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 600;
}

.faq-item p {
    text-align: left;
    color: var(--text-medium);
    font-size: 16px;
    line-height: 1.6;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-hover);
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close:hover {
    color: var(--text-dark);
}

/* Контакты в модальном окне */
.contacts-info {
    margin: 20px 0;
}

.contact-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
}

.contact-item p {
    color: var(--text-medium);
    font-size: 16px;
    line-height: 1.5;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.cart-items {
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--text-medium);
    font-size: 14px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 12px;
}

.cart-item-total {
    font-weight: 700;
    color: var(--text-dark);
    min-width: 80px;
    text-align: right;
    font-size: 16px;
}

.remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.3s;
    padding: 4px;
    border-radius: 4px;
}

.remove-item:hover {
    transform: scale(1.2);
    background: rgba(231, 76, 60, 0.1);
}

.cart-total {
    text-align: right;
    font-size: 20px;
    margin: 20px 0;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 700;
}

/* Форма оформления заказа */
.checkout-form {
    margin-top: 30px;
}

.checkout-form h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 600;
}

.checkout-form input {
    width: 100%;
    padding: 14px;
    margin-bottom: 16px;
    background-color: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 15px;
    transition: border 0.3s;
}

.checkout-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkout-form button {
    width: 100%;
    padding: 16px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.checkout-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background: var(--gradient-hover);
}

/* Уведомление */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    background: var(--gradient);
    color: white;
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    display: none;
    z-index: 3000;
    animation: slideIn 0.3s ease-out;
    font-size: 15px;
    font-weight: 500;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Сообщение об отсутствии товаров */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-medium);
    font-size: 18px;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .header .container {
        padding: 0 15px;
        gap: 10px;
    }
    
    .logo-main h1 {
        font-size: 18px;
    }
    
    .logo-subtitle {
        font-size: 9px;
    }
    
    .nav {
        display: none;
    }
    
    .header-buttons {
        gap: 8px;
        margin-left: auto;
    }
    
    .contacts-icon, .cart-icon {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 10px;
        margin-left: 4px;
    }
    
    .section {
        padding: 80px 0 40px;
    }
    
    .section h2 {
        font-size: 28px;
    }
    
    .about-description {
        font-size: 18px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature {
        padding: 24px;
    }
    
    .cta-button {
        padding: 16px 36px;
        font-size: 16px;
    }
    
    .carousel-track {
        height: 400px;
    }
    
    .carousel-slide {
        width: 300px;
        height: 380px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .product-gallery {
        flex-direction: column;
        height: auto;
    }
    
    .gallery-thumbs {
        width: 100%;
        flex-direction: row;
        border-left: none;
        border-top: 1px solid var(--border-color);
        overflow-x: auto;
        justify-content: flex-start;
        padding: 12px;
    }
    
    .gallery-thumb {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }
    
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quantity-controls {
        justify-content: center;
        margin-bottom: 12px;
    }
    
    .category-filters {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 24px;
        width: 95%;
    }
    
    .cart-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cart-item-info {
        flex-basis: 100%;
    }
    
    .cart-item-quantity {
        margin: 0;
        order: 2;
    }
    
    .cart-item-total {
        order: 1;
        text-align: left;
        min-width: auto;
    }
    
    .remove-item {
        order: 3;
    }
}

/* Мобильная версия */
@media (max-width: 480px) {
    .header .container {
        padding: 0 10px;
        gap: 8px;
    }
    
    .logo-main h1 {
        font-size: 16px;
    }
    
    .logo-subtitle {
        font-size: 8px;
    }
    
    .header-buttons {
        gap: 6px;
        margin-left: auto;
    }
    
    .contacts-icon, .cart-icon {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    /* ТЕКСТ ОСТАЕТСЯ, НЕ ЗАМЕНЯЕМ НА ИКОНКИ */
    .contacts-icon span, .cart-icon span {
        display: inline;
    }
    
    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 9px;
        margin-left: 3px;
    }
    
    .section {
        padding: 70px 0 30px;
    }
    
    .section h2 {
        font-size: 24px;
    }
    
    .about-description {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .carousel-track {
        height: 350px;
    }
    
    .carousel-slide {
        width: 260px;
        height: 330px;
    }
    
    .carousel-slide.prev {
        transform: translateX(-120%) scale(0.8) rotateY(15deg);
    }
    
    .carousel-slide.next {
        transform: translateX(20%) scale(0.8) rotateY(-15deg);
    }
    
    .carousel-container {
        perspective: 600px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-name {
        font-size: 18px;
    }
    
    .current-price {
        font-size: 22px;
    }
    
    .add-to-cart {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .category-filters {
        gap: 6px;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .faq-item {
        padding: 20px;
    }
    
    .faq-item h3 {
        font-size: 18px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .header .container {
        padding: 0 8px;
        gap: 6px;
    }
    
    .logo-main h1 {
        font-size: 14px;
    }
    
    .logo-subtitle {
        font-size: 7px;
    }
    
    .header-buttons {
        gap: 4px;
    }
    
    .contacts-icon, .cart-icon {
        padding: 5px 8px;
        font-size: 10px;
    }
    
    .contacts-icon span, .cart-icon span {
        display: inline;
    }
    
    .cart-count {
        width: 14px;
        height: 14px;
        font-size: 8px;
        margin-left: 2px;
    }
    
    .section h2 {
        font-size: 22px;
    }
    
    .about-description {
        font-size: 15px;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .carousel-slide {
        width: 240px;
        height: 300px;
    }
}