/* Основные стили */
:root {
    --primary-color: #4fbe9f;
    --primary-dark: #09816c;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s;
}

.btn:hover {
    opacity: 0.9;
}

/* Шапка сайта */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-dark);
    text-decoration: none;
    display: inline-block;
}

.menu ul {
    display: flex;
    list-style: none;
}

.menu li {
    margin-left: 30px;
}

.menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.menu a:hover {
    color: var(--primary-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Герой секция */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1505740420928-5e560c06d30e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    color: var(--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: var(--white);
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.consultation-form h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

/* Секции */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--light-gray);
}

h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    color: var(--primary-dark);
}

/* Почему мы */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

/* Лучшие цены */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-dark);
    margin: 15px 0;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 18px;
    font-weight: normal;
}

.saving {
    color: #e74c3c;
    font-weight: bold;
}

/* Отзывы */
.review-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.review-text {
    font-style: italic;
    margin-bottom: 15px;
}

.review-author {
    font-weight: bold;
    color: var(--primary-dark);
}

/* FAQ */
.faq-item {
    margin-bottom: 15px;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    cursor: pointer;
    font-weight: bold;
    position: relative;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    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, padding 0.3s ease;
}

.faq-answer p {
    padding: 20px 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Подписка */
.subscribe-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
}

.subscribe-content {
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-form {
    margin-top: 30px;
}

.subscribe-form .form-group {
    margin-bottom: 20px;
}

.subscribe-form input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
}

/* Футер */
.footer {
    background-color: #222;
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contacts p {
    margin-bottom: 10px;
    color: #bbb;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #bbb;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    .menu ul {
        margin-top: 20px;
    }

    .menu li {
        margin: 0 10px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }

    section {
        padding: 50px 0;
    }

    h2 {
        font-size: 28px;
    }
}
.product-image {
    height: 200px;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 8px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product:hover .product-image img {
    transform: scale(1.05);
}
/* Стили для внутренних страниц */
.page-content {
    padding: 60px 0;
}

.page-content h1 {
    text-align: left;
    margin-bottom: 30px;
    color: var(--primary-dark);
}

.policy-article {
    margin-bottom: 40px;
}

.policy-article h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.policy-article p, 
.policy-article ul {
    margin-bottom: 15px;
}

.policy-article ul {
    padding-left: 20px;
}

/* Стили для категорий */
.category-page {
    padding: 60px 0;
}

.category-description {
    margin-bottom: 40px;
    font-size: 18px;
}

.category-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
/* Стили для страницы блога */
.blog-page {
    padding: 60px 0;
}

.blog-page h1 {
    margin-bottom: 20px;
}

.page-description {
    margin-bottom: 40px;
    font-size: 18px;
    color: #666;
}

.blog-articles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.blog-article {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.blog-article:hover {
    transform: translateY(-5px);
}

.article-image {
    height: 200px;
    overflow: hidden;
    border-radius: 6px;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    display: flex;
    flex-direction: column;
}

.article-content h2 {
    margin-bottom: 10px;
    font-size: 22px;
}

.article-content h2 a {
    color: var(--primary-dark);
    text-decoration: none;
}

.article-content h2 a:hover {
    color: var(--primary-color);
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #777;
    font-size: 14px;
}

.article-excerpt {
    margin-bottom: 15px;
    color: #555;
    flex-grow: 1;
}

.read-more {
    align-self: flex-start;
    color: var(--primary-dark);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
}

.read-more:hover {
    color: var(--primary-color);
}

/* Лоадер и сообщения */
.loader,
.no-articles,
.error-message {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

/* Адаптивность */
@media (max-width: 768px) {
    .blog-article {
        grid-template-columns: 1fr;
    }
    
    .article-image {
        height: 200px;
    }
}
/* Стили для страницы блога */
.blog-post {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.post-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.post-header {
    margin-bottom: 30px;
    text-align: center;
}

.post-header time {
    color: #777;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.post-header h1 {
    font-size: 32px;
    color: var(--primary-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-meta {
    color: #777;
    font-size: 14px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.post-image {
    margin: 30px 0;
    text-align: center;
}

.post-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.image-caption {
    color: #777;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.post-text h2 {
    font-size: 24px;
    color: var(--primary-dark);
    margin: 30px 0 15px;
    text-align: left;
}

.post-text h3 {
    font-size: 20px;
    color: var(--primary-dark);
    margin: 25px 0 12px;
}

.post-text p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.post-text ul, 
.post-text ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-text li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.feature-box {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

.feature-box h3 {
    margin-top: 0;
}

.price-comparison {
    margin: 30px 0;
    overflow-x: auto;
}

.price-comparison table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.price-comparison th, 
.price-comparison td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.price-comparison th {
    background-color: var(--primary-dark);
    color: var(--white);
}

.price-comparison tr:nth-child(even) {
    background-color: #f9f9f9;
}

.price-comparison tr:hover {
    background-color: #f1f1f1;
}

.note {
    font-size: 14px;
    color: #777;
    font-style: italic;
}

.conclusion {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid var(--primary-dark);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-tags span {
    font-weight: bold;
    color: var(--primary-dark);
}

.post-tags a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 5px 10px;
    background-color: #f0f9f7;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.post-tags a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.post-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.post-share span {
    font-weight: bold;
    color: var(--primary-dark);
}

.social-icon {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    color: var(--white);
    font-weight: bold;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.social-icon.vk {
    background-color: #4a76a8;
}

.social-icon.tg {
    background-color: #2aabee;
}

.social-icon.wa {
    background-color: #25d366;
}

.social-icon:hover {
    opacity: 0.9;
}

/* Стили для похожих статей */
.related-posts {
    margin: 50px 0;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 30px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.related-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-item h3 {
    padding: 20px;
    margin: 0;
    font-size: 18px;
}

.related-item a {
    color: var(--text-color);
    text-decoration: none;
}

.related-item a:hover h3 {
    color: var(--primary-color);
}

/* Стили для комментариев */
.comments {
    margin-top: 50px;
}

.comments h2 {
    text-align: left;
    margin-bottom: 30px;
    font-size: 24px;
}

.comment-list {
    margin-bottom: 40px;
}

.comment {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.comment-text {
    margin-bottom: 10px;
    line-height: 1.6;
}

.comment-date {
    color: #777;
    font-size: 14px;
}

.comment-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comment-form h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 20px;
}

.comment-form .form-group {
    margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Адаптивность */
@media (max-width: 768px) {
    .blog-post {
        padding: 30px 0;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-header h1 {
        font-size: 26px;
    }
    
    .related-list {
        grid-template-columns: 1fr;
    }
    
    .comment-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .post-tags {
        flex-direction: column;
        align-items: flex-start;
    }
}