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

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fe;
    color: #1b1e2f;
    line-height: 1.5;
    overflow-x: hidden;
}

header {
    background: linear-gradient(135deg, #1f1d3a 0%, #2a2748 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: 'Space Grotesk', sans-serif;
}

.logo i {
    background: linear-gradient(135deg, #ff9a6c, #ff6b4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.2rem;
}

.logo:hover {
    transform: scale(1.03);
}

.cart-icon {
    background: rgba(255,255,255,0.15);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}

.cart-icon:hover {
    background: #ff6b4a;
    border-color: #ff6b4a;
    transform: translateY(-2px);
}

.news-carousel {
    position: relative;
    max-width: 1400px;
    margin: 1.5rem auto 0;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    max-width: 80%;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
}

.carousel-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.carousel-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: 0.2s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #ff6b4a;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.2s;
}

.carousel-dot.active {
    background: #ff6b4a;
    transform: scale(1.2);
}

.main-container {
    display: flex;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    gap: 2rem;
}

.products-section {
    flex: 1;
}

.cart-section {
    width: 360px;
    background: white;
    border-radius: 40px;
    padding: 1.8rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.cart-section:hover {
    box-shadow: 0 40px 80px rgba(255, 107, 74, 0.15);
}

.categories {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.category-btn {
    background: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    color: #1b1e2f;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    transition: all 0.2s;
    border: 1px solid #eaeaf0;
}

.category-btn.active {
    background: linear-gradient(135deg, #1f1d3a, #2a2748);
    color: white;
    border-color: transparent;
    box-shadow: 0 15px 30px rgba(31, 29, 58, 0.3);
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 107, 74, 0.2);
}

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

.product-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid #efeff5;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 50px rgba(255, 107, 74, 0.2);
}

.product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #eaeaf0;
    transition: transform 0.5s;
}

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

.product-info {
    padding: 1.3rem;
    background: white;
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.product-info .price {
    font-weight: 800;
    color: #ff6b4a;
    font-size: 1.3rem;
    margin: 0.5rem 0 0.2rem;
    display: inline-block;
    background: rgba(255,107,74,0.1);
    padding: 0.2rem 1rem;
    border-radius: 30px;
}

.product-info .desc {
    color: #6f6f7a;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
    scrollbar-width: thin;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
    border-bottom: 1px dashed #efeff5;
}

.cart-item-info {
    flex: 2;
}

.cart-item-title {
    font-weight: 600;
}

.cart-item-price {
    color: #ff6b4a;
    font-weight: 700;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-controls button {
    background: white;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1b1e2f;
}

.cart-item-controls button:hover {
    background: #1b1e2f;
    color: white;
    border-color: #1b1e2f;
    transform: scale(1.1);
}

.cart-total {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    background: #f8f8ff;
    padding: 1rem;
    border-radius: 30px;
}

#checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #1f1d3a, #2a2748);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 15px 30px rgba(31,29,58,0.3);
}

#checkout-btn:hover {
    background: linear-gradient(135deg, #ff6b4a, #ff9a6c);
    transform: translateY(-3px);
    box-shadow: 0 25px 40px rgba(255,107,74,0.4);
}

.contact-footer {
    max-width: 1400px;
    margin: 3rem auto 1rem;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
}

.contact-item i {
    color: #ff6b4a;
    font-size: 1.5rem;
}

.demo-badge {
    background: linear-gradient(135deg, #1f1d3a, #2a2748);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
}

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex !important;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    border-radius: 50px;
    padding: 2.5rem;
    box-shadow: 0 50px 100px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,107,74,0.2);
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1f1d3a, #ff6b4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
    width: 100%;
    padding: 1rem 1.2rem;
    margin: 0.5rem 0;
    border: 2px solid #eaeaf0;
    border-radius: 40px;
    font-size: 1rem;
    transition: 0.2s;
}

.modal-content input:focus,
.modal-content textarea:focus {
    border-color: #ff6b4a;
    outline: none;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-actions button {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #1f1d3a, #2a2748);
    color: white;
    box-shadow: 0 10px 20px rgba(31,29,58,0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff6b4a, #ff9a6c);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f0f0f5;
}

/* Дополнительные стили для новых элементов */
.popular-section {
    margin-bottom: 2rem;
}
.section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ff6b4a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.popular-grid {
    margin-bottom: 2rem;
}
.promocode-field {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}
.promocode-field input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid #eaeaf0;
    border-radius: 40px;
    background: white;
}
.promocode-field button {
    background: #ff6b4a;
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 600;
}
#promo-message {
    font-size: 0.8rem;
    margin-top: 0.3rem;
}
.delivery-hint {
    font-size: 0.85rem;
    margin: 0.5rem 0;
    text-align: center;
    background: #f8f8ff;
    padding: 0.5rem;
    border-radius: 30px;
}
.input-hint {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: -0.2rem;
    margin-bottom: 0.5rem;
}
.form-group {
    margin: 1rem 0;
}
.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}
.form-group div {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.form-group input[type="radio"] {
    width: auto;
    margin-right: 0.3rem;
}
.status-blocks {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #eaeaf0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.status-block {
    background: #fafaff;
    border-radius: 30px;
    padding: 1rem;
}
.status-block h4 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}
.status-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.order-status-item {
    background: white;
    border-radius: 30px;
    padding: 0.6rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.order-number-badge {
    font-weight: 700;
    color: #ff6b4a;
    background: #fff0ed;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
}
.order-time {
    font-size: 0.8rem;
    color: #888;
}
.empty-status {
    color: #aaa;
    text-align: center;
    padding: 1rem;
}

@media (max-width: 800px) {
    .main-container {
        flex-direction: column;
    }
    .cart-section {
        width: 100%;
        position: static;
        margin-top: 1rem;
    }
    .carousel-slide {
        height: 200px;
    }
    .carousel-content h2 {
        font-size: 1.5rem;
    }
    .contact-footer {
        flex-direction: column;
        text-align: center;
    }
    .contact-info {
        justify-content: center;
    }
}