:root {
    --primary: #8EC5A1;
    --secondary: #FFB6C1;
    --accent: #FFD1DC;
    --light: #FFF8F8;
    --dark: #5A8C7A;
    --text: #5A5A5A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    background-image: radial-gradient(#FFD1DC 1px, transparent 1px);
    background-size: 20px 20px;
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/nunito/v25/XRXI3I6Li01BKofiOc5wtlZ2di8HDDshdTk3j77e.woff2) format('woff2');
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Шапка */
header {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 0.5px;
}

.logo-text span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav li {
    position: relative;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: all 0.3s;
    padding: 8px 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
}

.telegram-link {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white !important;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.4);
    transition: all 0.3s;
}

.telegram-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 182, 193, 0.6);
}

.telegram-link:hover:after {
    display: none;
}

.cart-icon {
    position: relative;
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Герой-секция */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%238EC5A1" fill-opacity="0.1" d="M28.1,36.9C15.3,29.5,15.3,14.8,28.1,7.4c12.8-7.4,28.1,0.1,40.9,7.4c12.8,7.4,28.1,14.8,40.9,7.4 c12.8-7.4,12.8-22.1,0-29.5"/></svg>');
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path fill="white" d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25"></path><path fill="white" d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5"></path><path fill="white" d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z"></path></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--dark);
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 span {
    color: var(--secondary);
    position: relative;
}

.hero h1 span:after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(142, 197, 161, 0.3);
    border-radius: 6px;
    z-index: -1;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.6s;
}

.btn:hover:before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #ff8da1);
    color: white;
}

.btn-catalog {
    background: white;
    color: var(--dark);
    border: 2px solid var(--primary);
}

.btn-catalog:hover {
    background: var(--light);
}

.decorative-leaves {
    position: absolute;
    width: 120px;
    height: auto;
    opacity: 0.3;
    z-index: 0;
}

.leaf-1 {
    top: 20px;
    left: 5%;
    transform: rotate(-20deg);
}

.leaf-2 {
    bottom: 40px;
    right: 5%;
    transform: rotate(25deg);
}

/* Секции */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    color: var(--dark);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title:after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: var(--secondary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-title i {
    color: var(--secondary);
    margin-right: 12px;
}

/* Обо мне */
.about {
    background-color: white;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 0 20px;
    overflow: hidden;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-img {
    flex: 1;
    min-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: rotate(-3deg);
    transition: all 0.5s;
}

.about-img:hover {
    transform: rotate(0deg);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-text p {
    margin-bottom: 20px;
    position: relative;
    padding-left: 25px;
}

.about-text p:before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
    font-size: 1.5rem;
}

/* Продукция */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.product-card {
    background-color: #fafafa;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.4s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 220px;
    background: linear-gradient(135deg, #ffffff, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-img img {
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
}

.product-info {
    padding: 25px;
    position: relative;
}

.premium-badge {
    background: linear-gradient(to right, #FFD1DC, #FFB6C1);
    color: #5a5a5a;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: bold;
    position: absolute;
    top: -15px;
    right: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.product-card h3 {
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.product-card .product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
    margin: 10px 0;
}

.product-card .product-volume {
    background: rgba(142, 197, 161, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.product-card p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.product-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text);
}

.product-feature i {
    color: var(--primary);
    font-size: 1.1rem;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.add-to-cart {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.add-to-cart:hover {
    background: var(--dark);
    transform: translateY(-3px);
}

.more-details {
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--primary);
    border-radius: 30px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.more-details:hover {
    background: rgba(142, 197, 161, 0.1);
}

.catalog-link {
    text-align: center;
    margin-top: 50px;
}

/* Консультации */
.consultation {
    background: linear-gradient(135deg, #FFF0F5, #FFFAFA);
    border-radius: 30px;
    margin: 0 20px;
    position: relative;
    overflow: hidden;
}

.consultation:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.consultation-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 50px 0;
}

.benefit-card {
    background: white;
    padding: 30px 25px;
    border-radius: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.benefit-card h3 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Бизнес */
.business-cta {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    padding: 80px 0;
    text-align: center;
    border-radius: 30px;
    margin: 0 20px;
    position: relative;
    overflow: hidden;
}

.business-cta:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="white" fill-opacity="0.1" d="M0,0 L100,0 L100,100 Q50,80 0,100 Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.business-cta h2 {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.business-cta p {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

/* Подвал */
footer {
    background: linear-gradient(135deg, var(--dark), #3c6b58);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}



.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    font-size: 1.4rem;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
}

.footer-section p,
.footer-section li {
    margin-bottom: 15px;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

/* Корзина - ИСПРАВЛЕНО! */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    /* Увеличили z-index */
    justify-content: flex-start;
}

.cart-modal.open {
    display: flex;
    /* Добавлено для отображения */
}

.cart-content {
    width: 100%;
    max-width: 450px;
    background: white;
    height: 100%;
    padding: 30px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    position: relative;
}

.cart-modal.open .cart-content {
    transform: translateX(0);
}

.close-cart {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
}

.cart-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    background: #f8f8f8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.cart-item-img img {
    max-height: 70px;
    max-width: 70px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: bold;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 20px 0;
    border-top: 2px solid #eee;
    margin-top: 20px;
}

.checkout-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 15px;
    width: 100%;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.checkout-btn:hover {
    background: var(--dark);
}

.empty-cart {
    text-align: center;
    padding: 40px 0;
    color: #888;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    .about-content {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 80px 0 100px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    section {
        padding: 70px 0;
    }

    .cart-content {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 10px;
    }

    .add-to-cart,
    .more-details {
        width: 100%;
        justify-content: center;
    }
}

.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.category-btn {
    background: white;
    border: 2px solid var(--primary);
    border-radius: 30px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    white-space: nowrap;
}

.category-btn:hover {
    background: rgba(142, 197, 161, 0.2);
}

.category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.product-card.hidden {
    display: none;
}

.active-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    min-height: 40px;
}

.active-filter {
    background: var(--secondary);
    color: white;
    border-radius: 20px;
    padding: 6px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.active-filter i {
    cursor: pointer;
}

.no-products {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
    color: var(--text);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .categories {
        gap: 8px;
    }

    .category-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

/* Добавьте в CSS */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    padding: 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.close-mobile-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-menu nav ul {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-top: 50px;
    }
}
/* Мобильная шапка (до 768px) */
@media (max-width: 768px) {
    header {
        position: sticky;
        top: 0;
        padding: 5px 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .header-container {
        min-height: 50px;
        padding: 0 15px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    
    
    /* Мобильное меню */
    .mobile-menu nav ul {
        gap: 10px;
        margin-top: 20px;
    }
    
    .mobile-menu nav a {
        padding: 6px 0;
        font-size: 0.9rem;
    }
    
    .mobile-menu .telegram-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .mobile-menu .cart-icon {
        font-size: 1rem;
    }
    
    .mobile-menu .cart-count {
        width: 16px;
        height: 16px;
        font-size: 0.7rem;
        top: -6px;
        right: -6px;
    }
}