/* Fieldlot — каталог (типография като началната страница) */

body {
	font-family: var(--fl-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
	font: inherit;
}

.catalog-hero {
	position: relative;
	padding: 40px 0 32px;
	margin-bottom: 8px;
	border-radius: var(--fl-radius-xl);
	overflow: hidden;
}

.catalog-hero-bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			115deg,
			rgba(15, 51, 38, 0.35) 0%,
			rgba(26, 77, 58, 0.22) 50%,
			rgba(15, 26, 20, 0.4) 100%
		),
		url("/images/hero/background.jpg") center / cover;
	pointer-events: none;
}

.catalog-hero-panel {
	position: relative;
	z-index: 1;
	padding: 28px 32px;
	border-radius: var(--fl-radius-xl);
	background: rgba(255, 255, 255, 0.52);
	border: 1px solid rgba(255, 255, 255, 0.55);
	box-shadow: 0 12px 40px rgba(11, 18, 32, 0.12);
	backdrop-filter: blur(3px);
}

.catalog-hero-panel h1,
.catalog-hero-panel p {
	color: var(--fl-ink);
}

.demo-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 28px;
	padding: 14px 18px;
	border-radius: var(--fl-radius);
	border: 1px solid var(--fl-line);
	border-left: 4px solid var(--yp-yellow-bar);
	background: var(--fl-white);
	color: var(--fl-muted);
	font-size: 14px;
	line-height: 1.5;
}

.demo-banner strong {
	color: var(--fl-ink);
	font-weight: 600;
}

.catalog-hero h1 {
	margin: 0;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: var(--fl-ink);
}

.catalog-hero p {
	margin: 10px 0 0;
	max-width: 560px;
	color: var(--fl-muted);
	line-height: 1.6;
	font-size: 15px;
}

.toolbar {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) auto;
	gap: 12px;
	margin: 24px 0 20px;
	padding: 20px;
	border: 1px solid var(--fl-line);
	border-radius: var(--fl-radius-lg);
	background: var(--fl-white);
	box-shadow: var(--fl-shadow-sm);
}

.toolbar label {
	display: grid;
	gap: 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fl-muted);
}

.toolbar input,
.toolbar select {
	min-height: 40px;
	padding: 0 12px;
	border: 1px solid var(--fl-line);
	border-radius: var(--fl-radius);
	background: var(--fl-white);
}

.toolbar input:focus,
.toolbar select:focus {
	outline: none;
	border-color: var(--fl-accent);
	box-shadow: 0 0 0 3px var(--fl-accent-soft);
}

.results-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
	font-size: 14px;
	color: var(--fl-muted);
}

.results-meta strong {
	color: var(--fl-ink);
	font-weight: 600;
}



.detail-backdrop {
	position: fixed;
	inset: 0;
	z-index: 50;
	background: rgba(15, 23, 42, 0.4);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.detail-backdrop.open {
	opacity: 1;
	pointer-events: auto;
}

.detail-panel {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 51;
	width: min(100%, 420px);
	height: 100%;
	background: var(--fl-white);
	border-left: 1px solid var(--fl-line);
	box-shadow: var(--fl-shadow-lg);
	color: var(--fl-ink);
	transform: translateX(100%);
	transition: transform 0.25s ease;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.detail-panel.open { transform: translateX(0); }

.detail-head {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 20px 16px;
	border-bottom: 1px solid var(--fl-line);
	border-top: 4px solid var(--yp-yellow-bar);
	background: var(--fl-brand);
	color: #fff;
}

.detail-head .board-eyebrow {
	color: rgba(255, 255, 255, 0.7) !important;
}

.detail-head h2 {
	margin: 6px 0 0;
	font-size: 20px;
	font-weight: 600;
	color: #fff;
}

.detail-close {
	border: none;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.75);
	padding: 4px;
}

.detail-close:hover { color: #fff; }

.detail-body {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
}

.detail-highlight {
	margin: 0 0 20px;
	padding: 14px 16px;
	border-radius: var(--fl-radius);
	border: 1px solid var(--yp-border);
	background: linear-gradient(180deg, var(--yp-yellow-soft) 0%, var(--yp-yellow) 100%);
}

.detail-highlight .price {
	font-size: 22px;
}

.detail-dl {
	display: grid;
	gap: 14px;
	margin: 0;
}

.detail-dl div {
	display: grid;
	gap: 4px;
}

.detail-dl dt {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fl-muted);
}

.detail-dl dd {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
}

.detail-note {
	margin-top: 16px;
	padding: 12px 14px;
	border-radius: var(--fl-radius);
	border: 1px solid var(--fl-line);
	background: var(--fl-surface);
	font-size: 13px;
	line-height: 1.55;
	color: var(--fl-muted);
}

.detail-foot {
	padding: 16px 20px 24px;
	border-top: 1px solid var(--fl-line);
	background: var(--fl-surface);
	display: grid;
	gap: 10px;
}

@media (max-width: 900px) {
	.toolbar { grid-template-columns: 1fr 1fr; }
	.toolbar label:first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
	.toolbar { grid-template-columns: 1fr; }
}
