/* ===== GLOBAL STYLES ===== */
:root {
    --primary: #2a5f3a;
    --primary-light: #4f7a5f;
    --primary-very-light: #e8f0e5;
    --text-dark: #1e3c2c;
    --text-light: #5f765f;
    --bg-light: #f9f8f4;
    --bg-white: #ffffff;
    --border-light: #e2dfd5;
}

/* Сброс и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: #1e2e1e;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px;
}

html {
    scroll-behavior: smooth;
}

/* Контейнер */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Типография */
h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: 450;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 5px;
}

/* ШАПКА (старая) */
.header {
    padding: 40px 0 30px;
    text-align: center;
    background: linear-gradient(to bottom, #f4f3ed, var(--bg-light));
}

.header h1 {
    color: #1b3b2a;
    margin-bottom: 12px;
}

.header .subtitle {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    color: #3b543b;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 10px;
}

.header .subtitle span {
    display: block;
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    color: var(--text-light);
    margin-top: 15px;
}

/* Логотип в шапке */
.header-logo {
    margin-bottom: 20px;
}

.header-logo img {
    max-width: 180px;
    height: auto;
}

/* Кнопки */
.btn, .btn-max, .inline-btn, .hero-btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    width: auto;
    min-width: 240px;
    max-width: 90%;
    border: none;
    box-shadow: 0 4px 15px rgba(30, 70, 40, 0.25);
    transition: background 0.2s, transform 0.1s;
    cursor: pointer;
    text-align: center;
}

.btn:hover, .btn-max:hover, .inline-btn:hover, .hero-btn:hover {
    background-color: #1e452a;
}

.btn:active, .btn-max:active, .inline-btn:active, .hero-btn:active {
    transform: scale(0.98);
}

