﻿/* === ARTICLE PAGE STYLES === */

/* Page Background */
body.article-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* Article Container */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Back Button */
.article-back {
    padding: 120px 0 20px;
}

/* White Content Panel */
.article-content-panel {
    background: #ffffff;
    border-radius: 24px;
    padding: 60px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #082E74;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 12px 0;
    background: transparent;
}

.back-button:hover {
    color: #005b58;
    transform: translateX(-4px);
}

.back-button .back-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.back-button:hover .back-icon {
    transform: translateX(-4px);
}

/* Article Header */
.article-header {
    padding: 0 0 40px;
    text-align: center;
}

/* Article Image */
.article-image {
    width: 100%;
    max-width: 100%;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
}

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

.article-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    line-height: 1.2;
}

.article-description {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #2d2d2d;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Article Meta */
.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid #082E74;
    border-radius: 100px;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #082E74;
}

.meta-category {
    background: transparent;
    color: #082E74;
    border-color: #082E74;
}

.meta-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    color: #082E74;
}

/* Divider */
.article-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(8, 46, 116, 0.3), transparent);
    margin: 40px 0;
    border: none;
}

/* Article Content */
.article-text {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #2d2d2d;
}

.article-text h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 40px 0 20px;
    line-height: 1.3;
}

.article-text h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 30px 0 15px;
    line-height: 1.3;
}

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

.article-text ul, .article-text ol {
    margin: 20px 0;
    padding-left: 30px;
}

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

.article-text blockquote {
    background: rgba(8, 46, 116, 0.05);
    border: 1px solid #00958e;
    padding: 32px 40px;
    margin: 40px 0;
    border-radius: 12px;
    font-style: italic;
}

.article-text strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Стили для таблиц */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #082E74;
}

.article-content table thead {
    background: rgba(8, 46, 116, 0.05);
}

.article-content table thead th {
    color: #333333;
    font-weight: 600;
    font-size: 16px;
    padding: 20px 24px;
    text-align: left;
    border-right: 1px solid #e0e0e0;
    position: relative;
}

.article-content table thead th:last-child {
    border-right: none;
}

.article-content table thead th:first-child {
    border-radius: 12px 0 0 0;
}

.article-content table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.article-content table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.article-content table tbody tr:hover {
    background-color: #fafafa;
}

.article-content table tbody tr:last-child {
    border-bottom: none;
}

.article-content table tbody td {
    padding: 18px 24px;
    font-size: 15px;
    line-height: 1.5;
    color: #333333;
    border-right: 1px solid #e0e0e0;
    vertical-align: top;
}

.article-content table tbody td:last-child {
    border-right: none;
}

.article-content table tbody td:first-child {
    font-weight: 500;
    color: #1E1E1E;
}

.article-content table tbody td:last-child {
    color: #FF6B00;
    font-weight: 500;
    border-right: none;
}

/* Share Section */
.article-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.share-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #4a4a4a;
    margin: 0;
}

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

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    background: #e1e1e1;
    transition: all 0.3s ease;
    border: none;
}

.share-button:hover {
    background: #082E74;
    transform: translateY(-2px);
}

.share-button svg {
    width: 20px;
    height: 20px;
}

/* Contact Form */
.article-contact {
    padding: 80px 0;
}

.contact-form-panel {
    background: #ffffff;
    border-radius: 24px;
    padding: 60px;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

       .contact-form h3 {
           font-family: 'Unbounded', sans-serif;
           font-size: 24px;
           font-weight: 600;
           color: #1a1a1a;
           text-align: center;
           margin-bottom: 15px;
       }

       .contact-form-description {
           font-family: 'Inter', sans-serif;
           font-size: 16px;
           color: #666666;
           text-align: center;
           line-height: 1.5;
           margin-bottom: 30px;
           max-width: 600px;
           margin-left: auto;
           margin-right: auto;
       }

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(0, 30, 126, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #2d2d2d;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #192B63;
    background: rgba(255, 255, 255, 0.8);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #192B63, #005b58);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

       .contact-submit:hover {
           background: linear-gradient(135deg, #005b58, #004a47);
           transform: translateY(-2px);
       }

       .privacy-notice {
           font-family: 'Inter', sans-serif;
           font-size: 12px;
           color: #666666;
           text-align: center;
           line-height: 1.4;
           margin-top: 15px;
           margin-bottom: 0;
       }

       .privacy-link {
           color: #192B63;
           text-decoration: none;
           transition: color 0.3s ease;
       }

       .privacy-link:hover {
           color: #005b58;
           text-decoration: underline;
       }

/* Recommended Articles */
.recommended-articles {
    padding: 0 0 80px 0;
}

.recommended-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 40px;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.recommended-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.recommended-card:hover {
    transform: scale(1.02);
}

.recommended-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #082E74, #005b58);
    position: relative;
    overflow: hidden;
}

.recommended-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommended-content {
    padding: 30px;
    background: transparent;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.recommended-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.recommended-date {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #6c757d;
}

.recommended-category {
    background: #082E74;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.recommended-card-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.recommended-description {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.recommended-link {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #192B63;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.recommended-link:hover {
    color: #005b58;
    transform: translateX(4px);
}

.recommended-link .link-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.recommended-link:hover .link-icon {
    transform: translateX(4px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-container {
        padding: 0 15px;
    }
    
    .article-back {
        padding: 80px 0 30px;
    }
    
    .article-content-panel {
        padding: 40px 30px;
    }
    
    .article-image {
        height: 250px;
        margin-bottom: 30px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-description {
        font-size: 18px;
    }
    
    .article-meta {
        gap: 15px;
    }
    
    .meta-item {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .article-text {
        font-size: 16px;
    }
    
    .article-text h2 {
        font-size: 24px;
    }
    
    .article-text h3 {
        font-size: 20px;
    }
    
    .article-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .share-title {
        font-size: 14px;
    }
    
    .share-buttons {
        gap: 10px;
    }
    
    .share-button {
        width: 36px;
        height: 36px;
    }
    
    .share-button svg {
        width: 18px;
        height: 18px;
    }
    
    .contact-form-panel {
        padding: 40px 30px;
    }
    
    .contact-form {
        padding: 0;
    }
    
    .recommended-articles {
        padding: 40px 0;
    }
    
    .recommended-content {
        padding: 25px;
    }
    
    .recommended-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Адаптивные стили для таблиц */
    .article-content table {
        margin: 25px 0;
        border-radius: 8px;
        font-size: 14px;
    }
    
    .article-content table thead th {
        padding: 16px 18px;
        font-size: 14px;
    }
    
    .article-content table tbody td {
        padding: 14px 18px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .article-content-panel {
        padding: 30px 20px;
    }
    
    .contact-form-panel {
        padding: 30px 20px;
    }
    
    .article-image {
        height: 200px;
        margin-bottom: 25px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-description {
        font-size: 16px;
    }
    
    .share-buttons {
        gap: 10px;
    }
    
    .share-button {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    /* Стили таблиц для очень маленьких экранов */
    .article-content table {
        margin: 20px -20px;
        border-radius: 0;
        width: calc(100% + 40px);
        border: none;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .article-content table thead th {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .article-content table thead th:first-child,
    .article-content table thead th:last-child {
        border-radius: 0;
    }
    
    .article-content table tbody td {
        padding: 12px 15px;
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* Для очень узких экранов делаем таблицу прокручиваемой */
    .article-content table thead,
    .article-content table tbody,
    .article-content table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    
    .article-content table thead th,
    .article-content table tbody td {
        white-space: normal;
        word-wrap: break-word;
    }
}
