:root {
    --primary-green: #1d6a38;
    --dark-bg: #203b44;
    --gold: #e5c382;
    --bg-body: #f4f6f4;
    --white: #ffffff;
    --text-dark: #111111;
    --text-gray: #444444;
    --price-color: #d32f2f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    font-size: 18px;
}

.app-container {
    width: 100%;
    max-width: 600px;
    background-color: var(--bg-body);
    min-height: 100vh;
    position: relative;
    padding-bottom: 100px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow-x: hidden;
}

/* --- Верхняя панель --- */
.top-bar {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
}

.phone-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- Шапка --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background-color: var(--bg-body);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-icon {
    font-size: 26px;
    color: var(--text-dark);
    cursor: pointer;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-green);
    letter-spacing: 1px;
}

.header-nav {
    display: none;
}

.cart-wrapper {
    position: relative;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-green);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========================================================= */
/* ================== МОБИЛЬНЫЙ LAYOUT ===================== */
/* ========================================================= */
.product-layout {
    display: flex;
    flex-direction: column;
}

.product-left-col, .product-right-col {
    display: contents;
}

.product-gallery {
    order: 1;
    width: 100%;
    height: 350px;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.product-gallery img {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--gold);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    z-index:1;
}

.product-title {
    order: 2;
    background-color: var(--white);
    padding: 24px 20px 0;
    margin-top: -20px;
    position: relative;
    z-index: 10;
    border-radius: 24px 24px 0 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
}

.product-buy-block {
    order: 3;
    background-color: var(--white);
    padding: 12px 20px 24px;
}

.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.product-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
}

.btn-add-cart-large {
    width: 100%;
    height: 60px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(29, 106, 56, 0.3);
}

.btn-add-cart-large:active:not(.in-cart) {
    transform: scale(0.98);
    background-color: #154d28;
}

.btn-add-cart-large.in-cart {
    background-color: #e8f3ee;
    color: var(--primary-green);
    box-shadow: none;
    border: 2px solid #cce0d5;
    cursor: default;
}

.composition-card {
    order: 4;
    margin: 24px 20px 16px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* ==================== НАШИ ПРЕИМУЩЕСТВА (MOBILE) ==================== */
.advantages-card {
    order: 5;
    margin: 0 20px 24px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.advantages-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-align: center;
    text-transform: uppercase;
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.advantage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.advantage-item i {
    font-size: 28px;
    color: var(--primary-green);
    margin-bottom: 4px;
}

.adv-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.adv-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.adv-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.3;
}

/* ==================== ОПИСАНИЕ ==================== */
.product-rest-description {
    order: 6;
    margin: 0 20px 24px;
    padding: 24px 20px;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.product-rest-description .info-card {
    background-color: transparent;
    padding: 0 0 20px 0;
    margin: 0 0 20px 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #eaeaea;
}

.product-rest-description .info-card:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.info-card h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 21px;
    color: var(--text-gray);
    line-height: 1.5;
}

.info-card h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    margin-top: 0;
}

.info-card h2.upper { text-transform: uppercase; }
.info-card h2.centered { text-align: center; }

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    margin-top: 16px;
}

.info-card ul, .info-card ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.info-card li {
    font-size: 21px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 6px;
}

.info-card .bolded { font-weight: 700; }
.info-card .upper { text-transform: uppercase; }
.info-card a { color: var(--primary-green); text-decoration: underline; }

/* --- Блок Рекомендуем к покупке (Слайдер) --- */
.recommended-section {
    padding: 30px 0 10px;
    background-color: var(--white);
    margin-top: 20px;
}

.recommended-header {
    padding: 0 20px;
    margin-bottom: 16px;
}

.recommended-header h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
}

.slider-wrapper {
    position: relative;
    padding: 0 10px;
}

.recommended-scroll {
    display: flex;
    gap: 16px;
    padding: 0 10px 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.recommended-scroll::-webkit-scrollbar { display: none; }

.rec-card {
    min-width: calc(50% - 18px);
    max-width: calc(50% - 18px);
    background-color: var(--bg-body);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    scroll-snap-align: start;
}

.rec-image-wrapper {
    height: 140px;
    background-color: var(--white);
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rec-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.rec-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: var(--white);
}

.rec-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 8px;
    flex-grow: 1;
}

.rec-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.rec-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

.btn-add-cart-small {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart-small.in-cart {
    background-color: #e8f3ee;
    color: var(--primary-green);
    width: auto;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: default;
}

.slider-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: opacity 0.3s, background-color 0.2s;
    opacity: 0.9;
}

