/* БригадаНСК — блог: список статей (/articles) и статья (/blog/…). Стиль как на главной и /repair. */

.bnb {
	--bnb-teal: #30A8AF;
	--bnb-teal-dark: #24868C;
	--bnb-ink: #1A2332;
	--bnb-text: #2D3748;
	--bnb-muted: rgba(26, 35, 50, .62);
	--bnb-line: rgba(26, 35, 50, .08);
	--bnb-soft: #F5F7F8;
	width: 100%;
	max-width: 1360px;
	margin: 0 auto;
	padding: 8px 32px 72px;
	box-sizing: border-box;
	font-family: 'Inter', Arial, sans-serif;
	color: var(--bnb-ink);
	-webkit-font-smoothing: antialiased;
}
.bnb *, .bnb *::before, .bnb *::after { box-sizing: border-box; }
.bnb a { text-decoration: none; }

/* Иконки и блик кнопки — те же, что на страницах */
.bn-ar, .bn-x { display: inline-block; flex: none; width: 1em; height: 1em; vertical-align: -.14em; background: currentColor; -webkit-mask: var(--bn-i) center/contain no-repeat; mask: var(--bn-i) center/contain no-repeat; }
.bn-ar { --bn-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14.5'/%3E%3Cpath d='M13.5 6.5 19 12l-5.5 5.5'/%3E%3C/svg%3E"); width: 1.15em; height: 1.15em; margin-left: .15em; transition: transform .25s ease; }
.bn-x { --bn-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E"); width: 1.1em; height: 1.1em; }
a:hover .bn-ar, button:hover .bn-ar { transform: translateX(3px); }
.bf-btn, .bnb-btn[data-bnsk-form] { position: relative; overflow: hidden; isolation: isolate; }
.bf-btn::before, .bnb-btn[data-bnsk-form]::before { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%); transform: skewX(-20deg); animation: bnFlash 3.6s ease-in-out infinite; pointer-events: none; z-index: 1; }
@keyframes bnFlash { 0%, 62% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .bf-btn::before, .bnb-btn[data-bnsk-form]::before { display: none; } }

/* Кнопки */
.bnb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--bnb-teal); color: #fff !important; border-radius: 999px; padding: 15px 28px; font: 600 15px/1.2 'Inter', Arial, sans-serif; box-shadow: 0 8px 20px rgba(48, 168, 175, .3); transition: background .2s, transform .2s; }
.bnb-btn:hover { background: var(--bnb-teal-dark); transform: translateY(-1px); }
.bnb-btn-sec { display: inline-flex; align-items: center; gap: 6px; color: var(--bnb-ink) !important; border: 1.5px solid rgba(26, 35, 50, .2); border-radius: 999px; padding: 14px 22px; font: 500 15px/1.2 'Inter', Arial, sans-serif; transition: border-color .2s; }
.bnb-btn-sec:hover { border-color: var(--bnb-teal); }

/* Хлебные крошки */
.bnb-crumbs { font-size: 13px; color: var(--bnb-muted); margin: 0 0 14px; padding: 0 4px; }
.bnb-crumbs a { color: var(--bnb-muted) !important; }
.bnb-crumbs a:hover { color: var(--bnb-teal) !important; }
.bnb-crumbs .breadcrumb_last { color: var(--bnb-ink); }

