/* BIMFAB — «Bino turlari» (v1.17.0). Muallif: Tursunov Jahongir · BIMFAB */

.bt-qahramon { padding-top: 64px; padding-bottom: 56px; }
.bt-qahramon h1 { font-family: var(--sarlavha-shrift); font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.1; margin: 6px 0 14px; max-width: 24ch; }
.bt-qahramon-tur { padding-top: 40px; padding-bottom: 36px; }
.bt-qahramon-tur h1 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.bt-lid { font-size: 1.0625rem; line-height: 1.6; max-width: 70ch; color: var(--qora-matn); margin: 0; }
.bt-teg { display: inline-block; font: 600 .75rem/1 var(--shrift); letter-spacing: .06em; text-transform: uppercase; color: var(--qora-kul); margin: 0; }
.bt-yol { font-size: .875rem; color: var(--qora-kul); }
.bt-yol a { color: var(--qora-matn); }
.bt-norma-teglar { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bt-norma-teglar li a, .bt-norma-teglar li span { display: inline-block; font: 600 .8125rem/1 var(--shrift); padding: 7px 10px; border: 1px solid #4A5866; color: #fff; text-decoration: none; }
.bt-norma-teglar li a:hover { border-color: #fff; }
.bt-norma-teglar li span { color: var(--qora-kul); border-style: dashed; }

/* Kartalar (bosh sahifa) */
.bt-kartalar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bt-karta { display: flex; flex-direction: column; background: var(--oq); border: 1px solid var(--chiziq); color: var(--siyoh); text-decoration: none; transition: border-color .15s; min-height: 100%; }
a.bt-karta:hover { border-color: var(--siyoh); }
.bt-karta img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--chiziq); background: var(--qogoz-2); }
.bt-karta-matn { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.bt-karta-matn strong { font-size: 1.0625rem; }
.bt-karta-matn span { color: var(--kul); font-size: .9375rem; line-height: 1.5; }
.bt-karta-matn small { color: var(--kok); font-weight: 600; font-size: .8125rem; margin-top: 4px; }
.bt-karta-tez { background: transparent; border-style: dashed; min-height: 96px; }
.bt-karta-tez .bt-karta-matn { justify-content: center; }
.bt-karta-tez strong { color: var(--siyoh-2); }
.bt-tez { font: 600 .75rem/1 var(--shrift) !important; letter-spacing: .05em; text-transform: uppercase; color: var(--kul) !important; }
.bt-qanday { padding-top: 0; }
.bt-qadamlar { list-style: none; counter-reset: q; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bt-qadamlar li { counter-increment: q; border-top: 2px solid var(--siyoh); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.bt-qadamlar li::before { content: counter(q, decimal-leading-zero); font: 600 .8125rem/1 var(--shrift); color: var(--kul); }
.bt-qadamlar span { color: var(--kul); line-height: 1.55; }
.bt-ogoh-qisqa { margin-top: 26px; color: var(--kul); font-size: .9375rem; }

/* Model va yon panel */
.bt-asosiy { padding-top: 28px; padding-bottom: 40px; }
.bt-ish { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.bt-model { min-width: 0; }
.bt-sahna-joy { position: relative; height: min(72vh, 720px); min-height: 440px; background: var(--qogoz); border: 1px solid var(--siyoh); overflow: hidden; }
.bt-sahna-joy.uch-o { min-height: 440px; }
.bt-oldin { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); opacity: .9; }
.bt-model-izoh { margin: 8px 0 0; font-size: .8125rem; color: var(--kul); }
.bt-panel button[aria-pressed="false"] { background: rgba(255, 255, 255, .86); }
.bt-panel .uch-o-amal:not([aria-pressed="true"]) { background: rgba(255, 255, 255, .92); }
.bt-ustida { position: absolute; z-index: 3; pointer-events: none; background: var(--oq); color: var(--siyoh); border: 1px solid var(--siyoh); font: 600 .8125rem/1.2 var(--shrift); padding: 5px 8px; white-space: nowrap; }
.bt-zaxira { padding: 16px; text-align: center; }
.bt-zaxira-rasm { max-width: 100%; height: auto; display: block; margin: 0 auto 10px; }

.bt-yon { background: var(--oq); border: 1px solid var(--chiziq); padding: 18px 18px 20px; max-height: min(72vh, 720px); min-height: 440px; overflow: auto; position: sticky; top: 84px; }
.bt-yon h2 { font-size: 1.125rem; margin: 0 0 6px; }
.bt-yon h3 { font: 600 .75rem/1 var(--shrift); letter-spacing: .06em; text-transform: uppercase; color: var(--kul); margin: 18px 0 8px; }
.bt-bosh { color: var(--kul); font-size: .875rem; line-height: 1.5; margin: 0; }
.bt-qismlar { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bt-qismlar button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; background: none; border: 0; border-left: 2px solid transparent; padding: 7px 8px; font: 500 .9375rem/1.3 var(--shrift); color: var(--siyoh); cursor: pointer; }
.bt-qismlar button:hover { background: var(--qogoz); }
.bt-qismlar button[aria-pressed="true"] { border-left-color: var(--kok); background: var(--kok-och); }
.bt-qismlar small { font: 600 .75rem/1 var(--shrift); color: var(--kul); background: var(--qogoz); padding: 3px 6px; border-radius: 9px; }
.bt-tanlov { position: relative; }
.bt-tanlov-teg { font: 600 .6875rem/1 var(--shrift); letter-spacing: .07em; text-transform: uppercase; color: var(--kok); margin: 0 0 6px; }
.bt-tanlov h2 { padding-right: 30px; }
.bt-tanlov > p { color: var(--siyoh-2); font-size: .9375rem; line-height: 1.55; margin: 0 0 4px; }
.bt-yop { position: absolute; top: -6px; right: -6px; width: 32px; height: 32px; border: 1px solid var(--chiziq); background: var(--oq); font-size: 20px; line-height: 1; cursor: pointer; color: var(--siyoh); }
.bt-yop:hover { border-color: var(--siyoh); }

/* Ko‘rsatkichlar */
.bt-korsatkich { padding-top: 24px; padding-bottom: 24px; }
.bt-dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--chiziq); border: 1px solid var(--chiziq); margin: 14px 0 10px; }
.bt-dl > div { background: var(--oq); padding: 14px 16px; }
.bt-dl dt { font-size: .8125rem; color: var(--kul); margin-bottom: 4px; }
.bt-dl dd { margin: 0; font-weight: 600; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }

/* Talablar */
.bt-talab-bolim { padding-top: 40px; }
.bt-filtr { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 8px; }
.bt-filtr button { font: 600 .8125rem/1 var(--shrift); padding: 8px 11px; border: 1px solid var(--chiziq-q); background: var(--oq); color: var(--siyoh); cursor: pointer; }
.bt-filtr button[aria-pressed="true"] { background: var(--siyoh); border-color: var(--siyoh); color: var(--teskari); }
.bt-filtr small { font-weight: 500; opacity: .75; margin-left: 2px; }
.bt-guruh h3 { font-size: 1.0625rem; margin: 28px 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--siyoh); }
.bt-talablar { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bt-talab { border-bottom: 1px solid var(--chiziq); padding: 12px 0 12px; scroll-margin-top: 90px; }
.bt-talab:target { background: var(--kok-och); }
.bt-talab-matn { margin: 0 0 6px; line-height: 1.55; max-width: 80ch; }
.bt-talab-manba { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .8125rem; }
.bt-talab-manba a, .bt-talab-manba > span { font-weight: 600; color: var(--kok); }
.bt-talab-manba > span { color: var(--siyoh-2); }
.bt-talab-manba small { color: var(--kul); }
.bt-korsat { font: 500 .75rem/1 var(--shrift); padding: 5px 8px; border: 1px solid var(--chiziq); background: var(--qogoz); color: var(--siyoh-2); cursor: pointer; }
.bt-korsat::before { content: "◆ "; color: var(--kok); }
.bt-korsat:hover { border-color: var(--kok); }
.bt-royxatda { font-size: .75rem; color: var(--kul); }
.bt-iqtibos { margin-top: 6px; }
.bt-iqtibos summary { cursor: pointer; font-size: .8125rem; color: var(--kul); width: max-content; }
.bt-iqtibos blockquote { margin: 8px 0 0; padding: 10px 12px; background: var(--qogoz); border-left: 3px solid var(--chiziq-q); font-size: .875rem; line-height: 1.55; color: var(--siyoh-2); max-width: 90ch; }
.bt-tahrir { font-size: .8125rem; color: var(--kul); margin: 6px 0 0; }
.bt-talablar-yon .bt-talab { padding: 10px 0; }
.bt-talablar-yon .bt-talab-matn { font-size: .9375rem; }

/* Rejalar */
.bt-reja-bolim { padding-top: 40px; }
.bt-reja { margin: 18px 0 28px; background: var(--oq); border: 1px solid var(--chiziq); padding: 14px; }
.bt-svg { display: block; width: 100%; height: auto; max-height: 640px; }
.bt-xona rect { stroke: var(--siyoh); stroke-width: 2.5; fill: #F7F8F6; }
.bt-x-yashash rect { fill: #FBF6EA; }
.bt-x-xizmat rect { fill: #EEF3F7; }
.bt-x-kommunikatsiya rect { fill: #ECECEA; }
.bt-x-ochiq rect { fill: #F2F7EE; stroke-dasharray: 6 4; stroke-width: 1.5; }
.bt-xn { font: 600 11px/1 var(--shrift); fill: var(--siyoh); text-anchor: middle; }
.bt-xn-k { font-size: 9px; }
.bt-xm-k { font-size: 8.5px; }
.bt-kv { fill: none; stroke: var(--siyoh); stroke-width: 4.5; }
.bt-kv-n { font: 600 12px/1 var(--shrift); fill: var(--siyoh); text-anchor: middle; }
html[data-tema="tun"] .bt-kv { stroke: #C9D2D8; }
.bt-xm { font: 500 10px/1 var(--shrift); fill: var(--kul); text-anchor: middle; }
.bt-xi { font: 500 11px/1 var(--shrift); fill: var(--kok); }
.bt-masshtab line { stroke: var(--siyoh); stroke-width: 2; }
.bt-masshtab text { font: 600 11px/1 var(--shrift); fill: var(--siyoh); }
.bt-reja figcaption { margin-top: 8px; font-size: .875rem; color: var(--kul); }
.bt-reja figcaption strong { color: var(--siyoh); }

.bt-ogoh-bolim { padding-top: 20px; }
.bt-ogoh { margin: 10px 0 0; padding-left: 1.2em; color: var(--siyoh-2); line-height: 1.6; max-width: 90ch; }
.bt-ogoh li { margin-bottom: 6px; }
.bt-orqaga { margin-top: 22px; }

/* Tungi rejim */
html[data-tema="tun"] .bt-karta, html[data-tema="tun"] .bt-yon, html[data-tema="tun"] .bt-reja, html[data-tema="tun"] .bt-dl > div, html[data-tema="tun"] .bt-filtr button:not([aria-pressed="true"]) { background: var(--oq); }
html[data-tema="tun"] .bt-xona rect { fill: #222C37; stroke: #C9D2D8; }
html[data-tema="tun"] .bt-x-yashash rect { fill: #2A2A22; }
html[data-tema="tun"] .bt-x-xizmat rect { fill: #1F2A35; }
html[data-tema="tun"] .bt-x-kommunikatsiya rect { fill: #262B30; }
html[data-tema="tun"] .bt-x-ochiq rect { fill: #1E2A22; }
/* 3D sahna tungi rejimda ham och rangda — tugmalar ham och palitrada qoladi (o‘qilishi uchun) */
html[data-tema="tun"] .bt-panel button { background: #FFFFFF; color: #17202B; border-color: #17202B; }
html[data-tema="tun"] .bt-panel button[aria-pressed="false"], html[data-tema="tun"] .bt-panel .uch-o-amal:not([aria-pressed="true"]) { background: rgba(255, 255, 255, .88); color: #4A5560; border-color: #B9C1C8; }
html[data-tema="tun"] .bt-panel .uch-o-amal[aria-pressed="true"] { background: #17202B; color: #FFFFFF; border-color: #17202B; }
html[data-tema="tun"] .bt-panel button:hover { border-color: #2F6FB3; }

/* Planshet va telefon */
@media (max-width: 1000px) {
	.bt-ish { grid-template-columns: minmax(0, 1fr); }
	.bt-yon { position: static; max-height: none; min-height: 0; }
	.bt-kartalar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bt-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.bt-qahramon { padding-top: 40px; padding-bottom: 36px; }
	.bt-kartalar, .bt-qadamlar { grid-template-columns: minmax(0, 1fr); }
	.bt-sahna-joy { height: 52vh; min-height: 360px; }
	.bt-sahna-joy.uch-o { min-height: 360px; }
	.bt-dl dd { font-size: 1rem; }
	.bt-reja { padding: 8px; }
}

/* v1.20.0: bosh sahifadagi «Bino turlari» bo‘limi */
.bosh-bt-lid { color: var(--kul); max-width: 62ch; margin: -8px 0 24px; }
.bosh-bt .matn-havola { white-space: nowrap; }
.bosh-bt-kartalar .bt-karta-matn { padding: 14px 16px 16px; }
@media (max-width: 640px) {
	/* telefonda — yonga suriladigan qator (6 ta baland karta o‘rniga) */
	.bosh-bt-kartalar { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; padding-bottom: 8px; }
	.bosh-bt-kartalar .bt-karta { flex: 0 0 78%; scroll-snap-align: start; min-height: 0; }
}
