/* Fieldlot — начална страница */

main { overflow: hidden; }

.hero {
	position: relative;
	border-bottom: 1px solid var(--fl-line);
	background: var(--fl-surface);
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.hero-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.45;
	animation: hero-drift 14s ease-in-out infinite alternate;
}

.hero-orb-a {
	width: min(420px, 55vw);
	height: min(420px, 55vw);
	top: -12%;
	right: 8%;
	background: rgba(45, 106, 79, 0.22);
}

.hero-orb-b {
	width: min(360px, 45vw);
	height: min(360px, 45vw);
	bottom: -8%;
	left: 42%;
	background: rgba(232, 185, 35, 0.18);
	animation-delay: -5s;
}

.hero-grid-lines {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(30, 58, 95, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(30, 58, 95, 0.05) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
	animation: grid-pan 24s linear infinite;
}

@keyframes hero-drift {
	from { transform: translate(0, 0) scale(1); }
	to { transform: translate(-18px, 12px) scale(1.06); }
}

@keyframes grid-pan {
	from { background-position: 0 0; }
	to { background-position: 40px 40px; }
}

.hero-ticker {
	border-bottom: 1px solid var(--fl-line);
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	overflow: hidden;
}

.hero-ticker-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 12px;
}

.hero-ticker-track {
	display: flex;
	gap: 28px;
	width: max-content;
	padding: 10px 0;
	animation: ticker 28s linear infinite;
}

.hero-ticker-track span {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fl-muted);
	white-space: nowrap;
}

.hero-ticker-track span::before {
	content: "● ";
	color: var(--fl-accent);
}

@keyframes ticker {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
	animation: pulse-live 1.8s ease infinite;
	flex-shrink: 0;
}

@keyframes pulse-live {
	0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
	50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.badge-live {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 48px;
	align-items: center;
	padding: 64px 0 56px;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--fl-line);
	border-radius: 4px;
	background: var(--fl-brand-soft);
	padding: 6px 12px;
	color: var(--fl-brand);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

h1 {
	margin: 18px 0 0;
	max-width: 520px;
	font-size: clamp(34px, 5.5vw, 52px);
	font-weight: 700;
	line-height: 1.06;
	letter-spacing: -0.035em;
	color: var(--fl-ink);
}

.h1-line { display: block; }

.h1-accent {
	display: block;
	color: var(--fl-brand);
}

.hero-stagger > * {
	opacity: 0;
	animation: hero-in 0.65s ease forwards;
}

.hero-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.hero-stagger > *:nth-child(2) { animation-delay: 0.12s; }
.hero-stagger > *:nth-child(3) { animation-delay: 0.2s; }
.hero-stagger > *:nth-child(4) { animation-delay: 0.28s; }
.hero-stagger > *:nth-child(5) { animation-delay: 0.36s; }
.hero-stagger > *:nth-child(6) { animation-delay: 0.44s; }

@keyframes hero-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.lead {
	margin: 20px 0 0;
	max-width: 520px;
	color: var(--fl-muted);
	font-size: 17px;
	line-height: 1.65;
	font-weight: 400;
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}

.trust-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin-top: 32px;
	max-width: 640px;
	border: 1px solid var(--fl-line);
	border-radius: var(--fl-radius-lg);
	overflow: hidden;
	background: var(--fl-line);
}

.trust-item {
	background: var(--fl-white);
	padding: 16px 18px;
}

.trust-item span {
	display: block;
	color: var(--fl-muted);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.trust-item strong {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	font-weight: 600;
	color: var(--fl-ink);
}

.market-board {
	border: 1px solid var(--fl-line);
	border-radius: var(--fl-radius-lg);
	background: var(--fl-white);
	box-shadow: var(--fl-shadow-lg);
	overflow: hidden;
}

.market-board-live {
	animation: board-float 6s ease-in-out infinite;
}

@keyframes board-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-4px); }
}

.status-pill-live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.15) !important;
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.listing-enter {
	opacity: 0;
	animation: listing-in 0.5s ease forwards;
	animation-delay: calc(0.35s + var(--i, 0) * 0.1s);
}