/* Первый экран: светлая подложка, как на главной */
.bnb-hero { background: linear-gradient(135deg, #eef8f8 0%, #ede5d9 100%); border-radius: 32px; padding: 32px; display: grid; gap: 24px; align-items: stretch; }
.bnb-hero--post { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.bnb-hero-card { background: #fff; border-radius: 24px; padding: 40px 40px 36px; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 2px 16px rgba(0, 0, 0, .04); }
.bnb-kicker { display: inline-flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.bnb-kicker li { background: var(--bnb-soft); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 500; color: var(--bnb-muted); }
.bnb-kicker li.is-accent { background: rgba(48, 168, 175, .12); color: var(--bnb-teal-dark); }
.bnb-title { font-family: 'Raleway', Arial, sans-serif; font-size: 42px; font-weight: 700; line-height: 1.1; letter-spacing: -.025em; margin: 0 0 16px; color: var(--bnb-ink); text-wrap: balance; }
.bnb-lead { font-size: 17px; line-height: 1.65; color: var(--bnb-muted); margin: 0; }
.bnb-lead p { margin: 0 0 10px; }
.bnb-lead p:last-child { margin: 0; }
.bnb-hero-img { border-radius: 24px; overflow: hidden; min-height: 320px; background: #dfe6e8; }
.bnb-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Список статей */
.bnb-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.bnb-cats a { border: 1.5px solid rgba(26, 35, 50, .14); background: #fff; color: var(--bnb-ink) !important; border-radius: 999px; padding: 11px 18px; font-size: 14px; font-weight: 500; }
.bnb-cats a.is-on { background: var(--bnb-ink); border-color: var(--bnb-ink); color: #fff !important; }
.bnb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 32px 0 0; }
.bnb-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--bnb-line); border-radius: 24px; overflow: hidden; box-shadow: 0 2px 12px rgba(0, 0, 0, .04); transition: box-shadow .25s, transform .25s; }
.bnb-card:hover { box-shadow: 0 14px 36px rgba(0, 0, 0, .09); transform: translateY(-2px); }
.bnb-card-img { display: block; aspect-ratio: 16 / 10; background: #e8eef0; overflow: hidden; }
.bnb-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bnb-card:hover .bnb-card-img img { transform: scale(1.04); }
.bnb-card-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: linear-gradient(135deg, #eef8f8, #ede5d9); color: var(--bnb-teal-dark); font: 700 22px 'Raleway', Arial, sans-serif; }
.bnb-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.bnb-card-date { font-size: 13px; color: var(--bnb-muted); }
.bnb-card-title { font-family: 'Raleway', Arial, sans-serif; font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; margin: 0; }
.bnb-card-title a { color: var(--bnb-ink) !important; }
.bnb-card-title a:hover { color: var(--bnb-teal) !important; }
.bnb-card-text { font-size: 15px; line-height: 1.55; color: var(--bnb-muted); margin: 0; }
.bnb-card-more { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 600; color: var(--bnb-teal) !important; }
.bnb-empty { margin: 32px 0 0; padding: 32px; border-radius: 24px; background: var(--bnb-soft); font-size: 16px; }
.bnb-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 36px 0 0; }
.bnb-pages .page-numbers { min-width: 46px; height: 46px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1.5px solid rgba(26, 35, 50, .14); color: var(--bnb-ink) !important; font-size: 15px; font-weight: 500; }
.bnb-pages .page-numbers.current { background: var(--bnb-ink); border-color: var(--bnb-ink); color: #fff !important; }
.bnb-pages a.page-numbers:hover { border-color: var(--bnb-teal); }

/* Статья: текст + карточка заявки сбоку */
.bnb-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 340px); justify-content: space-between; gap: 48px; margin: 48px auto 0; max-width: 1180px; }
.bnb-side { position: relative; }
.bnb-side-card { position: sticky; top: 110px; background: var(--bnb-ink); color: #fff; border-radius: 24px; padding: 28px 26px; }
.bnb-side-card b { display: block; font-family: 'Raleway', Arial, sans-serif; font-size: 22px; line-height: 1.2; margin: 0 0 10px; }
.bnb-side-card p { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .72); margin: 0 0 18px; }
.bnb-side-card .bnb-btn { width: 100%; }
.bnb-side-card .bnb-side-tel { display: block; margin-top: 14px; text-align: center; color: #fff !important; font-weight: 600; }
.bnb-side-card .bnb-side-note { display: block; margin-top: 14px; font-size: 13px; color: #7fd3d7; text-align: center; }

/* Текст статьи — блоки WordPress */
.bnb-content { font-size: 18px; line-height: 1.75; color: var(--bnb-text); overflow-wrap: break-word; }
.bnb-content > * { margin: 0 0 22px; }
.bnb-content > *:last-child { margin-bottom: 0; }
.bnb-content h2, .bnb-content h3, .bnb-content h4 { font-family: 'Raleway', Arial, sans-serif; font-weight: 700; color: var(--bnb-ink); letter-spacing: -.015em; text-wrap: balance; }
.bnb-content h2 { font-size: 30px; line-height: 1.2; margin: 48px 0 18px; }
.bnb-content h3 { font-size: 23px; line-height: 1.3; margin: 36px 0 14px; }
.bnb-content h4 { font-size: 19px; line-height: 1.35; margin: 28px 0 12px; }
.bnb-content h2:first-child, .bnb-content h3:first-child { margin-top: 0; }
.bnb-content a { color: var(--bnb-teal-dark); border-bottom: 1px solid rgba(48, 168, 175, .4); }
.bnb-content a:hover { color: var(--bnb-teal); border-bottom-color: var(--bnb-teal); }
.bnb-content strong { color: var(--bnb-ink); font-weight: 600; }
.bnb-content ul, .bnb-content ol { padding: 0 0 0 4px; list-style: none; }
.bnb-content li { position: relative; padding: 0 0 0 34px; margin: 0 0 12px; }
.bnb-content ul > li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 18px; height: 18px; border-radius: 50%; background: var(--bnb-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.bnb-content ol { counter-reset: bnb; }
.bnb-content ol > li { counter-increment: bnb; }
.bnb-content ol > li::before { content: counter(bnb); position: absolute; left: 0; top: .1em; width: 26px; height: 26px; border-radius: 50%; background: rgba(48, 168, 175, .14); color: var(--bnb-teal-dark); font: 700 14px/26px 'Inter', Arial, sans-serif; text-align: center; }
.bnb-content figure { margin: 32px 0; }
.bnb-content figure img, .bnb-content .wp-block-image img { width: 100%; height: auto; border-radius: 20px; display: block; }
.bnb-content figcaption { margin-top: 10px; font-size: 14px; color: var(--bnb-muted); text-align: center; }
.bnb-content blockquote, .bnb-content .wp-block-quote { margin: 32px 0; padding: 24px 28px; border: 0; border-radius: 20px; background: var(--bnb-soft); font-size: 18px; color: var(--bnb-ink); }
.bnb-content blockquote::before, .bnb-content .wp-block-quote::before { content: '«'; display: block; margin-bottom: 6px; font: 700 40px/.8 'Raleway', Arial, sans-serif; color: var(--bnb-teal); }
.bnb-content blockquote p { margin: 0 0 8px; }
.bnb-content blockquote p:last-child { margin: 0; }
.bnb-content .wp-block-table { overflow-x: auto; }
.bnb-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.bnb-content th, .bnb-content td { padding: 12px 14px; border-bottom: 1px solid var(--bnb-line); text-align: left; vertical-align: top; }
.bnb-content th { background: var(--bnb-soft); font-weight: 600; color: var(--bnb-ink); }
.bnb-content hr { border: 0; height: 1px; background: var(--bnb-line); margin: 40px 0; }

.bnb-meta-foot { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 40px 0 0; padding: 20px 0 0; border-top: 1px solid var(--bnb-line); font-size: 14px; color: var(--bnb-muted); }

/* Тёмная плашка с заявкой после статьи */
.bnb-cta { margin: 64px 0 0; background: var(--bnb-ink); border-radius: 32px; padding: 44px 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; color: #fff; }
.bnb-cta h2 { font-family: 'Raleway', Arial, sans-serif; font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin: 0 0 10px; color: #fff; }
.bnb-cta p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.bnb-cta p b { color: #7fd3d7; font-weight: 600; }
.bnb-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bnb-cta .bnb-btn-sec { color: #fff !important; border-color: rgba(255, 255, 255, .3); }
.bnb-cta .bnb-btn-sec:hover { border-color: #fff; }

/* Читайте также */
.bnb-related { margin: 64px 0 0; }
.bnb-related-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.bnb-h2 { font-family: 'Raleway', Arial, sans-serif; font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0; color: var(--bnb-ink); }
.bnb-related .bnb-grid { margin-top: 24px; }

@media (max-width: 1100px) {
	.bnb-layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; gap: 40px; }
	.bnb-side-card { position: static; }
	.bnb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.bnb-hero--post { grid-template-columns: minmax(0, 1fr); }
	.bnb-hero-img { min-height: 0; aspect-ratio: 16 / 10; }
	.bnb-cta { grid-template-columns: minmax(0, 1fr); padding: 32px 28px; }
}
@media (max-width: 768px) {
	.bnb { padding: 4px 12px 48px; }
	.bnb-crumbs { padding: 0 6px; }
	.bnb-hero { padding: 0; background: none; border-radius: 0; gap: 12px; }
	.bnb-hero-card { padding: 24px 18px 26px; border: 1px solid rgba(0, 0, 0, .06); }
	.bnb-hero-img { border-radius: 20px; }
	.bnb-title { font-size: 28px; line-height: 1.15; }
	.bnb-lead { font-size: 15px; }
	.bnb-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 20px; }
	.bnb-cats { flex-wrap: nowrap; overflow-x: auto; margin: 18px -12px 0; padding: 0 12px; scrollbar-width: none; }
	.bnb-cats::-webkit-scrollbar { display: none; }
	.bnb-cats a { flex: none; }
	.bnb-layout { margin-top: 28px; gap: 32px; }
	.bnb-content { font-size: 16px; line-height: 1.7; padding: 0 6px; }
	.bnb-content h2 { font-size: 24px; margin-top: 36px; }
	.bnb-content h3 { font-size: 20px; margin-top: 28px; }
	.bnb-content h4 { font-size: 17px; }
	.bnb-content figure { margin: 24px 0; }
	.bnb-content figure img { border-radius: 16px; }
	.bnb-content blockquote { padding: 18px 18px; font-size: 16px; }
	.bnb-side-card { border-radius: 20px; padding: 24px 20px; }
	.bnb-cta { margin-top: 40px; border-radius: 24px; padding: 28px 20px; }
	.bnb-cta h2 { font-size: 24px; }
	.bnb-cta-actions .bnb-btn, .bnb-cta-actions .bnb-btn-sec { width: 100%; }
	.bnb-related { margin-top: 44px; }
	.bnb-h2 { font-size: 26px; }
}
.bnb-post .bnb-title { margin-bottom: 0; }
