/* assets/css/style.css */

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8f5f0;
    color: #1a1a2e;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* Шапка */
header {
    background: #1a1a2e;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    display: inline-block;
    color: #fff;
    text-decoration: none;
}

.logo span {
    color: #e8a838;
}

nav {
    float: right;
    margin-top: 5px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    transition: 0.3s;
    font-size: 15px;
}

nav a:hover {
    color: #e8a838;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #e94560;
    color: white;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
}

/* Hero-блок */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #e8a838;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #e8a838;
    color: #1a1a2e;
}

.btn-primary:hover {
    background: #d4952a;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #e8a838;
}

.btn-secondary:hover {
    background: #e8a838;
    color: #1a1a2e;
}

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

.btn-danger:hover {
    background: #c62a4a;
}

/* Секция преимуществ */
.features {
    padding: 60px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item i {
    font-size: 36px;
    color: #e8a838;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-item p {
    color: #666;
    font-size: 14px;
}

/* Секция популярных блюд */
.popular-dishes {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

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

.dish-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.dish-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.dish-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0ebe4;
}

.dish-card .dish-info {
    padding: 20px;
}

.dish-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.dish-card .description {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
}

.dish-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
}

.dish-card .price {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}

.dish-card .add-to-cart {
    background: #e8a838;
    color: #1a1a2e;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
}

.dish-card .add-to-cart:hover {
    background: #d4952a;
}

/* Подвал */
.footer {
    background: #1a1a2e;
    color: #888;
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
}

.footer a {
    color: #888;
    text-decoration: none;
}

.footer a:hover {
    color: #e8a838;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    nav {
        float: none;
        margin-top: 15px;
    }
    
    nav a {
        margin-left: 0;
        margin-right: 20px;
        font-size: 14px;
    }
    
    .dishes-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .dishes-grid {
        grid-template-columns: 1fr;
    }
}
