:root {
	--bg: #f8fafc;
	--surface: #ffffff;
	--surface-soft: #f1f5f9;
	--ink: #081a3a;
	--text: #263b5f;
	--muted: #607089;
	--line: #dfe7f2;
	--primary: #2563eb;
	--primary-dark: #1d4ed8;
	--cyan: #0891b2;
	--green: #16a34a;
	--pink: #db2777;
	--amber: #d97706;
	--violet: #7c3aed;
	--shadow: 0 18px 44px rgba(9, 30, 66, .08);
	--radius: 8px;
	--container: 1180px;
	font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--ink);
	background: var(--bg);
	font-size: 16px;
	line-height: 1.5;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
select {
	font: inherit;
}

.site-container {
	width: min(var(--container), calc(100% - 48px));
	margin-inline: auto;
}

.narrow {
	max-width: 900px;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	background: var(--ink);
	color: #fff;
	padding: 10px 12px;
	border-radius: var(--radius);
}

.skip-link:focus {
	top: 16px;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}

.header-inner {
	height: 74px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 850;
	font-size: 21px;
	color: var(--ink);
}

.brand-mark {
	width: 30px;
	height: 30px;
	display: inline-grid;
	place-items: center;
	background: var(--primary);
	color: #fff;
	border-radius: 8px;
	font-weight: 900;
	line-height: 1;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 30px;
	font-size: 14px;
	font-weight: 750;
	color: var(--ink);
}

.main-nav a:hover,
.main-nav a:focus {
	color: var(--primary);
}

.header-action,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	min-height: 42px;
	padding: 10px 16px;
	background: #fff;
	color: var(--ink);
	font-weight: 800;
	font-size: 14px;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.button-primary {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
	box-shadow: 0 10px 24px rgba(37, 99, 235, .24);
}

.button-primary:hover,
.button-primary:focus {
	background: var(--primary-dark);
	border-color: var(--primary-dark);
	transform: translateY(-1px);
}

.button-secondary:hover,
.button-secondary:focus,
.header-action:hover,
.header-action:focus {
	border-color: #9cc4ff;
	color: var(--primary);
	box-shadow: 0 10px 22px rgba(37, 99, 235, .10);
}

.button[disabled] {
	opacity: .55;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.mobile-menu-button,
.mobile-menu {
	display: none;
}

.hero {
	background: linear-gradient(180deg, #fff 0%, #eef6ff 100%);
	padding: 64px 0 42px;
	border-bottom: 1px solid #e8eef8;
}

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
	gap: 58px;
	align-items: center;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	width: max-content;
	max-width: 100%;
	min-height: 28px;
	padding: 6px 10px;
	border: 1px solid #dbeafe;
	border-radius: 999px;
	background: #eff6ff;
	color: #174ea6;
	font-size: 12px;
	font-weight: 850;
	text-transform: uppercase;
	letter-spacing: .04em;
}

h1,
h2,
h3,
p {
	overflow-wrap: anywhere;
}

.hero h1,
.page-top h1,
.tool-hero-grid h1,
.article-card h1 {
	margin: 18px 0 16px;
	font-size: 52px;
	line-height: 1.04;
	letter-spacing: 0;
}

.hero p,
.page-top p,
.tool-hero-grid > div > p,
.article-card .lead {
	margin: 0;
	max-width: 640px;
	color: var(--text);
	font-size: 18px;
}

.trust-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 22px;
	margin-top: 28px;
	color: var(--ink);
	font-size: 14px;
	font-weight: 750;
}

.trust-row span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 28px;
}

.trust-row span::before {
	content: "";
	width: 18px;
	height: 18px;
	display: inline-block;
	border-radius: 6px;
	background: #dbeafe;
	box-shadow: inset 0 0 0 5px #eff6ff;
}

