/* ========================================
   GribTrip — Стили
   ======================================== */

/* Переменные */
:root {
    --primary-color: #2e7d32; /* Зеленый лесной */
    --secondary-color: #8bc34a; /* Светло-зеленый */
    --accent-color: #ff9800; /* Оранжевый акцент */
    --dark-bg: #1b2429;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --text-primary: #212121;
    --text-secondary: #757575;
    --card-bg: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ========================================
   Шапка сайта
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 15px 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.nav {
    display: flex;
    gap: 25px;
}

.nav-item {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 15px;
    border-radius: 25px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.3);
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* ========================================
   Главный экран
   ======================================== */

#home {
    padding-top: 100px;
    padding-bottom: 60px;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.hero-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-content {
    padding: 40px;
    background: linear-gradient(135deg, #fff8e1, #ffffff);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.hero h1 span {
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.hero .tagline {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.cta-btn {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.6);
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-img {
    width: 100%;
    max-width: 180px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* ========================================
   О вешенках
   ======================================== */

#about {
    padding: 80px 0;
    animation: fadeIn 0.8s ease 0.2s both;
}

.about-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 50px;
    box-shadow: var(--shadow);
}

.about-container h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.about-img {
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 0 auto 30px;
    display: block;
    box-shadow: var(--shadow);
}

.about-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.about-list {
    list-style: none;
    margin: 25px 0;
}

.about-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
}

.about-list li::before {
    content: '🍄';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

.nutrition-facts {
    background: #e8f5e9;
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 25px;
    border: 2px solid var(--secondary-color);
}

.nutrition-facts h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.nutrition-facts table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}

.nutrition-facts td {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
}

.nutrition-facts td:first-child {
    font-weight: 600;
    background: #f5f5f5;
}

/* ========================================
   Выращивание
   ======================================== */

#growing {
    padding: 80px 0;
    animation: fadeIn 0.8s ease 0.3s both;
}

.growing-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 50px;
}

.growing-container h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

/* Шаги */
.step-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.step-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--secondary-color);
    opacity: 0.7;
    line-height: 1;
}

.step-content h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.step-content h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.step-tasks {
    list-style: none;
    margin-bottom: 20px;
}

.step-tasks li {
    padding-left: 30px;
    margin-bottom: 10px;
    position: relative;
}

.step-tasks li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.step-notes {
    background: #fff3e0;
    padding: 15px;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent-color);
    margin-top: 15px;
}

.step-notes p {
    color: var(--text-secondary);
    font-style: italic;
}

.step-image {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ========================================
   Продукты из вешенок
   ======================================== */

#recipes {
    padding: 80px 0;
    animation: fadeIn 0.8s ease 0.4s both;
}

.recipes-container {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.recipes-container h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.recipe-section {
    margin-bottom: 50px;
}

.recipe-section h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
}

.recipe-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.recipe-card {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.recipe-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 15px;
    transition: var(--transition);
}

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

.recipe-card h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.recipe-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========================================
   Магазин
   ======================================== */

#shop {
    padding: 80px 0;
    animation: fadeIn 0.8s ease 0.5s both;
}

.shop-header {
    text-align: center;
    margin-bottom: 40px;
}

.shop-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.shop-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.product-category {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.product-category:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.product-category h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

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

.product-card {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 15px;
    transition: var(--transition);
}

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

.product-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.product-price {
    display: inline-block;
    padding: 5px 12px;
    background: #e8f5e9;
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.add-cart-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
    margin-top: auto;
    flex-shrink: 0;
}

.add-cart-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.add-cart-btn:active {
    transform: scale(0.95);
}

/* Корзина */
.cart-section {
    background: linear-gradient(135deg, #fff3e0, #ffffff);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-top: 40px;
    border: 2px solid var(--accent-color);
}

.cart-section h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cart-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--light-bg);
}

.cart-item {
    background: var(--card-bg);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cart-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
}

.cart-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--primary-color);
    border-radius: var(--radius);
}

.cart-total span {
    color: var(--white);
    font-weight: 700;
    font-size: 1.3rem;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.6);
}

/* ========================================
   Подвал
   ======================================== */

.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 10px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* ========================================
   Адаптивность
   ======================================== */

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

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-number {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .hero {
        margin-bottom: 30px;
    }

    .about-container {
        padding: 30px;
    }

    .recipes-container {
        padding: 25px;
    }

    .about-container h2,
    .recipes-container h2,
    .growing-container h2 {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        gap: 20px;
    }

    .feature-card {
        padding: 15px;
    }

    .product-category {
        padding: 20px;
    }
}