/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #45a049;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Шапка */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.logo span {
    color: #4CAF50;
}

.menu ul {
    display: flex;
}

.menu li {
    margin-left: 20px;
}

.menu a {
    font-size: 16px;
    transition: color 0.3s;
}

.menu a:hover {
    color: #4CAF50;
}

/* Герой секция */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/vitamins.jpg') no-repeat center center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
}

.consultation-form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
    color: #333;
    text-align: left;
}

.consultation-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #4CAF50;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

/* Почему мы */
.why-us {
    padding: 80px 0;
    background-color: white;
    text-align: center;
}

.why-us h2 {
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.feature {
    flex-basis: calc(25% - 30px);
    margin-bottom: 30px;
    padding: 20px;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Товары */
.products {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.products h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 18px;
    padding: 15px;
    margin: 0;
}

.price {
    font-size: 20px;
    font-weight: bold;
    padding: 0 15px 15px;
    color: #4CAF50;
}

.old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-card .btn-small {
    margin: 0 15px 15px;
    width: calc(100% - 30px);
}

/* Отзывы */
.reviews {
    padding: 80px 0;
    background-color: white;
}

.reviews h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

.review-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.review {
    flex-basis: calc(33.333% - 20px);
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.review-text {
    font-style: italic;
    margin-bottom: 15px;
}

.review-author {
    font-weight: bold;
    color: #4CAF50;
}

/* FAQ */
.faq {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.faq h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    background-color: white;
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
}

.faq-question.active:after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
}

.faq-answer p {
    padding: 15px 0;
}

/* Форма подписки */
.newsletter {
    padding: 80px 0;
    background-color: #4CAF50;
    color: white;
    text-align: center;
}

.newsletter h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.newsletter p {
    font-size: 18px;
    margin-bottom: 40px;
}

.subscribe-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.subscribe-form .form-group {
    flex-basis: 48%;
    margin-bottom: 15px;
}

.subscribe-form input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
}

/* Футер */
.footer {
    background-color: #333;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo {
    flex-basis: 30%;
}

.footer-logo .logo {
    font-size: 28px;
    margin-bottom: 15px;
    display: block;
}

.footer-links {
    flex-basis: 30%;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4CAF50;
}

.footer-contacts {
    flex-basis: 30%;
}

.footer-contacts p {
    margin-bottom: 10px;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Адаптивность */
@media (max-width: 992px) {
    .feature {
        flex-basis: calc(50% - 30px);
    }
    
    .review {
        flex-basis: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    
    .menu {
        margin-top: 20px;
    }
    
    .menu li {
        margin: 0 10px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .feature {
        flex-basis: 100%;
    }
    
    .review {
        flex-basis: 100%;
    }
    
    .footer-content > div {
        flex-basis: 100%;
        margin-bottom: 30px;
    }
    
    .subscribe-form .form-group {
        flex-basis: 100%;
    }
}
/* Стили для страниц "О нас", "Контакты", политик */
.page-content {
    padding: 60px 0;
}

.about-section, .policy-section {
    margin-bottom: 40px;
}

.about-section h2, .policy-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #4CAF50;
}

.about-list, .policy-list {
    margin: 15px 0;
    padding-left: 20px;
}

.about-list li, .policy-list li {
    margin-bottom: 10px;
    position: relative;
}

.principles {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
}

.principle {
    flex-basis: calc(50% - 15px);
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.principle h3 {
    color: #4CAF50;
    margin-bottom: 10px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.contact-info h2 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: #4CAF50;
}

.contact-info h2:first-child {
    margin-top: 0;
}

.map-section {
    margin-top: 50px;
}

.map-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .principles {
        flex-direction: column;
    }
    
    .principle {
        flex-basis: 100%;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}
/* Стили для страницы блога */
.blog-page {
    padding: 60px 0;
}

.blog-page .subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    text-align: center;
}

.blog-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
    gap: 10px;
}

.blog-categories .category {
    padding: 8px 16px;
    background-color: #f5f5f5;
    border-radius: 20px;
    color: #333;
    transition: all 0.3s;
}

.blog-categories .category:hover {
    background-color: #e0e0e0;
}

.blog-categories .category.active {
    background-color: #4CAF50;
    color: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    display: block;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.article-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: #4CAF50;
}

.article-excerpt {
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.read-more:hover {
    color: #45a049;
}

.pagination {
    text-align: center;
    margin-top: 30px;
}

.loader, .error, .no-articles {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
    font-size: 18px;
}

.error {
    color: #d9534f;
}

/* Адаптивность */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .blog-categories .category {
        white-space: nowrap;
    }
}
/* Стили для страницы статьи */
.article-page {
    padding: 40px 0 60px;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-header h1 {
    font-size: 36px;
    margin: 20px 0 15px;
    line-height: 1.3;
}

.breadcrumbs {
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #4CAF50;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-main-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.article-intro {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 4px solid #4CAF50;
    border-radius: 0 8px 8px 0;
}

.article-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: #333;
}

.article-content h3 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: #4CAF50;
}

.article-content p, .article-content ul, .article-content ol {
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-content ul, .article-content ol {
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-note {
    padding: 15px;
    background-color: #e8f5e9;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 4px solid #4CAF50;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.article-table th, .article-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.article-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.meal-plan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.meal {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid #4CAF50;
}

.meal h4 {
    margin-top: 0;
    color: #4CAF50;
}

.myth-reality {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.myth {
    padding: 15px;
    background-color: #ffebee;
    border-radius: 8px;
}

.reality {
    padding: 15px;
    background-color: #e8f5e9;
    border-radius: 8px;
}

.myth h4, .reality h4 {
    margin-top: 0;
}

.article-conclusion {
    padding: 25px;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin: 40px 0;
}

.article-conclusion h3 {
    margin-top: 0;
}

.article-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.outline-btn {
    background-color: transparent;
    border: 2px solid #4CAF50;
    color: #4CAF50;
}

.outline-btn:hover {
    background-color: #f5f5f5;
}

/* Адаптивность */
@media (max-width: 768px) {
    .article-header h1 {
        font-size: 28px;
    }
    
    .myth-reality {
        grid-template-columns: 1fr;
    }
    
    .article-actions {
        flex-direction: column;
    }
    
    .article-content h2 {
        font-size: 24px;
    }
    
    .article-content h3 {
        font-size: 20px;
    }
}