/* Общие стили */
:root {
    --primary: #4a6fa5;
    --accent: #ff6b6b;
    --light: #f9f9ff;
    --dark: #2c3e50;
    --success: #4caf50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fafcff;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Шапка */
.site-header {
    background: linear-gradient(135deg, var(--primary), #6b8cbc);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.main-nav a:hover {
    opacity: 0.8;
}

/* Контент */
.main-content {
    padding: 2rem 0;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #e0f7fa, #f3e5f5);
    padding: 2rem;
    border-radius: 16px;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: #e55a5a;
    transform: translateY(-2px);
}

.content-wrapper {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.content-area {
    flex: 3;
    min-width: 300px;
}

.sidebar {
    flex: 1;
    min-width: 250px;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    align-self: flex-start;
    position: sticky;
    top: 100px;
}

.widget {
    margin-bottom: 1.5rem;
}

.widget h3 {
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.widget ul {
    list-style: none;
    padding-left: 0;
}

.widget li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

/* Шаги */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
}

.icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

/* Таблица */
.nutrition-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.nutrition-table th,
.nutrition-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.nutrition-table th {
    background-color: var(--primary);
    color: white;
}

/* Статьи */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.article-card {
    background: white;
    padding: 1.2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Подвал */
.site-footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.site-footer p {
    margin: 0.4rem 0;
    font-size: 0.95rem;
}

/* Адаптив */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        position: static;
    }
}.read-more {
    display: inline-block;
    margin-top: 0.6rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--accent);
}
/* Стили для статьи */
.blog-post {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.post-meta {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.post-content h2 {
    margin: 1.8rem 0 1rem;
    color: var(--dark);
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.post-content li {
    margin-bottom: 0.6rem;
}

/* Сетка продуктов */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.product-item {
    background: #f8fbff;
    padding: 1.2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eef4ff;
}

.product-item .emoji {
    font-size: 2rem;
    margin-bottom: 0.6rem;
}

/* Таблица сравнения */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #e0e7ff;
}

.comparison-table th {
    background-color: #eef4ff;
    color: var(--primary);
}

blockquote {
    background: #f0f7ff;
    border-left: 4px solid var(--accent);
    padding: 1.2rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--dark);
}.read-more {
    display: inline-block;
    margin-top: 0.8rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--accent);
}
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    background-color: var(--primary);
    color: white;
    font-size: 0.95rem;
}

.btn:hover {
    background-color: #3a5a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.btn-primary {
    background-color: var(--accent);
    color: white;
}

.btn-primary:hover {
    background-color: green;
}
/* Модальное окно теста */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 25px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover {
    color: #000;
}

.question {
    margin: 20px 0;
}

.question p {
    margin-bottom: 10px;
    font-weight: 600;
}

.question label {
    display: block;
    margin: 6px 0;
    cursor: pointer;
}

.question input[type="radio"] {
    margin-right: 8px;
}
/* Модальное окно теста */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 25px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover {
    color: #000;
}

.question {
    margin: 20px 0;
}

.question p {
    margin-bottom: 10px;
    font-weight: 600;
}

.question label {
    display: block;
    margin: 6px 0;
    cursor: pointer;
}

.question input[type="radio"] {
    margin-right: 8px;
}