/* Ledi.ru — тёплая палитра старого сайта (#FBEBB6, #BB9514) на современной адаптивной вёрстке */
:root {
	--bg: #fffdf7;
	--surface: #ffffff;
	--cream: #fbf1d3;
	--gold: #a8820f;
	--gold-dark: #7a5d05;
	--text: #2b2620;
	--muted: #6f665a;
	--line: #eadfbe;
	--radius: 10px;
	--width: 1120px;
	font-size: 17px;
}
@media (prefers-color-scheme: dark) {
	:root { --bg: #1b1814; --surface: #24201b; --cream: #2e2820; --gold: #d9b24a; --gold-dark: #f0cd6b;
		--text: #ece5d8; --muted: #a99f8f; --line: #3d352a; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
	font: 1rem/1.6 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--gold-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }
.container { max-width: var(--width); margin: 0 auto; padding: 0 16px; }

/* шапка */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 10px; }
.logo { font: 700 1.9rem/1 Georgia, "Times New Roman", serif; color: var(--gold-dark); text-decoration: none; }
.logo span { color: var(--gold); font-weight: 400; }
.search-form { margin-left: auto; flex: 0 1 320px; }
.search-form input, .search-big input { width: 100%; padding: 8px 12px; font: inherit; border: 1px solid var(--line);
	border-radius: var(--radius); background: var(--surface); color: var(--text); }
.sections { border-top: 1px solid var(--line); }
.sections .container { display: flex; gap: 4px 18px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.sections a { color: var(--text); text-decoration: none; font-weight: 500; white-space: nowrap; }
.sections a:hover { color: var(--gold); }

/* содержимое */
main { padding-top: 20px; padding-bottom: 48px; min-height: 60vh; }
h1 { font: 700 2rem/1.25 Georgia, "Times New Roman", serif; margin: .2em 0 .5em; }
h2 { font: 700 1.4rem/1.3 Georgia, "Times New Roman", serif; margin: 1.6em 0 .6em; }
h2 a { text-decoration: none; }
.breadcrumbs { font-size: .85rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.meta { color: var(--muted); font-size: .9rem; }
.notice { background: var(--cream); border-left: 4px solid var(--gold); padding: 8px 12px; border-radius: 4px; font-size: .92rem; }
.tags a { display: inline-block; margin: 0 6px 6px 0; padding: 2px 10px; border-radius: 99px; background: var(--cream);
	text-decoration: none; font-size: .9rem; }

.page { max-width: 820px; }
.content { overflow-wrap: break-word; }
.content img[align=right], .content img[style*="float: right"], .content img[style*="float:right"] { float: right; margin: 4px 0 12px 18px; }
.content img[align=left], .content img[style*="float: left"], .content img[style*="float:left"] { float: left; margin: 4px 18px 12px 0; }
.content table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.content td, .content th { border: 1px solid var(--line); padding: 4px 8px; vertical-align: top; }
.content::after { content: ""; display: block; clear: both; }

/* списки */
.cards { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cards li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.cards a { text-decoration: none; }
.cards p { margin: 6px 0 0; color: var(--muted); font-size: .88rem; }
.cards .sublinks { list-style: none; margin: 8px 0 0; padding: 0; font-size: .9rem; }
.cards .sublinks li { border: 0; padding: 2px 0; background: none; }
.cards .sublinks a { color: var(--text); }
.list { list-style: none; padding: 0; margin: 0 0 24px; }
.list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.list time { color: var(--muted); font-size: .85rem; margin-left: 8px; }
.list p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.list.columns { columns: 2 260px; column-gap: 32px; }
.list.columns li { break-inside: avoid; border: 0; padding: 3px 0; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; }
.pager a, .pager span { padding: 4px 11px; border-radius: 6px; border: 1px solid var(--line); text-decoration: none; }
.pager .current { background: var(--gold); color: #fff; border-color: var(--gold); }

.firm dt { font-weight: 600; margin-top: 10px; }
.firm dd { margin: 2px 0 0; }

.search-big { display: flex; gap: 8px; margin: 12px 0 20px; }
.search-big button { padding: 8px 18px; font: inherit; border: 0; border-radius: var(--radius); background: var(--gold); color: #fff; cursor: pointer; }

.site-footer { background: var(--cream); border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; padding: 18px 0; }
.site-footer a { color: var(--muted); }

@media (max-width: 640px) {
	:root { font-size: 16px; }
	h1 { font-size: 1.6rem; }
	.header-row { flex-wrap: wrap; }
	.search-form { flex: 1 1 100%; }
	.sections .container { overflow-x: auto; flex-wrap: nowrap; }
	.content img[align], .content img[style*="float"] { float: none !important; display: block; margin: 8px auto; }
}

/* каталог фирм */
.page.wide { max-width: none; }
.muted { color: var(--muted); }
h2 small, h1 small { font: 400 1rem/1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.badge { display: inline-block; padding: 0 8px; border-radius: 99px; background: var(--cream); font-size: .8rem; margin-right: 6px; }
.firm-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.firm-filter input, .firm-filter select { padding: 7px 10px; font: inherit; border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--surface); color: var(--text); max-width: 100%; }
.firm-filter input[type=search] { flex: 1 1 220px; }
.firm-filter button { padding: 7px 16px; font: inherit; border: 0; border-radius: var(--radius); background: var(--gold); color: #fff; cursor: pointer; }
.alphabet { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 16px; }
.alphabet a { min-width: 1.9em; text-align: center; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.alphabet a.current { background: var(--gold); color: #fff; border-color: var(--gold); }
.firm-cards { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.firm-cards li { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 12px 14px; font-size: .92rem; }
.firm-cards .name { font-weight: 600; font-size: 1rem; text-decoration: none; }
.firm-cards .addr, .firm-cards .metro { color: var(--muted); }
.firm-cards .site { overflow-wrap: anywhere; }
.list.counted li { display: flex; justify-content: space-between; gap: 12px; }
.list.counted .count { color: var(--muted); font-size: .85rem; }
