/** article (статьи ИИ Блогера) **
 * Блок «Статья» в оформлении статей ИИ Блогера (stroymetallspb.ru, 17.11.2026, порт с cleanguard-kazan.ru) (.cg-article, разметка parts/items/article-aib.php):
 * колонка чтения чуть уже контейнера сайта, единая шкала заголовков и текста, автор и «Поделиться»,
 * оглавление-карточка, «Ключевые выводы», FAQ-аккордеон. Цвета и шрифты — токены темы.
 * Шкала (десктоп / ≤990 / ≤575): H1 48/34/28, h2 34/27/24, h3 24/21/19, текст 18/18/16, межстрочный 1.65/1.65/1.6.
 */

/* Ширина: колонка статьи и заголовок страницы чуть уже контейнера сайта */
.cg-article > .container,
body:has(.cg-article) .bread_main_wrap > .container { max-width: 1110px; }
body:has(.cg-article) h1.inside_h1 { font-size: 48px; line-height: 1.15; }

.cg-article { --cg-ink: #1f2937; --cg-line: rgba(47, 108, 180, .16); --cg-radius: 24px; }

/* Текст и заголовки */
.cg-article .cg-content.bs-uni-typography,
.cg-article .cg-content.bs-uni-typography p,
.cg-article .cg-content.bs-uni-typography li { font-size: 18px; line-height: 1.65; color: var(--text_color); }
.cg-article .cg-content.bs-uni-typography p { margin: 0 0 16px; }
.cg-article .cg-content.bs-uni-typography ul,
.cg-article .cg-content.bs-uni-typography ol { margin: 4px 0 24px; }
.cg-article .cg-content.bs-uni-typography li { margin-bottom: 8px; }
.cg-article .cg-content.bs-uni-typography h2 { font-size: 34px; line-height: 1.2; font-weight: 500; color: var(--cg-ink); margin: 56px 0 16px; scroll-margin-top: 110px; }
.cg-article .cg-content.bs-uni-typography .articles-bio > h2:first-child { margin-top: 0; }
.cg-article .cg-content.bs-uni-typography h3 { font-size: 24px; line-height: 1.3; font-weight: 500; color: var(--cg-ink); margin: 32px 0 12px; }
.cg-article .cg-content.bs-uni-typography figure { margin: 32px 0; }
.cg-article .cg-content.bs-uni-typography figure img { display: block; width: 100%; height: auto; border-radius: var(--cg-radius); }

/* Автор и «Поделиться» */
.cg-article .cg-byline { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 0 0 20px; margin: 0 0 28px; border-bottom: 1px solid var(--cg-line); }
.cg-article .cg-byline__author { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.cg-article .cg-ava { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--main_color); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.cg-article .cg-ava--lg { width: 56px; height: 56px; font-size: 18px; }
.cg-article .cg-byline__who { display: flex; flex-direction: column; line-height: 1.3; }
.cg-article .cg-byline__label { font-size: 13px; color: var(--text_color); }
.cg-article .cg-byline__name { font-size: 16px; font-weight: 500; color: var(--cg-ink); transition: color .2s; }
.cg-article .cg-byline__author:hover .cg-byline__name { color: var(--main_color); }
.cg-article .cg-share { display: flex; gap: 10px; }
.cg-article .cg-share__btn { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--main_color); color: #fff; transition: transform .2s ease, opacity .2s ease; }
.cg-article .cg-share__btn:hover { transform: translateY(-2px); opacity: .9; color: #fff; }
.cg-article .cg-share__btn svg { width: 20px; height: 20px; display: block; }
.cg-article .cg-share__btn--vk svg { width: 23px; height: 23px; }
.cg-article .cg-share-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 40px 0 24px; padding: 24px 0 0; border-top: 1px solid var(--cg-line); }
.cg-article .cg-share-row__label { font-size: 18px; font-weight: 500; color: var(--cg-ink); }

/* Карточка автора */
.cg-article .cg-author { display: flex; gap: 18px; align-items: flex-start; background: var(--extra_color); border: 1px solid var(--cg-line); border-radius: var(--cg-radius); padding: 24px 28px; }
.cg-article .cg-author__label { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text_color); margin-bottom: 2px; }
.cg-article .cg-author__name { font-size: 19px; font-weight: 500; color: var(--cg-ink); text-decoration: none; transition: color .2s; }
.cg-article .cg-author__name:hover { color: var(--main_color); }
.cg-article .cg-author__text { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--text_color); }

