:root {
    --primary: #EF4444;
    --dark: #0F172A;
    --light: #F8FAFC;
    --text-muted: #64748B;
    --radius: 30px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f1f3f5;
    color: var(--dark);
    line-height: 1.6;
}

.main-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    background-color: var(--light);
    min-height: 100vh;
    padding: 0 5%;
    position: relative;
    box-shadow: 0 0 100px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* NAVIGATION */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; }
.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
}

.btn-cta {
    background: var(--dark);
    color: white;
    padding: 12px 25px;
    border-radius: 100px;
    border: none;
    font-weight: 700;
    cursor: pointer;
}

/* HERO */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-content { flex: 1 1 500px; max-width: 600px; }
.badge { background: #FEE2E2; color: var(--primary); padding: 6px 14px; border-radius: 10px; font-size: 0.8rem; font-weight: 800; }

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    margin: 25px 0;
}

.hero-image { flex: 1 1 400px; max-width: 500px; }
.hero-image img {
    width: 100%;
    border-radius: var(--radius);
    transform: rotate(2deg);
    box-shadow: 20px 30px 60px rgba(0,0,0,0.1);
}

.hero-btns { display: flex; gap: 15px; margin-top: 30px; }
.btn-main { background: var(--primary); color: white; padding: 18px 35px; border-radius: 20px; text-decoration: none; font-weight: 700; }
.btn-outline { border: 2px solid var(--dark); padding: 16px 33px; border-radius: 20px; text-decoration: none; color: var(--dark); font-weight: 700; }

/* RECIPES SECTION */
.recipes-section { padding: 100px 0; }
.accent-line { width: 50px; height: 4px; background: var(--primary); margin: 15px auto; }

.recipe-grid {
    display: grid;
    /* Теперь здесь 2 колонки на больших экранах */
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 50px;
    max-width: 1000px; /* Чтобы 2 карточки не были слишком гигантскими */
    margin-left: auto;
    margin-right: auto;
}

.recipe-card {
    background: white;
    padding: 25px;
    border-radius: 35px;
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.recipe-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.06); }
.card-img { height: 280px; border-radius: 25px; overflow: hidden; margin-bottom: 25px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.details-link { text-decoration: none; color: var(--primary); font-weight: 800; }

/* CENTERED FOOTER */
.modern-footer {
    padding: 80px 0 40px;
    border-top: 1px solid #eee;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h4 {
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: var(--dark);
}

.footer-list { list-style: none; }
.footer-list li { margin-bottom: 12px; }
.footer-list a { text-decoration: none; color: var(--text-muted); transition: 0.3s; }
.footer-list a:hover { color: var(--primary); }

.social-links { display: flex; gap: 20px; margin-top: 20px; }
.social-links a { color: var(--dark); font-weight: 700; text-decoration: none; font-size: 0.9rem; }

.footer-form {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.footer-form input { padding: 12px 18px; border-radius: 12px; border: 1px solid #e2e8f0; outline: none; width: 100%; }
.footer-form button { background: var(--dark); color: white; border: none; padding: 12px 20px; border-radius: 12px; font-weight: 700; cursor: pointer; }

.footer-hr { border: 0; border-top: 1px solid #eee; margin: 40px 0; }
.footer-bottom { font-size: 0.85rem; color: var(--text-muted); }
.legal a { margin: 0 10px; text-decoration: none; color: var(--text-muted); }

/* MOBILE */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { text-align: center; }
    .hero-btns { justify-content: center; }
    .recipe-grid { grid-template-columns: 1fr; }
}