/* article.css - ТОЛЬКО уникальные стили для страницы статьи */

/* ЗАГОЛОВОК СТАТЬИ */
.article-header {
    padding: 0 20px;
    margin-bottom: 30px;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.article-category {
    background: var(--main-red);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.article-date, .article-read-time {
    color: var(--gray);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--gray-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.article-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: var(--gray-light);
    border-radius: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--main-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.author-info {
    text-align: left;
}

.author-name {
    font-weight: 700;
    margin-bottom: 3px;
    font-size: 16px;
}

.author-position {
    color: var(--gray);
    font-size: 14px;
}

/* ГЛАВНОЕ ИЗОБРАЖЕНИЕ */
.article-hero-image {
    margin: 0 20px 40px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.article-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    text-align: center;
}

/* КОНТЕЙНЕР СТАТЬИ */
.article-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding: 0 20px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .article-container {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        order: 2;
    }
}

/* БОКОВАЯ ПАНЕЛЬ */
.article-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar-content {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    border: 2px solid var(--light-red);
}

.sidebar-content h3 {
    font-size: 18px;
    color: var(--main-red);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-red);
}

.sidebar-content h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--gray-dark);
}

/* НАВИГАЦИЯ ПО СТАТЬЕ */
.article-toc ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

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

.article-toc a {
    color: var(--gray-dark);
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.article-toc a:hover {
    background: var(--light-red);
    color: var(--main-red);
    border-left-color: var(--main-red);
}

/* КНОПКИ ПОДЕЛИТЬСЯ */
.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.share-btn {
    background: var(--gray-light);
    border: none;
    border-radius: 8px;
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gray-dark);
    cursor: pointer;
    transition: all 0.3s;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.share-btn[data-platform="vk"]:hover { background: #4C75A3; color: white; }
.share-btn[data-platform="telegram"]:hover { background: #0088cc; color: white; }
.share-btn[data-platform="whatsapp"]:hover { background: #25D366; color: white; }
.share-btn[data-platform="twitter"]:hover { background: #1DA1F2; color: white; }

/* ТЕГИ СТАТЬИ */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: var(--light-red);
    color: var(--main-red);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--main-red);
    color: white;
    cursor: pointer;
}

/* ОСНОВНОЙ КОНТЕНТ СТАТЬИ */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.article-section h2 {
    font-size: 28px;
    color: var(--gray-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-red);
}

.article-section h3 {
    font-size: 22px;
    color: var(--gray-dark);
    margin: 25px 0 15px;
}

.article-section p {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 16px;
    color: var(--gray-dark);
}

.article-section p:last-child {
    margin-bottom: 0;
}

/* ИНФО-БОКС */
.info-box {
    background: var(--light-red);
    border-left: 4px solid var(--main-red);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    display: flex;
    gap: 15px;
}

.info-box-icon {
    color: var(--main-red);
    font-size: 24px;
    flex-shrink: 0;
}

.info-box-content {
    flex: 1;
}

.info-box-content strong {
    color: var(--main-red);
}

/* СПИСОК ОСОБЕННОСТЕЙ */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border: 2px solid var(--light-red);
    border-radius: 10px;
    margin-bottom: 15px;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.feature-list li i {
    color: var(--main-red);
    font-size: 20px;
    margin-top: 3px;
    flex-shrink: 0;
}

.feature-list li strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.feature-list li p {
    margin: 0;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.5;
}

/* ИЗОБРАЖЕНИЕ В СТАТЬЕ */
.article-image {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.article-image .image-caption {
    position: static;
    background: var(--gray-light);
    color: var(--gray);
    padding: 10px 15px;
    font-size: 14px;
    text-align: center;
}

/* ТАБЛИЦА СРАВНЕНИЯ */
.comparison-table {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 10px;
    border: 2px solid var(--light-red);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th {
    background: var(--main-red);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.comparison-table th:last-child {
    border-right: none;
}

.comparison-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--light-red);
    border-right: 1px solid var(--light-red);
}

.comparison-table td:last-child {
    border-right: none;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:nth-child(even) {
    background: var(--gray-light);
}

/* ЦИТАТА */
.quote {
    background: var(--light-red);
    border-left: 4px solid var(--main-red);
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
    font-style: italic;
}

.quote p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-dark);
    margin-bottom: 15px;
}

.quote footer {
    text-align: right;
    color: var(--gray);
    font-style: normal;
    font-weight: 600;
}

/* CTA БЛОК */
.cta-box {
    background: linear-gradient(135deg, var(--main-red), var(--dark-red));
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
    text-align: center;
}

.cta-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: white;
}

.cta-box p {
    margin-bottom: 25px;
    color: rgba(255,255,255,0.9);
    font-size: 16px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary, .btn-cta-secondary {
    padding: 14px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
}

.btn-cta-primary {
    background: white;
    color: var(--main-red);
}

.btn-cta-primary:hover {
    background: var(--gray-light);
    transform: translateY(-2px);
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* ФУТЕР СТАТЬИ */
.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--light-red);
}

.article-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-red);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 14px;
}

