/* доска объявлений: лента, объявление */
.fx-bd-head { display: flex; align-items: center; gap: 18px; margin: 14px 0 0; }
.fx-bd-head h1 { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; color: var(--fx-text); overflow-wrap: anywhere; }
.fx-bd-head > div { flex: 1; min-width: 0; }
.fx-bd-head-ico { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(160deg, #F59E0B, #D97706); font-size: 24px; color: #fff; }
.fx-bd-head-ico:before { margin: 0; }
.fx-bd-add { flex: none; box-sizing: border-box; padding: 0 18px; }
.fx-bd-add [class^="icon-"]:before { margin: 0; }

/* лента */
.fx-bd-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.fx-bd-item { display: flex; align-items: flex-start; gap: 16px; margin: 0; padding: 16px 18px; }
.fx-bd-img { flex: none; display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; overflow: hidden; border-radius: 14px; background: #F3F6FA; font-size: 28px; color: #CBD5E1; text-decoration: none; }
.fx-bd-img img { width: 100%; height: 100%; object-fit: cover; }
.fx-bd-body { flex: 1; min-width: 0; }
.fx-page .fx-bd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.fx-bd-type, .fx-bd-state { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: #F3F6FA; font-size: 12px; font-weight: 800; color: #475569; }
.fx-bd-type.fx-bd-t1 { background: #E7F7EC; color: #1E7A3C; }
.fx-bd-type.fx-bd-t2 { background: #E8F0FE; color: #1D4ED8; }
.fx-bd-type.fx-bd-t3 { background: #FDF2F8; color: #BE185D; }
.fx-bd-type.fx-bd-t4 { background: #FFF3D6; color: #92400E; }
.fx-bd-title { font-size: 16.5px; font-weight: 800; line-height: 1.35; color: var(--fx-text); text-decoration: none; overflow-wrap: anywhere; }
.fx-bd-title:hover { color: var(--fx-link); }
.fx-page .fx-bd-descr { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; color: #3A4C5E; overflow-wrap: anywhere; }
.fx-page .fx-bd-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; font-size: 13.5px; color: var(--fx-muted); }
.fx-bd-meta [class^="icon-"]:before { margin: 0 3px 0 0; }
.fx-bd-price { flex: none; font-size: 18px; font-weight: 800; color: var(--fx-text); white-space: nowrap; }

/* пусто и архив */
.fx-bd-empty { padding: 26px 28px; text-align: center; }
.fx-bd-empty-ico { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: #FFF3D6; font-size: 24px; color: #D97706; }
.fx-bd-empty-ico:before { margin: 0; }
.fx-bd-empty h2 { margin: 14px 0 6px; font-size: 20px; font-weight: 800; color: var(--fx-text); }
.fx-page .fx-bd-empty p { max-width: 520px; margin: 0 auto 18px; font-size: 15px; line-height: 1.55; color: #3A4C5E; }
.fx-bd-empty .fx-svcl-go { display: inline-flex; padding: 0 22px; }
.fx-bd-arch-note { margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: #F3F6FA; font-size: 12.5px; font-weight: 700; color: #64748B; vertical-align: 3px; }
.fx-bd-arch { margin: 0; padding: 4px 20px; list-style: none; }
.fx-bd-arch li { margin: 0; border-top: 1px solid #EEF2F6; }
.fx-bd-arch li:first-child { border-top: 0; }
.fx-bd-arch a { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; text-decoration: none; }
.fx-bd-arch b { font-size: 15px; font-weight: 700; color: #3A4C5E; overflow-wrap: anywhere; }
.fx-bd-arch a:hover b { color: var(--fx-link); }
.fx-bd-arch small { font-size: 13px; color: var(--fx-muted); }

/* объявление */
.fx-page .fx-bda-stopped { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 14px 0 0; padding: 12px 16px; border: 1px solid #FCD9A8; border-radius: 14px; background: #FFF8EB; font-size: 14.5px; color: #7C4A03; }
.fx-bda-stopped [class^="icon-"]:before { margin: 0; color: #D97706; }
.fx-bda-stopped a { font-weight: 700; color: #92400E; }
.fx-bda-card { margin-top: 14px; padding: 24px 28px; }
.fx-bda-card h1 { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; color: var(--fx-text); overflow-wrap: anywhere; }
.fx-page .fx-bda-price { margin: 10px 0 0; font-size: 26px; font-weight: 800; color: var(--fx-text); }
.fx-bda-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 18px; }
.fx-bda-imgs:not(:has(figure)) { display: none; }
.fx-bda-img { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: #F3F6FA; }
.fx-bda-img a { display: block; }
.fx-bda-img img { display: block; width: 100%; height: 220px; object-fit: contain; }
.fx-bda-imgdel { position: absolute; left: 8px; bottom: 8px; padding: 5px 10px; border: 1px solid #F5B5C2; border-radius: 9px; background: #FFF5F7; font: inherit; font-size: 12.5px; font-weight: 700; color: #BE123C; cursor: pointer; }
.fx-bda-text { margin-top: 18px; font-size: 16.5px; line-height: 1.7; color: #1F2F40; overflow-wrap: anywhere; }
.fx-bda-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: #F3F6FA; }
.fx-bda-contacts-h { font-size: 14.5px; font-weight: 700; color: #24384C; }
.fx-bda-contacts-h [class^="icon-"]:before { margin: 0 6px 0 0; color: #2E9A4E; }
#adv_contacts.is-open { font-size: 16px; font-weight: 700; color: var(--fx-text); overflow-wrap: anywhere; }
.fx-bda-reply { margin: 8px 0 0 16px; padding: 10px 14px; border-left: 3px solid #A7DDB8; border-radius: 0 10px 10px 0; background: #F0FAF4; font-size: 14.5px; }
.fx-bda-reply b { font-size: 12.5px; color: #1E7A3C; }
.fx-page .fx-bda-reply p { margin: 4px 0 0; }
.fx-bda-reply-edit { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--fx-muted); text-decoration: none; }
.fx-bda-reply-edit [class^="icon-"]:before { margin: 0 4px 0 0; }
.fx-bda-file { position: relative; overflow: hidden; }
.fx-bda-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fx-bda-author { display: flex; align-items: center; gap: 12px; }
.fx-bda-author > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fx-bda-my h2 { margin: 0 0 8px; font-size: 17px; font-weight: 800; color: var(--fx-text); }
.fx-page .fx-bda-my-st { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #92400E; }
.fx-page .fx-bda-my-st.is-on { color: #1E7A3C; }
.fx-bda-my form { margin: 0; }
.fx-bda-my *:has(> #imgFile) { float: none !important; display: block !important; width: 100% !important; }
.fx-bda-my-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 40px; margin-top: 8px; box-sizing: border-box; border: 1px solid #CBD8E6; border-radius: 11px; background: #fff; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--fx-text); text-decoration: none; cursor: pointer; }
.fx-bda-my-btn:hover { border-color: #9DBDE6; background: #F5F9FF; }
.fx-bda-my-btn [class^="icon-"]:before { margin: 0; }
.fx-bda-my-btn.is-main { border: 0; background: linear-gradient(180deg, #3BC06A, #2E9A4E); color: #fff; }
.fx-bda-my-btn.is-stop { border-color: #F5B5C2; background: #FFF5F7; color: #BE123C; }

@media (max-width: 700px) {
	.fx-bd-head { flex-wrap: wrap; }
	.fx-bd-head h1 { font-size: 24px; }
	.fx-bd-add { width: 100%; justify-content: center; }
	.fx-bd-item { flex-wrap: wrap; padding: 14px; gap: 12px; }
	.fx-bd-img { width: 72px; height: 72px; }
	.fx-bd-price { order: 3; width: 100%; padding-left: 84px; box-sizing: border-box; }
	.fx-bd-empty { padding: 22px 18px; }
	.fx-bd-arch { padding: 2px 16px; }
	.fx-bda-card { padding: 18px; }
	.fx-bda-card h1 { font-size: 23px; }
	.fx-bda-img img { height: 200px; }
}