.hero-tool-card,
.tool-panel,
.content-card,
.side-panel,
.tool-card,
.step-card,
.why-panel,
.use-card,
.catalog-card,
.format-card,
.legal-doc,
.page-meta-card,
.article-card,
.toc,
.not-found-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.hero-tool-card,
.tool-panel {
	padding: 22px;
}

.dropzone {
	min-height: 260px;
	display: grid;
	place-items: center;
	text-align: center;
	padding: 30px;
	border: 2px dashed #82b5ff;
	border-radius: var(--radius);
	background: linear-gradient(180deg, #f8fbff, #fff);
	transition: border-color .18s ease, background .18s ease;
}

.dropzone.is-dragover {
	border-color: var(--primary);
	background: #eff6ff;
}

.upload-icon {
	width: 72px;
	height: 72px;
	display: grid;
	place-items: center;
	margin-bottom: 12px;
	color: var(--primary);
	font-size: 44px;
	line-height: 1;
}

.dropzone h2 {
	margin: 0;
	font-size: 21px;
	line-height: 1.2;
}

.dropzone p,
.dropzone small {
	display: block;
	margin: 4px 0 14px;
	color: var(--muted);
	font-size: 13px;
}

.home-route-note {
	margin-top: 14px;
	color: var(--muted);
	font-size: 13px;
	text-align: center;
}

.home-picker {
	margin-top: 16px;
	display: grid;
	gap: 14px;
}

.home-preview-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.home-preview-item,
.home-preview-more {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	min-height: 70px;
	padding: 9px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}

.home-preview-item img {
	width: 54px;
	height: 54px;
	object-fit: contain;
	border-radius: 6px;
	background: #f8fafc;
}

.home-preview-item b,
.home-preview-item span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.home-preview-item b {
	font-size: 13px;
}

.home-preview-item span {
	color: var(--muted);
	font-size: 12px;
}

.home-preview-more {
	grid-template-columns: 1fr;
	place-items: center;
	color: var(--primary);
	font-weight: 850;
}

.home-action-panel {
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #f8fbff;
}

.home-action-panel h2 {
	margin: 0 0 10px;
	font-size: 16px;
	text-align: center;
}

.home-action-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
}

.home-action {
	min-height: 58px;
	display: grid;
	place-items: center;
	gap: 4px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	color: var(--ink);
	font-weight: 850;
	font-size: 12px;
	cursor: pointer;
}

.home-action span {
	color: var(--primary);
	font-size: 13px;
}

.home-action:hover,
.home-action:focus {
	border-color: #9cc4ff;
	box-shadow: 0 10px 22px rgba(37, 99, 235, .10);
}

.quick-tabs {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 18px;
	margin-top: -26px;
	position: relative;
	z-index: 3;
}

.quick-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 12px 26px rgba(9, 30, 66, .08);
	font-size: 14px;
	font-weight: 850;
}

.quick-tab span {
	color: var(--cyan);
}

.quick-tab.is-active,
.quick-tab:hover,
.quick-tab:focus {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
}

.quick-tab.is-active span,
.quick-tab:hover span {
	color: #fff;
}

.section {
	padding: 48px 0;
}

.section-compact {
	padding-top: 20px;
}

.section-title,
.faq-block h2,
.why-panel h2 {
	margin: 0 0 24px;
	text-align: center;
	font-size: 28px;
	line-height: 1.2;
}

