/* Стили для статьи */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin: 30px 0;
}

/* Основная статья */
.article-main {
    background: #fff;
}

/* Заголовок статьи */
.article-header {
    margin-bottom: 40px;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.article-category {
    color: #cc6666;
    font-weight: 600;
}

.article-title {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
    font-family: 'Source Serif Pro', serif;
}

.article-excerpt {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 30px;
    border-left: 3px solid #cc6666;
    padding-left: 20px;
}

/* Автор */
.article-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.author-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.author-bio {
    font-size: 14px;
    color: #666;
}

/* Главное изображение */
.article-featured-image {
    margin: 30px 0;
}

.article-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.article-featured-image figcaption {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* Социальные кнопки */
.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 30px 0;
}

.article-share.bottom {
    border-top: none;
    margin-top: 50px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.share-btn.vk {
    background: #4C75A3;
    color: white;
}

.share-btn.telegram {
    background: #0088cc;
    color: white;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn:hover {
    opacity: 0.9;
}

/* Оглавление */
.article-toc {
    background: #f8f5f2;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid #cc6666;
}

.toc-title {
    margin-bottom: 15px;
    color: #1a1a1a;
    font-size: 18px;
}

.toc-list {
    list-style: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    color: #444;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s;
    position: relative;
    padding-left: 20px;
}

.toc-list a:before {
    content: '→';
    position: absolute;
    left: 0;
    color: #cc6666;
}

.toc-list a:hover,
.toc-list a.active {
    color: #cc6666;
}

/* Контент статьи */
.article-content {
    font-size: 17px;
    line-height: 1.7;
    color: #333;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 28px;
    margin: 50px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    color: #1a1a1a;
    font-weight: 700;
    font-family: 'Source Serif Pro', serif;
}

.article-content h3 {
    font-size: 22px;
    margin: 35px 0 15px;
    color: #1a1a1a;
    font-weight: 600;
}

.article-content h4 {
    font-size: 18px;
    margin: 25px 0 10px;
    color: #1a1a1a;
    font-weight: 600;
}

.article-section {
    margin-bottom: 50px;
}

/* Карточки и гриды */
.highlight-box {
    background: linear-gradient(135deg, #fff8f8 0%, #fff5f0 100%);
    border-left: 4px solid #cc6666;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    display: flex;
    gap: 15px;
}

.highlight-icon {
    font-size: 24px;
}

.highlight-content {
    flex: 1;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.tech-card {
    background: #f8f5f2;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e8d5c4;
}

.tech-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.tool-card {
    background: #fff;
    border: 1px solid #e8d5c4;
    border-radius: 8px;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(151, 117, 99, 0.15);
}

.tool-card.highlight {
    border: 2px solid #cc6666;
    background: linear-gradient(135deg, #fff8f8 0%, #fff5f0 100%);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.tool-badge {
    background: #cc6666;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.tool-badge.best {
    background: linear-gradient(135deg, #b69e40, #ffd700);
}

.tool-title {
    font-size: 20px;
    color: #1a1a1a;
    margin: 0;
}

.tool-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.tool-features li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.tool-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #cc6666;
}

.tool-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.tool-price {
    font-weight: 600;
    color: #2e7d32;
}

.tool-link {
    color: #cc6666;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.tool-link:hover {
    color: #b35555;
}

/* Таблица */
.table-container {
    overflow-x: auto;
    margin: 25px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.comparison-table th {
    background: linear-gradient(135deg, #cc6666, #b35555);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.comparison-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.comparison-table tr:nth-child(even) {
    background: #f8f5f2;
}

.difficulty {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.difficulty.easy {
    background: #e8f5e8;
    color: #2e7d32;
}

.difficulty.medium {
    background: #fff8e1;
    color: #ff8f00;
}

.info-box {
    background: #f0f7ff;
    border-left: 4px solid #007bff;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.info-box ol {
    margin-left: 20px;
}

.info-box li {
    margin-bottom: 10px;
}

/* Пошаговая инструкция */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.step-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e8d5c4;
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #cc6666;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.step-example {
    background: #f8f5f2;
    padding: 15px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 15px;
    border-left: 3px solid #b69e40;
}

.step-tip {
    background: #e8f5e8;
    padding: 12px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 14px;
    border-left: 3px solid #2e7d32;
}

/* Советы */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.tip-card {
    background: #f8f5f2;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: border-color 0.3s;
}

.tip-card:hover {
    border-color: #cc6666;
}

/* Таймлайн */
.timeline {
    margin: 30px 0;
    position: relative;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #cc6666, #caa885);
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #cc6666;
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(204, 102, 102, 0.2);
}

.timeline-date {
    font-weight: 600;
    color: #cc6666;
    margin-bottom: 5px;
}

.prediction-box {
    background: linear-gradient(135deg, #f8f5f2 0%, #f0e6d8 100%);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 4px solid #b69e40;
}

.expert-signature {
    text-align: right;
    font-style: italic;
    color: #666;
    margin-top: 15px;
    font-size: 14px;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.faq-item {
    background: #f8f5f2;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #cc6666;
}

/* Заключение */
.article-conclusion {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f7ff 100%);
    padding: 30px;
    border-radius: 8px;
    margin: 50px 0 30px;
    border-left: 4px solid #007bff;
}

/* Теги */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tag {
    background: #f8f5f2;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s;
}

.tag:hover {
    background: #cc6666;
    color: white;
}

/* Навигация по статьям */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin: 50px 0;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.nav-prev,
.nav-next {
    flex: 1;
    text-decoration: none;
    color: #333;
    padding: 15px;
    border-radius: 8px;
    transition: background 0.3s;
}

.nav-prev:hover,
.nav-next:hover {
    background: #f8f5f2;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.nav-title {
    font-weight: 600;
    color: #1a1a1a;
}

.nav-next {
    text-align: right;
}

/* Сайдбар */
.article-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e8d5c4;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #1a1a1a;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* Популярные статьи */
.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popular-article {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: #333;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s;
}

.popular-article:hover {
    background: #f8f5f2;
}

.popular-image img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.popular-content h4 {
    font-size: 15px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-meta {
    font-size: 12px;
    color: #666;
}

/* Форма подписки */
.subscribe-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.subscribe-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e8d5c4;
    border-radius: 4px;
    font-size: 14px;
}

.subscribe-button {
    background: linear-gradient(135deg, #cc6666, #b35555);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.3s;
}

.subscribe-button:hover {
    opacity: 0.9;
}

/* Категории */
.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: #333;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.3s;
}

.category-list a:hover {
    color: #cc6666;
}

.category-list span {
    background: #f8f5f2;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.note-text {
    background: #fff8e1;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 3px solid #ffc107;
}