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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%);
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* НОВАЯ НАВИГАЦИЯ - более современная */
nav {
    background: linear-gradient(90deg, #1a1a2e, #16213e);
    padding: 15px 30px;
    margin-bottom: 30px;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    color: #e2e2e2;
    text-decoration: none;
    margin: 0;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-radius: 30px;
}

nav a:hover {
    background: #e94560;
    border-radius: 30px;
    transform: translateY(-2px);
}

/* КОНТЕЙНЕР - растягивается */
.container {
    max-width: 1300px;
    margin: 0 auto 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    flex: 1;
}

h1 {
    margin-bottom: 30px;
    color: #16213e;
    font-size: 2.2rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #e94560;
    border-radius: 3px;
}

/* ФОРМА - более стильная */
form {
    max-width: 500px;
    margin: auto;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #16213e;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0 15px 0;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: inherit;
    transition: all 0.3s;
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #e94560;
    box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}

button {
    background: linear-gradient(90deg, #16213e, #1a1a2e);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
    width: 100%;
}

button:hover {
    background: linear-gradient(90deg, #e94560, #c73e56);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233,69,96,0.3);
}

/* СООБЩЕНИЯ */
.message {
    padding: 12px 20px;
    margin: 15px 0;
    border-radius: 12px;
    font-weight: 500;
}

.success {
    background: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

/* ТОВАРЫ - улучшенные карточки */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.product-card {
    border: none;
    padding: 0;
    border-radius: 15px;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-card h3 {
    margin: 0;
    padding: 20px 20px 10px 20px;
    font-size: 1.3rem;
    color: #16213e;
}

.price {
    font-size: 24px;
    color: #e94560;
    font-weight: bold;
    margin: 5px 0;
    padding: 0 20px;
}

.product-card p {
    padding: 0 20px 20px 20px;
    color: #666;
    line-height: 1.5;
}

.product-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #16213e, #e94560);
}

/* ========== ЧЕРНЫЙ ФУТЕР ========== */
footer {
    background: #0a0a0a;
    color: #e0e0e0;
    padding: 40px 20px 20px 20px;
    margin-top: auto;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #e94560;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section h4 {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-section p {
    color: #999;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #e94560;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #e94560;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.9rem;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .container {
        padding: 20px;
        margin: 0 15px 30px 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}