.slider-btn:hover {
    background-color: #154d28;
    opacity: 1;
}

.slider-btn:active { transform: translateY(-50%) scale(0.9); }
.slider-btn.prev-btn { left: -5px; }
.slider-btn.next-btn { right: -5px; }
.slider-btn.hidden { opacity: 0; pointer-events: none; }

/* --- Футер --- */
.site-footer {
    background-color: var(--white);
    padding: 30px 20px 40px;
    border-top: 1px solid #eaeaea;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-contacts {
    margin-bottom: 24px;
    background-color: var(--bg-body);
    padding: 20px;
    border-radius: 16px;
}

.footer-contacts p {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.footer-contacts p:last-child { margin-bottom: 0; }

.footer-contacts i {
    color: var(--primary-green);
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.footer-contacts a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
}

.footer-links a {
    font-size: 15px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.footer-legal {
    border-top: 1px solid #eaeaea;
    padding-top: 20px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.footer-legal .disclaimer {
    margin-top: 12px;
    font-size: 13px;
    color: #888;
}

/* --- Нижняя навигация --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 600px;
    background-color: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 12px 10px 20px;
    border-top: 1px solid #eaeaea;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-gray);
    text-decoration: none;
    gap: 6px;
    position: relative;
    padding: 0 5px;
}

.nav-item.active { color: var(--primary-green); }
.nav-item i { font-size: 26px; }
.nav-text { font-size: 13px; font-weight: 600; }

@media (max-width: 480px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 20px;
    }
}

/* ========================================================= */
/* ================== ПЛАНШЕТЫ И ДЕСКТОП ==================== */
/* ========================================================= */
@media (min-width: 768px) {
    body {
        display: block;
        background-color: var(--bg-body);
    }

    .app-container {
        max-width: 1200px;
        margin: 0 auto;
        padding-bottom: 0;
        box-shadow: none;
        min-height: 100vh;
        overflow: visible;
    }

    /* --------- Верхняя панель --------- */
    .top-bar {
        padding: 12px 48px;
    }

    /* --------- Шапка --------- */
    header {
        padding: 20px 48px;
        position: sticky;
        top: 0;
        z-index: 100;
        background-color: rgba(244, 246, 244, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(0,0,0,0.06);
        justify-content: flex-start;
        gap: 40px;
        box-shadow: none;
    }

    .menu-icon {
        display: none;
    }

    .logo {
        font-size: 28px;
    }

    .header-nav {
        display: flex;
        gap: 32px;
        align-items: center;
        margin-left: 24px;
    }

    .header-nav a {
        font-size: 15px;
        font-weight: 600;
        color: var(--text-dark);
        text-decoration: none;
        transition: color 0.2s;
        position: relative;
        padding: 6px 0;
    }

    .header-nav a:hover { color: var(--primary-green); }
    .header-nav a.active { color: var(--primary-green); }

    .header-nav a.active::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--primary-green);
        border-radius: 2px;
    }

    .cart-wrapper {
        margin-left: auto;
    }

    /* --------- Скрываем нижнее меню --------- */
    .bottom-nav {
        display: none;
    }

    /* --------- Десктопный Grid Layout --------- */
    .product-layout {
        display: grid;
        grid-template-columns: 460px 1fr;
        gap: 24px 40px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0px 48px 40px;
        align-items: stretch;
    }

    /* Левая колонка */
    .product-left-col {
        display: flex;
        flex-direction: column;
        background-color: var(--white);
        border-radius: 24px;
        padding: 30px;
        gap: 24px;
        height: 100%;
    }

    .product-gallery {
        height: auto;
        min-height: 380px;
        padding: 0;
        background: transparent;
        order: unset;
        flex-grow: 1;
    }

    .product-gallery img {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        object-fit: contain;
    }

    .product-buy-block {
        background: transparent;
        padding: 0;
        order: unset;
        flex-shrink: 0;
    }

    .product-price-wrapper { margin-bottom: 16px; }
    .product-price { font-size: 40px; }
    .btn-add-cart-large { height: 64px; font-size: 20px; }

    /* Правая колонка */
    .product-right-col {
        display: flex;
        flex-direction: column;
        gap: 24px;
        height: 100%;
    }

    .product-title {
        background-color: var(--white);
        border-radius: 24px;
        padding: 40px;
        margin: 0;
        font-size: 38px;
        order: unset;
        flex-shrink: 0;
    }

    .composition-card {
        margin: 0;
        padding: 30px 40px;
        border-radius: 24px;
        order: unset;
        flex-shrink: 0;
    }

    /* ==================== НАШИ ПРЕИМУЩЕСТВА (DESKTOP) ==================== */
    .advantages-card {
        margin: 0;
        padding: 40px;
        border-radius: 24px;
        order: unset;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .advantages-card h2 {
        font-size: 22px;
        margin-bottom: 30px;
        text-align: left;
    }
    
    .advantages-grid {
        display: flex;
        flex-direction: column;
        gap: 28px;
        flex-grow: 1;
        justify-content: space-evenly;
    }

    .advantage-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 24px;
    }

    .advantage-item i {
        font-size: 32px;
        width: 40px;
        text-align: center;
        margin-top: 2px;
    }

    .adv-text {
        align-items: flex-start;
        gap: 6px;
    }

    .adv-title {
        font-size: 18px;
        font-weight: 700;
    }

    .adv-desc {
        font-size: 15px;
        color: var(--text-gray);
        line-height: 1.5;
        max-width: 300px;
    }

    /* ОБЪЕДИНЕННЫЙ БЛОК ОПИСАНИЯ — на всю ширину */
    .product-rest-description {
        grid-column: 1 / -1;
        display: block;
        padding: 40px;
        margin-top: 8px;
        order: unset;
        background-color: var(--white);
        border-radius: 24px;
    }

    .product-rest-description .info-card {
        padding: 0 0 30px 0;
        margin: 0 0 30px 0;
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
        border-bottom: 1px solid #eaeaea;
    }

    .product-rest-description .info-card:last-child {
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }

    .info-card h2 { font-size: 22px; }
    .info-card h3 { font-size: 20px; }
    .info-card p,
    .info-card li { font-size: 21px; line-height: 1.7; }

    /* --------- Рекомендации --------- */
    .recommended-section {
        max-width: 1200px;
        margin: 32px auto 0;
        padding: 40px 48px 20px;
    }

    .recommended-header {
        padding: 0;
        margin-bottom: 24px;
    }

    .recommended-header h3 {
        font-size: 32px;
    }

    .slider-wrapper {
        padding: 0;
    }

    .recommended-scroll {
        padding: 0 0 24px;
    }

    .rec-card {
        min-width: calc(25% - 12px);
        max-width: calc(25% - 12px);
    }

    .rec-image-wrapper { height: 200px; }
    .rec-title { font-size: 16px; }
    .rec-price { font-size: 20px; }

    .btn-add-cart-small {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .slider-btn {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }

    .slider-btn.prev-btn { left: -26px; }
    .slider-btn.next-btn { right: -26px; }

    /* --------- Футер — 3 колонки --------- */
    .site-footer {
        max-width: 1200px;
        margin: 0 auto;
        padding: 56px 48px 40px;
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-areas:
            "logo     contacts links"
            "desc     contacts links"
            "legal    legal    legal";
        column-gap: 56px;
        row-gap: 16px;
        align-items: start;
        border-top: 1px solid #eaeaea;
    }

    .footer-logo {
        grid-area: logo;
        margin-bottom: 0;
        font-size: 28px;
    }

    .footer-desc {
        grid-area: desc;
        margin-bottom: 0;
        max-width: 500px;
    }

    .footer-contacts {
        grid-area: contacts;
        margin-bottom: 0;
        background-color: transparent;
        padding: 0;
    }

    .footer-links {
        grid-area: links;
        margin-bottom: 0;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .footer-legal {
        grid-area: legal;
        margin-top: 32px;
    }
}
  /* Новые стили для верхнего баннера доверия */
        .trust-banner {
            background-color: #f0f7f3;
            margin: 10px 20px;
            padding: 15px 20px;
            border-radius: 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border: 1px solid #d5e8de;
        }
        
        .trust-banner-left {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .trust-banner-left i {
            font-size: 38px;
            color: var(--primary-green);
        }
        
        .trust-banner-text {
            display: flex;
            flex-direction: column;
        }
        
        .trust-title {
            font-weight: 700;
            font-size: 16px;
            color: var(--text-dark);
        }
        
        .trust-subtitle {
            font-size: 14px;
            color: var(--primary-green);
            font-weight: 600;
        }
        
        .trust-banner-right {
            display: flex;
            gap: 20px;
        }
        
        .trust-feature {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: 6px;
            font-size: 12px;
            color: var(--text-gray);
            line-height: 1.2;
        }
        
        .trust-feature i {
            font-size: 22px;
            color: #75a78c;
        }
        
        @media (max-width: 480px) {
            .trust-banner {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }
            .trust-banner-left {
                flex-direction: column;
                gap: 10px;
            }
            .trust-banner-right {
                width: 100%;
                justify-content: space-around;
            }
        }