.tool-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.tool-card {
	position: relative;
	display: block;
	min-height: 176px;
	padding: 18px;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.tool-card:hover,
.tool-card:focus {
	transform: translateY(-2px);
	border-color: #9cc4ff;
	box-shadow: 0 20px 46px rgba(37, 99, 235, .13);
}

.file-badge {
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	margin-bottom: 14px;
	border-radius: var(--radius);
	background: #d9f99d;
	color: #166534;
	font-size: 13px;
	font-weight: 950;
	text-align: center;
	line-height: 1.05;
}

.tool-card:nth-child(2n) .file-badge,
.format-card:nth-child(2n) .file-badge {
	background: #fed7aa;
	color: #9a3412;
}

.tool-card:nth-child(3n) .file-badge,
.format-card:nth-child(3n) .file-badge {
	background: #ddd6fe;
	color: #5b21b6;
}

.tool-card:nth-child(4n) .file-badge,
.format-card:nth-child(4n) .file-badge {
	background: #a7f3d0;
	color: #047857;
}

.tool-card:nth-child(5n) .file-badge,
.format-card:nth-child(5n) .file-badge {
	background: #fecdd3;
	color: #be123c;
}

.tool-card h3,
.format-card h2,
.catalog-card h2,
.use-card h3 {
	margin: 0 0 8px;
	font-size: 17px;
	line-height: 1.25;
}

.tool-card p,
.format-card p,
.use-card p,
.step-card p,
.why-panel p,
.content-card p,
.content-card li,
.legal-doc p,
.article-card p,
.article-card li {
	color: var(--text);
	font-size: 14px;
}

.tool-card p {
	margin: 0 0 22px;
}

.card-arrow {
	position: absolute;
	right: 18px;
	bottom: 16px;
	color: var(--ink);
	font-weight: 900;
}

.steps-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	max-width: 850px;
	margin: 0 auto;
}

.step-card {
	padding: 20px;
	box-shadow: none;
}

.step-card span {
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--primary);
	color: #fff;
	font-weight: 900;
}

.step-card h3 {
	margin: 0 0 6px;
	font-size: 16px;
}

.why-panel {
	padding: 24px;
	box-shadow: none;
}

.why-grid,
.use-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 14px;
}

.why-grid div,
.use-card {
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: none;
}

.why-grid b {
	display: block;
	margin-bottom: 6px;
}

.page-top {
	padding: 46px 0 32px;
	background: linear-gradient(180deg, #fff, #f8fafc);
	border-bottom: 1px solid var(--line);
}

.page-title-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 290px;
	gap: 28px;
	align-items: end;
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
}

.breadcrumbs a:hover {
	color: var(--primary);
}

.page-meta-card {
	padding: 18px;
	box-shadow: none;
}

.page-meta-card b,
.page-meta-card span {
	display: block;
}

.page-meta-card span {
	margin-top: 6px;
	color: var(--muted);
	font-size: 13px;
}

.tool-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, .92fr) minmax(400px, .78fr);
	gap: 48px;
	align-items: start;
	padding: 46px 0;
}

.settings-block {
	margin-top: 16px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #f8fafc;
}

.settings-title,
.settings-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.settings-title {
	margin-bottom: 12px;
	font-size: 14px;
}

.settings-title span,
.settings-row span {
	color: var(--muted);
	font-size: 13px;
}

.settings-row.is-disabled {
	opacity: 0.62;
}

.settings-row label {
	font-weight: 800;
	font-size: 14px;
}

.settings-row + .settings-row {
	margin-top: 12px;
}

.settings-row input[type="range"] {
	width: min(180px, 38vw);
}

.settings-row input[type="range"]:disabled {
	cursor: not-allowed;
}

.settings-row select {
	min-width: 120px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	padding: 8px 10px;
	font-weight: 800;
	color: var(--ink);
}

.size-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

.size-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.size-option span {
	display: grid;
	place-items: center;
	min-height: 42px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	font-weight: 850;
	font-size: 13px;
}

.size-option input:checked + span {
	border-color: #8ab7ff;
	background: #eff6ff;
	color: var(--primary);
}

.settings-row-full {
	grid-column: 1 / -1;
}

.segmented-control {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
}

.segmented-control input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.segmented-control span {
	display: grid;
	place-items: center;
	min-height: 38px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	font-size: 13px;
	font-weight: 850;
}

.segmented-control input:checked + span {
	border-color: #8ab7ff;
	background: #eff6ff;
	color: var(--primary);
}

.converter-actions {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px;
	margin-top: 16px;
}

.status-box,
.result-box {
	margin-top: 16px;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: #fff;
	padding: 14px;
}

