/* Стили для конкретной новостей сервиса */
.promo {
    display: none;
}

.header {
    border-bottom: none;
}

.news-detail {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-top: -60px;
}

.news-title {
    font-size: 32px;
    font-weight: 400;
}

.news-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted-foreground, #667085);
    font-size: 14px;
    margin-top: 8px;
}

.news-meta__dot { opacity: 0.6; }
.news-meta__item { display: inline-flex; align-items: center; gap: 6px; }

.news-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.news-image {
    height: 400px;
    overflow: hidden;
    margin: 20px  0px;
    border-radius: 12px;
}

.news-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}

.news-article {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #EAECF0);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    max-width: 760px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
}

/* Типографика внутри статьи */
.news-article p:first-of-type {
    font-size: 18px;
    line-height: 1.75;
    color: var(--foreground, #101828);
}

.news-article h2 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.3;
    color: var(--foreground, #101828);
}

.news-article h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.35;
    color: var(--foreground, #101828);
}

.news-article ul,
.news-article ol {
    margin: 8px 0 16px 20px;
    padding: 0 0 0 8px;
}

.news-article li { margin: 6px 0; }

.news-article blockquote {
    margin: 16px 0;
    padding: 14px 16px;
    border-left: 3px solid #7F56D9;
    background: rgba(127, 86, 217, 0.06);
    border-radius: 8px;
}

.news-article figure { margin: 18px 0; }
.news-article figure img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}
.news-article figcaption {
    text-align: center;
    font-size: 13px;
    color: var(--muted-foreground, #667085);
    margin-top: 6px;
}

/* Preserve typography and spacing for SEO h1 title */
h1.news-title {
    font-size: 32px;
    font-weight: 400;
    margin: 0;
}

/* Стили для содержимого статьи */
.news-content figure.image {
    margin: 15px 0; /* Базовый отступ для всех изображений */
}

.news-content figure.image.image-style-align-left {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

.news-content figure.image.image-style-align-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.news-content figure.image.image-style-align-right {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
}

/* Учет изменения размера */
.news-content figure.image.image_resized {
    display: inline-block; /* Для корректной работы ширины */
}

/* Ограничение размеров изображения */
.news-content img {
    max-width: 100%;
    height: auto;
}


@media (max-width: 768px) {
    .module {
        margin: -12px 0 20px 0;
    }

    h1.news-title { font-size: 24px; }
    
    .news-image { 
        height: 200px; 
        border-radius: 20px;
        overflow: hidden;
    }
    
    .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .news-article { padding: 16px; margin-bottom: 24px; }
    .news-article p:first-of-type { font-size: 16px; }
}
