:root {
	--ink: #122033;
	--muted: #5b6778;
	--line: #e4eaf2;
	--bg: #f6f8fb;
	--card: #fff;
	--brand: #0f5bd7;
	--brand-dark: #0b3f96;
	--accent: #e07a2f;
	--ok: #0f7b4a;
	--shadow: 0 10px 30px rgba(18, 32, 51, 0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
	font-family: "Segoe UI", Inter, Arial, sans-serif;
	color: var(--ink);
	background: var(--bg);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
a { color: var(--brand); }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.top {
	background: #fff;
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 20;
}
.top-inner { position: relative; }
.top-inner {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 12px 0;
}
.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--ink);
	font-weight: 800;
	letter-spacing: -0.03em;
	font-size: 18px;
}
.logo svg { display: block; }
.nav { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.nav a:hover, .nav a.active { color: var(--brand); }
.tools-heading {
	margin: 0 0 14px;
	font-size: 22px;
	letter-spacing: -0.03em;
	scroll-margin-top: 76px;
}
.cat.active { border-color: #8eb0e8; box-shadow: var(--shadow); }
.menu-btn {
	display: none;
	margin-left: auto;
	border: 0;
	background: var(--brand);
	color: #fff;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	cursor: pointer;
}
.hero {
	padding: 48px 0 28px;
}
.hero h1 {
	margin: 0 0 10px;
	font-size: clamp(32px, 5vw, 48px);
	letter-spacing: -0.04em;
	line-height: 1.1;
}
.hero p { margin: 0; color: var(--muted); font-size: 18px; max-width: 100%; }
.hero-search {
	margin-top: 22px;
	max-width: 560px;
}
.hero-search input, .field, textarea, select {
	width: 100%;
	border: 1.5px solid #d5deea;
	border-radius: 12px;
	padding: 12px 14px;
	font: inherit;
	background: #fff;
}
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 28px 0 40px; }
.cat {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 20px;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 2px rgba(18, 32, 51, 0.04);
	min-height: 168px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.cat:hover { border-color: #c9d6ea; box-shadow: var(--shadow); transform: translateY(-1px); }
.cat-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cat-icon { width: 48px; height: 48px; flex: 0 0 48px; }
.cat-icon svg, .tool-icon svg, .logo-svg { display: block; }
.cat-count { font-size: 13px; font-weight: 700; color: #8b95a5; }
.cat strong { display: block; font-size: 18px; margin: 4px 0 0; }
.cat > span { color: var(--muted); font-size: 14px; line-height: 1.4; flex: 1; }
.cat-samples { color: #7a8594; font-size: 12px; }
.cat-go { color: var(--brand); font-weight: 700; font-size: 18px; align-self: flex-end; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; padding-bottom: 64px; }
.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 16px;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.card:hover { border-color: #b9c9e6; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.tool-icon { width: 44px; height: 44px; flex: 0 0 44px; }
.badge {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--accent);
}
.card strong { font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.foot {
	margin-top: auto;
	border-top: 1px solid var(--line);
	background: #fff;
	padding: 22px 0;
	color: var(--muted);
	font-size: 14px;
}
.foot-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot a { color: var(--ink); text-decoration: none; margin-right: 12px; font-weight: 600; }
.page { padding: 28px 0 64px; }
.page h1 { margin: 0 0 8px; letter-spacing: -0.03em; }
.page-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
.page-head .tool-icon { width: 56px; height: 56px; flex: 0 0 56px; }
.page-head .tool-icon svg { width: 56px; height: 56px; }
.page-head .lead { margin-bottom: 0; }
.lead { color: var(--muted); margin: 0 0 22px; max-width: 720px; }
.crumb { font-size: 13px; margin-bottom: 14px; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.panel {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 18px;
	box-shadow: var(--shadow);
}
.row { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.btn {
	border: 0;
	background: var(--brand);
	color: #fff;
	border-radius: 10px;
	padding: 10px 14px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.btn:hover { background: var(--brand-dark); }
.btn.ghost { background: #eef3fb; color: var(--ink); }
.stats { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.stat { background: #f3f7fd; border-radius: 12px; padding: 10px 12px; min-width: 110px; }
.stat b { display: block; font-size: 20px; }
.stat span { color: var(--muted); font-size: 12px; }
.out {
	white-space: pre-wrap;
	word-break: break-word;
	background: #0f1724;
	color: #e8eef8;
	border-radius: 12px;
	padding: 14px;
	min-height: 80px;
	font-family: Consolas, "Courier New", monospace;
	font-size: 13px;
}
.preview-serp { max-width: 600px; font-family: Arial, sans-serif; }
.preview-serp .u { color: #202124; font-size: 14px; }
.preview-serp .t { color: #1a0dab; font-size: 20px; margin: 4px 0; }
.preview-serp .d { color: #4d5156; font-size: 14px; }
.preview-og {
	max-width: 480px;
	border: 1px solid #dadde1;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}
.preview-og img { width: 100%; height: 180px; object-fit: cover; background: #eee; }
.preview-og div { padding: 10px 12px; }
.preview-og small { color: #606770; text-transform: uppercase; }
.drop {
	border: 1.5px dashed #c5d2e4;
	border-radius: 14px;
	padding: 22px;
	text-align: center;
	background: #f8fbff;
	cursor: pointer;
}
canvas { max-width: 100%; height: auto; display: block; margin: 12px 0; background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 50% / 16px 16px; }
.howto { margin-top: 28px; color: var(--muted); }
.howto h2 { color: var(--ink); font-size: 20px; }
.related { margin-top: 36px; padding-bottom: 48px; }
.related h2 { font-size: 20px; margin: 0 0 14px; }
.related .grid { padding-bottom: 0; }
.card[hidden], .empty-msg[hidden] { display: none !important; }
@media (max-width: 720px) {
	.nav { display: none; }
	.nav.open {
		display: flex;
		flex-direction: column;
		position: absolute;
		right: 16px;
		top: 60px;
		background: #fff;
		border: 1px solid var(--line);
		border-radius: 12px;
		padding: 12px;
		box-shadow: var(--shadow);
	}
	.menu-btn { display: inline-flex; align-items: center; justify-content: center; }
}
