/* --- 1. НАСТРОЙКИ СТИЛЕЙ --- */
:root {
    --primary-color: #2a5caa; /* Основной синий */
    --accent-color: #d4af37;  /* Золотой */
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --text-dark: #333333;
    --text-gray: #666666;
    --container-width: 1140px;
}

/* --- 2. БАЗОВАЯ ВЕРСТКА --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover { background-color: #1e4585; }

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover { background-color: var(--primary-color); color: #fff; }

/* --- 3. ШАПКА (HEADER) --- */
header {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.logo span { color: var(--primary-color); }

.nav-menu a {
    margin-left: 20px;
    color: var(--text-dark);
    font-size: 15px;
}
.nav-menu a:hover { color: var(--primary-color); }

/* --- 4. ГЛАВНЫЙ БЛОК (HERO) --- */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, #f0f4f8 100%);
}
.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--text-dark);
}
.hero p {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 600px;
    height: 350px;
    background: #e9ecef;
    margin: 40px auto 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- 5. ПРЕИМУЩЕСТВА --- */
.features { padding: 80px 0; background: #fff; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 { font-size: 32px; margin-bottom: 10px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: left;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: 0.3s;
}
.feature-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}
.feature-icon {
    font-size: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.feature-item h3 { margin-bottom: 10px; font-size: 18px; }
.feature-item p { font-size: 14px; color: var(--text-gray); }

/* --- 6. ШАГИ --- */
.steps { padding: 80px 0; background: var(--bg-light); }

.steps-flex {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 40px;
}
.step-card {
    flex: 1;
    text-align: center;
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 15px;
}

/* --- 7. ДЕМО --- */
.demo-preview { padding: 80px 0; }
.demo-wrap {
    display: flex;
    align-items: center;
    gap: 50px;
}
.demo-text { flex: 1; }
.demo-text ul { margin: 20px 0; }
.demo-text li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.demo-text li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.demo-img {
    flex: 1;
    height: 400px;
    background: #e9ecef;
    border-radius: 8px;
}

/* --- 8. ПОДВАЛ --- */
footer {
    background: #222;
    color: #fff;
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 { margin-bottom: 20px; color: #fff; }
.footer-col a { color: #aaa; display: block; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #666;
    font-size: 13px;
}

/* --- АДАПТИВ --- */
@media (max-width: 768px) {
    .header-wrap { flex-direction: column; gap: 15px; }
    .hero h1 { font-size: 30px; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-flex { flex-direction: column; }
    .demo-wrap { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}
/* --- СТИЛИ ДЛЯ СТАТЬИ (ARTICLE) --- */
.article-page {
    padding: 60px 0 100px;
    background: #fff;
}

.article-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.article-date {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-light);
    color: var(--text-gray);
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 36px;
    line-height: 1.3;
    color: var(--text-dark);
}

.article-main-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px; /* Чуть крупнее для удобного чтения */
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 25px;
    color: #444;
}

.article-body h2 {
    font-size: 28px;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--text-dark);
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
}

.article-body ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.article-body li {
    margin-bottom: 10px;
    list-style-type: disc; /* Возвращаем маркеры для статьи */
    color: #444;
}

/* Адаптив для статьи */
@media (max-width: 768px) {
    .article-title { font-size: 28px; }
    .article-body { font-size: 16px; }
}
/* =========================================
   СТИЛИ ДЛЯ СТРАНИЦЫ НОВОСТИ (ARTICLE)
   ========================================= */

.article-section {
    padding: 60px 0 100px;
    background-color: #fff;
}

/* Ограничиваем ширину текста, чтобы глаза не уставали бегать по экрану */
.article-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Заголовок новости */
.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-date {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--bg-light);
    color: var(--text-gray);
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 500;
}

.article-title {
    font-size: 36px;
    line-height: 1.3;
    color: var(--text-dark);
}

/* Главное изображение */
.article-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Текст статьи */
.article-content {
    font-size: 18px; /* Чуть крупнее для чтения */
    line-height: 1.7;
    color: #444;
}

.article-content p {
    margin-bottom: 25px;
}

/* Оформление подзаголовков внутри статьи */
.article-content h2 {
    font-size: 26px;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--text-dark);
    padding-left: 20px;
    border-left: 4px solid var(--accent-color); /* Золотая полоска слева */
}

/* Списки внутри статьи */
.article-content ul {
    margin-bottom: 30px;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 12px;
    list-style-type: disc;
    padding-left: 5px;
}
.article-content li::marker {
    color: var(--primary-color); /* Синие маркеры списка */
}

/* Цитаты (если понадобятся) */
.article-content blockquote {
    background: var(--bg-light);
    padding: 20px 30px;
    border-radius: 8px;
    font-style: italic;
    margin: 30px 0;
    border-left: 4px solid var(--primary-color);
}

/* Кнопка "Назад" внизу */
.article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .article-title { font-size: 26px; }
    .article-content { font-size: 16px; }
    .article-header { text-align: left; }
}