@keyframes listing-in {
	from {
		opacity: 0;
		transform: translateX(8px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.listing {
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listing:hover {
	transform: translateY(-2px);
	box-shadow: var(--fl-shadow);
}

.market-board .board-head {
	background: var(--fl-brand);
	color: #fff;
	border-bottom: none;
}

.market-board .board-eyebrow {
	color: rgba(255, 255, 255, 0.72) !important;
}

.market-board .board-head h2 {
	color: #fff;
	font-weight: 600;
}

.market-board .status-pill {
	background: var(--yp-yellow);
	color: var(--yp-ink);
	border: 1px solid var(--yp-border);
	box-shadow: none;
	font-weight: 600;
}

.board-head,
.board-row,
.board-panel {
	border-bottom: 1px solid var(--fl-line);
}

.board-head {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
}

.board-head h2,
.section h2,
.footer-cta h2 {
	margin: 6px 0 0;
	font-size: clamp(22px, 3vw, 32px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.status-pill {
	align-self: start;
	border-radius: 4px;
	background: var(--fl-accent-soft);
	padding: 5px 10px;
	color: var(--fl-accent-hover);
	font-size: 11px;
	font-weight: 600;
}

.board-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--fl-line);
}

.metric {
	background: var(--fl-white);
	padding: 18px 20px;
}

.metric strong {
	display: block;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--fl-brand);
}

.metric span {
	color: var(--fl-muted);
	font-size: 13px;
}

.board-panel {
	padding: 16px;
	display: grid;
	gap: 8px;
	background: var(--yp-shelf);
}

.listing {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--yp-border);
	border-top: 3px solid var(--yp-yellow-bar);
	border-radius: var(--fl-radius);
	background: linear-gradient(180deg, var(--yp-yellow) 0%, var(--yp-yellow-soft) 100%);
	box-shadow: var(--fl-shadow-sm);
	color: var(--yp-ink);
}

.listing h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
}

.listing p {
	margin: 4px 0 0;
	color: var(--yp-muted);
	font-size: 13px;
	line-height: 1.45;
}

.board-panel .price {
	text-align: right;
	font-weight: 700;
	font-size: 15px;
}

.board-panel .price small {
	display: block;
	color: var(--yp-muted);
	font-size: 11px;
	font-weight: 500;
}

.section { padding: 72px 0; }

.section-lead {
	max-width: 560px;
	margin: 12px 0 0;
	color: var(--fl-muted);
	font-size: 16px;
	line-height: 1.65;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 28px;
}

.card {
	border: 1px solid var(--fl-line);
	border-radius: var(--fl-radius-lg);
	background: var(--fl-white);
	padding: 24px;
	box-shadow: var(--fl-shadow-sm);
	transition: box-shadow 0.15s ease;
}

.card:hover {
	box-shadow: var(--fl-shadow);
}

.card-icon {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: var(--fl-radius);
	background: var(--fl-brand-soft);
	color: var(--fl-brand);
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 16px;
}

.card h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
}

.card p {
	margin: 8px 0 0;
	color: var(--fl-muted);
	font-size: 14px;
	line-height: 1.6;
}

.band {
	border-top: 1px solid var(--fl-line);
	border-bottom: 1px solid var(--fl-line);
	background: var(--fl-white);
}

.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: 28px;
	border: 1px solid var(--fl-line);
	border-radius: var(--fl-radius-lg);
	overflow: hidden;
	background: var(--fl-white);
}

.step {
	padding: 24px;
	border-right: 1px solid var(--fl-line);
}

.step:last-child { border-right: 0; }

.step-num {
	color: var(--fl-brand);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.08em;
}

.footer-cta {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 40px;
	align-items: start;
	padding: 72px 0 80px;
}

.lead-form {
	border: 1px solid var(--fl-line);
	border-radius: var(--fl-radius-lg);
	background: var(--fl-white);
	padding: 28px;
	box-shadow: var(--fl-shadow);
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

label {
	display: grid;
	gap: 6px;
	color: var(--fl-ink);
	font-size: 13px;
	font-weight: 500;
}

label.full { grid-column: 1 / -1; }

input,
select,
textarea {
	width: 100%;
	border: 1px solid var(--fl-line);
	border-radius: var(--fl-radius);
	background: var(--fl-white);
	padding: 11px 12px;
	color: var(--fl-ink);
	outline: none;
}

textarea {
	min-height: 92px;
	resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--fl-accent);
	box-shadow: 0 0 0 3px var(--fl-accent-soft);
}

.check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 14px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--fl-muted);
}

.check input { width: 16px; margin-top: 3px; }

.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 18px;
}

.form-status {
	margin: 12px 0 0;
	min-height: 20px;
	font-size: 14px;
	font-weight: 500;
}