.hero-btn {
    background-color: white;
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hero-btn:hover {
    background-color: #f0f5ea;
    color: var(--primary);
}

/* Секции */
.section {
    padding: 50px 0;
    border-bottom: 1px solid var(--border-light);
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    font-weight: 450;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

/* Хлебные крошки */
.breadcrumbs {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
    color: #8b9a8b;
    font-size: 0.95rem;
}

.breadcrumbs a {
    color: #21633e;
    text-decoration: none;
    border-bottom: 1px solid #bdd1bd;
}

.breadcrumbs a:hover {
    border-bottom-color: #21633e;
}

/* Сетка для каталога */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Карточка товара */
.product-card {
    background: white;
    border-radius: 32px;
    padding: 40px 30px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid #ece9e0;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.05);
    border-color: #bdd1bd;
}

.product-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.product-card p {
    color: #3b543b;
    margin-bottom: 20px;
    font-size: 1rem;
}

.product-tag {
    display: inline-block;
    background-color: #dde5da;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* ТРИ СТИХИИ */
.three-cols {
    display: flex;
    flex-direction: column;
    gap: 35px;
    max-width: 500px;
    margin: 0 auto;
}

.col {
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    padding: 25px 20px 20px;
    border-radius: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
}

.col-icon {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.col h3 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.col p {
    font-size: 1.1rem;
    color: #3a523a;
    max-width: 280px;
    margin: 0 auto;
}

/* СОСТАВ */
.composition-box {
    background-color: #ecebe3;
    border-radius: 36px;
    padding: 35px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.composition-text {
    font-size: clamp(1rem, 4vw, 1.2rem);
    line-height: 1.6;
    color: #1e301e;
    margin-bottom: 30px;
    word-break: break-word;
}

/* ПИЩЕВАЯ ЦЕННОСТЬ */
.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 15px;
    margin: 30px 0;
}

.nutrition-item {
    text-align: center;
}

.nutrition-item .value {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    font-weight: 500;
    color: #1b472b;
    line-height: 1.2;
}

.nutrition-item .label {
    font-size: 0.9rem;
    color: #557055;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ПЛАШКИ */
.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

.badge {
    background-color: #d3d9cb;
    padding: 10px 22px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 500;
    color: #1b3a1b;
    white-space: nowrap;
}

/* ХРАНЕНИЕ */
.storage-box {
    background-color: #dde5da;
    border-radius: 36px;
    padding: 40px 20px;
    text-align: center;
    max-width: 550px;
    margin: 0 auto;
}

.storage-item {
    font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    margin: 15px 0;
    color: var(--text-dark);
}

.storage-note {
    font-style: italic;
    color: #386238;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #95ab95;
    font-size: 1rem;
}

/* РЕЦЕПТЫ — АККОРДЕОН */
.recipes-container {
    max-width: 800px;
    margin: 0 auto;
}

.recipe-item {
    background: white;
    border-radius: 24px;
    margin-bottom: 16px;
    border: 1px solid #ece9e0;
    overflow: hidden;
}

.recipe-header {
    padding: 20px 25px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.recipe-header:hover {
    background: #f8f7f2;
}

.recipe-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.recipe-icon {
    font-size: 2rem;
    line-height: 1;
}

.recipe-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-dark);
}

.recipe-arrow {
    font-size: 1.8rem;
    color: #4b7a5a;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.recipe-header.active .recipe-arrow {
    transform: rotate(90deg);
}

.recipe-content {
    max-height: 0;
    padding: 0 25px;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: #faf9f5;
    border-top: 0px solid transparent;
}

.recipe-content.show {
    max-height: 3000px;
    padding: 20px 25px;
    border-top: 1px solid var(--border-light);
}

.recipe-desc {
    color: #3b543b;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.recipe-ingredients {
    background-color: #f0eee7;
    padding: 20px;
    border-radius: 24px;
    margin: 20px 0;
    font-size: 1rem;
}

.recipe-ingredients p {
    font-weight: 600;
    margin-bottom: 10px;
    color: #1b3b2a;
}

/* ФОРМА ЗАКАЗА */
.template {
    margin-bottom: 25px;
    width: 100%;
}

.message {
    font-family: inherit;
    margin-bottom: 8px;
    padding-left: 5px;
    font-size: 1rem;
}

.message b {
    color: var(--text-dark);
    font-weight: 550;
}

.input-form {
    width: 100%;
    padding: 16px 18px;
    background-color: #f5f3ee;
    border: 1px solid #d9d0c0;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1rem;
    color: #2a3e2a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.input-form:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 95, 58, 0.1);
    background-color: #fffcf5;
}

.input-form::placeholder {
    color: #a4b5a4;
    font-style: italic;
    font-size: 0.95rem;
}

textarea.input-form {
    resize: vertical;
    min-height: 100px;
}

.required-field-note {
    color: #c94a4a;
    font-size: 0.8rem;
    font-weight: normal;
    margin-left: 5px;
}

/* БЛОК ЗАКАЗА */
.order-box {
    text-align: center;
    background: #fffcf2;
    border-radius: 48px;
    padding: 45px 20px;
    max-width: 550px;
    margin: 0 auto;
}

.order-box h3 {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.max-link {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    word-break: break-word;
    display: inline-block;
    border-bottom: 2px solid #bdd1bd;
    padding-bottom: 4px;
    margin: 10px 0;
}

.max-link:hover {
    border-bottom-color: var(--primary);
}

/* ===== НОВЫЕ СТИЛИ (ДЛЯ МЕНЮ) ===== */

/* ВЕРХНЯЯ ПАНЕЛЬ (APP BAR) */
.app-bar {
    position: sticky;
    top: 0;
    background: rgba(249, 248, 244, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.app-logo {
    height: 40px;
    width: auto;
}

.app-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e3c2c;
}

.cart-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    width: auto;
    min-width: auto;
    box-shadow: none;
}

.cart-btn:hover {
    background: rgba(0,0,0,0.05);
}

/* НИЖНЯЯ НАВИГАЦИЯ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 12px 16px 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #5f765f;
    font-size: 0.75rem;
    gap: 4px;
    transition: color 0.2s;
    flex: 1;
    max-width: 70px;
}

.nav-item.active {
    color: #2a5f3a;
    font-weight: 500;
}

.nav-icon {
    font-size: 1.4rem;
}

/* ГЕРОЙ (ПЕРВЫЙ ЭКРАН) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #4a6b4f 0%, #1e3c2c 100%);
    color: white;
    padding: 40px 0;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-logo {
    width: 140px;
    height: 140px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.hero h1 {
    color: white;
    margin-bottom: 20px;
}

.hero h1 span {
    display: block;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 400;
    opacity: 0.9;
    margin-top: 8px;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    opacity: 0.95;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ПРЕИМУЩЕСТВА */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.feature-item h4 {
    color: #1e3c2c;
    margin-bottom: 5px;
}

.feature-item p {
    color: #5f765f;
}

/* ПЛАВАЮЩАЯ КНОПКА */
.floating-cart {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: var(--primary);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(42, 95, 58, 0.3);
    text-decoration: none;
    z-index: 99;
    transition: transform 0.2s;
}

.floating-cart:active {
    transform: scale(0.9);
}

/* ПОДВАЛ */
.footer {
    background-color: #1e2e1e;
    color: #d9e0d3;
    padding: 60px 0 30px;
    margin-top: 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

.footer-info p {
    margin: 8px 0;
    font-size: 1rem;
}

.footer-info strong {
    color: white;
    font-weight: 600;
}

.footer-note {
    font-style: italic;
    color: #8f9f8f;
    font-size: 0.9rem;
    max-width: 500px;
    margin: 15px auto 0;
}

.footer-links {
    display: block;
    text-align: right;
}
.footer-links p {
    margin: 8px 0;
}

.footer-links a {
    color: #d9e0d3;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.footer-links a:hover {
    border-bottom-color: #d9e0d3;
}

.footer-copy {
    margin-top: 50px;
    font-size: 0.9rem;
    color: #6f826f;
    border-top: 1px solid #2f412f;
    padding-top: 30px;
}

/* ПЛАНШЕТЫ И ВЫШЕ */
@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }
    
    .three-cols {
        flex-direction: row;
        max-width: none;
        gap: 25px;
    }
    
    .col {
        flex: 1;
        padding: 30px 15px;
    }

    .nutrition-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        align-items: flex-start;
    }
    
    .footer-links {
        justify-content: flex-end;
    }
    
    .footer-note {
        margin-left: 0;
    }
    
    .bottom-nav {
        max-width: 400px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 40px;
        bottom: 20px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        padding: 8px 8px 12px;
    }
    
    body {
        padding-bottom: 0;
    }
    
    .floating-cart {
        bottom: 30px;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 70px 0;
    }
    
    .col {
        padding: 40px 20px;
    }
    
    .col p {
        font-size: 1.15rem;
        max-width: 300px;
    }
}

/* АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ */
@media (max-width: 600px) {
    .btn, .btn-max, .inline-btn, .hero-btn {
        width: 100%;
        padding: 16px 20px;
    }
}

/* ОБЩИЕ ПРАВИЛА */
a, button {
    touch-action: manipulation;
}