* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f5f0;
    color: #333;
    line-height: 1.6;
}

header {
    background: linear-gradient(to right, #c62828, #d32f2f);
    color: white;
    padding: 1rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

nav {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    margin: 0.2rem 0.3rem;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

nav a:hover, nav a.active {
    background-color: white;
    color: #c62828;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h2 {
    color: #c62828;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ffcdd2;
    font-size: 1.8rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

/* Фоновые изображения для товаров */
.hinkali-cheese {
    background-image: url('https://i.pinimg.com/1200x/f6/20/f5/f620f57cfa11b19896a2a410c3018dec.jpg');
}

.hinkali-mushrooms {
    background-image: url('https://i.pinimg.com/736x/e0/d0/41/e0d0418ca5786d85f0332519fd24ad38.jpg');
}

.hinkali-meat {
    background-image: url('https://vseopecheni.ru/assets/cache_image/images/new/hinkali_535x400_968.webp');
}

.varenyky-curd {
    background-image: url('https://img.iamcook.ru/2020/upl/recipes/cat/u-b2854bb69310c3795c3f98bc1ca9c802.jpg');
}

.varenyky-potato {
    background-image: url('https://menunedeli.ru/wp-content/uploads/2024/02/Vareniki_s_syroy_kartochloy_salom_i_lukon_28_500x350-1000x667.jpg');
}

.cake-mikado {
   background-image: url('https://menunedeli.ru/wp-content/uploads/2017/02/armjanskij-tort-Mikado-1000x667.jpg');
}

.cake-birdmilk {
   background-image: url('https://i.pinimg.com/736x/b3/ea/2d/b3ea2d2e618ed8069828d9326293776f.jpg');
}

.cake-napoleon {
   background-image: url('https://avatars.mds.yandex.net/get-vertis-journal/4469561/2dfbd495-c2f7-4f66-b3c4-865759a84337.jpeg/1600x1600');
}

.cake-gata {
   background-image: url('https://images.gastronom.ru/8WzDxhHIk_2l7bn6YOoGnnyr7ah_9AP2ocz98-bvK08/pr:recipe-cover-image/g:ce/rs:auto:0:0:0/L2Ntcy9hbGwtaW1hZ2VzL2UxOTA3ZTM1LWU5ZGYtNGE4MC1iOWY3LTQ1ZjAyODUwZDBlNS5qcGc.webp');
}

.eclair-chocolate {
  background-image: url('https://img.vkusvill.ru/pim/images/site_LargeWebP/2203cfcf-b27f-4497-b9dc-3e949b680011.webp?1719215156.512');
}

.eclair-sugar {
   background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSXHM8pLDeO30mFhOCQEs9DoAzXB029QwFGQw&s');
}

.dolma-meat {
    background-image: url('https://s1.eda.ru/StaticContent/Photos/Upscaled/120131084941/120213175741/p_O.jpg');
}

.pancakes-meat {
  background-image: url('https://img.iamcook.ru/2021/upl/recipes/cat/u-48454eef071aa4465713245c1cf5e7a3.JPG');
}

.pancakes-curd {
    background-image: url('https://zira.uz/wp-content/uploads/2020/03/blinchiki-s-tvorogom-6.jpg');
}

.pelmeni-classic {
    background-image: url('https://eda.rambler.ru/images/RecipePhoto/390x390/pelmeni-s-kuricey_175426_photo_183146.jpg');
}

.pancakes-ham-cheese {
    background-image: url('https://menunedeli.ru/wp-content/uploads/2025/02/Bliny-s-vetchinoy-i-syrom-500350-1000x660.jpg');
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c62828;
    margin-bottom: 1rem;
}

.calculator {
    background-color: #f5f5f5;
    padding: 1.2rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.calculator label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.quantity-control {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.quantity-btn {
    background-color: #c62828;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: #d32f2f;
}

.quantity-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.calculator input {
    flex: 1;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
    margin: 0 0.5rem;
}

.calculator .total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #c62828;
    text-align: center;
    padding: 0.7rem;
    background-color: white;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.add-to-cart-btn {
    background-color: #c62828;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #d32f2f;
}

/* Стили для корзины */
.cart-container {
    position: fixed;
    top: 120px;
    right: 20px;
    width: 350px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-height: 70vh;
    overflow-y: auto;
    display: none;
}

.cart-container.open {
    display: block;
}

.cart-header {
    background: linear-gradient(to right, #c62828, #d32f2f);
    color: white;
    padding: 1rem;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.cart-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: white;
    color: #c62828;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.cart-icon i {
    font-size: 1.8rem;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff5722;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.cart-items {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: #c62828;
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-quantity button {
    background-color: #f0f0f0;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-quantity span {
    min-width: 30px;
    text-align: center;
}

.cart-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
    border-radius: 0 0 10px 10px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.cart-total-amount {
    color: #c62828;
}

.checkout-btn {
    background-color: #c62828;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: #d32f2f;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.remove-item {
    color: #999;
    cursor: pointer;
    margin-left: 0.5rem;
}

.remove-item:hover {
    color: #c62828;
}

/* Стили для формы оформления заказа */
.order-form-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.order-form-container.open {
    display: flex;
    justify-content: center;
    align-items: center;
}

.order-form {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.order-form h2 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.order-summary-small {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.order-summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.order-summary-total {
    font-weight: 700;
    font-size: 1.2rem;
    color: #c62828;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #ddd;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.submit-order-btn {
    flex: 1;
    background-color: #c62828;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.submit-order-btn:hover {
    background-color: #d32f2f;
}

.cancel-order-btn {
    flex: 1;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cancel-order-btn:hover {
    background-color: #e0e0e0;
}

.close-form {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close-form:hover {
    color: #c62828;
}

.success-message {
    text-align: center;
    padding: 3rem 2rem;
    display: none;
}

.success-message h2 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.success-message p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1.5rem;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.contact-item i {
    color: #ffcdd2;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    nav {
        flex-direction: column;
        align-items: center;
    }
    
    nav a {
        margin-bottom: 0.5rem;
        width: 80%;
        text-align: center;
    }
    
    .cart-container {
        width: 90%;
        right: 5%;
        top: 100px;
    }
    
    .cart-icon {
        width: 50px;
        height: 50px;
    }
    
    .logo-text {
        font-size: 1.8rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .order-form {
        padding: 1.5rem;
        width: 95%;
    }
}

.product-type {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.unit {
    font-size: 1rem;
    color: #777;
}

.site-title {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    letter-spacing: 1px;
}

.order-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.min-max-info {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.3rem;
    text-align: center;
}

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 3000;
    display: none;
    max-width: 350px;
}

.notification.error {
    background-color: #f44336;
}

.notification.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

/* Дополнительные стили для новых элементов формы */
.delivery-type-options {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    width: auto;
    margin: 0;
}

select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
}