/*
	Страницы конфигураторов (/plans/, /plans/<шаблон>/, /tools/<шаблон>/) и идей (/ideas/<тема>/) — в виде статей и главной
	flatma.com (владелец 2026-11-28: «сделай как мой дизайн»): оболочка — landing-chrome.php (шапка, подвал, landing.css),
	раскладка текста — blueprint-layout.php. Значения — как у статей (articles/<статья>/index.php, landing-guide.php):
	заголовки 52 / 600 / −0.028em, текст #333 17 px, синий #0D99FF, черты #e5e7eb, фон через один #fafafa, картинки — в рамке
	с тенью 8 px, кнопка — синяя круглая (.button_link), внизу — чёрный блок призыва.
	Всё — внутри main.bp: шапку и подвал статей не задевает (у landing.css «* { margin: 0; padding: 0 }» и font-size: 0
	у .block_case — поэтому свои размеры).
*/

.bp{
	display: block;
	font-size: 16px;
	line-height: 1.5;
	color: #0f0f0f;
	overflow-wrap: break-word;
}
.bp *,
.bp *::before,
.bp *::after{ box-sizing: border-box; }
.bp a{ color: #0D99FF; text-decoration: none; }
.bp a:hover{ text-decoration: underline; }
.bp b,
.bp strong{ font-weight: 600; color: #0f0f0f; }
.bp img{ max-width: 100%; }
/* 1260 + поля 15 — как .block_case статей (у них content-box) */
.bp_case{
	max-width: 1290px;
	margin: 0 auto;
	padding: 0 15px;
}

/* ===== первый экран: заголовок, строка, кнопка, «бесплатно · без регистрации» слева, картинка в рамке справа ===== */
.bp_hero{ padding: 150px 0 110px; }
.bp_hero .bp_case{
	display: flex;
	align-items: center;
	gap: 80px;
}
.bp_hero_text{ flex: 0 0 42%; min-width: 0; }
.bp_hero_media{ flex: 1 1 auto; min-width: 0; }
.bp_hero h1{
	margin: 0 0 22px;
	font-size: clamp(40px, 4.2vw, 58px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.03em;
	text-wrap: balance;
}
.bp_hero h1 span{ color: inherit; }
.bp_hero_lead{
	margin: 0;
	font-size: 19px;
	line-height: 1.55;
	color: #0f0f0f;
	text-wrap: pretty;
}
/* кнопка статей — по своему тексту (у .button_link max-width 250: русское «Задать свой размер в 3D» переносилось) */
.bp .button_link{ max-width: none; width: auto; padding: 16px 32px; font-size: 20px; margin-top: 32px; color: #fff; text-decoration: none; white-space: nowrap; }
.bp .button_link:hover{ text-decoration: none; }
.bp_trust{
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
	color: #6b7280;
}
.bp_trust li{ display: inline-flex; align-items: center; gap: 8px; }
.bp_trust span{ display: inline-block; }
.bp_trust span::first-letter{ text-transform: uppercase; }
.bp_trust li::before{
	content: "";
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #14ae5c;
}
.bp_up{ margin: 0 0 18px; font-size: 15px; }
.bp_up a{ color: #6b7280; }
.bp_frame{
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #333333;
	box-shadow: 8px 8px 0 #333333;
	background: #ffffff;
}

/* ===== блоки текста: черта сверху, фон через один ===== */
.bp_block{
	padding: 120px 0;
	border-top: 1px solid #e5e7eb;
}
.bp_shade{ background: #fafafa; }
.bp .section-head{
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 80px;
	align-items: end;
	margin: 0 0 56px;
}
.bp .section-head.bp_solo{ grid-template-columns: minmax(0, 900px); }
.bp .h2{
	margin: 0;
	font-size: clamp(30px, 3.8vw, 52px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.028em;
	text-wrap: balance;
	scroll-margin-top: 90px;
}
.bp .lead{
	margin: 0;
	max-width: 44ch;
	font-size: clamp(18px, 1.4vw, 21px);
	line-height: 1.5;
	color: #333333;
	text-wrap: pretty;
}
.bp_split .bp_case{
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 80px;
	align-items: start;
}
.bp_side{ position: sticky; top: 100px; }
.bp_main .bp_text{ max-width: none; }
.bp_main .lead{ max-width: none; margin: 0 0 26px; font-size: 21px; line-height: 1.5; color: #0f0f0f; }
.bp_intro{ padding-top: 0; border-top: 0; }
.bp_intro .bp_text > p:first-child{ font-size: 21px; line-height: 1.55; color: #0f0f0f; }
.bp_text{
	max-width: 780px;
	font-size: 17px;
	line-height: 1.65;
	color: #333333;
}
.bp_text + .bp_text{ margin-top: 0; }
.bp_text p{ margin: 0 0 18px; }
.bp_text > :last-child{ margin-bottom: 0; }
.bp_text h3{
	margin: 44px 0 14px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.015em;
	color: #0f0f0f;
}
.bp_text > h3:first-child{ margin-top: 0; }
.bp .block_list{ list-style: none; margin: 0 0 22px; padding: 0; }
.bp .block_list li{
	position: relative;
	margin: 0 0 12px;
	padding-left: 26px;
	color: #333333;
}
.bp .block_list li::before{
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #0D99FF;
}
.bp_ol{ list-style: none; margin: 0 0 22px; padding: 0; counter-reset: bp-n; }
.bp_ol li{
	position: relative;
	margin: 0 0 16px;
	padding-left: 52px;
	counter-increment: bp-n;
}
.bp_ol li::before{
	content: counter(bp-n, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 2px;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 14px;
	letter-spacing: 0.08em;
	color: #6b7280;
}
.bp_text i{ font-style: italic; }

/* таблица текста — в рамке, как сравнение у статей */
.bp_tbl{
	margin: 8px 0 30px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #ffffff;
	overflow-x: auto;
}
.bp_tbl table{
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 1.5;
}
.bp_tbl th,
.bp_tbl td{
	padding: 16px 22px;
	border-bottom: 1px solid #e5e7eb;
	text-align: left;
	vertical-align: top;
}
.bp_tbl tr:last-child th,
.bp_tbl tr:last-child td{ border-bottom: 0; }
.bp_tbl th{ width: 34%; font-weight: 600; color: #0f0f0f; }
.bp_tbl td{ color: #333333; }
.bp_tbl_head table{ font-size: 15px; }
.bp_tbl_head th,
.bp_tbl_head td{ width: auto; padding: 14px 18px; }
.bp_tbl_head tr:first-child th,
.bp_tbl_head tr:first-child td{
	background: #fafafa;
	color: #6b7280;
	font-size: 13px;
	font-weight: 600;
	vertical-align: bottom;
}

/* ===== шаги — карточками «# 01» ===== */
.bp .steps{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1px;
	margin: 0 0 56px;
	padding: 0;
	list-style: none;
	background: #e5e7eb;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
}
.bp .steps:last-child{ margin-bottom: 0; }
.bp .step{ background: #ffffff; padding: 44px 32px 52px; }
.bp .step__n{
	margin: 0 0 52px;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 13px;
	letter-spacing: 0.1em;
	color: #6b7280;
}
.bp .step__title{
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.015em;
}
.bp .step__text{ margin: 0; font-size: 15px; line-height: 1.6; color: #333333; }
.bp .step__text b:first-child{ font-size: 17px; letter-spacing: -0.01em; }
.bp .step__text:only-of-type{ font-size: 16px; }

/* ===== таблица деталей и чертежи — на всю ширину ===== */
.bp_wide{ margin: 0 0 40px; }
.bp_wide:last-child{ margin-bottom: 0; }
.bp_wide .bp_table{
	margin: 0 0 24px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #ffffff;
	overflow-x: auto;
}
.bp_wide .bp_table table{ width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.bp_wide .bp_table th{
	padding: 14px 16px;
	border-bottom: 1px solid #e5e7eb;
	background: #fafafa;
	color: #6b7280;
	font-size: 13px;
	font-weight: 600;
	text-align: left;
	vertical-align: bottom;
	white-space: nowrap;
}
.bp_wide .bp_table td{
	padding: 12px 16px;
	border-bottom: 1px solid #f0f0f0;
	color: #333333;
	white-space: nowrap;
}
.bp_wide .bp_table tr:last-child td{ border-bottom: 0; }
.bp_wide .bp_parts td:nth-child(2){ white-space: normal; min-width: 160px; color: #0f0f0f; }
.bp_wide .bp_parts td:nth-child(n+4):not(:nth-child(7)),
.bp_wide .bp_parts th:nth-child(n+4):not(:nth-child(7)),
.bp_wide .bp_fast td:last-child,
.bp_wide .bp_fast th:last-child{ text-align: right; font-variant-numeric: tabular-nums; }
.bp_dwgs{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
	gap: 1px;
	margin: 0 0 24px;
	background: #e5e7eb;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	overflow: hidden;
}
.bp_dwg{ margin: 0; padding: 24px; background: #ffffff; }
.bp_dwg a{ display: block; }
.bp_dwg img{ display: block; width: 100%; height: auto; }
.bp_dwg figcaption{ margin: 14px 0 0; font-size: 14px; line-height: 1.45; color: #333333; }

/* ===== вопросы и ответы — как у статей ===== */
.bp .faq{ border-top: 1px solid #e5e7eb; }
.bp .faq-item{ border-bottom: 1px solid #e5e7eb; }
.bp .faq-item__q{ margin: 0; font: inherit; }
.bp .faq-item__btn{
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 32px;
	width: 100%;
	padding: 30px 0;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: clamp(18px, 1.4vw, 22px);
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -0.015em;
	color: #0f0f0f;
	text-align: start;
	cursor: pointer;
	transition: color .15s ease;
}
.bp .faq-item__btn:hover{ color: #0D99FF; }
.bp .faq-item__icon{ position: relative; flex-shrink: 0; width: 22px; height: 22px; }
.bp .faq-item__icon::before,
.bp .faq-item__icon::after{
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: #6b7280;
	transform: translate(-50%, -50%);
	transition: transform .25s ease;
}
.bp .faq-item__icon::before{ width: 14px; height: 1.5px; }
.bp .faq-item__icon::after{ width: 1.5px; height: 14px; }
.bp .faq-item.is-open .faq-item__icon::after{ transform: translate(-50%, -50%) scaleY(0); }
.bp .faq-item__body{ max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.bp .faq-item.is-open .faq-item__body{ max-height: 1400px; }
.bp .faq-item__bodyInner{
	max-width: 70ch;
	padding: 0 80px 30px 0;
	font-size: 17px;
	line-height: 1.65;
	color: #333333;
}
.bp .faq-item__bodyInner p{ margin: 0 0 12px; }
.bp .faq-item__bodyInner > :last-child{ margin-bottom: 0; }

/* ===== идеи: «картинка в рамке | заголовок и текст», стороны через одну ===== */
.bp_idea{
	display: flex;
	align-items: center;
	gap: 80px;
	margin: 0 0 120px;
}
.bp_idea:last-child{ margin-bottom: 0; }
.bp_idea_rev{ flex-direction: row-reverse; }
.bp_idea_solo .bp_idea_body{ max-width: 780px; }
.bp_idea_media{ flex: 0 0 50%; min-width: 0; }
.bp_idea_body{ flex: 1 1 auto; min-width: 0; font-size: 17px; line-height: 1.65; color: #333333; }
.bp_idea_body p{ margin: 0 0 16px; }
.bp_idea_body > :last-child{ margin-bottom: 0; }
.bp_idea_body h3{
	margin: 0 0 20px;
	font-size: clamp(26px, 2.6vw, 38px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: #0f0f0f;
	text-wrap: balance;
}
.bp_idea_body .bp_tbl{ margin-top: 16px; }
.bp .idea_fig{ margin: 0; }
.bp .idea_fig img{
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid #333333;
	box-shadow: 8px 8px 0 #333333;
	background: #f4f5f7;
}
.bp .idea_fig figcaption{ margin: 22px 0 0; font-size: 14px; line-height: 1.5; color: #6b7280; }
.bp_idea_body .idea_fig,
.bp_text .idea_fig{ margin: 8px 0 28px; }
.bp_idea_body .idea_fig img,
.bp_text .idea_fig img{ border-color: #e5e7eb; box-shadow: none; }

/* ===== конфигуратор во фрейме (js/pub-page.js → js/model-embed.js: data-model-auto), в рамке с тенью ===== */
.bp_cfg{
	padding: 96px 0 110px;
	border-top: 1px solid #e5e7eb;
	background: #fafafa;
	scroll-margin-top: 60px;
}
.pub_model{
	position: relative;
	display: grid;
	place-items: center;
	overflow: hidden;
}
.pub_model iframe{
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	border: 0;
}
.pub_model.is_open:not(.is_loading) iframe{ animation: bp_fade .25s ease-out; }
@keyframes bp_fade{
	from{ opacity: 0; }
}
.pub_model[data-model-auto]:not(.is_manual) .pub_model_cta,
.pub_model.is_open .pub_model_cta{ display: none; }
.pub_model.is_auto .pub_model_open,
.pub_model.is_loading .pub_model_open{ cursor: progress; }
.pub_model_open{
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: #ffffff;
	cursor: pointer;
}
.pub_model_open img{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left top;
}
.pub_model_cta{
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 28px;
	border-radius: 50px;
	background: #0D99FF;
	color: #ffffff;
	font-size: 18px;
	font-weight: 500;
}
.pub_model_icon{
	width: 18px;
	height: 18px;
	border: 1.5px solid currentColor;
	border-radius: 4px;
	transform: rotate(45deg) skew(-8deg, -8deg);
}
.pub_model_bar{
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: none;
	gap: 8px;
}
.pub_model.is_open:not(.is_loading) .pub_model_bar{ display: flex; }
.pub_model_btn{
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 8px;
	background: rgba(30, 30, 30, .72);
	color: #ffffff;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}
.pub_when_big,
.is_big .pub_when_small{ display: none; }
.is_big .pub_when_big{ display: inline; }
.pub_model.is_auto:not(.is_open)::after,
.pub_model.is_loading::after{
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: 28px;
	height: 28px;
	margin: -14px 0 0 -14px;
	border: 2px solid #d1d5db;
	border-top-color: #0D99FF;
	border-radius: 50%;
	background: rgba(255, 255, 255, .85);
	box-shadow: 0 0 0 6px rgba(255, 255, 255, .85);
	animation: bp_spin .8s linear infinite;
}
@keyframes bp_spin{
	to{ transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce){
	.pub_model.is_open:not(.is_loading) iframe{ animation: none; }
}
.bp_model{
	height: min(780px, calc(100vh - 140px));
	min-height: 540px;
	border: 1px solid #333333;
	box-shadow: 8px 8px 0 #333333;
	background: #ffffff;
}
/* «Full screen» конфигуратора (client-view.js → model-embed.js: is_big) — на всё окно, поверх шапки статей (z-index 9999) */
.bp_model.is_big{
	position: fixed;
	inset: 0;
	z-index: 100000;
	height: auto;
	min-height: 0;
	margin: 0;
	border: 0;
	box-shadow: none;
}

/* ===== раздел «Конфигураторы»: карточки сеткой с чертами, как «для кого» у статей ===== */
.bp_cards{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: #e5e7eb;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	overflow: hidden;
}
.bp_cards li{ display: flex; background: #ffffff; }
.bp a.bp_card{
	display: flex;
	flex-direction: column;
	width: 100%;
	color: #0f0f0f;
	text-decoration: none;
}
.bp_card_img{
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f4f5f7;
}
.bp_card_img img{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}
.bp a.bp_card:hover .bp_card_img img{ transform: scale(1.03); }
.bp_card_body{
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 28px 32px 36px;
}
.bp_card_title{ font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.bp a.bp_card:hover .bp_card_title{ text-decoration: underline; text-underline-offset: 3px; }
.bp_card_meta{ font-size: 15px; line-height: 1.5; color: #6b7280; }

.bp_count{ color: #6b7280; }

/* ===== внизу — чёрный блок призыва, как у статей ===== */
.bp_cta{
	padding: 150px 15px;
	background: #0f0f0f;
	text-align: center;
}
.bp_cta_title{
	max-width: 820px;
	margin: 0 auto;
	font-size: clamp(32px, 4vw, 52px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.028em;
	color: #ffffff;
	text-wrap: balance;
}
.bp_cta .button_link{ margin-top: 40px; }
.bp_cta_trust{ margin: 16px 0 0; font-size: 16px; color: #888888; }
.bp_cta_more{ margin: 36px 0 0; font-size: 16px; }
.bp .bp_cta_more a{
	display: inline-flex;
	gap: 10px;
	padding-bottom: 2px;
	border-bottom: 1px solid #ffffff;
	color: #ffffff;
	font-weight: 500;
	text-decoration: none;
	transition: gap .18s ease;
}
.bp .bp_cta_more a:hover{ gap: 14px; }

/* справа налево (арабский текст) */
.bp [dir="rtl"] .block_list li,
.bp[dir="rtl"] .block_list li{ padding-left: 0; padding-right: 26px; }
.bp [dir="rtl"] .block_list li::before,
.bp[dir="rtl"] .block_list li::before{ left: auto; right: 0; }
.bp [dir="rtl"] .bp_ol li{ padding-left: 0; padding-right: 52px; }
.bp [dir="rtl"] .bp_ol li::before{ left: auto; right: 0; }
.bp [dir="rtl"] .bp_tbl th,
.bp [dir="rtl"] .bp_tbl td{ text-align: right; }

@media (max-width: 1000px){
	.bp_cards{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px){
	.bp_hero{ padding: 100px 0 64px; }
	.bp_hero .bp_case{ flex-direction: column; align-items: stretch; gap: 48px; }
	.bp_hero_text{ flex: none; }
	.bp .button_link{ width: 100%; max-width: 100%; }
	.bp .section-head{ grid-template-columns: 1fr; gap: 18px; align-items: start; margin-bottom: 32px; }
	.bp .section-head.bp_solo{ grid-template-columns: 1fr; }
	.bp_split .bp_case{ grid-template-columns: 1fr; gap: 28px; }
	.bp_side{ position: static; }
	.bp_block{ padding: 64px 0; }
	.bp_intro{ padding-top: 0; }
	.bp_idea,
	.bp_idea_rev{ flex-direction: column; align-items: stretch; gap: 36px; margin-bottom: 72px; }
	.bp_idea_media{ flex: none; width: 100%; }
	.bp .faq-item__bodyInner{ padding-right: 0; }
	.bp_cfg{ padding: 0 0 56px; border-top: 0; }
	.bp_cfg .bp_case{ padding: 0; }
	/* телефон: лист выбора конфигуратора — под сценой; фрейм почти во весь экран, без рамки */
	.bp_model{
		height: calc(82svh - 60px);
		min-height: 520px;
		border-left: 0;
		border-right: 0;
		box-shadow: none;
	}
	.bp_cta{ padding: 90px 15px; }
}
@media (max-width: 600px){
	.bp_cards{ grid-template-columns: 1fr; }
	.bp_tbl th{ width: 40%; }
	.bp_tbl th,
	.bp_tbl td{ padding: 14px 16px; }
	.bp .step{ padding: 32px 24px 36px; }
	.bp .step__n{ margin-bottom: 28px; }
}
