/* PDFConvert – site styles */
:root {
	--brand: #E5322D;
	--brand-dark: color-mix(in srgb, var(--brand) 82%, #000);
	--brand-soft: color-mix(in srgb, var(--brand) 10%, transparent);
	--bg: #F4F4F8;
	--surface: #FFFFFF;
	--surface-2: #F7F7FB;
	--text: #2B2B33;
	--muted: #676775;
	--line: #E4E4EC;
	--ok: #16A34A;
	--warn: #D97706;
	--err: #DC2626;
	--radius: 14px;
	--shadow-sm: 0 1px 2px rgba(17, 17, 39, .06);
	--shadow: 0 1px 2px rgba(17, 17, 39, .05), 0 10px 30px rgba(17, 17, 39, .07);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
	--maxw: 1240px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #121218;
		--surface: #1B1B23;
		--surface-2: #23232D;
		--text: #ECECF2;
		--muted: #A3A3B2;
		--line: #2F2F3B;
		--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
		--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
		--brand-soft: color-mix(in srgb, var(--brand) 18%, transparent);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #121218;
	--surface: #1B1B23;
	--surface-2: #23232D;
	--text: #ECECF2;
	--muted: #A3A3B2;
	--line: #2F2F3B;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
	--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
	--brand-soft: color-mix(in srgb, var(--brand) 18%, transparent);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video, canvas { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--text); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.ico { flex: none; vertical-align: middle; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 8px; top: 8px; z-index: 1000; background: var(--surface); padding: 10px 16px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--surface) 92%, transparent);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-inner { max-width: 1440px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { flex: none; display: flex; align-items: center; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.site-logo:hover { text-decoration: none; }
.site-logo .logo-mark { width: 36px; height: 36px; }
.wordmark .wm-accent { color: var(--brand); }
.custom-logo-link img { max-height: 44px; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.primary-nav .menu { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; flex-wrap: nowrap; overflow: hidden; }
.primary-nav .menu a, .mega-toggle {
	display: block; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 700; letter-spacing: .02em;
	color: var(--text); white-space: nowrap; text-transform: uppercase;
}
.primary-nav .menu a:hover, .mega-toggle:hover { background: var(--surface-2); color: var(--brand); text-decoration: none; }
.primary-nav .menu .sub-menu { display: none; }
.mega-toggle { background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.mega-toggle[aria-expanded="true"] { color: var(--brand); }
.mega-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.header-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: none; cursor: pointer; color: var(--text); }
.icon-btn:hover { background: var(--surface-2); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
	:root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.nav-toggle { display: none; }

.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 64px); overflow: auto; }
.mega-inner { max-width: 1440px; margin: 0 auto; padding: 24px 16px 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px 28px; }
.mega-title { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.mega ul, .side-tools { list-style: none; margin: 0; padding: 0; }
.mega li a, .side-tools a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: 14.5px; }
.mega li a:hover, .side-tools a:hover { background: var(--surface-2); text-decoration: none; color: var(--brand); }
.mini-ico { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); flex: none; }

@media (max-width: 1100px) {
	.primary-nav .menu { display: none; }
}
@media (max-width: 760px) {
	.nav-toggle { display: inline-grid; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
	.primary-nav.is-open { display: flex; }
	.primary-nav .menu { display: flex; flex-direction: column; }
	.mega-toggle { justify-content: space-between; width: 100%; }
	.mega { position: static; box-shadow: none; max-height: none; }
	.site-header.nav-open .mega { position: absolute; top: auto; }
}

/* ---------- Buttons & forms ---------- */
.btn, .btn-select, .search-submit, .comment-form .submit, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 12px 22px;
	font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s, box-shadow .15s;
}
.btn:hover, .btn-select:hover, .search-submit:hover, .comment-form .submit:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn:active, .btn-select:active { transform: translateY(1px); }
input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="password"], input[type="number"], textarea, select {
	width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 12px; min-height: 42px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form .search-submit { padding: 0 16px; }

/* ---------- Home ---------- */
.home-hero { text-align: center; padding: 56px 0 28px; }
.home-hero h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; max-width: 900px; margin: 0 auto 14px; }
.home-hero .lead { font-size: clamp(16px, 1.6vw, 20px); color: var(--muted); max-width: 860px; margin: 0 auto 22px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 0; }
.hero-badges li { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.hero-badges .ico { color: var(--brand); }

.home-tools { padding-bottom: 48px; }
.tool-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0 16px; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--text); }
.chip:hover { border-color: var(--text); }
.chip.is-active { background: var(--text); color: var(--surface); border-color: var(--text); }
.tool-search { position: relative; max-width: 420px; margin: 0 auto 24px; }
.tool-search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.tool-search input { padding-left: 42px; border-radius: 999px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.tools-grid--small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tool-card {
	position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 20px; background: var(--surface);
	border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); box-shadow: var(--shadow-sm);
	transition: transform .15s, box-shadow .15s, border-color .15s; min-height: 180px;
}
.tool-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c, var(--brand)) 40%, var(--line)); }
.tool-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 35%, transparent); margin-bottom: 6px; }
.tool-name { font-size: 18px; font-weight: 800; margin: 0; }
.tool-desc { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.badge-new { position: absolute; top: 14px; right: 14px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.tools-empty { text-align: center; color: var(--muted); padding: 24px; }

.section-title { font-size: clamp(24px, 3vw, 32px); text-align: center; margin-bottom: 28px; font-weight: 800; }
.features { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.feature { padding: 8px; }
.feature h3 { font-size: 19px; margin: 12px 0 6px; }
.feature p { color: var(--muted); margin: 0; }
.f-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.home-blog, .home-faq, .home-content { padding: 56px 16px 8px; }
.home-faq { padding-bottom: 56px; max-width: 860px; }

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ---------- Tool page (static part) ---------- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0; font-size: 13.5px; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a { color: var(--muted); }
.tool-hero { text-align: center; padding: 28px 0 40px; }
.tool-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 10px; }
.tool-sub { font-size: clamp(16px, 1.6vw, 21px); color: var(--muted); max-width: 820px; margin: 0 auto 28px; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.btn-select {
	font-size: clamp(18px, 2vw, 22px); padding: 22px 48px; border-radius: 14px; min-width: min(100%, 340px);
	box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 35%, transparent);
}
.drop-hint { color: var(--muted); margin: 0; font-size: 15px; }
.privacy-note { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--ok); margin: 22px 0 0; font-weight: 600; }
.notice { padding: 12px 16px; border-radius: 10px; background: var(--surface-2); }
.notice-error { color: var(--err); }
.tool-info { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; padding-top: 48px; padding-bottom: 64px; border-top: 1px solid var(--line); }
.tool-info h2 { font-size: 24px; font-weight: 800; }
.tool-info .tool-faq, .tool-info .related-tools { grid-column: 1 / -1; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tool, var(--brand)); color: #fff; font-weight: 800; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.ticks .ico { color: var(--ok); }
@media (max-width: 820px) { .tool-info { grid-template-columns: 1fr; } }

/* ---------- Content / blog ---------- */
.content-area { padding-top: 36px; padding-bottom: 64px; }
.content-area.narrow { max-width: 820px; }
.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
@media (max-width: 960px) { .has-sidebar { grid-template-columns: 1fr; } }
.page-header { margin-bottom: 24px; }
.page-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.section-sub { font-size: 20px; margin: 8px 0 14px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; margin-top: 8px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.post-thumb { display: block; aspect-ratio: 1200 / 630; background: var(--surface-2); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph { display: grid; place-items: center; width: 100%; height: 100%; opacity: .6; }
.post-card-body { padding: 18px 20px 20px; }
.post-card-title { font-size: 19px; margin: 0 0 6px; }
.post-card-title a { color: var(--text); }
.post-card-meta { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.post-card-excerpt p { color: var(--muted); margin: 0; font-size: 15px; }
.entry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 44px); }
.entry-title { font-size: clamp(28px, 3.8vw, 42px); font-weight: 800; }
.entry-meta { color: var(--muted); font-size: 14px; }
.entry-thumb { margin: 0 0 24px; }
.entry-thumb img { border-radius: 12px; width: 100%; }
.entry-content { font-size: 17.5px; line-height: 1.75; }
.entry-content h2 { font-size: 28px; margin-top: 1.6em; }
.entry-content h3 { font-size: 22px; margin-top: 1.4em; }
.entry-content img { border-radius: 10px; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 4px solid var(--brand); color: var(--muted); }
.entry-content pre { background: var(--surface-2); padding: 16px; border-radius: 10px; overflow: auto; font-size: 14px; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; }
.alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.tags a { display: inline-block; padding: 4px 10px; margin: 0 4px 4px 0; border-radius: 999px; background: var(--surface-2); font-size: 13px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.post-navigation a { display: block; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text); font-weight: 700; }
.nav-sub { display: block; font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
.nav-next { text-align: right; }
.pagination .nav-links { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.page-numbers { padding: 8px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.sidebar .widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.widget-title { font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.widget ul { padding-left: 18px; }
.comments-area { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 12px 0; border-bottom: 1px solid var(--line); }
.error-404 .search-form { margin: 16px 0 32px; }
.no-results { color: var(--muted); }
.ad-slot { max-width: var(--maxw); margin: 16px auto; padding: 0 16px; text-align: center; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: #17171F; color: #C9C9D6; margin-top: 0; }
.site-footer a { color: #E6E6EF; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 48px 16px 24px; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.footer-about .site-logo { color: #fff; margin-bottom: 12px; }
.footer-about p { font-size: 15px; }
.footer-title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #8E8EA0; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; }
.trust { display: flex; gap: 6px; align-items: center; color: #7EE2A1; font-weight: 600; font-size: 14px; }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 18px 16px 28px; border-top: 1px solid #2B2B36; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; padding: 0; margin: 0; }
.copyright { margin: 0; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.lang-btn:hover { border-color: var(--text); }
.lang-btn[aria-expanded="true"] .ico:last-child { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 230px; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.lang-menu a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: 14.5px; }
.lang-menu a:hover { background: var(--surface-2); text-decoration: none; }
.lang-menu a.is-current { background: var(--brand-soft); color: var(--brand); }
.lang-menu b { display: inline-grid; place-items: center; min-width: 30px; height: 22px; border-radius: 6px; background: var(--surface-2); font-size: 11px; color: var(--muted); }
.footer-langs { width: 100%; }
.footer-langs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 6px; padding: 0; font-size: 14px; }
.footer-langs a.is-current { color: #fff; font-weight: 700; text-decoration: underline; }