.form-status.ok { color: var(--fl-accent); }
.form-status.err { color: #b91c1c; }
.form-status.warn { color: #92400e; }

.fieldlot-preview-banner {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 10px 16px;
	font-size: 13px;
	line-height: 1.45;
	text-align: center;
	background: #fef3c7;
	color: #78350f;
	border-bottom: 1px solid #f59e0b;
}

.fieldlot-preview-banner a {
	color: var(--fl-brand);
	font-weight: 600;
}

.fieldlot-preview-banner em {
	font-style: normal;
	font-weight: 700;
}

.fine-print {
	margin-top: 16px;
	color: var(--fl-muted);
	font-size: 13px;
	line-height: 1.55;
}

.llm-launch {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 50;
	border: 1px solid var(--fl-line);
	border-radius: var(--fl-radius);
	background: var(--fl-brand-solid);
	color: #fff;
	padding: 12px 16px;
	box-shadow: var(--fl-shadow);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.llm-launch:hover { background: var(--fl-brand-solid-hover); }

.llm-panel {
	position: fixed;
	right: 20px;
	bottom: 76px;
	z-index: 51;
	width: min(400px, calc(100vw - 32px));
	max-height: min(560px, calc(100vh - 100px));
	display: none;
	grid-template-rows: auto 1fr auto auto;
	border: 1px solid var(--fl-line);
	border-radius: var(--fl-radius-lg);
	background: var(--fl-white);
	box-shadow: var(--fl-shadow-lg);
	overflow: hidden;
}

.llm-panel.open { display: grid; }

.llm-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px;
	border-bottom: 1px solid var(--fl-line);
}

.llm-status.is-offline {
	color: #b45309;
	font-weight: 700;
}

.llm-panel--offline .llm-hint {
	color: #92400e;
}

.llm-panel--offline .llm-foot textarea:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.llm-status {
	border-radius: 4px;
	background: var(--fl-accent-soft);
	color: var(--fl-accent-hover);
	padding: 4px 8px;
	font-size: 11px;
	font-weight: 600;
}

.llm-close {
	width: 32px;
	height: 32px;
	border: 1px solid var(--fl-line);
	border-radius: var(--fl-radius);
	background: var(--fl-white);
	cursor: pointer;
}

.llm-msgs {
	display: grid;
	align-content: start;
	gap: 8px;
	padding: 14px;
	overflow: auto;
}

.msg {
	border-radius: var(--fl-radius);
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.5;
	white-space: pre-wrap;
}

.msg.user {
	justify-self: end;
	max-width: 88%;
	background: var(--fl-brand);
	color: #fff;
}

.msg.assistant {
	max-width: 92%;
	background: var(--fl-surface-2);
	color: var(--fl-ink);
}

.llm-hint {
	margin: 0;
	padding: 0 14px 12px;
	color: var(--fl-muted);
	font-size: 12px;
	line-height: 1.45;
}

.llm-foot {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 8px;
	align-items: end;
	padding: 14px;
	border-top: 1px solid var(--fl-line);
}

.llm-photo {
	width: 40px;
	height: 40px;
	border: 1px solid var(--fl-line);
	border-radius: var(--fl-radius);
	background: var(--fl-surface);
	font-size: 1.05rem;
	cursor: pointer;
}

.llm-photo:hover {
	background: rgba(45, 106, 79, 0.08);
}

.llm-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0 12px 8px;
}

.llm-quick-btn {
	font-size: 0.72rem;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid var(--fl-line);
	background: var(--fl-surface);
	color: var(--fl-ink);
	cursor: pointer;
}

.llm-quick-btn:hover {
	border-color: var(--fl-accent);
	background: rgba(45, 106, 79, 0.06);
}

.llm-draft-box {
	margin-top: 10px;
	padding: 10px;
	border-radius: 8px;
	background: rgba(15, 26, 20, 0.06);
	border: 1px dashed var(--fl-line);
	font-size: 0.8rem;
	white-space: pre-wrap;
	max-height: 220px;
	overflow: auto;
}

.llm-draft-copy {
	margin-top: 6px;
	font-size: 0.75rem;
	padding: 4px 10px;
	border-radius: 6px;
	border: 1px solid var(--fl-line);
	background: #fff;
	cursor: pointer;
}

.llm-foot textarea {
	min-height: 44px;
	max-height: 120px;
}

.llm-send {
	border: 0;
	border-radius: var(--fl-radius);
	background: var(--fl-accent);
	color: #fff;
	padding: 0 14px;
	font-weight: 600;
	cursor: pointer;
}

.llm-send:hover { background: var(--fl-accent-hover); }

.reveal {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 920px) {
	.hero { min-height: auto; }
	.hero-grid,
	.footer-cta { grid-template-columns: 1fr; }
	.card-grid,
	.steps { grid-template-columns: 1fr; }
	.step {
		border-right: 0;
		border-bottom: 1px solid var(--fl-line);
	}
	.step:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
	.hero-grid { padding-top: 40px; }
	h1 { font-size: 32px; }
	.trust-strip,
	.board-row,
	.form-grid { grid-template-columns: 1fr; }
	.cta-row .btn,
	.form-actions .btn { width: 100%; }
	.llm-launch { right: 12px; bottom: 12px; }
	.llm-panel {
		right: 12px;
		bottom: 64px;
		width: calc(100vw - 24px);
	}
}