.status-box.is-error {
	border-color: #fecaca;
	background: #fef2f2;
	color: #991b1b;
}

.status-box.is-success {
	border-color: #bbf7d0;
	background: #f0fdf4;
	color: #166534;
}

.progress-bar {
	height: 9px;
	overflow: hidden;
	margin-top: 10px;
	border-radius: 999px;
	background: #e2e8f0;
}

.progress-bar span {
	display: block;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, var(--primary), var(--cyan));
	transition: width .2s ease;
}

.result-preview {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
}

.result-preview img {
	width: 96px;
	height: 96px;
	object-fit: contain;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background:
		linear-gradient(45deg, #e2e8f0 25%, transparent 25%),
		linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #e2e8f0 75%),
		linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
	background-size: 18px 18px;
	background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.result-preview h3 {
	margin: 0 0 4px;
	font-size: 16px;
}

.result-preview p {
	margin: 0 0 12px;
	color: var(--muted);
	font-size: 13px;
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 310px;
	gap: 22px;
	align-items: start;
}

.content-card {
	padding: 26px;
	margin-bottom: 16px;
	box-shadow: none;
}

.unique-content-card {
	border-color: #bfdbfe;
	background: linear-gradient(180deg, #ffffff, #f8fbff);
	box-shadow: inset 4px 0 0 #60a5fa;
}

.content-card h2 {
	margin: 0 0 12px;
	font-size: 24px;
}

.content-card p {
	margin-top: 0;
}

.content-card ol,
.content-card ul {
	margin: 0;
	padding-left: 20px;
}

.privacy-note {
	max-width: 600px;
	margin-top: 18px;
	padding: 14px;
	border: 1px solid #bbf7d0;
	border-radius: var(--radius);
	background: #f0fdf4;
	color: #166534;
	font-size: 13px;
	font-weight: 700;
}

.side-panel {
	position: sticky;
	top: 94px;
	padding: 18px;
	box-shadow: none;
}

.side-panel h2 {
	margin: 0 0 8px;
	font-size: 20px;
}

.side-panel a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
	color: var(--text);
	font-weight: 800;
	font-size: 14px;
}

.side-panel a:last-child {
	border-bottom: 0;
}

.faq-block {
	width: min(var(--container), calc(100% - 48px));
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
}

.faq-section .faq-block,
.content-layout .faq-block {
	width: 100%;
}

.faq-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 18px;
}

.faq-item {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}

.faq-item summary {
	cursor: pointer;
	padding: 14px 16px;
	font-weight: 800;
	list-style: none;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item summary::after {
	content: "+";
	float: right;
	color: var(--primary);
	font-weight: 950;
}

.faq-item[open] summary::after {
	content: "−";
}

.faq-item p {
	margin: 0;
	padding: 0 16px 14px;
	color: var(--text);
	font-size: 14px;
}

.catalog-grid,
.format-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.catalog-card,
.format-card {
	padding: 20px;
	box-shadow: none;
}

.catalog-description {
	margin: 0 0 14px;
	color: var(--text);
	font-size: 14px;
	line-height: 1.5;
}

.catalog-card a {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-top: 1px solid #eef2f7;
	color: var(--text);
	font-weight: 800;
	font-size: 14px;
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.format-points {
	display: grid;
	gap: 8px;
	margin: 14px 0;
	padding-left: 18px;
	color: var(--text);
	font-size: 14px;
	line-height: 1.45;
}

.tag-list a {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 8px;
	border: 1px solid #dbeafe;
	border-radius: 999px;
	background: #eff6ff;
	color: var(--primary);
	font-size: 12px;
	font-weight: 850;
}

.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.section-head .section-title {
	margin: 0;
}

.section-link {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 7px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	color: var(--primary);
	font-size: 14px;
	font-weight: 850;
}

.post-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.post-card-grid-large {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: none;
}

.post-card-media {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #eff6ff, #f8fafc);
	color: var(--primary);
	font-size: 24px;
	font-weight: 950;
}

.post-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card-body {
	padding: 16px;
}

.post-meta {
	margin-bottom: 8px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 800;
}

.post-card h3 {
	margin: 0 0 8px;
	font-size: 19px;
	line-height: 1.25;
}

.post-card h3 a:hover {
	color: var(--primary);
}

.post-card p {
	margin: 0 0 14px;
	color: var(--text);
	font-size: 14px;
}

.post-tags,
.tag-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag-filter {
	margin-bottom: 18px;
}

.post-tags a,
.tag-filter a {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 5px 9px;
	border: 1px solid #dbeafe;
	border-radius: 999px;
	background: #eff6ff;
	color: var(--primary);
	font-size: 12px;
	font-weight: 850;
}

.tag-filter a {
	min-height: 34px;
	padding: 7px 12px;
	background: #fff;
	color: var(--text);
}

.tag-filter a.is-active,
.tag-filter a:hover,
.post-tags a:hover {
	border-color: #8ab7ff;
	background: #eff6ff;
	color: var(--primary);
}

.empty-state {
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	color: var(--text);
	font-weight: 750;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 22px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 36px;
	padding: 7px 10px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	color: var(--text);
	font-weight: 850;
}

.pagination .current,
.pagination .page-numbers:hover {
	border-color: #8ab7ff;
	background: #eff6ff;
	color: var(--primary);
}

.single-post-section {
	padding-top: 48px;
}

.single-post-card h1 {
	margin: 8px 0 14px;
	font-size: clamp(32px, 4vw, 50px);
	line-height: 1.06;
}

.single-post-cover {
	margin: 22px 0;
	overflow: hidden;
	border-radius: var(--radius);
	border: 1px solid var(--line);
}

.single-post-cover img {
	display: block;
	width: 100%;
	height: auto;
}

.post-content {
	color: var(--text);
	font-size: 17px;
	line-height: 1.72;
}

.post-content h2,
.post-content h3 {
	color: var(--ink);
	line-height: 1.18;
}

.post-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius);
}

.post-tags-footer {
	margin-top: 26px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.legal-layout,
.article-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

.legal-doc,
.article-card {
	padding: 34px;
	box-shadow: none;
}

.legal-doc h2,
.article-card h2 {
	margin: 26px 0 10px;
	font-size: 24px;
}

.legal-doc h2:first-child,
.article-card h2:first-child {
	margin-top: 0;
}

.legal-nav,
.toc {
	position: sticky;
	top: 94px;
	padding: 14px;
	box-shadow: none;
}

.legal-nav a,
.toc a {
	display: block;
	padding: 10px;
	border-radius: var(--radius);
	color: var(--text);
	font-weight: 800;
	font-size: 14px;
}

.legal-nav a:hover,
.toc a:hover {
	background: #eff6ff;
	color: var(--primary);
}

.contact-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-top: 18px;
}

.contact-grid div {
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #f8fafc;
}

.contact-grid b,
.contact-grid span {
	display: block;
}

.contact-grid span {
	margin-top: 6px;
	color: var(--muted);
	font-size: 14px;
}

.callout {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 18px;
	margin: 22px 0;
	padding: 18px;
	border: 1px solid #bfdbfe;
	border-radius: var(--radius);
	background: #eff6ff;
}

.callout b,
.callout span {
	display: block;
}

.code-block {
	overflow-x: auto;
	margin: 18px 0 24px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #0f172a;
	color: #e2e8f0;
	font-size: 13px;
	line-height: 1.6;
}

.code-block code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.callout span {
	margin-top: 4px;
	color: var(--text);
	font-size: 14px;
}

.size-table {
	width: 100%;
	border-collapse: collapse;
	margin: 14px 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.size-table th,
.size-table td {
	padding: 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	font-size: 14px;
}

.size-table tr:last-child td {
	border-bottom: 0;
}

.not-found {
	min-height: 560px;
	display: grid;
	place-items: center;
	padding: 48px 0;
	background: linear-gradient(180deg, #fff, #eff6ff);
}

.not-found-card {
	width: min(620px, calc(100% - 32px));
	padding: 44px;
	text-align: center;
}

.not-found-code {
	color: #bfdbfe;
	font-size: 88px;
	font-weight: 950;
	line-height: 1;
}

.not-found h1 {
	margin: 6px 0 10px;
	font-size: 34px;
}

.not-found-actions,
.scenario-row {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.scenario-row a {
	display: inline-flex;
	min-height: 34px;
	align-items: center;
	padding: 6px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	font-weight: 800;
	font-size: 13px;
}

.site-footer {
	padding: 40px 0 22px;
	background: #eef6ff;
	border-top: 1px solid var(--line);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.35fr repeat(4, 1fr);
	gap: 30px;
}

.footer-brand p {
	max-width: 280px;
	color: var(--text);
	font-size: 14px;
}

.footer-brand .brand {
	display: inline-flex;
	gap: 10px;
	margin: 8px 0 14px;
}

.footer-grid b {
	display: block;
	margin-bottom: 12px;
}

.footer-grid a {
	display: block;
	margin: 8px 0;
	color: var(--text);
	font-size: 14px;
}

.footer-grid a:hover {
	color: var(--primary);
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 30px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
}

@media (max-width: 1024px) {
	.hero-grid,
	.tool-hero-grid,
	.content-layout,
	.page-title-row,
	.legal-layout,
	.article-layout {
		grid-template-columns: 1fr;
	}

	.quick-tabs,
	.why-grid,
	.use-grid,
	.post-card-grid,
	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tool-card-grid,
	.catalog-grid,
	.format-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.side-panel,
	.legal-nav,
	.toc {
		position: static;
	}
}

@media (max-width: 760px) {
	.site-container {
		width: min(100% - 28px, var(--container));
	}

	.header-inner {
		height: 64px;
	}

	.main-nav,
	.header-action {
		display: none;
	}

	.mobile-menu-button {
		display: inline-grid;
		place-items: center;
		width: 40px;
		height: 40px;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: #fff;
		font-weight: 900;
	}

	.mobile-menu.is-open {
		display: grid;
		gap: 4px;
		padding: 0 14px 14px;
		background: #fff;
		border-bottom: 1px solid var(--line);
	}

	.mobile-menu a {
		padding: 10px;
		border-radius: var(--radius);
		font-weight: 800;
	}

	.mobile-menu a:hover {
		background: #eff6ff;
	}

	.hero {
		padding: 36px 0 28px;
	}

	.hero h1,
	.page-top h1,
	.tool-hero-grid h1,
	.article-card h1 {
		font-size: 34px;
		line-height: 1.08;
	}

	.hero p,
	.page-top p,
	.tool-hero-grid > div > p,
	.article-card .lead {
		font-size: 16px;
	}

	.hero-grid {
		gap: 28px;
	}

	.dropzone {
		min-height: 210px;
		padding: 22px;
	}

	.upload-icon {
		width: 54px;
		height: 54px;
		font-size: 34px;
	}

	.quick-tabs,
	.tool-card-grid,
	.post-card-grid,
	.steps-grid,
	.why-grid,
	.use-grid,
	.catalog-grid,
	.format-grid,
	.home-preview-grid,
	.faq-grid,
	.contact-grid,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.home-action-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.quick-tabs {
		margin-top: 18px;
	}

	.section-head {
		display: grid;
		align-items: start;
	}

	.converter-actions {
		grid-template-columns: 1fr;
	}

	.size-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.settings-row {
		display: grid;
		grid-template-columns: 1fr;
	}

	.settings-row input[type="range"],
	.settings-row select {
		width: 100%;
	}

	.result-preview {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.result-preview img {
		margin: 0 auto;
	}

	.callout {
		display: grid;
	}

	.footer-bottom {
		display: grid;
	}
}