.stat-item i {
    color: var(--main-red);
}

.article-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    padding: 12px 25px;
    border-radius: 8px;
    border: 2px solid var(--light-red);
    background: white;
    color: var(--gray-dark);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.like-btn:hover {
    border-color: var(--main-red);
    color: var(--main-red);
}

.bookmark-btn:hover {
    border-color: #FFC107;
    color: #FFC107;
}

.action-btn .count {
    background: var(--light-red);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    margin-left: 5px;
}

/* ПОХОЖИЕ СТАТЬИ */
.related-articles {
    padding: 0 20px;
    margin-bottom: 60px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.article-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.2);
}

.article-card-image {
    height: 180px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 20px;
}

.article-card-category {
    display: inline-block;
    background: var(--light-red);
    color: var(--main-red);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.article-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--gray-dark);
}

.article-card-excerpt {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--gray);
}

/* КОММЕНТАРИИ */
.comments-section {
    padding: 0 20px;
    margin-bottom: 60px;
}

.comments-count {
    color: var(--main-red);
    font-size: 16px;
    margin-left: 5px;
}

.comments-container {
    margin-bottom: 40px;
}

.comment {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid var(--light-red);
}

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

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background: var(--light-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-red);
    font-weight: 600;
}

.comment-info h4 {
    font-size: 16px;
    margin-bottom: 3px;
}

.comment-date {
    color: var(--gray);
    font-size: 12px;
}

.comment-rating {
    color: #FFC107;
}

.comment-content {
    line-height: 1.6;
    color: var(--gray-dark);
}

/* ФОРМА КОММЕНТАРИЯ */
.add-comment {
    background: var(--gray-light);
    padding: 30px;
    border-radius: 12px;
}

.add-comment h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--gray-dark);
}

.add-comment .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.add-comment input,
.add-comment textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.add-comment input:focus,
.add-comment textarea:focus {
    border-color: var(--main-red);
    outline: none;
}

.btn-submit-comment {
    padding: 14px 30px;
    background: var(--main-red);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-submit-comment:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
}

/* МОДАЛЬНОЕ ОКНО КОНСУЛЬТАЦИИ */
.consultation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2003;
    padding: 20px;
}

.consultation-modal {
    background: var(--white);
    border-radius: 16px;
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.consultation-modal-header {
    background: var(--main-red);
    color: white;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    text-align: center;
    position: relative;
}

.consultation-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.consultation-modal-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.consultation-form {
    padding: 25px;
}

.consultation-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--main-red), var(--dark-red));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.consultation-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
}

/* МЕДИА ЗАПРОСЫ для страницы статьи */
@media (max-width: 768px) {
    .article-title {
        font-size: 28px;
    }
    
    .article-subtitle {
        font-size: 16px;
    }
    
    .article-hero-image img {
        height: 250px;
    }
    
    .article-container {
        padding: 0 15px;
    }
    
    .add-comment .form-row {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 24px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-info {
        text-align: center;
    }
    
    .article-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

.main-content {
    padding-top:90px !important;
}