/* Оглавление-карточка */
.cg-article .cg-toc { margin: 0 0 40px; }
.cg-article .cg-toc__box { background: var(--extra_color); border: 1px solid var(--cg-line); border-radius: var(--cg-radius); padding: 22px 28px; }
.cg-article .cg-toc__title { list-style: none; cursor: pointer; position: relative; padding-right: 36px; font-size: 20px; font-weight: 500; line-height: 1.3; color: var(--cg-ink); }
.cg-article .cg-toc__title::-webkit-details-marker { display: none; }
.cg-article .cg-toc__title::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--main_color); border-bottom: 2px solid var(--main_color); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.cg-article .cg-toc__box[open] .cg-toc__title::after { transform: translateY(-25%) rotate(225deg); }
.cg-article .cg-toc__list { list-style: none; margin: 18px 0 0; padding: 0 0 2px; counter-reset: cgtoc; columns: 2; column-gap: 48px; }
.cg-article .cg-toc__list li { counter-increment: cgtoc; break-inside: avoid; position: relative; padding: 0 0 0 36px; margin: 0 0 12px; font-size: 16px; line-height: 1.5; list-style: none; }
.cg-article .cg-toc__list li::before { content: counter(cgtoc); position: absolute; left: 0; top: 0; width: 24px; height: 24px; box-sizing: border-box; border-radius: 50%; background: #fff; border: 1px solid var(--cg-line); color: var(--main_color); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.cg-article .cg-toc__list a { color: var(--cg-ink); text-decoration: none; font-weight: 400; transition: color .2s; }
.cg-article .cg-toc__list a:hover { color: var(--main_color); }

/* Ключевые выводы */
.cg-article .cg-content .cg-takeaways { background: var(--extra_color); border: 1px solid var(--cg-line); border-radius: var(--cg-radius); padding: 28px 32px 12px; margin: 56px 0 0; }
.cg-article .cg-content.bs-uni-typography .cg-takeaways h2 { font-size: 26px; margin: 0 0 16px; }
.cg-article .cg-content.bs-uni-typography .cg-takeaways ul { margin: 0 0 16px; }
.cg-article .cg-content.bs-uni-typography .cg-takeaways li { padding-left: 34px; margin-bottom: 12px; }
.cg-article .cg-content.bs-uni-typography .cg-takeaways li::before { width: 22px; height: 22px; top: .82em; opacity: 1; border-radius: 50%;
	background: var(--main_color) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* FAQ: раскрывающиеся вопросы */
.cg-article .cg-content .cg-faq { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 8px; }
.cg-article .cg-content .cg-faq__item { background: var(--extra_color); border: 1px solid var(--cg-line); border-radius: 20px; transition: background-color .2s, box-shadow .2s; }
.cg-article .cg-content .cg-faq__item[open] { background: #fff; box-shadow: 0 6px 24px rgba(13, 139, 255, .08); }
.cg-article .cg-content .cg-faq__q { list-style: none; cursor: pointer; position: relative; padding: 18px 72px 18px 24px; font-size: 19px; line-height: 1.4; font-weight: 500; color: var(--cg-ink);
	background: radial-gradient(circle 15px at calc(100% - 38px) 50%, var(--main_color) 95%, transparent 100%) no-repeat; }
.cg-article .cg-content .cg-faq__q::-webkit-details-marker { display: none; }
.cg-article .cg-content .cg-faq__q::before,
.cg-article .cg-content .cg-faq__q::after { content: ""; position: absolute; right: 31px; top: calc(50% - 1px); width: 14px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s; }
.cg-article .cg-content .cg-faq__q::after { transform: rotate(90deg); }
.cg-article .cg-content .cg-faq__item[open] .cg-faq__q::after { transform: rotate(0); }
.cg-article .cg-content.bs-uni-typography .cg-faq__a { padding: 0 24px 20px; }
.cg-article .cg-content.bs-uni-typography .cg-faq__a p { font-size: 17px; margin: 0; }

@media (max-width: 990px) {
	body:has(.cg-article) h1.inside_h1 { font-size: 34px; }
	.cg-article .cg-content.bs-uni-typography h2 { font-size: 27px; margin-top: 44px; scroll-margin-top: 90px; }
	.cg-article .cg-content.bs-uni-typography h3 { font-size: 21px; margin-top: 28px; }
	.cg-article .cg-toc__list { columns: 1; }
}

@media (max-width: 575px) {
	body:has(.cg-article) h1.inside_h1 { font-size: 28px; line-height: 1.2; }
	.cg-article .cg-content.bs-uni-typography,
	.cg-article .cg-content.bs-uni-typography p,
	.cg-article .cg-content.bs-uni-typography li { font-size: 16px; line-height: 1.6; }
	.cg-article .cg-content.bs-uni-typography p { margin-bottom: 14px; }
	.cg-article .cg-content.bs-uni-typography h2 { font-size: 24px; margin: 36px 0 12px; }
	.cg-article .cg-content.bs-uni-typography h3 { font-size: 19px; margin: 24px 0 10px; }
	.cg-article .cg-content.bs-uni-typography figure { margin: 24px 0; }
	.cg-article .cg-content.bs-uni-typography figure img { border-radius: 16px; }
	.cg-article .cg-toc__box,
	.cg-article .cg-author { padding: 18px 20px; }
	.cg-article .cg-toc__title { font-size: 18px; }
	.cg-article .cg-toc__list li { font-size: 15px; }
	.cg-article .cg-content .cg-takeaways { padding: 22px 20px 8px; margin-top: 40px; }
	.cg-article .cg-content.bs-uni-typography .cg-takeaways h2 { font-size: 22px; }
	.cg-article .cg-content .cg-faq__q { font-size: 17px; padding: 16px 62px 16px 18px; background-image: radial-gradient(circle 14px at calc(100% - 33px) 50%, var(--main_color) 95%, transparent 100%); }
	.cg-article .cg-content .cg-faq__q::before,
	.cg-article .cg-content .cg-faq__q::after { right: 26px; }
	.cg-article .cg-content.bs-uni-typography .cg-faq__a { padding: 0 18px 16px; }
	.cg-article .cg-content.bs-uni-typography .cg-faq__a p { font-size: 16px; }
	.cg-article .cg-share-row__label { font-size: 16px; }
	.cg-article .cg-author { gap: 14px; }
	.cg-article .cg-ava--lg { width: 48px; height: 48px; font-size: 16px; }
}
