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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header & Navigation */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
    width: 100%;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Кнопка переключения языка */
.language-switcher {
    position: relative;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.lang-icon {
    font-size: 1.2rem;
}

.lang-text {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
    position: relative;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #3498db;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

/* Top Sales Section */
.top-sales {
    padding: 4rem 0;
    background-color: white;
}

.top-sales h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

/* Contacts Preview */
.contacts-preview {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.contacts-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

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

.contact-preview {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.contact-preview h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-preview a {
    color: #3498db;
    text-decoration: none;
}

.contact-preview a:hover {
    text-decoration: underline;
}

/* Catalog */
.catalog h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}

.category-section {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

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

.product-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card::after {
    content: '👆 Нажмите для подробностей';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.product-card:hover::after {
    opacity: 1;
}

.product-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
}

.product-card h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3rem;
}

.product-card .price {
    font-size: 1.5rem;
    color: #e74c3c;
    font-weight: bold;
    margin: 1rem 0 0.5rem 0;
}

.product-card .btn {
    margin-top: auto;
    position: relative;
    z-index: 1;
}

/* Cart */
.cart h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.cart-item {
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cart-item > div:first-child {
    flex: 1;
}

.cart-total {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 2rem;
}

.cart-total h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Order Form */
.order-form-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.order-form-container h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Cart Counter */
.cart-counter {
    background-color: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 5px;
    display: none;
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-container {
    position: relative;
    background-color: white;
    border-radius: 15px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* Убрали анимацию - только статика */

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 1002;
}

.modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.modal-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-product-image {
    position: sticky;
    top: 0;
}

.modal-product-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.modal-product-info h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal-price {
    font-size: 2rem;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.modal-description {
    margin-bottom: 2rem;
}

.modal-description h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.modal-description p {
    color: #666;
    line-height: 1.8;
    white-space: pre-line;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* Responsive для модального окна */
@media (max-width: 768px) {
    .modal-product {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .modal-product-image {
        position: static;
    }
    
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-product-info h2 {
        font-size: 1.5rem;
    }
    
    .modal-price {
        font-size: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

/* About & Contact */
.about-content,
.contact-info {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.contact-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-item p {
    color: #666;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Map Container */
.map-container {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
}

.map-container h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.map-placeholder {
    background-color: #f8f9fa;
    padding: 3rem;
    border-radius: 10px;
    text-align: center;
    color: #666;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Social Links */
.social-links {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.social-links h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
    gap: 0.5rem;
}

.social-link:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.social-link.instagram:hover {
    background-color: #E4405F;
    color: white;
}

.social-link.youtube:hover {
    background-color: #FF0000;
    color: white;
}

.social-link.whatsapp:hover {
    background-color: #25D366;
    color: white;
}

.social-icon {
    font-size: 2rem;
}

.social-links-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link-small {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.social-link-small:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    max-width: 200px;
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    opacity: 0.8;
}

/* Responsive - Планшеты и маленькие экраны */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .navbar .container {
        flex-direction: row;
        gap: 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 0 20px 0;
        margin: 0;
        gap: 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        z-index: 10000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 0;
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 1rem 2rem;
        text-align: left;
        border-radius: 0;
        background-color: transparent;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: rgba(52, 152, 219, 0.2);
        color: #3498db;
        padding-left: 2.5rem;
    }
    
    /* Overlay для закрытия меню */
    body.menu-open {
        overflow: hidden;
    }
    
    .nav-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    body.menu-open .nav-menu-overlay {
        opacity: 1;
        visibility: visible;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    .logo a {
        font-size: 1.3rem;
    }
    
    .hero-logo-img {
        max-width: 250px;
        max-height: 120px;
    }
    
    .footer-logo img {
        max-width: 150px;
        max-height: 60px;
    }
    
    .hero {
        padding: 2.5rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        padding: 0 10px;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .top-sales h2,
    .contacts-preview h2,
    .catalog h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contacts-grid,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cart-item > div:last-child {
        width: 100%;
    }
    
    .cart-item .btn {
        width: 100%;
    }
    
    .product-card {
        padding: 1rem;
    }
    
    .product-card img {
        height: 200px;
    }
    
    .product-card h3 {
        font-size: 1rem;
        min-height: 2.5rem;
    }
    
    .product-card .price {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .cart-total {
        padding: 1.5rem;
    }
    
    .cart-total h2 {
        font-size: 1.5rem;
    }
    
    .order-form-container {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    main {
        padding: 1.5rem 0;
    }
}

/* Responsive - Мобильные телефоны */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .hero-logo-img {
        max-width: 200px;
        max-height: 100px;
    }
    
    .footer-logo img {
        max-width: 120px;
        max-height: 50px;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.75rem;
        text-align: center;
        border-radius: 5px;
        background-color: rgba(255, 255, 255, 0.1);
        margin-bottom: 0.25rem;
    }
    
    .nav-menu a:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .top-sales,
    .contacts-preview {
        padding: 2rem 0;
    }
    
    .top-sales h2,
    .contacts-preview h2,
    .catalog h1 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .products-grid {
        gap: 1rem;
    }
    
    .product-card {
        padding: 0.75rem;
    }
    
    .product-card img {
        height: 180px;
    }
    
    .product-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .product-card .price {
        font-size: 1.2rem;
        margin: 0.5rem 0;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .category-section {
        margin-bottom: 2.5rem;
    }
    
    .category-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .cart h1 {
        font-size: 1.5rem;
    }
    
    .cart-item {
        padding: 1rem;
    }
    
    .cart-item h3 {
        font-size: 1rem;
    }
    
    .cart-total {
        padding: 1rem;
    }
    
    .cart-total h2 {
        font-size: 1.3rem;
    }
    
    .order-form-container {
        padding: 1rem;
    }
    
    .order-form-container h2 {
        font-size: 1.3rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .company-info {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .company-info h2 {
        font-size: 1.3rem !important;
        margin-bottom: 1rem !important;
    }
    
    .company-info > div {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .company-info h3 {
        font-size: 1rem !important;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-item h3 {
        font-size: 1rem;
    }
    
    footer .container > div:last-child {
        padding: 0 1rem;
    }
    
    footer .container > div:last-child p {
        font-size: 0.8rem !important;
    }
    
    .social-links {
        padding: 1rem;
    }
    
    .social-links h2 {
        font-size: 1.3rem;
    }
    
    .map-container {
        padding: 1rem;
    }
    
    .map-placeholder {
        padding: 2rem 1rem;
        min-height: 300px;
    }
    
    footer {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }
    
    .product-card::after {
        font-size: 0.65rem;
        bottom: 5px;
    }
    
    .modal-container {
        width: 98%;
        max-height: 98vh;
        border-radius: 10px;
    }
    
    .modal-product {
        padding: 1rem;
        gap: 1rem;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .modal-product-info h2 {
        font-size: 1.2rem;
    }
    
    .modal-price {
        font-size: 1.3rem;
    }
    
    .modal-description h3 {
        font-size: 1rem;
    }
    
    .modal-description p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 0.85rem;
    }
    
    .product-card {
        padding: 0.5rem;
    }
    
    .product-card img {
        height: 150px;
    }
    
    .product-card h3 {
        font-size: 0.9rem;
    }
    
    .product-card .price {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 7px 14px;
        font-size: 0.8rem;
    }
    
    .admin-container {
        padding: 0 5px;
    }
    
    .admin-header {
        padding: 0.5rem;
    }
    
    .admin-header h1 {
        font-size: 1.1rem;
    }
}

/* Улучшения для touch-устройств */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-menu a {
        padding: 0.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-card {
        cursor: default;
    }
    
    .modal-close {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Новогодние анимации */
/* Снежинки удалены из-за проблем на мобильных устройствах */

/* Новогодние украшения для header */
header {
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.1) 25%,
        rgba(255, 215, 0, 0.1) 75%,
        transparent 100%
    );
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ============================================
   УЛУЧШЕНИЯ UI
   ============================================ */

/* Плавный скролл */
html {
    scroll-behavior: smooth;
}

/* Улучшенные карточки товаров */
.product-card {
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
}

.product-card img {
    transition: transform 0.4s ease;
}

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

/* Современные кнопки с градиентами */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Улучшенный header */
header {
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-menu a {
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #667eea);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.logo a {
    background: linear-gradient(135deg, #fff 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

/* Улучшенная hero секция */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero h1 {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .btn {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Улучшенные карточки контактов */
.contact-preview {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.contact-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-preview:hover::before {
    left: 100%;
}

.contact-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.contact-preview h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #2c3e50;
    font-size: 1.3rem;
}

.contact-preview h3::before {
    content: '📞';
    font-size: 1.5rem;
}

.contact-preview:nth-child(2) h3::before {
    content: '📍';
}

.contact-preview:nth-child(3) h3::before {
    content: '🏢';
}

.contact-preview:nth-child(4) h3::before {
    content: '💬';
}

/* Улучшенные секции */
.top-sales h2,
.contacts-preview h2,
.catalog h1 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.top-sales h2::after,
.contacts-preview h2::after,
.catalog h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Улучшенные формы */
.form-group input:focus,
.form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Улучшенный footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

/* Улучшенные модальные окна */
.modal-container {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Улучшенные цены */
.product-card .price {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Общие улучшения */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: linear-gradient(180deg, #f4f4f4 0%, #ffffff 100%);
    min-height: 100vh;
}

/* Улучшенные карточки корзины */
.cart-item {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

/* Улучшенные социальные ссылки */
.social-link-small {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(52, 152, 219, 0.1);
}

.social-link-small:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.2);
}

/* ============================================
   ВЫЛЕТАЮЩАЯ КОРЗИНА
   ============================================ */

.cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.cart-sidebar.active {
    right: 0;
}

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-sidebar-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.cart-sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
    padding: 0;
    line-height: 1;
}

.cart-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cart-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.cart-sidebar-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    flex: 1;
}

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.cart-sidebar-items {
    flex: 1;
    margin-bottom: 1rem;
}

.cart-sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.cart-sidebar-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-sidebar-item-info {
    flex: 1;
}

.cart-sidebar-item-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

.cart-sidebar-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.cart-sidebar-item-details strong {
    color: #e74c3c;
    font-size: 1.1rem;
}

.cart-sidebar-item-remove {
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cart-sidebar-item-remove:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.cart-sidebar-footer {
    padding: 1rem;
    background: #f8f9fa;
    border-top: 2px solid #e9ecef;
    margin-top: auto;
}

.cart-sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-top: 2px solid #e9ecef;
    padding-top: 1rem;
}

.cart-sidebar-total strong {
    color: #e74c3c;
    font-size: 1.5rem;
}

.btn-block {
    width: 100%;
    margin-bottom: 0.5rem;
}

.cart-sidebar-order-form {
    padding: 1rem;
    background: white;
    border-top: 2px solid #e9ecef;
    margin-top: 1rem;
}

.cart-sidebar-order-form h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.cart-sidebar-order-form .form-group {
    margin-bottom: 1rem;
}

.cart-sidebar-order-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.cart-sidebar-order-form input,
.cart-sidebar-order-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
}

.cart-sidebar-order-form input:focus,
.cart-sidebar-order-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Уведомление о добавлении товара */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.cart-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.cart-notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-notification-icon {
    font-size: 1.5rem;
    font-weight: bold;
}

.cart-notification-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Мобильная версия корзины */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        max-width: 100%;
    }
    
    .cart-notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .cart-notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .cart-sidebar-header {
        padding: 1rem;
    }
    
    .cart-sidebar-header h2 {
        font-size: 1.2rem;
    }
    
    .cart-sidebar-item {
        padding: 0.75rem;
    }
    
    .cart-sidebar-item-info h4 {
        font-size: 0.9rem;
    }
    
    .cart-sidebar-total {
        font-size: 1rem;
    }
    
    .cart-sidebar-total strong {
        font-size: 1.3rem;
    }
}

/* ============================================
   ОПТИМИЗАЦИЯ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ============================================ */

/* Отключение сложных эффектов на мобильных */
@media (max-width: 768px) {
    /* Упрощаем карточки товаров */
    .product-card:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .product-card:hover img {
        transform: none;
    }
    
    /* Упрощаем кнопки */
    .btn-primary::before {
        display: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    /* Упрощаем карточки контактов */
    .contact-preview:hover {
        transform: none;
    }
    
    .contact-preview::before {
        display: none;
    }
    
    /* Упрощаем hero анимацию */
    .hero::before {
        animation-duration: 30s;
    }
    
    /* Упрощаем карточки корзины */
    .cart-item:hover {
        transform: none;
    }
    
    /* Упрощаем социальные ссылки */
    .social-link-small:hover {
        transform: none;
    }
}

/* Отключение hover эффектов на touch устройствах */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }
    
    .product-card:hover img {
        transform: none !important;
    }
    
    .btn-primary:hover {
        transform: none !important;
    }
    
    .btn-primary::before {
        display: none !important;
    }
    
    .contact-preview:hover {
        transform: none !important;
    }
    
    .contact-preview::before {
        display: none !important;
    }
    
    .cart-item:hover {
        transform: none !important;
    }
    
    .social-link-small:hover {
        transform: none !important;
    }
    
    .logo a:hover {
        transform: none !important;
    }
    
    /* Упрощаем навигацию */
    .nav-menu a::after {
        display: none;
    }
}

/* Оптимизация производительности на мобильных */
@media (max-width: 480px) {
    /* Отключаем сложные анимации */
    .hero::before {
        display: none;
    }
    
    /* Упрощаем градиенты */
    .btn-primary {
        background: #667eea;
    }
    
    header {
        background: #2c3e50;
        backdrop-filter: none;
    }
    
    .logo a {
        color: white;
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: white;
        background-clip: unset;
    }
    
    /* Упрощаем тени */
    .btn-primary {
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }
}

/* Отключение анимаций для пользователей с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Плавающая кнопка оформления заказа для мобильных */
.mobile-order-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    z-index: 9997;
    display: none;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    min-width: 180px;
    justify-content: center;
}

.mobile-order-button.has-items {
    display: flex;
    animation: slideUp 0.3s ease;
}

.mobile-order-button:active {
    transform: scale(0.95);
}

.mobile-order-icon {
    font-size: 1.5rem;
}

.mobile-order-text {
    white-space: nowrap;
}

.mobile-order-badge {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    position: absolute;
    top: -8px;
    right: -8px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .mobile-order-button.has-items {
        display: flex;
    }
}

@media (min-width: 769px) {
    .mobile-order-button {
        display: none !important;
    }
}


